1 2014-11-21 Yao Qi <yao@codesourcery.com>
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): 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 * common/common-defs.h: Include alloca.h
12 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
13 * configure: Re-generated.
14 * defs.h: Remove code handling alloca.
15 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
18 2014-11-21 Yao Qi <yao@codesourcery.com>
20 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
22 * gnulib/import/Makefile.am: Re-generated.
23 * gnulib/import/Makefile.in: Likewise..
24 * gnulib/import/m4/gnulib-cache.m4: Likewise.
26 2014-11-21 Yao Qi <yao@codesourcery.com>
28 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
31 2014-11-21 Joel Brobecker <brobecker@adacore.com>
33 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
34 flag_unsigned if HIGH_BOUND is constant and negative.
36 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
39 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
40 modifier from "struct gdbarch" when compiling without Expat (XML)
42 (get_syscall_by_number): Likewise.
43 (get_syscall_by_name): Likewise.
44 (get_syscall_names): Likewise.
46 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
49 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
50 set_xml_syscall_file_name to provide gdbarch.
51 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
52 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
53 * breakpoint.c (print_it_catch_syscall): Adjust call to
54 get_syscall_by_number to provide gdbarch.
55 (print_one_catch_syscall): Likewise.
56 (print_mention_catch_syscall): Likewise.
57 (print_recreate_catch_syscall): Likewise.
58 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
59 and get_syscall_by_name to provide gdbarch.
60 (catch_syscall_completer): Adjust call to get_syscall_names to
62 * gdbarch.c: Regenerate.
63 * gdbarch.h: Likewise.
64 * gdbarch.sh: Forward declare "struct syscalls_info".
65 (xml_syscall_file): New variable.
66 (syscalls_info): Likewise.
67 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
68 set_xml_syscall_file_name to provide gdbarch.
69 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
70 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
71 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
72 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
73 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
74 * xml-syscall.c: Include gdbarch.h.
75 (set_xml_syscall_file_name): Accept gdbarch parameter.
76 (get_syscall_by_number): Likewise.
77 (get_syscall_by_name): Likewise.
78 (get_syscall_names): Likewise.
79 (my_gdb_datadir): Delete global variable.
80 (struct syscalls_info) <my_gdb_datadir>: New variable.
81 (struct syscalls_info) <sysinfo>: Rename variable to
83 (sysinfo): Delete global variable.
84 (have_initialized_sysinfo): Likewise.
85 (xml_syscall_file): Likewise.
86 (sysinfo_free_syscalls_desc): Rename to...
87 (syscalls_info_free_syscalls_desc): ... this.
88 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
89 code to the new layout of "struct syscalls_info".
90 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
92 (syscall_create_syscall_desc): Likewise.
93 (syscall_start_syscall): Likewise.
94 (syscall_parse_xml): Likewise.
95 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
96 (init_sysinfo): Rename to...
97 (init_syscalls_info): ...this. Add gdbarch as a parameter.
98 Adjust function to deal with gdbarch.
99 (xml_get_syscall_number): Delete parameter sysinfo. Accept
100 gdbarch as a parameter. Adjust code.
101 (xml_get_syscall_name): Likewise.
102 (xml_list_of_syscalls): Likewise.
103 (set_xml_syscall_file_name): Accept gdbarch as parameter.
104 (get_syscall_by_number): Likewise.
105 (get_syscall_by_name): Likewise.
106 (get_syscall_names): Likewise.
107 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
108 (get_syscall_by_number): Likewise.
109 (get_syscall_by_name): Likewise.
110 (get_syscall_names): Likewise.
112 2014-11-20 Doug Evans <xdje42@gmail.com>
114 Split struct symtab into two: struct symtab and compunit_symtab.
115 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
116 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
117 to "struct compunit_symtab *". All callers updated.
118 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
119 "struct symtab *" argument to "struct compunit_symtab *".
121 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
122 result to "struct compunit_symtab *". All callers updated.
123 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
124 Change result to "struct compunit_symtab *". All callers updated.
125 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
126 hange type to "struct compunit_symtab *". All uses updated.
127 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
128 Change type to "struct compunit_symtab *". All uses updated.
129 * buildsym.c (struct buildsym_compunit): New struct.
130 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
131 (buildsym_compunit): New static global.
132 (finish_block_internal): Update to fetch objfile from
134 (make_blockvector): Delete objfile argument.
135 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
136 debugformat, producer.
137 (start_buildsym_compunit): New function.
138 (free_buildsym_compunit): Renamed from free_subfiles_list.
140 (patch_subfile_names): Rewrite to use buildsym_compunit.
141 (get_compunit_symtab): New function.
142 (get_macro_table): Delete argument comp_dir. All callers updated.
143 (start_symtab): Change result to "struct compunit_symtab *".
144 All callers updated. Create the subfile of the main source file.
145 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
146 (reset_symtab_globals): Update.
147 (end_symtab_get_static_block): Update to use buildsym_compunit.
148 (end_symtab_without_blockvector): Rewrite.
149 (end_symtab_with_blockvector): Change result to
150 "struct compunit_symtab *". All callers updated.
151 Update to use buildsym_compunit. Don't set symtab->dirname,
152 instead set it in the compunit.
153 Explicitly make sure main symtab is first in its list.
154 Set debugformat, producer, blockvector, block_line_section, and
155 macrotable in the compunit.
156 (end_symtab_from_static_block): Change result to
157 "struct compunit_symtab *". All callers updated.
158 (end_symtab, end_expandable_symtab): Ditto.
159 (set_missing_symtab): Change symtab argument to
160 "struct compunit_symtab *". All callers updated.
161 (augment_type_symtab): Ditto.
162 (record_debugformat): Update to use buildsym_compunit.
163 (record_producer): Update to use buildsym_compunit.
164 * buildsym.h (struct subfile) <dirname>: Delete.
165 <producer, debugformat>: Delete.
166 <buildsym_compunit>: New member.
167 (get_compunit_symtab): Declare.
168 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
169 from primary_symtab. Change type to "struct compunit_symtab *".
171 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
173 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
174 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
175 symtab. Change type to "struct compunit_symtab *". All uses updated.
176 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
178 (dw2_find_last_source_symtab): Ditto.
179 (dw2_lookup_symbol): Ditto.
180 (recursively_find_pc_sect_compunit_symtab): Renamed from
181 recursively_find_pc_sect_symtab. Change result to
182 "struct compunit_symtab *". All callers updated.
183 (dw2_find_pc_sect_compunit_symtab): Renamed from
184 dw2_find_pc_sect_symtab. Change result to
185 "struct compunit_symtab *". All callers updated.
186 (get_compunit_symtab): Renamed from get_symtab. Change result to
187 "struct compunit_symtab *". All callers updated.
188 (recursively_compute_inclusions): Change type of immediate_parent
189 argument to "struct compunit_symtab *". All callers updated.
190 (compute_compunit_symtab_includes): Renamed from
191 compute_symtab_includes. All callers updated. Rewrite to compute
192 includes of compunit_symtabs and not symtabs.
193 (process_full_comp_unit): Update to work with struct compunit_symtab.
194 (process_full_type_unit): Ditto.
195 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
196 (dwarf_decode_lines): Remove special case handling of main subfile.
197 (macro_start_file): Delete argument comp_dir. All callers updated.
198 (dwarf_decode_macro_bytes): Ditto.
199 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
200 use struct compunit_symtab.
201 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
202 * jit.c (finalize_symtab): Build compunit_symtab.
203 * jv-lang.c (get_java_class_symtab): Change result to
204 "struct compunit_symtab *". All callers updated.
205 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
206 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
207 comp_dir. Change type to "struct compunit_symtab *".
209 (new_macro_table): Change comp_dir argument to cust,
210 "struct compunit_symtab *". All callers updated.
211 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
212 nr_primary_symtabs. All uses updated.
213 (count_symtabs_and_blocks): Update to handle compunits.
214 (report_command_stats): Update output, "primary symtabs" renamed to
216 * mdebugread.c (new_symtab): Change result to
217 "struct compunit_symtab *". All callers updated.
218 (parse_procedure): Change type of search_symtab argument to
219 "struct compunit_symtab *". All callers updated.
220 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
222 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
223 symtabs. Change type to "struct compunit_symtab *". All uses updated.
224 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
226 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
228 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
229 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
230 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
231 symtab. Change type to "struct compunit_symtab *". All uses updated.
232 * psymtab.c (psymtab_to_symtab): Change result type to
233 "struct compunit_symtab *". All callers updated.
234 (find_pc_sect_compunit_symtab_from_partial): Renamed from
235 find_pc_sect_symtab_from_partial. Change result type to
236 "struct compunit_symtab *". All callers updated.
237 (lookup_symbol_aux_psymtabs): Change result type to
238 "struct compunit_symtab *". All callers updated.
239 (find_last_source_symtab_from_partial): Ditto.
240 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
241 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
242 and macro_table from compunit.
243 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
244 type to "struct compunit_symtab *". All callers updated.
245 (debug_qf_lookup_symbol): Ditto.
246 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
247 debug_qf_find_pc_sect_symtab, change result type to
248 "struct compunit_symtab *". All callers updated.
249 * symfile.c (allocate_symtab): Delete objfile argument.
251 (allocate_compunit_symtab): New function.
252 (add_compunit_symtab_to_objfile): New function.
253 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
254 Change result type to "struct compunit_symtab *". All uses updated.
255 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
256 Change result type to "struct compunit_symtab *". All uses updated.
257 * symmisc.c (print_objfile_statistics): Compute blockvector count in
259 (dump_symtab_1): Update test for primary source symtab.
260 (maintenance_info_symtabs): Update to handle compunit symtabs.
261 (maintenance_check_symtabs): Ditto.
262 * symtab.c (set_primary_symtab): Delete.
263 (compunit_primary_filetab): New function.
264 (compunit_language): New function.
265 (iterate_over_some_symtabs): Change type of arguments "first",
266 "after_last" to "struct compunit_symtab *". All callers updated.
267 Update to loop over symtabs in each compunit.
268 (error_in_psymtab_expansion): Rename symtab argument to cust,
269 and change type to "struct compunit_symtab *". All callers updated.
270 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
271 Change result type to "struct compunit_symtab *". All callers updated.
272 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
273 Change result type to "struct compunit_symtab *". All callers updated.
274 (find_pc_sect_line): Only loop over symtabs within selected compunit
275 instead of all symtabs in the objfile.
276 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
277 <compunit_symtab> New member.
278 <block_line_section>: Moved to compunit_symtab.
279 <locations_valid>: Ditto.
280 <epilogue_unwind_valid>: Ditto.
281 <macro_table>: Ditto.
283 <debugformat>: Ditto.
286 <call_site_htab>: Ditto.
290 (SYMTAB_COMPUNIT): New macro.
291 (SYMTAB_BLOCKVECTOR): Update definition.
292 (SYMTAB_OBJFILE): Update definition.
293 (SYMTAB_DIRNAME): Update definition.
294 (struct compunit_symtab): New type. Common members among all source
295 symtabs within a compilation unit moved here. All uses updated.
296 (COMPUNIT_OBJFILE): New macro.
297 (COMPUNIT_FILETABS): New macro.
298 (COMPUNIT_DEBUGFORMAT): New macro.
299 (COMPUNIT_PRODUCER): New macro.
300 (COMPUNIT_DIRNAME): New macro.
301 (COMPUNIT_BLOCKVECTOR): New macro.
302 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
303 (COMPUNIT_LOCATIONS_VALID): New macro.
304 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
305 (COMPUNIT_CALL_SITE_HTAB): New macro.
306 (COMPUNIT_MACRO_TABLE): New macro.
307 (ALL_COMPUNIT_FILETABS): New macro.
308 (compunit_symtab_ptr): New typedef.
309 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
311 2014-11-20 Joel Brobecker <brobecker@adacore.com>
313 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
314 if the TYPE_CODE of range_type's base type does not match
315 the TYPE_CODE of encoding_type's base type.
317 2014-11-19 Joel Brobecker <brobecker@adacore.com>
319 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
322 2014-11-19 Joel Brobecker <brobecker@adacore.com>
324 * ada-lang.c (ada_is_redundant_range_encoding): New function.
325 (ada_is_redundant_index_type_desc): New function.
326 (to_fixed_array_type): Ignore parallel XA type if redundant.
328 2014-11-19 Joel Brobecker <brobecker@adacore.com>
330 * ada-lang.c (constrained_packed_array_type): Set the length
331 of the return array as if both bounds where zero if that
332 returned array's index type is dynamic.
334 2014-11-19 Yao Qi <yao@codesourcery.com>
336 * config/i386/go32.mh (CC): Remove.
338 2014-11-18 Doug Evans <xdje42@gmail.com>
340 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
343 2014-11-18 Doug Evans <xdje42@gmail.com>
345 * buildsym.c (buildsym_objfile): New static global.
346 (buildsym_comp_dir): New static global.
347 (finish_block_internal): Delete arg objfile. All callers updated.
348 (finish_block): Delete arg objfile. All callers updated.
349 (start_subfile): Delete arg dirname. All callers updated.
350 (patch_subfile_names): Update buildsym_comp_dir.
351 (get_macro_table): Delete arg objfile. All callers updated.
352 (start_symtab): New arg objfile. All callers updated.
353 Rename arg dirname to comp_dir.
354 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
355 (end_symtab_get_static_block): Delete arg objfile. All callers
357 (end_symtab_without_blockvector): Ditto.
358 (end_symtab_with_blockvector): Ditto.
359 (end_symtab_from_static_block): Ditto.
361 (end_expandable_symtab): Ditto.
362 (augment_type_symtab): Ditto.
363 * coffread.c (coff_start_symtab): New arg objfile. All callers
366 2014-11-18 Doug Evans <xdje42@gmail.com>
368 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
371 2014-11-18 Doug Evans <xdje42@gmail.com>
373 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
374 symtab.dirname updated to use it.
376 2014-11-18 Doug Evans <xdje42@gmail.com>
378 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
379 symtab.objfile updated to use it.
381 2014-11-18 Doug Evans <xdje42@gmail.com>
383 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
385 2014-11-18 Doug Evans <xdje42@gmail.com>
387 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
389 * findvar.c (default_read_var_value): Ditto.
390 * jv-lang.c (add_class_symtab_symbol): Ditto.
391 * parse.c (operator_check_standard): Ditto.
392 * printcmd.c (address_info): Ditto.
393 * symtab.c (fixup_symbol_section): Ditto.
394 (skip_prologue_sal): Ditto.
395 * tracepoint.c (scope_info): Ditto.
396 * valops.c (find_function_in_inferior): Ditto.
397 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
398 * python/py-symbol.c (set_symbol): Ditto.
400 2014-11-18 Doug Evans <xdje42@gmail.com>
402 * buildsym.c (main_subfile): New static global.
403 (free_subfiles_list): New function.
404 (start_symtab): Set main_subfile.
405 (restart_symtab): Replace init of subfiles, current_subfile with
406 call to free_subfiles_list.
407 (watch_main_source_file_lossage): Use main_subfile.
408 (reset_symtab_globals): Replace init of current_subfile with call
409 to free_subfiles_list.
410 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
411 functions, split out from ...
412 (end_symtab_from_static_block): ... here. Rewrite to call them.
414 2014-11-18 Doug Evans <xdje42@gmail.com>
416 The result of symtab expansion is always a primary symtab.
417 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
418 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
419 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
420 (psymtab_to_symtab): Add comment and assert.
421 (map_matching_symbols_psymtab): Remove unnecessary test for
424 2014-11-15 Doug Evans <xdje42@gmail.com>
427 * symtab.c (find_pc_line_symtab): New function.
428 * symtab.h (find_pc_line_symtab): Declare.
429 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
431 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
432 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
433 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
434 * tui/tui-win.c (make_visible_with_new_height): Ditto.
435 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
436 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
438 2014-11-15 Doug Evans <xdje42@gmail.com>
440 * symtab.c (expand_symtab_containing_pc): Renamed from
441 find_pc_sect_symtab_via_partial. All callers updated.
443 2014-11-15 Yao Qi <yao@codesourcery.com>
445 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
447 2014-11-14 Joel Brobecker <brobecker@adacore.com>
449 * common/common-defs.h: Move <stdarg.h> #include ahead of
452 2014-11-14 Pedro Alves <palves@redhat.com>
454 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
455 [!PHONY_ICONV] (gdb_iconv): New function.
456 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
458 2014-11-13 Doug Evans <dje@google.com>
461 * dwarf2read.c (find_slot_in_mapped_hash): Handle
462 "(anonymous namespace)".
464 2014-11-13 Doug Evans <dje@google.com>
466 * dwarf2read.c (update_enumeration_type_from_children): Avoid
469 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
471 * NEWS (maint set target-async): Fix typo.
473 2014-11-12 Pedro Alves <palves@redhat.com>
475 * infrun.c (enum infwait_states, infwait_state): Delete.
477 2014-11-12 Pedro Alves <palves@redhat.com>
479 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
480 Rewrite stepping over a permanent breakpoint.
481 (thread_still_needs_step_over, proceed): Don't set
482 stepping_over_breakpoint for permanent breakpoints.
483 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
484 single-step breakpoints out of the target on hardware step
486 (process_event_stop_test): If stepping a permanent breakpoint
487 doesn't hit the step-resume breakpoint, delete the step-resume
489 (switch_back_to_stepped_thread): Also check if the stepped thread
490 has advanced already on hardware step targets.
491 (currently_stepping): Return true if the thread stepped a
494 2014-11-12 Pedro Alves <palves@redhat.com>
496 Mark locations as permanent, not the whole breakpoint.
497 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
498 (mark_breakpoints_out): Don't mark permanent breakpoints as
500 (breakpoint_init_inferior): Use mark_breakpoints_out.
501 (breakpoint_here_p): Adjust.
502 (bpstat_stop_status, describe_other_breakpoints): Remove handling
503 of permanent breakpoints.
504 (make_breakpoint_permanent): Mark each location as permanent,
505 instead of marking the breakpoint.
506 (add_location_to_breakpoint): If the location is permanent, mark
507 it as such, and as inserted.
508 (init_breakpoint_sal): Don't make the breakpoint permanent here.
509 (bp_location_compare, update_global_location_list): Adjust.
510 (update_breakpoint_locations): Don't make the breakpoint permanent
512 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
514 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
515 (struct bp_location) <permanent>: New field.
516 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
517 reference to bp_permanent.
519 2014-11-12 Pedro Alves <palves@redhat.com>
521 * arch-utils.c (default_skip_permanent_breakpoint): New function.
522 * arch-utils.h (default_skip_permanent_breakpoint): New
524 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
525 Install default_skip_permanent_breakpoint as default method.
526 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
527 (i386_gdbarch_init): Don't install it.
528 * infrun.c (resume): Assume there's always a
529 gdbarch_skip_permanent_breakpoint implementation.
530 * gdbarch.h, gdbarch.c: Regenerate.
532 2014-11-11 Daniel Colascione <dancol@dancol.org>
534 Warn about cross-PID-namespace debugging.
535 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
536 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
537 * linux-thread-db.c (check_pid_namespace_match): New function.
538 (thread_db_inferior_created): Call it.
540 2014-11-10 Doug Evans <xdje42@gmail.com>
542 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
543 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
545 2014-11-10 Doug Evans <xdje42@gmail.com>
547 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
549 2014-11-10 Doug Evans <xdje42@gmail.com>
552 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
553 (lookup_static_symbol): Move definition to new location and rewrite.
554 (lookup_symbol_in_objfile): New function.
555 (lookup_symbol_global_iterator_cb): Call it.
557 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
559 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
561 2014-11-07 Pedro Alves <palves@redhat.com>
563 * infrun.c (process_event_stop_test) <subroutine check>: Don't
564 check if we did a "nexti" inside a prologue.
565 * symtab.c (in_prologue): Delete function.
566 * symtab.h (in_prologue): Delete declaration.
568 2014-11-06 Doug Evans <xdje42@gmail.com>
570 * symtab.h (lookup_global_symbol): Improve function comment.
572 2014-11-06 Doug Evans <xdje42@gmail.com>
574 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
576 * symtab.h (lookup_global_symbol): Update decl.
577 (lookup_static_symbol): Move decl to better location.
579 2014-11-06 Doug Evans <xdje42@gmail.com>
581 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
583 2014-11-06 Doug Evans <xdje42@gmail.com>
585 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
587 (lookup_symbol_in_all_objfiles): Renamed from
588 lookup_symbol_aux_symtabs. All callers updated.
589 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
591 (lookup_symbol_in_objfile_symtabs): Renamed from
592 lookup_symbol_aux_objfile. All callers updated.
594 2014-11-06 Doug Evans <xdje42@gmail.com>
596 * symtab.c (lookup_symbol_in_block): Renamed from
597 lookup_symbol_aux_block. All callers updated.
599 2014-11-06 Doug Evans <xdje42@gmail.com>
601 * symtab.c (lookup_static_symbol): Renamed from
602 lookup_static_symbol_aux. All callers updated.
603 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
606 2014-11-06 Doug Evans <xdje42@gmail.com>
608 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
609 * block.c (block_lookup_symbol): Use it.
610 * cp-support.c (make_symbol_overload_list_block): Use it.
611 * symtab.c (iterate_over_symbols): Use it.
613 2014-11-06 Doug Evans <xdje42@gmail.com>
615 * symtab.c (lookup_block_symbol): Moved to ...
616 * block.c (block_lookup_symbol): ... here and renamed.
618 * block.h (block_lookup_symbol): Declare.
619 * symtab.h (lookup_block_symbol): Delete.
621 2014-11-06 Doug Evans <xdje42@gmail.com>
623 * ada-lang.c (ada_make_symbol_completion_list): Use
624 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
625 * symtab.c (lookup_objfile_from_block): Ditto.
627 2014-11-06 Doug Evans <xdje42@gmail.com>
629 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
632 2014-11-06 Doug Evans <xdje42@gmail.com>
634 * objfiles.c (get_objfile_arch): Constify.
635 * objfiles.h (get_objfile_arch): Update prototype.
636 * solib.c (solib_global_lookup): Fetch arch from objfile,
639 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
641 * nios2-tdep.c (wild_insn): Delete.
642 (profiler_insn, irqentry_insn): Delete.
643 (nios2_match_sequence): Delete.
644 (nios2_analyze_prologue): Update comments. Remove matching
645 of obsolete profiler_insn and irqentry_insn sequences.
647 2014-11-05 Alan Modra <amodra@gmail.com>
649 * charset.c (convert_between_encodings): Shrink obstack using
651 * minsyms.c (install_minimal_symbols): Likewise.
652 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
653 to char* before doing pointer arithmetic.
655 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
657 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
659 2014-11-04 Pedro Alves <palves@redhat.com>
661 * breakpoint.c (breakpoint_thread_match): Delete function.
662 * breakpoint.h (breakpoint_thread_match): Delete declaration.
664 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
667 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
668 the method args also under EVAL_SKIP when evaluating method
669 calls under EVAL_SKIP.
671 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
673 * dwarf2loc.c (read_pieced_value): Do big endian
674 processing only if gdb_regnum is not -1.
675 (write_pieced_value): Ditto.
677 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
679 * arm-linux-tdep.c (arm_linux_init_abi): Use
680 info.byte_order_for_code to choose endianity of breakpoint
681 instructions snippets.
683 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
685 * arm-tdep.c (extract_arm_insn): Use
686 gdbarch_byte_order_for_code to read arm instruction.
688 2014-11-02 Doug Evans <xdje42@gmail.com>
690 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
692 2014-11-02 Doug Evans <xdje42@gmail.com>
694 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
695 main_subfile before returning.
697 2014-10-31 Doug Evans <xdje42@gmail.com>
699 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
700 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
702 2014-10-31 Doug Evans <xdje42@gmail.com>
704 * valops.c (value_cast_pointers): Fix whitespace.
705 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
708 2014-10-30 Doug Evans <dje@google.com>
710 * NEWS: Mention ability add attributes to gdb.Objfile and
711 gdb.Progspace objects.
712 * python/py-objfile.c (objfile_object): New member dict.
713 (objfpy_dealloc): Py_XDECREF dict.
714 (objfpy_initialize): Initialize dict.
715 (objfile_getset): Add __dict__.
716 (objfile_object_type): Set tp_dictoffset member.
717 * python/py-progspace.c (progspace_object): New member dict.
718 (pspy_dealloc): Py_XDECREF dict.
719 (pspy_initialize): Initialize dict.
720 (pspace_getset): Add __dict__.
721 (pspace_object_type): Set tp_dictoffset member.
723 2014-10-30 Yao Qi <yao@codesourcery.com>
725 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
726 replace '\\' with '\\\\'.
728 2014-10-29 Joel Brobecker <brobecker@adacore.com>
732 2014-10-29 Pedro Alves <palves@redhat.com>
735 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
736 instead of assuming a thread with a stepping range is always
739 2014-10-29 Pedro Alves <palves@redhat.com>
742 * event-top.c (change_line_handler): Call
743 gdb_rl_callback_handler_remove instead of
744 rl_callback_handler_remove.
745 (callback_handler_installed): New global.
746 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
747 (gdb_rl_callback_handler_reinstall): New functions.
748 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
749 gdb_rl_callback_handler_install instead of
750 rl_callback_handler_remove and rl_callback_handler_install.
751 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
752 instead of rl_callback_handler_remove.
753 * event-top.h (gdb_rl_callback_handler_remove)
754 (gdb_rl_callback_handler_install)
755 (gdb_rl_callback_handler_reinstall): New declarations.
756 * infrun.c (reinstall_readline_callback_handler_cleanup): New
758 (fetch_inferior_event): Install it.
759 * top.c (gdb_readline_wrapper_line) Call
760 gdb_rl_callback_handler_remove instead of
761 rl_callback_handler_remove.
762 (gdb_readline_wrapper_cleanup): Don't call
763 rl_callback_handler_install.
765 2014-10-29 Pedro Alves <palves@redhat.com>
767 * event-top.c (command_line_handler): Clear the first byte of
768 linebuffer, when it is first allocated.
770 2014-10-29 Pedro Alves <palves@redhat.com>
772 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
775 2014-10-29 Pedro Alves <palves@redhat.com>
779 * tui/tui-interp.c (tui_is_toplevel): Delete global.
780 (tui_allowed_p): Delete function.
781 * tui/tui.c: Include "interps.h".
782 (tui_enable): Don't use tui_allowed_p. Error out here with
783 detailed error messages if the TUI is the top level interpreter,
784 or if output is not a terminal. Use newterm instead of initscr,
785 and error out if initializing the terminal fails. Also error out if
786 the terminal doesn't support cursor addressing.
787 * tui/tui.h (tui_allowed_p): Delete declaration.
789 2014-10-29 Joel Brobecker <brobecker@adacore.com>
791 * arm-tdep.c (arm_skip_stack_protector): Return early if
792 address loaded by first "ldr" instruction does not have
793 a corresponding minimal symbol. Update comment.
795 2014-10-29 Yao Qi <yao@codesourcery.com>
797 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
798 loaded address correctly of ldr instruction.
800 2014-10-28 Pedro Alves <palves@redhat.com>
803 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
805 * infrun.c (resume) <stepping breakpoint instruction>: Set the
806 thread's stepped_breakpoint field. Skip if reverse debugging.
808 (init_thread_stepping_state, handle_signal_stop): Clear the
809 thread's stepped_breakpoint field.
811 2014-10-27 Pedro Alves <palves@redhat.com>
813 * remote.c (remote_thread_alive): New, factored out from ...
814 (remote_thread_alive): ... this.
815 (remote_update_thread_list): Bail out before deleting threads if
816 the target returned an empty list, and, the current thread has a
819 2014-10-27 Pedro Alves <palves@redhat.com>
821 * infrun.c (handle_signal_stop): Also skip handlers when a random
822 signal arrives while handling a "stepi" or a "nexti". Set the
823 thread's 'step_after_step_resume_breakpoint' flag.
825 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
827 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
828 (arm_record_ld_st_imm_offset): Reimplement to cover all
829 load/store cases for ARM opcode 010.
830 (arm_record_ld_st_multiple): Reimplement to cover all
831 load/store cases for ARM opcode 100.
833 2014-10-26 Doug Evans <xdje42@gmail.com>
835 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
837 2014-10-26 Doug Evans <xdje42@gmail.com>
839 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
840 parameter "kind" to "block_index".
841 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
843 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
845 2014-10-26 Doug Evans <xdje42@gmail.com>
847 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
849 2014-10-26 Doug Evans <xdje42@gmail.com>
851 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
854 2014-10-26 Doug Evans <xdje42@gmail.com>
856 * parser-defs.h (block_found): Move decl from here ...
857 * symtab.h (block_found): ... to here.
859 2014-10-26 Doug Evans <xdje42@gmail.com>
861 * symtab.h (struct field_of_this_result): Fix typo in comment.
862 (lookup_symbol_in_language): Move function comment here.
863 (lookup_symbol): Improve function comment.
864 (basic_lookup_symbol_nonlocal): Ditto.
865 (lookup_symbol_static, lookup_symbol_global): Ditto.
866 (lookup_symbol_aux_block): Ditto.
867 (lookup_language_this): Add function comment.
868 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
870 (lookup_block_symbol): Improve function comment.
871 (lookup_struct): Fix capitalization in function comment.
872 (lookup_transparent_type): Add function comment.
873 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
874 Improve function comment.
875 (lookup_objfile_from_block): Add function comment.
876 * symtab.c (lookup_symbol_in_language): Update function comment.
877 (lookup_symbol, lookup_language_this): Ditto.
878 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
879 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
880 (basic_lookup_symbol_nonlocal): Ditto.
881 (lookup_symbol_static, lookup_symbol_global): Ditto.
882 (lookup_transparent_type, lookup_block_symbol): Ditto.
884 2014-10-25 Doug Evans <xdje42@gmail.com>
886 * symtab.c (types_info): Delete forward decl.
887 (functions_info, variables_info, sources_info): Ditto.
888 (_initialize_symtab): Rewrite forward decl to use
889 initialize_file_ftype.
891 2014-10-25 Doug Evans <xdje42@gmail.com>
893 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
895 2014-10-25 Doug Evans <xdje42@gmail.com>
897 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
898 of local var child_die.
900 2014-10-24 Don Breazeal <donb@codesourcery.com>
902 * infrun.c (follow_fork_inferior): Update fork message printing
903 to use target_terminal_ours_for_output instead of
904 target_terminal_ours, to use _() for all format strings, to print
905 "vfork" instead of "fork" for vforks, and to add a detach message.
906 (handle_vfork_child_exec_or_exit): Update message printing to use
907 target_terminal_ours_for_output instead of target_terminal_ours, to
908 use _() for all format strings, and to fix some formatting.
910 2014-10-24 Pedro Alves <palves@redhat.com>
912 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
913 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
914 * config/vax/vax.mh: Delete.
915 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
916 obsolete configurations section.
917 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
918 * vax-nat.c: Delete file.
920 2014-10-24 Pedro Alves <palves@redhat.com>
922 * NEWS (Removed targets): Add OS/arch column.
924 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
926 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
927 on the arg type of a constructor only if it is of reference type.
929 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
931 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
932 accessors and constants from nios2 opcodes update.
933 (nios2_get_next_pc): Likewise.
935 2014-10-19 Doug Evans <xdje42@gmail.com>
937 * gdbthread.h (set_running): Fix comment.
938 (set_executing, finish_thread_state): Fix comment.
940 2014-10-18 Doug Evans <xdje42@gmail.com>
942 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
944 2014-10-17 Doug Evans <dje@google.com>
946 * NEWS: Mention new event gdb.clear_objfiles.
947 * python/py-event.h (emit_clear_objfiles_event): Clear
948 * python/py-events.h (events_object): New member clear_objfiles.
949 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
951 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
952 emit clear_objfiles event.
953 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
955 (emit_clear_objfiles_event): New function.
956 (clear_objfiles): New event.
957 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
959 * python/python.c (_initialize_python): Call
960 gdbpy_initialize_clear_objfiles_event.
962 2014-10-17 Doug Evans <dje@google.com>
964 * NEWS: Mention new gdb.Objfile.progspace attribute.
965 * python/py-objfile.c (objfpy_get_progspace): New function.
966 (objfile_getset): New entry for "progspace".
968 2014-10-17 Pedro Alves <palves@redhat.com>
971 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
972 returns a copy of the input.
973 (run_command_1, continue_command, step_1, jump_command)
974 (signal_command, until_command, advance_command, finish_command)
975 (attach_command): Adjust and install a cleanup to free the
978 2014-10-17 Pedro Alves <palves@redhat.com>
981 * infcmd.c (continue_1): If continuing all threads in the
982 foreground, make sure the inferior's terminal settings are put in
985 2014-10-17 Pedro Alves <palves@redhat.com>
988 * annotate.c (annotate_breakpoints_invalid): Use
989 target_terminal_our_for_output instead of target_terminal_ours.
990 Give back the terminal to the target.
991 (annotate_frames_invalid): Likewise.
993 2014-10-17 Pedro Alves <palves@redhat.com>
995 * target.c (enum terminal_state): New enum.
996 (terminal_state): New global.
997 (target_terminal_init): New function.
998 (target_terminal_inferior): Skip if inferior already owns the
1000 (target_terminal_ours, target_terminal_ours_for_output): New
1002 * target.h (target_terminal_init): Convert to function prototype.
1003 (target_terminal_ours_for_output): Convert to function prototype
1005 (target_terminal_ours): Convert to function prototype and tweak
1007 * windows-nat.c (do_initial_windows_stuff): Call
1008 target_terminal_init instead of child_terminal_init_with_pgrp.
1010 2014-10-17 Pedro Alves <palves@redhat.com>
1012 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1013 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1014 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1016 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1017 * ada-lang.h [__alpha__ && __osf__]
1018 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1019 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1020 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1022 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1024 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1025 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1026 * configure: Regenerate.
1027 * configure.ac: Remove references to osf.
1028 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1029 section. Remove all other references to osf.
1030 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1031 Remove all other references to osf.
1032 * dec-thread.c: Delete file.
1033 * defs.h (GDB_OSABI_OSF1): Delete.
1034 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1036 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1037 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1039 (unconditionally_kill_inferior)
1040 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1041 * solib-osf.c: Delete file.
1043 2014-10-17 Pedro Alves <palves@redhat.com>
1045 * remote.c (clear_threads_listing_context): Move higher up, out of
1046 the HAVE_LIBEXPAT guard.
1048 2014-10-16 Tristan Gingold <gingold@adacore.com>
1050 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1051 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1054 2014-10-15 Pedro Alves <palves@redhat.com>
1056 * dec-thread.c (dec_thread_count_gdb_threads)
1057 (dec_thread_add_gdb_thread): Delete.
1058 (dec_thread_update_thread_list): Delete.
1059 (dec_thread_find_new_threads): Rename to ...
1060 (dec_thread_update_thread_list): ... this. Delete GDB-size
1061 threads that are no longer found in dec_thread_list.
1062 (resync_thread_list): Delete.
1063 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1066 2014-10-15 Pedro Alves <palves@redhat.com>
1068 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1069 * remote.c (remote_update_thread_list): Skip calling prune_threads
1070 if any thread listing method is supported, and instead walk over
1071 the set of remote threads listed, deleting those that are not
1072 found in GDB's thread list.
1074 2014-10-15 Pedro Alves <palves@redhat.com>
1076 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1077 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1078 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1079 (bsd_uthread_target): Adjust.
1080 * corelow.c (core_open): Adjust.
1081 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1082 (dec_thread_update_thread_list): New function.
1083 (init_dec_thread_ops): Adjust.
1084 * gdbthread.h (prune_threads): New declaration.
1085 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1086 (thread_db_update_thread_list): ... this. Call prune_threads.
1087 (init_thread_db_ops): Adjust.
1088 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1089 (procfs_update_thread_list): ... this. Call prune_threads.
1090 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1092 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1093 (obsd_update_thread_list): ... this. Call prune_threads.
1094 (obsd_add_target): Adjust.
1095 * procfs.c (procfs_target): Adjust.
1096 (procfs_notice_thread): Update comment.
1097 (procfs_find_new_threads): Rename to ...
1098 (procfs_update_thread_list): ... this. Call prune_threads.
1099 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1101 (ravenscar_wait): Adjust.
1102 (ravenscar_find_new_threads): Rename to ...
1103 (ravenscar_update_thread_list): ... this. Call prune_threads.
1104 (init_ravenscar_thread_ops): Adjust.
1105 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1106 (record_btrace_update_thread_list): ... this. Adjust comment.
1107 (init_record_btrace_ops): Adjust.
1108 * remote.c (remote_threads_info): Rename to ...
1109 (remote_update_thread_list): ... this. Call prune_threads.
1110 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1112 * sol-thread.c (check_for_thread_db): Adjust.
1113 (sol_find_new_threads_callback): Rename to ...
1114 (sol_update_thread_list_callback): ... this.
1115 (sol_find_new_threads): Rename to ...
1116 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1117 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1118 * target-delegates.c: Regenerate.
1119 * target.c (target_find_new_threads): Rename to ...
1120 (target_update_thread_list): ... this.
1121 * target.h (struct target_ops): Rename to_find_new_threads field
1122 to to_update_thread_list.
1123 (target_find_new_threads): Rename to ...
1124 (target_update_thread_list): ... this.
1125 * thread.c (prune_threads): Make extern.
1126 (update_thread_list): Adjust.
1128 2014-10-15 Pedro Alves <palves@redhat.com>
1130 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1131 Add describing comment. Return -1 if the qL packet is not
1133 (struct thread_item, thread_item_t): Move higher up in
1134 the file. Add comments.
1135 (struct threads_parsing_context): Move higher up in
1136 the file, add comments, and remote to ...
1137 (struct threads_listing_context): ... this.
1138 (remote_newthread_step): Don't add the thread to GDB's thread
1139 database here. Instead push it to the thread_listing_context
1141 (remote_find_new_threads): Rename to ...
1142 (remote_get_threads_with_ql): ... this. Add target_ops and
1143 targets_listing_context parameters. Pass down context.
1144 (start_thread): Adjust.
1145 (clear_threads_parsing_context): Rename to ...
1146 (clear_threads_listing_context): ... this.
1147 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1148 remote_threads_info.
1149 (remote_get_threads_with_qthreadinfo): Ditto.
1150 (remote_threads_info): Reimplement.
1152 2014-10-15 Pedro Alves <palves@redhat.com>
1154 * infrun.c (resume): Don't force displaced-stepping for all
1155 single-steps on software single-stepping archs.
1157 2014-10-15 Pedro Alves <palves@redhat.com>
1159 * breakpoint.c (single_step_breakpoints): Delete global.
1160 (insert_single_step_breakpoint): Adjust to store the breakpoint
1161 pointer in the current thread.
1162 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1163 (cancel_single_step_breakpoints): Delete functions.
1164 (breakpoint_has_location_inserted_here): Make extern.
1165 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1167 * breakpoint.h (breakpoint_has_location_inserted_here): New
1169 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1170 (cancel_single_step_breakpoints): Remove declarations.
1171 * gdbthread.h (struct thread_control_state)
1172 <single_step_breakpoints>: New field.
1173 (delete_single_step_breakpoints)
1174 (thread_has_single_step_breakpoints_set)
1175 (thread_has_single_step_breakpoint_here): New declarations.
1176 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1177 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1178 (singlestep_pc): Delete globals.
1179 (infrun_thread_ptid_changed): Remove references to removed
1181 (resume_cleanups): Delete the current thread's single-step
1183 (maybe_software_singlestep): Remove references to removed globals.
1184 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1185 delete_single_step_breakpoints.
1186 (init_wait_for_inferior): Remove references to removed globals.
1187 (delete_thread_infrun_breakpoints): Delete the thread's
1188 single-step breakpoints too.
1189 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1190 single-step breakpoints here.
1191 (delete_stopped_threads_single_step_breakpoints): New function.
1192 (adjust_pc_after_break): Adjust to use
1193 thread_has_single_step_breakpoints_set.
1194 (handle_inferior_event): Remove references to removed globals.
1195 Use delete_stopped_threads_single_step_breakpoints.
1196 (handle_signal_stop): Adjust to per-thread single-step
1197 breakpoints. Swap test order to do cheaper tests first.
1198 (switch_back_to_stepped_thread): Extend debug output. Remove
1199 references to removed globals.
1200 * record-full.c (record_full_wait_1): Adjust to per-thread
1201 single-step breakpoints.
1202 * thread.c (delete_single_step_breakpoints)
1203 (thread_has_single_step_breakpoints_set)
1204 (thread_has_single_step_breakpoint_here): New functions.
1205 (clear_thread_inferior_resources): Also delete the thread's
1206 single-step breakpoints.
1208 2014-10-15 Pedro Alves <palves@redhat.com>
1210 * thread.c (delete_thread_breakpoint): New function.
1211 (delete_step_resume_breakpoint)
1212 (delete_exception_resume_breakpoint): Use it.
1213 (delete_at_next_stop): New function.
1214 (clear_thread_inferior_resources): Use delete_at_next_stop.
1216 2014-10-15 Pedro Alves <palves@redhat.com>
1218 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1219 (breakpoint_inserted_here_p): ... here. Remove special case for
1220 software single-step breakpoints.
1221 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1222 (software_breakpoint_inserted_here_p): ... here. Remove special
1223 case for software single-step breakpoints.
1224 (bp_target_info_copy_insertion_state)
1225 (deprecated_insert_raw_breakpoint)
1226 (deprecated_remove_raw_breakpoint): Delete functions.
1227 * breakpoint.h (deprecated_insert_raw_breakpoint)
1228 (deprecated_remove_raw_breakpoint): Remove declarations.
1230 2014-10-15 Pedro Alves <palves@redhat.com>
1233 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1234 Delete array globals.
1235 (single_step_breakpoints): New global.
1236 (breakpoint_xfer_memory): Remove special handling for single-step
1238 (update_breakpoints_after_exec): Delete bp_single_step
1240 (detach_breakpoints): Remove special handling for single-step
1242 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1243 (bpstat_stop_status): Add comment.
1244 (bpstat_what, bptype_string, print_one_breakpoint_location)
1245 (adjust_breakpoint_address, init_bp_location): Handle
1247 (new_single_step_breakpoint): New function.
1248 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1249 handling for single-step breakpoints.
1250 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1251 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1253 (detach_single_step_breakpoints, find_single_step_breakpoint):
1255 (breakpoint_has_location_inserted_here): New function.
1256 (single_step_breakpoint_inserted_here_p): Rewrite.
1257 * breakpoint.h: Remove FIXME.
1258 (enum bptype) <bp_single_step>: New enum value.
1259 (insert_single_step_breakpoint): Update comment.
1260 * infrun.c (resume_cleanups)
1261 (delete_step_thread_step_resume_breakpoint): Remove single-step
1263 (fetch_inferior_event): Install a cleanup that removes infrun
1265 (switch_back_to_stepped_thread) <expect thread advanced also>:
1266 Clear step-over info.
1268 2014-10-15 Pedro Alves <palves@redhat.com>
1270 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1271 (delete_thread_infrun_breakpoints): New function, with parts
1272 salvaged from delete_step_resume_breakpoint_callback.
1273 (delete_step_thread_step_resume_breakpoint): Delete.
1274 (for_each_just_stopped_thread_callback_func): New typedef.
1275 (for_each_just_stopped_thread): New function.
1276 (delete_just_stopped_threads_infrun_breakpoints): New function.
1277 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1278 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1280 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1282 2014-10-15 Pedro Alves <palves@redhat.com>
1284 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1285 trying to step past a non-steppable watchpoint.
1286 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1288 * infrun.c (struct step_over_info): Add new field
1289 'nonsteppable_watchpoint_p' and adjust comments.
1290 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1292 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1293 (stepping_past_nonsteppable_watchpoint): New function.
1294 (step_over_info_valid_p): Also return true if stepping past a
1295 nonsteppable watchpoint.
1296 (proceed): Adjust call to set_step_over_info. Remove reference to
1298 (init_wait_for_inferior): Remove reference to init_infwait_state.
1299 (waiton_ptid): Delete global.
1300 (struct execution_control_state)
1301 <stepped_after_stopped_by_watchpoint>: Delete field.
1302 (wait_for_inferior, fetch_inferior_event): Always pass
1303 minus_one_ptid to target_wait.
1304 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1306 (init_infwait_state): Delete function.
1307 (handle_inferior_event): Remove infwait_state handling.
1308 (handle_signal_stop) <watchpoints handling>: Adjust after
1309 stepped_after_stopped_by_watchpoint removal. Don't remove
1310 breakpoints here nor set infwait_state. Set the thread's
1311 stepping_over_watchpoint flag, and call keep_going instead.
1312 (keep_going): Handle stepping_over_watchpoint. Adjust
1313 set_step_over_info calls.
1314 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1317 2014-10-15 Pedro Alves <palves@redhat.com>
1319 * infrun.c (step_over_info_valid_p): New function.
1320 (resume): Use step_over_info_valid_p instead of checking the
1321 threads's trap_expected flag.
1323 2014-10-15 Doug Evans <dje@google.com>
1324 Walfred Tedeschi <walfred.tedeschi@intel.com>
1327 * python/lib/gdb/__init__.py (packages): Add "printer".
1328 * python/lib/gdb/command/bound_registers.py: Moved to ...
1329 * python/lib/gdb/printer/bound_registers.py: ... here.
1330 Add printer to global set of builtin printers. Rename printer from
1331 "bound" to "mpx_bound128".
1332 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1333 registered as global "builtin" printer.
1334 (add_builtin_pretty_printer): New function.
1335 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1336 gdb/printer/__init__.py.
1338 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1340 * Makefile.in (SFILES): Remove d-support.c.
1341 (COMMON_OBS): Remove d-support.o.
1342 * d-lang.h (d_parse_symbol): Remove declaration.
1343 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1344 * d-support.c: Remove file.
1346 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1348 * gdb/infrun.c (process_event_stop_test): Apply
1349 gdbarch_addr_bits_remove to longjmp resume address.
1351 2014-10-15 Pedro Alves <palves@redhat.com>
1353 * regformats/microblaze.dat: Delete file.
1355 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1357 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1358 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1360 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1362 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1365 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1369 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1370 with qualified args.
1372 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1374 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1375 of the case where the second operand is a pointer.
1376 <BINOP_SUB>: Likewise.
1378 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1380 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1381 only if it is not NULL.
1382 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1383 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1384 (struct probe_ops) <clear_semaphore>: Likewise.
1385 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1387 (stop_tracing): Likewise, for clear_semaphore.
1389 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1391 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1392 using language_c, instead of current_language.
1394 2014-10-13 Doug Evans <dje@google.com>
1396 * python/py-objfile.c (objfpy_initialize): New function.
1397 (objfpy_new, objfile_to_objfile_object): Call it.
1398 * python/py-progspace.c (pspy_initialize): New function.
1399 (pspy_new, pspace_to_pspace_object): Call it.
1401 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1402 Jan Kratochvil <jan.kratochvil@redhat.com>
1404 Fix "save breakpoints" for "catch" command.
1405 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1408 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1410 Fix "save breakpoints" for "disable $bpnum" command.
1411 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1413 2014-10-10 Pedro Alves <palves@redhat.com>
1415 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1416 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1417 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1418 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1420 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1421 * configure.ac: Remove references to IRIX.
1422 * configure.host: Add *-*-irix* to the obsolete hosts section.
1423 Remove all other references to irix.
1424 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1427 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1429 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1430 isn't valid, release the tdesc arch data and return NULL.
1432 2014-10-10 Pedro Alves <palves@redhat.com>
1434 * linux-tdep.c: Include observer.h.
1435 (linux_inferior_data): New global.
1436 (struct linux_info): New structure.
1437 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1438 (get_linux_inferior_data): New functions.
1439 (linux_vsyscall_range): Rename to ...
1440 (linux_vsyscall_range_raw): ... this.
1441 (linux_vsyscall_range): New function; handles caching.
1442 (_initialize_linux_tdep): Register linux_inferior_data. Install
1443 inferior_exit and inferior_appeared observers.
1445 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 Pedro Alves <palves@redhat.com>
1449 * solib-svr4.c (svr4_read_so_list): Rename to ...
1450 (svr4_current_sos_1): ... this and change the function comment.
1451 (svr4_current_sos): New function.
1453 2014-10-10 Pedro Alves <palves@redhat.com>
1455 * arch-utils.c (default_vsyscall_range): New function.
1456 * arch-utils.h (default_vsyscall_range): New declaration.
1457 * gdbarch.sh (vsyscall_range): New hook.
1458 * gdbarch.h, gdbarch.c: Regenerate.
1459 * linux-tdep.c (linux_vsyscall_range): New function.
1460 (linux_init_abi): Install linux_vsyscall_range as
1461 vsyscall_range gdbarch hook.
1462 * memrange.c (address_in_mem_range): New function.
1463 * memrange.h (address_in_mem_range): New declaration.
1464 * symfile-mem.c (find_vdso_size): Delete function.
1465 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1467 2014-10-10 Pedro Alves <palves@redhat.com>
1469 * infrun.c (normal_stop): Fix typo in comment.
1471 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1474 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1475 typo when using logical AND to determine instruction type.
1477 2014-10-09 Yao Qi <yao@codesourcery.com>
1479 * infrun.c (handle_signal_stop): Remove local variable
1482 2014-10-08 Stan Shebs <stan@codesourcery.com>
1484 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1486 2014-10-08 Gary Benson <gbenson@redhat.com>
1488 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1490 2014-10-08 Gary Benson <gbenson@redhat.com>
1492 * common/common-defs.h: Include common-exceptions.h.
1493 * exceptions.h: Do not include common-exceptions.h.
1495 2014-10-08 Gary Benson <gbenson@redhat.com>
1497 * common/common-defs.h: Include cleanups.h.
1498 * common/common-exceptions.c: Do not include cleanups.h.
1499 * utils.h: Likewise.
1501 2014-10-08 Gary Benson <gbenson@redhat.com>
1503 * ada-lang.c: Do not include exceptions.h.
1504 * ada-valprint.c: Likewise.
1505 * amd64-tdep.c: Likewise.
1506 * auto-load.c: Likewise.
1507 * block.c: Likewise.
1508 * break-catch-throw.c: Likewise.
1509 * breakpoint.c: Likewise.
1510 * btrace.c: Likewise.
1511 * c-lang.c: Likewise.
1512 * cli/cli-cmds.c: Likewise.
1513 * cli/cli-interp.c: Likewise.
1514 * cli/cli-script.c: Likewise.
1515 * completer.c: Likewise.
1516 * corefile.c: Likewise.
1517 * corelow.c: Likewise.
1518 * cp-abi.c: Likewise.
1519 * cp-support.c: Likewise.
1520 * cp-valprint.c: Likewise.
1521 * darwin-nat.c: Likewise.
1522 * dwarf2-frame-tailcall.c: Likewise.
1523 * dwarf2-frame.c: Likewise.
1524 * dwarf2loc.c: Likewise.
1525 * dwarf2read.c: Likewise.
1527 * event-loop.c: Likewise.
1528 * event-top.c: Likewise.
1529 * f-valprint.c: Likewise.
1530 * frame-unwind.c: Likewise.
1531 * frame.c: Likewise.
1532 * gdbtypes.c: Likewise.
1533 * gnu-v2-abi.c: Likewise.
1534 * gnu-v3-abi.c: Likewise.
1535 * guile/scm-auto-load.c: Likewise.
1536 * guile/scm-breakpoint.c: Likewise.
1537 * guile/scm-cmd.c: Likewise.
1538 * guile/scm-frame.c: Likewise.
1539 * guile/scm-lazy-string.c: Likewise.
1540 * guile/scm-param.c: Likewise.
1541 * guile/scm-symbol.c: Likewise.
1542 * guile/scm-type.c: Likewise.
1543 * hppa-hpux-tdep.c: Likewise.
1544 * i386-tdep.c: Likewise.
1545 * inf-loop.c: Likewise.
1546 * infcall.c: Likewise.
1547 * infcmd.c: Likewise.
1548 * infrun.c: Likewise.
1549 * interps.c: Likewise.
1550 * interps.h: Likewise.
1552 * linespec.c: Likewise.
1553 * linux-nat.c: Likewise.
1554 * linux-thread-db.c: Likewise.
1555 * m32r-rom.c: Likewise.
1557 * memory-map.c: Likewise.
1558 * mi/mi-cmd-break.c: Likewise.
1559 * mi/mi-cmd-stack.c: Likewise.
1560 * mi/mi-interp.c: Likewise.
1561 * mi/mi-main.c: Likewise.
1562 * monitor.c: Likewise.
1563 * nto-procfs.c: Likewise.
1564 * objc-lang.c: Likewise.
1565 * p-valprint.c: Likewise.
1566 * parse.c: Likewise.
1567 * ppc-linux-tdep.c: Likewise.
1568 * printcmd.c: Likewise.
1569 * probe.c: Likewise.
1570 * python/py-auto-load.c: Likewise.
1571 * python/py-breakpoint.c: Likewise.
1572 * python/py-cmd.c: Likewise.
1573 * python/py-finishbreakpoint.c: Likewise.
1574 * python/py-frame.c: Likewise.
1575 * python/py-framefilter.c: Likewise.
1576 * python/py-function.c: Likewise.
1577 * python/py-gdb-readline.c: Likewise.
1578 * python/py-inferior.c: Likewise.
1579 * python/py-infthread.c: Likewise.
1580 * python/py-lazy-string.c: Likewise.
1581 * python/py-linetable.c: Likewise.
1582 * python/py-param.c: Likewise.
1583 * python/py-prettyprint.c: Likewise.
1584 * python/py-symbol.c: Likewise.
1585 * python/py-type.c: Likewise.
1586 * python/py-value.c: Likewise.
1587 * python/python-internal.h: Likewise.
1588 * python/python.c: Likewise.
1589 * record-btrace.c: Likewise.
1590 * record-full.c: Likewise.
1591 * regcache.c: Likewise.
1592 * remote-fileio.c: Likewise.
1593 * remote-mips.c: Likewise.
1594 * remote.c: Likewise.
1595 * rs6000-aix-tdep.c: Likewise.
1596 * rs6000-nat.c: Likewise.
1598 * solib-darwin.c: Likewise.
1599 * solib-dsbt.c: Likewise.
1600 * solib-frv.c: Likewise.
1601 * solib-ia64-hpux.c: Likewise.
1602 * solib-spu.c: Likewise.
1603 * solib-svr4.c: Likewise.
1604 * solib.c: Likewise.
1605 * spu-tdep.c: Likewise.
1606 * stack.c: Likewise.
1607 * stap-probe.c: Likewise.
1608 * symfile-mem.c: Likewise.
1609 * symmisc.c: Likewise.
1610 * target.c: Likewise.
1611 * thread.c: Likewise.
1613 * tracepoint.c: Likewise.
1614 * tui/tui-interp.c: Likewise.
1615 * typeprint.c: Likewise.
1616 * utils.c: Likewise.
1617 * valarith.c: Likewise.
1618 * valops.c: Likewise.
1619 * valprint.c: Likewise.
1620 * value.c: Likewise.
1621 * varobj.c: Likewise.
1622 * windows-nat.c: Likewise.
1623 * xml-support.c: Likewise.
1625 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1627 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1629 (extended_mips16_next_pc): Update accordingly.
1631 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1633 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1635 (micromips_instruction_is_compact_branch): Likewise.
1636 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1637 or a compact jump, reaching a jump delay slot, or seeing a
1638 second non-prologue instruction.
1639 (micromips_scan_prologue): Also terminate scanning upon seeing a
1640 compact branch or jump, or reaching a branch or jump delay slot.
1641 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1642 or jump delay slot, or seeing a second non-prologue instruction.
1643 (mips32_instruction_has_delay_slot): Retain instruction
1644 examination code only, update arguments accordingly and move
1645 instruction fetch pieces to...
1646 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1647 (micromips_instruction_has_delay_slot): Likewise and to...
1648 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1649 (mips16_instruction_has_delay_slot): Likewise and to...
1650 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1651 (mips_single_step_through_delay): Update accordingly.
1652 (mips_adjust_breakpoint_address): Likewise.
1654 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1656 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1657 !mustbe32 also return 1 for 32-bit instructions.
1658 (mips16_instruction_has_delay_slot): Likewise. Add an
1659 explanatory comment.
1661 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1663 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1666 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1668 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1670 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1671 for the breakpoint's address. Don't preinitialize `placed_size'.
1672 (insert_bp_location): Set `reqstd_address' rather than
1674 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1675 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1677 (bkpt_remove_location): Likewise.
1678 (deprecated_insert_raw_breakpoint): Likewise.
1679 (deprecated_remove_raw_breakpoint): Likewise.
1680 (find_single_step_breakpoint): Likewise.
1681 * mem-break.c (default_memory_insert_breakpoint): Use
1682 `reqstd_address' for the breakpoint's address. Don't set
1683 `placed_address' or `placed_size' if breakpoint contents couldn't
1684 have been determined.
1685 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1686 the breakpoint's address.
1687 (remote_insert_hw_breakpoint): Likewise. Don't set
1688 `placed_address' or `placed_size' if breakpoint couldn't have been
1690 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1691 `reqstd_address' for the breakpoint's address.
1692 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1693 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1694 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1695 * microblaze-linux-tdep.c
1696 (microblaze_linux_memory_remove_breakpoint): Likewise.
1697 * monitor.c (monitor_insert_breakpoint): Likewise.
1698 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1699 (procfs_insert_hw_breakpoint): Likewise.
1700 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1701 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1702 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1703 * remote-mips.c (mips_insert_breakpoint): Likewise.
1704 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1706 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1708 * valops.c (value_assign): Check for bit field assignments
1709 before calling architecture-specific register value
1710 conversion functions.
1712 2014-10-03 Pierre Muller <muller@sourceware.org>
1714 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1716 2014-10-02 Pedro Alves <palves@redhat.com>
1718 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1719 threads_are_executing.
1720 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1722 * gdbthread.h (threads_are_executing): Declare.
1723 (handle_signal_stop) <random signals>: Don't print about the
1724 signal here if stopping.
1725 (end_stepping_range): Don't notify observers here.
1726 (normal_stop): Update the thread list. If stopped by a random
1727 signal or a stepping range ended, notify observers.
1728 * thread.c (threads_executing): New global.
1729 (init_thread_list): Clear 'threads_executing'.
1730 (set_executing): Set or clear 'threads_executing'.
1731 (threads_are_executing): New function.
1732 (update_threads_executing): New function.
1733 (update_thread_list): Use it.
1735 2014-10-02 Pedro Alves <palves@redhat.com>
1737 PR breakpoints/17431
1738 * breakpoint.c (update_breakpoints_after_exec): Don't create
1739 overlay, longjmp, std terminate nor exception breakpoints here.
1741 2014-10-02 Pedro Alves <palves@redhat.com>
1743 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1745 * inferior.c (find_inferior_for_program_space): Give preference to
1746 the current inferior.
1747 * inferior.h (find_inferior_for_program_space): Update comment.
1748 * progspace.c (switch_to_program_space_and_thread): Prefer the
1749 current inferior if it's bound to the program space requested. If
1750 the inferior found doesn't have a PID yet, don't bother looking up
1752 * progspace.h (switch_to_program_space_and_thread): Adjust
1754 * thread.c (any_thread_of_process, any_live_thread_of_process):
1755 Give preference to the current thread.
1757 2014-10-01 Pedro Alves <palves@redhat.com>
1759 * breakpoint.c (insert_bp_location): Error out if inserting a
1760 software breakpoint at a read-only address.
1761 * target.c (memory_xfer_check_region): New function, factored out
1763 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1765 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1766 against the memory region attributes.
1768 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1770 * NEWS: Announce new exit-code field in -list-thread-groups
1772 * inferior.c (exit_inferior_1): Don't clear exit code.
1773 (inferior_appeared): Clear exit code.
1774 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1777 2014-10-01 Pedro Alves <palves@redhat.com>
1779 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1780 GENERATED" along with emacs/vi read-only markers.
1781 * regformats/aarch64.dat: Regenerate.
1782 * regformats/arm-with-iwmmxt.dat: Regenerate.
1783 * regformats/arm-with-neon.dat: Regenerate.
1784 * regformats/arm-with-vfpv2.dat: Regenerate.
1785 * regformats/arm-with-vfpv3.dat: Regenerate.
1786 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1787 * regformats/i386/amd64-avx.dat: Regenerate.
1788 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1789 * regformats/i386/amd64-avx512.dat: Regenerate.
1790 * regformats/i386/amd64-linux.dat: Regenerate.
1791 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1792 * regformats/i386/amd64-mpx.dat: Regenerate.
1793 * regformats/i386/amd64.dat: Regenerate.
1794 * regformats/i386/i386-avx-linux.dat: Regenerate.
1795 * regformats/i386/i386-avx.dat: Regenerate.
1796 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1797 * regformats/i386/i386-avx512.dat: Regenerate.
1798 * regformats/i386/i386-linux.dat: Regenerate.
1799 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1800 * regformats/i386/i386-mmx.dat: Regenerate.
1801 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1802 * regformats/i386/i386-mpx.dat: Regenerate.
1803 * regformats/i386/i386.dat: Regenerate.
1804 * regformats/i386/x32-avx-linux.dat: Regenerate.
1805 * regformats/i386/x32-avx.dat: Regenerate.
1806 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1807 * regformats/i386/x32-avx512.dat: Regenerate.
1808 * regformats/i386/x32-linux.dat: Regenerate.
1809 * regformats/i386/x32.dat: Regenerate.
1810 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1811 * regformats/mips-dsp-linux.dat: Regenerate.
1812 * regformats/mips-linux.dat: Regenerate.
1813 * regformats/mips64-dsp-linux.dat: Regenerate.
1814 * regformats/mips64-linux.dat: Regenerate.
1815 * regformats/nios2-linux.dat: Regenerate.
1816 * regformats/rs6000/powerpc-32.dat: Regenerate.
1817 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1818 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1819 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1820 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1821 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1822 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1823 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1824 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1825 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1826 * regformats/s390-linux32.dat: Regenerate.
1827 * regformats/s390-linux32v1.dat: Regenerate.
1828 * regformats/s390-linux32v2.dat: Regenerate.
1829 * regformats/s390-linux64.dat: Regenerate.
1830 * regformats/s390-linux64v1.dat: Regenerate.
1831 * regformats/s390-linux64v2.dat: Regenerate.
1832 * regformats/s390-te-linux64.dat: Regenerate.
1833 * regformats/s390x-linux64.dat: Regenerate.
1834 * regformats/s390x-linux64v1.dat: Regenerate.
1835 * regformats/s390x-linux64v2.dat: Regenerate.
1836 * regformats/s390x-te-linux64.dat: Regenerate.
1837 * regformats/tic6x-c62x-linux.dat: Regenerate.
1838 * regformats/tic6x-c62x.dat: Regenerate.
1839 * regformats/tic6x-c64x-linux.dat: Regenerate.
1840 * regformats/tic6x-c64x.dat: Regenerate.
1841 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1842 * regformats/tic6x-c64xp.dat: Regenerate.
1844 2014-10-01 Pedro Alves <palves@redhat.com>
1846 * features/Makefile: Update comments.
1847 (XMLTOC): List all xml files we build C files from.
1848 (clean-cfiles): New rule.
1850 2014-10-01 Pedro Alves <palves@redhat.com>
1852 * features/i386/amd64-avx512-linux.c: Regenerate.
1853 * features/i386/amd64-avx512.c: Regenerate.
1854 * features/i386/x32-avx512-linux.c: Regenerate.
1855 * features/i386/x32-avx512.c: Regenerate.
1857 2014-10-01 Pedro Alves <palves@redhat.com>
1859 * features/Makefile (WHICH): Remove arm-with-m,
1860 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1862 2014-10-01 Pedro Alves <palves@redhat.com>
1864 * features/Makefile (clean): New rule.
1866 2014-10-01 Pedro Alves <palves@redhat.com>
1868 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1869 (zmm14h): Add missing end quotes.
1871 2014-10-01 Pedro Alves <palves@redhat.com>
1873 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1874 * features/aarch64.c: Regenerate.
1876 2014-09-30 Don Breazeal <donb@codesourcery.com>
1878 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1879 code so as to work with follow_fork_inferior.
1880 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1881 (inf_ttrace_create_inferior): Remove reference to
1882 inf_ttrace_vfork_ppid.
1883 (inf_ttrace_attach): Ditto.
1884 (inf_ttrace_detach): Ditto.
1885 (inf_ttrace_kill): Use current_inferior instead of
1886 inf_ttrace_vfork_ppid.
1887 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1888 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1889 inferior away from the parent.
1890 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1892 (follow_fork_inferior): New function.
1893 (follow_inferior_reset_breakpoints): Make function static.
1894 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1895 * linux-nat.c (linux_child_follow_fork): Move target-independent
1896 code to infrun.c:follow_fork_inferior.
1898 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1900 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1901 * gdbarch.c: Regenerate.
1902 * gdbarch.h: Likewise.
1903 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1904 gdbarch method 'regset_from_core_section'.
1905 (get_core_register_section): Remove handling for the case that
1906 regset == NULL and regset_from_core_section is defined.
1907 (get_core_registers): Drop check for deleted method.
1908 * procfs.c (procfs_do_thread_registers): Adjust comment.
1910 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1912 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1913 (linux_nat_make_corefile_notes): Remove.
1914 (linux_target_install_ops): Do not set target method
1915 'make_corefile_notes'.
1916 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1918 (linux_corefile_thread_callback): Instead of args->collect, call
1919 linux_collect_thread_registers.
1920 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1921 NULL unless there is a regset iterator.
1922 (linux_make_corefile_notes_1): Remove.
1923 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1924 by linux_make_corefile_notes.
1925 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1927 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1929 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1930 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1932 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1934 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1936 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1937 (xtensa_iterate_over_regset_sections): New.
1938 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1940 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1942 * vax-tdep.c (vax_regset_from_core_section): Remove.
1943 (vax_iterate_over_regset_sections): New.
1944 (vax_gdbarch_init): Adjust gdbarch initialization.
1946 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1948 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1949 (tilegx_regset_from_core_section): Remove.
1950 (tilegx_iterate_over_regset_sections): New.
1951 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1953 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1955 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1956 (sparc_iterate_over_regset_sections): New.
1957 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1958 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1960 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1961 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1962 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1963 target method 'make_corefile_notes'.
1965 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1967 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1968 'sizeof_gregset' and 'sizeof_fpregset'.
1969 * sh-tdep.c (sh_regset_from_core_section): Remove.
1970 (sh_iterate_over_regset_sections): New.
1971 (sh_gdbarch_init): Adjust gdbarch initialization.
1972 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1974 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1977 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1979 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1980 (score7_linux_iterate_over_regset_sections): New.
1981 (score_gdbarch_init): Adjust gdbarch initialization.
1983 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1987 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1988 method 'make_corefile_notes'.
1989 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1990 (ppcfbsd_regset_from_core_section): Remove.
1991 (ppcfbsd_iterate_over_regset_sections): New.
1992 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1994 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1995 (ppcnbsd_iterate_over_regset_sections): New.
1996 (ppcnbsd_init_abi): Adjust.
1997 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1998 (ppcobsd_iterate_over_regset_sections): New.
1999 (ppcobsd_init_abi): Adjust.
2000 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2001 (rs6000_aix_iterate_over_regset_sections): New.
2002 (rs6000_aix_init_osabi): Adjust.
2004 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2006 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2007 (nios2_regset_from_core_section): Remove.
2008 (nios2_iterate_over_regset_sections): New.
2009 (nios2_linux_init_abi): Adjust gdbarch initialization.
2011 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2013 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2014 (am33_iterate_over_regset_sections): New.
2015 (am33_linux_init_osabi): Adjust gdbarch initialization.
2017 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2019 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2020 (mips_linux_iterate_over_regset_sections): New.
2021 (mips_linux_init_abi): Adjust gdbarch initialization.
2022 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2023 (mips64obsd_iterate_over_regset_sections): New.
2024 (mips64obsd_init_abi): Adjust.
2025 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2026 (mipsnbsd_iterate_over_regset_sections): New.
2027 (mipsnbsd_init_abi): Adjust.
2029 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2031 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2032 (m88k_iterate_over_regset_sections): New.
2033 (m88k_gdbarch_init): Adjust gdbarch initialization.
2035 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2037 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2038 (ia64_linux_iterate_over_regset_sections): New.
2039 (ia64_linux_init_abi): Adjust gdbarch initialization.
2041 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2044 (m68kbsd_iterate_over_regset_sections): New.
2045 (m68kbsd_init_abi): Adjust gdbarch initialization.
2046 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2047 (m68k_linux_iterate_over_regset_sections): New.
2048 (m68k_linux_init_abi): Adjust gdbarch initialization.
2050 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2052 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2053 (m32r_linux_regset_from_core_section): Remove.
2054 (m32r_linux_iterate_over_regset_sections): New.
2055 (m32r_linux_init_abi): Adjust gdbarch initialization.
2057 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2060 (amd64obsd_iterate_over_regset_sections): New.
2061 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2062 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2064 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2065 regset_from_core_section initialization.
2066 * i386-tdep.c (i386_regset_from_core_section): Remove.
2067 (i386_iterate_over_regset_sections): New.
2068 (i386_gdbarch_init): Adjust gdbarch initialization.
2069 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2070 (i386_iterate_over_regset_sections): New prototype.
2071 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2073 (i386obsd_aout_iterate_over_regset_sections): New.
2074 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2075 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2077 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2078 (amd64fbsd_init_abi): Call fbsd_init_abi.
2079 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2080 (i386fbsd4_init_abi): Call fbsd_init_abi.
2081 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2082 target method 'make_corefile_notes'.
2083 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2085 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2087 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2088 (hppa_hpux_iterate_over_regset_sections): New.
2089 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2090 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2091 (hppa_linux_iterate_over_regset_sections): New.
2092 (hppa_linux_init_abi): Adjust.
2093 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2094 (hppanbsd_iterate_over_regset_sections): New.
2095 (hppanbsd_init_abi): Adjust.
2096 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2097 (hppaobsd_iterate_over_regset_sections): New.
2098 (hppaobsd_init_abi): Adjust.
2100 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2103 (frv_linux_iterate_over_regset_sections): New.
2104 (frv_linux_init_abi): Adjust gdbarch initialization.
2106 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2109 (armbsd_iterate_over_regset_sections): New prototype.
2110 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2111 (armbsd_iterate_over_regset_sections): New.
2112 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2115 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2118 (alpha_linux_iterate_over_regset_sections): New.
2119 (alpha_linux_init_abi): Adjust gdbarch initialization.
2120 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2122 (alphanbsd_iterate_over_regset_sections): New prototype.
2124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2126 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2128 (aarch64_linux_iterate_over_regset_sections): New.
2129 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2131 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2133 * fbsd-tdep.c: New file.
2134 * fbsd-tdep.h: New file.
2135 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2136 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2137 (ALLDEPFILES): Add fbsd-tdep.c.
2139 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2141 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2143 * gdbarch.h: Regenerate.
2144 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2146 (get_core_register_section): Add parameter 'regset' and use it, if
2147 set. Add parameter 'min_size' and verify the bfd section size
2149 (get_core_registers_cb): Add parameter 'regset' and pass it to
2150 get_core_register section. For the "standard" register sections
2151 ".reg" and ".reg2", set an appropriate default for human_name.
2152 (get_core_registers): Don't abort when the gdbarch has an iterator
2153 but no regset_from_core_section. Add NULL/0 for parameters
2154 'regset'/'min_size' in calls to get_core_register_section.
2155 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2156 'regset' and use it instead of calling the
2157 regset_from_core_section gdbarch method.
2158 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2159 * i386-tdep.c (i386_supply_xstateregset)
2160 (i386_collect_xstateregset, i386_xstateregset): Moved to
2162 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2164 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2165 core file support only if the regset iterator hasn't been set.
2166 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2167 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2168 Moved from i386-tdep.c and renamed to *_linux*.
2169 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2170 each callback invocation. Allow any .reg-xstate size when reading
2172 * amd64-tdep.c (amd64_supply_xstateregset)
2173 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2175 (amd64_regset_from_core_section): Remove.
2176 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2177 install an amd64-specific regset_from_core_section gdbarch method.
2178 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2179 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2180 Moved from amd64-tdep.c and renamed to *_linux*.
2181 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2182 to each callback invocation. Allow any .reg-xstate size when
2183 reading from a core file.
2184 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2185 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2186 each callback invocation.
2187 (arm_linux_init_abi): No longer set the regset_from_core_section
2189 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2190 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2191 each callback invocation.
2192 (ppc_linux_init_abi): No longer set the regset_from_core_section
2194 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2195 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2196 (s390_regset_from_core_section): Remove.
2197 (s390_iterate_over_regset_sections): Add regset parameter to each
2198 callback invocation.
2199 (s390_gdbarch_init): No longer set the regset_from_core_section
2200 gdbarch method. Drop initialization of deleted tdep fields.
2202 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2204 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2205 (amd64_linux_iterate_over_regset_sections): New.
2206 (amd64_linux_init_abi_common): Don't install the regset section
2207 list, but the new iterator in gdbarch.
2208 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2209 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2210 (arm_linux_iterate_over_regset_sections): ...here. New function.
2211 (arm_linux_init_abi): Set iterator instead of section list.
2212 * corelow.c (get_core_registers_cb): New function, logic moved
2214 (get_core_registers): ...loop body here. Use new iterator method
2215 instead of walking through the regset section list.
2216 * gdbarch.sh: Remove 'core_regset_sections'. New method
2217 'iterate_over_regset_sections'. New typedef
2218 'iterate_over_regset_sections_cb'.
2219 * gdbarch.c: Regenerate.
2220 * gdbarch.h: Likewise.
2221 * i386-linux-tdep.c (i386_linux_regset_sections)
2222 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2224 (i386_linux_iterate_over_regset_sections): New.
2225 (i386_linux_init_abi): Don't choose a regset section list, but
2226 install new iterator in gdbarch.
2227 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2228 (linux_collect_regset_section_cb): New function, logic moved
2230 (linux_collect_thread_registers): ...loop body here. Use iterator
2231 method instead of walking through list.
2232 (linux_make_corefile_notes_1): Check for presence of iterator
2233 method instead of regset section list.
2234 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2235 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2236 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2237 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2238 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2239 (ppc_linux_init_abi): Don't choose from above regset section
2240 lists, but install new iterator in gdbarch.
2241 * regset.h (struct core_regset_section): Remove.
2242 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2243 have_linux_v1, have_linux_v2, and have_tdb.
2244 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2245 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2246 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2247 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2248 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2249 (s390_iterate_over_regset_sections): ...here. New function. Use
2251 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2252 regset section lists, but install new iterator.
2254 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2256 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2258 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2260 * progspace.c (print_program_space): Don't prune program spaces
2261 before printing them.
2263 2014-09-25 Pedro Alves <palves@redhat.com>
2265 * infrun.c (user_visible_resume_ptid): Don't check
2266 singlestep_breakpoints_inserted_p.
2268 2014-09-25 Pedro Alves <palves@redhat.com>
2270 * breakpoint.c (should_be_inserted): Add debug output.
2272 2014-09-25 Pedro Alves <palves@redhat.com>
2274 * infrun.c (stepping_past_instruction_at)
2275 (clear_exit_convenience_vars): Point at infrun.h instead of
2277 (handle_signal_stop): Fix typo.
2279 2014-09-24 Yao Qi <yao@codesourcery.com>
2281 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2284 2014-09-22 Gary Benson <gbenson@redhat.com>
2286 * target.c (target_stop): Updated comment.
2288 2014-09-22 Gary Benson <gbenson@redhat.com>
2290 * target/target.h (target_stop_ptid): Renamed as...
2291 (target_stop_and_wait): New function. Updated comment.
2293 (target_continue_ptid): Renamed as...
2294 (target_continue_no_signal): New function. Updated comment.
2297 2014-09-22 Pedro Alves <palves@redhat.com>
2299 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2301 * breakpoint.c (enum ugll_insert_mode): New enum.
2302 (always_inserted_mode): Now a plain boolean.
2303 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2304 (breakpoints_always_inserted_mode): Delete.
2305 (breakpoints_should_be_inserted_now): New function.
2306 (insert_breakpoints): Pass UGLL_INSERT to
2307 update_global_location_list instead of calling
2308 insert_breakpoint_locations manually.
2309 (create_solib_event_breakpoint_1): New, factored out from ...
2310 (create_solib_event_breakpoint): ... this.
2311 (create_and_insert_solib_event_breakpoint): Use
2312 create_solib_event_breakpoint_1 instead of calling
2313 insert_breakpoint_locations manually.
2314 (update_global_location_list): Change parameter type from boolean
2315 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2316 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2317 (update_global_location_list_nothrow): Change parameter type from
2318 boolean to enum ugll_insert_mode.
2319 (_initialize_breakpoint): "breakpoint always-inserted" option is
2320 now a boolean command. Update help text.
2321 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2322 (breakpoints_should_be_inserted_now): New declaration.
2323 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2324 Remove breakpoints_always_inserted_mode check.
2325 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2326 * remote.c (remote_start_remote): Likewise.
2328 2014-09-22 Pedro Alves <palves@redhat.com>
2330 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2331 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2332 Instead, pass UGLL_INSERT to update_global_location_list.
2333 (update_global_location_list): Change parameter type from boolean
2334 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2335 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2336 (create_solib_event_breakpoint_1): New, factored out from ...
2337 (create_solib_event_breakpoint): ... this.
2338 (create_and_insert_solib_event_breakpoint): Use
2339 create_solib_event_breakpoint_1 instead of calling
2340 insert_breakpoint_locations manually.
2341 (update_global_location_list): Handle UGLL_INSERT.
2343 2014-09-22 Pedro Alves <palves@redhat.com>
2345 * breakpoint.c (enum ugll_insert_mode): New enum.
2346 (update_global_location_list)
2347 (update_global_location_list_nothrow): Change parameter type from
2348 boolean to enum ugll_insert_mode. All callers adjusted.
2350 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2352 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2353 SystemTap support in GDB.
2355 2014-09-19 Don Breazeal <donb@codesourcery.com>
2357 * linux-nat.c (linux_handle_extended_wait): Call
2358 linux_ptrace_get_extended_event.
2359 (wait_lwp): Call linux_is_extended_waitstatus.
2360 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2361 and linux_is_extended_waitstatus.
2362 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2363 linux_ptrace_get_extended_event.
2364 (linux_ptrace_get_extended_event): New function.
2365 (linux_is_extended_waitstatus): New function.
2366 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2367 (linux_is_extended_waitstatus): New declarations.
2369 2014-09-19 Yao Qi <yao@codesourcery.com>
2371 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2372 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2373 comments. Callers update.
2374 (dwarf_decode_lines): Likewise.
2375 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2376 comments. Skip the line table if 'lowpc' is greater than
2377 'address'. Don't check
2378 dwarf2_per_objfile->has_section_at_zero.
2380 2014-09-18 Doug Evans <dje@google.com>
2382 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2383 * python/py-symtab.c (stpy_get_producer): New function.
2384 (symtab_object_getset): Add "producer" attribute.
2386 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2389 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2390 (do_captured_read_memory_integer): Remove.
2391 (safe_read_memory_integer): Use target_read_memory directly instead
2392 of catching errors in do_captured_read_memory_integer.
2394 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2396 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2399 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2401 * objc-lang.c (find_implementation_from_class): Remove dead code.
2403 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2406 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2407 "fprintf_unfiltered (gdb_stdlog...)".
2409 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2411 PR breakpoints/12526
2412 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2414 * breakpoint.c (watch_command_1): Use these fields to retain
2415 bitfield information.
2416 (extract_bitfield_from_watchpoint_value): New function.
2417 (watchpoint_check): Use it.
2418 (update_watchpoint): Use it. Optimize the address and length of a
2419 HW watchpoint pointing to a bitfield.
2420 * value.h (unpack_value_bitfield): New prototype.
2421 * value.c (unpack_value_bitfield): Make extern.
2423 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2425 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2427 * gnu-nat.c (inf_threads): New function.
2428 * gnu-nat.h (inf_threads_ftype): New typedef.
2429 (inf_threads): New declaration.
2430 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2431 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2432 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2433 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2434 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2435 (i386_gnu_dr_get_control): New functions.
2436 (reg_addr): New structure.
2437 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2438 i386 debugging register hooks.
2439 * NEWS: Mention this.
2441 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2443 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2444 vector data transfer instructions.
2445 (arm_record_coproc_data_proc): Updated.
2447 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2449 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2450 arm_record_exreg_ld_st_insn.
2451 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2454 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2456 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2457 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2458 processing instructions.
2460 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2462 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2463 for advance SIMD struct ld/st insn.
2464 (thumb2_record_decode_insn_handler): Replace stub handler with
2465 thumb2_record_asimd_struct_ld_st.
2467 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2469 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2470 for asimd, vfp and coprocessor insns.
2471 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2472 and coprocessor insns.
2473 (thumb2_record_coproc_insn): New function.
2474 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2476 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2479 2014-09-13 Doug Evans <xdje42@gmail.com>
2481 * NEWS: Mention new "queue-signal" command.
2482 * infcmd.c (queue_signal_command): New function.
2483 (_initialize_infcmd): Add new queue-signal command.
2485 2014-09-13 Doug Evans <xdje42@gmail.com>
2487 * linux-nat.c (wait_lwp): Add debugging printf.
2488 (linux_nat_wait_1): Ditto.
2490 2014-09-12 Pedro Alves <palves@redhat.com>
2492 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2493 (create_and_insert_solib_event_breakpoint): New functions.
2494 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2495 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2496 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2497 (remove_dbx_link_breakpoint): Delete function.
2498 (insert_dbx_link_bpt_in_file): Use
2499 create_and_insert_solib_event_breakpoint instead of
2500 deprecated_insert_raw_breakpoint.
2501 (procfs_wait): Don't check whether we hit __dbx_link here.
2502 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2504 * solib-irix.c (base_breakpoint): Delete global.
2505 (disable_break): Delete function.
2506 (enable_break): Use create_solib_event_breakpoint
2507 instead of deprecated_insert_raw_breakpoint.
2508 (irix_solib_handle_event): New function.
2509 (irix_solib_create_inferior_hook): Don't run the target or disable
2510 the mapping-complete breakpoint here.
2511 (_initialize_irix_solib): Install irix_solib_handle_event as
2512 so_ops->handle_event hook.
2514 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2515 Ulrich Weigand <uweigand@de.ibm.com>
2518 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2519 instead of read_memory_unsigned_integer.
2521 2014-09-12 Gary Benson <gbenson@redhat.com>
2523 * nat/linux-waitpid.c: Include common-defs.h.
2524 [GDBSERVER]: Add FIXME comment.
2525 [!GDBSERVER]: Don't include defs.h or signal.h.
2526 (linux_debug) [!GDBSERVER]: Remove empty block.
2528 2014-09-12 Gary Benson <gbenson@redhat.com>
2530 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2531 Don't include defs.h or server.h.
2533 2014-09-12 Gary Benson <gbenson@redhat.com>
2535 * nat/linux-btrace.c: Include common-defs.h.
2536 Don't include defs.h, server.h or gdbthread.h.
2537 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2539 2014-09-12 Gary Benson <gbenson@redhat.com>
2541 * common/agent.c: Include common-defs.h.
2542 Don't include defs.h or server.h.
2543 * common/buffer.c: Likewise.
2544 * common/common-debug.c: Likewise.
2545 * common/common-utils.c: Likewise.
2546 * common/errors.c: Likewise.
2547 * common/filestuff.c: Likewise.
2548 * common/format.c: Likewise.
2549 * common/gdb_vecs.c: Likewise.
2550 * common/print-utils.c: Likewise.
2551 * common/ptid.c: Likewise.
2552 * common/rsp-low.c: Likewise.
2553 * common/signals.c: Likewise.
2554 * common/vec.c: Likewise.
2555 * common/xml-utils.c: Likewise.
2556 * nat/linux-osdata.c: Likewise.
2557 * nat/linux-procfs.c: Likewise.
2558 * nat/linux-ptrace.c: Likewise.
2559 * nat/mips-linux-watch.c: Likewise.
2560 * target/waitstatus.c: Likewise.
2562 2014-09-12 Tom Tromey <tromey@redhat.com>
2563 Gary Benson <gbenson@redhat.com>
2565 * common/common-regcache.h: New file.
2566 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2567 * regcache.h: Include common-regcache.h.
2568 (regcache_read_pc): Don't declare.
2569 * regcache.c (get_thread_regcache_for_ptid): New function.
2570 * nat/linux-btrace.c: Don't include regcache.h.
2571 Include common-regcache.h.
2572 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2574 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2576 * regcache.h (struct regset): Declare.
2578 2014-09-11 Pedro Alves <palves@redhat.com>
2581 * main.c: Include "infrun.h".
2582 (catch_command_errors, catch_command_errors_const): Wait for the
2583 foreground command to complete.
2584 * top.c (maybe_wait_sync_command_done): New function, factored out
2586 (maybe_wait_sync_command_done): ... here.
2587 * top.h (maybe_wait_sync_command_done): New declaration.
2589 2014-09-11 Tom Tromey <tromey@redhat.com>
2590 Gary Benson <gbenson@redhat.com>
2592 * common/symbol.h: New file.
2593 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2594 * minsyms.c (find_minimal_symbol_address): New function.
2595 * common/agent.c: Include common/symbol.h.
2596 [!GDBSERVER]: Don't include objfiles.h.
2597 (agent_look_up_symbols): Use find_minimal_symbol_address.
2599 2014-09-11 Gary Benson <gbenson@redhat.com>
2601 * target/target.h (target_stop_ptid, target_continue_ptid):
2603 * target.c (target_stop_ptid, target_continue_ptid): New
2605 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2606 (agent_run_command): Always use target_stop_ptid and
2607 target_continue_ptid.
2609 2014-09-11 Tom Tromey <tromey@redhat.com>
2610 Gary Benson <gbenson@redhat.com>
2612 * target/target.h: New file.
2613 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2614 * target.h: Include target/target.h.
2615 (target_read_memory, target_write_memory): Don't declare.
2616 * target.c (target_read_uint32): New function.
2617 * common/agent.c: Include target/target.h.
2618 [!GDBSERVER]: Don't include target.h.
2619 (helper_thread_id): Type changed to uint32_t.
2620 (agent_get_helper_thread_id): Use target_read_uint32.
2621 (agent_run_command): Always use target_read_memory and
2622 target_write_memory.
2623 (agent_capability): Type changed to uint32_t.
2624 (agent_capability_check): Use target_read_uint32.
2626 2014-09-11 Gary Benson <gbenson@redhat.com>
2628 * common/common-debug.h (show_debug_regs): Declare.
2629 * common/common-debug.c (show_debug_regs): Define.
2630 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2631 all uses with show_debug_regs. Replace all uses that considered
2632 debug_hw_points as a multi-value integer with straight boolean
2634 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2635 with show_debug_regs.
2636 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2637 all uses with show_debug_regs.
2638 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2639 uses with show_debug_regs.
2641 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2643 * findvar.c (address_from_register): Handle targets requiring
2644 a special conversion routine even for plain pointer types.
2646 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2648 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2649 (store_register): Do not call exec_one_dummy_insn.
2651 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2653 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2654 dereference it first. Use value_enclosing_type instead of
2656 (ada_array_length): Likewise.
2658 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2660 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2661 Adjust function implementation and documentation accordingly.
2662 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2663 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2664 Update call to ada_value_ptr_subscript.
2666 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2668 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2669 instead of VAL's type.
2671 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2673 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2675 2014-09-09 Doug Evans <xdje42@gmail.com>
2678 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2679 last parameter to pkg-config, not first.
2680 * configure.ac: Pass --with-guile provided pkg-config path to
2681 GDB_GUILE_PROGRAM_NAMES.
2682 * configure: Regenerate.
2684 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2686 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2689 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2691 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2692 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2693 the list of sections determining GDB_OSABI_IRIX.
2695 2014-09-09 James Hogan <james.hogan@imgtec.com>
2697 * MAINTAINERS (Write After Approval): Add "James Hogan".
2699 2014-09-09 James Hogan <james.hogan@imgtec.com>
2701 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2703 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2705 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2707 2014-09-08 Doug Evans <xdje42@gmail.com>
2710 * guile.c: #include <signal.h>.
2711 (_initialize_guile): Block SIGCHLD while initializing Guile.
2713 Replaces the following, which is reverted.
2715 2014-07-26 Doug Evans <xdje42@gmail.com>
2718 * configure.ac: Add check for header gc/gc.h.
2719 Add check for function setenv.
2720 * configure: Regenerate.
2721 * config.in: Regenerate.
2722 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2724 2014-09-08 Doug Evans <xdje42@gmail.com>
2726 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2727 with named constant. Fix style of pointer comparison.
2728 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2730 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2733 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2734 decide whether we display the command on "show user".
2735 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2736 printing command name.
2737 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2738 * cli/cli-decode.c (cli_user_command_p): Create helper function
2739 to verify whether cmd_list_element is a user-defined command.
2741 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2744 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2745 Fix goto out of TRY_CATCH.
2747 2014-09-06 Doug Evans <xdje42@gmail.com>
2748 Tom Tromey <tromey@redhat.com>
2751 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2752 $_any_caller_matches.
2753 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2754 * python/lib/gdb/function/caller_is.py: New file.
2756 2014-09-06 Doug Evans <xdje42@gmail.com>
2758 * infcmd.c (program_info): Fix typo.
2760 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2763 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2764 'number'. New variable 'has_digit'. Rewrite code to deal with
2765 subexpressions on SDT probes.
2767 2014-09-04 Pedro Alves <palves@redhat.com>
2769 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2770 the input is only one character long.
2772 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2775 * f-valprint.c (f_val_print): Specify the correct print option to
2776 use when printing integer values.
2778 2014-09-04 Gary Benson <gbenson@redhat.com>
2780 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2781 Remove code to cope with LWPs wrapped as PIDs.
2782 Add assertions to ensure no wrapped LWPs are passed.
2784 2014-09-04 Pedro Alves <palves@redhat.com>
2786 * value.c (value_ranges_copy_adjusted): New function, factored out
2788 (value_contents_copy_raw): ... here.
2789 (unpack_value_bits_as_long_1): Rename back to ...
2790 (unpack_bits_as_long): ... this. Remove 'original_value' and
2791 'result' parameters. Change return type to LONGEST.
2792 (unpack_value_bits_as_long): Delete.
2793 (unpack_value_field_as_long_1): Delete.
2794 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2795 (unpack_value_bitfield): New function.
2796 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2797 (value_fetch_lazy): Use unpack_value_bitfield.
2798 * value.h (unpack_value_bits_as_long): Delete declaration.
2800 2014-09-03 Sasha Smundak <asmundak@google.com>
2802 * python/py-frame.c (frapy_read_register): New function.
2804 2014-09-03 James Hogan <james.hogan@imgtec.com>
2806 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2807 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2809 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2812 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2814 (add_cmd): Set "completer_handle_brkchars" to NULL.
2815 * cli/cli-decode.h (struct cmd_list_element)
2816 <completer_handle_brkchars>: New field.
2817 * command.h (completer_ftype_void): New typedef.
2818 (set_cmd_completer_handle_brkchars): New prototype.
2819 * completer.c (set_gdb_completion_word_break_characters): New
2821 (complete_line_internal): Call "completer_handle_brkchars"
2822 callback from command.
2823 * completer.h: Include "command.h".
2824 (set_gdb_completion_word_break_characters): New prototype.
2825 * python/py-cmd.c (cmdpy_completer_helper): New function.
2826 (cmdpy_completer_handle_brkchars): New function.
2827 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2828 (cmdpy_init): Set completer_handle_brkchars to
2829 cmdpy_completer_handle_brkchars.
2831 2014-09-03 Gary Benson <gbenson@redhat.com>
2833 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2834 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2835 Loop conditions changed to equivalent form.
2836 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2837 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2838 ALL_DEBUG_ADDRESS_REGISTERS.
2840 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2842 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2845 2014-09-02 Doug Evans <dje@google.com>
2847 * typeprint.c (find_global_typedef): Fix comment.
2849 2014-09-02 Gary Benson <gbenson@redhat.com>
2851 * i386-nat.h: Renamed as...
2852 * x86-nat.h: New file. All type, function and variable name
2853 prefixes changed from "i386_" to "x86_". All references updated.
2854 * i386-nat.c: Renamed as...
2855 * x86-nat.c: New file. All type, function and variable name
2856 prefixes changed from "i386_" to "x86_". All references updated.
2857 * common/i386-xstate.h: Renamed as...
2858 * common/x86-xstate.h: New file. All type, function and variable
2859 name prefixes changed from "i386_" to "x86_". All references
2861 * nat/i386-cpuid.h: Renamed as...
2862 * nat/x86-cpuid.h: New file. All type, function and variable name
2863 prefixes changed from "i386_" to "x86_". All references updated.
2864 * nat/i386-gcc-cpuid.h: Renamed as...
2865 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2866 name prefixes changed from "i386_" to "x86_". All references
2868 * nat/i386-dregs.h: Renamed as...
2869 * nat/x86-dregs.h: New file. All type, function and variable name
2870 prefixes changed from "i386_" to "x86_". All references updated.
2871 * nat/i386-dregs.c: Renamed as...
2872 * nat/x86-dregs.c: New file. All type, function and variable name
2873 prefixes changed from "i386_" to "x86_". All references updated.
2875 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2877 * varobj.c (_initialize_varobj): Move to the end of file.
2879 2014-08-29 Gary Benson <gbenson@redhat.com>
2881 * common/common-exceptions.h: New file.
2882 * common/common-exceptions.c: Likewise.
2883 * Makefile.in (SFILES): Add common/common-exceptions.c.
2884 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2885 (COMMON_OBS): Add common-exceptions.o.
2886 (common-exceptions.o): New rule.
2887 * exceptions.h (common-exceptions.h): Include.
2888 (gdb_setjmp.h): Do not include.
2889 (return_reason): Moved to common-exceptions.h.
2890 (enum return_reason): Likewise.
2891 (RETURN_MASK): Likewise.
2892 (typedef return_mask): Likewise.
2893 (enum errors): Likewise.
2894 (struct gdb_exception): Likewise.
2895 (exceptions_state_mc_init): Likewise.
2896 (exceptions_state_mc_action_iter): Likewise.
2897 (exceptions_state_mc_action_iter_1): Likewise.
2898 (TRY_CATCH): Likewise.
2899 (throw_exception): Likewise.
2900 (throw_verror): Likewise.
2901 (throw_vquit): Likewise.
2902 (throw_error): Likewise.
2903 (throw_quit): Likewise.
2904 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2905 (enum catcher_action): Likewise.
2906 (struct catcher): Likewise.
2907 (current_catcher): Likewise.
2908 (catcher_list_size): Likewise.
2909 (exceptions_state_mc_init): Likewise.
2910 (catcher_pop): Likewise.
2911 (exceptions_state_mc): Likewise.
2912 (exceptions_state_mc_action_iter): Likewise.
2913 (exceptions_state_mc_action_iter_1): Likewise.
2914 (throw_exception): Likewise.
2915 (exception_messages): Likewise.
2916 (exception_messages_size): Likewise.
2917 (throw_it): Likewise.
2918 (throw_verror): Likewise.
2919 (throw_vquit): Likewise.
2920 (throw_error): Likewise.
2921 (throw_quit): Likewise.
2922 (prepare_to_throw_exception): New function.
2924 2014-08-29 Gary Benson <gbenson@redhat.com>
2926 * common/gdb_setjmp.h: New file.
2927 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2928 * configure.ac: Move sigsetjmp check...
2929 * common/common.m4: ...here.
2930 * configure: Regenerate.
2931 * cp-support.c (SIGJMP_BUF): Delete.
2932 (SIGSETJMP): Likewise.
2933 (SIGLONGJMP): Likewise.
2934 * exceptions.h (gdb_setjmp.h): Include.
2935 (setjmp.h): Do not include.
2936 (EXCEPTIONS_SIGJMP_BUF): Delete.
2937 (EXCEPTIONS_SIGSETJMP): Likewise.
2938 (EXCEPTIONS_SIGLONGJMP): Likewise.
2939 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2941 * exceptions.c: Likewise.
2943 2014-08-29 Gary Benson <gbenson@redhat.com>
2945 * cleanups.h: Moved to...
2946 * common/cleanups.h: New file.
2947 * cleanups.c: Moved to...
2948 * common/cleanups.c: New file. Include common-defs.h and
2949 cleanups.h. Do not include defs.h.
2950 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2951 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2952 (cleanups.o): New rule.
2954 2014-08-29 Gary Benson <gbenson@redhat.com>
2956 * common/errors.h (internal_warning): New declaration.
2957 (internal_vwarning): Likewise.
2958 * common/errors.c (internal_warning): New function.
2959 * utils.h (internal_warning): Don't declare.
2960 (internal_vwarning): Likewise.
2961 * utils.c (internal_warning): Removed.
2963 2014-08-29 Gary Benson <gbenson@redhat.com>
2965 * main.c (captured_main): Use warning during startup.
2966 Prefix startup warning messages with command name.
2968 2014-08-29 Gary Benson <gbenson@redhat.com>
2970 * main.c (captured_main): Handle usage errors with error.
2972 2014-08-29 Gary Benson <gbenson@redhat.com>
2974 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2975 exit pair with a call to error. Wrap the message with _().
2977 2014-08-29 Gary Benson <gbenson@redhat.com>
2979 * main.c (captured_main): Replace a fprintf/exit
2980 pair with a call to error. Wrap the message with _().
2982 2014-08-29 Gary Benson <gbenson@redhat.com>
2984 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2985 pairs with calls to error. Wrap the message with _().
2987 2014-08-29 Gary Benson <gbenson@redhat.com>
2989 * utils.c (vwarning): Protect calls to target_terminal_ours
2992 2014-08-29 Gary Benson <gbenson@redhat.com>
2994 * exceptions.c (print_flush): Protect calls to
2995 target_terminal_ours and wrap_here.
2997 2014-08-29 Gary Benson <gbenson@redhat.com>
2999 * utils.h (filtered_printing_initialized): New declaration.
3000 * utils.c (abort_with_message): New function.
3001 (internal_vproblem): Use abort_with_message for first level
3002 recursive internal problems, and if gdb_stderr is not set up.
3003 Protect calls to target_terminal_ours, begin_line and query.
3005 2014-08-28 Doug Evans <dje@google.com>
3007 * symtab.c (in_prologue): Move definition to better spot.
3008 (skip_prologue_using_sal): Ditto.
3010 2014-08-28 Doug Evans <dje@google.com>
3012 * symtab.c (find_function_start_sal): Move definition to better spot.
3014 2014-08-28 Yao Qi <yao@codesourcery.com>
3016 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3017 found_stack_adjust in forward scan. Remove condition check
3018 on found_stack_adjust which is always true. Indent the code.
3020 2014-08-28 Yao Qi <yao@codesourcery.com>
3022 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3023 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3024 (dwarf_decode_lines): Remove argument
3025 want_line_info. Remove condition check on want_line_info.
3028 2014-08-27 Doug Evans <dje@google.com>
3030 * dwarf2read.c (dwarf_record_line): Fix typo.
3032 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3034 * target.h (struct target_ops::to_terminal_save_ours): Remove
3036 (target_terminal_save_ours): Remove macro.
3037 * target-delegates.c: Regenerate.
3038 * inf-child.c (inf_child_target): Don't set the nonexistent
3039 field to_terminal_save_ours.
3040 * inferior.h (child_terminal_save_ours): Remove declaration.
3041 * terminal.h (gdb_save_tty_state): New declaration.
3042 * inflow.c (child_terminal_save_ours): Rename to ...
3043 (gdb_save_tty_state): ... this.
3044 * tui/tui.c: Include terminal.h.
3045 (tui_enable): Use gdb_save_tty_state instead of
3046 target_terminal_save_ours.
3047 (tui_disable): Likewise.
3049 2014-08-25 Doug Evans <dje@google.com>
3051 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3052 Pass NULL instead of 0 for context pointer.
3054 2014-08-25 Yao Qi <yao@codesourcery.com>
3056 * dwarf2read.c: Fix grammatical error.
3058 2014-08-24 Yao Qi <yao@codesourcery.com>
3060 * dwarf2read.c (scan_partial_symbols): Update comments.
3061 Rename argument 'need_pc' with 'set_addrmap'.
3062 (add_partial_namespace): Rename argument 'need_pc' with
3064 (add_partial_module): Likewise.
3065 (add_partial_subprogram): Likewise. Update comments.
3066 (dwarf2_name): Fix typo.
3068 2014-08-22 Doug Evans <dje@google.com>
3071 * dwarf2read.c (dwarf_record_line_p): New function.
3072 (dwarf_decode_lines_1): Ignore subsequent line number entries
3073 for the same line if any entry had a non-zero discriminator.
3075 2014-08-22 Doug Evans <dje@google.com>
3077 * buildsym.h (record_line_ftype): New typedef.
3078 (record_line): Use it.
3079 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3080 (dwarf_decode_lines_1): Call them.
3082 2014-08-22 Yao Qi <yao@codesourcery.com>
3084 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3085 (ctf_end): Remove code.
3087 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3089 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3090 (linux_make_corefile_notes): call update_thread_list, protected against
3093 2014-08-21 Pedro Alves <palves@redhat.com>
3095 * infcmd.c (attach_command): Remove comment.
3097 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3099 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3100 unsigned LONGEST to ULONGEST.
3102 2014-08-20 Pedro Alves <palves@redhat.com>
3104 * Makefile.in (check-read1): New rule.
3106 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3108 * value.c (value_from_contents_and_address): Strip resolved_type's
3109 typedef layers before checking its TYPE_DATA_LOCATION.
3111 2014-08-20 Pedro Alves <palves@redhat.com>
3113 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3115 2014-08-20 Yao Qi <yao@codesourcery.com>
3117 * amd64-tdep.c (amd64_classify): Add a blank line after the
3118 example. Move "*/" to a new line.
3119 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3120 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3121 * dwarf2read.c (psymtab_include_file_name): Likewise.
3123 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3124 Pedro Alves <palves@redhat.com>
3128 * ada-lang.c (coerce_unspec_val_to_type): Use
3129 value_contents_copy_raw.
3130 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3131 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3132 * cp-valprint.c (cp_print_value_fields): Let the common printing
3133 code handle optimized out values.
3134 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3135 * d-valprint.c (dynamic_array_type): Use
3136 value_bits_any_optimized_out.
3137 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3138 check_any_valid fields.
3139 (check_pieced_value_bits): Delete and inline ...
3140 (check_pieced_synthetic_pointer): ... here.
3141 (check_pieced_value_validity): Delete.
3142 (check_pieced_value_invalid): Delete.
3143 (pieced_value_funcs): Remove check_validity and check_any_valid
3145 (read_pieced_value): Use mark_value_bits_optimized_out.
3146 (write_pieced_value): Switch to use
3147 mark_value_bytes_optimized_out.
3148 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3149 of assuming the whole value is optimized out.
3150 * findvar.c (read_frame_register_value): Remove special handling
3151 of optimized out registers.
3152 (value_from_register): Use mark_value_bytes_optimized_out.
3153 * frame-unwind.c (frame_unwind_got_optimized): Use
3154 mark_value_bytes_optimized_out.
3155 * jv-valprint.c (java_value_print): Adjust.
3156 (java_print_value_fields): Let the common printing code handle
3157 optimized out values.
3158 * mips-tdep.c (mips_print_register): Remove special handling of
3159 optimized out registers.
3160 * opencl-lang.c (lval_func_check_validity): Delete.
3161 (lval_func_check_any_valid): Delete.
3162 (opencl_value_funcs): Remove check_validity and check_any_valid
3164 * p-valprint.c (pascal_object_print_value_fields): Let the common
3165 printing code handle optimized out values.
3166 * stack.c (read_frame_arg): Remove special handling of optimized
3167 out values. Fetch both VAL and ENTRYVAL before comparing
3168 contents. Adjust to value_available_contents_eq rename.
3169 * valprint.c (valprint_check_validity)
3170 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3171 (val_print_array_elements): Adjust.
3172 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3173 (value_bits_any_optimized_out): New function.
3174 (value_entirely_covered_by_range_vector): New function, factored
3175 out from value_entirely_unavailable.
3176 (value_entirely_unavailable): Reimplement.
3177 (value_entirely_optimized_out): New function.
3178 (insert_into_bit_range_vector): New function, factored out from
3179 mark_value_bits_unavailable.
3180 (mark_value_bits_unavailable): Reimplement.
3181 (struct ranges_and_idx): New struct.
3182 (find_first_range_overlap_and_match): New function, factored out
3183 from value_available_contents_bits_eq.
3184 (value_available_contents_bits_eq): Rename to ...
3185 (value_contents_bits_eq): ... this. Check both unavailable
3186 contents and optimized out contents.
3187 (value_available_contents_eq): Rename to ...
3188 (value_contents_eq): ... this.
3189 (allocate_value_lazy): Remove reference to the old optimized_out
3191 (allocate_optimized_out_value): Use
3192 mark_value_bytes_optimized_out.
3193 (require_not_optimized_out): Adjust to check whether the
3194 optimized_out vec is empty.
3195 (ranges_copy_adjusted): New function, factored out from
3196 value_contents_copy_raw.
3197 (value_contents_copy_raw): Also copy the optimized out ranges.
3198 Assert the destination ranges aren't optimized out.
3199 (value_contents_copy): Update comment, remove call to
3200 require_not_optimized_out.
3201 (value_contents_equal): Adjust to check whether the optimized_out
3203 (set_value_optimized_out, value_optimized_out_const): Delete.
3204 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3206 (value_entirely_optimized_out, value_bits_valid): Delete.
3207 (value_copy): Take a VEC copy of the 'optimized_out' field.
3208 (value_primitive_field): Remove special handling of optimized out.
3209 (value_fetch_lazy): Assert that lazy values have no unavailable
3210 regions. Use value_bits_any_optimized_out. Remove some special
3211 handling for optimized out values.
3212 * value.h: Add intro comment about <optimized out> and
3214 (struct lval_funcs): Remove check_validity and check_any_valid
3216 (set_value_optimized_out, value_optimized_out_const): Remove.
3217 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3219 (value_bits_any_optimized_out): New declaration.
3220 (value_bits_valid): Delete declaration.
3221 (value_available_contents_eq): Rename to ...
3222 (value_contents_eq): ... this, and extend comments.
3224 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 Fix -fsanitize=address on unreadable inferior strings.
3227 * valprint.c (val_print_string): Fix access before BUFFER.
3229 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3231 * target.c (target_struct_size): Remove.
3232 (target_struct_allocsize): Remove.
3233 (DEFAULT_ALLOCSIZE): Remove.
3234 (target_ops_p): New typedef.
3235 (DEF_VEC_P (target_ops_p)): New vector type.
3236 (target_structs): Change type to VEC (target_ops_p).
3237 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3238 (find_default_run_target): Rewrite for loop following changes to
3241 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3243 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3244 Adjust code accordingly. Adjust function description comment.
3246 2014-08-19 Yao Qi <yao@codesourcery.com>
3248 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3251 2014-08-19 Alan Modra <amodra@gmail.com>
3253 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3254 * config.in: Regenerate.
3255 * configure: Regenerate.
3257 2014-08-19 Tom Tromey <tromey@redhat.com>
3258 Gary Benson <gbenson@redhat.com>
3260 * common/common-debug.h: New file.
3261 * common/common-debug.c: Likewise.
3262 * debug.c: Likewise.
3263 * Makefile.in (SFILES): Add common/common-debug.c.
3264 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3265 (COMMON_OBS): Add common-debug.o and debug.o.
3266 (common-debug.o): New rule.
3267 * common/common-defs.h: Include common-debug.h.
3268 * common/agent.c (debug_agent_printf): New function.
3269 (DEBUG_AGENT): Redefine.
3270 * nat/i386-dregs.c (debug_printf): Undefine.
3272 2014-08-19 Gary Benson <gbenson@redhat.com>
3274 * common/common-defs.h: Include print-utils.h.
3275 * utils.h: Do not include print-utils.h.
3277 2014-08-19 Tom Tromey <tromey@redhat.com>
3278 Gary Benson <gbenson@redhat.com>
3280 * common/common-types.h: New file.
3281 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3282 * common/common-defs.h: Include common-types.h.
3283 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3286 2014-08-19 Tom Tromey <tromey@redhat.com>
3287 Gary Benson <gbenson@redhat.com>
3289 * common/errors.h: New file.
3290 * common/errors.c: Likewise.
3291 * Makefile.in (SFILES): Add common/errors.c.
3292 (HFILES_NO_SRCDIR): Add common/errors.h.
3293 (COMMON_OBS): Add errors.o.
3294 (errors.o): New rule.
3295 * common/common-defs.h: Include errors.h.
3296 * utils.h (perror_with_name, error, verror, warning, vwarning):
3298 * common/common-utils.h: (malloc_failure, internal_error):
3301 2014-08-19 Gary Benson <gbenson@redhat.com>
3303 * utils.c (internal_vproblem): Always print the message.
3305 2014-08-18 Doug Evans <dje@google.com>
3307 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3309 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3311 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3312 Return 0 if TYPE is dynamic.
3313 (print_range): Add handling of dynamic ranges.
3315 2014-08-18 Keven Boell <keven.boell@intel.com>
3316 Joel Brobecker <brobecker@adacore.com>
3318 * gdbtypes.h (struct main_type): Add field "data_location".
3319 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3320 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3321 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3322 a dynamic data location.
3323 (resolve_dynamic_type): Add DW_AT_data_location handling.
3324 (copy_recursive, copy_type): Copy the data_location information
3326 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3327 * value.c (value_from_contents_and_address): Add
3328 DW_AT_data_location handling.
3330 2014-08-18 Keven Boell <keven.boell@intel.com>
3331 Joel Brobecker <brobecker@adacore.com>
3333 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3334 field "get_object_address".
3335 * dwarf2expr.c (execute_stack_op): Add handling for
3336 DW_OP_push_object_address.
3337 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3338 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3339 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3340 (dwarf_expr_get_obj_addr): New function.
3341 (dwarf_expr_ctx_funcs): Add get_object_address field.
3342 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3343 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3344 (dwarf2_evaluate_property): Add parameter "address". Use it.
3345 (needs_get_obj_addr): New function.
3346 (needs_frame_ctx_funcs): Add get_object_address field.
3347 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3348 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3349 (resolve_dynamic_array): Likewise.
3351 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3353 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3354 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3355 fixed value for records and unions for which some GNAT encodings
3358 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3360 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3361 rewrite to avoid "else if" and "else" constructs. Should be
3362 a no-op in practice.
3364 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3366 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3369 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3372 * eval.c: Update all calls to find_overload_match.
3373 * valarith.c: Likewise.
3374 (value_user_defined_cpp_op, value_user_defined_op): New
3375 argument NOSIDE. Update all callers.
3376 * valops.c (find_overload_match): New argument NOSIDE.
3377 * value.h (find_overload_match): Update signature.
3379 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3381 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3382 'items' methods instead of 'iteritems' method on dictionaries.
3384 2014-08-15 Doug Evans <dje@google.com>
3386 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3389 2014-08-15 Doug Evans <dje@google.com>
3391 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3393 2014-08-15 Doug Evans <dje@google.com>
3395 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3397 2014-08-15 Doug Evans <dje@google.com>
3399 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3402 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3404 * dcache.h: Include target.h, to avoid compile time warnings.
3406 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3408 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3409 frame_info" partial declaration.
3410 * gdbarch.h: Regenerate.
3412 2014-08-15 Yao Qi <yao@codesourcery.com>
3414 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3415 Add parameter 'decode_for_pst_p'. Callers update.
3417 2014-08-13 Yao Qi <yao@codesourcery.com>
3420 * configure.ac: Use local variable 'pos'.
3421 * configure: Regenerated.
3423 2014-08-11 Doug Evans <dje@google.com>
3425 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3426 message, it is redundant with "Reading symbols from ..." message.
3428 2014-08-10 Doug Evans <xdje42@gmail.com>
3430 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3432 2014-08-09 Yao Qi <yao@codesourcery.com>
3435 * remote.c (remote_xfer_partial): Remove dead code.
3437 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3439 * ia64-linux-tdep.c: Include "regset.h".
3440 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3441 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3442 (ia64_linux_supply_fpregset): New function.
3443 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3444 (ia64_linux_regset_from_core_section): New function.
3445 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3448 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3450 * m68klinux-tdep.c: Include "regset.h".
3451 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3452 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3453 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3454 (m68k_linux_regset_from_core_section): New function.
3455 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3458 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3460 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3461 function. Move logic to...
3462 (tilegx_linux_regmap): ... this new register map.
3463 (tilegx_linux_regset): Refer to register map, replace supply
3464 method by regcache_supply_regset, and add collect method.
3465 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3466 TILEGX_FIRST_EASY_REGNUM.
3468 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3470 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3471 that calls regcache_supply_regset and handles the EPC register
3472 separately. Move main logic to...
3473 (score7_linux_gregmap): ... this new register map.
3474 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3475 (score7_linux_gregset): Refer to register map. Add collect method.
3476 (score7_linux_regset_from_core_section): Replace
3477 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3478 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3479 (struct regset): Delete unused forward declaraction.
3480 (struct pt_regs): Delete structure definition.
3481 (elf_gregset_t): Delete typedef.
3483 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3485 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3486 (nios2_core_regset): Add collect method.
3488 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3490 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3491 platform-independent and don't write to read-only input buffer.
3492 (m32r_linux_collect_gregset): New function.
3493 (m32r_linux_gregset): Add collect method.
3495 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3497 * hppa-linux-tdep.c (greg_map): Rename to...
3498 (hppa_linux_gregmap): ... this. Also convert to
3499 regcache_map_entry format.
3500 (hppa_linux_supply_regset): Delete function.
3501 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3502 (hppa_linux_fpregmap): ... this new register map.
3503 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3504 register map, replace supply method by regcache_supply_regset, and
3505 add collect method regcache_collect_regset.
3507 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3509 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3510 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3511 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3512 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3513 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3514 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3515 (frv_linux_supply_gregset): Replace main logic by call to
3516 regcache_supply_regset, but keep clearing gr32-gr63.
3517 (frv_linux_supply_fpregset): Delete function.
3518 (frv_linux_gregset): Refer to appropriate register map and add
3519 regcache_collect_regset as the collect method.
3520 (frv_linux_fpregset): Likewise. Also exchange the supply method
3521 by regcache_supply_regset.
3523 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3525 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3526 by call to alpha_supply_int_regs.
3527 (alpha_linux_collect_gregset): New function.
3528 (alpha_linux_supply_fpregset): Replace logic by call to
3529 alpha_supply_fp_regs.
3530 (alpha_linux_collect_fpregset): New function.
3531 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3533 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3535 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3536 by call to regcache_collect_regset.
3537 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3538 instead of aarch64_linux_supply_gregset/_fpregset.
3539 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3540 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3541 header file instead.
3542 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3543 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3544 functions. Move logic to ...
3545 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3547 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3548 refer to new register maps, replace *_regset_from_core by
3549 regcache_supply_regset, and also use regcache_collect_regset.
3550 * aarch64-linux-tdep.h: Include "regset.h".
3551 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3553 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3554 macros, moved from C source file.
3555 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3556 variable declarations.
3558 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3560 * s390-linux-nat.c: Include "regset.h".
3561 (regmap_gregset): Delete macro.
3562 (s390_64_regmap_gregset): New register map for
3563 regcache_supply/_collect_regset.
3564 (s390_64_gregset): New regset.
3565 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3566 (regmap_fpregset): Delete macro.
3567 (s390_native_supply, s390_native_collect): Delete functions.
3568 (supply_gregset, fill_gregset): Replace s390-specific regmap
3569 handling by a call to regcache_supply/_collect_regset.
3570 (supply_fpregset, fill_fpregset): Call regcache_supply/
3571 _collect_regset instead of s390_native_supply/_collect.
3572 (fetch_regset, store_regset): Likewise. Also change the last
3573 parameter to a regset instead of a regmap.
3574 (s390_linux_fetch_inferior_registers)
3575 (390_linux_store_inferior_registers): Adjust last parameter in
3576 calls to fetch_regset and store_regset.
3577 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3578 (s390_gregmap): ... this. Also make static const and convert to
3579 regcache_map_entry format.
3580 (s390x_regmap_gregset): Delete.
3581 (s390_regmap_fpregset): Rename to...
3582 (s390_fpregmap): ... this. Make static const and convert to
3583 regcache_map_entry format.
3584 (s390_regmap_upper, s390_regmap_last_break)
3585 (s390x_regmap_last_break, s390_regmap_system_call)
3586 (s390_regmap_tdb): Likewise.
3587 (s390_supply_regset, s390_collect_regset): Remove functions.
3588 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3590 (s390_gregset, s390_fpregset, s390_upper_regset)
3591 (s390_last_break_regset, s390x_last_break_regset)
3592 (s390_system_call_regset, s390_tdb_regset): Make global and
3593 replace s390_supply/_collect_regset by regcache_supply/
3595 (s390x_gregset): Delete.
3596 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3597 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3598 (s390_regmap_fpregset, s390_regmap_last_break)
3599 (s390x_regmap_last_break, s390_regmap_system_call)
3600 (s390_regmap_tdb): Delete global variable declarations.
3601 (s390_gregset, s390_fpregset, s390_last_break_regset)
3602 (s390x_last_break_regset, s390_system_call_regset)
3603 (s390_tdb_regset): New global variable declarations.
3605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3607 * regcache.c: Include "regset.h".
3608 (regcache_transfer_regset): New local function.
3609 (regcache_supply_regset, regcache_collect_regset): New functions.
3610 * regcache.h (struct regcache_map_entry): New structure.
3611 (REGCACHE_MAP_SKIP): New enum value.
3612 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3616 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3617 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3618 (ppc_linux_collect_gregset ): Likewise.
3619 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3620 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3621 (ppc_collect_vrregset): Likewise.
3622 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3625 2014-08-07 Yao Qi <yao@codesourcery.com>
3627 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3628 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3629 * remote.c (remote_read_bytes): Likewise.
3631 2014-08-07 Yao Qi <yao@codesourcery.com>
3633 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3635 2014-08-07 Yao Qi <yao@codesourcery.com>
3638 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3639 TARGET_XFER_OK instead of 0.
3641 2014-08-07 Gary Benson <gbenson@redhat.com>
3643 * common/common-defs.h: Include errno.h.
3644 * defs.h: Do not include errno.h.
3645 * ada-typeprint.c: Likewise.
3646 * c-typeprint.c: Likewise.
3647 * core-regset.c: Likewise.
3648 * corefile.c: Likewise.
3649 * corelow.c: Likewise.
3650 * event-loop.c: Likewise.
3651 * f-typeprint.c: Likewise.
3652 * gnu-nat.c: Likewise.
3653 * go32-nat.c: Likewise.
3654 * i386gnu-nat.c: Likewise.
3655 * m2-typeprint.c: Likewise.
3656 * nat/linux-btrace.c: Likewise.
3657 * p-typeprint.c: Likewise.
3658 * procfs.c: Likewise.
3659 * remote-sim.c: Likewise.
3660 * rs6000-nat.c: Likewise.
3661 * target.c: Likewise.
3662 * typeprint.c: Likewise.
3663 * ui-file.c: Likewise.
3664 * valops.c: Likewise.
3665 * valprint.c: Likewise.
3667 2014-08-07 Gary Benson <gbenson@redhat.com>
3669 * common/common-defs.h: Include string.h.
3670 * aarch64-tdep.c: Do not include string.h.
3671 * ada-exp.y: Likewise.
3672 * ada-lang.c: Likewise.
3673 * ada-lex.l: Likewise.
3674 * ada-typeprint.c: Likewise.
3675 * ada-valprint.c: Likewise.
3676 * aix-thread.c: Likewise.
3677 * alpha-linux-tdep.c: Likewise.
3678 * alpha-mdebug-tdep.c: Likewise.
3679 * alpha-nat.c: Likewise.
3680 * alpha-osf1-tdep.c: Likewise.
3681 * alpha-tdep.c: Likewise.
3682 * alphanbsd-tdep.c: Likewise.
3683 * amd64-dicos-tdep.c: Likewise.
3684 * amd64-linux-tdep.c: Likewise.
3685 * amd64-nat.c: Likewise.
3686 * amd64-sol2-tdep.c: Likewise.
3687 * amd64fbsd-tdep.c: Likewise.
3688 * amd64obsd-tdep.c: Likewise.
3689 * arch-utils.c: Likewise.
3690 * arm-linux-nat.c: Likewise.
3691 * arm-linux-tdep.c: Likewise.
3692 * arm-tdep.c: Likewise.
3693 * arm-wince-tdep.c: Likewise.
3694 * armbsd-tdep.c: Likewise.
3695 * armnbsd-nat.c: Likewise.
3696 * armnbsd-tdep.c: Likewise.
3697 * armobsd-tdep.c: Likewise.
3698 * avr-tdep.c: Likewise.
3699 * ax-gdb.c: Likewise.
3700 * ax-general.c: Likewise.
3701 * bcache.c: Likewise.
3702 * bfin-tdep.c: Likewise.
3703 * breakpoint.c: Likewise.
3704 * build-id.c: Likewise.
3705 * buildsym.c: Likewise.
3706 * c-exp.y: Likewise.
3707 * c-lang.c: Likewise.
3708 * c-typeprint.c: Likewise.
3709 * c-valprint.c: Likewise.
3710 * charset.c: Likewise.
3711 * cli-out.c: Likewise.
3712 * cli/cli-cmds.c: Likewise.
3713 * cli/cli-decode.c: Likewise.
3714 * cli/cli-dump.c: Likewise.
3715 * cli/cli-interp.c: Likewise.
3716 * cli/cli-logging.c: Likewise.
3717 * cli/cli-script.c: Likewise.
3718 * cli/cli-setshow.c: Likewise.
3719 * cli/cli-utils.c: Likewise.
3720 * coffread.c: Likewise.
3721 * common/agent.c: Likewise.
3722 * common/buffer.c: Likewise.
3723 * common/buffer.h: Likewise.
3724 * common/common-utils.c: Likewise.
3725 * common/filestuff.c: Likewise.
3726 * common/filestuff.c: Likewise.
3727 * common/format.c: Likewise.
3728 * common/print-utils.c: Likewise.
3729 * common/rsp-low.c: Likewise.
3730 * common/signals.c: Likewise.
3731 * common/vec.h: Likewise.
3732 * common/xml-utils.c: Likewise.
3733 * core-regset.c: Likewise.
3734 * corefile.c: Likewise.
3735 * corelow.c: Likewise.
3736 * cp-abi.c: Likewise.
3737 * cp-name-parser.y: Likewise.
3738 * cp-support.c: Likewise.
3739 * cp-valprint.c: Likewise.
3740 * cris-tdep.c: Likewise.
3741 * d-exp.y: Likewise.
3742 * darwin-nat.c: Likewise.
3743 * dbxread.c: Likewise.
3744 * dcache.c: Likewise.
3745 * demangle.c: Likewise.
3746 * dicos-tdep.c: Likewise.
3747 * disasm.c: Likewise.
3748 * doublest.c: Likewise.
3749 * dsrec.c: Likewise.
3750 * dummy-frame.c: Likewise.
3751 * dwarf2-frame.c: Likewise.
3752 * dwarf2loc.c: Likewise.
3753 * dwarf2read.c: Likewise.
3754 * elfread.c: Likewise.
3755 * environ.c: Likewise.
3757 * event-loop.c: Likewise.
3758 * exceptions.c: Likewise.
3760 * expprint.c: Likewise.
3761 * f-exp.y: Likewise.
3762 * f-lang.c: Likewise.
3763 * f-typeprint.c: Likewise.
3764 * f-valprint.c: Likewise.
3765 * fbsd-nat.c: Likewise.
3766 * findcmd.c: Likewise.
3767 * findvar.c: Likewise.
3768 * fork-child.c: Likewise.
3769 * frame.c: Likewise.
3770 * frv-linux-tdep.c: Likewise.
3771 * frv-tdep.c: Likewise.
3773 * gdb_bfd.c: Likewise.
3774 * gdbarch.c: Likewise.
3775 * gdbarch.sh: Likewise.
3776 * gdbtypes.c: Likewise.
3777 * gnu-nat.c: Likewise.
3778 * gnu-v2-abi.c: Likewise.
3779 * gnu-v3-abi.c: Likewise.
3780 * go-exp.y: Likewise.
3781 * go-lang.c: Likewise.
3782 * go32-nat.c: Likewise.
3783 * guile/guile.c: Likewise.
3784 * guile/scm-auto-load.c: Likewise.
3785 * hppa-hpux-tdep.c: Likewise.
3786 * hppa-linux-nat.c: Likewise.
3787 * hppanbsd-tdep.c: Likewise.
3788 * hppaobsd-tdep.c: Likewise.
3789 * i386-cygwin-tdep.c: Likewise.
3790 * i386-dicos-tdep.c: Likewise.
3791 * i386-linux-tdep.c: Likewise.
3792 * i386-nto-tdep.c: Likewise.
3793 * i386-sol2-tdep.c: Likewise.
3794 * i386-tdep.c: Likewise.
3795 * i386bsd-tdep.c: Likewise.
3796 * i386gnu-nat.c: Likewise.
3797 * i386nbsd-tdep.c: Likewise.
3798 * i386obsd-tdep.c: Likewise.
3799 * i387-tdep.c: Likewise.
3800 * ia64-libunwind-tdep.c: Likewise.
3801 * ia64-linux-nat.c: Likewise.
3802 * inf-child.c: Likewise.
3803 * inf-ptrace.c: Likewise.
3804 * inf-ttrace.c: Likewise.
3805 * infcall.c: Likewise.
3806 * infcmd.c: Likewise.
3807 * inflow.c: Likewise.
3808 * infrun.c: Likewise.
3809 * interps.c: Likewise.
3810 * iq2000-tdep.c: Likewise.
3811 * irix5-nat.c: Likewise.
3812 * jv-exp.y: Likewise.
3813 * jv-lang.c: Likewise.
3814 * jv-typeprint.c: Likewise.
3815 * jv-valprint.c: Likewise.
3816 * language.c: Likewise.
3817 * linux-fork.c: Likewise.
3818 * linux-nat.c: Likewise.
3819 * lm32-tdep.c: Likewise.
3820 * m2-exp.y: Likewise.
3821 * m2-typeprint.c: Likewise.
3822 * m32c-tdep.c: Likewise.
3823 * m32r-linux-nat.c: Likewise.
3824 * m32r-linux-tdep.c: Likewise.
3825 * m32r-rom.c: Likewise.
3826 * m32r-tdep.c: Likewise.
3827 * m68hc11-tdep.c: Likewise.
3828 * m68k-tdep.c: Likewise.
3829 * m68kbsd-tdep.c: Likewise.
3830 * m68klinux-nat.c: Likewise.
3831 * m68klinux-tdep.c: Likewise.
3832 * m88k-tdep.c: Likewise.
3833 * machoread.c: Likewise.
3834 * macrocmd.c: Likewise.
3836 * mdebugread.c: Likewise.
3837 * mem-break.c: Likewise.
3838 * memattr.c: Likewise.
3839 * memory-map.c: Likewise.
3840 * mep-tdep.c: Likewise.
3841 * mi/mi-cmd-break.c: Likewise.
3842 * mi/mi-cmd-disas.c: Likewise.
3843 * mi/mi-cmd-env.c: Likewise.
3844 * mi/mi-cmd-stack.c: Likewise.
3845 * mi/mi-cmd-var.c: Likewise.
3846 * mi/mi-cmds.c: Likewise.
3847 * mi/mi-console.c: Likewise.
3848 * mi/mi-getopt.c: Likewise.
3849 * mi/mi-interp.c: Likewise.
3850 * mi/mi-main.c: Likewise.
3851 * mi/mi-parse.c: Likewise.
3852 * microblaze-rom.c: Likewise.
3853 * microblaze-tdep.c: Likewise.
3854 * mingw-hdep.c: Likewise.
3855 * minidebug.c: Likewise.
3856 * minsyms.c: Likewise.
3857 * mips-irix-tdep.c: Likewise.
3858 * mips-linux-tdep.c: Likewise.
3859 * mips-tdep.c: Likewise.
3860 * mips64obsd-tdep.c: Likewise.
3861 * mipsnbsd-tdep.c: Likewise.
3862 * mipsread.c: Likewise.
3863 * mn10300-linux-tdep.c: Likewise.
3864 * mn10300-tdep.c: Likewise.
3865 * monitor.c: Likewise.
3866 * moxie-tdep.c: Likewise.
3867 * mt-tdep.c: Likewise.
3868 * nat/linux-btrace.c: Likewise.
3869 * nat/linux-osdata.c: Likewise.
3870 * nat/linux-procfs.c: Likewise.
3871 * nat/linux-ptrace.c: Likewise.
3872 * nat/linux-waitpid.c: Likewise.
3873 * nbsd-tdep.c: Likewise.
3874 * nios2-linux-tdep.c: Likewise.
3875 * nto-procfs.c: Likewise.
3876 * nto-tdep.c: Likewise.
3877 * objc-lang.c: Likewise.
3878 * objfiles.c: Likewise.
3879 * opencl-lang.c: Likewise.
3880 * osabi.c: Likewise.
3881 * osdata.c: Likewise.
3882 * p-exp.y: Likewise.
3883 * p-lang.c: Likewise.
3884 * p-typeprint.c: Likewise.
3885 * parse.c: Likewise.
3886 * posix-hdep.c: Likewise.
3887 * ppc-linux-nat.c: Likewise.
3888 * ppc-sysv-tdep.c: Likewise.
3889 * ppcfbsd-tdep.c: Likewise.
3890 * ppcnbsd-tdep.c: Likewise.
3891 * ppcobsd-tdep.c: Likewise.
3892 * printcmd.c: Likewise.
3893 * procfs.c: Likewise.
3894 * prologue-value.c: Likewise.
3895 * python/py-auto-load.c: Likewise.
3896 * python/py-gdb-readline.c: Likewise.
3897 * ravenscar-thread.c: Likewise.
3898 * regcache.c: Likewise.
3899 * registry.c: Likewise.
3900 * remote-fileio.c: Likewise.
3901 * remote-m32r-sdi.c: Likewise.
3902 * remote-mips.c: Likewise.
3903 * remote-notif.c: Likewise.
3904 * remote-sim.c: Likewise.
3905 * remote.c: Likewise.
3906 * reverse.c: Likewise.
3907 * rs6000-aix-tdep.c: Likewise.
3908 * ser-base.c: Likewise.
3909 * ser-go32.c: Likewise.
3910 * ser-mingw.c: Likewise.
3911 * ser-pipe.c: Likewise.
3912 * ser-tcp.c: Likewise.
3913 * ser-unix.c: Likewise.
3914 * serial.c: Likewise.
3915 * sh-tdep.c: Likewise.
3916 * sh64-tdep.c: Likewise.
3917 * shnbsd-tdep.c: Likewise.
3919 * sol-thread.c: Likewise.
3920 * solib-dsbt.c: Likewise.
3921 * solib-frv.c: Likewise.
3922 * solib-osf.c: Likewise.
3923 * solib-som.c: Likewise.
3924 * solib-spu.c: Likewise.
3925 * solib-target.c: Likewise.
3926 * solib.c: Likewise.
3927 * somread.c: Likewise.
3928 * source.c: Likewise.
3929 * sparc-nat.c: Likewise.
3930 * sparc-sol2-tdep.c: Likewise.
3931 * sparc-tdep.c: Likewise.
3932 * sparc64-tdep.c: Likewise.
3933 * sparc64fbsd-tdep.c: Likewise.
3934 * sparc64nbsd-tdep.c: Likewise.
3935 * sparcnbsd-tdep.c: Likewise.
3936 * spu-linux-nat.c: Likewise.
3937 * spu-multiarch.c: Likewise.
3938 * spu-tdep.c: Likewise.
3939 * stabsread.c: Likewise.
3940 * stack.c: Likewise.
3941 * std-regs.c: Likewise.
3942 * symfile.c: Likewise.
3943 * symmisc.c: Likewise.
3944 * symtab.c: Likewise.
3945 * target.c: Likewise.
3946 * thread.c: Likewise.
3947 * tilegx-linux-nat.c: Likewise.
3948 * tilegx-tdep.c: Likewise.
3950 * tracepoint.c: Likewise.
3951 * tui/tui-command.c: Likewise.
3952 * tui/tui-data.c: Likewise.
3953 * tui/tui-disasm.c: Likewise.
3954 * tui/tui-file.c: Likewise.
3955 * tui/tui-layout.c: Likewise.
3956 * tui/tui-out.c: Likewise.
3957 * tui/tui-regs.c: Likewise.
3958 * tui/tui-source.c: Likewise.
3959 * tui/tui-stack.c: Likewise.
3960 * tui/tui-win.c: Likewise.
3961 * tui/tui-windata.c: Likewise.
3962 * tui/tui-winsource.c: Likewise.
3963 * typeprint.c: Likewise.
3964 * ui-file.c: Likewise.
3965 * ui-out.c: Likewise.
3966 * user-regs.c: Likewise.
3967 * utils.c: Likewise.
3968 * v850-tdep.c: Likewise.
3969 * valarith.c: Likewise.
3970 * valops.c: Likewise.
3971 * valprint.c: Likewise.
3972 * value.c: Likewise.
3973 * varobj.c: Likewise.
3974 * vax-tdep.c: Likewise.
3975 * vaxnbsd-tdep.c: Likewise.
3976 * vaxobsd-tdep.c: Likewise.
3977 * windows-nat.c: Likewise.
3978 * xcoffread.c: Likewise.
3979 * xml-support.c: Likewise.
3980 * xstormy16-tdep.c: Likewise.
3981 * xtensa-linux-nat.c: Likewise.
3983 2014-08-07 Gary Benson <gbenson@redhat.com>
3985 * common/common-defs.h: Include gdb_assert.h.
3986 * aarch64-tdep.c: Do not include gdb_assert.h.
3987 * addrmap.c: Likewise.
3988 * aix-thread.c: Likewise.
3989 * alpha-linux-tdep.c: Likewise.
3990 * alpha-mdebug-tdep.c: Likewise.
3991 * alphanbsd-tdep.c: Likewise.
3992 * amd64-nat.c: Likewise.
3993 * amd64-tdep.c: Likewise.
3994 * amd64bsd-nat.c: Likewise.
3995 * amd64fbsd-nat.c: Likewise.
3996 * amd64fbsd-tdep.c: Likewise.
3997 * amd64nbsd-nat.c: Likewise.
3998 * amd64nbsd-tdep.c: Likewise.
3999 * amd64obsd-nat.c: Likewise.
4000 * amd64obsd-tdep.c: Likewise.
4001 * arch-utils.c: Likewise.
4002 * arm-tdep.c: Likewise.
4003 * armbsd-tdep.c: Likewise.
4005 * bcache.c: Likewise.
4006 * bfin-tdep.c: Likewise.
4007 * blockframe.c: Likewise.
4008 * breakpoint.c: Likewise.
4009 * bsd-kvm.c: Likewise.
4010 * bsd-uthread.c: Likewise.
4011 * buildsym.c: Likewise.
4012 * c-exp.y: Likewise.
4013 * c-lang.c: Likewise.
4014 * charset.c: Likewise.
4015 * cleanups.c: Likewise.
4016 * cli-out.c: Likewise.
4017 * cli/cli-decode.c: Likewise.
4018 * cli/cli-dump.c: Likewise.
4019 * cli/cli-logging.c: Likewise.
4020 * cli/cli-script.c: Likewise.
4021 * cli/cli-utils.c: Likewise.
4022 * coffread.c: Likewise.
4023 * common/common-utils.c: Likewise.
4024 * common/queue.h: Likewise.
4025 * common/signals.c: Likewise.
4026 * common/vec.h: Likewise.
4027 * complaints.c: Likewise.
4028 * completer.c: Likewise.
4029 * corelow.c: Likewise.
4030 * cp-abi.c: Likewise.
4031 * cp-name-parser.y: Likewise.
4032 * cp-namespace.c: Likewise.
4033 * cp-support.c: Likewise.
4034 * cris-tdep.c: Likewise.
4035 * dbxread.c: Likewise.
4036 * dictionary.c: Likewise.
4037 * doublest.c: Likewise.
4038 * dsrec.c: Likewise.
4039 * dummy-frame.c: Likewise.
4040 * dwarf2-frame-tailcall.c: Likewise.
4041 * dwarf2-frame.c: Likewise.
4042 * dwarf2expr.c: Likewise.
4043 * dwarf2loc.c: Likewise.
4044 * dwarf2read.c: Likewise.
4046 * event-loop.c: Likewise.
4047 * exceptions.c: Likewise.
4048 * expprint.c: Likewise.
4049 * f-valprint.c: Likewise.
4050 * fbsd-nat.c: Likewise.
4051 * findvar.c: Likewise.
4052 * frame-unwind.c: Likewise.
4053 * frame.c: Likewise.
4054 * frv-tdep.c: Likewise.
4055 * gcore.c: Likewise.
4056 * gdb-dlfcn.c: Likewise.
4057 * gdb_bfd.c: Likewise.
4058 * gdbarch.c: Likewise.
4059 * gdbarch.sh: Likewise.
4060 * gdbtypes.c: Likewise.
4061 * gnu-nat.c: Likewise.
4062 * gnu-v3-abi.c: Likewise.
4063 * go-lang.c: Likewise.
4064 * guile/scm-exception.c: Likewise.
4065 * guile/scm-gsmob.c: Likewise.
4066 * guile/scm-lazy-string.c: Likewise.
4067 * guile/scm-math.c: Likewise.
4068 * guile/scm-pretty-print.c: Likewise.
4069 * guile/scm-safe-call.c: Likewise.
4070 * guile/scm-utils.c: Likewise.
4071 * guile/scm-value.c: Likewise.
4072 * h8300-tdep.c: Likewise.
4073 * hppa-hpux-nat.c: Likewise.
4074 * hppa-tdep.c: Likewise.
4075 * hppanbsd-tdep.c: Likewise.
4076 * hppaobsd-tdep.c: Likewise.
4077 * i386-darwin-nat.c: Likewise.
4078 * i386-darwin-tdep.c: Likewise.
4079 * i386-nto-tdep.c: Likewise.
4080 * i386-tdep.c: Likewise.
4081 * i386bsd-nat.c: Likewise.
4082 * i386fbsd-tdep.c: Likewise.
4083 * i386gnu-nat.c: Likewise.
4084 * i386nbsd-tdep.c: Likewise.
4085 * i386obsd-tdep.c: Likewise.
4086 * i387-tdep.c: Likewise.
4087 * ia64-libunwind-tdep.c: Likewise.
4088 * ia64-tdep.c: Likewise.
4089 * inf-ptrace.c: Likewise.
4090 * inf-ttrace.c: Likewise.
4091 * infcall.c: Likewise.
4092 * infcmd.c: Likewise.
4093 * infrun.c: Likewise.
4094 * inline-frame.c: Likewise.
4095 * interps.c: Likewise.
4096 * jv-lang.c: Likewise.
4097 * jv-typeprint.c: Likewise.
4098 * linux-fork.c: Likewise.
4099 * linux-nat.c: Likewise.
4100 * linux-thread-db.c: Likewise.
4101 * m32c-tdep.c: Likewise.
4102 * m32r-linux-nat.c: Likewise.
4103 * m32r-tdep.c: Likewise.
4104 * m68k-tdep.c: Likewise.
4105 * m68kbsd-nat.c: Likewise.
4106 * m68kbsd-tdep.c: Likewise.
4107 * m88k-tdep.c: Likewise.
4108 * machoread.c: Likewise.
4109 * macroexp.c: Likewise.
4110 * macrotab.c: Likewise.
4111 * maint.c: Likewise.
4112 * mdebugread.c: Likewise.
4113 * memory-map.c: Likewise.
4114 * mep-tdep.c: Likewise.
4115 * mi/mi-common.c: Likewise.
4116 * microblaze-tdep.c: Likewise.
4117 * mingw-hdep.c: Likewise.
4118 * mips-linux-nat.c: Likewise.
4119 * mips-linux-tdep.c: Likewise.
4120 * mips-tdep.c: Likewise.
4121 * mips64obsd-tdep.c: Likewise.
4122 * mipsnbsd-tdep.c: Likewise.
4123 * mn10300-linux-tdep.c: Likewise.
4124 * mn10300-tdep.c: Likewise.
4125 * moxie-tdep.c: Likewise.
4126 * mt-tdep.c: Likewise.
4127 * nat/linux-btrace.c: Likewise.
4128 * nat/linux-osdata.c: Likewise.
4129 * nat/linux-ptrace.c: Likewise.
4130 * nat/mips-linux-watch.c: Likewise.
4131 * nios2-linux-tdep.c: Likewise.
4132 * nios2-tdep.c: Likewise.
4133 * objc-lang.c: Likewise.
4134 * objfiles.c: Likewise.
4135 * obsd-nat.c: Likewise.
4136 * opencl-lang.c: Likewise.
4137 * osabi.c: Likewise.
4138 * parse.c: Likewise.
4139 * ppc-linux-nat.c: Likewise.
4140 * ppc-sysv-tdep.c: Likewise.
4141 * ppcfbsd-nat.c: Likewise.
4142 * ppcfbsd-tdep.c: Likewise.
4143 * ppcnbsd-nat.c: Likewise.
4144 * ppcnbsd-tdep.c: Likewise.
4145 * ppcobsd-nat.c: Likewise.
4146 * ppcobsd-tdep.c: Likewise.
4147 * printcmd.c: Likewise.
4148 * procfs.c: Likewise.
4149 * prologue-value.c: Likewise.
4150 * psymtab.c: Likewise.
4151 * python/py-lazy-string.c: Likewise.
4152 * python/py-value.c: Likewise.
4153 * regcache.c: Likewise.
4154 * reggroups.c: Likewise.
4155 * registry.c: Likewise.
4156 * remote-sim.c: Likewise.
4157 * remote.c: Likewise.
4158 * rs6000-aix-tdep.c: Likewise.
4159 * rs6000-tdep.c: Likewise.
4160 * s390-linux-tdep.c: Likewise.
4161 * score-tdep.c: Likewise.
4162 * ser-base.c: Likewise.
4163 * ser-mingw.c: Likewise.
4164 * sh-tdep.c: Likewise.
4165 * sh64-tdep.c: Likewise.
4166 * solib-darwin.c: Likewise.
4167 * solib-spu.c: Likewise.
4168 * solib-svr4.c: Likewise.
4169 * source.c: Likewise.
4170 * sparc-nat.c: Likewise.
4171 * sparc-sol2-tdep.c: Likewise.
4172 * sparc-tdep.c: Likewise.
4173 * sparc64-sol2-tdep.c: Likewise.
4174 * sparc64-tdep.c: Likewise.
4175 * sparc64fbsd-tdep.c: Likewise.
4176 * sparc64nbsd-tdep.c: Likewise.
4177 * sparc64obsd-tdep.c: Likewise.
4178 * sparcnbsd-tdep.c: Likewise.
4179 * sparcobsd-tdep.c: Likewise.
4180 * spu-multiarch.c: Likewise.
4181 * spu-tdep.c: Likewise.
4182 * stabsread.c: Likewise.
4183 * stack.c: Likewise.
4184 * symfile.c: Likewise.
4185 * symtab.c: Likewise.
4186 * target-descriptions.c: Likewise.
4187 * target-memory.c: Likewise.
4188 * target.c: Likewise.
4189 * tic6x-linux-tdep.c: Likewise.
4190 * tic6x-tdep.c: Likewise.
4191 * tilegx-linux-nat.c: Likewise.
4192 * tilegx-tdep.c: Likewise.
4194 * tramp-frame.c: Likewise.
4195 * tui/tui-out.c: Likewise.
4196 * tui/tui-winsource.c: Likewise.
4197 * ui-out.c: Likewise.
4198 * user-regs.c: Likewise.
4199 * utils.c: Likewise.
4200 * v850-tdep.c: Likewise.
4201 * valops.c: Likewise.
4202 * value.c: Likewise.
4203 * varobj.c: Likewise.
4204 * vax-nat.c: Likewise.
4205 * xml-syscall.c: Likewise.
4206 * xml-tdesc.c: Likewise.
4207 * xstormy16-tdep.c: Likewise.
4208 * xtensa-linux-nat.c: Likewise.
4209 * xtensa-tdep.c: Likewise.
4211 2014-08-07 Gary Benson <gbenson@redhat.com>
4213 * common/common-defs.h: Include common-utils.h.
4214 * defs.h: Do not include common-utils.h.
4215 * common/gdb_assert.h: Likewise.
4216 * darwin-nat.h: Likewise.
4217 * nat/linux-btrace.c: Likewise.
4218 * target/waitstatus.h: Likewise.
4220 2014-08-07 Gary Benson <gbenson@redhat.com>
4222 * common/common-defs.h: Include ptid.h.
4223 * defs.h: Do not include ptid.h.
4224 * inferior.h: Likewise.
4225 * infrun.h: Likewise.
4226 * nat/linux-btrace.h: Likewise.
4227 * nat/linux-osdata.h: Likewise.
4228 * target/waitstatus.h: Likewise.
4230 2014-08-07 Gary Benson <gbenson@redhat.com>
4232 * common/common-defs.h: Include gdb_locale.h.
4233 * defs.h: Do not include gdb_locale.h.
4235 2014-08-07 Gary Benson <gbenson@redhat.com>
4237 * common/common-defs.h: Include gdb/signals.h.
4238 * defs.h: Do not include gdb/signals.h.
4240 2014-08-07 Gary Benson <gbenson@redhat.com>
4242 * common/common-defs.h: Include pathmax.h.
4243 * defs.h: Do not include pathmax.h.
4245 2014-08-07 Gary Benson <gbenson@redhat.com>
4247 * common/common-defs.h: Include libiberty.h.
4248 * defs.h: Do not include libiberty.h.
4249 * common/queue.h: Likewise.
4250 * cp-name-parser.y: Likewise.
4251 * mi/mi-cmd-catch.c: Likewise.
4252 * python/python.c: Likewise.
4254 2014-08-07 Gary Benson <gbenson@redhat.com>
4256 * common/common-defs.h: Include ansidecl.h.
4257 * defs.h: Do not include ansidecl.h.
4258 * common/buffer.h: Likewise.
4259 * common/common-utils.h: Likewise.
4261 2014-08-07 Gary Benson <gbenson@redhat.com>
4263 * common/common-defs.h: Include stddef.h.
4264 * defs.h: Do not include stddef.h.
4265 * common/common-utils.h: Likewise.
4266 * amd64fbsd-nat.c: Likewise.
4267 * bcache.c: Likewise.
4268 * charset.c: Likewise.
4269 * common/buffer.h: Likewise.
4270 * common/vec.h: Likewise.
4271 * i386bsd-nat.c: Likewise.
4272 * nat/linux-btrace.h: Likewise.
4273 * ppcfbsd-nat.c: Likewise.
4274 * ppcnbsd-tdep.h: Likewise.
4275 * ppcobsd-nat.c: Likewise.
4276 * ppcobsd-tdep.h: Likewise.
4277 * python/py-gdb-readline.c: Likewise.
4279 2014-08-07 Gary Benson <gbenson@redhat.com>
4281 * common/common-defs.h: Include stdarg.h.
4282 * defs.h: Do not include stdarg.h.
4283 * ada-lang.c: Likewise.
4284 * common/common-utils.h: Likewise.
4285 * guile/scm-string.c: Likewise.
4286 * guile/scm-utils.c: Likewise.
4287 * m32c-tdep.c: Likewise.
4289 2014-08-07 Gary Benson <gbenson@redhat.com>
4291 * common/common-defs.h: Include stdlib.h.
4292 * defs.h: Do not include stdlib.h.
4293 * addrmap.c: Likewise.
4294 * bcache.c: Likewise.
4295 * common/buffer.c: Likewise.
4296 * common/common-utils.c: Likewise.
4297 * cp-name-parser.y: Likewise.
4298 * go32-nat.c: Likewise.
4299 * mn10300-linux-tdep.c: Likewise.
4300 * nat/linux-osdata.c: Likewise.
4301 * tui/tui.c: Likewise.
4302 * windows-nat.c: Likewise.
4304 2014-08-07 Gary Benson <gbenson@redhat.com>
4306 * common/common-defs.h: Include stdio.h.
4307 * defs.h: Do not include stdio.h.
4308 * ada-lang.c: Likewise.
4309 * common/buffer.c: Likewise.
4310 * common/common-utils.c: Likewise.
4311 * cp-name-parser.y: Likewise.
4312 * gnu-nat.c: Likewise.
4313 * go32-nat.c: Likewise.
4314 * i386gnu-nat.c: Likewise.
4315 * proc-api.c: Likewise.
4316 * proc-events.c: Likewise.
4317 * proc-flags.c: Likewise.
4318 * proc-why.c: Likewise.
4319 * python/python-internal.h: Likewise.
4320 * target-memory.c: Likewise.
4321 * tui/tui-io.c: Likewise.
4322 * tui/tui.c: Likewise.
4324 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4326 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4327 (scan_dyntag_auxv): Same.
4329 2014-08-06 Yao Qi <yao@codesourcery.com>
4331 * amd64-linux-nat.c: Remove duplicated include
4333 * i386-linux-nat.c: Likewise.
4335 2014-08-06 Yao Qi <yao@codesourcery.com>
4337 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4338 operand" with "Special opcode" in comments.
4340 2014-08-05 Gary Benson <gbenson@redhat.com>
4342 * interps.c (initialize_interps): Remove prototype.
4343 (interpreter_initialized): Remove static global.
4344 (interp_add): Do not call initialize_interps.
4345 (initialize_interps): Remove function.
4347 2014-08-05 Gary Benson <gbenson@redhat.com>
4349 * utils.c (vwarning): Remove spurious va_end.
4351 2014-08-05 Alan Modra <amodra@gmail.com>
4353 * charset.c (convert_between_encodings): Cast result of obstack_base.
4354 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4355 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4356 (read_unwind_info): Use size_t for some locals.
4357 * jit.c (finalize_symtab): Likewise.
4358 * utils.c (hashtab_obstack_allocate): Likewise.
4359 * symmisc.c (print_objfile_statistics): Update format strings.
4361 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4363 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4364 (Changes in GDB 7.8): ... here.
4366 2014-08-04 Tom Tromey <tromey@redhat.com>
4368 * target.c (set_targetdebug): New function.
4369 (initialize_targets): Pass set_targetdebug when creating "set
4372 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4374 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4375 if detecting a variable-sized field that is not the last field.
4376 Fix struct type length computation.
4378 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4380 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4383 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4385 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4386 Remove "+ 8" offset in computation of CHAIN_VMA.
4388 2014-07-31 Doug Evans <dje@google.com>
4390 * inflow.c (child_terminal_inferior): Add comment.
4391 (child_terminal_ours_for_output): Add comment.
4392 (child_terminal_ours): Add comment.
4393 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4394 (linux_nat_terminal_ours): Add comment.
4396 2014-07-31 Gary Benson <gbenson@redhat.com>
4398 * common/btrace-common.h: Do not include defs.h or server.h.
4399 * nat/mips-linux-watch.h: Likewise.
4400 * gdb-dlfcn.h: Do not include defs.h.
4401 * tracefile.h: Likewise.
4403 2014-07-30 Roland McGrath <mcgrathr@google.com>
4405 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4407 2014-07-30 Tom Tromey <tromey@redhat.com>
4409 * bsd-kvm.c (bsd_kvm_open): Constify.
4410 * corelow.c (core_open): Constify.
4411 * ctf.c (ctf_open): Constify.
4412 * dbug-rom.c (dbug_open): Constify.
4413 * exec.c (exec_open): Constify.
4414 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4415 * microblaze-rom.c (picobug_open): Constify.
4416 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4418 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4419 * record-btrace.c (record_btrace_open): Constify.
4420 * record-full.c (record_full_core_open_1, record_full_open_1)
4421 (record_full_open): Constify.
4422 * remote-m32r-sdi.c (m32r_open): Constify.
4423 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4424 (rockhopper_open, lsi_open): Constify.
4425 * remote-sim.c (gdbsim_open): Constify.
4426 * remote.c (remote_open, extended_remote_open, remote_open_1):
4428 * target.h (struct target_ops) <to_open>: Make "arg" const.
4429 * tracefile-tfile.c (tfile_open): Constify.
4431 2014-07-30 Tom Tromey <tromey@redhat.com>
4433 * breakpoint.c (map_breakpoint_numbers): Update.
4434 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4435 (get_number_const): New function.
4436 (get_number): Rewrite using get_number_const.
4437 (init_number_or_range): Make "string" const.
4438 (number_is_in_list): Make "list" const.
4439 * cli/cli-utils.h (get_number_const): Declare.
4440 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4441 (init_number_or_range, number_is_in_list): Update.
4442 * printcmd.c (map_display_numbers): Update.
4443 * value.c (value_from_history_ref): Constify.
4444 * value.h (value_from_history_ref): Update.
4446 2014-07-30 Tom Tromey <tromey@redhat.com>
4448 * corefile.c (hook_type, call_extra_exec_file_hooks)
4449 (specify_exec_file_hook): Constify.
4450 * exec.c (exec_file_attach): Make "filename" const.
4451 * gdbcore.h (deprecated_exec_file_display_hook)
4452 (specify_exec_file_hook, exec_file_attach): Constify.
4453 * main.c (captured_main): Use catch_command_errors_const.
4455 2014-07-30 Tom Tromey <tromey@redhat.com>
4457 * target.c (open_target): New function.
4458 (add_target_with_completer, add_deprecated_target_alias): Use
4459 set_cmd_sfunc, set_cmd_context.
4460 (debug_to_open): Remove.
4461 (setup_target_debug): Update.
4463 2014-07-30 Yao Qi <yao@codesourcery.com>
4465 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4467 * parse.c (exp_iterate): Update comments.
4469 2014-07-30 Gary Benson <gbenson@redhat.com>
4471 * common/common-defs.h: New file.
4472 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4473 * defs.h: Include common-defs.h.
4474 Do not include config.h or build-gnulib/config.h.
4476 2014-07-30 Gary Benson <gbenson@redhat.com>
4478 * common/common-utils.h: Do not include config.h.
4479 * nat/linux-btrace.h: Likewise.
4481 2014-07-30 Gary Benson <gbenson@redhat.com>
4483 * btrace.c: Include defs.h.
4484 * common/ptid.c: Include defs.h or server.h as appropriate.
4485 * nat/mips-linux-watch.c: Likewise.
4487 2014-07-29 Tom Tromey <tromey@redhat.com>
4489 * target.c (target_is_pushed): Simplify.
4491 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4495 2014-07-29 Yao Qi <yao@codesourcery.com>
4498 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4500 2014-07-28 Doug Evans <xdje42@gmail.com>
4503 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4504 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4507 2014-07-28 Will Newton <will.newton@linaro.org>
4509 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4510 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4511 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4512 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4513 (THUMB2_EABI_SYSCALL): Likewise.
4514 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4516 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4517 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4519 2014-07-27 Doug Evans <xdje42@gmail.com>
4521 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4523 2014-07-27 Doug Evans <xdje42@gmail.com>
4525 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4527 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4528 Doug Evans <xdje42@gmail.com>
4531 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4532 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4533 * configure.ac: Try to use guild to compile an scm file, if it fails
4534 then disable guile support.
4535 * configure: Regenerate.
4536 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4538 (GUILE_COMPILED_FILES): New variable.
4539 (GUILE_FILES) Update.
4540 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4541 (stamp-guile): Compile scm files.
4542 * guile/guile.c (boot_guile_support): New function.
4543 (standard_throw_args_p): New function.
4544 (print_standard_throw_error, print_throw_error): New functions.
4545 (handle_boot_error): New function.
4546 (initialize_scheme_side): Rewrite to call boot_guile_support.
4547 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4548 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4550 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4551 Doug Evans <xdje42@gmail.com>
4554 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4555 * guile/lib/gdb/support.scm: New file.
4556 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4557 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4559 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4561 (%assert-type): Ditto, and renamed to assert-type.
4562 (%exception-print-style): Delete.
4564 2014-07-26 Doug Evans <xdje42@gmail.com>
4567 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4568 * configure: Regenerate.
4569 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4571 (PYTHON_FILES): New variable.
4572 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4573 (GUILE_FILES): New variable.
4574 (stamp-python, install-python, uninstall-python): Handle empty
4576 (stamp-guile, install-guile, uninstall-guile): Ditto.
4578 2014-07-26 Doug Evans <xdje42@gmail.com>
4581 * guile/lib/gdb.scm (pretty-printers): Export.
4582 (set-pretty-printers!): Export.
4583 * guile/lib/gdb/printing.scm (gdb module): Update.
4584 (prepend-pretty-printer!, append-pretty-printer!): Update.
4585 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4586 (pretty_printer_list_var): Delete.
4587 (pretty_printer_list): New static global.
4588 (gdbscm_pretty_printers): New function.
4589 (gdbscm_set_pretty_printers_x): New function.
4590 (ppscm_find_pretty_printer_from_gdb): Update.
4591 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4592 (gdbscm_initialize_pretty_printers): Update.
4594 2014-07-26 Doug Evans <xdje42@gmail.com>
4597 * configure.ac: Add check for header gc/gc.h.
4598 Add check for function setenv.
4599 * configure: Regenerate.
4600 * config.in: Regenerate.
4601 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4603 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4605 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4606 variation in gdbarch matching.
4608 2014-07-25 Tom Tromey <tromey@redhat.com>
4610 * exec.c (using_exec_ops): Remove.
4611 (exec_close_1): Update. Remove extraneous block, reindent.
4612 (add_target_sections): Use target_is_pushed.
4614 2014-07-25 Pedro Alves <palves@redhat.com>
4616 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4617 * monitor.c (monitor_create_inferior): Likewise.
4618 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4619 * remote-sim.c (gdbsim_create_inferior): Likewise.
4620 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4621 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4622 * windows-nat.c (do_initial_windows_stuff): Likewise.
4624 2014-07-25 Pedro Alves <palves@redhat.com>
4626 * NEWS: Mention signal passing and "signal" command changes.
4627 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4629 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4631 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4632 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4633 (jump_command): Adjust clear_proceed_status call.
4634 (signal_command): Warn if other thread that are resumed have
4635 signals that will be delivered. Adjust clear_proceed_status call.
4636 (until_next_command, finish_command)
4637 (proceed_after_attach_callback, attach_command_post_wait)
4638 (attach_command): Adjust clear_proceed_status call.
4639 * infrun.c (proceed_after_vfork_done): Likewise.
4640 (proceed_after_attach_callback): Adjust comment.
4641 (clear_proceed_status_thread): Clear stop_signal if not in pass
4643 (clear_proceed_status_callback): Delete.
4644 (clear_proceed_status): New 'step' parameter. Only clear the
4645 proceed status of threads the command being prepared is about to
4647 (proceed): If passed in an explicit signal, override stop_signal
4648 with it. Don't pass the last stop signal to the thread we're
4650 (init_wait_for_inferior): Adjust clear_proceed_status call.
4651 (switch_back_to_stepped_thread): Clear the signal if it should not
4653 * infrun.h (clear_proceed_status): New 'step' parameter.
4654 (user_visible_resume_ptid): Add comment.
4655 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4656 signal is in pass state.
4657 * remote.c (append_pending_thread_resumptions): Likewise.
4658 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4660 2014-07-25 Tom Tromey <tromey@redhat.com>
4662 * target.h (target_stopped_data_address)
4663 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4666 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4668 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4670 (avr_pointer_to_address): Likewise.
4672 2014-07-24 Tom Tromey <tromey@redhat.com>
4674 * monitor.c (compile_pattern): Update.
4675 * target.h (struct target_ops) <to_shortname, to_longname,
4678 2014-07-24 Tom Tromey <tromey@redhat.com>
4680 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4681 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4682 (add_info_alias, add_com): Make "doc" const.
4683 (print_doc_line): Make "str" const.
4684 (delete_cmd): Update.
4685 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4686 (print_doc_line): Update.
4687 * cli/cli-script.c (document_command): Update.
4688 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4689 (add_com, add_info, add_info_alias): 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 (print_help_for_command): Make "prefix" const.
4696 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4697 (help_cmd_list): Constify.
4698 (lookup_cmd): Update.
4699 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4701 (help_cmd_list, apropos_cmd): Update.
4702 * cli/cli-script.c (show_user): Update.
4703 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4704 * cli/cli-setshow.h (cmd_show_list): Update.
4705 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4706 (cmd_show_list): Update.
4707 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4708 * python/py-cmd.c (cmdpy_destroyer): Update.
4710 2014-07-24 Tom Tromey <tromey@redhat.com>
4712 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4713 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4715 * command.h (deprecate_cmd): Update.
4716 * maint.c (maintenance_do_deprecate): Add casts.
4718 2014-07-24 Tom Tromey <tromey@redhat.com>
4720 * cli/cli-decode.c (help_cmd): Make parameter "const".
4721 * cli/cli-decode.h (help_cmd): Update.
4723 2014-07-24 Tom Tromey <tromey@redhat.com>
4725 * stack.c (up_silently_base, down_silently_base): Make argument
4728 2014-07-24 Tom Tromey <tromey@redhat.com>
4730 * solib.c (solib_add): Make "pattern" const.
4731 * solib.h (solib_add): Update.
4733 2014-07-24 Tom Tromey <tromey@redhat.com>
4735 * remote.c (remote_serial_open, print_packet, putpkt)
4736 (putpkt_binary): Constify.
4737 * remote.h (putpkt): Update.
4739 2014-07-24 Tom Tromey <tromey@redhat.com>
4741 * monitor.c (monitor_open): Make "args" const.
4742 * monitor.h (monitor_open): Update.
4744 2014-07-24 Tom Tromey <tromey@redhat.com>
4746 * maint.c (match_bfd_flags): Make "string" const.
4747 (print_bfd_section_info): Remove casts.
4748 (print_objfile_section_info): Make "string" const.
4750 2014-07-24 Tom Tromey <tromey@redhat.com>
4752 * inf-child.c (inf_child_open_target): Make "arg" const.
4753 * inf-child.h (inf_child_open_target): Update.
4755 2014-07-24 Tom Tromey <tromey@redhat.com>
4757 * environ.c (unset_in_environ): Make "var" const.
4758 * environ.h (unset_in_environ): Update.
4760 2014-07-24 Tom Tromey <tromey@redhat.com>
4762 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4764 (scan_filename_with_cleanup): Likewise.
4765 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4766 Make arguments const.
4767 (restore_command): Update.
4769 2014-07-24 Pedro Alves <palves@redhat.com>
4771 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4773 2014-07-24 Tom Tromey <tromey@redhat.com>
4774 Gary Benson <gbenson@redhat.com>
4776 * nat/linux-ptrace.c (additional_flags): New global.
4777 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4778 additional_flags; don't check GDBSERVER.
4779 (linux_ptrace_set_additional_flags): New function.
4780 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4782 * linux-nat.c (_initialize_linux_nat): Call
4783 linux_ptrace_set_additional_flags.
4785 2014-07-24 Tom Tromey <tromey@redhat.com>
4787 * make-target-delegates (munge_type, write_debugmethod): New
4789 (debug_names): New global.
4790 ($TARGET_DEBUG_PRINTER): New global.
4791 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4793 Write debug methods. Generate init_debug_target.
4794 * target-debug.h: New file.
4795 * target-delegates.c: Rebuild.
4796 * target.c: Include target-debug.h.
4797 (debug_target): Hoist definition.
4798 (target_kill, target_get_section_table, target_memory_map)
4799 (target_flash_erase, target_flash_done, target_detach)
4800 (target_disconnect, target_wait, target_resume)
4801 (target_pass_signals, target_program_signals, target_follow_fork)
4802 (target_mourn_inferior, target_search_memory)
4803 (target_thread_address_space, target_close)
4804 (target_find_new_threads, target_core_of_thread)
4805 (target_verify_memory, target_insert_mask_watchpoint)
4806 (target_remove_mask_watchpoint): Remove targetdebug code.
4807 (debug_to_post_attach, debug_to_prepare_to_store)
4808 (debug_to_files_info, debug_to_insert_breakpoint)
4809 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4810 (debug_to_region_ok_for_hw_watchpoint)
4811 (debug_to_can_accel_watchpoint_condition)
4812 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4813 (debug_to_watchpoint_addr_within_range)
4814 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4815 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4816 (debug_to_terminal_init, debug_to_terminal_inferior)
4817 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4818 (debug_to_terminal_save_ours, debug_to_terminal_info)
4819 (debug_to_load, debug_to_post_startup_inferior)
4820 (debug_to_insert_fork_catchpoint)
4821 (debug_to_remove_fork_catchpoint)
4822 (debug_to_insert_vfork_catchpoint)
4823 (debug_to_remove_vfork_catchpoint)
4824 (debug_to_insert_exec_catchpoint)
4825 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4826 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4827 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4828 (setup_target_debug): Call init_debug_target.
4829 * target.h (TARGET_DEBUG_PRINTER): New macro.
4830 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4831 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4833 2014-07-24 Gary Benson <gbenson@redhat.com>
4835 * exceptions.h (throw_vfatal): Renamed to...
4836 (throw_vquit): New declaration.
4837 (throw_quit): Likewise.
4838 * exceptions.c (throw_vfatal): Renamed to...
4839 (throw_vquit): New function.
4840 (throw_quit): Likewise.
4841 (throw_error): Call throw_verror rather than throw_it.
4842 * utils.h (vfatal): Removed.
4844 * utils.c (vfatal): Removed.
4846 (internal_verror): Replaced call to fatal with call to throw_quit.
4847 (quit): Replaced calls to fatal with calls to throw_quit.
4849 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4851 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4854 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4856 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4857 less than zero in conditional expression.
4859 2014-07-23 Tom Tromey <tromey@redhat.com>
4861 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4862 ($INTRO_PART): Don't match whitespace.
4863 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4865 ($METHOD): Add $METHOD_TRAILER.
4867 (scan_target_h): New sub.
4868 Change main loop not to collect state.
4869 * target-delegates.c: Rebuild.
4871 2014-07-23 Gary Benson <gbenson@redhat.com>
4873 * cp-support.c (gdb_demangle): Fix build on systems without
4876 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4878 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4879 for reference entry value target data value.
4881 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4883 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4884 value_available_contents_eq.
4886 2014-07-22 Pedro Alves <palves@redhat.com>
4888 * value.c (allocate_optimized_out_value): Don't mark value as
4891 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4893 * MAINTAINERS (Write After Approval): Update my email address.
4895 2014-07-20 Doug Evans <dje@google.com>
4898 * remote.c (putpkt_binary): Add text to error message.
4900 2014-07-20 Yao Qi <yao@codesourcery.com>
4902 * eval.c: Remove "Chill" from comments.
4903 * gdbtypes.h: Likewise.
4904 * symtab.h: Likewise.
4906 2014-07-20 Yao Qi <yao@codesourcery.com>
4908 * std-operator.def: Update comments to TERNOP_SLICE.
4910 2014-07-20 Yao Qi <yao@codesourcery.com>
4912 * std-operator.def: Remove BINOP_RANGE.
4913 * breakpoint.c (watchpoint_exp_is_const): Update.
4914 * expprint.c (dump_subexp_body_standard): Likewise.
4915 * eval.c (init_array_element): Remove dead code.
4916 (evaluate_subexp_standard): Likewise.
4918 2014-07-20 Yao Qi <yao@codesourcery.com>
4920 * std-operator.def: Remove BINOP_IN.
4921 * breakpoint.c (watchpoint_exp_is_const): Update.
4922 * eval.c (evaluate_subexp_standard): Likewise.
4923 * expprint.c (dump_subexp_body_standard): Likewise.
4925 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4927 * microblaze-tdep.c (microblaze_register_names): Add
4928 the rshr and rslr register names.
4929 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4930 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4931 Use of tdesc_numbered_register. Use of
4932 microblaze_register_g_packet_guesses. Use of
4933 tdesc_use_registers. Use of set_gdbarch_register_type.
4934 (microblaze_register_g_packet_guesses): New.
4935 * microblaze-tdep.h (microblaze_reg_num): Add
4936 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4937 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4938 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4939 * features/microblaze-core.xml: New file.
4940 * features/microblaze-stack-protect.xml: New file.
4941 * features/microblaze-with-stack-protect.c: New file.
4942 * features/microblaze-with-stack-protect.xml: New file.
4943 * features/microblaze.xml: New file.
4944 * features/microblaze.c: New file.
4945 * features/Makefile (microblaze-with-stack-protect): Add
4946 microblaze-with-stack-protect microblaze and microblaze-expedite.
4947 * regformats/microblaze-with-stack-protect.dat: New file.
4948 * regformats/microblaze.dat: New file.
4949 * doc/gdb.texinfo (MicroBlaze Features): Added.
4951 2014-07-18 Tom Tromey <tromey@redhat.com>
4953 * exec.c (exec_ops): Now static.
4954 * exec.h (exec_ops): Don't declare.
4956 2014-07-18 Tom Tromey <tromey@redhat.com>
4958 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4959 to find_target_beneath.
4960 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4961 find_target_beneath.
4962 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4964 2014-07-18 Tom Tromey <tromey@redhat.com>
4967 * utils.c (quit): Use target_supports_terminal_ours.
4968 * target.h (target_supports_terminal_ours): Declare.
4969 * target.c (target_supports_delete_record): Don't check
4970 to_delete_record against NULL.
4971 (target_supports_terminal_ours): New function.
4973 2014-07-18 Tom Tromey <tromey@redhat.com>
4976 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4977 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4978 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4979 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4980 * windows-nat.c (windows_xfer_partial): Always delegate.
4981 * record-btrace.c (record_btrace_xfer_partial): Simplify
4983 (record_btrace_fetch_registers, record_btrace_store_registers)
4984 (record_btrace_prepare_to_store, record_btrace_resume)
4985 (record_btrace_wait, record_btrace_find_new_threads)
4986 (record_btrace_thread_alive): Likewise.
4987 * procfs.c (procfs_xfer_partial): Always delegate.
4988 * corelow.c (core_xfer_partial): Always delegate.
4989 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4991 2014-07-18 Tom Tromey <tromey@redhat.com>
4993 * exec.c (exec_make_note_section): Move earlier.
4995 2014-07-17 Doug Evans <dje@google.com>
4998 * maint.c (count_symtabs_and_blocks): Handle NULL
4999 current_program_space.
5000 (report_command_stats): Check global enabled flag in addition to
5001 recorded enabled flag.
5002 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5004 2014-07-16 Pedro Alves <palves@redhat.com>
5006 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5008 2014-07-16 Tom Tromey <tromey@redhat.com>
5010 * target.h (struct target_ops) <to_delete_record>: Reformat
5013 2014-07-16 Tom Tromey <tromey@redhat.com>
5015 * target-delegates.c: Rebuild.
5017 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5019 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5020 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5021 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5022 (avr_pointer_to_address): Likewise.
5023 (avr_address_class_type_flags): New function.
5024 (avr_address_class_type_flags_to_name): Likewise.
5025 (avr_address_class_name_to_type_flags): Likewise.
5026 (avr_gdbarch_init): Set address_class_type_flags,
5027 address_class_type_flags_to_name and
5028 address_class_name_to_type_flags.
5030 2014-07-15 Pedro Alves <palves@redhat.com>
5032 * linux-nat.c (kill_callback): Save errno and work with saved
5035 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5037 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5039 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5041 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5042 breakpoint support correctly.
5044 2014-07-14 Pedro Alves <palves@redhat.com>
5046 * utils.c (prompt_for_continue): Call target_terminal_ours.
5048 2014-07-14 Pedro Alves <palves@redhat.com>
5050 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5051 catch_errors. Don't re-enable stdin or notify observers where,
5053 (fetch_inferior_event_wrapper): Delete.
5055 2014-07-14 Pedro Alves <palves@redhat.com>
5058 * top.c: Include "inf-loop.h".
5059 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5061 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5063 (gdb_readline_wrapper): Store whether the target is async, and
5066 2014-07-14 Pedro Alves <palves@redhat.com>
5069 * top.c (gdb_readline_wrapper_line): Tweak comment.
5070 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5071 the input handler callback.
5073 2014-07-14 Pedro Alves <palves@redhat.com>
5076 * main.c: Include event-top.h.
5077 (handle_command_errors): New function.
5078 (catch_command_errors, catch_command_errors_const): Use it.
5080 2014-07-14 Pedro Alves <palves@redhat.com>
5082 * exceptions.c (catch_command_errors, catch_command_errors_const):
5084 * exceptions.h (catch_command_errors_ftype)
5085 (catch_command_errors_const_ftype): Moved to main.c.
5086 (catch_command_errors, catch_command_errors_const): Delete
5088 * main.c (catch_command_errors_ftype)
5089 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5090 (catch_command_errors, catch_command_errors_const)): Moved here
5091 from exceptions.c and make static.
5093 2014-07-14 Pedro Alves <palves@redhat.com>
5095 * exceptions.c (print_any_exception): Delete.
5096 (catch_exceptions_with_msg): Use exception_print instead of
5097 print_any_exception.
5098 (catch_errors): Use exception_fprintf instead of
5099 print_any_exception.
5100 (catch_command_errors, catch_command_errors_const): Use
5101 exception_print instead of print_any_exception.
5103 2014-07-14 Pedro Alves <palves@redhat.com>
5105 * infcall.c (run_inferior_call): Set 'sync_execution' while
5106 running the inferior call.
5108 2014-07-14 Pedro Alves <palves@redhat.com>
5110 * value.c (value_contents_equal): Delete function.
5111 * value.h (value_contents_equal): Delete declaration.
5113 2014-07-14 Tom Tromey <tromey@redhat.com>
5116 * gdbtypes.c (is_dynamic_type_internal): New function, from
5118 (is_dynamic_type): Rewrite.
5119 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5120 (resolve_dynamic_struct): Likewise.
5121 (resolve_dynamic_type_internal): New function, from
5122 resolve_dynamic_type.
5123 (resolve_dynamic_type): Rewrite.
5125 2014-07-14 Tom Tromey <tromey@redhat.com>
5127 * target.c (target_require_runnable): Also check record_stratum.
5130 2014-07-11 Yao Qi <yao@codesourcery.com>
5132 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5133 thumb_instruction_restores_sp return true.
5135 2014-07-11 Yao Qi <yao@codesourcery.com>
5137 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5138 (thumb_in_function_epilogue_p): Call
5139 thumb_instruction_restores_sp.
5141 2014-07-11 Yao Qi <yao@codesourcery.com>
5143 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5145 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5147 2014-07-11 Gary Benson <gbenson@redhat.com>
5149 * amd64-linux-nat.c (gdbcore.h): Remove include.
5150 (regset.h): Likewise.
5151 (nat/linux-btrace.h): Likewise.
5152 (btrace.h): Likewise.
5153 (gdb_assert.h): Likewise.
5154 (string.h): Likewise.
5155 (sys/uio.h): Likewise.
5156 (sys/debugreg.h): Likewise.
5157 (sys/syscall.h): Likewise.
5158 (sys/procfs.h): Likewise.
5159 (sys/user.h): Likewise.
5160 (asm/ptrace.h): Likewise.
5161 (i386-nat.h): Likewise.
5162 * i386-linux-nat.c (i386-nat.h): Likewise.
5163 (regset.h): Likewise.
5164 (target.h): Likewise.
5165 (linux-nat.h): Likewise.
5166 (nat/linux-btrace.h): Likewise.
5167 (btrace.h): Likewise.
5168 (gdb_assert.h): Likewise.
5169 (string.h): Likewise.
5170 (sys/uio.h): Likewise.
5171 (sys/user.h): Likewise.
5172 (sys/procfs.h): Likewise.
5173 (sys/reg.h): Likewise.
5174 (sys/debugreg.h): Likewise.
5175 (ORIG_EAX): Remove definition.
5177 2014-07-11 Gary Benson <gbenson@redhat.com>
5179 * i386-linux-nat.h: New file.
5180 * x86-linux-nat.h: Likewise.
5181 * x86-linux-nat.c: Likewise.
5182 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5183 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5184 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5185 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5186 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5187 (PTRACE_SETREGSET): Likewise.
5188 (arch_lwp_info): Now in x86-linux-nat.c.
5189 (have_ptrace_getregset): Now in x86-linux-nat.h.
5190 (x86_linux_dr_get): Now in x86-linux-nat.c.
5191 (x86_linux_dr_set): Likewise.
5192 (x86_linux_dr_get_addr): Likewise.
5193 (x86_linux_dr_get_control): Likewise.
5194 (x86_linux_dr_get_status): Likewise.
5195 (update_debug_registers_callback): Likewise.
5196 (x86_linux_dr_set_control): Likewise.
5197 (x86_linux_dr_set_addr): Likewise.
5198 (x86_linux_prepare_to_resume): Likewise.
5199 (x86_linux_new_thread): Likewise.
5200 (x86_linux_new_fork): Likewise.
5201 (x86_linux_get_thread_area): Likewise.
5202 (super_post_startup_inferior): Likewise.
5203 (x86_linux_child_post_startup_inferior): Likewise.
5204 (AMD64_LINUX_USER64_CS): Likewise.
5205 (AMD64_LINUX_X32_DS): Likewise.
5206 (x86_linux_read_description): Likewise.
5207 (x86_linux_enable_btrace): Likewise.
5208 (x86_linux_disable_btrace): Likewise.
5209 (x86_linux_teardown_btrace): Likewise.
5210 (x86_linux_read_btrace): Likewise.
5211 (x86_linux_create_target): Likewise.
5212 (x86_linux_add_target): Likewise.
5213 * i386-linux-nat.c (x86-linux-nat.h): New include.
5214 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5215 (PTRACE_SETREGSET): Likewise.
5216 (arch_lwp_info): Now in x86-linux-nat.c.
5217 (have_ptrace_getregset): Now in x86-linux-nat.h.
5218 (x86_linux_dr_get): Now in x86-linux-nat.c.
5219 (x86_linux_dr_set): Likewise.
5220 (x86_linux_dr_get_addr): Likewise.
5221 (x86_linux_dr_get_control): Likewise.
5222 (x86_linux_dr_get_status): Likewise.
5223 (update_debug_registers_callback): Likewise.
5224 (x86_linux_dr_set_control): Likewise.
5225 (x86_linux_dr_set_addr): Likewise.
5226 (x86_linux_prepare_to_resume): Likewise.
5227 (x86_linux_new_thread): Likewise.
5228 (x86_linux_new_fork): Likewise.
5229 (x86_linux_get_thread_area): Likewise.
5230 (super_post_startup_inferior): Likewise.
5231 (x86_linux_child_post_startup_inferior): Likewise.
5232 (AMD64_LINUX_USER64_CS): Likewise.
5233 (AMD64_LINUX_X32_DS): Likewise.
5234 (x86_linux_read_description): Likewise.
5235 (x86_linux_enable_btrace): Likewise.
5236 (x86_linux_disable_btrace): Likewise.
5237 (x86_linux_teardown_btrace): Likewise.
5238 (x86_linux_read_btrace): Likewise.
5239 (x86_linux_create_target): Likewise.
5240 (x86_linux_add_target): Likewise.
5242 2014-07-11 Gary Benson <gbenson@redhat.com>
5244 * amd64-linux-nat.c: Comment and whitespace changes.
5245 * i386-linux-nat.c: Comment and whitespace changes.
5247 2014-07-11 Gary Benson <gbenson@redhat.com>
5249 * amd64-linux-nat.c (x86_linux_create_target): New function.
5250 (x86_linux_add_target): Likewise.
5251 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5252 * i386-linux-nat.c (x86_linux_create_target): New function.
5253 (x86_linux_add_target): Likewise.
5254 (_initialize_i386_linux_nat): Delegate to the above new functions.
5256 2014-07-11 Gary Benson <gbenson@redhat.com>
5258 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5259 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5260 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5261 (ps_get_thread_area): Delegate to the above.
5263 2014-07-11 Gary Benson <gbenson@redhat.com>
5265 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5266 x86_linux_read_description. All uses updated. amd64-specific
5267 code conditionalized. Conditionalized i386-specific code added.
5268 Redundant cast removed.
5269 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5270 x86_linux_read_description. All uses updated. i386-specific
5271 code conditionalized. Conditionalized amd64-specific code added.
5272 One sizeof replaced with the actual type it is describing.
5274 2014-07-11 Gary Benson <gbenson@redhat.com>
5276 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5277 x86_linux_dr_get. All uses updated.
5278 (amd64_linux_dr_set): Renamed to
5279 x86_linux_dr_set. All uses updated.
5280 (amd64_linux_dr_get_addr): Renamed to
5281 x86_linux_dr_get_addr. All uses updated.
5282 (amd64_linux_dr_get_control): Renamed to
5283 x86_linux_dr_get_control. All uses updated.
5284 (amd64_linux_dr_get_status): Renamed to
5285 x86_linux_dr_get_status. All uses updated.
5286 (amd64_linux_dr_set_control): Renamed to
5287 x86_linux_dr_set_control. All uses updated.
5288 (amd64_linux_dr_set_addr): Renamed to
5289 x86_linux_dr_set_addr. All uses updated.
5290 (amd64_linux_prepare_to_resume): Renamed to
5291 x86_linux_prepare_to_resume. All uses updated.
5292 (amd64_linux_new_thread): Renamed to
5293 x86_linux_new_thread. All uses updated.
5294 (amd64_linux_new_fork): Renamed to
5295 x86_linux_new_fork. All uses updated.
5296 (amd64_linux_child_post_startup_inferior): Renamed to
5297 x86_linux_child_post_startup_inferior. All uses updated.
5298 (amd64_linux_enable_btrace): Renamed to
5299 x86_linux_enable_btrace. All uses updated.
5300 (amd64_linux_disable_btrace): Renamed to
5301 x86_linux_disable_btrace. All uses updated.
5302 (amd64_linux_teardown_btrace): Renamed to
5303 x86_linux_teardown_btrace. All uses updated.
5304 (amd64_linux_read_btrace): Renamed to
5305 x86_linux_read_btrace. All uses updated.
5306 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5307 x86_linux_dr_get. All uses updated.
5308 (i386_linux_dr_set): Renamed to
5309 x86_linux_dr_set. All uses updated.
5310 (i386_linux_dr_get_addr): Renamed to
5311 x86_linux_dr_get_addr. All uses updated.
5312 (i386_linux_dr_get_control): Renamed to
5313 x86_linux_dr_get_control. All uses updated.
5314 (i386_linux_dr_get_status): Renamed to
5315 x86_linux_dr_get_status. All uses updated.
5316 (i386_linux_dr_set_control): Renamed to
5317 x86_linux_dr_set_control. All uses updated.
5318 (i386_linux_dr_set_addr): Renamed to
5319 x86_linux_dr_set_addr. All uses updated.
5320 (i386_linux_prepare_to_resume): Renamed to
5321 x86_linux_prepare_to_resume. All uses updated.
5322 (i386_linux_new_thread): Renamed to
5323 x86_linux_new_thread. All uses updated.
5324 (i386_linux_new_fork): Renamed to
5325 x86_linux_new_fork. All uses updated.
5326 (i386_linux_child_post_startup_inferior): Renamed to
5327 x86_linux_child_post_startup_inferior. All uses updated.
5328 (i386_linux_enable_btrace): Renamed to
5329 x86_linux_enable_btrace. All uses updated.
5330 (i386_linux_disable_btrace): Renamed to
5331 x86_linux_disable_btrace. All uses updated.
5332 (i386_linux_teardown_btrace): Renamed to
5333 x86_linux_teardown_btrace. All uses updated.
5334 (i386_linux_read_btrace): Renamed to
5335 x86_linux_read_btrace. All uses updated.
5337 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5339 * remote.c (extended_remote_post_attach): New function.
5340 (init_extended_remote_ops): Install it as to_post_attach method.
5342 2014-07-09 Pedro Alves <palves@redhat.com>
5344 * infcmd.c (attach_command_post_wait): Don't call
5345 target_terminal_inferior here.
5346 (attach_command): Call it here instead.
5348 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5350 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5352 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5353 from varobj.c, with additional checks.
5354 (c_varobj_ops): Fill in is_path_expr_parent field.
5355 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5356 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5358 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5360 (varobj_default_is_path_expr_parent): New function.
5361 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5362 (varobj_default_is_path_expr_parent): Declare new function.
5364 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5366 * infcmd.c (finish_backward): Turn internal error into normal error.
5368 2014-07-07 Pedro Alves <palves@redhat.com>
5371 * remote.c (async_handle_remote_sigint)
5372 (async_handle_remote_sigint_twice): Call
5373 gdb_call_async_signal_handler instead of
5374 mark_async_signal_handler.
5376 2014-07-07 Tom Tromey <tromey@redhat.com>
5378 * target-delegates.c: Rebuild.
5379 * target.c (target_info_record): Remove.
5380 * record.c (info_record_command): Unconditionally call
5382 * target.h (struct target_ops) <to_info_record>: Use
5383 TARGET_DEFAULT_IGNORE.
5384 (target_info_record): Remove.
5386 2014-07-07 Tom Tromey <tromey@redhat.com>
5388 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5389 TARGET_DEFAULT_NORETURN.
5390 * target.c (generic_tls_error): New function.
5391 (target_translate_tls_address): Don't search target stack.
5392 * target-delegates.c: Rebuild.
5393 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5395 * linux-thread-db.c (thread_db_get_thread_local_address):
5396 Unconditionally call beneath target.
5398 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5400 * cli/cli-logging.c (pop_output_files): Assign targerr to
5403 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5405 * MAINTAINERS (Write After Approval): Update my email address.
5407 2014-07-02 Gary Benson <gbenson@redhat.com>
5409 * proc-service.c (ps_xfer_memory): Update comment.
5410 (ps_pstop): Remove unused function.
5411 (ps_pcontinue): Likewise.
5412 (ps_lstop): Likewise.
5413 (ps_lcontinue): Likewise.
5414 (ps_lgetxregsize): Likewise.
5415 (ps_lgetxregs): Likewise.
5416 (ps_lsetxregs): Likewise.
5417 (ps_plog): Likewise.
5418 (ps_ptread): Likewise.
5419 (ps_ptwrite): Likewise.
5421 2014-07-01 Mark Wielaard <mjw@redhat.com>
5423 * dwarf2read.c (add_array_cv_type): New function.
5424 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5425 (read_tag_volatile_type): Likewise.
5427 2014-07-01 Tom Tromey <tromey@redhat.com>
5429 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5430 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5431 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5432 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5433 * command.h (cmd_cfunc_ftype): Move earlier.
5434 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5435 (add_com, add_info): Use cmd_cfunc_ftype.
5437 2014-06-30 Tom Tromey <tromey@redhat.com>
5439 * symtab.c (operator_chars): Make parameters and return type
5441 (file_matches): Make "files" const.
5442 (struct search_symbols_data) <files>: Now const.
5443 (search_symbols): Make "regexp" and "files" parameters const.
5445 (symtab_symbol_info): Remove cast.
5446 (rbreak_command): Update.
5447 * symtab.h (search_symbols): Update.
5449 2014-06-27 Yao Qi <yao@codesourcery.com>
5451 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5452 Change parameter type to 'struct thread_info *'. Caller
5454 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5456 * dummy-frame.c (struct dummy_frame_id): New.
5457 (dummy_frame_id_eq): New function.
5458 (struct dummy_frame) <id>: Change its type to 'struct
5460 (dummy_frame_push): Add parameter ptid and save it in
5462 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5464 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5466 (lookup_dummy_frame): Change parameter type to 'struct
5467 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5468 instead of frame_id_eq.
5469 (dummy_frame_pop): Add parameter ptid. Callers updated.
5470 Update comments. Compose dummy_frame_id and pass it to
5472 (dummy_frame_discard): Add parameter ptid.
5473 (dummy_frame_sniffer): Compose dummy_frame_id and call
5474 dummy_frame_id_eq instead of frame_id_eq.
5475 (fprint_dummy_frames): Print ptid.
5476 * dummy-frame.h: Remove comments.
5477 (dummy_frame_push): Add ptid in declaration.
5478 (dummy_frame_pop, dummy_frame_discard): Likewise.
5480 2014-06-26 Tom Tromey <tromey@redhat.com>
5482 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5483 * command.h (error_no_arg): Update.
5485 2014-06-26 Tom Tromey <tromey@redhat.com>
5487 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5488 (do_show_command): Make "arg" const.
5489 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5491 2014-06-26 Tom Tromey <tromey@redhat.com>
5493 * record-full.c (record_full_get_bookmark): Make "args" const.
5494 (record_full_goto_bookmark): Make "raw_bookmark" const.
5495 * record.c (record_goto): New function.
5496 (cmd_record_goto): Use it. Now static.
5497 * record.h (record_goto): Declare.
5498 (cmd_record_goto): Remove declaration.
5499 * target-delegates.c: Rebuild.
5500 * target.h (struct target_ops) <to_get_bookmark,
5501 to_goto_bookmark>: Make parameter const.
5503 2014-06-26 Tom Tromey <tromey@redhat.com>
5505 * defs.h (generic_load): Update.
5506 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5507 * monitor.c (monitor_load): Make "args" const.
5508 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5509 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5511 (mips_load): Make "file" const.
5512 * remote-sim.c (gdbsim_load): Make "args" const.
5513 * remote.c (remote_load): Make "name" const.
5514 * symfile.c (generic_load): Make "args" const.
5515 * target-delegates.c: Rebuild.
5516 * target.c (target_load): Make "arg" const.
5517 (debug_to_load): Make "args" const.
5518 * target.h (struct target_ops) <to_load>: Make parameter const.
5519 (target_load): Update.
5521 2014-06-26 Tom Tromey <tromey@redhat.com>
5524 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5525 (dwarf2_physname, read_partial_die)
5526 (guess_partial_die_structure_name, fixup_partial_die)
5527 (guess_full_die_structure_name, anonymous_struct_prefix)
5528 (dwarf2_name): Use per-BFD obstack.
5530 2014-06-26 Yao Qi <yao@codesourcery.com>
5532 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5533 dummyframe and this_id into inner block below.
5535 2014-06-26 Yao Qi <yao@codesourcery.com>
5537 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5538 with "signal_pass[0]" in the initialization of signal_pass.
5540 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5542 * record-btrace.c (record_btrace_generating_corefile)
5543 (record_btrace_prepare_to_generate_core)
5544 (record_btrace_done_generating_core): New.
5545 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5546 (record_btrace_store_registers, record_btrace_prepare_to_store):
5547 Forward request when generating a core file.
5548 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5549 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5550 to_done_generating_core.
5552 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5554 * target.h (target_ops) <to_prepare_to_generate_core>
5555 <to_done_generating_core>: New.
5556 (target_prepare_to_generate_core, target_done_generating_core): New.
5557 * target.c (target_prepare_to_generate_core)
5558 (target_done_generating_core): New.
5559 * target-delegates.c: Regenerate.
5560 * gcore.c: (write_gcore_file): Rename to ...
5561 (write_gcore_file_1): ...this.
5562 (write_gcore_file): Call target_prepare_to_generate_core
5563 and target_done_generating_core.
5565 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5567 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5568 * gcore.c (write_gcore_file): Free memory returned from
5569 make_corefile_notes.
5570 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5571 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5573 2014-06-24 Yao Qi <yao@codesourcery.com>
5575 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5576 (arm_linux_init_abi): Set skip_trampoline_code with
5577 gdbarch_skip_trampoline_code instead of
5578 find_solib_trampoline_target.
5580 2014-06-24 Yao Qi <yao@codesourcery.com>
5582 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5583 arm_skip_bx_reg returns non-zero.
5585 2014-06-24 Yao Qi <yao@codesourcery.com>
5587 * arm-tdep.c (arm_skip_bx_reg): New function.
5588 (arm_skip_stub): Call arm_skip_bx_reg.
5590 2014-06-23 Don Breazeal <donb@codesourcery.com>
5592 * MAINTAINERS: Add myself as write-after-approval maintainer.
5594 2014-06-23 Pedro Alves <palves@redhat.com>
5596 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5597 DR_CONTROL before setting DR0..DR3.
5598 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5599 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5600 bits of DR_CONTROL related to the debug register slot being
5601 disabled. If all slots are vacant, clear local slowdown as well,
5602 and assert DR_CONTROL is 0.
5604 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5606 * python/lib/gdb/command/xmethods.py
5607 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5608 current progspace only if the string "progspace" matches LOCUS_RE.
5610 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5612 Fix --with-system-readline with readline-6.3 patch 5.
5613 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5614 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5617 2014-06-20 Tom Tromey <tromey@redhat.com>
5619 * dwarf2read.c (dw2_get_real_path): Use correct type in
5621 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5623 2014-06-20 Gary Benson <gbenson@redhat.com>
5625 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5626 * common/glibc_thread_db.h: Likewise.
5627 * common/i386-cpuid.h: Likewise.
5628 * common/i386-gcc-cpuid.h: Likewise.
5629 * common/linux-btrace.h: Likewise.
5630 * common/linux-osdata.h: Likewise.
5631 * common/linux-procfs.h: Likewise.
5632 * common/linux-ptrace.h: Likewise.
5633 * common/mips-linux-watch.h: Likewise.
5634 * common/linux-btrace.c: Moved to nat.
5635 * common/linux-osdata.c: Likewise.
5636 * common/linux-procfs.c: Likewise.
5637 * common/linux-ptrace.c: Likewise.
5638 * common/mips-linux-watch.c: Likewise.
5639 * nat/gdb_thread_db.h: Moved from common.
5640 * nat/glibc_thread_db.h: Likewise.
5641 * nat/i386-cpuid.h: Likewise.
5642 * nat/i386-gcc-cpuid.h: Likewise.
5643 * nat/linux-btrace.c: Likewise.
5644 * nat/linux-btrace.h: Likewise.
5645 * nat/linux-osdata.c: Likewise.
5646 * nat/linux-osdata.h: Likewise.
5647 * nat/linux-procfs.c: Likewise.
5648 * nat/linux-procfs.h: Likewise.
5649 * nat/linux-ptrace.c: Likewise.
5650 * nat/linux-ptrace.h: Likewise.
5651 * nat/mips-linux-watch.c: Likewise.
5652 * nat/mips-linux-watch.h: Likewise.
5653 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5654 (object file files): Reordered.
5655 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5656 of glibc_thread_db.h.
5658 2014-06-20 Gary Benson <gbenson@redhat.com>
5660 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5661 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5662 (i386_dr_low): Likewise.
5663 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5664 (i386_dr_low_set_addr): Likewise.
5665 (i386_dr_low_get_addr): Likewise.
5666 (i386_dr_low_can_set_control): Likewise.
5667 (i386_dr_low_set_control): Likewise.
5668 (i386_dr_low_get_control): Likewise.
5669 (i386_dr_low_get_status): Likewise.
5670 (i386_get_debug_register_length): Likewise.
5671 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5672 (i386_dr_low): Likewise.
5673 * nat/i386-dregs.c (i386-low.h): Remove include.
5674 (i386-nat.h): Likewise.
5675 (nat/i386-dregs.h): New include.
5676 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5677 (i386_dr_low_set_addr): Likewise.
5678 (i386_dr_low_get_addr): Likewise.
5679 (i386_dr_low_can_set_control): Likewise.
5680 (i386_dr_low_set_control): Likewise.
5681 (i386_dr_low_get_control): Likewise.
5682 (i386_dr_low_get_status): Likewise.
5683 (i386_get_debug_register_length): Likewise.
5684 (debug_hw_points): Likewise.
5686 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5688 * Makefile.in (SFILES): Add d-exp.y.
5689 (YYFILES): Add d-exp.c.
5690 (YYOBJ): Add d-exp.o.
5691 (local-maintainer-clean): Delete d-exp.c.
5692 * d-exp.y: New file.
5693 * d-lang.h (d_parse): New declaration.
5694 (d_error): New declaration.
5695 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5696 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5697 PREC_ORDER operators.
5698 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5700 2014-06-19 Yao Qi <yao@codesourcery.com>
5702 * gdbthread.h (any_running): Remove the declaration.
5703 * thread.c (any_running): Remove.
5705 2014-06-19 Yao Qi <yao@codesourcery.com>
5707 * gdbthread.h (struct thread_info) <state>: Change its type to
5708 'enum thread_state'. Update comments.
5710 2014-06-19 Pedro Alves <palves@redhat.com>
5712 * gdbthread.h (ALL_THREADS): Delete.
5713 (ALL_NON_EXITED_THREADS): New macro.
5714 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5715 instead of ALL_THREADS.
5716 * infrun.c (find_thread_needs_step_over)
5717 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5718 instead of ALL_THREADS.
5719 * record-btrace.c (record_btrace_open)
5720 (record_btrace_stop_recording, record_btrace_close)
5721 (record_btrace_is_replaying, record_btrace_resume)
5722 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5723 * remote.c (append_pending_thread_resumptions): Likewise.
5724 * thread.c (thread_apply_all_command): Likewise.
5726 2014-06-19 Gary Benson <gbenson@redhat.com>
5728 * i386-nat.c (i386_stopped_by_watchpoint):
5729 Use i386_dr_stopped_by_watchpoint.
5730 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5731 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5733 2014-06-19 Gary Benson <gbenson@redhat.com>
5735 * nat/i386-dregs.c: New file.
5736 * Makefile.in (i386-dregs.o): New rule.
5737 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5738 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5739 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5740 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5741 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5742 * config/i386/go32.mh (NATDEPFILES): Likewise.
5743 * config/i386/linux.mh (NATDEPFILES): Likewise.
5744 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5745 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5746 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5747 * i386-nat.h (debug_hw_points): New declaration.
5748 * i386-nat.c (breakpoint.h): Remove include.
5749 (command.h): Likewise.
5750 (target.h): Likewise.
5751 (gdb_assert.h): Likewise.
5752 (debug_hw_points): Made nonstatic.
5753 (debug_printf): Now in i386-dregs.c.
5754 (TARGET_HAS_DR_LEN_8): Likewise.
5755 (DR_CONTROL_SHIFT): Likewise.
5756 (DR_CONTROL_SIZE): Likewise.
5757 (DR_RW_EXECUTE): Likewise.
5758 (DR_RW_WRITE): Likewise.
5759 (DR_RW_READ): Likewise.
5760 (DR_RW_IORW): Likewise.
5761 (DR_LEN_1): Likewise.
5762 (DR_LEN_2): Likewise.
5763 (DR_LEN_4): Likewise.
5764 (DR_LEN_8): Likewise.
5765 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5766 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5767 (DR_ENABLE_SIZE): Likewise.
5768 (DR_LOCAL_SLOWDOWN): Likewise.
5769 (DR_GLOBAL_SLOWDOWN): Likewise.
5770 (DR_CONTROL_RESERVED): Likewise.
5771 (I386_DR_CONTROL_MASK): Likewise.
5772 (I386_DR_VACANT): Likewise.
5773 (I386_DR_LOCAL_ENABLE): Likewise.
5774 (I386_DR_GLOBAL_ENABLE): Likewise.
5775 (I386_DR_DISABLE): Likewise.
5776 (I386_DR_SET_RW_LEN): Likewise.
5777 (I386_DR_GET_RW_LEN): Likewise.
5778 (I386_DR_WATCH_HIT): Likewise.
5779 (i386_wp_op_t): Likewise.
5780 (i386_show_dr): Likewise.
5781 (i386_length_and_rw_bits): Likewise.
5782 (i386_insert_aligned_watchpoint): Likewise.
5783 (i386_remove_aligned_watchpoint): Likewise.
5784 (i386_handle_nonaligned_watchpoint): Likewise.
5785 (i386_update_inferior_debug_regs): Likewise.
5786 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5787 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5788 (i386_region_ok_for_watchpoint):
5789 Use i386_dr_region_ok_for_watchpoint.
5790 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5792 2014-06-19 Gary Benson <gbenson@redhat.com>
5794 * i386-nat.c (i386_insert_hw_breakpoint): Use
5795 i386_insert_watchpoint.
5796 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5798 2014-06-19 Gary Benson <gbenson@redhat.com>
5800 * i386-nat.c (i386_dr_show): Renamed to
5801 i386_show_dr and made static. All uses updated.
5802 (i386_dr_length_and_rw_bits): Renamed to
5803 i386_length_and_rw_bits and made static.
5805 (i386_dr_insert_aligned_watchpoint): Renamed to
5806 i386_insert_aligned_watchpoint and made static.
5808 (i386_dr_remove_aligned_watchpoint): Renamed to
5809 i386_remove_aligned_watchpoint and made static.
5811 (i386_dr_update_inferior_debug_regs): Renamed to
5812 i386_update_inferior_debug_regs and made static.
5814 * nat/i386-dregs.h (i386_dr_show): Removed.
5815 (i386_dr_length_and_rw_bits): Likewise.
5816 (i386_dr_insert_aligned_watchpoint): Likewise.
5817 (i386_dr_remove_aligned_watchpoint): Likewise.
5818 (i386_dr_update_inferior_debug_regs): Likewise.
5820 2014-06-19 Gary Benson <gbenson@redhat.com>
5822 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5823 * configure: Regenerate.
5824 * config.in: Likewise.
5825 * main.c (signal.h): New include.
5826 (setup_alternate_signal_stack): New function.
5827 (captured_main): Call the above.
5828 * cp-support.c (signal.h): New include.
5829 (catch_demangler_crashes): New flag.
5830 (SIGJMP_BUF): New define.
5831 (SIGSETJMP): Likewise.
5832 (SIGLONGJMP): Likewise.
5833 (gdb_demangle_jmp_buf): New static global.
5834 (gdb_demangle_attempt_core_dump): Likewise.
5835 (gdb_demangle_signal_handler): New function.
5836 (gdb_demangle): If catch_demangler_crashes is set, install the
5837 above signal handler before calling bfd_demangle, and restore
5838 the original signal handler afterwards. Display the offending
5839 symbol and call demangler_warning the first time a segmentation
5841 (_initialize_cp_support): New maint set/show command.
5843 2014-06-19 Gary Benson <gbenson@redhat.com>
5845 * utils.h (resource_limit_kind): New enum.
5846 (can_dump_core): New declaration.
5847 (warn_cant_dump_core): Likewise.
5848 (dump_core): Likewise.
5849 * utils.c (dump_core): Made nonstatic. Added new
5850 parameter "limit_kind".
5851 (can_dump_core): Made nonstatic. Moved printing code to...
5852 (warn_cant_dump_core): New function.
5853 (can_dump_core_warn): Likewise.
5854 (internal_vproblem): Replace calls to can_dump_core with
5855 calls to can_dump_core_warn. Supply new argument to each.
5857 2014-06-19 Gary Benson <gbenson@redhat.com>
5859 * utils.h (demangler_vwarning): New declaration.
5860 (demangler_warning): Likewise.
5861 * utils.c (struct internal_problem)
5862 <user_settable_should_quit>: New field.
5863 <user_settable_should_dump_core>: Likewise
5864 (internal_error_problem): Add values for above new fields.
5865 (internal_warning_problem): Likewise.
5866 (demangler_warning_problem): New static global.
5867 (demangler_vwarning): New function.
5868 (demangler_warning): Likewise.
5869 (add_internal_problem_command): Selectively add commands.
5870 (_initialize_utils): New internal problem command.
5871 * maint.c (maintenance_demangler_warning): New function.
5872 (_initialize_maint_cmds): New command.
5874 2014-06-18 Tom Tromey <tromey@redhat.com>
5876 * f-valprint.c (info_common_command_for_block): Update.
5877 * symtab.h (struct general_symbol_info) <common_block>: Now
5880 2014-06-18 Tom Tromey <tromey@redhat.com>
5882 * symtab.h (struct symtab) <blockvector>: Now const.
5883 * ada-lang.c (ada_add_global_exceptions): Update.
5884 * buildsym.c (augment_type_symtab): Update.
5885 * dwarf2read.c (dw2_lookup_symbol): Update.
5886 * jit.c (finalize_symtab): Update.
5887 * jv-lang.c (add_class_symtab_symbol): Update.
5888 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5890 * objfiles.c (objfile_relocate1): Update.
5891 * psymtab.c (lookup_symbol_aux_psymtabs)
5892 (maintenance_check_psymtabs): Update.
5893 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5895 * spu-tdep.c (spu_catch_start): Update.
5896 * symmisc.c (dump_symtab_1): Update.
5897 * symtab.c (lookup_global_symbol_from_objfile)
5898 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5899 (basic_lookup_transparent_type_quick)
5900 (basic_lookup_transparent_type, find_pc_sect_symtab)
5901 (find_pc_sect_line, search_symbols): Update.
5902 * block.c (find_block_in_blockvector): Make "bl" const.
5903 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5905 (blockvector_contains_pc): Make "bv" const.
5906 (block_for_pc_sect): Update.
5907 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5908 (blockvector_contains_pc): Update.
5909 * breakpoint.c (resolve_sal_pc): Update.
5910 * inline-frame.c (block_starting_point_at): Update.
5912 2014-06-18 Tom Tromey <tromey@redhat.com>
5914 * completer.c (complete_line): Make "line_buffer" const.
5915 * completer.h (complete_line): Update.
5917 2014-06-18 Tom Tromey <tromey@redhat.com>
5919 * symtab.c (add_macro_name): Remove unneeded cast.
5921 2014-06-18 Tom Tromey <tromey@redhat.com>
5923 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5924 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5926 2014-06-18 Tom Tromey <tromey@redhat.com>
5928 * probe.c (info_probes_for_ops): Make "arg" const.
5929 * probe.h (info_probes_for_ops): Update.
5931 2014-06-18 Tom Tromey <tromey@redhat.com>
5933 * varobj.c (varobj_create): Update.
5934 * valops.c (value_of_this): Update.
5935 * tracepoint.c (add_local_symbols, scope_info): Update.
5936 * symtab.h (struct general_symbol_info) <block>: Now const.
5937 * symtab.c (skip_prologue_sal)
5938 (default_make_symbol_completion_list_break_on)
5939 (skip_prologue_using_sal): Update.
5940 * stack.h (iterate_over_block_locals)
5941 (iterate_over_block_local_vars): Update.
5942 * stack.c (print_frame_args): Update.
5943 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5945 (get_selected_block): Make return type const.
5946 * python/py-frame.c (frapy_block): Update.
5947 * python/py-block.c (gdbpy_block_for_pc): Update.
5948 * p-exp.y (%union) <bval>: Now const.
5949 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5950 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5951 * m2-exp.y (%union) <bval>: Now const.
5952 * linespec.c (get_current_search_block): Make return type const.
5953 (create_sals_line_offset, find_label_symbols): Update.
5954 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5956 (block_starting_point_at): Make "block" const.
5957 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5958 (check_exception_resume): Update.
5959 * guile/scm-frame.c (gdbscm_frame_block): Update.
5960 * guile/scm-block.c (gdbscm_lookup_block): Update.
5961 * frame.h (get_frame_block): Update.
5962 (get_selected_block): Make return type const.
5963 * frame.c (frame_id_inner): Update.
5964 * f-valprint.c (info_common_command_for_block)
5965 (info_common_command): Update.
5966 * dwarf2loc.c (dwarf2_find_location_expression)
5967 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5968 (locexpr_describe_location_piece): Update.
5969 * c-exp.y (%union) <bval>: Now const.
5970 * breakpoint.c (resolve_sal_pc): Update.
5971 * blockframe.c (get_frame_block):Make return type const.
5972 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5973 (block_innermost_frame): Update.
5974 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5975 (block_for_pc, block_for_pc_sect): Update.
5976 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5978 (block_for_pc_sect, block_for_pc): Make return type const.
5979 * ax-gdb.c (gen_expr): Update.
5980 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5981 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5982 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5983 (ada_read_var_value): Update.
5984 * ada-exp.y (struct name_info) <block>: Now const.
5986 (block_lookup): Constify.
5988 2014-06-18 Gary Benson <gbenson@redhat.com>
5990 * nat/i386-dregs.h: New file.
5991 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5992 * i386-nat.h (i386-dregs.h): New include.
5993 (DR_FIRSTADDR): Now in i386-dregs.h.
5994 (DR_LASTADDR): Likewise.
5995 (DR_NADDR): Likewise.
5996 (DR_STATUS): Likewise.
5997 (DR_CONTROL): Likewise.
5998 (i386_debug_reg_state): Likewise.
5999 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6001 2014-06-18 Don Breazeal <donb@codesourcery.com>
6003 * breakpoint.c (set_longjmp_breakpoint): Call
6004 momentary_breakpoint_from_master with additional argument.
6005 (set_longjmp_breakpoint_for_call_dummy): Call
6006 momentary_breakpoint_from_master with additional argument.
6007 (set_std_terminate_breakpoint): Call
6008 momentary_breakpoint_from_master with additional argument.
6009 (momentary_breakpoint_from_master): Add argument to function
6010 definition and use it to initialize structure member flag.
6011 (clone_momentary_breakpoint): Call
6012 momentary_breakpoint_from_master with additional argument.
6013 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6014 member flags set in momentary_breakpoint_from_master.
6016 2014-06-18 Gary Benson <gbenson@redhat.com>
6018 * i386-nat.c (i386_show_dr): Renamed to
6019 i386_dr_show and made nonstatic. All uses updated.
6020 (i386_length_and_rw_bits): Renamed to
6021 i386_dr_length_and_rw_bits and made nonstatic.
6023 (i386_insert_aligned_watchpoint): Renamed to
6024 i386_dr_insert_aligned_watchpoint and made nonstatic.
6026 (i386_remove_aligned_watchpoint): Renamed to
6027 i386_dr_remove_aligned_watchpoint and made nonstatic.
6029 (i386_update_inferior_debug_regs): Renamed to
6030 i386_dr_update_inferior_debug_regs and made nonstatic.
6033 2014-06-18 Gary Benson <gbenson@redhat.com>
6035 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6036 (i386_dr_low_can_set_control): Likewise.
6037 (i386_dr_low_set_addr): Likewise.
6038 (i386_dr_low_set_control): Likewise.
6039 (i386_dr_low_get_addr): Likewise.
6040 (i386_dr_low_get_status): Likewise.
6041 (i386_dr_low_get_control): Likewise.
6042 (i386_insert_aligned_watchpoint): Use new macros.
6043 (i386_update_inferior_debug_regs): Likewise.
6044 (i386_stopped_data_address): Likewise.
6046 2014-06-18 Gary Benson <gbenson@redhat.com>
6048 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6049 New parameter. All uses updated.
6051 2014-06-18 Gary Benson <gbenson@redhat.com>
6053 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6056 2014-06-18 Gary Benson <gbenson@redhat.com>
6058 * i386-nat.c (debug_printf): New macro.
6059 (i386_get_debug_register_length): Likewise.
6060 (TARGET_HAS_DR_LEN_8): Use above macro.
6061 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6062 and printf_unfiltered. Use phex to format values.
6064 2014-06-18 Gary Benson <gbenson@redhat.com>
6066 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6069 2014-06-18 Gary Benson <gbenson@redhat.com>
6071 * i386-nat.c: Comment changes.
6073 2014-06-18 Gary Benson <gbenson@redhat.com>
6075 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6077 2014-06-18 Gary Benson <gbenson@redhat.com>
6079 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6080 (i386_insert_aligned_watchpoint): Likewise.
6081 (i386_remove_aligned_watchpoint): Likewise.
6082 (i386_handle_nonaligned_watchpoint): Likewise.
6084 2014-06-18 Gary Benson <gbenson@redhat.com>
6086 * i386-nat.c: Whitespace changes.
6088 2014-06-17 Samuel Bronson <naesten@gmail.com>
6090 * MAINTAINERS: Update Roland McGrath's email address.
6091 Thanks to Sergio Durigan Junior for pointing out that he left
6092 Red Hat a while ago, and giving me a current address.
6094 2014-06-17 Tom Tromey <tromey@redhat.com>
6096 * utils.h (savestring): Remove declaration.
6098 2014-06-17 Tom Tromey <tromey@redhat.com>
6100 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6102 2014-06-16 Keith Seitz <keiths@redhat.com>
6105 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6106 to update the varobj if inferior_ptid is null_ptid.
6108 2014-06-16 Tom Tromey <tromey@redhat.com>
6110 * target.h (struct target_ops) <to_info_proc>: Make parameter
6112 (target_info_proc): Update.
6113 * target.c (target_info_proc): Make "args" const.
6114 * procfs.c (procfs_info_proc): Update.
6115 * linux-tdep.c (linux_info_proc): Update.
6116 (linux_core_info_proc_mappings): Make "args" const.
6117 (linux_core_info_proc): Update.
6118 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6119 * gdbarch.c: Rebuild.
6120 * gdbarch.h: Rebuild.
6121 * corelow.c (core_info_proc): Update.
6123 2014-06-16 Tom Tromey <tromey@redhat.com>
6125 * target.h (struct target_ops) <to_disconnect>: Make parameter
6127 (target_disconnect): Update.
6128 * target.c (target_disconnect): Make "args" const.
6129 * target-delegates.c: Rebuild.
6130 * remote.c (remote_disconnect): Update.
6131 * record.h (record_disconnect): Update.
6132 * record.c (record_disconnect): Update.
6133 * inf-child.c (inf_child_disconnect): Update.
6135 2014-06-16 Tom Tromey <tromey@redhat.com>
6137 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6138 * target.c (debug_to_rcmd, default_rcmd): Update.
6139 * target-delegates.c: Rebuild.
6140 * remote.c (remote_rcmd): Update.
6141 * monitor.c (monitor_rcmd): Update.
6143 2014-06-16 Pedro Alves <palves@redhat.com>
6145 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6146 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6147 have OBJF_SHARED set.
6148 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6149 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6150 instead of OBJF_USERLOADED.
6151 * objfiles.h (OBJF_SHARED): Update comment.
6152 (userloaded_objfile_contains_address_p): Rename to ...
6153 (shared_objfile_contains_address_p): ... this, and update
6155 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6157 (remove_symbol_file_command): Skip objfiles that don't have
6160 2014-06-16 Tom Tromey <tromey@redhat.com>
6162 * minsyms.h (prim_record_minimal_symbol)
6163 (prim_record_minimal_symbol_and_info): Update comments.
6165 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6167 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6168 or --without-guile, according to how GDB was built.
6170 2014-06-13 Tom Tromey <tromey@redhat.com>
6172 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6174 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6176 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6178 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6179 help_list.Pass all_commands, not -1, to help_list.
6180 * cli/cli-dump.c (dump_command, append_command)
6181 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6182 (binary_dump_command, binary_append_command): Pass all_commands,
6183 not -1, to help_list.
6184 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6186 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6188 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6190 * top.c (set_history): Pass all_commands, not -1, to help_list.
6191 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6192 all_commands, not -1, to help_list.
6193 * symfile.c (overlay_command): Pass all_commands, not -1, to
6195 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6197 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6199 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6201 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6202 not -1, to help_list.
6203 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6204 not -1, to help_list.
6205 * maint.c (maintenance_command, maintenance_info_command)
6206 (maintenance_print_command, maintenance_set_cmd): Pass
6207 all_commands, not -1, to help_list.
6208 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6210 * language.c (set_check): Pass all_commands, not -1, to help_list.
6211 * infcmd.c (unset_command): Pass all_commands, not -1, to
6213 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6215 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6217 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6219 * breakpoint.c (save_command): Pass all_commands, not -1, to
6221 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6222 all_commands, not -1, to help_list.
6224 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6226 * regcache.c (struct register_to_invalidate): New structure.
6227 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6229 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6231 2014-06-12 Yao Qi <yao@codesourcery.com>
6233 * varobj.c (varobj_get_num_children): Call
6234 varobj_is_dynamic_p.
6235 (varobj_list_children): Likewise.
6236 (varobj_update): Likewise. Update comments.
6238 2014-06-12 Yao Qi <yao@codesourcery.com>
6240 * varobj.c (varobj_pretty_printed_p): Rename to ...
6241 (varobj_is_dynamic_p): ... this. New function.
6242 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6243 (varobj_is_dynamic_p): Declare.
6244 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6245 (mi_print_value_p, varobj_update_one): Likewise.
6247 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6248 Yao Qi <yao@codesourcery.com>
6250 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6251 (varobj_get_iterator): Wrap up code for pretty-printer by
6252 "#if HAVE_PYTHON" and "#endif".
6253 (update_dynamic_varobj_children): Likewise.
6255 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6256 Yao Qi <yao@codesourcery.com>
6258 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6259 gdb_python_initialized is false. Move some code from varobj.c.
6260 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6261 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6262 (struct varobj_item): Moved to varobj-iter.h".
6263 (varobj_clear_saved_item): New function.
6264 (update_dynamic_varobj_children): Move python-related code to
6266 (free_variable): Call varobj_clear_saved_item and
6269 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6270 Yao Qi <yao@codesourcery.com>
6272 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6273 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6274 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6275 (py-varobj.o): New rule.
6276 * python/py-varobj.c: New file.
6277 * python/python-internal.h (py_varobj_get_iterator): Declare.
6278 * varobj-iter.h: New file.
6279 * varobj.c: Include "varobj-iter.h"
6280 (struct varobj) <child_iter>: Change its type from "PyObject *"
6281 to "struct varobj_iter *".
6282 <saved_item>: Likewise.
6283 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6284 [HAVE_PYTHON] (varobj_get_iterator): New function.
6285 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6286 python-specific code to python/py-varobj.c.
6287 (install_visualizer): Call varobj_iter_delete instead of
6289 * varobj.h (varobj_ensure_python_env): Declare.
6291 2014-06-12 Yao Qi <yao@codesourcery.com>
6293 * varobj.c (struct varobj_item): New structure.
6294 (create_child_with_value): Update declaration.
6295 (varobj_add_child): Replace arguments 'name' and 'value' with
6296 'item'. All callers updated.
6297 (install_dynamic_child): Likewise.
6298 (update_dynamic_varobj_children): Likewise.
6299 (varobj_add_child): Likewise.
6300 (create_child_with_value): Likewise.
6302 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6304 * NEWS: Create a new section for the next release branch.
6305 Rename the section of the current branch, now that it has
6308 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6310 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6311 * version.in: Bump version to 7.8.50.DATE-cvs.
6313 2014-06-11 Pedro Alves <palves@redhat.com>
6316 * ser-mingw.c (net_windows_socket_check_pending): New function.
6317 (net_windows_select_thread): Ignore spurious wakeups. Use
6318 net_windows_socket_check_pending.
6319 (net_windows_wait_handle): Check for pending events with
6320 ioctlsocket, through net_windows_socket_check_pending, instead of
6321 checking the socket's event.
6323 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6325 * python/python-internal.h (gdb_PyObject_GetAttrString)
6326 (gdb_PyObject_HasAttrString): New inline function definitions.
6327 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6328 char * of the second argument to PyObject_GetAttrString.
6330 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6332 * serial.c (serial_write): Fix index of character to be printed
6333 in call to serial_logchar when serial debug traces are enabled.
6335 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6337 * gdbtypes (resolve_dynamic_range): Add function description.
6339 2014-06-09 Pedro Alves <palves@redhat.com>
6341 * linux-nat.c (linux_child_follow_fork): Initialize status with
6342 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6343 inner block. Only pass the signal to PTRACE_DETACH if in pass
6346 2014-06-09 Gary Benson <gbenson@redhat.com>
6348 * common/signals.c (gdb_signal_from_host): Reorder to separate
6349 the always-available ANSI-standard signals from the signals that
6351 (do_gdb_signal_to_host): Likewise.
6352 * proc-events.c (signal_table): Likewise.
6354 2014-06-08 Hui Zhu <hui@codesourcery.com>
6356 * common/linux-ptrace.c (linux_disable_event_reporting): New
6358 * common/linux-ptrace.h (linux_disable_event_reporting): New
6360 * linux-nat.c (linux_child_follow_fork): Do a single step before
6363 2014-06-07 Keith Seitz <keiths@redhat.com>
6367 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6368 from symbol_matches_domain in symtab.c. All local callers
6369 of symbol_matches_domain updated.
6370 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6371 search STRUCT_DOMAIN.
6372 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6373 independently. standard_lookup will do that automatically.
6374 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6375 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6376 (cp_lookup_symbol_in_namespace): Likewise.
6377 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6378 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6379 may return a STRUCT_DOMAIN match.
6380 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6381 * cp-support.c: Include language.h.
6382 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6384 * psymtab.c (match_partial_symbol): Compare the requested
6385 domain with the symbol's domain directly.
6386 (lookup_partial_symbol): Likewise.
6387 * symtab.c (lookup_symbol_in_language): Explain when/why
6388 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6389 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6390 appropriate languages.
6391 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6392 and moved to ada-lang.c
6393 (lookup_block_symbol): Explain that this function only returns
6394 symbol matching the requested DOMAIN.
6395 Compare the requested domain with the symbol's domain directly.
6396 (iterate_over_symbols): Compare the requested domain with the
6397 symbol's domain directly.
6398 * symtab.h (symbol_matches_domain): Remove.
6400 2014-06-06 Doug Evans <xdje42@gmail.com>
6402 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6403 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6404 (gdbscm_guile_version_is_at_least): Declare.
6405 (gdbscm_scm_string_to_int): Declare.
6406 * guile/guile.c (gdbscm_guile_major_version): New global.
6407 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6408 (guile_datadir): New static global.
6409 (gdbscm_guile_data_directory): New function.
6410 (initialize_scheme_side): Update.
6411 (misc_guile_functions): Add guile-data-directory.
6412 (initialize_gdb_module): Fetch guile version number.
6413 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6414 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6415 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6416 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6418 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6419 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6420 * guile/scm-value.c (gdbscm_value_to_string): Only call
6421 scm_port_conversion_strategy if Guile version >= 2.0.6.
6423 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6425 * main.c (print_gdb_help): Add -q and --silent.
6427 2014-06-06 Gary Benson <gbenson@redhat.com>
6429 * common/signals.c: Remove preprocessor conditionals for
6430 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6431 SIGSEGV and SIGTERM.
6432 * proc-events.c: Likewise.
6434 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6436 * symfile.c (symfile_free_objfile): Remove restriction to
6438 * symfile-mem.c (symbol_file_add_from_memory): Call
6439 add_target_sections_of_objfile.
6441 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6443 * guile/scm-value.c (gdbscm_history_append_x): Use
6444 'vlscm_get_value_smob_arg_unsafe' instead of
6445 'vlscm_scm_to_value'.
6447 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6450 * utils.c (printchar): Don't escape at all if quoter is NUL.
6451 Update function documentation to clarify effect of parameter
6453 * remote.c (escape_buffer): Pass '\\' as the quoter to
6454 fputstrn_unfiltered.
6455 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6456 generate the output.
6457 (mi_solib_unloaded): Same.
6459 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6461 * development.sh: Delete.
6462 * Makefile.in (config.status): Adjust dependency on development.sh.
6463 * configure.ac: Adjust development.sh source call.
6464 * configure: Regenerate.
6466 2014-06-04 Doug Evans <xdje42@gmail.com>
6468 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6469 is_scheme_bkpt, spec.
6470 (bpscm_make_breakpoint_smob): Initialize new members.
6471 (gdbscm_create_breakpoint_x): Split into two ...
6472 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6473 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6474 (scheme_function breakpoint_functions): Update.
6475 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6476 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6477 register-breakpoint!.
6479 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6482 * mem-break.c (z_type_supported): Return zero if
6483 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6485 2014-06-04 Tom Tromey <tromey@redhat.com>
6487 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6488 value_from_contents_and_address_unresolved.
6489 (ada_template_to_fixed_record_type_1): Likewise.
6490 (ada_which_variant_applies): Likewise.
6491 * value.h (value_from_contents_and_address_unresolved): Declare.
6492 * value.c (value_from_contents_and_address_unresolved): New
6494 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6495 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6496 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6498 2014-06-04 Tom Tromey <tromey@redhat.com>
6500 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6502 2014-06-04 Tom Tromey <tromey@redhat.com>
6504 * procfs.c (procfs_attach): Make "args" const.
6505 * windows-nat.c (windows_attach): Make "args" const.
6506 * nto-procfs.c (procfs_attach): Make "args" const.
6507 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6508 * go32-nat.c (go32_attach): Make "args" const.
6509 * gnu-nat.c (gnu_attach): Make "args" const.
6510 * darwin-nat.c (darwin_attach): Make "args" const.
6511 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6512 * linux-nat.c (linux_nat_attach): Make "args" const.
6513 * remote.c (extended_remote_attach_1, extended_remote_attach):
6515 * target.h (struct target_ops) <to_attach>: Make "args" const.
6516 (find_default_attach): Likewise.
6517 * utils.c (parse_pid_to_attach): Make "args" const.
6518 * utils.h (parse_pid_to_attach): Update.
6520 2014-06-04 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (default_thread_address_space): New function.
6524 (target_thread_address_space): Simplify.
6525 * target.h (struct target_ops) <to_thread_address_space>: Add
6526 TARGET_DEFAULT_FUNC.
6528 2014-06-04 Doug Evans <xdje42@gmail.com>
6530 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6532 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6534 * record-btrace.c: Include event-loop.h and inf-loop.h.
6535 (record_btrace_resume_exec_dir)
6536 (record_btrace_async_inferior_event_handler)
6537 (record_btrace_handle_async_inferior_event): New.
6538 (record_btrace_open): Create async event handler.
6539 (record_btrace_close): Delete async event handler.
6540 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6541 Mark async event handler.
6542 (record_btrace_execution_direction): New.
6543 (init_record_btrace_ops): Initialize to_execution_direction.
6545 2014-06-03 Doug Evans <xdje42@gmail.com>
6547 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6548 (gdbscm_make_parameter): Ditto.
6550 2014-06-03 Doug Evans <dje@google.com>
6552 * exec.c (exec_close_1): Call clear_section_table instead of
6553 resize_section_table.
6554 (clear_section_table): New function.
6555 (resize_section_table): Make static. Rename arg num_added to
6557 * exec.h (clear_section_table): Declare.
6558 (resize_section_table): Delete.
6559 * progspace.c (release_program_space): Call clear_section_table
6560 instead of resize_section_table.
6562 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6564 * NEWS (Python Scripting): Add entry about the new xmethods
6567 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6569 * python/py-xmethods.c: New file.
6570 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6571 (objfpy_dealloc): XDECREF on the new xmethods field.
6572 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6574 (objfpy_get_xmethods): New function.
6575 (objfile_getset): New entry 'xmethods'.
6576 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6577 (pspy_dealloc): XDECREF on the new xmethods field.
6578 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6580 (pspy_get_xmethods): New function.
6581 (pspace_getset): New entry 'xmethods'.
6582 * python/python-internal.h: Add declarations for new functions.
6583 * python/python.c (_initialize_python): Invoke
6584 gdbpy_initialize_xmethods.
6585 * python/lib/gdb/__init__.py (xmethods): New
6587 * python/lib/gdb/xmethod.py: New file.
6588 * python/lib/gdb/command/xmethods.py: New file.
6590 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6592 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6593 best match method returned by find_overload_match is an xmethod.
6594 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6595 the best matching operator returned by find_overload_match is an
6597 * valops.c: #include "extension.h".
6598 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6599 Return void. The list of matching source methods is returned in
6600 "fn_list" and a vector of matching debug method workers is
6601 returned in "xm_worker_vec". Update all callers.
6602 (value_find_oload_method_list): Likewise.
6603 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6604 non-NULL, then the index of the best matching method in this
6605 vector is returned. Update all callers.
6606 (find_overload_match): Include xmethods while performing overload
6609 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6611 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6612 * extension-priv.h (struct extension_language_ops): Add the
6614 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6615 get_matching_xmethod_workers, get_xmethod_argtypes,
6616 invoke_xmethod, free_xmethod_worker,
6617 free_xmethod_worker_vec): New functions.
6618 * extension.h: #include "common/vec.h".
6619 New function declarations.
6620 (struct xmethod_worker): New struct.
6621 (VEC (xmethod_worker_ptr)): New vector type.
6622 (xmethod_worker_ptr): New typedef.
6623 (xmethod_worker_vec): Likewise.
6624 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6626 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6627 (struct builtin_type): New field "xmethod".
6628 * valarith.c (value_ptradd): Assert that the value argument is not
6630 * valops.c (value_must_coerce_to_target): Return 0 for
6631 lval_xcallable values.
6632 * value.c (struct value): New field XM_WORKER in the field
6634 (value_address, value_raw_address): Return 0 for lval_xcallable
6636 (set_value_address): Assert that the value is not an
6638 (value_free): Free the associated xmethod worker when freeing
6639 lval_xcallable values.
6640 (set_value_component_location): Assert that the WHOLE value is not
6642 (value_of_xmethod, call_xmethod): New functions.
6643 * value.h: Declare "struct xmethod_worker".
6644 Declare new functions value_of_xmethod, call_xmethod.
6646 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6647 Pedro Alves <palves@redhat.com>
6649 PR breakpoints/17000
6650 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6651 New function, extracted from software_breakpoint_inserted_here_p.
6652 (software_breakpoint_inserted_here_p): Replace factored out code
6653 by call to find_non_raw_software_breakpoint_inserted_here.
6654 (bp_target_info_copy_insertion_state): New function.
6655 (bkpt_insert_location): Handle the case of a single-step
6656 breakpoint already inserted at the same address.
6657 (bkpt_remove_location): Handle the case of a single-step
6658 breakpoint still inserted at the same address.
6659 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6660 breakpoint already inserted at the same address.
6661 (deprecated_remove_raw_breakpoint): Handle the case of a
6662 non-raw breakpoint still inserted at the same address.
6663 (find_single_step_breakpoint): New function, extracted from
6664 single_step_breakpoint_inserted_here_p.
6665 (find_single_step_breakpoint): New function,
6666 factored out from single_step_breakpoint_inserted_here_p.
6667 (single_step_breakpoint_inserted_here_p): Reimplement.
6669 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6671 Pushed by Joel Brobecker <brobecker@adacore.com>
6672 * source.c (show_substitute_path_command): Fix display of matching
6675 2014-06-03 Gary Benson <gbenson@redhat.com>
6677 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6679 2014-06-02 Doug Evans <xdje42@gmail.com>
6681 Add parameter support for Guile.
6682 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6683 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6684 (scm-param.o): New rule.
6685 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6686 (gdbscm_misc_error): Declare.
6687 (gdbscm_canonicalize_command_name): Declare.
6688 (gdbscm_scm_to_host_string): Declare.
6689 (gdbscm_scm_from_host_string): Declare.
6690 (gdbscm_initialize_parameters): Declare.
6691 * guile/guile.c (initialize_gdb_module): Call
6692 gdbscm_initialize_parameters.
6693 * guile/lib/gdb.scm: Export parameter symbols.
6694 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6695 cmdscm_canonicalize_name and made public. All callers updated.
6696 * guile/scm-exception.c (gdbscm_misc_error): New function.
6697 * guile/scm-param.c: New file.
6698 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6699 (gdbscm_scm_to_host_string): New function.
6700 (gdbscm_scm_from_host_string): New function.
6701 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6703 2014-06-02 Doug Evans <xdje42@gmail.com>
6705 Add command support for Guile.
6706 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6707 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6708 (scm-cmd.o): New rule.
6709 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6710 (gdbscm_user_error_p): Declare.
6711 (gdbscm_parse_command_name): Declare.
6712 (gdbscm_valid_command_class_p): Declare.
6713 (gdbscm_initialize_commands): Declare.
6714 * guile/guile.c (initialize_gdb_module): Call
6715 gdbscm_initialize_commands.
6716 * guile/lib/gdb.scm: Export command symbols.
6717 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6718 (throw-user-error): New function.
6719 * guile/scm-cmd.c: New file.
6720 * guile/scm-exception.c (user_error_symbol): New static global.
6721 (gdbscm_user_error_p): New function.
6722 (gdbscm_initialize_exceptions): Set user_error_symbol.
6723 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6725 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6727 * top.c (command_loop): Handle comments here...
6728 (command_line_input): ... not here.
6730 2014-06-02 Doug Evans <xdje42@gmail.com>
6732 Add progspace support for Guile.
6733 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6734 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6735 (scm-progspace.o): New rule.
6736 * guile/guile-internal.h (pspace_smob): New typedef.
6737 (psscm_pspace_smob_pretty_printers): Declare.
6738 (psscm_pspace_smob_from_pspace): Declare.
6739 (psscm_scm_from_pspace): Declare.
6740 * guile/guile.c (initialize_gdb_module): Call
6741 gdbscm_initialize_pspaces.
6742 * guile/lib/gdb.scm: Export progspace symbols.
6743 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6745 (append-pretty-printer!): Ditto.
6746 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6748 * guile/scm-progspace.c: New file.
6750 2014-06-03 Alan Modra <amodra@gmail.com>
6752 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6753 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6755 2014-06-02 Doug Evans <dje@google.com>
6757 Add support for skeletonless type units.
6758 * dwarf2read.c (struct dwarf2_per_objfile): New member
6759 n_allocated_type_units.
6760 (struct dwarf2_per_objfile) <tu_stats>: New member
6761 nr_all_type_units_reallocs.
6762 (create_signatured_type_table_from_index): Initialize
6763 n_allocated_type_units
6764 (create_all_type_units): Ditto.
6765 (add_type_unit): Move up in file. New arg slot.
6766 All callers updated. Increase space for all_type_units more
6768 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6769 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6770 (lookup_dwp_signatured_type): Ditto.
6771 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6772 All callers updated.
6773 (build_type_psymtabs_1): Leave type_unit_groups as
6774 NULL if no TUs present.
6775 (print_tu_stats): New function.
6776 (process_skeletonless_type_unit): New function.
6777 (process_dwo_file_for_skeletonless_type_units): New
6779 (process_skeletonless_type_units): New function.
6780 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6781 Call print tu_stats if debugging enabled.
6783 2014-06-02 Pedro Alves <palves@redhat.com>
6785 * breakpoint.c (build_target_command_list): Don't build a command
6786 list if we have any duplicate location that isn't a dprintf.
6788 2014-06-02 Pedro Alves <palves@redhat.com>
6790 * breakpoint.c (dprintf_breakpoint_hit): New function.
6791 (initialize_breakpoint_ops): Install it as dprintf's
6792 breakpoint_hit method.
6794 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6796 * source.c (substitute_path_rule_matches): Simplify using
6797 filename_ncmp instead of FILENAME_CMP.
6799 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6801 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6803 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6805 * configure.ac: When Guile is available, check for the
6806 availability of 'scm_new_smob'.
6807 * configure, config.h.in: Regenerate.
6808 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6811 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6813 * frame.c (struct frame_info): Add stop_string field.
6814 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6815 (get_prev_frame_always): Old content moved into
6816 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6817 TRY_CATCH, handle MEMORY_ERROR exceptions.
6818 (frame_stop_reason_string): New function definition.
6819 * frame.h (unwind_stop_reason_to_string): Extend comment to
6820 mention frame_stop_reason_string.
6821 (frame_stop_reason_string): New function declaration.
6822 * stack.c (frame_info): Switch to frame_stop_reason_string.
6823 (backtrace_command_1): Switch to frame_stop_reason_string.
6824 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6825 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6826 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6828 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6830 * frame.c (frame_stop_reason_string): Rename to ...
6831 (unwind_stop_reason_to_string): this.
6832 * frame.h (frame_stop_reason_string): Rename to ...
6833 (unwind_stop_reason_to_string): this.
6834 * stack.c (frame_info): Update call to frame_stop_reason_string.
6835 (backtrace_command_1): Likewise.
6836 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6837 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6839 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6841 * frame.c (remove_prev_frame): New function.
6842 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6845 2014-05-29 Pedro Alves <palves@redhat.com>
6847 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6848 and make it const. When a single-step decays to a continue,
6849 clear 'step', not 'hw_step'. Pass whether the caller wanted
6850 to step to user_visible_resume_ptid, not what we ask the
6853 2014-05-29 Pedro Alves <palves@redhat.com>
6855 * infrun.c (process_event_stop_test, handle_step_into_function)
6856 (handle_step_into_function_backward): Adjust.
6857 Don't set the even thread's stop_step and call stop_waiting before
6858 calling end_stepping_range. Instead do that ...
6859 (end_stepping_range): ... here. Take an ecs pointer parameter.
6861 2014-05-29 Pedro Alves <palves@redhat.com>
6863 * infrun.c (stop_stepping): Rename to ...
6864 (stop_waiting): ... this.
6865 (proceed): Update comment.
6866 (process_event_stop_test, handle_inferior_event)
6867 (handle_signal_stop, handle_step_into_function)
6868 (handle_step_into_function_backward): Update.
6870 2014-05-29 Pedro Alves <palves@redhat.com>
6872 * infcall.c (run_inferior_call): Don't check whether the current
6873 thread is running after the proceed call.
6875 2014-05-29 Pedro Alves <palves@redhat.com>
6876 Tom Tromey <tromey@redhat.com>
6878 * NEWS: Mention "maint set target-async", "set mi-async", and that
6879 background execution commands are now always available.
6880 * target.h (target_async_permitted): Update comment.
6881 * target.c (target_async_permitted, target_async_permitted_1):
6883 (set_target_async_command): Rename to ...
6884 (maint_set_target_async_command): ... this.
6885 (show_target_async_command): Rename to ...
6886 (maint_show_target_async_command): ... this.
6887 (_initialize_target): Adjust.
6888 * infcmd.c (prepare_execution_command): Make extern.
6889 * inferior.h (prepare_execution_command): Declare.
6890 * infrun.c (set_observer_mode): Leave target async alone.
6891 * mi/mi-interp.c (mi_interpreter_init): Install
6892 mi_on_sync_execution_done as sync_execution_done observer.
6893 (mi_on_sync_execution_done): New function.
6894 (mi_execute_command_input_handler): Don't print the prompt if we
6895 just started a synchronous command with an async target.
6896 (mi_on_resume): Check sync_execution before printing prompt.
6897 * mi/mi-main.h (mi_async_p): Declare.
6898 * mi/mi-main.c: Include gdbcmd.h.
6899 (mi_async_p): New function.
6900 (mi_async, mi_async_1): New globals.
6901 (set_mi_async_command, show_mi_async_command, mi_async): New
6903 (exec_continue): Call prepare_execution_command.
6904 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6905 (mi_execute_async_cli_command): Use mi_async_p.
6906 (_initialize_mi_main): Install "set mi-async". Make
6907 "target-async" a deprecated alias.
6909 2014-05-29 Pedro Alves <palves@redhat.com>
6911 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6912 (_initialize_cli_interp): Adjust.
6913 * event-loop.c: Include "observer.h".
6914 (start_event_loop): Notify 'command_error' observers instead of
6915 calling display_gdb_prompt. Remove FIXME comment.
6916 * event-top.c (display_gdb_prompt): Remove call into the
6918 * inf-loop.c: Include "observer.h".
6919 (inferior_event_handler): Notify 'command_error' observers instead
6920 of calling display_gdb_prompt.
6921 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6922 observers instead of calling display_gdb_prompt.
6923 * interps.c (interp_set): Don't call display_gdb_prompt.
6924 (current_interp_display_prompt_p): Delete.
6925 * interps.h (interp_prompt_p): Delete declaration.
6926 (interp_prompt_p_ftype): Delete.
6927 (struct interp_procs) <prompt_proc_p>: Delete field.
6928 (current_interp_display_prompt_p): Delete declaration.
6929 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6930 (_initialize_mi_interp): Adjust.
6931 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6932 'command_error' observers.
6933 (tui_on_sync_execution_done, tui_on_command_error): New
6935 (tui_display_prompt_p): Delete.
6936 (_initialize_tui_interp): Adjust.
6938 2014-05-29 Pedro Alves <palves@redhat.com>
6941 * cli/cli-interp.c: Include infrun.h and observer.h.
6942 (cli_uiout, cli_interp): New globals.
6943 (cli_on_signal_received, cli_on_end_stepping_range)
6944 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6946 (cli_interpreter_init): Install them as 'end_stepping_range',
6947 'signal_received' 'signal_exited', 'exited' and 'no_history'
6949 (_initialize_cli_interp): Remove cli_interp local.
6950 * infrun.c (handle_inferior_event): Call the several stop reason
6951 observers instead of printing the stop reason directly.
6952 (end_stepping_range): New function.
6953 (print_end_stepping_range_reason, print_signal_exited_reason)
6954 (print_exited_reason, print_signal_received_reason)
6955 (print_no_history_reason): Make static, and add an uiout
6956 parameter. Print to that instead of to CURRENT_UIOUT.
6957 * infrun.h (print_end_stepping_range_reason)
6958 (print_signal_exited_reason, print_exited_reason)
6959 (print_signal_received_reason print_no_history_reason): New
6961 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6963 <cli_uiout>: New field.
6964 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6965 uiout for CLI output. Install 'signal_received',
6966 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6968 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6969 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6970 (mi_on_no_history): New functions.
6971 (ui_out_free_cleanup): Delete function.
6972 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6973 instead use the one already stored in the MI interpreter data.
6974 (mi_ui_out): Adjust.
6975 * tui/tui-interp.c: Include infrun.h and observer.h.
6976 (tui_interp): New global.
6977 (tui_on_signal_received, tui_on_end_stepping_range)
6978 (tui_on_signal_exited, tui_on_exited)
6979 (tui_on_no_history): New functions.
6980 (tui_init): Install them as 'end_stepping_range',
6981 'signal_received' 'signal_exited', 'exited' and 'no_history'
6983 (_initialize_tui_interp): Delete tui_interp local.
6985 2014-05-29 Pedro Alves <palves@redhat.com>
6988 * linux-nat.c (linux_nat_resume_callback): Rename the second
6989 parameter to 'except'. Skip LP if it points to EXCEPT.
6990 (linux_nat_resume): Don't mark the event lwp as not stopped
6991 before resuming sibling lwps. Instead ask
6992 linux_nat_resume_callback to skip the event lwp. Mark it as not
6993 stopped after actually resuming it.
6994 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6996 (wait_lwp): Mark the lwp as stopped here.
6997 (stop_wait_callback): Mark the lwp as not stopped right after
6998 resuming it. Don't mark lwps as stopped here.
6999 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7000 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7002 2014-05-29 Pedro Alves <palves@redhat.com>
7005 * infrun.c (resume): Determine how much to resume depending on
7006 whether the caller wanted a step, not whether we can hardware step
7007 the target. Mark all threads that we intend to run as running,
7008 unless we're calling an inferior function.
7009 (normal_stop): If the thread is running an infcall, don't finish
7011 * target.c (target_resume): Don't mark threads as running here.
7013 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7015 * serial.c (_initialize_serial): Remove support for
7016 the "set remotebaud" and "show remotebaud" commands.
7017 * NEWS: Add entry documenting the removal of that command.
7019 2014-05-28 Yao Qi <yao@codesourcery.com>
7021 * charset.c: Fix typo in comments.
7023 2014-05-27 Gary Benson <gbenson@redhat.com>
7025 * utils.c (internal_vproblem): Prompt for a bug report.
7027 2014-05-26 Andy Wingo <wingo@igalia.com>
7029 * guile/scm-arch.c (arscm_mark_arch_smob):
7030 * guile/scm-block.c (bkscm_mark_block_smob)
7031 (bkscm_mark_block_syms_progress_smob):
7032 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7033 * guile/scm-exception.c (exscm_mark_exception_smob):
7034 * guile/scm-frame.c (frscm_mark_frame_smob):
7035 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7036 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7037 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7038 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7039 (ppscm_mark_pretty_printer_worker_smob):
7040 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7041 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7042 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7043 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7045 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7048 2014-05-26 Andy Wingo <wingo@igalia.com>
7049 Doug Evans <xdje42@gmail.com>
7051 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7052 empty_base_class. All uses updated.
7053 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7054 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7056 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7057 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7058 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7059 (gdbscm_gsmob_has_property_p, add_property_name)
7060 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7061 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7062 (gdb-object-has-property?, gdb-object-properties): Remove.
7063 (gdb-object-kind): Renamed from gsmob-kind.
7065 2014-05-26 Andy Wingo <wingo@igalia.com>
7067 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7068 * configure: Regenerate.
7070 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7072 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7074 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7076 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7077 (replay_memory_access_read_only, replay_memory_access_read_write)
7078 (replay_memory_access_types, replay_memory_access)
7079 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7080 (cmd_set_record_btrace, cmd_show_record_btrace)
7081 (cmd_show_replay_memory_access): New.
7082 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7083 (record_btrace_remove_breakpoint): Replace
7084 record_btrace_allow_memory_access with replay_memory_access.
7085 (_initialize_record_btrace): Add commands.
7086 * NEWS: Announce it.
7088 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7090 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7092 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7094 * MAINTAINERS (Write After Approval): Move self back from
7097 2014-05-22 Pedro Alves <palves@redhat.com>
7099 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7100 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7101 (disable_randomization, enum exec_direction_kind)
7102 (execution_direction, stop_registers, start_remote)
7103 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7104 (wait_for_inferior, normal_stop, get_last_target_status)
7105 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7106 (insert_step_resume_breakpoint_at_sal)
7107 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7108 (set_step_info, print_stop_event, signal_stop_state)
7109 (signal_print_state, signal_pass_state, signal_stop_update)
7110 (signal_print_update, signal_pass_update)
7111 (update_signals_program_target, clear_exit_convenience_vars)
7112 (displaced_step_dump_bytes, update_observer_mode)
7113 (signal_catch_update, gdb_signal_from_command): Move
7115 * infrun.h: ... to this new file.
7116 * amd64-tdep.c: Include infrun.h.
7117 * annotate.c: Include infrun.h.
7118 * arch-utils.c: Include infrun.h.
7119 * arm-linux-tdep.c: Include infrun.h.
7120 * arm-tdep.c: Include infrun.h.
7121 * break-catch-sig.c: Include infrun.h.
7122 * breakpoint.c: Include infrun.h.
7123 * common/agent.c: Include infrun.h instead of inferior.h.
7124 * corelow.c: Include infrun.h.
7125 * event-top.c: Include infrun.h.
7126 * go32-nat.c: Include infrun.h.
7127 * i386-tdep.c: Include infrun.h.
7128 * inf-loop.c: Include infrun.h.
7129 * infcall.c: Include infrun.h.
7130 * infcmd.c: Include infrun.h.
7131 * infrun.c: Include infrun.h.
7132 * linux-fork.c: Include infrun.h.
7133 * linux-nat.c: Include infrun.h.
7134 * linux-thread-db.c: Include infrun.h.
7135 * monitor.c: Include infrun.h.
7136 * nto-tdep.c: Include infrun.h.
7137 * procfs.c: Include infrun.h.
7138 * record-btrace.c: Include infrun.h.
7139 * record-full.c: Include infrun.h.
7140 * remote-m32r-sdi.c: Include infrun.h.
7141 * remote-mips.c: Include infrun.h.
7142 * remote-notif.c: Include infrun.h.
7143 * remote-sim.c: Include infrun.h.
7144 * remote.c: Include infrun.h.
7145 * reverse.c: Include infrun.h.
7146 * rs6000-tdep.c: Include infrun.h.
7147 * s390-linux-tdep.c: Include infrun.h.
7148 * solib-irix.c: Include infrun.h.
7149 * solib-osf.c: Include infrun.h.
7150 * solib-svr4.c: Include infrun.h.
7151 * target.c: Include infrun.h.
7152 * top.c: Include infrun.h.
7153 * windows-nat.c: Include infrun.h.
7154 * mi/mi-interp.c: Include infrun.h.
7155 * mi/mi-main.c: Include infrun.h.
7156 * python/py-threadevent.c: Include infrun.h.
7158 2014-05-22 Pedro Alves <palves@redhat.com>
7160 * infrun.c (handle_inferior_event): Store the exit code for
7161 --return-child-result here, instead of ...
7162 (print_exited_reason): ... here.
7164 2014-05-21 Pedro Alves <palves@redhat.com>
7167 * gdbthread.h (struct thread_control_state): New field
7169 * infrun.c (follow_fork): Copy the new thread control field to the
7171 (clear_proceed_status_thread): Clear the new thread control field.
7172 (proceed): Set the new thread control field.
7173 * interps.h (command_interp): Declare.
7174 * interps.c (command_interpreter): New global.
7175 (command_interp): New function.
7176 (interp_exec): Set `command_interpreter' while here.
7177 * cli-out.c (cli_uiout_dtor): New function.
7178 (cli_ui_out_impl): Install it.
7179 * mi/mi-interp.c: Include cli-out.h.
7180 (mi_cmd_interpreter_exec): Add comment.
7181 (restore_current_uiout_cleanup): New function.
7182 (ui_out_free_cleanup): New function.
7183 (mi_on_normal_stop): If finishing an execution command started by
7184 a CLI command, or any kind of breakpoint-like event triggered,
7185 print the stop event to the output (CLI) stream.
7186 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7188 2014-05-21 Pedro Alves <palves@redhat.com>
7190 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7191 current source line having changed.
7192 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7193 * infrun.c (normal_stop): Adjust call to
7194 set_current_sal_from_frame.
7195 * source.c (clear_lines_listed_range): New function.
7196 (set_current_source_symtab_and_line, identify_source_line): Clear
7197 the lines listed range.
7198 (line_info): Handle the first "info line" after the current source
7199 line having changed.
7200 * stack.c (print_stack_frame): Remove center handling.
7201 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7204 2014-05-21 Pedro Alves <palves@redhat.com>
7206 * inf-child.c (inf_child_mourn_inferior): New function.
7207 * inf-child.h (inf_child_mourn_inferior): New declaration.
7208 * darwin-nat.c (darwin_mourn_inferior): Use
7209 inf_child_mourn_inferior.
7210 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7211 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7212 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7213 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7214 * windows-nat.c (windows_mourn_inferior): Likewise.
7216 2014-05-21 Doug Evans <xdje42@gmail.com>
7218 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7220 2014-05-21 Doug Evans <xdje42@gmail.com>
7222 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7223 (gdbscm_out_of_range_error): Ditto.
7224 (gdbscm_memory_error): Ditto.
7225 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7226 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7227 (gdbscm_out_of_range_error): Update.
7228 (gdbscm_memory_error): Update.
7229 (gdbscm_scm_to_target_string_unsafe): Delete.
7231 2014-05-21 Pedro Alves <palves@redhat.com>
7233 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7235 (inf_child_open_target): New function.
7236 (inf_child_open): Use inf_child_open_target to push the target
7237 instead of erroring out.
7238 (inf_child_disconnect, inf_child_close)
7239 (inf_child_maybe_unpush_target): New functions.
7240 (inf_child_target): Install inf_child_disconnect and
7241 inf_child_close. Store a pointer to the returned object.
7242 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7244 * target.c (auto_connect_native_target): New global.
7245 (show_default_run_target): New function.
7246 (find_default_run_target): Return NULL if automatically connecting
7247 to the native target is disabled.
7248 (_initialize_target): Install set/show auto-connect-native-target.
7249 * NEWS: Mention "set auto-connect-native-target", and "target
7251 * linux-nat.c (super_close): New global.
7252 (linux_nat_close): Call super_close.
7253 (linux_nat_add_target): Store a pointer to the base class's
7255 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7256 inf_child_maybe_unpush.
7257 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7259 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7260 the inferior. Use inf_child_maybe_unpush_target.
7261 (inf_ttrace_attach): Don't push the target if it is already
7263 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7264 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7265 after mourning the inferior. Use inf_child_maybe_unpush_target.
7266 (darwin_attach_pid): Don't push the target if it is already
7268 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7269 mourning the inferior. Use inf_child_maybe_unpush_target.
7270 (gnu_detach): Use inf_child_maybe_unpush_target.
7271 * go32-nat.c (go32_create_inferior): Don't push the target if it
7273 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7274 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7275 (procfs_open): Rename to ...
7276 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7277 comments. Can target_preopen before changing node. Call
7278 inf_child_open_target to push the target explicitly.
7279 (procfs_attach): Don't push the target if it is already pushed.
7280 (procfs_detach): Use inf_child_maybe_unpush_target.
7281 (procfs_create_inferior): Don't push the target if it is already
7283 (nto_native_ops): New global.
7284 (procfs_open): Reimplement.
7285 (procfs_native_open): New function.
7286 (init_procfs_targets): Install procfs_native_open as to_open of
7287 "target native". Store a pointer to the "native" target in
7289 * procfs.c (procfs_attach): Don't push the target if it is already
7291 (procfs_detach): Use inf_child_maybe_unpush_target.
7292 (procfs_mourn_inferior): Only unpush the target after mourning the
7293 inferior. Use inf_child_maybe_unpush_target.
7294 (procfs_init_inferior): Don't push the target if it is already
7296 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7297 if it is already pushed.
7299 2014-05-21 Pedro Alves <palves@redhat.com>
7301 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7302 and "procfs" targets are now called "native" instead.
7304 2014-05-21 Pedro Alves <palves@redhat.com>
7306 * go32-nat.c (go32_open): Delete.
7307 (go32_target): Don't override the to_open method.
7309 2014-05-21 Pedro Alves <palves@redhat.com>
7311 * nto-procfs.c (procfs_can_run): New function.
7312 (nto_procfs_ops): New global.
7313 (init_procfs_targets): New, based on procfs_target. Install
7314 "target native" in addition to "target procfs".
7315 (_initialize_procfs): Call init_procfs_targets instead of adding
7318 2014-05-21 Pedro Alves <palves@redhat.com>
7320 * windows-nat.c (windows_target): Don't override to_shortname,
7321 to_longname or to_doc.
7323 2014-05-21 Pedro Alves <palves@redhat.com>
7325 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7328 2014-05-21 Pedro Alves <palves@redhat.com>
7330 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7331 to_shortname, to_longname or to_doc.
7333 2014-05-21 Pedro Alves <palves@redhat.com>
7335 * go32-nat.c (go32_target): Don't override to_shortname,
7336 to_longname or to_doc.
7338 2014-05-21 Pedro Alves <palves@redhat.com>
7340 * inf-child.c (inf_child_open): Remove mention of "child".
7341 (inf_child_target): Rename target to "native" instead of "child".
7343 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7345 * Makefile.in (SFILES): Delete "regset.c".
7346 (COMMON_OBS): Delete "regset.o".
7348 * regset.h (regset_alloc): Delete prototype.
7350 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7352 * sparc-linux-tdep.c (sparc32_linux_gregset)
7353 (sparc32_linux_fpregset): New static regset structures.
7354 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7355 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7357 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7358 (sparc64_linux_fpregset): New static regset structures.
7359 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7360 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7361 New static regset structures.
7362 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7363 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7364 New static regset structures.
7365 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7366 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7367 New static regset structures.
7368 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7369 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7370 New static regset structures.
7371 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7373 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7375 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7376 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7377 register maps ("regmaps") from "*regset" to "*regmap". Do this
7378 for all regmap types and variables.
7379 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7380 (sparc32_linux_supply_core_gregset)
7381 (sparc32_linux_collect_core_gregset)
7382 (sparc32_linux_supply_core_fpregset)
7383 (sparc32_linux_collect_core_fpregset): Likewise.
7384 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7385 (sparc_gregmap, sparc_fpregmap): ... these.
7386 (sparc_supply_gregset, sparc_collect_gregset)
7387 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7388 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7389 (_initialize_sparc_nat): Rename regmaps.
7390 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7391 (sparc_gregmap, sparc_fpregmap): ... these.
7392 (sparc_supply_gregset, sparc_collect_gregset)
7393 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7394 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7396 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7397 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7399 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7401 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7402 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7403 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7405 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7406 (sparc32_bsd_fpregset): Rename to...
7407 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7408 (sparc32_bsd_fpregmap): ... these.
7409 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7410 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7411 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7412 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7413 (struct sparc_gregmap, struct sparc_fpregmap)
7414 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7415 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7416 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7417 (sparc32_supply_regset, sparc32_collect_gregset)
7418 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7420 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7421 (sparc64_linux_ptrace_gregmap): ... this.
7422 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7423 (_initialize_sparc64_linux_nat): Rename regmaps.
7424 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7425 (sparc64_linux_core_gregmap): ... this.
7426 (sparc64_linux_supply_core_gregset)
7427 (sparc64_linux_collect_core_gregset)
7428 (sparc64_linux_supply_core_fpregset)
7429 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7430 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7431 (sparc64_sol2_fpregset): Rename to...
7432 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7433 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7434 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7436 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7437 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7438 (sparc64_bsd_fpregset): Rename to...
7439 (struct sparc_gregmap, sparc64_sol2_gregmap)
7440 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7441 (sparc64_bsd_fpregmap): ... these.
7442 (sparc64_supply_gregset, sparc64_collect_gregset)
7443 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7445 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7446 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7447 (sparc64fbsd_gregmap): ... this.
7448 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7449 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7451 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7452 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7453 (sparc64nbsd_collect_fpregset): Likewise.
7454 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7455 (sparc64nbsd_gregmap): ... this.
7456 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7458 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7459 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7460 (sparc64obsd_gregmap): ... this.
7461 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7463 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7464 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7465 (sparc32nbsd_gregmap): ... this.
7466 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7469 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7471 * score-tdep.c (score7_linux_gregset): New static regset
7473 (score7_linux_regset_from_core_section): Remove dynamic regset
7475 (score_gdbarch_init): Drop allocation of tdep structure.
7476 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7478 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7480 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7482 (am33_regset_from_core_section): Remove dynamic regset
7485 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7487 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7488 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7490 (mips_linux_regset_from_core_section): Remove dynamic regset
7492 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7493 'gregset64', 'fpregset', and 'fpregset64'.
7494 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7495 deleted tdep fields.
7497 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7499 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7501 (amd64_regset_from_core_section): Remove dynamic regset
7503 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7505 (amd64obsd_regset_from_core_section): Remove dynamic regset
7507 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7509 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7510 x86-common regset supply function.
7511 * i386-tdep.c (i386_collect_gregset): Make static.
7512 (i386_gregset): New global regset structure.
7513 (i386_fpregset, i386_xstateregset): New static regset structures.
7514 (i386_regset_from_core_section): Remove dynamic regset
7516 (i386_gdbarch_init): Remove initialization of tdep fields
7517 'gregset', 'fpregset', and 'xstateregset'.
7518 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7519 'fpregset', and 'xstateregset'.
7520 (i386_collect_gregset): Remove prototype.
7521 (i386_gregset): New declaration.
7522 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7524 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7527 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7529 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7530 (arm_linux_vfpregset): New static regset structures.
7531 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7533 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7534 and 'vfpregset' fields.
7536 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7538 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7539 (aarch64_linux_fpregset): New static regset structures.
7540 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7541 of regset structures.
7542 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7547 * regset.h (struct regset): Remove gdbarch field.
7548 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7549 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7550 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7552 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7553 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7554 (ppc32_linux_vsxregset): Likewise.
7555 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7556 via the regcache instead of the regset.
7557 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7558 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7559 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7560 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7565 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7566 Constify structures.
7567 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7568 (alphanbsd_aout_gregset): Likewise.
7569 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7570 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7572 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7573 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7575 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7576 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7577 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7578 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7579 * m88k-tdep.c (m88k_gregset): Likewise.
7580 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7581 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7582 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7583 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7584 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7585 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7586 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7587 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7588 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7590 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7591 * sh-tdep.h (sh_corefile_gregset): Likewise.
7592 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7593 * vax-tdep.c (vax_gregset): Likewise.
7595 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7597 Fix TLS access for -static -pthread.
7598 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7599 (try_thread_db_load_1): Initialize it.
7600 (thread_db_get_thread_local_address): Call it if LM is zero.
7601 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7602 * target.h (struct target_ops) (to_get_thread_local_address): Add
7603 load_module_addr comment.
7605 2014-05-21 Pedro Alves <palves@redhat.com>
7607 * dcache.c (dcache_read_memory_partial): If reading the cache line
7608 fails, fallback to reading just the memory the caller wanted.
7610 2014-05-20 Doug Evans <dje@google.com>
7612 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7613 instead of get_current_arch.
7615 2014-05-20 Pedro Alves <palves@redhat.com>
7617 * NEWS: Mention that compare-sections now works with all targets.
7619 * remote.c (PACKET_qCRC): New enum value.
7620 (remote_verify_memory): Don't send qCRC if the target has no
7621 execution. Use packet_support/packet_ok. If the target doesn't
7622 support the qCRC packet, fallback to a deep memory copy.
7623 (compare_sections_command): Say "target image" instead of "remote
7625 (_initialize_remote): Add PACKET_qCRC to the list of config
7626 packets that have no associated command. Extend comment.
7627 * target.c (simple_verify_memory, default_verify_memory): New
7629 * target.h (struct target_ops) <to_verify_memory>: Default to
7630 default_verify_memory.
7631 (simple_verify_memory): New declaration.
7632 * target-delegates.c: Regenerate.
7634 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7636 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7638 2014-05-20 Hui Zhu <hui@codesourcery.com>
7639 Yao Qi <yao@codesourcery.com>
7642 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7643 and change address of sp and pc.
7645 2014-05-19 Tom Tromey <tromey@redhat.com>
7647 * gdbtypes.c (rank_function): Use XNEWVEC.
7648 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7650 2014-05-19 Doug Evans <dje@google.com>
7652 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7653 build_type_unit_groups and moved closer to only caller. Remove
7654 arguments. All references updated. Remove outdated .gdb_index
7656 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7657 build_type_psymtabs_1.
7659 2014-05-19 Doug Evans <dje@google.com>
7661 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7662 n_type_unit_groups, all_type_unit_groups. All uses removed.
7663 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7664 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7665 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7666 (add_type_unit_group_to_table): Delete.
7668 2014-05-19 Doug Evans <dje@google.com>
7670 * eval.c (evaluate_subexp_standard): Add some comments.
7672 2014-05-17 Doug Evans <xdje42@gmail.com>
7674 * progspace.c (remove_program_space): Delete, unused.
7675 * progspace.h (remove_program_space): Ditto.
7677 2014-05-17 Doug Evans <xdje42@gmail.com>
7679 * inferior.c (prune_inferiors): Fix comment.
7680 (remove_inferior_command): Call prune_program_spaces.
7682 2014-05-16 Doug Evans <dje@google.com>
7684 New command line option -D.
7686 * main.c (set_gdb_data_directory): New function.
7687 (captured_main): Recognize -D. Flag error for --data-directory "".
7688 Call set_gdb_data_directory.
7689 (print_gdb_help): Print --data-directory, -D.
7690 * main.h (set_gdb_data_directory): Declare.
7691 * top.c (staged_gdb_datadir): New static global.
7692 (set_gdb_datadir): Call set_gdb_data_directory
7693 (show_gdb_datadir): New function.
7694 (init_main): Update init of data-directory parameter.
7696 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7698 Import the "dirfd" gnulib module.
7699 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7700 * gnulib/aclocal.m4: Update.
7701 * gnulib/config.in: Update.
7702 * gnulib/configure: Update.
7703 * gnulib/import/Makefile.am: Update.
7704 * gnulib/import/Makefile.in: Update.
7705 * gnulib/import/dirfd.c: New.
7706 * gnulib/import/m4/dirfd.m4: New.
7707 * gnulib/import/m4/gnulib-cache.m4: Update.
7708 * gnulib/import/m4/gnulib-comp.m4: Update.
7710 2014-05-16 Pierre Muller <muller@sourceware.org>
7711 Yao Qi <yao@codesourcery.com>
7713 * valprint.c (print_wchar): Move the code on checking whether
7714 W is a printable wide char to the default branch of switch
7715 statement below. Call wchar_printable instead of gdb_iswprint.
7717 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7719 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7720 ldr.w and ldrd instructions.
7722 2014-05-15 Doug Evans <dje@google.com>
7724 * dwarf2read.c (read_structure_type): Delete outdated comments.
7726 2014-05-14 Tom Tromey <tromey@redhat.com>
7728 * macrocmd.c (print_macro_definition): Reindent.
7730 2014-05-13 Doug Evans <xdje42@gmail.com>
7732 * python/py-cmd.c (cmdpy_completer): Add comment.
7733 (completers): Make const.
7735 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7737 * infrun.c (resume): Remove should_resume (unused). Move up
7738 declaration of resume_ptid.
7740 2014-05-13 Tom Tromey <tromey@redhat.com>
7742 * language.h (unop_type_check): Remove.
7743 (binop_type_check): Don't declare.
7745 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7747 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7748 call to regcache_raw_collect.
7750 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7752 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7753 mi_console->quote as the quoting character.
7755 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7757 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7759 2014-04-29 Tom Tromey <tromey@redhat.com>
7761 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7762 "show debug varobj".
7764 2014-05-07 Kyle McMartin <kyle@redhat.com>
7766 Pushed by Joel Brobecker <brobecker@adacore.com>.
7767 * aarch64-tdep.c (aarch64_software_single_step): New function.
7768 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7769 with aarch64_software_single_step.
7771 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7775 2014-05-05 Keith Seitz <keiths@redhat.com>
7777 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7778 variable or history value is successfully parsed.
7780 2014-05-05 Yao Qi <yao@codesourcery.com>
7781 Pedro Alves <palves@redhat.com>
7783 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7784 address of blocks that intersects the requested range. Trim
7785 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7787 * ctf.c (ctf_xfer_partial): Likewise.
7789 2014-05-05 Yao Qi <yao@codesourcery.com>
7791 * printcmd.c (display_command): Remove the check to
7792 target_has_execution.
7794 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7796 * ppcobsd-nat.c: Include "obsd-nat.h".
7797 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7799 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7801 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7803 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7804 and 16-bit signed and unsigned arguments. Update comment.
7805 (stap_parse_probe_arguments): Extend code to handle such
7806 arguments. Use warning instead of complaint to notify about
7807 unrecognized bitness.
7809 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7811 PR breakpoints/16889
7812 * stap-probe.c (stap_parse_probe_arguments): Simplify
7813 check for non-prefixed probes (i.e., probes whose
7814 arguments do not start with "N@"). Always set the
7815 argument type to a sane value.
7817 2014-05-01 David Taylor <dtaylor@emc.com>
7819 * remote.c (compare_sections_command): Add -r option to compare
7820 all loadable read-only sections.
7822 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7824 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7825 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7827 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7828 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7829 Remove unused CORE_ADDR argument. Update all callers.
7831 2014-04-29 Pedro Alves <palves@redhat.com>
7833 * remote.c (struct packet_config) <detect>: Extend comment.
7834 (add_packet_config_cmd): Don't set the config's detect or support
7836 (init_all_packet_configs): Also initialize the config's 'detect'
7838 (reset_all_packet_configs_support): New function.
7839 (remote_open_1): Call reset_all_packet_configs_support instead of
7840 init_all_packet_configs.
7841 (_initialize_remote): Initialize all packet configs. Assert that
7842 all packets have an associated command, except a few known
7845 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7847 * dwarf2read.c (read_subrange_type): Handle dynamic
7848 DW_AT_lower_bound attributes.
7850 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7852 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7853 dynamic bounds before computing its upper bound.
7854 (ada_discrete_type_low_bound): Same as above with the lower bound.
7856 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7858 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7859 range types. Adjust the array handling implementation to
7860 take advantage of this change.
7861 (resolve_dynamic_range): New function, mostly extracted from
7862 resolve_dynamic_bounds.
7863 (resolve_dynamic_array): New function, mostly extracted from
7864 resolve_dynamic_bounds.
7865 (resolve_dynamic_bounds): Delete.
7866 (resolve_dynamic_type): Reimplement. Add handling of
7867 TYPE_CODE_RANGE types.
7869 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7871 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7872 handling of parallel ___XA types.
7874 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7876 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7877 unnecessary second call to static_unwrap_type.
7879 2014-04-27 Hui Zhu <hui@codesourcery.com>
7881 * stack.c (print_frame_info): Call do_gdb_disassembly with
7882 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7884 2014-04-26 Doug Evans <xdje42@gmail.com>
7886 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7888 2014-04-25 Pedro Alves <palves@redhat.com>
7891 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7892 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7893 and newline from built string.
7894 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7895 (linux_ptrace_attach_fail_reason): ... this.
7896 * linux-nat.c (linux_nat_attach): Adjust to use
7897 linux_ptrace_attach_fail_reason.
7899 2014-04-25 Pedro Alves <palves@redhat.com>
7901 * remote.c (struct remote_state): Remove multi_process_aware,
7902 non_stop_aware, cond_tracepoints, cond_breakpoints,
7903 breakpoint_commands, fast_tracepoints, static_tracepoints,
7904 install_in_trace, disconnected_tracing,
7905 enable_disable_tracepoints, string_tracing, and
7906 augmented_libraries_svr4_read fields.
7907 (remote_multi_process_p): Move further below in the file.
7908 (struct packet_config): Add comments.
7909 (update_packet_config): Delete function.
7910 (show_packet_config_cmd): Use packet_config_support.
7911 (add_packet_config_cmd): Use NULL as set callback.
7912 (packet_ok): "set remote foo-packet"-style commands no longer
7913 change config->supported -- adjust.
7914 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7915 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7916 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7917 (PACKET_QNonStop, PACKET_multiprocess_feature)
7918 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7919 (PACKET_DisconnectedTracing_feature)
7920 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7921 (set_remote_protocol_packet_cmd): Delete function.
7922 (packet_config_support, packet_support): New functions.
7923 (set_remote_protocol_Z_packet_cmd): Don't call
7924 update_packet_config.
7925 (remote_query_attached, remote_pass_signals)
7926 (remote_program_signals, remote_threads_info)
7927 (remote_threads_extra_info, remote_start_remote): Use
7929 (remote_start_remote): Use packet_config_support and
7931 (init_all_packet_configs): Set all packets to unknown support,
7932 instead of calling update_packet_config.
7933 (remote_check_symbols): Use packet_support.
7934 (remote_supported_packet): Unconditionally set the packet config's
7936 (remote_multi_process_feature, remote_non_stop_feature)
7937 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7938 (remote_breakpoint_commands_feature)
7939 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7940 (remote_install_in_trace_feature)
7941 (remote_disconnected_tracing_feature)
7942 (remote_enable_disable_tracepoint_feature)
7943 (remote_string_tracing_feature)
7944 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7945 (remote_protocol_features): Adjust to use remote_supported_packet
7946 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7947 "ConditionalTracepoints", "ConditionalBreakpoints",
7948 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7949 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7950 "EnableDisableTracepoints", and "tracenz".
7951 (remote_query_supported): Use packet_support.
7952 (remote_open_1): Adjust.
7953 (extended_remote_attach_1): Use packet_support. Switch on the
7954 result of packet_ok instead of checking whether the packet ended
7956 (remote_vcont_resume): Use packet_support.
7957 (remote_resume, remote_stop_ns, fetch_register_using_p)
7958 (remote_prepare_to_store, store_register_using_P)
7959 (check_binary_download, remote_write_bytes): Use packet_support.
7960 (remote_vkill): Use packet_support. Switch on the result of
7961 packet_ok instead of checking whether the packet ended up
7963 (extended_remote_supports_disable_randomization): Use
7965 (extended_remote_run): Switch on the result of packet_ok instead
7966 of checking whether the packet ended up disabled.
7967 (remote_insert_breakpoint, remote_remove_breakpoint)
7968 (remote_insert_watchpoint, remote_remove_watchpoint)
7969 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7971 (remote_search_memory): Use packet_config_support.
7972 (remote_get_thread_local_address, remote_get_tib_address)
7973 (remote_hostio_send_command, remote_can_execute_reverse): Use
7975 (remote_supports_cond_tracepoints)
7976 (remote_supports_cond_breakpoints)
7977 (remote_supports_fast_tracepoints)
7978 (remote_supports_static_tracepoints)
7979 (remote_supports_install_in_trace)
7980 (remote_supports_enable_disable_tracepoint)
7981 (remote_supports_string_tracing)
7982 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7983 the packet config says the feature is enabled or disabled.
7984 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7985 (remote_get_trace_status): Use packet_support.
7986 (remote_set_disconnected_tracing): Adjust to check whether the
7987 feature is enabled with packet_support.
7988 (remote_set_trace_buffer_size, remote_use_agent)
7989 (remote_can_use_agent, remote_supports_btrace): Use
7991 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7992 Use packet_config_support.
7993 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7994 the packet config says the feature is enabled or disabled.
7995 (set_range_stepping): Use packet_support.
7997 2014-04-25 Tom Tromey <tromey@redhat.com>
7999 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8002 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8004 * NEWS: Mention support for C99 variable length arrays.
8006 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8008 * ada-lang.c (standard_exc): Expand introductory comment.
8010 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8011 Walfred Tedeschi <walfred.tedeschi@intel.com>
8013 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8015 (amd64_linux_read_description): Add code to handle AVX512 xstate
8016 mask and return respective tdesc.
8017 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8018 and features/i386/x32-avx512-linux.c.
8019 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8020 (amd64_linux_core_read_description): Add code to handle AVX512
8021 xstate mask and return respective tdesc.
8022 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8023 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8025 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8026 (tdesc_amd64_avx512_linux): New prototype.
8027 (tdesc_x32_avx512_linux): Likewise.
8028 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8029 features/i386/x32-avx512.c.
8030 (amd64_ymm_avx512_names): New register names for pseudo
8032 (amd64_ymmh_avx512_names): New register names for raw registers
8034 (amd64_k_names): New register names for K registers.
8035 (amd64_zmmh_names): New register names for ZMM raw registers.
8036 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8037 (amd64_xmm_avx512_names): New register names for XMM16-31
8039 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8041 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8042 if feature is present.
8043 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8044 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8045 (AMD64_NUM_REGS): Adjust to new number of registers.
8046 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8047 registers supplied via XSTATE by AVX512 registers.
8048 (i386_linux_read_description): Add case for AVX512.
8049 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8050 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8051 (i386_linux_core_read_description): Add case for AVX512.
8052 (i386_linux_init_abi): Install supported register note section
8054 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8056 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8057 registers to be number of zmm7h + 1.
8058 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8059 * i386-tdep.c: Include features/i386/i386-avx512.c.
8060 (i386_zmm_names): Add ZMM pseudo register names array.
8061 (i386_zmmh_names): Add ZMM raw register names array.
8062 (i386_k_names): Add K raw register names array.
8063 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8064 registers. AVX512 has 16 more ZMM registers than there are YMM
8066 (i386_zmmh_regnum_p): Add function to look up register number of
8068 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8069 (i386_k_regnum_p): Likewise for K raw registers.
8070 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8071 registers added by AVX512.
8072 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8073 registers added by AVX512.
8074 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8076 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8077 (i386_pseudo_register_name): Add ZMM pseudo registers.
8078 (i386_zmm_type): Construct and return vector registers type for ZMM
8080 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8081 ZMM0-31 pseudo registers and K registers.
8082 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8083 and YMM16-31 registers from register cache.
8084 (i386_pseudo_register_write): Add code to write K, ZMM and
8086 (i386_register_reggroup_p): Add code to include/exclude AVX512
8087 registers in/from respective register groups.
8088 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8089 registers if feature is present in xcr0.
8090 (i386_gdbarch_init): Add code to initialize AVX512 feature
8091 variables in tdep structure, wire in pseudo registers and call
8092 initialize_tdesc_i386_avx512.
8093 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8095 (i386_regnum): Add AVX512 registers.
8096 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8097 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8098 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8099 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8101 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8102 (i386_ymm_avx512_regnum_p): Likewise.
8103 (i386_k_regnum_p): Likewise.
8104 (i386_zmm_regnum_p): Likewise.
8105 (i386_zmmh_regnum_p): Likewise.
8106 * i387-tdep.c : Update year in copyright notice.
8107 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8109 (XSAVE_YMM_AVX512_ADDR): New macro.
8110 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8112 (XSAVE_XMM_AVX512_ADDR): New macro.
8113 (xsave_avx512_k_offset): New table for K register offsets in
8115 (XSAVE_AVX512_K_ADDR): New macro.
8116 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8118 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8119 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8121 (i387_collect_xsave): Add code to collect AVX512 registers from
8123 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8124 of XMM16-31 registers.
8125 (I387_NUM_K_REGS): New define for number of K registers.
8126 (I387_K0_REGNUM): New define for K0 register number.
8127 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8128 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8129 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8131 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8132 (I387_XMM16_REGNUM): New define for XMM16 register number.
8133 (I387_YMM0_REGNUM): New define for YMM0 register number.
8134 (I387_KEND_REGNUM): New define for last K register number.
8135 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8136 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8138 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8140 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8142 * features/Makefile: Add AVX512 related files.
8143 * features/i386/32bit-avx512.xml: New file.
8144 * features/i386/64bit-avx512.xml: Likewise.
8145 * features/i386/amd64-avx512-linux.c: Likewise.
8146 * features/i386/amd64-avx512-linux.xml: Likewise.
8147 * features/i386/amd64-avx512.c: Likewise.
8148 * features/i386/amd64-avx512.xml: Likewise.
8149 * features/i386/i386-avx512-linux.c: Likewise.
8150 * features/i386/i386-avx512-linux.xml: Likewise.
8151 * features/i386/i386-avx512.c: Likewise.
8152 * features/i386/i386-avx512.xml: Likewise.
8153 * features/i386/x32-avx512-linux.c: Likewise.
8154 * features/i386/x32-avx512-linux.xml: Likewise.
8155 * features/i386/x32-avx512.c: Likewise.
8156 * features/i386/x32-avx512.xml: Likewise.
8157 * regformats/i386/amd64-avx512-linux.dat: New file.
8158 * regformats/i386/amd64-avx512.dat: Likewise.
8159 * regformats/i386/i386-avx512-linux.dat: Likewise.
8160 * regformats/i386/i386-avx512.dat: Likewise.
8161 * regformats/i386/x32-avx512-linux.dat: Likewise.
8162 * regformats/i386/x32-avx512.dat: Likewise.
8163 * NEWS: Add note about new support for AVX512.
8166 2014-04-23 Pedro Alves <palves@redhat.com>
8168 * breakpoint.c (insert_bp_location): Tolerate errors if the
8169 breakpoint is set in a user-loaded objfile.
8170 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8171 location is marked shlib_disabled. If the breakpoint is set in a
8172 user-loaded objfile is a GDB-side memory breakpoint, validate it
8173 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8174 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8176 * mem-break.c (memory_validate_breakpoint): New function.
8177 * objfiles.c (userloaded_objfile_contains_address_p): New
8179 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8180 * target.h (memory_validate_breakpoint): New declaration.
8182 2014-04-23 Pedro Alves <palves@redhat.com>
8184 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8185 the breakpoint is set in a shared library, only suppress
8186 errors for software breakpoints, not hardware breakpoints.
8188 2014-04-22 Pedro Alves <palves@redhat.com>
8190 * infrun.c (schedlock_applies): New function, factored out from
8191 find_thread_needs_step_over.
8192 (find_thread_needs_step_over): Use it.
8193 (switch_back_to_stepped_thread): Always clear trap_expected if the
8194 step over is finished. Return early if scheduler locking applies.
8195 Look for the stepping thread and a potential step-over thread with
8197 (currently_stepping_or_nexting_callback): Delete.
8199 2014-04-22 Nick Clifton <nickc@redhat.com>
8201 * NEWS: Mention that ARM sim now supports tracing.
8203 2014-04-22 Yao Qi <yao@codesourcery.com>
8205 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8207 * tracefile.c (tracefile_fetch_registers): ... it. New
8209 * tracefile.h (tracefile_fetch_registers): Declare.
8210 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8211 tracefile_fetch_registers.
8213 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8216 * windows-nat.c (thread_rec): Don't display a warning when
8217 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8218 fails for any reason, set th->suspended to -1, so that we don't
8219 try to resume such a thread. Also, don't return NULL in these
8220 cases, to avoid completely ruin the session due to "PC register is
8221 not available" error.
8222 (do_windows_fetch_inferior_registers): Check errors in
8223 GetThreadContext call.
8224 (windows_continue): Accept an additional argument KILLED; if not
8225 zero, ignore errors in the SetThreadContext call, since the
8226 inferior was killed and is shutting down.
8227 (windows_resume, get_windows_debug_event)
8228 (windows_create_inferior, windows_mourn_inferior)
8229 (windows_kill_inferior): All callers of windows_continue changed
8230 to adjust to its new calling sequence.
8232 2014-04-19 Yao Qi <yao@codesourcery.com>
8234 * ctf.c (ctf_open): Call post_create_inferior.
8236 2014-04-19 Yao Qi <yao@codesourcery.com>
8238 * ctf.c (handle_id): New static variable.
8239 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8240 value. Get the declaration of event "register" and get length
8241 of field "contents".
8243 2014-04-19 Yao Qi <yao@codesourcery.com>
8245 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8247 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8249 * valops.c (oload_method_static): Remove unnecessary argument
8250 METHOD. Update all callers.
8252 2014-04-18 Pedro alves <palves@redhat.com>
8253 Tom Tromey <tromey@redhat.com>
8256 * frame.c (get_prev_frame_1): Rename to ...
8257 (get_prev_frame_always): ... this, and make extern. Adjust.
8258 (skip_artificial_frames): Use get_prev_frame_always.
8259 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8260 (get_frame_unwind_stop_reason): Adjust to rename.
8261 * frame.h (get_prev_frame_always): Declare.
8262 * inline-frame.c: Include frame.h.
8263 (inline_frame_this_id): Use get_prev_frame_always.
8265 2014-04-18 Tristan Gingold <gingold@adacore.com>
8267 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8268 code by using bfd_mach_o_get_base_address.
8270 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8272 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8273 (spu_ax_pseudo_register_collect): New function.
8274 (spu_ax_pseudo_register_push_stack): Likewise.
8275 (spu_dwarf_reg_to_regnum): Likewise.
8276 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8278 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8280 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8281 Replace FRAME argument with FRAME_ID.
8282 * gdbarch.c, gdbarch.h: Regenerate.
8283 * findvar.c (default_value_from_register): Add GDBARCH argument;
8284 replace FRAME by FRAME_ID. No longer call get_frame_id.
8285 (value_from_register): Update call to gdbarch_value_from_register.
8286 * value.h (default_value_from_register): Update prototype.
8287 * s390-linux-tdep.c (s390_value_from_register): Update interface
8288 and call to default_value_from_register.
8289 * spu-tdep.c (spu_value_from_register): Likewise.
8291 * findvar.c (address_from_register): Remove TYPE argument.
8292 Do not call value_from_register; use gdbarch_value_from_register
8293 with null_frame_id instead.
8294 * value.h (address_from_register): Update prototype.
8295 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8296 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8297 address_from_register interface change.
8299 2014-04-17 Yao Qi <yao@codesourcery.com>
8301 * gdbtypes.h: Update comments to link to types and macros'
8304 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8306 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8308 2014-04-16 Keith Seitz <keiths@redhat.com>
8311 * dwarf2read.c (skip_one_die): Check that all relative-offset
8312 sibling DIEs fall within range of the current reader's buffer.
8313 (read_partial_die): Likewise.
8315 2014-04-16 Keith Seitz <keiths@redhat.com>
8318 * cp-namespace.c (lookup_symbol_file): If the type name of
8319 `this' is NULL, return immediately.
8321 2014-04-14 Keith Seitz <keiths@redhat.com>
8324 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8325 from symbol_matches_domain in symtab.c. All local callers
8326 of symbol_matches_domain updated.
8327 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8328 search STRUCT_DOMAIN.
8329 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8330 independently. standard_lookup will do that automatically.
8331 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8332 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8333 (cp_lookup_symbol_in_namespace): Likewise.
8334 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8335 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8336 may return a STRUCT_DOMAIN match.
8337 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8338 * cp-support.c: Include language.h.
8339 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8341 * psymtab.c (match_partial_symbol): Compare the requested
8342 domain with the symbol's domain directly.
8343 (lookup_partial_symbol): Likewise.
8344 * symtab.c (lookup_symbol_in_language): Explain when/why
8345 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8346 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8347 appropriate languages.
8348 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8349 and moved to ada-lang.c
8350 (lookup_block_symbol): Explain that this function only returns
8351 symbol matching the requested DOMAIN.
8352 Compare the requested domain with the symbol's domain directly.
8353 (iterate_over_symbols): Compare the requested domain with the
8354 symbol's domain directly.
8355 * symtab.h (symbol_matches_domain): Remove.
8357 2014-04-14 Tom Tromey <tromey@redhat.com>
8360 * c-exp.y (type_aggregate_p): New function.
8361 (qualified_name, classify_inner_name): Use it.
8362 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8363 and TYPE_TARGET_TYPE of an enum type.
8364 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8366 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8367 handle TYPE_DECLARED_CLASS.
8368 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8370 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8371 * valops.c (enum_constant_from_type): New function.
8372 (value_aggregate_elt): Use it.
8373 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8376 2014-04-14 Tom Tromey <tromey@redhat.com>
8378 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8379 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8381 * value.h (value_aggregate_elt): Update.
8383 2014-04-14 Tom Tromey <tromey@redhat.com>
8385 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8387 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8389 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8390 (evaluate_subexp_standard): Pass noside argument.
8391 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8392 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8393 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8394 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8395 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8397 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8399 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8400 points to a constant blob.
8402 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8404 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8405 property and store it as the high bound and flag the range accordingly.
8406 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8407 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8408 * gdbtypes.h (enum range_flags): New enum.
8409 (struct range_bounds): Add flags member.
8411 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8413 * c-typeprint.c (c_type_print_varspec_suffix): Added
8414 check for not yet resolved high bound. If unresolved, print
8415 "variable length" string to the console instead of random
8418 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8420 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8422 (ada_template_to_fixed_record_type_1): Likewise.
8423 (ada_to_fixed_type_1): Likewise.
8424 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8425 (cp_print_value): Likewise.
8426 * d-valprint.c (dynamic_array_type): Likewise.
8427 * findvar.c (address_of_variable): Likewise.
8428 * jv-valprint.c (java_value_print): Likewise.
8429 * valops.c (value_ind): Likewise.
8430 * value.c (coerce_ref): Likewise.
8432 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8434 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8435 value and retrieve the dynamic type size.
8437 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8439 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8440 passed to sizeof is dynamic evaluate the argument to compute the length.
8442 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8443 Joel Brobecker <brobecker@adacore.com>
8445 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8446 (dwarf2_evaluate_property): New function.
8447 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8448 * dwarf2read.c (attr_to_dynamic_prop): New function.
8449 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8451 * gdbtypes.c: Include dwarf2loc.h.
8452 (is_dynamic_type): New function.
8453 (resolve_dynamic_type): New function.
8454 (resolve_dynamic_bounds): New function.
8455 (get_type_length): New function.
8456 (check_typedef): Use get_type_length to compute type length.
8457 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8458 (TYPE_LOW_BOUND_KIND): New macro.
8459 (is_dynamic_type): New function prototype.
8460 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8461 to resolve dynamic properties of the type. Update comment.
8462 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8464 2014-04-14 Richard Henderson <rth@redhat.com>
8466 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8468 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8469 Doug Evans <xdje42@gmail.com>
8471 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8472 dereference TYPE_CODE_REF values.
8474 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8476 Revert the following changes due to regressions:
8478 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8479 (dwarf2_evaluate_property): New function.
8480 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8481 * dwarf2read.c (attr_to_dynamic_prop): New function.
8482 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8484 * gdbtypes.c: Include dwarf2loc.h.
8485 (is_dynamic_type): New function.
8486 (resolve_dynamic_type): New function.
8487 (resolve_dynamic_bounds): New function.
8488 (get_type_length): New function.
8489 (check_typedef): Use get_type_length to compute type length.
8490 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8491 (TYPE_LOW_BOUND_KIND): New macro.
8492 (is_dynamic_type): New function prototype.
8493 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8494 to resolve dynamic properties of the type. Update comment.
8495 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8497 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8498 passed to sizeof is dynamic evaluate the argument to compute the length.
8500 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8501 value and retrieve the dynamic type size.
8503 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8504 (ada_template_to_fixed_record_type_1): Likewise.
8505 (ada_to_fixed_type_1): Likewise.
8506 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8507 (cp_print_value): Likewise.
8508 * d-valprint.c (dynamic_array_type): Likewise.
8509 * eval.c (evaluate_subexp_with_coercion): Likewise.
8510 * findvar.c (address_of_variable): Likewise.
8511 * jv-valprint.c (java_value_print): Likewise.
8512 * valops.c (value_ind): Likewise.
8513 * value.c (coerce_ref): Likewise.
8515 * c-typeprint.c (c_type_print_varspec_suffix): Added
8516 check for not yet resolved high bound. If unresolved, print
8517 "variable length" string to the console instead of random
8520 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8521 property and store it as the high bound and flag the range accordingly.
8522 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8523 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8524 * gdbtypes.h (enum range_flags): New enum.
8525 (struct range_bounds): Add flags member.
8527 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8528 points to a constant blob.
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 Keith Seitz <keiths@redhat.com>
8541 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8542 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8545 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8547 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8548 (evaluate_subexp_standard): Pass noside argument.
8549 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8550 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8551 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8552 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8553 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8555 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8557 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8558 points to a constant blob.
8560 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8562 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8563 property and store it as the high bound and flag the range accordingly.
8564 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8565 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8566 * gdbtypes.h (enum range_flags): New enum.
8567 (struct range_bounds): Add flags member.
8569 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8571 * c-typeprint.c (c_type_print_varspec_suffix): Added
8572 check for not yet resolved high bound. If unresolved, print
8573 "variable length" string to the console instead of random
8576 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8578 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8579 (ada_template_to_fixed_record_type_1): Likewise.
8580 (ada_to_fixed_type_1): Likewise.
8581 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8582 (cp_print_value): Likewise.
8583 * d-valprint.c (dynamic_array_type): Likewise.
8584 * eval.c (evaluate_subexp_with_coercion): Likewise.
8585 * findvar.c (address_of_variable): Likewise.
8586 * jv-valprint.c (java_value_print): Likewise.
8587 * valops.c (value_ind): Likewise.
8588 * value.c (coerce_ref): Likewise.
8590 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8592 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8593 value and retrieve the dynamic type size.
8595 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8597 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8598 passed to sizeof is dynamic evaluate the argument to compute the length.
8600 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8602 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8603 (dwarf2_evaluate_property): New function.
8604 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8605 * dwarf2read.c (attr_to_dynamic_prop): New function.
8606 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8608 * gdbtypes.c: Include dwarf2loc.h.
8609 (is_dynamic_type): New function.
8610 (resolve_dynamic_type): New function.
8611 (resolve_dynamic_bounds): New function.
8612 (get_type_length): New function.
8613 (check_typedef): Use get_type_length to compute type length.
8614 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8615 (TYPE_LOW_BOUND_KIND): New macro.
8616 (is_dynamic_type): New function prototype.
8617 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8618 to resolve dynamic properties of the type. Update comment.
8619 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8621 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8623 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8624 declaring high/low bounds and change uses accordingly. Call
8625 create_range_type instead of create_static_range_type.
8626 * gdbtypes.c (create_range_type): New function.
8627 (create_range_type): Convert bounds into struct bound_prop and pass
8628 them to create_range_type.
8629 * gdbtypes.h (struct bound_prop): New struct.
8630 (create_range_type): New function prototype.
8631 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8632 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8633 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8635 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8639 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8640 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8641 * ada-lang.c: All uses of create_range_type updated.
8642 * coffread.c: All uses of create_range_type updated.
8643 * dwarf2read.c: All uses of create_range_type updated.
8644 * f-exp.y: All uses of create_range_type updated.
8645 * m2-valprint.c: All uses of create_range_type updated.
8646 * mdebugread.c: All uses of create_range_type updated.
8647 * stabsread.c: All uses of create_range_type updated.
8648 * valops.c: All uses of create_range_type updated.
8649 * valprint.c: All uses of create_range_type updated.
8651 2014-04-10 Pedro Alves <palves@redhat.com>
8653 * breakpoint.c (single_step_breakpoints)
8654 (single_step_gdbarch): Move up in the file.
8655 (one_breakpoint_xfer_memory): New function, factored out from ...
8656 (breakpoint_xfer_memory): ... here. Also process single-step
8659 2014-04-09 Tristan Gingold <gingold@adacore.com>
8661 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8663 (darwin_decode_exception_message): Free port only after use.
8665 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8667 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8668 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8669 when setting the size of call_length.
8671 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8673 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8674 dereference TYPE_CODE_REF values.
8676 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8678 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8679 end of warning message.
8681 2014-04-03 Doug Evans <dje@google.com>
8683 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8684 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8686 2014-04-02 Alan Modra <amodra@gmail.com>
8688 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8689 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8690 (struct symbol_file_add_from_memory_args): Add size field.
8691 (find_vdso_size): New function.
8692 (add_vsyscall_page): Attempt to find vdso size.
8694 2014-04-01 Doug Evans <dje@google.com>
8696 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8698 2014-04-01 Tristan Gingold <gingold@adacore.com>
8700 * darwin-nat.c (darwin_encode_reply): Add prototype.
8701 (darwin_decode_exception_message): Reply to unknown inferiors.
8702 (darwin_decode_message): Handle message by id. Ignore message
8703 to unknown inferior.
8704 (darwin_wait): Discard unknown messages, add debug trace.
8706 2014-03-31 Doug Evans <dje@google.com>
8708 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8711 2014-03-31 Doug Evans <dje@google.com>
8713 New option "set print symbol-loading".
8715 * solib.c (solib_read_symbols): Only print symbol loading messages
8717 (solib_add): If symbol loading is in "brief" mode, notify user
8718 symbols are being loaded.
8719 (reload_shared_libraries_1): Ditto.
8720 * symfile.c (print_symbol_loading_off): New static global.
8721 (print_symbol_loading_brief): New static global.
8722 (print_symbol_loading_full): New static global.
8723 (print_symbol_loading_enums): New static global.
8724 (print_symbol_loading): New static global.
8725 (print_symbol_loading_p): New function.
8726 (symbol_file_add_with_addrs): Only print symbol loading messages
8728 (_initialize_symfile): Register "print symbol-loading" set/show
8730 * symfile.h (print_symbol_loading_p): Declare.
8732 2014-03-30 Doug Evans <xdje42@gmail.com>
8734 * infrun.c (set_last_target_status): New function.
8735 (handle_inferior_event): Call it.
8737 2014-03-30 Doug Evans <xdje42@gmail.com>
8739 * inferior.h (enum stop_kind): Improve comment.
8741 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8743 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8744 a reference, strip the reference layer before calling
8745 the lang_ops value_has_mutated callback.
8747 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8749 Remove some globals from our parser.
8750 * language.c (unk_lang_parser): Add "struct parser_state"
8752 * language.h (struct language_defn) <la_parser>: Likewise.
8753 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8754 (initialize_expout): Add "struct parser_state" argument.
8755 Rewrite function to use the parser state.
8756 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8757 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8758 write_exp_elt_longcst, write_exp_elt_dblcst,
8759 write_exp_elt_decfloatcst, write_exp_elt_type,
8760 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8761 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8762 write_dollar_variable): Likewise.
8763 (parse_exp_in_context_1): Use parser state.
8764 (insert_type_address_space): Add "struct parser_state" argument.
8766 (increase_expout_size): New function.
8767 * parser-defs.h: Forward declare "struct language_defn" and
8768 "struct parser_state".
8769 (expout, expout_size, expout_ptr): Remove extern declarations.
8770 (parse_gdbarch, parse_language): Rewrite macro declarations to
8771 accept the parser state.
8772 (struct parser_state): New struct.
8773 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8774 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8775 write_exp_elt_decfloatcst, write_exp_elt_type,
8776 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8777 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8778 write_exp_msymbol, write_dollar_variable,
8779 mark_struct_expression, insert_type_address_space): Add "struct
8780 parser_state" argument.
8781 (increase_expout_size): New function.
8782 * utils.c (do_clear_parser_state): New function.
8783 (make_cleanup_clear_parser_state): Likewise.
8784 * utils.h (make_cleanup_clear_parser_state): New function
8786 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8787 Update calls to write_exp* in order to pass the parser state.
8788 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8789 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8790 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8791 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8792 * stap-probe.c (stap_parse_register_operand): Likewise.
8793 (stap_parse_single_operand): Likewise.
8794 (stap_parse_argument_1): Likewise.
8795 (stap_parse_argument): Use parser state.
8796 * stap-probe.h: Include "parser-defs.h".
8797 (struct stap_parse_info) <pstate>: New field.
8798 * c-exp.y (parse_type): Rewrite to use parser state.
8799 (yyparse): Redefine to c_parse_internal.
8800 (pstate): New global variable.
8801 (parse_number): Add "struct parser_state" argument.
8802 (write_destructor_name): Likewise.
8803 (type_exp): Update calls to write_exp* and similars in order to
8805 (exp1, exp, variable, qualified_name, space_identifier,
8806 typename, typebase): Likewise.
8807 (write_destructor_name, parse_number, lex_one_token,
8808 classify_name, classify_inner_name, c_parse): Add "struct
8809 parser_state" argument. Update function to use parser state.
8810 * c-lang.h: Forward declare "struct parser_state".
8811 (c_parse): Add "struct parser_state" argument.
8812 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8813 (yyparse): Redefine macro to ada_parse_internal.
8814 (pstate): New variable.
8815 (write_int, write_object_renaming, write_var_or_type,
8816 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8817 type_int, type_long, type_long_long, type_float, type_double,
8818 type_long_double, type_char, type_boolean, type_system_address):
8819 Add "struct parser_state" argument.
8820 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8821 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8822 var_or_type, aggregate, aggregate_component_list,
8823 positional_list, others, component_group,
8824 component_associations): Update calls to write_exp* and similar
8825 functions in order to use parser state.
8826 (ada_parse, write_var_from_sym, write_int,
8827 write_exp_op_with_string, write_object_renaming,
8828 find_primitive_type, write_selectors, write_ambiguous_var,
8829 write_var_or_type, write_name_assoc, type_int, type_long,
8830 type_long_long, type_float, type_double, type_long_double,
8831 type_char, type_boolean, type_system_address): Add "struct
8832 parser_state" argument. Adjust function to use parser state.
8833 * ada-lang.c (parse): Likewise.
8834 * ada-lang.h: Forward declare "struct parser_state".
8835 (ada_parse): Add "struct parser_state" argument.
8836 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8837 calls to both functions.
8838 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8840 (yyparse): Redefine macro to f_parse_internal.
8841 (pstate): New variable.
8842 (parse_number): Add "struct parser_state" argument.
8843 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8844 and similars in order to use parser state.
8845 (parse_number): Adjust code to use parser state.
8847 (f_parse): New function.
8848 * f-lang.h: Forward declare "struct parser_state".
8849 (f_parse): Add "struct parser_state" argument.
8850 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8852 (yyparse): Redefine macro for java_parse_internal.
8853 (pstate): New variable.
8854 (push_expression_name, push_expression_name, insert_exp): Add
8855 "struct parser_state" argument.
8856 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8857 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8858 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8859 PostIncrementExpression, PostDecrementExpression,
8860 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8861 UnaryExpressionNotPlusMinus, CastExpression,
8862 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8863 RelationalExpression, EqualityExpression, AndExpression,
8864 ExclusiveOrExpression, InclusiveOrExpression,
8865 ConditionalAndExpression, ConditionalOrExpression,
8866 ConditionalExpression, Assignment, LeftHandSide): Update
8867 calls to write_exp* and similars in order to use parser state.
8868 (parse_number): Ajust code to use parser state.
8870 (java_parse): New function.
8871 (push_variable): Add "struct parser_state" argument. Adjust
8872 code to user parser state.
8873 (push_fieldnames, push_qualified_expression_name,
8874 push_expression_name, insert_exp): Likewise.
8875 * jv-lang.h: Forward declare "struct parser_state".
8876 (java_parse): Add "struct parser_state" argument.
8877 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8879 (yyparse): Redefine macro to m2_parse_internal.
8880 (pstate): New variable.
8881 (type_exp, exp, fblock, variable, type): Update calls to
8882 write_exp* and similars to use parser state.
8884 (m2_parse): New function.
8885 * m2-lang.h: Forward declare "struct parser_state".
8886 (m2_parse): Add "struct parser_state" argument.
8887 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8888 * objc-lang.h: Forward declare "struct parser_state".
8889 (end_msglist): Add "struct parser_state" argument.
8890 * p-exp.y (parse_type): Rewrite macro to use parser state.
8891 (yyparse): Redefine macro to pascal_parse_internal.
8892 (pstate): New variable.
8893 (parse_number): Add "struct parser_state" argument.
8894 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8895 write_exp* and similars in order to use parser state.
8896 (parse_number, yylex): Adjust code to use parser state.
8897 (pascal_parse): New function.
8898 * p-lang.h: Forward declare "struct parser_state".
8899 (pascal_parse): Add "struct parser_state" argument.
8900 * go-exp.y (parse_type): Rewrite macro to use parser state.
8901 (yyparse): Redefine macro to go_parse_internal.
8902 (pstate): New variable.
8903 (parse_number): Add "struct parser_state" argument.
8904 (type_exp, exp1, exp, variable, type): Update calls to
8905 write_exp* and similars in order to use parser state.
8906 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8907 to use parser state.
8908 (go_parse): Likewise.
8909 * go-lang.h: Forward declare "struct parser_state".
8910 (go_parse): Add "struct parser_state" argument.
8912 2014-03-27 Doug Evans <dje@google.com>
8914 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8916 2014-03-27 Doug Evans <dje@google.com>
8918 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8919 Remove argument abbrev_section. All callers updated.
8921 2014-03-27 Doug Evans <dje@google.com>
8923 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8924 addr_base, ranges_base.
8926 2014-03-26 Keith Seitz <keiths@redhat.com>
8928 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8929 types, not VAR_DOMAIN.
8931 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8933 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8935 * features/nios2-linux.c: Regenerated.
8936 * features/nios2.c: Regenerated.
8938 2014-03-25 Pedro Alves <palves@redhat.com>
8940 * cli/cli-script.c (script_from_file): Force the interpreter to
8943 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8945 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8946 small stack allocation.
8948 2014-03-24 Tristan Gingold <gingold@adacore.com>
8950 * darwin-nat.c (exc_server): Remove unused prototype.
8951 (darwin_dump_message): Correctly display data on x86_64.
8952 (darwin_encode_reply): Fix style.
8953 Add comments and fix indentation.
8955 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8957 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8959 2014-03-22 Doug Evans <xdje42@gmail.com>
8961 * infcmd.c: Whitespace fixes.
8962 (interrupt_command): Merge two function comments into one.
8964 2014-03-22 Doug Evans <xdje42@gmail.com>
8966 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8969 2014-03-22 Yao Qi <yao@codesourcery.com>
8971 * remote.c (target_read_live_memory): Remove.
8972 (memory_xfer_live_readonly_partial): Rename it to
8973 remote_xfer_live_readonly_partial. Remove argument 'object'.
8974 All callers updated. Call remote_read_bytes_1
8975 instead of target_read_live_memory.
8976 * tracepoint.c (set_traceframe_number): Remove.
8977 (make_cleanup_restore_traceframe_number): Likewise .
8978 * tracepoint.h (set_traceframe_number): Remove declaration.
8979 (make_cleanup_restore_traceframe_number): Likewise.
8981 2014-03-22 Yao Qi <yao@codesourcery.com>
8983 * remote.c (remote_read_bytes): Move code on reading from the
8985 (remote_read_bytes_1): ... here. New function.
8987 2014-03-22 Yao Qi <yao@codesourcery.com>
8989 * ctf.c (ctf_xfer_partial): Check the return value of
8990 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8991 return TARGET_XFER_UNAVAILABLE.
8992 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8993 * target.c (target_read_live_memory): Move it to remote.c.
8994 (memory_xfer_live_readonly_partial): Likewise.
8995 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8996 * remote.c (target_read_live_memory): Moved from target.c.
8997 (memory_xfer_live_readonly_partial): Likewise.
8998 (remote_read_bytes): Factored out from
8999 memory_xfer_partial_1.
9001 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9003 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9006 2014-03-21 Pedro Alves <palves@redhat.com>
9008 * infrun.c (normal_stop): Extend comment.
9010 2014-03-21 Hui Zhu <hui@codesourcery.com>
9011 Pedro Alves <palves@redhat.com>
9013 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9015 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9016 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9017 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9019 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9021 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9022 `z' formatted output modifier.
9024 2014-03-20 Tom Tromey <tromey@redhat.com>
9025 Sergio Durigan Junior <sergiodj@redhat.com>
9027 * probe.c (parse_probes): Turn assert into an ordinary error.
9028 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9029 exceptions when parsing probes. Rearrange the code for clarity.
9031 2014-03-20 Tom Tromey <tromey@redhat.com>
9034 * top.c (execute_command): Only dispatch events if the command
9037 2014-03-20 Tom Tromey <tromey@redhat.com>
9040 * infcall.c: Include event-top.h.
9041 (run_inferior_call): Call async_disable_stdin if needed.
9043 2014-03-20 Pedro Alves <palves@redhat.com>
9045 * infrun.c (prepare_to_proceed): Delete.
9046 (thread_still_needs_step_over): New function.
9047 (find_thread_needs_step_over): New function.
9048 (proceed): If the current thread needs a step-over, set its
9049 steping_over_breakpoint flag. Adjust to use
9050 find_thread_needs_step_over instead of prepare_to_proceed.
9051 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9052 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9054 (switch_back_to_stepped_thread): Step over breakpoints of all
9055 threads not the stepping thread, before switching back to the
9058 2014-03-20 Pedro Alves <palves@redhat.com>
9060 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9062 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9063 * infrun.c (saved_singlestep_ptid)
9064 (stepping_past_singlestep_breakpoint): Delete.
9065 (resume): Remove stepping_past_singlestep_breakpoint handling.
9066 (proceed): Store the prev_pc of the stepping thread too.
9067 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9069 (enum infwait_states): Delete infwait_thread_hop_state.
9070 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9072 (handle_inferior_event): Adjust.
9073 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9074 handling and the thread-hop code. Before removing single-step
9075 breakpoints, check whether the thread hit a single-step breakpoint
9076 of another thread. If it did, the trap is not a random signal.
9077 (switch_back_to_stepped_thread): If the event thread hit a
9078 single-step breakpoint, unblock it before switching to the
9079 stepping thread. Handle the case of the stepped thread having
9081 (keep_going): Handle the case of the current thread moving past a
9082 single-step breakpoint.
9084 2014-03-20 Pedro Alves <palves@redhat.com>
9087 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9088 are being stepped over.
9089 (breakpoint_address_match): Make extern.
9090 * breakpoint.h (breakpoint_address_match): New declaration.
9091 * inferior.h (stepping_past_instruction_at): New declaration.
9092 * infrun.c (struct step_over_info): New type.
9093 (step_over_info): New global.
9094 (set_step_over_info, clear_step_over_info)
9095 (stepping_past_instruction_at): New functions.
9096 (handle_inferior_event): Clear the step-over info when
9097 trap_expected is cleared.
9098 (resume): Remove now stale comment.
9099 (clear_proceed_status): Clear step-over info.
9100 (proceed): Adjust step-over handling to set or clear the step-over
9101 info instead of removing all breakpoints.
9102 (handle_signal_stop): When setting up a thread-hop, don't remove
9104 (stop_stepping): Clear step-over info.
9105 (keep_going): Adjust step-over handling to set or clear step-over
9106 info and then always inserting breakpoints, instead of removing
9107 all breakpoints when stepping over one.
9109 2014-03-20 Pedro Alves <palves@redhat.com>
9111 * infrun.c (previous_inferior_ptid): Adjust comment.
9112 (deferred_step_ptid): Delete.
9113 (infrun_thread_ptid_changed, prepare_to_proceed)
9114 (init_wait_for_inferior): Adjust.
9115 (handle_signal_stop): Delete deferred_step_ptid handling.
9117 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9120 * defs.h (sync_quit_force_run): New declaration.
9121 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9122 * event-top.c (async_sigterm_handler): New declaration.
9123 (async_sigterm_token): New variable.
9124 (async_init_signals): Create also async_sigterm_token.
9125 (async_sigterm_handler): New function.
9126 (sync_quit_force_run): New variable.
9127 (handle_sigterm): Replace quit_force call by other calls.
9128 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9130 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9132 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9133 offset into SPE pseudo registers.
9135 2014-03-18 Pedro Alves <palves@redhat.com>
9138 * inferior.h (print_stop_event): Declare.
9139 * infrun.c (print_stop_event): New, factored out from ...
9140 (normal_stop): ... this.
9141 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9142 of bpstat_print/print_stack_frame.
9144 2014-03-17 Tom Tromey <tromey@redhat.com>
9146 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9148 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9150 * ada-lang.c (decode_constrained_packed_array): Perform a
9151 minimal coercion for reference with coerce_ref instead of
9154 2014-03-17 Tristan Gingold <gingold@adacore.com>
9156 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9157 (darwin_solib_create_inferior_hook): Emit a warning if version
9160 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
9162 * python/py-value.c (get_field_flag): Cast flag_name argument to
9163 PyObject_GetAttrString to support Python 2.4.
9165 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9167 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9168 (Global Maintainers): Remove Jan Kratochvil.
9170 2014-03-14 Pedro Alves <palves@redhat.com>
9172 * inferior.h (terminal_ours_for_output): Rename to ...
9173 (child_terminal_ours_for_output): ... this.
9174 (terminal_save_ours): Rename to ...
9175 (child_terminal_save_ours): ... this.
9176 (terminal_ours): Rename to ...
9177 (child_terminal_ours): ... this.
9178 (terminal_inferior): Rename to ...
9179 (child_terminal_inferior): ... this.
9180 (terminal_init_inferior): Rename to ...
9181 (child_terminal_init_inferior): ... this.
9182 (terminal_init_inferior_with_pgrp): Rename to ...
9183 (child_terminal_init_inferior_with_pgrp): ... this.
9184 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9185 (child_terminal_init_with_pgrp): ... this.
9186 (terminal_save_ours): Rename to ...
9187 (child_terminal_save_ours): ... this.
9188 (terminal_init_inferior): Rename to ...
9189 (child_terminal_init): ... this. Adjust.
9190 (terminal_inferior): Rename to ...
9191 (child_terminal_inferior): ... this.
9192 (terminal_ours_for_output): Rename to ...
9193 (child_terminal_ours_for_output): ... this. Adjust.
9194 (terminal_ours): Rename to ...
9195 (child_terminal_ours): ... this.
9196 (terminal_ours_1): Rename to ...
9197 (child_terminal_ours_1): ... this. Adjust.
9198 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9199 * windows-nat.c (do_initial_windows_stuff): Adjust.
9200 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9201 (gnu_terminal_init): ... this. Adjust.
9202 (gnu_target): Adjust.
9203 * inf-child.c (inf_child_target): Adjust.
9205 2014-03-13 Doug Evans <xdje42@gmail.com>
9208 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9211 2014-03-13 Doug Evans <xdje42@gmail.com>
9213 * value.c (record_latest_value): Call release_value_or_incref
9214 instead of release_value.
9216 2014-03-13 Pedro Alves <palves@redhat.com>
9218 * procfs.c (procfs_target): Don't override to_shortname,
9219 to_longname or to_doc.
9221 2014-03-13 Pedro Alves <palves@redhat.com>
9223 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9224 Unix in user visible strings.
9226 2014-03-12 Stan Shebs <stan@codesourcery.com>
9228 * gdbtypes.h: Annotate comments for Doxygen, add a page
9229 block comment with some general info.
9231 2014-03-12 Pedro Alves <palves@redhat.com>
9233 * infcmd.c (prepare_execution_command): New function, factored out
9234 from several execution commands.
9235 (run_command_1, continue_command, step_1, jump_command)
9236 (signal_command, until_command, advance_command, finish_command)
9237 (attach_command): Use prepare_execution_command.
9239 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9241 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9244 (struct arm_linux_thread_points): Removed.
9245 (struct arm_linux_process_info): New.
9246 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9247 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9248 (arm_linux_find_breakpoints_by_tid): Removed.
9249 (struct arch_lwp_info): New.
9250 (arm_linux_find_process_pid): New functions.
9251 (arm_linux_add_process): New functions.
9252 (arm_linux_process_info_get): New functions.
9253 (arm_linux_forget_process): New function.
9254 (arm_linux_get_debug_reg_state): New function.
9255 (struct update_registers_data): New.
9256 (update_registers_callback): New function.
9257 (arm_linux_insert_hw_breakpoint1): Updated.
9258 (arm_linux_remove_hw_breakpoint1): Updated.
9259 (arm_linux_insert_hw_breakpoint): Updated.
9260 (arm_linux_remove_hw_breakpoint): Updated.
9261 (arm_linux_insert_watchpoint): Updated.
9262 (arm_linux_remove_watchpoint): Updated.
9263 (arm_linux_new_thread): Updated.
9264 (arm_linux_prepare_to_resume): New function.
9265 (arm_linux_new_fork): New function.
9266 (_initialize_arm_linux_nat): Updated.
9268 2014-03-12 Pedro Alves <palves@redhat.com>
9270 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9272 2014-03-12 Tom Tromey <tromey@redhat.com>
9274 * inf-child.c (return_zero): New function.
9275 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9276 * aix-thread.c (aix_thread_inferior_created): New function.
9277 (aix_thread_attach): Remove.
9278 (init_aix_thread_ops): Don't set to_attach.
9279 (_initialize_aix_thread): Register inferior_created observer.
9280 * corelow.c (init_core_ops): Don't set to_attach or
9282 * exec.c (init_exec_ops): Don't set to_attach or
9284 * infcmd.c (run_command_1): Use find_run_target. Make direct
9286 (attach_command): Use find_attach_target. Make direct target
9288 * record-btrace.c (init_record_btrace_ops): Don't set
9290 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9292 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9293 set to_create_inferior.
9294 * target.c (complete_target_initialization): Add assertion.
9295 (target_create_inferior): Remove.
9296 (find_default_attach, find_default_create_inferior): Remove.
9297 (find_attach_target, find_run_target): New functions.
9298 (find_default_is_async_p, find_default_can_async_p)
9299 (target_supports_non_stop, target_attach): Remove.
9300 (init_dummy_target): Don't set to_create_inferior or
9301 to_supports_non_stop.
9302 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9303 TARGET_DEFAULT_FUNC.
9304 <to_create_inferior>: Add comment.
9305 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9306 TARGET_DEFAULT_RETURN.
9307 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9308 (find_attach_target, find_run_target): Declare.
9309 (target_create_inferior): Remove.
9310 (target_has_execution_1): Update comment.
9311 (target_supports_non_stop): Remove.
9312 * target-delegates.c: Rebuild.
9314 2014-03-12 Pedro Alves <palves@redhat.com>
9316 * inf-child.h: Update comment to not mention Unix.
9318 2014-03-12 Pedro Alves <palves@redhat.com>
9320 * inf-child.c: Update top comment to not mention Unix. Add
9321 generic comment describing how this target is meant to be used.
9322 (inf_child_post_attach, inf_child_post_startup_inferior)
9323 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9326 2014-03-12 Pedro Alves <palves@redhat.com>
9328 * nto-procfs.c: Include inf-child.h.
9329 (procfs_ops): Delete global.
9330 (procfs_can_run): Delete method.
9331 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9332 target pointer instead of referencing procfs_ops.
9333 (procfs_prepare_to_store): Delete.
9334 (init_procfs_ops): Delete function.
9335 (procfs_target): New function, based on init_procfs_ops, but
9336 inherit inf_child_target.
9337 (_initialize_procfs): Use procfs_target.
9339 2014-03-12 Pedro Alves <palves@redhat.com>
9341 * windows-nat.c: Include inf-child.h.
9342 (windows_ops): Delete global.
9343 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9345 (init_windows_ops): Delete function.
9346 (windows_target): New function, based on init_windows_ops, but
9347 inherit inf_child_target.
9348 (_initialize_windows_nat): Use windows_target. Install x86
9349 specific target methods here.
9351 2014-03-10 Doug Evans <xdje42@gmail.com>
9353 * guile/guile.c (call_initialize_gdb_module): New function.
9354 (initialize_guile): Replace call to scm_init_guile with call to
9357 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9359 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9360 in call to TYPE_CODE macro.
9362 2014-03-10 Jerome Guitton <guitton@adacore.com>
9364 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9365 Resolve tagged types to full view.
9367 2014-03-10 Hui Zhu <hui@codesourcery.com>
9369 * target.h (target_insert_breakpoint): Remove "hardware" from its
9372 2014-03-07 Doug Evans <dje@google.com>
9374 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9376 2014-03-07 Doug Evans <dje@google.com>
9378 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9379 Remove unused local comp_dir_attr. Assert exactly one of
9380 stub_comp_unit_die, stub_comp_dir is non-NULL.
9382 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9384 * target.h (complete_target_initialization, add_target):
9387 2014-03-07 Pedro Alves <palves@redhat.com>
9389 * go32-nat.c: Include inf-child.h.
9390 (go32_ops): Delete global.
9391 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9393 (go32_create_inferior): Push the passed in target pointer instead
9394 of referencing go32_ops.
9395 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9396 (go32_target): New function, based on init_go32_ops, but inherit
9398 (_initialize_go32_nat): Use go32_target. Move parts of
9401 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9403 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9404 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9405 SYMBOL_VALUE_ADDRESS.
9406 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9408 2014-03-06 Yao Qi <yao@codesourcery.com>
9410 * breakpoint.c (get_tracepoint_by_number): Remove argument
9411 optional_p. All callers updated. Adjust comments. Update
9413 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9415 2014-03-06 Yao Qi <yao@codesourcery.com>
9417 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9418 early if get_number returns zero. Use 'p' instead of 'args'.
9420 2014-03-06 Yao Qi <yao@codesourcery.com>
9422 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9425 2014-03-06 Yao Qi <yao@codesourcery.com>
9427 PR breakpoints/16508
9428 * tracepoint.c (check_trace_running): New function.
9429 (trace_find_command): Move code to check_trace_running and
9430 call check_trace_running.
9431 (trace_find_pc_command): Likewise.
9432 (trace_find_tracepoint_command): Likewise.
9433 (trace_find_line_command): Likewise.
9434 (trace_find_range_command): Likewise.
9435 * tracepoint.h (check_trace_running): Likewise.
9436 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9438 2014-03-06 Yao Qi <yao@codesourcery.com>
9440 * target.h (struct target_ops) <to_traceframe_info>: Use
9441 TARGET_DEFAULT_NORETURN (tcomplain ()).
9442 * target-delegates.c: Regenerated.
9444 2014-03-05 Pedro Alves <palves@redhat.com>
9447 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9448 void. Update comment.
9449 (dcache_xfer_memory): Delete.
9450 (dcache_read_memory_partial): New, based on the read bits of
9452 (dcache_update): Add status parameter. Use ULONGEST for len, and
9453 adjust. Discard cache lines if the reason for the update was
9455 * dcache.h (dcache_xfer_memory): Delete declaration.
9456 (dcache_read_memory_partial): New declaration.
9457 (dcache_update): Update prototype.
9458 * target.c (raw_memory_xfer_partial): Update the dcache here.
9459 (memory_xfer_partial_1): Don't handle dcache writes here.
9461 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9463 * remote-sim.c (gdbsim_load): Add const to prog.
9465 2014-03-03 Tom Tromey <tromey@redhat.com>
9467 * elfread.c (probe_key): Change to bfd_data.
9468 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9469 now per-BFD, not per-objfile.
9470 * stap-probe.c (stap_probe_destroy): Update comment.
9471 (handle_stap_probe): Allocate on the per-BFD obstack.
9473 2014-03-03 Tom Tromey <tromey@redhat.com>
9475 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9476 * breakpoint.c (create_longjmp_master_breakpoint): Use
9478 (add_location_to_breakpoint, bkpt_probe_insert_location)
9479 (bkpt_probe_remove_location): Update.
9480 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9481 * elfread.c (elf_symfile_relocate_probe): Remove.
9482 (elf_probe_fns): Update.
9483 (insert_exception_resume_breakpoint): Change type of "probe"
9484 parameter to bound_probe.
9485 (check_exception_resume): Update.
9486 * objfiles.c (objfile_relocate1): Don't relocate probes.
9487 * probe.c (bound_probe_s): New typedef.
9488 (parse_probes): Use get_probe_address. Set sal's objfile.
9489 (find_probe_by_pc): Return a bound_probe.
9490 (collect_probes): Return a VEC(bound_probe_s).
9491 (compare_probes): Update.
9492 (gen_ui_out_table_header_info): Change type of "probes"
9494 (info_probes_for_ops): Update.
9495 (get_probe_address): New function.
9496 (probe_safe_evaluate_at_pc): Update.
9497 * probe.h (struct probe_ops) <get_probe_address>: New field.
9498 <set_semaphore, clear_semaphore>: Add objfile parameter.
9499 (struct probe) <objfile>: Remove field.
9501 <address>: Update comment.
9502 (struct bound_probe): New.
9503 (find_probe_by_pc): Return a bound_probe.
9504 (get_probe_address): Declare.
9505 * solib-svr4.c (struct probe_and_action) <address>: New field.
9506 (hash_probe_and_action, equal_probe_and_action): Update.
9507 (register_solib_event_probe): Add address parameter.
9508 (solib_event_probe_at): Update.
9509 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9511 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9512 (stap_get_probe_address): New function.
9513 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9514 (compile_probe_arg): Update.
9515 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9517 (handle_stap_probe): Don't relocate the probe.
9518 (stap_relocate): Remove.
9519 (stap_gen_info_probes_table_values): Update.
9520 (stap_probe_ops): Remove stap_relocate.
9521 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9522 (debug_sym_probe_fns): Update.
9523 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9524 * symtab.c (init_sal): Use memset.
9525 * symtab.h (struct symtab_and_line) <objfile>: New field.
9526 * tracepoint.c (start_tracing, stop_tracing): Update.
9528 2014-03-03 Tom Tromey <tromey@redhat.com>
9530 * probe.h (parse_probes, find_probe_by_pc)
9531 (find_probes_in_objfile): Fix comments.
9533 2014-03-02 Doug Evans <xdje42@gmail.com>
9535 * infrun.c (handle_signal_stop): Replace test for
9536 TARGET_WAITKIND_STOPPED with an assert.
9538 2014-03-02 Doug Evans <xdje42@gmail.com>
9540 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9542 2014-03-02 Doug Evans <xdje42@gmail.com>
9544 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9546 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9548 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9550 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9552 * i386obsd-nat.c: Include "obsd-nat.h".
9553 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9555 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9557 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9559 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9561 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9563 * mips64obsd-nat.c: Include "obsd-nath".
9564 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9566 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9568 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9570 * amd64obsd-nat.c: Include "obsd-nat,h.
9571 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9573 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9575 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9577 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9578 (find_overload_match): Update call to find_oload_champ.
9579 (find_oload_champ_namespace_loop): Likewise
9581 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9583 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9585 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9586 * config/sparc/obsd64.mh: New file.
9587 * sparc64obsd-nat.c: New file.
9589 * obsd-nat.h: New file.
9590 * obsd-nat.c: New file.
9591 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9592 (ALLDEPFILES): Add obsd-nat.c.
9594 2014-02-28 Tom Tromey <tromey@redhat.com>
9596 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9597 * cli-out.h (cli_ui_out_impl): Now const.
9598 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9599 * ui-out.c (struct ui_out) <impl>: Now const.
9600 (default_ui_out_impl): Now const.
9601 (ui_out_new): Make 'impl' parameter const.
9602 * ui-out.h (ui_out_new): Update.
9604 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9606 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9608 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9610 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9612 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9614 Additional PR 8882 fix.
9615 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9617 2014-02-27 Pedro Alves <palves@redhat.com>
9619 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9622 2014-02-27 Pedro Alves <palves@redhat.com>
9625 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9626 * nat/linux-waitpid.c: Include string.h.
9627 (status_to_str): Moved here and made extern.
9628 * nat/linux-waitpid.h (status_to_str): New declaration.
9630 2014-02-27 Hui Zhu <hui@codesourcery.com>
9633 * infrun.c (ptid_match): Move ...
9634 * common/ptid.c (ptid_match): ... here.
9635 * inferior.h (ptid_match): Move ...
9636 * common/ptid.h (ptid_match): ... here.
9638 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9640 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9641 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9644 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9646 * obsd-tdep.c (obsd_auxv_parse): New function.
9647 (obsd_init_abi): Set auxv_parse.
9649 * gdbarch.sh (auxv_parse): New.
9650 * gdbarch.h: Regenerated.
9651 * gdbarch.c: Regenerated.
9652 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9654 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9656 * guile/scm-value.c (gdbscm_history_append_x): New function.
9657 (value_functions): Add it.
9659 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9661 * dwarf2read.c (attr_value_as_address): New function.
9662 (dwarf2_find_base_address, read_call_site_scope): Use
9663 attr_value_as_address in place of DW_ADDR.
9664 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9665 the low and high addresses. Slight rework of the handling
9666 of the high pc being a constant form, and limit it to
9667 DWARF verson 4 or higher.
9668 (dwarf2_record_block_ranges): Likewise.
9669 (read_partial_die): Likewise.
9670 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9672 2014-02-26 Tom Tromey <tromey@redhat.com>
9674 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9676 2014-02-26 Tom Tromey <tromey@redhat.com>
9678 * elfread.c (elf_read_minimal_symbols): Return early if
9679 minimal symbols have already been read. Add "ei" parameter.
9680 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9681 * minsyms.c (prim_record_minimal_symbol_full): Update.
9682 * objfiles.h (struct objstats) <n_minsyms>: Move...
9683 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9684 * symmisc.c (print_objfile_statistics): Update.
9686 2014-02-26 Tom Tromey <tromey@redhat.com>
9688 * elfread.c (elf_read_minimal_symbols): New function, from
9690 (elf_symfile_read): Call it.
9692 2014-02-26 Tom Tromey <tromey@redhat.com>
9694 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9695 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9696 (lookup_minimal_symbol_solib_trampoline)
9697 (lookup_minimal_symbol_by_pc_section_1)
9698 (lookup_minimal_symbol_and_objfile): Update.
9699 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9700 Don't allocate a minimal symbol if minsyms have already been read.
9701 (build_minimal_symbol_hash_tables): Update.
9702 (install_minimal_symbols): Do nothing if minsyms already read.
9703 Use the per-BFD obstack.
9704 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9705 * objfiles.c (allocate_objfile): Call
9706 terminate_minimal_symbol_table later.
9707 (have_minimal_symbols): Update.
9708 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9709 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9710 Move from struct objfile.
9711 <minsyms_read>: New field.
9712 (struct objfile) <msymbols, minimal_symbol_count,
9713 msymbol_hash, msymbol_demangled_hash>: Move.
9714 (ALL_OBJFILE_MSYMBOLS): Update.
9715 * symfile.c (read_symbols): Set minsyms_read.
9716 (reread_symbols): Update.
9717 * symmisc.c (dump_objfile, dump_msymbols): Update.
9719 2014-02-26 Tom Tromey <tromey@redhat.com>
9721 * minsyms.c (msymbols_sort): Remove.
9722 * minsyms.h (msymbols_sort): Remove.
9723 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9724 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9725 * elfread.c (elf_symtab_read): Don't add section offsets.
9726 * xcoffread.c (record_minimal_symbol): Don't add section offset
9727 to minimal symbol address.
9728 * somread.c (text_offset, data_offset): Remove.
9729 (som_symtab_read): Don't add section offsets to minimal symbol
9731 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9732 Don't add section offsets to minimal symbols.
9733 * coffread.c (coff_symtab_read): Don't add section offsets
9734 to minimal symbol addresses.
9735 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9736 to minimal symbol addresses.
9737 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9738 section offset to minimal symbol addresses.
9739 * mdebugread.c (parse_partial_symbols): Don't add section
9740 offset to minimal symbol addresses.
9741 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9742 offset to minimal symbol addresses.
9744 2014-02-26 Tom Tromey <tromey@redhat.com>
9746 * ada-lang.c (ada_main_name): Update.
9747 (ada_add_standard_exceptions): Update.
9748 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9749 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9750 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9751 * auxv.c (ld_so_xfer_auxv): Update.
9752 * avr-tdep.c (avr_scan_prologue): Update.
9753 * ax-gdb.c (gen_var_ref): Update.
9754 * blockframe.c (get_pc_function_start)
9755 (find_pc_partial_function_gnu_ifunc): Update.
9756 * breakpoint.c (create_overlay_event_breakpoint)
9757 (create_longjmp_master_breakpoint)
9758 (create_std_terminate_master_breakpoint)
9759 (create_exception_master_breakpoint): Update.
9760 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9761 * c-valprint.c (c_val_print): Update.
9762 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9763 * common/agent.c (agent_look_up_symbols): Update.
9764 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9765 * dwarf2loc.c (call_site_to_target_addr): Update.
9766 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9767 * elfread.c (elf_gnu_ifunc_record_cache)
9768 (elf_gnu_ifunc_resolve_by_got): Update.
9769 * findvar.c (default_read_var_value): Update.
9770 * frame.c (inside_main_func): Update.
9771 * frv-tdep.c (frv_frame_this_id): Update.
9772 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9773 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9775 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9776 (hppa_hpux_find_dummy_bpaddr): Update.
9777 * hppa-tdep.c (hppa_symbol_address): Update.
9778 * infcmd.c (until_next_command): Update.
9779 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9781 * linespec.c (minsym_found, add_minsym): Update.
9782 * linux-nat.c (get_signo): Update.
9783 * linux-thread-db.c (inferior_has_bug): Update.
9784 * m32c-tdep.c (m32c_return_value)
9785 (m32c_m16c_address_to_pointer): Update.
9786 * m32r-tdep.c (m32r_frame_this_id): Update.
9787 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9788 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9789 * maint.c (maintenance_translate_address): Update.
9790 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9791 (frob_address): New function.
9792 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9793 frob_address. Rename parameter to "pc_in".
9794 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9796 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9798 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9799 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9800 * objc-lang.c (find_objc_msgsend): Update.
9801 * objfiles.c (objfile_relocate1): Update.
9802 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9803 * p-valprint.c (pascal_val_print): Update.
9804 * parse.c (write_exp_msymbol): Update.
9805 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9806 (ppc_elfv2_skip_entrypoint): Update.
9807 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9808 * printcmd.c (build_address_symbolic, msym_info)
9809 (address_info): Update.
9810 * proc-service.c (ps_pglobal_lookup): Update.
9811 * psymtab.c (find_pc_sect_psymtab_closer)
9812 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9813 Change msymbol parameter to bound_minimal_symbol.
9814 * ravenscar-thread.c (get_running_thread_id): Update.
9815 * remote.c (remote_check_symbols): Update.
9816 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9818 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9819 * solib-dsbt.c (lm_base): Update.
9820 * solib-frv.c (lm_base, main_got): Update.
9821 * solib-irix.c (locate_base): Update.
9822 * solib-som.c (som_solib_create_inferior_hook)
9823 (link_map_start): Update.
9824 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9825 * solib-svr4.c (elf_locate_base, enable_break): Update.
9826 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9827 (flush_ea_cache): Update.
9828 * stabsread.c (define_symbol, scan_file_globals): Update.
9829 * stack.c (find_frame_funname): Update.
9830 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9831 (debug_qf_find_pc_sect_symtab): Update.
9832 * symfile.c (simple_read_overlay_table)
9833 (simple_overlay_update): Update.
9834 * symfile.h (struct quick_symbol_functions)
9835 <find_pc_sect_symtab>: Change type of msymbol to
9836 bound_minimal_symbol.
9837 * symmisc.c (dump_msymbols): Update.
9838 * symtab.c (find_pc_sect_symtab_via_partial)
9839 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9840 (search_symbols, print_msymbol_info): Update.
9841 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9842 (MSYMBOL_VALUE_ADDRESS): Redefine.
9843 (BMSYMBOL_VALUE_ADDRESS): New macro.
9844 * tracepoint.c (scope_info): Update.
9845 * tui/tui-disasm.c (tui_find_disassembly_address)
9846 (tui_get_begin_asm_address): Update.
9847 * valops.c (find_function_in_inferior): Update.
9848 * value.c (value_static_field, value_fn_field): Update.
9850 2014-02-26 Tom Tromey <tromey@redhat.com>
9852 * ada-lang.c (ada_update_initial_language): Update.
9853 (ada_main_name, ada_has_this_exception_support): Update.
9854 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9855 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9856 * arm-tdep.c (arm_skip_stub): Update.
9857 * auxv.c (ld_so_xfer_auxv): Update.
9858 * avr-tdep.c (avr_scan_prologue): Update.
9859 * ax-gdb.c (gen_var_ref): Update.
9860 * breakpoint.c (struct breakpoint_objfile_data)
9861 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9862 type to bound_minimal_symbol.
9863 (create_overlay_event_breakpoint)
9864 (create_longjmp_master_breakpoint)
9865 (create_std_terminate_master_breakpoint)
9866 (create_exception_master_breakpoint): Update.
9867 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9868 * c-exp.y (classify_name): Update.
9869 * coffread.c (coff_symfile_read): Update.
9870 * common/agent.c (agent_look_up_symbols): Update.
9871 * d-lang.c (d_main_name): Update.
9872 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9873 * dec-thread.c (enable_dec_thread): Update.
9874 * dwarf2loc.c (call_site_to_target_addr): Update.
9875 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9876 * eval.c (evaluate_subexp_standard): Update.
9877 * findvar.c (struct minsym_lookup_data) <result>: Change type
9878 to bound_minimal_symbol.
9880 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9881 * frame.c (inside_main_func): Update.
9882 * frv-tdep.c (frv_frame_this_id): Update.
9883 * gcore.c (call_target_sbrk): Update.
9884 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9885 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9887 * go-lang.c (go_main_name): Update.
9888 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9889 (hppa_hpux_find_import_stub_for_addr): Update.
9890 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9891 Update. Change return type.
9892 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9894 * jit.c (jit_breakpoint_re_set_internal): Update.
9895 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9897 * linux-nat.c (get_signo): Update.
9898 * linux-thread-db.c (inferior_has_bug): Update
9899 * m32c-tdep.c (m32c_return_value)
9900 (m32c_m16c_address_to_pointer): Update.
9901 * m32r-tdep.c (m32r_frame_this_id): Update.
9902 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9903 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9904 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9905 lookup_minimal_symbol. Change return type.
9906 (lookup_minimal_symbol): Remove.
9907 (lookup_bound_minimal_symbol): Update.
9908 (lookup_minimal_symbol_text): Change return type.
9909 (lookup_minimal_symbol_solib_trampoline): Change return type.
9910 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9911 (lookup_minimal_symbol_solib_trampoline): Change return type.
9912 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9913 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9914 (value_nsstring, find_imps): Update.
9915 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9916 * p-lang.c (pascal_main_name): Update.
9917 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9918 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9919 * proc-service.c (ps_pglobal_lookup): Update.
9920 * ravenscar-thread.c (get_running_thread_msymbol): Change
9922 (has_ravenscar_runtime, get_running_thread_id): Update.
9923 * remote.c (remote_check_symbols): Update.
9924 * sol-thread.c (ps_pglobal_lookup): Update.
9925 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9926 * solib-dsbt.c (lm_base): Update.
9927 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9929 * solib-irix.c (locate_base): Update.
9930 * solib-som.c (som_solib_create_inferior_hook)
9931 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9933 * solib-spu.c (spu_enable_break): Update.
9934 * solib-svr4.c (elf_locate_base, enable_break): Update.
9935 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9936 (flush_ea_cache): Update.
9937 * stabsread.c (define_symbol): Update.
9938 * symfile.c (simple_read_overlay_table): Update.
9939 * symtab.c (find_pc_sect_line): Update.
9940 * tracepoint.c (scope_info): Update.
9941 * tui-disasm.c (tui_get_begin_asm_address): Update.
9942 * value.c (value_static_field): Update.
9944 2014-02-26 Tom Tromey <tromey@redhat.com>
9946 * minsyms.c (prim_record_minimal_symbol_full): Use
9947 SET_MSYMBOL_VALUE_ADDRESS.
9948 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9949 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9950 SET_MSYMBOL_VALUE_ADDRESS.
9951 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9952 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9954 2014-02-26 Tom Tromey <tromey@redhat.com>
9956 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9957 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9958 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9959 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9960 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9961 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9962 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9963 * ada-lang.c (ada_main_name): Update.
9964 (ada_lookup_simple_minsym): Update.
9965 (ada_make_symbol_completion_list): Update.
9966 (ada_add_standard_exceptions): Update.
9967 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9968 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9969 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9970 * arm-tdep.c (skip_prologue_function): Update.
9971 (arm_skip_stack_protector, arm_skip_stub): Update.
9972 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9973 (arm_wince_skip_main_prologue): Update.
9974 * auxv.c (ld_so_xfer_auxv): Update.
9975 * avr-tdep.c (avr_scan_prologue): Update.
9976 * ax-gdb.c (gen_var_ref): Update.
9977 * block.c (call_site_for_pc): Update.
9978 * blockframe.c (get_pc_function_start): Update.
9979 (find_pc_partial_function_gnu_ifunc): Update.
9980 * breakpoint.c (create_overlay_event_breakpoint): Update.
9981 (create_longjmp_master_breakpoint): Update.
9982 (create_std_terminate_master_breakpoint): Update.
9983 (create_exception_master_breakpoint): Update.
9984 (resolve_sal_pc): Update.
9985 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9986 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9988 * c-valprint.c (c_val_print): Update.
9989 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9990 * coffread.c (coff_symfile_read): Update.
9991 * common/agent.c (agent_look_up_symbols): Update.
9992 * dbxread.c (find_stab_function_addr): Update.
9993 (end_psymtab): Update.
9994 * dwarf2loc.c (call_site_to_target_addr): Update.
9995 (func_verify_no_selftailcall): Update.
9996 (tailcall_dump): Update.
9997 (call_site_find_chain_1): Update.
9998 (dwarf_expr_reg_to_entry_parameter): Update.
9999 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10000 (elf_gnu_ifunc_resolve_by_got): Update.
10001 * f-valprint.c (info_common_command): Update.
10002 * findvar.c (read_var_value): Update.
10003 * frame.c (get_prev_frame_1): Update.
10004 (inside_main_func): Update.
10005 * frv-tdep.c (frv_skip_main_prologue): Update.
10006 (frv_frame_this_id): Update.
10007 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10008 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10009 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10010 (gnuv3_skip_trampoline): Update.
10011 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10012 (hppa64_hpux_in_solib_call_trampoline): Update.
10013 (hppa_hpux_skip_trampoline_code): Update.
10014 (hppa64_hpux_search_dummy_call_sequence): Update.
10015 (hppa_hpux_find_import_stub_for_addr): Update.
10016 (hppa_hpux_find_dummy_bpaddr): Update.
10017 * hppa-tdep.c (hppa_symbol_address)
10018 (hppa_lookup_stub_minimal_symbol): Update.
10019 * i386-tdep.c (i386_skip_main_prologue): Update.
10020 (i386_pe_skip_trampoline_code): Update.
10021 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10022 * infcall.c (get_function_name): Update.
10023 * infcmd.c (until_next_command): Update.
10024 * jit.c (jit_breakpoint_re_set_internal): Update.
10025 (jit_inferior_init): Update.
10026 * linespec.c (minsym_found): Update.
10027 (add_minsym): Update.
10028 * linux-fork.c (info_checkpoints_command): Update.
10029 * linux-nat.c (get_signo): Update.
10030 * linux-thread-db.c (inferior_has_bug): Update.
10031 * m32c-tdep.c (m32c_return_value): Update.
10032 (m32c_m16c_address_to_pointer): Update.
10033 (m32c_m16c_pointer_to_address): Update.
10034 * m32r-tdep.c (m32r_frame_this_id): Update.
10035 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10036 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10037 * maint.c (maintenance_translate_address): Update.
10038 * minsyms.c (add_minsym_to_hash_table): Update.
10039 (add_minsym_to_demangled_hash_table): Update.
10040 (msymbol_objfile): Update.
10041 (lookup_minimal_symbol): Update.
10042 (iterate_over_minimal_symbols): Update.
10043 (lookup_minimal_symbol_text): Update.
10044 (lookup_minimal_symbol_by_pc_name): Update.
10045 (lookup_minimal_symbol_solib_trampoline): Update.
10046 (lookup_minimal_symbol_by_pc_section_1): Update.
10047 (lookup_minimal_symbol_and_objfile): Update.
10048 (prim_record_minimal_symbol_full): Update.
10049 (compare_minimal_symbols): Update.
10050 (compact_minimal_symbols): Update.
10051 (build_minimal_symbol_hash_tables): Update.
10052 (install_minimal_symbols): Update.
10053 (terminate_minimal_symbol_table): Update.
10054 (find_solib_trampoline_target): Update.
10055 (minimal_symbol_upper_bound): Update.
10056 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10057 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10058 (mips_skip_pic_trampoline_code): Update.
10059 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10060 * objc-lang.c (selectors_info): Update.
10061 (classes_info): Update.
10062 (find_methods): Update.
10063 (find_imps): Update.
10064 (find_objc_msgsend): Update.
10065 * objfiles.c (objfile_relocate1): Update.
10066 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10067 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10068 * p-valprint.c (pascal_val_print): Update.
10069 * parse.c (write_exp_msymbol): Update.
10070 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10071 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10072 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10073 * printcmd.c (build_address_symbolic): Update.
10074 (sym_info): Update.
10075 (address_info): Update.
10076 * proc-service.c (ps_pglobal_lookup): Update.
10077 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10078 (find_pc_sect_psymtab): Update.
10079 * python/py-framefilter.c (py_print_frame): Update.
10080 * ravenscar-thread.c (get_running_thread_id): Update.
10081 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10083 * remote.c (remote_check_symbols): Update.
10084 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10085 (rs6000_skip_trampoline_code): Update.
10086 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10087 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10088 * solib-dsbt.c (lm_base): Update.
10089 * solib-frv.c (lm_base): Update.
10090 (main_got): Update.
10091 * solib-irix.c (locate_base): Update.
10092 * solib-som.c (som_solib_create_inferior_hook): Update.
10093 (som_solib_desire_dynamic_linker_symbols): Update.
10094 (link_map_start): Update.
10095 * solib-spu.c (spu_enable_break): Update.
10096 (ocl_enable_break): Update.
10097 * solib-svr4.c (elf_locate_base): Update.
10098 (enable_break): Update.
10099 * spu-tdep.c (spu_get_overlay_table): Update.
10100 (spu_catch_start): Update.
10101 (flush_ea_cache): Update.
10102 * stabsread.c (define_symbol): Update.
10103 (scan_file_globals): Update.
10104 * stack.c (find_frame_funname): Update.
10105 (frame_info): Update.
10106 * symfile.c (simple_read_overlay_table): Update.
10107 (simple_overlay_update): Update.
10108 * symmisc.c (dump_msymbols): Update.
10109 * symtab.c (fixup_section): Update.
10110 (find_pc_sect_line): Update.
10111 (skip_prologue_sal): Update.
10112 (search_symbols): Update.
10113 (print_msymbol_info): Update.
10114 (rbreak_command): Update.
10115 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10116 (completion_list_objc_symbol): Update.
10117 (default_make_symbol_completion_list_break_on): Update.
10118 * tracepoint.c (scope_info): Update.
10119 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10120 (tui_get_begin_asm_address): Update.
10121 * valops.c (find_function_in_inferior): Update.
10122 * value.c (value_static_field): Update.
10123 (value_fn_field): Update.
10125 2014-02-26 Tom Tromey <tromey@redhat.com>
10127 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10128 bound minimal symbols. Move code that knows about minsym
10130 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10132 * minsyms.h (minimal_symbol_upper_bound): Declare.
10133 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10134 minimal_symbol_upper_bound.
10136 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10138 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10139 Use the type's name if its basic type does not have a tag.
10141 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10143 * dwarf2read.c (read_subrange_type): Add comment.
10145 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10147 * dwarf2read.c (update_enumeration_type_from_children): New
10148 function, mostly extracted from process_structure_scope.
10149 (read_enumeration_type): Call update_enumeration_type_from_children.
10150 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10151 and flag_flag_enum fields.
10153 2014-02-26 Pedro Alves <palves@redhat.com>
10155 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10156 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10157 to_xfer_partial method.
10159 2014-02-26 Pedro Alves <palves@redhat.com>
10161 * target.c (complete_target_initialization): Don't install
10162 default_xfer_partial as to_xfer_partial hook.
10163 (nomemory): Delete.
10164 (update_current_target): Don't INHERIT nor de_fault
10165 deprecated_xfer_memory. Delete de_fault macro.
10166 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10167 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10168 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10171 2014-02-26 Pedro Alves <palves@redhat.com>
10173 * go32-nat.c (my_write_child): New function.
10174 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10175 (go32_xfer_partial): New function.
10176 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10177 Instead install a to_xfer_partial hook.
10179 2014-02-26 Pedro Alves <palves@redhat.com>
10181 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10182 to_xfer_partial helper. Rewrite.
10183 (procfs_xfer_partial): New function.
10184 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10185 Install a to_xfer_partial hook.
10187 2014-02-26 Pedro Alves <palves@redhat.com>
10189 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10190 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10191 (m32r_xfer_partial): New function.
10192 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10193 Install a to_xfer_partial hook.
10195 2014-02-26 Pedro Alves <palves@redhat.com>
10197 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10199 (mips_xfer_partial): New function.
10200 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10201 hook. Install a to_xfer_partial hook.
10203 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10205 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10206 * gdbtypes.c (create_array_type_with_stride): New function,
10207 renaming create_array_type, but with an added parameter
10208 called "bit_stride".
10209 (create_array_type): Re-implement using
10210 create_array_type_with_stride.
10211 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10212 and DW_AT_bit_stride attributes.
10214 2014-02-26 Pedro Alves <palves@redhat.com>
10216 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10217 task-specific breakpoints.
10219 2014-02-25 Pedro Alves <palves@redhat.com>
10221 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10222 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10224 2014-02-25 Stan Shebs <stan@codesourcery.com>
10226 * defs.h: Annotate comments for Doxygen.
10228 2014-02-25 Tom Tromey <tromey@redhat.com>
10230 * target.h (target_ignore): Don't declare.
10231 * target.c (target_ignore): Remove.
10233 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10236 * auto-load.c (auto_load_objfile_script_1): Change filename to
10239 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10241 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10242 documentation. Adjust prototype to match the target_ops
10243 to_xfer_partial method. Adjust implementation accordingly.
10245 2014-02-25 Hui Zhu <hui@codesourcery.com>
10247 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10248 to_traceframe_info.
10250 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10252 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10253 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10254 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10255 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10256 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10257 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10258 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10259 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10261 (rl78_register_type): Use a data pointer type for SP and
10262 new pseudo registers mentioned above. Use a 16 bit integer
10263 type for all other register pairs.
10264 (rl78_register_name, rl78_g10_register_name): Update for
10265 new pseudo registers.
10266 (rl78_pseudo_register_read): Likewise.
10267 (rl78_pseudo_register_write): Likewise.
10268 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10269 to the newly added pseudo registers.
10271 2014-02-24 Doug Evans <dje@google.com>
10273 * value.c (record_latest_value): Fix comment.
10274 * printcmd.c (print_command_1): Remove code to handle -1 return from
10275 record_latest_value.
10277 2014-02-24 Pedro Alves <palves@redhat.com>
10279 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10280 deprecated_xfer_memory hook.
10281 (procfs_xfer_partial): Call procfs_xfer_memory instead
10282 of the deprecated_xfer_memory target hook.
10283 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10286 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10288 * windows-nat.c (windows_xfer_shared_libraries): Return
10289 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10290 requested object is TARGET_OBJECT_LIBRARIES.
10292 2014-02-24 Yao Qi <yao@codesourcery.com>
10294 * target.h (enum target_xfer_status)
10295 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10296 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10298 * corefile.c (memory_error_message): User updated.
10299 * exec.c (section_table_read_available_memory): Likewise.
10300 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10301 * target.c (target_xfer_status_to_string): Likewise.
10302 (raw_memory_xfer_partial): Likewise.
10303 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10304 * valops.c (read_value_memory): Likewise.
10305 * exec.h: Update comments.
10307 2014-02-24 Yao Qi <yao@codesourcery.com>
10309 * target.c (target_xfer_status_to_string): Rename argument err
10311 * target.h (target_xfer_status_to_string): Update declaration.
10312 Replace target_xfer_error_to_string with
10313 target_xfer_status_to_string in comment.
10315 2014-02-24 Yao Qi <yao@codesourcery.com>
10317 * mips-linux-nat.c (super_close): Update its type.
10318 (mips_linux_close): Pass 'self' to super_close.
10320 2014-02-24 Yao Qi <yao@codesourcery.com>
10322 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10323 * corefile.c (read_memory): Adjusted.
10324 * target.c (target_write_with_progress): Adjusted.
10326 2014-02-23 Yao Qi <yao@codesourcery.com>
10328 Revert two patches:
10330 2013-10-25 Yao Qi <yao@codesourcery.com>
10332 * remote.c (remote_traceframe_info): Return early if
10333 traceframe is not selected.
10335 2013-07-19 Yao Qi <yao@codesourcery.com>
10337 * target.c (update_current_target): Change the default action
10338 of 'to_traceframe_info' from tcomplain to return_zero.
10339 * target.h (struct target_ops) <to_traceframe_info>: Add more
10342 2014-02-23 Yao Qi <yao@codesourcery.com>
10344 * valops.c (read_value_memory): Rewrite it. Call
10345 target_xfer_partial in a loop.
10346 * exec.h (section_table_available_memory): Remove declaration.
10347 Move comments to ...
10348 * exec.c (section_table_available_memory): ... here. Make it
10351 2014-02-23 Yao Qi <yao@codesourcery.com>
10353 * exec.c (section_table_read_available_memory): New function.
10354 * exec.h (section_table_read_available_memory): Declare.
10355 * ctf.c (ctf_xfer_partial): Call
10356 section_table_read_available_memory.
10357 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10359 2014-02-23 Yao Qi <yao@codesourcery.com>
10361 * ctf.c (ctf_xfer_partial): Move code to ...
10362 * exec.c (exec_read_partial_read_only): ... it. New function.
10363 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10364 * tracefile.c: Include "exec.h".
10365 * exec.h (exec_read_partial_read_only): Declare.
10367 2014-02-23 Yao Qi <yao@codesourcery.com>
10369 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10370 (tfile_has_memory): Remove.
10371 (init_tfile_ops): Don't set fields to_has_all_memory and
10372 to_has_memory of tfile_ops.
10373 * tracefile.c (tracefile_has_all_memory): New function.
10374 (tracefile_has_memory): New function.
10375 (init_tracefile_ops): Initialize fields to_has_all_memory and
10376 to_has_memory of 'ops'.
10378 2014-02-23 Yao Qi <yao@codesourcery.com>
10380 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10381 (ctf_thread_alive, ctf_get_trace_status): Remove.
10382 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10383 init_tracefile_ops.
10384 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10385 (tfile_has_stack, tfile_has_registers): Remove.
10386 (tfile_thread_alive): Remove.
10387 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10388 init_tracefile_ops.
10389 * tracefile.c (tracefile_has_stack): New function.
10390 (tracefile_has_registers): New function.
10391 (tracefile_thread_alive): New function.
10392 (tracefile_get_trace_status): New function.
10393 (init_tracefile_ops): New function.
10394 * tracefile.h (init_tracefile_ops): Declare.
10396 2014-02-23 Yao Qi <yao@codesourcery.com>
10398 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10399 (O_LARGEFILE): Likewise.
10400 (tfile_ops): Likewise.
10401 (TRACE_HEADER_SIZE): Likewise.
10402 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10403 (cur_data_size): Likewise.
10404 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10405 (tfile_close, tfile_files_info): Likewise.
10406 (tfile_get_trace_status): Likewise.
10407 (tfile_get_tracepoint_status): Likewise.
10408 (tfile_get_traceframe_address): Likewise.
10409 (tfile_trace_find, match_blocktype): Likewise.
10410 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10411 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10412 (tfile_get_trace_state_variable_value): Likewise.
10413 (tfile_has_all_memory, tfile_has_memory): Likewise.
10414 (tfile_has_stack, tfile_has_registers): Likewise.
10415 (tfile_thread_alive, build_traceframe_info): Likewise.
10416 (tfile_traceframe_info, init_tfile_ops): Likewise.
10417 (_initialize_tracepoint): Don't call init_tfile_ops
10418 and add_target_with_completer.
10419 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10420 exec.h, completer.h and filenames.h.
10421 (_initialize_tracefile_tfile): New function.
10423 2014-02-23 Yao Qi <yao@codesourcery.com>
10425 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10427 (HFILES_NO_SRCDIR): Add tracefile.h.
10428 * ctf.c: Include "tracefile.h".
10429 * tracefile.h: New file.
10430 * tracefile.c: New file
10431 * tracefile-tfile.c: New file.
10432 * tracepoint.c: Include "tracefile.h".
10433 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10434 (stop_reason_names): Add const.
10435 (trace_file_writer_xfree): Move it to tracefile.c.
10436 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10437 (trace_save_ctf): Likewise.
10438 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10439 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10440 (tfile_write_header, tfile_write_regblock_type): Likewise.
10441 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10442 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10443 (tfile_write_raw_data, tfile_end): Likewise.
10444 (tfile_trace_file_writer_new): Likewise.
10445 (free_uploaded_tp): Make it extern.
10446 (free_uploaded_tsv): Make it extern.
10447 (_initialize_tracepoint): Move code to register command 'tsave'
10449 * tracepoint.h (stop_reason_names): Declare.
10450 (struct trace_frame_write_ops): Move it to tracefile.h.
10451 (struct trace_file_write_ops): Likewise.
10452 (struct trace_file_writer): Likewise.
10453 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10455 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10458 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10460 (get_cores_used_by_process): New parameter num_cores, use it.
10461 (linux_xfer_osdata_processes): Pass num_cores to it.
10462 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10465 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10467 * target.c (memory_xfer_partial): Fix length arg in call to
10468 breakpoint_xfer_memory.
10470 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10473 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10474 number comes after the + or - signs. Adjust length of register
10475 name to be extracted.
10477 2014-02-20 Tom Tromey <tromey@redhat.com>
10479 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10480 (ada_varobj_ops): Mark "extern".
10482 2014-02-20 Tom Tromey <tromey@redhat.com>
10484 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10486 2014-02-20 Doug Evans <xdje42@gmail.com>
10488 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10489 All callers updated.
10490 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10491 All callers updated.
10492 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10493 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10495 2014-02-20 lin zuojian <manjian2006@gmail.com>
10496 Joel Brobecker <brobecker@adacore.com>
10497 Doug Evans <xdje42@gmail.com>
10500 * dwarf2read.c (struct die_info): New member in_process.
10501 (reset_die_in_process): New function.
10502 (process_die): Set it at the start, reset when returning.
10503 (inherit_abstract_dies): Only call process_die if origin_child_die
10504 not already being processed.
10506 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10508 * windows-nat.c (handle_unload_dll): Add function documentation.
10509 (do_initial_windows_stuff): Add comment explaining why we wait
10510 until after inferior initialization has finished before
10511 processing all DLLs.
10513 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10515 * windows-nat.c (get_module_name): Delete.
10516 (windows_get_exec_module_filename): New function, mostly
10517 inspired from get_module_name.
10518 (windows_pid_to_exec_file): Replace call to get_module_name
10519 by call to windows_get_exec_module_filename.
10521 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10523 * windows-nat.c (handle_load_dll): Rewrite this function's
10524 introductory comment. Remove code using get_module_name
10525 to get the DLL's name.
10527 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10529 * windows-nat.c (get_windows_debug_event): Ignore
10530 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10531 if windows_initialization_done == 0.
10532 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10533 Adjust implementation to always load all DLLs.
10534 (do_initial_windows_stuff): Replace call to
10535 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10537 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10539 * windows-nat.c (_initialize_windows_nat): Deprecate the
10540 "dll-symbols" command. Turn the "add-shared-symbol-files"
10541 and "assf" aliases into commands, and deprecate them as well.
10542 * NEWS: Add entry explaining that "dll-symbols" and its two
10543 aliases are now deprecated.
10545 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10547 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10548 new-line in debug string. Remove trailing spaces.
10550 2014-02-19 Stan Shebs <stan@codesourcery.com>
10552 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10554 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10556 * NEWS: Add entry for the new feature
10557 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10560 2014-02-19 Stan Shebs <stan@codesourcery.com>
10562 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10564 2014-02-19 Pedro Alves <palves@redhat.com>
10566 * common/ptid.h (struct ptid): Mention that process_stratum
10567 targets should prefer ptid.lwp.
10569 2014-02-19 Pedro Alves <palves@redhat.com>
10571 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10572 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10573 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10574 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10575 store remote thread ids rather than ptid.tid.
10576 (_initialize_remote): Adjust.
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10580 * target.c (target_get_unwinder): Rewrite.
10581 (target_get_tailcall_unwinder): Rewrite.
10582 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10583 (record_btrace_to_get_tailcall_unwinder): New function.
10584 (init_record_btrace_ops): Update.
10585 * target.h (struct target_ops) <to_get_unwinder,
10586 to_get_tailcall_unwinder>: Now function pointers. Use
10587 TARGET_DEFAULT_RETURN.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10593 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10597 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10599 * target-delegates.c: Rebuild.
10600 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10601 TARGET_DEFAULT_FUNC.
10602 * target.c (default_target_decr_pc_after_break): Rename from
10603 forward_target_decr_pc_after_break. Simplify.
10604 (target_decr_pc_after_break): Rely on delegation.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target.c (update_current_target): Do not INHERIT to_doc or
10609 to_magic. Do not de_fault to_open or to_close.
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10613 * gcore.h (objfile_find_memory_regions): Declare.
10614 * gcore.c (objfile_find_memory_regions): No longer static. Add
10616 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10617 * exec.c: Include gcore.h.
10618 (exec_set_find_memory_regions): Remove.
10619 (exec_find_memory_regions): Remove.
10620 (exec_do_find_memory_regions): Remove.
10621 (init_exec_ops): Update.
10622 * defs.h (exec_set_find_memory_regions): Remove.
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10626 * target-delegates.c: Rebuild.
10627 * target.h (struct target_ops) <to_extra_thread_info,
10628 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10629 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10630 not 0, in TARGET_DEFAULT_RETURN.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target.c (complete_target_initialization): Remove casts. Use
10635 return_zero_has_execution.
10636 (return_zero): Add "ignore" argument.
10637 (return_zero_has_execution): New function.
10638 (init_dummy_target): Remove casts. Use
10639 return_zero_has_execution.
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10643 * target.c (update_current_target): Update comments. Do not
10644 INHERIT to_stratum.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10650 * corelow.c (core_read_description): Delegate when needed.
10651 * remote.c (remote_read_description): Delegate when needed.
10652 * target-delegates.c: Rebuild.
10653 * target.c (target_read_description): Rewrite.
10654 * target.h (struct target_ops) <to_read_description>: Update
10655 comment. Use TARGET_DEFAULT_RETURN.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * target-delegates.c: Rebuild.
10660 * target.c (update_current_target): Don't inherit or default
10662 (find_default_run_target): Check against delegate_can_run.
10663 * target.h (struct target_ops) <to_can_run>: Use
10664 TARGET_DEFAULT_RETURN.
10666 2014-02-19 Tom Tromey <tromey@redhat.com>
10668 * target-delegates.c: Rebuild.
10669 * target.c (target_disconnect): Unconditionally delegate.
10670 * target.h (struct target_ops) <to_disconnect>: Use
10671 TARGET_DEFAULT_NORETURN.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * record.c (record_stop): Unconditionally delegate.
10676 * target-delegates.c: Rebuild.
10677 * target.c (target_stop_recording): Unconditionally delegate.
10678 * target.h (struct target_ops) <to_stop_recording>: Use
10679 TARGET_DEFAULT_IGNORE.
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target-delegates.c: Rebuild.
10684 * target.c (target_enable_btrace): Unconditionally delegate.
10685 * target.h (struct target_ops) <to_enable_btrace>: Use
10686 TARGET_DEFAULT_NORETURN.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (target_read_btrace): Unconditionally delegate.
10692 * target.h (struct target_ops) <to_read_btrace>: Use
10693 TARGET_DEFAULT_NORETURN.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target-delegates.c: Rebuild.
10698 * target.c (target_teardown_btrace): Unconditionally delegate.
10699 * target.h (struct target_ops) <to_teardown_btrace>: Use
10700 TARGET_DEFAULT_NORETURN.
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * target-delegates.c: Rebuild.
10705 * target.c (target_disable_btrace): Unconditionally delegate.
10706 * target.h (struct target_ops) <to_disable_btrace>: Use
10707 TARGET_DEFAULT_NORETURN.
10709 2014-02-19 Tom Tromey <tromey@redhat.com>
10711 * target-delegates.c: Rebuild.
10712 * target.c (default_search_memory): New function.
10713 (simple_search_memory): Update comment.
10714 (target_search_memory): Unconditionally delegate.
10715 * target.h (struct target_ops) <to_search_memory>: Use
10716 TARGET_DEFAULT_FUNC.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * auxv.c (default_auxv_parse): No longer static.
10721 (target_auxv_parse): Unconditionally delegate.
10722 * auxv.h (default_auxv_parse): Declare.
10723 * target-delegates.c: Rebuild.
10724 * target.c: Include auxv.h.
10725 * target.h (struct target_ops) <to_auxv_parse>: Use
10726 TARGET_DEFAULT_FUNC.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target-delegates.c: Rebuild.
10731 * target.c (target_memory_map): Unconditionally delegate.
10732 * target.h (struct target_ops) <to_memory_map>: Use
10733 TARGET_DEFAULT_RETURN.
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * target-delegates.c: Rebuild.
10738 * target.c (target_thread_alive): Unconditionally delegate.
10739 * target.h (struct target_ops) <to_thread_alive>: Use
10740 TARGET_DEFAULT_RETURN.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * target-delegates.c: Rebuild.
10745 * target.c (target_save_record): Unconditionally delegate.
10746 * target.h (struct target_ops) <to_save_record>: Use
10747 TARGET_DEFAULT_NORETURN.
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10751 * target-delegates.c: Rebuild.
10752 * target.c (target_delete_record): Unconditionally delegate.
10753 * target.h (struct target_ops) <to_delete_record>: Use
10754 TARGET_DEFAULT_NORETURN.
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10758 * target-delegates.c: Rebuild.
10759 * target.c (target_record_is_replaying): Unconditionally
10761 * target.h (struct target_ops) <to_record_is_replaying>: Use
10762 TARGET_DEFAULT_RETURN.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * target-delegates.c: Rebuild.
10767 * target.c (target_goto_record_begin): Unconditionally delegate.
10768 * target.h (struct target_ops) <to_goto_record_begin>: Use
10769 TARGET_DEFAULT_NORETURN.
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target-delegates.c: Rebuild.
10774 * target.c (target_goto_record_end): Unconditionally delegate.
10775 * target.h (struct target_ops) <to_goto_record_end>: Use
10776 TARGET_DEFAULT_NORETURN.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (target_goto_record): Unconditionally delegate.
10782 * target.h (struct target_ops) <to_goto_record>: Use
10783 TARGET_DEFAULT_NORETURN.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target-delegates.c: Rebuild.
10788 * target.c (target_insn_history): Unconditionally delegate.
10789 * target.h (struct target_ops) <to_insn_history>: Use
10790 TARGET_DEFAULT_NORETURN.
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target-delegates.c: Rebuild.
10795 * target.c (target_insn_history_from): Unconditionally delegate.
10796 * target.h (struct target_ops) <to_insn_history_from>: Use
10797 TARGET_DEFAULT_NORETURN.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (target_insn_history_range): Unconditionally delegate.
10803 * target.h (struct target_ops) <to_insn_history_range>: Use
10804 TARGET_DEFAULT_NORETURN.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target-delegates.c: Rebuild.
10809 * target.c (target_call_history): Unconditionally delegate.
10810 * target.h (struct target_ops) <to_call_history>: Use
10811 TARGET_DEFAULT_NORETURN.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target-delegates.c: Rebuild.
10816 * target.c (target_call_history_from): Unconditionally delegate.
10817 * target.h (struct target_ops) <to_call_history_from>: Use
10818 TARGET_DEFAULT_NORETURN.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * target-delegates.c: Rebuild.
10823 * target.c (target_call_history_range): Unconditionally delegate.
10824 * target.h (struct target_ops) <to_call_history_range>: Use
10825 TARGET_DEFAULT_NORETURN.
10827 2014-02-19 Tom Tromey <tromey@redhat.com>
10829 * target-delegates.c: Rebuild.
10830 * target.c (target_verify_memory): Unconditionally delegate.
10831 * target.h (struct target_ops) <to_verify_memory>: Use
10832 TARGET_DEFAULT_NORETURN.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * target-delegates.c: Rebuild.
10837 * target.c (target_core_of_thread): Unconditionally delegate.
10838 * target.h (struct target_ops) <to_core_of_thread>: Use
10839 TARGET_DEFAULT_RETURN.
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target-delegates.c: Rebuild.
10844 * target.c (target_flash_done): Unconditionally delegate.
10845 * target.h (struct target_ops) <to_flash_done>: Use
10846 TARGET_DEFAULT_NORETURN.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target-delegates.c: Rebuild.
10851 * target.c (target_flash_erase): Unconditionally delegate.
10852 * target.h (struct target_ops) <to_flash_erase>: Use
10853 TARGET_DEFAULT_NORETURN.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target-delegates.c: Rebuild.
10858 * target.c (target_get_section_table): Unconditionally delegate.
10859 * target.h (struct target_ops) <to_get_section_table>: Use
10860 TARGET_DEFAULT_RETURN.
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target-delegates.c: Rebuild.
10865 * target.c (target_pid_to_str): Unconditionally delegate.
10866 (init_dummy_target): Don't initialize to_pid_to_str.
10867 (default_pid_to_str): Rename from dummy_pid_to_str.
10868 * target.h (struct target_ops) <to_pid_to_str>: Use
10869 TARGET_DEFAULT_FUNC.
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10873 * target-delegates.c: Rebuild.
10874 * target.c (target_find_new_threads): Unconditionally delegate.
10875 * target.h (struct target_ops) <to_find_new_threads>: Use
10876 TARGET_DEFAULT_RETURN.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target-delegates.c: Rebuild.
10881 * target.c (target_program_signals): Unconditionally delegate.
10882 * target.h (struct target_ops) <to_program_signals>: Use
10883 TARGET_DEFAULT_IGNORE.
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target-delegates.c: Rebuild.
10888 * target.c (target_pass_signals): Unconditionally delegate.
10889 * target.h (struct target_ops) <to_pass_signals>: Use
10890 TARGET_DEFAULT_IGNORE.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target-delegates.c: Rebuild.
10895 * target.c (default_mourn_inferior): New function.
10896 (target_mourn_inferior): Unconditionally delegate.
10897 * target.h (struct target_ops) <to_mourn_inferior>: Use
10898 TARGET_DEFAULT_FUNC.
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target-delegates.c: Rebuild.
10903 * target.c (default_follow_fork): New function.
10904 (target_follow_fork): Unconditionally delegate.
10905 * target.h (struct target_ops) <to_follow_fork>: Use
10906 TARGET_DEFAULT_FUNC.
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target-delegates.c: Rebuild.
10911 * target.c (target_kill): Unconditionally delegate.
10912 * target.h (struct target_ops) <to_kill>: Use
10913 TARGET_DEFAULT_NORETURN.
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10917 * target-delegates.c: Rebuild.
10918 * target.c (target_masked_watch_num_registers): Unconditionally
10920 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10921 Use TARGET_DEFAULT_RETURN.
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target-delegates.c: Rebuild.
10926 * target.c (target_remove_mask_watchpoint): Unconditionally
10928 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10929 TARGET_DEFAULT_RETURN.
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10933 * target-delegates.c: Rebuild.
10934 * target.c (target_insert_mask_watchpoint): Unconditionally
10936 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10937 TARGET_DEFAULT_RETURN.
10939 2014-02-19 Tom Tromey <tromey@redhat.com>
10941 * target-delegates.c: Rebuild.
10942 * target.c (target_ranged_break_num_registers): Unconditionally
10944 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10945 Use TARGET_DEFAULT_RETURN.
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target-delegates.c: Rebuild.
10950 * target.c (target_fetch_registers): Unconditionally delegate.
10951 * target.h (struct target_ops) <to_fetch_registers>: Use
10952 TARGET_DEFAULT_NORETURN.
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10959 * target.h (struct target_ops) <to_stop>: Use
10960 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
10967 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
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
10974 to_supports_evaluation_of_breakpoint_conditions.
10975 * target.h (struct target_ops)
10976 <to_supports_evaluation_of_breakpoint_conditions>: Use
10977 TARGET_DEFAULT_RETURN.
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target-delegates.c: Rebuild.
10982 * target.c (update_current_target): Don't inherit or default
10983 to_augmented_libraries_svr4_read.
10984 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10985 Use TARGET_DEFAULT_RETURN.
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10989 * target-delegates.c: Rebuild.
10990 * target.c (update_current_target): Don't inherit or default
10992 * target.h (struct target_ops) <to_can_use_agent>: 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
11000 * target.h (struct target_ops) <to_use_agent>: Use
11001 TARGET_DEFAULT_NORETURN.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * target-delegates.c: Rebuild.
11006 * target.c (update_current_target): Don't inherit or default
11007 to_traceframe_info.
11008 (return_null): Remove.
11009 * target.h (struct target_ops) <to_traceframe_info>: Use
11010 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_static_tracepoint_markers_by_strid.
11017 * target.h (struct target_ops)
11018 <to_static_tracepoint_markers_by_strid>: Use
11019 TARGET_DEFAULT_NORETURN.
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * target-delegates.c: Rebuild.
11024 * target.c (update_current_target): Don't inherit or default
11025 to_static_tracepoint_marker_at.
11026 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11027 Use TARGET_DEFAULT_RETURN.
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11031 * target-delegates.c: Rebuild.
11032 * target.c (update_current_target): Don't inherit or default
11033 to_set_permissions.
11034 * target.h (struct target_ops) <to_set_permissions>: Use
11035 TARGET_DEFAULT_IGNORE.
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11039 * target-delegates.c: Rebuild.
11040 * target.c (update_current_target): Don't inherit or default
11041 to_get_tib_address.
11042 * target.h (struct target_ops) <to_get_tib_address>: Use
11043 TARGET_DEFAULT_NORETURN.
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11047 * target-delegates.c: Rebuild.
11048 * target.c (update_current_target): Don't inherit or default
11049 to_set_trace_notes.
11050 * target.h (struct target_ops) <to_set_trace_notes>: Use
11051 TARGET_DEFAULT_RETURN.
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11055 * target-delegates.c: Rebuild.
11056 * target.c (update_current_target): Don't initialize
11057 to_set_trace_buffer_size.
11058 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11059 TARGET_DEFAULT_IGNORE.
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11063 * target-delegates.c: Rebuild.
11064 * target.c (update_current_target): Don't inherit or default
11065 to_set_circular_trace_buffer.
11066 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11067 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
11074 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11075 TARGET_DEFAULT_IGNORE.
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_get_min_fast_tracepoint_insn_len.
11082 (return_minus_one): Remove.
11083 * target.h (struct target_ops)
11084 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11088 * target-delegates.c: Rebuild.
11089 * target.c (update_current_target): Don't inherit or default
11090 to_get_raw_trace_data.
11091 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11092 TARGET_DEFAULT_NORETURN.
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11096 * target-delegates.c: Rebuild.
11097 * target.c (update_current_target): Don't inherit or default
11098 to_upload_trace_state_variables.
11099 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11100 Use TARGET_DEFAULT_RETURN.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target-delegates.c: Rebuild.
11105 * target.c (update_current_target): Don't inherit or default
11106 to_upload_tracepoints.
11107 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11108 TARGET_DEFAULT_RETURN.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't inherit or default
11114 to_save_trace_data.
11115 * target.h (struct target_ops) <to_save_trace_data>: Use
11116 TARGET_DEFAULT_NORETURN.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11122 to_get_trace_state_variable_value.
11123 * target.h (struct target_ops)
11124 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11131 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11135 * target-delegates.c: Rebuild.
11136 * target.c (update_current_target): Don't inherit or default
11138 * target.h (struct target_ops) <to_trace_stop>: Use
11139 TARGET_DEFAULT_NORETURN.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target-delegates.c: Rebuild.
11144 * target.c (update_current_target): Don't inherit or default
11145 to_get_tracepoint_status.
11146 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11147 TARGET_DEFAULT_NORETURN.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target-delegates.c: Rebuild.
11152 * target.c (update_current_target): Don't inherit or default
11153 to_get_trace_status.
11154 * target.h (struct target_ops) <to_get_trace_status>: Use
11155 TARGET_DEFAULT_RETURN.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target-delegates.c: Rebuild.
11160 * target.c (update_current_target): Don't inherit or default
11162 * target.h (struct target_ops) <to_trace_start>: Use
11163 TARGET_DEFAULT_NORETURN.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target-delegates.c: Rebuild.
11168 * target.c (update_current_target): Don't inherit or default
11169 to_trace_set_readonly_regions.
11170 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11171 Use TARGET_DEFAULT_NORETURN.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target-delegates.c: Rebuild.
11176 * target.c (update_current_target): Don't inherit or default
11177 to_disable_tracepoint.
11178 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11179 TARGET_DEFAULT_NORETURN.
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11185 to_enable_tracepoint.
11186 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11187 TARGET_DEFAULT_NORETURN.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_download_trace_state_variable.
11194 * target.h (struct target_ops) <to_download_trace_state_variable>:
11195 Use TARGET_DEFAULT_NORETURN.
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11201 to_can_download_tracepoint.
11202 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11203 TARGET_DEFAULT_RETURN.
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * target-delegates.c: Rebuild.
11208 * target.c (update_current_target): Don't inherit or default
11209 to_download_tracepoint.
11210 * target.h (struct target_ops) <to_download_tracepoint>: Use
11211 TARGET_DEFAULT_NORETURN.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target-delegates.c: Rebuild.
11216 * target.c (update_current_target): Don't inherit or default
11218 * target.h (struct target_ops) <to_trace_init>: 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_string_tracing.
11226 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
11234 * target.h (struct target_ops)
11235 <to_supports_enable_disable_tracepoint>: Use
11236 TARGET_DEFAULT_RETURN.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target-delegates.c: Rebuild.
11241 * target.c (update_current_target): Don't inherit or default
11242 to_supports_multi_process.
11243 * target.h (struct target_ops) <to_supports_multi_process>: Use
11244 TARGET_DEFAULT_RETURN.
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11248 * target-delegates.c: Rebuild.
11249 * target.c (update_current_target): Don't inherit or default
11250 to_get_ada_task_ptid.
11251 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11252 TARGET_DEFAULT_FUNC.
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target-delegates.c: Rebuild.
11257 * target.c (update_current_target): Don't inherit or default
11258 to_thread_architecture.
11259 * target.h (struct target_ops) <to_thread_architecture>: Use
11260 TARGET_DEFAULT_FUNC.
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
11266 to_execution_direction.
11267 * target.h (struct target_ops) <to_execution_direction>: Use
11268 TARGET_DEFAULT_FUNC.
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11272 * target-delegates.c: Rebuild.
11273 * target.c (update_current_target): Don't inherit or default
11274 to_can_execute_reverse.
11275 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11276 TARGET_DEFAULT_RETURN.
11277 (target_can_execute_reverse): Unconditionally delegate.
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11281 * target-delegates.c: Rebuild.
11282 * target.c (update_current_target): Don't inherit or default
11284 (dummy_goto_bookmark): Remove.
11285 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11286 * target.h (struct target_ops) <to_goto_bookmark>: Use
11287 TARGET_DEFAULT_NORETURN.
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target-delegates.c: Rebuild.
11292 * target.c (update_current_target): Don't inherit or default
11294 (dummy_get_bookmark): Remove.
11295 (init_dummy_target): Don't inherit or default to_get_bookmark.
11296 * target.h (struct target_ops) <to_get_bookmark>: Use
11297 TARGET_DEFAULT_NORETURN
11299 2014-02-19 Tom Tromey <tromey@redhat.com>
11301 * target-delegates.c: Rebuild.
11302 * target.c (update_current_target): Don't inherit or default
11303 to_make_corefile_notes.
11304 (init_dummy_target): Don't initialize to_make_corefile_notes.
11305 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11306 TARGET_DEFAULT_FUNC.
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11310 * target-delegates.c: Rebuild.
11311 * target.c (update_current_target): Don't inherit or default
11312 to_find_memory_regions.
11313 (init_dummy_target): Don't initialize to_find_memory_regions.
11314 * target.h (struct target_ops) <to_find_memory_regions>: Use
11315 TARGET_DEFAULT_FUNC.
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.h (struct target_ops) <to_log_command>: Use
11323 TARGET_DEFAULT_IGNORE.
11324 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
11331 * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name): Unconditionally delegate.
11340 * target.h (struct target_ops) <to_thread_name>: Use
11341 TARGET_DEFAULT_RETURN.
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11345 * target-delegates.c: Rebuild.
11346 * target.c (update_current_target): Don't inherit or default
11347 to_extra_thread_info.
11348 * target.h (struct target_ops) <to_extra_thread_info>: 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
11356 * target.h (struct target_ops) <to_has_exited>: Use
11357 TARGET_DEFAULT_RETURN..
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_set_syscall_catchpoint.
11364 (return_one): Remove.
11365 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11366 TARGET_DEFAULT_RETURN.
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_insert_exec_catchpoint.
11373 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11374 TARGET_DEFAULT_RETURN.
11376 2014-01-08 Tom Tromey <tromey@redhat.com>
11378 * target-delegates.c: Rebuild.
11379 * target.c (update_current_target): Don't inherit or default
11380 to_insert_exec_catchpoint.
11381 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11382 TARGET_DEFAULT_RETURN.
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11386 * target-delegates.c: Rebuild.
11387 * target.c (update_current_target): Don't inherit or default
11388 to_remove_vfork_catchpoint.
11389 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11390 TARGET_DEFAULT_RETURN.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * target-delegates.c: Rebuild.
11395 * target.c (update_current_target): Don't inherit or default
11396 to_insert_vfork_catchpoint.
11397 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11398 TARGET_DEFAULT_RETURN.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target-delegates.c: Rebuild.
11403 * target.c (update_current_target): Don't inherit or default
11404 to_remove_fork_catchpoint.
11405 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11406 TARGET_DEFAULT_RETURN.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target-delegates.c: Rebuild.
11411 * target.c (update_current_target): Don't inherit or default
11412 to_insert_fork_catchpoint.
11413 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11414 TARGET_DEFAULT_RETURN.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_post_startup_inferior.
11421 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11422 TARGET_DEFAULT_IGNORE.
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11429 * target.h (struct target_ops) <to_load>: Use
11430 TARGET_DEFAULT_NORETURN.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11437 * target.h (struct target_ops) <to_terminal_info>: Use
11438 TARGET_DEFAULT_FUNC.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target-delegates.c: Rebuild.
11443 * target.c (update_current_target): Don't inherit or default
11444 to_terminal_save_ours.
11445 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11446 TARGET_DEFAULT_IGNORE.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11453 * target.h (struct target_ops) <to_terminal_ours>: Use
11454 TARGET_DEFAULT_IGNORE.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_terminal_ours_for_output.
11461 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11462 TARGET_DEFAULT_IGNORE.
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_terminal_inferior.
11469 * target.h (struct target_ops) <to_terminal_inferior>: Use
11470 TARGET_DEFAULT_IGNORE.
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11477 * target.h (struct target_ops) <to_terminal_init>: Use
11478 TARGET_DEFAULT_IGNORE.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11484 to_can_accel_watchpoint_condition.
11485 * target.h (struct target_ops)
11486 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_region_ok_for_hw_watchpoint.
11493 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11494 Use TARGET_DEFAULT_FUNC.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_watchpoint_addr_within_range.
11501 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11502 Use TARGET_DEFAULT_FUNC.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_remove_watchpoint.
11509 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11510 TARGET_DEFAULT_NORETURN.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_insert_watchpoint.
11517 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11518 TARGET_DEFAULT_RETURN.
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_remove_hw_breakpoint.
11525 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11526 TARGET_DEFAULT_RETURN.
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_insert_hw_breakpoint.
11533 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11534 TARGET_DEFAULT_RETURN.
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_can_use_hw_breakpoint.
11541 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11542 TARGET_DEFAULT_RETURN.
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11549 * target.h (struct target_ops) <to_files_info>: Use
11550 TARGET_DEFAULT_IGNORE.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11557 * target.h (struct target_ops) <to_store>: Use
11558 TARGET_DEFAULT_NORETURN.
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11565 * target.h (struct target_ops) <to_post_attach>: Use
11566 TARGET_DEFAULT_IGNORE.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11573 (default_rcmd): New function.
11574 (do_monitor_command): Unconditionally delegate.
11575 * target.h (struct target_ops) <to_rmcd>: Use
11576 TARGET_DEFAULT_FUNC.
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11580 * target-delegates.c: Rebuild.
11581 * target.c (init_dummy_target): Don't initialize to_attach.
11582 (target_attach): Unconditionally delegate.
11583 * target.h (struct target_ops) <to_attach>: Use
11584 TARGET_DEFAULT_FUNC.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target-delegates.c: Rebuild.
11589 * target.c (target_detach): Unconditionally delegate.
11590 (init_dummy_target): Don't initialize to_detach.
11591 * target.h (struct target_ops) <to_detach>: Use
11592 TARGET_DEFAULT_IGNORE.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11598 (target_augmented_libraries_svr4_read): Add argument.
11599 * target.c (update_current_target): Update.
11600 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target.h (struct target_ops) <to_call_history_range>: Add
11607 * target.c (target_call_history_range): Add argument.
11608 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11610 (record_btrace_call_history_from): Update.
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11614 * target.h (struct target_ops) <to_call_history_from>: Add
11616 * target.c (target_call_history_from): Add argument.
11617 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * target.h (struct target_ops) <to_call_history>: Add argument.
11623 * target.c (target_call_history): Add argument.
11624 * record-btrace.c (record_btrace_call_history): Add 'self'
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target.h (struct target_ops) <to_insn_history_range>: Add
11631 * target.c (target_insn_history_range): Add argument.
11632 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11634 (record_btrace_insn_history_from): Update.
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11638 * target.h (struct target_ops) <to_insn_history_from>: Add
11640 * target.c (target_insn_history_from): Add argument.
11641 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops) <to_insn_history>: Add argument.
11647 * target.c (target_insn_history): Add argument.
11648 * record-btrace.c (record_btrace_insn_history): Add 'self'
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11653 * target.h (struct target_ops) <to_goto_record>: Add argument.
11654 * target.c (target_goto_record): Add argument.
11655 * record-full.c (record_full_goto): Add 'self' argument.
11656 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11660 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11661 * target.c (target_goto_record_end): Add argument.
11662 * record-full.c (record_full_goto_end): Add 'self' argument.
11663 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_goto_record_begin>: Add
11669 * target.c (target_goto_record_begin): Add argument.
11670 * record-full.c (record_full_goto_begin): Add 'self' argument.
11671 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target.h (struct target_ops) <to_record_is_replaying>: Add
11678 * target.c (target_record_is_replaying): Add argument.
11679 * record-full.c (record_full_is_replaying): Add 'self' argument.
11680 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11682 (record_btrace_xfer_partial, record_btrace_store_registers)
11683 (record_btrace_prepare_to_store, record_btrace_resume)
11684 (record_btrace_wait, record_btrace_decr_pc_after_break)
11685 (record_btrace_find_new_threads, record_btrace_thread_alive):
11688 2014-02-19 Tom Tromey <tromey@redhat.com>
11690 * target.h (struct target_ops) <to_delete_record>: Add argument.
11691 * target.c (target_delete_record): Add argument.
11692 * record-full.c (record_full_delete): Add 'self' argument.
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11696 * target.h (struct target_ops) <to_save_record>: Add argument.
11697 * target.c (target_save_record): Add argument.
11698 * record-full.c (record_full_save): Add 'self' argument.
11699 (record_full_save): Add 'self' argument.
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target.h (struct target_ops) <to_info_record>: Add argument.
11704 * target.c (target_info_record): Add argument.
11705 * record.c (info_record_command): Add argument.
11706 * record-full.c (record_full_info): Add 'self' argument.
11707 * record-btrace.c (record_btrace_info): Add 'self' argument.
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11711 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11712 * target.c (target_stop_recording): Add argument.
11713 * record.c (record_stop): Add argument.
11714 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11720 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11721 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11723 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11724 (_initialize_amd64_linux_nat): Use it.
11725 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11726 (_initialize_i386_linux_nat): Use it.
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11730 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11731 * target.c (target_teardown_btrace): Add argument.
11732 * remote.c (remote_teardown_btrace): Add 'self' argument.
11733 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11735 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11741 * target.c (target_disable_btrace): Add argument.
11742 * remote.c (remote_disable_btrace): Add 'self' argument.
11743 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11745 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11748 2014-02-19 Tom Tromey <tromey@redhat.com>
11750 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11751 * target.c (target_enable_btrace): Add argument.
11752 * remote.c (remote_enable_btrace): Add 'self' argument.
11753 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11755 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11761 (target_can_use_agent): Add argument.
11762 * target.c (update_current_target): Update.
11763 * remote.c (remote_can_use_agent): Add 'self' argument.
11764 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target.h (struct target_ops) <to_use_agent>: Add argument.
11769 (target_use_agent): Add argument.
11770 * target.c (update_current_target): Update.
11771 * remote.c (remote_use_agent): Add 'self' argument.
11772 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11776 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11777 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11778 (target_traceframe_info): Add argument.
11779 * target.c (update_current_target): Update.
11780 * remote.c (remote_traceframe_info): Add 'self' argument.
11781 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11785 * target.h (target_static_tracepoint_markers_by_strid): Add
11787 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11789 * target.c (update_current_target): Update.
11790 * remote.c (struct target_ops)
11791 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11792 * linux-nat.c (struct target_ops)
11793 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11797 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11799 (target_static_tracepoint_marker_at): Add argument.
11800 * target.c (update_current_target): Update.
11801 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11806 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11807 (target_set_permissions): Add argument.
11808 * target.c (update_current_target): Update.
11809 * remote.c (remote_set_permissions): Add 'self' argument.
11810 (remote_start_remote): Update.
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11815 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11816 (target_get_tib_address): Add argument.
11817 * target.c (update_current_target): Update.
11818 * remote.c (remote_get_tib_address): Add 'self' argument.
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11822 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11823 (target_set_trace_notes): Add argument.
11824 * target.c (update_current_target): Update.
11825 * remote.c (remote_set_trace_notes): Add 'self' argument.
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11829 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11831 (target_set_trace_buffer_size): Add argument.
11832 * target.c (update_current_target): Update.
11833 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11839 (target_set_circular_trace_buffer): Add argument.
11840 * target.c (update_current_target): Update.
11841 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11846 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11848 (target_set_disconnected_tracing): Add argument.
11849 * target.c (update_current_target): Update.
11850 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11854 * target.h (struct target_ops)
11855 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11856 (target_get_min_fast_tracepoint_insn_len): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11865 (target_get_raw_trace_data): Add argument.
11866 * target.c (update_current_target): Update.
11867 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11873 (target_upload_trace_state_variables): Add argument.
11874 * target.c (update_current_target): Update.
11875 * remote.c (remote_upload_trace_state_variables): Add 'self'
11877 (remote_start_remote): Update.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11883 (target_upload_tracepoints): Add argument.
11884 * target.c (update_current_target): Update.
11885 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11886 (remote_start_remote): Update.
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11890 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11891 (target_save_trace_data): Add argument.
11892 * target.c (update_current_target): Update.
11893 * remote.c (remote_save_trace_data): Add 'self' argument.
11895 2014-02-19 Tom Tromey <tromey@redhat.com>
11897 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11899 * target.h (struct target_ops)
11900 <to_get_trace_state_variable_value>: Add argument.
11901 (target_get_trace_state_variable_value): Add argument.
11902 * target.c (update_current_target): Update.
11903 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11905 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11910 * target.h (struct target_ops) <to_trace_find>: Add argument.
11911 (target_trace_find): Add argument.
11912 * target.c (update_current_target): Update.
11913 * remote.c (remote_trace_find): Add 'self' argument.
11914 * ctf.c (ctf_trace_find): Add 'self' argument.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11919 (target_trace_stop): Add argument.
11920 * target.c (update_current_target): Update.
11921 * remote.c (remote_trace_stop): Add 'self' argument.
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11925 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11926 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11928 (target_get_tracepoint_status): Add argument.
11929 * target.c (update_current_target): Update.
11930 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11935 * target.h (struct target_ops) <to_get_trace_status>: Add
11937 (target_get_trace_status): Add argument.
11938 * target.c (update_current_target): Update.
11939 * remote.c (remote_get_trace_status): Add 'self' argument.
11940 (remote_start_remote, remote_can_download_tracepoint): Update.
11941 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target.h (struct target_ops) <to_trace_start>: Add argument.
11946 (target_trace_start): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_trace_start): Add 'self' argument.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11954 (target_trace_set_readonly_regions): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11963 (target_disable_tracepoint): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11971 (target_enable_tracepoint): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target.h (struct target_ops) <to_download_trace_state_variable>:
11979 (target_download_trace_state_variable): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_download_trace_state_variable): Add 'self'
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11986 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11988 (target_can_download_tracepoint): Add argument.
11989 * target.c (update_current_target): Update.
11990 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11994 * target.h (struct target_ops) <to_download_tracepoint>: Add
11996 (target_download_tracepoint): Add argument.
11997 * target.c (update_current_target): Update.
11998 * remote.c (remote_download_tracepoint): Add 'self' argument.
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12002 * target.h (struct target_ops) <to_trace_init>: Add argument.
12003 (target_trace_init): Add argument.
12004 * target.c (update_current_target): Update.
12005 * remote.c (remote_trace_init): Add 'self' argument.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12010 * target.c (target_fileio_readlink): Add argument.
12011 * remote.c (remote_hostio_readlink): Add 'self' argument.
12012 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12017 * target.c (target_fileio_unlink): Add argument.
12018 * remote.c (remote_hostio_unlink): Add 'self' argument.
12019 (remote_file_delete): Update.
12020 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12022 2014-02-19 Tom Tromey <tromey@redhat.com>
12024 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12025 * target.c (target_fileio_close): Add argument.
12026 * remote.c (remote_hostio_close): Add 'self' argument.
12027 (remote_hostio_close_cleanup): Update.
12028 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12030 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12035 * target.c (target_fileio_pread): Add argument.
12036 * remote.c (remote_hostio_pread): Add 'self' argument.
12037 (remote_bfd_iovec_pread, remote_file_get): Update.
12038 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12043 * target.c (target_fileio_pwrite): Add argument.
12044 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12045 (remote_file_put): Update.
12046 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12051 * target.c (target_fileio_open): Add argument.
12052 * remote.c (remote_hostio_open): Add 'self' argument.
12053 (remote_bfd_iovec_open): Add 'self' argument.
12054 (remote_file_put): Add 'self' argument.
12055 (remote_file_get): Add 'self' argument.
12056 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12058 2014-02-19 Tom Tromey <tromey@redhat.com>
12060 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12062 (target_can_run_breakpoint_commands): Add argument.
12063 * target.c (update_current_target): Update.
12064 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12066 (remote_insert_breakpoint): Add 'self' argument.
12067 (remote_insert_hw_breakpoint): Add 'self' argument.
12068 (remote_can_run_breakpoint_commands): Add 'self' argument.
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12072 * target.h (struct target_ops)
12073 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12074 (target_supports_evaluation_of_breakpoint_conditions): Add
12076 * target.c (update_current_target): Update.
12077 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12079 (remote_insert_breakpoint): Add 'self' argument.
12080 (remote_insert_hw_breakpoint): Add 'self' argument.
12081 (remote_supports_cond_breakpoints): Add 'self' argument.
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12085 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12087 (target_supports_string_tracing): Add argument.
12088 * target.c (update_current_target): Update.
12089 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12093 * target.h (struct target_ops)
12094 <to_supports_disable_randomization>: Add argument.
12095 * target.c (find_default_supports_disable_randomization): Add
12097 (target_supports_disable_randomization): Add argument.
12098 (find_default_supports_disable_randomization): Add 'self'
12100 * remote.c (extended_remote_supports_disable_randomization): Add
12102 (remote_supports_disable_randomization): Add 'self' argument.
12103 (extended_remote_create_inferior): Update.
12104 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12109 * target.h (struct target_ops)
12110 <to_supports_enable_disable_tracepoint>: Add argument.
12111 (target_supports_enable_disable_tracepoint): Add argument.
12112 * target.c (update_current_target): Update.
12113 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12116 2014-02-19 Tom Tromey <tromey@redhat.com>
12118 * target.h (struct target_ops) <to_supports_multi_process>: Add
12120 (target_supports_multi_process): Add argument.
12121 * target.c (update_current_target): Update.
12122 * remote.c (remote_supports_multi_process): Add 'self' argument.
12123 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12125 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12130 * target.h (struct target_ops) <to_execution_direction>: Add
12132 (target_execution_direction): Add argument.
12133 * target.c (default_execution_direction): Add 'self' argument.
12134 * record-full.c (record_full_execution_direction): Add 'self'
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12139 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12141 (target_can_execute_reverse): Add argument.
12142 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12143 * record-full.c (record_full_can_execute_reverse): Add 'self'
12145 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12150 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12151 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12153 (target_get_ada_task_ptid): Add argument.
12154 * target.c (update_current_target): Update.
12155 (default_get_ada_task_ptid): Add 'self' argument.
12156 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12157 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12158 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12160 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12162 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12164 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12166 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12167 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12170 2014-02-19 Tom Tromey <tromey@redhat.com>
12172 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12173 (target_goto_bookmark): Add argument.
12174 * target.c (dummy_goto_bookmark): Add 'self' argument.
12175 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12179 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12180 (target_get_bookmark): Add argument.
12181 * target.c (dummy_get_bookmark): Add 'self' argument.
12182 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12186 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12188 (target_make_corefile_notes): Add argument.
12189 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12190 * procfs.c (procfs_make_note_section): Add 'self' argument.
12191 (procfs_make_note_section): Add 'self' argument.
12192 (procfs_make_note_section): Add 'self' argument.
12193 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12195 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12196 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12197 * exec.c (exec_make_note_section): Add 'self' argument.
12198 (exec_make_note_section): Add 'self' argument.
12200 2014-02-19 Tom Tromey <tromey@redhat.com>
12202 * target.h (struct target_ops) <to_find_memory_regions>: Add
12204 (target_find_memory_regions): Add argument.
12205 * target.c (dummy_find_memory_regions): Add 'self' argument.
12206 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12207 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12208 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12209 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12210 * exec. (exec_do_find_memory_regions): New global.
12211 (exec_set_find_memory_regions): Rewrite.
12212 (exec_find_memory_regions): New function.
12213 (init_exec_ops): Use exec_find_memory_regions.
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12217 * target.h (struct target_ops) <to_supports_non_stop>: Add
12219 * target.c (find_default_supports_non_stop): Add argument.
12220 (target_supports_non_stop): Add argument.
12221 (find_default_supports_non_stop): Add 'self' argument.
12222 * remote.c (remote_supports_non_stop): Add 'self' argument.
12223 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * target.h (struct target_ops) <to_log_command>: Add argument.
12228 (target_log_command): Add argument.
12229 * serial.h (serial_log_command): Add 'self' argument.
12230 * serial.c (serial_log_command): Add 'self' argument.
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12234 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12235 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12237 (target_pid_to_exec_file): Add argument.
12238 * target.c (debug_to_pid_to_exec_file): Add argument.
12239 (update_current_target): Update.
12240 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12241 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12242 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12243 (linux_handle_extended_wait): Update.
12244 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12245 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12246 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12247 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12251 * target.h (struct target_ops) <to_rcmd>: Add argument.
12252 (target_rcmd): Add argument.
12253 * target.c (debug_to_rcmd): Add argument.
12254 (update_current_target, do_monitor_command): Update.
12255 * remote.c (remote_rcmd): Add 'self' argument.
12256 * monitor.c (monitor_rcmd): Add 'self' argument.
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12260 * windows-nat.c (windows_stop): Add 'self' argument.
12261 * target.h (struct target_ops) <to_stop>: Add argument.
12262 * target.c (target_stop): Add argument.
12263 (debug_to_stop): Add argument.
12264 (update_current_target): Update.
12265 * remote.c (remote_stop): Add 'self' argument.
12266 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12267 (gdbsim_cntrl_c): Update.
12268 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12269 * procfs.c (procfs_stop): Add 'self' argument.
12270 * nto-procfs.c (procfs_stop): Add 'self' argument.
12271 * monitor.c (monitor_stop): Add 'self' argument.
12272 (monitor_open): Update.
12273 * linux-nat.c (linux_nat_stop): Add argument.
12274 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12275 * gnu-nat.c (gnu_stop): Add 'self' argument.
12276 * darwin-nat.c (darwin_stop): Add 'self' argument.
12278 2014-02-19 Tom Tromey <tromey@redhat.com>
12280 * target.h (struct target_ops) <to_thread_name>: Add argument.
12281 * target.c (target_thread_name): Add argument.
12282 (update_current_target): Update.
12283 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12287 * target.h (struct target_ops) <to_extra_thread_info>: Add
12289 (target_extra_thread_info): Add argument.
12290 * target.c (update_current_target): Update.
12291 * remote.c (remote_threads_extra_info): Add 'self' argument.
12292 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12294 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12295 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12296 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12298 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12300 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12302 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target.h (struct target_ops) <to_program_signals>: Add argument.
12308 * target.c (target_program_signals): Add argument.
12309 * remote.c (remote_program_signals): Add 'self' argument.
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12313 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12314 * target.c (target_pass_signals): Add argument.
12315 * remote.c (remote_pass_signals): Add 'self' argument.
12316 (remote_start_remote): Update.
12317 * procfs.c (procfs_pass_signals): Add 'self' argument.
12318 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12319 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12320 (linux_nat_create_inferior, linux_nat_attach): Update.
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12324 * windows-nat.c (windows_can_run): Add 'self' argument.
12325 * target.h (struct target_ops) <to_can_run>: Add argument.
12326 (target_can_run): Add argument.
12327 * target.c (debug_to_can_run): Add argument.
12328 (update_current_target): Update.
12329 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12330 * inf-child.c (inf_child_can_run): Add 'self' argument.
12331 * go32-nat.c (go32_can_run): Add 'self' argument.
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12335 * target.h (struct target_ops) <to_has_exited>: Add argument.
12336 (target_has_exited): Add argument.
12337 * target.c (debug_to_has_exited): Add argument.
12338 (update_current_target): Update.
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12342 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12344 (target_set_syscall_catchpoint): Add argument.
12345 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12347 * target.c (update_current_target): Update.
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12351 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12353 (target_remove_exec_catchpoint): Add argument.
12354 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12355 (update_current_target): Update.
12356 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12363 (target_insert_exec_catchpoint): Add argument.
12364 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12365 (update_current_target): Update.
12366 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12371 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12373 (target_remove_vfork_catchpoint): Add argument.
12374 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12375 (update_current_target): Update.
12376 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12381 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12383 (target_insert_vfork_catchpoint): Add argument.
12384 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12385 (update_current_target): Update.
12386 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12391 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12393 (target_remove_fork_catchpoint): Add argument.
12394 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12395 (update_current_target): Update.
12396 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12401 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12403 (target_insert_fork_catchpoint): Add argument.
12404 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12405 (update_current_target): Update.
12406 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12411 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12413 (target_post_startup_inferior): Add argument.
12414 * target.c (debug_to_post_startup_inferior): Add argument.
12415 (update_current_target): Update.
12416 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12418 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12420 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12422 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12424 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12426 (super_post_startup_inferior): Likewise.
12427 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12429 (super_post_startup_inferior): Likewise.
12430 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12431 Add 'self' argument.
12432 (super_post_startup_inferior): Likewise.
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12436 * target.h (struct target_ops) <to_load>: Add argument.
12437 * target.c (target_load): Add argument.
12438 (debug_to_load): Add argument.
12439 (update_current_target): Update.
12440 * remote.c (remote_load): Add 'self' argument.
12441 * remote-sim.c (gdbsim_load): Add 'self' argument.
12442 * remote-mips.c (mips_load): Add 'self' argument.
12443 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12444 * monitor.c (monitor_load): Add 'self' argument.
12445 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12450 (target_terminal_info): Add argument.
12451 * target.c (debug_to_terminal_info): Add argument.
12452 (default_terminal_info): Likewise.
12453 * inflow.c (child_terminal_info): Add 'self' argument.
12454 * inferior.h (child_terminal_info): Add 'self' argument.
12455 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12457 2014-02-19 Tom Tromey <tromey@redhat.com>
12459 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12461 (target_terminal_save_ours): Add argument.
12462 * target.c (debug_to_terminal_save_ours): Add argument.
12463 (update_current_target): Update.
12464 * inflow.c (terminal_save_ours): Add 'self' argument.
12465 * inferior.h (terminal_save_ours): Add 'self' argument.
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12469 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12470 (target_terminal_ours): Add argument.
12471 * target.c (debug_to_terminal_ours): Add argument.
12472 (update_current_target): Update.
12473 * remote.c (remote_terminal_ours): Add 'self' argument.
12474 (remote_close): Update.
12475 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12476 * inflow.c (terminal_ours): Add 'self' argument.
12477 * inferior.h (terminal_ours): Add 'self' argument.
12478 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12480 2014-02-19 Pedro Alves <palves@redhat.com>
12481 Tom Tromey <tromey@redhat.com>
12483 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12485 (target_terminal_ours_for_output): Add argument.
12486 * target.c (debug_to_terminal_ours_for_output): Add argument.
12487 (update_current_target): Update.
12488 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12489 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12490 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12492 2014-02-19 Tom Tromey <tromey@redhat.com>
12494 * target.h (struct target_ops) <to_terminal_inferior>: Add
12496 * target.c (target_terminal_inferior): Add argument.
12497 (update_current_target): Update.
12498 * remote.c (remote_terminal_inferior): Add 'self' argument.
12499 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12500 * inflow.c (terminal_inferior): Add 'self' argument.
12501 * inferior.h (terminal_inferior): Add 'self' argument.
12502 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12503 (go32_terminal_inferior): Add 'self' argument.
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12507 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12508 (target_terminal_init): Add argument.
12509 * target.c (debug_to_terminal_init): Add argument.
12510 (update_current_target): Update.
12511 * inflow.c (terminal_init_inferior): Add 'self' argument.
12512 * inferior.h (terminal_init_inferior): Add 'self' argument.
12513 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12514 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12516 2014-02-19 Tom Tromey <tromey@redhat.com>
12518 * target.h (struct target_ops)
12519 <to_can_accel_watchpoint_condition>: Add argument.
12520 (target_can_accel_watchpoint_condition): Add argument.
12521 * target.c (debug_to_can_accel_watchpoint_condition): Add
12523 (update_current_target): Update.
12524 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12529 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12531 (target_region_ok_for_hw_watchpoint): Add argument.
12532 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12533 (default_region_ok_for_hw_watchpoint): Add argument.
12534 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12535 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12537 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12539 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12541 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12543 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12545 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12547 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12548 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12550 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12551 Add 'self' argument.
12553 2014-02-19 Tom Tromey <tromey@redhat.com>
12555 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12557 (target_insert_watchpoint): Add argument.
12558 * target.c (debug_to_insert_watchpoint): Add argument.
12559 (update_current_target): Update.
12560 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12561 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12562 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12563 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12564 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12565 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12567 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12568 (procfs_insert_hw_watchpoint): Add 'self' argument.
12569 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12571 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12573 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12575 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12576 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12578 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12581 2014-02-19 Tom Tromey <tromey@redhat.com>
12583 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12585 (target_remove_watchpoint): Add argument.
12586 * target.c (debug_to_remove_watchpoint): Add argument.
12587 (update_current_target): Update.
12588 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12589 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12590 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12591 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12592 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12593 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12595 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12596 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12598 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12600 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12602 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12603 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12605 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12612 (target_remove_hw_breakpoint): Add argument.
12613 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12614 (update_current_target): Update.
12615 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12616 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12618 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12619 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12621 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12628 (target_insert_hw_breakpoint): Add argument.
12629 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12630 (update_current_target): Update.
12631 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12632 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12634 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12635 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12636 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12638 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12641 2014-02-19 Tom Tromey <tromey@redhat.com>
12643 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12645 (target_can_use_hardware_watchpoint): Add argument.
12646 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12647 (update_current_target): Update.
12648 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12650 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12652 * remote.c (remote_check_watch_resources): Add 'self' argument.
12653 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12654 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12656 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12657 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12659 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12661 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12663 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12665 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12667 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12669 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12670 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12672 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12677 * target.h (struct target_ops) <to_post_attach>: Add argument.
12678 (target_post_attach): Add argument.
12679 * target.c (debug_to_post_attach): Add argument.
12680 (update_current_target): Update.
12681 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12682 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12683 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12684 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12685 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12687 2014-02-19 Tom Tromey <tromey@redhat.com>
12689 * windows-nat.c (windows_close): Add 'self' argument.
12690 * tracepoint.c (tfile_close): Add 'self' argument.
12691 * target.h (struct target_ops) <to_close>: Add argument.
12692 * target.c (target_close): Add argument.
12693 (update_current_target): Update.
12694 * remote.c (remote_close): Add 'self' argument.
12695 * remote-sim.c (gdbsim_close): Add 'self' argument.
12696 * remote-mips.c (mips_close): Add 'self' argument.
12697 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12698 * record-full.c (record_full_close): Add 'self' argument.
12699 * record-btrace.c (record_btrace_close): Add 'self' argument.
12700 * monitor.h (monitor_close): Add 'self' argument.
12701 * monitor.c (monitor_close): Add 'self' argument.
12702 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12703 * linux-nat.c (linux_nat_close): Add argument.
12704 * go32-nat.c (go32_close): Add 'self' argument.
12705 * exec.c (exec_close_1): Add 'self' argument.
12706 * ctf.c (ctf_close): Add 'self' argument.
12707 * corelow.c (core_close): Add 'self' argument.
12708 (core_close_cleanup): Update.
12709 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12710 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * remote.c (remote_load): New function.
12715 (init_remote_ops): Use it.
12717 2014-02-19 Tom Tromey <tromey@redhat.com>
12719 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12721 * common/linux-btrace.h (linux_supports_btrace): Update.
12722 * remote.c (remote_supports_btrace): Add "self" argument.
12723 * target-delegates.c: Rebuild.
12724 * target.c (target_supports_btrace): Remove.
12725 * target.h (struct target_ops) <to_supports_btrace>: Add
12726 target_ops argument.
12727 (target_supports_btrace): New define.
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12731 * record-full.c (record_full_beneath_to_resume_ops)
12732 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12733 (record_full_beneath_to_wait)
12734 (record_full_beneath_to_store_registers_ops)
12735 (record_full_beneath_to_store_registers)
12736 (record_full_beneath_to_xfer_partial_ops)
12737 (record_full_beneath_to_xfer_partial)
12738 (record_full_beneath_to_insert_breakpoint_ops)
12739 (record_full_beneath_to_insert_breakpoint)
12740 (record_full_beneath_to_remove_breakpoint_ops)
12741 (record_full_beneath_to_remove_breakpoint)
12742 (record_full_beneath_to_stopped_by_watchpoint)
12743 (record_full_beneath_to_stopped_data_address)
12744 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12745 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12746 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12747 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12748 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12749 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12750 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12751 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12752 (record_full_resume, record_full_wait_1)
12753 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12754 (record_full_store_registers, record_full_xfer_partial)
12755 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12756 (record_full_async, record_full_core_xfer_partial): Use target
12758 * target-delegates.c: Rebuild.
12759 * target.c (current_xfer_partial): Remove.
12760 (update_current_target): Do not INHERIT or de_fault
12761 to_insert_breakpoint, to_remove_breakpoint,
12762 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12763 to_is_async_p, to_async. Do not set to_xfer_partial field.
12764 (default_xfer_partial): Simplify.
12765 (current_xfer_partial): Remove.
12766 (target_wait, target_resume): Simplify.
12767 (find_default_can_async_p, find_default_is_async_p): Update.
12768 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12769 to_xfer_partial, to_stopped_by_watchpoint,
12770 to_stopped_data_address.
12771 (target_store_registers): Simplify.
12772 (forward_target_remove_breakpoint)
12773 (forward_target_insert_breakpoint): Remove.
12774 (target_remove_breakpoint, target_insert_breakpoint)
12775 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12776 * target.h (struct target_ops) <to_resume, to_wait,
12777 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12778 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12779 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12781 (forward_target_remove_breakpoint)
12782 (forward_target_insert_breakpoint): Remove.
12783 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12785 (record_btrace_insert_breakpoint): Delegate directly.
12787 2014-02-19 Tom Tromey <tromey@redhat.com>
12790 * target-delegates.c: New file.
12791 * target.c: Include target-delegates.c.
12792 (init_dummy_target): Call install_dummy_methods.
12793 (complete_target_initialization): Call install_delegators.
12794 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12795 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12796 * make-target-delegates: New file.
12798 2014-02-19 Tom Tromey <tromey@redhat.com>
12800 * record.c (find_record_target): Use find_target_at.
12801 * target.c (find_target_at): New function.
12802 * target.h (find_target_at): Declare.
12804 2014-02-19 Tom Tromey <tromey@redhat.com>
12806 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12807 Add 'ops' argument.
12808 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12810 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12811 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12813 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12815 * linux-nat.c (save_sigtrap): Update.
12816 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12817 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12818 (linux_nat_close): Update.
12819 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12821 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12823 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12824 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12825 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12826 (tmp_to_async): Add 'ops' argument.
12827 (record_full_stopped_by_watchpoint, record_full_async)
12828 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12830 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12831 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12832 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12833 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12834 (remote_is_async_p, remote_async): Add 'ops' argument.
12835 (remote_stopped_data_address): Update.
12836 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12837 * target.c (update_current_target)
12838 (find_default_can_async_p, find_default_is_async_p): Update.
12839 (init_dummy_target): Update.
12840 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12841 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12842 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12843 (target_can_async_p, target_is_async_p, target_async)
12844 (target_stopped_by_watchpoint): Update.
12846 2014-02-19 Yao Qi <yao@codesourcery.com>
12849 * gdbarch.sh: Remove startup_gdbarch.
12850 * gdbarch.c: Regenerated.
12851 * gdbarch.h: Likewise.
12853 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12855 * rl78-tdep.c (rl78_g10_register_name): New function.
12856 (rl78_return_value): Add g10 support.
12857 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12860 2014-02-17 Doug Evans <xdje42@gmail.com>
12862 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12863 (SUBDIR_GUILE_SRCS): Ditto.
12864 (scm-gsmob.o): Ditto.
12866 2014-02-17 Yao Qi <yao@codesourcery.com>
12868 * gnu-nat.c (ILL_RPC): Declare defined function.
12870 2014-02-17 Yao Qi <yao@codesourcery.com>
12872 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12873 mach_msg_type_number_t.
12874 (gnu_write_inferior): Likewise.
12876 2014-02-17 Yao Qi <yao@codesourcery.com>
12878 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12880 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12881 (inf_validate_procs, inf_signal): Likewise.
12882 (S_exception_raise_request): Likewise.
12883 (do_mach_notify_dead_name): Likewise.
12884 (steal_exc_port): Likewise.
12885 (gnu_read_inferior): Change 'copy_count''s type to
12886 mach_msg_type_number_t.
12887 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12890 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12892 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12893 flag. Adjust all users; in particular...
12894 (gnu_wait): ..., don't decrement its value in here...
12895 (gnu_create_inferior): ..., and instead set the flag in here,
12896 around the startup_inferior call, and call that one with
12897 START_INFERIOR_TRAPS_EXPECTED.
12899 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12900 (ILL_RPC): ... new macro.
12901 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12902 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12903 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12904 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12905 functions with ILL_RPC macro.
12906 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12907 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12908 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12909 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12910 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12911 (S_proc_getlogin_reply, S_proc_getsid_reply)
12912 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12913 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12914 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12915 (S_proc_getnports_reply, S_proc_is_important_reply)
12916 (S_proc_get_code_reply): New stub functions, generated with
12919 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12920 collected the type check structures.
12922 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12924 2014-02-14 Doug Evans <dje@google.com>
12926 * target.c (target_write_partial): Fix result type.
12928 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12930 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12931 the proper offsets to access fpregset_t.
12933 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12935 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12936 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12937 * h8300-tdep.c (setmachinelist): Remove global.
12938 * hppa-tdep.c (hppa_sigtramp): Remove global.
12939 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12940 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12941 * ravenscar-thread.c (update_target_observer): Remove global.
12942 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12944 2014-02-12 Tom Tromey <tromey@redhat.com>
12946 * common/rsp-low.c: Update comments.
12947 * common/rsp-low.h: Update comments.
12949 2014-02-12 Tom Tromey <tromey@redhat.com>
12951 * common/rsp-low.c (convert_ascii_to_int): Remove.
12952 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12954 2014-02-12 Tom Tromey <tromey@redhat.com>
12956 * common/rsp-low.h (unhexify): Don't declare.
12957 * common/rsp-low.c (unhexify): Remove.
12959 2014-02-12 Tom Tromey <tromey@redhat.com>
12961 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12962 * common/rsp-low.c (convert_int_to_ascii): Remove.
12964 2014-02-12 Tom Tromey <tromey@redhat.com>
12966 * common/rsp-low.h (hexify): Don't declare.
12967 * common/rsp-low.c (hexify): Remove.
12969 2014-02-12 Tom Tromey <tromey@redhat.com>
12971 * common/rsp-low.c (hexify): Never take strlen of argument.
12973 2014-02-12 Tom Tromey <tromey@redhat.com>
12975 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12976 * remote.c (extended_remote_run, remote_rcmd)
12977 (remote_download_trace_state_variable, remote_save_trace_data)
12978 (remote_set_trace_notes): Update.
12979 * tracepoint.c (encode_source_string, tfile_write_status)
12980 (tfile_write_uploaded_tsv): Update.
12982 2014-02-12 Tom Tromey <tromey@redhat.com>
12984 * tracepoint.c: Include rsp-low.h.
12985 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12986 * remote.c: Include rsp-low.h.
12987 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12988 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12989 (remote_unescape_input): Move to common/rsp-low.c.
12990 * common/rsp-low.h: New file.
12991 * common/rsp-low.c: New file.
12992 * Makefile.in (SFILES): Add common/rsp-low.c.
12993 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12994 (COMMON_OBS): Add rsp-low.o.
12995 (rsp-low.o): New target.
12997 2014-02-12 Tom Tromey <tromey@redhat.com>
12999 * utils.h: Include print-utils.h.
13000 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13001 (int_string, core_addr_to_string, core_addr_to_string_nz)
13002 (hex_string, hex_string_custom): Don't declare.
13003 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13004 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13005 (hex_string_custom, int_string, core_addr_to_string)
13006 (core_addr_to_string_nz, host_address_to_string): Move to
13007 common/print-utils.c.
13008 * common/print-utils.h: New file.
13009 * common/print-utils.c: New file
13010 * Makefile.in (SFILES): Add common/print-utils.c.
13011 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13012 (COMMON_OBS): Add print-utils.o.
13013 (print-utils.o): New target.
13015 2014-02-12 Tom Tromey <tromey@redhat.com>
13017 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13019 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13021 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13023 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13025 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13026 if a PT_IO ptrace request returns sucessfully but indicates that 0
13027 bytes were transferred.
13029 2014-02-12 Pedro Alves <palves@redhat.com>
13030 Kevin Buettner <kevinb@redhat.com>
13032 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13033 TYPE_INSTANCE_FLAG_CODE_SPACE.
13035 2014-02-12 Pedro Alves <palves@redhat.com>
13037 * h8300-tdep.c (pseudo_from_raw_register)
13038 (raw_from_pseudo_register): New functions.
13039 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13042 2014-02-12 Pedro Alves <palves@redhat.com>
13044 * h8300-tdep.c (h8300_register_sim_regno): New function.
13045 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13046 gdbarch_register_sim_regno hook.
13048 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13050 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13052 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13054 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13056 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13058 * obsd-tdep.h (obsd_init_abi): New prototype.
13059 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13060 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13061 (obsd_init_abi): New functions.
13062 * i386obsd-tdep.c: Include "obsd-tdep.h".
13063 (i386obsd_init_abi): Call obsd_init_abi.
13064 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13065 (amd64obsd_init_abi): Call obsd_init_abi.
13066 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13067 obsd-tdep.c to gdb_target_obs.
13069 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13071 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13072 double float arguments to 16-byte in the argument slots.
13074 2014-02-11 Doug Evans <xdje42@gmail.com>
13076 * configure.ac: Don't crash if pkg-config is not found and guile
13077 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13079 * configure: Regenerate.
13081 2014-02-11 Yao Qi <yao@codesourcery.com>
13083 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13084 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13085 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13086 * gnu-nat.c (gnu_xfer_memory): Likewise.
13087 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13088 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13089 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13090 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13092 2014-02-11 Yao Qi <yao@codesourcery.com>
13094 * target.h (enum target_xfer_error): Rename to ...
13095 (enum target_xfer_status): ... it. New. All users updated.
13096 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13098 (TARGET_XFER_STATUS_ERROR_P): New macro.
13099 (target_xfer_error_to_string): Remove declaration.
13100 (target_xfer_status_to_string): Declare.
13101 (target_xfer_partial_ftype): Adjust it.
13102 (struct target_ops) <to_xfer_partial>: Return
13103 target_xfer_status. Add argument xfered_len. Update
13105 * target.c (target_xfer_error_to_string): Rename to ...
13106 (target_xfer_status_to_string): ... it. New. All callers
13108 (target_read_live_memory): Likewise. Call target_xfer_partial
13109 instead of target_read.
13110 (memory_xfer_live_readonly_partial): Return
13111 target_xfer_status. Add argument xfered_len.
13112 (raw_memory_xfer_partial): Likewise.
13113 (memory_xfer_partial_1): Likewise.
13114 (memory_xfer_partial): Likewise.
13115 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13116 properly. Update debug message.
13117 (default_xfer_partial, current_xfer_partial): Likewise.
13118 (target_write_partial): Likewise.
13119 (target_read_partial): Likewise. All callers updated.
13120 (read_whatever_is_readable): Likewise.
13121 (target_write_with_progress): Likewise.
13122 (target_read_alloc_1): Likewise.
13124 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13125 * auxv.c (procfs_xfer_auxv): Likewise.
13126 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13127 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13128 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13129 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13130 * corefile.c (read_memory): Adjust.
13131 * corelow.c (core_xfer_partial): Likewise.
13132 * ctf.c (ctf_xfer_partial): Likewise.
13133 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13135 (darwin_xfer_partial): Likewise.
13136 * exec.c (section_table_xfer_memory_partial): Likewise. All
13138 (exec_xfer_partial): Likewise.
13139 * exec.h (section_table_xfer_memory_partial): Update
13141 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13143 (gnu_xfer_partial): Likewise.
13144 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13145 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13146 (ia64_hpux_xfer_solib_got): Likewise.
13147 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13148 type of 'partial_len' to ULONGEST.
13149 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13150 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13151 (linux_nat_xfer_partial): Likewise.
13152 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13153 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13154 * monitor.c (monitor_xfer_memory): Likewise.
13155 (monitor_xfer_partial): Likewise.
13156 * procfs.c (procfs_xfer_partial): Likewise.
13157 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13158 * record-full.c (record_full_xfer_partial): Likewise.
13159 (record_full_core_xfer_partial): Likewise.
13160 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13161 (gdbsim_xfer_partial): Likewise.
13162 * remote.c (remote_write_bytes_aux): Likewise. All callers
13164 (remote_write_bytes, remote_read_bytes): Likewise. All
13166 (remote_flash_erase): Likewise. All callers updated.
13167 (remote_write_qxfer): Likewise. All callers updated.
13168 (remote_read_qxfer): Likewise. All callers updated.
13169 (remote_xfer_partial): Likewise.
13170 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13171 (rs6000_xfer_shared_libraries): Likewise.
13172 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13173 (sol_thread_xfer_partial): Likewise.
13174 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13175 (sparc_xfer_partial): Likewise.
13176 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13178 (spu_xfer_partial): Likewise.
13179 * spu-multiarch.c (spu_xfer_partial): Likewise.
13180 * tracepoint.c (tfile_xfer_partial): Likewise.
13181 * windows-nat.c (windows_xfer_memory): Likewise.
13182 (windows_xfer_shared_libraries): Likewise.
13183 (windows_xfer_partial): Likewise.
13184 * valprint.c: Replace 'target_xfer_error' with
13185 'target_xfer_status' in comments.
13187 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13189 Checked in by Joel Brobecker <brobecker@adacore.com>.
13190 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13192 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13194 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13195 function parameters.
13197 2014-02-10 Will Newton <will.newton@linaro.org>
13199 * elfread.c (elf_rel_plt_read): Look for a .got section if
13200 looking up .got.plt fails.
13201 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13202 on address passed to elf_gnu_ifunc_record_cache.
13203 (elf_gnu_ifunc_resolve_addr): Likewise.
13204 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13206 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13208 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13209 (X_RETTURN): New macro.
13210 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13212 * sparc64-tdep.c (sparc64_init_abi): Hook
13213 sparc_in_function_epilogue_p.
13215 2014-02-10 Gary Benson <gbenson@redhat.com>
13217 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13218 Rename name_matcher to symbol_matcher.
13220 2014-02-10 Gary Benson <gbenson@redhat.com>
13222 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13223 Use expand_symtabs_file_matcher_ftype and
13224 expand_symtabs_symbol_matcher_ftype.
13226 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13228 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13229 (struct ada_symbol_cache): New.
13230 (ada_free_symbol_cache): Forward declare.
13231 (struct ada_pspace_data): New.
13232 (ada_pspace_data_handle): New static global.
13233 (get_ada_pspace_data, ada_pspace_data_cleanup)
13234 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13235 (cache_space, cache): Delete, now folded inside struct
13237 (ada_get_symbol_cache): New function.
13238 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13240 (_initialize_ada_language): Remove initialization of cache_space.
13241 Move call to observer_attach_inferior_exit up, grouping it
13242 with the other observer registrations inside this function.
13243 Rename command to be more general. Add call to
13244 register_program_space_data_with_cleanup.
13246 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13248 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13249 ada_new_objfile_observer.
13250 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13251 (_initialize_tasks): Update uses of ada_new_objfile_observer
13252 and ada_tasks_normal_stop_observer.
13254 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13256 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13257 returned by the 'Length attribute to integer.
13259 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13261 * ada-lang.c (_initialize_ada_language): Initialize
13262 cache_space obstack.
13264 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13266 * ada-lang.c (HASH_SIZE): New macro.
13267 (struct cache_entry): New type.
13268 (cache_space, cache): New static globals.
13269 (ada_clear_symbol_cache, find_entry): New functions.
13270 (lookup_cached_symbol, cache_symbol): Implement.
13271 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13272 (_initialize_ada_language): Attach ada_new_objfile_observer
13273 and ada_free_objfile_observer.
13275 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13277 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13278 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13279 struct block * parameter.
13280 (ada_lookup_symbol_list_worker): Constify local variable "block".
13281 Remove cast which is no longer necessary.
13283 2014-02-10 Doug Evans <xdje42@gmail.com>
13285 Add Guile as an extension language.
13286 * NEWS: Mention Guile scripting.
13287 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13288 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13289 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13290 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13291 (CLIBS): Add GUILE_LIBS.
13292 (install-guile): New rule.
13293 (guile.o): New rule.
13294 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13295 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13296 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13297 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13298 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13299 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13300 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13301 * configure.ac: New option --with-guile.
13302 * configure: Regenerate.
13303 * config.in: Regenerate.
13304 * auto-load.c: Remove #include "python/python.h". Add #include
13305 "gdb/section-scripts.h".
13306 (source_section_scripts): Handle Guile scripts.
13307 (_initialize_auto_load): Add name of Guile objfile script to
13308 scripts-directory help text.
13309 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13310 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13311 (struct breakpoint): New member scm_bp_object.
13312 * defs.h (enum command_control_type): New value guile_control.
13313 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13315 (show_user): Update comment.
13316 (_initialize_cli_cmds): Update help text for "show user". Update help
13317 text for max-user-call-depth.
13318 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13320 (multi_line_command_p): Add guile_control.
13321 (print_command_lines): Handle guile_control.
13322 (execute_control_command, recurse_read_control_structure): Ditto.
13323 (process_next_line): Recognize "guile" commands.
13324 * disasm.c (gdb_disassemble_info): Make non-static.
13325 * disasm.h: #include "dis-asm.h".
13326 (struct gdbarch): Add forward decl.
13327 (gdb_disassemble_info): Declare.
13328 * extension.c: #include "guile/guile.h".
13329 (extension_languages): Add guile.
13330 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13331 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13332 * gdbtypes.c (get_unsigned_type_max): New function.
13333 (get_signed_type_minmax): New function.
13334 * gdbtypes.h (get_unsigned_type_max): Declare.
13335 (get_signed_type_minmax): Declare.
13336 * guile/README: New file.
13337 * guile/guile-internal.h: New file.
13338 * guile/guile.c: New file.
13339 * guile/guile.h: New file.
13340 * guile/scm-arch.c: New file.
13341 * guile/scm-auto-load.c: New file.
13342 * guile/scm-block.c: New file.
13343 * guile/scm-breakpoint.c: New file.
13344 * guile/scm-disasm.c: New file.
13345 * guile/scm-exception.c: New file.
13346 * guile/scm-frame.c: New file.
13347 * guile/scm-gsmob.c: New file.
13348 * guile/scm-iterator.c: New file.
13349 * guile/scm-lazy-string.c: New file.
13350 * guile/scm-math.c: New file.
13351 * guile/scm-objfile.c: New file.
13352 * guile/scm-ports.c: New file.
13353 * guile/scm-pretty-print.c: New file.
13354 * guile/scm-safe-call.c: New file.
13355 * guile/scm-string.c: New file.
13356 * guile/scm-symbol.c: New file.
13357 * guile/scm-symtab.c: New file.
13358 * guile/scm-type.c: New file.
13359 * guile/scm-utils.c: New file.
13360 * guile/scm-value.c: New file.
13361 * guile/lib/gdb.scm: New file.
13362 * guile/lib/gdb/boot.scm: New file.
13363 * guile/lib/gdb/experimental.scm: New file.
13364 * guile/lib/gdb/init.scm: New file.
13365 * guile/lib/gdb/iterator.scm: New file.
13366 * guile/lib/gdb/printing.scm: New file.
13367 * guile/lib/gdb/types.scm: New file.
13368 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13369 (VPATH): Add $(GUILE_SRCDIR).
13370 (GUILE_DIR): New variable.
13371 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13372 (all): Add stamp-guile dependency.
13373 (stamp-guile): New rule.
13374 (clean-guile, install-guile, uninstall-guile): New rules.
13375 (install-only): Add install-guile dependency.
13376 (uninstall): Add uninstall-guile dependency.
13377 (clean): Add clean-guile dependency.
13379 2014-02-09 Doug Evans <xdje42@gmail.com>
13381 Revert this patch (which I approved, mea culpa).
13383 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13385 * Makefile.in (all-lib): Remove.
13386 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13388 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13390 Fix Python stack corruption.
13391 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13394 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13396 * Makefile.in (all-lib): Remove.
13397 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13399 2014-02-07 Doug Evans <dje@google.com>
13401 * extension-priv.h (extension_language_script_ops): Add comment.
13402 (extension_language_ops): Add comment.
13403 (active_ext_lang_state): Fix typo in comment.
13405 2014-02-07 Pedro Alves <palves@redhat.com>
13407 PR breakpoints/16292
13408 * infrun.c (handle_signal_stop) <signal arrives while stepping
13409 over a breakpoint>: Switch back to the stepping thread.
13411 2014-02-07 Yao Qi <yao@codesourcery.com>
13413 * target.c (target_xfer_partial): Return zero if LEN is zero.
13415 2014-02-07 Yao Qi <yao@codesourcery.com>
13417 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13418 (ld_so_xfer_auxv): Likewise.
13419 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13420 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13421 * corelow.c (core_xfer_partial): Likewise.
13422 * ctf.c (ctf_xfer_partial): Likewise.
13423 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13424 (darwin_xfer_partial): Likewise.
13425 * exec.c (exec_xfer_partial): Likewise.
13426 * gnu-nat.c (gnu_xfer_partial): Likewise.
13427 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13428 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13429 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13430 * linux-nat.c (linux_xfer_siginfo): Likewise.
13431 (linux_proc_xfer_spu): Likewise.
13432 * procfs.c (procfs_xfer_partial): Likewise.
13433 * record-full.c (record_full_xfer_partial): Likewise.
13434 (record_full_core_xfer_partial): Likewise.
13435 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13436 * remote.c (remote_write_qxfer): Likewise.
13437 (remote_write_qxfer, remote_read_qxfer): Likewise.
13438 (remote_xfer_partial): Likewise.
13439 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13440 (rs6000_xfer_shared_libraries): Likewise.
13441 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13442 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13443 (spu_xfer_partial): Likewise.
13444 * target.c (memory_xfer_partial_1): Likewise.
13445 * tracepoint.c (tfile_xfer_partial): Likewise.
13446 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13447 (windows_xfer_partial): Likewise.
13449 2014-02-07 Yao Qi <yao@codesourcery.com>
13451 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13453 (core_xfer_shared_libraries_aix): Likewise.
13454 * gdbarch.c, gdbarch.h: Regenerated.
13455 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13456 ULONGEST. Change 'len_avail' type to ULONGEST.
13457 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13458 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13460 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13462 2014-02-07 Yao Qi <yao@codesourcery.com>
13464 * corefile.c (memory_error): Get 'exception' from ERR and pass
13465 'exception' to throw_error.
13467 2014-02-06 Doug Evans <xdje42@gmail.com>
13469 * configure.ac (libpython checking): Remove all but python.o from
13470 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13471 * configure: Regenerate.
13473 * Makefile.in (SFILES): Add extension.c.
13474 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13475 (COMMON_OBS): Add extension.o.
13476 * extension.h: New file.
13477 * extension-priv.h: New file.
13478 * extension.c: New file.
13480 * python/python-internal.h: #include "extension.h".
13481 (gdbpy_auto_load_enabled): Declare.
13482 (gdbpy_apply_val_pretty_printer): Declare.
13483 (gdbpy_apply_frame_filter): Declare.
13484 (gdbpy_preserve_values): Declare.
13485 (gdbpy_breakpoint_cond_says_stop): Declare.
13486 (gdbpy_breakpoint_has_cond): Declare.
13487 (void source_python_script_for_objfile): Delete.
13488 * python/python.c: #include "extension-priv.h".
13489 Delete inclusion of "observer.h".
13490 (extension_language_python): Moved here and renamed from
13491 script_language_python in py-auto-load.c.
13492 Redefined to be of type extension_language_defn.
13493 (python_extension_script_ops): New global.
13494 (python_extension_ops): New global.
13495 (struct python_env): New member previous_active.
13496 (restore_python_env): Call restore_active_ext_lang.
13497 (ensure_python_env): Call set_active_ext_lang.
13498 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13500 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13502 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13504 (gdbpy_eval_from_control_command): Renamed from
13505 eval_python_from_control_command, made static. New arg extlang.
13506 (gdbpy_source_script) Renamed from source_python_script, made static.
13508 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13509 result to int. New arg extlang.
13510 (gdbpy_source_objfile_script): Renamed from
13511 source_python_script_for_objfile, made static. New arg extlang.
13512 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13513 static. New args extlang, extlang_printers. Change result type to
13515 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13516 static. New arg extlang. Rename arg printers to extlang_printers
13517 and change type to ext_lang_type_printers *.
13518 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13519 static. Replace argument arg with extlang, extlang_printers.
13520 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13521 (!HAVE_PYTHON, source_python_script): Delete.
13522 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13523 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13524 (!HAVE_PYTHON, start_type_printers): Delete.
13525 (!HAVE_PYTHON, apply_type_printers): Delete.
13526 (!HAVE_PYTHON, free_type_printers): Delete.
13527 (_initialize_python): Delete call to observer_attach_before_prompt.
13528 (finalize_python): Set/restore active extension language.
13529 (gdbpy_finish_initialization) Renamed from
13530 finish_python_initialization, made static. New arg extlang.
13531 (gdbpy_initialized): New function.
13532 * python/python.h: #include "extension.h". Delete #include
13533 "value.h", "mi/mi-cmds.h".
13534 (extension_language_python): Declare.
13535 (GDBPY_AUTO_FILE_NAME): Delete.
13536 (enum py_bt_status): Moved to extension.h and renamed to
13537 ext_lang_bt_status.
13538 (enum frame_filter_flags): Moved to extension.h.
13539 (enum py_frame_args): Moved to extension.h and renamed to
13540 ext_lang_frame_args.
13541 (finish_python_initialization): Delete.
13542 (eval_python_from_control_command): Delete.
13543 (source_python_script): Delete.
13544 (apply_val_pretty_printer): Delete.
13545 (apply_frame_filter): Delete.
13546 (preserve_python_values): Delete.
13547 (gdbpy_script_language_defn): Delete.
13548 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13549 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13551 * auto-load.c: #include "extension.h".
13552 (GDB_AUTO_FILE_NAME): Delete.
13553 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13554 (script_language_gdb): Delete, moved to extension.c and renamed to
13555 extension_language_gdb.
13556 (source_gdb_script_for_objfile): Delete.
13557 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13558 (loaded_script): Change type of language member to
13559 struct extension_language_defn *.
13560 (init_loaded_scripts_info): Initialize
13561 unsupported_script_warning_printed.
13562 (maybe_add_script): Make static. Change type of language arg to
13563 struct extension_language_defn *.
13564 (clear_section_scripts): Reset unsupported_script_warning_printed.
13565 (auto_load_objfile_script_1): Rewrite to use extension language API.
13566 (auto_load_objfile_script): Make public. Remove support-compiled-in
13567 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13568 (source_section_scripts): Rewrite to use extension language API.
13569 (load_auto_scripts_for_objfile): Rewrite to use
13570 auto_load_scripts_for_objfile.
13571 (collect_matching_scripts_data): Change type of language member to
13572 struct extension_language_defn *.
13573 (auto_load_info_scripts): Change type of language arg to
13574 struct extension_language_defn *.
13575 (unsupported_script_warning_print): New function.
13576 (script_not_found_warning_print): Make static.
13577 (_initialize_auto_load): Rewrite construction of scripts-directory
13579 * auto-load.h (struct objfile): Add forward decl.
13580 (struct script_language): Delete.
13581 (struct auto_load_pspace_info): Add forward decl.
13582 (struct extension_language_defn): Add forward decl.
13583 (maybe_add_script): Delete.
13584 (auto_load_objfile_script): Declare.
13585 (script_not_found_warning_print): Delete.
13586 (auto_load_info_scripts): Update prototype.
13587 (auto_load_gdb_scripts_enabled): Declare.
13588 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13589 auto_load_python_scripts_enabled and made public.
13590 (script_language_python): Delete, moved to python.c.
13591 (gdbpy_script_language_defn): Delete.
13592 (info_auto_load_python_scripts): Update to use
13593 extension_language_python.
13595 * breakpoint.c (condition_command): Replace call to
13596 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13597 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13598 with call to breakpoint_ext_lang_cond_says_stop.
13599 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13600 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13601 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13602 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13604 (local_setattro): Print name of extension language with existing
13607 * valprint.c (val_print, value_print): Update to call
13608 apply_ext_lang_val_pretty_printer.
13609 * cp-valprint.c (cp_print_value): Update call to
13610 apply_ext_lang_val_pretty_printer.
13611 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13612 (gdbpy_apply_val_pretty_printer): Renamed from
13613 apply_val_pretty_printer. New arg extlang.
13614 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13616 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13617 extension language API.
13618 * cli/cli-script.c (execute_control_command): Update to call
13619 eval_ext_lang_from_control_command.
13621 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13622 enum ext_lang_bt_status values. Update call to
13623 apply_ext_lang_frame_filter.
13624 (mi_cmd_stack_list_locals): Ditto.
13625 (mi_cmd_stack_list_args): Ditto.
13626 (mi_cmd_stack_list_variables): Ditto.
13627 * mi/mi-main.c: Delete #include "python/python-internal.h".
13628 Add #include "extension.h".
13629 (mi_cmd_list_features): Replace reference to python internal variable
13630 gdb_python_initialized with call to ext_lang_initialized_p.
13632 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13633 Update to use enum ext_lang_frame_args. Update to call
13634 apply_ext_lang_frame_filter.
13635 * python/py-framefilter.c (extract_sym): Update to use enum
13636 ext_lang_bt_status.
13637 (extract_value, py_print_type, py_print_value): Ditto.
13638 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13639 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13640 (py_print_frame): Ditto.
13641 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13642 New arg extlang. Update to use enum ext_lang_bt_status.
13644 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13645 finish_python_initialization. Replace with call to
13646 finish_ext_lang_initialization.
13648 * typeprint.c (do_free_global_table): Update to call
13649 free_ext_lang_type_printers.
13650 (create_global_typedef_table): Update to call
13651 start_ext_lang_type_printers.
13652 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13653 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13654 (type_print_options): Change type of global_printers from "void *"
13655 to "struct ext_lang_type_printers *".
13657 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13658 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13659 (gdbpy_preserve_values): Renamed from preserve_python_values.
13661 (!HAVE_PYTHON, preserve_python_values): Delete.
13663 * utils.c (quit_flag): Delete, moved to extension.c.
13664 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13667 * eval.c: Delete #include "python/python.h".
13668 * main.c: Delete #include "python/python.h".
13670 * defs.h: Update comment.
13672 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13676 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13678 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13681 2014-02-05 Yao Qi <yao@codesourcery.com>
13683 * remote.c (remote_pass_signals): Remove local 'buf' and use
13685 (remote_program_signals): Likewise.
13687 2014-02-05 Yao Qi <yao@codesourcery.com>
13689 * ctf.c: Include "inferior.h" and "gdbthread.h".
13690 (CTF_PID): A new macro.
13691 (ctf_open): Call inferior_appeared and add_thread_silent.
13692 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13693 (ctf_thread_alive): New function.
13694 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13696 2014-02-05 Yao Qi <yao@codesourcery.com>
13700 2013-05-24 Yao Qi <yao@codesourcery.com>
13702 * tracepoint.c (TFILE_PID): Remove.
13703 (tfile_open): Don't add thread and inferior.
13704 (tfile_close): Don't set 'inferior_ptid'. Don't call
13705 exit_inferior_silent.
13706 (tfile_thread_alive): Remove.
13707 (init_tfile_ops): Don't set field 'to_thread_alive' of
13710 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13712 * remote.c (remote_start_remote): Call remote_check_symbols even
13713 if only symbol-file (not file) has been given.
13715 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13717 * gdbarch.sh (skip_entrypoint): New callback.
13718 * gdbarch.c, gdbarch.h: Regenerate.
13719 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13720 * infrun.c (fill_in_stop_func): Likewise.
13721 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13722 (ppc_elfv2_elf_make_msymbol_special): New function.
13723 (ppc_elfv2_skip_entrypoint): Likewise.
13724 (ppc_linux_init_abi): Install them for ELFv2.
13726 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13728 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13729 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13730 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13731 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13732 structures returned in GPRs.
13734 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13736 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13737 offset to the stack parameter list for the ELFv2 ABI.
13739 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13741 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13742 set_gdbarch_convert_from_func_ptr_addr and
13743 set_gdbarch_elf_make_msymbol_special for ELFv1.
13744 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13745 function descriptors on ELFv1.
13746 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13747 set up r12 at function entry.
13749 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13751 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13752 (struct gdbarch_tdep): New member elf_abi.
13754 * rs6000-tdep.c: Include "elf/ppc64.h".
13755 (rs6000_gdbarch_init): Detect ELF ABI version.
13757 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13759 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13760 within a register pair holding a DFP 128-bit value on little-endian.
13761 (ppc64_sysv_abi_return_value_base): Likewise.
13762 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13763 (dfp_pseudo_register_write): Likewise.
13765 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13767 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13768 offset on little-endian when passing _Decimal32.
13769 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13771 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13773 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13774 of the overlapped FP register within the VSX register on little-
13776 (efpr_pseudo_register_write): Likewise.
13778 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13780 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13781 offset on little-endian when passing small structures.
13783 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13785 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13786 (struct ppc64_sysv_argpos): New data structure.
13787 (ppc64_sysv_abi_push_float): Remove.
13788 (ppc64_sysv_abi_push_val): New function.
13789 (ppc64_sysv_abi_push_integer): Likewise.
13790 (ppc64_sysv_abi_push_freg): Likewise.
13791 (ppc64_sysv_abi_push_vreg): Likewise.
13792 (ppc64_sysv_abi_push_param): Likewise.
13793 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13794 (ppc64_sysv_abi_return_value_base): New function.
13795 (ppc64_sysv_abi_return_value): Refactor to use it.
13797 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13799 * NEWS: Document new target powerpc64le-*-linux*.
13801 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13803 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13804 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13806 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13807 register set used in ELF core dumps. Add floating-point register set.
13809 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13811 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13812 dwarf2_to_gdb[] table using symbolic constants. Adjust
13813 penultimate entry from number representing the PC register
13814 to symbolic constant representing the MDR register. Add
13815 constant for the PC register to the end of the table.
13817 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13819 * bsd-kvm.c: Include <sys/param.h>
13821 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13823 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13825 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13827 * ada-lang.h (clear_ada_sym_cache): Delete.
13829 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13831 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13833 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13835 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13836 the sigreturn register save area only if the syscall is
13839 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13841 * valops.c (value_slice): Minor reformatting.
13843 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13845 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13847 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13849 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13850 New static globals.
13851 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13852 (ada_ignore_descriptive_types_p): New static global.
13853 (find_parallel_type_by_descriptive_type): Return immediately
13854 if ada_ignore_descriptive_types_p is set.
13855 (_initialize_ada_language): Register new commands "maintenance
13856 set ada", "maintenance show ada", "maintenance set ada
13857 ignore-descriptive-types" and "maintenance show ada
13858 ignore-descriptive-types".
13859 * NEWS: Add entry for new "maint ada set/show
13860 ignore-descriptive-types" commands.
13862 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13864 * record-btrace.c (record_btrace_close): Call btrace_teardown
13867 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13869 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13872 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13874 * ada-typeprint (type_is_full_subrange_of_target_type):
13876 (print_range): Add parameter bounds_prefered_p. If not set,
13877 try printing range types using the name of their base type.
13878 (print_range_type): Add parameter bounds_prefered_p.
13879 Use it in call to print_range.
13880 (print_array_type, ada_print_type): Update calls to print_range
13881 and print_range_type.
13883 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13885 * ada-typeprint.c (print_array_type, print_choices, print_range)
13886 (print_range_bound, print_dynamic_range_bound, print_range_type):
13887 Remove declaration.
13889 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13891 * ada-typeprint.c (print_range): Add missing empty line
13892 after local declaration.
13894 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13896 * ada-valprint.c (print_optional_low_bound): Get index_type's
13897 target type for as long as it is a TYPE_CODE_RANGE.
13899 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13901 * procfs.c (procfs_make_note_section): Remove assertion and
13902 associated comment.
13904 2014-01-24 Yao Qi <yao@codesourcery.com>
13906 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13907 * corelow.c (get_core_siginfo): Likewise.
13909 2014-01-24 Yao Qi <yao@codesourcery.com>
13911 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13912 ULONGEST. Don't check 'len' is negative.
13913 (remote_write_bytes): Change type of 'len' to ULONGEST.
13915 2014-01-23 Tom Tromey <tromey@redhat.com>
13918 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13919 Handle exception from frame.block.
13920 (FrameVars.fetch_frame_locals): Likewise.
13922 2014-01-23 Tom Tromey <tromey@redhat.com>
13925 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13926 on a NULL pointer. Move "goto error" to correct place.
13928 2014-01-23 Tom Tromey <tromey@redhat.com>
13931 * python/py-framefilter.c (apply_frame_filter): Call
13932 ensure_python_env after computing gdbarch.
13934 2014-01-23 Yao Qi <yao@codesourcery.com>
13936 * target.c (raw_memory_xfer_partial): Change argument type
13937 from void * to gdb_byte *.
13938 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13940 2014-01-22 Doug Evans <dje@google.com>
13942 New gdbserver option --debug-format=timestamp.
13943 * NEWS: Mention it.
13945 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13947 * syscalls/s390x-linux.xml: New file.
13948 * syscalls/s390-linux.xml: New file.
13949 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13950 (XML_SYSCALL_FILENAME_S390X): Likewise.
13951 (op_svc): New enum value for SVC opcode.
13952 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13953 (s390_linux_get_syscall_number): New function.
13954 (s390_gdbarch_init): Register '*get_syscall_number' and the
13955 syscall xml file name.
13956 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13957 "s390-linux.xml" and "s390x-linux.xml".
13958 * NEWS: Announce new feature.
13960 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13962 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13964 2014-01-22 Pedro Alves <palves@redhat.com>
13966 * xtensa-config.c: Include defs.h.
13968 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13970 * common/common-utils.h: Add "ARI:" comment beside __func__
13973 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13975 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13976 documentation a bit.
13978 2014-01-21 Roland McGrath <mcgrathr@google.com>
13980 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13981 * configure: Regenerate.
13982 * aclocal.m4: Regenerate.
13983 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13984 New substituted variables.
13985 (install-strip): New target.
13986 (INSTALL_SCRIPT): New substituted variable.
13987 (FLAGS_TO_PASS): Add it.
13988 (install-only): Use $(INSTALL_SCRIPT) rather than
13989 $(INSTALL_PROGRAM) for gcore.
13991 2014-01-20 Tom Tromey <tromey@redhat.com>
13993 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13996 2014-01-20 Tom Tromey <tromey@redhat.com>
13998 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13999 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14000 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14001 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14002 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14003 (struct cmd_list_element) <flags>: Remove.
14004 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14005 doc_allocated>: New fields.
14006 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14008 * maint.c (maintenance_do_deprecate): Update.
14009 * top.c (execute_command): Update.
14011 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14013 * xtensa-linux-nat.c: Include asm/ptrace.h.
14015 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14017 * Makefile.in (SFILES): Add d-support.c.
14018 (COMMON_OBS): Add d-support.o.
14019 * d-lang.h (d_parse_symbol): Add comment, now defined in
14021 * d-lang.c (parse_call_convention)
14022 (parse_attributes, parse_function_types)
14023 (parse_function_args, parse_type, parse_identifier)
14024 (call_convention_p, d_parse_symbol): Move functions to ...
14025 * d-support.c: ... New file.
14027 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14029 * d-lang.h (d_parse_symbol): Add declaration.
14030 * d-lang.c (extract_identifiers)
14031 (extract_type_info): Remove functions.
14032 (parse_call_convention, parse_attributes)
14033 (parse_function_types, parse_function_args)
14034 (parse_type, parse_identifier, call_convention_p)
14035 (d_parse_symbol): New functions.
14036 (d_demangle): Use d_parse_symbol to demangle D symbols.
14038 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14040 * d-lang.h (struct builtin_d_type): New data type.
14041 (builtin_d_type): Add declaration.
14042 * d-lang.c (d_language_arch_info, build_d_types)
14043 (builtin_d_type): New functions.
14044 (enum d_primitive_types): New data type.
14045 (d_language_defn): Change c_language_arch_info to
14046 d_language_arch_info.
14047 (d_type_data): New static variable.
14048 (_initialize_d_language): Initialize d_type_data.
14050 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14052 * d-lang.h (d_main_name): Add declaration.
14053 * d-lang.c (d_main_name): New function.
14054 * symtab.c (find_main_name): Add call to d_main_name.
14056 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14058 * d-lang.c (d_language_defn): Change macro_expansion_c to
14059 macro_expansion_no.
14061 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14063 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14065 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14067 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14068 gdb_exception" declaration.
14069 * remote.c (getpkt_or_notif_sane): Likewise.
14071 2014-01-17 Doug Evans <dje@google.com>
14073 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14074 function, contents of dirnames_to_char_ptr_vec_append moved here.
14075 (delim_string_to_char_ptr_vec): New function.
14076 (dirnames_to_char_ptr_vec_append): Rewrite.
14077 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14079 2014-01-17 Doug Evans <dje@google.com>
14081 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14083 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14084 #include "common-utils.h".
14085 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14086 * common/vec.h (VEC_ASSERT_PASS): Update.
14087 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14088 (MACH_CHECK_ERROR): Update.
14090 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14092 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14094 * gdbarch.h: Regenerate.
14096 2014-01-16 Tom Tromey <tromey@redhat.com>
14098 * value.c (struct value) <regnum>: Move earlier.
14100 2014-01-16 Tom Tromey <tromey@redhat.com>
14102 * remote.c (extended_remote_create_inferior): Rename from
14103 extended_remote_create_inferior_1. Add "ops" argument. Remove
14104 old implementation.
14106 2014-01-16 Pedro Alves <palves@redhat.com>
14108 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14109 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14112 2014-01-16 Doug Evans <dje@google.com>
14114 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14118 * btrace.h (btrace_thread_flag): New.
14119 (struct btrace_thread_info) <flags>: New.
14120 * record-btrace.c (record_btrace_resume_thread)
14121 (record_btrace_find_thread_to_move, btrace_step_no_history)
14122 (btrace_step_stopped, record_btrace_start_replaying)
14123 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14124 (record_btrace_find_resume_thread): New.
14125 (record_btrace_resume, record_btrace_wait): Extend.
14126 (record_btrace_can_execute_reverse): New.
14127 (record_btrace_open): Fail in non-stop mode.
14128 (record_btrace_set_replay): Split into this, ...
14129 (record_btrace_stop_replaying): ... this, ...
14130 (record_btrace_clear_histories): ... and this.
14131 (init_record_btrace_ops): Init to_can_execute_reverse.
14132 * NEWS: Announce it.
14134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14136 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14137 (forward_target_decr_pc_after_break)
14138 (target_decr_pc_after_break): New.
14139 * target.c (forward_target_decr_pc_after_break)
14140 (target_decr_pc_after_break): New.
14141 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14142 instead of gdbarch_decr_pc_after_break.
14143 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14144 instead of gdbarch_decr_pc_after_break.
14145 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14146 instead of gdbarch_decr_pc_after_break.
14147 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14148 instead of gdbarch_decr_pc_after_break.
14149 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14150 instead of gdbarch_decr_pc_after_break.
14151 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14152 instead of gdbarch_decr_pc_after_break.
14154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14156 * btrace.c: Include regcache.h.
14157 (btrace_add_pc): New.
14158 (btrace_enable): Call btrace_add_pc.
14159 (btrace_is_empty): New.
14160 * btrace.h (btrace_is_empty): New.
14161 * record-btrace.c (require_btrace, record_btrace_info): Call
14164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14166 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14167 Support delta reads.
14168 (linux_disable_btrace): Change return type.
14169 * common/linux-btrace.h (linux_read_btrace): Change parameters
14170 and return type to allow error reporting. Update users.
14171 (linux_disable_btrace): Change return type. Update users.
14172 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14174 (btrace_error): New.
14175 (btrace_block) <begin>: Comment on BEGIN == 0.
14176 * btrace.c (btrace_compute_ftrace): Start from the end of
14178 (btrace_stitch_trace, btrace_clear_history): New.
14179 (btrace_fetch): Read delta trace, return if replaying.
14180 (btrace_clear): Move clear history code to btrace_clear_history.
14181 (parse_xml_btrace): Throw an error if parsing failed.
14182 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14183 and return type to allow error reporting.
14184 (target_read_btrace): Change parameters and return type to allow
14186 * target.c (target_read_btrace): Update.
14187 * remote.c (remote_read_btrace): Support delta reads. Pass
14189 * NEWS: Announce it.
14191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14193 * record.h (record_btrace_frame_unwind)
14194 (record_btrace_tailcall_frame_unwind): New declarations.
14195 * dwarf2-frame: Include record.h
14196 (dwarf2_frame_cfa): Throw an error for btrace frames.
14197 * record-btrace.c: Include hashtab.h.
14198 (btrace_get_bfun_name): New.
14199 (btrace_call_history): Call btrace_get_bfun_name.
14200 (struct btrace_frame_cache): New.
14202 (bfcache_hash, bfcache_eq, bfcache_new): New.
14203 (btrace_get_frame_function): New.
14204 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14205 (record_btrace_frame_this_id): Compute own id.
14206 (record_btrace_frame_prev_register): Provide PC, throw_error
14207 for all other registers.
14208 (record_btrace_frame_sniffer): Detect btrace frames.
14209 (record_btrace_tailcall_frame_sniffer): New.
14210 (record_btrace_frame_dealloc_cache): New.
14211 (record_btrace_frame_unwind): Add new functions.
14212 (record_btrace_tailcall_frame_unwind): New.
14213 (_initialize_record_btrace): Allocate cache.
14214 * btrace.c (btrace_clear): Call reinit_frame_cache.
14215 * NEWS: Announce it.
14217 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14219 * record-btrace.c (record_btrace_set_replay)
14220 (record_btrace_goto_begin, record_btrace_goto_end)
14221 (record_btrace_goto): New.
14222 (init_record_btrace_ops): Initialize them.
14223 * NEWS: Announce it.
14225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14227 * record-btrace.c (record_btrace_find_new_threads)
14228 (record_btrace_thread_alive): New.
14229 (init_record_btrace_ops): Initialize to_find_new_threads and
14232 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14234 * record-btrace.c (record_btrace_resume): New.
14235 (record_btrace_wait): New.
14236 (init_record_btrace_ops): Initialize to_wait and to_resume.
14238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14240 * record-btrace.c (record_btrace_xfer_partial)
14241 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14242 (record_btrace_allow_memory_access): New.
14243 (init_record_btrace_ops): Initialize new methods.
14244 * target.c (raw_memory_xfer_partial): Bail out if target reports
14245 that this memory is not available.
14247 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14249 * target.h (target_ops) <to_insert_breakpoint>
14250 <to_remove_breakpoint>: Add target_ops parameter.
14251 (forward_target_insert_breakpoint): New.
14252 (forward_target_remove_breakpoint): New.
14253 (memory_remove_breakpoint, memory_insert_breakpoint):
14254 Add target_ops parameter.
14255 * target.c (target_insert_breakpoint): Split into this and ...
14256 (forward_target_insert_breakpoint): ... this.
14257 (target_remove_breakpoint): Split into this and ...
14258 (forward_target_remove_breakpoint): ... this.
14259 (debug_to_insert_breakpoint): Add target_ops parameter.
14260 Call forward_target_insert_breakpoint.
14261 (debug_to_remove_breakpoint): Add target_ops parameter.
14262 Call forward_target_remove_breakpoint.
14263 (update_current_target): Do not inherit or default to_insert_breakpoint
14264 and to_remove_breakpoint.
14265 * corelow.c (ignore): Add target_ops parameter.
14266 * exec.c (ignore): Add target_ops parameter.
14267 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14268 Add target_ops parameter.
14269 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14270 Add target_ops parameter.
14271 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14272 Add target_ops parameter.
14273 * record-full.c (record_full_beneath_to_insert_breakpoint)
14274 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14275 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14276 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14277 (record_full_core_remove_breakpoint): Add target_ops parameter.
14279 (record_full_beneath_to_insert_breakpoint_ops)
14280 (record_full_beneath_to_remove_breakpoint_ops)
14281 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14282 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14283 tmp_to_remove_breakpoint_ops,
14284 record_full_beneath_to_insert_breakpoint_ops, and
14285 record_full_beneath_to_remove_breakpoint_ops.
14286 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14287 (m32r_remove_breakpoint): Add target_ops parameter.
14288 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14289 Add target_ops parameter.
14290 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14291 Add target_ops parameter.
14293 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14294 Markus Metzger <markus.t.metzger@intel.com>
14296 * record-btrace.c: Include frame-unwind.h.
14297 (record_btrace_frame_unwind_stop_reason)
14298 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14299 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14301 (init_record_btrace_ops): Install it.
14303 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14305 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14308 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14310 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14313 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14315 * frame-unwind.c: Include target.h.
14316 (frame_unwind_try_unwinder): New function with code from ...
14317 (frame_unwind_find_by_frame): ... here. New variable
14318 unwinder_from_target, call also target_get_unwinder)
14319 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14320 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14321 * target.h (struct target_ops): New fields to_get_unwinder and
14322 to_get_tailcall_unwinder.
14323 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14327 * record-btrace.c (record_btrace_fetch_registers)
14328 (record_btrace_store_registers)
14329 (record_btrace_to_prepare_to_store): New.
14330 (init_record_btrace_ops): Add the above.
14332 2014-01-16 Tom Tromey <tromey@redhat.com>
14334 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14335 * target.h (struct target_ops) <to_prepare_to_store>: Add
14337 (target_prepare_to_store): Add argument.
14338 * target.c (debug_to_prepare_to_store): Add argument.
14339 (update_current_target): Update.
14340 * remote.c (remote_prepare_to_store): Add 'self' argument.
14341 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14342 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14343 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14344 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14346 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14347 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14348 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14349 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14350 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14354 * btrace.h (replay) <replay>: New.
14355 (btrace_is_replaying): New.
14356 * btrace.c (btrace_clear): Free replay iterator.
14357 (btrace_is_replaying): New.
14358 * record-btrace.c (record_btrace_is_replaying): New.
14359 (record_btrace_info): Print insn number if replaying.
14360 (record_btrace_insn_history): Start at replay position.
14361 (record_btrace_call_history): Start at replay position.
14362 (init_record_btrace_ops): Init to_record_is_replaying.
14364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14366 * record-btrace.c (record_btrace_insn_history_range): Include
14368 (record_btrace_insn_history_from): Adjust range.
14369 (record_btrace_call_history_range): Include
14371 (record_btrace_call_history_from): Adjust range.
14372 * NEWS: Announce changes.
14374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14376 * record.h (enum record_print_flag)
14377 <record_print_indent_calls>: New.
14378 * record.c (get_call_history_modifiers): Recognize /c modifier.
14379 (_initialize_record): Document /c modifier.
14380 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14381 Reorder fields. Optionally indent the function name. Update
14383 * NEWS: Announce changes.
14385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14387 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14391 * btrace.c (ftrace_new_function): Start counting at one.
14392 * record-btrace.c (record_btrace_info): Adjust number of calls
14394 * NEWS: Announce it.
14396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14398 * record-btrace.c (btrace_call_history_insn_range): Print
14399 insn range as [begin, end].
14401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14403 * btrace.h (struct btrace_func_link): New.
14404 (enum btrace_function_flag): New.
14405 (struct btrace_inst): Rename to ...
14406 (struct btrace_insn): ...this. Update all users.
14407 (struct btrace_func) <ibegin, iend>: Remove.
14408 (struct btrace_func_link): New.
14409 (struct btrace_func): Rename to ...
14410 (struct btrace_function): ...this. Update all users.
14411 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14412 (number, level, flags>: New.
14413 (struct btrace_insn_iterator): Rename to ...
14414 (struct btrace_insn_history): ...this.
14416 (struct btrace_insn_iterator, btrace_call_iterator): New.
14417 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14418 (struct btrace_target_info) <begin, end, level>
14419 <insn_history, call_history>: New.
14420 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14421 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14422 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14423 (btrace_call_number, btrace_call_begin, btrace_call_end)
14424 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14425 (btrace_find_function_by_number, btrace_set_insn_history)
14426 (btrace_set_call_history): New.
14427 * btrace.c (btrace_init_insn_iterator)
14428 (btrace_init_func_iterator, compute_itrace): Remove.
14429 (ftrace_print_function_name, ftrace_print_filename)
14430 (ftrace_skip_file): Change
14431 parameter to const.
14432 (ftrace_init_func): Remove.
14433 (ftrace_debug): Use new btrace_function fields.
14434 (ftrace_function_switched): Also consider gaining and
14435 losing symbol information).
14436 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14437 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14438 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14440 (ftrace_new_function): Move. Remove debug print.
14441 (ftrace_update_lines, ftrace_update_insns): New.
14442 (ftrace_update_function): Check for call, ret, and jump.
14443 (compute_ftrace): Renamed to ...
14444 (btrace_compute_ftrace): ...this. Rewritten to compute call
14446 (btrace_fetch, btrace_clear): Updated.
14447 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14448 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14449 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14450 (btrace_call_number, btrace_call_begin, btrace_call_end)
14451 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14452 (btrace_find_function_by_number, btrace_set_insn_history)
14453 (btrace_set_call_history): New.
14454 * record-btrace.c (require_btrace): Use new btrace thread
14456 (record_btrace_info, btrace_insn_history)
14457 (record_btrace_insn_history, record_btrace_insn_history_range):
14458 Use new btrace thread info fields and new iterator.
14459 (btrace_func_history_src_line): Rename to ...
14460 (btrace_call_history_src_line): ...this. Use new btrace
14461 thread info fields.
14462 (btrace_func_history): Rename to ...
14463 (btrace_call_history): ...this. Use new btrace thread info
14464 fields and new iterator.
14465 (record_btrace_call_history, record_btrace_call_history_range):
14466 Use new btrace thread info fields and new iterator.
14468 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14470 * frame.h (frame_id_build_unavailable_stack_special): New.
14471 * frame.c (frame_id_build_unavailable_stack_special): New.
14473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14475 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14476 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14477 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14479 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14480 (i386_insn_is_jump, i386_jmp_p): New.
14481 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14482 insn_is_jump to gdbarch.
14483 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14484 * gdbarch.h: Regenerated.
14485 * gdbarch.c: Regenerated.
14486 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14487 (default_insn_is_jump): New.
14488 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14489 (default_insn_is_jump): New.
14491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14493 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14495 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14496 (btrace_read_type) <btrace_read_new>: Change to ...
14497 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14501 * common/linux-btrace.c (linux_read_btrace): Free trace from
14502 previous iteration.
14504 2014-01-15 Doug Evans <dje@google.com>
14506 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14509 2014-01-15 Tom Tromey <tromey@redhat.com>
14511 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14512 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14513 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14514 (set_objfile_main_name): New function.
14515 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14516 language_of_main>: New fields.
14517 (set_objfile_main_name): Declare.
14518 * symtab.c (find_main_name): Loop over objfiles to find the main
14520 (set_main_name): Now static.
14521 (get_main_info): Add comment.
14522 * symtab.h (set_main_name): Don't declare.
14524 2014-01-15 Tom Tromey <tromey@redhat.com>
14526 * symtab.c (main_progspace_key): New global.
14527 (struct main_info): New.
14528 (name_of_main, language_of_main): Remove.
14529 (get_main_info, main_info_cleanup): New function.
14530 (set_main_name, main_name, main_language): Use get_main_info.
14531 (_initialize_symtab): Initialize main_progspace_key.
14533 2014-01-15 Tom Tromey <tromey@redhat.com>
14535 * dbxread.c (process_one_symbol): Update.
14536 * dwarf2read.c (read_partial_die): Update.
14537 * symfile.c (set_initial_language): Call main_language.
14538 * symtab.c (language_of_main): Now static.
14539 (set_main_name): Add 'lang' parameter.
14540 (find_main_name): Update.
14541 (main_language): New function.
14542 (symtab_observer_executable_changed): Update.
14543 * symtab.h (set_main_name): Update.
14544 (language_of_main): Remove.
14545 (main_language): Declare.
14547 2014-01-15 Tom Tromey <tromey@redhat.com>
14549 * symfile.c (init_entry_point_info): Use new "initialized" field.
14551 * objfiles.h (struct entry_point) <initialized>: New field.
14552 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14553 (struct objfile) <ei>: ...here. Remove.
14554 * objfiles.c (entry_point_address_query): Update.
14556 2014-01-15 Tom Tromey <tromey@redhat.com>
14558 * objfiles.c (entry_point_address_query): Relocate entry point
14560 (objfile_relocate1): Do not relocate entry point address.
14561 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14562 <the_bfd_section_index>: New field.
14563 * symfile.c (init_entry_point_info): Find the entry point's
14566 2014-01-15 Tom Tromey <tromey@redhat.com>
14568 * solib-frv.c (enable_break): Use entry_point_address_query.
14570 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14572 * NEWS: Add note on improved process record-replay on
14573 arm*-linux* targets.
14575 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14577 * arm-tdep.c (enum arm_record_result): New enum.
14578 (arm_record_unsupported_insn): New function.
14579 (arm_record_coproc_data_proc): Removed.
14580 (thumb2_record_ld_st_multiple): New function.
14581 (thumb2_record_ld_st_dual_ex_tbb): New function.
14582 (thumb2_record_data_proc_sreg_mimm): New function.
14583 (thumb2_record_ps_dest_generic): New function.
14584 (thumb2_record_branch_misc_cntrl): New function.
14585 (thumb2_record_str_single_data): New function.
14586 (thumb2_record_ld_mem_hints): New function.
14587 (thumb2_record_ld_word): New function.
14588 (thumb2_record_lmul_lmla_div): New function.
14589 (thumb2_record_decode_insn_handler): New function.
14590 (decode_insn): Add thumb32 instruction handlers.
14592 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14594 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14595 (struct arm_linux_record_tdep): Declare.
14596 (arm_canonicalize_syscall): New function.
14597 (arm_all_but_pc_registers_record): New function.
14598 (arm_linux_syscall_record): New function.
14599 (arm_linux_init_abi): Add syscall recording constructs.
14600 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14601 decoding. (arm_record_coproc_data_proc): Update arm syscall
14603 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14604 <arm_syscall_record>: New field.
14605 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14608 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14610 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14611 register for push instruction recording.
14613 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14615 * arm-tdep.c (thumb_record_misc): Update to correct logical
14616 error while recording ldm, ldmia and pop instructions.
14618 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14620 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14622 2014-01-15 Pedro Alves <palves@redhat.com>
14624 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14625 (go32_resume, go32_fetch_registers, store_register)
14626 (go32_store_registers, go32_prepare_to_store)
14627 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14628 (go32_create_inferior, go32_can_run, go32_terminal_init)
14629 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14632 2014-01-15 Tom Tromey <tromey@redhat.com>
14634 * target.h (async_callback_ftype): New typedef.
14635 (struct target_ops) <to_async>: Use it.
14637 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14639 * python/py-value.c (get_field_type): Remove unnecessary curly
14640 braces for single-statement if block.
14642 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14644 * python/py-type.c (convert_field): Add missing empty line
14645 after declarations.
14647 2014-01-14 Doug Evans <dje@google.com>
14649 * symfile.h (expand_symtabs_matching): Renamed from
14650 expand_partial_symbol_names. Update prototype.
14651 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14652 * symfile.c (expand_symtabs_matching): Renamed from
14653 expand_partial_symbol_names. New args file_matcher, kind.
14654 Rename arg fun to symbol_matcher.
14655 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14656 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14657 ada_expand_partial_symbol_name.
14658 (ada_make_symbol_completion_list): Update to call
14659 expand_symtabs_matching.
14660 (ada_add_global_exceptions): Call expand_symtabs_matching.
14661 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14662 call map_symbol_filenames.
14663 * symtab.c (sources_info): Update to call map_symbol_filenames.
14664 (search_symbols): Call expand_symtabs_matching.
14665 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14666 (default_make_symbol_completion_list_break_on): Update to call
14667 expand_symtabs_matching.
14668 (make_source_files_completion_list): Update to call
14669 map_symbol_filenames.
14671 2014-01-14 Doug Evans <dje@google.com>
14673 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14674 (expand_symtabs_symbol_matcher_ftype): New typedef.
14675 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14676 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14677 * symfile.c (expand_partial_symbol_names): Update to use
14678 expand_symtabs_symbol_matcher_ftype.
14679 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14680 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14681 Arg name_matcher renamed to symbol_matcher.
14682 * psymtab.c (recursively_search_psymtabs): Update to use
14683 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14685 (expand_symtabs_matching_via_partial): Update to use
14686 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14687 Arg name_matcher renamed to symbol_matcher.
14689 2014-01-14 Doug Evans <dje@google.com>
14691 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14692 (map_partial_symbol_filenames): Ditto.
14693 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14694 (map_partial_symbol_filenames): Ditto.
14695 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14696 (map_partial_symbol_filenames): Ditto.
14697 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14698 (map_partial_symbol_filenames): Ditto.
14699 * symtab.c: Delete #include "psymtab.h".
14701 2014-01-14 Pedro Alves <palves@redhat.com>
14702 Tom Tromey <tromey@redhat.com>
14704 * infrun.c (use_displaced_stepping): Use find_record_target
14705 instead of RECORD_IS_USED.
14706 (adjust_pc_after_break): Use record_full_is_used instead of
14708 * record-btrace.c (record_btrace_open): Call record_preopen
14709 instead of checking RECORD_IS_USED.
14710 * record-full.c (record_full_shortname)
14711 (record_full_core_shortname): New globals.
14712 (record_full_is_used): New function.
14713 (find_full_open): Call record_preopen instead of checking
14715 (init_record_full_ops): Set the target's shortname to
14716 record_full_shortname.
14717 (init_record_full_core_ops): Set the target's shortname to
14718 record_full_core_shortname.
14719 * record-full.h (record_full_is_used): Declare.
14720 * record.c (find_record_target): Make extern.
14721 (record_preopen): New function.
14722 * record.h (RECORD_IS_USED): Delete macro.
14723 (find_record_target, record_preopen): Declare functions.
14725 2014-01-14 Yao Qi <yao@codesourcery.com>
14727 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14728 'len''s type to ULONGEST.
14729 (core_xfer_shared_libraries_aix): Likewise.
14730 * gdbarch.c, gdbarch.h: Regenerated.
14731 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14732 Change type of 'len' to ULONGEST.
14733 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14734 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14736 2014-01-14 Yao Qi <yao@codesourcery.com>
14738 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14739 type of 'len' to ULONGEST.
14740 (linux_xfer_osdata_processgroups): Likewise.
14741 (linux_xfer_osdata_threads): Likewise.
14742 (linux_xfer_osdata_fds): Likewise.
14743 (linux_xfer_osdata_isockets): Likewise.
14744 (linux_xfer_osdata_shm): Likewise.
14745 (linux_xfer_osdata_sem): Likewise.
14746 (linux_xfer_osdata_msg): Likewise.
14747 (linux_common_xfer_osdata): Likewise.
14748 (struct osdata_type) <getter>: Likewise.
14749 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14752 2014-01-14 Yao Qi <yao@codesourcery.com>
14754 * target.h (target_xfer_partial_ftype): Update.
14755 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14757 * aix-thread.c (aix_thread_xfer_partial): Change type of
14758 argument 'len' to ULONGEST.
14759 * auxv.c (procfs_xfer_auxv): Likewise.
14760 (ld_so_xfer_auxv): Likewise.
14761 (memory_xfer_auxv): Likewise.
14762 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14763 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14764 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14765 * corelow.c (core_xfer_partial): Likewise.
14766 * ctf.c (ctf_xfer_partial): Likewise.
14767 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14769 (darwin_read_dyld_info): Likewise.
14770 (darwin_xfer_partial): Likewise.
14771 * exec.c (section_table_xfer_memory_partial): Likewise.
14772 (exec_xfer_partial): Likewise.
14773 * exec.h (section_table_xfer_memory_partial): Update
14775 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14776 instead of plongest.
14777 (gnu_xfer_partial): Likewise.
14778 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14779 (ia64_hpux_xfer_solib_got): Likewise.
14780 (ia64_hpux_xfer_partial): Likewise.
14781 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14782 * inf-ptrace.c (inf_ptrace_xfer_partial):
14783 * inf-ttrace.c (inf_ttrace_xfer_partial):
14784 * linux-nat.c (linux_xfer_siginfo): Likewise.
14785 (linux_nat_xfer_partial): Likewise.
14786 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14787 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14788 * monitor.c (monitor_xfer_memory): Likewise.
14789 (monitor_xfer_partial): Likewise.
14790 * procfs.c (procfs_xfer_partial): Likewise.
14791 * record-full.c (record_full_xfer_partial): Likewise.
14792 (record_full_core_xfer_partial): Likewise.
14793 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14794 instead of plongest.
14795 (gdbsim_xfer_partial): Likewise.
14796 * remote.c (remote_xfer_partial): Likewise.
14797 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14798 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14800 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14801 (rs6000_xfer_shared_libraries): Likewise.
14802 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14803 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14804 (sparc_xfer_partial): Likewise.
14805 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14806 (spu_xfer_partial): Likewise.
14807 * spu-multiarch.c (spu_xfer_partial): Likewise.
14808 * target.c (target_read_live_memory): Likewise.
14809 (memory_xfer_live_readonly_partial): Likewise.
14810 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14811 (target_xfer_partial, default_xfer_partial): Likewise.
14812 (current_xfer_partial): Likewise.
14813 * tracepoint.c (tfile_xfer_partial): Likewise.
14814 * windows-nat.c (windows_xfer_memory): Likewise. Call
14815 pulongest instead of plongest.
14816 (windows_xfer_partial): Likewise.
14817 (windows_xfer_shared_libraries): Likewise.
14819 2014-01-14 Yao Qi <yao@codesourcery.com>
14821 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14822 target_xfer_partial_ftype.
14824 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14828 * valops.c (value_struct_elt_bitpos): New function
14829 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14830 object to 'None' if the field name is an empty string ("").
14831 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14832 attribute to look for a field when 'name' is 'None'.
14833 (get_field_type): New function
14835 2014-01-13 Doug Evans <dje@google.com>
14838 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14839 (try_open_dwop_file): Ditto.
14840 * gdb_bfd.c: #include "vec.h".
14841 (bfdp): New typedef.
14842 (struct gdb_bfd_data): New member included_bfds.
14843 (gdb_bfd_unref): Unref all included bfds.
14844 (gdb_bfd_record_inclusion): New function.
14845 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14847 2014-01-13 Tom Tromey <tromey@redhat.com>
14849 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14851 2014-01-13 Tom Tromey <tromey@redhat.com>
14853 * defs.h (use_windows): Remove.
14854 * gdb.c (main): Update.
14855 * main.c (captured_main, gdb_main): Update.
14856 * main.h (struct captured_main_args) <use_windows>: Remove.
14857 * top.c (use_windows): Remove.
14859 2014-01-13 Tom Tromey <tromey@redhat.com>
14861 * defs.h (deprecated_flush_hook): Remove.
14863 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14866 * linux-thread-db.c (try_thread_db_load): Add parameter
14867 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14868 (try_thread_db_load_from_pdir_1): Move it there from here.
14869 (try_thread_db_load_from_sdir): Update caller.
14870 (try_thread_db_load_from_dir): Move it there from here.
14872 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14874 * regformats/regdat.sh: Always rewrite the register file.
14876 2014-01-13 Pedro Alves <palves@redhat.com>
14878 * Makefile.in (CHECK_HEADERS): New variable.
14879 (check-headers:): New rule.
14881 2014-01-13 Tom Tromey <tromey@redhat.com>
14883 * cli/cli-setshow.c (do_set_command): Update.
14884 * defs.h (deprecated_set_hook): Remove.
14885 * top.c (deprecated_set_hook): Remove.
14887 2014-01-13 Pedro Alves <palves@redhat.com>
14889 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14890 the tracepoint if the PC is a pseudo-register.
14892 2014-01-13 Tom Tromey <tromey@redhat.com>
14894 * defs.h (XCALLOC): Remove.
14895 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14896 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14897 * dwarf2loc.c (allocate_piece_closure): Likewise.
14898 * elfread.c (elf_symfile_segments): Likewise.
14899 (elf_symfile_segments): Likewise.
14900 * gdbtypes.c (copy_type_recursive): Likewise.
14901 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14902 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14903 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14905 * mt-tdep.c (mt_gdbarch_init): Likewise.
14906 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14908 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14909 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14910 * registry.c (registry_alloc_data): Likewise.
14911 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14912 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14913 * serial.c (serial_fdopen_ops): Likewise.
14914 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14916 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14917 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14920 2014-01-13 Tom Tromey <tromey@redhat.com>
14922 * defs.h (XMALLOC): Remove.
14923 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14924 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14925 * cli-out.c (struct ui_out *): Likewise.
14926 * cli/cli-dump.c (add_dump_command): Likewise.
14927 (add_dump_command): Likewise.
14928 * complaints.c (get_complaints): Likewise.
14929 (find_complaint): Likewise.
14930 * dwarf2-frame.c (execute_cfa_program): Likewise.
14931 * dwarf2read.c (abbrev_table_read_table): Likewise.
14932 * gdbarch.sh: Likewise.
14933 * gdbarch.c: Rebuild.
14934 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14935 * interps.c (interp_new): Likewise.
14936 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14937 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14938 * mi/mi-console.c (mi_console_file_new): Likewise.
14939 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14940 * mi/mi-out.c (mi_out_new): Likewise.
14941 * mi/mi-parse.c (mi_parse): Likewise.
14942 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14943 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14944 * observer.c (xalloc_observer_list_node): Likewise.
14945 * regcache.c (regcache_xmalloc_1): Likewise.
14946 * reggroups.c (reggroup_new): Likewise.
14947 (_initialize_reggroup): Likewise.
14948 * registry.c (register_data_with_cleanup): Likewise.
14949 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14950 * ser-base.c (serial_ttystate): Likewise.
14951 * ser-mingw.c (make_pipe_state): Likewise.
14952 * ser-pipe.c (pipe_open): Likewise.
14953 * serial.c (serial_open): Likewise.
14954 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14955 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14956 (tui_alloc_win_info): Likewise.
14957 (tui_add_content_elements): Likewise.
14958 * tui/tui-file.c (tui_file_new): Likewise.
14959 * tui/tui-out.c (tui_out_new): Likewise.
14960 * ui-file.c (mem_file_new): Likewise.
14961 * ui-out.c (push_level): Likewise.
14962 (make_cleanup_ui_out_end): Likewise.
14963 (append_header_to_list): Likewise.
14964 (ui_out_new): Likewise.
14965 * user-regs.c (user_reg_add_builtin): Likewise.
14967 2014-01-13 Tom Tromey <tromey@redhat.com>
14969 * defs.h (XZALLOC): Remove.
14970 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14971 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14972 (get_ada_tasks_inferior_data): Likewise.
14973 * auto-load.c (get_auto_load_pspace_data): Likewise.
14974 * auxv.c (get_auxv_inferior_data): Likewise.
14975 * bfd-target.c (target_bfd_reopen): Likewise.
14976 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14977 (deprecated_insert_raw_breakpoint): Likewise.
14978 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14979 * corelow.c (core_open): Likewise.
14980 * darwin-nat.c (darwin_check_new_threads): Likewise.
14981 (darwin_attach_pid): Likewise.
14982 * dummy-frame.c (dummy_frame_push): Likewise.
14983 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14984 * dwarf2loc.c (allocate_piece_closure): Likewise.
14985 * elfread.c (elf_symfile_segments): Likewise.
14986 * eval.c (ptrmath_type_p): Likewise.
14987 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14988 * gdbtypes.c (alloc_type_arch): Likewise.
14989 (alloc_type_instance): Likewise.
14990 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14991 * inf-child.c (inf_child_can_use_agent): Likewise.
14992 * inflow.c (get_inflow_inferior_data): Likewise.
14993 * infrun.c (save_infcall_suspend_state): Likewise.
14994 * jit.c (jit_reader_load): Likewise.
14995 (get_jit_objfile_data): Likewise.
14996 (get_jit_program_space_data): Likewise.
14997 (jit_object_open_impl): Likewise.
14998 (jit_symtab_open_impl): Likewise.
14999 (jit_block_open_impl): Likewise.
15000 (jit_frame_sniffer): Likewise.
15001 * linux-fork.c (add_fork): Likewise.
15002 * maint.c (make_command_stats_cleanup): Likewise.
15003 * objfiles.c (get_objfile_pspace_data): Likewise.
15004 * opencl-lang.c (struct lval_closure): Likewise.
15005 * osdata.c (osdata_start_osdata): Likewise.
15006 * progspace.c (new_address_space): Likewise.
15007 (add_program_space): Likewise.
15008 * remote-sim.c (get_sim_inferior_data): Likewise.
15009 * sh-tdep.c (sh_gdbarch_init): Likewise.
15010 * skip.c (Ignore): Likewise.
15011 (skip_delete_command): Likewise.
15012 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15013 (library_list_start_library): Likewise.
15014 (solib_aix_current_sos): Likewise.
15015 * solib-darwin.c (get_darwin_info): Likewise.
15016 (darwin_current_sos): Likewise.
15017 * solib-dsbt.c (get_dsbt_info): Likewise.
15018 * solib-ia64-hpux.c (new_so_list): Likewise.
15019 (ia64_hpux_get_solib_linkage_addr): Likewise.
15020 * solib-spu.c (append_ocl_sos): Likewise.
15021 (spu_current_sos): Likewise.
15022 * solib-svr4.c (get_svr4_info): Likewise.
15023 (svr4_keep_data_in_core): Likewise.
15024 (library_list_start_library): Likewise.
15025 (svr4_default_sos): Likewise.
15026 (svr4_read_so_list): Likewise.
15027 * solib-target.c (library_list_start_library): Likewise.
15028 (solib_target_current_sos): Likewise.
15029 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15030 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15031 * symfile.c (default_symfile_segments): Likewise.
15032 * target-descriptions.c (tdesc_data_init): Likewise.
15033 (tdesc_create_reg): Likewise.
15034 (struct tdesc_type *): Likewise.
15035 (tdesc_create_vector): Likewise.
15036 (tdesc_set_struct_size): Likewise.
15037 (struct tdesc_type *): Likewise.
15038 (tdesc_free_feature): Likewise.
15039 (tdesc_create_feature): Likewise.
15040 * windows-nat.c (windows_add_thread): Likewise.
15041 (windows_make_so): Likewise.
15042 * xml-support.c (gdb_xml_body_text): Likewise.
15043 (gdb_xml_create_parser_and_cleanup): Likewise.
15044 (xml_process_xincludes): Likewise.
15045 * xml-syscall.c (allocate_syscalls_info): Likewise.
15046 (syscall_create_syscall_desc): Likewise.
15048 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15050 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15051 function, with code from i386_stap_parse_special_token.
15052 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15053 (i386_stap_parse_special_token): Move code to the two functions
15054 above; simplify it.
15056 2014-01-09 Pedro Alves <palves@redhat.com>
15057 Hui Zhu <hui@codesourcery.com>
15060 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15061 bp_err_string. Don't mark the location shlib_disabled if the
15062 error thrown wasn't a generic or memory error. Catch errors
15063 thrown while inserting breakpoints in overlayed code. Output
15064 error message of software breakpoints.
15065 * remote.c (remote_insert_breakpoint): If this breakpoint has
15066 target-side commands but this stub doesn't support Z0 packets,
15067 throw NOT_SUPPORTED_ERROR error.
15068 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15069 * target.h (target_insert_breakpoint): Extend comment.
15070 (target_insert_hw_breakpoint): Add comment.
15072 2014-01-08 Pedro Alves <palves@redhat.com>
15074 * remote.c (remote_add_thread): Add threads silently if starting
15076 (remote_notice_new_inferior): If in all-stop, and starting up,
15077 don't call notice_new_inferior.
15078 (get_current_thread): New function, factored out from ...
15079 (add_current_inferior_and_thread): ... this. Adjust.
15080 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15081 found any thread, then select the remote's current thread as GDB's
15082 current thread too.
15084 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15086 * NEWS: Create a new section for the next release branch.
15087 Rename the section of the current branch, now that it has
15090 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15092 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15093 * version.in: Bump version to 7.7.50.DATE-cvs.
15095 2014-01-08 Yao Qi <yao@codesourcery.com>
15097 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15098 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15099 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15101 2014-01-08 Yao Qi <yao@codesourcery.com>
15103 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15104 return value of bfd_get_filename to symbol_file_add_from_bfd.
15106 2014-01-08 Pierre Muller <muller@sourceware.org>
15109 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15110 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15111 to prim_record_mininal_symbol_and_info.
15112 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15113 in call to prim_record_minimal_symbol_and_info.
15114 (read_pe_exported_syms): Set index field of section_data.
15116 2014-01-07 Andrew Pinski <apinski@cavium.com>
15118 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15119 * features/aarch64.c: Regenerate.
15121 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15123 * target.c (return_null): Define.
15124 (update_current_target): Use it instead of return_zero for
15125 functions that return a pointer.
15127 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15129 * source.c (add_path): Fix check for duplicated paths in the previously
15132 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15134 * ada-lang.c: Remove duplicated include statements.
15135 * alphabsd-nat.c: Ditto.
15136 * amd64-darwin-tdep.c: Ditto.
15137 * amd64fbsd-nat.c: Ditto.
15138 * auto-load.c: Ditto.
15140 * breakpoint.c: Ditto.
15141 * dbxread.c: Ditto.
15142 * fork-child.c: Ditto.
15143 * gdb_usleep.c: Ditto.
15144 * i386-darwin-tdep.c: Ditto.
15145 * i386fbsd-nat.c: Ditto.
15147 * inferior.c: Ditto.
15148 * jv-lang.c: Ditto.
15149 * linux-nat.c: Ditto.
15150 * linux-tdep.c: Ditto.
15151 * m68kbsd-nat.c: Ditto.
15152 * m68klinux-nat.c: Ditto.
15153 * microblaze-tdep.c: Ditto.
15154 * mips-linux-tdep.c: Ditto.
15155 * mn10300-tdep.c: Ditto.
15156 * nto-tdep.c: Ditto.
15157 * opencl-lang.c: Ditto.
15159 * printcmd.c: Ditto.
15160 * regcache.c: Ditto.
15161 * remote-m32r-sdi.c: Ditto.
15163 * symfile.c: Ditto.
15165 * tilegx-linux-nat.c: Ditto.
15166 * tilegx-tdep.c: Ditto.
15167 * tracepoint.c: Ditto.
15169 * vaxbsd-nat.c: Ditto.
15170 * windows-nat.c: Ditto.
15171 * xtensa-tdep.c: Ditto.
15173 2014-01-07 Yao Qi <yao@codesourcery.com>
15175 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15177 2014-01-07 Yao Qi <yao@codesourcery.com>
15178 Joel Brobecker <brobecker@adacore.com>
15180 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15181 (pdc_write_regs): Likewise.
15182 (fetch_regs_kernel_thread): Likewise.
15183 (store_regs_kernel_thread): Likewise.
15185 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15187 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15188 tagged type objects to their actual type.
15190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15192 * ada-valprint.c (print_field_values): Add "language" parameter.
15193 Update calls to print_field_values and print_variant_part.
15194 Pass new parameter "language" in call to val_print instead
15195 of "current_language". Replace call to ada_val_print by call
15197 (print_variant_part): Add "language" parameter.
15198 (ada_val_print_struct_union): Update call to print_field_values.
15200 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15202 * ada-valprint.c (ui_memcpy): Delete.
15203 (ada_print_floating): Update documentation. Add empty line
15204 between between function documentation and implementation.
15205 Delete variable "buffer". Use ui_file_xstrdup in place of
15206 ui_file_put. Minor adjustments following this change.
15208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15210 * ada-valprint.c (ada_val_print_string): New function,
15211 extracted from ada_val_print_array.
15212 (ada_val_print_array): Replace extracted code by call
15213 to ada_val_print_string followed by a return. Move
15214 "else" branch to the function's top block.
15216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15218 * ada-valprint.c (ada_val_print_array): Move implementation
15219 down. Rename parameter "offset" and "val" into "offset_aligned"
15220 and "original_value" respectively. Add parameter "offset".
15222 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15224 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15225 re-organizing the code. Change the "???" message printed
15226 when target type is a TYPE_CODE_UNDEF into
15227 "<ref to undefined type>".
15229 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15231 * ada-valprint.c (print_record): Delete, implementation inlined...
15232 (ada_val_print_struct_union): ... here. Remove call to
15233 ada_check_typedef in inlined implementation.
15235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15237 * ada-valprint.c (ada_val_print_gnat_array): New function,
15238 extracted from ada_val_print_1;
15239 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15240 (ada_val_print_flt, ada_val_print_struct_union)
15241 (ada_val_print_ref): Likewise.
15242 (ada_val_print_1): Delete variables i and elttype.
15243 Replace extracted-out code by call to corresponding
15246 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15248 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15250 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15252 * ada-valprint.c (ada_val_print_1): Replace calls to
15253 ada_val_print_1 by calls to val_print.
15255 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15257 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15258 Update calls to self accordingly. Replace calls to c_val_print
15259 by calls to val_print.
15261 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15263 * ada-valprint.c (print_record): Delete declaration.
15264 (adjust_type_signedness, ada_val_print_1): Likewise.
15265 (ada_val_print): Move function implementation down.
15266 (print_variant_part, print_field_values, print_record):
15267 Move function implementation up.
15269 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15271 * python/py-type.c (typy_get_name): New function.
15272 (type_object_getset): Add entry for attribute "name".
15273 * NEWS: Add entry mentioning this new attribute.
15275 2014-01-07 Yao Qi <yao@codesourcery.com>
15277 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15280 2014-01-07 Yao Qi <yao@codesourcery.com>
15282 * gnu-nat.c (info_port_rights): Add qualifier const to
15285 2014-01-07 Yao Qi <yao@codesourcery.com>
15287 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15289 2014-01-07 Yao Qi <yao@codesourcery.com>
15291 * gnu-nat.c (make_inf) Update declaration.
15292 (make_inf): Make it static.
15293 (inf_set_traced): Likewise.
15294 (inf_port_to_thread, inf_task_died_status): Likewise.
15296 2014-01-07 Yao Qi <yao@codesourcery.com>
15298 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15300 2014-01-07 Yao Qi <yao@codesourcery.com>
15302 * gnu-nat.c (_initialize_gnu_nat): Declare.
15304 2014-01-07 Yao Qi <yao@codesourcery.com>
15306 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15308 (struct gdbarch_info) <byte_order>: Change type to
15310 <byte_order_for_code>: Likewise.
15311 * gdbarch.c, gdbarch.h: Regenerated.
15313 2014-01-06 Sasha Smundak <asmundak@google.com>
15315 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15317 2014-01-06 Tom Tromey <tromey@redhat.com>
15319 * doublest.c (convert_doublest_to_floatformat): Use const, not
15321 * somread.c (som_symtab_read): Likewise.
15323 2014-01-07 Hui Zhu <hui@codesourcery.com>
15325 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15326 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15327 (gdb_bfd_fopen): Ditto.
15328 (gdb_bfd_openr): Ditto.
15329 (gdb_bfd_openw): Ditto.
15330 (gdb_bfd_openr_iovec): Ditto.
15331 (gdb_bfd_fdopenr): Ditto.
15332 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15333 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15335 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15337 * symfile-mem.c (symbol_file_add_from_memory): Removed
15338 gdb_bfd_stash_filename.
15340 2014-01-03 Doug Evans <dje@google.com>
15342 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15345 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15347 Update year range in copyright notice of all files.
15349 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15351 * top.c (print_gdb_version): Set copyright year to 2014.
15353 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15355 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15357 For older changes see ChangeLog-2013.
15363 version-control: never