1 2014-11-21 Yao Qi <yao@codesourcery.com>
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
5 * gnulib/import/Makefile.am: Re-generated.
6 * gnulib/import/Makefile.in: Likewise..
7 * gnulib/import/m4/gnulib-cache.m4: Likewise.
9 2014-11-21 Yao Qi <yao@codesourcery.com>
11 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
14 2014-11-21 Joel Brobecker <brobecker@adacore.com>
16 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
17 flag_unsigned if HIGH_BOUND is constant and negative.
19 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
22 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
23 modifier from "struct gdbarch" when compiling without Expat (XML)
25 (get_syscall_by_number): Likewise.
26 (get_syscall_by_name): Likewise.
27 (get_syscall_names): Likewise.
29 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
32 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
33 set_xml_syscall_file_name to provide gdbarch.
34 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
35 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
36 * breakpoint.c (print_it_catch_syscall): Adjust call to
37 get_syscall_by_number to provide gdbarch.
38 (print_one_catch_syscall): Likewise.
39 (print_mention_catch_syscall): Likewise.
40 (print_recreate_catch_syscall): Likewise.
41 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
42 and get_syscall_by_name to provide gdbarch.
43 (catch_syscall_completer): Adjust call to get_syscall_names to
45 * gdbarch.c: Regenerate.
46 * gdbarch.h: Likewise.
47 * gdbarch.sh: Forward declare "struct syscalls_info".
48 (xml_syscall_file): New variable.
49 (syscalls_info): Likewise.
50 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
51 set_xml_syscall_file_name to provide gdbarch.
52 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
53 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
54 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
55 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
56 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
57 * xml-syscall.c: Include gdbarch.h.
58 (set_xml_syscall_file_name): Accept gdbarch parameter.
59 (get_syscall_by_number): Likewise.
60 (get_syscall_by_name): Likewise.
61 (get_syscall_names): Likewise.
62 (my_gdb_datadir): Delete global variable.
63 (struct syscalls_info) <my_gdb_datadir>: New variable.
64 (struct syscalls_info) <sysinfo>: Rename variable to
66 (sysinfo): Delete global variable.
67 (have_initialized_sysinfo): Likewise.
68 (xml_syscall_file): Likewise.
69 (sysinfo_free_syscalls_desc): Rename to...
70 (syscalls_info_free_syscalls_desc): ... this.
71 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
72 code to the new layout of "struct syscalls_info".
73 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
75 (syscall_create_syscall_desc): Likewise.
76 (syscall_start_syscall): Likewise.
77 (syscall_parse_xml): Likewise.
78 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
79 (init_sysinfo): Rename to...
80 (init_syscalls_info): ...this. Add gdbarch as a parameter.
81 Adjust function to deal with gdbarch.
82 (xml_get_syscall_number): Delete parameter sysinfo. Accept
83 gdbarch as a parameter. Adjust code.
84 (xml_get_syscall_name): Likewise.
85 (xml_list_of_syscalls): Likewise.
86 (set_xml_syscall_file_name): Accept gdbarch as parameter.
87 (get_syscall_by_number): Likewise.
88 (get_syscall_by_name): Likewise.
89 (get_syscall_names): Likewise.
90 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
91 (get_syscall_by_number): Likewise.
92 (get_syscall_by_name): Likewise.
93 (get_syscall_names): Likewise.
95 2014-11-20 Doug Evans <xdje42@gmail.com>
97 Split struct symtab into two: struct symtab and compunit_symtab.
98 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
99 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
100 to "struct compunit_symtab *". All callers updated.
101 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
102 "struct symtab *" argument to "struct compunit_symtab *".
104 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
105 result to "struct compunit_symtab *". All callers updated.
106 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
107 Change result to "struct compunit_symtab *". All callers updated.
108 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
109 hange type to "struct compunit_symtab *". All uses updated.
110 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
111 Change type to "struct compunit_symtab *". All uses updated.
112 * buildsym.c (struct buildsym_compunit): New struct.
113 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
114 (buildsym_compunit): New static global.
115 (finish_block_internal): Update to fetch objfile from
117 (make_blockvector): Delete objfile argument.
118 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
119 debugformat, producer.
120 (start_buildsym_compunit): New function.
121 (free_buildsym_compunit): Renamed from free_subfiles_list.
123 (patch_subfile_names): Rewrite to use buildsym_compunit.
124 (get_compunit_symtab): New function.
125 (get_macro_table): Delete argument comp_dir. All callers updated.
126 (start_symtab): Change result to "struct compunit_symtab *".
127 All callers updated. Create the subfile of the main source file.
128 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
129 (reset_symtab_globals): Update.
130 (end_symtab_get_static_block): Update to use buildsym_compunit.
131 (end_symtab_without_blockvector): Rewrite.
132 (end_symtab_with_blockvector): Change result to
133 "struct compunit_symtab *". All callers updated.
134 Update to use buildsym_compunit. Don't set symtab->dirname,
135 instead set it in the compunit.
136 Explicitly make sure main symtab is first in its list.
137 Set debugformat, producer, blockvector, block_line_section, and
138 macrotable in the compunit.
139 (end_symtab_from_static_block): Change result to
140 "struct compunit_symtab *". All callers updated.
141 (end_symtab, end_expandable_symtab): Ditto.
142 (set_missing_symtab): Change symtab argument to
143 "struct compunit_symtab *". All callers updated.
144 (augment_type_symtab): Ditto.
145 (record_debugformat): Update to use buildsym_compunit.
146 (record_producer): Update to use buildsym_compunit.
147 * buildsym.h (struct subfile) <dirname>: Delete.
148 <producer, debugformat>: Delete.
149 <buildsym_compunit>: New member.
150 (get_compunit_symtab): Declare.
151 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
152 from primary_symtab. Change type to "struct compunit_symtab *".
154 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
156 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
157 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
158 symtab. Change type to "struct compunit_symtab *". All uses updated.
159 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
161 (dw2_find_last_source_symtab): Ditto.
162 (dw2_lookup_symbol): Ditto.
163 (recursively_find_pc_sect_compunit_symtab): Renamed from
164 recursively_find_pc_sect_symtab. Change result to
165 "struct compunit_symtab *". All callers updated.
166 (dw2_find_pc_sect_compunit_symtab): Renamed from
167 dw2_find_pc_sect_symtab. Change result to
168 "struct compunit_symtab *". All callers updated.
169 (get_compunit_symtab): Renamed from get_symtab. Change result to
170 "struct compunit_symtab *". All callers updated.
171 (recursively_compute_inclusions): Change type of immediate_parent
172 argument to "struct compunit_symtab *". All callers updated.
173 (compute_compunit_symtab_includes): Renamed from
174 compute_symtab_includes. All callers updated. Rewrite to compute
175 includes of compunit_symtabs and not symtabs.
176 (process_full_comp_unit): Update to work with struct compunit_symtab.
177 (process_full_type_unit): Ditto.
178 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
179 (dwarf_decode_lines): Remove special case handling of main subfile.
180 (macro_start_file): Delete argument comp_dir. All callers updated.
181 (dwarf_decode_macro_bytes): Ditto.
182 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
183 use struct compunit_symtab.
184 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
185 * jit.c (finalize_symtab): Build compunit_symtab.
186 * jv-lang.c (get_java_class_symtab): Change result to
187 "struct compunit_symtab *". All callers updated.
188 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
189 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
190 comp_dir. Change type to "struct compunit_symtab *".
192 (new_macro_table): Change comp_dir argument to cust,
193 "struct compunit_symtab *". All callers updated.
194 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
195 nr_primary_symtabs. All uses updated.
196 (count_symtabs_and_blocks): Update to handle compunits.
197 (report_command_stats): Update output, "primary symtabs" renamed to
199 * mdebugread.c (new_symtab): Change result to
200 "struct compunit_symtab *". All callers updated.
201 (parse_procedure): Change type of search_symtab argument to
202 "struct compunit_symtab *". All callers updated.
203 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
205 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
206 symtabs. Change type to "struct compunit_symtab *". All uses updated.
207 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
209 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
211 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
212 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
213 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
214 symtab. Change type to "struct compunit_symtab *". All uses updated.
215 * psymtab.c (psymtab_to_symtab): Change result type to
216 "struct compunit_symtab *". All callers updated.
217 (find_pc_sect_compunit_symtab_from_partial): Renamed from
218 find_pc_sect_symtab_from_partial. Change result type to
219 "struct compunit_symtab *". All callers updated.
220 (lookup_symbol_aux_psymtabs): Change result type to
221 "struct compunit_symtab *". All callers updated.
222 (find_last_source_symtab_from_partial): Ditto.
223 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
224 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
225 and macro_table from compunit.
226 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
227 type to "struct compunit_symtab *". All callers updated.
228 (debug_qf_lookup_symbol): Ditto.
229 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
230 debug_qf_find_pc_sect_symtab, change result type to
231 "struct compunit_symtab *". All callers updated.
232 * symfile.c (allocate_symtab): Delete objfile argument.
234 (allocate_compunit_symtab): New function.
235 (add_compunit_symtab_to_objfile): New function.
236 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
237 Change result type to "struct compunit_symtab *". All uses updated.
238 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
239 Change result type to "struct compunit_symtab *". All uses updated.
240 * symmisc.c (print_objfile_statistics): Compute blockvector count in
242 (dump_symtab_1): Update test for primary source symtab.
243 (maintenance_info_symtabs): Update to handle compunit symtabs.
244 (maintenance_check_symtabs): Ditto.
245 * symtab.c (set_primary_symtab): Delete.
246 (compunit_primary_filetab): New function.
247 (compunit_language): New function.
248 (iterate_over_some_symtabs): Change type of arguments "first",
249 "after_last" to "struct compunit_symtab *". All callers updated.
250 Update to loop over symtabs in each compunit.
251 (error_in_psymtab_expansion): Rename symtab argument to cust,
252 and change type to "struct compunit_symtab *". All callers updated.
253 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
254 Change result type to "struct compunit_symtab *". All callers updated.
255 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
256 Change result type to "struct compunit_symtab *". All callers updated.
257 (find_pc_sect_line): Only loop over symtabs within selected compunit
258 instead of all symtabs in the objfile.
259 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
260 <compunit_symtab> New member.
261 <block_line_section>: Moved to compunit_symtab.
262 <locations_valid>: Ditto.
263 <epilogue_unwind_valid>: Ditto.
264 <macro_table>: Ditto.
266 <debugformat>: Ditto.
269 <call_site_htab>: Ditto.
273 (SYMTAB_COMPUNIT): New macro.
274 (SYMTAB_BLOCKVECTOR): Update definition.
275 (SYMTAB_OBJFILE): Update definition.
276 (SYMTAB_DIRNAME): Update definition.
277 (struct compunit_symtab): New type. Common members among all source
278 symtabs within a compilation unit moved here. All uses updated.
279 (COMPUNIT_OBJFILE): New macro.
280 (COMPUNIT_FILETABS): New macro.
281 (COMPUNIT_DEBUGFORMAT): New macro.
282 (COMPUNIT_PRODUCER): New macro.
283 (COMPUNIT_DIRNAME): New macro.
284 (COMPUNIT_BLOCKVECTOR): New macro.
285 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
286 (COMPUNIT_LOCATIONS_VALID): New macro.
287 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
288 (COMPUNIT_CALL_SITE_HTAB): New macro.
289 (COMPUNIT_MACRO_TABLE): New macro.
290 (ALL_COMPUNIT_FILETABS): New macro.
291 (compunit_symtab_ptr): New typedef.
292 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
294 2014-11-20 Joel Brobecker <brobecker@adacore.com>
296 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
297 if the TYPE_CODE of range_type's base type does not match
298 the TYPE_CODE of encoding_type's base type.
300 2014-11-19 Joel Brobecker <brobecker@adacore.com>
302 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
305 2014-11-19 Joel Brobecker <brobecker@adacore.com>
307 * ada-lang.c (ada_is_redundant_range_encoding): New function.
308 (ada_is_redundant_index_type_desc): New function.
309 (to_fixed_array_type): Ignore parallel XA type if redundant.
311 2014-11-19 Joel Brobecker <brobecker@adacore.com>
313 * ada-lang.c (constrained_packed_array_type): Set the length
314 of the return array as if both bounds where zero if that
315 returned array's index type is dynamic.
317 2014-11-19 Yao Qi <yao@codesourcery.com>
319 * config/i386/go32.mh (CC): Remove.
321 2014-11-18 Doug Evans <xdje42@gmail.com>
323 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
326 2014-11-18 Doug Evans <xdje42@gmail.com>
328 * buildsym.c (buildsym_objfile): New static global.
329 (buildsym_comp_dir): New static global.
330 (finish_block_internal): Delete arg objfile. All callers updated.
331 (finish_block): Delete arg objfile. All callers updated.
332 (start_subfile): Delete arg dirname. All callers updated.
333 (patch_subfile_names): Update buildsym_comp_dir.
334 (get_macro_table): Delete arg objfile. All callers updated.
335 (start_symtab): New arg objfile. All callers updated.
336 Rename arg dirname to comp_dir.
337 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
338 (end_symtab_get_static_block): Delete arg objfile. All callers
340 (end_symtab_without_blockvector): Ditto.
341 (end_symtab_with_blockvector): Ditto.
342 (end_symtab_from_static_block): Ditto.
344 (end_expandable_symtab): Ditto.
345 (augment_type_symtab): Ditto.
346 * coffread.c (coff_start_symtab): New arg objfile. All callers
349 2014-11-18 Doug Evans <xdje42@gmail.com>
351 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
354 2014-11-18 Doug Evans <xdje42@gmail.com>
356 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
357 symtab.dirname updated to use it.
359 2014-11-18 Doug Evans <xdje42@gmail.com>
361 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
362 symtab.objfile updated to use it.
364 2014-11-18 Doug Evans <xdje42@gmail.com>
366 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
368 2014-11-18 Doug Evans <xdje42@gmail.com>
370 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
372 * findvar.c (default_read_var_value): Ditto.
373 * jv-lang.c (add_class_symtab_symbol): Ditto.
374 * parse.c (operator_check_standard): Ditto.
375 * printcmd.c (address_info): Ditto.
376 * symtab.c (fixup_symbol_section): Ditto.
377 (skip_prologue_sal): Ditto.
378 * tracepoint.c (scope_info): Ditto.
379 * valops.c (find_function_in_inferior): Ditto.
380 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
381 * python/py-symbol.c (set_symbol): Ditto.
383 2014-11-18 Doug Evans <xdje42@gmail.com>
385 * buildsym.c (main_subfile): New static global.
386 (free_subfiles_list): New function.
387 (start_symtab): Set main_subfile.
388 (restart_symtab): Replace init of subfiles, current_subfile with
389 call to free_subfiles_list.
390 (watch_main_source_file_lossage): Use main_subfile.
391 (reset_symtab_globals): Replace init of current_subfile with call
392 to free_subfiles_list.
393 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
394 functions, split out from ...
395 (end_symtab_from_static_block): ... here. Rewrite to call them.
397 2014-11-18 Doug Evans <xdje42@gmail.com>
399 The result of symtab expansion is always a primary symtab.
400 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
401 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
402 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
403 (psymtab_to_symtab): Add comment and assert.
404 (map_matching_symbols_psymtab): Remove unnecessary test for
407 2014-11-15 Doug Evans <xdje42@gmail.com>
410 * symtab.c (find_pc_line_symtab): New function.
411 * symtab.h (find_pc_line_symtab): Declare.
412 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
414 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
415 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
416 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
417 * tui/tui-win.c (make_visible_with_new_height): Ditto.
418 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
419 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
421 2014-11-15 Doug Evans <xdje42@gmail.com>
423 * symtab.c (expand_symtab_containing_pc): Renamed from
424 find_pc_sect_symtab_via_partial. All callers updated.
426 2014-11-15 Yao Qi <yao@codesourcery.com>
428 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
430 2014-11-14 Joel Brobecker <brobecker@adacore.com>
432 * common/common-defs.h: Move <stdarg.h> #include ahead of
435 2014-11-14 Pedro Alves <palves@redhat.com>
437 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
438 [!PHONY_ICONV] (gdb_iconv): New function.
439 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
441 2014-11-13 Doug Evans <dje@google.com>
444 * dwarf2read.c (find_slot_in_mapped_hash): Handle
445 "(anonymous namespace)".
447 2014-11-13 Doug Evans <dje@google.com>
449 * dwarf2read.c (update_enumeration_type_from_children): Avoid
452 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
454 * NEWS (maint set target-async): Fix typo.
456 2014-11-12 Pedro Alves <palves@redhat.com>
458 * infrun.c (enum infwait_states, infwait_state): Delete.
460 2014-11-12 Pedro Alves <palves@redhat.com>
462 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
463 Rewrite stepping over a permanent breakpoint.
464 (thread_still_needs_step_over, proceed): Don't set
465 stepping_over_breakpoint for permanent breakpoints.
466 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
467 single-step breakpoints out of the target on hardware step
469 (process_event_stop_test): If stepping a permanent breakpoint
470 doesn't hit the step-resume breakpoint, delete the step-resume
472 (switch_back_to_stepped_thread): Also check if the stepped thread
473 has advanced already on hardware step targets.
474 (currently_stepping): Return true if the thread stepped a
477 2014-11-12 Pedro Alves <palves@redhat.com>
479 Mark locations as permanent, not the whole breakpoint.
480 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
481 (mark_breakpoints_out): Don't mark permanent breakpoints as
483 (breakpoint_init_inferior): Use mark_breakpoints_out.
484 (breakpoint_here_p): Adjust.
485 (bpstat_stop_status, describe_other_breakpoints): Remove handling
486 of permanent breakpoints.
487 (make_breakpoint_permanent): Mark each location as permanent,
488 instead of marking the breakpoint.
489 (add_location_to_breakpoint): If the location is permanent, mark
490 it as such, and as inserted.
491 (init_breakpoint_sal): Don't make the breakpoint permanent here.
492 (bp_location_compare, update_global_location_list): Adjust.
493 (update_breakpoint_locations): Don't make the breakpoint permanent
495 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
497 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
498 (struct bp_location) <permanent>: New field.
499 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
500 reference to bp_permanent.
502 2014-11-12 Pedro Alves <palves@redhat.com>
504 * arch-utils.c (default_skip_permanent_breakpoint): New function.
505 * arch-utils.h (default_skip_permanent_breakpoint): New
507 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
508 Install default_skip_permanent_breakpoint as default method.
509 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
510 (i386_gdbarch_init): Don't install it.
511 * infrun.c (resume): Assume there's always a
512 gdbarch_skip_permanent_breakpoint implementation.
513 * gdbarch.h, gdbarch.c: Regenerate.
515 2014-11-11 Daniel Colascione <dancol@dancol.org>
517 Warn about cross-PID-namespace debugging.
518 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
519 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
520 * linux-thread-db.c (check_pid_namespace_match): New function.
521 (thread_db_inferior_created): Call it.
523 2014-11-10 Doug Evans <xdje42@gmail.com>
525 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
526 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
528 2014-11-10 Doug Evans <xdje42@gmail.com>
530 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
532 2014-11-10 Doug Evans <xdje42@gmail.com>
535 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
536 (lookup_static_symbol): Move definition to new location and rewrite.
537 (lookup_symbol_in_objfile): New function.
538 (lookup_symbol_global_iterator_cb): Call it.
540 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
542 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
544 2014-11-07 Pedro Alves <palves@redhat.com>
546 * infrun.c (process_event_stop_test) <subroutine check>: Don't
547 check if we did a "nexti" inside a prologue.
548 * symtab.c (in_prologue): Delete function.
549 * symtab.h (in_prologue): Delete declaration.
551 2014-11-06 Doug Evans <xdje42@gmail.com>
553 * symtab.h (lookup_global_symbol): Improve function comment.
555 2014-11-06 Doug Evans <xdje42@gmail.com>
557 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
559 * symtab.h (lookup_global_symbol): Update decl.
560 (lookup_static_symbol): Move decl to better location.
562 2014-11-06 Doug Evans <xdje42@gmail.com>
564 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
566 2014-11-06 Doug Evans <xdje42@gmail.com>
568 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
570 (lookup_symbol_in_all_objfiles): Renamed from
571 lookup_symbol_aux_symtabs. All callers updated.
572 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
574 (lookup_symbol_in_objfile_symtabs): Renamed from
575 lookup_symbol_aux_objfile. All callers updated.
577 2014-11-06 Doug Evans <xdje42@gmail.com>
579 * symtab.c (lookup_symbol_in_block): Renamed from
580 lookup_symbol_aux_block. All callers updated.
582 2014-11-06 Doug Evans <xdje42@gmail.com>
584 * symtab.c (lookup_static_symbol): Renamed from
585 lookup_static_symbol_aux. All callers updated.
586 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
589 2014-11-06 Doug Evans <xdje42@gmail.com>
591 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
592 * block.c (block_lookup_symbol): Use it.
593 * cp-support.c (make_symbol_overload_list_block): Use it.
594 * symtab.c (iterate_over_symbols): Use it.
596 2014-11-06 Doug Evans <xdje42@gmail.com>
598 * symtab.c (lookup_block_symbol): Moved to ...
599 * block.c (block_lookup_symbol): ... here and renamed.
601 * block.h (block_lookup_symbol): Declare.
602 * symtab.h (lookup_block_symbol): Delete.
604 2014-11-06 Doug Evans <xdje42@gmail.com>
606 * ada-lang.c (ada_make_symbol_completion_list): Use
607 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
608 * symtab.c (lookup_objfile_from_block): Ditto.
610 2014-11-06 Doug Evans <xdje42@gmail.com>
612 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
615 2014-11-06 Doug Evans <xdje42@gmail.com>
617 * objfiles.c (get_objfile_arch): Constify.
618 * objfiles.h (get_objfile_arch): Update prototype.
619 * solib.c (solib_global_lookup): Fetch arch from objfile,
622 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
624 * nios2-tdep.c (wild_insn): Delete.
625 (profiler_insn, irqentry_insn): Delete.
626 (nios2_match_sequence): Delete.
627 (nios2_analyze_prologue): Update comments. Remove matching
628 of obsolete profiler_insn and irqentry_insn sequences.
630 2014-11-05 Alan Modra <amodra@gmail.com>
632 * charset.c (convert_between_encodings): Shrink obstack using
634 * minsyms.c (install_minimal_symbols): Likewise.
635 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
636 to char* before doing pointer arithmetic.
638 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
640 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
642 2014-11-04 Pedro Alves <palves@redhat.com>
644 * breakpoint.c (breakpoint_thread_match): Delete function.
645 * breakpoint.h (breakpoint_thread_match): Delete declaration.
647 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
650 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
651 the method args also under EVAL_SKIP when evaluating method
652 calls under EVAL_SKIP.
654 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
656 * dwarf2loc.c (read_pieced_value): Do big endian
657 processing only if gdb_regnum is not -1.
658 (write_pieced_value): Ditto.
660 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
662 * arm-linux-tdep.c (arm_linux_init_abi): Use
663 info.byte_order_for_code to choose endianity of breakpoint
664 instructions snippets.
666 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
668 * arm-tdep.c (extract_arm_insn): Use
669 gdbarch_byte_order_for_code to read arm instruction.
671 2014-11-02 Doug Evans <xdje42@gmail.com>
673 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
675 2014-11-02 Doug Evans <xdje42@gmail.com>
677 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
678 main_subfile before returning.
680 2014-10-31 Doug Evans <xdje42@gmail.com>
682 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
683 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
685 2014-10-31 Doug Evans <xdje42@gmail.com>
687 * valops.c (value_cast_pointers): Fix whitespace.
688 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
691 2014-10-30 Doug Evans <dje@google.com>
693 * NEWS: Mention ability add attributes to gdb.Objfile and
694 gdb.Progspace objects.
695 * python/py-objfile.c (objfile_object): New member dict.
696 (objfpy_dealloc): Py_XDECREF dict.
697 (objfpy_initialize): Initialize dict.
698 (objfile_getset): Add __dict__.
699 (objfile_object_type): Set tp_dictoffset member.
700 * python/py-progspace.c (progspace_object): New member dict.
701 (pspy_dealloc): Py_XDECREF dict.
702 (pspy_initialize): Initialize dict.
703 (pspace_getset): Add __dict__.
704 (pspace_object_type): Set tp_dictoffset member.
706 2014-10-30 Yao Qi <yao@codesourcery.com>
708 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
709 replace '\\' with '\\\\'.
711 2014-10-29 Joel Brobecker <brobecker@adacore.com>
715 2014-10-29 Pedro Alves <palves@redhat.com>
718 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
719 instead of assuming a thread with a stepping range is always
722 2014-10-29 Pedro Alves <palves@redhat.com>
725 * event-top.c (change_line_handler): Call
726 gdb_rl_callback_handler_remove instead of
727 rl_callback_handler_remove.
728 (callback_handler_installed): New global.
729 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
730 (gdb_rl_callback_handler_reinstall): New functions.
731 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
732 gdb_rl_callback_handler_install instead of
733 rl_callback_handler_remove and rl_callback_handler_install.
734 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
735 instead of rl_callback_handler_remove.
736 * event-top.h (gdb_rl_callback_handler_remove)
737 (gdb_rl_callback_handler_install)
738 (gdb_rl_callback_handler_reinstall): New declarations.
739 * infrun.c (reinstall_readline_callback_handler_cleanup): New
741 (fetch_inferior_event): Install it.
742 * top.c (gdb_readline_wrapper_line) Call
743 gdb_rl_callback_handler_remove instead of
744 rl_callback_handler_remove.
745 (gdb_readline_wrapper_cleanup): Don't call
746 rl_callback_handler_install.
748 2014-10-29 Pedro Alves <palves@redhat.com>
750 * event-top.c (command_line_handler): Clear the first byte of
751 linebuffer, when it is first allocated.
753 2014-10-29 Pedro Alves <palves@redhat.com>
755 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
758 2014-10-29 Pedro Alves <palves@redhat.com>
762 * tui/tui-interp.c (tui_is_toplevel): Delete global.
763 (tui_allowed_p): Delete function.
764 * tui/tui.c: Include "interps.h".
765 (tui_enable): Don't use tui_allowed_p. Error out here with
766 detailed error messages if the TUI is the top level interpreter,
767 or if output is not a terminal. Use newterm instead of initscr,
768 and error out if initializing the terminal fails. Also error out if
769 the terminal doesn't support cursor addressing.
770 * tui/tui.h (tui_allowed_p): Delete declaration.
772 2014-10-29 Joel Brobecker <brobecker@adacore.com>
774 * arm-tdep.c (arm_skip_stack_protector): Return early if
775 address loaded by first "ldr" instruction does not have
776 a corresponding minimal symbol. Update comment.
778 2014-10-29 Yao Qi <yao@codesourcery.com>
780 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
781 loaded address correctly of ldr instruction.
783 2014-10-28 Pedro Alves <palves@redhat.com>
786 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
788 * infrun.c (resume) <stepping breakpoint instruction>: Set the
789 thread's stepped_breakpoint field. Skip if reverse debugging.
791 (init_thread_stepping_state, handle_signal_stop): Clear the
792 thread's stepped_breakpoint field.
794 2014-10-27 Pedro Alves <palves@redhat.com>
796 * remote.c (remote_thread_alive): New, factored out from ...
797 (remote_thread_alive): ... this.
798 (remote_update_thread_list): Bail out before deleting threads if
799 the target returned an empty list, and, the current thread has a
802 2014-10-27 Pedro Alves <palves@redhat.com>
804 * infrun.c (handle_signal_stop): Also skip handlers when a random
805 signal arrives while handling a "stepi" or a "nexti". Set the
806 thread's 'step_after_step_resume_breakpoint' flag.
808 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
810 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
811 (arm_record_ld_st_imm_offset): Reimplement to cover all
812 load/store cases for ARM opcode 010.
813 (arm_record_ld_st_multiple): Reimplement to cover all
814 load/store cases for ARM opcode 100.
816 2014-10-26 Doug Evans <xdje42@gmail.com>
818 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
820 2014-10-26 Doug Evans <xdje42@gmail.com>
822 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
823 parameter "kind" to "block_index".
824 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
826 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
828 2014-10-26 Doug Evans <xdje42@gmail.com>
830 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
832 2014-10-26 Doug Evans <xdje42@gmail.com>
834 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
837 2014-10-26 Doug Evans <xdje42@gmail.com>
839 * parser-defs.h (block_found): Move decl from here ...
840 * symtab.h (block_found): ... to here.
842 2014-10-26 Doug Evans <xdje42@gmail.com>
844 * symtab.h (struct field_of_this_result): Fix typo in comment.
845 (lookup_symbol_in_language): Move function comment here.
846 (lookup_symbol): Improve function comment.
847 (basic_lookup_symbol_nonlocal): Ditto.
848 (lookup_symbol_static, lookup_symbol_global): Ditto.
849 (lookup_symbol_aux_block): Ditto.
850 (lookup_language_this): Add function comment.
851 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
853 (lookup_block_symbol): Improve function comment.
854 (lookup_struct): Fix capitalization in function comment.
855 (lookup_transparent_type): Add function comment.
856 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
857 Improve function comment.
858 (lookup_objfile_from_block): Add function comment.
859 * symtab.c (lookup_symbol_in_language): Update function comment.
860 (lookup_symbol, lookup_language_this): Ditto.
861 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
862 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
863 (basic_lookup_symbol_nonlocal): Ditto.
864 (lookup_symbol_static, lookup_symbol_global): Ditto.
865 (lookup_transparent_type, lookup_block_symbol): Ditto.
867 2014-10-25 Doug Evans <xdje42@gmail.com>
869 * symtab.c (types_info): Delete forward decl.
870 (functions_info, variables_info, sources_info): Ditto.
871 (_initialize_symtab): Rewrite forward decl to use
872 initialize_file_ftype.
874 2014-10-25 Doug Evans <xdje42@gmail.com>
876 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
878 2014-10-25 Doug Evans <xdje42@gmail.com>
880 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
881 of local var child_die.
883 2014-10-24 Don Breazeal <donb@codesourcery.com>
885 * infrun.c (follow_fork_inferior): Update fork message printing
886 to use target_terminal_ours_for_output instead of
887 target_terminal_ours, to use _() for all format strings, to print
888 "vfork" instead of "fork" for vforks, and to add a detach message.
889 (handle_vfork_child_exec_or_exit): Update message printing to use
890 target_terminal_ours_for_output instead of target_terminal_ours, to
891 use _() for all format strings, and to fix some formatting.
893 2014-10-24 Pedro Alves <palves@redhat.com>
895 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
896 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
897 * config/vax/vax.mh: Delete.
898 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
899 obsolete configurations section.
900 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
901 * vax-nat.c: Delete file.
903 2014-10-24 Pedro Alves <palves@redhat.com>
905 * NEWS (Removed targets): Add OS/arch column.
907 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
909 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
910 on the arg type of a constructor only if it is of reference type.
912 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
914 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
915 accessors and constants from nios2 opcodes update.
916 (nios2_get_next_pc): Likewise.
918 2014-10-19 Doug Evans <xdje42@gmail.com>
920 * gdbthread.h (set_running): Fix comment.
921 (set_executing, finish_thread_state): Fix comment.
923 2014-10-18 Doug Evans <xdje42@gmail.com>
925 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
927 2014-10-17 Doug Evans <dje@google.com>
929 * NEWS: Mention new event gdb.clear_objfiles.
930 * python/py-event.h (emit_clear_objfiles_event): Clear
931 * python/py-events.h (events_object): New member clear_objfiles.
932 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
934 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
935 emit clear_objfiles event.
936 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
938 (emit_clear_objfiles_event): New function.
939 (clear_objfiles): New event.
940 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
942 * python/python.c (_initialize_python): Call
943 gdbpy_initialize_clear_objfiles_event.
945 2014-10-17 Doug Evans <dje@google.com>
947 * NEWS: Mention new gdb.Objfile.progspace attribute.
948 * python/py-objfile.c (objfpy_get_progspace): New function.
949 (objfile_getset): New entry for "progspace".
951 2014-10-17 Pedro Alves <palves@redhat.com>
954 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
955 returns a copy of the input.
956 (run_command_1, continue_command, step_1, jump_command)
957 (signal_command, until_command, advance_command, finish_command)
958 (attach_command): Adjust and install a cleanup to free the
961 2014-10-17 Pedro Alves <palves@redhat.com>
964 * infcmd.c (continue_1): If continuing all threads in the
965 foreground, make sure the inferior's terminal settings are put in
968 2014-10-17 Pedro Alves <palves@redhat.com>
971 * annotate.c (annotate_breakpoints_invalid): Use
972 target_terminal_our_for_output instead of target_terminal_ours.
973 Give back the terminal to the target.
974 (annotate_frames_invalid): Likewise.
976 2014-10-17 Pedro Alves <palves@redhat.com>
978 * target.c (enum terminal_state): New enum.
979 (terminal_state): New global.
980 (target_terminal_init): New function.
981 (target_terminal_inferior): Skip if inferior already owns the
983 (target_terminal_ours, target_terminal_ours_for_output): New
985 * target.h (target_terminal_init): Convert to function prototype.
986 (target_terminal_ours_for_output): Convert to function prototype
988 (target_terminal_ours): Convert to function prototype and tweak
990 * windows-nat.c (do_initial_windows_stuff): Call
991 target_terminal_init instead of child_terminal_init_with_pgrp.
993 2014-10-17 Pedro Alves <palves@redhat.com>
995 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
996 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
997 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
999 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1000 * ada-lang.h [__alpha__ && __osf__]
1001 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1002 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1003 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1005 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1007 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1008 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1009 * configure: Regenerate.
1010 * configure.ac: Remove references to osf.
1011 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1012 section. Remove all other references to osf.
1013 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1014 Remove all other references to osf.
1015 * dec-thread.c: Delete file.
1016 * defs.h (GDB_OSABI_OSF1): Delete.
1017 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1019 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1020 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1022 (unconditionally_kill_inferior)
1023 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1024 * solib-osf.c: Delete file.
1026 2014-10-17 Pedro Alves <palves@redhat.com>
1028 * remote.c (clear_threads_listing_context): Move higher up, out of
1029 the HAVE_LIBEXPAT guard.
1031 2014-10-16 Tristan Gingold <gingold@adacore.com>
1033 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1034 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1037 2014-10-15 Pedro Alves <palves@redhat.com>
1039 * dec-thread.c (dec_thread_count_gdb_threads)
1040 (dec_thread_add_gdb_thread): Delete.
1041 (dec_thread_update_thread_list): Delete.
1042 (dec_thread_find_new_threads): Rename to ...
1043 (dec_thread_update_thread_list): ... this. Delete GDB-size
1044 threads that are no longer found in dec_thread_list.
1045 (resync_thread_list): Delete.
1046 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1049 2014-10-15 Pedro Alves <palves@redhat.com>
1051 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1052 * remote.c (remote_update_thread_list): Skip calling prune_threads
1053 if any thread listing method is supported, and instead walk over
1054 the set of remote threads listed, deleting those that are not
1055 found in GDB's thread list.
1057 2014-10-15 Pedro Alves <palves@redhat.com>
1059 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1060 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1061 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1062 (bsd_uthread_target): Adjust.
1063 * corelow.c (core_open): Adjust.
1064 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1065 (dec_thread_update_thread_list): New function.
1066 (init_dec_thread_ops): Adjust.
1067 * gdbthread.h (prune_threads): New declaration.
1068 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1069 (thread_db_update_thread_list): ... this. Call prune_threads.
1070 (init_thread_db_ops): Adjust.
1071 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1072 (procfs_update_thread_list): ... this. Call prune_threads.
1073 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1075 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1076 (obsd_update_thread_list): ... this. Call prune_threads.
1077 (obsd_add_target): Adjust.
1078 * procfs.c (procfs_target): Adjust.
1079 (procfs_notice_thread): Update comment.
1080 (procfs_find_new_threads): Rename to ...
1081 (procfs_update_thread_list): ... this. Call prune_threads.
1082 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1084 (ravenscar_wait): Adjust.
1085 (ravenscar_find_new_threads): Rename to ...
1086 (ravenscar_update_thread_list): ... this. Call prune_threads.
1087 (init_ravenscar_thread_ops): Adjust.
1088 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1089 (record_btrace_update_thread_list): ... this. Adjust comment.
1090 (init_record_btrace_ops): Adjust.
1091 * remote.c (remote_threads_info): Rename to ...
1092 (remote_update_thread_list): ... this. Call prune_threads.
1093 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1095 * sol-thread.c (check_for_thread_db): Adjust.
1096 (sol_find_new_threads_callback): Rename to ...
1097 (sol_update_thread_list_callback): ... this.
1098 (sol_find_new_threads): Rename to ...
1099 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1100 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1101 * target-delegates.c: Regenerate.
1102 * target.c (target_find_new_threads): Rename to ...
1103 (target_update_thread_list): ... this.
1104 * target.h (struct target_ops): Rename to_find_new_threads field
1105 to to_update_thread_list.
1106 (target_find_new_threads): Rename to ...
1107 (target_update_thread_list): ... this.
1108 * thread.c (prune_threads): Make extern.
1109 (update_thread_list): Adjust.
1111 2014-10-15 Pedro Alves <palves@redhat.com>
1113 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1114 Add describing comment. Return -1 if the qL packet is not
1116 (struct thread_item, thread_item_t): Move higher up in
1117 the file. Add comments.
1118 (struct threads_parsing_context): Move higher up in
1119 the file, add comments, and remote to ...
1120 (struct threads_listing_context): ... this.
1121 (remote_newthread_step): Don't add the thread to GDB's thread
1122 database here. Instead push it to the thread_listing_context
1124 (remote_find_new_threads): Rename to ...
1125 (remote_get_threads_with_ql): ... this. Add target_ops and
1126 targets_listing_context parameters. Pass down context.
1127 (start_thread): Adjust.
1128 (clear_threads_parsing_context): Rename to ...
1129 (clear_threads_listing_context): ... this.
1130 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1131 remote_threads_info.
1132 (remote_get_threads_with_qthreadinfo): Ditto.
1133 (remote_threads_info): Reimplement.
1135 2014-10-15 Pedro Alves <palves@redhat.com>
1137 * infrun.c (resume): Don't force displaced-stepping for all
1138 single-steps on software single-stepping archs.
1140 2014-10-15 Pedro Alves <palves@redhat.com>
1142 * breakpoint.c (single_step_breakpoints): Delete global.
1143 (insert_single_step_breakpoint): Adjust to store the breakpoint
1144 pointer in the current thread.
1145 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1146 (cancel_single_step_breakpoints): Delete functions.
1147 (breakpoint_has_location_inserted_here): Make extern.
1148 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1150 * breakpoint.h (breakpoint_has_location_inserted_here): New
1152 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1153 (cancel_single_step_breakpoints): Remove declarations.
1154 * gdbthread.h (struct thread_control_state)
1155 <single_step_breakpoints>: New field.
1156 (delete_single_step_breakpoints)
1157 (thread_has_single_step_breakpoints_set)
1158 (thread_has_single_step_breakpoint_here): New declarations.
1159 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1160 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1161 (singlestep_pc): Delete globals.
1162 (infrun_thread_ptid_changed): Remove references to removed
1164 (resume_cleanups): Delete the current thread's single-step
1166 (maybe_software_singlestep): Remove references to removed globals.
1167 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1168 delete_single_step_breakpoints.
1169 (init_wait_for_inferior): Remove references to removed globals.
1170 (delete_thread_infrun_breakpoints): Delete the thread's
1171 single-step breakpoints too.
1172 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1173 single-step breakpoints here.
1174 (delete_stopped_threads_single_step_breakpoints): New function.
1175 (adjust_pc_after_break): Adjust to use
1176 thread_has_single_step_breakpoints_set.
1177 (handle_inferior_event): Remove references to removed globals.
1178 Use delete_stopped_threads_single_step_breakpoints.
1179 (handle_signal_stop): Adjust to per-thread single-step
1180 breakpoints. Swap test order to do cheaper tests first.
1181 (switch_back_to_stepped_thread): Extend debug output. Remove
1182 references to removed globals.
1183 * record-full.c (record_full_wait_1): Adjust to per-thread
1184 single-step breakpoints.
1185 * thread.c (delete_single_step_breakpoints)
1186 (thread_has_single_step_breakpoints_set)
1187 (thread_has_single_step_breakpoint_here): New functions.
1188 (clear_thread_inferior_resources): Also delete the thread's
1189 single-step breakpoints.
1191 2014-10-15 Pedro Alves <palves@redhat.com>
1193 * thread.c (delete_thread_breakpoint): New function.
1194 (delete_step_resume_breakpoint)
1195 (delete_exception_resume_breakpoint): Use it.
1196 (delete_at_next_stop): New function.
1197 (clear_thread_inferior_resources): Use delete_at_next_stop.
1199 2014-10-15 Pedro Alves <palves@redhat.com>
1201 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1202 (breakpoint_inserted_here_p): ... here. Remove special case for
1203 software single-step breakpoints.
1204 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1205 (software_breakpoint_inserted_here_p): ... here. Remove special
1206 case for software single-step breakpoints.
1207 (bp_target_info_copy_insertion_state)
1208 (deprecated_insert_raw_breakpoint)
1209 (deprecated_remove_raw_breakpoint): Delete functions.
1210 * breakpoint.h (deprecated_insert_raw_breakpoint)
1211 (deprecated_remove_raw_breakpoint): Remove declarations.
1213 2014-10-15 Pedro Alves <palves@redhat.com>
1216 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1217 Delete array globals.
1218 (single_step_breakpoints): New global.
1219 (breakpoint_xfer_memory): Remove special handling for single-step
1221 (update_breakpoints_after_exec): Delete bp_single_step
1223 (detach_breakpoints): Remove special handling for single-step
1225 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1226 (bpstat_stop_status): Add comment.
1227 (bpstat_what, bptype_string, print_one_breakpoint_location)
1228 (adjust_breakpoint_address, init_bp_location): Handle
1230 (new_single_step_breakpoint): New function.
1231 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1232 handling for single-step breakpoints.
1233 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1234 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1236 (detach_single_step_breakpoints, find_single_step_breakpoint):
1238 (breakpoint_has_location_inserted_here): New function.
1239 (single_step_breakpoint_inserted_here_p): Rewrite.
1240 * breakpoint.h: Remove FIXME.
1241 (enum bptype) <bp_single_step>: New enum value.
1242 (insert_single_step_breakpoint): Update comment.
1243 * infrun.c (resume_cleanups)
1244 (delete_step_thread_step_resume_breakpoint): Remove single-step
1246 (fetch_inferior_event): Install a cleanup that removes infrun
1248 (switch_back_to_stepped_thread) <expect thread advanced also>:
1249 Clear step-over info.
1251 2014-10-15 Pedro Alves <palves@redhat.com>
1253 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1254 (delete_thread_infrun_breakpoints): New function, with parts
1255 salvaged from delete_step_resume_breakpoint_callback.
1256 (delete_step_thread_step_resume_breakpoint): Delete.
1257 (for_each_just_stopped_thread_callback_func): New typedef.
1258 (for_each_just_stopped_thread): New function.
1259 (delete_just_stopped_threads_infrun_breakpoints): New function.
1260 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1261 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1263 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1265 2014-10-15 Pedro Alves <palves@redhat.com>
1267 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1268 trying to step past a non-steppable watchpoint.
1269 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1271 * infrun.c (struct step_over_info): Add new field
1272 'nonsteppable_watchpoint_p' and adjust comments.
1273 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1275 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1276 (stepping_past_nonsteppable_watchpoint): New function.
1277 (step_over_info_valid_p): Also return true if stepping past a
1278 nonsteppable watchpoint.
1279 (proceed): Adjust call to set_step_over_info. Remove reference to
1281 (init_wait_for_inferior): Remove reference to init_infwait_state.
1282 (waiton_ptid): Delete global.
1283 (struct execution_control_state)
1284 <stepped_after_stopped_by_watchpoint>: Delete field.
1285 (wait_for_inferior, fetch_inferior_event): Always pass
1286 minus_one_ptid to target_wait.
1287 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1289 (init_infwait_state): Delete function.
1290 (handle_inferior_event): Remove infwait_state handling.
1291 (handle_signal_stop) <watchpoints handling>: Adjust after
1292 stepped_after_stopped_by_watchpoint removal. Don't remove
1293 breakpoints here nor set infwait_state. Set the thread's
1294 stepping_over_watchpoint flag, and call keep_going instead.
1295 (keep_going): Handle stepping_over_watchpoint. Adjust
1296 set_step_over_info calls.
1297 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1300 2014-10-15 Pedro Alves <palves@redhat.com>
1302 * infrun.c (step_over_info_valid_p): New function.
1303 (resume): Use step_over_info_valid_p instead of checking the
1304 threads's trap_expected flag.
1306 2014-10-15 Doug Evans <dje@google.com>
1307 Walfred Tedeschi <walfred.tedeschi@intel.com>
1310 * python/lib/gdb/__init__.py (packages): Add "printer".
1311 * python/lib/gdb/command/bound_registers.py: Moved to ...
1312 * python/lib/gdb/printer/bound_registers.py: ... here.
1313 Add printer to global set of builtin printers. Rename printer from
1314 "bound" to "mpx_bound128".
1315 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1316 registered as global "builtin" printer.
1317 (add_builtin_pretty_printer): New function.
1318 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1319 gdb/printer/__init__.py.
1321 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1323 * Makefile.in (SFILES): Remove d-support.c.
1324 (COMMON_OBS): Remove d-support.o.
1325 * d-lang.h (d_parse_symbol): Remove declaration.
1326 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1327 * d-support.c: Remove file.
1329 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1331 * gdb/infrun.c (process_event_stop_test): Apply
1332 gdbarch_addr_bits_remove to longjmp resume address.
1334 2014-10-15 Pedro Alves <palves@redhat.com>
1336 * regformats/microblaze.dat: Delete file.
1338 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1340 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1341 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1343 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1345 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1348 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1352 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1353 with qualified args.
1355 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1357 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1358 of the case where the second operand is a pointer.
1359 <BINOP_SUB>: Likewise.
1361 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1363 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1364 only if it is not NULL.
1365 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1366 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1367 (struct probe_ops) <clear_semaphore>: Likewise.
1368 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1370 (stop_tracing): Likewise, for clear_semaphore.
1372 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1374 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1375 using language_c, instead of current_language.
1377 2014-10-13 Doug Evans <dje@google.com>
1379 * python/py-objfile.c (objfpy_initialize): New function.
1380 (objfpy_new, objfile_to_objfile_object): Call it.
1381 * python/py-progspace.c (pspy_initialize): New function.
1382 (pspy_new, pspace_to_pspace_object): Call it.
1384 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1385 Jan Kratochvil <jan.kratochvil@redhat.com>
1387 Fix "save breakpoints" for "catch" command.
1388 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1391 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1393 Fix "save breakpoints" for "disable $bpnum" command.
1394 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1396 2014-10-10 Pedro Alves <palves@redhat.com>
1398 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1399 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1400 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1401 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1403 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1404 * configure.ac: Remove references to IRIX.
1405 * configure.host: Add *-*-irix* to the obsolete hosts section.
1406 Remove all other references to irix.
1407 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1410 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1412 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1413 isn't valid, release the tdesc arch data and return NULL.
1415 2014-10-10 Pedro Alves <palves@redhat.com>
1417 * linux-tdep.c: Include observer.h.
1418 (linux_inferior_data): New global.
1419 (struct linux_info): New structure.
1420 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1421 (get_linux_inferior_data): New functions.
1422 (linux_vsyscall_range): Rename to ...
1423 (linux_vsyscall_range_raw): ... this.
1424 (linux_vsyscall_range): New function; handles caching.
1425 (_initialize_linux_tdep): Register linux_inferior_data. Install
1426 inferior_exit and inferior_appeared observers.
1428 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1429 Pedro Alves <palves@redhat.com>
1432 * solib-svr4.c (svr4_read_so_list): Rename to ...
1433 (svr4_current_sos_1): ... this and change the function comment.
1434 (svr4_current_sos): New function.
1436 2014-10-10 Pedro Alves <palves@redhat.com>
1438 * arch-utils.c (default_vsyscall_range): New function.
1439 * arch-utils.h (default_vsyscall_range): New declaration.
1440 * gdbarch.sh (vsyscall_range): New hook.
1441 * gdbarch.h, gdbarch.c: Regenerate.
1442 * linux-tdep.c (linux_vsyscall_range): New function.
1443 (linux_init_abi): Install linux_vsyscall_range as
1444 vsyscall_range gdbarch hook.
1445 * memrange.c (address_in_mem_range): New function.
1446 * memrange.h (address_in_mem_range): New declaration.
1447 * symfile-mem.c (find_vdso_size): Delete function.
1448 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1450 2014-10-10 Pedro Alves <palves@redhat.com>
1452 * infrun.c (normal_stop): Fix typo in comment.
1454 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1457 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1458 typo when using logical AND to determine instruction type.
1460 2014-10-09 Yao Qi <yao@codesourcery.com>
1462 * infrun.c (handle_signal_stop): Remove local variable
1465 2014-10-08 Stan Shebs <stan@codesourcery.com>
1467 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1469 2014-10-08 Gary Benson <gbenson@redhat.com>
1471 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1473 2014-10-08 Gary Benson <gbenson@redhat.com>
1475 * common/common-defs.h: Include common-exceptions.h.
1476 * exceptions.h: Do not include common-exceptions.h.
1478 2014-10-08 Gary Benson <gbenson@redhat.com>
1480 * common/common-defs.h: Include cleanups.h.
1481 * common/common-exceptions.c: Do not include cleanups.h.
1482 * utils.h: Likewise.
1484 2014-10-08 Gary Benson <gbenson@redhat.com>
1486 * ada-lang.c: Do not include exceptions.h.
1487 * ada-valprint.c: Likewise.
1488 * amd64-tdep.c: Likewise.
1489 * auto-load.c: Likewise.
1490 * block.c: Likewise.
1491 * break-catch-throw.c: Likewise.
1492 * breakpoint.c: Likewise.
1493 * btrace.c: Likewise.
1494 * c-lang.c: Likewise.
1495 * cli/cli-cmds.c: Likewise.
1496 * cli/cli-interp.c: Likewise.
1497 * cli/cli-script.c: Likewise.
1498 * completer.c: Likewise.
1499 * corefile.c: Likewise.
1500 * corelow.c: Likewise.
1501 * cp-abi.c: Likewise.
1502 * cp-support.c: Likewise.
1503 * cp-valprint.c: Likewise.
1504 * darwin-nat.c: Likewise.
1505 * dwarf2-frame-tailcall.c: Likewise.
1506 * dwarf2-frame.c: Likewise.
1507 * dwarf2loc.c: Likewise.
1508 * dwarf2read.c: Likewise.
1510 * event-loop.c: Likewise.
1511 * event-top.c: Likewise.
1512 * f-valprint.c: Likewise.
1513 * frame-unwind.c: Likewise.
1514 * frame.c: Likewise.
1515 * gdbtypes.c: Likewise.
1516 * gnu-v2-abi.c: Likewise.
1517 * gnu-v3-abi.c: Likewise.
1518 * guile/scm-auto-load.c: Likewise.
1519 * guile/scm-breakpoint.c: Likewise.
1520 * guile/scm-cmd.c: Likewise.
1521 * guile/scm-frame.c: Likewise.
1522 * guile/scm-lazy-string.c: Likewise.
1523 * guile/scm-param.c: Likewise.
1524 * guile/scm-symbol.c: Likewise.
1525 * guile/scm-type.c: Likewise.
1526 * hppa-hpux-tdep.c: Likewise.
1527 * i386-tdep.c: Likewise.
1528 * inf-loop.c: Likewise.
1529 * infcall.c: Likewise.
1530 * infcmd.c: Likewise.
1531 * infrun.c: Likewise.
1532 * interps.c: Likewise.
1533 * interps.h: Likewise.
1535 * linespec.c: Likewise.
1536 * linux-nat.c: Likewise.
1537 * linux-thread-db.c: Likewise.
1538 * m32r-rom.c: Likewise.
1540 * memory-map.c: Likewise.
1541 * mi/mi-cmd-break.c: Likewise.
1542 * mi/mi-cmd-stack.c: Likewise.
1543 * mi/mi-interp.c: Likewise.
1544 * mi/mi-main.c: Likewise.
1545 * monitor.c: Likewise.
1546 * nto-procfs.c: Likewise.
1547 * objc-lang.c: Likewise.
1548 * p-valprint.c: Likewise.
1549 * parse.c: Likewise.
1550 * ppc-linux-tdep.c: Likewise.
1551 * printcmd.c: Likewise.
1552 * probe.c: Likewise.
1553 * python/py-auto-load.c: Likewise.
1554 * python/py-breakpoint.c: Likewise.
1555 * python/py-cmd.c: Likewise.
1556 * python/py-finishbreakpoint.c: Likewise.
1557 * python/py-frame.c: Likewise.
1558 * python/py-framefilter.c: Likewise.
1559 * python/py-function.c: Likewise.
1560 * python/py-gdb-readline.c: Likewise.
1561 * python/py-inferior.c: Likewise.
1562 * python/py-infthread.c: Likewise.
1563 * python/py-lazy-string.c: Likewise.
1564 * python/py-linetable.c: Likewise.
1565 * python/py-param.c: Likewise.
1566 * python/py-prettyprint.c: Likewise.
1567 * python/py-symbol.c: Likewise.
1568 * python/py-type.c: Likewise.
1569 * python/py-value.c: Likewise.
1570 * python/python-internal.h: Likewise.
1571 * python/python.c: Likewise.
1572 * record-btrace.c: Likewise.
1573 * record-full.c: Likewise.
1574 * regcache.c: Likewise.
1575 * remote-fileio.c: Likewise.
1576 * remote-mips.c: Likewise.
1577 * remote.c: Likewise.
1578 * rs6000-aix-tdep.c: Likewise.
1579 * rs6000-nat.c: Likewise.
1581 * solib-darwin.c: Likewise.
1582 * solib-dsbt.c: Likewise.
1583 * solib-frv.c: Likewise.
1584 * solib-ia64-hpux.c: Likewise.
1585 * solib-spu.c: Likewise.
1586 * solib-svr4.c: Likewise.
1587 * solib.c: Likewise.
1588 * spu-tdep.c: Likewise.
1589 * stack.c: Likewise.
1590 * stap-probe.c: Likewise.
1591 * symfile-mem.c: Likewise.
1592 * symmisc.c: Likewise.
1593 * target.c: Likewise.
1594 * thread.c: Likewise.
1596 * tracepoint.c: Likewise.
1597 * tui/tui-interp.c: Likewise.
1598 * typeprint.c: Likewise.
1599 * utils.c: Likewise.
1600 * valarith.c: Likewise.
1601 * valops.c: Likewise.
1602 * valprint.c: Likewise.
1603 * value.c: Likewise.
1604 * varobj.c: Likewise.
1605 * windows-nat.c: Likewise.
1606 * xml-support.c: Likewise.
1608 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1610 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1612 (extended_mips16_next_pc): Update accordingly.
1614 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1616 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1618 (micromips_instruction_is_compact_branch): Likewise.
1619 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1620 or a compact jump, reaching a jump delay slot, or seeing a
1621 second non-prologue instruction.
1622 (micromips_scan_prologue): Also terminate scanning upon seeing a
1623 compact branch or jump, or reaching a branch or jump delay slot.
1624 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1625 or jump delay slot, or seeing a second non-prologue instruction.
1626 (mips32_instruction_has_delay_slot): Retain instruction
1627 examination code only, update arguments accordingly and move
1628 instruction fetch pieces to...
1629 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1630 (micromips_instruction_has_delay_slot): Likewise and to...
1631 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1632 (mips16_instruction_has_delay_slot): Likewise and to...
1633 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1634 (mips_single_step_through_delay): Update accordingly.
1635 (mips_adjust_breakpoint_address): Likewise.
1637 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1639 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1640 !mustbe32 also return 1 for 32-bit instructions.
1641 (mips16_instruction_has_delay_slot): Likewise. Add an
1642 explanatory comment.
1644 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1646 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1649 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1651 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1653 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1654 for the breakpoint's address. Don't preinitialize `placed_size'.
1655 (insert_bp_location): Set `reqstd_address' rather than
1657 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1658 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1660 (bkpt_remove_location): Likewise.
1661 (deprecated_insert_raw_breakpoint): Likewise.
1662 (deprecated_remove_raw_breakpoint): Likewise.
1663 (find_single_step_breakpoint): Likewise.
1664 * mem-break.c (default_memory_insert_breakpoint): Use
1665 `reqstd_address' for the breakpoint's address. Don't set
1666 `placed_address' or `placed_size' if breakpoint contents couldn't
1667 have been determined.
1668 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1669 the breakpoint's address.
1670 (remote_insert_hw_breakpoint): Likewise. Don't set
1671 `placed_address' or `placed_size' if breakpoint couldn't have been
1673 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1674 `reqstd_address' for the breakpoint's address.
1675 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1676 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1677 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1678 * microblaze-linux-tdep.c
1679 (microblaze_linux_memory_remove_breakpoint): Likewise.
1680 * monitor.c (monitor_insert_breakpoint): Likewise.
1681 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1682 (procfs_insert_hw_breakpoint): Likewise.
1683 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1684 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1685 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1686 * remote-mips.c (mips_insert_breakpoint): Likewise.
1687 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1689 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1691 * valops.c (value_assign): Check for bit field assignments
1692 before calling architecture-specific register value
1693 conversion functions.
1695 2014-10-03 Pierre Muller <muller@sourceware.org>
1697 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1699 2014-10-02 Pedro Alves <palves@redhat.com>
1701 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1702 threads_are_executing.
1703 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1705 * gdbthread.h (threads_are_executing): Declare.
1706 (handle_signal_stop) <random signals>: Don't print about the
1707 signal here if stopping.
1708 (end_stepping_range): Don't notify observers here.
1709 (normal_stop): Update the thread list. If stopped by a random
1710 signal or a stepping range ended, notify observers.
1711 * thread.c (threads_executing): New global.
1712 (init_thread_list): Clear 'threads_executing'.
1713 (set_executing): Set or clear 'threads_executing'.
1714 (threads_are_executing): New function.
1715 (update_threads_executing): New function.
1716 (update_thread_list): Use it.
1718 2014-10-02 Pedro Alves <palves@redhat.com>
1720 PR breakpoints/17431
1721 * breakpoint.c (update_breakpoints_after_exec): Don't create
1722 overlay, longjmp, std terminate nor exception breakpoints here.
1724 2014-10-02 Pedro Alves <palves@redhat.com>
1726 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1728 * inferior.c (find_inferior_for_program_space): Give preference to
1729 the current inferior.
1730 * inferior.h (find_inferior_for_program_space): Update comment.
1731 * progspace.c (switch_to_program_space_and_thread): Prefer the
1732 current inferior if it's bound to the program space requested. If
1733 the inferior found doesn't have a PID yet, don't bother looking up
1735 * progspace.h (switch_to_program_space_and_thread): Adjust
1737 * thread.c (any_thread_of_process, any_live_thread_of_process):
1738 Give preference to the current thread.
1740 2014-10-01 Pedro Alves <palves@redhat.com>
1742 * breakpoint.c (insert_bp_location): Error out if inserting a
1743 software breakpoint at a read-only address.
1744 * target.c (memory_xfer_check_region): New function, factored out
1746 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1748 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1749 against the memory region attributes.
1751 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1753 * NEWS: Announce new exit-code field in -list-thread-groups
1755 * inferior.c (exit_inferior_1): Don't clear exit code.
1756 (inferior_appeared): Clear exit code.
1757 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1760 2014-10-01 Pedro Alves <palves@redhat.com>
1762 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1763 GENERATED" along with emacs/vi read-only markers.
1764 * regformats/aarch64.dat: Regenerate.
1765 * regformats/arm-with-iwmmxt.dat: Regenerate.
1766 * regformats/arm-with-neon.dat: Regenerate.
1767 * regformats/arm-with-vfpv2.dat: Regenerate.
1768 * regformats/arm-with-vfpv3.dat: Regenerate.
1769 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1770 * regformats/i386/amd64-avx.dat: Regenerate.
1771 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1772 * regformats/i386/amd64-avx512.dat: Regenerate.
1773 * regformats/i386/amd64-linux.dat: Regenerate.
1774 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1775 * regformats/i386/amd64-mpx.dat: Regenerate.
1776 * regformats/i386/amd64.dat: Regenerate.
1777 * regformats/i386/i386-avx-linux.dat: Regenerate.
1778 * regformats/i386/i386-avx.dat: Regenerate.
1779 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1780 * regformats/i386/i386-avx512.dat: Regenerate.
1781 * regformats/i386/i386-linux.dat: Regenerate.
1782 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1783 * regformats/i386/i386-mmx.dat: Regenerate.
1784 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1785 * regformats/i386/i386-mpx.dat: Regenerate.
1786 * regformats/i386/i386.dat: Regenerate.
1787 * regformats/i386/x32-avx-linux.dat: Regenerate.
1788 * regformats/i386/x32-avx.dat: Regenerate.
1789 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1790 * regformats/i386/x32-avx512.dat: Regenerate.
1791 * regformats/i386/x32-linux.dat: Regenerate.
1792 * regformats/i386/x32.dat: Regenerate.
1793 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1794 * regformats/mips-dsp-linux.dat: Regenerate.
1795 * regformats/mips-linux.dat: Regenerate.
1796 * regformats/mips64-dsp-linux.dat: Regenerate.
1797 * regformats/mips64-linux.dat: Regenerate.
1798 * regformats/nios2-linux.dat: Regenerate.
1799 * regformats/rs6000/powerpc-32.dat: Regenerate.
1800 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1801 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1802 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1803 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1804 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1805 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1806 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1807 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1808 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1809 * regformats/s390-linux32.dat: Regenerate.
1810 * regformats/s390-linux32v1.dat: Regenerate.
1811 * regformats/s390-linux32v2.dat: Regenerate.
1812 * regformats/s390-linux64.dat: Regenerate.
1813 * regformats/s390-linux64v1.dat: Regenerate.
1814 * regformats/s390-linux64v2.dat: Regenerate.
1815 * regformats/s390-te-linux64.dat: Regenerate.
1816 * regformats/s390x-linux64.dat: Regenerate.
1817 * regformats/s390x-linux64v1.dat: Regenerate.
1818 * regformats/s390x-linux64v2.dat: Regenerate.
1819 * regformats/s390x-te-linux64.dat: Regenerate.
1820 * regformats/tic6x-c62x-linux.dat: Regenerate.
1821 * regformats/tic6x-c62x.dat: Regenerate.
1822 * regformats/tic6x-c64x-linux.dat: Regenerate.
1823 * regformats/tic6x-c64x.dat: Regenerate.
1824 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1825 * regformats/tic6x-c64xp.dat: Regenerate.
1827 2014-10-01 Pedro Alves <palves@redhat.com>
1829 * features/Makefile: Update comments.
1830 (XMLTOC): List all xml files we build C files from.
1831 (clean-cfiles): New rule.
1833 2014-10-01 Pedro Alves <palves@redhat.com>
1835 * features/i386/amd64-avx512-linux.c: Regenerate.
1836 * features/i386/amd64-avx512.c: Regenerate.
1837 * features/i386/x32-avx512-linux.c: Regenerate.
1838 * features/i386/x32-avx512.c: Regenerate.
1840 2014-10-01 Pedro Alves <palves@redhat.com>
1842 * features/Makefile (WHICH): Remove arm-with-m,
1843 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1845 2014-10-01 Pedro Alves <palves@redhat.com>
1847 * features/Makefile (clean): New rule.
1849 2014-10-01 Pedro Alves <palves@redhat.com>
1851 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1852 (zmm14h): Add missing end quotes.
1854 2014-10-01 Pedro Alves <palves@redhat.com>
1856 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1857 * features/aarch64.c: Regenerate.
1859 2014-09-30 Don Breazeal <donb@codesourcery.com>
1861 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1862 code so as to work with follow_fork_inferior.
1863 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1864 (inf_ttrace_create_inferior): Remove reference to
1865 inf_ttrace_vfork_ppid.
1866 (inf_ttrace_attach): Ditto.
1867 (inf_ttrace_detach): Ditto.
1868 (inf_ttrace_kill): Use current_inferior instead of
1869 inf_ttrace_vfork_ppid.
1870 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1871 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1872 inferior away from the parent.
1873 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1875 (follow_fork_inferior): New function.
1876 (follow_inferior_reset_breakpoints): Make function static.
1877 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1878 * linux-nat.c (linux_child_follow_fork): Move target-independent
1879 code to infrun.c:follow_fork_inferior.
1881 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1883 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1884 * gdbarch.c: Regenerate.
1885 * gdbarch.h: Likewise.
1886 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1887 gdbarch method 'regset_from_core_section'.
1888 (get_core_register_section): Remove handling for the case that
1889 regset == NULL and regset_from_core_section is defined.
1890 (get_core_registers): Drop check for deleted method.
1891 * procfs.c (procfs_do_thread_registers): Adjust comment.
1893 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1895 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1896 (linux_nat_make_corefile_notes): Remove.
1897 (linux_target_install_ops): Do not set target method
1898 'make_corefile_notes'.
1899 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1901 (linux_corefile_thread_callback): Instead of args->collect, call
1902 linux_collect_thread_registers.
1903 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1904 NULL unless there is a regset iterator.
1905 (linux_make_corefile_notes_1): Remove.
1906 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1907 by linux_make_corefile_notes.
1908 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1910 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1912 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1913 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1915 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1917 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1919 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1920 (xtensa_iterate_over_regset_sections): New.
1921 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1923 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1925 * vax-tdep.c (vax_regset_from_core_section): Remove.
1926 (vax_iterate_over_regset_sections): New.
1927 (vax_gdbarch_init): Adjust gdbarch initialization.
1929 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1931 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1932 (tilegx_regset_from_core_section): Remove.
1933 (tilegx_iterate_over_regset_sections): New.
1934 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1936 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1938 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1939 (sparc_iterate_over_regset_sections): New.
1940 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1941 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1943 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1944 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1945 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1946 target method 'make_corefile_notes'.
1948 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1950 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1951 'sizeof_gregset' and 'sizeof_fpregset'.
1952 * sh-tdep.c (sh_regset_from_core_section): Remove.
1953 (sh_iterate_over_regset_sections): New.
1954 (sh_gdbarch_init): Adjust gdbarch initialization.
1955 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1957 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1960 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1962 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1963 (score7_linux_iterate_over_regset_sections): New.
1964 (score_gdbarch_init): Adjust gdbarch initialization.
1966 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1968 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1970 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1971 method 'make_corefile_notes'.
1972 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1973 (ppcfbsd_regset_from_core_section): Remove.
1974 (ppcfbsd_iterate_over_regset_sections): New.
1975 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1977 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1978 (ppcnbsd_iterate_over_regset_sections): New.
1979 (ppcnbsd_init_abi): Adjust.
1980 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1981 (ppcobsd_iterate_over_regset_sections): New.
1982 (ppcobsd_init_abi): Adjust.
1983 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1984 (rs6000_aix_iterate_over_regset_sections): New.
1985 (rs6000_aix_init_osabi): Adjust.
1987 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1989 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1990 (nios2_regset_from_core_section): Remove.
1991 (nios2_iterate_over_regset_sections): New.
1992 (nios2_linux_init_abi): Adjust gdbarch initialization.
1994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1997 (am33_iterate_over_regset_sections): New.
1998 (am33_linux_init_osabi): Adjust gdbarch initialization.
2000 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2002 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2003 (mips_linux_iterate_over_regset_sections): New.
2004 (mips_linux_init_abi): Adjust gdbarch initialization.
2005 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2006 (mips64obsd_iterate_over_regset_sections): New.
2007 (mips64obsd_init_abi): Adjust.
2008 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2009 (mipsnbsd_iterate_over_regset_sections): New.
2010 (mipsnbsd_init_abi): Adjust.
2012 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2015 (m88k_iterate_over_regset_sections): New.
2016 (m88k_gdbarch_init): Adjust gdbarch initialization.
2018 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2020 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2021 (ia64_linux_iterate_over_regset_sections): New.
2022 (ia64_linux_init_abi): Adjust gdbarch initialization.
2024 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2027 (m68kbsd_iterate_over_regset_sections): New.
2028 (m68kbsd_init_abi): Adjust gdbarch initialization.
2029 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2030 (m68k_linux_iterate_over_regset_sections): New.
2031 (m68k_linux_init_abi): Adjust gdbarch initialization.
2033 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2035 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2036 (m32r_linux_regset_from_core_section): Remove.
2037 (m32r_linux_iterate_over_regset_sections): New.
2038 (m32r_linux_init_abi): Adjust gdbarch initialization.
2040 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2042 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2043 (amd64obsd_iterate_over_regset_sections): New.
2044 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2045 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2047 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2048 regset_from_core_section initialization.
2049 * i386-tdep.c (i386_regset_from_core_section): Remove.
2050 (i386_iterate_over_regset_sections): New.
2051 (i386_gdbarch_init): Adjust gdbarch initialization.
2052 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2053 (i386_iterate_over_regset_sections): New prototype.
2054 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2056 (i386obsd_aout_iterate_over_regset_sections): New.
2057 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2058 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2060 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2061 (amd64fbsd_init_abi): Call fbsd_init_abi.
2062 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2063 (i386fbsd4_init_abi): Call fbsd_init_abi.
2064 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2065 target method 'make_corefile_notes'.
2066 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2071 (hppa_hpux_iterate_over_regset_sections): New.
2072 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2073 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2074 (hppa_linux_iterate_over_regset_sections): New.
2075 (hppa_linux_init_abi): Adjust.
2076 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2077 (hppanbsd_iterate_over_regset_sections): New.
2078 (hppanbsd_init_abi): Adjust.
2079 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2080 (hppaobsd_iterate_over_regset_sections): New.
2081 (hppaobsd_init_abi): Adjust.
2083 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2086 (frv_linux_iterate_over_regset_sections): New.
2087 (frv_linux_init_abi): Adjust gdbarch initialization.
2089 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2091 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2092 (armbsd_iterate_over_regset_sections): New prototype.
2093 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2094 (armbsd_iterate_over_regset_sections): New.
2095 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2101 (alpha_linux_iterate_over_regset_sections): New.
2102 (alpha_linux_init_abi): Adjust gdbarch initialization.
2103 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2105 (alphanbsd_iterate_over_regset_sections): New prototype.
2107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2111 (aarch64_linux_iterate_over_regset_sections): New.
2112 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116 * fbsd-tdep.c: New file.
2117 * fbsd-tdep.h: New file.
2118 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2119 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2120 (ALLDEPFILES): Add fbsd-tdep.c.
2122 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2124 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2126 * gdbarch.h: Regenerate.
2127 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2129 (get_core_register_section): Add parameter 'regset' and use it, if
2130 set. Add parameter 'min_size' and verify the bfd section size
2132 (get_core_registers_cb): Add parameter 'regset' and pass it to
2133 get_core_register section. For the "standard" register sections
2134 ".reg" and ".reg2", set an appropriate default for human_name.
2135 (get_core_registers): Don't abort when the gdbarch has an iterator
2136 but no regset_from_core_section. Add NULL/0 for parameters
2137 'regset'/'min_size' in calls to get_core_register_section.
2138 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2139 'regset' and use it instead of calling the
2140 regset_from_core_section gdbarch method.
2141 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2142 * i386-tdep.c (i386_supply_xstateregset)
2143 (i386_collect_xstateregset, i386_xstateregset): Moved to
2145 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2147 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2148 core file support only if the regset iterator hasn't been set.
2149 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2150 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2151 Moved from i386-tdep.c and renamed to *_linux*.
2152 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2153 each callback invocation. Allow any .reg-xstate size when reading
2155 * amd64-tdep.c (amd64_supply_xstateregset)
2156 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2158 (amd64_regset_from_core_section): Remove.
2159 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2160 install an amd64-specific regset_from_core_section gdbarch method.
2161 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2162 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2163 Moved from amd64-tdep.c and renamed to *_linux*.
2164 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2165 to each callback invocation. Allow any .reg-xstate size when
2166 reading from a core file.
2167 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2168 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2169 each callback invocation.
2170 (arm_linux_init_abi): No longer set the regset_from_core_section
2172 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2173 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2174 each callback invocation.
2175 (ppc_linux_init_abi): No longer set the regset_from_core_section
2177 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2178 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2179 (s390_regset_from_core_section): Remove.
2180 (s390_iterate_over_regset_sections): Add regset parameter to each
2181 callback invocation.
2182 (s390_gdbarch_init): No longer set the regset_from_core_section
2183 gdbarch method. Drop initialization of deleted tdep fields.
2185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2187 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2188 (amd64_linux_iterate_over_regset_sections): New.
2189 (amd64_linux_init_abi_common): Don't install the regset section
2190 list, but the new iterator in gdbarch.
2191 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2192 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2193 (arm_linux_iterate_over_regset_sections): ...here. New function.
2194 (arm_linux_init_abi): Set iterator instead of section list.
2195 * corelow.c (get_core_registers_cb): New function, logic moved
2197 (get_core_registers): ...loop body here. Use new iterator method
2198 instead of walking through the regset section list.
2199 * gdbarch.sh: Remove 'core_regset_sections'. New method
2200 'iterate_over_regset_sections'. New typedef
2201 'iterate_over_regset_sections_cb'.
2202 * gdbarch.c: Regenerate.
2203 * gdbarch.h: Likewise.
2204 * i386-linux-tdep.c (i386_linux_regset_sections)
2205 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2207 (i386_linux_iterate_over_regset_sections): New.
2208 (i386_linux_init_abi): Don't choose a regset section list, but
2209 install new iterator in gdbarch.
2210 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2211 (linux_collect_regset_section_cb): New function, logic moved
2213 (linux_collect_thread_registers): ...loop body here. Use iterator
2214 method instead of walking through list.
2215 (linux_make_corefile_notes_1): Check for presence of iterator
2216 method instead of regset section list.
2217 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2218 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2219 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2220 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2221 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2222 (ppc_linux_init_abi): Don't choose from above regset section
2223 lists, but install new iterator in gdbarch.
2224 * regset.h (struct core_regset_section): Remove.
2225 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2226 have_linux_v1, have_linux_v2, and have_tdb.
2227 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2228 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2229 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2230 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2231 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2232 (s390_iterate_over_regset_sections): ...here. New function. Use
2234 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2235 regset section lists, but install new iterator.
2237 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2239 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2241 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2243 * progspace.c (print_program_space): Don't prune program spaces
2244 before printing them.
2246 2014-09-25 Pedro Alves <palves@redhat.com>
2248 * infrun.c (user_visible_resume_ptid): Don't check
2249 singlestep_breakpoints_inserted_p.
2251 2014-09-25 Pedro Alves <palves@redhat.com>
2253 * breakpoint.c (should_be_inserted): Add debug output.
2255 2014-09-25 Pedro Alves <palves@redhat.com>
2257 * infrun.c (stepping_past_instruction_at)
2258 (clear_exit_convenience_vars): Point at infrun.h instead of
2260 (handle_signal_stop): Fix typo.
2262 2014-09-24 Yao Qi <yao@codesourcery.com>
2264 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2267 2014-09-22 Gary Benson <gbenson@redhat.com>
2269 * target.c (target_stop): Updated comment.
2271 2014-09-22 Gary Benson <gbenson@redhat.com>
2273 * target/target.h (target_stop_ptid): Renamed as...
2274 (target_stop_and_wait): New function. Updated comment.
2276 (target_continue_ptid): Renamed as...
2277 (target_continue_no_signal): New function. Updated comment.
2280 2014-09-22 Pedro Alves <palves@redhat.com>
2282 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2284 * breakpoint.c (enum ugll_insert_mode): New enum.
2285 (always_inserted_mode): Now a plain boolean.
2286 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2287 (breakpoints_always_inserted_mode): Delete.
2288 (breakpoints_should_be_inserted_now): New function.
2289 (insert_breakpoints): Pass UGLL_INSERT to
2290 update_global_location_list instead of calling
2291 insert_breakpoint_locations manually.
2292 (create_solib_event_breakpoint_1): New, factored out from ...
2293 (create_solib_event_breakpoint): ... this.
2294 (create_and_insert_solib_event_breakpoint): Use
2295 create_solib_event_breakpoint_1 instead of calling
2296 insert_breakpoint_locations manually.
2297 (update_global_location_list): Change parameter type from boolean
2298 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2299 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2300 (update_global_location_list_nothrow): Change parameter type from
2301 boolean to enum ugll_insert_mode.
2302 (_initialize_breakpoint): "breakpoint always-inserted" option is
2303 now a boolean command. Update help text.
2304 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2305 (breakpoints_should_be_inserted_now): New declaration.
2306 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2307 Remove breakpoints_always_inserted_mode check.
2308 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2309 * remote.c (remote_start_remote): Likewise.
2311 2014-09-22 Pedro Alves <palves@redhat.com>
2313 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2314 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2315 Instead, pass UGLL_INSERT to update_global_location_list.
2316 (update_global_location_list): Change parameter type from boolean
2317 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2318 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2319 (create_solib_event_breakpoint_1): New, factored out from ...
2320 (create_solib_event_breakpoint): ... this.
2321 (create_and_insert_solib_event_breakpoint): Use
2322 create_solib_event_breakpoint_1 instead of calling
2323 insert_breakpoint_locations manually.
2324 (update_global_location_list): Handle UGLL_INSERT.
2326 2014-09-22 Pedro Alves <palves@redhat.com>
2328 * breakpoint.c (enum ugll_insert_mode): New enum.
2329 (update_global_location_list)
2330 (update_global_location_list_nothrow): Change parameter type from
2331 boolean to enum ugll_insert_mode. All callers adjusted.
2333 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2335 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2336 SystemTap support in GDB.
2338 2014-09-19 Don Breazeal <donb@codesourcery.com>
2340 * linux-nat.c (linux_handle_extended_wait): Call
2341 linux_ptrace_get_extended_event.
2342 (wait_lwp): Call linux_is_extended_waitstatus.
2343 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2344 and linux_is_extended_waitstatus.
2345 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2346 linux_ptrace_get_extended_event.
2347 (linux_ptrace_get_extended_event): New function.
2348 (linux_is_extended_waitstatus): New function.
2349 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2350 (linux_is_extended_waitstatus): New declarations.
2352 2014-09-19 Yao Qi <yao@codesourcery.com>
2354 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2355 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2356 comments. Callers update.
2357 (dwarf_decode_lines): Likewise.
2358 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2359 comments. Skip the line table if 'lowpc' is greater than
2360 'address'. Don't check
2361 dwarf2_per_objfile->has_section_at_zero.
2363 2014-09-18 Doug Evans <dje@google.com>
2365 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2366 * python/py-symtab.c (stpy_get_producer): New function.
2367 (symtab_object_getset): Add "producer" attribute.
2369 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2372 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2373 (do_captured_read_memory_integer): Remove.
2374 (safe_read_memory_integer): Use target_read_memory directly instead
2375 of catching errors in do_captured_read_memory_integer.
2377 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2379 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2382 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2384 * objc-lang.c (find_implementation_from_class): Remove dead code.
2386 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2389 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2390 "fprintf_unfiltered (gdb_stdlog...)".
2392 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2394 PR breakpoints/12526
2395 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2397 * breakpoint.c (watch_command_1): Use these fields to retain
2398 bitfield information.
2399 (extract_bitfield_from_watchpoint_value): New function.
2400 (watchpoint_check): Use it.
2401 (update_watchpoint): Use it. Optimize the address and length of a
2402 HW watchpoint pointing to a bitfield.
2403 * value.h (unpack_value_bitfield): New prototype.
2404 * value.c (unpack_value_bitfield): Make extern.
2406 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2408 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2410 * gnu-nat.c (inf_threads): New function.
2411 * gnu-nat.h (inf_threads_ftype): New typedef.
2412 (inf_threads): New declaration.
2413 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2414 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2415 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2416 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2417 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2418 (i386_gnu_dr_get_control): New functions.
2419 (reg_addr): New structure.
2420 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2421 i386 debugging register hooks.
2422 * NEWS: Mention this.
2424 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2426 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2427 vector data transfer instructions.
2428 (arm_record_coproc_data_proc): Updated.
2430 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2432 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2433 arm_record_exreg_ld_st_insn.
2434 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2437 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2439 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2440 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2441 processing instructions.
2443 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2445 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2446 for advance SIMD struct ld/st insn.
2447 (thumb2_record_decode_insn_handler): Replace stub handler with
2448 thumb2_record_asimd_struct_ld_st.
2450 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2452 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2453 for asimd, vfp and coprocessor insns.
2454 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2455 and coprocessor insns.
2456 (thumb2_record_coproc_insn): New function.
2457 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2459 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2462 2014-09-13 Doug Evans <xdje42@gmail.com>
2464 * NEWS: Mention new "queue-signal" command.
2465 * infcmd.c (queue_signal_command): New function.
2466 (_initialize_infcmd): Add new queue-signal command.
2468 2014-09-13 Doug Evans <xdje42@gmail.com>
2470 * linux-nat.c (wait_lwp): Add debugging printf.
2471 (linux_nat_wait_1): Ditto.
2473 2014-09-12 Pedro Alves <palves@redhat.com>
2475 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2476 (create_and_insert_solib_event_breakpoint): New functions.
2477 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2478 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2479 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2480 (remove_dbx_link_breakpoint): Delete function.
2481 (insert_dbx_link_bpt_in_file): Use
2482 create_and_insert_solib_event_breakpoint instead of
2483 deprecated_insert_raw_breakpoint.
2484 (procfs_wait): Don't check whether we hit __dbx_link here.
2485 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2487 * solib-irix.c (base_breakpoint): Delete global.
2488 (disable_break): Delete function.
2489 (enable_break): Use create_solib_event_breakpoint
2490 instead of deprecated_insert_raw_breakpoint.
2491 (irix_solib_handle_event): New function.
2492 (irix_solib_create_inferior_hook): Don't run the target or disable
2493 the mapping-complete breakpoint here.
2494 (_initialize_irix_solib): Install irix_solib_handle_event as
2495 so_ops->handle_event hook.
2497 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2498 Ulrich Weigand <uweigand@de.ibm.com>
2501 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2502 instead of read_memory_unsigned_integer.
2504 2014-09-12 Gary Benson <gbenson@redhat.com>
2506 * nat/linux-waitpid.c: Include common-defs.h.
2507 [GDBSERVER]: Add FIXME comment.
2508 [!GDBSERVER]: Don't include defs.h or signal.h.
2509 (linux_debug) [!GDBSERVER]: Remove empty block.
2511 2014-09-12 Gary Benson <gbenson@redhat.com>
2513 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2514 Don't include defs.h or server.h.
2516 2014-09-12 Gary Benson <gbenson@redhat.com>
2518 * nat/linux-btrace.c: Include common-defs.h.
2519 Don't include defs.h, server.h or gdbthread.h.
2520 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2522 2014-09-12 Gary Benson <gbenson@redhat.com>
2524 * common/agent.c: Include common-defs.h.
2525 Don't include defs.h or server.h.
2526 * common/buffer.c: Likewise.
2527 * common/common-debug.c: Likewise.
2528 * common/common-utils.c: Likewise.
2529 * common/errors.c: Likewise.
2530 * common/filestuff.c: Likewise.
2531 * common/format.c: Likewise.
2532 * common/gdb_vecs.c: Likewise.
2533 * common/print-utils.c: Likewise.
2534 * common/ptid.c: Likewise.
2535 * common/rsp-low.c: Likewise.
2536 * common/signals.c: Likewise.
2537 * common/vec.c: Likewise.
2538 * common/xml-utils.c: Likewise.
2539 * nat/linux-osdata.c: Likewise.
2540 * nat/linux-procfs.c: Likewise.
2541 * nat/linux-ptrace.c: Likewise.
2542 * nat/mips-linux-watch.c: Likewise.
2543 * target/waitstatus.c: Likewise.
2545 2014-09-12 Tom Tromey <tromey@redhat.com>
2546 Gary Benson <gbenson@redhat.com>
2548 * common/common-regcache.h: New file.
2549 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2550 * regcache.h: Include common-regcache.h.
2551 (regcache_read_pc): Don't declare.
2552 * regcache.c (get_thread_regcache_for_ptid): New function.
2553 * nat/linux-btrace.c: Don't include regcache.h.
2554 Include common-regcache.h.
2555 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2557 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2559 * regcache.h (struct regset): Declare.
2561 2014-09-11 Pedro Alves <palves@redhat.com>
2564 * main.c: Include "infrun.h".
2565 (catch_command_errors, catch_command_errors_const): Wait for the
2566 foreground command to complete.
2567 * top.c (maybe_wait_sync_command_done): New function, factored out
2569 (maybe_wait_sync_command_done): ... here.
2570 * top.h (maybe_wait_sync_command_done): New declaration.
2572 2014-09-11 Tom Tromey <tromey@redhat.com>
2573 Gary Benson <gbenson@redhat.com>
2575 * common/symbol.h: New file.
2576 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2577 * minsyms.c (find_minimal_symbol_address): New function.
2578 * common/agent.c: Include common/symbol.h.
2579 [!GDBSERVER]: Don't include objfiles.h.
2580 (agent_look_up_symbols): Use find_minimal_symbol_address.
2582 2014-09-11 Gary Benson <gbenson@redhat.com>
2584 * target/target.h (target_stop_ptid, target_continue_ptid):
2586 * target.c (target_stop_ptid, target_continue_ptid): New
2588 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2589 (agent_run_command): Always use target_stop_ptid and
2590 target_continue_ptid.
2592 2014-09-11 Tom Tromey <tromey@redhat.com>
2593 Gary Benson <gbenson@redhat.com>
2595 * target/target.h: New file.
2596 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2597 * target.h: Include target/target.h.
2598 (target_read_memory, target_write_memory): Don't declare.
2599 * target.c (target_read_uint32): New function.
2600 * common/agent.c: Include target/target.h.
2601 [!GDBSERVER]: Don't include target.h.
2602 (helper_thread_id): Type changed to uint32_t.
2603 (agent_get_helper_thread_id): Use target_read_uint32.
2604 (agent_run_command): Always use target_read_memory and
2605 target_write_memory.
2606 (agent_capability): Type changed to uint32_t.
2607 (agent_capability_check): Use target_read_uint32.
2609 2014-09-11 Gary Benson <gbenson@redhat.com>
2611 * common/common-debug.h (show_debug_regs): Declare.
2612 * common/common-debug.c (show_debug_regs): Define.
2613 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2614 all uses with show_debug_regs. Replace all uses that considered
2615 debug_hw_points as a multi-value integer with straight boolean
2617 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2618 with show_debug_regs.
2619 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2620 all uses with show_debug_regs.
2621 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2622 uses with show_debug_regs.
2624 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2626 * findvar.c (address_from_register): Handle targets requiring
2627 a special conversion routine even for plain pointer types.
2629 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2631 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2632 (store_register): Do not call exec_one_dummy_insn.
2634 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2636 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2637 dereference it first. Use value_enclosing_type instead of
2639 (ada_array_length): Likewise.
2641 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2643 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2644 Adjust function implementation and documentation accordingly.
2645 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2646 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2647 Update call to ada_value_ptr_subscript.
2649 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2651 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2652 instead of VAL's type.
2654 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2656 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2658 2014-09-09 Doug Evans <xdje42@gmail.com>
2661 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2662 last parameter to pkg-config, not first.
2663 * configure.ac: Pass --with-guile provided pkg-config path to
2664 GDB_GUILE_PROGRAM_NAMES.
2665 * configure: Regenerate.
2667 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2669 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2672 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2674 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2675 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2676 the list of sections determining GDB_OSABI_IRIX.
2678 2014-09-09 James Hogan <james.hogan@imgtec.com>
2680 * MAINTAINERS (Write After Approval): Add "James Hogan".
2682 2014-09-09 James Hogan <james.hogan@imgtec.com>
2684 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2686 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2688 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2690 2014-09-08 Doug Evans <xdje42@gmail.com>
2693 * guile.c: #include <signal.h>.
2694 (_initialize_guile): Block SIGCHLD while initializing Guile.
2696 Replaces the following, which is reverted.
2698 2014-07-26 Doug Evans <xdje42@gmail.com>
2701 * configure.ac: Add check for header gc/gc.h.
2702 Add check for function setenv.
2703 * configure: Regenerate.
2704 * config.in: Regenerate.
2705 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2707 2014-09-08 Doug Evans <xdje42@gmail.com>
2709 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2710 with named constant. Fix style of pointer comparison.
2711 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2713 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2716 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2717 decide whether we display the command on "show user".
2718 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2719 printing command name.
2720 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2721 * cli/cli-decode.c (cli_user_command_p): Create helper function
2722 to verify whether cmd_list_element is a user-defined command.
2724 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2727 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2728 Fix goto out of TRY_CATCH.
2730 2014-09-06 Doug Evans <xdje42@gmail.com>
2731 Tom Tromey <tromey@redhat.com>
2734 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2735 $_any_caller_matches.
2736 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2737 * python/lib/gdb/function/caller_is.py: New file.
2739 2014-09-06 Doug Evans <xdje42@gmail.com>
2741 * infcmd.c (program_info): Fix typo.
2743 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2746 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2747 'number'. New variable 'has_digit'. Rewrite code to deal with
2748 subexpressions on SDT probes.
2750 2014-09-04 Pedro Alves <palves@redhat.com>
2752 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2753 the input is only one character long.
2755 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2758 * f-valprint.c (f_val_print): Specify the correct print option to
2759 use when printing integer values.
2761 2014-09-04 Gary Benson <gbenson@redhat.com>
2763 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2764 Remove code to cope with LWPs wrapped as PIDs.
2765 Add assertions to ensure no wrapped LWPs are passed.
2767 2014-09-04 Pedro Alves <palves@redhat.com>
2769 * value.c (value_ranges_copy_adjusted): New function, factored out
2771 (value_contents_copy_raw): ... here.
2772 (unpack_value_bits_as_long_1): Rename back to ...
2773 (unpack_bits_as_long): ... this. Remove 'original_value' and
2774 'result' parameters. Change return type to LONGEST.
2775 (unpack_value_bits_as_long): Delete.
2776 (unpack_value_field_as_long_1): Delete.
2777 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2778 (unpack_value_bitfield): New function.
2779 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2780 (value_fetch_lazy): Use unpack_value_bitfield.
2781 * value.h (unpack_value_bits_as_long): Delete declaration.
2783 2014-09-03 Sasha Smundak <asmundak@google.com>
2785 * python/py-frame.c (frapy_read_register): New function.
2787 2014-09-03 James Hogan <james.hogan@imgtec.com>
2789 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2790 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2792 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2795 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2797 (add_cmd): Set "completer_handle_brkchars" to NULL.
2798 * cli/cli-decode.h (struct cmd_list_element)
2799 <completer_handle_brkchars>: New field.
2800 * command.h (completer_ftype_void): New typedef.
2801 (set_cmd_completer_handle_brkchars): New prototype.
2802 * completer.c (set_gdb_completion_word_break_characters): New
2804 (complete_line_internal): Call "completer_handle_brkchars"
2805 callback from command.
2806 * completer.h: Include "command.h".
2807 (set_gdb_completion_word_break_characters): New prototype.
2808 * python/py-cmd.c (cmdpy_completer_helper): New function.
2809 (cmdpy_completer_handle_brkchars): New function.
2810 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2811 (cmdpy_init): Set completer_handle_brkchars to
2812 cmdpy_completer_handle_brkchars.
2814 2014-09-03 Gary Benson <gbenson@redhat.com>
2816 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2817 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2818 Loop conditions changed to equivalent form.
2819 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2820 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2821 ALL_DEBUG_ADDRESS_REGISTERS.
2823 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2825 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2828 2014-09-02 Doug Evans <dje@google.com>
2830 * typeprint.c (find_global_typedef): Fix comment.
2832 2014-09-02 Gary Benson <gbenson@redhat.com>
2834 * i386-nat.h: Renamed as...
2835 * x86-nat.h: New file. All type, function and variable name
2836 prefixes changed from "i386_" to "x86_". All references updated.
2837 * i386-nat.c: Renamed as...
2838 * x86-nat.c: New file. All type, function and variable name
2839 prefixes changed from "i386_" to "x86_". All references updated.
2840 * common/i386-xstate.h: Renamed as...
2841 * common/x86-xstate.h: New file. All type, function and variable
2842 name prefixes changed from "i386_" to "x86_". All references
2844 * nat/i386-cpuid.h: Renamed as...
2845 * nat/x86-cpuid.h: New file. All type, function and variable name
2846 prefixes changed from "i386_" to "x86_". All references updated.
2847 * nat/i386-gcc-cpuid.h: Renamed as...
2848 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2849 name prefixes changed from "i386_" to "x86_". All references
2851 * nat/i386-dregs.h: Renamed as...
2852 * nat/x86-dregs.h: New file. All type, function and variable name
2853 prefixes changed from "i386_" to "x86_". All references updated.
2854 * nat/i386-dregs.c: Renamed as...
2855 * nat/x86-dregs.c: New file. All type, function and variable name
2856 prefixes changed from "i386_" to "x86_". All references updated.
2858 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2860 * varobj.c (_initialize_varobj): Move to the end of file.
2862 2014-08-29 Gary Benson <gbenson@redhat.com>
2864 * common/common-exceptions.h: New file.
2865 * common/common-exceptions.c: Likewise.
2866 * Makefile.in (SFILES): Add common/common-exceptions.c.
2867 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2868 (COMMON_OBS): Add common-exceptions.o.
2869 (common-exceptions.o): New rule.
2870 * exceptions.h (common-exceptions.h): Include.
2871 (gdb_setjmp.h): Do not include.
2872 (return_reason): Moved to common-exceptions.h.
2873 (enum return_reason): Likewise.
2874 (RETURN_MASK): Likewise.
2875 (typedef return_mask): Likewise.
2876 (enum errors): Likewise.
2877 (struct gdb_exception): Likewise.
2878 (exceptions_state_mc_init): Likewise.
2879 (exceptions_state_mc_action_iter): Likewise.
2880 (exceptions_state_mc_action_iter_1): Likewise.
2881 (TRY_CATCH): Likewise.
2882 (throw_exception): Likewise.
2883 (throw_verror): Likewise.
2884 (throw_vquit): Likewise.
2885 (throw_error): Likewise.
2886 (throw_quit): Likewise.
2887 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2888 (enum catcher_action): Likewise.
2889 (struct catcher): Likewise.
2890 (current_catcher): Likewise.
2891 (catcher_list_size): Likewise.
2892 (exceptions_state_mc_init): Likewise.
2893 (catcher_pop): Likewise.
2894 (exceptions_state_mc): Likewise.
2895 (exceptions_state_mc_action_iter): Likewise.
2896 (exceptions_state_mc_action_iter_1): Likewise.
2897 (throw_exception): Likewise.
2898 (exception_messages): Likewise.
2899 (exception_messages_size): Likewise.
2900 (throw_it): Likewise.
2901 (throw_verror): Likewise.
2902 (throw_vquit): Likewise.
2903 (throw_error): Likewise.
2904 (throw_quit): Likewise.
2905 (prepare_to_throw_exception): New function.
2907 2014-08-29 Gary Benson <gbenson@redhat.com>
2909 * common/gdb_setjmp.h: New file.
2910 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2911 * configure.ac: Move sigsetjmp check...
2912 * common/common.m4: ...here.
2913 * configure: Regenerate.
2914 * cp-support.c (SIGJMP_BUF): Delete.
2915 (SIGSETJMP): Likewise.
2916 (SIGLONGJMP): Likewise.
2917 * exceptions.h (gdb_setjmp.h): Include.
2918 (setjmp.h): Do not include.
2919 (EXCEPTIONS_SIGJMP_BUF): Delete.
2920 (EXCEPTIONS_SIGSETJMP): Likewise.
2921 (EXCEPTIONS_SIGLONGJMP): Likewise.
2922 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2924 * exceptions.c: Likewise.
2926 2014-08-29 Gary Benson <gbenson@redhat.com>
2928 * cleanups.h: Moved to...
2929 * common/cleanups.h: New file.
2930 * cleanups.c: Moved to...
2931 * common/cleanups.c: New file. Include common-defs.h and
2932 cleanups.h. Do not include defs.h.
2933 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2934 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2935 (cleanups.o): New rule.
2937 2014-08-29 Gary Benson <gbenson@redhat.com>
2939 * common/errors.h (internal_warning): New declaration.
2940 (internal_vwarning): Likewise.
2941 * common/errors.c (internal_warning): New function.
2942 * utils.h (internal_warning): Don't declare.
2943 (internal_vwarning): Likewise.
2944 * utils.c (internal_warning): Removed.
2946 2014-08-29 Gary Benson <gbenson@redhat.com>
2948 * main.c (captured_main): Use warning during startup.
2949 Prefix startup warning messages with command name.
2951 2014-08-29 Gary Benson <gbenson@redhat.com>
2953 * main.c (captured_main): Handle usage errors with error.
2955 2014-08-29 Gary Benson <gbenson@redhat.com>
2957 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2958 exit pair with a call to error. Wrap the message with _().
2960 2014-08-29 Gary Benson <gbenson@redhat.com>
2962 * main.c (captured_main): Replace a fprintf/exit
2963 pair with a call to error. Wrap the message with _().
2965 2014-08-29 Gary Benson <gbenson@redhat.com>
2967 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2968 pairs with calls to error. Wrap the message with _().
2970 2014-08-29 Gary Benson <gbenson@redhat.com>
2972 * utils.c (vwarning): Protect calls to target_terminal_ours
2975 2014-08-29 Gary Benson <gbenson@redhat.com>
2977 * exceptions.c (print_flush): Protect calls to
2978 target_terminal_ours and wrap_here.
2980 2014-08-29 Gary Benson <gbenson@redhat.com>
2982 * utils.h (filtered_printing_initialized): New declaration.
2983 * utils.c (abort_with_message): New function.
2984 (internal_vproblem): Use abort_with_message for first level
2985 recursive internal problems, and if gdb_stderr is not set up.
2986 Protect calls to target_terminal_ours, begin_line and query.
2988 2014-08-28 Doug Evans <dje@google.com>
2990 * symtab.c (in_prologue): Move definition to better spot.
2991 (skip_prologue_using_sal): Ditto.
2993 2014-08-28 Doug Evans <dje@google.com>
2995 * symtab.c (find_function_start_sal): Move definition to better spot.
2997 2014-08-28 Yao Qi <yao@codesourcery.com>
2999 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3000 found_stack_adjust in forward scan. Remove condition check
3001 on found_stack_adjust which is always true. Indent the code.
3003 2014-08-28 Yao Qi <yao@codesourcery.com>
3005 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3006 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3007 (dwarf_decode_lines): Remove argument
3008 want_line_info. Remove condition check on want_line_info.
3011 2014-08-27 Doug Evans <dje@google.com>
3013 * dwarf2read.c (dwarf_record_line): Fix typo.
3015 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3017 * target.h (struct target_ops::to_terminal_save_ours): Remove
3019 (target_terminal_save_ours): Remove macro.
3020 * target-delegates.c: Regenerate.
3021 * inf-child.c (inf_child_target): Don't set the nonexistent
3022 field to_terminal_save_ours.
3023 * inferior.h (child_terminal_save_ours): Remove declaration.
3024 * terminal.h (gdb_save_tty_state): New declaration.
3025 * inflow.c (child_terminal_save_ours): Rename to ...
3026 (gdb_save_tty_state): ... this.
3027 * tui/tui.c: Include terminal.h.
3028 (tui_enable): Use gdb_save_tty_state instead of
3029 target_terminal_save_ours.
3030 (tui_disable): Likewise.
3032 2014-08-25 Doug Evans <dje@google.com>
3034 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3035 Pass NULL instead of 0 for context pointer.
3037 2014-08-25 Yao Qi <yao@codesourcery.com>
3039 * dwarf2read.c: Fix grammatical error.
3041 2014-08-24 Yao Qi <yao@codesourcery.com>
3043 * dwarf2read.c (scan_partial_symbols): Update comments.
3044 Rename argument 'need_pc' with 'set_addrmap'.
3045 (add_partial_namespace): Rename argument 'need_pc' with
3047 (add_partial_module): Likewise.
3048 (add_partial_subprogram): Likewise. Update comments.
3049 (dwarf2_name): Fix typo.
3051 2014-08-22 Doug Evans <dje@google.com>
3054 * dwarf2read.c (dwarf_record_line_p): New function.
3055 (dwarf_decode_lines_1): Ignore subsequent line number entries
3056 for the same line if any entry had a non-zero discriminator.
3058 2014-08-22 Doug Evans <dje@google.com>
3060 * buildsym.h (record_line_ftype): New typedef.
3061 (record_line): Use it.
3062 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3063 (dwarf_decode_lines_1): Call them.
3065 2014-08-22 Yao Qi <yao@codesourcery.com>
3067 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3068 (ctf_end): Remove code.
3070 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3072 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3073 (linux_make_corefile_notes): call update_thread_list, protected against
3076 2014-08-21 Pedro Alves <palves@redhat.com>
3078 * infcmd.c (attach_command): Remove comment.
3080 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3082 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3083 unsigned LONGEST to ULONGEST.
3085 2014-08-20 Pedro Alves <palves@redhat.com>
3087 * Makefile.in (check-read1): New rule.
3089 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3091 * value.c (value_from_contents_and_address): Strip resolved_type's
3092 typedef layers before checking its TYPE_DATA_LOCATION.
3094 2014-08-20 Pedro Alves <palves@redhat.com>
3096 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3098 2014-08-20 Yao Qi <yao@codesourcery.com>
3100 * amd64-tdep.c (amd64_classify): Add a blank line after the
3101 example. Move "*/" to a new line.
3102 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3103 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3104 * dwarf2read.c (psymtab_include_file_name): Likewise.
3106 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3107 Pedro Alves <palves@redhat.com>
3111 * ada-lang.c (coerce_unspec_val_to_type): Use
3112 value_contents_copy_raw.
3113 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3114 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3115 * cp-valprint.c (cp_print_value_fields): Let the common printing
3116 code handle optimized out values.
3117 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3118 * d-valprint.c (dynamic_array_type): Use
3119 value_bits_any_optimized_out.
3120 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3121 check_any_valid fields.
3122 (check_pieced_value_bits): Delete and inline ...
3123 (check_pieced_synthetic_pointer): ... here.
3124 (check_pieced_value_validity): Delete.
3125 (check_pieced_value_invalid): Delete.
3126 (pieced_value_funcs): Remove check_validity and check_any_valid
3128 (read_pieced_value): Use mark_value_bits_optimized_out.
3129 (write_pieced_value): Switch to use
3130 mark_value_bytes_optimized_out.
3131 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3132 of assuming the whole value is optimized out.
3133 * findvar.c (read_frame_register_value): Remove special handling
3134 of optimized out registers.
3135 (value_from_register): Use mark_value_bytes_optimized_out.
3136 * frame-unwind.c (frame_unwind_got_optimized): Use
3137 mark_value_bytes_optimized_out.
3138 * jv-valprint.c (java_value_print): Adjust.
3139 (java_print_value_fields): Let the common printing code handle
3140 optimized out values.
3141 * mips-tdep.c (mips_print_register): Remove special handling of
3142 optimized out registers.
3143 * opencl-lang.c (lval_func_check_validity): Delete.
3144 (lval_func_check_any_valid): Delete.
3145 (opencl_value_funcs): Remove check_validity and check_any_valid
3147 * p-valprint.c (pascal_object_print_value_fields): Let the common
3148 printing code handle optimized out values.
3149 * stack.c (read_frame_arg): Remove special handling of optimized
3150 out values. Fetch both VAL and ENTRYVAL before comparing
3151 contents. Adjust to value_available_contents_eq rename.
3152 * valprint.c (valprint_check_validity)
3153 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3154 (val_print_array_elements): Adjust.
3155 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3156 (value_bits_any_optimized_out): New function.
3157 (value_entirely_covered_by_range_vector): New function, factored
3158 out from value_entirely_unavailable.
3159 (value_entirely_unavailable): Reimplement.
3160 (value_entirely_optimized_out): New function.
3161 (insert_into_bit_range_vector): New function, factored out from
3162 mark_value_bits_unavailable.
3163 (mark_value_bits_unavailable): Reimplement.
3164 (struct ranges_and_idx): New struct.
3165 (find_first_range_overlap_and_match): New function, factored out
3166 from value_available_contents_bits_eq.
3167 (value_available_contents_bits_eq): Rename to ...
3168 (value_contents_bits_eq): ... this. Check both unavailable
3169 contents and optimized out contents.
3170 (value_available_contents_eq): Rename to ...
3171 (value_contents_eq): ... this.
3172 (allocate_value_lazy): Remove reference to the old optimized_out
3174 (allocate_optimized_out_value): Use
3175 mark_value_bytes_optimized_out.
3176 (require_not_optimized_out): Adjust to check whether the
3177 optimized_out vec is empty.
3178 (ranges_copy_adjusted): New function, factored out from
3179 value_contents_copy_raw.
3180 (value_contents_copy_raw): Also copy the optimized out ranges.
3181 Assert the destination ranges aren't optimized out.
3182 (value_contents_copy): Update comment, remove call to
3183 require_not_optimized_out.
3184 (value_contents_equal): Adjust to check whether the optimized_out
3186 (set_value_optimized_out, value_optimized_out_const): Delete.
3187 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3189 (value_entirely_optimized_out, value_bits_valid): Delete.
3190 (value_copy): Take a VEC copy of the 'optimized_out' field.
3191 (value_primitive_field): Remove special handling of optimized out.
3192 (value_fetch_lazy): Assert that lazy values have no unavailable
3193 regions. Use value_bits_any_optimized_out. Remove some special
3194 handling for optimized out values.
3195 * value.h: Add intro comment about <optimized out> and
3197 (struct lval_funcs): Remove check_validity and check_any_valid
3199 (set_value_optimized_out, value_optimized_out_const): Remove.
3200 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3202 (value_bits_any_optimized_out): New declaration.
3203 (value_bits_valid): Delete declaration.
3204 (value_available_contents_eq): Rename to ...
3205 (value_contents_eq): ... this, and extend comments.
3207 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3209 Fix -fsanitize=address on unreadable inferior strings.
3210 * valprint.c (val_print_string): Fix access before BUFFER.
3212 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3214 * target.c (target_struct_size): Remove.
3215 (target_struct_allocsize): Remove.
3216 (DEFAULT_ALLOCSIZE): Remove.
3217 (target_ops_p): New typedef.
3218 (DEF_VEC_P (target_ops_p)): New vector type.
3219 (target_structs): Change type to VEC (target_ops_p).
3220 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3221 (find_default_run_target): Rewrite for loop following changes to
3224 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3226 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3227 Adjust code accordingly. Adjust function description comment.
3229 2014-08-19 Yao Qi <yao@codesourcery.com>
3231 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3234 2014-08-19 Alan Modra <amodra@gmail.com>
3236 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3237 * config.in: Regenerate.
3238 * configure: Regenerate.
3240 2014-08-19 Tom Tromey <tromey@redhat.com>
3241 Gary Benson <gbenson@redhat.com>
3243 * common/common-debug.h: New file.
3244 * common/common-debug.c: Likewise.
3245 * debug.c: Likewise.
3246 * Makefile.in (SFILES): Add common/common-debug.c.
3247 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3248 (COMMON_OBS): Add common-debug.o and debug.o.
3249 (common-debug.o): New rule.
3250 * common/common-defs.h: Include common-debug.h.
3251 * common/agent.c (debug_agent_printf): New function.
3252 (DEBUG_AGENT): Redefine.
3253 * nat/i386-dregs.c (debug_printf): Undefine.
3255 2014-08-19 Gary Benson <gbenson@redhat.com>
3257 * common/common-defs.h: Include print-utils.h.
3258 * utils.h: Do not include print-utils.h.
3260 2014-08-19 Tom Tromey <tromey@redhat.com>
3261 Gary Benson <gbenson@redhat.com>
3263 * common/common-types.h: New file.
3264 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3265 * common/common-defs.h: Include common-types.h.
3266 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3269 2014-08-19 Tom Tromey <tromey@redhat.com>
3270 Gary Benson <gbenson@redhat.com>
3272 * common/errors.h: New file.
3273 * common/errors.c: Likewise.
3274 * Makefile.in (SFILES): Add common/errors.c.
3275 (HFILES_NO_SRCDIR): Add common/errors.h.
3276 (COMMON_OBS): Add errors.o.
3277 (errors.o): New rule.
3278 * common/common-defs.h: Include errors.h.
3279 * utils.h (perror_with_name, error, verror, warning, vwarning):
3281 * common/common-utils.h: (malloc_failure, internal_error):
3284 2014-08-19 Gary Benson <gbenson@redhat.com>
3286 * utils.c (internal_vproblem): Always print the message.
3288 2014-08-18 Doug Evans <dje@google.com>
3290 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3292 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3294 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3295 Return 0 if TYPE is dynamic.
3296 (print_range): Add handling of dynamic ranges.
3298 2014-08-18 Keven Boell <keven.boell@intel.com>
3299 Joel Brobecker <brobecker@adacore.com>
3301 * gdbtypes.h (struct main_type): Add field "data_location".
3302 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3303 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3304 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3305 a dynamic data location.
3306 (resolve_dynamic_type): Add DW_AT_data_location handling.
3307 (copy_recursive, copy_type): Copy the data_location information
3309 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3310 * value.c (value_from_contents_and_address): Add
3311 DW_AT_data_location handling.
3313 2014-08-18 Keven Boell <keven.boell@intel.com>
3314 Joel Brobecker <brobecker@adacore.com>
3316 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3317 field "get_object_address".
3318 * dwarf2expr.c (execute_stack_op): Add handling for
3319 DW_OP_push_object_address.
3320 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3321 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3322 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3323 (dwarf_expr_get_obj_addr): New function.
3324 (dwarf_expr_ctx_funcs): Add get_object_address field.
3325 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3326 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3327 (dwarf2_evaluate_property): Add parameter "address". Use it.
3328 (needs_get_obj_addr): New function.
3329 (needs_frame_ctx_funcs): Add get_object_address field.
3330 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3331 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3332 (resolve_dynamic_array): Likewise.
3334 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3336 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3337 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3338 fixed value for records and unions for which some GNAT encodings
3341 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3343 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3344 rewrite to avoid "else if" and "else" constructs. Should be
3345 a no-op in practice.
3347 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3349 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3352 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3355 * eval.c: Update all calls to find_overload_match.
3356 * valarith.c: Likewise.
3357 (value_user_defined_cpp_op, value_user_defined_op): New
3358 argument NOSIDE. Update all callers.
3359 * valops.c (find_overload_match): New argument NOSIDE.
3360 * value.h (find_overload_match): Update signature.
3362 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3364 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3365 'items' methods instead of 'iteritems' method on dictionaries.
3367 2014-08-15 Doug Evans <dje@google.com>
3369 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3372 2014-08-15 Doug Evans <dje@google.com>
3374 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3376 2014-08-15 Doug Evans <dje@google.com>
3378 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3380 2014-08-15 Doug Evans <dje@google.com>
3382 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3385 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3387 * dcache.h: Include target.h, to avoid compile time warnings.
3389 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3391 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3392 frame_info" partial declaration.
3393 * gdbarch.h: Regenerate.
3395 2014-08-15 Yao Qi <yao@codesourcery.com>
3397 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3398 Add parameter 'decode_for_pst_p'. Callers update.
3400 2014-08-13 Yao Qi <yao@codesourcery.com>
3403 * configure.ac: Use local variable 'pos'.
3404 * configure: Regenerated.
3406 2014-08-11 Doug Evans <dje@google.com>
3408 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3409 message, it is redundant with "Reading symbols from ..." message.
3411 2014-08-10 Doug Evans <xdje42@gmail.com>
3413 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3415 2014-08-09 Yao Qi <yao@codesourcery.com>
3418 * remote.c (remote_xfer_partial): Remove dead code.
3420 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3422 * ia64-linux-tdep.c: Include "regset.h".
3423 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3424 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3425 (ia64_linux_supply_fpregset): New function.
3426 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3427 (ia64_linux_regset_from_core_section): New function.
3428 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3431 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3433 * m68klinux-tdep.c: Include "regset.h".
3434 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3435 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3436 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3437 (m68k_linux_regset_from_core_section): New function.
3438 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3441 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3443 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3444 function. Move logic to...
3445 (tilegx_linux_regmap): ... this new register map.
3446 (tilegx_linux_regset): Refer to register map, replace supply
3447 method by regcache_supply_regset, and add collect method.
3448 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3449 TILEGX_FIRST_EASY_REGNUM.
3451 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3453 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3454 that calls regcache_supply_regset and handles the EPC register
3455 separately. Move main logic to...
3456 (score7_linux_gregmap): ... this new register map.
3457 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3458 (score7_linux_gregset): Refer to register map. Add collect method.
3459 (score7_linux_regset_from_core_section): Replace
3460 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3461 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3462 (struct regset): Delete unused forward declaraction.
3463 (struct pt_regs): Delete structure definition.
3464 (elf_gregset_t): Delete typedef.
3466 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3468 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3469 (nios2_core_regset): Add collect method.
3471 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3473 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3474 platform-independent and don't write to read-only input buffer.
3475 (m32r_linux_collect_gregset): New function.
3476 (m32r_linux_gregset): Add collect method.
3478 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3480 * hppa-linux-tdep.c (greg_map): Rename to...
3481 (hppa_linux_gregmap): ... this. Also convert to
3482 regcache_map_entry format.
3483 (hppa_linux_supply_regset): Delete function.
3484 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3485 (hppa_linux_fpregmap): ... this new register map.
3486 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3487 register map, replace supply method by regcache_supply_regset, and
3488 add collect method regcache_collect_regset.
3490 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3492 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3493 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3494 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3495 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3496 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3497 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3498 (frv_linux_supply_gregset): Replace main logic by call to
3499 regcache_supply_regset, but keep clearing gr32-gr63.
3500 (frv_linux_supply_fpregset): Delete function.
3501 (frv_linux_gregset): Refer to appropriate register map and add
3502 regcache_collect_regset as the collect method.
3503 (frv_linux_fpregset): Likewise. Also exchange the supply method
3504 by regcache_supply_regset.
3506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3508 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3509 by call to alpha_supply_int_regs.
3510 (alpha_linux_collect_gregset): New function.
3511 (alpha_linux_supply_fpregset): Replace logic by call to
3512 alpha_supply_fp_regs.
3513 (alpha_linux_collect_fpregset): New function.
3514 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3516 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3518 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3519 by call to regcache_collect_regset.
3520 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3521 instead of aarch64_linux_supply_gregset/_fpregset.
3522 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3523 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3524 header file instead.
3525 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3526 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3527 functions. Move logic to ...
3528 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3530 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3531 refer to new register maps, replace *_regset_from_core by
3532 regcache_supply_regset, and also use regcache_collect_regset.
3533 * aarch64-linux-tdep.h: Include "regset.h".
3534 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3536 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3537 macros, moved from C source file.
3538 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3539 variable declarations.
3541 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3543 * s390-linux-nat.c: Include "regset.h".
3544 (regmap_gregset): Delete macro.
3545 (s390_64_regmap_gregset): New register map for
3546 regcache_supply/_collect_regset.
3547 (s390_64_gregset): New regset.
3548 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3549 (regmap_fpregset): Delete macro.
3550 (s390_native_supply, s390_native_collect): Delete functions.
3551 (supply_gregset, fill_gregset): Replace s390-specific regmap
3552 handling by a call to regcache_supply/_collect_regset.
3553 (supply_fpregset, fill_fpregset): Call regcache_supply/
3554 _collect_regset instead of s390_native_supply/_collect.
3555 (fetch_regset, store_regset): Likewise. Also change the last
3556 parameter to a regset instead of a regmap.
3557 (s390_linux_fetch_inferior_registers)
3558 (390_linux_store_inferior_registers): Adjust last parameter in
3559 calls to fetch_regset and store_regset.
3560 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3561 (s390_gregmap): ... this. Also make static const and convert to
3562 regcache_map_entry format.
3563 (s390x_regmap_gregset): Delete.
3564 (s390_regmap_fpregset): Rename to...
3565 (s390_fpregmap): ... this. Make static const and convert to
3566 regcache_map_entry format.
3567 (s390_regmap_upper, s390_regmap_last_break)
3568 (s390x_regmap_last_break, s390_regmap_system_call)
3569 (s390_regmap_tdb): Likewise.
3570 (s390_supply_regset, s390_collect_regset): Remove functions.
3571 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3573 (s390_gregset, s390_fpregset, s390_upper_regset)
3574 (s390_last_break_regset, s390x_last_break_regset)
3575 (s390_system_call_regset, s390_tdb_regset): Make global and
3576 replace s390_supply/_collect_regset by regcache_supply/
3578 (s390x_gregset): Delete.
3579 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3580 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3581 (s390_regmap_fpregset, s390_regmap_last_break)
3582 (s390x_regmap_last_break, s390_regmap_system_call)
3583 (s390_regmap_tdb): Delete global variable declarations.
3584 (s390_gregset, s390_fpregset, s390_last_break_regset)
3585 (s390x_last_break_regset, s390_system_call_regset)
3586 (s390_tdb_regset): New global variable declarations.
3588 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3590 * regcache.c: Include "regset.h".
3591 (regcache_transfer_regset): New local function.
3592 (regcache_supply_regset, regcache_collect_regset): New functions.
3593 * regcache.h (struct regcache_map_entry): New structure.
3594 (REGCACHE_MAP_SKIP): New enum value.
3595 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3597 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3599 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3600 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3601 (ppc_linux_collect_gregset ): Likewise.
3602 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3603 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3604 (ppc_collect_vrregset): Likewise.
3605 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3608 2014-08-07 Yao Qi <yao@codesourcery.com>
3610 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3611 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3612 * remote.c (remote_read_bytes): Likewise.
3614 2014-08-07 Yao Qi <yao@codesourcery.com>
3616 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3618 2014-08-07 Yao Qi <yao@codesourcery.com>
3621 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3622 TARGET_XFER_OK instead of 0.
3624 2014-08-07 Gary Benson <gbenson@redhat.com>
3626 * common/common-defs.h: Include errno.h.
3627 * defs.h: Do not include errno.h.
3628 * ada-typeprint.c: Likewise.
3629 * c-typeprint.c: Likewise.
3630 * core-regset.c: Likewise.
3631 * corefile.c: Likewise.
3632 * corelow.c: Likewise.
3633 * event-loop.c: Likewise.
3634 * f-typeprint.c: Likewise.
3635 * gnu-nat.c: Likewise.
3636 * go32-nat.c: Likewise.
3637 * i386gnu-nat.c: Likewise.
3638 * m2-typeprint.c: Likewise.
3639 * nat/linux-btrace.c: Likewise.
3640 * p-typeprint.c: Likewise.
3641 * procfs.c: Likewise.
3642 * remote-sim.c: Likewise.
3643 * rs6000-nat.c: Likewise.
3644 * target.c: Likewise.
3645 * typeprint.c: Likewise.
3646 * ui-file.c: Likewise.
3647 * valops.c: Likewise.
3648 * valprint.c: Likewise.
3650 2014-08-07 Gary Benson <gbenson@redhat.com>
3652 * common/common-defs.h: Include string.h.
3653 * aarch64-tdep.c: Do not include string.h.
3654 * ada-exp.y: Likewise.
3655 * ada-lang.c: Likewise.
3656 * ada-lex.l: Likewise.
3657 * ada-typeprint.c: Likewise.
3658 * ada-valprint.c: Likewise.
3659 * aix-thread.c: Likewise.
3660 * alpha-linux-tdep.c: Likewise.
3661 * alpha-mdebug-tdep.c: Likewise.
3662 * alpha-nat.c: Likewise.
3663 * alpha-osf1-tdep.c: Likewise.
3664 * alpha-tdep.c: Likewise.
3665 * alphanbsd-tdep.c: Likewise.
3666 * amd64-dicos-tdep.c: Likewise.
3667 * amd64-linux-tdep.c: Likewise.
3668 * amd64-nat.c: Likewise.
3669 * amd64-sol2-tdep.c: Likewise.
3670 * amd64fbsd-tdep.c: Likewise.
3671 * amd64obsd-tdep.c: Likewise.
3672 * arch-utils.c: Likewise.
3673 * arm-linux-nat.c: Likewise.
3674 * arm-linux-tdep.c: Likewise.
3675 * arm-tdep.c: Likewise.
3676 * arm-wince-tdep.c: Likewise.
3677 * armbsd-tdep.c: Likewise.
3678 * armnbsd-nat.c: Likewise.
3679 * armnbsd-tdep.c: Likewise.
3680 * armobsd-tdep.c: Likewise.
3681 * avr-tdep.c: Likewise.
3682 * ax-gdb.c: Likewise.
3683 * ax-general.c: Likewise.
3684 * bcache.c: Likewise.
3685 * bfin-tdep.c: Likewise.
3686 * breakpoint.c: Likewise.
3687 * build-id.c: Likewise.
3688 * buildsym.c: Likewise.
3689 * c-exp.y: Likewise.
3690 * c-lang.c: Likewise.
3691 * c-typeprint.c: Likewise.
3692 * c-valprint.c: Likewise.
3693 * charset.c: Likewise.
3694 * cli-out.c: Likewise.
3695 * cli/cli-cmds.c: Likewise.
3696 * cli/cli-decode.c: Likewise.
3697 * cli/cli-dump.c: Likewise.
3698 * cli/cli-interp.c: Likewise.
3699 * cli/cli-logging.c: Likewise.
3700 * cli/cli-script.c: Likewise.
3701 * cli/cli-setshow.c: Likewise.
3702 * cli/cli-utils.c: Likewise.
3703 * coffread.c: Likewise.
3704 * common/agent.c: Likewise.
3705 * common/buffer.c: Likewise.
3706 * common/buffer.h: Likewise.
3707 * common/common-utils.c: Likewise.
3708 * common/filestuff.c: Likewise.
3709 * common/filestuff.c: Likewise.
3710 * common/format.c: Likewise.
3711 * common/print-utils.c: Likewise.
3712 * common/rsp-low.c: Likewise.
3713 * common/signals.c: Likewise.
3714 * common/vec.h: Likewise.
3715 * common/xml-utils.c: Likewise.
3716 * core-regset.c: Likewise.
3717 * corefile.c: Likewise.
3718 * corelow.c: Likewise.
3719 * cp-abi.c: Likewise.
3720 * cp-name-parser.y: Likewise.
3721 * cp-support.c: Likewise.
3722 * cp-valprint.c: Likewise.
3723 * cris-tdep.c: Likewise.
3724 * d-exp.y: Likewise.
3725 * darwin-nat.c: Likewise.
3726 * dbxread.c: Likewise.
3727 * dcache.c: Likewise.
3728 * demangle.c: Likewise.
3729 * dicos-tdep.c: Likewise.
3730 * disasm.c: Likewise.
3731 * doublest.c: Likewise.
3732 * dsrec.c: Likewise.
3733 * dummy-frame.c: Likewise.
3734 * dwarf2-frame.c: Likewise.
3735 * dwarf2loc.c: Likewise.
3736 * dwarf2read.c: Likewise.
3737 * elfread.c: Likewise.
3738 * environ.c: Likewise.
3740 * event-loop.c: Likewise.
3741 * exceptions.c: Likewise.
3743 * expprint.c: Likewise.
3744 * f-exp.y: Likewise.
3745 * f-lang.c: Likewise.
3746 * f-typeprint.c: Likewise.
3747 * f-valprint.c: Likewise.
3748 * fbsd-nat.c: Likewise.
3749 * findcmd.c: Likewise.
3750 * findvar.c: Likewise.
3751 * fork-child.c: Likewise.
3752 * frame.c: Likewise.
3753 * frv-linux-tdep.c: Likewise.
3754 * frv-tdep.c: Likewise.
3756 * gdb_bfd.c: Likewise.
3757 * gdbarch.c: Likewise.
3758 * gdbarch.sh: Likewise.
3759 * gdbtypes.c: Likewise.
3760 * gnu-nat.c: Likewise.
3761 * gnu-v2-abi.c: Likewise.
3762 * gnu-v3-abi.c: Likewise.
3763 * go-exp.y: Likewise.
3764 * go-lang.c: Likewise.
3765 * go32-nat.c: Likewise.
3766 * guile/guile.c: Likewise.
3767 * guile/scm-auto-load.c: Likewise.
3768 * hppa-hpux-tdep.c: Likewise.
3769 * hppa-linux-nat.c: Likewise.
3770 * hppanbsd-tdep.c: Likewise.
3771 * hppaobsd-tdep.c: Likewise.
3772 * i386-cygwin-tdep.c: Likewise.
3773 * i386-dicos-tdep.c: Likewise.
3774 * i386-linux-tdep.c: Likewise.
3775 * i386-nto-tdep.c: Likewise.
3776 * i386-sol2-tdep.c: Likewise.
3777 * i386-tdep.c: Likewise.
3778 * i386bsd-tdep.c: Likewise.
3779 * i386gnu-nat.c: Likewise.
3780 * i386nbsd-tdep.c: Likewise.
3781 * i386obsd-tdep.c: Likewise.
3782 * i387-tdep.c: Likewise.
3783 * ia64-libunwind-tdep.c: Likewise.
3784 * ia64-linux-nat.c: Likewise.
3785 * inf-child.c: Likewise.
3786 * inf-ptrace.c: Likewise.
3787 * inf-ttrace.c: Likewise.
3788 * infcall.c: Likewise.
3789 * infcmd.c: Likewise.
3790 * inflow.c: Likewise.
3791 * infrun.c: Likewise.
3792 * interps.c: Likewise.
3793 * iq2000-tdep.c: Likewise.
3794 * irix5-nat.c: Likewise.
3795 * jv-exp.y: Likewise.
3796 * jv-lang.c: Likewise.
3797 * jv-typeprint.c: Likewise.
3798 * jv-valprint.c: Likewise.
3799 * language.c: Likewise.
3800 * linux-fork.c: Likewise.
3801 * linux-nat.c: Likewise.
3802 * lm32-tdep.c: Likewise.
3803 * m2-exp.y: Likewise.
3804 * m2-typeprint.c: Likewise.
3805 * m32c-tdep.c: Likewise.
3806 * m32r-linux-nat.c: Likewise.
3807 * m32r-linux-tdep.c: Likewise.
3808 * m32r-rom.c: Likewise.
3809 * m32r-tdep.c: Likewise.
3810 * m68hc11-tdep.c: Likewise.
3811 * m68k-tdep.c: Likewise.
3812 * m68kbsd-tdep.c: Likewise.
3813 * m68klinux-nat.c: Likewise.
3814 * m68klinux-tdep.c: Likewise.
3815 * m88k-tdep.c: Likewise.
3816 * machoread.c: Likewise.
3817 * macrocmd.c: Likewise.
3819 * mdebugread.c: Likewise.
3820 * mem-break.c: Likewise.
3821 * memattr.c: Likewise.
3822 * memory-map.c: Likewise.
3823 * mep-tdep.c: Likewise.
3824 * mi/mi-cmd-break.c: Likewise.
3825 * mi/mi-cmd-disas.c: Likewise.
3826 * mi/mi-cmd-env.c: Likewise.
3827 * mi/mi-cmd-stack.c: Likewise.
3828 * mi/mi-cmd-var.c: Likewise.
3829 * mi/mi-cmds.c: Likewise.
3830 * mi/mi-console.c: Likewise.
3831 * mi/mi-getopt.c: Likewise.
3832 * mi/mi-interp.c: Likewise.
3833 * mi/mi-main.c: Likewise.
3834 * mi/mi-parse.c: Likewise.
3835 * microblaze-rom.c: Likewise.
3836 * microblaze-tdep.c: Likewise.
3837 * mingw-hdep.c: Likewise.
3838 * minidebug.c: Likewise.
3839 * minsyms.c: Likewise.
3840 * mips-irix-tdep.c: Likewise.
3841 * mips-linux-tdep.c: Likewise.
3842 * mips-tdep.c: Likewise.
3843 * mips64obsd-tdep.c: Likewise.
3844 * mipsnbsd-tdep.c: Likewise.
3845 * mipsread.c: Likewise.
3846 * mn10300-linux-tdep.c: Likewise.
3847 * mn10300-tdep.c: Likewise.
3848 * monitor.c: Likewise.
3849 * moxie-tdep.c: Likewise.
3850 * mt-tdep.c: Likewise.
3851 * nat/linux-btrace.c: Likewise.
3852 * nat/linux-osdata.c: Likewise.
3853 * nat/linux-procfs.c: Likewise.
3854 * nat/linux-ptrace.c: Likewise.
3855 * nat/linux-waitpid.c: Likewise.
3856 * nbsd-tdep.c: Likewise.
3857 * nios2-linux-tdep.c: Likewise.
3858 * nto-procfs.c: Likewise.
3859 * nto-tdep.c: Likewise.
3860 * objc-lang.c: Likewise.
3861 * objfiles.c: Likewise.
3862 * opencl-lang.c: Likewise.
3863 * osabi.c: Likewise.
3864 * osdata.c: Likewise.
3865 * p-exp.y: Likewise.
3866 * p-lang.c: Likewise.
3867 * p-typeprint.c: Likewise.
3868 * parse.c: Likewise.
3869 * posix-hdep.c: Likewise.
3870 * ppc-linux-nat.c: Likewise.
3871 * ppc-sysv-tdep.c: Likewise.
3872 * ppcfbsd-tdep.c: Likewise.
3873 * ppcnbsd-tdep.c: Likewise.
3874 * ppcobsd-tdep.c: Likewise.
3875 * printcmd.c: Likewise.
3876 * procfs.c: Likewise.
3877 * prologue-value.c: Likewise.
3878 * python/py-auto-load.c: Likewise.
3879 * python/py-gdb-readline.c: Likewise.
3880 * ravenscar-thread.c: Likewise.
3881 * regcache.c: Likewise.
3882 * registry.c: Likewise.
3883 * remote-fileio.c: Likewise.
3884 * remote-m32r-sdi.c: Likewise.
3885 * remote-mips.c: Likewise.
3886 * remote-notif.c: Likewise.
3887 * remote-sim.c: Likewise.
3888 * remote.c: Likewise.
3889 * reverse.c: Likewise.
3890 * rs6000-aix-tdep.c: Likewise.
3891 * ser-base.c: Likewise.
3892 * ser-go32.c: Likewise.
3893 * ser-mingw.c: Likewise.
3894 * ser-pipe.c: Likewise.
3895 * ser-tcp.c: Likewise.
3896 * ser-unix.c: Likewise.
3897 * serial.c: Likewise.
3898 * sh-tdep.c: Likewise.
3899 * sh64-tdep.c: Likewise.
3900 * shnbsd-tdep.c: Likewise.
3902 * sol-thread.c: Likewise.
3903 * solib-dsbt.c: Likewise.
3904 * solib-frv.c: Likewise.
3905 * solib-osf.c: Likewise.
3906 * solib-som.c: Likewise.
3907 * solib-spu.c: Likewise.
3908 * solib-target.c: Likewise.
3909 * solib.c: Likewise.
3910 * somread.c: Likewise.
3911 * source.c: Likewise.
3912 * sparc-nat.c: Likewise.
3913 * sparc-sol2-tdep.c: Likewise.
3914 * sparc-tdep.c: Likewise.
3915 * sparc64-tdep.c: Likewise.
3916 * sparc64fbsd-tdep.c: Likewise.
3917 * sparc64nbsd-tdep.c: Likewise.
3918 * sparcnbsd-tdep.c: Likewise.
3919 * spu-linux-nat.c: Likewise.
3920 * spu-multiarch.c: Likewise.
3921 * spu-tdep.c: Likewise.
3922 * stabsread.c: Likewise.
3923 * stack.c: Likewise.
3924 * std-regs.c: Likewise.
3925 * symfile.c: Likewise.
3926 * symmisc.c: Likewise.
3927 * symtab.c: Likewise.
3928 * target.c: Likewise.
3929 * thread.c: Likewise.
3930 * tilegx-linux-nat.c: Likewise.
3931 * tilegx-tdep.c: Likewise.
3933 * tracepoint.c: Likewise.
3934 * tui/tui-command.c: Likewise.
3935 * tui/tui-data.c: Likewise.
3936 * tui/tui-disasm.c: Likewise.
3937 * tui/tui-file.c: Likewise.
3938 * tui/tui-layout.c: Likewise.
3939 * tui/tui-out.c: Likewise.
3940 * tui/tui-regs.c: Likewise.
3941 * tui/tui-source.c: Likewise.
3942 * tui/tui-stack.c: Likewise.
3943 * tui/tui-win.c: Likewise.
3944 * tui/tui-windata.c: Likewise.
3945 * tui/tui-winsource.c: Likewise.
3946 * typeprint.c: Likewise.
3947 * ui-file.c: Likewise.
3948 * ui-out.c: Likewise.
3949 * user-regs.c: Likewise.
3950 * utils.c: Likewise.
3951 * v850-tdep.c: Likewise.
3952 * valarith.c: Likewise.
3953 * valops.c: Likewise.
3954 * valprint.c: Likewise.
3955 * value.c: Likewise.
3956 * varobj.c: Likewise.
3957 * vax-tdep.c: Likewise.
3958 * vaxnbsd-tdep.c: Likewise.
3959 * vaxobsd-tdep.c: Likewise.
3960 * windows-nat.c: Likewise.
3961 * xcoffread.c: Likewise.
3962 * xml-support.c: Likewise.
3963 * xstormy16-tdep.c: Likewise.
3964 * xtensa-linux-nat.c: Likewise.
3966 2014-08-07 Gary Benson <gbenson@redhat.com>
3968 * common/common-defs.h: Include gdb_assert.h.
3969 * aarch64-tdep.c: Do not include gdb_assert.h.
3970 * addrmap.c: Likewise.
3971 * aix-thread.c: Likewise.
3972 * alpha-linux-tdep.c: Likewise.
3973 * alpha-mdebug-tdep.c: Likewise.
3974 * alphanbsd-tdep.c: Likewise.
3975 * amd64-nat.c: Likewise.
3976 * amd64-tdep.c: Likewise.
3977 * amd64bsd-nat.c: Likewise.
3978 * amd64fbsd-nat.c: Likewise.
3979 * amd64fbsd-tdep.c: Likewise.
3980 * amd64nbsd-nat.c: Likewise.
3981 * amd64nbsd-tdep.c: Likewise.
3982 * amd64obsd-nat.c: Likewise.
3983 * amd64obsd-tdep.c: Likewise.
3984 * arch-utils.c: Likewise.
3985 * arm-tdep.c: Likewise.
3986 * armbsd-tdep.c: Likewise.
3988 * bcache.c: Likewise.
3989 * bfin-tdep.c: Likewise.
3990 * blockframe.c: Likewise.
3991 * breakpoint.c: Likewise.
3992 * bsd-kvm.c: Likewise.
3993 * bsd-uthread.c: Likewise.
3994 * buildsym.c: Likewise.
3995 * c-exp.y: Likewise.
3996 * c-lang.c: Likewise.
3997 * charset.c: Likewise.
3998 * cleanups.c: Likewise.
3999 * cli-out.c: Likewise.
4000 * cli/cli-decode.c: Likewise.
4001 * cli/cli-dump.c: Likewise.
4002 * cli/cli-logging.c: Likewise.
4003 * cli/cli-script.c: Likewise.
4004 * cli/cli-utils.c: Likewise.
4005 * coffread.c: Likewise.
4006 * common/common-utils.c: Likewise.
4007 * common/queue.h: Likewise.
4008 * common/signals.c: Likewise.
4009 * common/vec.h: Likewise.
4010 * complaints.c: Likewise.
4011 * completer.c: Likewise.
4012 * corelow.c: Likewise.
4013 * cp-abi.c: Likewise.
4014 * cp-name-parser.y: Likewise.
4015 * cp-namespace.c: Likewise.
4016 * cp-support.c: Likewise.
4017 * cris-tdep.c: Likewise.
4018 * dbxread.c: Likewise.
4019 * dictionary.c: Likewise.
4020 * doublest.c: Likewise.
4021 * dsrec.c: Likewise.
4022 * dummy-frame.c: Likewise.
4023 * dwarf2-frame-tailcall.c: Likewise.
4024 * dwarf2-frame.c: Likewise.
4025 * dwarf2expr.c: Likewise.
4026 * dwarf2loc.c: Likewise.
4027 * dwarf2read.c: Likewise.
4029 * event-loop.c: Likewise.
4030 * exceptions.c: Likewise.
4031 * expprint.c: Likewise.
4032 * f-valprint.c: Likewise.
4033 * fbsd-nat.c: Likewise.
4034 * findvar.c: Likewise.
4035 * frame-unwind.c: Likewise.
4036 * frame.c: Likewise.
4037 * frv-tdep.c: Likewise.
4038 * gcore.c: Likewise.
4039 * gdb-dlfcn.c: Likewise.
4040 * gdb_bfd.c: Likewise.
4041 * gdbarch.c: Likewise.
4042 * gdbarch.sh: Likewise.
4043 * gdbtypes.c: Likewise.
4044 * gnu-nat.c: Likewise.
4045 * gnu-v3-abi.c: Likewise.
4046 * go-lang.c: Likewise.
4047 * guile/scm-exception.c: Likewise.
4048 * guile/scm-gsmob.c: Likewise.
4049 * guile/scm-lazy-string.c: Likewise.
4050 * guile/scm-math.c: Likewise.
4051 * guile/scm-pretty-print.c: Likewise.
4052 * guile/scm-safe-call.c: Likewise.
4053 * guile/scm-utils.c: Likewise.
4054 * guile/scm-value.c: Likewise.
4055 * h8300-tdep.c: Likewise.
4056 * hppa-hpux-nat.c: Likewise.
4057 * hppa-tdep.c: Likewise.
4058 * hppanbsd-tdep.c: Likewise.
4059 * hppaobsd-tdep.c: Likewise.
4060 * i386-darwin-nat.c: Likewise.
4061 * i386-darwin-tdep.c: Likewise.
4062 * i386-nto-tdep.c: Likewise.
4063 * i386-tdep.c: Likewise.
4064 * i386bsd-nat.c: Likewise.
4065 * i386fbsd-tdep.c: Likewise.
4066 * i386gnu-nat.c: Likewise.
4067 * i386nbsd-tdep.c: Likewise.
4068 * i386obsd-tdep.c: Likewise.
4069 * i387-tdep.c: Likewise.
4070 * ia64-libunwind-tdep.c: Likewise.
4071 * ia64-tdep.c: Likewise.
4072 * inf-ptrace.c: Likewise.
4073 * inf-ttrace.c: Likewise.
4074 * infcall.c: Likewise.
4075 * infcmd.c: Likewise.
4076 * infrun.c: Likewise.
4077 * inline-frame.c: Likewise.
4078 * interps.c: Likewise.
4079 * jv-lang.c: Likewise.
4080 * jv-typeprint.c: Likewise.
4081 * linux-fork.c: Likewise.
4082 * linux-nat.c: Likewise.
4083 * linux-thread-db.c: Likewise.
4084 * m32c-tdep.c: Likewise.
4085 * m32r-linux-nat.c: Likewise.
4086 * m32r-tdep.c: Likewise.
4087 * m68k-tdep.c: Likewise.
4088 * m68kbsd-nat.c: Likewise.
4089 * m68kbsd-tdep.c: Likewise.
4090 * m88k-tdep.c: Likewise.
4091 * machoread.c: Likewise.
4092 * macroexp.c: Likewise.
4093 * macrotab.c: Likewise.
4094 * maint.c: Likewise.
4095 * mdebugread.c: Likewise.
4096 * memory-map.c: Likewise.
4097 * mep-tdep.c: Likewise.
4098 * mi/mi-common.c: Likewise.
4099 * microblaze-tdep.c: Likewise.
4100 * mingw-hdep.c: Likewise.
4101 * mips-linux-nat.c: Likewise.
4102 * mips-linux-tdep.c: Likewise.
4103 * mips-tdep.c: Likewise.
4104 * mips64obsd-tdep.c: Likewise.
4105 * mipsnbsd-tdep.c: Likewise.
4106 * mn10300-linux-tdep.c: Likewise.
4107 * mn10300-tdep.c: Likewise.
4108 * moxie-tdep.c: Likewise.
4109 * mt-tdep.c: Likewise.
4110 * nat/linux-btrace.c: Likewise.
4111 * nat/linux-osdata.c: Likewise.
4112 * nat/linux-ptrace.c: Likewise.
4113 * nat/mips-linux-watch.c: Likewise.
4114 * nios2-linux-tdep.c: Likewise.
4115 * nios2-tdep.c: Likewise.
4116 * objc-lang.c: Likewise.
4117 * objfiles.c: Likewise.
4118 * obsd-nat.c: Likewise.
4119 * opencl-lang.c: Likewise.
4120 * osabi.c: Likewise.
4121 * parse.c: Likewise.
4122 * ppc-linux-nat.c: Likewise.
4123 * ppc-sysv-tdep.c: Likewise.
4124 * ppcfbsd-nat.c: Likewise.
4125 * ppcfbsd-tdep.c: Likewise.
4126 * ppcnbsd-nat.c: Likewise.
4127 * ppcnbsd-tdep.c: Likewise.
4128 * ppcobsd-nat.c: Likewise.
4129 * ppcobsd-tdep.c: Likewise.
4130 * printcmd.c: Likewise.
4131 * procfs.c: Likewise.
4132 * prologue-value.c: Likewise.
4133 * psymtab.c: Likewise.
4134 * python/py-lazy-string.c: Likewise.
4135 * python/py-value.c: Likewise.
4136 * regcache.c: Likewise.
4137 * reggroups.c: Likewise.
4138 * registry.c: Likewise.
4139 * remote-sim.c: Likewise.
4140 * remote.c: Likewise.
4141 * rs6000-aix-tdep.c: Likewise.
4142 * rs6000-tdep.c: Likewise.
4143 * s390-linux-tdep.c: Likewise.
4144 * score-tdep.c: Likewise.
4145 * ser-base.c: Likewise.
4146 * ser-mingw.c: Likewise.
4147 * sh-tdep.c: Likewise.
4148 * sh64-tdep.c: Likewise.
4149 * solib-darwin.c: Likewise.
4150 * solib-spu.c: Likewise.
4151 * solib-svr4.c: Likewise.
4152 * source.c: Likewise.
4153 * sparc-nat.c: Likewise.
4154 * sparc-sol2-tdep.c: Likewise.
4155 * sparc-tdep.c: Likewise.
4156 * sparc64-sol2-tdep.c: Likewise.
4157 * sparc64-tdep.c: Likewise.
4158 * sparc64fbsd-tdep.c: Likewise.
4159 * sparc64nbsd-tdep.c: Likewise.
4160 * sparc64obsd-tdep.c: Likewise.
4161 * sparcnbsd-tdep.c: Likewise.
4162 * sparcobsd-tdep.c: Likewise.
4163 * spu-multiarch.c: Likewise.
4164 * spu-tdep.c: Likewise.
4165 * stabsread.c: Likewise.
4166 * stack.c: Likewise.
4167 * symfile.c: Likewise.
4168 * symtab.c: Likewise.
4169 * target-descriptions.c: Likewise.
4170 * target-memory.c: Likewise.
4171 * target.c: Likewise.
4172 * tic6x-linux-tdep.c: Likewise.
4173 * tic6x-tdep.c: Likewise.
4174 * tilegx-linux-nat.c: Likewise.
4175 * tilegx-tdep.c: Likewise.
4177 * tramp-frame.c: Likewise.
4178 * tui/tui-out.c: Likewise.
4179 * tui/tui-winsource.c: Likewise.
4180 * ui-out.c: Likewise.
4181 * user-regs.c: Likewise.
4182 * utils.c: Likewise.
4183 * v850-tdep.c: Likewise.
4184 * valops.c: Likewise.
4185 * value.c: Likewise.
4186 * varobj.c: Likewise.
4187 * vax-nat.c: Likewise.
4188 * xml-syscall.c: Likewise.
4189 * xml-tdesc.c: Likewise.
4190 * xstormy16-tdep.c: Likewise.
4191 * xtensa-linux-nat.c: Likewise.
4192 * xtensa-tdep.c: Likewise.
4194 2014-08-07 Gary Benson <gbenson@redhat.com>
4196 * common/common-defs.h: Include common-utils.h.
4197 * defs.h: Do not include common-utils.h.
4198 * common/gdb_assert.h: Likewise.
4199 * darwin-nat.h: Likewise.
4200 * nat/linux-btrace.c: Likewise.
4201 * target/waitstatus.h: Likewise.
4203 2014-08-07 Gary Benson <gbenson@redhat.com>
4205 * common/common-defs.h: Include ptid.h.
4206 * defs.h: Do not include ptid.h.
4207 * inferior.h: Likewise.
4208 * infrun.h: Likewise.
4209 * nat/linux-btrace.h: Likewise.
4210 * nat/linux-osdata.h: Likewise.
4211 * target/waitstatus.h: Likewise.
4213 2014-08-07 Gary Benson <gbenson@redhat.com>
4215 * common/common-defs.h: Include gdb_locale.h.
4216 * defs.h: Do not include gdb_locale.h.
4218 2014-08-07 Gary Benson <gbenson@redhat.com>
4220 * common/common-defs.h: Include gdb/signals.h.
4221 * defs.h: Do not include gdb/signals.h.
4223 2014-08-07 Gary Benson <gbenson@redhat.com>
4225 * common/common-defs.h: Include pathmax.h.
4226 * defs.h: Do not include pathmax.h.
4228 2014-08-07 Gary Benson <gbenson@redhat.com>
4230 * common/common-defs.h: Include libiberty.h.
4231 * defs.h: Do not include libiberty.h.
4232 * common/queue.h: Likewise.
4233 * cp-name-parser.y: Likewise.
4234 * mi/mi-cmd-catch.c: Likewise.
4235 * python/python.c: Likewise.
4237 2014-08-07 Gary Benson <gbenson@redhat.com>
4239 * common/common-defs.h: Include ansidecl.h.
4240 * defs.h: Do not include ansidecl.h.
4241 * common/buffer.h: Likewise.
4242 * common/common-utils.h: Likewise.
4244 2014-08-07 Gary Benson <gbenson@redhat.com>
4246 * common/common-defs.h: Include stddef.h.
4247 * defs.h: Do not include stddef.h.
4248 * common/common-utils.h: Likewise.
4249 * amd64fbsd-nat.c: Likewise.
4250 * bcache.c: Likewise.
4251 * charset.c: Likewise.
4252 * common/buffer.h: Likewise.
4253 * common/vec.h: Likewise.
4254 * i386bsd-nat.c: Likewise.
4255 * nat/linux-btrace.h: Likewise.
4256 * ppcfbsd-nat.c: Likewise.
4257 * ppcnbsd-tdep.h: Likewise.
4258 * ppcobsd-nat.c: Likewise.
4259 * ppcobsd-tdep.h: Likewise.
4260 * python/py-gdb-readline.c: Likewise.
4262 2014-08-07 Gary Benson <gbenson@redhat.com>
4264 * common/common-defs.h: Include stdarg.h.
4265 * defs.h: Do not include stdarg.h.
4266 * ada-lang.c: Likewise.
4267 * common/common-utils.h: Likewise.
4268 * guile/scm-string.c: Likewise.
4269 * guile/scm-utils.c: Likewise.
4270 * m32c-tdep.c: Likewise.
4272 2014-08-07 Gary Benson <gbenson@redhat.com>
4274 * common/common-defs.h: Include stdlib.h.
4275 * defs.h: Do not include stdlib.h.
4276 * addrmap.c: Likewise.
4277 * bcache.c: Likewise.
4278 * common/buffer.c: Likewise.
4279 * common/common-utils.c: Likewise.
4280 * cp-name-parser.y: Likewise.
4281 * go32-nat.c: Likewise.
4282 * mn10300-linux-tdep.c: Likewise.
4283 * nat/linux-osdata.c: Likewise.
4284 * tui/tui.c: Likewise.
4285 * windows-nat.c: Likewise.
4287 2014-08-07 Gary Benson <gbenson@redhat.com>
4289 * common/common-defs.h: Include stdio.h.
4290 * defs.h: Do not include stdio.h.
4291 * ada-lang.c: Likewise.
4292 * common/buffer.c: Likewise.
4293 * common/common-utils.c: Likewise.
4294 * cp-name-parser.y: Likewise.
4295 * gnu-nat.c: Likewise.
4296 * go32-nat.c: Likewise.
4297 * i386gnu-nat.c: Likewise.
4298 * proc-api.c: Likewise.
4299 * proc-events.c: Likewise.
4300 * proc-flags.c: Likewise.
4301 * proc-why.c: Likewise.
4302 * python/python-internal.h: Likewise.
4303 * target-memory.c: Likewise.
4304 * tui/tui-io.c: Likewise.
4305 * tui/tui.c: Likewise.
4307 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4309 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4310 (scan_dyntag_auxv): Same.
4312 2014-08-06 Yao Qi <yao@codesourcery.com>
4314 * amd64-linux-nat.c: Remove duplicated include
4316 * i386-linux-nat.c: Likewise.
4318 2014-08-06 Yao Qi <yao@codesourcery.com>
4320 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4321 operand" with "Special opcode" in comments.
4323 2014-08-05 Gary Benson <gbenson@redhat.com>
4325 * interps.c (initialize_interps): Remove prototype.
4326 (interpreter_initialized): Remove static global.
4327 (interp_add): Do not call initialize_interps.
4328 (initialize_interps): Remove function.
4330 2014-08-05 Gary Benson <gbenson@redhat.com>
4332 * utils.c (vwarning): Remove spurious va_end.
4334 2014-08-05 Alan Modra <amodra@gmail.com>
4336 * charset.c (convert_between_encodings): Cast result of obstack_base.
4337 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4338 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4339 (read_unwind_info): Use size_t for some locals.
4340 * jit.c (finalize_symtab): Likewise.
4341 * utils.c (hashtab_obstack_allocate): Likewise.
4342 * symmisc.c (print_objfile_statistics): Update format strings.
4344 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4346 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4347 (Changes in GDB 7.8): ... here.
4349 2014-08-04 Tom Tromey <tromey@redhat.com>
4351 * target.c (set_targetdebug): New function.
4352 (initialize_targets): Pass set_targetdebug when creating "set
4355 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4357 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4358 if detecting a variable-sized field that is not the last field.
4359 Fix struct type length computation.
4361 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4363 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4366 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4368 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4369 Remove "+ 8" offset in computation of CHAIN_VMA.
4371 2014-07-31 Doug Evans <dje@google.com>
4373 * inflow.c (child_terminal_inferior): Add comment.
4374 (child_terminal_ours_for_output): Add comment.
4375 (child_terminal_ours): Add comment.
4376 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4377 (linux_nat_terminal_ours): Add comment.
4379 2014-07-31 Gary Benson <gbenson@redhat.com>
4381 * common/btrace-common.h: Do not include defs.h or server.h.
4382 * nat/mips-linux-watch.h: Likewise.
4383 * gdb-dlfcn.h: Do not include defs.h.
4384 * tracefile.h: Likewise.
4386 2014-07-30 Roland McGrath <mcgrathr@google.com>
4388 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4390 2014-07-30 Tom Tromey <tromey@redhat.com>
4392 * bsd-kvm.c (bsd_kvm_open): Constify.
4393 * corelow.c (core_open): Constify.
4394 * ctf.c (ctf_open): Constify.
4395 * dbug-rom.c (dbug_open): Constify.
4396 * exec.c (exec_open): Constify.
4397 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4398 * microblaze-rom.c (picobug_open): Constify.
4399 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4401 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4402 * record-btrace.c (record_btrace_open): Constify.
4403 * record-full.c (record_full_core_open_1, record_full_open_1)
4404 (record_full_open): Constify.
4405 * remote-m32r-sdi.c (m32r_open): Constify.
4406 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4407 (rockhopper_open, lsi_open): Constify.
4408 * remote-sim.c (gdbsim_open): Constify.
4409 * remote.c (remote_open, extended_remote_open, remote_open_1):
4411 * target.h (struct target_ops) <to_open>: Make "arg" const.
4412 * tracefile-tfile.c (tfile_open): Constify.
4414 2014-07-30 Tom Tromey <tromey@redhat.com>
4416 * breakpoint.c (map_breakpoint_numbers): Update.
4417 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4418 (get_number_const): New function.
4419 (get_number): Rewrite using get_number_const.
4420 (init_number_or_range): Make "string" const.
4421 (number_is_in_list): Make "list" const.
4422 * cli/cli-utils.h (get_number_const): Declare.
4423 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4424 (init_number_or_range, number_is_in_list): Update.
4425 * printcmd.c (map_display_numbers): Update.
4426 * value.c (value_from_history_ref): Constify.
4427 * value.h (value_from_history_ref): Update.
4429 2014-07-30 Tom Tromey <tromey@redhat.com>
4431 * corefile.c (hook_type, call_extra_exec_file_hooks)
4432 (specify_exec_file_hook): Constify.
4433 * exec.c (exec_file_attach): Make "filename" const.
4434 * gdbcore.h (deprecated_exec_file_display_hook)
4435 (specify_exec_file_hook, exec_file_attach): Constify.
4436 * main.c (captured_main): Use catch_command_errors_const.
4438 2014-07-30 Tom Tromey <tromey@redhat.com>
4440 * target.c (open_target): New function.
4441 (add_target_with_completer, add_deprecated_target_alias): Use
4442 set_cmd_sfunc, set_cmd_context.
4443 (debug_to_open): Remove.
4444 (setup_target_debug): Update.
4446 2014-07-30 Yao Qi <yao@codesourcery.com>
4448 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4450 * parse.c (exp_iterate): Update comments.
4452 2014-07-30 Gary Benson <gbenson@redhat.com>
4454 * common/common-defs.h: New file.
4455 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4456 * defs.h: Include common-defs.h.
4457 Do not include config.h or build-gnulib/config.h.
4459 2014-07-30 Gary Benson <gbenson@redhat.com>
4461 * common/common-utils.h: Do not include config.h.
4462 * nat/linux-btrace.h: Likewise.
4464 2014-07-30 Gary Benson <gbenson@redhat.com>
4466 * btrace.c: Include defs.h.
4467 * common/ptid.c: Include defs.h or server.h as appropriate.
4468 * nat/mips-linux-watch.c: Likewise.
4470 2014-07-29 Tom Tromey <tromey@redhat.com>
4472 * target.c (target_is_pushed): Simplify.
4474 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4478 2014-07-29 Yao Qi <yao@codesourcery.com>
4481 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4483 2014-07-28 Doug Evans <xdje42@gmail.com>
4486 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4487 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4490 2014-07-28 Will Newton <will.newton@linaro.org>
4492 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4493 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4494 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4495 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4496 (THUMB2_EABI_SYSCALL): Likewise.
4497 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4499 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4500 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4502 2014-07-27 Doug Evans <xdje42@gmail.com>
4504 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4506 2014-07-27 Doug Evans <xdje42@gmail.com>
4508 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4510 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4511 Doug Evans <xdje42@gmail.com>
4514 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4515 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4516 * configure.ac: Try to use guild to compile an scm file, if it fails
4517 then disable guile support.
4518 * configure: Regenerate.
4519 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4521 (GUILE_COMPILED_FILES): New variable.
4522 (GUILE_FILES) Update.
4523 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4524 (stamp-guile): Compile scm files.
4525 * guile/guile.c (boot_guile_support): New function.
4526 (standard_throw_args_p): New function.
4527 (print_standard_throw_error, print_throw_error): New functions.
4528 (handle_boot_error): New function.
4529 (initialize_scheme_side): Rewrite to call boot_guile_support.
4530 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4531 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4533 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4534 Doug Evans <xdje42@gmail.com>
4537 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4538 * guile/lib/gdb/support.scm: New file.
4539 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4540 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4542 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4544 (%assert-type): Ditto, and renamed to assert-type.
4545 (%exception-print-style): Delete.
4547 2014-07-26 Doug Evans <xdje42@gmail.com>
4550 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4551 * configure: Regenerate.
4552 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4554 (PYTHON_FILES): New variable.
4555 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4556 (GUILE_FILES): New variable.
4557 (stamp-python, install-python, uninstall-python): Handle empty
4559 (stamp-guile, install-guile, uninstall-guile): Ditto.
4561 2014-07-26 Doug Evans <xdje42@gmail.com>
4564 * guile/lib/gdb.scm (pretty-printers): Export.
4565 (set-pretty-printers!): Export.
4566 * guile/lib/gdb/printing.scm (gdb module): Update.
4567 (prepend-pretty-printer!, append-pretty-printer!): Update.
4568 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4569 (pretty_printer_list_var): Delete.
4570 (pretty_printer_list): New static global.
4571 (gdbscm_pretty_printers): New function.
4572 (gdbscm_set_pretty_printers_x): New function.
4573 (ppscm_find_pretty_printer_from_gdb): Update.
4574 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4575 (gdbscm_initialize_pretty_printers): Update.
4577 2014-07-26 Doug Evans <xdje42@gmail.com>
4580 * configure.ac: Add check for header gc/gc.h.
4581 Add check for function setenv.
4582 * configure: Regenerate.
4583 * config.in: Regenerate.
4584 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4586 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4588 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4589 variation in gdbarch matching.
4591 2014-07-25 Tom Tromey <tromey@redhat.com>
4593 * exec.c (using_exec_ops): Remove.
4594 (exec_close_1): Update. Remove extraneous block, reindent.
4595 (add_target_sections): Use target_is_pushed.
4597 2014-07-25 Pedro Alves <palves@redhat.com>
4599 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4600 * monitor.c (monitor_create_inferior): Likewise.
4601 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4602 * remote-sim.c (gdbsim_create_inferior): Likewise.
4603 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4604 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4605 * windows-nat.c (do_initial_windows_stuff): Likewise.
4607 2014-07-25 Pedro Alves <palves@redhat.com>
4609 * NEWS: Mention signal passing and "signal" command changes.
4610 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4612 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4614 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4615 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4616 (jump_command): Adjust clear_proceed_status call.
4617 (signal_command): Warn if other thread that are resumed have
4618 signals that will be delivered. Adjust clear_proceed_status call.
4619 (until_next_command, finish_command)
4620 (proceed_after_attach_callback, attach_command_post_wait)
4621 (attach_command): Adjust clear_proceed_status call.
4622 * infrun.c (proceed_after_vfork_done): Likewise.
4623 (proceed_after_attach_callback): Adjust comment.
4624 (clear_proceed_status_thread): Clear stop_signal if not in pass
4626 (clear_proceed_status_callback): Delete.
4627 (clear_proceed_status): New 'step' parameter. Only clear the
4628 proceed status of threads the command being prepared is about to
4630 (proceed): If passed in an explicit signal, override stop_signal
4631 with it. Don't pass the last stop signal to the thread we're
4633 (init_wait_for_inferior): Adjust clear_proceed_status call.
4634 (switch_back_to_stepped_thread): Clear the signal if it should not
4636 * infrun.h (clear_proceed_status): New 'step' parameter.
4637 (user_visible_resume_ptid): Add comment.
4638 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4639 signal is in pass state.
4640 * remote.c (append_pending_thread_resumptions): Likewise.
4641 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4643 2014-07-25 Tom Tromey <tromey@redhat.com>
4645 * target.h (target_stopped_data_address)
4646 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4649 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4651 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4653 (avr_pointer_to_address): Likewise.
4655 2014-07-24 Tom Tromey <tromey@redhat.com>
4657 * monitor.c (compile_pattern): Update.
4658 * target.h (struct target_ops) <to_shortname, to_longname,
4661 2014-07-24 Tom Tromey <tromey@redhat.com>
4663 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4664 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4665 (add_info_alias, add_com): Make "doc" const.
4666 (print_doc_line): Make "str" const.
4667 (delete_cmd): Update.
4668 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4669 (print_doc_line): Update.
4670 * cli/cli-script.c (document_command): Update.
4671 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4672 (add_com, add_info, add_info_alias): Update.
4673 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4674 * python/py-cmd.c (cmdpy_destroyer): Update.
4676 2014-07-24 Tom Tromey <tromey@redhat.com>
4678 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4679 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4680 (help_cmd_list): Constify.
4681 (lookup_cmd): Update.
4682 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4684 (help_cmd_list, apropos_cmd): Update.
4685 * cli/cli-script.c (show_user): Update.
4686 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4687 * cli/cli-setshow.h (cmd_show_list): Update.
4688 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4689 (cmd_show_list): Update.
4690 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4691 * python/py-cmd.c (cmdpy_destroyer): Update.
4693 2014-07-24 Tom Tromey <tromey@redhat.com>
4695 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4696 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4698 * command.h (deprecate_cmd): Update.
4699 * maint.c (maintenance_do_deprecate): Add casts.
4701 2014-07-24 Tom Tromey <tromey@redhat.com>
4703 * cli/cli-decode.c (help_cmd): Make parameter "const".
4704 * cli/cli-decode.h (help_cmd): Update.
4706 2014-07-24 Tom Tromey <tromey@redhat.com>
4708 * stack.c (up_silently_base, down_silently_base): Make argument
4711 2014-07-24 Tom Tromey <tromey@redhat.com>
4713 * solib.c (solib_add): Make "pattern" const.
4714 * solib.h (solib_add): Update.
4716 2014-07-24 Tom Tromey <tromey@redhat.com>
4718 * remote.c (remote_serial_open, print_packet, putpkt)
4719 (putpkt_binary): Constify.
4720 * remote.h (putpkt): Update.
4722 2014-07-24 Tom Tromey <tromey@redhat.com>
4724 * monitor.c (monitor_open): Make "args" const.
4725 * monitor.h (monitor_open): Update.
4727 2014-07-24 Tom Tromey <tromey@redhat.com>
4729 * maint.c (match_bfd_flags): Make "string" const.
4730 (print_bfd_section_info): Remove casts.
4731 (print_objfile_section_info): Make "string" const.
4733 2014-07-24 Tom Tromey <tromey@redhat.com>
4735 * inf-child.c (inf_child_open_target): Make "arg" const.
4736 * inf-child.h (inf_child_open_target): Update.
4738 2014-07-24 Tom Tromey <tromey@redhat.com>
4740 * environ.c (unset_in_environ): Make "var" const.
4741 * environ.h (unset_in_environ): Update.
4743 2014-07-24 Tom Tromey <tromey@redhat.com>
4745 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4747 (scan_filename_with_cleanup): Likewise.
4748 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4749 Make arguments const.
4750 (restore_command): Update.
4752 2014-07-24 Pedro Alves <palves@redhat.com>
4754 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4756 2014-07-24 Tom Tromey <tromey@redhat.com>
4757 Gary Benson <gbenson@redhat.com>
4759 * nat/linux-ptrace.c (additional_flags): New global.
4760 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4761 additional_flags; don't check GDBSERVER.
4762 (linux_ptrace_set_additional_flags): New function.
4763 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4765 * linux-nat.c (_initialize_linux_nat): Call
4766 linux_ptrace_set_additional_flags.
4768 2014-07-24 Tom Tromey <tromey@redhat.com>
4770 * make-target-delegates (munge_type, write_debugmethod): New
4772 (debug_names): New global.
4773 ($TARGET_DEBUG_PRINTER): New global.
4774 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4776 Write debug methods. Generate init_debug_target.
4777 * target-debug.h: New file.
4778 * target-delegates.c: Rebuild.
4779 * target.c: Include target-debug.h.
4780 (debug_target): Hoist definition.
4781 (target_kill, target_get_section_table, target_memory_map)
4782 (target_flash_erase, target_flash_done, target_detach)
4783 (target_disconnect, target_wait, target_resume)
4784 (target_pass_signals, target_program_signals, target_follow_fork)
4785 (target_mourn_inferior, target_search_memory)
4786 (target_thread_address_space, target_close)
4787 (target_find_new_threads, target_core_of_thread)
4788 (target_verify_memory, target_insert_mask_watchpoint)
4789 (target_remove_mask_watchpoint): Remove targetdebug code.
4790 (debug_to_post_attach, debug_to_prepare_to_store)
4791 (debug_to_files_info, debug_to_insert_breakpoint)
4792 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4793 (debug_to_region_ok_for_hw_watchpoint)
4794 (debug_to_can_accel_watchpoint_condition)
4795 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4796 (debug_to_watchpoint_addr_within_range)
4797 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4798 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4799 (debug_to_terminal_init, debug_to_terminal_inferior)
4800 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4801 (debug_to_terminal_save_ours, debug_to_terminal_info)
4802 (debug_to_load, debug_to_post_startup_inferior)
4803 (debug_to_insert_fork_catchpoint)
4804 (debug_to_remove_fork_catchpoint)
4805 (debug_to_insert_vfork_catchpoint)
4806 (debug_to_remove_vfork_catchpoint)
4807 (debug_to_insert_exec_catchpoint)
4808 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4809 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4810 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4811 (setup_target_debug): Call init_debug_target.
4812 * target.h (TARGET_DEBUG_PRINTER): New macro.
4813 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4814 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4816 2014-07-24 Gary Benson <gbenson@redhat.com>
4818 * exceptions.h (throw_vfatal): Renamed to...
4819 (throw_vquit): New declaration.
4820 (throw_quit): Likewise.
4821 * exceptions.c (throw_vfatal): Renamed to...
4822 (throw_vquit): New function.
4823 (throw_quit): Likewise.
4824 (throw_error): Call throw_verror rather than throw_it.
4825 * utils.h (vfatal): Removed.
4827 * utils.c (vfatal): Removed.
4829 (internal_verror): Replaced call to fatal with call to throw_quit.
4830 (quit): Replaced calls to fatal with calls to throw_quit.
4832 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4834 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4837 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4839 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4840 less than zero in conditional expression.
4842 2014-07-23 Tom Tromey <tromey@redhat.com>
4844 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4845 ($INTRO_PART): Don't match whitespace.
4846 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4848 ($METHOD): Add $METHOD_TRAILER.
4850 (scan_target_h): New sub.
4851 Change main loop not to collect state.
4852 * target-delegates.c: Rebuild.
4854 2014-07-23 Gary Benson <gbenson@redhat.com>
4856 * cp-support.c (gdb_demangle): Fix build on systems without
4859 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4861 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4862 for reference entry value target data value.
4864 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4866 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4867 value_available_contents_eq.
4869 2014-07-22 Pedro Alves <palves@redhat.com>
4871 * value.c (allocate_optimized_out_value): Don't mark value as
4874 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4876 * MAINTAINERS (Write After Approval): Update my email address.
4878 2014-07-20 Doug Evans <dje@google.com>
4881 * remote.c (putpkt_binary): Add text to error message.
4883 2014-07-20 Yao Qi <yao@codesourcery.com>
4885 * eval.c: Remove "Chill" from comments.
4886 * gdbtypes.h: Likewise.
4887 * symtab.h: Likewise.
4889 2014-07-20 Yao Qi <yao@codesourcery.com>
4891 * std-operator.def: Update comments to TERNOP_SLICE.
4893 2014-07-20 Yao Qi <yao@codesourcery.com>
4895 * std-operator.def: Remove BINOP_RANGE.
4896 * breakpoint.c (watchpoint_exp_is_const): Update.
4897 * expprint.c (dump_subexp_body_standard): Likewise.
4898 * eval.c (init_array_element): Remove dead code.
4899 (evaluate_subexp_standard): Likewise.
4901 2014-07-20 Yao Qi <yao@codesourcery.com>
4903 * std-operator.def: Remove BINOP_IN.
4904 * breakpoint.c (watchpoint_exp_is_const): Update.
4905 * eval.c (evaluate_subexp_standard): Likewise.
4906 * expprint.c (dump_subexp_body_standard): Likewise.
4908 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4910 * microblaze-tdep.c (microblaze_register_names): Add
4911 the rshr and rslr register names.
4912 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4913 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4914 Use of tdesc_numbered_register. Use of
4915 microblaze_register_g_packet_guesses. Use of
4916 tdesc_use_registers. Use of set_gdbarch_register_type.
4917 (microblaze_register_g_packet_guesses): New.
4918 * microblaze-tdep.h (microblaze_reg_num): Add
4919 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4920 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4921 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4922 * features/microblaze-core.xml: New file.
4923 * features/microblaze-stack-protect.xml: New file.
4924 * features/microblaze-with-stack-protect.c: New file.
4925 * features/microblaze-with-stack-protect.xml: New file.
4926 * features/microblaze.xml: New file.
4927 * features/microblaze.c: New file.
4928 * features/Makefile (microblaze-with-stack-protect): Add
4929 microblaze-with-stack-protect microblaze and microblaze-expedite.
4930 * regformats/microblaze-with-stack-protect.dat: New file.
4931 * regformats/microblaze.dat: New file.
4932 * doc/gdb.texinfo (MicroBlaze Features): Added.
4934 2014-07-18 Tom Tromey <tromey@redhat.com>
4936 * exec.c (exec_ops): Now static.
4937 * exec.h (exec_ops): Don't declare.
4939 2014-07-18 Tom Tromey <tromey@redhat.com>
4941 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4942 to find_target_beneath.
4943 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4944 find_target_beneath.
4945 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4947 2014-07-18 Tom Tromey <tromey@redhat.com>
4950 * utils.c (quit): Use target_supports_terminal_ours.
4951 * target.h (target_supports_terminal_ours): Declare.
4952 * target.c (target_supports_delete_record): Don't check
4953 to_delete_record against NULL.
4954 (target_supports_terminal_ours): New function.
4956 2014-07-18 Tom Tromey <tromey@redhat.com>
4959 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4960 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4961 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4962 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4963 * windows-nat.c (windows_xfer_partial): Always delegate.
4964 * record-btrace.c (record_btrace_xfer_partial): Simplify
4966 (record_btrace_fetch_registers, record_btrace_store_registers)
4967 (record_btrace_prepare_to_store, record_btrace_resume)
4968 (record_btrace_wait, record_btrace_find_new_threads)
4969 (record_btrace_thread_alive): Likewise.
4970 * procfs.c (procfs_xfer_partial): Always delegate.
4971 * corelow.c (core_xfer_partial): Always delegate.
4972 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4974 2014-07-18 Tom Tromey <tromey@redhat.com>
4976 * exec.c (exec_make_note_section): Move earlier.
4978 2014-07-17 Doug Evans <dje@google.com>
4981 * maint.c (count_symtabs_and_blocks): Handle NULL
4982 current_program_space.
4983 (report_command_stats): Check global enabled flag in addition to
4984 recorded enabled flag.
4985 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4987 2014-07-16 Pedro Alves <palves@redhat.com>
4989 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4991 2014-07-16 Tom Tromey <tromey@redhat.com>
4993 * target.h (struct target_ops) <to_delete_record>: Reformat
4996 2014-07-16 Tom Tromey <tromey@redhat.com>
4998 * target-delegates.c: Rebuild.
5000 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5002 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5003 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5004 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5005 (avr_pointer_to_address): Likewise.
5006 (avr_address_class_type_flags): New function.
5007 (avr_address_class_type_flags_to_name): Likewise.
5008 (avr_address_class_name_to_type_flags): Likewise.
5009 (avr_gdbarch_init): Set address_class_type_flags,
5010 address_class_type_flags_to_name and
5011 address_class_name_to_type_flags.
5013 2014-07-15 Pedro Alves <palves@redhat.com>
5015 * linux-nat.c (kill_callback): Save errno and work with saved
5018 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5020 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5022 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5024 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5025 breakpoint support correctly.
5027 2014-07-14 Pedro Alves <palves@redhat.com>
5029 * utils.c (prompt_for_continue): Call target_terminal_ours.
5031 2014-07-14 Pedro Alves <palves@redhat.com>
5033 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5034 catch_errors. Don't re-enable stdin or notify observers where,
5036 (fetch_inferior_event_wrapper): Delete.
5038 2014-07-14 Pedro Alves <palves@redhat.com>
5041 * top.c: Include "inf-loop.h".
5042 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5044 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5046 (gdb_readline_wrapper): Store whether the target is async, and
5049 2014-07-14 Pedro Alves <palves@redhat.com>
5052 * top.c (gdb_readline_wrapper_line): Tweak comment.
5053 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5054 the input handler callback.
5056 2014-07-14 Pedro Alves <palves@redhat.com>
5059 * main.c: Include event-top.h.
5060 (handle_command_errors): New function.
5061 (catch_command_errors, catch_command_errors_const): Use it.
5063 2014-07-14 Pedro Alves <palves@redhat.com>
5065 * exceptions.c (catch_command_errors, catch_command_errors_const):
5067 * exceptions.h (catch_command_errors_ftype)
5068 (catch_command_errors_const_ftype): Moved to main.c.
5069 (catch_command_errors, catch_command_errors_const): Delete
5071 * main.c (catch_command_errors_ftype)
5072 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5073 (catch_command_errors, catch_command_errors_const)): Moved here
5074 from exceptions.c and make static.
5076 2014-07-14 Pedro Alves <palves@redhat.com>
5078 * exceptions.c (print_any_exception): Delete.
5079 (catch_exceptions_with_msg): Use exception_print instead of
5080 print_any_exception.
5081 (catch_errors): Use exception_fprintf instead of
5082 print_any_exception.
5083 (catch_command_errors, catch_command_errors_const): Use
5084 exception_print instead of print_any_exception.
5086 2014-07-14 Pedro Alves <palves@redhat.com>
5088 * infcall.c (run_inferior_call): Set 'sync_execution' while
5089 running the inferior call.
5091 2014-07-14 Pedro Alves <palves@redhat.com>
5093 * value.c (value_contents_equal): Delete function.
5094 * value.h (value_contents_equal): Delete declaration.
5096 2014-07-14 Tom Tromey <tromey@redhat.com>
5099 * gdbtypes.c (is_dynamic_type_internal): New function, from
5101 (is_dynamic_type): Rewrite.
5102 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5103 (resolve_dynamic_struct): Likewise.
5104 (resolve_dynamic_type_internal): New function, from
5105 resolve_dynamic_type.
5106 (resolve_dynamic_type): Rewrite.
5108 2014-07-14 Tom Tromey <tromey@redhat.com>
5110 * target.c (target_require_runnable): Also check record_stratum.
5113 2014-07-11 Yao Qi <yao@codesourcery.com>
5115 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5116 thumb_instruction_restores_sp return true.
5118 2014-07-11 Yao Qi <yao@codesourcery.com>
5120 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5121 (thumb_in_function_epilogue_p): Call
5122 thumb_instruction_restores_sp.
5124 2014-07-11 Yao Qi <yao@codesourcery.com>
5126 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5128 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5130 2014-07-11 Gary Benson <gbenson@redhat.com>
5132 * amd64-linux-nat.c (gdbcore.h): Remove include.
5133 (regset.h): Likewise.
5134 (nat/linux-btrace.h): Likewise.
5135 (btrace.h): Likewise.
5136 (gdb_assert.h): Likewise.
5137 (string.h): Likewise.
5138 (sys/uio.h): Likewise.
5139 (sys/debugreg.h): Likewise.
5140 (sys/syscall.h): Likewise.
5141 (sys/procfs.h): Likewise.
5142 (sys/user.h): Likewise.
5143 (asm/ptrace.h): Likewise.
5144 (i386-nat.h): Likewise.
5145 * i386-linux-nat.c (i386-nat.h): Likewise.
5146 (regset.h): Likewise.
5147 (target.h): Likewise.
5148 (linux-nat.h): Likewise.
5149 (nat/linux-btrace.h): Likewise.
5150 (btrace.h): Likewise.
5151 (gdb_assert.h): Likewise.
5152 (string.h): Likewise.
5153 (sys/uio.h): Likewise.
5154 (sys/user.h): Likewise.
5155 (sys/procfs.h): Likewise.
5156 (sys/reg.h): Likewise.
5157 (sys/debugreg.h): Likewise.
5158 (ORIG_EAX): Remove definition.
5160 2014-07-11 Gary Benson <gbenson@redhat.com>
5162 * i386-linux-nat.h: New file.
5163 * x86-linux-nat.h: Likewise.
5164 * x86-linux-nat.c: Likewise.
5165 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5166 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5167 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5168 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5169 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5170 (PTRACE_SETREGSET): Likewise.
5171 (arch_lwp_info): Now in x86-linux-nat.c.
5172 (have_ptrace_getregset): Now in x86-linux-nat.h.
5173 (x86_linux_dr_get): Now in x86-linux-nat.c.
5174 (x86_linux_dr_set): Likewise.
5175 (x86_linux_dr_get_addr): Likewise.
5176 (x86_linux_dr_get_control): Likewise.
5177 (x86_linux_dr_get_status): Likewise.
5178 (update_debug_registers_callback): Likewise.
5179 (x86_linux_dr_set_control): Likewise.
5180 (x86_linux_dr_set_addr): Likewise.
5181 (x86_linux_prepare_to_resume): Likewise.
5182 (x86_linux_new_thread): Likewise.
5183 (x86_linux_new_fork): Likewise.
5184 (x86_linux_get_thread_area): Likewise.
5185 (super_post_startup_inferior): Likewise.
5186 (x86_linux_child_post_startup_inferior): Likewise.
5187 (AMD64_LINUX_USER64_CS): Likewise.
5188 (AMD64_LINUX_X32_DS): Likewise.
5189 (x86_linux_read_description): Likewise.
5190 (x86_linux_enable_btrace): Likewise.
5191 (x86_linux_disable_btrace): Likewise.
5192 (x86_linux_teardown_btrace): Likewise.
5193 (x86_linux_read_btrace): Likewise.
5194 (x86_linux_create_target): Likewise.
5195 (x86_linux_add_target): Likewise.
5196 * i386-linux-nat.c (x86-linux-nat.h): New include.
5197 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5198 (PTRACE_SETREGSET): Likewise.
5199 (arch_lwp_info): Now in x86-linux-nat.c.
5200 (have_ptrace_getregset): Now in x86-linux-nat.h.
5201 (x86_linux_dr_get): Now in x86-linux-nat.c.
5202 (x86_linux_dr_set): Likewise.
5203 (x86_linux_dr_get_addr): Likewise.
5204 (x86_linux_dr_get_control): Likewise.
5205 (x86_linux_dr_get_status): Likewise.
5206 (update_debug_registers_callback): Likewise.
5207 (x86_linux_dr_set_control): Likewise.
5208 (x86_linux_dr_set_addr): Likewise.
5209 (x86_linux_prepare_to_resume): Likewise.
5210 (x86_linux_new_thread): Likewise.
5211 (x86_linux_new_fork): Likewise.
5212 (x86_linux_get_thread_area): Likewise.
5213 (super_post_startup_inferior): Likewise.
5214 (x86_linux_child_post_startup_inferior): Likewise.
5215 (AMD64_LINUX_USER64_CS): Likewise.
5216 (AMD64_LINUX_X32_DS): Likewise.
5217 (x86_linux_read_description): Likewise.
5218 (x86_linux_enable_btrace): Likewise.
5219 (x86_linux_disable_btrace): Likewise.
5220 (x86_linux_teardown_btrace): Likewise.
5221 (x86_linux_read_btrace): Likewise.
5222 (x86_linux_create_target): Likewise.
5223 (x86_linux_add_target): Likewise.
5225 2014-07-11 Gary Benson <gbenson@redhat.com>
5227 * amd64-linux-nat.c: Comment and whitespace changes.
5228 * i386-linux-nat.c: Comment and whitespace changes.
5230 2014-07-11 Gary Benson <gbenson@redhat.com>
5232 * amd64-linux-nat.c (x86_linux_create_target): New function.
5233 (x86_linux_add_target): Likewise.
5234 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5235 * i386-linux-nat.c (x86_linux_create_target): New function.
5236 (x86_linux_add_target): Likewise.
5237 (_initialize_i386_linux_nat): Delegate to the above new functions.
5239 2014-07-11 Gary Benson <gbenson@redhat.com>
5241 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5242 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5243 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5244 (ps_get_thread_area): Delegate to the above.
5246 2014-07-11 Gary Benson <gbenson@redhat.com>
5248 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5249 x86_linux_read_description. All uses updated. amd64-specific
5250 code conditionalized. Conditionalized i386-specific code added.
5251 Redundant cast removed.
5252 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5253 x86_linux_read_description. All uses updated. i386-specific
5254 code conditionalized. Conditionalized amd64-specific code added.
5255 One sizeof replaced with the actual type it is describing.
5257 2014-07-11 Gary Benson <gbenson@redhat.com>
5259 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5260 x86_linux_dr_get. All uses updated.
5261 (amd64_linux_dr_set): Renamed to
5262 x86_linux_dr_set. All uses updated.
5263 (amd64_linux_dr_get_addr): Renamed to
5264 x86_linux_dr_get_addr. All uses updated.
5265 (amd64_linux_dr_get_control): Renamed to
5266 x86_linux_dr_get_control. All uses updated.
5267 (amd64_linux_dr_get_status): Renamed to
5268 x86_linux_dr_get_status. All uses updated.
5269 (amd64_linux_dr_set_control): Renamed to
5270 x86_linux_dr_set_control. All uses updated.
5271 (amd64_linux_dr_set_addr): Renamed to
5272 x86_linux_dr_set_addr. All uses updated.
5273 (amd64_linux_prepare_to_resume): Renamed to
5274 x86_linux_prepare_to_resume. All uses updated.
5275 (amd64_linux_new_thread): Renamed to
5276 x86_linux_new_thread. All uses updated.
5277 (amd64_linux_new_fork): Renamed to
5278 x86_linux_new_fork. All uses updated.
5279 (amd64_linux_child_post_startup_inferior): Renamed to
5280 x86_linux_child_post_startup_inferior. All uses updated.
5281 (amd64_linux_enable_btrace): Renamed to
5282 x86_linux_enable_btrace. All uses updated.
5283 (amd64_linux_disable_btrace): Renamed to
5284 x86_linux_disable_btrace. All uses updated.
5285 (amd64_linux_teardown_btrace): Renamed to
5286 x86_linux_teardown_btrace. All uses updated.
5287 (amd64_linux_read_btrace): Renamed to
5288 x86_linux_read_btrace. All uses updated.
5289 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5290 x86_linux_dr_get. All uses updated.
5291 (i386_linux_dr_set): Renamed to
5292 x86_linux_dr_set. All uses updated.
5293 (i386_linux_dr_get_addr): Renamed to
5294 x86_linux_dr_get_addr. All uses updated.
5295 (i386_linux_dr_get_control): Renamed to
5296 x86_linux_dr_get_control. All uses updated.
5297 (i386_linux_dr_get_status): Renamed to
5298 x86_linux_dr_get_status. All uses updated.
5299 (i386_linux_dr_set_control): Renamed to
5300 x86_linux_dr_set_control. All uses updated.
5301 (i386_linux_dr_set_addr): Renamed to
5302 x86_linux_dr_set_addr. All uses updated.
5303 (i386_linux_prepare_to_resume): Renamed to
5304 x86_linux_prepare_to_resume. All uses updated.
5305 (i386_linux_new_thread): Renamed to
5306 x86_linux_new_thread. All uses updated.
5307 (i386_linux_new_fork): Renamed to
5308 x86_linux_new_fork. All uses updated.
5309 (i386_linux_child_post_startup_inferior): Renamed to
5310 x86_linux_child_post_startup_inferior. All uses updated.
5311 (i386_linux_enable_btrace): Renamed to
5312 x86_linux_enable_btrace. All uses updated.
5313 (i386_linux_disable_btrace): Renamed to
5314 x86_linux_disable_btrace. All uses updated.
5315 (i386_linux_teardown_btrace): Renamed to
5316 x86_linux_teardown_btrace. All uses updated.
5317 (i386_linux_read_btrace): Renamed to
5318 x86_linux_read_btrace. All uses updated.
5320 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5322 * remote.c (extended_remote_post_attach): New function.
5323 (init_extended_remote_ops): Install it as to_post_attach method.
5325 2014-07-09 Pedro Alves <palves@redhat.com>
5327 * infcmd.c (attach_command_post_wait): Don't call
5328 target_terminal_inferior here.
5329 (attach_command): Call it here instead.
5331 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5333 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5335 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5336 from varobj.c, with additional checks.
5337 (c_varobj_ops): Fill in is_path_expr_parent field.
5338 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5339 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5341 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5343 (varobj_default_is_path_expr_parent): New function.
5344 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5345 (varobj_default_is_path_expr_parent): Declare new function.
5347 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5349 * infcmd.c (finish_backward): Turn internal error into normal error.
5351 2014-07-07 Pedro Alves <palves@redhat.com>
5354 * remote.c (async_handle_remote_sigint)
5355 (async_handle_remote_sigint_twice): Call
5356 gdb_call_async_signal_handler instead of
5357 mark_async_signal_handler.
5359 2014-07-07 Tom Tromey <tromey@redhat.com>
5361 * target-delegates.c: Rebuild.
5362 * target.c (target_info_record): Remove.
5363 * record.c (info_record_command): Unconditionally call
5365 * target.h (struct target_ops) <to_info_record>: Use
5366 TARGET_DEFAULT_IGNORE.
5367 (target_info_record): Remove.
5369 2014-07-07 Tom Tromey <tromey@redhat.com>
5371 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5372 TARGET_DEFAULT_NORETURN.
5373 * target.c (generic_tls_error): New function.
5374 (target_translate_tls_address): Don't search target stack.
5375 * target-delegates.c: Rebuild.
5376 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5378 * linux-thread-db.c (thread_db_get_thread_local_address):
5379 Unconditionally call beneath target.
5381 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5383 * cli/cli-logging.c (pop_output_files): Assign targerr to
5386 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5388 * MAINTAINERS (Write After Approval): Update my email address.
5390 2014-07-02 Gary Benson <gbenson@redhat.com>
5392 * proc-service.c (ps_xfer_memory): Update comment.
5393 (ps_pstop): Remove unused function.
5394 (ps_pcontinue): Likewise.
5395 (ps_lstop): Likewise.
5396 (ps_lcontinue): Likewise.
5397 (ps_lgetxregsize): Likewise.
5398 (ps_lgetxregs): Likewise.
5399 (ps_lsetxregs): Likewise.
5400 (ps_plog): Likewise.
5401 (ps_ptread): Likewise.
5402 (ps_ptwrite): Likewise.
5404 2014-07-01 Mark Wielaard <mjw@redhat.com>
5406 * dwarf2read.c (add_array_cv_type): New function.
5407 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5408 (read_tag_volatile_type): Likewise.
5410 2014-07-01 Tom Tromey <tromey@redhat.com>
5412 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5413 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5414 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5415 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5416 * command.h (cmd_cfunc_ftype): Move earlier.
5417 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5418 (add_com, add_info): Use cmd_cfunc_ftype.
5420 2014-06-30 Tom Tromey <tromey@redhat.com>
5422 * symtab.c (operator_chars): Make parameters and return type
5424 (file_matches): Make "files" const.
5425 (struct search_symbols_data) <files>: Now const.
5426 (search_symbols): Make "regexp" and "files" parameters const.
5428 (symtab_symbol_info): Remove cast.
5429 (rbreak_command): Update.
5430 * symtab.h (search_symbols): Update.
5432 2014-06-27 Yao Qi <yao@codesourcery.com>
5434 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5435 Change parameter type to 'struct thread_info *'. Caller
5437 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5439 * dummy-frame.c (struct dummy_frame_id): New.
5440 (dummy_frame_id_eq): New function.
5441 (struct dummy_frame) <id>: Change its type to 'struct
5443 (dummy_frame_push): Add parameter ptid and save it in
5445 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5447 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5449 (lookup_dummy_frame): Change parameter type to 'struct
5450 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5451 instead of frame_id_eq.
5452 (dummy_frame_pop): Add parameter ptid. Callers updated.
5453 Update comments. Compose dummy_frame_id and pass it to
5455 (dummy_frame_discard): Add parameter ptid.
5456 (dummy_frame_sniffer): Compose dummy_frame_id and call
5457 dummy_frame_id_eq instead of frame_id_eq.
5458 (fprint_dummy_frames): Print ptid.
5459 * dummy-frame.h: Remove comments.
5460 (dummy_frame_push): Add ptid in declaration.
5461 (dummy_frame_pop, dummy_frame_discard): Likewise.
5463 2014-06-26 Tom Tromey <tromey@redhat.com>
5465 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5466 * command.h (error_no_arg): Update.
5468 2014-06-26 Tom Tromey <tromey@redhat.com>
5470 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5471 (do_show_command): Make "arg" const.
5472 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5474 2014-06-26 Tom Tromey <tromey@redhat.com>
5476 * record-full.c (record_full_get_bookmark): Make "args" const.
5477 (record_full_goto_bookmark): Make "raw_bookmark" const.
5478 * record.c (record_goto): New function.
5479 (cmd_record_goto): Use it. Now static.
5480 * record.h (record_goto): Declare.
5481 (cmd_record_goto): Remove declaration.
5482 * target-delegates.c: Rebuild.
5483 * target.h (struct target_ops) <to_get_bookmark,
5484 to_goto_bookmark>: Make parameter const.
5486 2014-06-26 Tom Tromey <tromey@redhat.com>
5488 * defs.h (generic_load): Update.
5489 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5490 * monitor.c (monitor_load): Make "args" const.
5491 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5492 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5494 (mips_load): Make "file" const.
5495 * remote-sim.c (gdbsim_load): Make "args" const.
5496 * remote.c (remote_load): Make "name" const.
5497 * symfile.c (generic_load): Make "args" const.
5498 * target-delegates.c: Rebuild.
5499 * target.c (target_load): Make "arg" const.
5500 (debug_to_load): Make "args" const.
5501 * target.h (struct target_ops) <to_load>: Make parameter const.
5502 (target_load): Update.
5504 2014-06-26 Tom Tromey <tromey@redhat.com>
5507 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5508 (dwarf2_physname, read_partial_die)
5509 (guess_partial_die_structure_name, fixup_partial_die)
5510 (guess_full_die_structure_name, anonymous_struct_prefix)
5511 (dwarf2_name): Use per-BFD obstack.
5513 2014-06-26 Yao Qi <yao@codesourcery.com>
5515 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5516 dummyframe and this_id into inner block below.
5518 2014-06-26 Yao Qi <yao@codesourcery.com>
5520 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5521 with "signal_pass[0]" in the initialization of signal_pass.
5523 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5525 * record-btrace.c (record_btrace_generating_corefile)
5526 (record_btrace_prepare_to_generate_core)
5527 (record_btrace_done_generating_core): New.
5528 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5529 (record_btrace_store_registers, record_btrace_prepare_to_store):
5530 Forward request when generating a core file.
5531 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5532 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5533 to_done_generating_core.
5535 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5537 * target.h (target_ops) <to_prepare_to_generate_core>
5538 <to_done_generating_core>: New.
5539 (target_prepare_to_generate_core, target_done_generating_core): New.
5540 * target.c (target_prepare_to_generate_core)
5541 (target_done_generating_core): New.
5542 * target-delegates.c: Regenerate.
5543 * gcore.c: (write_gcore_file): Rename to ...
5544 (write_gcore_file_1): ...this.
5545 (write_gcore_file): Call target_prepare_to_generate_core
5546 and target_done_generating_core.
5548 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5550 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5551 * gcore.c (write_gcore_file): Free memory returned from
5552 make_corefile_notes.
5553 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5554 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5556 2014-06-24 Yao Qi <yao@codesourcery.com>
5558 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5559 (arm_linux_init_abi): Set skip_trampoline_code with
5560 gdbarch_skip_trampoline_code instead of
5561 find_solib_trampoline_target.
5563 2014-06-24 Yao Qi <yao@codesourcery.com>
5565 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5566 arm_skip_bx_reg returns non-zero.
5568 2014-06-24 Yao Qi <yao@codesourcery.com>
5570 * arm-tdep.c (arm_skip_bx_reg): New function.
5571 (arm_skip_stub): Call arm_skip_bx_reg.
5573 2014-06-23 Don Breazeal <donb@codesourcery.com>
5575 * MAINTAINERS: Add myself as write-after-approval maintainer.
5577 2014-06-23 Pedro Alves <palves@redhat.com>
5579 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5580 DR_CONTROL before setting DR0..DR3.
5581 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5582 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5583 bits of DR_CONTROL related to the debug register slot being
5584 disabled. If all slots are vacant, clear local slowdown as well,
5585 and assert DR_CONTROL is 0.
5587 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5589 * python/lib/gdb/command/xmethods.py
5590 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5591 current progspace only if the string "progspace" matches LOCUS_RE.
5593 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5595 Fix --with-system-readline with readline-6.3 patch 5.
5596 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5597 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5600 2014-06-20 Tom Tromey <tromey@redhat.com>
5602 * dwarf2read.c (dw2_get_real_path): Use correct type in
5604 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5606 2014-06-20 Gary Benson <gbenson@redhat.com>
5608 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5609 * common/glibc_thread_db.h: Likewise.
5610 * common/i386-cpuid.h: Likewise.
5611 * common/i386-gcc-cpuid.h: Likewise.
5612 * common/linux-btrace.h: Likewise.
5613 * common/linux-osdata.h: Likewise.
5614 * common/linux-procfs.h: Likewise.
5615 * common/linux-ptrace.h: Likewise.
5616 * common/mips-linux-watch.h: Likewise.
5617 * common/linux-btrace.c: Moved to nat.
5618 * common/linux-osdata.c: Likewise.
5619 * common/linux-procfs.c: Likewise.
5620 * common/linux-ptrace.c: Likewise.
5621 * common/mips-linux-watch.c: Likewise.
5622 * nat/gdb_thread_db.h: Moved from common.
5623 * nat/glibc_thread_db.h: Likewise.
5624 * nat/i386-cpuid.h: Likewise.
5625 * nat/i386-gcc-cpuid.h: Likewise.
5626 * nat/linux-btrace.c: Likewise.
5627 * nat/linux-btrace.h: Likewise.
5628 * nat/linux-osdata.c: Likewise.
5629 * nat/linux-osdata.h: Likewise.
5630 * nat/linux-procfs.c: Likewise.
5631 * nat/linux-procfs.h: Likewise.
5632 * nat/linux-ptrace.c: Likewise.
5633 * nat/linux-ptrace.h: Likewise.
5634 * nat/mips-linux-watch.c: Likewise.
5635 * nat/mips-linux-watch.h: Likewise.
5636 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5637 (object file files): Reordered.
5638 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5639 of glibc_thread_db.h.
5641 2014-06-20 Gary Benson <gbenson@redhat.com>
5643 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5644 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5645 (i386_dr_low): Likewise.
5646 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5647 (i386_dr_low_set_addr): Likewise.
5648 (i386_dr_low_get_addr): Likewise.
5649 (i386_dr_low_can_set_control): Likewise.
5650 (i386_dr_low_set_control): Likewise.
5651 (i386_dr_low_get_control): Likewise.
5652 (i386_dr_low_get_status): Likewise.
5653 (i386_get_debug_register_length): Likewise.
5654 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5655 (i386_dr_low): Likewise.
5656 * nat/i386-dregs.c (i386-low.h): Remove include.
5657 (i386-nat.h): Likewise.
5658 (nat/i386-dregs.h): New include.
5659 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5660 (i386_dr_low_set_addr): Likewise.
5661 (i386_dr_low_get_addr): Likewise.
5662 (i386_dr_low_can_set_control): Likewise.
5663 (i386_dr_low_set_control): Likewise.
5664 (i386_dr_low_get_control): Likewise.
5665 (i386_dr_low_get_status): Likewise.
5666 (i386_get_debug_register_length): Likewise.
5667 (debug_hw_points): Likewise.
5669 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5671 * Makefile.in (SFILES): Add d-exp.y.
5672 (YYFILES): Add d-exp.c.
5673 (YYOBJ): Add d-exp.o.
5674 (local-maintainer-clean): Delete d-exp.c.
5675 * d-exp.y: New file.
5676 * d-lang.h (d_parse): New declaration.
5677 (d_error): New declaration.
5678 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5679 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5680 PREC_ORDER operators.
5681 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5683 2014-06-19 Yao Qi <yao@codesourcery.com>
5685 * gdbthread.h (any_running): Remove the declaration.
5686 * thread.c (any_running): Remove.
5688 2014-06-19 Yao Qi <yao@codesourcery.com>
5690 * gdbthread.h (struct thread_info) <state>: Change its type to
5691 'enum thread_state'. Update comments.
5693 2014-06-19 Pedro Alves <palves@redhat.com>
5695 * gdbthread.h (ALL_THREADS): Delete.
5696 (ALL_NON_EXITED_THREADS): New macro.
5697 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5698 instead of ALL_THREADS.
5699 * infrun.c (find_thread_needs_step_over)
5700 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5701 instead of ALL_THREADS.
5702 * record-btrace.c (record_btrace_open)
5703 (record_btrace_stop_recording, record_btrace_close)
5704 (record_btrace_is_replaying, record_btrace_resume)
5705 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5706 * remote.c (append_pending_thread_resumptions): Likewise.
5707 * thread.c (thread_apply_all_command): Likewise.
5709 2014-06-19 Gary Benson <gbenson@redhat.com>
5711 * i386-nat.c (i386_stopped_by_watchpoint):
5712 Use i386_dr_stopped_by_watchpoint.
5713 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5714 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5716 2014-06-19 Gary Benson <gbenson@redhat.com>
5718 * nat/i386-dregs.c: New file.
5719 * Makefile.in (i386-dregs.o): New rule.
5720 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5721 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5722 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5723 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5724 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5725 * config/i386/go32.mh (NATDEPFILES): Likewise.
5726 * config/i386/linux.mh (NATDEPFILES): Likewise.
5727 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5728 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5729 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5730 * i386-nat.h (debug_hw_points): New declaration.
5731 * i386-nat.c (breakpoint.h): Remove include.
5732 (command.h): Likewise.
5733 (target.h): Likewise.
5734 (gdb_assert.h): Likewise.
5735 (debug_hw_points): Made nonstatic.
5736 (debug_printf): Now in i386-dregs.c.
5737 (TARGET_HAS_DR_LEN_8): Likewise.
5738 (DR_CONTROL_SHIFT): Likewise.
5739 (DR_CONTROL_SIZE): Likewise.
5740 (DR_RW_EXECUTE): Likewise.
5741 (DR_RW_WRITE): Likewise.
5742 (DR_RW_READ): Likewise.
5743 (DR_RW_IORW): Likewise.
5744 (DR_LEN_1): Likewise.
5745 (DR_LEN_2): Likewise.
5746 (DR_LEN_4): Likewise.
5747 (DR_LEN_8): Likewise.
5748 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5749 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5750 (DR_ENABLE_SIZE): Likewise.
5751 (DR_LOCAL_SLOWDOWN): Likewise.
5752 (DR_GLOBAL_SLOWDOWN): Likewise.
5753 (DR_CONTROL_RESERVED): Likewise.
5754 (I386_DR_CONTROL_MASK): Likewise.
5755 (I386_DR_VACANT): Likewise.
5756 (I386_DR_LOCAL_ENABLE): Likewise.
5757 (I386_DR_GLOBAL_ENABLE): Likewise.
5758 (I386_DR_DISABLE): Likewise.
5759 (I386_DR_SET_RW_LEN): Likewise.
5760 (I386_DR_GET_RW_LEN): Likewise.
5761 (I386_DR_WATCH_HIT): Likewise.
5762 (i386_wp_op_t): Likewise.
5763 (i386_show_dr): Likewise.
5764 (i386_length_and_rw_bits): Likewise.
5765 (i386_insert_aligned_watchpoint): Likewise.
5766 (i386_remove_aligned_watchpoint): Likewise.
5767 (i386_handle_nonaligned_watchpoint): Likewise.
5768 (i386_update_inferior_debug_regs): Likewise.
5769 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5770 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5771 (i386_region_ok_for_watchpoint):
5772 Use i386_dr_region_ok_for_watchpoint.
5773 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5775 2014-06-19 Gary Benson <gbenson@redhat.com>
5777 * i386-nat.c (i386_insert_hw_breakpoint): Use
5778 i386_insert_watchpoint.
5779 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5781 2014-06-19 Gary Benson <gbenson@redhat.com>
5783 * i386-nat.c (i386_dr_show): Renamed to
5784 i386_show_dr and made static. All uses updated.
5785 (i386_dr_length_and_rw_bits): Renamed to
5786 i386_length_and_rw_bits and made static.
5788 (i386_dr_insert_aligned_watchpoint): Renamed to
5789 i386_insert_aligned_watchpoint and made static.
5791 (i386_dr_remove_aligned_watchpoint): Renamed to
5792 i386_remove_aligned_watchpoint and made static.
5794 (i386_dr_update_inferior_debug_regs): Renamed to
5795 i386_update_inferior_debug_regs and made static.
5797 * nat/i386-dregs.h (i386_dr_show): Removed.
5798 (i386_dr_length_and_rw_bits): Likewise.
5799 (i386_dr_insert_aligned_watchpoint): Likewise.
5800 (i386_dr_remove_aligned_watchpoint): Likewise.
5801 (i386_dr_update_inferior_debug_regs): Likewise.
5803 2014-06-19 Gary Benson <gbenson@redhat.com>
5805 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5806 * configure: Regenerate.
5807 * config.in: Likewise.
5808 * main.c (signal.h): New include.
5809 (setup_alternate_signal_stack): New function.
5810 (captured_main): Call the above.
5811 * cp-support.c (signal.h): New include.
5812 (catch_demangler_crashes): New flag.
5813 (SIGJMP_BUF): New define.
5814 (SIGSETJMP): Likewise.
5815 (SIGLONGJMP): Likewise.
5816 (gdb_demangle_jmp_buf): New static global.
5817 (gdb_demangle_attempt_core_dump): Likewise.
5818 (gdb_demangle_signal_handler): New function.
5819 (gdb_demangle): If catch_demangler_crashes is set, install the
5820 above signal handler before calling bfd_demangle, and restore
5821 the original signal handler afterwards. Display the offending
5822 symbol and call demangler_warning the first time a segmentation
5824 (_initialize_cp_support): New maint set/show command.
5826 2014-06-19 Gary Benson <gbenson@redhat.com>
5828 * utils.h (resource_limit_kind): New enum.
5829 (can_dump_core): New declaration.
5830 (warn_cant_dump_core): Likewise.
5831 (dump_core): Likewise.
5832 * utils.c (dump_core): Made nonstatic. Added new
5833 parameter "limit_kind".
5834 (can_dump_core): Made nonstatic. Moved printing code to...
5835 (warn_cant_dump_core): New function.
5836 (can_dump_core_warn): Likewise.
5837 (internal_vproblem): Replace calls to can_dump_core with
5838 calls to can_dump_core_warn. Supply new argument to each.
5840 2014-06-19 Gary Benson <gbenson@redhat.com>
5842 * utils.h (demangler_vwarning): New declaration.
5843 (demangler_warning): Likewise.
5844 * utils.c (struct internal_problem)
5845 <user_settable_should_quit>: New field.
5846 <user_settable_should_dump_core>: Likewise
5847 (internal_error_problem): Add values for above new fields.
5848 (internal_warning_problem): Likewise.
5849 (demangler_warning_problem): New static global.
5850 (demangler_vwarning): New function.
5851 (demangler_warning): Likewise.
5852 (add_internal_problem_command): Selectively add commands.
5853 (_initialize_utils): New internal problem command.
5854 * maint.c (maintenance_demangler_warning): New function.
5855 (_initialize_maint_cmds): New command.
5857 2014-06-18 Tom Tromey <tromey@redhat.com>
5859 * f-valprint.c (info_common_command_for_block): Update.
5860 * symtab.h (struct general_symbol_info) <common_block>: Now
5863 2014-06-18 Tom Tromey <tromey@redhat.com>
5865 * symtab.h (struct symtab) <blockvector>: Now const.
5866 * ada-lang.c (ada_add_global_exceptions): Update.
5867 * buildsym.c (augment_type_symtab): Update.
5868 * dwarf2read.c (dw2_lookup_symbol): Update.
5869 * jit.c (finalize_symtab): Update.
5870 * jv-lang.c (add_class_symtab_symbol): Update.
5871 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5873 * objfiles.c (objfile_relocate1): Update.
5874 * psymtab.c (lookup_symbol_aux_psymtabs)
5875 (maintenance_check_psymtabs): Update.
5876 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5878 * spu-tdep.c (spu_catch_start): Update.
5879 * symmisc.c (dump_symtab_1): Update.
5880 * symtab.c (lookup_global_symbol_from_objfile)
5881 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5882 (basic_lookup_transparent_type_quick)
5883 (basic_lookup_transparent_type, find_pc_sect_symtab)
5884 (find_pc_sect_line, search_symbols): Update.
5885 * block.c (find_block_in_blockvector): Make "bl" const.
5886 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5888 (blockvector_contains_pc): Make "bv" const.
5889 (block_for_pc_sect): Update.
5890 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5891 (blockvector_contains_pc): Update.
5892 * breakpoint.c (resolve_sal_pc): Update.
5893 * inline-frame.c (block_starting_point_at): Update.
5895 2014-06-18 Tom Tromey <tromey@redhat.com>
5897 * completer.c (complete_line): Make "line_buffer" const.
5898 * completer.h (complete_line): Update.
5900 2014-06-18 Tom Tromey <tromey@redhat.com>
5902 * symtab.c (add_macro_name): Remove unneeded cast.
5904 2014-06-18 Tom Tromey <tromey@redhat.com>
5906 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5907 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5909 2014-06-18 Tom Tromey <tromey@redhat.com>
5911 * probe.c (info_probes_for_ops): Make "arg" const.
5912 * probe.h (info_probes_for_ops): Update.
5914 2014-06-18 Tom Tromey <tromey@redhat.com>
5916 * varobj.c (varobj_create): Update.
5917 * valops.c (value_of_this): Update.
5918 * tracepoint.c (add_local_symbols, scope_info): Update.
5919 * symtab.h (struct general_symbol_info) <block>: Now const.
5920 * symtab.c (skip_prologue_sal)
5921 (default_make_symbol_completion_list_break_on)
5922 (skip_prologue_using_sal): Update.
5923 * stack.h (iterate_over_block_locals)
5924 (iterate_over_block_local_vars): Update.
5925 * stack.c (print_frame_args): Update.
5926 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5928 (get_selected_block): Make return type const.
5929 * python/py-frame.c (frapy_block): Update.
5930 * python/py-block.c (gdbpy_block_for_pc): Update.
5931 * p-exp.y (%union) <bval>: Now const.
5932 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5933 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5934 * m2-exp.y (%union) <bval>: Now const.
5935 * linespec.c (get_current_search_block): Make return type const.
5936 (create_sals_line_offset, find_label_symbols): Update.
5937 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5939 (block_starting_point_at): Make "block" const.
5940 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5941 (check_exception_resume): Update.
5942 * guile/scm-frame.c (gdbscm_frame_block): Update.
5943 * guile/scm-block.c (gdbscm_lookup_block): Update.
5944 * frame.h (get_frame_block): Update.
5945 (get_selected_block): Make return type const.
5946 * frame.c (frame_id_inner): Update.
5947 * f-valprint.c (info_common_command_for_block)
5948 (info_common_command): Update.
5949 * dwarf2loc.c (dwarf2_find_location_expression)
5950 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5951 (locexpr_describe_location_piece): Update.
5952 * c-exp.y (%union) <bval>: Now const.
5953 * breakpoint.c (resolve_sal_pc): Update.
5954 * blockframe.c (get_frame_block):Make return type const.
5955 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5956 (block_innermost_frame): Update.
5957 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5958 (block_for_pc, block_for_pc_sect): Update.
5959 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5961 (block_for_pc_sect, block_for_pc): Make return type const.
5962 * ax-gdb.c (gen_expr): Update.
5963 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5964 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5965 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5966 (ada_read_var_value): Update.
5967 * ada-exp.y (struct name_info) <block>: Now const.
5969 (block_lookup): Constify.
5971 2014-06-18 Gary Benson <gbenson@redhat.com>
5973 * nat/i386-dregs.h: New file.
5974 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5975 * i386-nat.h (i386-dregs.h): New include.
5976 (DR_FIRSTADDR): Now in i386-dregs.h.
5977 (DR_LASTADDR): Likewise.
5978 (DR_NADDR): Likewise.
5979 (DR_STATUS): Likewise.
5980 (DR_CONTROL): Likewise.
5981 (i386_debug_reg_state): Likewise.
5982 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5984 2014-06-18 Don Breazeal <donb@codesourcery.com>
5986 * breakpoint.c (set_longjmp_breakpoint): Call
5987 momentary_breakpoint_from_master with additional argument.
5988 (set_longjmp_breakpoint_for_call_dummy): Call
5989 momentary_breakpoint_from_master with additional argument.
5990 (set_std_terminate_breakpoint): Call
5991 momentary_breakpoint_from_master with additional argument.
5992 (momentary_breakpoint_from_master): Add argument to function
5993 definition and use it to initialize structure member flag.
5994 (clone_momentary_breakpoint): Call
5995 momentary_breakpoint_from_master with additional argument.
5996 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5997 member flags set in momentary_breakpoint_from_master.
5999 2014-06-18 Gary Benson <gbenson@redhat.com>
6001 * i386-nat.c (i386_show_dr): Renamed to
6002 i386_dr_show and made nonstatic. All uses updated.
6003 (i386_length_and_rw_bits): Renamed to
6004 i386_dr_length_and_rw_bits and made nonstatic.
6006 (i386_insert_aligned_watchpoint): Renamed to
6007 i386_dr_insert_aligned_watchpoint and made nonstatic.
6009 (i386_remove_aligned_watchpoint): Renamed to
6010 i386_dr_remove_aligned_watchpoint and made nonstatic.
6012 (i386_update_inferior_debug_regs): Renamed to
6013 i386_dr_update_inferior_debug_regs and made nonstatic.
6016 2014-06-18 Gary Benson <gbenson@redhat.com>
6018 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6019 (i386_dr_low_can_set_control): Likewise.
6020 (i386_dr_low_set_addr): Likewise.
6021 (i386_dr_low_set_control): Likewise.
6022 (i386_dr_low_get_addr): Likewise.
6023 (i386_dr_low_get_status): Likewise.
6024 (i386_dr_low_get_control): Likewise.
6025 (i386_insert_aligned_watchpoint): Use new macros.
6026 (i386_update_inferior_debug_regs): Likewise.
6027 (i386_stopped_data_address): Likewise.
6029 2014-06-18 Gary Benson <gbenson@redhat.com>
6031 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6032 New parameter. All uses updated.
6034 2014-06-18 Gary Benson <gbenson@redhat.com>
6036 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6039 2014-06-18 Gary Benson <gbenson@redhat.com>
6041 * i386-nat.c (debug_printf): New macro.
6042 (i386_get_debug_register_length): Likewise.
6043 (TARGET_HAS_DR_LEN_8): Use above macro.
6044 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6045 and printf_unfiltered. Use phex to format values.
6047 2014-06-18 Gary Benson <gbenson@redhat.com>
6049 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6052 2014-06-18 Gary Benson <gbenson@redhat.com>
6054 * i386-nat.c: Comment changes.
6056 2014-06-18 Gary Benson <gbenson@redhat.com>
6058 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6060 2014-06-18 Gary Benson <gbenson@redhat.com>
6062 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6063 (i386_insert_aligned_watchpoint): Likewise.
6064 (i386_remove_aligned_watchpoint): Likewise.
6065 (i386_handle_nonaligned_watchpoint): Likewise.
6067 2014-06-18 Gary Benson <gbenson@redhat.com>
6069 * i386-nat.c: Whitespace changes.
6071 2014-06-17 Samuel Bronson <naesten@gmail.com>
6073 * MAINTAINERS: Update Roland McGrath's email address.
6074 Thanks to Sergio Durigan Junior for pointing out that he left
6075 Red Hat a while ago, and giving me a current address.
6077 2014-06-17 Tom Tromey <tromey@redhat.com>
6079 * utils.h (savestring): Remove declaration.
6081 2014-06-17 Tom Tromey <tromey@redhat.com>
6083 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6085 2014-06-16 Keith Seitz <keiths@redhat.com>
6088 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6089 to update the varobj if inferior_ptid is null_ptid.
6091 2014-06-16 Tom Tromey <tromey@redhat.com>
6093 * target.h (struct target_ops) <to_info_proc>: Make parameter
6095 (target_info_proc): Update.
6096 * target.c (target_info_proc): Make "args" const.
6097 * procfs.c (procfs_info_proc): Update.
6098 * linux-tdep.c (linux_info_proc): Update.
6099 (linux_core_info_proc_mappings): Make "args" const.
6100 (linux_core_info_proc): Update.
6101 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6102 * gdbarch.c: Rebuild.
6103 * gdbarch.h: Rebuild.
6104 * corelow.c (core_info_proc): Update.
6106 2014-06-16 Tom Tromey <tromey@redhat.com>
6108 * target.h (struct target_ops) <to_disconnect>: Make parameter
6110 (target_disconnect): Update.
6111 * target.c (target_disconnect): Make "args" const.
6112 * target-delegates.c: Rebuild.
6113 * remote.c (remote_disconnect): Update.
6114 * record.h (record_disconnect): Update.
6115 * record.c (record_disconnect): Update.
6116 * inf-child.c (inf_child_disconnect): Update.
6118 2014-06-16 Tom Tromey <tromey@redhat.com>
6120 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6121 * target.c (debug_to_rcmd, default_rcmd): Update.
6122 * target-delegates.c: Rebuild.
6123 * remote.c (remote_rcmd): Update.
6124 * monitor.c (monitor_rcmd): Update.
6126 2014-06-16 Pedro Alves <palves@redhat.com>
6128 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6129 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6130 have OBJF_SHARED set.
6131 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6132 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6133 instead of OBJF_USERLOADED.
6134 * objfiles.h (OBJF_SHARED): Update comment.
6135 (userloaded_objfile_contains_address_p): Rename to ...
6136 (shared_objfile_contains_address_p): ... this, and update
6138 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6140 (remove_symbol_file_command): Skip objfiles that don't have
6143 2014-06-16 Tom Tromey <tromey@redhat.com>
6145 * minsyms.h (prim_record_minimal_symbol)
6146 (prim_record_minimal_symbol_and_info): Update comments.
6148 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6150 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6151 or --without-guile, according to how GDB was built.
6153 2014-06-13 Tom Tromey <tromey@redhat.com>
6155 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6157 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6159 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6161 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6162 help_list.Pass all_commands, not -1, to help_list.
6163 * cli/cli-dump.c (dump_command, append_command)
6164 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6165 (binary_dump_command, binary_append_command): Pass all_commands,
6166 not -1, to help_list.
6167 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6169 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6171 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6173 * top.c (set_history): Pass all_commands, not -1, to help_list.
6174 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6175 all_commands, not -1, to help_list.
6176 * symfile.c (overlay_command): Pass all_commands, not -1, to
6178 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6180 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6182 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6184 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6185 not -1, to help_list.
6186 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6187 not -1, to help_list.
6188 * maint.c (maintenance_command, maintenance_info_command)
6189 (maintenance_print_command, maintenance_set_cmd): Pass
6190 all_commands, not -1, to help_list.
6191 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6193 * language.c (set_check): Pass all_commands, not -1, to help_list.
6194 * infcmd.c (unset_command): Pass all_commands, not -1, to
6196 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6198 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6200 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6202 * breakpoint.c (save_command): Pass all_commands, not -1, to
6204 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6205 all_commands, not -1, to help_list.
6207 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6209 * regcache.c (struct register_to_invalidate): New structure.
6210 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6212 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6214 2014-06-12 Yao Qi <yao@codesourcery.com>
6216 * varobj.c (varobj_get_num_children): Call
6217 varobj_is_dynamic_p.
6218 (varobj_list_children): Likewise.
6219 (varobj_update): Likewise. Update comments.
6221 2014-06-12 Yao Qi <yao@codesourcery.com>
6223 * varobj.c (varobj_pretty_printed_p): Rename to ...
6224 (varobj_is_dynamic_p): ... this. New function.
6225 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6226 (varobj_is_dynamic_p): Declare.
6227 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6228 (mi_print_value_p, varobj_update_one): Likewise.
6230 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6231 Yao Qi <yao@codesourcery.com>
6233 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6234 (varobj_get_iterator): Wrap up code for pretty-printer by
6235 "#if HAVE_PYTHON" and "#endif".
6236 (update_dynamic_varobj_children): Likewise.
6238 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6239 Yao Qi <yao@codesourcery.com>
6241 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6242 gdb_python_initialized is false. Move some code from varobj.c.
6243 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6244 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6245 (struct varobj_item): Moved to varobj-iter.h".
6246 (varobj_clear_saved_item): New function.
6247 (update_dynamic_varobj_children): Move python-related code to
6249 (free_variable): Call varobj_clear_saved_item and
6252 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6253 Yao Qi <yao@codesourcery.com>
6255 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6256 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6257 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6258 (py-varobj.o): New rule.
6259 * python/py-varobj.c: New file.
6260 * python/python-internal.h (py_varobj_get_iterator): Declare.
6261 * varobj-iter.h: New file.
6262 * varobj.c: Include "varobj-iter.h"
6263 (struct varobj) <child_iter>: Change its type from "PyObject *"
6264 to "struct varobj_iter *".
6265 <saved_item>: Likewise.
6266 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6267 [HAVE_PYTHON] (varobj_get_iterator): New function.
6268 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6269 python-specific code to python/py-varobj.c.
6270 (install_visualizer): Call varobj_iter_delete instead of
6272 * varobj.h (varobj_ensure_python_env): Declare.
6274 2014-06-12 Yao Qi <yao@codesourcery.com>
6276 * varobj.c (struct varobj_item): New structure.
6277 (create_child_with_value): Update declaration.
6278 (varobj_add_child): Replace arguments 'name' and 'value' with
6279 'item'. All callers updated.
6280 (install_dynamic_child): Likewise.
6281 (update_dynamic_varobj_children): Likewise.
6282 (varobj_add_child): Likewise.
6283 (create_child_with_value): Likewise.
6285 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6287 * NEWS: Create a new section for the next release branch.
6288 Rename the section of the current branch, now that it has
6291 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6293 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6294 * version.in: Bump version to 7.8.50.DATE-cvs.
6296 2014-06-11 Pedro Alves <palves@redhat.com>
6299 * ser-mingw.c (net_windows_socket_check_pending): New function.
6300 (net_windows_select_thread): Ignore spurious wakeups. Use
6301 net_windows_socket_check_pending.
6302 (net_windows_wait_handle): Check for pending events with
6303 ioctlsocket, through net_windows_socket_check_pending, instead of
6304 checking the socket's event.
6306 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6308 * python/python-internal.h (gdb_PyObject_GetAttrString)
6309 (gdb_PyObject_HasAttrString): New inline function definitions.
6310 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6311 char * of the second argument to PyObject_GetAttrString.
6313 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6315 * serial.c (serial_write): Fix index of character to be printed
6316 in call to serial_logchar when serial debug traces are enabled.
6318 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6320 * gdbtypes (resolve_dynamic_range): Add function description.
6322 2014-06-09 Pedro Alves <palves@redhat.com>
6324 * linux-nat.c (linux_child_follow_fork): Initialize status with
6325 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6326 inner block. Only pass the signal to PTRACE_DETACH if in pass
6329 2014-06-09 Gary Benson <gbenson@redhat.com>
6331 * common/signals.c (gdb_signal_from_host): Reorder to separate
6332 the always-available ANSI-standard signals from the signals that
6334 (do_gdb_signal_to_host): Likewise.
6335 * proc-events.c (signal_table): Likewise.
6337 2014-06-08 Hui Zhu <hui@codesourcery.com>
6339 * common/linux-ptrace.c (linux_disable_event_reporting): New
6341 * common/linux-ptrace.h (linux_disable_event_reporting): New
6343 * linux-nat.c (linux_child_follow_fork): Do a single step before
6346 2014-06-07 Keith Seitz <keiths@redhat.com>
6350 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6351 from symbol_matches_domain in symtab.c. All local callers
6352 of symbol_matches_domain updated.
6353 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6354 search STRUCT_DOMAIN.
6355 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6356 independently. standard_lookup will do that automatically.
6357 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6358 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6359 (cp_lookup_symbol_in_namespace): Likewise.
6360 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6361 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6362 may return a STRUCT_DOMAIN match.
6363 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6364 * cp-support.c: Include language.h.
6365 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6367 * psymtab.c (match_partial_symbol): Compare the requested
6368 domain with the symbol's domain directly.
6369 (lookup_partial_symbol): Likewise.
6370 * symtab.c (lookup_symbol_in_language): Explain when/why
6371 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6372 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6373 appropriate languages.
6374 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6375 and moved to ada-lang.c
6376 (lookup_block_symbol): Explain that this function only returns
6377 symbol matching the requested DOMAIN.
6378 Compare the requested domain with the symbol's domain directly.
6379 (iterate_over_symbols): Compare the requested domain with the
6380 symbol's domain directly.
6381 * symtab.h (symbol_matches_domain): Remove.
6383 2014-06-06 Doug Evans <xdje42@gmail.com>
6385 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6386 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6387 (gdbscm_guile_version_is_at_least): Declare.
6388 (gdbscm_scm_string_to_int): Declare.
6389 * guile/guile.c (gdbscm_guile_major_version): New global.
6390 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6391 (guile_datadir): New static global.
6392 (gdbscm_guile_data_directory): New function.
6393 (initialize_scheme_side): Update.
6394 (misc_guile_functions): Add guile-data-directory.
6395 (initialize_gdb_module): Fetch guile version number.
6396 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6397 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6398 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6399 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6401 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6402 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6403 * guile/scm-value.c (gdbscm_value_to_string): Only call
6404 scm_port_conversion_strategy if Guile version >= 2.0.6.
6406 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6408 * main.c (print_gdb_help): Add -q and --silent.
6410 2014-06-06 Gary Benson <gbenson@redhat.com>
6412 * common/signals.c: Remove preprocessor conditionals for
6413 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6414 SIGSEGV and SIGTERM.
6415 * proc-events.c: Likewise.
6417 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6419 * symfile.c (symfile_free_objfile): Remove restriction to
6421 * symfile-mem.c (symbol_file_add_from_memory): Call
6422 add_target_sections_of_objfile.
6424 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6426 * guile/scm-value.c (gdbscm_history_append_x): Use
6427 'vlscm_get_value_smob_arg_unsafe' instead of
6428 'vlscm_scm_to_value'.
6430 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6433 * utils.c (printchar): Don't escape at all if quoter is NUL.
6434 Update function documentation to clarify effect of parameter
6436 * remote.c (escape_buffer): Pass '\\' as the quoter to
6437 fputstrn_unfiltered.
6438 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6439 generate the output.
6440 (mi_solib_unloaded): Same.
6442 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6444 * development.sh: Delete.
6445 * Makefile.in (config.status): Adjust dependency on development.sh.
6446 * configure.ac: Adjust development.sh source call.
6447 * configure: Regenerate.
6449 2014-06-04 Doug Evans <xdje42@gmail.com>
6451 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6452 is_scheme_bkpt, spec.
6453 (bpscm_make_breakpoint_smob): Initialize new members.
6454 (gdbscm_create_breakpoint_x): Split into two ...
6455 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6456 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6457 (scheme_function breakpoint_functions): Update.
6458 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6459 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6460 register-breakpoint!.
6462 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6465 * mem-break.c (z_type_supported): Return zero if
6466 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6468 2014-06-04 Tom Tromey <tromey@redhat.com>
6470 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6471 value_from_contents_and_address_unresolved.
6472 (ada_template_to_fixed_record_type_1): Likewise.
6473 (ada_which_variant_applies): Likewise.
6474 * value.h (value_from_contents_and_address_unresolved): Declare.
6475 * value.c (value_from_contents_and_address_unresolved): New
6477 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6478 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6479 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6481 2014-06-04 Tom Tromey <tromey@redhat.com>
6483 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6485 2014-06-04 Tom Tromey <tromey@redhat.com>
6487 * procfs.c (procfs_attach): Make "args" const.
6488 * windows-nat.c (windows_attach): Make "args" const.
6489 * nto-procfs.c (procfs_attach): Make "args" const.
6490 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6491 * go32-nat.c (go32_attach): Make "args" const.
6492 * gnu-nat.c (gnu_attach): Make "args" const.
6493 * darwin-nat.c (darwin_attach): Make "args" const.
6494 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6495 * linux-nat.c (linux_nat_attach): Make "args" const.
6496 * remote.c (extended_remote_attach_1, extended_remote_attach):
6498 * target.h (struct target_ops) <to_attach>: Make "args" const.
6499 (find_default_attach): Likewise.
6500 * utils.c (parse_pid_to_attach): Make "args" const.
6501 * utils.h (parse_pid_to_attach): Update.
6503 2014-06-04 Tom Tromey <tromey@redhat.com>
6505 * target-delegates.c: Rebuild.
6506 * target.c (default_thread_address_space): New function.
6507 (target_thread_address_space): Simplify.
6508 * target.h (struct target_ops) <to_thread_address_space>: Add
6509 TARGET_DEFAULT_FUNC.
6511 2014-06-04 Doug Evans <xdje42@gmail.com>
6513 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6515 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6517 * record-btrace.c: Include event-loop.h and inf-loop.h.
6518 (record_btrace_resume_exec_dir)
6519 (record_btrace_async_inferior_event_handler)
6520 (record_btrace_handle_async_inferior_event): New.
6521 (record_btrace_open): Create async event handler.
6522 (record_btrace_close): Delete async event handler.
6523 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6524 Mark async event handler.
6525 (record_btrace_execution_direction): New.
6526 (init_record_btrace_ops): Initialize to_execution_direction.
6528 2014-06-03 Doug Evans <xdje42@gmail.com>
6530 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6531 (gdbscm_make_parameter): Ditto.
6533 2014-06-03 Doug Evans <dje@google.com>
6535 * exec.c (exec_close_1): Call clear_section_table instead of
6536 resize_section_table.
6537 (clear_section_table): New function.
6538 (resize_section_table): Make static. Rename arg num_added to
6540 * exec.h (clear_section_table): Declare.
6541 (resize_section_table): Delete.
6542 * progspace.c (release_program_space): Call clear_section_table
6543 instead of resize_section_table.
6545 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6547 * NEWS (Python Scripting): Add entry about the new xmethods
6550 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6552 * python/py-xmethods.c: New file.
6553 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6554 (objfpy_dealloc): XDECREF on the new xmethods field.
6555 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6557 (objfpy_get_xmethods): New function.
6558 (objfile_getset): New entry 'xmethods'.
6559 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6560 (pspy_dealloc): XDECREF on the new xmethods field.
6561 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6563 (pspy_get_xmethods): New function.
6564 (pspace_getset): New entry 'xmethods'.
6565 * python/python-internal.h: Add declarations for new functions.
6566 * python/python.c (_initialize_python): Invoke
6567 gdbpy_initialize_xmethods.
6568 * python/lib/gdb/__init__.py (xmethods): New
6570 * python/lib/gdb/xmethod.py: New file.
6571 * python/lib/gdb/command/xmethods.py: New file.
6573 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6575 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6576 best match method returned by find_overload_match is an xmethod.
6577 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6578 the best matching operator returned by find_overload_match is an
6580 * valops.c: #include "extension.h".
6581 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6582 Return void. The list of matching source methods is returned in
6583 "fn_list" and a vector of matching debug method workers is
6584 returned in "xm_worker_vec". Update all callers.
6585 (value_find_oload_method_list): Likewise.
6586 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6587 non-NULL, then the index of the best matching method in this
6588 vector is returned. Update all callers.
6589 (find_overload_match): Include xmethods while performing overload
6592 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6594 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6595 * extension-priv.h (struct extension_language_ops): Add the
6597 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6598 get_matching_xmethod_workers, get_xmethod_argtypes,
6599 invoke_xmethod, free_xmethod_worker,
6600 free_xmethod_worker_vec): New functions.
6601 * extension.h: #include "common/vec.h".
6602 New function declarations.
6603 (struct xmethod_worker): New struct.
6604 (VEC (xmethod_worker_ptr)): New vector type.
6605 (xmethod_worker_ptr): New typedef.
6606 (xmethod_worker_vec): Likewise.
6607 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6609 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6610 (struct builtin_type): New field "xmethod".
6611 * valarith.c (value_ptradd): Assert that the value argument is not
6613 * valops.c (value_must_coerce_to_target): Return 0 for
6614 lval_xcallable values.
6615 * value.c (struct value): New field XM_WORKER in the field
6617 (value_address, value_raw_address): Return 0 for lval_xcallable
6619 (set_value_address): Assert that the value is not an
6621 (value_free): Free the associated xmethod worker when freeing
6622 lval_xcallable values.
6623 (set_value_component_location): Assert that the WHOLE value is not
6625 (value_of_xmethod, call_xmethod): New functions.
6626 * value.h: Declare "struct xmethod_worker".
6627 Declare new functions value_of_xmethod, call_xmethod.
6629 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6630 Pedro Alves <palves@redhat.com>
6632 PR breakpoints/17000
6633 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6634 New function, extracted from software_breakpoint_inserted_here_p.
6635 (software_breakpoint_inserted_here_p): Replace factored out code
6636 by call to find_non_raw_software_breakpoint_inserted_here.
6637 (bp_target_info_copy_insertion_state): New function.
6638 (bkpt_insert_location): Handle the case of a single-step
6639 breakpoint already inserted at the same address.
6640 (bkpt_remove_location): Handle the case of a single-step
6641 breakpoint still inserted at the same address.
6642 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6643 breakpoint already inserted at the same address.
6644 (deprecated_remove_raw_breakpoint): Handle the case of a
6645 non-raw breakpoint still inserted at the same address.
6646 (find_single_step_breakpoint): New function, extracted from
6647 single_step_breakpoint_inserted_here_p.
6648 (find_single_step_breakpoint): New function,
6649 factored out from single_step_breakpoint_inserted_here_p.
6650 (single_step_breakpoint_inserted_here_p): Reimplement.
6652 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6654 Pushed by Joel Brobecker <brobecker@adacore.com>
6655 * source.c (show_substitute_path_command): Fix display of matching
6658 2014-06-03 Gary Benson <gbenson@redhat.com>
6660 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6662 2014-06-02 Doug Evans <xdje42@gmail.com>
6664 Add parameter support for Guile.
6665 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6666 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6667 (scm-param.o): New rule.
6668 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6669 (gdbscm_misc_error): Declare.
6670 (gdbscm_canonicalize_command_name): Declare.
6671 (gdbscm_scm_to_host_string): Declare.
6672 (gdbscm_scm_from_host_string): Declare.
6673 (gdbscm_initialize_parameters): Declare.
6674 * guile/guile.c (initialize_gdb_module): Call
6675 gdbscm_initialize_parameters.
6676 * guile/lib/gdb.scm: Export parameter symbols.
6677 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6678 cmdscm_canonicalize_name and made public. All callers updated.
6679 * guile/scm-exception.c (gdbscm_misc_error): New function.
6680 * guile/scm-param.c: New file.
6681 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6682 (gdbscm_scm_to_host_string): New function.
6683 (gdbscm_scm_from_host_string): New function.
6684 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6686 2014-06-02 Doug Evans <xdje42@gmail.com>
6688 Add command support for Guile.
6689 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6690 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6691 (scm-cmd.o): New rule.
6692 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6693 (gdbscm_user_error_p): Declare.
6694 (gdbscm_parse_command_name): Declare.
6695 (gdbscm_valid_command_class_p): Declare.
6696 (gdbscm_initialize_commands): Declare.
6697 * guile/guile.c (initialize_gdb_module): Call
6698 gdbscm_initialize_commands.
6699 * guile/lib/gdb.scm: Export command symbols.
6700 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6701 (throw-user-error): New function.
6702 * guile/scm-cmd.c: New file.
6703 * guile/scm-exception.c (user_error_symbol): New static global.
6704 (gdbscm_user_error_p): New function.
6705 (gdbscm_initialize_exceptions): Set user_error_symbol.
6706 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6708 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6710 * top.c (command_loop): Handle comments here...
6711 (command_line_input): ... not here.
6713 2014-06-02 Doug Evans <xdje42@gmail.com>
6715 Add progspace support for Guile.
6716 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6717 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6718 (scm-progspace.o): New rule.
6719 * guile/guile-internal.h (pspace_smob): New typedef.
6720 (psscm_pspace_smob_pretty_printers): Declare.
6721 (psscm_pspace_smob_from_pspace): Declare.
6722 (psscm_scm_from_pspace): Declare.
6723 * guile/guile.c (initialize_gdb_module): Call
6724 gdbscm_initialize_pspaces.
6725 * guile/lib/gdb.scm: Export progspace symbols.
6726 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6728 (append-pretty-printer!): Ditto.
6729 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6731 * guile/scm-progspace.c: New file.
6733 2014-06-03 Alan Modra <amodra@gmail.com>
6735 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6736 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6738 2014-06-02 Doug Evans <dje@google.com>
6740 Add support for skeletonless type units.
6741 * dwarf2read.c (struct dwarf2_per_objfile): New member
6742 n_allocated_type_units.
6743 (struct dwarf2_per_objfile) <tu_stats>: New member
6744 nr_all_type_units_reallocs.
6745 (create_signatured_type_table_from_index): Initialize
6746 n_allocated_type_units
6747 (create_all_type_units): Ditto.
6748 (add_type_unit): Move up in file. New arg slot.
6749 All callers updated. Increase space for all_type_units more
6751 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6752 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6753 (lookup_dwp_signatured_type): Ditto.
6754 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6755 All callers updated.
6756 (build_type_psymtabs_1): Leave type_unit_groups as
6757 NULL if no TUs present.
6758 (print_tu_stats): New function.
6759 (process_skeletonless_type_unit): New function.
6760 (process_dwo_file_for_skeletonless_type_units): New
6762 (process_skeletonless_type_units): New function.
6763 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6764 Call print tu_stats if debugging enabled.
6766 2014-06-02 Pedro Alves <palves@redhat.com>
6768 * breakpoint.c (build_target_command_list): Don't build a command
6769 list if we have any duplicate location that isn't a dprintf.
6771 2014-06-02 Pedro Alves <palves@redhat.com>
6773 * breakpoint.c (dprintf_breakpoint_hit): New function.
6774 (initialize_breakpoint_ops): Install it as dprintf's
6775 breakpoint_hit method.
6777 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6779 * source.c (substitute_path_rule_matches): Simplify using
6780 filename_ncmp instead of FILENAME_CMP.
6782 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6784 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6786 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6788 * configure.ac: When Guile is available, check for the
6789 availability of 'scm_new_smob'.
6790 * configure, config.h.in: Regenerate.
6791 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6794 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6796 * frame.c (struct frame_info): Add stop_string field.
6797 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6798 (get_prev_frame_always): Old content moved into
6799 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6800 TRY_CATCH, handle MEMORY_ERROR exceptions.
6801 (frame_stop_reason_string): New function definition.
6802 * frame.h (unwind_stop_reason_to_string): Extend comment to
6803 mention frame_stop_reason_string.
6804 (frame_stop_reason_string): New function declaration.
6805 * stack.c (frame_info): Switch to frame_stop_reason_string.
6806 (backtrace_command_1): Switch to frame_stop_reason_string.
6807 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6808 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6809 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6811 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6813 * frame.c (frame_stop_reason_string): Rename to ...
6814 (unwind_stop_reason_to_string): this.
6815 * frame.h (frame_stop_reason_string): Rename to ...
6816 (unwind_stop_reason_to_string): this.
6817 * stack.c (frame_info): Update call to frame_stop_reason_string.
6818 (backtrace_command_1): Likewise.
6819 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6820 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6822 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6824 * frame.c (remove_prev_frame): New function.
6825 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6828 2014-05-29 Pedro Alves <palves@redhat.com>
6830 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6831 and make it const. When a single-step decays to a continue,
6832 clear 'step', not 'hw_step'. Pass whether the caller wanted
6833 to step to user_visible_resume_ptid, not what we ask the
6836 2014-05-29 Pedro Alves <palves@redhat.com>
6838 * infrun.c (process_event_stop_test, handle_step_into_function)
6839 (handle_step_into_function_backward): Adjust.
6840 Don't set the even thread's stop_step and call stop_waiting before
6841 calling end_stepping_range. Instead do that ...
6842 (end_stepping_range): ... here. Take an ecs pointer parameter.
6844 2014-05-29 Pedro Alves <palves@redhat.com>
6846 * infrun.c (stop_stepping): Rename to ...
6847 (stop_waiting): ... this.
6848 (proceed): Update comment.
6849 (process_event_stop_test, handle_inferior_event)
6850 (handle_signal_stop, handle_step_into_function)
6851 (handle_step_into_function_backward): Update.
6853 2014-05-29 Pedro Alves <palves@redhat.com>
6855 * infcall.c (run_inferior_call): Don't check whether the current
6856 thread is running after the proceed call.
6858 2014-05-29 Pedro Alves <palves@redhat.com>
6859 Tom Tromey <tromey@redhat.com>
6861 * NEWS: Mention "maint set target-async", "set mi-async", and that
6862 background execution commands are now always available.
6863 * target.h (target_async_permitted): Update comment.
6864 * target.c (target_async_permitted, target_async_permitted_1):
6866 (set_target_async_command): Rename to ...
6867 (maint_set_target_async_command): ... this.
6868 (show_target_async_command): Rename to ...
6869 (maint_show_target_async_command): ... this.
6870 (_initialize_target): Adjust.
6871 * infcmd.c (prepare_execution_command): Make extern.
6872 * inferior.h (prepare_execution_command): Declare.
6873 * infrun.c (set_observer_mode): Leave target async alone.
6874 * mi/mi-interp.c (mi_interpreter_init): Install
6875 mi_on_sync_execution_done as sync_execution_done observer.
6876 (mi_on_sync_execution_done): New function.
6877 (mi_execute_command_input_handler): Don't print the prompt if we
6878 just started a synchronous command with an async target.
6879 (mi_on_resume): Check sync_execution before printing prompt.
6880 * mi/mi-main.h (mi_async_p): Declare.
6881 * mi/mi-main.c: Include gdbcmd.h.
6882 (mi_async_p): New function.
6883 (mi_async, mi_async_1): New globals.
6884 (set_mi_async_command, show_mi_async_command, mi_async): New
6886 (exec_continue): Call prepare_execution_command.
6887 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6888 (mi_execute_async_cli_command): Use mi_async_p.
6889 (_initialize_mi_main): Install "set mi-async". Make
6890 "target-async" a deprecated alias.
6892 2014-05-29 Pedro Alves <palves@redhat.com>
6894 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6895 (_initialize_cli_interp): Adjust.
6896 * event-loop.c: Include "observer.h".
6897 (start_event_loop): Notify 'command_error' observers instead of
6898 calling display_gdb_prompt. Remove FIXME comment.
6899 * event-top.c (display_gdb_prompt): Remove call into the
6901 * inf-loop.c: Include "observer.h".
6902 (inferior_event_handler): Notify 'command_error' observers instead
6903 of calling display_gdb_prompt.
6904 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6905 observers instead of calling display_gdb_prompt.
6906 * interps.c (interp_set): Don't call display_gdb_prompt.
6907 (current_interp_display_prompt_p): Delete.
6908 * interps.h (interp_prompt_p): Delete declaration.
6909 (interp_prompt_p_ftype): Delete.
6910 (struct interp_procs) <prompt_proc_p>: Delete field.
6911 (current_interp_display_prompt_p): Delete declaration.
6912 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6913 (_initialize_mi_interp): Adjust.
6914 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6915 'command_error' observers.
6916 (tui_on_sync_execution_done, tui_on_command_error): New
6918 (tui_display_prompt_p): Delete.
6919 (_initialize_tui_interp): Adjust.
6921 2014-05-29 Pedro Alves <palves@redhat.com>
6924 * cli/cli-interp.c: Include infrun.h and observer.h.
6925 (cli_uiout, cli_interp): New globals.
6926 (cli_on_signal_received, cli_on_end_stepping_range)
6927 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6929 (cli_interpreter_init): Install them as 'end_stepping_range',
6930 'signal_received' 'signal_exited', 'exited' and 'no_history'
6932 (_initialize_cli_interp): Remove cli_interp local.
6933 * infrun.c (handle_inferior_event): Call the several stop reason
6934 observers instead of printing the stop reason directly.
6935 (end_stepping_range): New function.
6936 (print_end_stepping_range_reason, print_signal_exited_reason)
6937 (print_exited_reason, print_signal_received_reason)
6938 (print_no_history_reason): Make static, and add an uiout
6939 parameter. Print to that instead of to CURRENT_UIOUT.
6940 * infrun.h (print_end_stepping_range_reason)
6941 (print_signal_exited_reason, print_exited_reason)
6942 (print_signal_received_reason print_no_history_reason): New
6944 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6946 <cli_uiout>: New field.
6947 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6948 uiout for CLI output. Install 'signal_received',
6949 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6951 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6952 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6953 (mi_on_no_history): New functions.
6954 (ui_out_free_cleanup): Delete function.
6955 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6956 instead use the one already stored in the MI interpreter data.
6957 (mi_ui_out): Adjust.
6958 * tui/tui-interp.c: Include infrun.h and observer.h.
6959 (tui_interp): New global.
6960 (tui_on_signal_received, tui_on_end_stepping_range)
6961 (tui_on_signal_exited, tui_on_exited)
6962 (tui_on_no_history): New functions.
6963 (tui_init): Install them as 'end_stepping_range',
6964 'signal_received' 'signal_exited', 'exited' and 'no_history'
6966 (_initialize_tui_interp): Delete tui_interp local.
6968 2014-05-29 Pedro Alves <palves@redhat.com>
6971 * linux-nat.c (linux_nat_resume_callback): Rename the second
6972 parameter to 'except'. Skip LP if it points to EXCEPT.
6973 (linux_nat_resume): Don't mark the event lwp as not stopped
6974 before resuming sibling lwps. Instead ask
6975 linux_nat_resume_callback to skip the event lwp. Mark it as not
6976 stopped after actually resuming it.
6977 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6979 (wait_lwp): Mark the lwp as stopped here.
6980 (stop_wait_callback): Mark the lwp as not stopped right after
6981 resuming it. Don't mark lwps as stopped here.
6982 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6983 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6985 2014-05-29 Pedro Alves <palves@redhat.com>
6988 * infrun.c (resume): Determine how much to resume depending on
6989 whether the caller wanted a step, not whether we can hardware step
6990 the target. Mark all threads that we intend to run as running,
6991 unless we're calling an inferior function.
6992 (normal_stop): If the thread is running an infcall, don't finish
6994 * target.c (target_resume): Don't mark threads as running here.
6996 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6998 * serial.c (_initialize_serial): Remove support for
6999 the "set remotebaud" and "show remotebaud" commands.
7000 * NEWS: Add entry documenting the removal of that command.
7002 2014-05-28 Yao Qi <yao@codesourcery.com>
7004 * charset.c: Fix typo in comments.
7006 2014-05-27 Gary Benson <gbenson@redhat.com>
7008 * utils.c (internal_vproblem): Prompt for a bug report.
7010 2014-05-26 Andy Wingo <wingo@igalia.com>
7012 * guile/scm-arch.c (arscm_mark_arch_smob):
7013 * guile/scm-block.c (bkscm_mark_block_smob)
7014 (bkscm_mark_block_syms_progress_smob):
7015 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7016 * guile/scm-exception.c (exscm_mark_exception_smob):
7017 * guile/scm-frame.c (frscm_mark_frame_smob):
7018 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7019 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7020 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7021 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7022 (ppscm_mark_pretty_printer_worker_smob):
7023 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7024 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7025 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7026 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7028 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7031 2014-05-26 Andy Wingo <wingo@igalia.com>
7032 Doug Evans <xdje42@gmail.com>
7034 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7035 empty_base_class. All uses updated.
7036 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7037 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7039 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7040 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7041 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7042 (gdbscm_gsmob_has_property_p, add_property_name)
7043 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7044 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7045 (gdb-object-has-property?, gdb-object-properties): Remove.
7046 (gdb-object-kind): Renamed from gsmob-kind.
7048 2014-05-26 Andy Wingo <wingo@igalia.com>
7050 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7051 * configure: Regenerate.
7053 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7055 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7057 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7059 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7060 (replay_memory_access_read_only, replay_memory_access_read_write)
7061 (replay_memory_access_types, replay_memory_access)
7062 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7063 (cmd_set_record_btrace, cmd_show_record_btrace)
7064 (cmd_show_replay_memory_access): New.
7065 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7066 (record_btrace_remove_breakpoint): Replace
7067 record_btrace_allow_memory_access with replay_memory_access.
7068 (_initialize_record_btrace): Add commands.
7069 * NEWS: Announce it.
7071 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7073 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7075 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7077 * MAINTAINERS (Write After Approval): Move self back from
7080 2014-05-22 Pedro Alves <palves@redhat.com>
7082 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7083 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7084 (disable_randomization, enum exec_direction_kind)
7085 (execution_direction, stop_registers, start_remote)
7086 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7087 (wait_for_inferior, normal_stop, get_last_target_status)
7088 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7089 (insert_step_resume_breakpoint_at_sal)
7090 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7091 (set_step_info, print_stop_event, signal_stop_state)
7092 (signal_print_state, signal_pass_state, signal_stop_update)
7093 (signal_print_update, signal_pass_update)
7094 (update_signals_program_target, clear_exit_convenience_vars)
7095 (displaced_step_dump_bytes, update_observer_mode)
7096 (signal_catch_update, gdb_signal_from_command): Move
7098 * infrun.h: ... to this new file.
7099 * amd64-tdep.c: Include infrun.h.
7100 * annotate.c: Include infrun.h.
7101 * arch-utils.c: Include infrun.h.
7102 * arm-linux-tdep.c: Include infrun.h.
7103 * arm-tdep.c: Include infrun.h.
7104 * break-catch-sig.c: Include infrun.h.
7105 * breakpoint.c: Include infrun.h.
7106 * common/agent.c: Include infrun.h instead of inferior.h.
7107 * corelow.c: Include infrun.h.
7108 * event-top.c: Include infrun.h.
7109 * go32-nat.c: Include infrun.h.
7110 * i386-tdep.c: Include infrun.h.
7111 * inf-loop.c: Include infrun.h.
7112 * infcall.c: Include infrun.h.
7113 * infcmd.c: Include infrun.h.
7114 * infrun.c: Include infrun.h.
7115 * linux-fork.c: Include infrun.h.
7116 * linux-nat.c: Include infrun.h.
7117 * linux-thread-db.c: Include infrun.h.
7118 * monitor.c: Include infrun.h.
7119 * nto-tdep.c: Include infrun.h.
7120 * procfs.c: Include infrun.h.
7121 * record-btrace.c: Include infrun.h.
7122 * record-full.c: Include infrun.h.
7123 * remote-m32r-sdi.c: Include infrun.h.
7124 * remote-mips.c: Include infrun.h.
7125 * remote-notif.c: Include infrun.h.
7126 * remote-sim.c: Include infrun.h.
7127 * remote.c: Include infrun.h.
7128 * reverse.c: Include infrun.h.
7129 * rs6000-tdep.c: Include infrun.h.
7130 * s390-linux-tdep.c: Include infrun.h.
7131 * solib-irix.c: Include infrun.h.
7132 * solib-osf.c: Include infrun.h.
7133 * solib-svr4.c: Include infrun.h.
7134 * target.c: Include infrun.h.
7135 * top.c: Include infrun.h.
7136 * windows-nat.c: Include infrun.h.
7137 * mi/mi-interp.c: Include infrun.h.
7138 * mi/mi-main.c: Include infrun.h.
7139 * python/py-threadevent.c: Include infrun.h.
7141 2014-05-22 Pedro Alves <palves@redhat.com>
7143 * infrun.c (handle_inferior_event): Store the exit code for
7144 --return-child-result here, instead of ...
7145 (print_exited_reason): ... here.
7147 2014-05-21 Pedro Alves <palves@redhat.com>
7150 * gdbthread.h (struct thread_control_state): New field
7152 * infrun.c (follow_fork): Copy the new thread control field to the
7154 (clear_proceed_status_thread): Clear the new thread control field.
7155 (proceed): Set the new thread control field.
7156 * interps.h (command_interp): Declare.
7157 * interps.c (command_interpreter): New global.
7158 (command_interp): New function.
7159 (interp_exec): Set `command_interpreter' while here.
7160 * cli-out.c (cli_uiout_dtor): New function.
7161 (cli_ui_out_impl): Install it.
7162 * mi/mi-interp.c: Include cli-out.h.
7163 (mi_cmd_interpreter_exec): Add comment.
7164 (restore_current_uiout_cleanup): New function.
7165 (ui_out_free_cleanup): New function.
7166 (mi_on_normal_stop): If finishing an execution command started by
7167 a CLI command, or any kind of breakpoint-like event triggered,
7168 print the stop event to the output (CLI) stream.
7169 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7171 2014-05-21 Pedro Alves <palves@redhat.com>
7173 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7174 current source line having changed.
7175 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7176 * infrun.c (normal_stop): Adjust call to
7177 set_current_sal_from_frame.
7178 * source.c (clear_lines_listed_range): New function.
7179 (set_current_source_symtab_and_line, identify_source_line): Clear
7180 the lines listed range.
7181 (line_info): Handle the first "info line" after the current source
7182 line having changed.
7183 * stack.c (print_stack_frame): Remove center handling.
7184 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7187 2014-05-21 Pedro Alves <palves@redhat.com>
7189 * inf-child.c (inf_child_mourn_inferior): New function.
7190 * inf-child.h (inf_child_mourn_inferior): New declaration.
7191 * darwin-nat.c (darwin_mourn_inferior): Use
7192 inf_child_mourn_inferior.
7193 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7194 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7195 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7196 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7197 * windows-nat.c (windows_mourn_inferior): Likewise.
7199 2014-05-21 Doug Evans <xdje42@gmail.com>
7201 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7203 2014-05-21 Doug Evans <xdje42@gmail.com>
7205 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7206 (gdbscm_out_of_range_error): Ditto.
7207 (gdbscm_memory_error): Ditto.
7208 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7209 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7210 (gdbscm_out_of_range_error): Update.
7211 (gdbscm_memory_error): Update.
7212 (gdbscm_scm_to_target_string_unsafe): Delete.
7214 2014-05-21 Pedro Alves <palves@redhat.com>
7216 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7218 (inf_child_open_target): New function.
7219 (inf_child_open): Use inf_child_open_target to push the target
7220 instead of erroring out.
7221 (inf_child_disconnect, inf_child_close)
7222 (inf_child_maybe_unpush_target): New functions.
7223 (inf_child_target): Install inf_child_disconnect and
7224 inf_child_close. Store a pointer to the returned object.
7225 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7227 * target.c (auto_connect_native_target): New global.
7228 (show_default_run_target): New function.
7229 (find_default_run_target): Return NULL if automatically connecting
7230 to the native target is disabled.
7231 (_initialize_target): Install set/show auto-connect-native-target.
7232 * NEWS: Mention "set auto-connect-native-target", and "target
7234 * linux-nat.c (super_close): New global.
7235 (linux_nat_close): Call super_close.
7236 (linux_nat_add_target): Store a pointer to the base class's
7238 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7239 inf_child_maybe_unpush.
7240 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7242 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7243 the inferior. Use inf_child_maybe_unpush_target.
7244 (inf_ttrace_attach): Don't push the target if it is already
7246 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7247 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7248 after mourning the inferior. Use inf_child_maybe_unpush_target.
7249 (darwin_attach_pid): Don't push the target if it is already
7251 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7252 mourning the inferior. Use inf_child_maybe_unpush_target.
7253 (gnu_detach): Use inf_child_maybe_unpush_target.
7254 * go32-nat.c (go32_create_inferior): Don't push the target if it
7256 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7257 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7258 (procfs_open): Rename to ...
7259 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7260 comments. Can target_preopen before changing node. Call
7261 inf_child_open_target to push the target explicitly.
7262 (procfs_attach): Don't push the target if it is already pushed.
7263 (procfs_detach): Use inf_child_maybe_unpush_target.
7264 (procfs_create_inferior): Don't push the target if it is already
7266 (nto_native_ops): New global.
7267 (procfs_open): Reimplement.
7268 (procfs_native_open): New function.
7269 (init_procfs_targets): Install procfs_native_open as to_open of
7270 "target native". Store a pointer to the "native" target in
7272 * procfs.c (procfs_attach): Don't push the target if it is already
7274 (procfs_detach): Use inf_child_maybe_unpush_target.
7275 (procfs_mourn_inferior): Only unpush the target after mourning the
7276 inferior. Use inf_child_maybe_unpush_target.
7277 (procfs_init_inferior): Don't push the target if it is already
7279 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7280 if it is already pushed.
7282 2014-05-21 Pedro Alves <palves@redhat.com>
7284 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7285 and "procfs" targets are now called "native" instead.
7287 2014-05-21 Pedro Alves <palves@redhat.com>
7289 * go32-nat.c (go32_open): Delete.
7290 (go32_target): Don't override the to_open method.
7292 2014-05-21 Pedro Alves <palves@redhat.com>
7294 * nto-procfs.c (procfs_can_run): New function.
7295 (nto_procfs_ops): New global.
7296 (init_procfs_targets): New, based on procfs_target. Install
7297 "target native" in addition to "target procfs".
7298 (_initialize_procfs): Call init_procfs_targets instead of adding
7301 2014-05-21 Pedro Alves <palves@redhat.com>
7303 * windows-nat.c (windows_target): Don't override to_shortname,
7304 to_longname or to_doc.
7306 2014-05-21 Pedro Alves <palves@redhat.com>
7308 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7311 2014-05-21 Pedro Alves <palves@redhat.com>
7313 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7314 to_shortname, to_longname or to_doc.
7316 2014-05-21 Pedro Alves <palves@redhat.com>
7318 * go32-nat.c (go32_target): Don't override to_shortname,
7319 to_longname or to_doc.
7321 2014-05-21 Pedro Alves <palves@redhat.com>
7323 * inf-child.c (inf_child_open): Remove mention of "child".
7324 (inf_child_target): Rename target to "native" instead of "child".
7326 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7328 * Makefile.in (SFILES): Delete "regset.c".
7329 (COMMON_OBS): Delete "regset.o".
7331 * regset.h (regset_alloc): Delete prototype.
7333 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7335 * sparc-linux-tdep.c (sparc32_linux_gregset)
7336 (sparc32_linux_fpregset): New static regset structures.
7337 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7338 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7340 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7341 (sparc64_linux_fpregset): New static regset structures.
7342 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7343 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7344 New static regset structures.
7345 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7346 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7347 New static regset structures.
7348 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7349 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7350 New static regset structures.
7351 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7352 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7353 New static regset structures.
7354 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7356 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7358 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7359 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7360 register maps ("regmaps") from "*regset" to "*regmap". Do this
7361 for all regmap types and variables.
7362 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7363 (sparc32_linux_supply_core_gregset)
7364 (sparc32_linux_collect_core_gregset)
7365 (sparc32_linux_supply_core_fpregset)
7366 (sparc32_linux_collect_core_fpregset): Likewise.
7367 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7368 (sparc_gregmap, sparc_fpregmap): ... these.
7369 (sparc_supply_gregset, sparc_collect_gregset)
7370 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7371 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7372 (_initialize_sparc_nat): Rename regmaps.
7373 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7374 (sparc_gregmap, sparc_fpregmap): ... these.
7375 (sparc_supply_gregset, sparc_collect_gregset)
7376 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7377 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7379 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7380 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7382 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7384 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7385 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7386 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7388 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7389 (sparc32_bsd_fpregset): Rename to...
7390 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7391 (sparc32_bsd_fpregmap): ... these.
7392 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7393 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7394 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7395 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7396 (struct sparc_gregmap, struct sparc_fpregmap)
7397 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7398 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7399 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7400 (sparc32_supply_regset, sparc32_collect_gregset)
7401 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7403 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7404 (sparc64_linux_ptrace_gregmap): ... this.
7405 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7406 (_initialize_sparc64_linux_nat): Rename regmaps.
7407 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7408 (sparc64_linux_core_gregmap): ... this.
7409 (sparc64_linux_supply_core_gregset)
7410 (sparc64_linux_collect_core_gregset)
7411 (sparc64_linux_supply_core_fpregset)
7412 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7413 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7414 (sparc64_sol2_fpregset): Rename to...
7415 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7416 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7417 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7419 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7420 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7421 (sparc64_bsd_fpregset): Rename to...
7422 (struct sparc_gregmap, sparc64_sol2_gregmap)
7423 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7424 (sparc64_bsd_fpregmap): ... these.
7425 (sparc64_supply_gregset, sparc64_collect_gregset)
7426 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7428 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7429 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7430 (sparc64fbsd_gregmap): ... this.
7431 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7432 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7434 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7435 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7436 (sparc64nbsd_collect_fpregset): Likewise.
7437 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7438 (sparc64nbsd_gregmap): ... this.
7439 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7441 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7442 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7443 (sparc64obsd_gregmap): ... this.
7444 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7446 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7447 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7448 (sparc32nbsd_gregmap): ... this.
7449 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7452 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7454 * score-tdep.c (score7_linux_gregset): New static regset
7456 (score7_linux_regset_from_core_section): Remove dynamic regset
7458 (score_gdbarch_init): Drop allocation of tdep structure.
7459 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7461 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7463 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7465 (am33_regset_from_core_section): Remove dynamic regset
7468 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7470 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7471 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7473 (mips_linux_regset_from_core_section): Remove dynamic regset
7475 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7476 'gregset64', 'fpregset', and 'fpregset64'.
7477 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7478 deleted tdep fields.
7480 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7482 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7484 (amd64_regset_from_core_section): Remove dynamic regset
7486 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7488 (amd64obsd_regset_from_core_section): Remove dynamic regset
7490 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7492 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7493 x86-common regset supply function.
7494 * i386-tdep.c (i386_collect_gregset): Make static.
7495 (i386_gregset): New global regset structure.
7496 (i386_fpregset, i386_xstateregset): New static regset structures.
7497 (i386_regset_from_core_section): Remove dynamic regset
7499 (i386_gdbarch_init): Remove initialization of tdep fields
7500 'gregset', 'fpregset', and 'xstateregset'.
7501 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7502 'fpregset', and 'xstateregset'.
7503 (i386_collect_gregset): Remove prototype.
7504 (i386_gregset): New declaration.
7505 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7507 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7510 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7512 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7513 (arm_linux_vfpregset): New static regset structures.
7514 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7516 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7517 and 'vfpregset' fields.
7519 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7521 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7522 (aarch64_linux_fpregset): New static regset structures.
7523 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7524 of regset structures.
7525 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7528 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7530 * regset.h (struct regset): Remove gdbarch field.
7531 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7532 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7533 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7535 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7536 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7537 (ppc32_linux_vsxregset): Likewise.
7538 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7539 via the regcache instead of the regset.
7540 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7541 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7542 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7543 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7546 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7548 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7549 Constify structures.
7550 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7551 (alphanbsd_aout_gregset): Likewise.
7552 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7553 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7555 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7556 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7558 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7559 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7560 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7561 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7562 * m88k-tdep.c (m88k_gregset): Likewise.
7563 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7564 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7565 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7566 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7567 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7568 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7569 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7570 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7571 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7573 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7574 * sh-tdep.h (sh_corefile_gregset): Likewise.
7575 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7576 * vax-tdep.c (vax_gregset): Likewise.
7578 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7580 Fix TLS access for -static -pthread.
7581 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7582 (try_thread_db_load_1): Initialize it.
7583 (thread_db_get_thread_local_address): Call it if LM is zero.
7584 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7585 * target.h (struct target_ops) (to_get_thread_local_address): Add
7586 load_module_addr comment.
7588 2014-05-21 Pedro Alves <palves@redhat.com>
7590 * dcache.c (dcache_read_memory_partial): If reading the cache line
7591 fails, fallback to reading just the memory the caller wanted.
7593 2014-05-20 Doug Evans <dje@google.com>
7595 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7596 instead of get_current_arch.
7598 2014-05-20 Pedro Alves <palves@redhat.com>
7600 * NEWS: Mention that compare-sections now works with all targets.
7602 * remote.c (PACKET_qCRC): New enum value.
7603 (remote_verify_memory): Don't send qCRC if the target has no
7604 execution. Use packet_support/packet_ok. If the target doesn't
7605 support the qCRC packet, fallback to a deep memory copy.
7606 (compare_sections_command): Say "target image" instead of "remote
7608 (_initialize_remote): Add PACKET_qCRC to the list of config
7609 packets that have no associated command. Extend comment.
7610 * target.c (simple_verify_memory, default_verify_memory): New
7612 * target.h (struct target_ops) <to_verify_memory>: Default to
7613 default_verify_memory.
7614 (simple_verify_memory): New declaration.
7615 * target-delegates.c: Regenerate.
7617 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7619 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7621 2014-05-20 Hui Zhu <hui@codesourcery.com>
7622 Yao Qi <yao@codesourcery.com>
7625 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7626 and change address of sp and pc.
7628 2014-05-19 Tom Tromey <tromey@redhat.com>
7630 * gdbtypes.c (rank_function): Use XNEWVEC.
7631 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7633 2014-05-19 Doug Evans <dje@google.com>
7635 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7636 build_type_unit_groups and moved closer to only caller. Remove
7637 arguments. All references updated. Remove outdated .gdb_index
7639 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7640 build_type_psymtabs_1.
7642 2014-05-19 Doug Evans <dje@google.com>
7644 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7645 n_type_unit_groups, all_type_unit_groups. All uses removed.
7646 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7647 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7648 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7649 (add_type_unit_group_to_table): Delete.
7651 2014-05-19 Doug Evans <dje@google.com>
7653 * eval.c (evaluate_subexp_standard): Add some comments.
7655 2014-05-17 Doug Evans <xdje42@gmail.com>
7657 * progspace.c (remove_program_space): Delete, unused.
7658 * progspace.h (remove_program_space): Ditto.
7660 2014-05-17 Doug Evans <xdje42@gmail.com>
7662 * inferior.c (prune_inferiors): Fix comment.
7663 (remove_inferior_command): Call prune_program_spaces.
7665 2014-05-16 Doug Evans <dje@google.com>
7667 New command line option -D.
7669 * main.c (set_gdb_data_directory): New function.
7670 (captured_main): Recognize -D. Flag error for --data-directory "".
7671 Call set_gdb_data_directory.
7672 (print_gdb_help): Print --data-directory, -D.
7673 * main.h (set_gdb_data_directory): Declare.
7674 * top.c (staged_gdb_datadir): New static global.
7675 (set_gdb_datadir): Call set_gdb_data_directory
7676 (show_gdb_datadir): New function.
7677 (init_main): Update init of data-directory parameter.
7679 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7681 Import the "dirfd" gnulib module.
7682 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7683 * gnulib/aclocal.m4: Update.
7684 * gnulib/config.in: Update.
7685 * gnulib/configure: Update.
7686 * gnulib/import/Makefile.am: Update.
7687 * gnulib/import/Makefile.in: Update.
7688 * gnulib/import/dirfd.c: New.
7689 * gnulib/import/m4/dirfd.m4: New.
7690 * gnulib/import/m4/gnulib-cache.m4: Update.
7691 * gnulib/import/m4/gnulib-comp.m4: Update.
7693 2014-05-16 Pierre Muller <muller@sourceware.org>
7694 Yao Qi <yao@codesourcery.com>
7696 * valprint.c (print_wchar): Move the code on checking whether
7697 W is a printable wide char to the default branch of switch
7698 statement below. Call wchar_printable instead of gdb_iswprint.
7700 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7702 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7703 ldr.w and ldrd instructions.
7705 2014-05-15 Doug Evans <dje@google.com>
7707 * dwarf2read.c (read_structure_type): Delete outdated comments.
7709 2014-05-14 Tom Tromey <tromey@redhat.com>
7711 * macrocmd.c (print_macro_definition): Reindent.
7713 2014-05-13 Doug Evans <xdje42@gmail.com>
7715 * python/py-cmd.c (cmdpy_completer): Add comment.
7716 (completers): Make const.
7718 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7720 * infrun.c (resume): Remove should_resume (unused). Move up
7721 declaration of resume_ptid.
7723 2014-05-13 Tom Tromey <tromey@redhat.com>
7725 * language.h (unop_type_check): Remove.
7726 (binop_type_check): Don't declare.
7728 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7730 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7731 call to regcache_raw_collect.
7733 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7735 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7736 mi_console->quote as the quoting character.
7738 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7740 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7742 2014-04-29 Tom Tromey <tromey@redhat.com>
7744 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7745 "show debug varobj".
7747 2014-05-07 Kyle McMartin <kyle@redhat.com>
7749 Pushed by Joel Brobecker <brobecker@adacore.com>.
7750 * aarch64-tdep.c (aarch64_software_single_step): New function.
7751 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7752 with aarch64_software_single_step.
7754 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7758 2014-05-05 Keith Seitz <keiths@redhat.com>
7760 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7761 variable or history value is successfully parsed.
7763 2014-05-05 Yao Qi <yao@codesourcery.com>
7764 Pedro Alves <palves@redhat.com>
7766 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7767 address of blocks that intersects the requested range. Trim
7768 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7770 * ctf.c (ctf_xfer_partial): Likewise.
7772 2014-05-05 Yao Qi <yao@codesourcery.com>
7774 * printcmd.c (display_command): Remove the check to
7775 target_has_execution.
7777 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7779 * ppcobsd-nat.c: Include "obsd-nat.h".
7780 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7782 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7784 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7786 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7787 and 16-bit signed and unsigned arguments. Update comment.
7788 (stap_parse_probe_arguments): Extend code to handle such
7789 arguments. Use warning instead of complaint to notify about
7790 unrecognized bitness.
7792 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7794 PR breakpoints/16889
7795 * stap-probe.c (stap_parse_probe_arguments): Simplify
7796 check for non-prefixed probes (i.e., probes whose
7797 arguments do not start with "N@"). Always set the
7798 argument type to a sane value.
7800 2014-05-01 David Taylor <dtaylor@emc.com>
7802 * remote.c (compare_sections_command): Add -r option to compare
7803 all loadable read-only sections.
7805 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7807 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7808 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7810 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7811 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7812 Remove unused CORE_ADDR argument. Update all callers.
7814 2014-04-29 Pedro Alves <palves@redhat.com>
7816 * remote.c (struct packet_config) <detect>: Extend comment.
7817 (add_packet_config_cmd): Don't set the config's detect or support
7819 (init_all_packet_configs): Also initialize the config's 'detect'
7821 (reset_all_packet_configs_support): New function.
7822 (remote_open_1): Call reset_all_packet_configs_support instead of
7823 init_all_packet_configs.
7824 (_initialize_remote): Initialize all packet configs. Assert that
7825 all packets have an associated command, except a few known
7828 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7830 * dwarf2read.c (read_subrange_type): Handle dynamic
7831 DW_AT_lower_bound attributes.
7833 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7835 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7836 dynamic bounds before computing its upper bound.
7837 (ada_discrete_type_low_bound): Same as above with the lower bound.
7839 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7841 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7842 range types. Adjust the array handling implementation to
7843 take advantage of this change.
7844 (resolve_dynamic_range): New function, mostly extracted from
7845 resolve_dynamic_bounds.
7846 (resolve_dynamic_array): New function, mostly extracted from
7847 resolve_dynamic_bounds.
7848 (resolve_dynamic_bounds): Delete.
7849 (resolve_dynamic_type): Reimplement. Add handling of
7850 TYPE_CODE_RANGE types.
7852 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7854 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7855 handling of parallel ___XA types.
7857 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7859 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7860 unnecessary second call to static_unwrap_type.
7862 2014-04-27 Hui Zhu <hui@codesourcery.com>
7864 * stack.c (print_frame_info): Call do_gdb_disassembly with
7865 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7867 2014-04-26 Doug Evans <xdje42@gmail.com>
7869 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7871 2014-04-25 Pedro Alves <palves@redhat.com>
7874 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7875 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7876 and newline from built string.
7877 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7878 (linux_ptrace_attach_fail_reason): ... this.
7879 * linux-nat.c (linux_nat_attach): Adjust to use
7880 linux_ptrace_attach_fail_reason.
7882 2014-04-25 Pedro Alves <palves@redhat.com>
7884 * remote.c (struct remote_state): Remove multi_process_aware,
7885 non_stop_aware, cond_tracepoints, cond_breakpoints,
7886 breakpoint_commands, fast_tracepoints, static_tracepoints,
7887 install_in_trace, disconnected_tracing,
7888 enable_disable_tracepoints, string_tracing, and
7889 augmented_libraries_svr4_read fields.
7890 (remote_multi_process_p): Move further below in the file.
7891 (struct packet_config): Add comments.
7892 (update_packet_config): Delete function.
7893 (show_packet_config_cmd): Use packet_config_support.
7894 (add_packet_config_cmd): Use NULL as set callback.
7895 (packet_ok): "set remote foo-packet"-style commands no longer
7896 change config->supported -- adjust.
7897 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7898 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7899 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7900 (PACKET_QNonStop, PACKET_multiprocess_feature)
7901 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7902 (PACKET_DisconnectedTracing_feature)
7903 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7904 (set_remote_protocol_packet_cmd): Delete function.
7905 (packet_config_support, packet_support): New functions.
7906 (set_remote_protocol_Z_packet_cmd): Don't call
7907 update_packet_config.
7908 (remote_query_attached, remote_pass_signals)
7909 (remote_program_signals, remote_threads_info)
7910 (remote_threads_extra_info, remote_start_remote): Use
7912 (remote_start_remote): Use packet_config_support and
7914 (init_all_packet_configs): Set all packets to unknown support,
7915 instead of calling update_packet_config.
7916 (remote_check_symbols): Use packet_support.
7917 (remote_supported_packet): Unconditionally set the packet config's
7919 (remote_multi_process_feature, remote_non_stop_feature)
7920 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7921 (remote_breakpoint_commands_feature)
7922 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7923 (remote_install_in_trace_feature)
7924 (remote_disconnected_tracing_feature)
7925 (remote_enable_disable_tracepoint_feature)
7926 (remote_string_tracing_feature)
7927 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7928 (remote_protocol_features): Adjust to use remote_supported_packet
7929 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7930 "ConditionalTracepoints", "ConditionalBreakpoints",
7931 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7932 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7933 "EnableDisableTracepoints", and "tracenz".
7934 (remote_query_supported): Use packet_support.
7935 (remote_open_1): Adjust.
7936 (extended_remote_attach_1): Use packet_support. Switch on the
7937 result of packet_ok instead of checking whether the packet ended
7939 (remote_vcont_resume): Use packet_support.
7940 (remote_resume, remote_stop_ns, fetch_register_using_p)
7941 (remote_prepare_to_store, store_register_using_P)
7942 (check_binary_download, remote_write_bytes): Use packet_support.
7943 (remote_vkill): Use packet_support. Switch on the result of
7944 packet_ok instead of checking whether the packet ended up
7946 (extended_remote_supports_disable_randomization): Use
7948 (extended_remote_run): Switch on the result of packet_ok instead
7949 of checking whether the packet ended up disabled.
7950 (remote_insert_breakpoint, remote_remove_breakpoint)
7951 (remote_insert_watchpoint, remote_remove_watchpoint)
7952 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7954 (remote_search_memory): Use packet_config_support.
7955 (remote_get_thread_local_address, remote_get_tib_address)
7956 (remote_hostio_send_command, remote_can_execute_reverse): Use
7958 (remote_supports_cond_tracepoints)
7959 (remote_supports_cond_breakpoints)
7960 (remote_supports_fast_tracepoints)
7961 (remote_supports_static_tracepoints)
7962 (remote_supports_install_in_trace)
7963 (remote_supports_enable_disable_tracepoint)
7964 (remote_supports_string_tracing)
7965 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7966 the packet config says the feature is enabled or disabled.
7967 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7968 (remote_get_trace_status): Use packet_support.
7969 (remote_set_disconnected_tracing): Adjust to check whether the
7970 feature is enabled with packet_support.
7971 (remote_set_trace_buffer_size, remote_use_agent)
7972 (remote_can_use_agent, remote_supports_btrace): Use
7974 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7975 Use packet_config_support.
7976 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7977 the packet config says the feature is enabled or disabled.
7978 (set_range_stepping): Use packet_support.
7980 2014-04-25 Tom Tromey <tromey@redhat.com>
7982 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7985 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7987 * NEWS: Mention support for C99 variable length arrays.
7989 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7991 * ada-lang.c (standard_exc): Expand introductory comment.
7993 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7994 Walfred Tedeschi <walfred.tedeschi@intel.com>
7996 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7998 (amd64_linux_read_description): Add code to handle AVX512 xstate
7999 mask and return respective tdesc.
8000 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8001 and features/i386/x32-avx512-linux.c.
8002 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8003 (amd64_linux_core_read_description): Add code to handle AVX512
8004 xstate mask and return respective tdesc.
8005 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8006 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8008 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8009 (tdesc_amd64_avx512_linux): New prototype.
8010 (tdesc_x32_avx512_linux): Likewise.
8011 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8012 features/i386/x32-avx512.c.
8013 (amd64_ymm_avx512_names): New register names for pseudo
8015 (amd64_ymmh_avx512_names): New register names for raw registers
8017 (amd64_k_names): New register names for K registers.
8018 (amd64_zmmh_names): New register names for ZMM raw registers.
8019 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8020 (amd64_xmm_avx512_names): New register names for XMM16-31
8022 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8024 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8025 if feature is present.
8026 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8027 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8028 (AMD64_NUM_REGS): Adjust to new number of registers.
8029 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8030 registers supplied via XSTATE by AVX512 registers.
8031 (i386_linux_read_description): Add case for AVX512.
8032 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8033 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8034 (i386_linux_core_read_description): Add case for AVX512.
8035 (i386_linux_init_abi): Install supported register note section
8037 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8039 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8040 registers to be number of zmm7h + 1.
8041 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8042 * i386-tdep.c: Include features/i386/i386-avx512.c.
8043 (i386_zmm_names): Add ZMM pseudo register names array.
8044 (i386_zmmh_names): Add ZMM raw register names array.
8045 (i386_k_names): Add K raw register names array.
8046 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8047 registers. AVX512 has 16 more ZMM registers than there are YMM
8049 (i386_zmmh_regnum_p): Add function to look up register number of
8051 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8052 (i386_k_regnum_p): Likewise for K raw registers.
8053 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8054 registers added by AVX512.
8055 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8056 registers added by AVX512.
8057 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8059 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8060 (i386_pseudo_register_name): Add ZMM pseudo registers.
8061 (i386_zmm_type): Construct and return vector registers type for ZMM
8063 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8064 ZMM0-31 pseudo registers and K registers.
8065 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8066 and YMM16-31 registers from register cache.
8067 (i386_pseudo_register_write): Add code to write K, ZMM and
8069 (i386_register_reggroup_p): Add code to include/exclude AVX512
8070 registers in/from respective register groups.
8071 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8072 registers if feature is present in xcr0.
8073 (i386_gdbarch_init): Add code to initialize AVX512 feature
8074 variables in tdep structure, wire in pseudo registers and call
8075 initialize_tdesc_i386_avx512.
8076 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8078 (i386_regnum): Add AVX512 registers.
8079 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8080 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8081 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8082 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8084 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8085 (i386_ymm_avx512_regnum_p): Likewise.
8086 (i386_k_regnum_p): Likewise.
8087 (i386_zmm_regnum_p): Likewise.
8088 (i386_zmmh_regnum_p): Likewise.
8089 * i387-tdep.c : Update year in copyright notice.
8090 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8092 (XSAVE_YMM_AVX512_ADDR): New macro.
8093 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8095 (XSAVE_XMM_AVX512_ADDR): New macro.
8096 (xsave_avx512_k_offset): New table for K register offsets in
8098 (XSAVE_AVX512_K_ADDR): New macro.
8099 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8101 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8102 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8104 (i387_collect_xsave): Add code to collect AVX512 registers from
8106 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8107 of XMM16-31 registers.
8108 (I387_NUM_K_REGS): New define for number of K registers.
8109 (I387_K0_REGNUM): New define for K0 register number.
8110 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8111 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8112 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8114 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8115 (I387_XMM16_REGNUM): New define for XMM16 register number.
8116 (I387_YMM0_REGNUM): New define for YMM0 register number.
8117 (I387_KEND_REGNUM): New define for last K register number.
8118 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8119 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8121 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8123 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8125 * features/Makefile: Add AVX512 related files.
8126 * features/i386/32bit-avx512.xml: New file.
8127 * features/i386/64bit-avx512.xml: Likewise.
8128 * features/i386/amd64-avx512-linux.c: Likewise.
8129 * features/i386/amd64-avx512-linux.xml: Likewise.
8130 * features/i386/amd64-avx512.c: Likewise.
8131 * features/i386/amd64-avx512.xml: Likewise.
8132 * features/i386/i386-avx512-linux.c: Likewise.
8133 * features/i386/i386-avx512-linux.xml: Likewise.
8134 * features/i386/i386-avx512.c: Likewise.
8135 * features/i386/i386-avx512.xml: Likewise.
8136 * features/i386/x32-avx512-linux.c: Likewise.
8137 * features/i386/x32-avx512-linux.xml: Likewise.
8138 * features/i386/x32-avx512.c: Likewise.
8139 * features/i386/x32-avx512.xml: Likewise.
8140 * regformats/i386/amd64-avx512-linux.dat: New file.
8141 * regformats/i386/amd64-avx512.dat: Likewise.
8142 * regformats/i386/i386-avx512-linux.dat: Likewise.
8143 * regformats/i386/i386-avx512.dat: Likewise.
8144 * regformats/i386/x32-avx512-linux.dat: Likewise.
8145 * regformats/i386/x32-avx512.dat: Likewise.
8146 * NEWS: Add note about new support for AVX512.
8149 2014-04-23 Pedro Alves <palves@redhat.com>
8151 * breakpoint.c (insert_bp_location): Tolerate errors if the
8152 breakpoint is set in a user-loaded objfile.
8153 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8154 location is marked shlib_disabled. If the breakpoint is set in a
8155 user-loaded objfile is a GDB-side memory breakpoint, validate it
8156 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8157 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8159 * mem-break.c (memory_validate_breakpoint): New function.
8160 * objfiles.c (userloaded_objfile_contains_address_p): New
8162 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8163 * target.h (memory_validate_breakpoint): New declaration.
8165 2014-04-23 Pedro Alves <palves@redhat.com>
8167 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8168 the breakpoint is set in a shared library, only suppress
8169 errors for software breakpoints, not hardware breakpoints.
8171 2014-04-22 Pedro Alves <palves@redhat.com>
8173 * infrun.c (schedlock_applies): New function, factored out from
8174 find_thread_needs_step_over.
8175 (find_thread_needs_step_over): Use it.
8176 (switch_back_to_stepped_thread): Always clear trap_expected if the
8177 step over is finished. Return early if scheduler locking applies.
8178 Look for the stepping thread and a potential step-over thread with
8180 (currently_stepping_or_nexting_callback): Delete.
8182 2014-04-22 Nick Clifton <nickc@redhat.com>
8184 * NEWS: Mention that ARM sim now supports tracing.
8186 2014-04-22 Yao Qi <yao@codesourcery.com>
8188 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8190 * tracefile.c (tracefile_fetch_registers): ... it. New
8192 * tracefile.h (tracefile_fetch_registers): Declare.
8193 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8194 tracefile_fetch_registers.
8196 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8199 * windows-nat.c (thread_rec): Don't display a warning when
8200 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8201 fails for any reason, set th->suspended to -1, so that we don't
8202 try to resume such a thread. Also, don't return NULL in these
8203 cases, to avoid completely ruin the session due to "PC register is
8204 not available" error.
8205 (do_windows_fetch_inferior_registers): Check errors in
8206 GetThreadContext call.
8207 (windows_continue): Accept an additional argument KILLED; if not
8208 zero, ignore errors in the SetThreadContext call, since the
8209 inferior was killed and is shutting down.
8210 (windows_resume, get_windows_debug_event)
8211 (windows_create_inferior, windows_mourn_inferior)
8212 (windows_kill_inferior): All callers of windows_continue changed
8213 to adjust to its new calling sequence.
8215 2014-04-19 Yao Qi <yao@codesourcery.com>
8217 * ctf.c (ctf_open): Call post_create_inferior.
8219 2014-04-19 Yao Qi <yao@codesourcery.com>
8221 * ctf.c (handle_id): New static variable.
8222 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8223 value. Get the declaration of event "register" and get length
8224 of field "contents".
8226 2014-04-19 Yao Qi <yao@codesourcery.com>
8228 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8230 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8232 * valops.c (oload_method_static): Remove unnecessary argument
8233 METHOD. Update all callers.
8235 2014-04-18 Pedro alves <palves@redhat.com>
8236 Tom Tromey <tromey@redhat.com>
8239 * frame.c (get_prev_frame_1): Rename to ...
8240 (get_prev_frame_always): ... this, and make extern. Adjust.
8241 (skip_artificial_frames): Use get_prev_frame_always.
8242 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8243 (get_frame_unwind_stop_reason): Adjust to rename.
8244 * frame.h (get_prev_frame_always): Declare.
8245 * inline-frame.c: Include frame.h.
8246 (inline_frame_this_id): Use get_prev_frame_always.
8248 2014-04-18 Tristan Gingold <gingold@adacore.com>
8250 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8251 code by using bfd_mach_o_get_base_address.
8253 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8255 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8256 (spu_ax_pseudo_register_collect): New function.
8257 (spu_ax_pseudo_register_push_stack): Likewise.
8258 (spu_dwarf_reg_to_regnum): Likewise.
8259 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8261 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8263 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8264 Replace FRAME argument with FRAME_ID.
8265 * gdbarch.c, gdbarch.h: Regenerate.
8266 * findvar.c (default_value_from_register): Add GDBARCH argument;
8267 replace FRAME by FRAME_ID. No longer call get_frame_id.
8268 (value_from_register): Update call to gdbarch_value_from_register.
8269 * value.h (default_value_from_register): Update prototype.
8270 * s390-linux-tdep.c (s390_value_from_register): Update interface
8271 and call to default_value_from_register.
8272 * spu-tdep.c (spu_value_from_register): Likewise.
8274 * findvar.c (address_from_register): Remove TYPE argument.
8275 Do not call value_from_register; use gdbarch_value_from_register
8276 with null_frame_id instead.
8277 * value.h (address_from_register): Update prototype.
8278 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8279 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8280 address_from_register interface change.
8282 2014-04-17 Yao Qi <yao@codesourcery.com>
8284 * gdbtypes.h: Update comments to link to types and macros'
8287 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8289 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8291 2014-04-16 Keith Seitz <keiths@redhat.com>
8294 * dwarf2read.c (skip_one_die): Check that all relative-offset
8295 sibling DIEs fall within range of the current reader's buffer.
8296 (read_partial_die): Likewise.
8298 2014-04-16 Keith Seitz <keiths@redhat.com>
8301 * cp-namespace.c (lookup_symbol_file): If the type name of
8302 `this' is NULL, return immediately.
8304 2014-04-14 Keith Seitz <keiths@redhat.com>
8307 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8308 from symbol_matches_domain in symtab.c. All local callers
8309 of symbol_matches_domain updated.
8310 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8311 search STRUCT_DOMAIN.
8312 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8313 independently. standard_lookup will do that automatically.
8314 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8315 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8316 (cp_lookup_symbol_in_namespace): Likewise.
8317 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8318 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8319 may return a STRUCT_DOMAIN match.
8320 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8321 * cp-support.c: Include language.h.
8322 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8324 * psymtab.c (match_partial_symbol): Compare the requested
8325 domain with the symbol's domain directly.
8326 (lookup_partial_symbol): Likewise.
8327 * symtab.c (lookup_symbol_in_language): Explain when/why
8328 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8329 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8330 appropriate languages.
8331 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8332 and moved to ada-lang.c
8333 (lookup_block_symbol): Explain that this function only returns
8334 symbol matching the requested DOMAIN.
8335 Compare the requested domain with the symbol's domain directly.
8336 (iterate_over_symbols): Compare the requested domain with the
8337 symbol's domain directly.
8338 * symtab.h (symbol_matches_domain): Remove.
8340 2014-04-14 Tom Tromey <tromey@redhat.com>
8343 * c-exp.y (type_aggregate_p): New function.
8344 (qualified_name, classify_inner_name): Use it.
8345 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8346 and TYPE_TARGET_TYPE of an enum type.
8347 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8349 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8350 handle TYPE_DECLARED_CLASS.
8351 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8353 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8354 * valops.c (enum_constant_from_type): New function.
8355 (value_aggregate_elt): Use it.
8356 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8359 2014-04-14 Tom Tromey <tromey@redhat.com>
8361 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8362 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8364 * value.h (value_aggregate_elt): Update.
8366 2014-04-14 Tom Tromey <tromey@redhat.com>
8368 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8370 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8372 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8373 (evaluate_subexp_standard): Pass noside argument.
8374 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8375 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8376 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8377 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8378 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8380 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8382 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8383 points to a constant blob.
8385 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8387 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8388 property and store it as the high bound and flag the range accordingly.
8389 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8390 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8391 * gdbtypes.h (enum range_flags): New enum.
8392 (struct range_bounds): Add flags member.
8394 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8396 * c-typeprint.c (c_type_print_varspec_suffix): Added
8397 check for not yet resolved high bound. If unresolved, print
8398 "variable length" string to the console instead of random
8401 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8403 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8405 (ada_template_to_fixed_record_type_1): Likewise.
8406 (ada_to_fixed_type_1): Likewise.
8407 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8408 (cp_print_value): Likewise.
8409 * d-valprint.c (dynamic_array_type): Likewise.
8410 * findvar.c (address_of_variable): Likewise.
8411 * jv-valprint.c (java_value_print): Likewise.
8412 * valops.c (value_ind): Likewise.
8413 * value.c (coerce_ref): Likewise.
8415 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8417 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8418 value and retrieve the dynamic type size.
8420 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8422 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8423 passed to sizeof is dynamic evaluate the argument to compute the length.
8425 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8426 Joel Brobecker <brobecker@adacore.com>
8428 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8429 (dwarf2_evaluate_property): New function.
8430 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8431 * dwarf2read.c (attr_to_dynamic_prop): New function.
8432 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8434 * gdbtypes.c: Include dwarf2loc.h.
8435 (is_dynamic_type): New function.
8436 (resolve_dynamic_type): New function.
8437 (resolve_dynamic_bounds): New function.
8438 (get_type_length): New function.
8439 (check_typedef): Use get_type_length to compute type length.
8440 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8441 (TYPE_LOW_BOUND_KIND): New macro.
8442 (is_dynamic_type): New function prototype.
8443 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8444 to resolve dynamic properties of the type. Update comment.
8445 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8447 2014-04-14 Richard Henderson <rth@redhat.com>
8449 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8451 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8452 Doug Evans <xdje42@gmail.com>
8454 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8455 dereference TYPE_CODE_REF values.
8457 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8459 Revert the following changes due to regressions:
8461 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8462 (dwarf2_evaluate_property): New function.
8463 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8464 * dwarf2read.c (attr_to_dynamic_prop): New function.
8465 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8467 * gdbtypes.c: Include dwarf2loc.h.
8468 (is_dynamic_type): New function.
8469 (resolve_dynamic_type): New function.
8470 (resolve_dynamic_bounds): New function.
8471 (get_type_length): New function.
8472 (check_typedef): Use get_type_length to compute type length.
8473 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8474 (TYPE_LOW_BOUND_KIND): New macro.
8475 (is_dynamic_type): New function prototype.
8476 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8477 to resolve dynamic properties of the type. Update comment.
8478 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8480 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8481 passed to sizeof is dynamic evaluate the argument to compute the length.
8483 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8484 value and retrieve the dynamic type size.
8486 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8487 (ada_template_to_fixed_record_type_1): Likewise.
8488 (ada_to_fixed_type_1): Likewise.
8489 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8490 (cp_print_value): Likewise.
8491 * d-valprint.c (dynamic_array_type): Likewise.
8492 * eval.c (evaluate_subexp_with_coercion): Likewise.
8493 * findvar.c (address_of_variable): Likewise.
8494 * jv-valprint.c (java_value_print): Likewise.
8495 * valops.c (value_ind): Likewise.
8496 * value.c (coerce_ref): Likewise.
8498 * c-typeprint.c (c_type_print_varspec_suffix): Added
8499 check for not yet resolved high bound. If unresolved, print
8500 "variable length" string to the console instead of random
8503 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8504 property and store it as the high bound and flag the range accordingly.
8505 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8506 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8507 * gdbtypes.h (enum range_flags): New enum.
8508 (struct range_bounds): Add flags member.
8510 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8511 points to a constant blob.
8513 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8514 (evaluate_subexp_standard): Pass noside argument.
8515 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8516 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8517 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8518 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8519 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8521 2014-04-11 Keith Seitz <keiths@redhat.com>
8524 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8525 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8528 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8530 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8531 (evaluate_subexp_standard): Pass noside argument.
8532 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8533 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8534 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8535 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8536 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8538 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8540 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8541 points to a constant blob.
8543 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8545 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8546 property and store it as the high bound and flag the range accordingly.
8547 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8548 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8549 * gdbtypes.h (enum range_flags): New enum.
8550 (struct range_bounds): Add flags member.
8552 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8554 * c-typeprint.c (c_type_print_varspec_suffix): Added
8555 check for not yet resolved high bound. If unresolved, print
8556 "variable length" string to the console instead of random
8559 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8561 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8562 (ada_template_to_fixed_record_type_1): Likewise.
8563 (ada_to_fixed_type_1): Likewise.
8564 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8565 (cp_print_value): Likewise.
8566 * d-valprint.c (dynamic_array_type): Likewise.
8567 * eval.c (evaluate_subexp_with_coercion): Likewise.
8568 * findvar.c (address_of_variable): Likewise.
8569 * jv-valprint.c (java_value_print): Likewise.
8570 * valops.c (value_ind): Likewise.
8571 * value.c (coerce_ref): Likewise.
8573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8575 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8576 value and retrieve the dynamic type size.
8578 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8580 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8581 passed to sizeof is dynamic evaluate the argument to compute the length.
8583 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8585 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8586 (dwarf2_evaluate_property): New function.
8587 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8588 * dwarf2read.c (attr_to_dynamic_prop): New function.
8589 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8591 * gdbtypes.c: Include dwarf2loc.h.
8592 (is_dynamic_type): New function.
8593 (resolve_dynamic_type): New function.
8594 (resolve_dynamic_bounds): New function.
8595 (get_type_length): New function.
8596 (check_typedef): Use get_type_length to compute type length.
8597 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8598 (TYPE_LOW_BOUND_KIND): New macro.
8599 (is_dynamic_type): New function prototype.
8600 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8601 to resolve dynamic properties of the type. Update comment.
8602 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8604 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8606 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8607 declaring high/low bounds and change uses accordingly. Call
8608 create_range_type instead of create_static_range_type.
8609 * gdbtypes.c (create_range_type): New function.
8610 (create_range_type): Convert bounds into struct bound_prop and pass
8611 them to create_range_type.
8612 * gdbtypes.h (struct bound_prop): New struct.
8613 (create_range_type): New function prototype.
8614 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8615 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8616 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8618 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8620 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8622 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8623 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8624 * ada-lang.c: All uses of create_range_type updated.
8625 * coffread.c: All uses of create_range_type updated.
8626 * dwarf2read.c: All uses of create_range_type updated.
8627 * f-exp.y: All uses of create_range_type updated.
8628 * m2-valprint.c: All uses of create_range_type updated.
8629 * mdebugread.c: All uses of create_range_type updated.
8630 * stabsread.c: All uses of create_range_type updated.
8631 * valops.c: All uses of create_range_type updated.
8632 * valprint.c: All uses of create_range_type updated.
8634 2014-04-10 Pedro Alves <palves@redhat.com>
8636 * breakpoint.c (single_step_breakpoints)
8637 (single_step_gdbarch): Move up in the file.
8638 (one_breakpoint_xfer_memory): New function, factored out from ...
8639 (breakpoint_xfer_memory): ... here. Also process single-step
8642 2014-04-09 Tristan Gingold <gingold@adacore.com>
8644 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8646 (darwin_decode_exception_message): Free port only after use.
8648 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8650 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8651 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8652 when setting the size of call_length.
8654 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8656 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8657 dereference TYPE_CODE_REF values.
8659 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8661 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8662 end of warning message.
8664 2014-04-03 Doug Evans <dje@google.com>
8666 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8667 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8669 2014-04-02 Alan Modra <amodra@gmail.com>
8671 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8672 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8673 (struct symbol_file_add_from_memory_args): Add size field.
8674 (find_vdso_size): New function.
8675 (add_vsyscall_page): Attempt to find vdso size.
8677 2014-04-01 Doug Evans <dje@google.com>
8679 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8681 2014-04-01 Tristan Gingold <gingold@adacore.com>
8683 * darwin-nat.c (darwin_encode_reply): Add prototype.
8684 (darwin_decode_exception_message): Reply to unknown inferiors.
8685 (darwin_decode_message): Handle message by id. Ignore message
8686 to unknown inferior.
8687 (darwin_wait): Discard unknown messages, add debug trace.
8689 2014-03-31 Doug Evans <dje@google.com>
8691 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8694 2014-03-31 Doug Evans <dje@google.com>
8696 New option "set print symbol-loading".
8698 * solib.c (solib_read_symbols): Only print symbol loading messages
8700 (solib_add): If symbol loading is in "brief" mode, notify user
8701 symbols are being loaded.
8702 (reload_shared_libraries_1): Ditto.
8703 * symfile.c (print_symbol_loading_off): New static global.
8704 (print_symbol_loading_brief): New static global.
8705 (print_symbol_loading_full): New static global.
8706 (print_symbol_loading_enums): New static global.
8707 (print_symbol_loading): New static global.
8708 (print_symbol_loading_p): New function.
8709 (symbol_file_add_with_addrs): Only print symbol loading messages
8711 (_initialize_symfile): Register "print symbol-loading" set/show
8713 * symfile.h (print_symbol_loading_p): Declare.
8715 2014-03-30 Doug Evans <xdje42@gmail.com>
8717 * infrun.c (set_last_target_status): New function.
8718 (handle_inferior_event): Call it.
8720 2014-03-30 Doug Evans <xdje42@gmail.com>
8722 * inferior.h (enum stop_kind): Improve comment.
8724 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8726 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8727 a reference, strip the reference layer before calling
8728 the lang_ops value_has_mutated callback.
8730 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8732 Remove some globals from our parser.
8733 * language.c (unk_lang_parser): Add "struct parser_state"
8735 * language.h (struct language_defn) <la_parser>: Likewise.
8736 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8737 (initialize_expout): Add "struct parser_state" argument.
8738 Rewrite function to use the parser state.
8739 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8740 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8741 write_exp_elt_longcst, write_exp_elt_dblcst,
8742 write_exp_elt_decfloatcst, write_exp_elt_type,
8743 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8744 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8745 write_dollar_variable): Likewise.
8746 (parse_exp_in_context_1): Use parser state.
8747 (insert_type_address_space): Add "struct parser_state" argument.
8749 (increase_expout_size): New function.
8750 * parser-defs.h: Forward declare "struct language_defn" and
8751 "struct parser_state".
8752 (expout, expout_size, expout_ptr): Remove extern declarations.
8753 (parse_gdbarch, parse_language): Rewrite macro declarations to
8754 accept the parser state.
8755 (struct parser_state): New struct.
8756 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8757 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8758 write_exp_elt_decfloatcst, write_exp_elt_type,
8759 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8760 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8761 write_exp_msymbol, write_dollar_variable,
8762 mark_struct_expression, insert_type_address_space): Add "struct
8763 parser_state" argument.
8764 (increase_expout_size): New function.
8765 * utils.c (do_clear_parser_state): New function.
8766 (make_cleanup_clear_parser_state): Likewise.
8767 * utils.h (make_cleanup_clear_parser_state): New function
8769 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8770 Update calls to write_exp* in order to pass the parser state.
8771 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8772 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8773 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8774 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8775 * stap-probe.c (stap_parse_register_operand): Likewise.
8776 (stap_parse_single_operand): Likewise.
8777 (stap_parse_argument_1): Likewise.
8778 (stap_parse_argument): Use parser state.
8779 * stap-probe.h: Include "parser-defs.h".
8780 (struct stap_parse_info) <pstate>: New field.
8781 * c-exp.y (parse_type): Rewrite to use parser state.
8782 (yyparse): Redefine to c_parse_internal.
8783 (pstate): New global variable.
8784 (parse_number): Add "struct parser_state" argument.
8785 (write_destructor_name): Likewise.
8786 (type_exp): Update calls to write_exp* and similars in order to
8788 (exp1, exp, variable, qualified_name, space_identifier,
8789 typename, typebase): Likewise.
8790 (write_destructor_name, parse_number, lex_one_token,
8791 classify_name, classify_inner_name, c_parse): Add "struct
8792 parser_state" argument. Update function to use parser state.
8793 * c-lang.h: Forward declare "struct parser_state".
8794 (c_parse): Add "struct parser_state" argument.
8795 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8796 (yyparse): Redefine macro to ada_parse_internal.
8797 (pstate): New variable.
8798 (write_int, write_object_renaming, write_var_or_type,
8799 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8800 type_int, type_long, type_long_long, type_float, type_double,
8801 type_long_double, type_char, type_boolean, type_system_address):
8802 Add "struct parser_state" argument.
8803 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8804 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8805 var_or_type, aggregate, aggregate_component_list,
8806 positional_list, others, component_group,
8807 component_associations): Update calls to write_exp* and similar
8808 functions in order to use parser state.
8809 (ada_parse, write_var_from_sym, write_int,
8810 write_exp_op_with_string, write_object_renaming,
8811 find_primitive_type, write_selectors, write_ambiguous_var,
8812 write_var_or_type, write_name_assoc, type_int, type_long,
8813 type_long_long, type_float, type_double, type_long_double,
8814 type_char, type_boolean, type_system_address): Add "struct
8815 parser_state" argument. Adjust function to use parser state.
8816 * ada-lang.c (parse): Likewise.
8817 * ada-lang.h: Forward declare "struct parser_state".
8818 (ada_parse): Add "struct parser_state" argument.
8819 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8820 calls to both functions.
8821 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8823 (yyparse): Redefine macro to f_parse_internal.
8824 (pstate): New variable.
8825 (parse_number): Add "struct parser_state" argument.
8826 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8827 and similars in order to use parser state.
8828 (parse_number): Adjust code to use parser state.
8830 (f_parse): New function.
8831 * f-lang.h: Forward declare "struct parser_state".
8832 (f_parse): Add "struct parser_state" argument.
8833 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8835 (yyparse): Redefine macro for java_parse_internal.
8836 (pstate): New variable.
8837 (push_expression_name, push_expression_name, insert_exp): Add
8838 "struct parser_state" argument.
8839 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8840 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8841 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8842 PostIncrementExpression, PostDecrementExpression,
8843 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8844 UnaryExpressionNotPlusMinus, CastExpression,
8845 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8846 RelationalExpression, EqualityExpression, AndExpression,
8847 ExclusiveOrExpression, InclusiveOrExpression,
8848 ConditionalAndExpression, ConditionalOrExpression,
8849 ConditionalExpression, Assignment, LeftHandSide): Update
8850 calls to write_exp* and similars in order to use parser state.
8851 (parse_number): Ajust code to use parser state.
8853 (java_parse): New function.
8854 (push_variable): Add "struct parser_state" argument. Adjust
8855 code to user parser state.
8856 (push_fieldnames, push_qualified_expression_name,
8857 push_expression_name, insert_exp): Likewise.
8858 * jv-lang.h: Forward declare "struct parser_state".
8859 (java_parse): Add "struct parser_state" argument.
8860 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8862 (yyparse): Redefine macro to m2_parse_internal.
8863 (pstate): New variable.
8864 (type_exp, exp, fblock, variable, type): Update calls to
8865 write_exp* and similars to use parser state.
8867 (m2_parse): New function.
8868 * m2-lang.h: Forward declare "struct parser_state".
8869 (m2_parse): Add "struct parser_state" argument.
8870 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8871 * objc-lang.h: Forward declare "struct parser_state".
8872 (end_msglist): Add "struct parser_state" argument.
8873 * p-exp.y (parse_type): Rewrite macro to use parser state.
8874 (yyparse): Redefine macro to pascal_parse_internal.
8875 (pstate): New variable.
8876 (parse_number): Add "struct parser_state" argument.
8877 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8878 write_exp* and similars in order to use parser state.
8879 (parse_number, yylex): Adjust code to use parser state.
8880 (pascal_parse): New function.
8881 * p-lang.h: Forward declare "struct parser_state".
8882 (pascal_parse): Add "struct parser_state" argument.
8883 * go-exp.y (parse_type): Rewrite macro to use parser state.
8884 (yyparse): Redefine macro to go_parse_internal.
8885 (pstate): New variable.
8886 (parse_number): Add "struct parser_state" argument.
8887 (type_exp, exp1, exp, variable, type): Update calls to
8888 write_exp* and similars in order to use parser state.
8889 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8890 to use parser state.
8891 (go_parse): Likewise.
8892 * go-lang.h: Forward declare "struct parser_state".
8893 (go_parse): Add "struct parser_state" argument.
8895 2014-03-27 Doug Evans <dje@google.com>
8897 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8899 2014-03-27 Doug Evans <dje@google.com>
8901 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8902 Remove argument abbrev_section. All callers updated.
8904 2014-03-27 Doug Evans <dje@google.com>
8906 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8907 addr_base, ranges_base.
8909 2014-03-26 Keith Seitz <keiths@redhat.com>
8911 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8912 types, not VAR_DOMAIN.
8914 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8916 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8918 * features/nios2-linux.c: Regenerated.
8919 * features/nios2.c: Regenerated.
8921 2014-03-25 Pedro Alves <palves@redhat.com>
8923 * cli/cli-script.c (script_from_file): Force the interpreter to
8926 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8928 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8929 small stack allocation.
8931 2014-03-24 Tristan Gingold <gingold@adacore.com>
8933 * darwin-nat.c (exc_server): Remove unused prototype.
8934 (darwin_dump_message): Correctly display data on x86_64.
8935 (darwin_encode_reply): Fix style.
8936 Add comments and fix indentation.
8938 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8940 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8942 2014-03-22 Doug Evans <xdje42@gmail.com>
8944 * infcmd.c: Whitespace fixes.
8945 (interrupt_command): Merge two function comments into one.
8947 2014-03-22 Doug Evans <xdje42@gmail.com>
8949 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8952 2014-03-22 Yao Qi <yao@codesourcery.com>
8954 * remote.c (target_read_live_memory): Remove.
8955 (memory_xfer_live_readonly_partial): Rename it to
8956 remote_xfer_live_readonly_partial. Remove argument 'object'.
8957 All callers updated. Call remote_read_bytes_1
8958 instead of target_read_live_memory.
8959 * tracepoint.c (set_traceframe_number): Remove.
8960 (make_cleanup_restore_traceframe_number): Likewise .
8961 * tracepoint.h (set_traceframe_number): Remove declaration.
8962 (make_cleanup_restore_traceframe_number): Likewise.
8964 2014-03-22 Yao Qi <yao@codesourcery.com>
8966 * remote.c (remote_read_bytes): Move code on reading from the
8968 (remote_read_bytes_1): ... here. New function.
8970 2014-03-22 Yao Qi <yao@codesourcery.com>
8972 * ctf.c (ctf_xfer_partial): Check the return value of
8973 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8974 return TARGET_XFER_UNAVAILABLE.
8975 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8976 * target.c (target_read_live_memory): Move it to remote.c.
8977 (memory_xfer_live_readonly_partial): Likewise.
8978 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8979 * remote.c (target_read_live_memory): Moved from target.c.
8980 (memory_xfer_live_readonly_partial): Likewise.
8981 (remote_read_bytes): Factored out from
8982 memory_xfer_partial_1.
8984 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8986 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8989 2014-03-21 Pedro Alves <palves@redhat.com>
8991 * infrun.c (normal_stop): Extend comment.
8993 2014-03-21 Hui Zhu <hui@codesourcery.com>
8994 Pedro Alves <palves@redhat.com>
8996 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8998 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8999 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9000 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9002 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9004 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9005 `z' formatted output modifier.
9007 2014-03-20 Tom Tromey <tromey@redhat.com>
9008 Sergio Durigan Junior <sergiodj@redhat.com>
9010 * probe.c (parse_probes): Turn assert into an ordinary error.
9011 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9012 exceptions when parsing probes. Rearrange the code for clarity.
9014 2014-03-20 Tom Tromey <tromey@redhat.com>
9017 * top.c (execute_command): Only dispatch events if the command
9020 2014-03-20 Tom Tromey <tromey@redhat.com>
9023 * infcall.c: Include event-top.h.
9024 (run_inferior_call): Call async_disable_stdin if needed.
9026 2014-03-20 Pedro Alves <palves@redhat.com>
9028 * infrun.c (prepare_to_proceed): Delete.
9029 (thread_still_needs_step_over): New function.
9030 (find_thread_needs_step_over): New function.
9031 (proceed): If the current thread needs a step-over, set its
9032 steping_over_breakpoint flag. Adjust to use
9033 find_thread_needs_step_over instead of prepare_to_proceed.
9034 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9035 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9037 (switch_back_to_stepped_thread): Step over breakpoints of all
9038 threads not the stepping thread, before switching back to the
9041 2014-03-20 Pedro Alves <palves@redhat.com>
9043 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9045 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9046 * infrun.c (saved_singlestep_ptid)
9047 (stepping_past_singlestep_breakpoint): Delete.
9048 (resume): Remove stepping_past_singlestep_breakpoint handling.
9049 (proceed): Store the prev_pc of the stepping thread too.
9050 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9052 (enum infwait_states): Delete infwait_thread_hop_state.
9053 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9055 (handle_inferior_event): Adjust.
9056 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9057 handling and the thread-hop code. Before removing single-step
9058 breakpoints, check whether the thread hit a single-step breakpoint
9059 of another thread. If it did, the trap is not a random signal.
9060 (switch_back_to_stepped_thread): If the event thread hit a
9061 single-step breakpoint, unblock it before switching to the
9062 stepping thread. Handle the case of the stepped thread having
9064 (keep_going): Handle the case of the current thread moving past a
9065 single-step breakpoint.
9067 2014-03-20 Pedro Alves <palves@redhat.com>
9070 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9071 are being stepped over.
9072 (breakpoint_address_match): Make extern.
9073 * breakpoint.h (breakpoint_address_match): New declaration.
9074 * inferior.h (stepping_past_instruction_at): New declaration.
9075 * infrun.c (struct step_over_info): New type.
9076 (step_over_info): New global.
9077 (set_step_over_info, clear_step_over_info)
9078 (stepping_past_instruction_at): New functions.
9079 (handle_inferior_event): Clear the step-over info when
9080 trap_expected is cleared.
9081 (resume): Remove now stale comment.
9082 (clear_proceed_status): Clear step-over info.
9083 (proceed): Adjust step-over handling to set or clear the step-over
9084 info instead of removing all breakpoints.
9085 (handle_signal_stop): When setting up a thread-hop, don't remove
9087 (stop_stepping): Clear step-over info.
9088 (keep_going): Adjust step-over handling to set or clear step-over
9089 info and then always inserting breakpoints, instead of removing
9090 all breakpoints when stepping over one.
9092 2014-03-20 Pedro Alves <palves@redhat.com>
9094 * infrun.c (previous_inferior_ptid): Adjust comment.
9095 (deferred_step_ptid): Delete.
9096 (infrun_thread_ptid_changed, prepare_to_proceed)
9097 (init_wait_for_inferior): Adjust.
9098 (handle_signal_stop): Delete deferred_step_ptid handling.
9100 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9103 * defs.h (sync_quit_force_run): New declaration.
9104 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9105 * event-top.c (async_sigterm_handler): New declaration.
9106 (async_sigterm_token): New variable.
9107 (async_init_signals): Create also async_sigterm_token.
9108 (async_sigterm_handler): New function.
9109 (sync_quit_force_run): New variable.
9110 (handle_sigterm): Replace quit_force call by other calls.
9111 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9113 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9115 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9116 offset into SPE pseudo registers.
9118 2014-03-18 Pedro Alves <palves@redhat.com>
9121 * inferior.h (print_stop_event): Declare.
9122 * infrun.c (print_stop_event): New, factored out from ...
9123 (normal_stop): ... this.
9124 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9125 of bpstat_print/print_stack_frame.
9127 2014-03-17 Tom Tromey <tromey@redhat.com>
9129 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9131 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9133 * ada-lang.c (decode_constrained_packed_array): Perform a
9134 minimal coercion for reference with coerce_ref instead of
9137 2014-03-17 Tristan Gingold <gingold@adacore.com>
9139 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9140 (darwin_solib_create_inferior_hook): Emit a warning if version
9143 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9145 * python/py-value.c (get_field_flag): Cast flag_name argument to
9146 PyObject_GetAttrString to support Python 2.4.
9148 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9150 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9151 (Global Maintainers): Remove Jan Kratochvil.
9153 2014-03-14 Pedro Alves <palves@redhat.com>
9155 * inferior.h (terminal_ours_for_output): Rename to ...
9156 (child_terminal_ours_for_output): ... this.
9157 (terminal_save_ours): Rename to ...
9158 (child_terminal_save_ours): ... this.
9159 (terminal_ours): Rename to ...
9160 (child_terminal_ours): ... this.
9161 (terminal_inferior): Rename to ...
9162 (child_terminal_inferior): ... this.
9163 (terminal_init_inferior): Rename to ...
9164 (child_terminal_init_inferior): ... this.
9165 (terminal_init_inferior_with_pgrp): Rename to ...
9166 (child_terminal_init_inferior_with_pgrp): ... this.
9167 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9168 (child_terminal_init_with_pgrp): ... this.
9169 (terminal_save_ours): Rename to ...
9170 (child_terminal_save_ours): ... this.
9171 (terminal_init_inferior): Rename to ...
9172 (child_terminal_init): ... this. Adjust.
9173 (terminal_inferior): Rename to ...
9174 (child_terminal_inferior): ... this.
9175 (terminal_ours_for_output): Rename to ...
9176 (child_terminal_ours_for_output): ... this. Adjust.
9177 (terminal_ours): Rename to ...
9178 (child_terminal_ours): ... this.
9179 (terminal_ours_1): Rename to ...
9180 (child_terminal_ours_1): ... this. Adjust.
9181 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9182 * windows-nat.c (do_initial_windows_stuff): Adjust.
9183 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9184 (gnu_terminal_init): ... this. Adjust.
9185 (gnu_target): Adjust.
9186 * inf-child.c (inf_child_target): Adjust.
9188 2014-03-13 Doug Evans <xdje42@gmail.com>
9191 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9194 2014-03-13 Doug Evans <xdje42@gmail.com>
9196 * value.c (record_latest_value): Call release_value_or_incref
9197 instead of release_value.
9199 2014-03-13 Pedro Alves <palves@redhat.com>
9201 * procfs.c (procfs_target): Don't override to_shortname,
9202 to_longname or to_doc.
9204 2014-03-13 Pedro Alves <palves@redhat.com>
9206 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9207 Unix in user visible strings.
9209 2014-03-12 Stan Shebs <stan@codesourcery.com>
9211 * gdbtypes.h: Annotate comments for Doxygen, add a page
9212 block comment with some general info.
9214 2014-03-12 Pedro Alves <palves@redhat.com>
9216 * infcmd.c (prepare_execution_command): New function, factored out
9217 from several execution commands.
9218 (run_command_1, continue_command, step_1, jump_command)
9219 (signal_command, until_command, advance_command, finish_command)
9220 (attach_command): Use prepare_execution_command.
9222 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9224 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9227 (struct arm_linux_thread_points): Removed.
9228 (struct arm_linux_process_info): New.
9229 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9230 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9231 (arm_linux_find_breakpoints_by_tid): Removed.
9232 (struct arch_lwp_info): New.
9233 (arm_linux_find_process_pid): New functions.
9234 (arm_linux_add_process): New functions.
9235 (arm_linux_process_info_get): New functions.
9236 (arm_linux_forget_process): New function.
9237 (arm_linux_get_debug_reg_state): New function.
9238 (struct update_registers_data): New.
9239 (update_registers_callback): New function.
9240 (arm_linux_insert_hw_breakpoint1): Updated.
9241 (arm_linux_remove_hw_breakpoint1): Updated.
9242 (arm_linux_insert_hw_breakpoint): Updated.
9243 (arm_linux_remove_hw_breakpoint): Updated.
9244 (arm_linux_insert_watchpoint): Updated.
9245 (arm_linux_remove_watchpoint): Updated.
9246 (arm_linux_new_thread): Updated.
9247 (arm_linux_prepare_to_resume): New function.
9248 (arm_linux_new_fork): New function.
9249 (_initialize_arm_linux_nat): Updated.
9251 2014-03-12 Pedro Alves <palves@redhat.com>
9253 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9255 2014-03-12 Tom Tromey <tromey@redhat.com>
9257 * inf-child.c (return_zero): New function.
9258 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9259 * aix-thread.c (aix_thread_inferior_created): New function.
9260 (aix_thread_attach): Remove.
9261 (init_aix_thread_ops): Don't set to_attach.
9262 (_initialize_aix_thread): Register inferior_created observer.
9263 * corelow.c (init_core_ops): Don't set to_attach or
9265 * exec.c (init_exec_ops): Don't set to_attach or
9267 * infcmd.c (run_command_1): Use find_run_target. Make direct
9269 (attach_command): Use find_attach_target. Make direct target
9271 * record-btrace.c (init_record_btrace_ops): Don't set
9273 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9275 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9276 set to_create_inferior.
9277 * target.c (complete_target_initialization): Add assertion.
9278 (target_create_inferior): Remove.
9279 (find_default_attach, find_default_create_inferior): Remove.
9280 (find_attach_target, find_run_target): New functions.
9281 (find_default_is_async_p, find_default_can_async_p)
9282 (target_supports_non_stop, target_attach): Remove.
9283 (init_dummy_target): Don't set to_create_inferior or
9284 to_supports_non_stop.
9285 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9286 TARGET_DEFAULT_FUNC.
9287 <to_create_inferior>: Add comment.
9288 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9289 TARGET_DEFAULT_RETURN.
9290 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9291 (find_attach_target, find_run_target): Declare.
9292 (target_create_inferior): Remove.
9293 (target_has_execution_1): Update comment.
9294 (target_supports_non_stop): Remove.
9295 * target-delegates.c: Rebuild.
9297 2014-03-12 Pedro Alves <palves@redhat.com>
9299 * inf-child.h: Update comment to not mention Unix.
9301 2014-03-12 Pedro Alves <palves@redhat.com>
9303 * inf-child.c: Update top comment to not mention Unix. Add
9304 generic comment describing how this target is meant to be used.
9305 (inf_child_post_attach, inf_child_post_startup_inferior)
9306 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9309 2014-03-12 Pedro Alves <palves@redhat.com>
9311 * nto-procfs.c: Include inf-child.h.
9312 (procfs_ops): Delete global.
9313 (procfs_can_run): Delete method.
9314 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9315 target pointer instead of referencing procfs_ops.
9316 (procfs_prepare_to_store): Delete.
9317 (init_procfs_ops): Delete function.
9318 (procfs_target): New function, based on init_procfs_ops, but
9319 inherit inf_child_target.
9320 (_initialize_procfs): Use procfs_target.
9322 2014-03-12 Pedro Alves <palves@redhat.com>
9324 * windows-nat.c: Include inf-child.h.
9325 (windows_ops): Delete global.
9326 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9328 (init_windows_ops): Delete function.
9329 (windows_target): New function, based on init_windows_ops, but
9330 inherit inf_child_target.
9331 (_initialize_windows_nat): Use windows_target. Install x86
9332 specific target methods here.
9334 2014-03-10 Doug Evans <xdje42@gmail.com>
9336 * guile/guile.c (call_initialize_gdb_module): New function.
9337 (initialize_guile): Replace call to scm_init_guile with call to
9340 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9342 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9343 in call to TYPE_CODE macro.
9345 2014-03-10 Jerome Guitton <guitton@adacore.com>
9347 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9348 Resolve tagged types to full view.
9350 2014-03-10 Hui Zhu <hui@codesourcery.com>
9352 * target.h (target_insert_breakpoint): Remove "hardware" from its
9355 2014-03-07 Doug Evans <dje@google.com>
9357 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9359 2014-03-07 Doug Evans <dje@google.com>
9361 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9362 Remove unused local comp_dir_attr. Assert exactly one of
9363 stub_comp_unit_die, stub_comp_dir is non-NULL.
9365 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9367 * target.h (complete_target_initialization, add_target):
9370 2014-03-07 Pedro Alves <palves@redhat.com>
9372 * go32-nat.c: Include inf-child.h.
9373 (go32_ops): Delete global.
9374 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9376 (go32_create_inferior): Push the passed in target pointer instead
9377 of referencing go32_ops.
9378 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9379 (go32_target): New function, based on init_go32_ops, but inherit
9381 (_initialize_go32_nat): Use go32_target. Move parts of
9384 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9386 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9387 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9388 SYMBOL_VALUE_ADDRESS.
9389 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9391 2014-03-06 Yao Qi <yao@codesourcery.com>
9393 * breakpoint.c (get_tracepoint_by_number): Remove argument
9394 optional_p. All callers updated. Adjust comments. Update
9396 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9398 2014-03-06 Yao Qi <yao@codesourcery.com>
9400 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9401 early if get_number returns zero. Use 'p' instead of 'args'.
9403 2014-03-06 Yao Qi <yao@codesourcery.com>
9405 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9408 2014-03-06 Yao Qi <yao@codesourcery.com>
9410 PR breakpoints/16508
9411 * tracepoint.c (check_trace_running): New function.
9412 (trace_find_command): Move code to check_trace_running and
9413 call check_trace_running.
9414 (trace_find_pc_command): Likewise.
9415 (trace_find_tracepoint_command): Likewise.
9416 (trace_find_line_command): Likewise.
9417 (trace_find_range_command): Likewise.
9418 * tracepoint.h (check_trace_running): Likewise.
9419 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9421 2014-03-06 Yao Qi <yao@codesourcery.com>
9423 * target.h (struct target_ops) <to_traceframe_info>: Use
9424 TARGET_DEFAULT_NORETURN (tcomplain ()).
9425 * target-delegates.c: Regenerated.
9427 2014-03-05 Pedro Alves <palves@redhat.com>
9430 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9431 void. Update comment.
9432 (dcache_xfer_memory): Delete.
9433 (dcache_read_memory_partial): New, based on the read bits of
9435 (dcache_update): Add status parameter. Use ULONGEST for len, and
9436 adjust. Discard cache lines if the reason for the update was
9438 * dcache.h (dcache_xfer_memory): Delete declaration.
9439 (dcache_read_memory_partial): New declaration.
9440 (dcache_update): Update prototype.
9441 * target.c (raw_memory_xfer_partial): Update the dcache here.
9442 (memory_xfer_partial_1): Don't handle dcache writes here.
9444 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9446 * remote-sim.c (gdbsim_load): Add const to prog.
9448 2014-03-03 Tom Tromey <tromey@redhat.com>
9450 * elfread.c (probe_key): Change to bfd_data.
9451 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9452 now per-BFD, not per-objfile.
9453 * stap-probe.c (stap_probe_destroy): Update comment.
9454 (handle_stap_probe): Allocate on the per-BFD obstack.
9456 2014-03-03 Tom Tromey <tromey@redhat.com>
9458 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9459 * breakpoint.c (create_longjmp_master_breakpoint): Use
9461 (add_location_to_breakpoint, bkpt_probe_insert_location)
9462 (bkpt_probe_remove_location): Update.
9463 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9464 * elfread.c (elf_symfile_relocate_probe): Remove.
9465 (elf_probe_fns): Update.
9466 (insert_exception_resume_breakpoint): Change type of "probe"
9467 parameter to bound_probe.
9468 (check_exception_resume): Update.
9469 * objfiles.c (objfile_relocate1): Don't relocate probes.
9470 * probe.c (bound_probe_s): New typedef.
9471 (parse_probes): Use get_probe_address. Set sal's objfile.
9472 (find_probe_by_pc): Return a bound_probe.
9473 (collect_probes): Return a VEC(bound_probe_s).
9474 (compare_probes): Update.
9475 (gen_ui_out_table_header_info): Change type of "probes"
9477 (info_probes_for_ops): Update.
9478 (get_probe_address): New function.
9479 (probe_safe_evaluate_at_pc): Update.
9480 * probe.h (struct probe_ops) <get_probe_address>: New field.
9481 <set_semaphore, clear_semaphore>: Add objfile parameter.
9482 (struct probe) <objfile>: Remove field.
9484 <address>: Update comment.
9485 (struct bound_probe): New.
9486 (find_probe_by_pc): Return a bound_probe.
9487 (get_probe_address): Declare.
9488 * solib-svr4.c (struct probe_and_action) <address>: New field.
9489 (hash_probe_and_action, equal_probe_and_action): Update.
9490 (register_solib_event_probe): Add address parameter.
9491 (solib_event_probe_at): Update.
9492 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9494 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9495 (stap_get_probe_address): New function.
9496 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9497 (compile_probe_arg): Update.
9498 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9500 (handle_stap_probe): Don't relocate the probe.
9501 (stap_relocate): Remove.
9502 (stap_gen_info_probes_table_values): Update.
9503 (stap_probe_ops): Remove stap_relocate.
9504 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9505 (debug_sym_probe_fns): Update.
9506 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9507 * symtab.c (init_sal): Use memset.
9508 * symtab.h (struct symtab_and_line) <objfile>: New field.
9509 * tracepoint.c (start_tracing, stop_tracing): Update.
9511 2014-03-03 Tom Tromey <tromey@redhat.com>
9513 * probe.h (parse_probes, find_probe_by_pc)
9514 (find_probes_in_objfile): Fix comments.
9516 2014-03-02 Doug Evans <xdje42@gmail.com>
9518 * infrun.c (handle_signal_stop): Replace test for
9519 TARGET_WAITKIND_STOPPED with an assert.
9521 2014-03-02 Doug Evans <xdje42@gmail.com>
9523 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9525 2014-03-02 Doug Evans <xdje42@gmail.com>
9527 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9529 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9531 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9533 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9535 * i386obsd-nat.c: Include "obsd-nat.h".
9536 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9538 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9540 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9542 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9544 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9546 * mips64obsd-nat.c: Include "obsd-nath".
9547 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9549 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9551 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9553 * amd64obsd-nat.c: Include "obsd-nat,h.
9554 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9556 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9558 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9560 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9561 (find_overload_match): Update call to find_oload_champ.
9562 (find_oload_champ_namespace_loop): Likewise
9564 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9566 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9568 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9569 * config/sparc/obsd64.mh: New file.
9570 * sparc64obsd-nat.c: New file.
9572 * obsd-nat.h: New file.
9573 * obsd-nat.c: New file.
9574 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9575 (ALLDEPFILES): Add obsd-nat.c.
9577 2014-02-28 Tom Tromey <tromey@redhat.com>
9579 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9580 * cli-out.h (cli_ui_out_impl): Now const.
9581 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9582 * ui-out.c (struct ui_out) <impl>: Now const.
9583 (default_ui_out_impl): Now const.
9584 (ui_out_new): Make 'impl' parameter const.
9585 * ui-out.h (ui_out_new): Update.
9587 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9589 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9591 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9593 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9595 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9597 Additional PR 8882 fix.
9598 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9600 2014-02-27 Pedro Alves <palves@redhat.com>
9602 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9605 2014-02-27 Pedro Alves <palves@redhat.com>
9608 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9609 * nat/linux-waitpid.c: Include string.h.
9610 (status_to_str): Moved here and made extern.
9611 * nat/linux-waitpid.h (status_to_str): New declaration.
9613 2014-02-27 Hui Zhu <hui@codesourcery.com>
9616 * infrun.c (ptid_match): Move ...
9617 * common/ptid.c (ptid_match): ... here.
9618 * inferior.h (ptid_match): Move ...
9619 * common/ptid.h (ptid_match): ... here.
9621 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9623 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9624 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9627 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9629 * obsd-tdep.c (obsd_auxv_parse): New function.
9630 (obsd_init_abi): Set auxv_parse.
9632 * gdbarch.sh (auxv_parse): New.
9633 * gdbarch.h: Regenerated.
9634 * gdbarch.c: Regenerated.
9635 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9637 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9639 * guile/scm-value.c (gdbscm_history_append_x): New function.
9640 (value_functions): Add it.
9642 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9644 * dwarf2read.c (attr_value_as_address): New function.
9645 (dwarf2_find_base_address, read_call_site_scope): Use
9646 attr_value_as_address in place of DW_ADDR.
9647 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9648 the low and high addresses. Slight rework of the handling
9649 of the high pc being a constant form, and limit it to
9650 DWARF verson 4 or higher.
9651 (dwarf2_record_block_ranges): Likewise.
9652 (read_partial_die): Likewise.
9653 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9655 2014-02-26 Tom Tromey <tromey@redhat.com>
9657 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9659 2014-02-26 Tom Tromey <tromey@redhat.com>
9661 * elfread.c (elf_read_minimal_symbols): Return early if
9662 minimal symbols have already been read. Add "ei" parameter.
9663 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9664 * minsyms.c (prim_record_minimal_symbol_full): Update.
9665 * objfiles.h (struct objstats) <n_minsyms>: Move...
9666 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9667 * symmisc.c (print_objfile_statistics): Update.
9669 2014-02-26 Tom Tromey <tromey@redhat.com>
9671 * elfread.c (elf_read_minimal_symbols): New function, from
9673 (elf_symfile_read): Call it.
9675 2014-02-26 Tom Tromey <tromey@redhat.com>
9677 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9678 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9679 (lookup_minimal_symbol_solib_trampoline)
9680 (lookup_minimal_symbol_by_pc_section_1)
9681 (lookup_minimal_symbol_and_objfile): Update.
9682 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9683 Don't allocate a minimal symbol if minsyms have already been read.
9684 (build_minimal_symbol_hash_tables): Update.
9685 (install_minimal_symbols): Do nothing if minsyms already read.
9686 Use the per-BFD obstack.
9687 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9688 * objfiles.c (allocate_objfile): Call
9689 terminate_minimal_symbol_table later.
9690 (have_minimal_symbols): Update.
9691 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9692 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9693 Move from struct objfile.
9694 <minsyms_read>: New field.
9695 (struct objfile) <msymbols, minimal_symbol_count,
9696 msymbol_hash, msymbol_demangled_hash>: Move.
9697 (ALL_OBJFILE_MSYMBOLS): Update.
9698 * symfile.c (read_symbols): Set minsyms_read.
9699 (reread_symbols): Update.
9700 * symmisc.c (dump_objfile, dump_msymbols): Update.
9702 2014-02-26 Tom Tromey <tromey@redhat.com>
9704 * minsyms.c (msymbols_sort): Remove.
9705 * minsyms.h (msymbols_sort): Remove.
9706 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9707 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9708 * elfread.c (elf_symtab_read): Don't add section offsets.
9709 * xcoffread.c (record_minimal_symbol): Don't add section offset
9710 to minimal symbol address.
9711 * somread.c (text_offset, data_offset): Remove.
9712 (som_symtab_read): Don't add section offsets to minimal symbol
9714 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9715 Don't add section offsets to minimal symbols.
9716 * coffread.c (coff_symtab_read): Don't add section offsets
9717 to minimal symbol addresses.
9718 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9719 to minimal symbol addresses.
9720 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9721 section offset to minimal symbol addresses.
9722 * mdebugread.c (parse_partial_symbols): Don't add section
9723 offset to minimal symbol addresses.
9724 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9725 offset to minimal symbol addresses.
9727 2014-02-26 Tom Tromey <tromey@redhat.com>
9729 * ada-lang.c (ada_main_name): Update.
9730 (ada_add_standard_exceptions): Update.
9731 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9732 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9733 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9734 * auxv.c (ld_so_xfer_auxv): Update.
9735 * avr-tdep.c (avr_scan_prologue): Update.
9736 * ax-gdb.c (gen_var_ref): Update.
9737 * blockframe.c (get_pc_function_start)
9738 (find_pc_partial_function_gnu_ifunc): Update.
9739 * breakpoint.c (create_overlay_event_breakpoint)
9740 (create_longjmp_master_breakpoint)
9741 (create_std_terminate_master_breakpoint)
9742 (create_exception_master_breakpoint): Update.
9743 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9744 * c-valprint.c (c_val_print): Update.
9745 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9746 * common/agent.c (agent_look_up_symbols): Update.
9747 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9748 * dwarf2loc.c (call_site_to_target_addr): Update.
9749 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9750 * elfread.c (elf_gnu_ifunc_record_cache)
9751 (elf_gnu_ifunc_resolve_by_got): Update.
9752 * findvar.c (default_read_var_value): Update.
9753 * frame.c (inside_main_func): Update.
9754 * frv-tdep.c (frv_frame_this_id): Update.
9755 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9756 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9758 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9759 (hppa_hpux_find_dummy_bpaddr): Update.
9760 * hppa-tdep.c (hppa_symbol_address): Update.
9761 * infcmd.c (until_next_command): Update.
9762 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9764 * linespec.c (minsym_found, add_minsym): Update.
9765 * linux-nat.c (get_signo): Update.
9766 * linux-thread-db.c (inferior_has_bug): Update.
9767 * m32c-tdep.c (m32c_return_value)
9768 (m32c_m16c_address_to_pointer): Update.
9769 * m32r-tdep.c (m32r_frame_this_id): Update.
9770 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9771 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9772 * maint.c (maintenance_translate_address): Update.
9773 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9774 (frob_address): New function.
9775 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9776 frob_address. Rename parameter to "pc_in".
9777 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9779 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9781 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9782 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9783 * objc-lang.c (find_objc_msgsend): Update.
9784 * objfiles.c (objfile_relocate1): Update.
9785 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9786 * p-valprint.c (pascal_val_print): Update.
9787 * parse.c (write_exp_msymbol): Update.
9788 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9789 (ppc_elfv2_skip_entrypoint): Update.
9790 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9791 * printcmd.c (build_address_symbolic, msym_info)
9792 (address_info): Update.
9793 * proc-service.c (ps_pglobal_lookup): Update.
9794 * psymtab.c (find_pc_sect_psymtab_closer)
9795 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9796 Change msymbol parameter to bound_minimal_symbol.
9797 * ravenscar-thread.c (get_running_thread_id): Update.
9798 * remote.c (remote_check_symbols): Update.
9799 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9801 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9802 * solib-dsbt.c (lm_base): Update.
9803 * solib-frv.c (lm_base, main_got): Update.
9804 * solib-irix.c (locate_base): Update.
9805 * solib-som.c (som_solib_create_inferior_hook)
9806 (link_map_start): Update.
9807 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9808 * solib-svr4.c (elf_locate_base, enable_break): Update.
9809 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9810 (flush_ea_cache): Update.
9811 * stabsread.c (define_symbol, scan_file_globals): Update.
9812 * stack.c (find_frame_funname): Update.
9813 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9814 (debug_qf_find_pc_sect_symtab): Update.
9815 * symfile.c (simple_read_overlay_table)
9816 (simple_overlay_update): Update.
9817 * symfile.h (struct quick_symbol_functions)
9818 <find_pc_sect_symtab>: Change type of msymbol to
9819 bound_minimal_symbol.
9820 * symmisc.c (dump_msymbols): Update.
9821 * symtab.c (find_pc_sect_symtab_via_partial)
9822 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9823 (search_symbols, print_msymbol_info): Update.
9824 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9825 (MSYMBOL_VALUE_ADDRESS): Redefine.
9826 (BMSYMBOL_VALUE_ADDRESS): New macro.
9827 * tracepoint.c (scope_info): Update.
9828 * tui/tui-disasm.c (tui_find_disassembly_address)
9829 (tui_get_begin_asm_address): Update.
9830 * valops.c (find_function_in_inferior): Update.
9831 * value.c (value_static_field, value_fn_field): Update.
9833 2014-02-26 Tom Tromey <tromey@redhat.com>
9835 * ada-lang.c (ada_update_initial_language): Update.
9836 (ada_main_name, ada_has_this_exception_support): Update.
9837 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9838 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9839 * arm-tdep.c (arm_skip_stub): Update.
9840 * auxv.c (ld_so_xfer_auxv): Update.
9841 * avr-tdep.c (avr_scan_prologue): Update.
9842 * ax-gdb.c (gen_var_ref): Update.
9843 * breakpoint.c (struct breakpoint_objfile_data)
9844 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9845 type to bound_minimal_symbol.
9846 (create_overlay_event_breakpoint)
9847 (create_longjmp_master_breakpoint)
9848 (create_std_terminate_master_breakpoint)
9849 (create_exception_master_breakpoint): Update.
9850 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9851 * c-exp.y (classify_name): Update.
9852 * coffread.c (coff_symfile_read): Update.
9853 * common/agent.c (agent_look_up_symbols): Update.
9854 * d-lang.c (d_main_name): Update.
9855 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9856 * dec-thread.c (enable_dec_thread): Update.
9857 * dwarf2loc.c (call_site_to_target_addr): Update.
9858 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9859 * eval.c (evaluate_subexp_standard): Update.
9860 * findvar.c (struct minsym_lookup_data) <result>: Change type
9861 to bound_minimal_symbol.
9863 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9864 * frame.c (inside_main_func): Update.
9865 * frv-tdep.c (frv_frame_this_id): Update.
9866 * gcore.c (call_target_sbrk): Update.
9867 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9868 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9870 * go-lang.c (go_main_name): Update.
9871 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9872 (hppa_hpux_find_import_stub_for_addr): Update.
9873 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9874 Update. Change return type.
9875 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9877 * jit.c (jit_breakpoint_re_set_internal): Update.
9878 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9880 * linux-nat.c (get_signo): Update.
9881 * linux-thread-db.c (inferior_has_bug): Update
9882 * m32c-tdep.c (m32c_return_value)
9883 (m32c_m16c_address_to_pointer): Update.
9884 * m32r-tdep.c (m32r_frame_this_id): Update.
9885 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9886 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9887 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9888 lookup_minimal_symbol. Change return type.
9889 (lookup_minimal_symbol): Remove.
9890 (lookup_bound_minimal_symbol): Update.
9891 (lookup_minimal_symbol_text): Change return type.
9892 (lookup_minimal_symbol_solib_trampoline): Change return type.
9893 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9894 (lookup_minimal_symbol_solib_trampoline): Change return type.
9895 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9896 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9897 (value_nsstring, find_imps): Update.
9898 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9899 * p-lang.c (pascal_main_name): Update.
9900 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9901 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9902 * proc-service.c (ps_pglobal_lookup): Update.
9903 * ravenscar-thread.c (get_running_thread_msymbol): Change
9905 (has_ravenscar_runtime, get_running_thread_id): Update.
9906 * remote.c (remote_check_symbols): Update.
9907 * sol-thread.c (ps_pglobal_lookup): Update.
9908 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9909 * solib-dsbt.c (lm_base): Update.
9910 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9912 * solib-irix.c (locate_base): Update.
9913 * solib-som.c (som_solib_create_inferior_hook)
9914 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9916 * solib-spu.c (spu_enable_break): Update.
9917 * solib-svr4.c (elf_locate_base, enable_break): Update.
9918 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9919 (flush_ea_cache): Update.
9920 * stabsread.c (define_symbol): Update.
9921 * symfile.c (simple_read_overlay_table): Update.
9922 * symtab.c (find_pc_sect_line): Update.
9923 * tracepoint.c (scope_info): Update.
9924 * tui-disasm.c (tui_get_begin_asm_address): Update.
9925 * value.c (value_static_field): Update.
9927 2014-02-26 Tom Tromey <tromey@redhat.com>
9929 * minsyms.c (prim_record_minimal_symbol_full): Use
9930 SET_MSYMBOL_VALUE_ADDRESS.
9931 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9932 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9933 SET_MSYMBOL_VALUE_ADDRESS.
9934 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9935 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9937 2014-02-26 Tom Tromey <tromey@redhat.com>
9939 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9940 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9941 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9942 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9943 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9944 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9945 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9946 * ada-lang.c (ada_main_name): Update.
9947 (ada_lookup_simple_minsym): Update.
9948 (ada_make_symbol_completion_list): Update.
9949 (ada_add_standard_exceptions): Update.
9950 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9951 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9952 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9953 * arm-tdep.c (skip_prologue_function): Update.
9954 (arm_skip_stack_protector, arm_skip_stub): Update.
9955 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9956 (arm_wince_skip_main_prologue): Update.
9957 * auxv.c (ld_so_xfer_auxv): Update.
9958 * avr-tdep.c (avr_scan_prologue): Update.
9959 * ax-gdb.c (gen_var_ref): Update.
9960 * block.c (call_site_for_pc): Update.
9961 * blockframe.c (get_pc_function_start): Update.
9962 (find_pc_partial_function_gnu_ifunc): Update.
9963 * breakpoint.c (create_overlay_event_breakpoint): Update.
9964 (create_longjmp_master_breakpoint): Update.
9965 (create_std_terminate_master_breakpoint): Update.
9966 (create_exception_master_breakpoint): Update.
9967 (resolve_sal_pc): Update.
9968 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9969 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9971 * c-valprint.c (c_val_print): Update.
9972 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9973 * coffread.c (coff_symfile_read): Update.
9974 * common/agent.c (agent_look_up_symbols): Update.
9975 * dbxread.c (find_stab_function_addr): Update.
9976 (end_psymtab): Update.
9977 * dwarf2loc.c (call_site_to_target_addr): Update.
9978 (func_verify_no_selftailcall): Update.
9979 (tailcall_dump): Update.
9980 (call_site_find_chain_1): Update.
9981 (dwarf_expr_reg_to_entry_parameter): Update.
9982 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9983 (elf_gnu_ifunc_resolve_by_got): Update.
9984 * f-valprint.c (info_common_command): Update.
9985 * findvar.c (read_var_value): Update.
9986 * frame.c (get_prev_frame_1): Update.
9987 (inside_main_func): Update.
9988 * frv-tdep.c (frv_skip_main_prologue): Update.
9989 (frv_frame_this_id): Update.
9990 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9991 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9992 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9993 (gnuv3_skip_trampoline): Update.
9994 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9995 (hppa64_hpux_in_solib_call_trampoline): Update.
9996 (hppa_hpux_skip_trampoline_code): Update.
9997 (hppa64_hpux_search_dummy_call_sequence): Update.
9998 (hppa_hpux_find_import_stub_for_addr): Update.
9999 (hppa_hpux_find_dummy_bpaddr): Update.
10000 * hppa-tdep.c (hppa_symbol_address)
10001 (hppa_lookup_stub_minimal_symbol): Update.
10002 * i386-tdep.c (i386_skip_main_prologue): Update.
10003 (i386_pe_skip_trampoline_code): Update.
10004 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10005 * infcall.c (get_function_name): Update.
10006 * infcmd.c (until_next_command): Update.
10007 * jit.c (jit_breakpoint_re_set_internal): Update.
10008 (jit_inferior_init): Update.
10009 * linespec.c (minsym_found): Update.
10010 (add_minsym): Update.
10011 * linux-fork.c (info_checkpoints_command): Update.
10012 * linux-nat.c (get_signo): Update.
10013 * linux-thread-db.c (inferior_has_bug): Update.
10014 * m32c-tdep.c (m32c_return_value): Update.
10015 (m32c_m16c_address_to_pointer): Update.
10016 (m32c_m16c_pointer_to_address): Update.
10017 * m32r-tdep.c (m32r_frame_this_id): Update.
10018 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10019 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10020 * maint.c (maintenance_translate_address): Update.
10021 * minsyms.c (add_minsym_to_hash_table): Update.
10022 (add_minsym_to_demangled_hash_table): Update.
10023 (msymbol_objfile): Update.
10024 (lookup_minimal_symbol): Update.
10025 (iterate_over_minimal_symbols): Update.
10026 (lookup_minimal_symbol_text): Update.
10027 (lookup_minimal_symbol_by_pc_name): Update.
10028 (lookup_minimal_symbol_solib_trampoline): Update.
10029 (lookup_minimal_symbol_by_pc_section_1): Update.
10030 (lookup_minimal_symbol_and_objfile): Update.
10031 (prim_record_minimal_symbol_full): Update.
10032 (compare_minimal_symbols): Update.
10033 (compact_minimal_symbols): Update.
10034 (build_minimal_symbol_hash_tables): Update.
10035 (install_minimal_symbols): Update.
10036 (terminate_minimal_symbol_table): Update.
10037 (find_solib_trampoline_target): Update.
10038 (minimal_symbol_upper_bound): Update.
10039 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10040 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10041 (mips_skip_pic_trampoline_code): Update.
10042 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10043 * objc-lang.c (selectors_info): Update.
10044 (classes_info): Update.
10045 (find_methods): Update.
10046 (find_imps): Update.
10047 (find_objc_msgsend): Update.
10048 * objfiles.c (objfile_relocate1): Update.
10049 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10050 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10051 * p-valprint.c (pascal_val_print): Update.
10052 * parse.c (write_exp_msymbol): Update.
10053 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10054 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10055 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10056 * printcmd.c (build_address_symbolic): Update.
10057 (sym_info): Update.
10058 (address_info): Update.
10059 * proc-service.c (ps_pglobal_lookup): Update.
10060 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10061 (find_pc_sect_psymtab): Update.
10062 * python/py-framefilter.c (py_print_frame): Update.
10063 * ravenscar-thread.c (get_running_thread_id): Update.
10064 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10066 * remote.c (remote_check_symbols): Update.
10067 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10068 (rs6000_skip_trampoline_code): Update.
10069 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10070 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10071 * solib-dsbt.c (lm_base): Update.
10072 * solib-frv.c (lm_base): Update.
10073 (main_got): Update.
10074 * solib-irix.c (locate_base): Update.
10075 * solib-som.c (som_solib_create_inferior_hook): Update.
10076 (som_solib_desire_dynamic_linker_symbols): Update.
10077 (link_map_start): Update.
10078 * solib-spu.c (spu_enable_break): Update.
10079 (ocl_enable_break): Update.
10080 * solib-svr4.c (elf_locate_base): Update.
10081 (enable_break): Update.
10082 * spu-tdep.c (spu_get_overlay_table): Update.
10083 (spu_catch_start): Update.
10084 (flush_ea_cache): Update.
10085 * stabsread.c (define_symbol): Update.
10086 (scan_file_globals): Update.
10087 * stack.c (find_frame_funname): Update.
10088 (frame_info): Update.
10089 * symfile.c (simple_read_overlay_table): Update.
10090 (simple_overlay_update): Update.
10091 * symmisc.c (dump_msymbols): Update.
10092 * symtab.c (fixup_section): Update.
10093 (find_pc_sect_line): Update.
10094 (skip_prologue_sal): Update.
10095 (search_symbols): Update.
10096 (print_msymbol_info): Update.
10097 (rbreak_command): Update.
10098 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10099 (completion_list_objc_symbol): Update.
10100 (default_make_symbol_completion_list_break_on): Update.
10101 * tracepoint.c (scope_info): Update.
10102 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10103 (tui_get_begin_asm_address): Update.
10104 * valops.c (find_function_in_inferior): Update.
10105 * value.c (value_static_field): Update.
10106 (value_fn_field): Update.
10108 2014-02-26 Tom Tromey <tromey@redhat.com>
10110 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10111 bound minimal symbols. Move code that knows about minsym
10113 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10115 * minsyms.h (minimal_symbol_upper_bound): Declare.
10116 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10117 minimal_symbol_upper_bound.
10119 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10121 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10122 Use the type's name if its basic type does not have a tag.
10124 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10126 * dwarf2read.c (read_subrange_type): Add comment.
10128 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10130 * dwarf2read.c (update_enumeration_type_from_children): New
10131 function, mostly extracted from process_structure_scope.
10132 (read_enumeration_type): Call update_enumeration_type_from_children.
10133 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10134 and flag_flag_enum fields.
10136 2014-02-26 Pedro Alves <palves@redhat.com>
10138 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10139 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10140 to_xfer_partial method.
10142 2014-02-26 Pedro Alves <palves@redhat.com>
10144 * target.c (complete_target_initialization): Don't install
10145 default_xfer_partial as to_xfer_partial hook.
10146 (nomemory): Delete.
10147 (update_current_target): Don't INHERIT nor de_fault
10148 deprecated_xfer_memory. Delete de_fault macro.
10149 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10150 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10151 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10154 2014-02-26 Pedro Alves <palves@redhat.com>
10156 * go32-nat.c (my_write_child): New function.
10157 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10158 (go32_xfer_partial): New function.
10159 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10160 Instead install a to_xfer_partial hook.
10162 2014-02-26 Pedro Alves <palves@redhat.com>
10164 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10165 to_xfer_partial helper. Rewrite.
10166 (procfs_xfer_partial): New function.
10167 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10168 Install a to_xfer_partial hook.
10170 2014-02-26 Pedro Alves <palves@redhat.com>
10172 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10173 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10174 (m32r_xfer_partial): New function.
10175 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10176 Install a to_xfer_partial hook.
10178 2014-02-26 Pedro Alves <palves@redhat.com>
10180 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10182 (mips_xfer_partial): New function.
10183 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10184 hook. Install a to_xfer_partial hook.
10186 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10188 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10189 * gdbtypes.c (create_array_type_with_stride): New function,
10190 renaming create_array_type, but with an added parameter
10191 called "bit_stride".
10192 (create_array_type): Re-implement using
10193 create_array_type_with_stride.
10194 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10195 and DW_AT_bit_stride attributes.
10197 2014-02-26 Pedro Alves <palves@redhat.com>
10199 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10200 task-specific breakpoints.
10202 2014-02-25 Pedro Alves <palves@redhat.com>
10204 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10205 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10207 2014-02-25 Stan Shebs <stan@codesourcery.com>
10209 * defs.h: Annotate comments for Doxygen.
10211 2014-02-25 Tom Tromey <tromey@redhat.com>
10213 * target.h (target_ignore): Don't declare.
10214 * target.c (target_ignore): Remove.
10216 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 * auto-load.c (auto_load_objfile_script_1): Change filename to
10222 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10224 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10225 documentation. Adjust prototype to match the target_ops
10226 to_xfer_partial method. Adjust implementation accordingly.
10228 2014-02-25 Hui Zhu <hui@codesourcery.com>
10230 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10231 to_traceframe_info.
10233 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10235 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10236 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10237 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10238 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10239 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10240 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10241 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10242 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10244 (rl78_register_type): Use a data pointer type for SP and
10245 new pseudo registers mentioned above. Use a 16 bit integer
10246 type for all other register pairs.
10247 (rl78_register_name, rl78_g10_register_name): Update for
10248 new pseudo registers.
10249 (rl78_pseudo_register_read): Likewise.
10250 (rl78_pseudo_register_write): Likewise.
10251 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10252 to the newly added pseudo registers.
10254 2014-02-24 Doug Evans <dje@google.com>
10256 * value.c (record_latest_value): Fix comment.
10257 * printcmd.c (print_command_1): Remove code to handle -1 return from
10258 record_latest_value.
10260 2014-02-24 Pedro Alves <palves@redhat.com>
10262 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10263 deprecated_xfer_memory hook.
10264 (procfs_xfer_partial): Call procfs_xfer_memory instead
10265 of the deprecated_xfer_memory target hook.
10266 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10269 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10271 * windows-nat.c (windows_xfer_shared_libraries): Return
10272 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10273 requested object is TARGET_OBJECT_LIBRARIES.
10275 2014-02-24 Yao Qi <yao@codesourcery.com>
10277 * target.h (enum target_xfer_status)
10278 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10279 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10281 * corefile.c (memory_error_message): User updated.
10282 * exec.c (section_table_read_available_memory): Likewise.
10283 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10284 * target.c (target_xfer_status_to_string): Likewise.
10285 (raw_memory_xfer_partial): Likewise.
10286 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10287 * valops.c (read_value_memory): Likewise.
10288 * exec.h: Update comments.
10290 2014-02-24 Yao Qi <yao@codesourcery.com>
10292 * target.c (target_xfer_status_to_string): Rename argument err
10294 * target.h (target_xfer_status_to_string): Update declaration.
10295 Replace target_xfer_error_to_string with
10296 target_xfer_status_to_string in comment.
10298 2014-02-24 Yao Qi <yao@codesourcery.com>
10300 * mips-linux-nat.c (super_close): Update its type.
10301 (mips_linux_close): Pass 'self' to super_close.
10303 2014-02-24 Yao Qi <yao@codesourcery.com>
10305 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10306 * corefile.c (read_memory): Adjusted.
10307 * target.c (target_write_with_progress): Adjusted.
10309 2014-02-23 Yao Qi <yao@codesourcery.com>
10311 Revert two patches:
10313 2013-10-25 Yao Qi <yao@codesourcery.com>
10315 * remote.c (remote_traceframe_info): Return early if
10316 traceframe is not selected.
10318 2013-07-19 Yao Qi <yao@codesourcery.com>
10320 * target.c (update_current_target): Change the default action
10321 of 'to_traceframe_info' from tcomplain to return_zero.
10322 * target.h (struct target_ops) <to_traceframe_info>: Add more
10325 2014-02-23 Yao Qi <yao@codesourcery.com>
10327 * valops.c (read_value_memory): Rewrite it. Call
10328 target_xfer_partial in a loop.
10329 * exec.h (section_table_available_memory): Remove declaration.
10330 Move comments to ...
10331 * exec.c (section_table_available_memory): ... here. Make it
10334 2014-02-23 Yao Qi <yao@codesourcery.com>
10336 * exec.c (section_table_read_available_memory): New function.
10337 * exec.h (section_table_read_available_memory): Declare.
10338 * ctf.c (ctf_xfer_partial): Call
10339 section_table_read_available_memory.
10340 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10342 2014-02-23 Yao Qi <yao@codesourcery.com>
10344 * ctf.c (ctf_xfer_partial): Move code to ...
10345 * exec.c (exec_read_partial_read_only): ... it. New function.
10346 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10347 * tracefile.c: Include "exec.h".
10348 * exec.h (exec_read_partial_read_only): Declare.
10350 2014-02-23 Yao Qi <yao@codesourcery.com>
10352 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10353 (tfile_has_memory): Remove.
10354 (init_tfile_ops): Don't set fields to_has_all_memory and
10355 to_has_memory of tfile_ops.
10356 * tracefile.c (tracefile_has_all_memory): New function.
10357 (tracefile_has_memory): New function.
10358 (init_tracefile_ops): Initialize fields to_has_all_memory and
10359 to_has_memory of 'ops'.
10361 2014-02-23 Yao Qi <yao@codesourcery.com>
10363 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10364 (ctf_thread_alive, ctf_get_trace_status): Remove.
10365 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10366 init_tracefile_ops.
10367 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10368 (tfile_has_stack, tfile_has_registers): Remove.
10369 (tfile_thread_alive): Remove.
10370 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10371 init_tracefile_ops.
10372 * tracefile.c (tracefile_has_stack): New function.
10373 (tracefile_has_registers): New function.
10374 (tracefile_thread_alive): New function.
10375 (tracefile_get_trace_status): New function.
10376 (init_tracefile_ops): New function.
10377 * tracefile.h (init_tracefile_ops): Declare.
10379 2014-02-23 Yao Qi <yao@codesourcery.com>
10381 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10382 (O_LARGEFILE): Likewise.
10383 (tfile_ops): Likewise.
10384 (TRACE_HEADER_SIZE): Likewise.
10385 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10386 (cur_data_size): Likewise.
10387 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10388 (tfile_close, tfile_files_info): Likewise.
10389 (tfile_get_trace_status): Likewise.
10390 (tfile_get_tracepoint_status): Likewise.
10391 (tfile_get_traceframe_address): Likewise.
10392 (tfile_trace_find, match_blocktype): Likewise.
10393 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10394 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10395 (tfile_get_trace_state_variable_value): Likewise.
10396 (tfile_has_all_memory, tfile_has_memory): Likewise.
10397 (tfile_has_stack, tfile_has_registers): Likewise.
10398 (tfile_thread_alive, build_traceframe_info): Likewise.
10399 (tfile_traceframe_info, init_tfile_ops): Likewise.
10400 (_initialize_tracepoint): Don't call init_tfile_ops
10401 and add_target_with_completer.
10402 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10403 exec.h, completer.h and filenames.h.
10404 (_initialize_tracefile_tfile): New function.
10406 2014-02-23 Yao Qi <yao@codesourcery.com>
10408 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10410 (HFILES_NO_SRCDIR): Add tracefile.h.
10411 * ctf.c: Include "tracefile.h".
10412 * tracefile.h: New file.
10413 * tracefile.c: New file
10414 * tracefile-tfile.c: New file.
10415 * tracepoint.c: Include "tracefile.h".
10416 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10417 (stop_reason_names): Add const.
10418 (trace_file_writer_xfree): Move it to tracefile.c.
10419 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10420 (trace_save_ctf): Likewise.
10421 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10422 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10423 (tfile_write_header, tfile_write_regblock_type): Likewise.
10424 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10425 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10426 (tfile_write_raw_data, tfile_end): Likewise.
10427 (tfile_trace_file_writer_new): Likewise.
10428 (free_uploaded_tp): Make it extern.
10429 (free_uploaded_tsv): Make it extern.
10430 (_initialize_tracepoint): Move code to register command 'tsave'
10432 * tracepoint.h (stop_reason_names): Declare.
10433 (struct trace_frame_write_ops): Move it to tracefile.h.
10434 (struct trace_file_write_ops): Likewise.
10435 (struct trace_file_writer): Likewise.
10436 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10438 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10441 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10443 (get_cores_used_by_process): New parameter num_cores, use it.
10444 (linux_xfer_osdata_processes): Pass num_cores to it.
10445 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10448 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10450 * target.c (memory_xfer_partial): Fix length arg in call to
10451 breakpoint_xfer_memory.
10453 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10456 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10457 number comes after the + or - signs. Adjust length of register
10458 name to be extracted.
10460 2014-02-20 Tom Tromey <tromey@redhat.com>
10462 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10463 (ada_varobj_ops): Mark "extern".
10465 2014-02-20 Tom Tromey <tromey@redhat.com>
10467 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10469 2014-02-20 Doug Evans <xdje42@gmail.com>
10471 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10472 All callers updated.
10473 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10474 All callers updated.
10475 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10476 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10478 2014-02-20 lin zuojian <manjian2006@gmail.com>
10479 Joel Brobecker <brobecker@adacore.com>
10480 Doug Evans <xdje42@gmail.com>
10483 * dwarf2read.c (struct die_info): New member in_process.
10484 (reset_die_in_process): New function.
10485 (process_die): Set it at the start, reset when returning.
10486 (inherit_abstract_dies): Only call process_die if origin_child_die
10487 not already being processed.
10489 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10491 * windows-nat.c (handle_unload_dll): Add function documentation.
10492 (do_initial_windows_stuff): Add comment explaining why we wait
10493 until after inferior initialization has finished before
10494 processing all DLLs.
10496 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10498 * windows-nat.c (get_module_name): Delete.
10499 (windows_get_exec_module_filename): New function, mostly
10500 inspired from get_module_name.
10501 (windows_pid_to_exec_file): Replace call to get_module_name
10502 by call to windows_get_exec_module_filename.
10504 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10506 * windows-nat.c (handle_load_dll): Rewrite this function's
10507 introductory comment. Remove code using get_module_name
10508 to get the DLL's name.
10510 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10512 * windows-nat.c (get_windows_debug_event): Ignore
10513 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10514 if windows_initialization_done == 0.
10515 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10516 Adjust implementation to always load all DLLs.
10517 (do_initial_windows_stuff): Replace call to
10518 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10520 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10522 * windows-nat.c (_initialize_windows_nat): Deprecate the
10523 "dll-symbols" command. Turn the "add-shared-symbol-files"
10524 and "assf" aliases into commands, and deprecate them as well.
10525 * NEWS: Add entry explaining that "dll-symbols" and its two
10526 aliases are now deprecated.
10528 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10530 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10531 new-line in debug string. Remove trailing spaces.
10533 2014-02-19 Stan Shebs <stan@codesourcery.com>
10535 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10537 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10539 * NEWS: Add entry for the new feature
10540 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10543 2014-02-19 Stan Shebs <stan@codesourcery.com>
10545 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10547 2014-02-19 Pedro Alves <palves@redhat.com>
10549 * common/ptid.h (struct ptid): Mention that process_stratum
10550 targets should prefer ptid.lwp.
10552 2014-02-19 Pedro Alves <palves@redhat.com>
10554 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10555 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10556 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10557 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10558 store remote thread ids rather than ptid.tid.
10559 (_initialize_remote): Adjust.
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target.c (target_get_unwinder): Rewrite.
10564 (target_get_tailcall_unwinder): Rewrite.
10565 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10566 (record_btrace_to_get_tailcall_unwinder): New function.
10567 (init_record_btrace_ops): Update.
10568 * target.h (struct target_ops) <to_get_unwinder,
10569 to_get_tailcall_unwinder>: Now function pointers. Use
10570 TARGET_DEFAULT_RETURN.
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10574 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10576 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10580 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10582 * target-delegates.c: Rebuild.
10583 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10584 TARGET_DEFAULT_FUNC.
10585 * target.c (default_target_decr_pc_after_break): Rename from
10586 forward_target_decr_pc_after_break. Simplify.
10587 (target_decr_pc_after_break): Rely on delegation.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target.c (update_current_target): Do not INHERIT to_doc or
10592 to_magic. Do not de_fault to_open or to_close.
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10596 * gcore.h (objfile_find_memory_regions): Declare.
10597 * gcore.c (objfile_find_memory_regions): No longer static. Add
10599 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10600 * exec.c: Include gcore.h.
10601 (exec_set_find_memory_regions): Remove.
10602 (exec_find_memory_regions): Remove.
10603 (exec_do_find_memory_regions): Remove.
10604 (init_exec_ops): Update.
10605 * defs.h (exec_set_find_memory_regions): Remove.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target-delegates.c: Rebuild.
10610 * target.h (struct target_ops) <to_extra_thread_info,
10611 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10612 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10613 not 0, in TARGET_DEFAULT_RETURN.
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target.c (complete_target_initialization): Remove casts. Use
10618 return_zero_has_execution.
10619 (return_zero): Add "ignore" argument.
10620 (return_zero_has_execution): New function.
10621 (init_dummy_target): Remove casts. Use
10622 return_zero_has_execution.
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10626 * target.c (update_current_target): Update comments. Do not
10627 INHERIT to_stratum.
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10633 * corelow.c (core_read_description): Delegate when needed.
10634 * remote.c (remote_read_description): Delegate when needed.
10635 * target-delegates.c: Rebuild.
10636 * target.c (target_read_description): Rewrite.
10637 * target.h (struct target_ops) <to_read_description>: Update
10638 comment. Use TARGET_DEFAULT_RETURN.
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10645 (find_default_run_target): Check against delegate_can_run.
10646 * target.h (struct target_ops) <to_can_run>: Use
10647 TARGET_DEFAULT_RETURN.
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10651 * target-delegates.c: Rebuild.
10652 * target.c (target_disconnect): Unconditionally delegate.
10653 * target.h (struct target_ops) <to_disconnect>: Use
10654 TARGET_DEFAULT_NORETURN.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * record.c (record_stop): Unconditionally delegate.
10659 * target-delegates.c: Rebuild.
10660 * target.c (target_stop_recording): Unconditionally delegate.
10661 * target.h (struct target_ops) <to_stop_recording>: Use
10662 TARGET_DEFAULT_IGNORE.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (target_enable_btrace): Unconditionally delegate.
10668 * target.h (struct target_ops) <to_enable_btrace>: Use
10669 TARGET_DEFAULT_NORETURN.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target-delegates.c: Rebuild.
10674 * target.c (target_read_btrace): Unconditionally delegate.
10675 * target.h (struct target_ops) <to_read_btrace>: Use
10676 TARGET_DEFAULT_NORETURN.
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10680 * target-delegates.c: Rebuild.
10681 * target.c (target_teardown_btrace): Unconditionally delegate.
10682 * target.h (struct target_ops) <to_teardown_btrace>: Use
10683 TARGET_DEFAULT_NORETURN.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target-delegates.c: Rebuild.
10688 * target.c (target_disable_btrace): Unconditionally delegate.
10689 * target.h (struct target_ops) <to_disable_btrace>: Use
10690 TARGET_DEFAULT_NORETURN.
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10694 * target-delegates.c: Rebuild.
10695 * target.c (default_search_memory): New function.
10696 (simple_search_memory): Update comment.
10697 (target_search_memory): Unconditionally delegate.
10698 * target.h (struct target_ops) <to_search_memory>: Use
10699 TARGET_DEFAULT_FUNC.
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * auxv.c (default_auxv_parse): No longer static.
10704 (target_auxv_parse): Unconditionally delegate.
10705 * auxv.h (default_auxv_parse): Declare.
10706 * target-delegates.c: Rebuild.
10707 * target.c: Include auxv.h.
10708 * target.h (struct target_ops) <to_auxv_parse>: Use
10709 TARGET_DEFAULT_FUNC.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target-delegates.c: Rebuild.
10714 * target.c (target_memory_map): Unconditionally delegate.
10715 * target.h (struct target_ops) <to_memory_map>: Use
10716 TARGET_DEFAULT_RETURN.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target-delegates.c: Rebuild.
10721 * target.c (target_thread_alive): Unconditionally delegate.
10722 * target.h (struct target_ops) <to_thread_alive>: Use
10723 TARGET_DEFAULT_RETURN.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target-delegates.c: Rebuild.
10728 * target.c (target_save_record): Unconditionally delegate.
10729 * target.h (struct target_ops) <to_save_record>: Use
10730 TARGET_DEFAULT_NORETURN.
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * target-delegates.c: Rebuild.
10735 * target.c (target_delete_record): Unconditionally delegate.
10736 * target.h (struct target_ops) <to_delete_record>: Use
10737 TARGET_DEFAULT_NORETURN.
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * target-delegates.c: Rebuild.
10742 * target.c (target_record_is_replaying): Unconditionally
10744 * target.h (struct target_ops) <to_record_is_replaying>: Use
10745 TARGET_DEFAULT_RETURN.
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10749 * target-delegates.c: Rebuild.
10750 * target.c (target_goto_record_begin): Unconditionally delegate.
10751 * target.h (struct target_ops) <to_goto_record_begin>: Use
10752 TARGET_DEFAULT_NORETURN.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target-delegates.c: Rebuild.
10757 * target.c (target_goto_record_end): Unconditionally delegate.
10758 * target.h (struct target_ops) <to_goto_record_end>: Use
10759 TARGET_DEFAULT_NORETURN.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (target_goto_record): Unconditionally delegate.
10765 * target.h (struct target_ops) <to_goto_record>: Use
10766 TARGET_DEFAULT_NORETURN.
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10770 * target-delegates.c: Rebuild.
10771 * target.c (target_insn_history): Unconditionally delegate.
10772 * target.h (struct target_ops) <to_insn_history>: Use
10773 TARGET_DEFAULT_NORETURN.
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target-delegates.c: Rebuild.
10778 * target.c (target_insn_history_from): Unconditionally delegate.
10779 * target.h (struct target_ops) <to_insn_history_from>: Use
10780 TARGET_DEFAULT_NORETURN.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * target-delegates.c: Rebuild.
10785 * target.c (target_insn_history_range): Unconditionally delegate.
10786 * target.h (struct target_ops) <to_insn_history_range>: Use
10787 TARGET_DEFAULT_NORETURN.
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10791 * target-delegates.c: Rebuild.
10792 * target.c (target_call_history): Unconditionally delegate.
10793 * target.h (struct target_ops) <to_call_history>: Use
10794 TARGET_DEFAULT_NORETURN.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target-delegates.c: Rebuild.
10799 * target.c (target_call_history_from): Unconditionally delegate.
10800 * target.h (struct target_ops) <to_call_history_from>: Use
10801 TARGET_DEFAULT_NORETURN.
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target-delegates.c: Rebuild.
10806 * target.c (target_call_history_range): Unconditionally delegate.
10807 * target.h (struct target_ops) <to_call_history_range>: Use
10808 TARGET_DEFAULT_NORETURN.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target-delegates.c: Rebuild.
10813 * target.c (target_verify_memory): Unconditionally delegate.
10814 * target.h (struct target_ops) <to_verify_memory>: Use
10815 TARGET_DEFAULT_NORETURN.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (target_core_of_thread): Unconditionally delegate.
10821 * target.h (struct target_ops) <to_core_of_thread>: Use
10822 TARGET_DEFAULT_RETURN.
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: Rebuild.
10827 * target.c (target_flash_done): Unconditionally delegate.
10828 * target.h (struct target_ops) <to_flash_done>: Use
10829 TARGET_DEFAULT_NORETURN.
10831 2014-02-19 Tom Tromey <tromey@redhat.com>
10833 * target-delegates.c: Rebuild.
10834 * target.c (target_flash_erase): Unconditionally delegate.
10835 * target.h (struct target_ops) <to_flash_erase>: Use
10836 TARGET_DEFAULT_NORETURN.
10838 2014-02-19 Tom Tromey <tromey@redhat.com>
10840 * target-delegates.c: Rebuild.
10841 * target.c (target_get_section_table): Unconditionally delegate.
10842 * target.h (struct target_ops) <to_get_section_table>: Use
10843 TARGET_DEFAULT_RETURN.
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10847 * target-delegates.c: Rebuild.
10848 * target.c (target_pid_to_str): Unconditionally delegate.
10849 (init_dummy_target): Don't initialize to_pid_to_str.
10850 (default_pid_to_str): Rename from dummy_pid_to_str.
10851 * target.h (struct target_ops) <to_pid_to_str>: Use
10852 TARGET_DEFAULT_FUNC.
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_find_new_threads): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_find_new_threads>: Use
10859 TARGET_DEFAULT_RETURN.
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * target-delegates.c: Rebuild.
10864 * target.c (target_program_signals): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_program_signals>: Use
10866 TARGET_DEFAULT_IGNORE.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target-delegates.c: Rebuild.
10871 * target.c (target_pass_signals): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_pass_signals>: Use
10873 TARGET_DEFAULT_IGNORE.
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target-delegates.c: Rebuild.
10878 * target.c (default_mourn_inferior): New function.
10879 (target_mourn_inferior): Unconditionally delegate.
10880 * target.h (struct target_ops) <to_mourn_inferior>: Use
10881 TARGET_DEFAULT_FUNC.
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10885 * target-delegates.c: Rebuild.
10886 * target.c (default_follow_fork): New function.
10887 (target_follow_fork): Unconditionally delegate.
10888 * target.h (struct target_ops) <to_follow_fork>: Use
10889 TARGET_DEFAULT_FUNC.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target-delegates.c: Rebuild.
10894 * target.c (target_kill): Unconditionally delegate.
10895 * target.h (struct target_ops) <to_kill>: Use
10896 TARGET_DEFAULT_NORETURN.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (target_masked_watch_num_registers): Unconditionally
10903 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10904 Use TARGET_DEFAULT_RETURN.
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10908 * target-delegates.c: Rebuild.
10909 * target.c (target_remove_mask_watchpoint): Unconditionally
10911 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10912 TARGET_DEFAULT_RETURN.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (target_insert_mask_watchpoint): Unconditionally
10919 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10920 TARGET_DEFAULT_RETURN.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target-delegates.c: Rebuild.
10925 * target.c (target_ranged_break_num_registers): Unconditionally
10927 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10928 Use TARGET_DEFAULT_RETURN.
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10932 * target-delegates.c: Rebuild.
10933 * target.c (target_fetch_registers): Unconditionally delegate.
10934 * target.h (struct target_ops) <to_fetch_registers>: Use
10935 TARGET_DEFAULT_NORETURN.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target-delegates.c: Rebuild.
10940 * target.c (update_current_target): Don't inherit or default
10942 * target.h (struct target_ops) <to_stop>: Use
10943 TARGET_DEFAULT_IGNORE.
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target-delegates.c: Rebuild.
10948 * target.c (update_current_target): Don't inherit or default
10949 to_can_run_breakpoint_commands.
10950 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10951 Use TARGET_DEFAULT_RETURN.
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10955 * target-delegates.c: Rebuild.
10956 * target.c (update_current_target): Don't inherit or default
10957 to_supports_evaluation_of_breakpoint_conditions.
10958 * target.h (struct target_ops)
10959 <to_supports_evaluation_of_breakpoint_conditions>: Use
10960 TARGET_DEFAULT_RETURN.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_augmented_libraries_svr4_read.
10967 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10968 Use TARGET_DEFAULT_RETURN.
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10975 * target.h (struct target_ops) <to_can_use_agent>: Use
10976 TARGET_DEFAULT_RETURN.
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10980 * target-delegates.c: Rebuild.
10981 * target.c (update_current_target): Don't inherit or default
10983 * target.h (struct target_ops) <to_use_agent>: 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_traceframe_info.
10991 (return_null): Remove.
10992 * target.h (struct target_ops) <to_traceframe_info>: Use
10993 TARGET_DEFAULT_RETURN.
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10997 * target-delegates.c: Rebuild.
10998 * target.c (update_current_target): Don't inherit or default
10999 to_static_tracepoint_markers_by_strid.
11000 * target.h (struct target_ops)
11001 <to_static_tracepoint_markers_by_strid>: Use
11002 TARGET_DEFAULT_NORETURN.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target-delegates.c: Rebuild.
11007 * target.c (update_current_target): Don't inherit or default
11008 to_static_tracepoint_marker_at.
11009 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11010 Use TARGET_DEFAULT_RETURN.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target-delegates.c: Rebuild.
11015 * target.c (update_current_target): Don't inherit or default
11016 to_set_permissions.
11017 * target.h (struct target_ops) <to_set_permissions>: Use
11018 TARGET_DEFAULT_IGNORE.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target-delegates.c: Rebuild.
11023 * target.c (update_current_target): Don't inherit or default
11024 to_get_tib_address.
11025 * target.h (struct target_ops) <to_get_tib_address>: Use
11026 TARGET_DEFAULT_NORETURN.
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11030 * target-delegates.c: Rebuild.
11031 * target.c (update_current_target): Don't inherit or default
11032 to_set_trace_notes.
11033 * target.h (struct target_ops) <to_set_trace_notes>: Use
11034 TARGET_DEFAULT_RETURN.
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11038 * target-delegates.c: Rebuild.
11039 * target.c (update_current_target): Don't initialize
11040 to_set_trace_buffer_size.
11041 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11042 TARGET_DEFAULT_IGNORE.
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target-delegates.c: Rebuild.
11047 * target.c (update_current_target): Don't inherit or default
11048 to_set_circular_trace_buffer.
11049 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11050 TARGET_DEFAULT_IGNORE.
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11054 * target-delegates.c: Rebuild.
11055 * target.c (update_current_target): Don't inherit or default
11056 to_set_disconnected_tracing.
11057 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11058 TARGET_DEFAULT_IGNORE.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_get_min_fast_tracepoint_insn_len.
11065 (return_minus_one): Remove.
11066 * target.h (struct target_ops)
11067 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11073 to_get_raw_trace_data.
11074 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11075 TARGET_DEFAULT_NORETURN.
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_upload_trace_state_variables.
11082 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11083 Use TARGET_DEFAULT_RETURN.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_upload_tracepoints.
11090 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11091 TARGET_DEFAULT_RETURN.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_save_trace_data.
11098 * target.h (struct target_ops) <to_save_trace_data>: Use
11099 TARGET_DEFAULT_NORETURN.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't inherit or default
11105 to_get_trace_state_variable_value.
11106 * target.h (struct target_ops)
11107 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target-delegates.c: Rebuild.
11112 * target.c (update_current_target): Don't inherit or default
11114 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11116 2014-02-19 Tom Tromey <tromey@redhat.com>
11118 * target-delegates.c: Rebuild.
11119 * target.c (update_current_target): Don't inherit or default
11121 * target.h (struct target_ops) <to_trace_stop>: Use
11122 TARGET_DEFAULT_NORETURN.
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11126 * target-delegates.c: Rebuild.
11127 * target.c (update_current_target): Don't inherit or default
11128 to_get_tracepoint_status.
11129 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11130 TARGET_DEFAULT_NORETURN.
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target-delegates.c: Rebuild.
11135 * target.c (update_current_target): Don't inherit or default
11136 to_get_trace_status.
11137 * target.h (struct target_ops) <to_get_trace_status>: Use
11138 TARGET_DEFAULT_RETURN.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target-delegates.c: Rebuild.
11143 * target.c (update_current_target): Don't inherit or default
11145 * target.h (struct target_ops) <to_trace_start>: Use
11146 TARGET_DEFAULT_NORETURN.
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11150 * target-delegates.c: Rebuild.
11151 * target.c (update_current_target): Don't inherit or default
11152 to_trace_set_readonly_regions.
11153 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11154 Use TARGET_DEFAULT_NORETURN.
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11158 * target-delegates.c: Rebuild.
11159 * target.c (update_current_target): Don't inherit or default
11160 to_disable_tracepoint.
11161 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11162 TARGET_DEFAULT_NORETURN.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target-delegates.c: Rebuild.
11167 * target.c (update_current_target): Don't inherit or default
11168 to_enable_tracepoint.
11169 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11170 TARGET_DEFAULT_NORETURN.
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11174 * target-delegates.c: Rebuild.
11175 * target.c (update_current_target): Don't inherit or default
11176 to_download_trace_state_variable.
11177 * target.h (struct target_ops) <to_download_trace_state_variable>:
11178 Use TARGET_DEFAULT_NORETURN.
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11182 * target-delegates.c: Rebuild.
11183 * target.c (update_current_target): Don't inherit or default
11184 to_can_download_tracepoint.
11185 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11186 TARGET_DEFAULT_RETURN.
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11190 * target-delegates.c: Rebuild.
11191 * target.c (update_current_target): Don't inherit or default
11192 to_download_tracepoint.
11193 * target.h (struct target_ops) <to_download_tracepoint>: Use
11194 TARGET_DEFAULT_NORETURN.
11196 2014-02-19 Tom Tromey <tromey@redhat.com>
11198 * target-delegates.c: Rebuild.
11199 * target.c (update_current_target): Don't inherit or default
11201 * target.h (struct target_ops) <to_trace_init>: Use
11202 TARGET_DEFAULT_RETURN.
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11206 * target-delegates.c: Rebuild.
11207 * target.c (update_current_target): Don't inherit or default
11208 to_supports_string_tracing.
11209 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11210 TARGET_DEFAULT_RETURN.
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * target-delegates.c: Rebuild.
11215 * target.c (update_current_target): Don't inherit or default
11216 to_supports_enable_disable_tracepoint.
11217 * target.h (struct target_ops)
11218 <to_supports_enable_disable_tracepoint>: Use
11219 TARGET_DEFAULT_RETURN.
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11223 * target-delegates.c: Rebuild.
11224 * target.c (update_current_target): Don't inherit or default
11225 to_supports_multi_process.
11226 * target.h (struct target_ops) <to_supports_multi_process>: Use
11227 TARGET_DEFAULT_RETURN.
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target-delegates.c: Rebuild.
11232 * target.c (update_current_target): Don't inherit or default
11233 to_get_ada_task_ptid.
11234 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11235 TARGET_DEFAULT_FUNC.
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11239 * target-delegates.c: Rebuild.
11240 * target.c (update_current_target): Don't inherit or default
11241 to_thread_architecture.
11242 * target.h (struct target_ops) <to_thread_architecture>: Use
11243 TARGET_DEFAULT_FUNC.
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target-delegates.c: Rebuild.
11248 * target.c (update_current_target): Don't inherit or default
11249 to_execution_direction.
11250 * target.h (struct target_ops) <to_execution_direction>: Use
11251 TARGET_DEFAULT_FUNC.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11257 to_can_execute_reverse.
11258 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11259 TARGET_DEFAULT_RETURN.
11260 (target_can_execute_reverse): Unconditionally delegate.
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11264 * target-delegates.c: Rebuild.
11265 * target.c (update_current_target): Don't inherit or default
11267 (dummy_goto_bookmark): Remove.
11268 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11269 * target.h (struct target_ops) <to_goto_bookmark>: Use
11270 TARGET_DEFAULT_NORETURN.
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11277 (dummy_get_bookmark): Remove.
11278 (init_dummy_target): Don't inherit or default to_get_bookmark.
11279 * target.h (struct target_ops) <to_get_bookmark>: Use
11280 TARGET_DEFAULT_NORETURN
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
11286 to_make_corefile_notes.
11287 (init_dummy_target): Don't initialize to_make_corefile_notes.
11288 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11289 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
11296 (init_dummy_target): Don't initialize to_find_memory_regions.
11297 * target.h (struct target_ops) <to_find_memory_regions>: Use
11298 TARGET_DEFAULT_FUNC.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11305 * target.h (struct target_ops) <to_log_command>: Use
11306 TARGET_DEFAULT_IGNORE.
11307 (target_log_command): Unconditionally delegate.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_pid_to_exec_file.
11314 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11315 TARGET_DEFAULT_RETURN.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target-delegates.c: Rebuild.
11320 * target.c (update_current_target): Don't inherit or default
11322 (target_thread_name): Unconditionally delegate.
11323 * target.h (struct target_ops) <to_thread_name>: Use
11324 TARGET_DEFAULT_RETURN.
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * target-delegates.c: Rebuild.
11329 * target.c (update_current_target): Don't inherit or default
11330 to_extra_thread_info.
11331 * target.h (struct target_ops) <to_extra_thread_info>: Use
11332 TARGET_DEFAULT_RETURN.
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11336 * target-delegates.c: Rebuild.
11337 * target.c (update_current_target): Don't inherit or default
11339 * target.h (struct target_ops) <to_has_exited>: Use
11340 TARGET_DEFAULT_RETURN..
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_set_syscall_catchpoint.
11347 (return_one): Remove.
11348 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11349 TARGET_DEFAULT_RETURN.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_insert_exec_catchpoint.
11356 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11357 TARGET_DEFAULT_RETURN.
11359 2014-01-08 Tom Tromey <tromey@redhat.com>
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_insert_exec_catchpoint.
11364 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11365 TARGET_DEFAULT_RETURN.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * target-delegates.c: Rebuild.
11370 * target.c (update_current_target): Don't inherit or default
11371 to_remove_vfork_catchpoint.
11372 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11373 TARGET_DEFAULT_RETURN.
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_insert_vfork_catchpoint.
11380 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11381 TARGET_DEFAULT_RETURN.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't inherit or default
11387 to_remove_fork_catchpoint.
11388 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11389 TARGET_DEFAULT_RETURN.
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_insert_fork_catchpoint.
11396 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11397 TARGET_DEFAULT_RETURN.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_post_startup_inferior.
11404 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11405 TARGET_DEFAULT_IGNORE.
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11412 * target.h (struct target_ops) <to_load>: Use
11413 TARGET_DEFAULT_NORETURN.
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * target-delegates.c: Rebuild.
11418 * target.c (update_current_target): Don't inherit or default
11420 * target.h (struct target_ops) <to_terminal_info>: Use
11421 TARGET_DEFAULT_FUNC.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_terminal_save_ours.
11428 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11429 TARGET_DEFAULT_IGNORE.
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11433 * target-delegates.c: Rebuild.
11434 * target.c (update_current_target): Don't inherit or default
11436 * target.h (struct target_ops) <to_terminal_ours>: Use
11437 TARGET_DEFAULT_IGNORE.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_terminal_ours_for_output.
11444 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11445 TARGET_DEFAULT_IGNORE.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_terminal_inferior.
11452 * target.h (struct target_ops) <to_terminal_inferior>: Use
11453 TARGET_DEFAULT_IGNORE.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11460 * target.h (struct target_ops) <to_terminal_init>: Use
11461 TARGET_DEFAULT_IGNORE.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_can_accel_watchpoint_condition.
11468 * target.h (struct target_ops)
11469 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_region_ok_for_hw_watchpoint.
11476 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11477 Use TARGET_DEFAULT_FUNC.
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_watchpoint_addr_within_range.
11484 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11485 Use TARGET_DEFAULT_FUNC.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_remove_watchpoint.
11492 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11493 TARGET_DEFAULT_NORETURN.
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_insert_watchpoint.
11500 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11501 TARGET_DEFAULT_RETURN.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_remove_hw_breakpoint.
11508 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11509 TARGET_DEFAULT_RETURN.
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_insert_hw_breakpoint.
11516 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11517 TARGET_DEFAULT_RETURN.
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_can_use_hw_breakpoint.
11524 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11525 TARGET_DEFAULT_RETURN.
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11532 * target.h (struct target_ops) <to_files_info>: Use
11533 TARGET_DEFAULT_IGNORE.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11540 * target.h (struct target_ops) <to_store>: Use
11541 TARGET_DEFAULT_NORETURN.
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11548 * target.h (struct target_ops) <to_post_attach>: Use
11549 TARGET_DEFAULT_IGNORE.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11556 (default_rcmd): New function.
11557 (do_monitor_command): Unconditionally delegate.
11558 * target.h (struct target_ops) <to_rmcd>: Use
11559 TARGET_DEFAULT_FUNC.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target-delegates.c: Rebuild.
11564 * target.c (init_dummy_target): Don't initialize to_attach.
11565 (target_attach): Unconditionally delegate.
11566 * target.h (struct target_ops) <to_attach>: Use
11567 TARGET_DEFAULT_FUNC.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target-delegates.c: Rebuild.
11572 * target.c (target_detach): Unconditionally delegate.
11573 (init_dummy_target): Don't initialize to_detach.
11574 * target.h (struct target_ops) <to_detach>: Use
11575 TARGET_DEFAULT_IGNORE.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11581 (target_augmented_libraries_svr4_read): Add argument.
11582 * target.c (update_current_target): Update.
11583 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target.h (struct target_ops) <to_call_history_range>: Add
11590 * target.c (target_call_history_range): Add argument.
11591 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11593 (record_btrace_call_history_from): Update.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target.h (struct target_ops) <to_call_history_from>: Add
11599 * target.c (target_call_history_from): Add argument.
11600 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target.h (struct target_ops) <to_call_history>: Add argument.
11606 * target.c (target_call_history): Add argument.
11607 * record-btrace.c (record_btrace_call_history): Add 'self'
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_insn_history_range>: Add
11614 * target.c (target_insn_history_range): Add argument.
11615 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11617 (record_btrace_insn_history_from): Update.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target.h (struct target_ops) <to_insn_history_from>: Add
11623 * target.c (target_insn_history_from): Add argument.
11624 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target.h (struct target_ops) <to_insn_history>: Add argument.
11630 * target.c (target_insn_history): Add argument.
11631 * record-btrace.c (record_btrace_insn_history): Add 'self'
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11636 * target.h (struct target_ops) <to_goto_record>: Add argument.
11637 * target.c (target_goto_record): Add argument.
11638 * record-full.c (record_full_goto): Add 'self' argument.
11639 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11643 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11644 * target.c (target_goto_record_end): Add argument.
11645 * record-full.c (record_full_goto_end): Add 'self' argument.
11646 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * target.h (struct target_ops) <to_goto_record_begin>: Add
11652 * target.c (target_goto_record_begin): Add argument.
11653 * record-full.c (record_full_goto_begin): Add 'self' argument.
11654 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target.h (struct target_ops) <to_record_is_replaying>: Add
11661 * target.c (target_record_is_replaying): Add argument.
11662 * record-full.c (record_full_is_replaying): Add 'self' argument.
11663 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11665 (record_btrace_xfer_partial, record_btrace_store_registers)
11666 (record_btrace_prepare_to_store, record_btrace_resume)
11667 (record_btrace_wait, record_btrace_decr_pc_after_break)
11668 (record_btrace_find_new_threads, record_btrace_thread_alive):
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11673 * target.h (struct target_ops) <to_delete_record>: Add argument.
11674 * target.c (target_delete_record): Add argument.
11675 * record-full.c (record_full_delete): Add 'self' argument.
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * target.h (struct target_ops) <to_save_record>: Add argument.
11680 * target.c (target_save_record): Add argument.
11681 * record-full.c (record_full_save): Add 'self' argument.
11682 (record_full_save): Add 'self' argument.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target.h (struct target_ops) <to_info_record>: Add argument.
11687 * target.c (target_info_record): Add argument.
11688 * record.c (info_record_command): Add argument.
11689 * record-full.c (record_full_info): Add 'self' argument.
11690 * record-btrace.c (record_btrace_info): Add 'self' argument.
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11694 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11695 * target.c (target_stop_recording): Add argument.
11696 * record.c (record_stop): Add argument.
11697 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11700 2014-02-19 Tom Tromey <tromey@redhat.com>
11702 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11703 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11704 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11706 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11707 (_initialize_amd64_linux_nat): Use it.
11708 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11709 (_initialize_i386_linux_nat): Use it.
11711 2014-02-19 Tom Tromey <tromey@redhat.com>
11713 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11714 * target.c (target_teardown_btrace): Add argument.
11715 * remote.c (remote_teardown_btrace): Add 'self' argument.
11716 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11718 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11724 * target.c (target_disable_btrace): Add argument.
11725 * remote.c (remote_disable_btrace): Add 'self' argument.
11726 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11728 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11734 * target.c (target_enable_btrace): Add argument.
11735 * remote.c (remote_enable_btrace): Add 'self' argument.
11736 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11738 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11743 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11744 (target_can_use_agent): Add argument.
11745 * target.c (update_current_target): Update.
11746 * remote.c (remote_can_use_agent): Add 'self' argument.
11747 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target.h (struct target_ops) <to_use_agent>: Add argument.
11752 (target_use_agent): Add argument.
11753 * target.c (update_current_target): Update.
11754 * remote.c (remote_use_agent): Add 'self' argument.
11755 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11759 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11760 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11761 (target_traceframe_info): Add argument.
11762 * target.c (update_current_target): Update.
11763 * remote.c (remote_traceframe_info): Add 'self' argument.
11764 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target.h (target_static_tracepoint_markers_by_strid): Add
11770 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11772 * target.c (update_current_target): Update.
11773 * remote.c (struct target_ops)
11774 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11775 * linux-nat.c (struct target_ops)
11776 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11782 (target_static_tracepoint_marker_at): Add argument.
11783 * target.c (update_current_target): Update.
11784 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11789 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11790 (target_set_permissions): Add argument.
11791 * target.c (update_current_target): Update.
11792 * remote.c (remote_set_permissions): Add 'self' argument.
11793 (remote_start_remote): Update.
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11797 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11798 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11799 (target_get_tib_address): Add argument.
11800 * target.c (update_current_target): Update.
11801 * remote.c (remote_get_tib_address): Add 'self' argument.
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11805 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11806 (target_set_trace_notes): Add argument.
11807 * target.c (update_current_target): Update.
11808 * remote.c (remote_set_trace_notes): Add 'self' argument.
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11812 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11814 (target_set_trace_buffer_size): Add argument.
11815 * target.c (update_current_target): Update.
11816 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11818 2014-02-19 Tom Tromey <tromey@redhat.com>
11820 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11822 (target_set_circular_trace_buffer): Add argument.
11823 * target.c (update_current_target): Update.
11824 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11829 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11831 (target_set_disconnected_tracing): Add argument.
11832 * target.c (update_current_target): Update.
11833 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target.h (struct target_ops)
11838 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11839 (target_get_min_fast_tracepoint_insn_len): Add argument.
11840 * target.c (update_current_target): Update.
11841 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11846 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11848 (target_get_raw_trace_data): Add argument.
11849 * target.c (update_current_target): Update.
11850 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11854 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11856 (target_upload_trace_state_variables): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_upload_trace_state_variables): Add 'self'
11860 (remote_start_remote): Update.
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11864 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11866 (target_upload_tracepoints): Add argument.
11867 * target.c (update_current_target): Update.
11868 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11869 (remote_start_remote): Update.
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11874 (target_save_trace_data): Add argument.
11875 * target.c (update_current_target): Update.
11876 * remote.c (remote_save_trace_data): Add 'self' argument.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11882 * target.h (struct target_ops)
11883 <to_get_trace_state_variable_value>: Add argument.
11884 (target_get_trace_state_variable_value): Add argument.
11885 * target.c (update_current_target): Update.
11886 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11888 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11892 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11893 * target.h (struct target_ops) <to_trace_find>: Add argument.
11894 (target_trace_find): Add argument.
11895 * target.c (update_current_target): Update.
11896 * remote.c (remote_trace_find): Add 'self' argument.
11897 * ctf.c (ctf_trace_find): Add 'self' argument.
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11901 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11902 (target_trace_stop): Add argument.
11903 * target.c (update_current_target): Update.
11904 * remote.c (remote_trace_stop): Add 'self' argument.
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11909 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11911 (target_get_tracepoint_status): Add argument.
11912 * target.c (update_current_target): Update.
11913 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11918 * target.h (struct target_ops) <to_get_trace_status>: Add
11920 (target_get_trace_status): Add argument.
11921 * target.c (update_current_target): Update.
11922 * remote.c (remote_get_trace_status): Add 'self' argument.
11923 (remote_start_remote, remote_can_download_tracepoint): Update.
11924 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11928 * target.h (struct target_ops) <to_trace_start>: Add argument.
11929 (target_trace_start): Add argument.
11930 * target.c (update_current_target): Update.
11931 * remote.c (remote_trace_start): Add 'self' argument.
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11937 (target_trace_set_readonly_regions): Add argument.
11938 * target.c (update_current_target): Update.
11939 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11944 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11946 (target_disable_tracepoint): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11954 (target_enable_tracepoint): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11960 * target.h (struct target_ops) <to_download_trace_state_variable>:
11962 (target_download_trace_state_variable): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_download_trace_state_variable): Add 'self'
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11971 (target_can_download_tracepoint): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target.h (struct target_ops) <to_download_tracepoint>: Add
11979 (target_download_tracepoint): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_download_tracepoint): Add 'self' argument.
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11985 * target.h (struct target_ops) <to_trace_init>: Add argument.
11986 (target_trace_init): Add argument.
11987 * target.c (update_current_target): Update.
11988 * remote.c (remote_trace_init): Add 'self' argument.
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11992 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11993 * target.c (target_fileio_readlink): Add argument.
11994 * remote.c (remote_hostio_readlink): Add 'self' argument.
11995 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11997 2014-02-19 Tom Tromey <tromey@redhat.com>
11999 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12000 * target.c (target_fileio_unlink): Add argument.
12001 * remote.c (remote_hostio_unlink): Add 'self' argument.
12002 (remote_file_delete): Update.
12003 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12007 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12008 * target.c (target_fileio_close): Add argument.
12009 * remote.c (remote_hostio_close): Add 'self' argument.
12010 (remote_hostio_close_cleanup): Update.
12011 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12013 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12018 * target.c (target_fileio_pread): Add argument.
12019 * remote.c (remote_hostio_pread): Add 'self' argument.
12020 (remote_bfd_iovec_pread, remote_file_get): Update.
12021 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12026 * target.c (target_fileio_pwrite): Add argument.
12027 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12028 (remote_file_put): Update.
12029 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12033 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12034 * target.c (target_fileio_open): Add argument.
12035 * remote.c (remote_hostio_open): Add 'self' argument.
12036 (remote_bfd_iovec_open): Add 'self' argument.
12037 (remote_file_put): Add 'self' argument.
12038 (remote_file_get): Add 'self' argument.
12039 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12043 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12045 (target_can_run_breakpoint_commands): Add argument.
12046 * target.c (update_current_target): Update.
12047 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12049 (remote_insert_breakpoint): Add 'self' argument.
12050 (remote_insert_hw_breakpoint): Add 'self' argument.
12051 (remote_can_run_breakpoint_commands): Add 'self' argument.
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12055 * target.h (struct target_ops)
12056 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12057 (target_supports_evaluation_of_breakpoint_conditions): Add
12059 * target.c (update_current_target): Update.
12060 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12062 (remote_insert_breakpoint): Add 'self' argument.
12063 (remote_insert_hw_breakpoint): Add 'self' argument.
12064 (remote_supports_cond_breakpoints): Add 'self' argument.
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12068 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12070 (target_supports_string_tracing): Add argument.
12071 * target.c (update_current_target): Update.
12072 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target.h (struct target_ops)
12077 <to_supports_disable_randomization>: Add argument.
12078 * target.c (find_default_supports_disable_randomization): Add
12080 (target_supports_disable_randomization): Add argument.
12081 (find_default_supports_disable_randomization): Add 'self'
12083 * remote.c (extended_remote_supports_disable_randomization): Add
12085 (remote_supports_disable_randomization): Add 'self' argument.
12086 (extended_remote_create_inferior): Update.
12087 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12092 * target.h (struct target_ops)
12093 <to_supports_enable_disable_tracepoint>: Add argument.
12094 (target_supports_enable_disable_tracepoint): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target.h (struct target_ops) <to_supports_multi_process>: Add
12103 (target_supports_multi_process): Add argument.
12104 * target.c (update_current_target): Update.
12105 * remote.c (remote_supports_multi_process): Add 'self' argument.
12106 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12108 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12113 * target.h (struct target_ops) <to_execution_direction>: Add
12115 (target_execution_direction): Add argument.
12116 * target.c (default_execution_direction): Add 'self' argument.
12117 * record-full.c (record_full_execution_direction): Add 'self'
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12124 (target_can_execute_reverse): Add argument.
12125 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12126 * record-full.c (record_full_can_execute_reverse): Add 'self'
12128 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12134 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12136 (target_get_ada_task_ptid): Add argument.
12137 * target.c (update_current_target): Update.
12138 (default_get_ada_task_ptid): Add 'self' argument.
12139 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12140 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12141 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12143 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12145 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12147 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12149 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12150 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12155 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12156 (target_goto_bookmark): Add argument.
12157 * target.c (dummy_goto_bookmark): Add 'self' argument.
12158 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12163 (target_get_bookmark): Add argument.
12164 * target.c (dummy_get_bookmark): Add 'self' argument.
12165 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12169 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12171 (target_make_corefile_notes): Add argument.
12172 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12173 * procfs.c (procfs_make_note_section): Add 'self' argument.
12174 (procfs_make_note_section): Add 'self' argument.
12175 (procfs_make_note_section): Add 'self' argument.
12176 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12178 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12179 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12180 * exec.c (exec_make_note_section): Add 'self' argument.
12181 (exec_make_note_section): Add 'self' argument.
12183 2014-02-19 Tom Tromey <tromey@redhat.com>
12185 * target.h (struct target_ops) <to_find_memory_regions>: Add
12187 (target_find_memory_regions): Add argument.
12188 * target.c (dummy_find_memory_regions): Add 'self' argument.
12189 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12190 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12191 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12192 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12193 * exec. (exec_do_find_memory_regions): New global.
12194 (exec_set_find_memory_regions): Rewrite.
12195 (exec_find_memory_regions): New function.
12196 (init_exec_ops): Use exec_find_memory_regions.
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12200 * target.h (struct target_ops) <to_supports_non_stop>: Add
12202 * target.c (find_default_supports_non_stop): Add argument.
12203 (target_supports_non_stop): Add argument.
12204 (find_default_supports_non_stop): Add 'self' argument.
12205 * remote.c (remote_supports_non_stop): Add 'self' argument.
12206 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12208 2014-02-19 Tom Tromey <tromey@redhat.com>
12210 * target.h (struct target_ops) <to_log_command>: Add argument.
12211 (target_log_command): Add argument.
12212 * serial.h (serial_log_command): Add 'self' argument.
12213 * serial.c (serial_log_command): Add 'self' argument.
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12217 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12218 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12220 (target_pid_to_exec_file): Add argument.
12221 * target.c (debug_to_pid_to_exec_file): Add argument.
12222 (update_current_target): Update.
12223 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12224 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12225 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12226 (linux_handle_extended_wait): Update.
12227 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12228 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12229 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12230 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12234 * target.h (struct target_ops) <to_rcmd>: Add argument.
12235 (target_rcmd): Add argument.
12236 * target.c (debug_to_rcmd): Add argument.
12237 (update_current_target, do_monitor_command): Update.
12238 * remote.c (remote_rcmd): Add 'self' argument.
12239 * monitor.c (monitor_rcmd): Add 'self' argument.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * windows-nat.c (windows_stop): Add 'self' argument.
12244 * target.h (struct target_ops) <to_stop>: Add argument.
12245 * target.c (target_stop): Add argument.
12246 (debug_to_stop): Add argument.
12247 (update_current_target): Update.
12248 * remote.c (remote_stop): Add 'self' argument.
12249 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12250 (gdbsim_cntrl_c): Update.
12251 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12252 * procfs.c (procfs_stop): Add 'self' argument.
12253 * nto-procfs.c (procfs_stop): Add 'self' argument.
12254 * monitor.c (monitor_stop): Add 'self' argument.
12255 (monitor_open): Update.
12256 * linux-nat.c (linux_nat_stop): Add argument.
12257 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12258 * gnu-nat.c (gnu_stop): Add 'self' argument.
12259 * darwin-nat.c (darwin_stop): Add 'self' argument.
12261 2014-02-19 Tom Tromey <tromey@redhat.com>
12263 * target.h (struct target_ops) <to_thread_name>: Add argument.
12264 * target.c (target_thread_name): Add argument.
12265 (update_current_target): Update.
12266 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12270 * target.h (struct target_ops) <to_extra_thread_info>: Add
12272 (target_extra_thread_info): Add argument.
12273 * target.c (update_current_target): Update.
12274 * remote.c (remote_threads_extra_info): Add 'self' argument.
12275 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12277 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12278 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12279 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12281 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12283 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12285 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target.h (struct target_ops) <to_program_signals>: Add argument.
12291 * target.c (target_program_signals): Add argument.
12292 * remote.c (remote_program_signals): Add 'self' argument.
12294 2014-02-19 Tom Tromey <tromey@redhat.com>
12296 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12297 * target.c (target_pass_signals): Add argument.
12298 * remote.c (remote_pass_signals): Add 'self' argument.
12299 (remote_start_remote): Update.
12300 * procfs.c (procfs_pass_signals): Add 'self' argument.
12301 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12302 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12303 (linux_nat_create_inferior, linux_nat_attach): Update.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * windows-nat.c (windows_can_run): Add 'self' argument.
12308 * target.h (struct target_ops) <to_can_run>: Add argument.
12309 (target_can_run): Add argument.
12310 * target.c (debug_to_can_run): Add argument.
12311 (update_current_target): Update.
12312 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12313 * inf-child.c (inf_child_can_run): Add 'self' argument.
12314 * go32-nat.c (go32_can_run): Add 'self' argument.
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12318 * target.h (struct target_ops) <to_has_exited>: Add argument.
12319 (target_has_exited): Add argument.
12320 * target.c (debug_to_has_exited): Add argument.
12321 (update_current_target): Update.
12323 2014-02-19 Tom Tromey <tromey@redhat.com>
12325 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12327 (target_set_syscall_catchpoint): Add argument.
12328 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12330 * target.c (update_current_target): Update.
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12334 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12336 (target_remove_exec_catchpoint): Add argument.
12337 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12338 (update_current_target): Update.
12339 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12344 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12346 (target_insert_exec_catchpoint): Add argument.
12347 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12348 (update_current_target): Update.
12349 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12356 (target_remove_vfork_catchpoint): Add argument.
12357 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12358 (update_current_target): Update.
12359 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12362 2014-02-19 Tom Tromey <tromey@redhat.com>
12364 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12366 (target_insert_vfork_catchpoint): Add argument.
12367 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12368 (update_current_target): Update.
12369 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12374 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12376 (target_remove_fork_catchpoint): Add argument.
12377 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12378 (update_current_target): Update.
12379 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12384 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12386 (target_insert_fork_catchpoint): Add argument.
12387 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12388 (update_current_target): Update.
12389 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12394 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12396 (target_post_startup_inferior): Add argument.
12397 * target.c (debug_to_post_startup_inferior): Add argument.
12398 (update_current_target): Update.
12399 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12401 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12403 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12405 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12407 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12409 (super_post_startup_inferior): Likewise.
12410 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12412 (super_post_startup_inferior): Likewise.
12413 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12414 Add 'self' argument.
12415 (super_post_startup_inferior): Likewise.
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12419 * target.h (struct target_ops) <to_load>: Add argument.
12420 * target.c (target_load): Add argument.
12421 (debug_to_load): Add argument.
12422 (update_current_target): Update.
12423 * remote.c (remote_load): Add 'self' argument.
12424 * remote-sim.c (gdbsim_load): Add 'self' argument.
12425 * remote-mips.c (mips_load): Add 'self' argument.
12426 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12427 * monitor.c (monitor_load): Add 'self' argument.
12428 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12432 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12433 (target_terminal_info): Add argument.
12434 * target.c (debug_to_terminal_info): Add argument.
12435 (default_terminal_info): Likewise.
12436 * inflow.c (child_terminal_info): Add 'self' argument.
12437 * inferior.h (child_terminal_info): Add 'self' argument.
12438 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12440 2014-02-19 Tom Tromey <tromey@redhat.com>
12442 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12444 (target_terminal_save_ours): Add argument.
12445 * target.c (debug_to_terminal_save_ours): Add argument.
12446 (update_current_target): Update.
12447 * inflow.c (terminal_save_ours): Add 'self' argument.
12448 * inferior.h (terminal_save_ours): Add 'self' argument.
12450 2014-02-19 Tom Tromey <tromey@redhat.com>
12452 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12453 (target_terminal_ours): Add argument.
12454 * target.c (debug_to_terminal_ours): Add argument.
12455 (update_current_target): Update.
12456 * remote.c (remote_terminal_ours): Add 'self' argument.
12457 (remote_close): Update.
12458 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12459 * inflow.c (terminal_ours): Add 'self' argument.
12460 * inferior.h (terminal_ours): Add 'self' argument.
12461 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12463 2014-02-19 Pedro Alves <palves@redhat.com>
12464 Tom Tromey <tromey@redhat.com>
12466 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12468 (target_terminal_ours_for_output): Add argument.
12469 * target.c (debug_to_terminal_ours_for_output): Add argument.
12470 (update_current_target): Update.
12471 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12472 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12473 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12475 2014-02-19 Tom Tromey <tromey@redhat.com>
12477 * target.h (struct target_ops) <to_terminal_inferior>: Add
12479 * target.c (target_terminal_inferior): Add argument.
12480 (update_current_target): Update.
12481 * remote.c (remote_terminal_inferior): Add 'self' argument.
12482 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12483 * inflow.c (terminal_inferior): Add 'self' argument.
12484 * inferior.h (terminal_inferior): Add 'self' argument.
12485 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12486 (go32_terminal_inferior): Add 'self' argument.
12488 2014-02-19 Tom Tromey <tromey@redhat.com>
12490 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12491 (target_terminal_init): Add argument.
12492 * target.c (debug_to_terminal_init): Add argument.
12493 (update_current_target): Update.
12494 * inflow.c (terminal_init_inferior): Add 'self' argument.
12495 * inferior.h (terminal_init_inferior): Add 'self' argument.
12496 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12497 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target.h (struct target_ops)
12502 <to_can_accel_watchpoint_condition>: Add argument.
12503 (target_can_accel_watchpoint_condition): Add argument.
12504 * target.c (debug_to_can_accel_watchpoint_condition): Add
12506 (update_current_target): Update.
12507 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12514 (target_region_ok_for_hw_watchpoint): Add argument.
12515 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12516 (default_region_ok_for_hw_watchpoint): Add argument.
12517 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12518 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12520 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12522 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12524 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12526 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12528 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12530 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12531 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12533 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12534 Add 'self' argument.
12536 2014-02-19 Tom Tromey <tromey@redhat.com>
12538 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12540 (target_insert_watchpoint): Add argument.
12541 * target.c (debug_to_insert_watchpoint): Add argument.
12542 (update_current_target): Update.
12543 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12544 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12545 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12546 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12547 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12548 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12550 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12551 (procfs_insert_hw_watchpoint): Add 'self' argument.
12552 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12554 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12556 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12558 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12559 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12561 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12568 (target_remove_watchpoint): Add argument.
12569 * target.c (debug_to_remove_watchpoint): Add argument.
12570 (update_current_target): Update.
12571 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12572 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12573 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12574 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12575 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12576 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12578 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12579 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12581 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12583 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12585 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12586 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12588 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12591 2014-02-19 Tom Tromey <tromey@redhat.com>
12593 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12595 (target_remove_hw_breakpoint): Add argument.
12596 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12597 (update_current_target): Update.
12598 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12599 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12601 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12602 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12604 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12611 (target_insert_hw_breakpoint): Add argument.
12612 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12613 (update_current_target): Update.
12614 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12615 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12617 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12618 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12619 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12621 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12628 (target_can_use_hardware_watchpoint): Add argument.
12629 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12630 (update_current_target): Update.
12631 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12633 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12635 * remote.c (remote_check_watch_resources): Add 'self' argument.
12636 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12637 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12639 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12640 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12642 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12644 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12646 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12648 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12650 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12652 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12653 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12655 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12660 * target.h (struct target_ops) <to_post_attach>: Add argument.
12661 (target_post_attach): Add argument.
12662 * target.c (debug_to_post_attach): Add argument.
12663 (update_current_target): Update.
12664 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12665 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12666 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12667 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12668 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12672 * windows-nat.c (windows_close): Add 'self' argument.
12673 * tracepoint.c (tfile_close): Add 'self' argument.
12674 * target.h (struct target_ops) <to_close>: Add argument.
12675 * target.c (target_close): Add argument.
12676 (update_current_target): Update.
12677 * remote.c (remote_close): Add 'self' argument.
12678 * remote-sim.c (gdbsim_close): Add 'self' argument.
12679 * remote-mips.c (mips_close): Add 'self' argument.
12680 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12681 * record-full.c (record_full_close): Add 'self' argument.
12682 * record-btrace.c (record_btrace_close): Add 'self' argument.
12683 * monitor.h (monitor_close): Add 'self' argument.
12684 * monitor.c (monitor_close): Add 'self' argument.
12685 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12686 * linux-nat.c (linux_nat_close): Add argument.
12687 * go32-nat.c (go32_close): Add 'self' argument.
12688 * exec.c (exec_close_1): Add 'self' argument.
12689 * ctf.c (ctf_close): Add 'self' argument.
12690 * corelow.c (core_close): Add 'self' argument.
12691 (core_close_cleanup): Update.
12692 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12693 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12697 * remote.c (remote_load): New function.
12698 (init_remote_ops): Use it.
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12702 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12704 * common/linux-btrace.h (linux_supports_btrace): Update.
12705 * remote.c (remote_supports_btrace): Add "self" argument.
12706 * target-delegates.c: Rebuild.
12707 * target.c (target_supports_btrace): Remove.
12708 * target.h (struct target_ops) <to_supports_btrace>: Add
12709 target_ops argument.
12710 (target_supports_btrace): New define.
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * record-full.c (record_full_beneath_to_resume_ops)
12715 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12716 (record_full_beneath_to_wait)
12717 (record_full_beneath_to_store_registers_ops)
12718 (record_full_beneath_to_store_registers)
12719 (record_full_beneath_to_xfer_partial_ops)
12720 (record_full_beneath_to_xfer_partial)
12721 (record_full_beneath_to_insert_breakpoint_ops)
12722 (record_full_beneath_to_insert_breakpoint)
12723 (record_full_beneath_to_remove_breakpoint_ops)
12724 (record_full_beneath_to_remove_breakpoint)
12725 (record_full_beneath_to_stopped_by_watchpoint)
12726 (record_full_beneath_to_stopped_data_address)
12727 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12728 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12729 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12730 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12731 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12732 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12733 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12734 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12735 (record_full_resume, record_full_wait_1)
12736 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12737 (record_full_store_registers, record_full_xfer_partial)
12738 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12739 (record_full_async, record_full_core_xfer_partial): Use target
12741 * target-delegates.c: Rebuild.
12742 * target.c (current_xfer_partial): Remove.
12743 (update_current_target): Do not INHERIT or de_fault
12744 to_insert_breakpoint, to_remove_breakpoint,
12745 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12746 to_is_async_p, to_async. Do not set to_xfer_partial field.
12747 (default_xfer_partial): Simplify.
12748 (current_xfer_partial): Remove.
12749 (target_wait, target_resume): Simplify.
12750 (find_default_can_async_p, find_default_is_async_p): Update.
12751 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12752 to_xfer_partial, to_stopped_by_watchpoint,
12753 to_stopped_data_address.
12754 (target_store_registers): Simplify.
12755 (forward_target_remove_breakpoint)
12756 (forward_target_insert_breakpoint): Remove.
12757 (target_remove_breakpoint, target_insert_breakpoint)
12758 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12759 * target.h (struct target_ops) <to_resume, to_wait,
12760 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12761 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12762 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12764 (forward_target_remove_breakpoint)
12765 (forward_target_insert_breakpoint): Remove.
12766 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12768 (record_btrace_insert_breakpoint): Delegate directly.
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12773 * target-delegates.c: New file.
12774 * target.c: Include target-delegates.c.
12775 (init_dummy_target): Call install_dummy_methods.
12776 (complete_target_initialization): Call install_delegators.
12777 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12778 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12779 * make-target-delegates: New file.
12781 2014-02-19 Tom Tromey <tromey@redhat.com>
12783 * record.c (find_record_target): Use find_target_at.
12784 * target.c (find_target_at): New function.
12785 * target.h (find_target_at): Declare.
12787 2014-02-19 Tom Tromey <tromey@redhat.com>
12789 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12790 Add 'ops' argument.
12791 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12793 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12794 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12796 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12798 * linux-nat.c (save_sigtrap): Update.
12799 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12800 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12801 (linux_nat_close): Update.
12802 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12804 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12806 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12807 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12808 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12809 (tmp_to_async): Add 'ops' argument.
12810 (record_full_stopped_by_watchpoint, record_full_async)
12811 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12813 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12814 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12815 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12816 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12817 (remote_is_async_p, remote_async): Add 'ops' argument.
12818 (remote_stopped_data_address): Update.
12819 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12820 * target.c (update_current_target)
12821 (find_default_can_async_p, find_default_is_async_p): Update.
12822 (init_dummy_target): Update.
12823 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12824 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12825 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12826 (target_can_async_p, target_is_async_p, target_async)
12827 (target_stopped_by_watchpoint): Update.
12829 2014-02-19 Yao Qi <yao@codesourcery.com>
12832 * gdbarch.sh: Remove startup_gdbarch.
12833 * gdbarch.c: Regenerated.
12834 * gdbarch.h: Likewise.
12836 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12838 * rl78-tdep.c (rl78_g10_register_name): New function.
12839 (rl78_return_value): Add g10 support.
12840 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12843 2014-02-17 Doug Evans <xdje42@gmail.com>
12845 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12846 (SUBDIR_GUILE_SRCS): Ditto.
12847 (scm-gsmob.o): Ditto.
12849 2014-02-17 Yao Qi <yao@codesourcery.com>
12851 * gnu-nat.c (ILL_RPC): Declare defined function.
12853 2014-02-17 Yao Qi <yao@codesourcery.com>
12855 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12856 mach_msg_type_number_t.
12857 (gnu_write_inferior): Likewise.
12859 2014-02-17 Yao Qi <yao@codesourcery.com>
12861 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12863 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12864 (inf_validate_procs, inf_signal): Likewise.
12865 (S_exception_raise_request): Likewise.
12866 (do_mach_notify_dead_name): Likewise.
12867 (steal_exc_port): Likewise.
12868 (gnu_read_inferior): Change 'copy_count''s type to
12869 mach_msg_type_number_t.
12870 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12873 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12875 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12876 flag. Adjust all users; in particular...
12877 (gnu_wait): ..., don't decrement its value in here...
12878 (gnu_create_inferior): ..., and instead set the flag in here,
12879 around the startup_inferior call, and call that one with
12880 START_INFERIOR_TRAPS_EXPECTED.
12882 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12883 (ILL_RPC): ... new macro.
12884 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12885 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12886 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12887 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12888 functions with ILL_RPC macro.
12889 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12890 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12891 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12892 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12893 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12894 (S_proc_getlogin_reply, S_proc_getsid_reply)
12895 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12896 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12897 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12898 (S_proc_getnports_reply, S_proc_is_important_reply)
12899 (S_proc_get_code_reply): New stub functions, generated with
12902 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12903 collected the type check structures.
12905 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12907 2014-02-14 Doug Evans <dje@google.com>
12909 * target.c (target_write_partial): Fix result type.
12911 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12913 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12914 the proper offsets to access fpregset_t.
12916 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12918 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12919 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12920 * h8300-tdep.c (setmachinelist): Remove global.
12921 * hppa-tdep.c (hppa_sigtramp): Remove global.
12922 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12923 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12924 * ravenscar-thread.c (update_target_observer): Remove global.
12925 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12927 2014-02-12 Tom Tromey <tromey@redhat.com>
12929 * common/rsp-low.c: Update comments.
12930 * common/rsp-low.h: Update comments.
12932 2014-02-12 Tom Tromey <tromey@redhat.com>
12934 * common/rsp-low.c (convert_ascii_to_int): Remove.
12935 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12937 2014-02-12 Tom Tromey <tromey@redhat.com>
12939 * common/rsp-low.h (unhexify): Don't declare.
12940 * common/rsp-low.c (unhexify): Remove.
12942 2014-02-12 Tom Tromey <tromey@redhat.com>
12944 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12945 * common/rsp-low.c (convert_int_to_ascii): Remove.
12947 2014-02-12 Tom Tromey <tromey@redhat.com>
12949 * common/rsp-low.h (hexify): Don't declare.
12950 * common/rsp-low.c (hexify): Remove.
12952 2014-02-12 Tom Tromey <tromey@redhat.com>
12954 * common/rsp-low.c (hexify): Never take strlen of argument.
12956 2014-02-12 Tom Tromey <tromey@redhat.com>
12958 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12959 * remote.c (extended_remote_run, remote_rcmd)
12960 (remote_download_trace_state_variable, remote_save_trace_data)
12961 (remote_set_trace_notes): Update.
12962 * tracepoint.c (encode_source_string, tfile_write_status)
12963 (tfile_write_uploaded_tsv): Update.
12965 2014-02-12 Tom Tromey <tromey@redhat.com>
12967 * tracepoint.c: Include rsp-low.h.
12968 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12969 * remote.c: Include rsp-low.h.
12970 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12971 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12972 (remote_unescape_input): Move to common/rsp-low.c.
12973 * common/rsp-low.h: New file.
12974 * common/rsp-low.c: New file.
12975 * Makefile.in (SFILES): Add common/rsp-low.c.
12976 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12977 (COMMON_OBS): Add rsp-low.o.
12978 (rsp-low.o): New target.
12980 2014-02-12 Tom Tromey <tromey@redhat.com>
12982 * utils.h: Include print-utils.h.
12983 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12984 (int_string, core_addr_to_string, core_addr_to_string_nz)
12985 (hex_string, hex_string_custom): Don't declare.
12986 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12987 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12988 (hex_string_custom, int_string, core_addr_to_string)
12989 (core_addr_to_string_nz, host_address_to_string): Move to
12990 common/print-utils.c.
12991 * common/print-utils.h: New file.
12992 * common/print-utils.c: New file
12993 * Makefile.in (SFILES): Add common/print-utils.c.
12994 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12995 (COMMON_OBS): Add print-utils.o.
12996 (print-utils.o): New target.
12998 2014-02-12 Tom Tromey <tromey@redhat.com>
13000 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13002 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13004 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13006 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13008 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13009 if a PT_IO ptrace request returns sucessfully but indicates that 0
13010 bytes were transferred.
13012 2014-02-12 Pedro Alves <palves@redhat.com>
13013 Kevin Buettner <kevinb@redhat.com>
13015 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13016 TYPE_INSTANCE_FLAG_CODE_SPACE.
13018 2014-02-12 Pedro Alves <palves@redhat.com>
13020 * h8300-tdep.c (pseudo_from_raw_register)
13021 (raw_from_pseudo_register): New functions.
13022 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13025 2014-02-12 Pedro Alves <palves@redhat.com>
13027 * h8300-tdep.c (h8300_register_sim_regno): New function.
13028 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13029 gdbarch_register_sim_regno hook.
13031 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13033 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13035 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13037 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13039 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13041 * obsd-tdep.h (obsd_init_abi): New prototype.
13042 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13043 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13044 (obsd_init_abi): New functions.
13045 * i386obsd-tdep.c: Include "obsd-tdep.h".
13046 (i386obsd_init_abi): Call obsd_init_abi.
13047 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13048 (amd64obsd_init_abi): Call obsd_init_abi.
13049 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13050 obsd-tdep.c to gdb_target_obs.
13052 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13054 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13055 double float arguments to 16-byte in the argument slots.
13057 2014-02-11 Doug Evans <xdje42@gmail.com>
13059 * configure.ac: Don't crash if pkg-config is not found and guile
13060 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13062 * configure: Regenerate.
13064 2014-02-11 Yao Qi <yao@codesourcery.com>
13066 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13067 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13068 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13069 * gnu-nat.c (gnu_xfer_memory): Likewise.
13070 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13072 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13073 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13075 2014-02-11 Yao Qi <yao@codesourcery.com>
13077 * target.h (enum target_xfer_error): Rename to ...
13078 (enum target_xfer_status): ... it. New. All users updated.
13079 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13081 (TARGET_XFER_STATUS_ERROR_P): New macro.
13082 (target_xfer_error_to_string): Remove declaration.
13083 (target_xfer_status_to_string): Declare.
13084 (target_xfer_partial_ftype): Adjust it.
13085 (struct target_ops) <to_xfer_partial>: Return
13086 target_xfer_status. Add argument xfered_len. Update
13088 * target.c (target_xfer_error_to_string): Rename to ...
13089 (target_xfer_status_to_string): ... it. New. All callers
13091 (target_read_live_memory): Likewise. Call target_xfer_partial
13092 instead of target_read.
13093 (memory_xfer_live_readonly_partial): Return
13094 target_xfer_status. Add argument xfered_len.
13095 (raw_memory_xfer_partial): Likewise.
13096 (memory_xfer_partial_1): Likewise.
13097 (memory_xfer_partial): Likewise.
13098 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13099 properly. Update debug message.
13100 (default_xfer_partial, current_xfer_partial): Likewise.
13101 (target_write_partial): Likewise.
13102 (target_read_partial): Likewise. All callers updated.
13103 (read_whatever_is_readable): Likewise.
13104 (target_write_with_progress): Likewise.
13105 (target_read_alloc_1): Likewise.
13107 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13108 * auxv.c (procfs_xfer_auxv): Likewise.
13109 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13110 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13111 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13112 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13113 * corefile.c (read_memory): Adjust.
13114 * corelow.c (core_xfer_partial): Likewise.
13115 * ctf.c (ctf_xfer_partial): Likewise.
13116 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13118 (darwin_xfer_partial): Likewise.
13119 * exec.c (section_table_xfer_memory_partial): Likewise. All
13121 (exec_xfer_partial): Likewise.
13122 * exec.h (section_table_xfer_memory_partial): Update
13124 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13126 (gnu_xfer_partial): Likewise.
13127 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13128 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13129 (ia64_hpux_xfer_solib_got): Likewise.
13130 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13131 type of 'partial_len' to ULONGEST.
13132 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13133 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13134 (linux_nat_xfer_partial): Likewise.
13135 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13136 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13137 * monitor.c (monitor_xfer_memory): Likewise.
13138 (monitor_xfer_partial): Likewise.
13139 * procfs.c (procfs_xfer_partial): Likewise.
13140 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13141 * record-full.c (record_full_xfer_partial): Likewise.
13142 (record_full_core_xfer_partial): Likewise.
13143 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13144 (gdbsim_xfer_partial): Likewise.
13145 * remote.c (remote_write_bytes_aux): Likewise. All callers
13147 (remote_write_bytes, remote_read_bytes): Likewise. All
13149 (remote_flash_erase): Likewise. All callers updated.
13150 (remote_write_qxfer): Likewise. All callers updated.
13151 (remote_read_qxfer): Likewise. All callers updated.
13152 (remote_xfer_partial): Likewise.
13153 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13154 (rs6000_xfer_shared_libraries): Likewise.
13155 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13156 (sol_thread_xfer_partial): Likewise.
13157 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13158 (sparc_xfer_partial): Likewise.
13159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13161 (spu_xfer_partial): Likewise.
13162 * spu-multiarch.c (spu_xfer_partial): Likewise.
13163 * tracepoint.c (tfile_xfer_partial): Likewise.
13164 * windows-nat.c (windows_xfer_memory): Likewise.
13165 (windows_xfer_shared_libraries): Likewise.
13166 (windows_xfer_partial): Likewise.
13167 * valprint.c: Replace 'target_xfer_error' with
13168 'target_xfer_status' in comments.
13170 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13172 Checked in by Joel Brobecker <brobecker@adacore.com>.
13173 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13175 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13177 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13178 function parameters.
13180 2014-02-10 Will Newton <will.newton@linaro.org>
13182 * elfread.c (elf_rel_plt_read): Look for a .got section if
13183 looking up .got.plt fails.
13184 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13185 on address passed to elf_gnu_ifunc_record_cache.
13186 (elf_gnu_ifunc_resolve_addr): Likewise.
13187 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13189 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13191 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13192 (X_RETTURN): New macro.
13193 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13195 * sparc64-tdep.c (sparc64_init_abi): Hook
13196 sparc_in_function_epilogue_p.
13198 2014-02-10 Gary Benson <gbenson@redhat.com>
13200 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13201 Rename name_matcher to symbol_matcher.
13203 2014-02-10 Gary Benson <gbenson@redhat.com>
13205 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13206 Use expand_symtabs_file_matcher_ftype and
13207 expand_symtabs_symbol_matcher_ftype.
13209 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13211 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13212 (struct ada_symbol_cache): New.
13213 (ada_free_symbol_cache): Forward declare.
13214 (struct ada_pspace_data): New.
13215 (ada_pspace_data_handle): New static global.
13216 (get_ada_pspace_data, ada_pspace_data_cleanup)
13217 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13218 (cache_space, cache): Delete, now folded inside struct
13220 (ada_get_symbol_cache): New function.
13221 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13223 (_initialize_ada_language): Remove initialization of cache_space.
13224 Move call to observer_attach_inferior_exit up, grouping it
13225 with the other observer registrations inside this function.
13226 Rename command to be more general. Add call to
13227 register_program_space_data_with_cleanup.
13229 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13231 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13232 ada_new_objfile_observer.
13233 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13234 (_initialize_tasks): Update uses of ada_new_objfile_observer
13235 and ada_tasks_normal_stop_observer.
13237 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13239 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13240 returned by the 'Length attribute to integer.
13242 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13244 * ada-lang.c (_initialize_ada_language): Initialize
13245 cache_space obstack.
13247 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13249 * ada-lang.c (HASH_SIZE): New macro.
13250 (struct cache_entry): New type.
13251 (cache_space, cache): New static globals.
13252 (ada_clear_symbol_cache, find_entry): New functions.
13253 (lookup_cached_symbol, cache_symbol): Implement.
13254 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13255 (_initialize_ada_language): Attach ada_new_objfile_observer
13256 and ada_free_objfile_observer.
13258 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13260 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13261 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13262 struct block * parameter.
13263 (ada_lookup_symbol_list_worker): Constify local variable "block".
13264 Remove cast which is no longer necessary.
13266 2014-02-10 Doug Evans <xdje42@gmail.com>
13268 Add Guile as an extension language.
13269 * NEWS: Mention Guile scripting.
13270 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13271 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13272 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13273 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13274 (CLIBS): Add GUILE_LIBS.
13275 (install-guile): New rule.
13276 (guile.o): New rule.
13277 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13278 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13279 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13280 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13281 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13282 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13283 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13284 * configure.ac: New option --with-guile.
13285 * configure: Regenerate.
13286 * config.in: Regenerate.
13287 * auto-load.c: Remove #include "python/python.h". Add #include
13288 "gdb/section-scripts.h".
13289 (source_section_scripts): Handle Guile scripts.
13290 (_initialize_auto_load): Add name of Guile objfile script to
13291 scripts-directory help text.
13292 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13293 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13294 (struct breakpoint): New member scm_bp_object.
13295 * defs.h (enum command_control_type): New value guile_control.
13296 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13298 (show_user): Update comment.
13299 (_initialize_cli_cmds): Update help text for "show user". Update help
13300 text for max-user-call-depth.
13301 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13303 (multi_line_command_p): Add guile_control.
13304 (print_command_lines): Handle guile_control.
13305 (execute_control_command, recurse_read_control_structure): Ditto.
13306 (process_next_line): Recognize "guile" commands.
13307 * disasm.c (gdb_disassemble_info): Make non-static.
13308 * disasm.h: #include "dis-asm.h".
13309 (struct gdbarch): Add forward decl.
13310 (gdb_disassemble_info): Declare.
13311 * extension.c: #include "guile/guile.h".
13312 (extension_languages): Add guile.
13313 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13314 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13315 * gdbtypes.c (get_unsigned_type_max): New function.
13316 (get_signed_type_minmax): New function.
13317 * gdbtypes.h (get_unsigned_type_max): Declare.
13318 (get_signed_type_minmax): Declare.
13319 * guile/README: New file.
13320 * guile/guile-internal.h: New file.
13321 * guile/guile.c: New file.
13322 * guile/guile.h: New file.
13323 * guile/scm-arch.c: New file.
13324 * guile/scm-auto-load.c: New file.
13325 * guile/scm-block.c: New file.
13326 * guile/scm-breakpoint.c: New file.
13327 * guile/scm-disasm.c: New file.
13328 * guile/scm-exception.c: New file.
13329 * guile/scm-frame.c: New file.
13330 * guile/scm-gsmob.c: New file.
13331 * guile/scm-iterator.c: New file.
13332 * guile/scm-lazy-string.c: New file.
13333 * guile/scm-math.c: New file.
13334 * guile/scm-objfile.c: New file.
13335 * guile/scm-ports.c: New file.
13336 * guile/scm-pretty-print.c: New file.
13337 * guile/scm-safe-call.c: New file.
13338 * guile/scm-string.c: New file.
13339 * guile/scm-symbol.c: New file.
13340 * guile/scm-symtab.c: New file.
13341 * guile/scm-type.c: New file.
13342 * guile/scm-utils.c: New file.
13343 * guile/scm-value.c: New file.
13344 * guile/lib/gdb.scm: New file.
13345 * guile/lib/gdb/boot.scm: New file.
13346 * guile/lib/gdb/experimental.scm: New file.
13347 * guile/lib/gdb/init.scm: New file.
13348 * guile/lib/gdb/iterator.scm: New file.
13349 * guile/lib/gdb/printing.scm: New file.
13350 * guile/lib/gdb/types.scm: New file.
13351 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13352 (VPATH): Add $(GUILE_SRCDIR).
13353 (GUILE_DIR): New variable.
13354 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13355 (all): Add stamp-guile dependency.
13356 (stamp-guile): New rule.
13357 (clean-guile, install-guile, uninstall-guile): New rules.
13358 (install-only): Add install-guile dependency.
13359 (uninstall): Add uninstall-guile dependency.
13360 (clean): Add clean-guile dependency.
13362 2014-02-09 Doug Evans <xdje42@gmail.com>
13364 Revert this patch (which I approved, mea culpa).
13366 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13368 * Makefile.in (all-lib): Remove.
13369 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13371 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13373 Fix Python stack corruption.
13374 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13377 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13379 * Makefile.in (all-lib): Remove.
13380 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13382 2014-02-07 Doug Evans <dje@google.com>
13384 * extension-priv.h (extension_language_script_ops): Add comment.
13385 (extension_language_ops): Add comment.
13386 (active_ext_lang_state): Fix typo in comment.
13388 2014-02-07 Pedro Alves <palves@redhat.com>
13390 PR breakpoints/16292
13391 * infrun.c (handle_signal_stop) <signal arrives while stepping
13392 over a breakpoint>: Switch back to the stepping thread.
13394 2014-02-07 Yao Qi <yao@codesourcery.com>
13396 * target.c (target_xfer_partial): Return zero if LEN is zero.
13398 2014-02-07 Yao Qi <yao@codesourcery.com>
13400 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13401 (ld_so_xfer_auxv): Likewise.
13402 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13403 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13404 * corelow.c (core_xfer_partial): Likewise.
13405 * ctf.c (ctf_xfer_partial): Likewise.
13406 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13407 (darwin_xfer_partial): Likewise.
13408 * exec.c (exec_xfer_partial): Likewise.
13409 * gnu-nat.c (gnu_xfer_partial): Likewise.
13410 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13411 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13412 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13413 * linux-nat.c (linux_xfer_siginfo): Likewise.
13414 (linux_proc_xfer_spu): Likewise.
13415 * procfs.c (procfs_xfer_partial): Likewise.
13416 * record-full.c (record_full_xfer_partial): Likewise.
13417 (record_full_core_xfer_partial): Likewise.
13418 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13419 * remote.c (remote_write_qxfer): Likewise.
13420 (remote_write_qxfer, remote_read_qxfer): Likewise.
13421 (remote_xfer_partial): Likewise.
13422 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13423 (rs6000_xfer_shared_libraries): Likewise.
13424 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13425 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13426 (spu_xfer_partial): Likewise.
13427 * target.c (memory_xfer_partial_1): Likewise.
13428 * tracepoint.c (tfile_xfer_partial): Likewise.
13429 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13430 (windows_xfer_partial): Likewise.
13432 2014-02-07 Yao Qi <yao@codesourcery.com>
13434 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13436 (core_xfer_shared_libraries_aix): Likewise.
13437 * gdbarch.c, gdbarch.h: Regenerated.
13438 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13439 ULONGEST. Change 'len_avail' type to ULONGEST.
13440 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13441 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13443 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13445 2014-02-07 Yao Qi <yao@codesourcery.com>
13447 * corefile.c (memory_error): Get 'exception' from ERR and pass
13448 'exception' to throw_error.
13450 2014-02-06 Doug Evans <xdje42@gmail.com>
13452 * configure.ac (libpython checking): Remove all but python.o from
13453 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13454 * configure: Regenerate.
13456 * Makefile.in (SFILES): Add extension.c.
13457 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13458 (COMMON_OBS): Add extension.o.
13459 * extension.h: New file.
13460 * extension-priv.h: New file.
13461 * extension.c: New file.
13463 * python/python-internal.h: #include "extension.h".
13464 (gdbpy_auto_load_enabled): Declare.
13465 (gdbpy_apply_val_pretty_printer): Declare.
13466 (gdbpy_apply_frame_filter): Declare.
13467 (gdbpy_preserve_values): Declare.
13468 (gdbpy_breakpoint_cond_says_stop): Declare.
13469 (gdbpy_breakpoint_has_cond): Declare.
13470 (void source_python_script_for_objfile): Delete.
13471 * python/python.c: #include "extension-priv.h".
13472 Delete inclusion of "observer.h".
13473 (extension_language_python): Moved here and renamed from
13474 script_language_python in py-auto-load.c.
13475 Redefined to be of type extension_language_defn.
13476 (python_extension_script_ops): New global.
13477 (python_extension_ops): New global.
13478 (struct python_env): New member previous_active.
13479 (restore_python_env): Call restore_active_ext_lang.
13480 (ensure_python_env): Call set_active_ext_lang.
13481 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13483 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13485 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13487 (gdbpy_eval_from_control_command): Renamed from
13488 eval_python_from_control_command, made static. New arg extlang.
13489 (gdbpy_source_script) Renamed from source_python_script, made static.
13491 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13492 result to int. New arg extlang.
13493 (gdbpy_source_objfile_script): Renamed from
13494 source_python_script_for_objfile, made static. New arg extlang.
13495 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13496 static. New args extlang, extlang_printers. Change result type to
13498 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13499 static. New arg extlang. Rename arg printers to extlang_printers
13500 and change type to ext_lang_type_printers *.
13501 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13502 static. Replace argument arg with extlang, extlang_printers.
13503 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13504 (!HAVE_PYTHON, source_python_script): Delete.
13505 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13506 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13507 (!HAVE_PYTHON, start_type_printers): Delete.
13508 (!HAVE_PYTHON, apply_type_printers): Delete.
13509 (!HAVE_PYTHON, free_type_printers): Delete.
13510 (_initialize_python): Delete call to observer_attach_before_prompt.
13511 (finalize_python): Set/restore active extension language.
13512 (gdbpy_finish_initialization) Renamed from
13513 finish_python_initialization, made static. New arg extlang.
13514 (gdbpy_initialized): New function.
13515 * python/python.h: #include "extension.h". Delete #include
13516 "value.h", "mi/mi-cmds.h".
13517 (extension_language_python): Declare.
13518 (GDBPY_AUTO_FILE_NAME): Delete.
13519 (enum py_bt_status): Moved to extension.h and renamed to
13520 ext_lang_bt_status.
13521 (enum frame_filter_flags): Moved to extension.h.
13522 (enum py_frame_args): Moved to extension.h and renamed to
13523 ext_lang_frame_args.
13524 (finish_python_initialization): Delete.
13525 (eval_python_from_control_command): Delete.
13526 (source_python_script): Delete.
13527 (apply_val_pretty_printer): Delete.
13528 (apply_frame_filter): Delete.
13529 (preserve_python_values): Delete.
13530 (gdbpy_script_language_defn): Delete.
13531 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13532 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13534 * auto-load.c: #include "extension.h".
13535 (GDB_AUTO_FILE_NAME): Delete.
13536 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13537 (script_language_gdb): Delete, moved to extension.c and renamed to
13538 extension_language_gdb.
13539 (source_gdb_script_for_objfile): Delete.
13540 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13541 (loaded_script): Change type of language member to
13542 struct extension_language_defn *.
13543 (init_loaded_scripts_info): Initialize
13544 unsupported_script_warning_printed.
13545 (maybe_add_script): Make static. Change type of language arg to
13546 struct extension_language_defn *.
13547 (clear_section_scripts): Reset unsupported_script_warning_printed.
13548 (auto_load_objfile_script_1): Rewrite to use extension language API.
13549 (auto_load_objfile_script): Make public. Remove support-compiled-in
13550 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13551 (source_section_scripts): Rewrite to use extension language API.
13552 (load_auto_scripts_for_objfile): Rewrite to use
13553 auto_load_scripts_for_objfile.
13554 (collect_matching_scripts_data): Change type of language member to
13555 struct extension_language_defn *.
13556 (auto_load_info_scripts): Change type of language arg to
13557 struct extension_language_defn *.
13558 (unsupported_script_warning_print): New function.
13559 (script_not_found_warning_print): Make static.
13560 (_initialize_auto_load): Rewrite construction of scripts-directory
13562 * auto-load.h (struct objfile): Add forward decl.
13563 (struct script_language): Delete.
13564 (struct auto_load_pspace_info): Add forward decl.
13565 (struct extension_language_defn): Add forward decl.
13566 (maybe_add_script): Delete.
13567 (auto_load_objfile_script): Declare.
13568 (script_not_found_warning_print): Delete.
13569 (auto_load_info_scripts): Update prototype.
13570 (auto_load_gdb_scripts_enabled): Declare.
13571 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13572 auto_load_python_scripts_enabled and made public.
13573 (script_language_python): Delete, moved to python.c.
13574 (gdbpy_script_language_defn): Delete.
13575 (info_auto_load_python_scripts): Update to use
13576 extension_language_python.
13578 * breakpoint.c (condition_command): Replace call to
13579 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13580 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13581 with call to breakpoint_ext_lang_cond_says_stop.
13582 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13583 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13584 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13585 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13587 (local_setattro): Print name of extension language with existing
13590 * valprint.c (val_print, value_print): Update to call
13591 apply_ext_lang_val_pretty_printer.
13592 * cp-valprint.c (cp_print_value): Update call to
13593 apply_ext_lang_val_pretty_printer.
13594 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13595 (gdbpy_apply_val_pretty_printer): Renamed from
13596 apply_val_pretty_printer. New arg extlang.
13597 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13599 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13600 extension language API.
13601 * cli/cli-script.c (execute_control_command): Update to call
13602 eval_ext_lang_from_control_command.
13604 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13605 enum ext_lang_bt_status values. Update call to
13606 apply_ext_lang_frame_filter.
13607 (mi_cmd_stack_list_locals): Ditto.
13608 (mi_cmd_stack_list_args): Ditto.
13609 (mi_cmd_stack_list_variables): Ditto.
13610 * mi/mi-main.c: Delete #include "python/python-internal.h".
13611 Add #include "extension.h".
13612 (mi_cmd_list_features): Replace reference to python internal variable
13613 gdb_python_initialized with call to ext_lang_initialized_p.
13615 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13616 Update to use enum ext_lang_frame_args. Update to call
13617 apply_ext_lang_frame_filter.
13618 * python/py-framefilter.c (extract_sym): Update to use enum
13619 ext_lang_bt_status.
13620 (extract_value, py_print_type, py_print_value): Ditto.
13621 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13622 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13623 (py_print_frame): Ditto.
13624 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13625 New arg extlang. Update to use enum ext_lang_bt_status.
13627 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13628 finish_python_initialization. Replace with call to
13629 finish_ext_lang_initialization.
13631 * typeprint.c (do_free_global_table): Update to call
13632 free_ext_lang_type_printers.
13633 (create_global_typedef_table): Update to call
13634 start_ext_lang_type_printers.
13635 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13636 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13637 (type_print_options): Change type of global_printers from "void *"
13638 to "struct ext_lang_type_printers *".
13640 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13641 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13642 (gdbpy_preserve_values): Renamed from preserve_python_values.
13644 (!HAVE_PYTHON, preserve_python_values): Delete.
13646 * utils.c (quit_flag): Delete, moved to extension.c.
13647 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13650 * eval.c: Delete #include "python/python.h".
13651 * main.c: Delete #include "python/python.h".
13653 * defs.h: Update comment.
13655 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13659 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13661 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13664 2014-02-05 Yao Qi <yao@codesourcery.com>
13666 * remote.c (remote_pass_signals): Remove local 'buf' and use
13668 (remote_program_signals): Likewise.
13670 2014-02-05 Yao Qi <yao@codesourcery.com>
13672 * ctf.c: Include "inferior.h" and "gdbthread.h".
13673 (CTF_PID): A new macro.
13674 (ctf_open): Call inferior_appeared and add_thread_silent.
13675 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13676 (ctf_thread_alive): New function.
13677 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13679 2014-02-05 Yao Qi <yao@codesourcery.com>
13683 2013-05-24 Yao Qi <yao@codesourcery.com>
13685 * tracepoint.c (TFILE_PID): Remove.
13686 (tfile_open): Don't add thread and inferior.
13687 (tfile_close): Don't set 'inferior_ptid'. Don't call
13688 exit_inferior_silent.
13689 (tfile_thread_alive): Remove.
13690 (init_tfile_ops): Don't set field 'to_thread_alive' of
13693 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13695 * remote.c (remote_start_remote): Call remote_check_symbols even
13696 if only symbol-file (not file) has been given.
13698 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13700 * gdbarch.sh (skip_entrypoint): New callback.
13701 * gdbarch.c, gdbarch.h: Regenerate.
13702 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13703 * infrun.c (fill_in_stop_func): Likewise.
13704 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13705 (ppc_elfv2_elf_make_msymbol_special): New function.
13706 (ppc_elfv2_skip_entrypoint): Likewise.
13707 (ppc_linux_init_abi): Install them for ELFv2.
13709 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13711 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13712 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13713 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13714 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13715 structures returned in GPRs.
13717 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13719 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13720 offset to the stack parameter list for the ELFv2 ABI.
13722 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13724 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13725 set_gdbarch_convert_from_func_ptr_addr and
13726 set_gdbarch_elf_make_msymbol_special for ELFv1.
13727 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13728 function descriptors on ELFv1.
13729 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13730 set up r12 at function entry.
13732 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13734 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13735 (struct gdbarch_tdep): New member elf_abi.
13737 * rs6000-tdep.c: Include "elf/ppc64.h".
13738 (rs6000_gdbarch_init): Detect ELF ABI version.
13740 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13742 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13743 within a register pair holding a DFP 128-bit value on little-endian.
13744 (ppc64_sysv_abi_return_value_base): Likewise.
13745 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13746 (dfp_pseudo_register_write): Likewise.
13748 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13751 offset on little-endian when passing _Decimal32.
13752 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13754 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13756 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13757 of the overlapped FP register within the VSX register on little-
13759 (efpr_pseudo_register_write): Likewise.
13761 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13764 offset on little-endian when passing small structures.
13766 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13768 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13769 (struct ppc64_sysv_argpos): New data structure.
13770 (ppc64_sysv_abi_push_float): Remove.
13771 (ppc64_sysv_abi_push_val): New function.
13772 (ppc64_sysv_abi_push_integer): Likewise.
13773 (ppc64_sysv_abi_push_freg): Likewise.
13774 (ppc64_sysv_abi_push_vreg): Likewise.
13775 (ppc64_sysv_abi_push_param): Likewise.
13776 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13777 (ppc64_sysv_abi_return_value_base): New function.
13778 (ppc64_sysv_abi_return_value): Refactor to use it.
13780 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13782 * NEWS: Document new target powerpc64le-*-linux*.
13784 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13786 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13787 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13789 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13790 register set used in ELF core dumps. Add floating-point register set.
13792 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13794 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13795 dwarf2_to_gdb[] table using symbolic constants. Adjust
13796 penultimate entry from number representing the PC register
13797 to symbolic constant representing the MDR register. Add
13798 constant for the PC register to the end of the table.
13800 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13802 * bsd-kvm.c: Include <sys/param.h>
13804 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13806 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13808 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13810 * ada-lang.h (clear_ada_sym_cache): Delete.
13812 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13814 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13816 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13818 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13819 the sigreturn register save area only if the syscall is
13822 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13824 * valops.c (value_slice): Minor reformatting.
13826 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13828 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13830 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13832 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13833 New static globals.
13834 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13835 (ada_ignore_descriptive_types_p): New static global.
13836 (find_parallel_type_by_descriptive_type): Return immediately
13837 if ada_ignore_descriptive_types_p is set.
13838 (_initialize_ada_language): Register new commands "maintenance
13839 set ada", "maintenance show ada", "maintenance set ada
13840 ignore-descriptive-types" and "maintenance show ada
13841 ignore-descriptive-types".
13842 * NEWS: Add entry for new "maint ada set/show
13843 ignore-descriptive-types" commands.
13845 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13847 * record-btrace.c (record_btrace_close): Call btrace_teardown
13850 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13852 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13855 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13857 * ada-typeprint (type_is_full_subrange_of_target_type):
13859 (print_range): Add parameter bounds_prefered_p. If not set,
13860 try printing range types using the name of their base type.
13861 (print_range_type): Add parameter bounds_prefered_p.
13862 Use it in call to print_range.
13863 (print_array_type, ada_print_type): Update calls to print_range
13864 and print_range_type.
13866 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13868 * ada-typeprint.c (print_array_type, print_choices, print_range)
13869 (print_range_bound, print_dynamic_range_bound, print_range_type):
13870 Remove declaration.
13872 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13874 * ada-typeprint.c (print_range): Add missing empty line
13875 after local declaration.
13877 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13879 * ada-valprint.c (print_optional_low_bound): Get index_type's
13880 target type for as long as it is a TYPE_CODE_RANGE.
13882 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13884 * procfs.c (procfs_make_note_section): Remove assertion and
13885 associated comment.
13887 2014-01-24 Yao Qi <yao@codesourcery.com>
13889 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13890 * corelow.c (get_core_siginfo): Likewise.
13892 2014-01-24 Yao Qi <yao@codesourcery.com>
13894 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13895 ULONGEST. Don't check 'len' is negative.
13896 (remote_write_bytes): Change type of 'len' to ULONGEST.
13898 2014-01-23 Tom Tromey <tromey@redhat.com>
13901 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13902 Handle exception from frame.block.
13903 (FrameVars.fetch_frame_locals): Likewise.
13905 2014-01-23 Tom Tromey <tromey@redhat.com>
13908 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13909 on a NULL pointer. Move "goto error" to correct place.
13911 2014-01-23 Tom Tromey <tromey@redhat.com>
13914 * python/py-framefilter.c (apply_frame_filter): Call
13915 ensure_python_env after computing gdbarch.
13917 2014-01-23 Yao Qi <yao@codesourcery.com>
13919 * target.c (raw_memory_xfer_partial): Change argument type
13920 from void * to gdb_byte *.
13921 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13923 2014-01-22 Doug Evans <dje@google.com>
13925 New gdbserver option --debug-format=timestamp.
13926 * NEWS: Mention it.
13928 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13930 * syscalls/s390x-linux.xml: New file.
13931 * syscalls/s390-linux.xml: New file.
13932 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13933 (XML_SYSCALL_FILENAME_S390X): Likewise.
13934 (op_svc): New enum value for SVC opcode.
13935 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13936 (s390_linux_get_syscall_number): New function.
13937 (s390_gdbarch_init): Register '*get_syscall_number' and the
13938 syscall xml file name.
13939 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13940 "s390-linux.xml" and "s390x-linux.xml".
13941 * NEWS: Announce new feature.
13943 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13945 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13947 2014-01-22 Pedro Alves <palves@redhat.com>
13949 * xtensa-config.c: Include defs.h.
13951 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13953 * common/common-utils.h: Add "ARI:" comment beside __func__
13956 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13958 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13959 documentation a bit.
13961 2014-01-21 Roland McGrath <mcgrathr@google.com>
13963 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13964 * configure: Regenerate.
13965 * aclocal.m4: Regenerate.
13966 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13967 New substituted variables.
13968 (install-strip): New target.
13969 (INSTALL_SCRIPT): New substituted variable.
13970 (FLAGS_TO_PASS): Add it.
13971 (install-only): Use $(INSTALL_SCRIPT) rather than
13972 $(INSTALL_PROGRAM) for gcore.
13974 2014-01-20 Tom Tromey <tromey@redhat.com>
13976 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13979 2014-01-20 Tom Tromey <tromey@redhat.com>
13981 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13982 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13983 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13984 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13985 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13986 (struct cmd_list_element) <flags>: Remove.
13987 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13988 doc_allocated>: New fields.
13989 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13991 * maint.c (maintenance_do_deprecate): Update.
13992 * top.c (execute_command): Update.
13994 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13996 * xtensa-linux-nat.c: Include asm/ptrace.h.
13998 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14000 * Makefile.in (SFILES): Add d-support.c.
14001 (COMMON_OBS): Add d-support.o.
14002 * d-lang.h (d_parse_symbol): Add comment, now defined in
14004 * d-lang.c (parse_call_convention)
14005 (parse_attributes, parse_function_types)
14006 (parse_function_args, parse_type, parse_identifier)
14007 (call_convention_p, d_parse_symbol): Move functions to ...
14008 * d-support.c: ... New file.
14010 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14012 * d-lang.h (d_parse_symbol): Add declaration.
14013 * d-lang.c (extract_identifiers)
14014 (extract_type_info): Remove functions.
14015 (parse_call_convention, parse_attributes)
14016 (parse_function_types, parse_function_args)
14017 (parse_type, parse_identifier, call_convention_p)
14018 (d_parse_symbol): New functions.
14019 (d_demangle): Use d_parse_symbol to demangle D symbols.
14021 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14023 * d-lang.h (struct builtin_d_type): New data type.
14024 (builtin_d_type): Add declaration.
14025 * d-lang.c (d_language_arch_info, build_d_types)
14026 (builtin_d_type): New functions.
14027 (enum d_primitive_types): New data type.
14028 (d_language_defn): Change c_language_arch_info to
14029 d_language_arch_info.
14030 (d_type_data): New static variable.
14031 (_initialize_d_language): Initialize d_type_data.
14033 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14035 * d-lang.h (d_main_name): Add declaration.
14036 * d-lang.c (d_main_name): New function.
14037 * symtab.c (find_main_name): Add call to d_main_name.
14039 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14041 * d-lang.c (d_language_defn): Change macro_expansion_c to
14042 macro_expansion_no.
14044 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14046 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14048 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14050 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14051 gdb_exception" declaration.
14052 * remote.c (getpkt_or_notif_sane): Likewise.
14054 2014-01-17 Doug Evans <dje@google.com>
14056 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14057 function, contents of dirnames_to_char_ptr_vec_append moved here.
14058 (delim_string_to_char_ptr_vec): New function.
14059 (dirnames_to_char_ptr_vec_append): Rewrite.
14060 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14062 2014-01-17 Doug Evans <dje@google.com>
14064 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14066 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14067 #include "common-utils.h".
14068 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14069 * common/vec.h (VEC_ASSERT_PASS): Update.
14070 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14071 (MACH_CHECK_ERROR): Update.
14073 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14075 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14077 * gdbarch.h: Regenerate.
14079 2014-01-16 Tom Tromey <tromey@redhat.com>
14081 * value.c (struct value) <regnum>: Move earlier.
14083 2014-01-16 Tom Tromey <tromey@redhat.com>
14085 * remote.c (extended_remote_create_inferior): Rename from
14086 extended_remote_create_inferior_1. Add "ops" argument. Remove
14087 old implementation.
14089 2014-01-16 Pedro Alves <palves@redhat.com>
14091 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14092 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14095 2014-01-16 Doug Evans <dje@google.com>
14097 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14099 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14101 * btrace.h (btrace_thread_flag): New.
14102 (struct btrace_thread_info) <flags>: New.
14103 * record-btrace.c (record_btrace_resume_thread)
14104 (record_btrace_find_thread_to_move, btrace_step_no_history)
14105 (btrace_step_stopped, record_btrace_start_replaying)
14106 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14107 (record_btrace_find_resume_thread): New.
14108 (record_btrace_resume, record_btrace_wait): Extend.
14109 (record_btrace_can_execute_reverse): New.
14110 (record_btrace_open): Fail in non-stop mode.
14111 (record_btrace_set_replay): Split into this, ...
14112 (record_btrace_stop_replaying): ... this, ...
14113 (record_btrace_clear_histories): ... and this.
14114 (init_record_btrace_ops): Init to_can_execute_reverse.
14115 * NEWS: Announce it.
14117 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14119 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14120 (forward_target_decr_pc_after_break)
14121 (target_decr_pc_after_break): New.
14122 * target.c (forward_target_decr_pc_after_break)
14123 (target_decr_pc_after_break): New.
14124 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14125 instead of gdbarch_decr_pc_after_break.
14126 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14127 instead of gdbarch_decr_pc_after_break.
14128 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14129 instead of gdbarch_decr_pc_after_break.
14130 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14131 instead of gdbarch_decr_pc_after_break.
14132 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14133 instead of gdbarch_decr_pc_after_break.
14134 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14135 instead of gdbarch_decr_pc_after_break.
14137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14139 * btrace.c: Include regcache.h.
14140 (btrace_add_pc): New.
14141 (btrace_enable): Call btrace_add_pc.
14142 (btrace_is_empty): New.
14143 * btrace.h (btrace_is_empty): New.
14144 * record-btrace.c (require_btrace, record_btrace_info): Call
14147 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14149 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14150 Support delta reads.
14151 (linux_disable_btrace): Change return type.
14152 * common/linux-btrace.h (linux_read_btrace): Change parameters
14153 and return type to allow error reporting. Update users.
14154 (linux_disable_btrace): Change return type. Update users.
14155 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14157 (btrace_error): New.
14158 (btrace_block) <begin>: Comment on BEGIN == 0.
14159 * btrace.c (btrace_compute_ftrace): Start from the end of
14161 (btrace_stitch_trace, btrace_clear_history): New.
14162 (btrace_fetch): Read delta trace, return if replaying.
14163 (btrace_clear): Move clear history code to btrace_clear_history.
14164 (parse_xml_btrace): Throw an error if parsing failed.
14165 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14166 and return type to allow error reporting.
14167 (target_read_btrace): Change parameters and return type to allow
14169 * target.c (target_read_btrace): Update.
14170 * remote.c (remote_read_btrace): Support delta reads. Pass
14172 * NEWS: Announce it.
14174 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14176 * record.h (record_btrace_frame_unwind)
14177 (record_btrace_tailcall_frame_unwind): New declarations.
14178 * dwarf2-frame: Include record.h
14179 (dwarf2_frame_cfa): Throw an error for btrace frames.
14180 * record-btrace.c: Include hashtab.h.
14181 (btrace_get_bfun_name): New.
14182 (btrace_call_history): Call btrace_get_bfun_name.
14183 (struct btrace_frame_cache): New.
14185 (bfcache_hash, bfcache_eq, bfcache_new): New.
14186 (btrace_get_frame_function): New.
14187 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14188 (record_btrace_frame_this_id): Compute own id.
14189 (record_btrace_frame_prev_register): Provide PC, throw_error
14190 for all other registers.
14191 (record_btrace_frame_sniffer): Detect btrace frames.
14192 (record_btrace_tailcall_frame_sniffer): New.
14193 (record_btrace_frame_dealloc_cache): New.
14194 (record_btrace_frame_unwind): Add new functions.
14195 (record_btrace_tailcall_frame_unwind): New.
14196 (_initialize_record_btrace): Allocate cache.
14197 * btrace.c (btrace_clear): Call reinit_frame_cache.
14198 * NEWS: Announce it.
14200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14202 * record-btrace.c (record_btrace_set_replay)
14203 (record_btrace_goto_begin, record_btrace_goto_end)
14204 (record_btrace_goto): New.
14205 (init_record_btrace_ops): Initialize them.
14206 * NEWS: Announce it.
14208 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14210 * record-btrace.c (record_btrace_find_new_threads)
14211 (record_btrace_thread_alive): New.
14212 (init_record_btrace_ops): Initialize to_find_new_threads and
14215 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14217 * record-btrace.c (record_btrace_resume): New.
14218 (record_btrace_wait): New.
14219 (init_record_btrace_ops): Initialize to_wait and to_resume.
14221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14223 * record-btrace.c (record_btrace_xfer_partial)
14224 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14225 (record_btrace_allow_memory_access): New.
14226 (init_record_btrace_ops): Initialize new methods.
14227 * target.c (raw_memory_xfer_partial): Bail out if target reports
14228 that this memory is not available.
14230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14232 * target.h (target_ops) <to_insert_breakpoint>
14233 <to_remove_breakpoint>: Add target_ops parameter.
14234 (forward_target_insert_breakpoint): New.
14235 (forward_target_remove_breakpoint): New.
14236 (memory_remove_breakpoint, memory_insert_breakpoint):
14237 Add target_ops parameter.
14238 * target.c (target_insert_breakpoint): Split into this and ...
14239 (forward_target_insert_breakpoint): ... this.
14240 (target_remove_breakpoint): Split into this and ...
14241 (forward_target_remove_breakpoint): ... this.
14242 (debug_to_insert_breakpoint): Add target_ops parameter.
14243 Call forward_target_insert_breakpoint.
14244 (debug_to_remove_breakpoint): Add target_ops parameter.
14245 Call forward_target_remove_breakpoint.
14246 (update_current_target): Do not inherit or default to_insert_breakpoint
14247 and to_remove_breakpoint.
14248 * corelow.c (ignore): Add target_ops parameter.
14249 * exec.c (ignore): Add target_ops parameter.
14250 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14251 Add target_ops parameter.
14252 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14253 Add target_ops parameter.
14254 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14255 Add target_ops parameter.
14256 * record-full.c (record_full_beneath_to_insert_breakpoint)
14257 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14258 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14259 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14260 (record_full_core_remove_breakpoint): Add target_ops parameter.
14262 (record_full_beneath_to_insert_breakpoint_ops)
14263 (record_full_beneath_to_remove_breakpoint_ops)
14264 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14265 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14266 tmp_to_remove_breakpoint_ops,
14267 record_full_beneath_to_insert_breakpoint_ops, and
14268 record_full_beneath_to_remove_breakpoint_ops.
14269 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14270 (m32r_remove_breakpoint): Add target_ops parameter.
14271 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14272 Add target_ops parameter.
14273 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14274 Add target_ops parameter.
14276 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14277 Markus Metzger <markus.t.metzger@intel.com>
14279 * record-btrace.c: Include frame-unwind.h.
14280 (record_btrace_frame_unwind_stop_reason)
14281 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14282 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14284 (init_record_btrace_ops): Install it.
14286 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14288 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14291 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14293 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14296 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14298 * frame-unwind.c: Include target.h.
14299 (frame_unwind_try_unwinder): New function with code from ...
14300 (frame_unwind_find_by_frame): ... here. New variable
14301 unwinder_from_target, call also target_get_unwinder)
14302 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14303 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14304 * target.h (struct target_ops): New fields to_get_unwinder and
14305 to_get_tailcall_unwinder.
14306 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14310 * record-btrace.c (record_btrace_fetch_registers)
14311 (record_btrace_store_registers)
14312 (record_btrace_to_prepare_to_store): New.
14313 (init_record_btrace_ops): Add the above.
14315 2014-01-16 Tom Tromey <tromey@redhat.com>
14317 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14318 * target.h (struct target_ops) <to_prepare_to_store>: Add
14320 (target_prepare_to_store): Add argument.
14321 * target.c (debug_to_prepare_to_store): Add argument.
14322 (update_current_target): Update.
14323 * remote.c (remote_prepare_to_store): Add 'self' argument.
14324 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14325 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14326 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14327 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14329 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14330 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14331 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14332 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14333 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14337 * btrace.h (replay) <replay>: New.
14338 (btrace_is_replaying): New.
14339 * btrace.c (btrace_clear): Free replay iterator.
14340 (btrace_is_replaying): New.
14341 * record-btrace.c (record_btrace_is_replaying): New.
14342 (record_btrace_info): Print insn number if replaying.
14343 (record_btrace_insn_history): Start at replay position.
14344 (record_btrace_call_history): Start at replay position.
14345 (init_record_btrace_ops): Init to_record_is_replaying.
14347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14349 * record-btrace.c (record_btrace_insn_history_range): Include
14351 (record_btrace_insn_history_from): Adjust range.
14352 (record_btrace_call_history_range): Include
14354 (record_btrace_call_history_from): Adjust range.
14355 * NEWS: Announce changes.
14357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14359 * record.h (enum record_print_flag)
14360 <record_print_indent_calls>: New.
14361 * record.c (get_call_history_modifiers): Recognize /c modifier.
14362 (_initialize_record): Document /c modifier.
14363 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14364 Reorder fields. Optionally indent the function name. Update
14366 * NEWS: Announce changes.
14368 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14370 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14374 * btrace.c (ftrace_new_function): Start counting at one.
14375 * record-btrace.c (record_btrace_info): Adjust number of calls
14377 * NEWS: Announce it.
14379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14381 * record-btrace.c (btrace_call_history_insn_range): Print
14382 insn range as [begin, end].
14384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14386 * btrace.h (struct btrace_func_link): New.
14387 (enum btrace_function_flag): New.
14388 (struct btrace_inst): Rename to ...
14389 (struct btrace_insn): ...this. Update all users.
14390 (struct btrace_func) <ibegin, iend>: Remove.
14391 (struct btrace_func_link): New.
14392 (struct btrace_func): Rename to ...
14393 (struct btrace_function): ...this. Update all users.
14394 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14395 (number, level, flags>: New.
14396 (struct btrace_insn_iterator): Rename to ...
14397 (struct btrace_insn_history): ...this.
14399 (struct btrace_insn_iterator, btrace_call_iterator): New.
14400 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14401 (struct btrace_target_info) <begin, end, level>
14402 <insn_history, call_history>: New.
14403 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14404 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14405 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14406 (btrace_call_number, btrace_call_begin, btrace_call_end)
14407 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14408 (btrace_find_function_by_number, btrace_set_insn_history)
14409 (btrace_set_call_history): New.
14410 * btrace.c (btrace_init_insn_iterator)
14411 (btrace_init_func_iterator, compute_itrace): Remove.
14412 (ftrace_print_function_name, ftrace_print_filename)
14413 (ftrace_skip_file): Change
14414 parameter to const.
14415 (ftrace_init_func): Remove.
14416 (ftrace_debug): Use new btrace_function fields.
14417 (ftrace_function_switched): Also consider gaining and
14418 losing symbol information).
14419 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14420 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14421 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14423 (ftrace_new_function): Move. Remove debug print.
14424 (ftrace_update_lines, ftrace_update_insns): New.
14425 (ftrace_update_function): Check for call, ret, and jump.
14426 (compute_ftrace): Renamed to ...
14427 (btrace_compute_ftrace): ...this. Rewritten to compute call
14429 (btrace_fetch, btrace_clear): Updated.
14430 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14431 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14432 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14433 (btrace_call_number, btrace_call_begin, btrace_call_end)
14434 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14435 (btrace_find_function_by_number, btrace_set_insn_history)
14436 (btrace_set_call_history): New.
14437 * record-btrace.c (require_btrace): Use new btrace thread
14439 (record_btrace_info, btrace_insn_history)
14440 (record_btrace_insn_history, record_btrace_insn_history_range):
14441 Use new btrace thread info fields and new iterator.
14442 (btrace_func_history_src_line): Rename to ...
14443 (btrace_call_history_src_line): ...this. Use new btrace
14444 thread info fields.
14445 (btrace_func_history): Rename to ...
14446 (btrace_call_history): ...this. Use new btrace thread info
14447 fields and new iterator.
14448 (record_btrace_call_history, record_btrace_call_history_range):
14449 Use new btrace thread info fields and new iterator.
14451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14453 * frame.h (frame_id_build_unavailable_stack_special): New.
14454 * frame.c (frame_id_build_unavailable_stack_special): New.
14456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14458 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14459 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14460 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14462 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14463 (i386_insn_is_jump, i386_jmp_p): New.
14464 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14465 insn_is_jump to gdbarch.
14466 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14467 * gdbarch.h: Regenerated.
14468 * gdbarch.c: Regenerated.
14469 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14470 (default_insn_is_jump): New.
14471 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14472 (default_insn_is_jump): New.
14474 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14476 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14478 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14479 (btrace_read_type) <btrace_read_new>: Change to ...
14480 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14482 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14484 * common/linux-btrace.c (linux_read_btrace): Free trace from
14485 previous iteration.
14487 2014-01-15 Doug Evans <dje@google.com>
14489 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14492 2014-01-15 Tom Tromey <tromey@redhat.com>
14494 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14495 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14496 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14497 (set_objfile_main_name): New function.
14498 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14499 language_of_main>: New fields.
14500 (set_objfile_main_name): Declare.
14501 * symtab.c (find_main_name): Loop over objfiles to find the main
14503 (set_main_name): Now static.
14504 (get_main_info): Add comment.
14505 * symtab.h (set_main_name): Don't declare.
14507 2014-01-15 Tom Tromey <tromey@redhat.com>
14509 * symtab.c (main_progspace_key): New global.
14510 (struct main_info): New.
14511 (name_of_main, language_of_main): Remove.
14512 (get_main_info, main_info_cleanup): New function.
14513 (set_main_name, main_name, main_language): Use get_main_info.
14514 (_initialize_symtab): Initialize main_progspace_key.
14516 2014-01-15 Tom Tromey <tromey@redhat.com>
14518 * dbxread.c (process_one_symbol): Update.
14519 * dwarf2read.c (read_partial_die): Update.
14520 * symfile.c (set_initial_language): Call main_language.
14521 * symtab.c (language_of_main): Now static.
14522 (set_main_name): Add 'lang' parameter.
14523 (find_main_name): Update.
14524 (main_language): New function.
14525 (symtab_observer_executable_changed): Update.
14526 * symtab.h (set_main_name): Update.
14527 (language_of_main): Remove.
14528 (main_language): Declare.
14530 2014-01-15 Tom Tromey <tromey@redhat.com>
14532 * symfile.c (init_entry_point_info): Use new "initialized" field.
14534 * objfiles.h (struct entry_point) <initialized>: New field.
14535 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14536 (struct objfile) <ei>: ...here. Remove.
14537 * objfiles.c (entry_point_address_query): Update.
14539 2014-01-15 Tom Tromey <tromey@redhat.com>
14541 * objfiles.c (entry_point_address_query): Relocate entry point
14543 (objfile_relocate1): Do not relocate entry point address.
14544 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14545 <the_bfd_section_index>: New field.
14546 * symfile.c (init_entry_point_info): Find the entry point's
14549 2014-01-15 Tom Tromey <tromey@redhat.com>
14551 * solib-frv.c (enable_break): Use entry_point_address_query.
14553 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14555 * NEWS: Add note on improved process record-replay on
14556 arm*-linux* targets.
14558 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14560 * arm-tdep.c (enum arm_record_result): New enum.
14561 (arm_record_unsupported_insn): New function.
14562 (arm_record_coproc_data_proc): Removed.
14563 (thumb2_record_ld_st_multiple): New function.
14564 (thumb2_record_ld_st_dual_ex_tbb): New function.
14565 (thumb2_record_data_proc_sreg_mimm): New function.
14566 (thumb2_record_ps_dest_generic): New function.
14567 (thumb2_record_branch_misc_cntrl): New function.
14568 (thumb2_record_str_single_data): New function.
14569 (thumb2_record_ld_mem_hints): New function.
14570 (thumb2_record_ld_word): New function.
14571 (thumb2_record_lmul_lmla_div): New function.
14572 (thumb2_record_decode_insn_handler): New function.
14573 (decode_insn): Add thumb32 instruction handlers.
14575 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14577 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14578 (struct arm_linux_record_tdep): Declare.
14579 (arm_canonicalize_syscall): New function.
14580 (arm_all_but_pc_registers_record): New function.
14581 (arm_linux_syscall_record): New function.
14582 (arm_linux_init_abi): Add syscall recording constructs.
14583 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14584 decoding. (arm_record_coproc_data_proc): Update arm syscall
14586 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14587 <arm_syscall_record>: New field.
14588 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14591 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14593 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14594 register for push instruction recording.
14596 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14598 * arm-tdep.c (thumb_record_misc): Update to correct logical
14599 error while recording ldm, ldmia and pop instructions.
14601 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14603 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14605 2014-01-15 Pedro Alves <palves@redhat.com>
14607 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14608 (go32_resume, go32_fetch_registers, store_register)
14609 (go32_store_registers, go32_prepare_to_store)
14610 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14611 (go32_create_inferior, go32_can_run, go32_terminal_init)
14612 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14615 2014-01-15 Tom Tromey <tromey@redhat.com>
14617 * target.h (async_callback_ftype): New typedef.
14618 (struct target_ops) <to_async>: Use it.
14620 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14622 * python/py-value.c (get_field_type): Remove unnecessary curly
14623 braces for single-statement if block.
14625 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14627 * python/py-type.c (convert_field): Add missing empty line
14628 after declarations.
14630 2014-01-14 Doug Evans <dje@google.com>
14632 * symfile.h (expand_symtabs_matching): Renamed from
14633 expand_partial_symbol_names. Update prototype.
14634 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14635 * symfile.c (expand_symtabs_matching): Renamed from
14636 expand_partial_symbol_names. New args file_matcher, kind.
14637 Rename arg fun to symbol_matcher.
14638 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14639 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14640 ada_expand_partial_symbol_name.
14641 (ada_make_symbol_completion_list): Update to call
14642 expand_symtabs_matching.
14643 (ada_add_global_exceptions): Call expand_symtabs_matching.
14644 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14645 call map_symbol_filenames.
14646 * symtab.c (sources_info): Update to call map_symbol_filenames.
14647 (search_symbols): Call expand_symtabs_matching.
14648 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14649 (default_make_symbol_completion_list_break_on): Update to call
14650 expand_symtabs_matching.
14651 (make_source_files_completion_list): Update to call
14652 map_symbol_filenames.
14654 2014-01-14 Doug Evans <dje@google.com>
14656 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14657 (expand_symtabs_symbol_matcher_ftype): New typedef.
14658 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14659 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14660 * symfile.c (expand_partial_symbol_names): Update to use
14661 expand_symtabs_symbol_matcher_ftype.
14662 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14663 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14664 Arg name_matcher renamed to symbol_matcher.
14665 * psymtab.c (recursively_search_psymtabs): Update to use
14666 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14668 (expand_symtabs_matching_via_partial): Update to use
14669 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14670 Arg name_matcher renamed to symbol_matcher.
14672 2014-01-14 Doug Evans <dje@google.com>
14674 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14675 (map_partial_symbol_filenames): Ditto.
14676 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14677 (map_partial_symbol_filenames): Ditto.
14678 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14679 (map_partial_symbol_filenames): Ditto.
14680 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14681 (map_partial_symbol_filenames): Ditto.
14682 * symtab.c: Delete #include "psymtab.h".
14684 2014-01-14 Pedro Alves <palves@redhat.com>
14685 Tom Tromey <tromey@redhat.com>
14687 * infrun.c (use_displaced_stepping): Use find_record_target
14688 instead of RECORD_IS_USED.
14689 (adjust_pc_after_break): Use record_full_is_used instead of
14691 * record-btrace.c (record_btrace_open): Call record_preopen
14692 instead of checking RECORD_IS_USED.
14693 * record-full.c (record_full_shortname)
14694 (record_full_core_shortname): New globals.
14695 (record_full_is_used): New function.
14696 (find_full_open): Call record_preopen instead of checking
14698 (init_record_full_ops): Set the target's shortname to
14699 record_full_shortname.
14700 (init_record_full_core_ops): Set the target's shortname to
14701 record_full_core_shortname.
14702 * record-full.h (record_full_is_used): Declare.
14703 * record.c (find_record_target): Make extern.
14704 (record_preopen): New function.
14705 * record.h (RECORD_IS_USED): Delete macro.
14706 (find_record_target, record_preopen): Declare functions.
14708 2014-01-14 Yao Qi <yao@codesourcery.com>
14710 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14711 'len''s type to ULONGEST.
14712 (core_xfer_shared_libraries_aix): Likewise.
14713 * gdbarch.c, gdbarch.h: Regenerated.
14714 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14715 Change type of 'len' to ULONGEST.
14716 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14717 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14719 2014-01-14 Yao Qi <yao@codesourcery.com>
14721 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14722 type of 'len' to ULONGEST.
14723 (linux_xfer_osdata_processgroups): Likewise.
14724 (linux_xfer_osdata_threads): Likewise.
14725 (linux_xfer_osdata_fds): Likewise.
14726 (linux_xfer_osdata_isockets): Likewise.
14727 (linux_xfer_osdata_shm): Likewise.
14728 (linux_xfer_osdata_sem): Likewise.
14729 (linux_xfer_osdata_msg): Likewise.
14730 (linux_common_xfer_osdata): Likewise.
14731 (struct osdata_type) <getter>: Likewise.
14732 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14735 2014-01-14 Yao Qi <yao@codesourcery.com>
14737 * target.h (target_xfer_partial_ftype): Update.
14738 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14740 * aix-thread.c (aix_thread_xfer_partial): Change type of
14741 argument 'len' to ULONGEST.
14742 * auxv.c (procfs_xfer_auxv): Likewise.
14743 (ld_so_xfer_auxv): Likewise.
14744 (memory_xfer_auxv): Likewise.
14745 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14746 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14747 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14748 * corelow.c (core_xfer_partial): Likewise.
14749 * ctf.c (ctf_xfer_partial): Likewise.
14750 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14752 (darwin_read_dyld_info): Likewise.
14753 (darwin_xfer_partial): Likewise.
14754 * exec.c (section_table_xfer_memory_partial): Likewise.
14755 (exec_xfer_partial): Likewise.
14756 * exec.h (section_table_xfer_memory_partial): Update
14758 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14759 instead of plongest.
14760 (gnu_xfer_partial): Likewise.
14761 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14762 (ia64_hpux_xfer_solib_got): Likewise.
14763 (ia64_hpux_xfer_partial): Likewise.
14764 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14765 * inf-ptrace.c (inf_ptrace_xfer_partial):
14766 * inf-ttrace.c (inf_ttrace_xfer_partial):
14767 * linux-nat.c (linux_xfer_siginfo): Likewise.
14768 (linux_nat_xfer_partial): Likewise.
14769 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14770 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14771 * monitor.c (monitor_xfer_memory): Likewise.
14772 (monitor_xfer_partial): Likewise.
14773 * procfs.c (procfs_xfer_partial): Likewise.
14774 * record-full.c (record_full_xfer_partial): Likewise.
14775 (record_full_core_xfer_partial): Likewise.
14776 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14777 instead of plongest.
14778 (gdbsim_xfer_partial): Likewise.
14779 * remote.c (remote_xfer_partial): Likewise.
14780 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14781 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14783 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14784 (rs6000_xfer_shared_libraries): Likewise.
14785 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14786 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14787 (sparc_xfer_partial): Likewise.
14788 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14789 (spu_xfer_partial): Likewise.
14790 * spu-multiarch.c (spu_xfer_partial): Likewise.
14791 * target.c (target_read_live_memory): Likewise.
14792 (memory_xfer_live_readonly_partial): Likewise.
14793 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14794 (target_xfer_partial, default_xfer_partial): Likewise.
14795 (current_xfer_partial): Likewise.
14796 * tracepoint.c (tfile_xfer_partial): Likewise.
14797 * windows-nat.c (windows_xfer_memory): Likewise. Call
14798 pulongest instead of plongest.
14799 (windows_xfer_partial): Likewise.
14800 (windows_xfer_shared_libraries): Likewise.
14802 2014-01-14 Yao Qi <yao@codesourcery.com>
14804 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14805 target_xfer_partial_ftype.
14807 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14811 * valops.c (value_struct_elt_bitpos): New function
14812 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14813 object to 'None' if the field name is an empty string ("").
14814 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14815 attribute to look for a field when 'name' is 'None'.
14816 (get_field_type): New function
14818 2014-01-13 Doug Evans <dje@google.com>
14821 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14822 (try_open_dwop_file): Ditto.
14823 * gdb_bfd.c: #include "vec.h".
14824 (bfdp): New typedef.
14825 (struct gdb_bfd_data): New member included_bfds.
14826 (gdb_bfd_unref): Unref all included bfds.
14827 (gdb_bfd_record_inclusion): New function.
14828 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14830 2014-01-13 Tom Tromey <tromey@redhat.com>
14832 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14834 2014-01-13 Tom Tromey <tromey@redhat.com>
14836 * defs.h (use_windows): Remove.
14837 * gdb.c (main): Update.
14838 * main.c (captured_main, gdb_main): Update.
14839 * main.h (struct captured_main_args) <use_windows>: Remove.
14840 * top.c (use_windows): Remove.
14842 2014-01-13 Tom Tromey <tromey@redhat.com>
14844 * defs.h (deprecated_flush_hook): Remove.
14846 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14849 * linux-thread-db.c (try_thread_db_load): Add parameter
14850 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14851 (try_thread_db_load_from_pdir_1): Move it there from here.
14852 (try_thread_db_load_from_sdir): Update caller.
14853 (try_thread_db_load_from_dir): Move it there from here.
14855 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14857 * regformats/regdat.sh: Always rewrite the register file.
14859 2014-01-13 Pedro Alves <palves@redhat.com>
14861 * Makefile.in (CHECK_HEADERS): New variable.
14862 (check-headers:): New rule.
14864 2014-01-13 Tom Tromey <tromey@redhat.com>
14866 * cli/cli-setshow.c (do_set_command): Update.
14867 * defs.h (deprecated_set_hook): Remove.
14868 * top.c (deprecated_set_hook): Remove.
14870 2014-01-13 Pedro Alves <palves@redhat.com>
14872 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14873 the tracepoint if the PC is a pseudo-register.
14875 2014-01-13 Tom Tromey <tromey@redhat.com>
14877 * defs.h (XCALLOC): Remove.
14878 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14879 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14880 * dwarf2loc.c (allocate_piece_closure): Likewise.
14881 * elfread.c (elf_symfile_segments): Likewise.
14882 (elf_symfile_segments): Likewise.
14883 * gdbtypes.c (copy_type_recursive): Likewise.
14884 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14885 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14886 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14888 * mt-tdep.c (mt_gdbarch_init): Likewise.
14889 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14891 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14892 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14893 * registry.c (registry_alloc_data): Likewise.
14894 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14895 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14896 * serial.c (serial_fdopen_ops): Likewise.
14897 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14899 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14900 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14903 2014-01-13 Tom Tromey <tromey@redhat.com>
14905 * defs.h (XMALLOC): Remove.
14906 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14907 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14908 * cli-out.c (struct ui_out *): Likewise.
14909 * cli/cli-dump.c (add_dump_command): Likewise.
14910 (add_dump_command): Likewise.
14911 * complaints.c (get_complaints): Likewise.
14912 (find_complaint): Likewise.
14913 * dwarf2-frame.c (execute_cfa_program): Likewise.
14914 * dwarf2read.c (abbrev_table_read_table): Likewise.
14915 * gdbarch.sh: Likewise.
14916 * gdbarch.c: Rebuild.
14917 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14918 * interps.c (interp_new): Likewise.
14919 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14920 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14921 * mi/mi-console.c (mi_console_file_new): Likewise.
14922 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14923 * mi/mi-out.c (mi_out_new): Likewise.
14924 * mi/mi-parse.c (mi_parse): Likewise.
14925 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14926 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14927 * observer.c (xalloc_observer_list_node): Likewise.
14928 * regcache.c (regcache_xmalloc_1): Likewise.
14929 * reggroups.c (reggroup_new): Likewise.
14930 (_initialize_reggroup): Likewise.
14931 * registry.c (register_data_with_cleanup): Likewise.
14932 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14933 * ser-base.c (serial_ttystate): Likewise.
14934 * ser-mingw.c (make_pipe_state): Likewise.
14935 * ser-pipe.c (pipe_open): Likewise.
14936 * serial.c (serial_open): Likewise.
14937 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14938 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14939 (tui_alloc_win_info): Likewise.
14940 (tui_add_content_elements): Likewise.
14941 * tui/tui-file.c (tui_file_new): Likewise.
14942 * tui/tui-out.c (tui_out_new): Likewise.
14943 * ui-file.c (mem_file_new): Likewise.
14944 * ui-out.c (push_level): Likewise.
14945 (make_cleanup_ui_out_end): Likewise.
14946 (append_header_to_list): Likewise.
14947 (ui_out_new): Likewise.
14948 * user-regs.c (user_reg_add_builtin): Likewise.
14950 2014-01-13 Tom Tromey <tromey@redhat.com>
14952 * defs.h (XZALLOC): Remove.
14953 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14954 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14955 (get_ada_tasks_inferior_data): Likewise.
14956 * auto-load.c (get_auto_load_pspace_data): Likewise.
14957 * auxv.c (get_auxv_inferior_data): Likewise.
14958 * bfd-target.c (target_bfd_reopen): Likewise.
14959 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14960 (deprecated_insert_raw_breakpoint): Likewise.
14961 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14962 * corelow.c (core_open): Likewise.
14963 * darwin-nat.c (darwin_check_new_threads): Likewise.
14964 (darwin_attach_pid): Likewise.
14965 * dummy-frame.c (dummy_frame_push): Likewise.
14966 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14967 * dwarf2loc.c (allocate_piece_closure): Likewise.
14968 * elfread.c (elf_symfile_segments): Likewise.
14969 * eval.c (ptrmath_type_p): Likewise.
14970 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14971 * gdbtypes.c (alloc_type_arch): Likewise.
14972 (alloc_type_instance): Likewise.
14973 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14974 * inf-child.c (inf_child_can_use_agent): Likewise.
14975 * inflow.c (get_inflow_inferior_data): Likewise.
14976 * infrun.c (save_infcall_suspend_state): Likewise.
14977 * jit.c (jit_reader_load): Likewise.
14978 (get_jit_objfile_data): Likewise.
14979 (get_jit_program_space_data): Likewise.
14980 (jit_object_open_impl): Likewise.
14981 (jit_symtab_open_impl): Likewise.
14982 (jit_block_open_impl): Likewise.
14983 (jit_frame_sniffer): Likewise.
14984 * linux-fork.c (add_fork): Likewise.
14985 * maint.c (make_command_stats_cleanup): Likewise.
14986 * objfiles.c (get_objfile_pspace_data): Likewise.
14987 * opencl-lang.c (struct lval_closure): Likewise.
14988 * osdata.c (osdata_start_osdata): Likewise.
14989 * progspace.c (new_address_space): Likewise.
14990 (add_program_space): Likewise.
14991 * remote-sim.c (get_sim_inferior_data): Likewise.
14992 * sh-tdep.c (sh_gdbarch_init): Likewise.
14993 * skip.c (Ignore): Likewise.
14994 (skip_delete_command): Likewise.
14995 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14996 (library_list_start_library): Likewise.
14997 (solib_aix_current_sos): Likewise.
14998 * solib-darwin.c (get_darwin_info): Likewise.
14999 (darwin_current_sos): Likewise.
15000 * solib-dsbt.c (get_dsbt_info): Likewise.
15001 * solib-ia64-hpux.c (new_so_list): Likewise.
15002 (ia64_hpux_get_solib_linkage_addr): Likewise.
15003 * solib-spu.c (append_ocl_sos): Likewise.
15004 (spu_current_sos): Likewise.
15005 * solib-svr4.c (get_svr4_info): Likewise.
15006 (svr4_keep_data_in_core): Likewise.
15007 (library_list_start_library): Likewise.
15008 (svr4_default_sos): Likewise.
15009 (svr4_read_so_list): Likewise.
15010 * solib-target.c (library_list_start_library): Likewise.
15011 (solib_target_current_sos): Likewise.
15012 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15013 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15014 * symfile.c (default_symfile_segments): Likewise.
15015 * target-descriptions.c (tdesc_data_init): Likewise.
15016 (tdesc_create_reg): Likewise.
15017 (struct tdesc_type *): Likewise.
15018 (tdesc_create_vector): Likewise.
15019 (tdesc_set_struct_size): Likewise.
15020 (struct tdesc_type *): Likewise.
15021 (tdesc_free_feature): Likewise.
15022 (tdesc_create_feature): Likewise.
15023 * windows-nat.c (windows_add_thread): Likewise.
15024 (windows_make_so): Likewise.
15025 * xml-support.c (gdb_xml_body_text): Likewise.
15026 (gdb_xml_create_parser_and_cleanup): Likewise.
15027 (xml_process_xincludes): Likewise.
15028 * xml-syscall.c (allocate_syscalls_info): Likewise.
15029 (syscall_create_syscall_desc): Likewise.
15031 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15033 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15034 function, with code from i386_stap_parse_special_token.
15035 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15036 (i386_stap_parse_special_token): Move code to the two functions
15037 above; simplify it.
15039 2014-01-09 Pedro Alves <palves@redhat.com>
15040 Hui Zhu <hui@codesourcery.com>
15043 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15044 bp_err_string. Don't mark the location shlib_disabled if the
15045 error thrown wasn't a generic or memory error. Catch errors
15046 thrown while inserting breakpoints in overlayed code. Output
15047 error message of software breakpoints.
15048 * remote.c (remote_insert_breakpoint): If this breakpoint has
15049 target-side commands but this stub doesn't support Z0 packets,
15050 throw NOT_SUPPORTED_ERROR error.
15051 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15052 * target.h (target_insert_breakpoint): Extend comment.
15053 (target_insert_hw_breakpoint): Add comment.
15055 2014-01-08 Pedro Alves <palves@redhat.com>
15057 * remote.c (remote_add_thread): Add threads silently if starting
15059 (remote_notice_new_inferior): If in all-stop, and starting up,
15060 don't call notice_new_inferior.
15061 (get_current_thread): New function, factored out from ...
15062 (add_current_inferior_and_thread): ... this. Adjust.
15063 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15064 found any thread, then select the remote's current thread as GDB's
15065 current thread too.
15067 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15069 * NEWS: Create a new section for the next release branch.
15070 Rename the section of the current branch, now that it has
15073 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15075 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15076 * version.in: Bump version to 7.7.50.DATE-cvs.
15078 2014-01-08 Yao Qi <yao@codesourcery.com>
15080 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15081 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15082 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15084 2014-01-08 Yao Qi <yao@codesourcery.com>
15086 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15087 return value of bfd_get_filename to symbol_file_add_from_bfd.
15089 2014-01-08 Pierre Muller <muller@sourceware.org>
15092 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15093 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15094 to prim_record_mininal_symbol_and_info.
15095 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15096 in call to prim_record_minimal_symbol_and_info.
15097 (read_pe_exported_syms): Set index field of section_data.
15099 2014-01-07 Andrew Pinski <apinski@cavium.com>
15101 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15102 * features/aarch64.c: Regenerate.
15104 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15106 * target.c (return_null): Define.
15107 (update_current_target): Use it instead of return_zero for
15108 functions that return a pointer.
15110 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15112 * source.c (add_path): Fix check for duplicated paths in the previously
15115 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15117 * ada-lang.c: Remove duplicated include statements.
15118 * alphabsd-nat.c: Ditto.
15119 * amd64-darwin-tdep.c: Ditto.
15120 * amd64fbsd-nat.c: Ditto.
15121 * auto-load.c: Ditto.
15123 * breakpoint.c: Ditto.
15124 * dbxread.c: Ditto.
15125 * fork-child.c: Ditto.
15126 * gdb_usleep.c: Ditto.
15127 * i386-darwin-tdep.c: Ditto.
15128 * i386fbsd-nat.c: Ditto.
15130 * inferior.c: Ditto.
15131 * jv-lang.c: Ditto.
15132 * linux-nat.c: Ditto.
15133 * linux-tdep.c: Ditto.
15134 * m68kbsd-nat.c: Ditto.
15135 * m68klinux-nat.c: Ditto.
15136 * microblaze-tdep.c: Ditto.
15137 * mips-linux-tdep.c: Ditto.
15138 * mn10300-tdep.c: Ditto.
15139 * nto-tdep.c: Ditto.
15140 * opencl-lang.c: Ditto.
15142 * printcmd.c: Ditto.
15143 * regcache.c: Ditto.
15144 * remote-m32r-sdi.c: Ditto.
15146 * symfile.c: Ditto.
15148 * tilegx-linux-nat.c: Ditto.
15149 * tilegx-tdep.c: Ditto.
15150 * tracepoint.c: Ditto.
15152 * vaxbsd-nat.c: Ditto.
15153 * windows-nat.c: Ditto.
15154 * xtensa-tdep.c: Ditto.
15156 2014-01-07 Yao Qi <yao@codesourcery.com>
15158 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15160 2014-01-07 Yao Qi <yao@codesourcery.com>
15161 Joel Brobecker <brobecker@adacore.com>
15163 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15164 (pdc_write_regs): Likewise.
15165 (fetch_regs_kernel_thread): Likewise.
15166 (store_regs_kernel_thread): Likewise.
15168 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15170 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15171 tagged type objects to their actual type.
15173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15175 * ada-valprint.c (print_field_values): Add "language" parameter.
15176 Update calls to print_field_values and print_variant_part.
15177 Pass new parameter "language" in call to val_print instead
15178 of "current_language". Replace call to ada_val_print by call
15180 (print_variant_part): Add "language" parameter.
15181 (ada_val_print_struct_union): Update call to print_field_values.
15183 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15185 * ada-valprint.c (ui_memcpy): Delete.
15186 (ada_print_floating): Update documentation. Add empty line
15187 between between function documentation and implementation.
15188 Delete variable "buffer". Use ui_file_xstrdup in place of
15189 ui_file_put. Minor adjustments following this change.
15191 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15193 * ada-valprint.c (ada_val_print_string): New function,
15194 extracted from ada_val_print_array.
15195 (ada_val_print_array): Replace extracted code by call
15196 to ada_val_print_string followed by a return. Move
15197 "else" branch to the function's top block.
15199 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15201 * ada-valprint.c (ada_val_print_array): Move implementation
15202 down. Rename parameter "offset" and "val" into "offset_aligned"
15203 and "original_value" respectively. Add parameter "offset".
15205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15207 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15208 re-organizing the code. Change the "???" message printed
15209 when target type is a TYPE_CODE_UNDEF into
15210 "<ref to undefined type>".
15212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15214 * ada-valprint.c (print_record): Delete, implementation inlined...
15215 (ada_val_print_struct_union): ... here. Remove call to
15216 ada_check_typedef in inlined implementation.
15218 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15220 * ada-valprint.c (ada_val_print_gnat_array): New function,
15221 extracted from ada_val_print_1;
15222 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15223 (ada_val_print_flt, ada_val_print_struct_union)
15224 (ada_val_print_ref): Likewise.
15225 (ada_val_print_1): Delete variables i and elttype.
15226 Replace extracted-out code by call to corresponding
15229 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15231 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15233 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15235 * ada-valprint.c (ada_val_print_1): Replace calls to
15236 ada_val_print_1 by calls to val_print.
15238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15240 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15241 Update calls to self accordingly. Replace calls to c_val_print
15242 by calls to val_print.
15244 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15246 * ada-valprint.c (print_record): Delete declaration.
15247 (adjust_type_signedness, ada_val_print_1): Likewise.
15248 (ada_val_print): Move function implementation down.
15249 (print_variant_part, print_field_values, print_record):
15250 Move function implementation up.
15252 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15254 * python/py-type.c (typy_get_name): New function.
15255 (type_object_getset): Add entry for attribute "name".
15256 * NEWS: Add entry mentioning this new attribute.
15258 2014-01-07 Yao Qi <yao@codesourcery.com>
15260 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15263 2014-01-07 Yao Qi <yao@codesourcery.com>
15265 * gnu-nat.c (info_port_rights): Add qualifier const to
15268 2014-01-07 Yao Qi <yao@codesourcery.com>
15270 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15272 2014-01-07 Yao Qi <yao@codesourcery.com>
15274 * gnu-nat.c (make_inf) Update declaration.
15275 (make_inf): Make it static.
15276 (inf_set_traced): Likewise.
15277 (inf_port_to_thread, inf_task_died_status): Likewise.
15279 2014-01-07 Yao Qi <yao@codesourcery.com>
15281 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15283 2014-01-07 Yao Qi <yao@codesourcery.com>
15285 * gnu-nat.c (_initialize_gnu_nat): Declare.
15287 2014-01-07 Yao Qi <yao@codesourcery.com>
15289 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15291 (struct gdbarch_info) <byte_order>: Change type to
15293 <byte_order_for_code>: Likewise.
15294 * gdbarch.c, gdbarch.h: Regenerated.
15296 2014-01-06 Sasha Smundak <asmundak@google.com>
15298 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15300 2014-01-06 Tom Tromey <tromey@redhat.com>
15302 * doublest.c (convert_doublest_to_floatformat): Use const, not
15304 * somread.c (som_symtab_read): Likewise.
15306 2014-01-07 Hui Zhu <hui@codesourcery.com>
15308 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15309 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15310 (gdb_bfd_fopen): Ditto.
15311 (gdb_bfd_openr): Ditto.
15312 (gdb_bfd_openw): Ditto.
15313 (gdb_bfd_openr_iovec): Ditto.
15314 (gdb_bfd_fdopenr): Ditto.
15315 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15316 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15318 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15320 * symfile-mem.c (symbol_file_add_from_memory): Removed
15321 gdb_bfd_stash_filename.
15323 2014-01-03 Doug Evans <dje@google.com>
15325 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15328 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15330 Update year range in copyright notice of all files.
15332 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15334 * top.c (print_gdb_version): Set copyright year to 2014.
15336 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15338 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15340 For older changes see ChangeLog-2013.
15346 version-control: never