Include alloca.h unconditionally
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-21 Yao Qi <yao@codesourcery.com>
2
3 * common/common-defs.h: Include alloca.h
4 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
5 * configure: Re-generated.
6 * defs.h: Remove code handling alloca.
7 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
8 or not.
9
10 2014-11-21 Yao Qi <yao@codesourcery.com>
11
12 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
13 alloca.
14 * gnulib/import/Makefile.am: Re-generated.
15 * gnulib/import/Makefile.in: Likewise..
16 * gnulib/import/m4/gnulib-cache.m4: Likewise.
17
18 2014-11-21 Yao Qi <yao@codesourcery.com>
19
20 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
21 alphabetical order.
22
23 2014-11-21 Joel Brobecker <brobecker@adacore.com>
24
25 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
26 flag_unsigned if HIGH_BOUND is constant and negative.
27
28 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
29
30 PR breakpoints/10737
31 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
32 modifier from "struct gdbarch" when compiling without Expat (XML)
33 support.
34 (get_syscall_by_number): Likewise.
35 (get_syscall_by_name): Likewise.
36 (get_syscall_names): Likewise.
37
38 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
39
40 PR breakpoints/10737
41 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
42 set_xml_syscall_file_name to provide gdbarch.
43 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
44 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
45 * breakpoint.c (print_it_catch_syscall): Adjust call to
46 get_syscall_by_number to provide gdbarch.
47 (print_one_catch_syscall): Likewise.
48 (print_mention_catch_syscall): Likewise.
49 (print_recreate_catch_syscall): Likewise.
50 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
51 and get_syscall_by_name to provide gdbarch.
52 (catch_syscall_completer): Adjust call to get_syscall_names to
53 provide gdbarch.
54 * gdbarch.c: Regenerate.
55 * gdbarch.h: Likewise.
56 * gdbarch.sh: Forward declare "struct syscalls_info".
57 (xml_syscall_file): New variable.
58 (syscalls_info): Likewise.
59 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
60 set_xml_syscall_file_name to provide gdbarch.
61 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
62 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
63 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
64 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
65 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
66 * xml-syscall.c: Include gdbarch.h.
67 (set_xml_syscall_file_name): Accept gdbarch parameter.
68 (get_syscall_by_number): Likewise.
69 (get_syscall_by_name): Likewise.
70 (get_syscall_names): Likewise.
71 (my_gdb_datadir): Delete global variable.
72 (struct syscalls_info) <my_gdb_datadir>: New variable.
73 (struct syscalls_info) <sysinfo>: Rename variable to
74 "syscalls_info".
75 (sysinfo): Delete global variable.
76 (have_initialized_sysinfo): Likewise.
77 (xml_syscall_file): Likewise.
78 (sysinfo_free_syscalls_desc): Rename to...
79 (syscalls_info_free_syscalls_desc): ... this.
80 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
81 code to the new layout of "struct syscalls_info".
82 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
83 "syscalls_info".
84 (syscall_create_syscall_desc): Likewise.
85 (syscall_start_syscall): Likewise.
86 (syscall_parse_xml): Likewise.
87 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
88 (init_sysinfo): Rename to...
89 (init_syscalls_info): ...this. Add gdbarch as a parameter.
90 Adjust function to deal with gdbarch.
91 (xml_get_syscall_number): Delete parameter sysinfo. Accept
92 gdbarch as a parameter. Adjust code.
93 (xml_get_syscall_name): Likewise.
94 (xml_list_of_syscalls): Likewise.
95 (set_xml_syscall_file_name): Accept gdbarch as parameter.
96 (get_syscall_by_number): Likewise.
97 (get_syscall_by_name): Likewise.
98 (get_syscall_names): Likewise.
99 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
100 (get_syscall_by_number): Likewise.
101 (get_syscall_by_name): Likewise.
102 (get_syscall_names): Likewise.
103
104 2014-11-20 Doug Evans <xdje42@gmail.com>
105
106 Split struct symtab into two: struct symtab and compunit_symtab.
107 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
108 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
109 to "struct compunit_symtab *". All callers updated.
110 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
111 "struct symtab *" argument to "struct compunit_symtab *".
112 All callers updated.
113 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
114 result to "struct compunit_symtab *". All callers updated.
115 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
116 Change result to "struct compunit_symtab *". All callers updated.
117 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
118 hange type to "struct compunit_symtab *". All uses updated.
119 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
120 Change type to "struct compunit_symtab *". All uses updated.
121 * buildsym.c (struct buildsym_compunit): New struct.
122 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
123 (buildsym_compunit): New static global.
124 (finish_block_internal): Update to fetch objfile from
125 buildsym_compunit.
126 (make_blockvector): Delete objfile argument.
127 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
128 debugformat, producer.
129 (start_buildsym_compunit): New function.
130 (free_buildsym_compunit): Renamed from free_subfiles_list.
131 All callers updated.
132 (patch_subfile_names): Rewrite to use buildsym_compunit.
133 (get_compunit_symtab): New function.
134 (get_macro_table): Delete argument comp_dir. All callers updated.
135 (start_symtab): Change result to "struct compunit_symtab *".
136 All callers updated. Create the subfile of the main source file.
137 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
138 (reset_symtab_globals): Update.
139 (end_symtab_get_static_block): Update to use buildsym_compunit.
140 (end_symtab_without_blockvector): Rewrite.
141 (end_symtab_with_blockvector): Change result to
142 "struct compunit_symtab *". All callers updated.
143 Update to use buildsym_compunit. Don't set symtab->dirname,
144 instead set it in the compunit.
145 Explicitly make sure main symtab is first in its list.
146 Set debugformat, producer, blockvector, block_line_section, and
147 macrotable in the compunit.
148 (end_symtab_from_static_block): Change result to
149 "struct compunit_symtab *". All callers updated.
150 (end_symtab, end_expandable_symtab): Ditto.
151 (set_missing_symtab): Change symtab argument to
152 "struct compunit_symtab *". All callers updated.
153 (augment_type_symtab): Ditto.
154 (record_debugformat): Update to use buildsym_compunit.
155 (record_producer): Update to use buildsym_compunit.
156 * buildsym.h (struct subfile) <dirname>: Delete.
157 <producer, debugformat>: Delete.
158 <buildsym_compunit>: New member.
159 (get_compunit_symtab): Declare.
160 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
161 from primary_symtab. Change type to "struct compunit_symtab *".
162 All uses updated.
163 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
164 All callers updated.
165 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
166 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
167 symtab. Change type to "struct compunit_symtab *". All uses updated.
168 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
169 All callers updated.
170 (dw2_find_last_source_symtab): Ditto.
171 (dw2_lookup_symbol): Ditto.
172 (recursively_find_pc_sect_compunit_symtab): Renamed from
173 recursively_find_pc_sect_symtab. Change result to
174 "struct compunit_symtab *". All callers updated.
175 (dw2_find_pc_sect_compunit_symtab): Renamed from
176 dw2_find_pc_sect_symtab. Change result to
177 "struct compunit_symtab *". All callers updated.
178 (get_compunit_symtab): Renamed from get_symtab. Change result to
179 "struct compunit_symtab *". All callers updated.
180 (recursively_compute_inclusions): Change type of immediate_parent
181 argument to "struct compunit_symtab *". All callers updated.
182 (compute_compunit_symtab_includes): Renamed from
183 compute_symtab_includes. All callers updated. Rewrite to compute
184 includes of compunit_symtabs and not symtabs.
185 (process_full_comp_unit): Update to work with struct compunit_symtab.
186 (process_full_type_unit): Ditto.
187 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
188 (dwarf_decode_lines): Remove special case handling of main subfile.
189 (macro_start_file): Delete argument comp_dir. All callers updated.
190 (dwarf_decode_macro_bytes): Ditto.
191 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
192 use struct compunit_symtab.
193 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
194 * jit.c (finalize_symtab): Build compunit_symtab.
195 * jv-lang.c (get_java_class_symtab): Change result to
196 "struct compunit_symtab *". All callers updated.
197 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
198 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
199 comp_dir. Change type to "struct compunit_symtab *".
200 All uses updated.
201 (new_macro_table): Change comp_dir argument to cust,
202 "struct compunit_symtab *". All callers updated.
203 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
204 nr_primary_symtabs. All uses updated.
205 (count_symtabs_and_blocks): Update to handle compunits.
206 (report_command_stats): Update output, "primary symtabs" renamed to
207 "compunits".
208 * mdebugread.c (new_symtab): Change result to
209 "struct compunit_symtab *". All callers updated.
210 (parse_procedure): Change type of search_symtab argument to
211 "struct compunit_symtab *". All callers updated.
212 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
213 separate loop.
214 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
215 symtabs. Change type to "struct compunit_symtab *". All uses updated.
216 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
217 All uses updated.
218 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
219 All uses updated.
220 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
221 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
222 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
223 symtab. Change type to "struct compunit_symtab *". All uses updated.
224 * psymtab.c (psymtab_to_symtab): Change result type to
225 "struct compunit_symtab *". All callers updated.
226 (find_pc_sect_compunit_symtab_from_partial): Renamed from
227 find_pc_sect_symtab_from_partial. Change result type to
228 "struct compunit_symtab *". All callers updated.
229 (lookup_symbol_aux_psymtabs): Change result type to
230 "struct compunit_symtab *". All callers updated.
231 (find_last_source_symtab_from_partial): Ditto.
232 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
233 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
234 and macro_table from compunit.
235 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
236 type to "struct compunit_symtab *". All callers updated.
237 (debug_qf_lookup_symbol): Ditto.
238 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
239 debug_qf_find_pc_sect_symtab, change result type to
240 "struct compunit_symtab *". All callers updated.
241 * symfile.c (allocate_symtab): Delete objfile argument.
242 New argument cust.
243 (allocate_compunit_symtab): New function.
244 (add_compunit_symtab_to_objfile): New function.
245 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
246 Change result type to "struct compunit_symtab *". All uses updated.
247 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
248 Change result type to "struct compunit_symtab *". All uses updated.
249 * symmisc.c (print_objfile_statistics): Compute blockvector count in
250 separate loop.
251 (dump_symtab_1): Update test for primary source symtab.
252 (maintenance_info_symtabs): Update to handle compunit symtabs.
253 (maintenance_check_symtabs): Ditto.
254 * symtab.c (set_primary_symtab): Delete.
255 (compunit_primary_filetab): New function.
256 (compunit_language): New function.
257 (iterate_over_some_symtabs): Change type of arguments "first",
258 "after_last" to "struct compunit_symtab *". All callers updated.
259 Update to loop over symtabs in each compunit.
260 (error_in_psymtab_expansion): Rename symtab argument to cust,
261 and change type to "struct compunit_symtab *". All callers updated.
262 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
263 Change result type to "struct compunit_symtab *". All callers updated.
264 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
265 Change result type to "struct compunit_symtab *". All callers updated.
266 (find_pc_sect_line): Only loop over symtabs within selected compunit
267 instead of all symtabs in the objfile.
268 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
269 <compunit_symtab> New member.
270 <block_line_section>: Moved to compunit_symtab.
271 <locations_valid>: Ditto.
272 <epilogue_unwind_valid>: Ditto.
273 <macro_table>: Ditto.
274 <dirname>: Ditto.
275 <debugformat>: Ditto.
276 <producer>: Ditto.
277 <objfile>: Ditto.
278 <call_site_htab>: Ditto.
279 <includes>: Ditto.
280 <user>: Ditto.
281 <primary>: Delete
282 (SYMTAB_COMPUNIT): New macro.
283 (SYMTAB_BLOCKVECTOR): Update definition.
284 (SYMTAB_OBJFILE): Update definition.
285 (SYMTAB_DIRNAME): Update definition.
286 (struct compunit_symtab): New type. Common members among all source
287 symtabs within a compilation unit moved here. All uses updated.
288 (COMPUNIT_OBJFILE): New macro.
289 (COMPUNIT_FILETABS): New macro.
290 (COMPUNIT_DEBUGFORMAT): New macro.
291 (COMPUNIT_PRODUCER): New macro.
292 (COMPUNIT_DIRNAME): New macro.
293 (COMPUNIT_BLOCKVECTOR): New macro.
294 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
295 (COMPUNIT_LOCATIONS_VALID): New macro.
296 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
297 (COMPUNIT_CALL_SITE_HTAB): New macro.
298 (COMPUNIT_MACRO_TABLE): New macro.
299 (ALL_COMPUNIT_FILETABS): New macro.
300 (compunit_symtab_ptr): New typedef.
301 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
302
303 2014-11-20 Joel Brobecker <brobecker@adacore.com>
304
305 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
306 if the TYPE_CODE of range_type's base type does not match
307 the TYPE_CODE of encoding_type's base type.
308
309 2014-11-19 Joel Brobecker <brobecker@adacore.com>
310
311 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
312 it starts with '<'.
313
314 2014-11-19 Joel Brobecker <brobecker@adacore.com>
315
316 * ada-lang.c (ada_is_redundant_range_encoding): New function.
317 (ada_is_redundant_index_type_desc): New function.
318 (to_fixed_array_type): Ignore parallel XA type if redundant.
319
320 2014-11-19 Joel Brobecker <brobecker@adacore.com>
321
322 * ada-lang.c (constrained_packed_array_type): Set the length
323 of the return array as if both bounds where zero if that
324 returned array's index type is dynamic.
325
326 2014-11-19 Yao Qi <yao@codesourcery.com>
327
328 * config/i386/go32.mh (CC): Remove.
329
330 2014-11-18 Doug Evans <xdje42@gmail.com>
331
332 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
333 updated.
334
335 2014-11-18 Doug Evans <xdje42@gmail.com>
336
337 * buildsym.c (buildsym_objfile): New static global.
338 (buildsym_comp_dir): New static global.
339 (finish_block_internal): Delete arg objfile. All callers updated.
340 (finish_block): Delete arg objfile. All callers updated.
341 (start_subfile): Delete arg dirname. All callers updated.
342 (patch_subfile_names): Update buildsym_comp_dir.
343 (get_macro_table): Delete arg objfile. All callers updated.
344 (start_symtab): New arg objfile. All callers updated.
345 Rename arg dirname to comp_dir.
346 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
347 (end_symtab_get_static_block): Delete arg objfile. All callers
348 updated.
349 (end_symtab_without_blockvector): Ditto.
350 (end_symtab_with_blockvector): Ditto.
351 (end_symtab_from_static_block): Ditto.
352 (end_symtab): Ditto.
353 (end_expandable_symtab): Ditto.
354 (augment_type_symtab): Ditto.
355 * coffread.c (coff_start_symtab): New arg objfile. All callers
356 updated.
357
358 2014-11-18 Doug Evans <xdje42@gmail.com>
359
360 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
361 updated.
362
363 2014-11-18 Doug Evans <xdje42@gmail.com>
364
365 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
366 symtab.dirname updated to use it.
367
368 2014-11-18 Doug Evans <xdje42@gmail.com>
369
370 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
371 symtab.objfile updated to use it.
372
373 2014-11-18 Doug Evans <xdje42@gmail.com>
374
375 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
376
377 2014-11-18 Doug Evans <xdje42@gmail.com>
378
379 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
380 SYMBOL_OBJFILE.
381 * findvar.c (default_read_var_value): Ditto.
382 * jv-lang.c (add_class_symtab_symbol): Ditto.
383 * parse.c (operator_check_standard): Ditto.
384 * printcmd.c (address_info): Ditto.
385 * symtab.c (fixup_symbol_section): Ditto.
386 (skip_prologue_sal): Ditto.
387 * tracepoint.c (scope_info): Ditto.
388 * valops.c (find_function_in_inferior): Ditto.
389 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
390 * python/py-symbol.c (set_symbol): Ditto.
391
392 2014-11-18 Doug Evans <xdje42@gmail.com>
393
394 * buildsym.c (main_subfile): New static global.
395 (free_subfiles_list): New function.
396 (start_symtab): Set main_subfile.
397 (restart_symtab): Replace init of subfiles, current_subfile with
398 call to free_subfiles_list.
399 (watch_main_source_file_lossage): Use main_subfile.
400 (reset_symtab_globals): Replace init of current_subfile with call
401 to free_subfiles_list.
402 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
403 functions, split out from ...
404 (end_symtab_from_static_block): ... here. Rewrite to call them.
405
406 2014-11-18 Doug Evans <xdje42@gmail.com>
407
408 The result of symtab expansion is always a primary symtab.
409 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
410 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
411 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
412 (psymtab_to_symtab): Add comment and assert.
413 (map_matching_symbols_psymtab): Remove unnecessary test for
414 non-primary symtab.
415
416 2014-11-15 Doug Evans <xdje42@gmail.com>
417
418 PR symtab/17559
419 * symtab.c (find_pc_line_symtab): New function.
420 * symtab.h (find_pc_line_symtab): Declare.
421 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
422 find_pc_symtab.
423 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
424 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
425 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
426 * tui/tui-win.c (make_visible_with_new_height): Ditto.
427 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
428 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
429
430 2014-11-15 Doug Evans <xdje42@gmail.com>
431
432 * symtab.c (expand_symtab_containing_pc): Renamed from
433 find_pc_sect_symtab_via_partial. All callers updated.
434
435 2014-11-15 Yao Qi <yao@codesourcery.com>
436
437 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
438
439 2014-11-14 Joel Brobecker <brobecker@adacore.com>
440
441 * common/common-defs.h: Move <stdarg.h> #include ahead of
442 <stdio.h> #include.
443
444 2014-11-14 Pedro Alves <palves@redhat.com>
445
446 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
447 [!PHONY_ICONV] (gdb_iconv): New function.
448 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
449
450 2014-11-13 Doug Evans <dje@google.com>
451
452 PR symtab/17591
453 * dwarf2read.c (find_slot_in_mapped_hash): Handle
454 "(anonymous namespace)".
455
456 2014-11-13 Doug Evans <dje@google.com>
457
458 * dwarf2read.c (update_enumeration_type_from_children): Avoid
459 infinite loop.
460
461 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 * NEWS (maint set target-async): Fix typo.
464
465 2014-11-12 Pedro Alves <palves@redhat.com>
466
467 * infrun.c (enum infwait_states, infwait_state): Delete.
468
469 2014-11-12 Pedro Alves <palves@redhat.com>
470
471 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
472 Rewrite stepping over a permanent breakpoint.
473 (thread_still_needs_step_over, proceed): Don't set
474 stepping_over_breakpoint for permanent breakpoints.
475 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
476 single-step breakpoints out of the target on hardware step
477 targets.
478 (process_event_stop_test): If stepping a permanent breakpoint
479 doesn't hit the step-resume breakpoint, delete the step-resume
480 breakpoint.
481 (switch_back_to_stepped_thread): Also check if the stepped thread
482 has advanced already on hardware step targets.
483 (currently_stepping): Return true if the thread stepped a
484 breakpoint.
485
486 2014-11-12 Pedro Alves <palves@redhat.com>
487
488 Mark locations as permanent, not the whole breakpoint.
489 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
490 (mark_breakpoints_out): Don't mark permanent breakpoints as
491 uninserted.
492 (breakpoint_init_inferior): Use mark_breakpoints_out.
493 (breakpoint_here_p): Adjust.
494 (bpstat_stop_status, describe_other_breakpoints): Remove handling
495 of permanent breakpoints.
496 (make_breakpoint_permanent): Mark each location as permanent,
497 instead of marking the breakpoint.
498 (add_location_to_breakpoint): If the location is permanent, mark
499 it as such, and as inserted.
500 (init_breakpoint_sal): Don't make the breakpoint permanent here.
501 (bp_location_compare, update_global_location_list): Adjust.
502 (update_breakpoint_locations): Don't make the breakpoint permanent
503 here.
504 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
505 breakpoints.
506 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
507 (struct bp_location) <permanent>: New field.
508 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
509 reference to bp_permanent.
510
511 2014-11-12 Pedro Alves <palves@redhat.com>
512
513 * arch-utils.c (default_skip_permanent_breakpoint): New function.
514 * arch-utils.h (default_skip_permanent_breakpoint): New
515 declaration.
516 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
517 Install default_skip_permanent_breakpoint as default method.
518 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
519 (i386_gdbarch_init): Don't install it.
520 * infrun.c (resume): Assume there's always a
521 gdbarch_skip_permanent_breakpoint implementation.
522 * gdbarch.h, gdbarch.c: Regenerate.
523
524 2014-11-11 Daniel Colascione <dancol@dancol.org>
525
526 Warn about cross-PID-namespace debugging.
527 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
528 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
529 * linux-thread-db.c (check_pid_namespace_match): New function.
530 (thread_db_inferior_created): Call it.
531
532 2014-11-10 Doug Evans <xdje42@gmail.com>
533
534 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
535 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
536
537 2014-11-10 Doug Evans <xdje42@gmail.com>
538
539 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
540
541 2014-11-10 Doug Evans <xdje42@gmail.com>
542
543 PR symtab/17564
544 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
545 (lookup_static_symbol): Move definition to new location and rewrite.
546 (lookup_symbol_in_objfile): New function.
547 (lookup_symbol_global_iterator_cb): Call it.
548
549 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
550
551 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
552
553 2014-11-07 Pedro Alves <palves@redhat.com>
554
555 * infrun.c (process_event_stop_test) <subroutine check>: Don't
556 check if we did a "nexti" inside a prologue.
557 * symtab.c (in_prologue): Delete function.
558 * symtab.h (in_prologue): Delete declaration.
559
560 2014-11-06 Doug Evans <xdje42@gmail.com>
561
562 * symtab.h (lookup_global_symbol): Improve function comment.
563
564 2014-11-06 Doug Evans <xdje42@gmail.com>
565
566 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
567 All callers updated.
568 * symtab.h (lookup_global_symbol): Update decl.
569 (lookup_static_symbol): Move decl to better location.
570
571 2014-11-06 Doug Evans <xdje42@gmail.com>
572
573 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
574
575 2014-11-06 Doug Evans <xdje42@gmail.com>
576
577 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
578 All callers updated.
579 (lookup_symbol_in_all_objfiles): Renamed from
580 lookup_symbol_aux_symtabs. All callers updated.
581 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
582 All callers updated.
583 (lookup_symbol_in_objfile_symtabs): Renamed from
584 lookup_symbol_aux_objfile. All callers updated.
585
586 2014-11-06 Doug Evans <xdje42@gmail.com>
587
588 * symtab.c (lookup_symbol_in_block): Renamed from
589 lookup_symbol_aux_block. All callers updated.
590
591 2014-11-06 Doug Evans <xdje42@gmail.com>
592
593 * symtab.c (lookup_static_symbol): Renamed from
594 lookup_static_symbol_aux. All callers updated.
595 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
596 All callers updated.
597
598 2014-11-06 Doug Evans <xdje42@gmail.com>
599
600 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
601 * block.c (block_lookup_symbol): Use it.
602 * cp-support.c (make_symbol_overload_list_block): Use it.
603 * symtab.c (iterate_over_symbols): Use it.
604
605 2014-11-06 Doug Evans <xdje42@gmail.com>
606
607 * symtab.c (lookup_block_symbol): Moved to ...
608 * block.c (block_lookup_symbol): ... here and renamed.
609 All callers updated.
610 * block.h (block_lookup_symbol): Declare.
611 * symtab.h (lookup_block_symbol): Delete.
612
613 2014-11-06 Doug Evans <xdje42@gmail.com>
614
615 * ada-lang.c (ada_make_symbol_completion_list): Use
616 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
617 * symtab.c (lookup_objfile_from_block): Ditto.
618
619 2014-11-06 Doug Evans <xdje42@gmail.com>
620
621 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
622 TYPE_CODE_STRUCT.
623
624 2014-11-06 Doug Evans <xdje42@gmail.com>
625
626 * objfiles.c (get_objfile_arch): Constify.
627 * objfiles.h (get_objfile_arch): Update prototype.
628 * solib.c (solib_global_lookup): Fetch arch from objfile,
629 not target_gdbarch.
630
631 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
632
633 * nios2-tdep.c (wild_insn): Delete.
634 (profiler_insn, irqentry_insn): Delete.
635 (nios2_match_sequence): Delete.
636 (nios2_analyze_prologue): Update comments. Remove matching
637 of obsolete profiler_insn and irqentry_insn sequences.
638
639 2014-11-05 Alan Modra <amodra@gmail.com>
640
641 * charset.c (convert_between_encodings): Shrink obstack using
642 obstack_blank_fast.
643 * minsyms.c (install_minimal_symbols): Likewise.
644 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
645 to char* before doing pointer arithmetic.
646
647 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
648
649 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
650
651 2014-11-04 Pedro Alves <palves@redhat.com>
652
653 * breakpoint.c (breakpoint_thread_match): Delete function.
654 * breakpoint.h (breakpoint_thread_match): Delete declaration.
655
656 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
657
658 PR c++/17494
659 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
660 the method args also under EVAL_SKIP when evaluating method
661 calls under EVAL_SKIP.
662
663 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
664
665 * dwarf2loc.c (read_pieced_value): Do big endian
666 processing only if gdb_regnum is not -1.
667 (write_pieced_value): Ditto.
668
669 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
670
671 * arm-linux-tdep.c (arm_linux_init_abi): Use
672 info.byte_order_for_code to choose endianity of breakpoint
673 instructions snippets.
674
675 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
676
677 * arm-tdep.c (extract_arm_insn): Use
678 gdbarch_byte_order_for_code to read arm instruction.
679
680 2014-11-02 Doug Evans <xdje42@gmail.com>
681
682 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
683
684 2014-11-02 Doug Evans <xdje42@gmail.com>
685
686 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
687 main_subfile before returning.
688
689 2014-10-31 Doug Evans <xdje42@gmail.com>
690
691 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
692 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
693
694 2014-10-31 Doug Evans <xdje42@gmail.com>
695
696 * valops.c (value_cast_pointers): Fix whitespace.
697 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
698 Ditto.
699
700 2014-10-30 Doug Evans <dje@google.com>
701
702 * NEWS: Mention ability add attributes to gdb.Objfile and
703 gdb.Progspace objects.
704 * python/py-objfile.c (objfile_object): New member dict.
705 (objfpy_dealloc): Py_XDECREF dict.
706 (objfpy_initialize): Initialize dict.
707 (objfile_getset): Add __dict__.
708 (objfile_object_type): Set tp_dictoffset member.
709 * python/py-progspace.c (progspace_object): New member dict.
710 (pspy_dealloc): Py_XDECREF dict.
711 (pspy_initialize): Initialize dict.
712 (pspace_getset): Add __dict__.
713 (pspace_object_type): Set tp_dictoffset member.
714
715 2014-10-30 Yao Qi <yao@codesourcery.com>
716
717 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
718 replace '\\' with '\\\\'.
719
720 2014-10-29 Joel Brobecker <brobecker@adacore.com>
721
722 GDB 7.8.1 released.
723
724 2014-10-29 Pedro Alves <palves@redhat.com>
725
726 PR gdb/17408
727 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
728 instead of assuming a thread with a stepping range is always
729 stepping.
730
731 2014-10-29 Pedro Alves <palves@redhat.com>
732
733 PR python/17372
734 * event-top.c (change_line_handler): Call
735 gdb_rl_callback_handler_remove instead of
736 rl_callback_handler_remove.
737 (callback_handler_installed): New global.
738 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
739 (gdb_rl_callback_handler_reinstall): New functions.
740 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
741 gdb_rl_callback_handler_install instead of
742 rl_callback_handler_remove and rl_callback_handler_install.
743 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
744 instead of rl_callback_handler_remove.
745 * event-top.h (gdb_rl_callback_handler_remove)
746 (gdb_rl_callback_handler_install)
747 (gdb_rl_callback_handler_reinstall): New declarations.
748 * infrun.c (reinstall_readline_callback_handler_cleanup): New
749 cleanup function.
750 (fetch_inferior_event): Install it.
751 * top.c (gdb_readline_wrapper_line) Call
752 gdb_rl_callback_handler_remove instead of
753 rl_callback_handler_remove.
754 (gdb_readline_wrapper_cleanup): Don't call
755 rl_callback_handler_install.
756
757 2014-10-29 Pedro Alves <palves@redhat.com>
758
759 * event-top.c (command_line_handler): Clear the first byte of
760 linebuffer, when it is first allocated.
761
762 2014-10-29 Pedro Alves <palves@redhat.com>
763
764 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
765 TRY_CATCH.
766
767 2014-10-29 Pedro Alves <palves@redhat.com>
768
769 PR tui/16138
770 PR tui/17519
771 * tui/tui-interp.c (tui_is_toplevel): Delete global.
772 (tui_allowed_p): Delete function.
773 * tui/tui.c: Include "interps.h".
774 (tui_enable): Don't use tui_allowed_p. Error out here with
775 detailed error messages if the TUI is the top level interpreter,
776 or if output is not a terminal. Use newterm instead of initscr,
777 and error out if initializing the terminal fails. Also error out if
778 the terminal doesn't support cursor addressing.
779 * tui/tui.h (tui_allowed_p): Delete declaration.
780
781 2014-10-29 Joel Brobecker <brobecker@adacore.com>
782
783 * arm-tdep.c (arm_skip_stack_protector): Return early if
784 address loaded by first "ldr" instruction does not have
785 a corresponding minimal symbol. Update comment.
786
787 2014-10-29 Yao Qi <yao@codesourcery.com>
788
789 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
790 loaded address correctly of ldr instruction.
791
792 2014-10-28 Pedro Alves <palves@redhat.com>
793
794 PR gdb/12623
795 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
796 field.
797 * infrun.c (resume) <stepping breakpoint instruction>: Set the
798 thread's stepped_breakpoint field. Skip if reverse debugging.
799 Add comment.
800 (init_thread_stepping_state, handle_signal_stop): Clear the
801 thread's stepped_breakpoint field.
802
803 2014-10-27 Pedro Alves <palves@redhat.com>
804
805 * remote.c (remote_thread_alive): New, factored out from ...
806 (remote_thread_alive): ... this.
807 (remote_update_thread_list): Bail out before deleting threads if
808 the target returned an empty list, and, the current thread has a
809 magic/fake ptid.
810
811 2014-10-27 Pedro Alves <palves@redhat.com>
812
813 * infrun.c (handle_signal_stop): Also skip handlers when a random
814 signal arrives while handling a "stepi" or a "nexti". Set the
815 thread's 'step_after_step_resume_breakpoint' flag.
816
817 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
818
819 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
820 (arm_record_ld_st_imm_offset): Reimplement to cover all
821 load/store cases for ARM opcode 010.
822 (arm_record_ld_st_multiple): Reimplement to cover all
823 load/store cases for ARM opcode 100.
824
825 2014-10-26 Doug Evans <xdje42@gmail.com>
826
827 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
828
829 2014-10-26 Doug Evans <xdje42@gmail.com>
830
831 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
832 parameter "kind" to "block_index".
833 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
834 "block_index".
835 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
836
837 2014-10-26 Doug Evans <xdje42@gmail.com>
838
839 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
840
841 2014-10-26 Doug Evans <xdje42@gmail.com>
842
843 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
844 obstack_alloc.
845
846 2014-10-26 Doug Evans <xdje42@gmail.com>
847
848 * parser-defs.h (block_found): Move decl from here ...
849 * symtab.h (block_found): ... to here.
850
851 2014-10-26 Doug Evans <xdje42@gmail.com>
852
853 * symtab.h (struct field_of_this_result): Fix typo in comment.
854 (lookup_symbol_in_language): Move function comment here.
855 (lookup_symbol): Improve function comment.
856 (basic_lookup_symbol_nonlocal): Ditto.
857 (lookup_symbol_static, lookup_symbol_global): Ditto.
858 (lookup_symbol_aux_block): Ditto.
859 (lookup_language_this): Add function comment.
860 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
861 function comment.
862 (lookup_block_symbol): Improve function comment.
863 (lookup_struct): Fix capitalization in function comment.
864 (lookup_transparent_type): Add function comment.
865 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
866 Improve function comment.
867 (lookup_objfile_from_block): Add function comment.
868 * symtab.c (lookup_symbol_in_language): Update function comment.
869 (lookup_symbol, lookup_language_this): Ditto.
870 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
871 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
872 (basic_lookup_symbol_nonlocal): Ditto.
873 (lookup_symbol_static, lookup_symbol_global): Ditto.
874 (lookup_transparent_type, lookup_block_symbol): Ditto.
875
876 2014-10-25 Doug Evans <xdje42@gmail.com>
877
878 * symtab.c (types_info): Delete forward decl.
879 (functions_info, variables_info, sources_info): Ditto.
880 (_initialize_symtab): Rewrite forward decl to use
881 initialize_file_ftype.
882
883 2014-10-25 Doug Evans <xdje42@gmail.com>
884
885 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
886
887 2014-10-25 Doug Evans <xdje42@gmail.com>
888
889 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
890 of local var child_die.
891
892 2014-10-24 Don Breazeal <donb@codesourcery.com>
893
894 * infrun.c (follow_fork_inferior): Update fork message printing
895 to use target_terminal_ours_for_output instead of
896 target_terminal_ours, to use _() for all format strings, to print
897 "vfork" instead of "fork" for vforks, and to add a detach message.
898 (handle_vfork_child_exec_or_exit): Update message printing to use
899 target_terminal_ours_for_output instead of target_terminal_ours, to
900 use _() for all format strings, and to fix some formatting.
901
902 2014-10-24 Pedro Alves <palves@redhat.com>
903
904 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
905 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
906 * config/vax/vax.mh: Delete.
907 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
908 obsolete configurations section.
909 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
910 * vax-nat.c: Delete file.
911
912 2014-10-24 Pedro Alves <palves@redhat.com>
913
914 * NEWS (Removed targets): Add OS/arch column.
915
916 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
917
918 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
919 on the arg type of a constructor only if it is of reference type.
920
921 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
922
923 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
924 accessors and constants from nios2 opcodes update.
925 (nios2_get_next_pc): Likewise.
926
927 2014-10-19 Doug Evans <xdje42@gmail.com>
928
929 * gdbthread.h (set_running): Fix comment.
930 (set_executing, finish_thread_state): Fix comment.
931
932 2014-10-18 Doug Evans <xdje42@gmail.com>
933
934 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
935
936 2014-10-17 Doug Evans <dje@google.com>
937
938 * NEWS: Mention new event gdb.clear_objfiles.
939 * python/py-event.h (emit_clear_objfiles_event): Clear
940 * python/py-events.h (events_object): New member clear_objfiles.
941 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
942 event.
943 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
944 emit clear_objfiles event.
945 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
946 function.
947 (emit_clear_objfiles_event): New function.
948 (clear_objfiles): New event.
949 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
950 Declare.
951 * python/python.c (_initialize_python): Call
952 gdbpy_initialize_clear_objfiles_event.
953
954 2014-10-17 Doug Evans <dje@google.com>
955
956 * NEWS: Mention new gdb.Objfile.progspace attribute.
957 * python/py-objfile.c (objfpy_get_progspace): New function.
958 (objfile_getset): New entry for "progspace".
959
960 2014-10-17 Pedro Alves <palves@redhat.com>
961
962 PR gdb/17471
963 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
964 returns a copy of the input.
965 (run_command_1, continue_command, step_1, jump_command)
966 (signal_command, until_command, advance_command, finish_command)
967 (attach_command): Adjust and install a cleanup to free the
968 stripped args.
969
970 2014-10-17 Pedro Alves <palves@redhat.com>
971
972 PR gdb/17300
973 * infcmd.c (continue_1): If continuing all threads in the
974 foreground, make sure the inferior's terminal settings are put in
975 effect.
976
977 2014-10-17 Pedro Alves <palves@redhat.com>
978
979 PR gdb/17472
980 * annotate.c (annotate_breakpoints_invalid): Use
981 target_terminal_our_for_output instead of target_terminal_ours.
982 Give back the terminal to the target.
983 (annotate_frames_invalid): Likewise.
984
985 2014-10-17 Pedro Alves <palves@redhat.com>
986
987 * target.c (enum terminal_state): New enum.
988 (terminal_state): New global.
989 (target_terminal_init): New function.
990 (target_terminal_inferior): Skip if inferior already owns the
991 terminal.
992 (target_terminal_ours, target_terminal_ours_for_output): New
993 functions.
994 * target.h (target_terminal_init): Convert to function prototype.
995 (target_terminal_ours_for_output): Convert to function prototype
996 and tweak comment.
997 (target_terminal_ours): Convert to function prototype and tweak
998 comment.
999 * windows-nat.c (do_initial_windows_stuff): Call
1000 target_terminal_init instead of child_terminal_init_with_pgrp.
1001
1002 2014-10-17 Pedro Alves <palves@redhat.com>
1003
1004 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1005 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1006 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1007 solib-osf.c.
1008 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1009 * ada-lang.h [__alpha__ && __osf__]
1010 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1011 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1012 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1013 GDB_OSABI_OSF1.
1014 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1015 files.
1016 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1017 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1018 * configure: Regenerate.
1019 * configure.ac: Remove references to osf.
1020 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1021 section. Remove all other references to osf.
1022 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1023 Remove all other references to osf.
1024 * dec-thread.c: Delete file.
1025 * defs.h (GDB_OSABI_OSF1): Delete.
1026 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1027 defined.
1028 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1029 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1030 Delete code.
1031 (unconditionally_kill_inferior)
1032 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1033 * solib-osf.c: Delete file.
1034
1035 2014-10-17 Pedro Alves <palves@redhat.com>
1036
1037 * remote.c (clear_threads_listing_context): Move higher up, out of
1038 the HAVE_LIBEXPAT guard.
1039
1040 2014-10-16 Tristan Gingold <gingold@adacore.com>
1041
1042 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1043 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1044 on amd64.
1045
1046 2014-10-15 Pedro Alves <palves@redhat.com>
1047
1048 * dec-thread.c (dec_thread_count_gdb_threads)
1049 (dec_thread_add_gdb_thread): Delete.
1050 (dec_thread_update_thread_list): Delete.
1051 (dec_thread_find_new_threads): Rename to ...
1052 (dec_thread_update_thread_list): ... this. Delete GDB-size
1053 threads that are no longer found in dec_thread_list.
1054 (resync_thread_list): Delete.
1055 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1056 resync_thread_list.
1057
1058 2014-10-15 Pedro Alves <palves@redhat.com>
1059
1060 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1061 * remote.c (remote_update_thread_list): Skip calling prune_threads
1062 if any thread listing method is supported, and instead walk over
1063 the set of remote threads listed, deleting those that are not
1064 found in GDB's thread list.
1065
1066 2014-10-15 Pedro Alves <palves@redhat.com>
1067
1068 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1069 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1070 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1071 (bsd_uthread_target): Adjust.
1072 * corelow.c (core_open): Adjust.
1073 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1074 (dec_thread_update_thread_list): New function.
1075 (init_dec_thread_ops): Adjust.
1076 * gdbthread.h (prune_threads): New declaration.
1077 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1078 (thread_db_update_thread_list): ... this. Call prune_threads.
1079 (init_thread_db_ops): Adjust.
1080 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1081 (procfs_update_thread_list): ... this. Call prune_threads.
1082 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1083 Adjust.
1084 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1085 (obsd_update_thread_list): ... this. Call prune_threads.
1086 (obsd_add_target): Adjust.
1087 * procfs.c (procfs_target): Adjust.
1088 (procfs_notice_thread): Update comment.
1089 (procfs_find_new_threads): Rename to ...
1090 (procfs_update_thread_list): ... this. Call prune_threads.
1091 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1092 comment.
1093 (ravenscar_wait): Adjust.
1094 (ravenscar_find_new_threads): Rename to ...
1095 (ravenscar_update_thread_list): ... this. Call prune_threads.
1096 (init_ravenscar_thread_ops): Adjust.
1097 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1098 (record_btrace_update_thread_list): ... this. Adjust comment.
1099 (init_record_btrace_ops): Adjust.
1100 * remote.c (remote_threads_info): Rename to ...
1101 (remote_update_thread_list): ... this. Call prune_threads.
1102 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1103 Adjust.
1104 * sol-thread.c (check_for_thread_db): Adjust.
1105 (sol_find_new_threads_callback): Rename to ...
1106 (sol_update_thread_list_callback): ... this.
1107 (sol_find_new_threads): Rename to ...
1108 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1109 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1110 * target-delegates.c: Regenerate.
1111 * target.c (target_find_new_threads): Rename to ...
1112 (target_update_thread_list): ... this.
1113 * target.h (struct target_ops): Rename to_find_new_threads field
1114 to to_update_thread_list.
1115 (target_find_new_threads): Rename to ...
1116 (target_update_thread_list): ... this.
1117 * thread.c (prune_threads): Make extern.
1118 (update_thread_list): Adjust.
1119
1120 2014-10-15 Pedro Alves <palves@redhat.com>
1121
1122 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1123 Add describing comment. Return -1 if the qL packet is not
1124 supported.
1125 (struct thread_item, thread_item_t): Move higher up in
1126 the file. Add comments.
1127 (struct threads_parsing_context): Move higher up in
1128 the file, add comments, and remote to ...
1129 (struct threads_listing_context): ... this.
1130 (remote_newthread_step): Don't add the thread to GDB's thread
1131 database here. Instead push it to the thread_listing_context
1132 list.
1133 (remote_find_new_threads): Rename to ...
1134 (remote_get_threads_with_ql): ... this. Add target_ops and
1135 targets_listing_context parameters. Pass down context.
1136 (start_thread): Adjust.
1137 (clear_threads_parsing_context): Rename to ...
1138 (clear_threads_listing_context): ... this.
1139 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1140 remote_threads_info.
1141 (remote_get_threads_with_qthreadinfo): Ditto.
1142 (remote_threads_info): Reimplement.
1143
1144 2014-10-15 Pedro Alves <palves@redhat.com>
1145
1146 * infrun.c (resume): Don't force displaced-stepping for all
1147 single-steps on software single-stepping archs.
1148
1149 2014-10-15 Pedro Alves <palves@redhat.com>
1150
1151 * breakpoint.c (single_step_breakpoints): Delete global.
1152 (insert_single_step_breakpoint): Adjust to store the breakpoint
1153 pointer in the current thread.
1154 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1155 (cancel_single_step_breakpoints): Delete functions.
1156 (breakpoint_has_location_inserted_here): Make extern.
1157 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1158 breakpoint list.
1159 * breakpoint.h (breakpoint_has_location_inserted_here): New
1160 declaration.
1161 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1162 (cancel_single_step_breakpoints): Remove declarations.
1163 * gdbthread.h (struct thread_control_state)
1164 <single_step_breakpoints>: New field.
1165 (delete_single_step_breakpoints)
1166 (thread_has_single_step_breakpoints_set)
1167 (thread_has_single_step_breakpoint_here): New declarations.
1168 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1169 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1170 (singlestep_pc): Delete globals.
1171 (infrun_thread_ptid_changed): Remove references to removed
1172 globals.
1173 (resume_cleanups): Delete the current thread's single-step
1174 breakpoints.
1175 (maybe_software_singlestep): Remove references to removed globals.
1176 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1177 delete_single_step_breakpoints.
1178 (init_wait_for_inferior): Remove references to removed globals.
1179 (delete_thread_infrun_breakpoints): Delete the thread's
1180 single-step breakpoints too.
1181 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1182 single-step breakpoints here.
1183 (delete_stopped_threads_single_step_breakpoints): New function.
1184 (adjust_pc_after_break): Adjust to use
1185 thread_has_single_step_breakpoints_set.
1186 (handle_inferior_event): Remove references to removed globals.
1187 Use delete_stopped_threads_single_step_breakpoints.
1188 (handle_signal_stop): Adjust to per-thread single-step
1189 breakpoints. Swap test order to do cheaper tests first.
1190 (switch_back_to_stepped_thread): Extend debug output. Remove
1191 references to removed globals.
1192 * record-full.c (record_full_wait_1): Adjust to per-thread
1193 single-step breakpoints.
1194 * thread.c (delete_single_step_breakpoints)
1195 (thread_has_single_step_breakpoints_set)
1196 (thread_has_single_step_breakpoint_here): New functions.
1197 (clear_thread_inferior_resources): Also delete the thread's
1198 single-step breakpoints.
1199
1200 2014-10-15 Pedro Alves <palves@redhat.com>
1201
1202 * thread.c (delete_thread_breakpoint): New function.
1203 (delete_step_resume_breakpoint)
1204 (delete_exception_resume_breakpoint): Use it.
1205 (delete_at_next_stop): New function.
1206 (clear_thread_inferior_resources): Use delete_at_next_stop.
1207
1208 2014-10-15 Pedro Alves <palves@redhat.com>
1209
1210 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1211 (breakpoint_inserted_here_p): ... here. Remove special case for
1212 software single-step breakpoints.
1213 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1214 (software_breakpoint_inserted_here_p): ... here. Remove special
1215 case for software single-step breakpoints.
1216 (bp_target_info_copy_insertion_state)
1217 (deprecated_insert_raw_breakpoint)
1218 (deprecated_remove_raw_breakpoint): Delete functions.
1219 * breakpoint.h (deprecated_insert_raw_breakpoint)
1220 (deprecated_remove_raw_breakpoint): Remove declarations.
1221
1222 2014-10-15 Pedro Alves <palves@redhat.com>
1223
1224 PR breakpoints/9649
1225 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1226 Delete array globals.
1227 (single_step_breakpoints): New global.
1228 (breakpoint_xfer_memory): Remove special handling for single-step
1229 breakpoints.
1230 (update_breakpoints_after_exec): Delete bp_single_step
1231 breakpoints.
1232 (detach_breakpoints): Remove special handling for single-step
1233 breakpoints.
1234 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1235 (bpstat_stop_status): Add comment.
1236 (bpstat_what, bptype_string, print_one_breakpoint_location)
1237 (adjust_breakpoint_address, init_bp_location): Handle
1238 bp_single_step.
1239 (new_single_step_breakpoint): New function.
1240 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1241 handling for single-step breakpoints.
1242 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1243 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1244 Rewrite.
1245 (detach_single_step_breakpoints, find_single_step_breakpoint):
1246 Delete functions.
1247 (breakpoint_has_location_inserted_here): New function.
1248 (single_step_breakpoint_inserted_here_p): Rewrite.
1249 * breakpoint.h: Remove FIXME.
1250 (enum bptype) <bp_single_step>: New enum value.
1251 (insert_single_step_breakpoint): Update comment.
1252 * infrun.c (resume_cleanups)
1253 (delete_step_thread_step_resume_breakpoint): Remove single-step
1254 breakpoints.
1255 (fetch_inferior_event): Install a cleanup that removes infrun
1256 breakpoints.
1257 (switch_back_to_stepped_thread) <expect thread advanced also>:
1258 Clear step-over info.
1259
1260 2014-10-15 Pedro Alves <palves@redhat.com>
1261
1262 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1263 (delete_thread_infrun_breakpoints): New function, with parts
1264 salvaged from delete_step_resume_breakpoint_callback.
1265 (delete_step_thread_step_resume_breakpoint): Delete.
1266 (for_each_just_stopped_thread_callback_func): New typedef.
1267 (for_each_just_stopped_thread): New function.
1268 (delete_just_stopped_threads_infrun_breakpoints): New function.
1269 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1270 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1271 ... this. Adjust.
1272 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1273
1274 2014-10-15 Pedro Alves <palves@redhat.com>
1275
1276 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1277 trying to step past a non-steppable watchpoint.
1278 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1279 field.
1280 * infrun.c (struct step_over_info): Add new field
1281 'nonsteppable_watchpoint_p' and adjust comments.
1282 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1283 Adjust.
1284 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1285 (stepping_past_nonsteppable_watchpoint): New function.
1286 (step_over_info_valid_p): Also return true if stepping past a
1287 nonsteppable watchpoint.
1288 (proceed): Adjust call to set_step_over_info. Remove reference to
1289 init_infwait_state.
1290 (init_wait_for_inferior): Remove reference to init_infwait_state.
1291 (waiton_ptid): Delete global.
1292 (struct execution_control_state)
1293 <stepped_after_stopped_by_watchpoint>: Delete field.
1294 (wait_for_inferior, fetch_inferior_event): Always pass
1295 minus_one_ptid to target_wait.
1296 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1297 field.
1298 (init_infwait_state): Delete function.
1299 (handle_inferior_event): Remove infwait_state handling.
1300 (handle_signal_stop) <watchpoints handling>: Adjust after
1301 stepped_after_stopped_by_watchpoint removal. Don't remove
1302 breakpoints here nor set infwait_state. Set the thread's
1303 stepping_over_watchpoint flag, and call keep_going instead.
1304 (keep_going): Handle stepping_over_watchpoint. Adjust
1305 set_step_over_info calls.
1306 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1307 function.
1308
1309 2014-10-15 Pedro Alves <palves@redhat.com>
1310
1311 * infrun.c (step_over_info_valid_p): New function.
1312 (resume): Use step_over_info_valid_p instead of checking the
1313 threads's trap_expected flag.
1314
1315 2014-10-15 Doug Evans <dje@google.com>
1316 Walfred Tedeschi <walfred.tedeschi@intel.com>
1317
1318 PR python/17364
1319 * python/lib/gdb/__init__.py (packages): Add "printer".
1320 * python/lib/gdb/command/bound_registers.py: Moved to ...
1321 * python/lib/gdb/printer/bound_registers.py: ... here.
1322 Add printer to global set of builtin printers. Rename printer from
1323 "bound" to "mpx_bound128".
1324 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1325 registered as global "builtin" printer.
1326 (add_builtin_pretty_printer): New function.
1327 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1328 gdb/printer/__init__.py.
1329
1330 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1331
1332 * Makefile.in (SFILES): Remove d-support.c.
1333 (COMMON_OBS): Remove d-support.o.
1334 * d-lang.h (d_parse_symbol): Remove declaration.
1335 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1336 * d-support.c: Remove file.
1337
1338 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1339
1340 * gdb/infrun.c (process_event_stop_test): Apply
1341 gdbarch_addr_bits_remove to longjmp resume address.
1342
1343 2014-10-15 Pedro Alves <palves@redhat.com>
1344
1345 * regformats/microblaze.dat: Delete file.
1346
1347 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1348
1349 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1350 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1351
1352 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1353
1354 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1355 as non-trivial.
1356
1357 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1358
1359 PR c++/13403
1360 PR c++/15154
1361 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1362 with qualified args.
1363
1364 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1365
1366 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1367 of the case where the second operand is a pointer.
1368 <BINOP_SUB>: Likewise.
1369
1370 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1371
1372 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1373 only if it is not NULL.
1374 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1375 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1376 (struct probe_ops) <clear_semaphore>: Likewise.
1377 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1378 not NULL.
1379 (stop_tracing): Likewise, for clear_semaphore.
1380
1381 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1382
1383 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1384 using language_c, instead of current_language.
1385
1386 2014-10-13 Doug Evans <dje@google.com>
1387
1388 * python/py-objfile.c (objfpy_initialize): New function.
1389 (objfpy_new, objfile_to_objfile_object): Call it.
1390 * python/py-progspace.c (pspy_initialize): New function.
1391 (pspy_new, pspace_to_pspace_object): Call it.
1392
1393 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1394 Jan Kratochvil <jan.kratochvil@redhat.com>
1395
1396 Fix "save breakpoints" for "catch" command.
1397 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1398 newline.
1399
1400 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1401
1402 Fix "save breakpoints" for "disable $bpnum" command.
1403 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1404
1405 2014-10-10 Pedro Alves <palves@redhat.com>
1406
1407 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1408 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1409 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1410 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1411 and been removed.
1412 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1413 * configure.ac: Remove references to IRIX.
1414 * configure.host: Add *-*-irix* to the obsolete hosts section.
1415 Remove all other references to irix.
1416 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1417 Delete files.
1418
1419 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1420
1421 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1422 isn't valid, release the tdesc arch data and return NULL.
1423
1424 2014-10-10 Pedro Alves <palves@redhat.com>
1425
1426 * linux-tdep.c: Include observer.h.
1427 (linux_inferior_data): New global.
1428 (struct linux_info): New structure.
1429 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1430 (get_linux_inferior_data): New functions.
1431 (linux_vsyscall_range): Rename to ...
1432 (linux_vsyscall_range_raw): ... this.
1433 (linux_vsyscall_range): New function; handles caching.
1434 (_initialize_linux_tdep): Register linux_inferior_data. Install
1435 inferior_exit and inferior_appeared observers.
1436
1437 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1438 Pedro Alves <palves@redhat.com>
1439
1440 PR symtab/14466
1441 * solib-svr4.c (svr4_read_so_list): Rename to ...
1442 (svr4_current_sos_1): ... this and change the function comment.
1443 (svr4_current_sos): New function.
1444
1445 2014-10-10 Pedro Alves <palves@redhat.com>
1446
1447 * arch-utils.c (default_vsyscall_range): New function.
1448 * arch-utils.h (default_vsyscall_range): New declaration.
1449 * gdbarch.sh (vsyscall_range): New hook.
1450 * gdbarch.h, gdbarch.c: Regenerate.
1451 * linux-tdep.c (linux_vsyscall_range): New function.
1452 (linux_init_abi): Install linux_vsyscall_range as
1453 vsyscall_range gdbarch hook.
1454 * memrange.c (address_in_mem_range): New function.
1455 * memrange.h (address_in_mem_range): New declaration.
1456 * symfile-mem.c (find_vdso_size): Delete function.
1457 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1458
1459 2014-10-10 Pedro Alves <palves@redhat.com>
1460
1461 * infrun.c (normal_stop): Fix typo in comment.
1462
1463 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1464
1465 PR tdep/9390
1466 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1467 typo when using logical AND to determine instruction type.
1468
1469 2014-10-09 Yao Qi <yao@codesourcery.com>
1470
1471 * infrun.c (handle_signal_stop): Remove local variable
1472 'printed'.
1473
1474 2014-10-08 Stan Shebs <stan@codesourcery.com>
1475
1476 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1477
1478 2014-10-08 Gary Benson <gbenson@redhat.com>
1479
1480 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1481
1482 2014-10-08 Gary Benson <gbenson@redhat.com>
1483
1484 * common/common-defs.h: Include common-exceptions.h.
1485 * exceptions.h: Do not include common-exceptions.h.
1486
1487 2014-10-08 Gary Benson <gbenson@redhat.com>
1488
1489 * common/common-defs.h: Include cleanups.h.
1490 * common/common-exceptions.c: Do not include cleanups.h.
1491 * utils.h: Likewise.
1492
1493 2014-10-08 Gary Benson <gbenson@redhat.com>
1494
1495 * ada-lang.c: Do not include exceptions.h.
1496 * ada-valprint.c: Likewise.
1497 * amd64-tdep.c: Likewise.
1498 * auto-load.c: Likewise.
1499 * block.c: Likewise.
1500 * break-catch-throw.c: Likewise.
1501 * breakpoint.c: Likewise.
1502 * btrace.c: Likewise.
1503 * c-lang.c: Likewise.
1504 * cli/cli-cmds.c: Likewise.
1505 * cli/cli-interp.c: Likewise.
1506 * cli/cli-script.c: Likewise.
1507 * completer.c: Likewise.
1508 * corefile.c: Likewise.
1509 * corelow.c: Likewise.
1510 * cp-abi.c: Likewise.
1511 * cp-support.c: Likewise.
1512 * cp-valprint.c: Likewise.
1513 * darwin-nat.c: Likewise.
1514 * dwarf2-frame-tailcall.c: Likewise.
1515 * dwarf2-frame.c: Likewise.
1516 * dwarf2loc.c: Likewise.
1517 * dwarf2read.c: Likewise.
1518 * eval.c: Likewise.
1519 * event-loop.c: Likewise.
1520 * event-top.c: Likewise.
1521 * f-valprint.c: Likewise.
1522 * frame-unwind.c: Likewise.
1523 * frame.c: Likewise.
1524 * gdbtypes.c: Likewise.
1525 * gnu-v2-abi.c: Likewise.
1526 * gnu-v3-abi.c: Likewise.
1527 * guile/scm-auto-load.c: Likewise.
1528 * guile/scm-breakpoint.c: Likewise.
1529 * guile/scm-cmd.c: Likewise.
1530 * guile/scm-frame.c: Likewise.
1531 * guile/scm-lazy-string.c: Likewise.
1532 * guile/scm-param.c: Likewise.
1533 * guile/scm-symbol.c: Likewise.
1534 * guile/scm-type.c: Likewise.
1535 * hppa-hpux-tdep.c: Likewise.
1536 * i386-tdep.c: Likewise.
1537 * inf-loop.c: Likewise.
1538 * infcall.c: Likewise.
1539 * infcmd.c: Likewise.
1540 * infrun.c: Likewise.
1541 * interps.c: Likewise.
1542 * interps.h: Likewise.
1543 * jit.c: Likewise.
1544 * linespec.c: Likewise.
1545 * linux-nat.c: Likewise.
1546 * linux-thread-db.c: Likewise.
1547 * m32r-rom.c: Likewise.
1548 * main.c: Likewise.
1549 * memory-map.c: Likewise.
1550 * mi/mi-cmd-break.c: Likewise.
1551 * mi/mi-cmd-stack.c: Likewise.
1552 * mi/mi-interp.c: Likewise.
1553 * mi/mi-main.c: Likewise.
1554 * monitor.c: Likewise.
1555 * nto-procfs.c: Likewise.
1556 * objc-lang.c: Likewise.
1557 * p-valprint.c: Likewise.
1558 * parse.c: Likewise.
1559 * ppc-linux-tdep.c: Likewise.
1560 * printcmd.c: Likewise.
1561 * probe.c: Likewise.
1562 * python/py-auto-load.c: Likewise.
1563 * python/py-breakpoint.c: Likewise.
1564 * python/py-cmd.c: Likewise.
1565 * python/py-finishbreakpoint.c: Likewise.
1566 * python/py-frame.c: Likewise.
1567 * python/py-framefilter.c: Likewise.
1568 * python/py-function.c: Likewise.
1569 * python/py-gdb-readline.c: Likewise.
1570 * python/py-inferior.c: Likewise.
1571 * python/py-infthread.c: Likewise.
1572 * python/py-lazy-string.c: Likewise.
1573 * python/py-linetable.c: Likewise.
1574 * python/py-param.c: Likewise.
1575 * python/py-prettyprint.c: Likewise.
1576 * python/py-symbol.c: Likewise.
1577 * python/py-type.c: Likewise.
1578 * python/py-value.c: Likewise.
1579 * python/python-internal.h: Likewise.
1580 * python/python.c: Likewise.
1581 * record-btrace.c: Likewise.
1582 * record-full.c: Likewise.
1583 * regcache.c: Likewise.
1584 * remote-fileio.c: Likewise.
1585 * remote-mips.c: Likewise.
1586 * remote.c: Likewise.
1587 * rs6000-aix-tdep.c: Likewise.
1588 * rs6000-nat.c: Likewise.
1589 * skip.c: Likewise.
1590 * solib-darwin.c: Likewise.
1591 * solib-dsbt.c: Likewise.
1592 * solib-frv.c: Likewise.
1593 * solib-ia64-hpux.c: Likewise.
1594 * solib-spu.c: Likewise.
1595 * solib-svr4.c: Likewise.
1596 * solib.c: Likewise.
1597 * spu-tdep.c: Likewise.
1598 * stack.c: Likewise.
1599 * stap-probe.c: Likewise.
1600 * symfile-mem.c: Likewise.
1601 * symmisc.c: Likewise.
1602 * target.c: Likewise.
1603 * thread.c: Likewise.
1604 * top.c: Likewise.
1605 * tracepoint.c: Likewise.
1606 * tui/tui-interp.c: Likewise.
1607 * typeprint.c: Likewise.
1608 * utils.c: Likewise.
1609 * valarith.c: Likewise.
1610 * valops.c: Likewise.
1611 * valprint.c: Likewise.
1612 * value.c: Likewise.
1613 * varobj.c: Likewise.
1614 * windows-nat.c: Likewise.
1615 * xml-support.c: Likewise.
1616
1617 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1618
1619 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1620 name implies.
1621 (extended_mips16_next_pc): Update accordingly.
1622
1623 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1624
1625 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1626 function.
1627 (micromips_instruction_is_compact_branch): Likewise.
1628 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1629 or a compact jump, reaching a jump delay slot, or seeing a
1630 second non-prologue instruction.
1631 (micromips_scan_prologue): Also terminate scanning upon seeing a
1632 compact branch or jump, or reaching a branch or jump delay slot.
1633 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1634 or jump delay slot, or seeing a second non-prologue instruction.
1635 (mips32_instruction_has_delay_slot): Retain instruction
1636 examination code only, update arguments accordingly and move
1637 instruction fetch pieces to...
1638 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1639 (micromips_instruction_has_delay_slot): Likewise and to...
1640 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1641 (mips16_instruction_has_delay_slot): Likewise and to...
1642 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1643 (mips_single_step_through_delay): Update accordingly.
1644 (mips_adjust_breakpoint_address): Likewise.
1645
1646 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1647
1648 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1649 !mustbe32 also return 1 for 32-bit instructions.
1650 (mips16_instruction_has_delay_slot): Likewise. Add an
1651 explanatory comment.
1652
1653 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1654
1655 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1656 symbols special.
1657
1658 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1659
1660 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1661 update comments.
1662 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1663 for the breakpoint's address. Don't preinitialize `placed_size'.
1664 (insert_bp_location): Set `reqstd_address' rather than
1665 `placed_address'.
1666 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1667 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1668 address.
1669 (bkpt_remove_location): Likewise.
1670 (deprecated_insert_raw_breakpoint): Likewise.
1671 (deprecated_remove_raw_breakpoint): Likewise.
1672 (find_single_step_breakpoint): Likewise.
1673 * mem-break.c (default_memory_insert_breakpoint): Use
1674 `reqstd_address' for the breakpoint's address. Don't set
1675 `placed_address' or `placed_size' if breakpoint contents couldn't
1676 have been determined.
1677 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1678 the breakpoint's address.
1679 (remote_insert_hw_breakpoint): Likewise. Don't set
1680 `placed_address' or `placed_size' if breakpoint couldn't have been
1681 set.
1682 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1683 `reqstd_address' for the breakpoint's address.
1684 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1685 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1686 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1687 * microblaze-linux-tdep.c
1688 (microblaze_linux_memory_remove_breakpoint): Likewise.
1689 * monitor.c (monitor_insert_breakpoint): Likewise.
1690 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1691 (procfs_insert_hw_breakpoint): Likewise.
1692 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1693 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1694 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1695 * remote-mips.c (mips_insert_breakpoint): Likewise.
1696 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1697
1698 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1699
1700 * valops.c (value_assign): Check for bit field assignments
1701 before calling architecture-specific register value
1702 conversion functions.
1703
1704 2014-10-03 Pierre Muller <muller@sourceware.org>
1705
1706 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1707
1708 2014-10-02 Pedro Alves <palves@redhat.com>
1709
1710 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1711 threads_are_executing.
1712 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1713 describing comment.
1714 * gdbthread.h (threads_are_executing): Declare.
1715 (handle_signal_stop) <random signals>: Don't print about the
1716 signal here if stopping.
1717 (end_stepping_range): Don't notify observers here.
1718 (normal_stop): Update the thread list. If stopped by a random
1719 signal or a stepping range ended, notify observers.
1720 * thread.c (threads_executing): New global.
1721 (init_thread_list): Clear 'threads_executing'.
1722 (set_executing): Set or clear 'threads_executing'.
1723 (threads_are_executing): New function.
1724 (update_threads_executing): New function.
1725 (update_thread_list): Use it.
1726
1727 2014-10-02 Pedro Alves <palves@redhat.com>
1728
1729 PR breakpoints/17431
1730 * breakpoint.c (update_breakpoints_after_exec): Don't create
1731 overlay, longjmp, std terminate nor exception breakpoints here.
1732
1733 2014-10-02 Pedro Alves <palves@redhat.com>
1734
1735 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1736 Adjust comments.
1737 * inferior.c (find_inferior_for_program_space): Give preference to
1738 the current inferior.
1739 * inferior.h (find_inferior_for_program_space): Update comment.
1740 * progspace.c (switch_to_program_space_and_thread): Prefer the
1741 current inferior if it's bound to the program space requested. If
1742 the inferior found doesn't have a PID yet, don't bother looking up
1743 a thread.
1744 * progspace.h (switch_to_program_space_and_thread): Adjust
1745 comment.
1746 * thread.c (any_thread_of_process, any_live_thread_of_process):
1747 Give preference to the current thread.
1748
1749 2014-10-01 Pedro Alves <palves@redhat.com>
1750
1751 * breakpoint.c (insert_bp_location): Error out if inserting a
1752 software breakpoint at a read-only address.
1753 * target.c (memory_xfer_check_region): New function, factored out
1754 from ...
1755 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1756 ULONGEST.
1757 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1758 against the memory region attributes.
1759
1760 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1761
1762 * NEWS: Announce new exit-code field in -list-thread-groups
1763 output.
1764 * inferior.c (exit_inferior_1): Don't clear exit code.
1765 (inferior_appeared): Clear exit code.
1766 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1767 code.
1768
1769 2014-10-01 Pedro Alves <palves@redhat.com>
1770
1771 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1772 GENERATED" along with emacs/vi read-only markers.
1773 * regformats/aarch64.dat: Regenerate.
1774 * regformats/arm-with-iwmmxt.dat: Regenerate.
1775 * regformats/arm-with-neon.dat: Regenerate.
1776 * regformats/arm-with-vfpv2.dat: Regenerate.
1777 * regformats/arm-with-vfpv3.dat: Regenerate.
1778 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1779 * regformats/i386/amd64-avx.dat: Regenerate.
1780 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1781 * regformats/i386/amd64-avx512.dat: Regenerate.
1782 * regformats/i386/amd64-linux.dat: Regenerate.
1783 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1784 * regformats/i386/amd64-mpx.dat: Regenerate.
1785 * regformats/i386/amd64.dat: Regenerate.
1786 * regformats/i386/i386-avx-linux.dat: Regenerate.
1787 * regformats/i386/i386-avx.dat: Regenerate.
1788 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1789 * regformats/i386/i386-avx512.dat: Regenerate.
1790 * regformats/i386/i386-linux.dat: Regenerate.
1791 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1792 * regformats/i386/i386-mmx.dat: Regenerate.
1793 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1794 * regformats/i386/i386-mpx.dat: Regenerate.
1795 * regformats/i386/i386.dat: Regenerate.
1796 * regformats/i386/x32-avx-linux.dat: Regenerate.
1797 * regformats/i386/x32-avx.dat: Regenerate.
1798 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1799 * regformats/i386/x32-avx512.dat: Regenerate.
1800 * regformats/i386/x32-linux.dat: Regenerate.
1801 * regformats/i386/x32.dat: Regenerate.
1802 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1803 * regformats/mips-dsp-linux.dat: Regenerate.
1804 * regformats/mips-linux.dat: Regenerate.
1805 * regformats/mips64-dsp-linux.dat: Regenerate.
1806 * regformats/mips64-linux.dat: Regenerate.
1807 * regformats/nios2-linux.dat: Regenerate.
1808 * regformats/rs6000/powerpc-32.dat: Regenerate.
1809 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1810 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1811 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1812 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1813 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1814 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1815 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1816 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1817 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1818 * regformats/s390-linux32.dat: Regenerate.
1819 * regformats/s390-linux32v1.dat: Regenerate.
1820 * regformats/s390-linux32v2.dat: Regenerate.
1821 * regformats/s390-linux64.dat: Regenerate.
1822 * regformats/s390-linux64v1.dat: Regenerate.
1823 * regformats/s390-linux64v2.dat: Regenerate.
1824 * regformats/s390-te-linux64.dat: Regenerate.
1825 * regformats/s390x-linux64.dat: Regenerate.
1826 * regformats/s390x-linux64v1.dat: Regenerate.
1827 * regformats/s390x-linux64v2.dat: Regenerate.
1828 * regformats/s390x-te-linux64.dat: Regenerate.
1829 * regformats/tic6x-c62x-linux.dat: Regenerate.
1830 * regformats/tic6x-c62x.dat: Regenerate.
1831 * regformats/tic6x-c64x-linux.dat: Regenerate.
1832 * regformats/tic6x-c64x.dat: Regenerate.
1833 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1834 * regformats/tic6x-c64xp.dat: Regenerate.
1835
1836 2014-10-01 Pedro Alves <palves@redhat.com>
1837
1838 * features/Makefile: Update comments.
1839 (XMLTOC): List all xml files we build C files from.
1840 (clean-cfiles): New rule.
1841
1842 2014-10-01 Pedro Alves <palves@redhat.com>
1843
1844 * features/i386/amd64-avx512-linux.c: Regenerate.
1845 * features/i386/amd64-avx512.c: Regenerate.
1846 * features/i386/x32-avx512-linux.c: Regenerate.
1847 * features/i386/x32-avx512.c: Regenerate.
1848
1849 2014-10-01 Pedro Alves <palves@redhat.com>
1850
1851 * features/Makefile (WHICH): Remove arm-with-m,
1852 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1853
1854 2014-10-01 Pedro Alves <palves@redhat.com>
1855
1856 * features/Makefile (clean): New rule.
1857
1858 2014-10-01 Pedro Alves <palves@redhat.com>
1859
1860 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1861 (zmm14h): Add missing end quotes.
1862
1863 2014-10-01 Pedro Alves <palves@redhat.com>
1864
1865 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1866 * features/aarch64.c: Regenerate.
1867
1868 2014-09-30 Don Breazeal <donb@codesourcery.com>
1869
1870 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1871 code so as to work with follow_fork_inferior.
1872 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1873 (inf_ttrace_create_inferior): Remove reference to
1874 inf_ttrace_vfork_ppid.
1875 (inf_ttrace_attach): Ditto.
1876 (inf_ttrace_detach): Ditto.
1877 (inf_ttrace_kill): Use current_inferior instead of
1878 inf_ttrace_vfork_ppid.
1879 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1880 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1881 inferior away from the parent.
1882 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1883 target_follow_fork.
1884 (follow_fork_inferior): New function.
1885 (follow_inferior_reset_breakpoints): Make function static.
1886 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1887 * linux-nat.c (linux_child_follow_fork): Move target-independent
1888 code to infrun.c:follow_fork_inferior.
1889
1890 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1891
1892 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1893 * gdbarch.c: Regenerate.
1894 * gdbarch.h: Likewise.
1895 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1896 gdbarch method 'regset_from_core_section'.
1897 (get_core_register_section): Remove handling for the case that
1898 regset == NULL and regset_from_core_section is defined.
1899 (get_core_registers): Drop check for deleted method.
1900 * procfs.c (procfs_do_thread_registers): Adjust comment.
1901
1902 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1903
1904 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1905 (linux_nat_make_corefile_notes): Remove.
1906 (linux_target_install_ops): Do not set target method
1907 'make_corefile_notes'.
1908 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1909 Remove field.
1910 (linux_corefile_thread_callback): Instead of args->collect, call
1911 linux_collect_thread_registers.
1912 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1913 NULL unless there is a regset iterator.
1914 (linux_make_corefile_notes_1): Remove.
1915 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1916 by linux_make_corefile_notes.
1917 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1918
1919 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1920
1921 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1922 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1923 Remove.
1924 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1925
1926 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1927
1928 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1929 (xtensa_iterate_over_regset_sections): New.
1930 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1931
1932 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1933
1934 * vax-tdep.c (vax_regset_from_core_section): Remove.
1935 (vax_iterate_over_regset_sections): New.
1936 (vax_gdbarch_init): Adjust gdbarch initialization.
1937
1938 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1939
1940 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1941 (tilegx_regset_from_core_section): Remove.
1942 (tilegx_iterate_over_regset_sections): New.
1943 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1944
1945 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1946
1947 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1948 (sparc_iterate_over_regset_sections): New.
1949 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1950 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1951 targets.
1952 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1953 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1954 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1955 target method 'make_corefile_notes'.
1956
1957 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1958
1959 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1960 'sizeof_gregset' and 'sizeof_fpregset'.
1961 * sh-tdep.c (sh_regset_from_core_section): Remove.
1962 (sh_iterate_over_regset_sections): New.
1963 (sh_gdbarch_init): Adjust gdbarch initialization.
1964 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1965 sizeof_fpregset.
1966 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1967 'sizeof_gregset'.
1968
1969 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1970
1971 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1972 (score7_linux_iterate_over_regset_sections): New.
1973 (score_gdbarch_init): Adjust gdbarch initialization.
1974
1975 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1976
1977 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1978 FreeBSD targets.
1979 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1980 method 'make_corefile_notes'.
1981 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1982 (ppcfbsd_regset_from_core_section): Remove.
1983 (ppcfbsd_iterate_over_regset_sections): New.
1984 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1985 initialization.
1986 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1987 (ppcnbsd_iterate_over_regset_sections): New.
1988 (ppcnbsd_init_abi): Adjust.
1989 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1990 (ppcobsd_iterate_over_regset_sections): New.
1991 (ppcobsd_init_abi): Adjust.
1992 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1993 (rs6000_aix_iterate_over_regset_sections): New.
1994 (rs6000_aix_init_osabi): Adjust.
1995
1996 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1997
1998 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1999 (nios2_regset_from_core_section): Remove.
2000 (nios2_iterate_over_regset_sections): New.
2001 (nios2_linux_init_abi): Adjust gdbarch initialization.
2002
2003 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2004
2005 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2006 (am33_iterate_over_regset_sections): New.
2007 (am33_linux_init_osabi): Adjust gdbarch initialization.
2008
2009 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2010
2011 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2012 (mips_linux_iterate_over_regset_sections): New.
2013 (mips_linux_init_abi): Adjust gdbarch initialization.
2014 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2015 (mips64obsd_iterate_over_regset_sections): New.
2016 (mips64obsd_init_abi): Adjust.
2017 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2018 (mipsnbsd_iterate_over_regset_sections): New.
2019 (mipsnbsd_init_abi): Adjust.
2020
2021 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2022
2023 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2024 (m88k_iterate_over_regset_sections): New.
2025 (m88k_gdbarch_init): Adjust gdbarch initialization.
2026
2027 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2028
2029 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2030 (ia64_linux_iterate_over_regset_sections): New.
2031 (ia64_linux_init_abi): Adjust gdbarch initialization.
2032
2033 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2034
2035 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2036 (m68kbsd_iterate_over_regset_sections): New.
2037 (m68kbsd_init_abi): Adjust gdbarch initialization.
2038 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2039 (m68k_linux_iterate_over_regset_sections): New.
2040 (m68k_linux_init_abi): Adjust gdbarch initialization.
2041
2042 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043
2044 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2045 (m32r_linux_regset_from_core_section): Remove.
2046 (m32r_linux_iterate_over_regset_sections): New.
2047 (m32r_linux_init_abi): Adjust gdbarch initialization.
2048
2049 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050
2051 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2052 (amd64obsd_iterate_over_regset_sections): New.
2053 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2054 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2055 Remove.
2056 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2057 regset_from_core_section initialization.
2058 * i386-tdep.c (i386_regset_from_core_section): Remove.
2059 (i386_iterate_over_regset_sections): New.
2060 (i386_gdbarch_init): Adjust gdbarch initialization.
2061 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2062 (i386_iterate_over_regset_sections): New prototype.
2063 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2064 Remove.
2065 (i386obsd_aout_iterate_over_regset_sections): New.
2066 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2067 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2068 targets.
2069 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2070 (amd64fbsd_init_abi): Call fbsd_init_abi.
2071 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2072 (i386fbsd4_init_abi): Call fbsd_init_abi.
2073 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2074 target method 'make_corefile_notes'.
2075 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2076
2077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078
2079 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2080 (hppa_hpux_iterate_over_regset_sections): New.
2081 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2082 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2083 (hppa_linux_iterate_over_regset_sections): New.
2084 (hppa_linux_init_abi): Adjust.
2085 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2086 (hppanbsd_iterate_over_regset_sections): New.
2087 (hppanbsd_init_abi): Adjust.
2088 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2089 (hppaobsd_iterate_over_regset_sections): New.
2090 (hppaobsd_init_abi): Adjust.
2091
2092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2093
2094 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2095 (frv_linux_iterate_over_regset_sections): New.
2096 (frv_linux_init_abi): Adjust gdbarch initialization.
2097
2098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099
2100 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2101 (armbsd_iterate_over_regset_sections): New prototype.
2102 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2103 (armbsd_iterate_over_regset_sections): New.
2104 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2105 initialization.
2106
2107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2110 (alpha_linux_iterate_over_regset_sections): New.
2111 (alpha_linux_init_abi): Adjust gdbarch initialization.
2112 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2113 prototype.
2114 (alphanbsd_iterate_over_regset_sections): New prototype.
2115
2116 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117
2118 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2119 Remove.
2120 (aarch64_linux_iterate_over_regset_sections): New.
2121 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2122
2123 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2124
2125 * fbsd-tdep.c: New file.
2126 * fbsd-tdep.h: New file.
2127 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2128 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2129 (ALLDEPFILES): Add fbsd-tdep.c.
2130
2131 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2132
2133 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2134 parameter.
2135 * gdbarch.h: Regenerate.
2136 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2137 iterator.
2138 (get_core_register_section): Add parameter 'regset' and use it, if
2139 set. Add parameter 'min_size' and verify the bfd section size
2140 against it.
2141 (get_core_registers_cb): Add parameter 'regset' and pass it to
2142 get_core_register section. For the "standard" register sections
2143 ".reg" and ".reg2", set an appropriate default for human_name.
2144 (get_core_registers): Don't abort when the gdbarch has an iterator
2145 but no regset_from_core_section. Add NULL/0 for parameters
2146 'regset'/'min_size' in calls to get_core_register_section.
2147 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2148 'regset' and use it instead of calling the
2149 regset_from_core_section gdbarch method.
2150 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2151 * i386-tdep.c (i386_supply_xstateregset)
2152 (i386_collect_xstateregset, i386_xstateregset): Moved to
2153 i386-linux-tdep.c.
2154 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2155 .reg-xstate.
2156 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2157 core file support only if the regset iterator hasn't been set.
2158 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2159 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2160 Moved from i386-tdep.c and renamed to *_linux*.
2161 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2162 each callback invocation. Allow any .reg-xstate size when reading
2163 from a core file.
2164 * amd64-tdep.c (amd64_supply_xstateregset)
2165 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2166 amd64-linux-tdep.c.
2167 (amd64_regset_from_core_section): Remove.
2168 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2169 install an amd64-specific regset_from_core_section gdbarch method.
2170 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2171 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2172 Moved from amd64-tdep.c and renamed to *_linux*.
2173 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2174 to each callback invocation. Allow any .reg-xstate size when
2175 reading from a core file.
2176 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2177 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2178 each callback invocation.
2179 (arm_linux_init_abi): No longer set the regset_from_core_section
2180 gdbarch method.
2181 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2182 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2183 each callback invocation.
2184 (ppc_linux_init_abi): No longer set the regset_from_core_section
2185 gdbarch method.
2186 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2187 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2188 (s390_regset_from_core_section): Remove.
2189 (s390_iterate_over_regset_sections): Add regset parameter to each
2190 callback invocation.
2191 (s390_gdbarch_init): No longer set the regset_from_core_section
2192 gdbarch method. Drop initialization of deleted tdep fields.
2193
2194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2195
2196 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2197 (amd64_linux_iterate_over_regset_sections): New.
2198 (amd64_linux_init_abi_common): Don't install the regset section
2199 list, but the new iterator in gdbarch.
2200 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2201 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2202 (arm_linux_iterate_over_regset_sections): ...here. New function.
2203 (arm_linux_init_abi): Set iterator instead of section list.
2204 * corelow.c (get_core_registers_cb): New function, logic moved
2205 from...
2206 (get_core_registers): ...loop body here. Use new iterator method
2207 instead of walking through the regset section list.
2208 * gdbarch.sh: Remove 'core_regset_sections'. New method
2209 'iterate_over_regset_sections'. New typedef
2210 'iterate_over_regset_sections_cb'.
2211 * gdbarch.c: Regenerate.
2212 * gdbarch.h: Likewise.
2213 * i386-linux-tdep.c (i386_linux_regset_sections)
2214 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2215 Remove.
2216 (i386_linux_iterate_over_regset_sections): New.
2217 (i386_linux_init_abi): Don't choose a regset section list, but
2218 install new iterator in gdbarch.
2219 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2220 (linux_collect_regset_section_cb): New function, logic moved
2221 from...
2222 (linux_collect_thread_registers): ...loop body here. Use iterator
2223 method instead of walking through list.
2224 (linux_make_corefile_notes_1): Check for presence of iterator
2225 method instead of regset section list.
2226 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2227 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2228 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2229 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2230 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2231 (ppc_linux_init_abi): Don't choose from above regset section
2232 lists, but install new iterator in gdbarch.
2233 * regset.h (struct core_regset_section): Remove.
2234 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2235 have_linux_v1, have_linux_v2, and have_tdb.
2236 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2237 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2238 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2239 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2240 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2241 (s390_iterate_over_regset_sections): ...here. New function. Use
2242 new tdep fields.
2243 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2244 regset section lists, but install new iterator.
2245
2246 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2247
2248 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2249
2250 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2251
2252 * progspace.c (print_program_space): Don't prune program spaces
2253 before printing them.
2254
2255 2014-09-25 Pedro Alves <palves@redhat.com>
2256
2257 * infrun.c (user_visible_resume_ptid): Don't check
2258 singlestep_breakpoints_inserted_p.
2259
2260 2014-09-25 Pedro Alves <palves@redhat.com>
2261
2262 * breakpoint.c (should_be_inserted): Add debug output.
2263
2264 2014-09-25 Pedro Alves <palves@redhat.com>
2265
2266 * infrun.c (stepping_past_instruction_at)
2267 (clear_exit_convenience_vars): Point at infrun.h instead of
2268 inferior.h.
2269 (handle_signal_stop): Fix typo.
2270
2271 2014-09-24 Yao Qi <yao@codesourcery.com>
2272
2273 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2274 bitmask.
2275
2276 2014-09-22 Gary Benson <gbenson@redhat.com>
2277
2278 * target.c (target_stop): Updated comment.
2279
2280 2014-09-22 Gary Benson <gbenson@redhat.com>
2281
2282 * target/target.h (target_stop_ptid): Renamed as...
2283 (target_stop_and_wait): New function. Updated comment.
2284 All uses updated.
2285 (target_continue_ptid): Renamed as...
2286 (target_continue_no_signal): New function. Updated comment.
2287 All uses updated.
2288
2289 2014-09-22 Pedro Alves <palves@redhat.com>
2290
2291 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2292 and "auto" merged.
2293 * breakpoint.c (enum ugll_insert_mode): New enum.
2294 (always_inserted_mode): Now a plain boolean.
2295 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2296 (breakpoints_always_inserted_mode): Delete.
2297 (breakpoints_should_be_inserted_now): New function.
2298 (insert_breakpoints): Pass UGLL_INSERT to
2299 update_global_location_list instead of calling
2300 insert_breakpoint_locations manually.
2301 (create_solib_event_breakpoint_1): New, factored out from ...
2302 (create_solib_event_breakpoint): ... this.
2303 (create_and_insert_solib_event_breakpoint): Use
2304 create_solib_event_breakpoint_1 instead of calling
2305 insert_breakpoint_locations manually.
2306 (update_global_location_list): Change parameter type from boolean
2307 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2308 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2309 (update_global_location_list_nothrow): Change parameter type from
2310 boolean to enum ugll_insert_mode.
2311 (_initialize_breakpoint): "breakpoint always-inserted" option is
2312 now a boolean command. Update help text.
2313 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2314 (breakpoints_should_be_inserted_now): New declaration.
2315 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2316 Remove breakpoints_always_inserted_mode check.
2317 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2318 * remote.c (remote_start_remote): Likewise.
2319
2320 2014-09-22 Pedro Alves <palves@redhat.com>
2321
2322 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2323 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2324 Instead, pass UGLL_INSERT to update_global_location_list.
2325 (update_global_location_list): Change parameter type from boolean
2326 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2327 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2328 (create_solib_event_breakpoint_1): New, factored out from ...
2329 (create_solib_event_breakpoint): ... this.
2330 (create_and_insert_solib_event_breakpoint): Use
2331 create_solib_event_breakpoint_1 instead of calling
2332 insert_breakpoint_locations manually.
2333 (update_global_location_list): Handle UGLL_INSERT.
2334
2335 2014-09-22 Pedro Alves <palves@redhat.com>
2336
2337 * breakpoint.c (enum ugll_insert_mode): New enum.
2338 (update_global_location_list)
2339 (update_global_location_list_nothrow): Change parameter type from
2340 boolean to enum ugll_insert_mode. All callers adjusted.
2341
2342 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2343
2344 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2345 SystemTap support in GDB.
2346
2347 2014-09-19 Don Breazeal <donb@codesourcery.com>
2348
2349 * linux-nat.c (linux_handle_extended_wait): Call
2350 linux_ptrace_get_extended_event.
2351 (wait_lwp): Call linux_is_extended_waitstatus.
2352 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2353 and linux_is_extended_waitstatus.
2354 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2355 linux_ptrace_get_extended_event.
2356 (linux_ptrace_get_extended_event): New function.
2357 (linux_is_extended_waitstatus): New function.
2358 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2359 (linux_is_extended_waitstatus): New declarations.
2360
2361 2014-09-19 Yao Qi <yao@codesourcery.com>
2362
2363 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2364 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2365 comments. Callers update.
2366 (dwarf_decode_lines): Likewise.
2367 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2368 comments. Skip the line table if 'lowpc' is greater than
2369 'address'. Don't check
2370 dwarf2_per_objfile->has_section_at_zero.
2371
2372 2014-09-18 Doug Evans <dje@google.com>
2373
2374 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2375 * python/py-symtab.c (stpy_get_producer): New function.
2376 (symtab_object_getset): Add "producer" attribute.
2377
2378 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2379
2380 PR gdb/17384
2381 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2382 (do_captured_read_memory_integer): Remove.
2383 (safe_read_memory_integer): Use target_read_memory directly instead
2384 of catching errors in do_captured_read_memory_integer.
2385
2386 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2387
2388 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2389 not gdb/doc.
2390
2391 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2392
2393 * objc-lang.c (find_implementation_from_class): Remove dead code.
2394
2395 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2396
2397 PR cli/7233
2398 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2399 "fprintf_unfiltered (gdb_stdlog...)".
2400
2401 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2402
2403 PR breakpoints/12526
2404 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2405 val_bitsize.
2406 * breakpoint.c (watch_command_1): Use these fields to retain
2407 bitfield information.
2408 (extract_bitfield_from_watchpoint_value): New function.
2409 (watchpoint_check): Use it.
2410 (update_watchpoint): Use it. Optimize the address and length of a
2411 HW watchpoint pointing to a bitfield.
2412 * value.h (unpack_value_bitfield): New prototype.
2413 * value.c (unpack_value_bitfield): Make extern.
2414
2415 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2416
2417 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2418 x86-dregs.o.
2419 * gnu-nat.c (inf_threads): New function.
2420 * gnu-nat.h (inf_threads_ftype): New typedef.
2421 (inf_threads): New declaration.
2422 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2423 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2424 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2425 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2426 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2427 (i386_gnu_dr_get_control): New functions.
2428 (reg_addr): New structure.
2429 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2430 i386 debugging register hooks.
2431 * NEWS: Mention this.
2432
2433 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2434
2435 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2436 vector data transfer instructions.
2437 (arm_record_coproc_data_proc): Updated.
2438
2439 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2440
2441 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2442 arm_record_exreg_ld_st_insn.
2443 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2444 load/store insns.
2445
2446 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2447
2448 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2449 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2450 processing instructions.
2451
2452 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2453
2454 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2455 for advance SIMD struct ld/st insn.
2456 (thumb2_record_decode_insn_handler): Replace stub handler with
2457 thumb2_record_asimd_struct_ld_st.
2458
2459 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2460
2461 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2462 for asimd, vfp and coprocessor insns.
2463 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2464 and coprocessor insns.
2465 (thumb2_record_coproc_insn): New function.
2466 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2467 handlers.
2468 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2469 opcode 110 insns.
2470
2471 2014-09-13 Doug Evans <xdje42@gmail.com>
2472
2473 * NEWS: Mention new "queue-signal" command.
2474 * infcmd.c (queue_signal_command): New function.
2475 (_initialize_infcmd): Add new queue-signal command.
2476
2477 2014-09-13 Doug Evans <xdje42@gmail.com>
2478
2479 * linux-nat.c (wait_lwp): Add debugging printf.
2480 (linux_nat_wait_1): Ditto.
2481
2482 2014-09-12 Pedro Alves <palves@redhat.com>
2483
2484 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2485 (create_and_insert_solib_event_breakpoint): New functions.
2486 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2487 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2488 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2489 (remove_dbx_link_breakpoint): Delete function.
2490 (insert_dbx_link_bpt_in_file): Use
2491 create_and_insert_solib_event_breakpoint instead of
2492 deprecated_insert_raw_breakpoint.
2493 (procfs_wait): Don't check whether we hit __dbx_link here.
2494 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2495 here.
2496 * solib-irix.c (base_breakpoint): Delete global.
2497 (disable_break): Delete function.
2498 (enable_break): Use create_solib_event_breakpoint
2499 instead of deprecated_insert_raw_breakpoint.
2500 (irix_solib_handle_event): New function.
2501 (irix_solib_create_inferior_hook): Don't run the target or disable
2502 the mapping-complete breakpoint here.
2503 (_initialize_irix_solib): Install irix_solib_handle_event as
2504 so_ops->handle_event hook.
2505
2506 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2507 Ulrich Weigand  <uweigand@de.ibm.com>
2508
2509 PR tdep/17379
2510 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2511 instead of read_memory_unsigned_integer.
2512
2513 2014-09-12 Gary Benson <gbenson@redhat.com>
2514
2515 * nat/linux-waitpid.c: Include common-defs.h.
2516 [GDBSERVER]: Add FIXME comment.
2517 [!GDBSERVER]: Don't include defs.h or signal.h.
2518 (linux_debug) [!GDBSERVER]: Remove empty block.
2519
2520 2014-09-12 Gary Benson <gbenson@redhat.com>
2521
2522 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2523 Don't include defs.h or server.h.
2524
2525 2014-09-12 Gary Benson <gbenson@redhat.com>
2526
2527 * nat/linux-btrace.c: Include common-defs.h.
2528 Don't include defs.h, server.h or gdbthread.h.
2529 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2530
2531 2014-09-12 Gary Benson <gbenson@redhat.com>
2532
2533 * common/agent.c: Include common-defs.h.
2534 Don't include defs.h or server.h.
2535 * common/buffer.c: Likewise.
2536 * common/common-debug.c: Likewise.
2537 * common/common-utils.c: Likewise.
2538 * common/errors.c: Likewise.
2539 * common/filestuff.c: Likewise.
2540 * common/format.c: Likewise.
2541 * common/gdb_vecs.c: Likewise.
2542 * common/print-utils.c: Likewise.
2543 * common/ptid.c: Likewise.
2544 * common/rsp-low.c: Likewise.
2545 * common/signals.c: Likewise.
2546 * common/vec.c: Likewise.
2547 * common/xml-utils.c: Likewise.
2548 * nat/linux-osdata.c: Likewise.
2549 * nat/linux-procfs.c: Likewise.
2550 * nat/linux-ptrace.c: Likewise.
2551 * nat/mips-linux-watch.c: Likewise.
2552 * target/waitstatus.c: Likewise.
2553
2554 2014-09-12 Tom Tromey <tromey@redhat.com>
2555 Gary Benson <gbenson@redhat.com>
2556
2557 * common/common-regcache.h: New file.
2558 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2559 * regcache.h: Include common-regcache.h.
2560 (regcache_read_pc): Don't declare.
2561 * regcache.c (get_thread_regcache_for_ptid): New function.
2562 * nat/linux-btrace.c: Don't include regcache.h.
2563 Include common-regcache.h.
2564 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2565
2566 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2567
2568 * regcache.h (struct regset): Declare.
2569
2570 2014-09-11 Pedro Alves <palves@redhat.com>
2571
2572 PR gdb/17347
2573 * main.c: Include "infrun.h".
2574 (catch_command_errors, catch_command_errors_const): Wait for the
2575 foreground command to complete.
2576 * top.c (maybe_wait_sync_command_done): New function, factored out
2577 from ...
2578 (maybe_wait_sync_command_done): ... here.
2579 * top.h (maybe_wait_sync_command_done): New declaration.
2580
2581 2014-09-11 Tom Tromey <tromey@redhat.com>
2582 Gary Benson <gbenson@redhat.com>
2583
2584 * common/symbol.h: New file.
2585 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2586 * minsyms.c (find_minimal_symbol_address): New function.
2587 * common/agent.c: Include common/symbol.h.
2588 [!GDBSERVER]: Don't include objfiles.h.
2589 (agent_look_up_symbols): Use find_minimal_symbol_address.
2590
2591 2014-09-11 Gary Benson <gbenson@redhat.com>
2592
2593 * target/target.h (target_stop_ptid, target_continue_ptid):
2594 Declare.
2595 * target.c (target_stop_ptid, target_continue_ptid): New
2596 functions.
2597 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2598 (agent_run_command): Always use target_stop_ptid and
2599 target_continue_ptid.
2600
2601 2014-09-11 Tom Tromey <tromey@redhat.com>
2602 Gary Benson <gbenson@redhat.com>
2603
2604 * target/target.h: New file.
2605 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2606 * target.h: Include target/target.h.
2607 (target_read_memory, target_write_memory): Don't declare.
2608 * target.c (target_read_uint32): New function.
2609 * common/agent.c: Include target/target.h.
2610 [!GDBSERVER]: Don't include target.h.
2611 (helper_thread_id): Type changed to uint32_t.
2612 (agent_get_helper_thread_id): Use target_read_uint32.
2613 (agent_run_command): Always use target_read_memory and
2614 target_write_memory.
2615 (agent_capability): Type changed to uint32_t.
2616 (agent_capability_check): Use target_read_uint32.
2617
2618 2014-09-11 Gary Benson <gbenson@redhat.com>
2619
2620 * common/common-debug.h (show_debug_regs): Declare.
2621 * common/common-debug.c (show_debug_regs): Define.
2622 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2623 all uses with show_debug_regs. Replace all uses that considered
2624 debug_hw_points as a multi-value integer with straight boolean
2625 uses.
2626 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2627 with show_debug_regs.
2628 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2629 all uses with show_debug_regs.
2630 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2631 uses with show_debug_regs.
2632
2633 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2634
2635 * findvar.c (address_from_register): Handle targets requiring
2636 a special conversion routine even for plain pointer types.
2637
2638 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2639
2640 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2641 (store_register): Do not call exec_one_dummy_insn.
2642
2643 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2644
2645 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2646 dereference it first. Use value_enclosing_type instead of
2647 value_type.
2648 (ada_array_length): Likewise.
2649
2650 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2651
2652 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2653 Adjust function implementation and documentation accordingly.
2654 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2655 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2656 Update call to ada_value_ptr_subscript.
2657
2658 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2659
2660 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2661 instead of VAL's type.
2662
2663 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2664
2665 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2666
2667 2014-09-09 Doug Evans <xdje42@gmail.com>
2668
2669 PR guile/17367
2670 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2671 last parameter to pkg-config, not first.
2672 * configure.ac: Pass --with-guile provided pkg-config path to
2673 GDB_GUILE_PROGRAM_NAMES.
2674 * configure: Regenerate.
2675
2676 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2677
2678 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2679 Bertazi".
2680
2681 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2682
2683 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2684 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2685 the list of sections determining GDB_OSABI_IRIX.
2686
2687 2014-09-09 James Hogan <james.hogan@imgtec.com>
2688
2689 * MAINTAINERS (Write After Approval): Add "James Hogan".
2690
2691 2014-09-09 James Hogan <james.hogan@imgtec.com>
2692
2693 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2694
2695 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2696
2697 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2698
2699 2014-09-08 Doug Evans <xdje42@gmail.com>
2700
2701 PR 17247
2702 * guile.c: #include <signal.h>.
2703 (_initialize_guile): Block SIGCHLD while initializing Guile.
2704
2705 Replaces the following, which is reverted.
2706
2707 2014-07-26 Doug Evans <xdje42@gmail.com>
2708
2709 PR 17185
2710 * configure.ac: Add check for header gc/gc.h.
2711 Add check for function setenv.
2712 * configure: Regenerate.
2713 * config.in: Regenerate.
2714 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2715
2716 2014-09-08 Doug Evans <xdje42@gmail.com>
2717
2718 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2719 with named constant. Fix style of pointer comparison.
2720 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2721
2722 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2723
2724 PR gdb/17035
2725 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2726 decide whether we display the command on "show user".
2727 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2728 printing command name.
2729 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2730 * cli/cli-decode.c (cli_user_command_p): Create helper function
2731 to verify whether cmd_list_element is a user-defined command.
2732
2733 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 PR python/17355
2736 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2737 Fix goto out of TRY_CATCH.
2738
2739 2014-09-06 Doug Evans <xdje42@gmail.com>
2740 Tom Tromey <tromey@redhat.com>
2741
2742 PR 15276
2743 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2744 $_any_caller_matches.
2745 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2746 * python/lib/gdb/function/caller_is.py: New file.
2747
2748 2014-09-06 Doug Evans <xdje42@gmail.com>
2749
2750 * infcmd.c (program_info): Fix typo.
2751
2752 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2753
2754 PR gdb/17235
2755 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2756 'number'. New variable 'has_digit'. Rewrite code to deal with
2757 subexpressions on SDT probes.
2758
2759 2014-09-04 Pedro Alves <palves@redhat.com>
2760
2761 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2762 the input is only one character long.
2763
2764 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2765
2766 PR fortran/17237
2767 * f-valprint.c (f_val_print): Specify the correct print option to
2768 use when printing integer values.
2769
2770 2014-09-04 Gary Benson <gbenson@redhat.com>
2771
2772 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2773 Remove code to cope with LWPs wrapped as PIDs.
2774 Add assertions to ensure no wrapped LWPs are passed.
2775
2776 2014-09-04 Pedro Alves <palves@redhat.com>
2777
2778 * value.c (value_ranges_copy_adjusted): New function, factored out
2779 from ...
2780 (value_contents_copy_raw): ... here.
2781 (unpack_value_bits_as_long_1): Rename back to ...
2782 (unpack_bits_as_long): ... this. Remove 'original_value' and
2783 'result' parameters. Change return type to LONGEST.
2784 (unpack_value_bits_as_long): Delete.
2785 (unpack_value_field_as_long_1): Delete.
2786 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2787 (unpack_value_bitfield): New function.
2788 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2789 (value_fetch_lazy): Use unpack_value_bitfield.
2790 * value.h (unpack_value_bits_as_long): Delete declaration.
2791
2792 2014-09-03 Sasha Smundak <asmundak@google.com>
2793
2794 * python/py-frame.c (frapy_read_register): New function.
2795
2796 2014-09-03 James Hogan <james.hogan@imgtec.com>
2797
2798 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2799 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2800
2801 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2802
2803 PR python/16699
2804 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2805 function.
2806 (add_cmd): Set "completer_handle_brkchars" to NULL.
2807 * cli/cli-decode.h (struct cmd_list_element)
2808 <completer_handle_brkchars>: New field.
2809 * command.h (completer_ftype_void): New typedef.
2810 (set_cmd_completer_handle_brkchars): New prototype.
2811 * completer.c (set_gdb_completion_word_break_characters): New
2812 function.
2813 (complete_line_internal): Call "completer_handle_brkchars"
2814 callback from command.
2815 * completer.h: Include "command.h".
2816 (set_gdb_completion_word_break_characters): New prototype.
2817 * python/py-cmd.c (cmdpy_completer_helper): New function.
2818 (cmdpy_completer_handle_brkchars): New function.
2819 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2820 (cmdpy_init): Set completer_handle_brkchars to
2821 cmdpy_completer_handle_brkchars.
2822
2823 2014-09-03 Gary Benson <gbenson@redhat.com>
2824
2825 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2826 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2827 Loop conditions changed to equivalent form.
2828 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2829 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2830 ALL_DEBUG_ADDRESS_REGISTERS.
2831
2832 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2833
2834 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2835 description fix.
2836
2837 2014-09-02 Doug Evans <dje@google.com>
2838
2839 * typeprint.c (find_global_typedef): Fix comment.
2840
2841 2014-09-02 Gary Benson <gbenson@redhat.com>
2842
2843 * i386-nat.h: Renamed as...
2844 * x86-nat.h: New file. All type, function and variable name
2845 prefixes changed from "i386_" to "x86_". All references updated.
2846 * i386-nat.c: Renamed as...
2847 * x86-nat.c: New file. All type, function and variable name
2848 prefixes changed from "i386_" to "x86_". All references updated.
2849 * common/i386-xstate.h: Renamed as...
2850 * common/x86-xstate.h: New file. All type, function and variable
2851 name prefixes changed from "i386_" to "x86_". All references
2852 updated.
2853 * nat/i386-cpuid.h: Renamed as...
2854 * nat/x86-cpuid.h: New file. All type, function and variable name
2855 prefixes changed from "i386_" to "x86_". All references updated.
2856 * nat/i386-gcc-cpuid.h: Renamed as...
2857 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2858 name prefixes changed from "i386_" to "x86_". All references
2859 updated.
2860 * nat/i386-dregs.h: Renamed as...
2861 * nat/x86-dregs.h: New file. All type, function and variable name
2862 prefixes changed from "i386_" to "x86_". All references updated.
2863 * nat/i386-dregs.c: Renamed as...
2864 * nat/x86-dregs.c: New file. All type, function and variable name
2865 prefixes changed from "i386_" to "x86_". All references updated.
2866
2867 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2868
2869 * varobj.c (_initialize_varobj): Move to the end of file.
2870
2871 2014-08-29 Gary Benson <gbenson@redhat.com>
2872
2873 * common/common-exceptions.h: New file.
2874 * common/common-exceptions.c: Likewise.
2875 * Makefile.in (SFILES): Add common/common-exceptions.c.
2876 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2877 (COMMON_OBS): Add common-exceptions.o.
2878 (common-exceptions.o): New rule.
2879 * exceptions.h (common-exceptions.h): Include.
2880 (gdb_setjmp.h): Do not include.
2881 (return_reason): Moved to common-exceptions.h.
2882 (enum return_reason): Likewise.
2883 (RETURN_MASK): Likewise.
2884 (typedef return_mask): Likewise.
2885 (enum errors): Likewise.
2886 (struct gdb_exception): Likewise.
2887 (exceptions_state_mc_init): Likewise.
2888 (exceptions_state_mc_action_iter): Likewise.
2889 (exceptions_state_mc_action_iter_1): Likewise.
2890 (TRY_CATCH): Likewise.
2891 (throw_exception): Likewise.
2892 (throw_verror): Likewise.
2893 (throw_vquit): Likewise.
2894 (throw_error): Likewise.
2895 (throw_quit): Likewise.
2896 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2897 (enum catcher_action): Likewise.
2898 (struct catcher): Likewise.
2899 (current_catcher): Likewise.
2900 (catcher_list_size): Likewise.
2901 (exceptions_state_mc_init): Likewise.
2902 (catcher_pop): Likewise.
2903 (exceptions_state_mc): Likewise.
2904 (exceptions_state_mc_action_iter): Likewise.
2905 (exceptions_state_mc_action_iter_1): Likewise.
2906 (throw_exception): Likewise.
2907 (exception_messages): Likewise.
2908 (exception_messages_size): Likewise.
2909 (throw_it): Likewise.
2910 (throw_verror): Likewise.
2911 (throw_vquit): Likewise.
2912 (throw_error): Likewise.
2913 (throw_quit): Likewise.
2914 (prepare_to_throw_exception): New function.
2915
2916 2014-08-29 Gary Benson <gbenson@redhat.com>
2917
2918 * common/gdb_setjmp.h: New file.
2919 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2920 * configure.ac: Move sigsetjmp check...
2921 * common/common.m4: ...here.
2922 * configure: Regenerate.
2923 * cp-support.c (SIGJMP_BUF): Delete.
2924 (SIGSETJMP): Likewise.
2925 (SIGLONGJMP): Likewise.
2926 * exceptions.h (gdb_setjmp.h): Include.
2927 (setjmp.h): Do not include.
2928 (EXCEPTIONS_SIGJMP_BUF): Delete.
2929 (EXCEPTIONS_SIGSETJMP): Likewise.
2930 (EXCEPTIONS_SIGLONGJMP): Likewise.
2931 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2932 from gdb_setjmp.h.
2933 * exceptions.c: Likewise.
2934
2935 2014-08-29 Gary Benson <gbenson@redhat.com>
2936
2937 * cleanups.h: Moved to...
2938 * common/cleanups.h: New file.
2939 * cleanups.c: Moved to...
2940 * common/cleanups.c: New file. Include common-defs.h and
2941 cleanups.h. Do not include defs.h.
2942 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2943 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2944 (cleanups.o): New rule.
2945
2946 2014-08-29 Gary Benson <gbenson@redhat.com>
2947
2948 * common/errors.h (internal_warning): New declaration.
2949 (internal_vwarning): Likewise.
2950 * common/errors.c (internal_warning): New function.
2951 * utils.h (internal_warning): Don't declare.
2952 (internal_vwarning): Likewise.
2953 * utils.c (internal_warning): Removed.
2954
2955 2014-08-29 Gary Benson <gbenson@redhat.com>
2956
2957 * main.c (captured_main): Use warning during startup.
2958 Prefix startup warning messages with command name.
2959
2960 2014-08-29 Gary Benson <gbenson@redhat.com>
2961
2962 * main.c (captured_main): Handle usage errors with error.
2963
2964 2014-08-29 Gary Benson <gbenson@redhat.com>
2965
2966 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2967 exit pair with a call to error. Wrap the message with _().
2968
2969 2014-08-29 Gary Benson <gbenson@redhat.com>
2970
2971 * main.c (captured_main): Replace a fprintf/exit
2972 pair with a call to error. Wrap the message with _().
2973
2974 2014-08-29 Gary Benson <gbenson@redhat.com>
2975
2976 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2977 pairs with calls to error. Wrap the message with _().
2978
2979 2014-08-29 Gary Benson <gbenson@redhat.com>
2980
2981 * utils.c (vwarning): Protect calls to target_terminal_ours
2982 and wrap_here.
2983
2984 2014-08-29 Gary Benson <gbenson@redhat.com>
2985
2986 * exceptions.c (print_flush): Protect calls to
2987 target_terminal_ours and wrap_here.
2988
2989 2014-08-29 Gary Benson <gbenson@redhat.com>
2990
2991 * utils.h (filtered_printing_initialized): New declaration.
2992 * utils.c (abort_with_message): New function.
2993 (internal_vproblem): Use abort_with_message for first level
2994 recursive internal problems, and if gdb_stderr is not set up.
2995 Protect calls to target_terminal_ours, begin_line and query.
2996
2997 2014-08-28 Doug Evans <dje@google.com>
2998
2999 * symtab.c (in_prologue): Move definition to better spot.
3000 (skip_prologue_using_sal): Ditto.
3001
3002 2014-08-28 Doug Evans <dje@google.com>
3003
3004 * symtab.c (find_function_start_sal): Move definition to better spot.
3005
3006 2014-08-28 Yao Qi <yao@codesourcery.com>
3007
3008 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3009 found_stack_adjust in forward scan. Remove condition check
3010 on found_stack_adjust which is always true. Indent the code.
3011
3012 2014-08-28 Yao Qi <yao@codesourcery.com>
3013
3014 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3015 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3016 (dwarf_decode_lines): Remove argument
3017 want_line_info. Remove condition check on want_line_info.
3018 Callers update.
3019
3020 2014-08-27 Doug Evans <dje@google.com>
3021
3022 * dwarf2read.c (dwarf_record_line): Fix typo.
3023
3024 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3025
3026 * target.h (struct target_ops::to_terminal_save_ours): Remove
3027 declaration.
3028 (target_terminal_save_ours): Remove macro.
3029 * target-delegates.c: Regenerate.
3030 * inf-child.c (inf_child_target): Don't set the nonexistent
3031 field to_terminal_save_ours.
3032 * inferior.h (child_terminal_save_ours): Remove declaration.
3033 * terminal.h (gdb_save_tty_state): New declaration.
3034 * inflow.c (child_terminal_save_ours): Rename to ...
3035 (gdb_save_tty_state): ... this.
3036 * tui/tui.c: Include terminal.h.
3037 (tui_enable): Use gdb_save_tty_state instead of
3038 target_terminal_save_ours.
3039 (tui_disable): Likewise.
3040
3041 2014-08-25 Doug Evans <dje@google.com>
3042
3043 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3044 Pass NULL instead of 0 for context pointer.
3045
3046 2014-08-25 Yao Qi <yao@codesourcery.com>
3047
3048 * dwarf2read.c: Fix grammatical error.
3049
3050 2014-08-24 Yao Qi <yao@codesourcery.com>
3051
3052 * dwarf2read.c (scan_partial_symbols): Update comments.
3053 Rename argument 'need_pc' with 'set_addrmap'.
3054 (add_partial_namespace): Rename argument 'need_pc' with
3055 'set_addrmap'.
3056 (add_partial_module): Likewise.
3057 (add_partial_subprogram): Likewise. Update comments.
3058 (dwarf2_name): Fix typo.
3059
3060 2014-08-22 Doug Evans <dje@google.com>
3061
3062 PR 17276
3063 * dwarf2read.c (dwarf_record_line_p): New function.
3064 (dwarf_decode_lines_1): Ignore subsequent line number entries
3065 for the same line if any entry had a non-zero discriminator.
3066
3067 2014-08-22 Doug Evans <dje@google.com>
3068
3069 * buildsym.h (record_line_ftype): New typedef.
3070 (record_line): Use it.
3071 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3072 (dwarf_decode_lines_1): Call them.
3073
3074 2014-08-22 Yao Qi <yao@codesourcery.com>
3075
3076 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3077 (ctf_end): Remove code.
3078
3079 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3080
3081 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3082 (linux_make_corefile_notes): call update_thread_list, protected against
3083 exceptions.
3084
3085 2014-08-21 Pedro Alves <palves@redhat.com>
3086
3087 * infcmd.c (attach_command): Remove comment.
3088
3089 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3090
3091 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3092 unsigned LONGEST to ULONGEST.
3093
3094 2014-08-20 Pedro Alves <palves@redhat.com>
3095
3096 * Makefile.in (check-read1): New rule.
3097
3098 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3099
3100 * value.c (value_from_contents_and_address): Strip resolved_type's
3101 typedef layers before checking its TYPE_DATA_LOCATION.
3102
3103 2014-08-20 Pedro Alves <palves@redhat.com>
3104
3105 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3106
3107 2014-08-20 Yao Qi <yao@codesourcery.com>
3108
3109 * amd64-tdep.c (amd64_classify): Add a blank line after the
3110 example. Move "*/" to a new line.
3111 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3112 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3113 * dwarf2read.c (psymtab_include_file_name): Likewise.
3114
3115 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3116 Pedro Alves <palves@redhat.com>
3117
3118 PR symtab/14604
3119 PR symtab/14605
3120 * ada-lang.c (coerce_unspec_val_to_type): Use
3121 value_contents_copy_raw.
3122 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3123 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3124 * cp-valprint.c (cp_print_value_fields): Let the common printing
3125 code handle optimized out values.
3126 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3127 * d-valprint.c (dynamic_array_type): Use
3128 value_bits_any_optimized_out.
3129 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3130 check_any_valid fields.
3131 (check_pieced_value_bits): Delete and inline ...
3132 (check_pieced_synthetic_pointer): ... here.
3133 (check_pieced_value_validity): Delete.
3134 (check_pieced_value_invalid): Delete.
3135 (pieced_value_funcs): Remove check_validity and check_any_valid
3136 fields.
3137 (read_pieced_value): Use mark_value_bits_optimized_out.
3138 (write_pieced_value): Switch to use
3139 mark_value_bytes_optimized_out.
3140 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3141 of assuming the whole value is optimized out.
3142 * findvar.c (read_frame_register_value): Remove special handling
3143 of optimized out registers.
3144 (value_from_register): Use mark_value_bytes_optimized_out.
3145 * frame-unwind.c (frame_unwind_got_optimized): Use
3146 mark_value_bytes_optimized_out.
3147 * jv-valprint.c (java_value_print): Adjust.
3148 (java_print_value_fields): Let the common printing code handle
3149 optimized out values.
3150 * mips-tdep.c (mips_print_register): Remove special handling of
3151 optimized out registers.
3152 * opencl-lang.c (lval_func_check_validity): Delete.
3153 (lval_func_check_any_valid): Delete.
3154 (opencl_value_funcs): Remove check_validity and check_any_valid
3155 fields.
3156 * p-valprint.c (pascal_object_print_value_fields): Let the common
3157 printing code handle optimized out values.
3158 * stack.c (read_frame_arg): Remove special handling of optimized
3159 out values. Fetch both VAL and ENTRYVAL before comparing
3160 contents. Adjust to value_available_contents_eq rename.
3161 * valprint.c (valprint_check_validity)
3162 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3163 (val_print_array_elements): Adjust.
3164 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3165 (value_bits_any_optimized_out): New function.
3166 (value_entirely_covered_by_range_vector): New function, factored
3167 out from value_entirely_unavailable.
3168 (value_entirely_unavailable): Reimplement.
3169 (value_entirely_optimized_out): New function.
3170 (insert_into_bit_range_vector): New function, factored out from
3171 mark_value_bits_unavailable.
3172 (mark_value_bits_unavailable): Reimplement.
3173 (struct ranges_and_idx): New struct.
3174 (find_first_range_overlap_and_match): New function, factored out
3175 from value_available_contents_bits_eq.
3176 (value_available_contents_bits_eq): Rename to ...
3177 (value_contents_bits_eq): ... this. Check both unavailable
3178 contents and optimized out contents.
3179 (value_available_contents_eq): Rename to ...
3180 (value_contents_eq): ... this.
3181 (allocate_value_lazy): Remove reference to the old optimized_out
3182 boolean.
3183 (allocate_optimized_out_value): Use
3184 mark_value_bytes_optimized_out.
3185 (require_not_optimized_out): Adjust to check whether the
3186 optimized_out vec is empty.
3187 (ranges_copy_adjusted): New function, factored out from
3188 value_contents_copy_raw.
3189 (value_contents_copy_raw): Also copy the optimized out ranges.
3190 Assert the destination ranges aren't optimized out.
3191 (value_contents_copy): Update comment, remove call to
3192 require_not_optimized_out.
3193 (value_contents_equal): Adjust to check whether the optimized_out
3194 vec is empty.
3195 (set_value_optimized_out, value_optimized_out_const): Delete.
3196 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3197 New functions.
3198 (value_entirely_optimized_out, value_bits_valid): Delete.
3199 (value_copy): Take a VEC copy of the 'optimized_out' field.
3200 (value_primitive_field): Remove special handling of optimized out.
3201 (value_fetch_lazy): Assert that lazy values have no unavailable
3202 regions. Use value_bits_any_optimized_out. Remove some special
3203 handling for optimized out values.
3204 * value.h: Add intro comment about <optimized out> and
3205 <unavailable>.
3206 (struct lval_funcs): Remove check_validity and check_any_valid
3207 fields.
3208 (set_value_optimized_out, value_optimized_out_const): Remove.
3209 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3210 New declarations.
3211 (value_bits_any_optimized_out): New declaration.
3212 (value_bits_valid): Delete declaration.
3213 (value_available_contents_eq): Rename to ...
3214 (value_contents_eq): ... this, and extend comments.
3215
3216 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 Fix -fsanitize=address on unreadable inferior strings.
3219 * valprint.c (val_print_string): Fix access before BUFFER.
3220
3221 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3222
3223 * target.c (target_struct_size): Remove.
3224 (target_struct_allocsize): Remove.
3225 (DEFAULT_ALLOCSIZE): Remove.
3226 (target_ops_p): New typedef.
3227 (DEF_VEC_P (target_ops_p)): New vector type.
3228 (target_structs): Change type to VEC (target_ops_p).
3229 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3230 (find_default_run_target): Rewrite for loop following changes to
3231 target_structs.
3232
3233 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3234
3235 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3236 Adjust code accordingly. Adjust function description comment.
3237
3238 2014-08-19 Yao Qi <yao@codesourcery.com>
3239
3240 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3241 types.
3242
3243 2014-08-19 Alan Modra <amodra@gmail.com>
3244
3245 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3246 * config.in: Regenerate.
3247 * configure: Regenerate.
3248
3249 2014-08-19 Tom Tromey <tromey@redhat.com>
3250 Gary Benson <gbenson@redhat.com>
3251
3252 * common/common-debug.h: New file.
3253 * common/common-debug.c: Likewise.
3254 * debug.c: Likewise.
3255 * Makefile.in (SFILES): Add common/common-debug.c.
3256 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3257 (COMMON_OBS): Add common-debug.o and debug.o.
3258 (common-debug.o): New rule.
3259 * common/common-defs.h: Include common-debug.h.
3260 * common/agent.c (debug_agent_printf): New function.
3261 (DEBUG_AGENT): Redefine.
3262 * nat/i386-dregs.c (debug_printf): Undefine.
3263
3264 2014-08-19 Gary Benson <gbenson@redhat.com>
3265
3266 * common/common-defs.h: Include print-utils.h.
3267 * utils.h: Do not include print-utils.h.
3268
3269 2014-08-19 Tom Tromey <tromey@redhat.com>
3270 Gary Benson <gbenson@redhat.com>
3271
3272 * common/common-types.h: New file.
3273 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3274 * common/common-defs.h: Include common-types.h.
3275 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3276 (ULONGEST): Remove.
3277
3278 2014-08-19 Tom Tromey <tromey@redhat.com>
3279 Gary Benson <gbenson@redhat.com>
3280
3281 * common/errors.h: New file.
3282 * common/errors.c: Likewise.
3283 * Makefile.in (SFILES): Add common/errors.c.
3284 (HFILES_NO_SRCDIR): Add common/errors.h.
3285 (COMMON_OBS): Add errors.o.
3286 (errors.o): New rule.
3287 * common/common-defs.h: Include errors.h.
3288 * utils.h (perror_with_name, error, verror, warning, vwarning):
3289 Don't declare.
3290 * common/common-utils.h: (malloc_failure, internal_error):
3291 Likewise.
3292
3293 2014-08-19 Gary Benson <gbenson@redhat.com>
3294
3295 * utils.c (internal_vproblem): Always print the message.
3296
3297 2014-08-18 Doug Evans <dje@google.com>
3298
3299 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3300
3301 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3302
3303 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3304 Return 0 if TYPE is dynamic.
3305 (print_range): Add handling of dynamic ranges.
3306
3307 2014-08-18 Keven Boell <keven.boell@intel.com>
3308 Joel Brobecker <brobecker@adacore.com>
3309
3310 * gdbtypes.h (struct main_type): Add field "data_location".
3311 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3312 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3313 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3314 a dynamic data location.
3315 (resolve_dynamic_type): Add DW_AT_data_location handling.
3316 (copy_recursive, copy_type): Copy the data_location information
3317 when present.
3318 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3319 * value.c (value_from_contents_and_address): Add
3320 DW_AT_data_location handling.
3321
3322 2014-08-18 Keven Boell <keven.boell@intel.com>
3323 Joel Brobecker <brobecker@adacore.com>
3324
3325 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3326 field "get_object_address".
3327 * dwarf2expr.c (execute_stack_op): Add handling for
3328 DW_OP_push_object_address.
3329 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3330 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3331 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3332 (dwarf_expr_get_obj_addr): New function.
3333 (dwarf_expr_ctx_funcs): Add get_object_address field.
3334 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3335 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3336 (dwarf2_evaluate_property): Add parameter "address". Use it.
3337 (needs_get_obj_addr): New function.
3338 (needs_frame_ctx_funcs): Add get_object_address field.
3339 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3340 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3341 (resolve_dynamic_array): Likewise.
3342
3343 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3344
3345 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3346 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3347 fixed value for records and unions for which some GNAT encodings
3348 are present.
3349
3350 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3351
3352 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3353 rewrite to avoid "else if" and "else" constructs. Should be
3354 a no-op in practice.
3355
3356 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3357
3358 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3359 of lexical block.
3360
3361 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3362
3363 PR c++/17132
3364 * eval.c: Update all calls to find_overload_match.
3365 * valarith.c: Likewise.
3366 (value_user_defined_cpp_op, value_user_defined_op): New
3367 argument NOSIDE. Update all callers.
3368 * valops.c (find_overload_match): New argument NOSIDE.
3369 * value.h (find_overload_match): Update signature.
3370
3371 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3372
3373 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3374 'items' methods instead of 'iteritems' method on dictionaries.
3375
3376 2014-08-15 Doug Evans <dje@google.com>
3377
3378 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3379 closer to use.
3380
3381 2014-08-15 Doug Evans <dje@google.com>
3382
3383 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3384
3385 2014-08-15 Doug Evans <dje@google.com>
3386
3387 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3388
3389 2014-08-15 Doug Evans <dje@google.com>
3390
3391 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3392 unused.
3393
3394 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3395
3396 * dcache.h: Include target.h, to avoid compile time warnings.
3397
3398 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3399
3400 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3401 frame_info" partial declaration.
3402 * gdbarch.h: Regenerate.
3403
3404 2014-08-15 Yao Qi <yao@codesourcery.com>
3405
3406 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3407 Add parameter 'decode_for_pst_p'. Callers update.
3408
3409 2014-08-13 Yao Qi <yao@codesourcery.com>
3410
3411 PR build/17104
3412 * configure.ac: Use local variable 'pos'.
3413 * configure: Regenerated.
3414
3415 2014-08-11 Doug Evans <dje@google.com>
3416
3417 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3418 message, it is redundant with "Reading symbols from ..." message.
3419
3420 2014-08-10 Doug Evans <xdje42@gmail.com>
3421
3422 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3423
3424 2014-08-09 Yao Qi <yao@codesourcery.com>
3425
3426 PR remote/9053
3427 * remote.c (remote_xfer_partial): Remove dead code.
3428
3429 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3430
3431 * ia64-linux-tdep.c: Include "regset.h".
3432 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3433 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3434 (ia64_linux_supply_fpregset): New function.
3435 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3436 (ia64_linux_regset_from_core_section): New function.
3437 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3438 method.
3439
3440 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3441
3442 * m68klinux-tdep.c: Include "regset.h".
3443 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3444 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3445 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3446 (m68k_linux_regset_from_core_section): New function.
3447 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3448 method.
3449
3450 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3451
3452 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3453 function. Move logic to...
3454 (tilegx_linux_regmap): ... this new register map.
3455 (tilegx_linux_regset): Refer to register map, replace supply
3456 method by regcache_supply_regset, and add collect method.
3457 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3458 TILEGX_FIRST_EASY_REGNUM.
3459
3460 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3461
3462 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3463 that calls regcache_supply_regset and handles the EPC register
3464 separately. Move main logic to...
3465 (score7_linux_gregmap): ... this new register map.
3466 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3467 (score7_linux_gregset): Refer to register map. Add collect method.
3468 (score7_linux_regset_from_core_section): Replace
3469 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3470 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3471 (struct regset): Delete unused forward declaraction.
3472 (struct pt_regs): Delete structure definition.
3473 (elf_gregset_t): Delete typedef.
3474
3475 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3476
3477 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3478 (nios2_core_regset): Add collect method.
3479
3480 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3481
3482 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3483 platform-independent and don't write to read-only input buffer.
3484 (m32r_linux_collect_gregset): New function.
3485 (m32r_linux_gregset): Add collect method.
3486
3487 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3488
3489 * hppa-linux-tdep.c (greg_map): Rename to...
3490 (hppa_linux_gregmap): ... this. Also convert to
3491 regcache_map_entry format.
3492 (hppa_linux_supply_regset): Delete function.
3493 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3494 (hppa_linux_fpregmap): ... this new register map.
3495 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3496 register map, replace supply method by regcache_supply_regset, and
3497 add collect method regcache_collect_regset.
3498
3499 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3500
3501 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3502 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3503 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3504 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3505 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3506 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3507 (frv_linux_supply_gregset): Replace main logic by call to
3508 regcache_supply_regset, but keep clearing gr32-gr63.
3509 (frv_linux_supply_fpregset): Delete function.
3510 (frv_linux_gregset): Refer to appropriate register map and add
3511 regcache_collect_regset as the collect method.
3512 (frv_linux_fpregset): Likewise. Also exchange the supply method
3513 by regcache_supply_regset.
3514
3515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3516
3517 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3518 by call to alpha_supply_int_regs.
3519 (alpha_linux_collect_gregset): New function.
3520 (alpha_linux_supply_fpregset): Replace logic by call to
3521 alpha_supply_fp_regs.
3522 (alpha_linux_collect_fpregset): New function.
3523 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3524
3525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3526
3527 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3528 by call to regcache_collect_regset.
3529 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3530 instead of aarch64_linux_supply_gregset/_fpregset.
3531 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3532 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3533 header file instead.
3534 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3535 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3536 functions. Move logic to ...
3537 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3538 register maps.
3539 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3540 refer to new register maps, replace *_regset_from_core by
3541 regcache_supply_regset, and also use regcache_collect_regset.
3542 * aarch64-linux-tdep.h: Include "regset.h".
3543 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3544 Delete prototypes.
3545 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3546 macros, moved from C source file.
3547 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3548 variable declarations.
3549
3550 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3551
3552 * s390-linux-nat.c: Include "regset.h".
3553 (regmap_gregset): Delete macro.
3554 (s390_64_regmap_gregset): New register map for
3555 regcache_supply/_collect_regset.
3556 (s390_64_gregset): New regset.
3557 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3558 (regmap_fpregset): Delete macro.
3559 (s390_native_supply, s390_native_collect): Delete functions.
3560 (supply_gregset, fill_gregset): Replace s390-specific regmap
3561 handling by a call to regcache_supply/_collect_regset.
3562 (supply_fpregset, fill_fpregset): Call regcache_supply/
3563 _collect_regset instead of s390_native_supply/_collect.
3564 (fetch_regset, store_regset): Likewise. Also change the last
3565 parameter to a regset instead of a regmap.
3566 (s390_linux_fetch_inferior_registers)
3567 (390_linux_store_inferior_registers): Adjust last parameter in
3568 calls to fetch_regset and store_regset.
3569 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3570 (s390_gregmap): ... this. Also make static const and convert to
3571 regcache_map_entry format.
3572 (s390x_regmap_gregset): Delete.
3573 (s390_regmap_fpregset): Rename to...
3574 (s390_fpregmap): ... this. Make static const and convert to
3575 regcache_map_entry format.
3576 (s390_regmap_upper, s390_regmap_last_break)
3577 (s390x_regmap_last_break, s390_regmap_system_call)
3578 (s390_regmap_tdb): Likewise.
3579 (s390_supply_regset, s390_collect_regset): Remove functions.
3580 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3581 s390_supply_regset.
3582 (s390_gregset, s390_fpregset, s390_upper_regset)
3583 (s390_last_break_regset, s390x_last_break_regset)
3584 (s390_system_call_regset, s390_tdb_regset): Make global and
3585 replace s390_supply/_collect_regset by regcache_supply/
3586 _collect_regset.
3587 (s390x_gregset): Delete.
3588 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3589 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3590 (s390_regmap_fpregset, s390_regmap_last_break)
3591 (s390x_regmap_last_break, s390_regmap_system_call)
3592 (s390_regmap_tdb): Delete global variable declarations.
3593 (s390_gregset, s390_fpregset, s390_last_break_regset)
3594 (s390x_last_break_regset, s390_system_call_regset)
3595 (s390_tdb_regset): New global variable declarations.
3596
3597 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3598
3599 * regcache.c: Include "regset.h".
3600 (regcache_transfer_regset): New local function.
3601 (regcache_supply_regset, regcache_collect_regset): New functions.
3602 * regcache.h (struct regcache_map_entry): New structure.
3603 (REGCACHE_MAP_SKIP): New enum value.
3604 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3605
3606 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3607
3608 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3609 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3610 (ppc_linux_collect_gregset ): Likewise.
3611 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3612 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3613 (ppc_collect_vrregset): Likewise.
3614 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3615 Likewise.
3616
3617 2014-08-07 Yao Qi <yao@codesourcery.com>
3618
3619 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3620 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3621 * remote.c (remote_read_bytes): Likewise.
3622
3623 2014-08-07 Yao Qi <yao@codesourcery.com>
3624
3625 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3626
3627 2014-08-07 Yao Qi <yao@codesourcery.com>
3628
3629 PR remote/17230
3630 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3631 TARGET_XFER_OK instead of 0.
3632
3633 2014-08-07 Gary Benson <gbenson@redhat.com>
3634
3635 * common/common-defs.h: Include errno.h.
3636 * defs.h: Do not include errno.h.
3637 * ada-typeprint.c: Likewise.
3638 * c-typeprint.c: Likewise.
3639 * core-regset.c: Likewise.
3640 * corefile.c: Likewise.
3641 * corelow.c: Likewise.
3642 * event-loop.c: Likewise.
3643 * f-typeprint.c: Likewise.
3644 * gnu-nat.c: Likewise.
3645 * go32-nat.c: Likewise.
3646 * i386gnu-nat.c: Likewise.
3647 * m2-typeprint.c: Likewise.
3648 * nat/linux-btrace.c: Likewise.
3649 * p-typeprint.c: Likewise.
3650 * procfs.c: Likewise.
3651 * remote-sim.c: Likewise.
3652 * rs6000-nat.c: Likewise.
3653 * target.c: Likewise.
3654 * typeprint.c: Likewise.
3655 * ui-file.c: Likewise.
3656 * valops.c: Likewise.
3657 * valprint.c: Likewise.
3658
3659 2014-08-07 Gary Benson <gbenson@redhat.com>
3660
3661 * common/common-defs.h: Include string.h.
3662 * aarch64-tdep.c: Do not include string.h.
3663 * ada-exp.y: Likewise.
3664 * ada-lang.c: Likewise.
3665 * ada-lex.l: Likewise.
3666 * ada-typeprint.c: Likewise.
3667 * ada-valprint.c: Likewise.
3668 * aix-thread.c: Likewise.
3669 * alpha-linux-tdep.c: Likewise.
3670 * alpha-mdebug-tdep.c: Likewise.
3671 * alpha-nat.c: Likewise.
3672 * alpha-osf1-tdep.c: Likewise.
3673 * alpha-tdep.c: Likewise.
3674 * alphanbsd-tdep.c: Likewise.
3675 * amd64-dicos-tdep.c: Likewise.
3676 * amd64-linux-tdep.c: Likewise.
3677 * amd64-nat.c: Likewise.
3678 * amd64-sol2-tdep.c: Likewise.
3679 * amd64fbsd-tdep.c: Likewise.
3680 * amd64obsd-tdep.c: Likewise.
3681 * arch-utils.c: Likewise.
3682 * arm-linux-nat.c: Likewise.
3683 * arm-linux-tdep.c: Likewise.
3684 * arm-tdep.c: Likewise.
3685 * arm-wince-tdep.c: Likewise.
3686 * armbsd-tdep.c: Likewise.
3687 * armnbsd-nat.c: Likewise.
3688 * armnbsd-tdep.c: Likewise.
3689 * armobsd-tdep.c: Likewise.
3690 * avr-tdep.c: Likewise.
3691 * ax-gdb.c: Likewise.
3692 * ax-general.c: Likewise.
3693 * bcache.c: Likewise.
3694 * bfin-tdep.c: Likewise.
3695 * breakpoint.c: Likewise.
3696 * build-id.c: Likewise.
3697 * buildsym.c: Likewise.
3698 * c-exp.y: Likewise.
3699 * c-lang.c: Likewise.
3700 * c-typeprint.c: Likewise.
3701 * c-valprint.c: Likewise.
3702 * charset.c: Likewise.
3703 * cli-out.c: Likewise.
3704 * cli/cli-cmds.c: Likewise.
3705 * cli/cli-decode.c: Likewise.
3706 * cli/cli-dump.c: Likewise.
3707 * cli/cli-interp.c: Likewise.
3708 * cli/cli-logging.c: Likewise.
3709 * cli/cli-script.c: Likewise.
3710 * cli/cli-setshow.c: Likewise.
3711 * cli/cli-utils.c: Likewise.
3712 * coffread.c: Likewise.
3713 * common/agent.c: Likewise.
3714 * common/buffer.c: Likewise.
3715 * common/buffer.h: Likewise.
3716 * common/common-utils.c: Likewise.
3717 * common/filestuff.c: Likewise.
3718 * common/filestuff.c: Likewise.
3719 * common/format.c: Likewise.
3720 * common/print-utils.c: Likewise.
3721 * common/rsp-low.c: Likewise.
3722 * common/signals.c: Likewise.
3723 * common/vec.h: Likewise.
3724 * common/xml-utils.c: Likewise.
3725 * core-regset.c: Likewise.
3726 * corefile.c: Likewise.
3727 * corelow.c: Likewise.
3728 * cp-abi.c: Likewise.
3729 * cp-name-parser.y: Likewise.
3730 * cp-support.c: Likewise.
3731 * cp-valprint.c: Likewise.
3732 * cris-tdep.c: Likewise.
3733 * d-exp.y: Likewise.
3734 * darwin-nat.c: Likewise.
3735 * dbxread.c: Likewise.
3736 * dcache.c: Likewise.
3737 * demangle.c: Likewise.
3738 * dicos-tdep.c: Likewise.
3739 * disasm.c: Likewise.
3740 * doublest.c: Likewise.
3741 * dsrec.c: Likewise.
3742 * dummy-frame.c: Likewise.
3743 * dwarf2-frame.c: Likewise.
3744 * dwarf2loc.c: Likewise.
3745 * dwarf2read.c: Likewise.
3746 * elfread.c: Likewise.
3747 * environ.c: Likewise.
3748 * eval.c: Likewise.
3749 * event-loop.c: Likewise.
3750 * exceptions.c: Likewise.
3751 * exec.c: Likewise.
3752 * expprint.c: Likewise.
3753 * f-exp.y: Likewise.
3754 * f-lang.c: Likewise.
3755 * f-typeprint.c: Likewise.
3756 * f-valprint.c: Likewise.
3757 * fbsd-nat.c: Likewise.
3758 * findcmd.c: Likewise.
3759 * findvar.c: Likewise.
3760 * fork-child.c: Likewise.
3761 * frame.c: Likewise.
3762 * frv-linux-tdep.c: Likewise.
3763 * frv-tdep.c: Likewise.
3764 * gdb.c: Likewise.
3765 * gdb_bfd.c: Likewise.
3766 * gdbarch.c: Likewise.
3767 * gdbarch.sh: Likewise.
3768 * gdbtypes.c: Likewise.
3769 * gnu-nat.c: Likewise.
3770 * gnu-v2-abi.c: Likewise.
3771 * gnu-v3-abi.c: Likewise.
3772 * go-exp.y: Likewise.
3773 * go-lang.c: Likewise.
3774 * go32-nat.c: Likewise.
3775 * guile/guile.c: Likewise.
3776 * guile/scm-auto-load.c: Likewise.
3777 * hppa-hpux-tdep.c: Likewise.
3778 * hppa-linux-nat.c: Likewise.
3779 * hppanbsd-tdep.c: Likewise.
3780 * hppaobsd-tdep.c: Likewise.
3781 * i386-cygwin-tdep.c: Likewise.
3782 * i386-dicos-tdep.c: Likewise.
3783 * i386-linux-tdep.c: Likewise.
3784 * i386-nto-tdep.c: Likewise.
3785 * i386-sol2-tdep.c: Likewise.
3786 * i386-tdep.c: Likewise.
3787 * i386bsd-tdep.c: Likewise.
3788 * i386gnu-nat.c: Likewise.
3789 * i386nbsd-tdep.c: Likewise.
3790 * i386obsd-tdep.c: Likewise.
3791 * i387-tdep.c: Likewise.
3792 * ia64-libunwind-tdep.c: Likewise.
3793 * ia64-linux-nat.c: Likewise.
3794 * inf-child.c: Likewise.
3795 * inf-ptrace.c: Likewise.
3796 * inf-ttrace.c: Likewise.
3797 * infcall.c: Likewise.
3798 * infcmd.c: Likewise.
3799 * inflow.c: Likewise.
3800 * infrun.c: Likewise.
3801 * interps.c: Likewise.
3802 * iq2000-tdep.c: Likewise.
3803 * irix5-nat.c: Likewise.
3804 * jv-exp.y: Likewise.
3805 * jv-lang.c: Likewise.
3806 * jv-typeprint.c: Likewise.
3807 * jv-valprint.c: Likewise.
3808 * language.c: Likewise.
3809 * linux-fork.c: Likewise.
3810 * linux-nat.c: Likewise.
3811 * lm32-tdep.c: Likewise.
3812 * m2-exp.y: Likewise.
3813 * m2-typeprint.c: Likewise.
3814 * m32c-tdep.c: Likewise.
3815 * m32r-linux-nat.c: Likewise.
3816 * m32r-linux-tdep.c: Likewise.
3817 * m32r-rom.c: Likewise.
3818 * m32r-tdep.c: Likewise.
3819 * m68hc11-tdep.c: Likewise.
3820 * m68k-tdep.c: Likewise.
3821 * m68kbsd-tdep.c: Likewise.
3822 * m68klinux-nat.c: Likewise.
3823 * m68klinux-tdep.c: Likewise.
3824 * m88k-tdep.c: Likewise.
3825 * machoread.c: Likewise.
3826 * macrocmd.c: Likewise.
3827 * main.c: Likewise.
3828 * mdebugread.c: Likewise.
3829 * mem-break.c: Likewise.
3830 * memattr.c: Likewise.
3831 * memory-map.c: Likewise.
3832 * mep-tdep.c: Likewise.
3833 * mi/mi-cmd-break.c: Likewise.
3834 * mi/mi-cmd-disas.c: Likewise.
3835 * mi/mi-cmd-env.c: Likewise.
3836 * mi/mi-cmd-stack.c: Likewise.
3837 * mi/mi-cmd-var.c: Likewise.
3838 * mi/mi-cmds.c: Likewise.
3839 * mi/mi-console.c: Likewise.
3840 * mi/mi-getopt.c: Likewise.
3841 * mi/mi-interp.c: Likewise.
3842 * mi/mi-main.c: Likewise.
3843 * mi/mi-parse.c: Likewise.
3844 * microblaze-rom.c: Likewise.
3845 * microblaze-tdep.c: Likewise.
3846 * mingw-hdep.c: Likewise.
3847 * minidebug.c: Likewise.
3848 * minsyms.c: Likewise.
3849 * mips-irix-tdep.c: Likewise.
3850 * mips-linux-tdep.c: Likewise.
3851 * mips-tdep.c: Likewise.
3852 * mips64obsd-tdep.c: Likewise.
3853 * mipsnbsd-tdep.c: Likewise.
3854 * mipsread.c: Likewise.
3855 * mn10300-linux-tdep.c: Likewise.
3856 * mn10300-tdep.c: Likewise.
3857 * monitor.c: Likewise.
3858 * moxie-tdep.c: Likewise.
3859 * mt-tdep.c: Likewise.
3860 * nat/linux-btrace.c: Likewise.
3861 * nat/linux-osdata.c: Likewise.
3862 * nat/linux-procfs.c: Likewise.
3863 * nat/linux-ptrace.c: Likewise.
3864 * nat/linux-waitpid.c: Likewise.
3865 * nbsd-tdep.c: Likewise.
3866 * nios2-linux-tdep.c: Likewise.
3867 * nto-procfs.c: Likewise.
3868 * nto-tdep.c: Likewise.
3869 * objc-lang.c: Likewise.
3870 * objfiles.c: Likewise.
3871 * opencl-lang.c: Likewise.
3872 * osabi.c: Likewise.
3873 * osdata.c: Likewise.
3874 * p-exp.y: Likewise.
3875 * p-lang.c: Likewise.
3876 * p-typeprint.c: Likewise.
3877 * parse.c: Likewise.
3878 * posix-hdep.c: Likewise.
3879 * ppc-linux-nat.c: Likewise.
3880 * ppc-sysv-tdep.c: Likewise.
3881 * ppcfbsd-tdep.c: Likewise.
3882 * ppcnbsd-tdep.c: Likewise.
3883 * ppcobsd-tdep.c: Likewise.
3884 * printcmd.c: Likewise.
3885 * procfs.c: Likewise.
3886 * prologue-value.c: Likewise.
3887 * python/py-auto-load.c: Likewise.
3888 * python/py-gdb-readline.c: Likewise.
3889 * ravenscar-thread.c: Likewise.
3890 * regcache.c: Likewise.
3891 * registry.c: Likewise.
3892 * remote-fileio.c: Likewise.
3893 * remote-m32r-sdi.c: Likewise.
3894 * remote-mips.c: Likewise.
3895 * remote-notif.c: Likewise.
3896 * remote-sim.c: Likewise.
3897 * remote.c: Likewise.
3898 * reverse.c: Likewise.
3899 * rs6000-aix-tdep.c: Likewise.
3900 * ser-base.c: Likewise.
3901 * ser-go32.c: Likewise.
3902 * ser-mingw.c: Likewise.
3903 * ser-pipe.c: Likewise.
3904 * ser-tcp.c: Likewise.
3905 * ser-unix.c: Likewise.
3906 * serial.c: Likewise.
3907 * sh-tdep.c: Likewise.
3908 * sh64-tdep.c: Likewise.
3909 * shnbsd-tdep.c: Likewise.
3910 * skip.c: Likewise.
3911 * sol-thread.c: Likewise.
3912 * solib-dsbt.c: Likewise.
3913 * solib-frv.c: Likewise.
3914 * solib-osf.c: Likewise.
3915 * solib-som.c: Likewise.
3916 * solib-spu.c: Likewise.
3917 * solib-target.c: Likewise.
3918 * solib.c: Likewise.
3919 * somread.c: Likewise.
3920 * source.c: Likewise.
3921 * sparc-nat.c: Likewise.
3922 * sparc-sol2-tdep.c: Likewise.
3923 * sparc-tdep.c: Likewise.
3924 * sparc64-tdep.c: Likewise.
3925 * sparc64fbsd-tdep.c: Likewise.
3926 * sparc64nbsd-tdep.c: Likewise.
3927 * sparcnbsd-tdep.c: Likewise.
3928 * spu-linux-nat.c: Likewise.
3929 * spu-multiarch.c: Likewise.
3930 * spu-tdep.c: Likewise.
3931 * stabsread.c: Likewise.
3932 * stack.c: Likewise.
3933 * std-regs.c: Likewise.
3934 * symfile.c: Likewise.
3935 * symmisc.c: Likewise.
3936 * symtab.c: Likewise.
3937 * target.c: Likewise.
3938 * thread.c: Likewise.
3939 * tilegx-linux-nat.c: Likewise.
3940 * tilegx-tdep.c: Likewise.
3941 * top.c: Likewise.
3942 * tracepoint.c: Likewise.
3943 * tui/tui-command.c: Likewise.
3944 * tui/tui-data.c: Likewise.
3945 * tui/tui-disasm.c: Likewise.
3946 * tui/tui-file.c: Likewise.
3947 * tui/tui-layout.c: Likewise.
3948 * tui/tui-out.c: Likewise.
3949 * tui/tui-regs.c: Likewise.
3950 * tui/tui-source.c: Likewise.
3951 * tui/tui-stack.c: Likewise.
3952 * tui/tui-win.c: Likewise.
3953 * tui/tui-windata.c: Likewise.
3954 * tui/tui-winsource.c: Likewise.
3955 * typeprint.c: Likewise.
3956 * ui-file.c: Likewise.
3957 * ui-out.c: Likewise.
3958 * user-regs.c: Likewise.
3959 * utils.c: Likewise.
3960 * v850-tdep.c: Likewise.
3961 * valarith.c: Likewise.
3962 * valops.c: Likewise.
3963 * valprint.c: Likewise.
3964 * value.c: Likewise.
3965 * varobj.c: Likewise.
3966 * vax-tdep.c: Likewise.
3967 * vaxnbsd-tdep.c: Likewise.
3968 * vaxobsd-tdep.c: Likewise.
3969 * windows-nat.c: Likewise.
3970 * xcoffread.c: Likewise.
3971 * xml-support.c: Likewise.
3972 * xstormy16-tdep.c: Likewise.
3973 * xtensa-linux-nat.c: Likewise.
3974
3975 2014-08-07 Gary Benson <gbenson@redhat.com>
3976
3977 * common/common-defs.h: Include gdb_assert.h.
3978 * aarch64-tdep.c: Do not include gdb_assert.h.
3979 * addrmap.c: Likewise.
3980 * aix-thread.c: Likewise.
3981 * alpha-linux-tdep.c: Likewise.
3982 * alpha-mdebug-tdep.c: Likewise.
3983 * alphanbsd-tdep.c: Likewise.
3984 * amd64-nat.c: Likewise.
3985 * amd64-tdep.c: Likewise.
3986 * amd64bsd-nat.c: Likewise.
3987 * amd64fbsd-nat.c: Likewise.
3988 * amd64fbsd-tdep.c: Likewise.
3989 * amd64nbsd-nat.c: Likewise.
3990 * amd64nbsd-tdep.c: Likewise.
3991 * amd64obsd-nat.c: Likewise.
3992 * amd64obsd-tdep.c: Likewise.
3993 * arch-utils.c: Likewise.
3994 * arm-tdep.c: Likewise.
3995 * armbsd-tdep.c: Likewise.
3996 * auxv.c: Likewise.
3997 * bcache.c: Likewise.
3998 * bfin-tdep.c: Likewise.
3999 * blockframe.c: Likewise.
4000 * breakpoint.c: Likewise.
4001 * bsd-kvm.c: Likewise.
4002 * bsd-uthread.c: Likewise.
4003 * buildsym.c: Likewise.
4004 * c-exp.y: Likewise.
4005 * c-lang.c: Likewise.
4006 * charset.c: Likewise.
4007 * cleanups.c: Likewise.
4008 * cli-out.c: Likewise.
4009 * cli/cli-decode.c: Likewise.
4010 * cli/cli-dump.c: Likewise.
4011 * cli/cli-logging.c: Likewise.
4012 * cli/cli-script.c: Likewise.
4013 * cli/cli-utils.c: Likewise.
4014 * coffread.c: Likewise.
4015 * common/common-utils.c: Likewise.
4016 * common/queue.h: Likewise.
4017 * common/signals.c: Likewise.
4018 * common/vec.h: Likewise.
4019 * complaints.c: Likewise.
4020 * completer.c: Likewise.
4021 * corelow.c: Likewise.
4022 * cp-abi.c: Likewise.
4023 * cp-name-parser.y: Likewise.
4024 * cp-namespace.c: Likewise.
4025 * cp-support.c: Likewise.
4026 * cris-tdep.c: Likewise.
4027 * dbxread.c: Likewise.
4028 * dictionary.c: Likewise.
4029 * doublest.c: Likewise.
4030 * dsrec.c: Likewise.
4031 * dummy-frame.c: Likewise.
4032 * dwarf2-frame-tailcall.c: Likewise.
4033 * dwarf2-frame.c: Likewise.
4034 * dwarf2expr.c: Likewise.
4035 * dwarf2loc.c: Likewise.
4036 * dwarf2read.c: Likewise.
4037 * eval.c: Likewise.
4038 * event-loop.c: Likewise.
4039 * exceptions.c: Likewise.
4040 * expprint.c: Likewise.
4041 * f-valprint.c: Likewise.
4042 * fbsd-nat.c: Likewise.
4043 * findvar.c: Likewise.
4044 * frame-unwind.c: Likewise.
4045 * frame.c: Likewise.
4046 * frv-tdep.c: Likewise.
4047 * gcore.c: Likewise.
4048 * gdb-dlfcn.c: Likewise.
4049 * gdb_bfd.c: Likewise.
4050 * gdbarch.c: Likewise.
4051 * gdbarch.sh: Likewise.
4052 * gdbtypes.c: Likewise.
4053 * gnu-nat.c: Likewise.
4054 * gnu-v3-abi.c: Likewise.
4055 * go-lang.c: Likewise.
4056 * guile/scm-exception.c: Likewise.
4057 * guile/scm-gsmob.c: Likewise.
4058 * guile/scm-lazy-string.c: Likewise.
4059 * guile/scm-math.c: Likewise.
4060 * guile/scm-pretty-print.c: Likewise.
4061 * guile/scm-safe-call.c: Likewise.
4062 * guile/scm-utils.c: Likewise.
4063 * guile/scm-value.c: Likewise.
4064 * h8300-tdep.c: Likewise.
4065 * hppa-hpux-nat.c: Likewise.
4066 * hppa-tdep.c: Likewise.
4067 * hppanbsd-tdep.c: Likewise.
4068 * hppaobsd-tdep.c: Likewise.
4069 * i386-darwin-nat.c: Likewise.
4070 * i386-darwin-tdep.c: Likewise.
4071 * i386-nto-tdep.c: Likewise.
4072 * i386-tdep.c: Likewise.
4073 * i386bsd-nat.c: Likewise.
4074 * i386fbsd-tdep.c: Likewise.
4075 * i386gnu-nat.c: Likewise.
4076 * i386nbsd-tdep.c: Likewise.
4077 * i386obsd-tdep.c: Likewise.
4078 * i387-tdep.c: Likewise.
4079 * ia64-libunwind-tdep.c: Likewise.
4080 * ia64-tdep.c: Likewise.
4081 * inf-ptrace.c: Likewise.
4082 * inf-ttrace.c: Likewise.
4083 * infcall.c: Likewise.
4084 * infcmd.c: Likewise.
4085 * infrun.c: Likewise.
4086 * inline-frame.c: Likewise.
4087 * interps.c: Likewise.
4088 * jv-lang.c: Likewise.
4089 * jv-typeprint.c: Likewise.
4090 * linux-fork.c: Likewise.
4091 * linux-nat.c: Likewise.
4092 * linux-thread-db.c: Likewise.
4093 * m32c-tdep.c: Likewise.
4094 * m32r-linux-nat.c: Likewise.
4095 * m32r-tdep.c: Likewise.
4096 * m68k-tdep.c: Likewise.
4097 * m68kbsd-nat.c: Likewise.
4098 * m68kbsd-tdep.c: Likewise.
4099 * m88k-tdep.c: Likewise.
4100 * machoread.c: Likewise.
4101 * macroexp.c: Likewise.
4102 * macrotab.c: Likewise.
4103 * maint.c: Likewise.
4104 * mdebugread.c: Likewise.
4105 * memory-map.c: Likewise.
4106 * mep-tdep.c: Likewise.
4107 * mi/mi-common.c: Likewise.
4108 * microblaze-tdep.c: Likewise.
4109 * mingw-hdep.c: Likewise.
4110 * mips-linux-nat.c: Likewise.
4111 * mips-linux-tdep.c: Likewise.
4112 * mips-tdep.c: Likewise.
4113 * mips64obsd-tdep.c: Likewise.
4114 * mipsnbsd-tdep.c: Likewise.
4115 * mn10300-linux-tdep.c: Likewise.
4116 * mn10300-tdep.c: Likewise.
4117 * moxie-tdep.c: Likewise.
4118 * mt-tdep.c: Likewise.
4119 * nat/linux-btrace.c: Likewise.
4120 * nat/linux-osdata.c: Likewise.
4121 * nat/linux-ptrace.c: Likewise.
4122 * nat/mips-linux-watch.c: Likewise.
4123 * nios2-linux-tdep.c: Likewise.
4124 * nios2-tdep.c: Likewise.
4125 * objc-lang.c: Likewise.
4126 * objfiles.c: Likewise.
4127 * obsd-nat.c: Likewise.
4128 * opencl-lang.c: Likewise.
4129 * osabi.c: Likewise.
4130 * parse.c: Likewise.
4131 * ppc-linux-nat.c: Likewise.
4132 * ppc-sysv-tdep.c: Likewise.
4133 * ppcfbsd-nat.c: Likewise.
4134 * ppcfbsd-tdep.c: Likewise.
4135 * ppcnbsd-nat.c: Likewise.
4136 * ppcnbsd-tdep.c: Likewise.
4137 * ppcobsd-nat.c: Likewise.
4138 * ppcobsd-tdep.c: Likewise.
4139 * printcmd.c: Likewise.
4140 * procfs.c: Likewise.
4141 * prologue-value.c: Likewise.
4142 * psymtab.c: Likewise.
4143 * python/py-lazy-string.c: Likewise.
4144 * python/py-value.c: Likewise.
4145 * regcache.c: Likewise.
4146 * reggroups.c: Likewise.
4147 * registry.c: Likewise.
4148 * remote-sim.c: Likewise.
4149 * remote.c: Likewise.
4150 * rs6000-aix-tdep.c: Likewise.
4151 * rs6000-tdep.c: Likewise.
4152 * s390-linux-tdep.c: Likewise.
4153 * score-tdep.c: Likewise.
4154 * ser-base.c: Likewise.
4155 * ser-mingw.c: Likewise.
4156 * sh-tdep.c: Likewise.
4157 * sh64-tdep.c: Likewise.
4158 * solib-darwin.c: Likewise.
4159 * solib-spu.c: Likewise.
4160 * solib-svr4.c: Likewise.
4161 * source.c: Likewise.
4162 * sparc-nat.c: Likewise.
4163 * sparc-sol2-tdep.c: Likewise.
4164 * sparc-tdep.c: Likewise.
4165 * sparc64-sol2-tdep.c: Likewise.
4166 * sparc64-tdep.c: Likewise.
4167 * sparc64fbsd-tdep.c: Likewise.
4168 * sparc64nbsd-tdep.c: Likewise.
4169 * sparc64obsd-tdep.c: Likewise.
4170 * sparcnbsd-tdep.c: Likewise.
4171 * sparcobsd-tdep.c: Likewise.
4172 * spu-multiarch.c: Likewise.
4173 * spu-tdep.c: Likewise.
4174 * stabsread.c: Likewise.
4175 * stack.c: Likewise.
4176 * symfile.c: Likewise.
4177 * symtab.c: Likewise.
4178 * target-descriptions.c: Likewise.
4179 * target-memory.c: Likewise.
4180 * target.c: Likewise.
4181 * tic6x-linux-tdep.c: Likewise.
4182 * tic6x-tdep.c: Likewise.
4183 * tilegx-linux-nat.c: Likewise.
4184 * tilegx-tdep.c: Likewise.
4185 * top.c: Likewise.
4186 * tramp-frame.c: Likewise.
4187 * tui/tui-out.c: Likewise.
4188 * tui/tui-winsource.c: Likewise.
4189 * ui-out.c: Likewise.
4190 * user-regs.c: Likewise.
4191 * utils.c: Likewise.
4192 * v850-tdep.c: Likewise.
4193 * valops.c: Likewise.
4194 * value.c: Likewise.
4195 * varobj.c: Likewise.
4196 * vax-nat.c: Likewise.
4197 * xml-syscall.c: Likewise.
4198 * xml-tdesc.c: Likewise.
4199 * xstormy16-tdep.c: Likewise.
4200 * xtensa-linux-nat.c: Likewise.
4201 * xtensa-tdep.c: Likewise.
4202
4203 2014-08-07 Gary Benson <gbenson@redhat.com>
4204
4205 * common/common-defs.h: Include common-utils.h.
4206 * defs.h: Do not include common-utils.h.
4207 * common/gdb_assert.h: Likewise.
4208 * darwin-nat.h: Likewise.
4209 * nat/linux-btrace.c: Likewise.
4210 * target/waitstatus.h: Likewise.
4211
4212 2014-08-07 Gary Benson <gbenson@redhat.com>
4213
4214 * common/common-defs.h: Include ptid.h.
4215 * defs.h: Do not include ptid.h.
4216 * inferior.h: Likewise.
4217 * infrun.h: Likewise.
4218 * nat/linux-btrace.h: Likewise.
4219 * nat/linux-osdata.h: Likewise.
4220 * target/waitstatus.h: Likewise.
4221
4222 2014-08-07 Gary Benson <gbenson@redhat.com>
4223
4224 * common/common-defs.h: Include gdb_locale.h.
4225 * defs.h: Do not include gdb_locale.h.
4226
4227 2014-08-07 Gary Benson <gbenson@redhat.com>
4228
4229 * common/common-defs.h: Include gdb/signals.h.
4230 * defs.h: Do not include gdb/signals.h.
4231
4232 2014-08-07 Gary Benson <gbenson@redhat.com>
4233
4234 * common/common-defs.h: Include pathmax.h.
4235 * defs.h: Do not include pathmax.h.
4236
4237 2014-08-07 Gary Benson <gbenson@redhat.com>
4238
4239 * common/common-defs.h: Include libiberty.h.
4240 * defs.h: Do not include libiberty.h.
4241 * common/queue.h: Likewise.
4242 * cp-name-parser.y: Likewise.
4243 * mi/mi-cmd-catch.c: Likewise.
4244 * python/python.c: Likewise.
4245
4246 2014-08-07 Gary Benson <gbenson@redhat.com>
4247
4248 * common/common-defs.h: Include ansidecl.h.
4249 * defs.h: Do not include ansidecl.h.
4250 * common/buffer.h: Likewise.
4251 * common/common-utils.h: Likewise.
4252
4253 2014-08-07 Gary Benson <gbenson@redhat.com>
4254
4255 * common/common-defs.h: Include stddef.h.
4256 * defs.h: Do not include stddef.h.
4257 * common/common-utils.h: Likewise.
4258 * amd64fbsd-nat.c: Likewise.
4259 * bcache.c: Likewise.
4260 * charset.c: Likewise.
4261 * common/buffer.h: Likewise.
4262 * common/vec.h: Likewise.
4263 * i386bsd-nat.c: Likewise.
4264 * nat/linux-btrace.h: Likewise.
4265 * ppcfbsd-nat.c: Likewise.
4266 * ppcnbsd-tdep.h: Likewise.
4267 * ppcobsd-nat.c: Likewise.
4268 * ppcobsd-tdep.h: Likewise.
4269 * python/py-gdb-readline.c: Likewise.
4270
4271 2014-08-07 Gary Benson <gbenson@redhat.com>
4272
4273 * common/common-defs.h: Include stdarg.h.
4274 * defs.h: Do not include stdarg.h.
4275 * ada-lang.c: Likewise.
4276 * common/common-utils.h: Likewise.
4277 * guile/scm-string.c: Likewise.
4278 * guile/scm-utils.c: Likewise.
4279 * m32c-tdep.c: Likewise.
4280
4281 2014-08-07 Gary Benson <gbenson@redhat.com>
4282
4283 * common/common-defs.h: Include stdlib.h.
4284 * defs.h: Do not include stdlib.h.
4285 * addrmap.c: Likewise.
4286 * bcache.c: Likewise.
4287 * common/buffer.c: Likewise.
4288 * common/common-utils.c: Likewise.
4289 * cp-name-parser.y: Likewise.
4290 * go32-nat.c: Likewise.
4291 * mn10300-linux-tdep.c: Likewise.
4292 * nat/linux-osdata.c: Likewise.
4293 * tui/tui.c: Likewise.
4294 * windows-nat.c: Likewise.
4295
4296 2014-08-07 Gary Benson <gbenson@redhat.com>
4297
4298 * common/common-defs.h: Include stdio.h.
4299 * defs.h: Do not include stdio.h.
4300 * ada-lang.c: Likewise.
4301 * common/buffer.c: Likewise.
4302 * common/common-utils.c: Likewise.
4303 * cp-name-parser.y: Likewise.
4304 * gnu-nat.c: Likewise.
4305 * go32-nat.c: Likewise.
4306 * i386gnu-nat.c: Likewise.
4307 * proc-api.c: Likewise.
4308 * proc-events.c: Likewise.
4309 * proc-flags.c: Likewise.
4310 * proc-why.c: Likewise.
4311 * python/python-internal.h: Likewise.
4312 * target-memory.c: Likewise.
4313 * tui/tui-io.c: Likewise.
4314 * tui/tui.c: Likewise.
4315
4316 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4317
4318 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4319 (scan_dyntag_auxv): Same.
4320
4321 2014-08-06 Yao Qi <yao@codesourcery.com>
4322
4323 * amd64-linux-nat.c: Remove duplicated include
4324 "x86-linux-nat.h".
4325 * i386-linux-nat.c: Likewise.
4326
4327 2014-08-06 Yao Qi <yao@codesourcery.com>
4328
4329 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4330 operand" with "Special opcode" in comments.
4331
4332 2014-08-05 Gary Benson <gbenson@redhat.com>
4333
4334 * interps.c (initialize_interps): Remove prototype.
4335 (interpreter_initialized): Remove static global.
4336 (interp_add): Do not call initialize_interps.
4337 (initialize_interps): Remove function.
4338
4339 2014-08-05 Gary Benson <gbenson@redhat.com>
4340
4341 * utils.c (vwarning): Remove spurious va_end.
4342
4343 2014-08-05 Alan Modra <amodra@gmail.com>
4344
4345 * charset.c (convert_between_encodings): Cast result of obstack_base.
4346 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4347 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4348 (read_unwind_info): Use size_t for some locals.
4349 * jit.c (finalize_symtab): Likewise.
4350 * utils.c (hashtab_obstack_allocate): Likewise.
4351 * symmisc.c (print_objfile_statistics): Update format strings.
4352
4353 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4354
4355 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4356 (Changes in GDB 7.8): ... here.
4357
4358 2014-08-04 Tom Tromey <tromey@redhat.com>
4359
4360 * target.c (set_targetdebug): New function.
4361 (initialize_targets): Pass set_targetdebug when creating "set
4362 debug target".
4363
4364 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4365
4366 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4367 if detecting a variable-sized field that is not the last field.
4368 Fix struct type length computation.
4369
4370 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4371
4372 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4373 Add debug trace.
4374
4375 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4376
4377 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4378 Remove "+ 8" offset in computation of CHAIN_VMA.
4379
4380 2014-07-31 Doug Evans <dje@google.com>
4381
4382 * inflow.c (child_terminal_inferior): Add comment.
4383 (child_terminal_ours_for_output): Add comment.
4384 (child_terminal_ours): Add comment.
4385 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4386 (linux_nat_terminal_ours): Add comment.
4387
4388 2014-07-31 Gary Benson <gbenson@redhat.com>
4389
4390 * common/btrace-common.h: Do not include defs.h or server.h.
4391 * nat/mips-linux-watch.h: Likewise.
4392 * gdb-dlfcn.h: Do not include defs.h.
4393 * tracefile.h: Likewise.
4394
4395 2014-07-30 Roland McGrath <mcgrathr@google.com>
4396
4397 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4398
4399 2014-07-30 Tom Tromey <tromey@redhat.com>
4400
4401 * bsd-kvm.c (bsd_kvm_open): Constify.
4402 * corelow.c (core_open): Constify.
4403 * ctf.c (ctf_open): Constify.
4404 * dbug-rom.c (dbug_open): Constify.
4405 * exec.c (exec_open): Constify.
4406 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4407 * microblaze-rom.c (picobug_open): Constify.
4408 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4409 Constify.
4410 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4411 * record-btrace.c (record_btrace_open): Constify.
4412 * record-full.c (record_full_core_open_1, record_full_open_1)
4413 (record_full_open): Constify.
4414 * remote-m32r-sdi.c (m32r_open): Constify.
4415 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4416 (rockhopper_open, lsi_open): Constify.
4417 * remote-sim.c (gdbsim_open): Constify.
4418 * remote.c (remote_open, extended_remote_open, remote_open_1):
4419 Constify.
4420 * target.h (struct target_ops) <to_open>: Make "arg" const.
4421 * tracefile-tfile.c (tfile_open): Constify.
4422
4423 2014-07-30 Tom Tromey <tromey@redhat.com>
4424
4425 * breakpoint.c (map_breakpoint_numbers): Update.
4426 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4427 (get_number_const): New function.
4428 (get_number): Rewrite using get_number_const.
4429 (init_number_or_range): Make "string" const.
4430 (number_is_in_list): Make "list" const.
4431 * cli/cli-utils.h (get_number_const): Declare.
4432 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4433 (init_number_or_range, number_is_in_list): Update.
4434 * printcmd.c (map_display_numbers): Update.
4435 * value.c (value_from_history_ref): Constify.
4436 * value.h (value_from_history_ref): Update.
4437
4438 2014-07-30 Tom Tromey <tromey@redhat.com>
4439
4440 * corefile.c (hook_type, call_extra_exec_file_hooks)
4441 (specify_exec_file_hook): Constify.
4442 * exec.c (exec_file_attach): Make "filename" const.
4443 * gdbcore.h (deprecated_exec_file_display_hook)
4444 (specify_exec_file_hook, exec_file_attach): Constify.
4445 * main.c (captured_main): Use catch_command_errors_const.
4446
4447 2014-07-30 Tom Tromey <tromey@redhat.com>
4448
4449 * target.c (open_target): New function.
4450 (add_target_with_completer, add_deprecated_target_alias): Use
4451 set_cmd_sfunc, set_cmd_context.
4452 (debug_to_open): Remove.
4453 (setup_target_debug): Update.
4454
4455 2014-07-30 Yao Qi <yao@codesourcery.com>
4456
4457 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4458 comments.
4459 * parse.c (exp_iterate): Update comments.
4460
4461 2014-07-30 Gary Benson <gbenson@redhat.com>
4462
4463 * common/common-defs.h: New file.
4464 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4465 * defs.h: Include common-defs.h.
4466 Do not include config.h or build-gnulib/config.h.
4467
4468 2014-07-30 Gary Benson <gbenson@redhat.com>
4469
4470 * common/common-utils.h: Do not include config.h.
4471 * nat/linux-btrace.h: Likewise.
4472
4473 2014-07-30 Gary Benson <gbenson@redhat.com>
4474
4475 * btrace.c: Include defs.h.
4476 * common/ptid.c: Include defs.h or server.h as appropriate.
4477 * nat/mips-linux-watch.c: Likewise.
4478
4479 2014-07-29 Tom Tromey <tromey@redhat.com>
4480
4481 * target.c (target_is_pushed): Simplify.
4482
4483 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4484
4485 GDB 7.8 released.
4486
4487 2014-07-29 Yao Qi <yao@codesourcery.com>
4488
4489 PR gdb/17206
4490 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4491
4492 2014-07-28 Doug Evans <xdje42@gmail.com>
4493
4494 PR guile/17203
4495 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4496 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4497 parameters.
4498
4499 2014-07-28 Will Newton <will.newton@linaro.org>
4500
4501 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4502 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4503 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4504 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4505 (THUMB2_EABI_SYSCALL): Likewise.
4506 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4507 struct tramp_frame.
4508 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4509 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4510
4511 2014-07-27 Doug Evans <xdje42@gmail.com>
4512
4513 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4514
4515 2014-07-27 Doug Evans <xdje42@gmail.com>
4516
4517 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4518
4519 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4520 Doug Evans <xdje42@gmail.com>
4521
4522 PR guile/17146
4523 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4524 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4525 * configure.ac: Try to use guild to compile an scm file, if it fails
4526 then disable guile support.
4527 * configure: Regenerate.
4528 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4529 GUILE_FILE_LIST.
4530 (GUILE_COMPILED_FILES): New variable.
4531 (GUILE_FILES) Update.
4532 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4533 (stamp-guile): Compile scm files.
4534 * guile/guile.c (boot_guile_support): New function.
4535 (standard_throw_args_p): New function.
4536 (print_standard_throw_error, print_throw_error): New functions.
4537 (handle_boot_error): New function.
4538 (initialize_scheme_side): Rewrite to call boot_guile_support.
4539 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4540 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4541
4542 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4543 Doug Evans <xdje42@gmail.com>
4544
4545 PR guile/17146
4546 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4547 * guile/lib/gdb/support.scm: New file.
4548 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4549 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4550 All uses updated.
4551 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4552 All uses updated.
4553 (%assert-type): Ditto, and renamed to assert-type.
4554 (%exception-print-style): Delete.
4555
4556 2014-07-26 Doug Evans <xdje42@gmail.com>
4557
4558 PR build/17105
4559 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4560 * configure: Regenerate.
4561 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4562 PYTHON_FILES.
4563 (PYTHON_FILES): New variable.
4564 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4565 (GUILE_FILES): New variable.
4566 (stamp-python, install-python, uninstall-python): Handle empty
4567 file list.
4568 (stamp-guile, install-guile, uninstall-guile): Ditto.
4569
4570 2014-07-26 Doug Evans <xdje42@gmail.com>
4571
4572 PR guile/17177
4573 * guile/lib/gdb.scm (pretty-printers): Export.
4574 (set-pretty-printers!): Export.
4575 * guile/lib/gdb/printing.scm (gdb module): Update.
4576 (prepend-pretty-printer!, append-pretty-printer!): Update.
4577 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4578 (pretty_printer_list_var): Delete.
4579 (pretty_printer_list): New static global.
4580 (gdbscm_pretty_printers): New function.
4581 (gdbscm_set_pretty_printers_x): New function.
4582 (ppscm_find_pretty_printer_from_gdb): Update.
4583 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4584 (gdbscm_initialize_pretty_printers): Update.
4585
4586 2014-07-26 Doug Evans <xdje42@gmail.com>
4587
4588 PR 17185
4589 * configure.ac: Add check for header gc/gc.h.
4590 Add check for function setenv.
4591 * configure: Regenerate.
4592 * config.in: Regenerate.
4593 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4594
4595 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4596
4597 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4598 variation in gdbarch matching.
4599
4600 2014-07-25 Tom Tromey <tromey@redhat.com>
4601
4602 * exec.c (using_exec_ops): Remove.
4603 (exec_close_1): Update. Remove extraneous block, reindent.
4604 (add_target_sections): Use target_is_pushed.
4605
4606 2014-07-25 Pedro Alves <palves@redhat.com>
4607
4608 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4609 * monitor.c (monitor_create_inferior): Likewise.
4610 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4611 * remote-sim.c (gdbsim_create_inferior): Likewise.
4612 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4613 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4614 * windows-nat.c (do_initial_windows_stuff): Likewise.
4615
4616 2014-07-25 Pedro Alves <palves@redhat.com>
4617
4618 * NEWS: Mention signal passing and "signal" command changes.
4619 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4620 comment.
4621 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4622 call.
4623 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4624 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4625 (jump_command): Adjust clear_proceed_status call.
4626 (signal_command): Warn if other thread that are resumed have
4627 signals that will be delivered. Adjust clear_proceed_status call.
4628 (until_next_command, finish_command)
4629 (proceed_after_attach_callback, attach_command_post_wait)
4630 (attach_command): Adjust clear_proceed_status call.
4631 * infrun.c (proceed_after_vfork_done): Likewise.
4632 (proceed_after_attach_callback): Adjust comment.
4633 (clear_proceed_status_thread): Clear stop_signal if not in pass
4634 state.
4635 (clear_proceed_status_callback): Delete.
4636 (clear_proceed_status): New 'step' parameter. Only clear the
4637 proceed status of threads the command being prepared is about to
4638 resume.
4639 (proceed): If passed in an explicit signal, override stop_signal
4640 with it. Don't pass the last stop signal to the thread we're
4641 resuming.
4642 (init_wait_for_inferior): Adjust clear_proceed_status call.
4643 (switch_back_to_stepped_thread): Clear the signal if it should not
4644 be passed.
4645 * infrun.h (clear_proceed_status): New 'step' parameter.
4646 (user_visible_resume_ptid): Add comment.
4647 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4648 signal is in pass state.
4649 * remote.c (append_pending_thread_resumptions): Likewise.
4650 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4651
4652 2014-07-25 Tom Tromey <tromey@redhat.com>
4653
4654 * target.h (target_stopped_data_address)
4655 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4656 parentheses.
4657
4658 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4659
4660 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4661 comments.
4662 (avr_pointer_to_address): Likewise.
4663
4664 2014-07-24 Tom Tromey <tromey@redhat.com>
4665
4666 * monitor.c (compile_pattern): Update.
4667 * target.h (struct target_ops) <to_shortname, to_longname,
4668 to_doc>: Now const.
4669
4670 2014-07-24 Tom Tromey <tromey@redhat.com>
4671
4672 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4673 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4674 (add_info_alias, add_com): Make "doc" const.
4675 (print_doc_line): Make "str" const.
4676 (delete_cmd): Update.
4677 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4678 (print_doc_line): Update.
4679 * cli/cli-script.c (document_command): Update.
4680 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4681 (add_com, add_info, add_info_alias): Update.
4682 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4683 * python/py-cmd.c (cmdpy_destroyer): Update.
4684
4685 2014-07-24 Tom Tromey <tromey@redhat.com>
4686
4687 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4688 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4689 (help_cmd_list): Constify.
4690 (lookup_cmd): Update.
4691 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4692 const.
4693 (help_cmd_list, apropos_cmd): Update.
4694 * cli/cli-script.c (show_user): Update.
4695 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4696 * cli/cli-setshow.h (cmd_show_list): Update.
4697 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4698 (cmd_show_list): Update.
4699 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4700 * python/py-cmd.c (cmdpy_destroyer): Update.
4701
4702 2014-07-24 Tom Tromey <tromey@redhat.com>
4703
4704 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4705 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4706 const.
4707 * command.h (deprecate_cmd): Update.
4708 * maint.c (maintenance_do_deprecate): Add casts.
4709
4710 2014-07-24 Tom Tromey <tromey@redhat.com>
4711
4712 * cli/cli-decode.c (help_cmd): Make parameter "const".
4713 * cli/cli-decode.h (help_cmd): Update.
4714
4715 2014-07-24 Tom Tromey <tromey@redhat.com>
4716
4717 * stack.c (up_silently_base, down_silently_base): Make argument
4718 const.
4719
4720 2014-07-24 Tom Tromey <tromey@redhat.com>
4721
4722 * solib.c (solib_add): Make "pattern" const.
4723 * solib.h (solib_add): Update.
4724
4725 2014-07-24 Tom Tromey <tromey@redhat.com>
4726
4727 * remote.c (remote_serial_open, print_packet, putpkt)
4728 (putpkt_binary): Constify.
4729 * remote.h (putpkt): Update.
4730
4731 2014-07-24 Tom Tromey <tromey@redhat.com>
4732
4733 * monitor.c (monitor_open): Make "args" const.
4734 * monitor.h (monitor_open): Update.
4735
4736 2014-07-24 Tom Tromey <tromey@redhat.com>
4737
4738 * maint.c (match_bfd_flags): Make "string" const.
4739 (print_bfd_section_info): Remove casts.
4740 (print_objfile_section_info): Make "string" const.
4741
4742 2014-07-24 Tom Tromey <tromey@redhat.com>
4743
4744 * inf-child.c (inf_child_open_target): Make "arg" const.
4745 * inf-child.h (inf_child_open_target): Update.
4746
4747 2014-07-24 Tom Tromey <tromey@redhat.com>
4748
4749 * environ.c (unset_in_environ): Make "var" const.
4750 * environ.h (unset_in_environ): Update.
4751
4752 2014-07-24 Tom Tromey <tromey@redhat.com>
4753
4754 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4755 Make "cmd" const.
4756 (scan_filename_with_cleanup): Likewise.
4757 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4758 Make arguments const.
4759 (restore_command): Update.
4760
4761 2014-07-24 Pedro Alves <palves@redhat.com>
4762
4763 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4764
4765 2014-07-24 Tom Tromey <tromey@redhat.com>
4766 Gary Benson <gbenson@redhat.com>
4767
4768 * nat/linux-ptrace.c (additional_flags): New global.
4769 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4770 additional_flags; don't check GDBSERVER.
4771 (linux_ptrace_set_additional_flags): New function.
4772 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4773 Declare.
4774 * linux-nat.c (_initialize_linux_nat): Call
4775 linux_ptrace_set_additional_flags.
4776
4777 2014-07-24 Tom Tromey <tromey@redhat.com>
4778
4779 * make-target-delegates (munge_type, write_debugmethod): New
4780 functions.
4781 (debug_names): New global.
4782 ($TARGET_DEBUG_PRINTER): New global.
4783 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4784 name.
4785 Write debug methods. Generate init_debug_target.
4786 * target-debug.h: New file.
4787 * target-delegates.c: Rebuild.
4788 * target.c: Include target-debug.h.
4789 (debug_target): Hoist definition.
4790 (target_kill, target_get_section_table, target_memory_map)
4791 (target_flash_erase, target_flash_done, target_detach)
4792 (target_disconnect, target_wait, target_resume)
4793 (target_pass_signals, target_program_signals, target_follow_fork)
4794 (target_mourn_inferior, target_search_memory)
4795 (target_thread_address_space, target_close)
4796 (target_find_new_threads, target_core_of_thread)
4797 (target_verify_memory, target_insert_mask_watchpoint)
4798 (target_remove_mask_watchpoint): Remove targetdebug code.
4799 (debug_to_post_attach, debug_to_prepare_to_store)
4800 (debug_to_files_info, debug_to_insert_breakpoint)
4801 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4802 (debug_to_region_ok_for_hw_watchpoint)
4803 (debug_to_can_accel_watchpoint_condition)
4804 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4805 (debug_to_watchpoint_addr_within_range)
4806 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4807 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4808 (debug_to_terminal_init, debug_to_terminal_inferior)
4809 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4810 (debug_to_terminal_save_ours, debug_to_terminal_info)
4811 (debug_to_load, debug_to_post_startup_inferior)
4812 (debug_to_insert_fork_catchpoint)
4813 (debug_to_remove_fork_catchpoint)
4814 (debug_to_insert_vfork_catchpoint)
4815 (debug_to_remove_vfork_catchpoint)
4816 (debug_to_insert_exec_catchpoint)
4817 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4818 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4819 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4820 (setup_target_debug): Call init_debug_target.
4821 * target.h (TARGET_DEBUG_PRINTER): New macro.
4822 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4823 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4824
4825 2014-07-24 Gary Benson <gbenson@redhat.com>
4826
4827 * exceptions.h (throw_vfatal): Renamed to...
4828 (throw_vquit): New declaration.
4829 (throw_quit): Likewise.
4830 * exceptions.c (throw_vfatal): Renamed to...
4831 (throw_vquit): New function.
4832 (throw_quit): Likewise.
4833 (throw_error): Call throw_verror rather than throw_it.
4834 * utils.h (vfatal): Removed.
4835 (fatal): Likewise.
4836 * utils.c (vfatal): Removed.
4837 (fatal): Likewise.
4838 (internal_verror): Replaced call to fatal with call to throw_quit.
4839 (quit): Replaced calls to fatal with calls to throw_quit.
4840
4841 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4842
4843 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4844 target_read_code.
4845
4846 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4847
4848 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4849 less than zero in conditional expression.
4850
4851 2014-07-23 Tom Tromey <tromey@redhat.com>
4852
4853 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4854 ($INTRO_PART): Don't match whitespace.
4855 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4856 argument matching.
4857 ($METHOD): Add $METHOD_TRAILER.
4858 (trim): Rewrite.
4859 (scan_target_h): New sub.
4860 Change main loop not to collect state.
4861 * target-delegates.c: Rebuild.
4862
4863 2014-07-23 Gary Benson <gbenson@redhat.com>
4864
4865 * cp-support.c (gdb_demangle): Fix build on systems without
4866 sigaltstack.
4867
4868 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4869
4870 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4871 for reference entry value target data value.
4872
4873 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4874
4875 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4876 value_available_contents_eq.
4877
4878 2014-07-22 Pedro Alves <palves@redhat.com>
4879
4880 * value.c (allocate_optimized_out_value): Don't mark value as
4881 non-lazy.
4882
4883 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4884
4885 * MAINTAINERS (Write After Approval): Update my email address.
4886
4887 2014-07-20 Doug Evans <dje@google.com>
4888
4889 PR server/17147
4890 * remote.c (putpkt_binary): Add text to error message.
4891
4892 2014-07-20 Yao Qi <yao@codesourcery.com>
4893
4894 * eval.c: Remove "Chill" from comments.
4895 * gdbtypes.h: Likewise.
4896 * symtab.h: Likewise.
4897
4898 2014-07-20 Yao Qi <yao@codesourcery.com>
4899
4900 * std-operator.def: Update comments to TERNOP_SLICE.
4901
4902 2014-07-20 Yao Qi <yao@codesourcery.com>
4903
4904 * std-operator.def: Remove BINOP_RANGE.
4905 * breakpoint.c (watchpoint_exp_is_const): Update.
4906 * expprint.c (dump_subexp_body_standard): Likewise.
4907 * eval.c (init_array_element): Remove dead code.
4908 (evaluate_subexp_standard): Likewise.
4909
4910 2014-07-20 Yao Qi <yao@codesourcery.com>
4911
4912 * std-operator.def: Remove BINOP_IN.
4913 * breakpoint.c (watchpoint_exp_is_const): Update.
4914 * eval.c (evaluate_subexp_standard): Likewise.
4915 * expprint.c (dump_subexp_body_standard): Likewise.
4916
4917 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4918
4919 * microblaze-tdep.c (microblaze_register_names): Add
4920 the rshr and rslr register names.
4921 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4922 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4923 Use of tdesc_numbered_register. Use of
4924 microblaze_register_g_packet_guesses. Use of
4925 tdesc_use_registers. Use of set_gdbarch_register_type.
4926 (microblaze_register_g_packet_guesses): New.
4927 * microblaze-tdep.h (microblaze_reg_num): Add
4928 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4929 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4930 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4931 * features/microblaze-core.xml: New file.
4932 * features/microblaze-stack-protect.xml: New file.
4933 * features/microblaze-with-stack-protect.c: New file.
4934 * features/microblaze-with-stack-protect.xml: New file.
4935 * features/microblaze.xml: New file.
4936 * features/microblaze.c: New file.
4937 * features/Makefile (microblaze-with-stack-protect): Add
4938 microblaze-with-stack-protect microblaze and microblaze-expedite.
4939 * regformats/microblaze-with-stack-protect.dat: New file.
4940 * regformats/microblaze.dat: New file.
4941 * doc/gdb.texinfo (MicroBlaze Features): Added.
4942
4943 2014-07-18 Tom Tromey <tromey@redhat.com>
4944
4945 * exec.c (exec_ops): Now static.
4946 * exec.h (exec_ops): Don't declare.
4947
4948 2014-07-18 Tom Tromey <tromey@redhat.com>
4949
4950 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4951 to find_target_beneath.
4952 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4953 find_target_beneath.
4954 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4955
4956 2014-07-18 Tom Tromey <tromey@redhat.com>
4957
4958 PR gdb/17130:
4959 * utils.c (quit): Use target_supports_terminal_ours.
4960 * target.h (target_supports_terminal_ours): Declare.
4961 * target.c (target_supports_delete_record): Don't check
4962 to_delete_record against NULL.
4963 (target_supports_terminal_ours): New function.
4964
4965 2014-07-18 Tom Tromey <tromey@redhat.com>
4966
4967 PR gdb/17130:
4968 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4969 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4970 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4971 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4972 * windows-nat.c (windows_xfer_partial): Always delegate.
4973 * record-btrace.c (record_btrace_xfer_partial): Simplify
4974 delegation.
4975 (record_btrace_fetch_registers, record_btrace_store_registers)
4976 (record_btrace_prepare_to_store, record_btrace_resume)
4977 (record_btrace_wait, record_btrace_find_new_threads)
4978 (record_btrace_thread_alive): Likewise.
4979 * procfs.c (procfs_xfer_partial): Always delegate.
4980 * corelow.c (core_xfer_partial): Always delegate.
4981 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4982
4983 2014-07-18 Tom Tromey <tromey@redhat.com>
4984
4985 * exec.c (exec_make_note_section): Move earlier.
4986
4987 2014-07-17 Doug Evans <dje@google.com>
4988
4989 PR gdb/17170
4990 * maint.c (count_symtabs_and_blocks): Handle NULL
4991 current_program_space.
4992 (report_command_stats): Check global enabled flag in addition to
4993 recorded enabled flag.
4994 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4995
4996 2014-07-16 Pedro Alves <palves@redhat.com>
4997
4998 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4999
5000 2014-07-16 Tom Tromey <tromey@redhat.com>
5001
5002 * target.h (struct target_ops) <to_delete_record>: Reformat
5003 comment.
5004
5005 2014-07-16 Tom Tromey <tromey@redhat.com>
5006
5007 * target-delegates.c: Rebuild.
5008
5009 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5010
5011 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5012 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5013 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5014 (avr_pointer_to_address): Likewise.
5015 (avr_address_class_type_flags): New function.
5016 (avr_address_class_type_flags_to_name): Likewise.
5017 (avr_address_class_name_to_type_flags): Likewise.
5018 (avr_gdbarch_init): Set address_class_type_flags,
5019 address_class_type_flags_to_name and
5020 address_class_name_to_type_flags.
5021
5022 2014-07-15 Pedro Alves <palves@redhat.com>
5023
5024 * linux-nat.c (kill_callback): Save errno and work with saved
5025 copy.
5026
5027 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5028
5029 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5030
5031 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5032
5033 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5034 breakpoint support correctly.
5035
5036 2014-07-14 Pedro Alves <palves@redhat.com>
5037
5038 * utils.c (prompt_for_continue): Call target_terminal_ours.
5039
5040 2014-07-14 Pedro Alves <palves@redhat.com>
5041
5042 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5043 catch_errors. Don't re-enable stdin or notify observers where,
5044 and rethrow error.
5045 (fetch_inferior_event_wrapper): Delete.
5046
5047 2014-07-14 Pedro Alves <palves@redhat.com>
5048
5049 PR gdb/17072
5050 * top.c: Include "inf-loop.h".
5051 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5052 field.
5053 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5054 was async before.
5055 (gdb_readline_wrapper): Store whether the target is async, and
5056 make it sync.
5057
5058 2014-07-14 Pedro Alves <palves@redhat.com>
5059
5060 PR gdb/17072
5061 * top.c (gdb_readline_wrapper_line): Tweak comment.
5062 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5063 the input handler callback.
5064
5065 2014-07-14 Pedro Alves <palves@redhat.com>
5066
5067 PR gdb/17072
5068 * main.c: Include event-top.h.
5069 (handle_command_errors): New function.
5070 (catch_command_errors, catch_command_errors_const): Use it.
5071
5072 2014-07-14 Pedro Alves <palves@redhat.com>
5073
5074 * exceptions.c (catch_command_errors, catch_command_errors_const):
5075 Moved to main.c.
5076 * exceptions.h (catch_command_errors_ftype)
5077 (catch_command_errors_const_ftype): Moved to main.c.
5078 (catch_command_errors, catch_command_errors_const): Delete
5079 declarations.
5080 * main.c (catch_command_errors_ftype)
5081 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5082 (catch_command_errors, catch_command_errors_const)): Moved here
5083 from exceptions.c and make static.
5084
5085 2014-07-14 Pedro Alves <palves@redhat.com>
5086
5087 * exceptions.c (print_any_exception): Delete.
5088 (catch_exceptions_with_msg): Use exception_print instead of
5089 print_any_exception.
5090 (catch_errors): Use exception_fprintf instead of
5091 print_any_exception.
5092 (catch_command_errors, catch_command_errors_const): Use
5093 exception_print instead of print_any_exception.
5094
5095 2014-07-14 Pedro Alves <palves@redhat.com>
5096
5097 * infcall.c (run_inferior_call): Set 'sync_execution' while
5098 running the inferior call.
5099
5100 2014-07-14 Pedro Alves <palves@redhat.com>
5101
5102 * value.c (value_contents_equal): Delete function.
5103 * value.h (value_contents_equal): Delete declaration.
5104
5105 2014-07-14 Tom Tromey <tromey@redhat.com>
5106
5107 PR exp/17106:
5108 * gdbtypes.c (is_dynamic_type_internal): New function, from
5109 is_dynamic_type.
5110 (is_dynamic_type): Rewrite.
5111 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5112 (resolve_dynamic_struct): Likewise.
5113 (resolve_dynamic_type_internal): New function, from
5114 resolve_dynamic_type.
5115 (resolve_dynamic_type): Rewrite.
5116
5117 2014-07-14 Tom Tromey <tromey@redhat.com>
5118
5119 * target.c (target_require_runnable): Also check record_stratum.
5120 Update comment.
5121
5122 2014-07-11 Yao Qi <yao@codesourcery.com>
5123
5124 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5125 thumb_instruction_restores_sp return true.
5126
5127 2014-07-11 Yao Qi <yao@codesourcery.com>
5128
5129 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5130 (thumb_in_function_epilogue_p): Call
5131 thumb_instruction_restores_sp.
5132
5133 2014-07-11 Yao Qi <yao@codesourcery.com>
5134
5135 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5136 'add sp, #imm'.
5137 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5138
5139 2014-07-11 Gary Benson <gbenson@redhat.com>
5140
5141 * amd64-linux-nat.c (gdbcore.h): Remove include.
5142 (regset.h): Likewise.
5143 (nat/linux-btrace.h): Likewise.
5144 (btrace.h): Likewise.
5145 (gdb_assert.h): Likewise.
5146 (string.h): Likewise.
5147 (sys/uio.h): Likewise.
5148 (sys/debugreg.h): Likewise.
5149 (sys/syscall.h): Likewise.
5150 (sys/procfs.h): Likewise.
5151 (sys/user.h): Likewise.
5152 (asm/ptrace.h): Likewise.
5153 (i386-nat.h): Likewise.
5154 * i386-linux-nat.c (i386-nat.h): Likewise.
5155 (regset.h): Likewise.
5156 (target.h): Likewise.
5157 (linux-nat.h): Likewise.
5158 (nat/linux-btrace.h): Likewise.
5159 (btrace.h): Likewise.
5160 (gdb_assert.h): Likewise.
5161 (string.h): Likewise.
5162 (sys/uio.h): Likewise.
5163 (sys/user.h): Likewise.
5164 (sys/procfs.h): Likewise.
5165 (sys/reg.h): Likewise.
5166 (sys/debugreg.h): Likewise.
5167 (ORIG_EAX): Remove definition.
5168
5169 2014-07-11 Gary Benson <gbenson@redhat.com>
5170
5171 * i386-linux-nat.h: New file.
5172 * x86-linux-nat.h: Likewise.
5173 * x86-linux-nat.c: Likewise.
5174 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5175 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5176 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5177 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5178 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5179 (PTRACE_SETREGSET): Likewise.
5180 (arch_lwp_info): Now in x86-linux-nat.c.
5181 (have_ptrace_getregset): Now in x86-linux-nat.h.
5182 (x86_linux_dr_get): Now in x86-linux-nat.c.
5183 (x86_linux_dr_set): Likewise.
5184 (x86_linux_dr_get_addr): Likewise.
5185 (x86_linux_dr_get_control): Likewise.
5186 (x86_linux_dr_get_status): Likewise.
5187 (update_debug_registers_callback): Likewise.
5188 (x86_linux_dr_set_control): Likewise.
5189 (x86_linux_dr_set_addr): Likewise.
5190 (x86_linux_prepare_to_resume): Likewise.
5191 (x86_linux_new_thread): Likewise.
5192 (x86_linux_new_fork): Likewise.
5193 (x86_linux_get_thread_area): Likewise.
5194 (super_post_startup_inferior): Likewise.
5195 (x86_linux_child_post_startup_inferior): Likewise.
5196 (AMD64_LINUX_USER64_CS): Likewise.
5197 (AMD64_LINUX_X32_DS): Likewise.
5198 (x86_linux_read_description): Likewise.
5199 (x86_linux_enable_btrace): Likewise.
5200 (x86_linux_disable_btrace): Likewise.
5201 (x86_linux_teardown_btrace): Likewise.
5202 (x86_linux_read_btrace): Likewise.
5203 (x86_linux_create_target): Likewise.
5204 (x86_linux_add_target): Likewise.
5205 * i386-linux-nat.c (x86-linux-nat.h): New include.
5206 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5207 (PTRACE_SETREGSET): Likewise.
5208 (arch_lwp_info): Now in x86-linux-nat.c.
5209 (have_ptrace_getregset): Now in x86-linux-nat.h.
5210 (x86_linux_dr_get): Now in x86-linux-nat.c.
5211 (x86_linux_dr_set): Likewise.
5212 (x86_linux_dr_get_addr): Likewise.
5213 (x86_linux_dr_get_control): Likewise.
5214 (x86_linux_dr_get_status): Likewise.
5215 (update_debug_registers_callback): Likewise.
5216 (x86_linux_dr_set_control): Likewise.
5217 (x86_linux_dr_set_addr): Likewise.
5218 (x86_linux_prepare_to_resume): Likewise.
5219 (x86_linux_new_thread): Likewise.
5220 (x86_linux_new_fork): Likewise.
5221 (x86_linux_get_thread_area): Likewise.
5222 (super_post_startup_inferior): Likewise.
5223 (x86_linux_child_post_startup_inferior): Likewise.
5224 (AMD64_LINUX_USER64_CS): Likewise.
5225 (AMD64_LINUX_X32_DS): Likewise.
5226 (x86_linux_read_description): Likewise.
5227 (x86_linux_enable_btrace): Likewise.
5228 (x86_linux_disable_btrace): Likewise.
5229 (x86_linux_teardown_btrace): Likewise.
5230 (x86_linux_read_btrace): Likewise.
5231 (x86_linux_create_target): Likewise.
5232 (x86_linux_add_target): Likewise.
5233
5234 2014-07-11 Gary Benson <gbenson@redhat.com>
5235
5236 * amd64-linux-nat.c: Comment and whitespace changes.
5237 * i386-linux-nat.c: Comment and whitespace changes.
5238
5239 2014-07-11 Gary Benson <gbenson@redhat.com>
5240
5241 * amd64-linux-nat.c (x86_linux_create_target): New function.
5242 (x86_linux_add_target): Likewise.
5243 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5244 * i386-linux-nat.c (x86_linux_create_target): New function.
5245 (x86_linux_add_target): Likewise.
5246 (_initialize_i386_linux_nat): Delegate to the above new functions.
5247
5248 2014-07-11 Gary Benson <gbenson@redhat.com>
5249
5250 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5251 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5252 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5253 (ps_get_thread_area): Delegate to the above.
5254
5255 2014-07-11 Gary Benson <gbenson@redhat.com>
5256
5257 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5258 x86_linux_read_description. All uses updated. amd64-specific
5259 code conditionalized. Conditionalized i386-specific code added.
5260 Redundant cast removed.
5261 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5262 x86_linux_read_description. All uses updated. i386-specific
5263 code conditionalized. Conditionalized amd64-specific code added.
5264 One sizeof replaced with the actual type it is describing.
5265
5266 2014-07-11 Gary Benson <gbenson@redhat.com>
5267
5268 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5269 x86_linux_dr_get. All uses updated.
5270 (amd64_linux_dr_set): Renamed to
5271 x86_linux_dr_set. All uses updated.
5272 (amd64_linux_dr_get_addr): Renamed to
5273 x86_linux_dr_get_addr. All uses updated.
5274 (amd64_linux_dr_get_control): Renamed to
5275 x86_linux_dr_get_control. All uses updated.
5276 (amd64_linux_dr_get_status): Renamed to
5277 x86_linux_dr_get_status. All uses updated.
5278 (amd64_linux_dr_set_control): Renamed to
5279 x86_linux_dr_set_control. All uses updated.
5280 (amd64_linux_dr_set_addr): Renamed to
5281 x86_linux_dr_set_addr. All uses updated.
5282 (amd64_linux_prepare_to_resume): Renamed to
5283 x86_linux_prepare_to_resume. All uses updated.
5284 (amd64_linux_new_thread): Renamed to
5285 x86_linux_new_thread. All uses updated.
5286 (amd64_linux_new_fork): Renamed to
5287 x86_linux_new_fork. All uses updated.
5288 (amd64_linux_child_post_startup_inferior): Renamed to
5289 x86_linux_child_post_startup_inferior. All uses updated.
5290 (amd64_linux_enable_btrace): Renamed to
5291 x86_linux_enable_btrace. All uses updated.
5292 (amd64_linux_disable_btrace): Renamed to
5293 x86_linux_disable_btrace. All uses updated.
5294 (amd64_linux_teardown_btrace): Renamed to
5295 x86_linux_teardown_btrace. All uses updated.
5296 (amd64_linux_read_btrace): Renamed to
5297 x86_linux_read_btrace. All uses updated.
5298 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5299 x86_linux_dr_get. All uses updated.
5300 (i386_linux_dr_set): Renamed to
5301 x86_linux_dr_set. All uses updated.
5302 (i386_linux_dr_get_addr): Renamed to
5303 x86_linux_dr_get_addr. All uses updated.
5304 (i386_linux_dr_get_control): Renamed to
5305 x86_linux_dr_get_control. All uses updated.
5306 (i386_linux_dr_get_status): Renamed to
5307 x86_linux_dr_get_status. All uses updated.
5308 (i386_linux_dr_set_control): Renamed to
5309 x86_linux_dr_set_control. All uses updated.
5310 (i386_linux_dr_set_addr): Renamed to
5311 x86_linux_dr_set_addr. All uses updated.
5312 (i386_linux_prepare_to_resume): Renamed to
5313 x86_linux_prepare_to_resume. All uses updated.
5314 (i386_linux_new_thread): Renamed to
5315 x86_linux_new_thread. All uses updated.
5316 (i386_linux_new_fork): Renamed to
5317 x86_linux_new_fork. All uses updated.
5318 (i386_linux_child_post_startup_inferior): Renamed to
5319 x86_linux_child_post_startup_inferior. All uses updated.
5320 (i386_linux_enable_btrace): Renamed to
5321 x86_linux_enable_btrace. All uses updated.
5322 (i386_linux_disable_btrace): Renamed to
5323 x86_linux_disable_btrace. All uses updated.
5324 (i386_linux_teardown_btrace): Renamed to
5325 x86_linux_teardown_btrace. All uses updated.
5326 (i386_linux_read_btrace): Renamed to
5327 x86_linux_read_btrace. All uses updated.
5328
5329 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5330
5331 * remote.c (extended_remote_post_attach): New function.
5332 (init_extended_remote_ops): Install it as to_post_attach method.
5333
5334 2014-07-09 Pedro Alves <palves@redhat.com>
5335
5336 * infcmd.c (attach_command_post_wait): Don't call
5337 target_terminal_inferior here.
5338 (attach_command): Call it here instead.
5339
5340 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5341
5342 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5343 field.
5344 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5345 from varobj.c, with additional checks.
5346 (c_varobj_ops): Fill in is_path_expr_parent field.
5347 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5348 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5349 field.
5350 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5351 ops method.
5352 (varobj_default_is_path_expr_parent): New function.
5353 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5354 (varobj_default_is_path_expr_parent): Declare new function.
5355
5356 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5357
5358 * infcmd.c (finish_backward): Turn internal error into normal error.
5359
5360 2014-07-07 Pedro Alves <palves@redhat.com>
5361
5362 PR gdb/17096
5363 * remote.c (async_handle_remote_sigint)
5364 (async_handle_remote_sigint_twice): Call
5365 gdb_call_async_signal_handler instead of
5366 mark_async_signal_handler.
5367
5368 2014-07-07 Tom Tromey <tromey@redhat.com>
5369
5370 * target-delegates.c: Rebuild.
5371 * target.c (target_info_record): Remove.
5372 * record.c (info_record_command): Unconditionally call
5373 to_info_record.
5374 * target.h (struct target_ops) <to_info_record>: Use
5375 TARGET_DEFAULT_IGNORE.
5376 (target_info_record): Remove.
5377
5378 2014-07-07 Tom Tromey <tromey@redhat.com>
5379
5380 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5381 TARGET_DEFAULT_NORETURN.
5382 * target.c (generic_tls_error): New function.
5383 (target_translate_tls_address): Don't search target stack.
5384 * target-delegates.c: Rebuild.
5385 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5386 stack.
5387 * linux-thread-db.c (thread_db_get_thread_local_address):
5388 Unconditionally call beneath target.
5389
5390 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5391
5392 * cli/cli-logging.c (pop_output_files): Assign targerr to
5393 gdb_stdtargerr.
5394
5395 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * MAINTAINERS (Write After Approval): Update my email address.
5398
5399 2014-07-02 Gary Benson <gbenson@redhat.com>
5400
5401 * proc-service.c (ps_xfer_memory): Update comment.
5402 (ps_pstop): Remove unused function.
5403 (ps_pcontinue): Likewise.
5404 (ps_lstop): Likewise.
5405 (ps_lcontinue): Likewise.
5406 (ps_lgetxregsize): Likewise.
5407 (ps_lgetxregs): Likewise.
5408 (ps_lsetxregs): Likewise.
5409 (ps_plog): Likewise.
5410 (ps_ptread): Likewise.
5411 (ps_ptwrite): Likewise.
5412
5413 2014-07-01 Mark Wielaard <mjw@redhat.com>
5414
5415 * dwarf2read.c (add_array_cv_type): New function.
5416 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5417 (read_tag_volatile_type): Likewise.
5418
5419 2014-07-01 Tom Tromey <tromey@redhat.com>
5420
5421 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5422 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5423 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5424 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5425 * command.h (cmd_cfunc_ftype): Move earlier.
5426 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5427 (add_com, add_info): Use cmd_cfunc_ftype.
5428
5429 2014-06-30 Tom Tromey <tromey@redhat.com>
5430
5431 * symtab.c (operator_chars): Make parameters and return type
5432 const.
5433 (file_matches): Make "files" const.
5434 (struct search_symbols_data) <files>: Now const.
5435 (search_symbols): Make "regexp" and "files" parameters const.
5436 Update.
5437 (symtab_symbol_info): Remove cast.
5438 (rbreak_command): Update.
5439 * symtab.h (search_symbols): Update.
5440
5441 2014-06-27 Yao Qi <yao@codesourcery.com>
5442
5443 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5444 Change parameter type to 'struct thread_info *'. Caller
5445 updated.
5446 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5447 Update declaration.
5448 * dummy-frame.c (struct dummy_frame_id): New.
5449 (dummy_frame_id_eq): New function.
5450 (struct dummy_frame) <id>: Change its type to 'struct
5451 dummy_frame_id'.
5452 (dummy_frame_push): Add parameter ptid and save it in
5453 dummy_frame_id.
5454 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5455 inferior_ptid.
5456 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5457 to inferior_ptid.
5458 (lookup_dummy_frame): Change parameter type to 'struct
5459 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5460 instead of frame_id_eq.
5461 (dummy_frame_pop): Add parameter ptid. Callers updated.
5462 Update comments. Compose dummy_frame_id and pass it to
5463 lookup_dummy_frame.
5464 (dummy_frame_discard): Add parameter ptid.
5465 (dummy_frame_sniffer): Compose dummy_frame_id and call
5466 dummy_frame_id_eq instead of frame_id_eq.
5467 (fprint_dummy_frames): Print ptid.
5468 * dummy-frame.h: Remove comments.
5469 (dummy_frame_push): Add ptid in declaration.
5470 (dummy_frame_pop, dummy_frame_discard): Likewise.
5471
5472 2014-06-26 Tom Tromey <tromey@redhat.com>
5473
5474 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5475 * command.h (error_no_arg): Update.
5476
5477 2014-06-26 Tom Tromey <tromey@redhat.com>
5478
5479 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5480 (do_show_command): Make "arg" const.
5481 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5482
5483 2014-06-26 Tom Tromey <tromey@redhat.com>
5484
5485 * record-full.c (record_full_get_bookmark): Make "args" const.
5486 (record_full_goto_bookmark): Make "raw_bookmark" const.
5487 * record.c (record_goto): New function.
5488 (cmd_record_goto): Use it. Now static.
5489 * record.h (record_goto): Declare.
5490 (cmd_record_goto): Remove declaration.
5491 * target-delegates.c: Rebuild.
5492 * target.h (struct target_ops) <to_get_bookmark,
5493 to_goto_bookmark>: Make parameter const.
5494
5495 2014-06-26 Tom Tromey <tromey@redhat.com>
5496
5497 * defs.h (generic_load): Update.
5498 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5499 * monitor.c (monitor_load): Make "args" const.
5500 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5501 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5502 const.
5503 (mips_load): Make "file" const.
5504 * remote-sim.c (gdbsim_load): Make "args" const.
5505 * remote.c (remote_load): Make "name" const.
5506 * symfile.c (generic_load): Make "args" const.
5507 * target-delegates.c: Rebuild.
5508 * target.c (target_load): Make "arg" const.
5509 (debug_to_load): Make "args" const.
5510 * target.h (struct target_ops) <to_load>: Make parameter const.
5511 (target_load): Update.
5512
5513 2014-06-26 Tom Tromey <tromey@redhat.com>
5514
5515 PR symtab/16902:
5516 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5517 (dwarf2_physname, read_partial_die)
5518 (guess_partial_die_structure_name, fixup_partial_die)
5519 (guess_full_die_structure_name, anonymous_struct_prefix)
5520 (dwarf2_name): Use per-BFD obstack.
5521
5522 2014-06-26 Yao Qi <yao@codesourcery.com>
5523
5524 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5525 dummyframe and this_id into inner block below.
5526
5527 2014-06-26 Yao Qi <yao@codesourcery.com>
5528
5529 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5530 with "signal_pass[0]" in the initialization of signal_pass.
5531
5532 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5533
5534 * record-btrace.c (record_btrace_generating_corefile)
5535 (record_btrace_prepare_to_generate_core)
5536 (record_btrace_done_generating_core): New.
5537 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5538 (record_btrace_store_registers, record_btrace_prepare_to_store):
5539 Forward request when generating a core file.
5540 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5541 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5542 to_done_generating_core.
5543
5544 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5545
5546 * target.h (target_ops) <to_prepare_to_generate_core>
5547 <to_done_generating_core>: New.
5548 (target_prepare_to_generate_core, target_done_generating_core): New.
5549 * target.c (target_prepare_to_generate_core)
5550 (target_done_generating_core): New.
5551 * target-delegates.c: Regenerate.
5552 * gcore.c: (write_gcore_file): Rename to ...
5553 (write_gcore_file_1): ...this.
5554 (write_gcore_file): Call target_prepare_to_generate_core
5555 and target_done_generating_core.
5556
5557 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5558
5559 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5560 * gcore.c (write_gcore_file): Free memory returned from
5561 make_corefile_notes.
5562 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5563 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5564
5565 2014-06-24 Yao Qi <yao@codesourcery.com>
5566
5567 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5568 (arm_linux_init_abi): Set skip_trampoline_code with
5569 gdbarch_skip_trampoline_code instead of
5570 find_solib_trampoline_target.
5571
5572 2014-06-24 Yao Qi <yao@codesourcery.com>
5573
5574 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5575 arm_skip_bx_reg returns non-zero.
5576
5577 2014-06-24 Yao Qi <yao@codesourcery.com>
5578
5579 * arm-tdep.c (arm_skip_bx_reg): New function.
5580 (arm_skip_stub): Call arm_skip_bx_reg.
5581
5582 2014-06-23 Don Breazeal <donb@codesourcery.com>
5583
5584 * MAINTAINERS: Add myself as write-after-approval maintainer.
5585
5586 2014-06-23 Pedro Alves <palves@redhat.com>
5587
5588 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5589 DR_CONTROL before setting DR0..DR3.
5590 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5591 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5592 bits of DR_CONTROL related to the debug register slot being
5593 disabled. If all slots are vacant, clear local slowdown as well,
5594 and assert DR_CONTROL is 0.
5595
5596 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5597
5598 * python/lib/gdb/command/xmethods.py
5599 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5600 current progspace only if the string "progspace" matches LOCUS_RE.
5601
5602 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5603
5604 Fix --with-system-readline with readline-6.3 patch 5.
5605 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5606 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5607 types.
5608
5609 2014-06-20 Tom Tromey <tromey@redhat.com>
5610
5611 * dwarf2read.c (dw2_get_real_path): Use correct type in
5612 OBSTACK_CALLOC.
5613 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5614
5615 2014-06-20 Gary Benson <gbenson@redhat.com>
5616
5617 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5618 * common/glibc_thread_db.h: Likewise.
5619 * common/i386-cpuid.h: Likewise.
5620 * common/i386-gcc-cpuid.h: Likewise.
5621 * common/linux-btrace.h: Likewise.
5622 * common/linux-osdata.h: Likewise.
5623 * common/linux-procfs.h: Likewise.
5624 * common/linux-ptrace.h: Likewise.
5625 * common/mips-linux-watch.h: Likewise.
5626 * common/linux-btrace.c: Moved to nat.
5627 * common/linux-osdata.c: Likewise.
5628 * common/linux-procfs.c: Likewise.
5629 * common/linux-ptrace.c: Likewise.
5630 * common/mips-linux-watch.c: Likewise.
5631 * nat/gdb_thread_db.h: Moved from common.
5632 * nat/glibc_thread_db.h: Likewise.
5633 * nat/i386-cpuid.h: Likewise.
5634 * nat/i386-gcc-cpuid.h: Likewise.
5635 * nat/linux-btrace.c: Likewise.
5636 * nat/linux-btrace.h: Likewise.
5637 * nat/linux-osdata.c: Likewise.
5638 * nat/linux-osdata.h: Likewise.
5639 * nat/linux-procfs.c: Likewise.
5640 * nat/linux-procfs.h: Likewise.
5641 * nat/linux-ptrace.c: Likewise.
5642 * nat/linux-ptrace.h: Likewise.
5643 * nat/mips-linux-watch.c: Likewise.
5644 * nat/mips-linux-watch.h: Likewise.
5645 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5646 (object file files): Reordered.
5647 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5648 of glibc_thread_db.h.
5649
5650 2014-06-20 Gary Benson <gbenson@redhat.com>
5651
5652 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5653 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5654 (i386_dr_low): Likewise.
5655 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5656 (i386_dr_low_set_addr): Likewise.
5657 (i386_dr_low_get_addr): Likewise.
5658 (i386_dr_low_can_set_control): Likewise.
5659 (i386_dr_low_set_control): Likewise.
5660 (i386_dr_low_get_control): Likewise.
5661 (i386_dr_low_get_status): Likewise.
5662 (i386_get_debug_register_length): Likewise.
5663 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5664 (i386_dr_low): Likewise.
5665 * nat/i386-dregs.c (i386-low.h): Remove include.
5666 (i386-nat.h): Likewise.
5667 (nat/i386-dregs.h): New include.
5668 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5669 (i386_dr_low_set_addr): Likewise.
5670 (i386_dr_low_get_addr): Likewise.
5671 (i386_dr_low_can_set_control): Likewise.
5672 (i386_dr_low_set_control): Likewise.
5673 (i386_dr_low_get_control): Likewise.
5674 (i386_dr_low_get_status): Likewise.
5675 (i386_get_debug_register_length): Likewise.
5676 (debug_hw_points): Likewise.
5677
5678 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5679
5680 * Makefile.in (SFILES): Add d-exp.y.
5681 (YYFILES): Add d-exp.c.
5682 (YYOBJ): Add d-exp.o.
5683 (local-maintainer-clean): Delete d-exp.c.
5684 * d-exp.y: New file.
5685 * d-lang.h (d_parse): New declaration.
5686 (d_error): New declaration.
5687 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5688 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5689 PREC_ORDER operators.
5690 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5691
5692 2014-06-19 Yao Qi <yao@codesourcery.com>
5693
5694 * gdbthread.h (any_running): Remove the declaration.
5695 * thread.c (any_running): Remove.
5696
5697 2014-06-19 Yao Qi <yao@codesourcery.com>
5698
5699 * gdbthread.h (struct thread_info) <state>: Change its type to
5700 'enum thread_state'. Update comments.
5701
5702 2014-06-19 Pedro Alves <palves@redhat.com>
5703
5704 * gdbthread.h (ALL_THREADS): Delete.
5705 (ALL_NON_EXITED_THREADS): New macro.
5706 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5707 instead of ALL_THREADS.
5708 * infrun.c (find_thread_needs_step_over)
5709 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5710 instead of ALL_THREADS.
5711 * record-btrace.c (record_btrace_open)
5712 (record_btrace_stop_recording, record_btrace_close)
5713 (record_btrace_is_replaying, record_btrace_resume)
5714 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5715 * remote.c (append_pending_thread_resumptions): Likewise.
5716 * thread.c (thread_apply_all_command): Likewise.
5717
5718 2014-06-19 Gary Benson <gbenson@redhat.com>
5719
5720 * i386-nat.c (i386_stopped_by_watchpoint):
5721 Use i386_dr_stopped_by_watchpoint.
5722 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5723 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5724
5725 2014-06-19 Gary Benson <gbenson@redhat.com>
5726
5727 * nat/i386-dregs.c: New file.
5728 * Makefile.in (i386-dregs.o): New rule.
5729 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5730 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5731 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5732 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5733 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5734 * config/i386/go32.mh (NATDEPFILES): Likewise.
5735 * config/i386/linux.mh (NATDEPFILES): Likewise.
5736 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5737 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5738 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5739 * i386-nat.h (debug_hw_points): New declaration.
5740 * i386-nat.c (breakpoint.h): Remove include.
5741 (command.h): Likewise.
5742 (target.h): Likewise.
5743 (gdb_assert.h): Likewise.
5744 (debug_hw_points): Made nonstatic.
5745 (debug_printf): Now in i386-dregs.c.
5746 (TARGET_HAS_DR_LEN_8): Likewise.
5747 (DR_CONTROL_SHIFT): Likewise.
5748 (DR_CONTROL_SIZE): Likewise.
5749 (DR_RW_EXECUTE): Likewise.
5750 (DR_RW_WRITE): Likewise.
5751 (DR_RW_READ): Likewise.
5752 (DR_RW_IORW): Likewise.
5753 (DR_LEN_1): Likewise.
5754 (DR_LEN_2): Likewise.
5755 (DR_LEN_4): Likewise.
5756 (DR_LEN_8): Likewise.
5757 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5758 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5759 (DR_ENABLE_SIZE): Likewise.
5760 (DR_LOCAL_SLOWDOWN): Likewise.
5761 (DR_GLOBAL_SLOWDOWN): Likewise.
5762 (DR_CONTROL_RESERVED): Likewise.
5763 (I386_DR_CONTROL_MASK): Likewise.
5764 (I386_DR_VACANT): Likewise.
5765 (I386_DR_LOCAL_ENABLE): Likewise.
5766 (I386_DR_GLOBAL_ENABLE): Likewise.
5767 (I386_DR_DISABLE): Likewise.
5768 (I386_DR_SET_RW_LEN): Likewise.
5769 (I386_DR_GET_RW_LEN): Likewise.
5770 (I386_DR_WATCH_HIT): Likewise.
5771 (i386_wp_op_t): Likewise.
5772 (i386_show_dr): Likewise.
5773 (i386_length_and_rw_bits): Likewise.
5774 (i386_insert_aligned_watchpoint): Likewise.
5775 (i386_remove_aligned_watchpoint): Likewise.
5776 (i386_handle_nonaligned_watchpoint): Likewise.
5777 (i386_update_inferior_debug_regs): Likewise.
5778 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5779 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5780 (i386_region_ok_for_watchpoint):
5781 Use i386_dr_region_ok_for_watchpoint.
5782 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5783
5784 2014-06-19 Gary Benson <gbenson@redhat.com>
5785
5786 * i386-nat.c (i386_insert_hw_breakpoint): Use
5787 i386_insert_watchpoint.
5788 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5789
5790 2014-06-19 Gary Benson <gbenson@redhat.com>
5791
5792 * i386-nat.c (i386_dr_show): Renamed to
5793 i386_show_dr and made static. All uses updated.
5794 (i386_dr_length_and_rw_bits): Renamed to
5795 i386_length_and_rw_bits and made static.
5796 All uses updated.
5797 (i386_dr_insert_aligned_watchpoint): Renamed to
5798 i386_insert_aligned_watchpoint and made static.
5799 All uses updated.
5800 (i386_dr_remove_aligned_watchpoint): Renamed to
5801 i386_remove_aligned_watchpoint and made static.
5802 All uses updated.
5803 (i386_dr_update_inferior_debug_regs): Renamed to
5804 i386_update_inferior_debug_regs and made static.
5805 All uses updated.
5806 * nat/i386-dregs.h (i386_dr_show): Removed.
5807 (i386_dr_length_and_rw_bits): Likewise.
5808 (i386_dr_insert_aligned_watchpoint): Likewise.
5809 (i386_dr_remove_aligned_watchpoint): Likewise.
5810 (i386_dr_update_inferior_debug_regs): Likewise.
5811
5812 2014-06-19 Gary Benson <gbenson@redhat.com>
5813
5814 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5815 * configure: Regenerate.
5816 * config.in: Likewise.
5817 * main.c (signal.h): New include.
5818 (setup_alternate_signal_stack): New function.
5819 (captured_main): Call the above.
5820 * cp-support.c (signal.h): New include.
5821 (catch_demangler_crashes): New flag.
5822 (SIGJMP_BUF): New define.
5823 (SIGSETJMP): Likewise.
5824 (SIGLONGJMP): Likewise.
5825 (gdb_demangle_jmp_buf): New static global.
5826 (gdb_demangle_attempt_core_dump): Likewise.
5827 (gdb_demangle_signal_handler): New function.
5828 (gdb_demangle): If catch_demangler_crashes is set, install the
5829 above signal handler before calling bfd_demangle, and restore
5830 the original signal handler afterwards. Display the offending
5831 symbol and call demangler_warning the first time a segmentation
5832 fault is caught.
5833 (_initialize_cp_support): New maint set/show command.
5834
5835 2014-06-19 Gary Benson <gbenson@redhat.com>
5836
5837 * utils.h (resource_limit_kind): New enum.
5838 (can_dump_core): New declaration.
5839 (warn_cant_dump_core): Likewise.
5840 (dump_core): Likewise.
5841 * utils.c (dump_core): Made nonstatic. Added new
5842 parameter "limit_kind".
5843 (can_dump_core): Made nonstatic. Moved printing code to...
5844 (warn_cant_dump_core): New function.
5845 (can_dump_core_warn): Likewise.
5846 (internal_vproblem): Replace calls to can_dump_core with
5847 calls to can_dump_core_warn. Supply new argument to each.
5848
5849 2014-06-19 Gary Benson <gbenson@redhat.com>
5850
5851 * utils.h (demangler_vwarning): New declaration.
5852 (demangler_warning): Likewise.
5853 * utils.c (struct internal_problem)
5854 <user_settable_should_quit>: New field.
5855 <user_settable_should_dump_core>: Likewise
5856 (internal_error_problem): Add values for above new fields.
5857 (internal_warning_problem): Likewise.
5858 (demangler_warning_problem): New static global.
5859 (demangler_vwarning): New function.
5860 (demangler_warning): Likewise.
5861 (add_internal_problem_command): Selectively add commands.
5862 (_initialize_utils): New internal problem command.
5863 * maint.c (maintenance_demangler_warning): New function.
5864 (_initialize_maint_cmds): New command.
5865
5866 2014-06-18 Tom Tromey <tromey@redhat.com>
5867
5868 * f-valprint.c (info_common_command_for_block): Update.
5869 * symtab.h (struct general_symbol_info) <common_block>: Now
5870 const.
5871
5872 2014-06-18 Tom Tromey <tromey@redhat.com>
5873
5874 * symtab.h (struct symtab) <blockvector>: Now const.
5875 * ada-lang.c (ada_add_global_exceptions): Update.
5876 * buildsym.c (augment_type_symtab): Update.
5877 * dwarf2read.c (dw2_lookup_symbol): Update.
5878 * jit.c (finalize_symtab): Update.
5879 * jv-lang.c (add_class_symtab_symbol): Update.
5880 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5881 Update.
5882 * objfiles.c (objfile_relocate1): Update.
5883 * psymtab.c (lookup_symbol_aux_psymtabs)
5884 (maintenance_check_psymtabs): Update.
5885 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5886 Update.
5887 * spu-tdep.c (spu_catch_start): Update.
5888 * symmisc.c (dump_symtab_1): Update.
5889 * symtab.c (lookup_global_symbol_from_objfile)
5890 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5891 (basic_lookup_transparent_type_quick)
5892 (basic_lookup_transparent_type, find_pc_sect_symtab)
5893 (find_pc_sect_line, search_symbols): Update.
5894 * block.c (find_block_in_blockvector): Make "bl" const.
5895 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5896 const.
5897 (blockvector_contains_pc): Make "bv" const.
5898 (block_for_pc_sect): Update.
5899 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5900 (blockvector_contains_pc): Update.
5901 * breakpoint.c (resolve_sal_pc): Update.
5902 * inline-frame.c (block_starting_point_at): Update.
5903
5904 2014-06-18 Tom Tromey <tromey@redhat.com>
5905
5906 * completer.c (complete_line): Make "line_buffer" const.
5907 * completer.h (complete_line): Update.
5908
5909 2014-06-18 Tom Tromey <tromey@redhat.com>
5910
5911 * symtab.c (add_macro_name): Remove unneeded cast.
5912
5913 2014-06-18 Tom Tromey <tromey@redhat.com>
5914
5915 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5916 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5917
5918 2014-06-18 Tom Tromey <tromey@redhat.com>
5919
5920 * probe.c (info_probes_for_ops): Make "arg" const.
5921 * probe.h (info_probes_for_ops): Update.
5922
5923 2014-06-18 Tom Tromey <tromey@redhat.com>
5924
5925 * varobj.c (varobj_create): Update.
5926 * valops.c (value_of_this): Update.
5927 * tracepoint.c (add_local_symbols, scope_info): Update.
5928 * symtab.h (struct general_symbol_info) <block>: Now const.
5929 * symtab.c (skip_prologue_sal)
5930 (default_make_symbol_completion_list_break_on)
5931 (skip_prologue_using_sal): Update.
5932 * stack.h (iterate_over_block_locals)
5933 (iterate_over_block_local_vars): Update.
5934 * stack.c (print_frame_args): Update.
5935 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5936 parameter const.
5937 (get_selected_block): Make return type const.
5938 * python/py-frame.c (frapy_block): Update.
5939 * python/py-block.c (gdbpy_block_for_pc): Update.
5940 * p-exp.y (%union) <bval>: Now const.
5941 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5942 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5943 * m2-exp.y (%union) <bval>: Now const.
5944 * linespec.c (get_current_search_block): Make return type const.
5945 (create_sals_line_offset, find_label_symbols): Update.
5946 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5947 Update.
5948 (block_starting_point_at): Make "block" const.
5949 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5950 (check_exception_resume): Update.
5951 * guile/scm-frame.c (gdbscm_frame_block): Update.
5952 * guile/scm-block.c (gdbscm_lookup_block): Update.
5953 * frame.h (get_frame_block): Update.
5954 (get_selected_block): Make return type const.
5955 * frame.c (frame_id_inner): Update.
5956 * f-valprint.c (info_common_command_for_block)
5957 (info_common_command): Update.
5958 * dwarf2loc.c (dwarf2_find_location_expression)
5959 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5960 (locexpr_describe_location_piece): Update.
5961 * c-exp.y (%union) <bval>: Now const.
5962 * breakpoint.c (resolve_sal_pc): Update.
5963 * blockframe.c (get_frame_block):Make return type const.
5964 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5965 (block_innermost_frame): Update.
5966 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5967 (block_for_pc, block_for_pc_sect): Update.
5968 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5969 'pblock' const.
5970 (block_for_pc_sect, block_for_pc): Make return type const.
5971 * ax-gdb.c (gen_expr): Update.
5972 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5973 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5974 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5975 (ada_read_var_value): Update.
5976 * ada-exp.y (struct name_info) <block>: Now const.
5977 (%union): Likewise.
5978 (block_lookup): Constify.
5979
5980 2014-06-18 Gary Benson <gbenson@redhat.com>
5981
5982 * nat/i386-dregs.h: New file.
5983 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5984 * i386-nat.h (i386-dregs.h): New include.
5985 (DR_FIRSTADDR): Now in i386-dregs.h.
5986 (DR_LASTADDR): Likewise.
5987 (DR_NADDR): Likewise.
5988 (DR_STATUS): Likewise.
5989 (DR_CONTROL): Likewise.
5990 (i386_debug_reg_state): Likewise.
5991 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5992
5993 2014-06-18 Don Breazeal <donb@codesourcery.com>
5994
5995 * breakpoint.c (set_longjmp_breakpoint): Call
5996 momentary_breakpoint_from_master with additional argument.
5997 (set_longjmp_breakpoint_for_call_dummy): Call
5998 momentary_breakpoint_from_master with additional argument.
5999 (set_std_terminate_breakpoint): Call
6000 momentary_breakpoint_from_master with additional argument.
6001 (momentary_breakpoint_from_master): Add argument to function
6002 definition and use it to initialize structure member flag.
6003 (clone_momentary_breakpoint): Call
6004 momentary_breakpoint_from_master with additional argument.
6005 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6006 member flags set in momentary_breakpoint_from_master.
6007
6008 2014-06-18 Gary Benson <gbenson@redhat.com>
6009
6010 * i386-nat.c (i386_show_dr): Renamed to
6011 i386_dr_show and made nonstatic. All uses updated.
6012 (i386_length_and_rw_bits): Renamed to
6013 i386_dr_length_and_rw_bits and made nonstatic.
6014 All uses updated.
6015 (i386_insert_aligned_watchpoint): Renamed to
6016 i386_dr_insert_aligned_watchpoint and made nonstatic.
6017 All uses updated.
6018 (i386_remove_aligned_watchpoint): Renamed to
6019 i386_dr_remove_aligned_watchpoint and made nonstatic.
6020 All uses updated.
6021 (i386_update_inferior_debug_regs): Renamed to
6022 i386_dr_update_inferior_debug_regs and made nonstatic.
6023 All uses updated.
6024
6025 2014-06-18 Gary Benson <gbenson@redhat.com>
6026
6027 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6028 (i386_dr_low_can_set_control): Likewise.
6029 (i386_dr_low_set_addr): Likewise.
6030 (i386_dr_low_set_control): Likewise.
6031 (i386_dr_low_get_addr): Likewise.
6032 (i386_dr_low_get_status): Likewise.
6033 (i386_dr_low_get_control): Likewise.
6034 (i386_insert_aligned_watchpoint): Use new macros.
6035 (i386_update_inferior_debug_regs): Likewise.
6036 (i386_stopped_data_address): Likewise.
6037
6038 2014-06-18 Gary Benson <gbenson@redhat.com>
6039
6040 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6041 New parameter. All uses updated.
6042
6043 2014-06-18 Gary Benson <gbenson@redhat.com>
6044
6045 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6046 All uses updated.
6047
6048 2014-06-18 Gary Benson <gbenson@redhat.com>
6049
6050 * i386-nat.c (debug_printf): New macro.
6051 (i386_get_debug_register_length): Likewise.
6052 (TARGET_HAS_DR_LEN_8): Use above macro.
6053 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6054 and printf_unfiltered. Use phex to format values.
6055
6056 2014-06-18 Gary Benson <gbenson@redhat.com>
6057
6058 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6059 Make const.
6060
6061 2014-06-18 Gary Benson <gbenson@redhat.com>
6062
6063 * i386-nat.c: Comment changes.
6064
6065 2014-06-18 Gary Benson <gbenson@redhat.com>
6066
6067 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6068
6069 2014-06-18 Gary Benson <gbenson@redhat.com>
6070
6071 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6072 (i386_insert_aligned_watchpoint): Likewise.
6073 (i386_remove_aligned_watchpoint): Likewise.
6074 (i386_handle_nonaligned_watchpoint): Likewise.
6075
6076 2014-06-18 Gary Benson <gbenson@redhat.com>
6077
6078 * i386-nat.c: Whitespace changes.
6079
6080 2014-06-17 Samuel Bronson <naesten@gmail.com>
6081
6082 * MAINTAINERS: Update Roland McGrath's email address.
6083 Thanks to Sergio Durigan Junior for pointing out that he left
6084 Red Hat a while ago, and giving me a current address.
6085
6086 2014-06-17 Tom Tromey <tromey@redhat.com>
6087
6088 * utils.h (savestring): Remove declaration.
6089
6090 2014-06-17 Tom Tromey <tromey@redhat.com>
6091
6092 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6093
6094 2014-06-16 Keith Seitz <keiths@redhat.com>
6095
6096 PR mi/15863
6097 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6098 to update the varobj if inferior_ptid is null_ptid.
6099
6100 2014-06-16 Tom Tromey <tromey@redhat.com>
6101
6102 * target.h (struct target_ops) <to_info_proc>: Make parameter
6103 const.
6104 (target_info_proc): Update.
6105 * target.c (target_info_proc): Make "args" const.
6106 * procfs.c (procfs_info_proc): Update.
6107 * linux-tdep.c (linux_info_proc): Update.
6108 (linux_core_info_proc_mappings): Make "args" const.
6109 (linux_core_info_proc): Update.
6110 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6111 * gdbarch.c: Rebuild.
6112 * gdbarch.h: Rebuild.
6113 * corelow.c (core_info_proc): Update.
6114
6115 2014-06-16 Tom Tromey <tromey@redhat.com>
6116
6117 * target.h (struct target_ops) <to_disconnect>: Make parameter
6118 const.
6119 (target_disconnect): Update.
6120 * target.c (target_disconnect): Make "args" const.
6121 * target-delegates.c: Rebuild.
6122 * remote.c (remote_disconnect): Update.
6123 * record.h (record_disconnect): Update.
6124 * record.c (record_disconnect): Update.
6125 * inf-child.c (inf_child_disconnect): Update.
6126
6127 2014-06-16 Tom Tromey <tromey@redhat.com>
6128
6129 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6130 * target.c (debug_to_rcmd, default_rcmd): Update.
6131 * target-delegates.c: Rebuild.
6132 * remote.c (remote_rcmd): Update.
6133 * monitor.c (monitor_rcmd): Update.
6134
6135 2014-06-16 Pedro Alves <palves@redhat.com>
6136
6137 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6138 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6139 have OBJF_SHARED set.
6140 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6141 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6142 instead of OBJF_USERLOADED.
6143 * objfiles.h (OBJF_SHARED): Update comment.
6144 (userloaded_objfile_contains_address_p): Rename to ...
6145 (shared_objfile_contains_address_p): ... this, and update
6146 comments.
6147 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6148 new objfile.
6149 (remove_symbol_file_command): Skip objfiles that don't have
6150 OBJF_SHARED set.
6151
6152 2014-06-16 Tom Tromey <tromey@redhat.com>
6153
6154 * minsyms.h (prim_record_minimal_symbol)
6155 (prim_record_minimal_symbol_and_info): Update comments.
6156
6157 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6158
6159 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6160 or --without-guile, according to how GDB was built.
6161
6162 2014-06-13 Tom Tromey <tromey@redhat.com>
6163
6164 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6165 to help_list.
6166 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6167 to help_list.
6168 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6169 help_list.
6170 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6171 help_list.Pass all_commands, not -1, to help_list.
6172 * cli/cli-dump.c (dump_command, append_command)
6173 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6174 (binary_dump_command, binary_append_command): Pass all_commands,
6175 not -1, to help_list.
6176 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6177 -1, to help_list.
6178 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6179 -1, to help_list.
6180 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6181 help_list.
6182 * top.c (set_history): Pass all_commands, not -1, to help_list.
6183 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6184 all_commands, not -1, to help_list.
6185 * symfile.c (overlay_command): Pass all_commands, not -1, to
6186 help_list.
6187 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6188 help_list.
6189 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6190 help_list.
6191 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6192 -1, to help_list.
6193 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6194 not -1, to help_list.
6195 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6196 not -1, to help_list.
6197 * maint.c (maintenance_command, maintenance_info_command)
6198 (maintenance_print_command, maintenance_set_cmd): Pass
6199 all_commands, not -1, to help_list.
6200 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6201 help_list.
6202 * language.c (set_check): Pass all_commands, not -1, to help_list.
6203 * infcmd.c (unset_command): Pass all_commands, not -1, to
6204 help_list.
6205 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6206 help_list.
6207 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6208 help_list.
6209 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6210 help_list.
6211 * breakpoint.c (save_command): Pass all_commands, not -1, to
6212 help_list.
6213 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6214 all_commands, not -1, to help_list.
6215
6216 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6217
6218 * regcache.c (struct register_to_invalidate): New structure.
6219 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6220 functions.
6221 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6222
6223 2014-06-12 Yao Qi <yao@codesourcery.com>
6224
6225 * varobj.c (varobj_get_num_children): Call
6226 varobj_is_dynamic_p.
6227 (varobj_list_children): Likewise.
6228 (varobj_update): Likewise. Update comments.
6229
6230 2014-06-12 Yao Qi <yao@codesourcery.com>
6231
6232 * varobj.c (varobj_pretty_printed_p): Rename to ...
6233 (varobj_is_dynamic_p): ... this. New function.
6234 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6235 (varobj_is_dynamic_p): Declare.
6236 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6237 (mi_print_value_p, varobj_update_one): Likewise.
6238
6239 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6240 Yao Qi <yao@codesourcery.com>
6241
6242 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6243 (varobj_get_iterator): Wrap up code for pretty-printer by
6244 "#if HAVE_PYTHON" and "#endif".
6245 (update_dynamic_varobj_children): Likewise.
6246
6247 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6248 Yao Qi <yao@codesourcery.com>
6249
6250 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6251 gdb_python_initialized is false. Move some code from varobj.c.
6252 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6253 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6254 (struct varobj_item): Moved to varobj-iter.h".
6255 (varobj_clear_saved_item): New function.
6256 (update_dynamic_varobj_children): Move python-related code to
6257 py-varobj.c.
6258 (free_variable): Call varobj_clear_saved_item and
6259 varobj_iter_delete.
6260
6261 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6262 Yao Qi <yao@codesourcery.com>
6263
6264 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6265 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6266 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6267 (py-varobj.o): New rule.
6268 * python/py-varobj.c: New file.
6269 * python/python-internal.h (py_varobj_get_iterator): Declare.
6270 * varobj-iter.h: New file.
6271 * varobj.c: Include "varobj-iter.h"
6272 (struct varobj) <child_iter>: Change its type from "PyObject *"
6273 to "struct varobj_iter *".
6274 <saved_item>: Likewise.
6275 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6276 [HAVE_PYTHON] (varobj_get_iterator): New function.
6277 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6278 python-specific code to python/py-varobj.c.
6279 (install_visualizer): Call varobj_iter_delete instead of
6280 Py_XDECREF.
6281 * varobj.h (varobj_ensure_python_env): Declare.
6282
6283 2014-06-12 Yao Qi <yao@codesourcery.com>
6284
6285 * varobj.c (struct varobj_item): New structure.
6286 (create_child_with_value): Update declaration.
6287 (varobj_add_child): Replace arguments 'name' and 'value' with
6288 'item'. All callers updated.
6289 (install_dynamic_child): Likewise.
6290 (update_dynamic_varobj_children): Likewise.
6291 (varobj_add_child): Likewise.
6292 (create_child_with_value): Likewise.
6293
6294 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6295
6296 * NEWS: Create a new section for the next release branch.
6297 Rename the section of the current branch, now that it has
6298 been cut.
6299
6300 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6301
6302 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6303 * version.in: Bump version to 7.8.50.DATE-cvs.
6304
6305 2014-06-11 Pedro Alves <palves@redhat.com>
6306
6307 PR remote/17028
6308 * ser-mingw.c (net_windows_socket_check_pending): New function.
6309 (net_windows_select_thread): Ignore spurious wakeups. Use
6310 net_windows_socket_check_pending.
6311 (net_windows_wait_handle): Check for pending events with
6312 ioctlsocket, through net_windows_socket_check_pending, instead of
6313 checking the socket's event.
6314
6315 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6316
6317 * python/python-internal.h (gdb_PyObject_GetAttrString)
6318 (gdb_PyObject_HasAttrString): New inline function definitions.
6319 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6320 char * of the second argument to PyObject_GetAttrString.
6321
6322 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6323
6324 * serial.c (serial_write): Fix index of character to be printed
6325 in call to serial_logchar when serial debug traces are enabled.
6326
6327 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6328
6329 * gdbtypes (resolve_dynamic_range): Add function description.
6330
6331 2014-06-09 Pedro Alves <palves@redhat.com>
6332
6333 * linux-nat.c (linux_child_follow_fork): Initialize status with
6334 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6335 inner block. Only pass the signal to PTRACE_DETACH if in pass
6336 state.
6337
6338 2014-06-09 Gary Benson <gbenson@redhat.com>
6339
6340 * common/signals.c (gdb_signal_from_host): Reorder to separate
6341 the always-available ANSI-standard signals from the signals that
6342 require checking.
6343 (do_gdb_signal_to_host): Likewise.
6344 * proc-events.c (signal_table): Likewise.
6345
6346 2014-06-08 Hui Zhu <hui@codesourcery.com>
6347
6348 * common/linux-ptrace.c (linux_disable_event_reporting): New
6349 function.
6350 * common/linux-ptrace.h (linux_disable_event_reporting): New
6351 declaration.
6352 * linux-nat.c (linux_child_follow_fork): Do a single step before
6353 detach.
6354
6355 2014-06-07 Keith Seitz <keiths@redhat.com>
6356
6357 Revert:
6358 PR c++/16253
6359 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6360 from symbol_matches_domain in symtab.c. All local callers
6361 of symbol_matches_domain updated.
6362 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6363 search STRUCT_DOMAIN.
6364 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6365 independently. standard_lookup will do that automatically.
6366 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6367 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6368 (cp_lookup_symbol_in_namespace): Likewise.
6369 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6370 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6371 may return a STRUCT_DOMAIN match.
6372 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6373 * cp-support.c: Include language.h.
6374 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6375 VAR_DOMAIN.
6376 * psymtab.c (match_partial_symbol): Compare the requested
6377 domain with the symbol's domain directly.
6378 (lookup_partial_symbol): Likewise.
6379 * symtab.c (lookup_symbol_in_language): Explain when/why
6380 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6381 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6382 appropriate languages.
6383 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6384 and moved to ada-lang.c
6385 (lookup_block_symbol): Explain that this function only returns
6386 symbol matching the requested DOMAIN.
6387 Compare the requested domain with the symbol's domain directly.
6388 (iterate_over_symbols): Compare the requested domain with the
6389 symbol's domain directly.
6390 * symtab.h (symbol_matches_domain): Remove.
6391
6392 2014-06-06 Doug Evans <xdje42@gmail.com>
6393
6394 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6395 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6396 (gdbscm_guile_version_is_at_least): Declare.
6397 (gdbscm_scm_string_to_int): Declare.
6398 * guile/guile.c (gdbscm_guile_major_version): New global.
6399 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6400 (guile_datadir): New static global.
6401 (gdbscm_guile_data_directory): New function.
6402 (initialize_scheme_side): Update.
6403 (misc_guile_functions): Add guile-data-directory.
6404 (initialize_gdb_module): Fetch guile version number.
6405 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6406 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6407 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6408 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6409 comments.
6410 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6411 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6412 * guile/scm-value.c (gdbscm_value_to_string): Only call
6413 scm_port_conversion_strategy if Guile version >= 2.0.6.
6414
6415 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6416
6417 * main.c (print_gdb_help): Add -q and --silent.
6418
6419 2014-06-06 Gary Benson <gbenson@redhat.com>
6420
6421 * common/signals.c: Remove preprocessor conditionals for
6422 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6423 SIGSEGV and SIGTERM.
6424 * proc-events.c: Likewise.
6425
6426 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6427
6428 * symfile.c (symfile_free_objfile): Remove restriction to
6429 OBJF_USERLOADED.
6430 * symfile-mem.c (symbol_file_add_from_memory): Call
6431 add_target_sections_of_objfile.
6432
6433 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6434
6435 * guile/scm-value.c (gdbscm_history_append_x): Use
6436 'vlscm_get_value_smob_arg_unsafe' instead of
6437 'vlscm_scm_to_value'.
6438
6439 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6440
6441 PR mi/15806
6442 * utils.c (printchar): Don't escape at all if quoter is NUL.
6443 Update function documentation to clarify effect of parameter
6444 QUOTER.
6445 * remote.c (escape_buffer): Pass '\\' as the quoter to
6446 fputstrn_unfiltered.
6447 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6448 generate the output.
6449 (mi_solib_unloaded): Same.
6450
6451 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6452
6453 * development.sh: Delete.
6454 * Makefile.in (config.status): Adjust dependency on development.sh.
6455 * configure.ac: Adjust development.sh source call.
6456 * configure: Regenerate.
6457
6458 2014-06-04 Doug Evans <xdje42@gmail.com>
6459
6460 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6461 is_scheme_bkpt, spec.
6462 (bpscm_make_breakpoint_smob): Initialize new members.
6463 (gdbscm_create_breakpoint_x): Split into two ...
6464 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6465 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6466 (scheme_function breakpoint_functions): Update.
6467 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6468 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6469 register-breakpoint!.
6470
6471 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6472
6473 PR server/17023
6474 * mem-break.c (z_type_supported): Return zero if
6475 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6476
6477 2014-06-04 Tom Tromey <tromey@redhat.com>
6478
6479 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6480 value_from_contents_and_address_unresolved.
6481 (ada_template_to_fixed_record_type_1): Likewise.
6482 (ada_which_variant_applies): Likewise.
6483 * value.h (value_from_contents_and_address_unresolved): Declare.
6484 * value.c (value_from_contents_and_address_unresolved): New
6485 function.
6486 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6487 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6488 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6489
6490 2014-06-04 Tom Tromey <tromey@redhat.com>
6491
6492 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6493
6494 2014-06-04 Tom Tromey <tromey@redhat.com>
6495
6496 * procfs.c (procfs_attach): Make "args" const.
6497 * windows-nat.c (windows_attach): Make "args" const.
6498 * nto-procfs.c (procfs_attach): Make "args" const.
6499 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6500 * go32-nat.c (go32_attach): Make "args" const.
6501 * gnu-nat.c (gnu_attach): Make "args" const.
6502 * darwin-nat.c (darwin_attach): Make "args" const.
6503 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6504 * linux-nat.c (linux_nat_attach): Make "args" const.
6505 * remote.c (extended_remote_attach_1, extended_remote_attach):
6506 Make "args" const.
6507 * target.h (struct target_ops) <to_attach>: Make "args" const.
6508 (find_default_attach): Likewise.
6509 * utils.c (parse_pid_to_attach): Make "args" const.
6510 * utils.h (parse_pid_to_attach): Update.
6511
6512 2014-06-04 Tom Tromey <tromey@redhat.com>
6513
6514 * target-delegates.c: Rebuild.
6515 * target.c (default_thread_address_space): New function.
6516 (target_thread_address_space): Simplify.
6517 * target.h (struct target_ops) <to_thread_address_space>: Add
6518 TARGET_DEFAULT_FUNC.
6519
6520 2014-06-04 Doug Evans <xdje42@gmail.com>
6521
6522 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6523
6524 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6525
6526 * record-btrace.c: Include event-loop.h and inf-loop.h.
6527 (record_btrace_resume_exec_dir)
6528 (record_btrace_async_inferior_event_handler)
6529 (record_btrace_handle_async_inferior_event): New.
6530 (record_btrace_open): Create async event handler.
6531 (record_btrace_close): Delete async event handler.
6532 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6533 Mark async event handler.
6534 (record_btrace_execution_direction): New.
6535 (init_record_btrace_ops): Initialize to_execution_direction.
6536
6537 2014-06-03 Doug Evans <xdje42@gmail.com>
6538
6539 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6540 (gdbscm_make_parameter): Ditto.
6541
6542 2014-06-03 Doug Evans <dje@google.com>
6543
6544 * exec.c (exec_close_1): Call clear_section_table instead of
6545 resize_section_table.
6546 (clear_section_table): New function.
6547 (resize_section_table): Make static. Rename arg num_added to
6548 adjustment.
6549 * exec.h (clear_section_table): Declare.
6550 (resize_section_table): Delete.
6551 * progspace.c (release_program_space): Call clear_section_table
6552 instead of resize_section_table.
6553
6554 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6555
6556 * NEWS (Python Scripting): Add entry about the new xmethods
6557 feature.
6558
6559 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6560
6561 * python/py-xmethods.c: New file.
6562 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6563 (objfpy_dealloc): XDECREF on the new xmethods field.
6564 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6565 field.
6566 (objfpy_get_xmethods): New function.
6567 (objfile_getset): New entry 'xmethods'.
6568 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6569 (pspy_dealloc): XDECREF on the new xmethods field.
6570 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6571 field.
6572 (pspy_get_xmethods): New function.
6573 (pspace_getset): New entry 'xmethods'.
6574 * python/python-internal.h: Add declarations for new functions.
6575 * python/python.c (_initialize_python): Invoke
6576 gdbpy_initialize_xmethods.
6577 * python/lib/gdb/__init__.py (xmethods): New
6578 attribute.
6579 * python/lib/gdb/xmethod.py: New file.
6580 * python/lib/gdb/command/xmethods.py: New file.
6581
6582 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6583
6584 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6585 best match method returned by find_overload_match is an xmethod.
6586 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6587 the best matching operator returned by find_overload_match is an
6588 xmethod.
6589 * valops.c: #include "extension.h".
6590 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6591 Return void. The list of matching source methods is returned in
6592 "fn_list" and a vector of matching debug method workers is
6593 returned in "xm_worker_vec". Update all callers.
6594 (value_find_oload_method_list): Likewise.
6595 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6596 non-NULL, then the index of the best matching method in this
6597 vector is returned. Update all callers.
6598 (find_overload_match): Include xmethods while performing overload
6599 resolution.
6600
6601 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6602
6603 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6604 * extension-priv.h (struct extension_language_ops): Add the
6605 xmethod interface.
6606 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6607 get_matching_xmethod_workers, get_xmethod_argtypes,
6608 invoke_xmethod, free_xmethod_worker,
6609 free_xmethod_worker_vec): New functions.
6610 * extension.h: #include "common/vec.h".
6611 New function declarations.
6612 (struct xmethod_worker): New struct.
6613 (VEC (xmethod_worker_ptr)): New vector type.
6614 (xmethod_worker_ptr): New typedef.
6615 (xmethod_worker_vec): Likewise.
6616 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6617 builtin_type.
6618 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6619 (struct builtin_type): New field "xmethod".
6620 * valarith.c (value_ptradd): Assert that the value argument is not
6621 lval_xcallable.
6622 * valops.c (value_must_coerce_to_target): Return 0 for
6623 lval_xcallable values.
6624 * value.c (struct value): New field XM_WORKER in the field
6625 LOCATION.
6626 (value_address, value_raw_address): Return 0 for lval_xcallable
6627 values.
6628 (set_value_address): Assert that the value is not an
6629 lval_xcallable.
6630 (value_free): Free the associated xmethod worker when freeing
6631 lval_xcallable values.
6632 (set_value_component_location): Assert that the WHOLE value is not
6633 lval_xcallable.
6634 (value_of_xmethod, call_xmethod): New functions.
6635 * value.h: Declare "struct xmethod_worker".
6636 Declare new functions value_of_xmethod, call_xmethod.
6637
6638 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6639 Pedro Alves <palves@redhat.com>
6640
6641 PR breakpoints/17000
6642 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6643 New function, extracted from software_breakpoint_inserted_here_p.
6644 (software_breakpoint_inserted_here_p): Replace factored out code
6645 by call to find_non_raw_software_breakpoint_inserted_here.
6646 (bp_target_info_copy_insertion_state): New function.
6647 (bkpt_insert_location): Handle the case of a single-step
6648 breakpoint already inserted at the same address.
6649 (bkpt_remove_location): Handle the case of a single-step
6650 breakpoint still inserted at the same address.
6651 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6652 breakpoint already inserted at the same address.
6653 (deprecated_remove_raw_breakpoint): Handle the case of a
6654 non-raw breakpoint still inserted at the same address.
6655 (find_single_step_breakpoint): New function, extracted from
6656 single_step_breakpoint_inserted_here_p.
6657 (find_single_step_breakpoint): New function,
6658 factored out from single_step_breakpoint_inserted_here_p.
6659 (single_step_breakpoint_inserted_here_p): Reimplement.
6660
6661 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6662
6663 Pushed by Joel Brobecker <brobecker@adacore.com>
6664 * source.c (show_substitute_path_command): Fix display of matching
6665 substitution rules.
6666
6667 2014-06-03 Gary Benson <gbenson@redhat.com>
6668
6669 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6670
6671 2014-06-02 Doug Evans <xdje42@gmail.com>
6672
6673 Add parameter support for Guile.
6674 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6675 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6676 (scm-param.o): New rule.
6677 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6678 (gdbscm_misc_error): Declare.
6679 (gdbscm_canonicalize_command_name): Declare.
6680 (gdbscm_scm_to_host_string): Declare.
6681 (gdbscm_scm_from_host_string): Declare.
6682 (gdbscm_initialize_parameters): Declare.
6683 * guile/guile.c (initialize_gdb_module): Call
6684 gdbscm_initialize_parameters.
6685 * guile/lib/gdb.scm: Export parameter symbols.
6686 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6687 cmdscm_canonicalize_name and made public. All callers updated.
6688 * guile/scm-exception.c (gdbscm_misc_error): New function.
6689 * guile/scm-param.c: New file.
6690 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6691 (gdbscm_scm_to_host_string): New function.
6692 (gdbscm_scm_from_host_string): New function.
6693 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6694
6695 2014-06-02 Doug Evans <xdje42@gmail.com>
6696
6697 Add command support for Guile.
6698 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6699 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6700 (scm-cmd.o): New rule.
6701 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6702 (gdbscm_user_error_p): Declare.
6703 (gdbscm_parse_command_name): Declare.
6704 (gdbscm_valid_command_class_p): Declare.
6705 (gdbscm_initialize_commands): Declare.
6706 * guile/guile.c (initialize_gdb_module): Call
6707 gdbscm_initialize_commands.
6708 * guile/lib/gdb.scm: Export command symbols.
6709 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6710 (throw-user-error): New function.
6711 * guile/scm-cmd.c: New file.
6712 * guile/scm-exception.c (user_error_symbol): New static global.
6713 (gdbscm_user_error_p): New function.
6714 (gdbscm_initialize_exceptions): Set user_error_symbol.
6715 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6716
6717 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6718
6719 * top.c (command_loop): Handle comments here...
6720 (command_line_input): ... not here.
6721
6722 2014-06-02 Doug Evans <xdje42@gmail.com>
6723
6724 Add progspace support for Guile.
6725 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6726 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6727 (scm-progspace.o): New rule.
6728 * guile/guile-internal.h (pspace_smob): New typedef.
6729 (psscm_pspace_smob_pretty_printers): Declare.
6730 (psscm_pspace_smob_from_pspace): Declare.
6731 (psscm_scm_from_pspace): Declare.
6732 * guile/guile.c (initialize_gdb_module): Call
6733 gdbscm_initialize_pspaces.
6734 * guile/lib/gdb.scm: Export progspace symbols.
6735 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6736 support.
6737 (append-pretty-printer!): Ditto.
6738 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6739 Implement.
6740 * guile/scm-progspace.c: New file.
6741
6742 2014-06-03 Alan Modra <amodra@gmail.com>
6743
6744 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6745 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6746
6747 2014-06-02 Doug Evans <dje@google.com>
6748
6749 Add support for skeletonless type units.
6750 * dwarf2read.c (struct dwarf2_per_objfile): New member
6751 n_allocated_type_units.
6752 (struct dwarf2_per_objfile) <tu_stats>: New member
6753 nr_all_type_units_reallocs.
6754 (create_signatured_type_table_from_index): Initialize
6755 n_allocated_type_units
6756 (create_all_type_units): Ditto.
6757 (add_type_unit): Move up in file. New arg slot.
6758 All callers updated. Increase space for all_type_units more
6759 efficiently.
6760 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6761 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6762 (lookup_dwp_signatured_type): Ditto.
6763 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6764 All callers updated.
6765 (build_type_psymtabs_1): Leave type_unit_groups as
6766 NULL if no TUs present.
6767 (print_tu_stats): New function.
6768 (process_skeletonless_type_unit): New function.
6769 (process_dwo_file_for_skeletonless_type_units): New
6770 function.
6771 (process_skeletonless_type_units): New function.
6772 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6773 Call print tu_stats if debugging enabled.
6774
6775 2014-06-02 Pedro Alves <palves@redhat.com>
6776
6777 * breakpoint.c (build_target_command_list): Don't build a command
6778 list if we have any duplicate location that isn't a dprintf.
6779
6780 2014-06-02 Pedro Alves <palves@redhat.com>
6781
6782 * breakpoint.c (dprintf_breakpoint_hit): New function.
6783 (initialize_breakpoint_ops): Install it as dprintf's
6784 breakpoint_hit method.
6785
6786 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6787
6788 * source.c (substitute_path_rule_matches): Simplify using
6789 filename_ncmp instead of FILENAME_CMP.
6790
6791 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6792
6793 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6794
6795 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6796
6797 * configure.ac: When Guile is available, check for the
6798 availability of 'scm_new_smob'.
6799 * configure, config.h.in: Regenerate.
6800 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6801 function.
6802
6803 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6804
6805 * frame.c (struct frame_info): Add stop_string field.
6806 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6807 (get_prev_frame_always): Old content moved into
6808 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6809 TRY_CATCH, handle MEMORY_ERROR exceptions.
6810 (frame_stop_reason_string): New function definition.
6811 * frame.h (unwind_stop_reason_to_string): Extend comment to
6812 mention frame_stop_reason_string.
6813 (frame_stop_reason_string): New function declaration.
6814 * stack.c (frame_info): Switch to frame_stop_reason_string.
6815 (backtrace_command_1): Switch to frame_stop_reason_string.
6816 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6817 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6818 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6819
6820 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6821
6822 * frame.c (frame_stop_reason_string): Rename to ...
6823 (unwind_stop_reason_to_string): this.
6824 * frame.h (frame_stop_reason_string): Rename to ...
6825 (unwind_stop_reason_to_string): this.
6826 * stack.c (frame_info): Update call to frame_stop_reason_string.
6827 (backtrace_command_1): Likewise.
6828 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6829 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6830
6831 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6832
6833 * frame.c (remove_prev_frame): New function.
6834 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6835 remove_prev_frame.
6836
6837 2014-05-29 Pedro Alves <palves@redhat.com>
6838
6839 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6840 and make it const. When a single-step decays to a continue,
6841 clear 'step', not 'hw_step'. Pass whether the caller wanted
6842 to step to user_visible_resume_ptid, not what we ask the
6843 target to do.
6844
6845 2014-05-29 Pedro Alves <palves@redhat.com>
6846
6847 * infrun.c (process_event_stop_test, handle_step_into_function)
6848 (handle_step_into_function_backward): Adjust.
6849 Don't set the even thread's stop_step and call stop_waiting before
6850 calling end_stepping_range. Instead do that ...
6851 (end_stepping_range): ... here. Take an ecs pointer parameter.
6852
6853 2014-05-29 Pedro Alves <palves@redhat.com>
6854
6855 * infrun.c (stop_stepping): Rename to ...
6856 (stop_waiting): ... this.
6857 (proceed): Update comment.
6858 (process_event_stop_test, handle_inferior_event)
6859 (handle_signal_stop, handle_step_into_function)
6860 (handle_step_into_function_backward): Update.
6861
6862 2014-05-29 Pedro Alves <palves@redhat.com>
6863
6864 * infcall.c (run_inferior_call): Don't check whether the current
6865 thread is running after the proceed call.
6866
6867 2014-05-29 Pedro Alves <palves@redhat.com>
6868 Tom Tromey <tromey@redhat.com>
6869
6870 * NEWS: Mention "maint set target-async", "set mi-async", and that
6871 background execution commands are now always available.
6872 * target.h (target_async_permitted): Update comment.
6873 * target.c (target_async_permitted, target_async_permitted_1):
6874 Default to 1.
6875 (set_target_async_command): Rename to ...
6876 (maint_set_target_async_command): ... this.
6877 (show_target_async_command): Rename to ...
6878 (maint_show_target_async_command): ... this.
6879 (_initialize_target): Adjust.
6880 * infcmd.c (prepare_execution_command): Make extern.
6881 * inferior.h (prepare_execution_command): Declare.
6882 * infrun.c (set_observer_mode): Leave target async alone.
6883 * mi/mi-interp.c (mi_interpreter_init): Install
6884 mi_on_sync_execution_done as sync_execution_done observer.
6885 (mi_on_sync_execution_done): New function.
6886 (mi_execute_command_input_handler): Don't print the prompt if we
6887 just started a synchronous command with an async target.
6888 (mi_on_resume): Check sync_execution before printing prompt.
6889 * mi/mi-main.h (mi_async_p): Declare.
6890 * mi/mi-main.c: Include gdbcmd.h.
6891 (mi_async_p): New function.
6892 (mi_async, mi_async_1): New globals.
6893 (set_mi_async_command, show_mi_async_command, mi_async): New
6894 functions.
6895 (exec_continue): Call prepare_execution_command.
6896 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6897 (mi_execute_async_cli_command): Use mi_async_p.
6898 (_initialize_mi_main): Install "set mi-async". Make
6899 "target-async" a deprecated alias.
6900
6901 2014-05-29 Pedro Alves <palves@redhat.com>
6902
6903 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6904 (_initialize_cli_interp): Adjust.
6905 * event-loop.c: Include "observer.h".
6906 (start_event_loop): Notify 'command_error' observers instead of
6907 calling display_gdb_prompt. Remove FIXME comment.
6908 * event-top.c (display_gdb_prompt): Remove call into the
6909 interpreters.
6910 * inf-loop.c: Include "observer.h".
6911 (inferior_event_handler): Notify 'command_error' observers instead
6912 of calling display_gdb_prompt.
6913 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6914 observers instead of calling display_gdb_prompt.
6915 * interps.c (interp_set): Don't call display_gdb_prompt.
6916 (current_interp_display_prompt_p): Delete.
6917 * interps.h (interp_prompt_p): Delete declaration.
6918 (interp_prompt_p_ftype): Delete.
6919 (struct interp_procs) <prompt_proc_p>: Delete field.
6920 (current_interp_display_prompt_p): Delete declaration.
6921 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6922 (_initialize_mi_interp): Adjust.
6923 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6924 'command_error' observers.
6925 (tui_on_sync_execution_done, tui_on_command_error): New
6926 functions.
6927 (tui_display_prompt_p): Delete.
6928 (_initialize_tui_interp): Adjust.
6929
6930 2014-05-29 Pedro Alves <palves@redhat.com>
6931
6932 PR gdb/13860
6933 * cli/cli-interp.c: Include infrun.h and observer.h.
6934 (cli_uiout, cli_interp): New globals.
6935 (cli_on_signal_received, cli_on_end_stepping_range)
6936 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6937 functions.
6938 (cli_interpreter_init): Install them as 'end_stepping_range',
6939 'signal_received' 'signal_exited', 'exited' and 'no_history'
6940 observers.
6941 (_initialize_cli_interp): Remove cli_interp local.
6942 * infrun.c (handle_inferior_event): Call the several stop reason
6943 observers instead of printing the stop reason directly.
6944 (end_stepping_range): New function.
6945 (print_end_stepping_range_reason, print_signal_exited_reason)
6946 (print_exited_reason, print_signal_received_reason)
6947 (print_no_history_reason): Make static, and add an uiout
6948 parameter. Print to that instead of to CURRENT_UIOUT.
6949 * infrun.h (print_end_stepping_range_reason)
6950 (print_signal_exited_reason, print_exited_reason)
6951 (print_signal_received_reason print_no_history_reason): New
6952 declarations.
6953 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6954 'mi_uiout'.
6955 <cli_uiout>: New field.
6956 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6957 uiout for CLI output. Install 'signal_received',
6958 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6959 observers.
6960 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6961 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6962 (mi_on_no_history): New functions.
6963 (ui_out_free_cleanup): Delete function.
6964 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6965 instead use the one already stored in the MI interpreter data.
6966 (mi_ui_out): Adjust.
6967 * tui/tui-interp.c: Include infrun.h and observer.h.
6968 (tui_interp): New global.
6969 (tui_on_signal_received, tui_on_end_stepping_range)
6970 (tui_on_signal_exited, tui_on_exited)
6971 (tui_on_no_history): New functions.
6972 (tui_init): Install them as 'end_stepping_range',
6973 'signal_received' 'signal_exited', 'exited' and 'no_history'
6974 observers.
6975 (_initialize_tui_interp): Delete tui_interp local.
6976
6977 2014-05-29 Pedro Alves <palves@redhat.com>
6978
6979 PR gdb/15713
6980 * linux-nat.c (linux_nat_resume_callback): Rename the second
6981 parameter to 'except'. Skip LP if it points to EXCEPT.
6982 (linux_nat_resume): Don't mark the event lwp as not stopped
6983 before resuming sibling lwps. Instead ask
6984 linux_nat_resume_callback to skip the event lwp. Mark it as not
6985 stopped after actually resuming it.
6986 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6987 resuming it.
6988 (wait_lwp): Mark the lwp as stopped here.
6989 (stop_wait_callback): Mark the lwp as not stopped right after
6990 resuming it. Don't mark lwps as stopped here.
6991 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6992 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6993
6994 2014-05-29 Pedro Alves <palves@redhat.com>
6995
6996 PR PR15693
6997 * infrun.c (resume): Determine how much to resume depending on
6998 whether the caller wanted a step, not whether we can hardware step
6999 the target. Mark all threads that we intend to run as running,
7000 unless we're calling an inferior function.
7001 (normal_stop): If the thread is running an infcall, don't finish
7002 thread state.
7003 * target.c (target_resume): Don't mark threads as running here.
7004
7005 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7006
7007 * serial.c (_initialize_serial): Remove support for
7008 the "set remotebaud" and "show remotebaud" commands.
7009 * NEWS: Add entry documenting the removal of that command.
7010
7011 2014-05-28 Yao Qi <yao@codesourcery.com>
7012
7013 * charset.c: Fix typo in comments.
7014
7015 2014-05-27 Gary Benson <gbenson@redhat.com>
7016
7017 * utils.c (internal_vproblem): Prompt for a bug report.
7018
7019 2014-05-26 Andy Wingo <wingo@igalia.com>
7020
7021 * guile/scm-arch.c (arscm_mark_arch_smob):
7022 * guile/scm-block.c (bkscm_mark_block_smob)
7023 (bkscm_mark_block_syms_progress_smob):
7024 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7025 * guile/scm-exception.c (exscm_mark_exception_smob):
7026 * guile/scm-frame.c (frscm_mark_frame_smob):
7027 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7028 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7029 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7030 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7031 (ppscm_mark_pretty_printer_worker_smob):
7032 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7033 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7034 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7035 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7036 mark functions.
7037 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7038 function.
7039
7040 2014-05-26 Andy Wingo <wingo@igalia.com>
7041 Doug Evans <xdje42@gmail.com>
7042
7043 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7044 empty_base_class. All uses updated.
7045 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7046 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7047 Adapt all callers.
7048 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7049 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7050 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7051 (gdbscm_gsmob_has_property_p, add_property_name)
7052 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7053 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7054 (gdb-object-has-property?, gdb-object-properties): Remove.
7055 (gdb-object-kind): Renamed from gsmob-kind.
7056
7057 2014-05-26 Andy Wingo <wingo@igalia.com>
7058
7059 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7060 * configure: Regenerate.
7061
7062 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7063
7064 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7065
7066 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7067
7068 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7069 (replay_memory_access_read_only, replay_memory_access_read_write)
7070 (replay_memory_access_types, replay_memory_access)
7071 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7072 (cmd_set_record_btrace, cmd_show_record_btrace)
7073 (cmd_show_replay_memory_access): New.
7074 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7075 (record_btrace_remove_breakpoint): Replace
7076 record_btrace_allow_memory_access with replay_memory_access.
7077 (_initialize_record_btrace): Add commands.
7078 * NEWS: Announce it.
7079
7080 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7081
7082 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7083
7084 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7085
7086 * MAINTAINERS (Write After Approval): Move self back from
7087 paper trail.
7088
7089 2014-05-22 Pedro Alves <palves@redhat.com>
7090
7091 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7092 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7093 (disable_randomization, enum exec_direction_kind)
7094 (execution_direction, stop_registers, start_remote)
7095 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7096 (wait_for_inferior, normal_stop, get_last_target_status)
7097 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7098 (insert_step_resume_breakpoint_at_sal)
7099 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7100 (set_step_info, print_stop_event, signal_stop_state)
7101 (signal_print_state, signal_pass_state, signal_stop_update)
7102 (signal_print_update, signal_pass_update)
7103 (update_signals_program_target, clear_exit_convenience_vars)
7104 (displaced_step_dump_bytes, update_observer_mode)
7105 (signal_catch_update, gdb_signal_from_command): Move
7106 declarations ...
7107 * infrun.h: ... to this new file.
7108 * amd64-tdep.c: Include infrun.h.
7109 * annotate.c: Include infrun.h.
7110 * arch-utils.c: Include infrun.h.
7111 * arm-linux-tdep.c: Include infrun.h.
7112 * arm-tdep.c: Include infrun.h.
7113 * break-catch-sig.c: Include infrun.h.
7114 * breakpoint.c: Include infrun.h.
7115 * common/agent.c: Include infrun.h instead of inferior.h.
7116 * corelow.c: Include infrun.h.
7117 * event-top.c: Include infrun.h.
7118 * go32-nat.c: Include infrun.h.
7119 * i386-tdep.c: Include infrun.h.
7120 * inf-loop.c: Include infrun.h.
7121 * infcall.c: Include infrun.h.
7122 * infcmd.c: Include infrun.h.
7123 * infrun.c: Include infrun.h.
7124 * linux-fork.c: Include infrun.h.
7125 * linux-nat.c: Include infrun.h.
7126 * linux-thread-db.c: Include infrun.h.
7127 * monitor.c: Include infrun.h.
7128 * nto-tdep.c: Include infrun.h.
7129 * procfs.c: Include infrun.h.
7130 * record-btrace.c: Include infrun.h.
7131 * record-full.c: Include infrun.h.
7132 * remote-m32r-sdi.c: Include infrun.h.
7133 * remote-mips.c: Include infrun.h.
7134 * remote-notif.c: Include infrun.h.
7135 * remote-sim.c: Include infrun.h.
7136 * remote.c: Include infrun.h.
7137 * reverse.c: Include infrun.h.
7138 * rs6000-tdep.c: Include infrun.h.
7139 * s390-linux-tdep.c: Include infrun.h.
7140 * solib-irix.c: Include infrun.h.
7141 * solib-osf.c: Include infrun.h.
7142 * solib-svr4.c: Include infrun.h.
7143 * target.c: Include infrun.h.
7144 * top.c: Include infrun.h.
7145 * windows-nat.c: Include infrun.h.
7146 * mi/mi-interp.c: Include infrun.h.
7147 * mi/mi-main.c: Include infrun.h.
7148 * python/py-threadevent.c: Include infrun.h.
7149
7150 2014-05-22 Pedro Alves <palves@redhat.com>
7151
7152 * infrun.c (handle_inferior_event): Store the exit code for
7153 --return-child-result here, instead of ...
7154 (print_exited_reason): ... here.
7155
7156 2014-05-21 Pedro Alves <palves@redhat.com>
7157
7158 PR gdb/13860
7159 * gdbthread.h (struct thread_control_state): New field
7160 `command_interp'.
7161 * infrun.c (follow_fork): Copy the new thread control field to the
7162 child fork thread.
7163 (clear_proceed_status_thread): Clear the new thread control field.
7164 (proceed): Set the new thread control field.
7165 * interps.h (command_interp): Declare.
7166 * interps.c (command_interpreter): New global.
7167 (command_interp): New function.
7168 (interp_exec): Set `command_interpreter' while here.
7169 * cli-out.c (cli_uiout_dtor): New function.
7170 (cli_ui_out_impl): Install it.
7171 * mi/mi-interp.c: Include cli-out.h.
7172 (mi_cmd_interpreter_exec): Add comment.
7173 (restore_current_uiout_cleanup): New function.
7174 (ui_out_free_cleanup): New function.
7175 (mi_on_normal_stop): If finishing an execution command started by
7176 a CLI command, or any kind of breakpoint-like event triggered,
7177 print the stop event to the output (CLI) stream.
7178 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7179
7180 2014-05-21 Pedro Alves <palves@redhat.com>
7181
7182 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7183 current source line having changed.
7184 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7185 * infrun.c (normal_stop): Adjust call to
7186 set_current_sal_from_frame.
7187 * source.c (clear_lines_listed_range): New function.
7188 (set_current_source_symtab_and_line, identify_source_line): Clear
7189 the lines listed range.
7190 (line_info): Handle the first "info line" after the current source
7191 line having changed.
7192 * stack.c (print_stack_frame): Remove center handling.
7193 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7194 center sal.line.
7195
7196 2014-05-21 Pedro Alves <palves@redhat.com>
7197
7198 * inf-child.c (inf_child_mourn_inferior): New function.
7199 * inf-child.h (inf_child_mourn_inferior): New declaration.
7200 * darwin-nat.c (darwin_mourn_inferior): Use
7201 inf_child_mourn_inferior.
7202 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7203 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7204 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7205 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7206 * windows-nat.c (windows_mourn_inferior): Likewise.
7207
7208 2014-05-21 Doug Evans <xdje42@gmail.com>
7209
7210 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7211
7212 2014-05-21 Doug Evans <xdje42@gmail.com>
7213
7214 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7215 (gdbscm_out_of_range_error): Ditto.
7216 (gdbscm_memory_error): Ditto.
7217 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7218 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7219 (gdbscm_out_of_range_error): Update.
7220 (gdbscm_memory_error): Update.
7221 (gdbscm_scm_to_target_string_unsafe): Delete.
7222
7223 2014-05-21 Pedro Alves <palves@redhat.com>
7224
7225 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7226 globals.
7227 (inf_child_open_target): New function.
7228 (inf_child_open): Use inf_child_open_target to push the target
7229 instead of erroring out.
7230 (inf_child_disconnect, inf_child_close)
7231 (inf_child_maybe_unpush_target): New functions.
7232 (inf_child_target): Install inf_child_disconnect and
7233 inf_child_close. Store a pointer to the returned object.
7234 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7235 declarations.
7236 * target.c (auto_connect_native_target): New global.
7237 (show_default_run_target): New function.
7238 (find_default_run_target): Return NULL if automatically connecting
7239 to the native target is disabled.
7240 (_initialize_target): Install set/show auto-connect-native-target.
7241 * NEWS: Mention "set auto-connect-native-target", and "target
7242 native".
7243 * linux-nat.c (super_close): New global.
7244 (linux_nat_close): Call super_close.
7245 (linux_nat_add_target): Store a pointer to the base class's
7246 to_close method.
7247 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7248 inf_child_maybe_unpush.
7249 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7250 already pushed.
7251 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7252 the inferior. Use inf_child_maybe_unpush_target.
7253 (inf_ttrace_attach): Don't push the target if it is already
7254 pushed.
7255 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7256 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7257 after mourning the inferior. Use inf_child_maybe_unpush_target.
7258 (darwin_attach_pid): Don't push the target if it is already
7259 pushed.
7260 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7261 mourning the inferior. Use inf_child_maybe_unpush_target.
7262 (gnu_detach): Use inf_child_maybe_unpush_target.
7263 * go32-nat.c (go32_create_inferior): Don't push the target if it
7264 is already pushed.
7265 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7266 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7267 (procfs_open): Rename to ...
7268 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7269 comments. Can target_preopen before changing node. Call
7270 inf_child_open_target to push the target explicitly.
7271 (procfs_attach): Don't push the target if it is already pushed.
7272 (procfs_detach): Use inf_child_maybe_unpush_target.
7273 (procfs_create_inferior): Don't push the target if it is already
7274 pushed.
7275 (nto_native_ops): New global.
7276 (procfs_open): Reimplement.
7277 (procfs_native_open): New function.
7278 (init_procfs_targets): Install procfs_native_open as to_open of
7279 "target native". Store a pointer to the "native" target in
7280 nto_native_ops.
7281 * procfs.c (procfs_attach): Don't push the target if it is already
7282 pushed.
7283 (procfs_detach): Use inf_child_maybe_unpush_target.
7284 (procfs_mourn_inferior): Only unpush the target after mourning the
7285 inferior. Use inf_child_maybe_unpush_target.
7286 (procfs_init_inferior): Don't push the target if it is already
7287 pushed.
7288 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7289 if it is already pushed.
7290
7291 2014-05-21 Pedro Alves <palves@redhat.com>
7292
7293 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7294 and "procfs" targets are now called "native" instead.
7295
7296 2014-05-21 Pedro Alves <palves@redhat.com>
7297
7298 * go32-nat.c (go32_open): Delete.
7299 (go32_target): Don't override the to_open method.
7300
7301 2014-05-21 Pedro Alves <palves@redhat.com>
7302
7303 * nto-procfs.c (procfs_can_run): New function.
7304 (nto_procfs_ops): New global.
7305 (init_procfs_targets): New, based on procfs_target. Install
7306 "target native" in addition to "target procfs".
7307 (_initialize_procfs): Call init_procfs_targets instead of adding
7308 the target here.
7309
7310 2014-05-21 Pedro Alves <palves@redhat.com>
7311
7312 * windows-nat.c (windows_target): Don't override to_shortname,
7313 to_longname or to_doc.
7314
7315 2014-05-21 Pedro Alves <palves@redhat.com>
7316
7317 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7318 to_doc.
7319
7320 2014-05-21 Pedro Alves <palves@redhat.com>
7321
7322 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7323 to_shortname, to_longname or to_doc.
7324
7325 2014-05-21 Pedro Alves <palves@redhat.com>
7326
7327 * go32-nat.c (go32_target): Don't override to_shortname,
7328 to_longname or to_doc.
7329
7330 2014-05-21 Pedro Alves <palves@redhat.com>
7331
7332 * inf-child.c (inf_child_open): Remove mention of "child".
7333 (inf_child_target): Rename target to "native" instead of "child".
7334
7335 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7336
7337 * Makefile.in (SFILES): Delete "regset.c".
7338 (COMMON_OBS): Delete "regset.o".
7339 * regset.c: Remove.
7340 * regset.h (regset_alloc): Delete prototype.
7341
7342 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7343
7344 * sparc-linux-tdep.c (sparc32_linux_gregset)
7345 (sparc32_linux_fpregset): New static regset structures.
7346 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7347 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7348 'fpregset' fields.
7349 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7350 (sparc64_linux_fpregset): New static regset structures.
7351 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7352 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7353 New static regset structures.
7354 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7355 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7356 New static regset structures.
7357 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7358 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7359 New static regset structures.
7360 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7361 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7362 New static regset structures.
7363 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7364
7365 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7366
7367 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7368 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7369 register maps ("regmaps") from "*regset" to "*regmap". Do this
7370 for all regmap types and variables.
7371 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7372 (sparc32_linux_supply_core_gregset)
7373 (sparc32_linux_collect_core_gregset)
7374 (sparc32_linux_supply_core_fpregset)
7375 (sparc32_linux_collect_core_fpregset): Likewise.
7376 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7377 (sparc_gregmap, sparc_fpregmap): ... these.
7378 (sparc_supply_gregset, sparc_collect_gregset)
7379 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7380 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7381 (_initialize_sparc_nat): Rename regmaps.
7382 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7383 (sparc_gregmap, sparc_fpregmap): ... these.
7384 (sparc_supply_gregset, sparc_collect_gregset)
7385 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7386 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7387 Rename macros to...
7388 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7389 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7390 Likewise.
7391 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7392 Rename to...
7393 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7394 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7395 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7396 regmaps.
7397 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7398 (sparc32_bsd_fpregset): Rename to...
7399 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7400 (sparc32_bsd_fpregmap): ... these.
7401 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7402 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7403 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7404 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7405 (struct sparc_gregmap, struct sparc_fpregmap)
7406 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7407 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7408 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7409 (sparc32_supply_regset, sparc32_collect_gregset)
7410 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7411 prototypes.
7412 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7413 (sparc64_linux_ptrace_gregmap): ... this.
7414 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7415 (_initialize_sparc64_linux_nat): Rename regmaps.
7416 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7417 (sparc64_linux_core_gregmap): ... this.
7418 (sparc64_linux_supply_core_gregset)
7419 (sparc64_linux_collect_core_gregset)
7420 (sparc64_linux_supply_core_fpregset)
7421 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7422 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7423 (sparc64_sol2_fpregset): Rename to...
7424 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7425 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7426 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7427 regmaps.
7428 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7429 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7430 (sparc64_bsd_fpregset): Rename to...
7431 (struct sparc_gregmap, sparc64_sol2_gregmap)
7432 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7433 (sparc64_bsd_fpregmap): ... these.
7434 (sparc64_supply_gregset, sparc64_collect_gregset)
7435 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7436 prototypes.
7437 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7438 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7439 (sparc64fbsd_gregmap): ... this.
7440 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7441 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7442 Rename regmaps.
7443 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7444 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7445 (sparc64nbsd_collect_fpregset): Likewise.
7446 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7447 (sparc64nbsd_gregmap): ... this.
7448 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7449 regmaps.
7450 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7451 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7452 (sparc64obsd_gregmap): ... this.
7453 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7454 regmaps.
7455 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7456 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7457 (sparc32nbsd_gregmap): ... this.
7458 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7459 regmaps.
7460
7461 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7462
7463 * score-tdep.c (score7_linux_gregset): New static regset
7464 structure.
7465 (score7_linux_regset_from_core_section): Remove dynamic regset
7466 allocation.
7467 (score_gdbarch_init): Drop allocation of tdep structure.
7468 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7469
7470 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7471
7472 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7473 regset structures.
7474 (am33_regset_from_core_section): Remove dynamic regset
7475 allocations.
7476
7477 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7478
7479 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7480 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7481 structures.
7482 (mips_linux_regset_from_core_section): Remove dynamic regset
7483 allocations.
7484 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7485 'gregset64', 'fpregset', and 'fpregset64'.
7486 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7487 deleted tdep fields.
7488
7489 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7490
7491 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7492 regset structures.
7493 (amd64_regset_from_core_section): Remove dynamic regset
7494 allocations.
7495 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7496 structure.
7497 (amd64obsd_regset_from_core_section): Remove dynamic regset
7498 allocation.
7499 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7500 Likewise.
7501 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7502 x86-common regset supply function.
7503 * i386-tdep.c (i386_collect_gregset): Make static.
7504 (i386_gregset): New global regset structure.
7505 (i386_fpregset, i386_xstateregset): New static regset structures.
7506 (i386_regset_from_core_section): Remove dynamic regset
7507 allocations.
7508 (i386_gdbarch_init): Remove initialization of tdep fields
7509 'gregset', 'fpregset', and 'xstateregset'.
7510 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7511 'fpregset', and 'xstateregset'.
7512 (i386_collect_gregset): Remove prototype.
7513 (i386_gregset): New declaration.
7514 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7515 structure.
7516 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7517 allocation.
7518
7519 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7520
7521 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7522 (arm_linux_vfpregset): New static regset structures.
7523 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7524 regset structures.
7525 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7526 and 'vfpregset' fields.
7527
7528 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7529
7530 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7531 (aarch64_linux_fpregset): New static regset structures.
7532 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7533 of regset structures.
7534 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7535 'fpregset' fields.
7536
7537 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7538
7539 * regset.h (struct regset): Remove gdbarch field.
7540 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7541 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7542 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7543 Likewise.
7544 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7545 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7546 (ppc32_linux_vsxregset): Likewise.
7547 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7548 via the regcache instead of the regset.
7549 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7550 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7551 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7552 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7553 Likewise.
7554
7555 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7556
7557 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7558 Constify structures.
7559 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7560 (alphanbsd_aout_gregset): Likewise.
7561 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7562 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7563 Likewise.
7564 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7565 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7566 Likewise.
7567 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7568 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7569 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7570 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7571 * m88k-tdep.c (m88k_gregset): Likewise.
7572 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7573 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7574 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7575 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7576 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7577 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7578 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7579 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7580 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7581 Likewise.
7582 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7583 * sh-tdep.h (sh_corefile_gregset): Likewise.
7584 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7585 * vax-tdep.c (vax_gregset): Likewise.
7586
7587 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7588
7589 Fix TLS access for -static -pthread.
7590 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7591 (try_thread_db_load_1): Initialize it.
7592 (thread_db_get_thread_local_address): Call it if LM is zero.
7593 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7594 * target.h (struct target_ops) (to_get_thread_local_address): Add
7595 load_module_addr comment.
7596
7597 2014-05-21 Pedro Alves <palves@redhat.com>
7598
7599 * dcache.c (dcache_read_memory_partial): If reading the cache line
7600 fails, fallback to reading just the memory the caller wanted.
7601
7602 2014-05-20 Doug Evans <dje@google.com>
7603
7604 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7605 instead of get_current_arch.
7606
7607 2014-05-20 Pedro Alves <palves@redhat.com>
7608
7609 * NEWS: Mention that compare-sections now works with all targets.
7610
7611 * remote.c (PACKET_qCRC): New enum value.
7612 (remote_verify_memory): Don't send qCRC if the target has no
7613 execution. Use packet_support/packet_ok. If the target doesn't
7614 support the qCRC packet, fallback to a deep memory copy.
7615 (compare_sections_command): Say "target image" instead of "remote
7616 executable".
7617 (_initialize_remote): Add PACKET_qCRC to the list of config
7618 packets that have no associated command. Extend comment.
7619 * target.c (simple_verify_memory, default_verify_memory): New
7620 function.
7621 * target.h (struct target_ops) <to_verify_memory>: Default to
7622 default_verify_memory.
7623 (simple_verify_memory): New declaration.
7624 * target-delegates.c: Regenerate.
7625
7626 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7627
7628 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7629
7630 2014-05-20 Hui Zhu <hui@codesourcery.com>
7631 Yao Qi <yao@codesourcery.com>
7632
7633 PR backtrace/16558
7634 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7635 and change address of sp and pc.
7636
7637 2014-05-19 Tom Tromey <tromey@redhat.com>
7638
7639 * gdbtypes.c (rank_function): Use XNEWVEC.
7640 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7641
7642 2014-05-19 Doug Evans <dje@google.com>
7643
7644 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7645 build_type_unit_groups and moved closer to only caller. Remove
7646 arguments. All references updated. Remove outdated .gdb_index
7647 comment.
7648 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7649 build_type_psymtabs_1.
7650
7651 2014-05-19 Doug Evans <dje@google.com>
7652
7653 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7654 n_type_unit_groups, all_type_unit_groups. All uses removed.
7655 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7656 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7657 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7658 (add_type_unit_group_to_table): Delete.
7659
7660 2014-05-19 Doug Evans <dje@google.com>
7661
7662 * eval.c (evaluate_subexp_standard): Add some comments.
7663
7664 2014-05-17 Doug Evans <xdje42@gmail.com>
7665
7666 * progspace.c (remove_program_space): Delete, unused.
7667 * progspace.h (remove_program_space): Ditto.
7668
7669 2014-05-17 Doug Evans <xdje42@gmail.com>
7670
7671 * inferior.c (prune_inferiors): Fix comment.
7672 (remove_inferior_command): Call prune_program_spaces.
7673
7674 2014-05-16 Doug Evans <dje@google.com>
7675
7676 New command line option -D.
7677 * NEWS: Mention it.
7678 * main.c (set_gdb_data_directory): New function.
7679 (captured_main): Recognize -D. Flag error for --data-directory "".
7680 Call set_gdb_data_directory.
7681 (print_gdb_help): Print --data-directory, -D.
7682 * main.h (set_gdb_data_directory): Declare.
7683 * top.c (staged_gdb_datadir): New static global.
7684 (set_gdb_datadir): Call set_gdb_data_directory
7685 (show_gdb_datadir): New function.
7686 (init_main): Update init of data-directory parameter.
7687
7688 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7689
7690 Import the "dirfd" gnulib module.
7691 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7692 * gnulib/aclocal.m4: Update.
7693 * gnulib/config.in: Update.
7694 * gnulib/configure: Update.
7695 * gnulib/import/Makefile.am: Update.
7696 * gnulib/import/Makefile.in: Update.
7697 * gnulib/import/dirfd.c: New.
7698 * gnulib/import/m4/dirfd.m4: New.
7699 * gnulib/import/m4/gnulib-cache.m4: Update.
7700 * gnulib/import/m4/gnulib-comp.m4: Update.
7701
7702 2014-05-16 Pierre Muller <muller@sourceware.org>
7703 Yao Qi <yao@codesourcery.com>
7704
7705 * valprint.c (print_wchar): Move the code on checking whether
7706 W is a printable wide char to the default branch of switch
7707 statement below. Call wchar_printable instead of gdb_iswprint.
7708
7709 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7710
7711 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7712 ldr.w and ldrd instructions.
7713
7714 2014-05-15 Doug Evans <dje@google.com>
7715
7716 * dwarf2read.c (read_structure_type): Delete outdated comments.
7717
7718 2014-05-14 Tom Tromey <tromey@redhat.com>
7719
7720 * macrocmd.c (print_macro_definition): Reindent.
7721
7722 2014-05-13 Doug Evans <xdje42@gmail.com>
7723
7724 * python/py-cmd.c (cmdpy_completer): Add comment.
7725 (completers): Make const.
7726
7727 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 * infrun.c (resume): Remove should_resume (unused). Move up
7730 declaration of resume_ptid.
7731
7732 2014-05-13 Tom Tromey <tromey@redhat.com>
7733
7734 * language.h (unop_type_check): Remove.
7735 (binop_type_check): Don't declare.
7736
7737 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7738
7739 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7740 call to regcache_raw_collect.
7741
7742 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7743
7744 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7745 mi_console->quote as the quoting character.
7746
7747 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7748
7749 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7750
7751 2014-04-29 Tom Tromey <tromey@redhat.com>
7752
7753 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7754 "show debug varobj".
7755
7756 2014-05-07 Kyle McMartin <kyle@redhat.com>
7757
7758 Pushed by Joel Brobecker <brobecker@adacore.com>.
7759 * aarch64-tdep.c (aarch64_software_single_step): New function.
7760 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7761 with aarch64_software_single_step.
7762
7763 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7764
7765 GDB 7.7.1 released.
7766
7767 2014-05-05 Keith Seitz <keiths@redhat.com>
7768
7769 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7770 variable or history value is successfully parsed.
7771
7772 2014-05-05 Yao Qi <yao@codesourcery.com>
7773 Pedro Alves <palves@redhat.com>
7774
7775 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7776 address of blocks that intersects the requested range. Trim
7777 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7778 sections.
7779 * ctf.c (ctf_xfer_partial): Likewise.
7780
7781 2014-05-05 Yao Qi <yao@codesourcery.com>
7782
7783 * printcmd.c (display_command): Remove the check to
7784 target_has_execution.
7785
7786 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7787
7788 * ppcobsd-nat.c: Include "obsd-nat.h".
7789 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7790 add_target.
7791 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7792
7793 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7794
7795 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7796 and 16-bit signed and unsigned arguments. Update comment.
7797 (stap_parse_probe_arguments): Extend code to handle such
7798 arguments. Use warning instead of complaint to notify about
7799 unrecognized bitness.
7800
7801 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7802
7803 PR breakpoints/16889
7804 * stap-probe.c (stap_parse_probe_arguments): Simplify
7805 check for non-prefixed probes (i.e., probes whose
7806 arguments do not start with "N@"). Always set the
7807 argument type to a sane value.
7808
7809 2014-05-01 David Taylor <dtaylor@emc.com>
7810
7811 * remote.c (compare_sections_command): Add -r option to compare
7812 all loadable read-only sections.
7813
7814 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7815
7816 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7817 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7818 Update all callers.
7819 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7820 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7821 Remove unused CORE_ADDR argument. Update all callers.
7822
7823 2014-04-29 Pedro Alves <palves@redhat.com>
7824
7825 * remote.c (struct packet_config) <detect>: Extend comment.
7826 (add_packet_config_cmd): Don't set the config's detect or support
7827 fields here.
7828 (init_all_packet_configs): Also initialize the config's 'detect'
7829 field.
7830 (reset_all_packet_configs_support): New function.
7831 (remote_open_1): Call reset_all_packet_configs_support instead of
7832 init_all_packet_configs.
7833 (_initialize_remote): Initialize all packet configs. Assert that
7834 all packets have an associated command, except a few known
7835 outliers.
7836
7837 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7838
7839 * dwarf2read.c (read_subrange_type): Handle dynamic
7840 DW_AT_lower_bound attributes.
7841
7842 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7843
7844 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7845 dynamic bounds before computing its upper bound.
7846 (ada_discrete_type_low_bound): Same as above with the lower bound.
7847
7848 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7849
7850 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7851 range types. Adjust the array handling implementation to
7852 take advantage of this change.
7853 (resolve_dynamic_range): New function, mostly extracted from
7854 resolve_dynamic_bounds.
7855 (resolve_dynamic_array): New function, mostly extracted from
7856 resolve_dynamic_bounds.
7857 (resolve_dynamic_bounds): Delete.
7858 (resolve_dynamic_type): Reimplement. Add handling of
7859 TYPE_CODE_RANGE types.
7860
7861 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7862
7863 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7864 handling of parallel ___XA types.
7865
7866 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7867
7868 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7869 unnecessary second call to static_unwrap_type.
7870
7871 2014-04-27 Hui Zhu <hui@codesourcery.com>
7872
7873 * stack.c (print_frame_info): Call do_gdb_disassembly with
7874 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7875
7876 2014-04-26 Doug Evans <xdje42@gmail.com>
7877
7878 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7879
7880 2014-04-25 Pedro Alves <palves@redhat.com>
7881
7882 PR server/16255
7883 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7884 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7885 and newline from built string.
7886 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7887 (linux_ptrace_attach_fail_reason): ... this.
7888 * linux-nat.c (linux_nat_attach): Adjust to use
7889 linux_ptrace_attach_fail_reason.
7890
7891 2014-04-25 Pedro Alves <palves@redhat.com>
7892
7893 * remote.c (struct remote_state): Remove multi_process_aware,
7894 non_stop_aware, cond_tracepoints, cond_breakpoints,
7895 breakpoint_commands, fast_tracepoints, static_tracepoints,
7896 install_in_trace, disconnected_tracing,
7897 enable_disable_tracepoints, string_tracing, and
7898 augmented_libraries_svr4_read fields.
7899 (remote_multi_process_p): Move further below in the file.
7900 (struct packet_config): Add comments.
7901 (update_packet_config): Delete function.
7902 (show_packet_config_cmd): Use packet_config_support.
7903 (add_packet_config_cmd): Use NULL as set callback.
7904 (packet_ok): "set remote foo-packet"-style commands no longer
7905 change config->supported -- adjust.
7906 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7907 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7908 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7909 (PACKET_QNonStop, PACKET_multiprocess_feature)
7910 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7911 (PACKET_DisconnectedTracing_feature)
7912 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7913 (set_remote_protocol_packet_cmd): Delete function.
7914 (packet_config_support, packet_support): New functions.
7915 (set_remote_protocol_Z_packet_cmd): Don't call
7916 update_packet_config.
7917 (remote_query_attached, remote_pass_signals)
7918 (remote_program_signals, remote_threads_info)
7919 (remote_threads_extra_info, remote_start_remote): Use
7920 packet_support.
7921 (remote_start_remote): Use packet_config_support and
7922 packet_support.
7923 (init_all_packet_configs): Set all packets to unknown support,
7924 instead of calling update_packet_config.
7925 (remote_check_symbols): Use packet_support.
7926 (remote_supported_packet): Unconditionally set the packet config's
7927 support status.
7928 (remote_multi_process_feature, remote_non_stop_feature)
7929 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7930 (remote_breakpoint_commands_feature)
7931 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7932 (remote_install_in_trace_feature)
7933 (remote_disconnected_tracing_feature)
7934 (remote_enable_disable_tracepoint_feature)
7935 (remote_string_tracing_feature)
7936 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7937 (remote_protocol_features): Adjust to use remote_supported_packet
7938 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7939 "ConditionalTracepoints", "ConditionalBreakpoints",
7940 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7941 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7942 "EnableDisableTracepoints", and "tracenz".
7943 (remote_query_supported): Use packet_support.
7944 (remote_open_1): Adjust.
7945 (extended_remote_attach_1): Use packet_support. Switch on the
7946 result of packet_ok instead of checking whether the packet ended
7947 up disabled.
7948 (remote_vcont_resume): Use packet_support.
7949 (remote_resume, remote_stop_ns, fetch_register_using_p)
7950 (remote_prepare_to_store, store_register_using_P)
7951 (check_binary_download, remote_write_bytes): Use packet_support.
7952 (remote_vkill): Use packet_support. Switch on the result of
7953 packet_ok instead of checking whether the packet ended up
7954 disabled.
7955 (extended_remote_supports_disable_randomization): Use
7956 packet_support.
7957 (extended_remote_run): Switch on the result of packet_ok instead
7958 of checking whether the packet ended up disabled.
7959 (remote_insert_breakpoint, remote_remove_breakpoint)
7960 (remote_insert_watchpoint, remote_remove_watchpoint)
7961 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7962 packet_support.
7963 (remote_search_memory): Use packet_config_support.
7964 (remote_get_thread_local_address, remote_get_tib_address)
7965 (remote_hostio_send_command, remote_can_execute_reverse): Use
7966 packet_support.
7967 (remote_supports_cond_tracepoints)
7968 (remote_supports_cond_breakpoints)
7969 (remote_supports_fast_tracepoints)
7970 (remote_supports_static_tracepoints)
7971 (remote_supports_install_in_trace)
7972 (remote_supports_enable_disable_tracepoint)
7973 (remote_supports_string_tracing)
7974 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7975 the packet config says the feature is enabled or disabled.
7976 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7977 (remote_get_trace_status): Use packet_support.
7978 (remote_set_disconnected_tracing): Adjust to check whether the
7979 feature is enabled with packet_support.
7980 (remote_set_trace_buffer_size, remote_use_agent)
7981 (remote_can_use_agent, remote_supports_btrace): Use
7982 packet_support.
7983 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7984 Use packet_config_support.
7985 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7986 the packet config says the feature is enabled or disabled.
7987 (set_range_stepping): Use packet_support.
7988
7989 2014-04-25 Tom Tromey <tromey@redhat.com>
7990
7991 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7992 argument.
7993
7994 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7995
7996 * NEWS: Mention support for C99 variable length arrays.
7997
7998 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7999
8000 * ada-lang.c (standard_exc): Expand introductory comment.
8001
8002 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8003 Walfred Tedeschi <walfred.tedeschi@intel.com>
8004
8005 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8006 AVX512 registers.
8007 (amd64_linux_read_description): Add code to handle AVX512 xstate
8008 mask and return respective tdesc.
8009 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8010 and features/i386/x32-avx512-linux.c.
8011 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8012 (amd64_linux_core_read_description): Add code to handle AVX512
8013 xstate mask and return respective tdesc.
8014 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8015 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8016 calculation.
8017 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8018 (tdesc_amd64_avx512_linux): New prototype.
8019 (tdesc_x32_avx512_linux): Likewise.
8020 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8021 features/i386/x32-avx512.c.
8022 (amd64_ymm_avx512_names): New register names for pseudo
8023 registers YMM16-31.
8024 (amd64_ymmh_avx512_names): New register names for raw registers
8025 YMMH16-31.
8026 (amd64_k_names): New register names for K registers.
8027 (amd64_zmmh_names): New register names for ZMM raw registers.
8028 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8029 (amd64_xmm_avx512_names): New register names for XMM16-31
8030 registers.
8031 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8032 registers.
8033 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8034 if feature is present.
8035 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8036 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8037 (AMD64_NUM_REGS): Adjust to new number of registers.
8038 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8039 registers supplied via XSTATE by AVX512 registers.
8040 (i386_linux_read_description): Add case for AVX512.
8041 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8042 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8043 (i386_linux_core_read_description): Add case for AVX512.
8044 (i386_linux_init_abi): Install supported register note section
8045 for AVX512.
8046 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8047 AVX512.
8048 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8049 registers to be number of zmm7h + 1.
8050 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8051 * i386-tdep.c: Include features/i386/i386-avx512.c.
8052 (i386_zmm_names): Add ZMM pseudo register names array.
8053 (i386_zmmh_names): Add ZMM raw register names array.
8054 (i386_k_names): Add K raw register names array.
8055 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8056 registers. AVX512 has 16 more ZMM registers than there are YMM
8057 registers.
8058 (i386_zmmh_regnum_p): Add function to look up register number of
8059 ZMM raw registers.
8060 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8061 (i386_k_regnum_p): Likewise for K raw registers.
8062 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8063 registers added by AVX512.
8064 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8065 registers added by AVX512.
8066 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8067 added by AVX512.
8068 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8069 (i386_pseudo_register_name): Add ZMM pseudo registers.
8070 (i386_zmm_type): Construct and return vector registers type for ZMM
8071 registers.
8072 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8073 ZMM0-31 pseudo registers and K registers.
8074 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8075 and YMM16-31 registers from register cache.
8076 (i386_pseudo_register_write): Add code to write K, ZMM and
8077 YMM16-31 registers.
8078 (i386_register_reggroup_p): Add code to include/exclude AVX512
8079 registers in/from respective register groups.
8080 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8081 registers if feature is present in xcr0.
8082 (i386_gdbarch_init): Add code to initialize AVX512 feature
8083 variables in tdep structure, wire in pseudo registers and call
8084 initialize_tdesc_i386_avx512.
8085 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8086 variables.
8087 (i386_regnum): Add AVX512 registers.
8088 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8089 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8090 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8091 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8092 512 bits wide.
8093 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8094 (i386_ymm_avx512_regnum_p): Likewise.
8095 (i386_k_regnum_p): Likewise.
8096 (i386_zmm_regnum_p): Likewise.
8097 (i386_zmmh_regnum_p): Likewise.
8098 * i387-tdep.c : Update year in copyright notice.
8099 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8100 XSAVE buffer.
8101 (XSAVE_YMM_AVX512_ADDR): New macro.
8102 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8103 XSAVE buffer.
8104 (XSAVE_XMM_AVX512_ADDR): New macro.
8105 (xsave_avx512_k_offset): New table for K register offsets in
8106 XSAVE buffer.
8107 (XSAVE_AVX512_K_ADDR): New macro.
8108 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8109 in XSAVE buffer.
8110 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8111 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8112 buffer.
8113 (i387_collect_xsave): Add code to collect AVX512 registers from
8114 XSAVE buffer.
8115 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8116 of XMM16-31 registers.
8117 (I387_NUM_K_REGS): New define for number of K registers.
8118 (I387_K0_REGNUM): New define for K0 register number.
8119 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8120 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8121 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8122 registers.
8123 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8124 (I387_XMM16_REGNUM): New define for XMM16 register number.
8125 (I387_YMM0_REGNUM): New define for YMM0 register number.
8126 (I387_KEND_REGNUM): New define for last K register number.
8127 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8128 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8129 number.
8130 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8131 number.
8132 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8133 size.
8134 * features/Makefile: Add AVX512 related files.
8135 * features/i386/32bit-avx512.xml: New file.
8136 * features/i386/64bit-avx512.xml: Likewise.
8137 * features/i386/amd64-avx512-linux.c: Likewise.
8138 * features/i386/amd64-avx512-linux.xml: Likewise.
8139 * features/i386/amd64-avx512.c: Likewise.
8140 * features/i386/amd64-avx512.xml: Likewise.
8141 * features/i386/i386-avx512-linux.c: Likewise.
8142 * features/i386/i386-avx512-linux.xml: Likewise.
8143 * features/i386/i386-avx512.c: Likewise.
8144 * features/i386/i386-avx512.xml: Likewise.
8145 * features/i386/x32-avx512-linux.c: Likewise.
8146 * features/i386/x32-avx512-linux.xml: Likewise.
8147 * features/i386/x32-avx512.c: Likewise.
8148 * features/i386/x32-avx512.xml: Likewise.
8149 * regformats/i386/amd64-avx512-linux.dat: New file.
8150 * regformats/i386/amd64-avx512.dat: Likewise.
8151 * regformats/i386/i386-avx512-linux.dat: Likewise.
8152 * regformats/i386/i386-avx512.dat: Likewise.
8153 * regformats/i386/x32-avx512-linux.dat: Likewise.
8154 * regformats/i386/x32-avx512.dat: Likewise.
8155 * NEWS: Add note about new support for AVX512.
8156
8157
8158 2014-04-23 Pedro Alves <palves@redhat.com>
8159
8160 * breakpoint.c (insert_bp_location): Tolerate errors if the
8161 breakpoint is set in a user-loaded objfile.
8162 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8163 location is marked shlib_disabled. If the breakpoint is set in a
8164 user-loaded objfile is a GDB-side memory breakpoint, validate it
8165 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8166 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8167 flag.
8168 * mem-break.c (memory_validate_breakpoint): New function.
8169 * objfiles.c (userloaded_objfile_contains_address_p): New
8170 function.
8171 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8172 * target.h (memory_validate_breakpoint): New declaration.
8173
8174 2014-04-23 Pedro Alves <palves@redhat.com>
8175
8176 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8177 the breakpoint is set in a shared library, only suppress
8178 errors for software breakpoints, not hardware breakpoints.
8179
8180 2014-04-22 Pedro Alves <palves@redhat.com>
8181
8182 * infrun.c (schedlock_applies): New function, factored out from
8183 find_thread_needs_step_over.
8184 (find_thread_needs_step_over): Use it.
8185 (switch_back_to_stepped_thread): Always clear trap_expected if the
8186 step over is finished. Return early if scheduler locking applies.
8187 Look for the stepping thread and a potential step-over thread with
8188 a single loop.
8189 (currently_stepping_or_nexting_callback): Delete.
8190
8191 2014-04-22 Nick Clifton <nickc@redhat.com>
8192
8193 * NEWS: Mention that ARM sim now supports tracing.
8194
8195 2014-04-22 Yao Qi <yao@codesourcery.com>
8196
8197 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8198 to ...
8199 * tracefile.c (tracefile_fetch_registers): ... it. New
8200 function.
8201 * tracefile.h (tracefile_fetch_registers): Declare.
8202 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8203 tracefile_fetch_registers.
8204
8205 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8206
8207 PR gdb/14018
8208 * windows-nat.c (thread_rec): Don't display a warning when
8209 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8210 fails for any reason, set th->suspended to -1, so that we don't
8211 try to resume such a thread. Also, don't return NULL in these
8212 cases, to avoid completely ruin the session due to "PC register is
8213 not available" error.
8214 (do_windows_fetch_inferior_registers): Check errors in
8215 GetThreadContext call.
8216 (windows_continue): Accept an additional argument KILLED; if not
8217 zero, ignore errors in the SetThreadContext call, since the
8218 inferior was killed and is shutting down.
8219 (windows_resume, get_windows_debug_event)
8220 (windows_create_inferior, windows_mourn_inferior)
8221 (windows_kill_inferior): All callers of windows_continue changed
8222 to adjust to its new calling sequence.
8223
8224 2014-04-19 Yao Qi <yao@codesourcery.com>
8225
8226 * ctf.c (ctf_open): Call post_create_inferior.
8227
8228 2014-04-19 Yao Qi <yao@codesourcery.com>
8229
8230 * ctf.c (handle_id): New static variable.
8231 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8232 value. Get the declaration of event "register" and get length
8233 of field "contents".
8234
8235 2014-04-19 Yao Qi <yao@codesourcery.com>
8236
8237 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8238
8239 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8240
8241 * valops.c (oload_method_static): Remove unnecessary argument
8242 METHOD. Update all callers.
8243
8244 2014-04-18 Pedro alves <palves@redhat.com>
8245 Tom Tromey <tromey@redhat.com>
8246
8247 PR backtrace/15558
8248 * frame.c (get_prev_frame_1): Rename to ...
8249 (get_prev_frame_always): ... this, and make extern. Adjust.
8250 (skip_artificial_frames): Use get_prev_frame_always.
8251 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8252 (get_frame_unwind_stop_reason): Adjust to rename.
8253 * frame.h (get_prev_frame_always): Declare.
8254 * inline-frame.c: Include frame.h.
8255 (inline_frame_this_id): Use get_prev_frame_always.
8256
8257 2014-04-18 Tristan Gingold <gingold@adacore.com>
8258
8259 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8260 code by using bfd_mach_o_get_base_address.
8261
8262 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8263
8264 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8265 (spu_ax_pseudo_register_collect): New function.
8266 (spu_ax_pseudo_register_push_stack): Likewise.
8267 (spu_dwarf_reg_to_regnum): Likewise.
8268 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8269
8270 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8271
8272 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8273 Replace FRAME argument with FRAME_ID.
8274 * gdbarch.c, gdbarch.h: Regenerate.
8275 * findvar.c (default_value_from_register): Add GDBARCH argument;
8276 replace FRAME by FRAME_ID. No longer call get_frame_id.
8277 (value_from_register): Update call to gdbarch_value_from_register.
8278 * value.h (default_value_from_register): Update prototype.
8279 * s390-linux-tdep.c (s390_value_from_register): Update interface
8280 and call to default_value_from_register.
8281 * spu-tdep.c (spu_value_from_register): Likewise.
8282
8283 * findvar.c (address_from_register): Remove TYPE argument.
8284 Do not call value_from_register; use gdbarch_value_from_register
8285 with null_frame_id instead.
8286 * value.h (address_from_register): Update prototype.
8287 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8288 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8289 address_from_register interface change.
8290
8291 2014-04-17 Yao Qi <yao@codesourcery.com>
8292
8293 * gdbtypes.h: Update comments to link to types and macros'
8294 definitions.
8295
8296 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8297
8298 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8299
8300 2014-04-16 Keith Seitz <keiths@redhat.com>
8301
8302 PR gdb/15827
8303 * dwarf2read.c (skip_one_die): Check that all relative-offset
8304 sibling DIEs fall within range of the current reader's buffer.
8305 (read_partial_die): Likewise.
8306
8307 2014-04-16 Keith Seitz <keiths@redhat.com>
8308
8309 PR c++/16597
8310 * cp-namespace.c (lookup_symbol_file): If the type name of
8311 `this' is NULL, return immediately.
8312
8313 2014-04-14 Keith Seitz <keiths@redhat.com>
8314
8315 PR c++/16253
8316 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8317 from symbol_matches_domain in symtab.c. All local callers
8318 of symbol_matches_domain updated.
8319 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8320 search STRUCT_DOMAIN.
8321 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8322 independently. standard_lookup will do that automatically.
8323 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8324 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8325 (cp_lookup_symbol_in_namespace): Likewise.
8326 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8327 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8328 may return a STRUCT_DOMAIN match.
8329 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8330 * cp-support.c: Include language.h.
8331 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8332 VAR_DOMAIN.
8333 * psymtab.c (match_partial_symbol): Compare the requested
8334 domain with the symbol's domain directly.
8335 (lookup_partial_symbol): Likewise.
8336 * symtab.c (lookup_symbol_in_language): Explain when/why
8337 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8338 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8339 appropriate languages.
8340 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8341 and moved to ada-lang.c
8342 (lookup_block_symbol): Explain that this function only returns
8343 symbol matching the requested DOMAIN.
8344 Compare the requested domain with the symbol's domain directly.
8345 (iterate_over_symbols): Compare the requested domain with the
8346 symbol's domain directly.
8347 * symtab.h (symbol_matches_domain): Remove.
8348
8349 2014-04-14 Tom Tromey <tromey@redhat.com>
8350
8351 PR c++/15246:
8352 * c-exp.y (type_aggregate_p): New function.
8353 (qualified_name, classify_inner_name): Use it.
8354 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8355 and TYPE_TARGET_TYPE of an enum type.
8356 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8357 an enum type.
8358 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8359 handle TYPE_DECLARED_CLASS.
8360 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8361 types.
8362 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8363 * valops.c (enum_constant_from_type): New function.
8364 (value_aggregate_elt): Use it.
8365 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8366 TYPE_CODE_ENUM.
8367
8368 2014-04-14 Tom Tromey <tromey@redhat.com>
8369
8370 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8371 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8372 const.
8373 * value.h (value_aggregate_elt): Update.
8374
8375 2014-04-14 Tom Tromey <tromey@redhat.com>
8376
8377 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8378
8379 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8380
8381 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8382 (evaluate_subexp_standard): Pass noside argument.
8383 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8384 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8385 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8386 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8387 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8388
8389 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8390
8391 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8392 points to a constant blob.
8393
8394 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8395
8396 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8397 property and store it as the high bound and flag the range accordingly.
8398 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8399 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8400 * gdbtypes.h (enum range_flags): New enum.
8401 (struct range_bounds): Add flags member.
8402
8403 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8404
8405 * c-typeprint.c (c_type_print_varspec_suffix): Added
8406 check for not yet resolved high bound. If unresolved, print
8407 "variable length" string to the console instead of random
8408 length.
8409
8410 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8411
8412 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8413 value.
8414 (ada_template_to_fixed_record_type_1): Likewise.
8415 (ada_to_fixed_type_1): Likewise.
8416 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8417 (cp_print_value): Likewise.
8418 * d-valprint.c (dynamic_array_type): Likewise.
8419 * findvar.c (address_of_variable): Likewise.
8420 * jv-valprint.c (java_value_print): Likewise.
8421 * valops.c (value_ind): Likewise.
8422 * value.c (coerce_ref): Likewise.
8423
8424 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8425
8426 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8427 value and retrieve the dynamic type size.
8428
8429 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8430
8431 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8432 passed to sizeof is dynamic evaluate the argument to compute the length.
8433
8434 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8435 Joel Brobecker <brobecker@adacore.com>
8436
8437 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8438 (dwarf2_evaluate_property): New function.
8439 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8440 * dwarf2read.c (attr_to_dynamic_prop): New function.
8441 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8442 attribute.
8443 * gdbtypes.c: Include dwarf2loc.h.
8444 (is_dynamic_type): New function.
8445 (resolve_dynamic_type): New function.
8446 (resolve_dynamic_bounds): New function.
8447 (get_type_length): New function.
8448 (check_typedef): Use get_type_length to compute type length.
8449 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8450 (TYPE_LOW_BOUND_KIND): New macro.
8451 (is_dynamic_type): New function prototype.
8452 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8453 to resolve dynamic properties of the type. Update comment.
8454 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8455
8456 2014-04-14 Richard Henderson <rth@redhat.com>
8457
8458 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8459
8460 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8461 Doug Evans <xdje42@gmail.com>
8462
8463 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8464 dereference TYPE_CODE_REF values.
8465
8466 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8467
8468 Revert the following changes due to regressions:
8469
8470 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8471 (dwarf2_evaluate_property): New function.
8472 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8473 * dwarf2read.c (attr_to_dynamic_prop): New function.
8474 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8475 attribute.
8476 * gdbtypes.c: Include dwarf2loc.h.
8477 (is_dynamic_type): New function.
8478 (resolve_dynamic_type): New function.
8479 (resolve_dynamic_bounds): New function.
8480 (get_type_length): New function.
8481 (check_typedef): Use get_type_length to compute type length.
8482 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8483 (TYPE_LOW_BOUND_KIND): New macro.
8484 (is_dynamic_type): New function prototype.
8485 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8486 to resolve dynamic properties of the type. Update comment.
8487 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8488
8489 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8490 passed to sizeof is dynamic evaluate the argument to compute the length.
8491
8492 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8493 value and retrieve the dynamic type size.
8494
8495 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8496 (ada_template_to_fixed_record_type_1): Likewise.
8497 (ada_to_fixed_type_1): Likewise.
8498 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8499 (cp_print_value): Likewise.
8500 * d-valprint.c (dynamic_array_type): Likewise.
8501 * eval.c (evaluate_subexp_with_coercion): Likewise.
8502 * findvar.c (address_of_variable): Likewise.
8503 * jv-valprint.c (java_value_print): Likewise.
8504 * valops.c (value_ind): Likewise.
8505 * value.c (coerce_ref): Likewise.
8506
8507 * c-typeprint.c (c_type_print_varspec_suffix): Added
8508 check for not yet resolved high bound. If unresolved, print
8509 "variable length" string to the console instead of random
8510 length.
8511
8512 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8513 property and store it as the high bound and flag the range accordingly.
8514 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8515 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8516 * gdbtypes.h (enum range_flags): New enum.
8517 (struct range_bounds): Add flags member.
8518
8519 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8520 points to a constant blob.
8521
8522 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8523 (evaluate_subexp_standard): Pass noside argument.
8524 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8525 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8526 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8527 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8528 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8529
8530 2014-04-11 Keith Seitz <keiths@redhat.com>
8531
8532 PR c++/16675
8533 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8534 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8535 reference types.
8536
8537 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8538
8539 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8540 (evaluate_subexp_standard): Pass noside argument.
8541 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8542 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8543 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8544 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8545 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8546
8547 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8548
8549 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8550 points to a constant blob.
8551
8552 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8553
8554 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8555 property and store it as the high bound and flag the range accordingly.
8556 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8557 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8558 * gdbtypes.h (enum range_flags): New enum.
8559 (struct range_bounds): Add flags member.
8560
8561 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8562
8563 * c-typeprint.c (c_type_print_varspec_suffix): Added
8564 check for not yet resolved high bound. If unresolved, print
8565 "variable length" string to the console instead of random
8566 length.
8567
8568 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8569
8570 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8571 (ada_template_to_fixed_record_type_1): Likewise.
8572 (ada_to_fixed_type_1): Likewise.
8573 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8574 (cp_print_value): Likewise.
8575 * d-valprint.c (dynamic_array_type): Likewise.
8576 * eval.c (evaluate_subexp_with_coercion): Likewise.
8577 * findvar.c (address_of_variable): Likewise.
8578 * jv-valprint.c (java_value_print): Likewise.
8579 * valops.c (value_ind): Likewise.
8580 * value.c (coerce_ref): Likewise.
8581
8582 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8583
8584 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8585 value and retrieve the dynamic type size.
8586
8587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8588
8589 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8590 passed to sizeof is dynamic evaluate the argument to compute the length.
8591
8592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8593
8594 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8595 (dwarf2_evaluate_property): New function.
8596 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8597 * dwarf2read.c (attr_to_dynamic_prop): New function.
8598 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8599 attribute.
8600 * gdbtypes.c: Include dwarf2loc.h.
8601 (is_dynamic_type): New function.
8602 (resolve_dynamic_type): New function.
8603 (resolve_dynamic_bounds): New function.
8604 (get_type_length): New function.
8605 (check_typedef): Use get_type_length to compute type length.
8606 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8607 (TYPE_LOW_BOUND_KIND): New macro.
8608 (is_dynamic_type): New function prototype.
8609 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8610 to resolve dynamic properties of the type. Update comment.
8611 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8612
8613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8614
8615 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8616 declaring high/low bounds and change uses accordingly. Call
8617 create_range_type instead of create_static_range_type.
8618 * gdbtypes.c (create_range_type): New function.
8619 (create_range_type): Convert bounds into struct bound_prop and pass
8620 them to create_range_type.
8621 * gdbtypes.h (struct bound_prop): New struct.
8622 (create_range_type): New function prototype.
8623 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8624 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8625 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8626 part of the bound.
8627 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8628
8629 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8630
8631 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8632 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8633 * ada-lang.c: All uses of create_range_type updated.
8634 * coffread.c: All uses of create_range_type updated.
8635 * dwarf2read.c: All uses of create_range_type updated.
8636 * f-exp.y: All uses of create_range_type updated.
8637 * m2-valprint.c: All uses of create_range_type updated.
8638 * mdebugread.c: All uses of create_range_type updated.
8639 * stabsread.c: All uses of create_range_type updated.
8640 * valops.c: All uses of create_range_type updated.
8641 * valprint.c: All uses of create_range_type updated.
8642
8643 2014-04-10 Pedro Alves <palves@redhat.com>
8644
8645 * breakpoint.c (single_step_breakpoints)
8646 (single_step_gdbarch): Move up in the file.
8647 (one_breakpoint_xfer_memory): New function, factored out from ...
8648 (breakpoint_xfer_memory): ... here. Also process single-step
8649 breakpoints.
8650
8651 2014-04-09 Tristan Gingold <gingold@adacore.com>
8652
8653 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8654 comments.
8655 (darwin_decode_exception_message): Free port only after use.
8656
8657 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8658
8659 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8660 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8661 when setting the size of call_length.
8662
8663 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8664
8665 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8666 dereference TYPE_CODE_REF values.
8667
8668 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8669
8670 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8671 end of warning message.
8672
8673 2014-04-03 Doug Evans <dje@google.com>
8674
8675 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8676 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8677
8678 2014-04-02 Alan Modra <amodra@gmail.com>
8679
8680 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8681 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8682 (struct symbol_file_add_from_memory_args): Add size field.
8683 (find_vdso_size): New function.
8684 (add_vsyscall_page): Attempt to find vdso size.
8685
8686 2014-04-01 Doug Evans <dje@google.com>
8687
8688 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8689
8690 2014-04-01 Tristan Gingold <gingold@adacore.com>
8691
8692 * darwin-nat.c (darwin_encode_reply): Add prototype.
8693 (darwin_decode_exception_message): Reply to unknown inferiors.
8694 (darwin_decode_message): Handle message by id. Ignore message
8695 to unknown inferior.
8696 (darwin_wait): Discard unknown messages, add debug trace.
8697
8698 2014-03-31 Doug Evans <dje@google.com>
8699
8700 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8701 comp_dir_string.
8702
8703 2014-03-31 Doug Evans <dje@google.com>
8704
8705 New option "set print symbol-loading".
8706 * NEWS: Mention it.
8707 * solib.c (solib_read_symbols): Only print symbol loading messages
8708 if requested.
8709 (solib_add): If symbol loading is in "brief" mode, notify user
8710 symbols are being loaded.
8711 (reload_shared_libraries_1): Ditto.
8712 * symfile.c (print_symbol_loading_off): New static global.
8713 (print_symbol_loading_brief): New static global.
8714 (print_symbol_loading_full): New static global.
8715 (print_symbol_loading_enums): New static global.
8716 (print_symbol_loading): New static global.
8717 (print_symbol_loading_p): New function.
8718 (symbol_file_add_with_addrs): Only print symbol loading messages
8719 if requested.
8720 (_initialize_symfile): Register "print symbol-loading" set/show
8721 command.
8722 * symfile.h (print_symbol_loading_p): Declare.
8723
8724 2014-03-30 Doug Evans <xdje42@gmail.com>
8725
8726 * infrun.c (set_last_target_status): New function.
8727 (handle_inferior_event): Call it.
8728
8729 2014-03-30 Doug Evans <xdje42@gmail.com>
8730
8731 * inferior.h (enum stop_kind): Improve comment.
8732
8733 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8734
8735 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8736 a reference, strip the reference layer before calling
8737 the lang_ops value_has_mutated callback.
8738
8739 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8740
8741 Remove some globals from our parser.
8742 * language.c (unk_lang_parser): Add "struct parser_state"
8743 argument.
8744 * language.h (struct language_defn) <la_parser>: Likewise.
8745 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8746 (initialize_expout): Add "struct parser_state" argument.
8747 Rewrite function to use the parser state.
8748 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8749 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8750 write_exp_elt_longcst, write_exp_elt_dblcst,
8751 write_exp_elt_decfloatcst, write_exp_elt_type,
8752 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8753 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8754 write_dollar_variable): Likewise.
8755 (parse_exp_in_context_1): Use parser state.
8756 (insert_type_address_space): Add "struct parser_state" argument.
8757 Use parser state.
8758 (increase_expout_size): New function.
8759 * parser-defs.h: Forward declare "struct language_defn" and
8760 "struct parser_state".
8761 (expout, expout_size, expout_ptr): Remove extern declarations.
8762 (parse_gdbarch, parse_language): Rewrite macro declarations to
8763 accept the parser state.
8764 (struct parser_state): New struct.
8765 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8766 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8767 write_exp_elt_decfloatcst, write_exp_elt_type,
8768 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8769 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8770 write_exp_msymbol, write_dollar_variable,
8771 mark_struct_expression, insert_type_address_space): Add "struct
8772 parser_state" argument.
8773 (increase_expout_size): New function.
8774 * utils.c (do_clear_parser_state): New function.
8775 (make_cleanup_clear_parser_state): Likewise.
8776 * utils.h (make_cleanup_clear_parser_state): New function
8777 prototype.
8778 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8779 Update calls to write_exp* in order to pass the parser state.
8780 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8781 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8782 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8783 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8784 * stap-probe.c (stap_parse_register_operand): Likewise.
8785 (stap_parse_single_operand): Likewise.
8786 (stap_parse_argument_1): Likewise.
8787 (stap_parse_argument): Use parser state.
8788 * stap-probe.h: Include "parser-defs.h".
8789 (struct stap_parse_info) <pstate>: New field.
8790 * c-exp.y (parse_type): Rewrite to use parser state.
8791 (yyparse): Redefine to c_parse_internal.
8792 (pstate): New global variable.
8793 (parse_number): Add "struct parser_state" argument.
8794 (write_destructor_name): Likewise.
8795 (type_exp): Update calls to write_exp* and similars in order to
8796 use parser state.
8797 (exp1, exp, variable, qualified_name, space_identifier,
8798 typename, typebase): Likewise.
8799 (write_destructor_name, parse_number, lex_one_token,
8800 classify_name, classify_inner_name, c_parse): Add "struct
8801 parser_state" argument. Update function to use parser state.
8802 * c-lang.h: Forward declare "struct parser_state".
8803 (c_parse): Add "struct parser_state" argument.
8804 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8805 (yyparse): Redefine macro to ada_parse_internal.
8806 (pstate): New variable.
8807 (write_int, write_object_renaming, write_var_or_type,
8808 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8809 type_int, type_long, type_long_long, type_float, type_double,
8810 type_long_double, type_char, type_boolean, type_system_address):
8811 Add "struct parser_state" argument.
8812 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8813 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8814 var_or_type, aggregate, aggregate_component_list,
8815 positional_list, others, component_group,
8816 component_associations): Update calls to write_exp* and similar
8817 functions in order to use parser state.
8818 (ada_parse, write_var_from_sym, write_int,
8819 write_exp_op_with_string, write_object_renaming,
8820 find_primitive_type, write_selectors, write_ambiguous_var,
8821 write_var_or_type, write_name_assoc, type_int, type_long,
8822 type_long_long, type_float, type_double, type_long_double,
8823 type_char, type_boolean, type_system_address): Add "struct
8824 parser_state" argument. Adjust function to use parser state.
8825 * ada-lang.c (parse): Likewise.
8826 * ada-lang.h: Forward declare "struct parser_state".
8827 (ada_parse): Add "struct parser_state" argument.
8828 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8829 calls to both functions.
8830 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8831 parser state.
8832 (yyparse): Redefine macro to f_parse_internal.
8833 (pstate): New variable.
8834 (parse_number): Add "struct parser_state" argument.
8835 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8836 and similars in order to use parser state.
8837 (parse_number): Adjust code to use parser state.
8838 (yylex): Likewise.
8839 (f_parse): New function.
8840 * f-lang.h: Forward declare "struct parser_state".
8841 (f_parse): Add "struct parser_state" argument.
8842 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8843 parser state.
8844 (yyparse): Redefine macro for java_parse_internal.
8845 (pstate): New variable.
8846 (push_expression_name, push_expression_name, insert_exp): Add
8847 "struct parser_state" argument.
8848 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8849 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8850 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8851 PostIncrementExpression, PostDecrementExpression,
8852 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8853 UnaryExpressionNotPlusMinus, CastExpression,
8854 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8855 RelationalExpression, EqualityExpression, AndExpression,
8856 ExclusiveOrExpression, InclusiveOrExpression,
8857 ConditionalAndExpression, ConditionalOrExpression,
8858 ConditionalExpression, Assignment, LeftHandSide): Update
8859 calls to write_exp* and similars in order to use parser state.
8860 (parse_number): Ajust code to use parser state.
8861 (yylex): Likewise.
8862 (java_parse): New function.
8863 (push_variable): Add "struct parser_state" argument. Adjust
8864 code to user parser state.
8865 (push_fieldnames, push_qualified_expression_name,
8866 push_expression_name, insert_exp): Likewise.
8867 * jv-lang.h: Forward declare "struct parser_state".
8868 (java_parse): Add "struct parser_state" argument.
8869 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8870 parser state.
8871 (yyparse): Redefine macro to m2_parse_internal.
8872 (pstate): New variable.
8873 (type_exp, exp, fblock, variable, type): Update calls to
8874 write_exp* and similars to use parser state.
8875 (yylex): Likewise.
8876 (m2_parse): New function.
8877 * m2-lang.h: Forward declare "struct parser_state".
8878 (m2_parse): Add "struct parser_state" argument.
8879 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8880 * objc-lang.h: Forward declare "struct parser_state".
8881 (end_msglist): Add "struct parser_state" argument.
8882 * p-exp.y (parse_type): Rewrite macro to use parser state.
8883 (yyparse): Redefine macro to pascal_parse_internal.
8884 (pstate): New variable.
8885 (parse_number): Add "struct parser_state" argument.
8886 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8887 write_exp* and similars in order to use parser state.
8888 (parse_number, yylex): Adjust code to use parser state.
8889 (pascal_parse): New function.
8890 * p-lang.h: Forward declare "struct parser_state".
8891 (pascal_parse): Add "struct parser_state" argument.
8892 * go-exp.y (parse_type): Rewrite macro to use parser state.
8893 (yyparse): Redefine macro to go_parse_internal.
8894 (pstate): New variable.
8895 (parse_number): Add "struct parser_state" argument.
8896 (type_exp, exp1, exp, variable, type): Update calls to
8897 write_exp* and similars in order to use parser state.
8898 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8899 to use parser state.
8900 (go_parse): Likewise.
8901 * go-lang.h: Forward declare "struct parser_state".
8902 (go_parse): Add "struct parser_state" argument.
8903
8904 2014-03-27 Doug Evans <dje@google.com>
8905
8906 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8907
8908 2014-03-27 Doug Evans <dje@google.com>
8909
8910 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8911 Remove argument abbrev_section. All callers updated.
8912
8913 2014-03-27 Doug Evans <dje@google.com>
8914
8915 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8916 addr_base, ranges_base.
8917
8918 2014-03-26 Keith Seitz <keiths@redhat.com>
8919
8920 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8921 types, not VAR_DOMAIN.
8922
8923 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8924
8925 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8926 "ra" registers.
8927 * features/nios2-linux.c: Regenerated.
8928 * features/nios2.c: Regenerated.
8929
8930 2014-03-25 Pedro Alves <palves@redhat.com>
8931
8932 * cli/cli-script.c (script_from_file): Force the interpreter to
8933 sync mode.
8934
8935 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8936
8937 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8938 small stack allocation.
8939
8940 2014-03-24 Tristan Gingold <gingold@adacore.com>
8941
8942 * darwin-nat.c (exc_server): Remove unused prototype.
8943 (darwin_dump_message): Correctly display data on x86_64.
8944 (darwin_encode_reply): Fix style.
8945 Add comments and fix indentation.
8946
8947 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8948
8949 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8950
8951 2014-03-22 Doug Evans <xdje42@gmail.com>
8952
8953 * infcmd.c: Whitespace fixes.
8954 (interrupt_command): Merge two function comments into one.
8955
8956 2014-03-22 Doug Evans <xdje42@gmail.com>
8957
8958 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8959 All uses updated.
8960
8961 2014-03-22 Yao Qi <yao@codesourcery.com>
8962
8963 * remote.c (target_read_live_memory): Remove.
8964 (memory_xfer_live_readonly_partial): Rename it to
8965 remote_xfer_live_readonly_partial. Remove argument 'object'.
8966 All callers updated. Call remote_read_bytes_1
8967 instead of target_read_live_memory.
8968 * tracepoint.c (set_traceframe_number): Remove.
8969 (make_cleanup_restore_traceframe_number): Likewise .
8970 * tracepoint.h (set_traceframe_number): Remove declaration.
8971 (make_cleanup_restore_traceframe_number): Likewise.
8972
8973 2014-03-22 Yao Qi <yao@codesourcery.com>
8974
8975 * remote.c (remote_read_bytes): Move code on reading from the
8976 remote stub to ...
8977 (remote_read_bytes_1): ... here. New function.
8978
8979 2014-03-22 Yao Qi <yao@codesourcery.com>
8980
8981 * ctf.c (ctf_xfer_partial): Check the return value of
8982 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8983 return TARGET_XFER_UNAVAILABLE.
8984 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8985 * target.c (target_read_live_memory): Move it to remote.c.
8986 (memory_xfer_live_readonly_partial): Likewise.
8987 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8988 * remote.c (target_read_live_memory): Moved from target.c.
8989 (memory_xfer_live_readonly_partial): Likewise.
8990 (remote_read_bytes): Factored out from
8991 memory_xfer_partial_1.
8992
8993 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8994
8995 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8996 NULL pointer.
8997
8998 2014-03-21 Pedro Alves <palves@redhat.com>
8999
9000 * infrun.c (normal_stop): Extend comment.
9001
9002 2014-03-21 Hui Zhu <hui@codesourcery.com>
9003 Pedro Alves <palves@redhat.com>
9004
9005 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9006 static buffer.
9007 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9008 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9009 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9010
9011 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9012
9013 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9014 `z' formatted output modifier.
9015
9016 2014-03-20 Tom Tromey <tromey@redhat.com>
9017 Sergio Durigan Junior <sergiodj@redhat.com>
9018
9019 * probe.c (parse_probes): Turn assert into an ordinary error.
9020 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9021 exceptions when parsing probes. Rearrange the code for clarity.
9022
9023 2014-03-20 Tom Tromey <tromey@redhat.com>
9024
9025 PR gdb/14135
9026 * top.c (execute_command): Only dispatch events if the command
9027 started the target.
9028
9029 2014-03-20 Tom Tromey <tromey@redhat.com>
9030
9031 PR cli/15718
9032 * infcall.c: Include event-top.h.
9033 (run_inferior_call): Call async_disable_stdin if needed.
9034
9035 2014-03-20 Pedro Alves <palves@redhat.com>
9036
9037 * infrun.c (prepare_to_proceed): Delete.
9038 (thread_still_needs_step_over): New function.
9039 (find_thread_needs_step_over): New function.
9040 (proceed): If the current thread needs a step-over, set its
9041 steping_over_breakpoint flag. Adjust to use
9042 find_thread_needs_step_over instead of prepare_to_proceed.
9043 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9044 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9045 breakpoint.
9046 (switch_back_to_stepped_thread): Step over breakpoints of all
9047 threads not the stepping thread, before switching back to the
9048 stepping thread.
9049
9050 2014-03-20 Pedro Alves <palves@redhat.com>
9051
9052 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9053 extern.
9054 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9055 * infrun.c (saved_singlestep_ptid)
9056 (stepping_past_singlestep_breakpoint): Delete.
9057 (resume): Remove stepping_past_singlestep_breakpoint handling.
9058 (proceed): Store the prev_pc of the stepping thread too.
9059 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9060 singlestep_pc.
9061 (enum infwait_states): Delete infwait_thread_hop_state.
9062 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9063 field.
9064 (handle_inferior_event): Adjust.
9065 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9066 handling and the thread-hop code. Before removing single-step
9067 breakpoints, check whether the thread hit a single-step breakpoint
9068 of another thread. If it did, the trap is not a random signal.
9069 (switch_back_to_stepped_thread): If the event thread hit a
9070 single-step breakpoint, unblock it before switching to the
9071 stepping thread. Handle the case of the stepped thread having
9072 advanced already.
9073 (keep_going): Handle the case of the current thread moving past a
9074 single-step breakpoint.
9075
9076 2014-03-20 Pedro Alves <palves@redhat.com>
9077
9078 PR breakpoints/7143
9079 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9080 are being stepped over.
9081 (breakpoint_address_match): Make extern.
9082 * breakpoint.h (breakpoint_address_match): New declaration.
9083 * inferior.h (stepping_past_instruction_at): New declaration.
9084 * infrun.c (struct step_over_info): New type.
9085 (step_over_info): New global.
9086 (set_step_over_info, clear_step_over_info)
9087 (stepping_past_instruction_at): New functions.
9088 (handle_inferior_event): Clear the step-over info when
9089 trap_expected is cleared.
9090 (resume): Remove now stale comment.
9091 (clear_proceed_status): Clear step-over info.
9092 (proceed): Adjust step-over handling to set or clear the step-over
9093 info instead of removing all breakpoints.
9094 (handle_signal_stop): When setting up a thread-hop, don't remove
9095 breakpoints here.
9096 (stop_stepping): Clear step-over info.
9097 (keep_going): Adjust step-over handling to set or clear step-over
9098 info and then always inserting breakpoints, instead of removing
9099 all breakpoints when stepping over one.
9100
9101 2014-03-20 Pedro Alves <palves@redhat.com>
9102
9103 * infrun.c (previous_inferior_ptid): Adjust comment.
9104 (deferred_step_ptid): Delete.
9105 (infrun_thread_ptid_changed, prepare_to_proceed)
9106 (init_wait_for_inferior): Adjust.
9107 (handle_signal_stop): Delete deferred_step_ptid handling.
9108
9109 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9110
9111 PR gdb/15358
9112 * defs.h (sync_quit_force_run): New declaration.
9113 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9114 * event-top.c (async_sigterm_handler): New declaration.
9115 (async_sigterm_token): New variable.
9116 (async_init_signals): Create also async_sigterm_token.
9117 (async_sigterm_handler): New function.
9118 (sync_quit_force_run): New variable.
9119 (handle_sigterm): Replace quit_force call by other calls.
9120 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9121
9122 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9123
9124 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9125 offset into SPE pseudo registers.
9126
9127 2014-03-18 Pedro Alves <palves@redhat.com>
9128
9129 PR gdb/13860
9130 * inferior.h (print_stop_event): Declare.
9131 * infrun.c (print_stop_event): New, factored out from ...
9132 (normal_stop): ... this.
9133 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9134 of bpstat_print/print_stack_frame.
9135
9136 2014-03-17 Tom Tromey <tromey@redhat.com>
9137
9138 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9139
9140 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9141
9142 * ada-lang.c (decode_constrained_packed_array): Perform a
9143 minimal coercion for reference with coerce_ref instead of
9144 ada_coerce_ref.
9145
9146 2014-03-17 Tristan Gingold <gingold@adacore.com>
9147
9148 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9149 (darwin_solib_create_inferior_hook): Emit a warning if version
9150 is unhandled.
9151
9152 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9153
9154 * python/py-value.c (get_field_flag): Cast flag_name argument to
9155 PyObject_GetAttrString to support Python 2.4.
9156
9157 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9158
9159 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9160 (Global Maintainers): Remove Jan Kratochvil.
9161
9162 2014-03-14 Pedro Alves <palves@redhat.com>
9163
9164 * inferior.h (terminal_ours_for_output): Rename to ...
9165 (child_terminal_ours_for_output): ... this.
9166 (terminal_save_ours): Rename to ...
9167 (child_terminal_save_ours): ... this.
9168 (terminal_ours): Rename to ...
9169 (child_terminal_ours): ... this.
9170 (terminal_inferior): Rename to ...
9171 (child_terminal_inferior): ... this.
9172 (terminal_init_inferior): Rename to ...
9173 (child_terminal_init_inferior): ... this.
9174 (terminal_init_inferior_with_pgrp): Rename to ...
9175 (child_terminal_init_inferior_with_pgrp): ... this.
9176 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9177 (child_terminal_init_with_pgrp): ... this.
9178 (terminal_save_ours): Rename to ...
9179 (child_terminal_save_ours): ... this.
9180 (terminal_init_inferior): Rename to ...
9181 (child_terminal_init): ... this. Adjust.
9182 (terminal_inferior): Rename to ...
9183 (child_terminal_inferior): ... this.
9184 (terminal_ours_for_output): Rename to ...
9185 (child_terminal_ours_for_output): ... this. Adjust.
9186 (terminal_ours): Rename to ...
9187 (child_terminal_ours): ... this.
9188 (terminal_ours_1): Rename to ...
9189 (child_terminal_ours_1): ... this. Adjust.
9190 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9191 * windows-nat.c (do_initial_windows_stuff): Adjust.
9192 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9193 (gnu_terminal_init): ... this. Adjust.
9194 (gnu_target): Adjust.
9195 * inf-child.c (inf_child_target): Adjust.
9196
9197 2014-03-13 Doug Evans <xdje42@gmail.com>
9198
9199 PR guile/16612
9200 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9201 new eq?-hashtab.
9202
9203 2014-03-13 Doug Evans <xdje42@gmail.com>
9204
9205 * value.c (record_latest_value): Call release_value_or_incref
9206 instead of release_value.
9207
9208 2014-03-13 Pedro Alves <palves@redhat.com>
9209
9210 * procfs.c (procfs_target): Don't override to_shortname,
9211 to_longname or to_doc.
9212
9213 2014-03-13 Pedro Alves <palves@redhat.com>
9214
9215 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9216 Unix in user visible strings.
9217
9218 2014-03-12 Stan Shebs <stan@codesourcery.com>
9219
9220 * gdbtypes.h: Annotate comments for Doxygen, add a page
9221 block comment with some general info.
9222
9223 2014-03-12 Pedro Alves <palves@redhat.com>
9224
9225 * infcmd.c (prepare_execution_command): New function, factored out
9226 from several execution commands.
9227 (run_command_1, continue_command, step_1, jump_command)
9228 (signal_command, until_command, advance_command, finish_command)
9229 (attach_command): Use prepare_execution_command.
9230
9231 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9232
9233 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9234 (MAX_BPTS): Define.
9235 (MAX_WPTS): Define.
9236 (struct arm_linux_thread_points): Removed.
9237 (struct arm_linux_process_info): New.
9238 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9239 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9240 (arm_linux_find_breakpoints_by_tid): Removed.
9241 (struct arch_lwp_info): New.
9242 (arm_linux_find_process_pid): New functions.
9243 (arm_linux_add_process): New functions.
9244 (arm_linux_process_info_get): New functions.
9245 (arm_linux_forget_process): New function.
9246 (arm_linux_get_debug_reg_state): New function.
9247 (struct update_registers_data): New.
9248 (update_registers_callback): New function.
9249 (arm_linux_insert_hw_breakpoint1): Updated.
9250 (arm_linux_remove_hw_breakpoint1): Updated.
9251 (arm_linux_insert_hw_breakpoint): Updated.
9252 (arm_linux_remove_hw_breakpoint): Updated.
9253 (arm_linux_insert_watchpoint): Updated.
9254 (arm_linux_remove_watchpoint): Updated.
9255 (arm_linux_new_thread): Updated.
9256 (arm_linux_prepare_to_resume): New function.
9257 (arm_linux_new_fork): New function.
9258 (_initialize_arm_linux_nat): Updated.
9259
9260 2014-03-12 Pedro Alves <palves@redhat.com>
9261
9262 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9263
9264 2014-03-12 Tom Tromey <tromey@redhat.com>
9265
9266 * inf-child.c (return_zero): New function.
9267 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9268 * aix-thread.c (aix_thread_inferior_created): New function.
9269 (aix_thread_attach): Remove.
9270 (init_aix_thread_ops): Don't set to_attach.
9271 (_initialize_aix_thread): Register inferior_created observer.
9272 * corelow.c (init_core_ops): Don't set to_attach or
9273 to_create_inferior.
9274 * exec.c (init_exec_ops): Don't set to_attach or
9275 to_create_inferior.
9276 * infcmd.c (run_command_1): Use find_run_target. Make direct
9277 target calls.
9278 (attach_command): Use find_attach_target. Make direct target
9279 calls.
9280 * record-btrace.c (init_record_btrace_ops): Don't set
9281 to_create_inferior.
9282 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9283 Remove.
9284 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9285 set to_create_inferior.
9286 * target.c (complete_target_initialization): Add assertion.
9287 (target_create_inferior): Remove.
9288 (find_default_attach, find_default_create_inferior): Remove.
9289 (find_attach_target, find_run_target): New functions.
9290 (find_default_is_async_p, find_default_can_async_p)
9291 (target_supports_non_stop, target_attach): Remove.
9292 (init_dummy_target): Don't set to_create_inferior or
9293 to_supports_non_stop.
9294 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9295 TARGET_DEFAULT_FUNC.
9296 <to_create_inferior>: Add comment.
9297 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9298 TARGET_DEFAULT_RETURN.
9299 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9300 (find_attach_target, find_run_target): Declare.
9301 (target_create_inferior): Remove.
9302 (target_has_execution_1): Update comment.
9303 (target_supports_non_stop): Remove.
9304 * target-delegates.c: Rebuild.
9305
9306 2014-03-12 Pedro Alves <palves@redhat.com>
9307
9308 * inf-child.h: Update comment to not mention Unix.
9309
9310 2014-03-12 Pedro Alves <palves@redhat.com>
9311
9312 * inf-child.c: Update top comment to not mention Unix. Add
9313 generic comment describing how this target is meant to be used.
9314 (inf_child_post_attach, inf_child_post_startup_inferior)
9315 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9316 Unix in comment.
9317
9318 2014-03-12 Pedro Alves <palves@redhat.com>
9319
9320 * nto-procfs.c: Include inf-child.h.
9321 (procfs_ops): Delete global.
9322 (procfs_can_run): Delete method.
9323 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9324 target pointer instead of referencing procfs_ops.
9325 (procfs_prepare_to_store): Delete.
9326 (init_procfs_ops): Delete function.
9327 (procfs_target): New function, based on init_procfs_ops, but
9328 inherit inf_child_target.
9329 (_initialize_procfs): Use procfs_target.
9330
9331 2014-03-12 Pedro Alves <palves@redhat.com>
9332
9333 * windows-nat.c: Include inf-child.h.
9334 (windows_ops): Delete global.
9335 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9336 methods.
9337 (init_windows_ops): Delete function.
9338 (windows_target): New function, based on init_windows_ops, but
9339 inherit inf_child_target.
9340 (_initialize_windows_nat): Use windows_target. Install x86
9341 specific target methods here.
9342
9343 2014-03-10 Doug Evans <xdje42@gmail.com>
9344
9345 * guile/guile.c (call_initialize_gdb_module): New function.
9346 (initialize_guile): Replace call to scm_init_guile with call to
9347 scm_with_guile.
9348
9349 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9350
9351 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9352 in call to TYPE_CODE macro.
9353
9354 2014-03-10 Jerome Guitton <guitton@adacore.com>
9355
9356 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9357 Resolve tagged types to full view.
9358
9359 2014-03-10 Hui Zhu <hui@codesourcery.com>
9360
9361 * target.h (target_insert_breakpoint): Remove "hardware" from its
9362 comments.
9363
9364 2014-03-07 Doug Evans <dje@google.com>
9365
9366 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9367
9368 2014-03-07 Doug Evans <dje@google.com>
9369
9370 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9371 Remove unused local comp_dir_attr. Assert exactly one of
9372 stub_comp_unit_die, stub_comp_dir is non-NULL.
9373
9374 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9375
9376 * target.h (complete_target_initialization, add_target):
9377 Add comment.
9378
9379 2014-03-07 Pedro Alves <palves@redhat.com>
9380
9381 * go32-nat.c: Include inf-child.h.
9382 (go32_ops): Delete global.
9383 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9384 Delete methods.
9385 (go32_create_inferior): Push the passed in target pointer instead
9386 of referencing go32_ops.
9387 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9388 (go32_target): New function, based on init_go32_ops, but inherit
9389 inf_child_target.
9390 (_initialize_go32_nat): Use go32_target. Move parts of
9391 init_go32_ops here.
9392
9393 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9394
9395 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9396 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9397 SYMBOL_VALUE_ADDRESS.
9398 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9399
9400 2014-03-06 Yao Qi <yao@codesourcery.com>
9401
9402 * breakpoint.c (get_tracepoint_by_number): Remove argument
9403 optional_p. All callers updated. Adjust comments. Update
9404 output message.
9405 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9406
9407 2014-03-06 Yao Qi <yao@codesourcery.com>
9408
9409 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9410 early if get_number returns zero. Use 'p' instead of 'args'.
9411
9412 2014-03-06 Yao Qi <yao@codesourcery.com>
9413
9414 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9415 message.
9416
9417 2014-03-06 Yao Qi <yao@codesourcery.com>
9418
9419 PR breakpoints/16508
9420 * tracepoint.c (check_trace_running): New function.
9421 (trace_find_command): Move code to check_trace_running and
9422 call check_trace_running.
9423 (trace_find_pc_command): Likewise.
9424 (trace_find_tracepoint_command): Likewise.
9425 (trace_find_line_command): Likewise.
9426 (trace_find_range_command): Likewise.
9427 * tracepoint.h (check_trace_running): Likewise.
9428 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9429
9430 2014-03-06 Yao Qi <yao@codesourcery.com>
9431
9432 * target.h (struct target_ops) <to_traceframe_info>: Use
9433 TARGET_DEFAULT_NORETURN (tcomplain ()).
9434 * target-delegates.c: Regenerated.
9435
9436 2014-03-05 Pedro Alves <palves@redhat.com>
9437
9438 PR gdb/16575
9439 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9440 void. Update comment.
9441 (dcache_xfer_memory): Delete.
9442 (dcache_read_memory_partial): New, based on the read bits of
9443 dcache_xfer_memory.
9444 (dcache_update): Add status parameter. Use ULONGEST for len, and
9445 adjust. Discard cache lines if the reason for the update was
9446 error.
9447 * dcache.h (dcache_xfer_memory): Delete declaration.
9448 (dcache_read_memory_partial): New declaration.
9449 (dcache_update): Update prototype.
9450 * target.c (raw_memory_xfer_partial): Update the dcache here.
9451 (memory_xfer_partial_1): Don't handle dcache writes here.
9452
9453 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9454
9455 * remote-sim.c (gdbsim_load): Add const to prog.
9456
9457 2014-03-03 Tom Tromey <tromey@redhat.com>
9458
9459 * elfread.c (probe_key): Change to bfd_data.
9460 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9461 now per-BFD, not per-objfile.
9462 * stap-probe.c (stap_probe_destroy): Update comment.
9463 (handle_stap_probe): Allocate on the per-BFD obstack.
9464
9465 2014-03-03 Tom Tromey <tromey@redhat.com>
9466
9467 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9468 * breakpoint.c (create_longjmp_master_breakpoint): Use
9469 get_probe_address.
9470 (add_location_to_breakpoint, bkpt_probe_insert_location)
9471 (bkpt_probe_remove_location): Update.
9472 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9473 * elfread.c (elf_symfile_relocate_probe): Remove.
9474 (elf_probe_fns): Update.
9475 (insert_exception_resume_breakpoint): Change type of "probe"
9476 parameter to bound_probe.
9477 (check_exception_resume): Update.
9478 * objfiles.c (objfile_relocate1): Don't relocate probes.
9479 * probe.c (bound_probe_s): New typedef.
9480 (parse_probes): Use get_probe_address. Set sal's objfile.
9481 (find_probe_by_pc): Return a bound_probe.
9482 (collect_probes): Return a VEC(bound_probe_s).
9483 (compare_probes): Update.
9484 (gen_ui_out_table_header_info): Change type of "probes"
9485 parameter. Update.
9486 (info_probes_for_ops): Update.
9487 (get_probe_address): New function.
9488 (probe_safe_evaluate_at_pc): Update.
9489 * probe.h (struct probe_ops) <get_probe_address>: New field.
9490 <set_semaphore, clear_semaphore>: Add objfile parameter.
9491 (struct probe) <objfile>: Remove field.
9492 <arch>: New field.
9493 <address>: Update comment.
9494 (struct bound_probe): New.
9495 (find_probe_by_pc): Return a bound_probe.
9496 (get_probe_address): Declare.
9497 * solib-svr4.c (struct probe_and_action) <address>: New field.
9498 (hash_probe_and_action, equal_probe_and_action): Update.
9499 (register_solib_event_probe): Add address parameter.
9500 (solib_event_probe_at): Update.
9501 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9502 get_probe_address.
9503 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9504 (stap_get_probe_address): New function.
9505 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9506 (compile_probe_arg): Update.
9507 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9508 address.
9509 (handle_stap_probe): Don't relocate the probe.
9510 (stap_relocate): Remove.
9511 (stap_gen_info_probes_table_values): Update.
9512 (stap_probe_ops): Remove stap_relocate.
9513 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9514 (debug_sym_probe_fns): Update.
9515 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9516 * symtab.c (init_sal): Use memset.
9517 * symtab.h (struct symtab_and_line) <objfile>: New field.
9518 * tracepoint.c (start_tracing, stop_tracing): Update.
9519
9520 2014-03-03 Tom Tromey <tromey@redhat.com>
9521
9522 * probe.h (parse_probes, find_probe_by_pc)
9523 (find_probes_in_objfile): Fix comments.
9524
9525 2014-03-02 Doug Evans <xdje42@gmail.com>
9526
9527 * infrun.c (handle_signal_stop): Replace test for
9528 TARGET_WAITKIND_STOPPED with an assert.
9529
9530 2014-03-02 Doug Evans <xdje42@gmail.com>
9531
9532 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9533
9534 2014-03-02 Doug Evans <xdje42@gmail.com>
9535
9536 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9537
9538 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9539
9540 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9541
9542 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9543
9544 * i386obsd-nat.c: Include "obsd-nat.h".
9545 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9546 add_target.
9547 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9548
9549 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9550
9551 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9552
9553 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9554
9555 * mips64obsd-nat.c: Include "obsd-nath".
9556 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9557 add_target
9558 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9559
9560 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9561
9562 * amd64obsd-nat.c: Include "obsd-nat,h.
9563 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9564 add_target.
9565 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9566
9567 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9568
9569 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9570 (find_overload_match): Update call to find_oload_champ.
9571 (find_oload_champ_namespace_loop): Likewise
9572
9573 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9574
9575 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9576
9577 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9578 * config/sparc/obsd64.mh: New file.
9579 * sparc64obsd-nat.c: New file.
9580
9581 * obsd-nat.h: New file.
9582 * obsd-nat.c: New file.
9583 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9584 (ALLDEPFILES): Add obsd-nat.c.
9585
9586 2014-02-28 Tom Tromey <tromey@redhat.com>
9587
9588 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9589 * cli-out.h (cli_ui_out_impl): Now const.
9590 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9591 * ui-out.c (struct ui_out) <impl>: Now const.
9592 (default_ui_out_impl): Now const.
9593 (ui_out_new): Make 'impl' parameter const.
9594 * ui-out.h (ui_out_new): Update.
9595
9596 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9597
9598 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9599
9600 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9601
9602 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9603
9604 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9605
9606 Additional PR 8882 fix.
9607 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9608
9609 2014-02-27 Pedro Alves <palves@redhat.com>
9610
9611 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9612 isn't set.
9613
9614 2014-02-27 Pedro Alves <palves@redhat.com>
9615
9616 PR 12702
9617 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9618 * nat/linux-waitpid.c: Include string.h.
9619 (status_to_str): Moved here and made extern.
9620 * nat/linux-waitpid.h (status_to_str): New declaration.
9621
9622 2014-02-27 Hui Zhu <hui@codesourcery.com>
9623
9624 PR 12702
9625 * infrun.c (ptid_match): Move ...
9626 * common/ptid.c (ptid_match): ... here.
9627 * inferior.h (ptid_match): Move ...
9628 * common/ptid.h (ptid_match): ... here.
9629
9630 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9631
9632 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9633 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9634 gdb_target_obs.
9635
9636 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9637
9638 * obsd-tdep.c (obsd_auxv_parse): New function.
9639 (obsd_init_abi): Set auxv_parse.
9640
9641 * gdbarch.sh (auxv_parse): New.
9642 * gdbarch.h: Regenerated.
9643 * gdbarch.c: Regenerated.
9644 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9645
9646 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9647
9648 * guile/scm-value.c (gdbscm_history_append_x): New function.
9649 (value_functions): Add it.
9650
9651 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9652
9653 * dwarf2read.c (attr_value_as_address): New function.
9654 (dwarf2_find_base_address, read_call_site_scope): Use
9655 attr_value_as_address in place of DW_ADDR.
9656 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9657 the low and high addresses. Slight rework of the handling
9658 of the high pc being a constant form, and limit it to
9659 DWARF verson 4 or higher.
9660 (dwarf2_record_block_ranges): Likewise.
9661 (read_partial_die): Likewise.
9662 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9663
9664 2014-02-26 Tom Tromey <tromey@redhat.com>
9665
9666 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9667
9668 2014-02-26 Tom Tromey <tromey@redhat.com>
9669
9670 * elfread.c (elf_read_minimal_symbols): Return early if
9671 minimal symbols have already been read. Add "ei" parameter.
9672 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9673 * minsyms.c (prim_record_minimal_symbol_full): Update.
9674 * objfiles.h (struct objstats) <n_minsyms>: Move...
9675 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9676 * symmisc.c (print_objfile_statistics): Update.
9677
9678 2014-02-26 Tom Tromey <tromey@redhat.com>
9679
9680 * elfread.c (elf_read_minimal_symbols): New function, from
9681 elf_symfile_read.
9682 (elf_symfile_read): Call it.
9683
9684 2014-02-26 Tom Tromey <tromey@redhat.com>
9685
9686 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9687 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9688 (lookup_minimal_symbol_solib_trampoline)
9689 (lookup_minimal_symbol_by_pc_section_1)
9690 (lookup_minimal_symbol_and_objfile): Update.
9691 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9692 Don't allocate a minimal symbol if minsyms have already been read.
9693 (build_minimal_symbol_hash_tables): Update.
9694 (install_minimal_symbols): Do nothing if minsyms already read.
9695 Use the per-BFD obstack.
9696 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9697 * objfiles.c (allocate_objfile): Call
9698 terminate_minimal_symbol_table later.
9699 (have_minimal_symbols): Update.
9700 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9701 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9702 Move from struct objfile.
9703 <minsyms_read>: New field.
9704 (struct objfile) <msymbols, minimal_symbol_count,
9705 msymbol_hash, msymbol_demangled_hash>: Move.
9706 (ALL_OBJFILE_MSYMBOLS): Update.
9707 * symfile.c (read_symbols): Set minsyms_read.
9708 (reread_symbols): Update.
9709 * symmisc.c (dump_objfile, dump_msymbols): Update.
9710
9711 2014-02-26 Tom Tromey <tromey@redhat.com>
9712
9713 * minsyms.c (msymbols_sort): Remove.
9714 * minsyms.h (msymbols_sort): Remove.
9715 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9716 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9717 * elfread.c (elf_symtab_read): Don't add section offsets.
9718 * xcoffread.c (record_minimal_symbol): Don't add section offset
9719 to minimal symbol address.
9720 * somread.c (text_offset, data_offset): Remove.
9721 (som_symtab_read): Don't add section offsets to minimal symbol
9722 addresses.
9723 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9724 Don't add section offsets to minimal symbols.
9725 * coffread.c (coff_symtab_read): Don't add section offsets
9726 to minimal symbol addresses.
9727 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9728 to minimal symbol addresses.
9729 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9730 section offset to minimal symbol addresses.
9731 * mdebugread.c (parse_partial_symbols): Don't add section
9732 offset to minimal symbol addresses.
9733 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9734 offset to minimal symbol addresses.
9735
9736 2014-02-26 Tom Tromey <tromey@redhat.com>
9737
9738 * ada-lang.c (ada_main_name): Update.
9739 (ada_add_standard_exceptions): Update.
9740 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9741 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9742 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9743 * auxv.c (ld_so_xfer_auxv): Update.
9744 * avr-tdep.c (avr_scan_prologue): Update.
9745 * ax-gdb.c (gen_var_ref): Update.
9746 * blockframe.c (get_pc_function_start)
9747 (find_pc_partial_function_gnu_ifunc): Update.
9748 * breakpoint.c (create_overlay_event_breakpoint)
9749 (create_longjmp_master_breakpoint)
9750 (create_std_terminate_master_breakpoint)
9751 (create_exception_master_breakpoint): Update.
9752 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9753 * c-valprint.c (c_val_print): Update.
9754 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9755 * common/agent.c (agent_look_up_symbols): Update.
9756 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9757 * dwarf2loc.c (call_site_to_target_addr): Update.
9758 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9759 * elfread.c (elf_gnu_ifunc_record_cache)
9760 (elf_gnu_ifunc_resolve_by_got): Update.
9761 * findvar.c (default_read_var_value): Update.
9762 * frame.c (inside_main_func): Update.
9763 * frv-tdep.c (frv_frame_this_id): Update.
9764 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9765 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9766 Update.
9767 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9768 (hppa_hpux_find_dummy_bpaddr): Update.
9769 * hppa-tdep.c (hppa_symbol_address): Update.
9770 * infcmd.c (until_next_command): Update.
9771 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9772 Update.
9773 * linespec.c (minsym_found, add_minsym): Update.
9774 * linux-nat.c (get_signo): Update.
9775 * linux-thread-db.c (inferior_has_bug): Update.
9776 * m32c-tdep.c (m32c_return_value)
9777 (m32c_m16c_address_to_pointer): Update.
9778 * m32r-tdep.c (m32r_frame_this_id): Update.
9779 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9780 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9781 * maint.c (maintenance_translate_address): Update.
9782 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9783 (frob_address): New function.
9784 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9785 frob_address. Rename parameter to "pc_in".
9786 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9787 addresses.
9788 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9789 Update.
9790 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9791 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9792 * objc-lang.c (find_objc_msgsend): Update.
9793 * objfiles.c (objfile_relocate1): Update.
9794 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9795 * p-valprint.c (pascal_val_print): Update.
9796 * parse.c (write_exp_msymbol): Update.
9797 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9798 (ppc_elfv2_skip_entrypoint): Update.
9799 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9800 * printcmd.c (build_address_symbolic, msym_info)
9801 (address_info): Update.
9802 * proc-service.c (ps_pglobal_lookup): Update.
9803 * psymtab.c (find_pc_sect_psymtab_closer)
9804 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9805 Change msymbol parameter to bound_minimal_symbol.
9806 * ravenscar-thread.c (get_running_thread_id): Update.
9807 * remote.c (remote_check_symbols): Update.
9808 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9809 address.
9810 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9811 * solib-dsbt.c (lm_base): Update.
9812 * solib-frv.c (lm_base, main_got): Update.
9813 * solib-irix.c (locate_base): Update.
9814 * solib-som.c (som_solib_create_inferior_hook)
9815 (link_map_start): Update.
9816 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9817 * solib-svr4.c (elf_locate_base, enable_break): Update.
9818 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9819 (flush_ea_cache): Update.
9820 * stabsread.c (define_symbol, scan_file_globals): Update.
9821 * stack.c (find_frame_funname): Update.
9822 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9823 (debug_qf_find_pc_sect_symtab): Update.
9824 * symfile.c (simple_read_overlay_table)
9825 (simple_overlay_update): Update.
9826 * symfile.h (struct quick_symbol_functions)
9827 <find_pc_sect_symtab>: Change type of msymbol to
9828 bound_minimal_symbol.
9829 * symmisc.c (dump_msymbols): Update.
9830 * symtab.c (find_pc_sect_symtab_via_partial)
9831 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9832 (search_symbols, print_msymbol_info): Update.
9833 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9834 (MSYMBOL_VALUE_ADDRESS): Redefine.
9835 (BMSYMBOL_VALUE_ADDRESS): New macro.
9836 * tracepoint.c (scope_info): Update.
9837 * tui/tui-disasm.c (tui_find_disassembly_address)
9838 (tui_get_begin_asm_address): Update.
9839 * valops.c (find_function_in_inferior): Update.
9840 * value.c (value_static_field, value_fn_field): Update.
9841
9842 2014-02-26 Tom Tromey <tromey@redhat.com>
9843
9844 * ada-lang.c (ada_update_initial_language): Update.
9845 (ada_main_name, ada_has_this_exception_support): Update.
9846 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9847 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9848 * arm-tdep.c (arm_skip_stub): Update.
9849 * auxv.c (ld_so_xfer_auxv): Update.
9850 * avr-tdep.c (avr_scan_prologue): Update.
9851 * ax-gdb.c (gen_var_ref): Update.
9852 * breakpoint.c (struct breakpoint_objfile_data)
9853 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9854 type to bound_minimal_symbol.
9855 (create_overlay_event_breakpoint)
9856 (create_longjmp_master_breakpoint)
9857 (create_std_terminate_master_breakpoint)
9858 (create_exception_master_breakpoint): Update.
9859 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9860 * c-exp.y (classify_name): Update.
9861 * coffread.c (coff_symfile_read): Update.
9862 * common/agent.c (agent_look_up_symbols): Update.
9863 * d-lang.c (d_main_name): Update.
9864 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9865 * dec-thread.c (enable_dec_thread): Update.
9866 * dwarf2loc.c (call_site_to_target_addr): Update.
9867 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9868 * eval.c (evaluate_subexp_standard): Update.
9869 * findvar.c (struct minsym_lookup_data) <result>: Change type
9870 to bound_minimal_symbol.
9871 <objfile>: Remove.
9872 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9873 * frame.c (inside_main_func): Update.
9874 * frv-tdep.c (frv_frame_this_id): Update.
9875 * gcore.c (call_target_sbrk): Update.
9876 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9877 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9878 Update.
9879 * go-lang.c (go_main_name): Update.
9880 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9881 (hppa_hpux_find_import_stub_for_addr): Update.
9882 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9883 Update. Change return type.
9884 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9885 type.
9886 * jit.c (jit_breakpoint_re_set_internal): Update.
9887 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9888 Update.
9889 * linux-nat.c (get_signo): Update.
9890 * linux-thread-db.c (inferior_has_bug): Update
9891 * m32c-tdep.c (m32c_return_value)
9892 (m32c_m16c_address_to_pointer): Update.
9893 * m32r-tdep.c (m32r_frame_this_id): Update.
9894 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9895 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9896 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9897 lookup_minimal_symbol. Change return type.
9898 (lookup_minimal_symbol): Remove.
9899 (lookup_bound_minimal_symbol): Update.
9900 (lookup_minimal_symbol_text): Change return type.
9901 (lookup_minimal_symbol_solib_trampoline): Change return type.
9902 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9903 (lookup_minimal_symbol_solib_trampoline): Change return type.
9904 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9905 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9906 (value_nsstring, find_imps): Update.
9907 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9908 * p-lang.c (pascal_main_name): Update.
9909 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9910 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9911 * proc-service.c (ps_pglobal_lookup): Update.
9912 * ravenscar-thread.c (get_running_thread_msymbol): Change
9913 return type.
9914 (has_ravenscar_runtime, get_running_thread_id): Update.
9915 * remote.c (remote_check_symbols): Update.
9916 * sol-thread.c (ps_pglobal_lookup): Update.
9917 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9918 * solib-dsbt.c (lm_base): Update.
9919 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9920 Update.
9921 * solib-irix.c (locate_base): Update.
9922 * solib-som.c (som_solib_create_inferior_hook)
9923 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9924 Update.
9925 * solib-spu.c (spu_enable_break): Update.
9926 * solib-svr4.c (elf_locate_base, enable_break): Update.
9927 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9928 (flush_ea_cache): Update.
9929 * stabsread.c (define_symbol): Update.
9930 * symfile.c (simple_read_overlay_table): Update.
9931 * symtab.c (find_pc_sect_line): Update.
9932 * tracepoint.c (scope_info): Update.
9933 * tui-disasm.c (tui_get_begin_asm_address): Update.
9934 * value.c (value_static_field): Update.
9935
9936 2014-02-26 Tom Tromey <tromey@redhat.com>
9937
9938 * minsyms.c (prim_record_minimal_symbol_full): Use
9939 SET_MSYMBOL_VALUE_ADDRESS.
9940 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9941 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9942 SET_MSYMBOL_VALUE_ADDRESS.
9943 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9944 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9945
9946 2014-02-26 Tom Tromey <tromey@redhat.com>
9947
9948 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9949 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9950 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9951 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9952 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9953 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9954 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9955 * ada-lang.c (ada_main_name): Update.
9956 (ada_lookup_simple_minsym): Update.
9957 (ada_make_symbol_completion_list): Update.
9958 (ada_add_standard_exceptions): Update.
9959 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9960 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9961 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9962 * arm-tdep.c (skip_prologue_function): Update.
9963 (arm_skip_stack_protector, arm_skip_stub): Update.
9964 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9965 (arm_wince_skip_main_prologue): Update.
9966 * auxv.c (ld_so_xfer_auxv): Update.
9967 * avr-tdep.c (avr_scan_prologue): Update.
9968 * ax-gdb.c (gen_var_ref): Update.
9969 * block.c (call_site_for_pc): Update.
9970 * blockframe.c (get_pc_function_start): Update.
9971 (find_pc_partial_function_gnu_ifunc): Update.
9972 * breakpoint.c (create_overlay_event_breakpoint): Update.
9973 (create_longjmp_master_breakpoint): Update.
9974 (create_std_terminate_master_breakpoint): Update.
9975 (create_exception_master_breakpoint): Update.
9976 (resolve_sal_pc): Update.
9977 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9978 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9979 Update.
9980 * c-valprint.c (c_val_print): Update.
9981 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9982 * coffread.c (coff_symfile_read): Update.
9983 * common/agent.c (agent_look_up_symbols): Update.
9984 * dbxread.c (find_stab_function_addr): Update.
9985 (end_psymtab): Update.
9986 * dwarf2loc.c (call_site_to_target_addr): Update.
9987 (func_verify_no_selftailcall): Update.
9988 (tailcall_dump): Update.
9989 (call_site_find_chain_1): Update.
9990 (dwarf_expr_reg_to_entry_parameter): Update.
9991 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9992 (elf_gnu_ifunc_resolve_by_got): Update.
9993 * f-valprint.c (info_common_command): Update.
9994 * findvar.c (read_var_value): Update.
9995 * frame.c (get_prev_frame_1): Update.
9996 (inside_main_func): Update.
9997 * frv-tdep.c (frv_skip_main_prologue): Update.
9998 (frv_frame_this_id): Update.
9999 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10000 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10001 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10002 (gnuv3_skip_trampoline): Update.
10003 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10004 (hppa64_hpux_in_solib_call_trampoline): Update.
10005 (hppa_hpux_skip_trampoline_code): Update.
10006 (hppa64_hpux_search_dummy_call_sequence): Update.
10007 (hppa_hpux_find_import_stub_for_addr): Update.
10008 (hppa_hpux_find_dummy_bpaddr): Update.
10009 * hppa-tdep.c (hppa_symbol_address)
10010 (hppa_lookup_stub_minimal_symbol): Update.
10011 * i386-tdep.c (i386_skip_main_prologue): Update.
10012 (i386_pe_skip_trampoline_code): Update.
10013 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10014 * infcall.c (get_function_name): Update.
10015 * infcmd.c (until_next_command): Update.
10016 * jit.c (jit_breakpoint_re_set_internal): Update.
10017 (jit_inferior_init): Update.
10018 * linespec.c (minsym_found): Update.
10019 (add_minsym): Update.
10020 * linux-fork.c (info_checkpoints_command): Update.
10021 * linux-nat.c (get_signo): Update.
10022 * linux-thread-db.c (inferior_has_bug): Update.
10023 * m32c-tdep.c (m32c_return_value): Update.
10024 (m32c_m16c_address_to_pointer): Update.
10025 (m32c_m16c_pointer_to_address): Update.
10026 * m32r-tdep.c (m32r_frame_this_id): Update.
10027 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10028 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10029 * maint.c (maintenance_translate_address): Update.
10030 * minsyms.c (add_minsym_to_hash_table): Update.
10031 (add_minsym_to_demangled_hash_table): Update.
10032 (msymbol_objfile): Update.
10033 (lookup_minimal_symbol): Update.
10034 (iterate_over_minimal_symbols): Update.
10035 (lookup_minimal_symbol_text): Update.
10036 (lookup_minimal_symbol_by_pc_name): Update.
10037 (lookup_minimal_symbol_solib_trampoline): Update.
10038 (lookup_minimal_symbol_by_pc_section_1): Update.
10039 (lookup_minimal_symbol_and_objfile): Update.
10040 (prim_record_minimal_symbol_full): Update.
10041 (compare_minimal_symbols): Update.
10042 (compact_minimal_symbols): Update.
10043 (build_minimal_symbol_hash_tables): Update.
10044 (install_minimal_symbols): Update.
10045 (terminate_minimal_symbol_table): Update.
10046 (find_solib_trampoline_target): Update.
10047 (minimal_symbol_upper_bound): Update.
10048 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10049 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10050 (mips_skip_pic_trampoline_code): Update.
10051 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10052 * objc-lang.c (selectors_info): Update.
10053 (classes_info): Update.
10054 (find_methods): Update.
10055 (find_imps): Update.
10056 (find_objc_msgsend): Update.
10057 * objfiles.c (objfile_relocate1): Update.
10058 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10059 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10060 * p-valprint.c (pascal_val_print): Update.
10061 * parse.c (write_exp_msymbol): Update.
10062 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10063 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10064 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10065 * printcmd.c (build_address_symbolic): Update.
10066 (sym_info): Update.
10067 (address_info): Update.
10068 * proc-service.c (ps_pglobal_lookup): Update.
10069 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10070 (find_pc_sect_psymtab): Update.
10071 * python/py-framefilter.c (py_print_frame): Update.
10072 * ravenscar-thread.c (get_running_thread_id): Update.
10073 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10074 Update.
10075 * remote.c (remote_check_symbols): Update.
10076 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10077 (rs6000_skip_trampoline_code): Update.
10078 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10079 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10080 * solib-dsbt.c (lm_base): Update.
10081 * solib-frv.c (lm_base): Update.
10082 (main_got): Update.
10083 * solib-irix.c (locate_base): Update.
10084 * solib-som.c (som_solib_create_inferior_hook): Update.
10085 (som_solib_desire_dynamic_linker_symbols): Update.
10086 (link_map_start): Update.
10087 * solib-spu.c (spu_enable_break): Update.
10088 (ocl_enable_break): Update.
10089 * solib-svr4.c (elf_locate_base): Update.
10090 (enable_break): Update.
10091 * spu-tdep.c (spu_get_overlay_table): Update.
10092 (spu_catch_start): Update.
10093 (flush_ea_cache): Update.
10094 * stabsread.c (define_symbol): Update.
10095 (scan_file_globals): Update.
10096 * stack.c (find_frame_funname): Update.
10097 (frame_info): Update.
10098 * symfile.c (simple_read_overlay_table): Update.
10099 (simple_overlay_update): Update.
10100 * symmisc.c (dump_msymbols): Update.
10101 * symtab.c (fixup_section): Update.
10102 (find_pc_sect_line): Update.
10103 (skip_prologue_sal): Update.
10104 (search_symbols): Update.
10105 (print_msymbol_info): Update.
10106 (rbreak_command): Update.
10107 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10108 (completion_list_objc_symbol): Update.
10109 (default_make_symbol_completion_list_break_on): Update.
10110 * tracepoint.c (scope_info): Update.
10111 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10112 (tui_get_begin_asm_address): Update.
10113 * valops.c (find_function_in_inferior): Update.
10114 * value.c (value_static_field): Update.
10115 (value_fn_field): Update.
10116
10117 2014-02-26 Tom Tromey <tromey@redhat.com>
10118
10119 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10120 bound minimal symbols. Move code that knows about minsym
10121 table layout...
10122 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10123 function.
10124 * minsyms.h (minimal_symbol_upper_bound): Declare.
10125 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10126 minimal_symbol_upper_bound.
10127
10128 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10129
10130 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10131 Use the type's name if its basic type does not have a tag.
10132
10133 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10134
10135 * dwarf2read.c (read_subrange_type): Add comment.
10136
10137 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10138
10139 * dwarf2read.c (update_enumeration_type_from_children): New
10140 function, mostly extracted from process_structure_scope.
10141 (read_enumeration_type): Call update_enumeration_type_from_children.
10142 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10143 and flag_flag_enum fields.
10144
10145 2014-02-26 Pedro Alves <palves@redhat.com>
10146
10147 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10148 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10149 to_xfer_partial method.
10150
10151 2014-02-26 Pedro Alves <palves@redhat.com>
10152
10153 * target.c (complete_target_initialization): Don't install
10154 default_xfer_partial as to_xfer_partial hook.
10155 (nomemory): Delete.
10156 (update_current_target): Don't INHERIT nor de_fault
10157 deprecated_xfer_memory. Delete de_fault macro.
10158 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10159 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10160 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10161 field.
10162
10163 2014-02-26 Pedro Alves <palves@redhat.com>
10164
10165 * go32-nat.c (my_write_child): New function.
10166 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10167 (go32_xfer_partial): New function.
10168 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10169 Instead install a to_xfer_partial hook.
10170
10171 2014-02-26 Pedro Alves <palves@redhat.com>
10172
10173 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10174 to_xfer_partial helper. Rewrite.
10175 (procfs_xfer_partial): New function.
10176 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10177 Install a to_xfer_partial hook.
10178
10179 2014-02-26 Pedro Alves <palves@redhat.com>
10180
10181 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10182 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10183 (m32r_xfer_partial): New function.
10184 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10185 Install a to_xfer_partial hook.
10186
10187 2014-02-26 Pedro Alves <palves@redhat.com>
10188
10189 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10190 helper.
10191 (mips_xfer_partial): New function.
10192 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10193 hook. Install a to_xfer_partial hook.
10194
10195 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10196
10197 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10198 * gdbtypes.c (create_array_type_with_stride): New function,
10199 renaming create_array_type, but with an added parameter
10200 called "bit_stride".
10201 (create_array_type): Re-implement using
10202 create_array_type_with_stride.
10203 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10204 and DW_AT_bit_stride attributes.
10205
10206 2014-02-26 Pedro Alves <palves@redhat.com>
10207
10208 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10209 task-specific breakpoints.
10210
10211 2014-02-25 Pedro Alves <palves@redhat.com>
10212
10213 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10214 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10215
10216 2014-02-25 Stan Shebs <stan@codesourcery.com>
10217
10218 * defs.h: Annotate comments for Doxygen.
10219
10220 2014-02-25 Tom Tromey <tromey@redhat.com>
10221
10222 * target.h (target_ignore): Don't declare.
10223 * target.c (target_ignore): Remove.
10224
10225 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10226
10227 PR gdb/16626
10228 * auto-load.c (auto_load_objfile_script_1): Change filename to
10229 debugfile.
10230
10231 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10232
10233 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10234 documentation. Adjust prototype to match the target_ops
10235 to_xfer_partial method. Adjust implementation accordingly.
10236
10237 2014-02-25 Hui Zhu <hui@codesourcery.com>
10238
10239 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10240 to_traceframe_info.
10241
10242 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10243
10244 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10245 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10246 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10247 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10248 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10249 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10250 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10251 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10252 New constants.
10253 (rl78_register_type): Use a data pointer type for SP and
10254 new pseudo registers mentioned above. Use a 16 bit integer
10255 type for all other register pairs.
10256 (rl78_register_name, rl78_g10_register_name): Update for
10257 new pseudo registers.
10258 (rl78_pseudo_register_read): Likewise.
10259 (rl78_pseudo_register_write): Likewise.
10260 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10261 to the newly added pseudo registers.
10262
10263 2014-02-24 Doug Evans <dje@google.com>
10264
10265 * value.c (record_latest_value): Fix comment.
10266 * printcmd.c (print_command_1): Remove code to handle -1 return from
10267 record_latest_value.
10268
10269 2014-02-24 Pedro Alves <palves@redhat.com>
10270
10271 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10272 deprecated_xfer_memory hook.
10273 (procfs_xfer_partial): Call procfs_xfer_memory instead
10274 of the deprecated_xfer_memory target hook.
10275 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10276 helper.
10277
10278 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10279
10280 * windows-nat.c (windows_xfer_shared_libraries): Return
10281 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10282 requested object is TARGET_OBJECT_LIBRARIES.
10283
10284 2014-02-24 Yao Qi <yao@codesourcery.com>
10285
10286 * target.h (enum target_xfer_status)
10287 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10288 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10289 explicitly. New.
10290 * corefile.c (memory_error_message): User updated.
10291 * exec.c (section_table_read_available_memory): Likewise.
10292 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10293 * target.c (target_xfer_status_to_string): Likewise.
10294 (raw_memory_xfer_partial): Likewise.
10295 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10296 * valops.c (read_value_memory): Likewise.
10297 * exec.h: Update comments.
10298
10299 2014-02-24 Yao Qi <yao@codesourcery.com>
10300
10301 * target.c (target_xfer_status_to_string): Rename argument err
10302 to status.
10303 * target.h (target_xfer_status_to_string): Update declaration.
10304 Replace target_xfer_error_to_string with
10305 target_xfer_status_to_string in comment.
10306
10307 2014-02-24 Yao Qi <yao@codesourcery.com>
10308
10309 * mips-linux-nat.c (super_close): Update its type.
10310 (mips_linux_close): Pass 'self' to super_close.
10311
10312 2014-02-24 Yao Qi <yao@codesourcery.com>
10313
10314 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10315 * corefile.c (read_memory): Adjusted.
10316 * target.c (target_write_with_progress): Adjusted.
10317
10318 2014-02-23 Yao Qi <yao@codesourcery.com>
10319
10320 Revert two patches:
10321
10322 2013-10-25 Yao Qi <yao@codesourcery.com>
10323
10324 * remote.c (remote_traceframe_info): Return early if
10325 traceframe is not selected.
10326
10327 2013-07-19 Yao Qi <yao@codesourcery.com>
10328
10329 * target.c (update_current_target): Change the default action
10330 of 'to_traceframe_info' from tcomplain to return_zero.
10331 * target.h (struct target_ops) <to_traceframe_info>: Add more
10332 comments.
10333
10334 2014-02-23 Yao Qi <yao@codesourcery.com>
10335
10336 * valops.c (read_value_memory): Rewrite it. Call
10337 target_xfer_partial in a loop.
10338 * exec.h (section_table_available_memory): Remove declaration.
10339 Move comments to ...
10340 * exec.c (section_table_available_memory): ... here. Make it
10341 static.
10342
10343 2014-02-23 Yao Qi <yao@codesourcery.com>
10344
10345 * exec.c (section_table_read_available_memory): New function.
10346 * exec.h (section_table_read_available_memory): Declare.
10347 * ctf.c (ctf_xfer_partial): Call
10348 section_table_read_available_memory.
10349 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10350
10351 2014-02-23 Yao Qi <yao@codesourcery.com>
10352
10353 * ctf.c (ctf_xfer_partial): Move code to ...
10354 * exec.c (exec_read_partial_read_only): ... it. New function.
10355 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10356 * tracefile.c: Include "exec.h".
10357 * exec.h (exec_read_partial_read_only): Declare.
10358
10359 2014-02-23 Yao Qi <yao@codesourcery.com>
10360
10361 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10362 (tfile_has_memory): Remove.
10363 (init_tfile_ops): Don't set fields to_has_all_memory and
10364 to_has_memory of tfile_ops.
10365 * tracefile.c (tracefile_has_all_memory): New function.
10366 (tracefile_has_memory): New function.
10367 (init_tracefile_ops): Initialize fields to_has_all_memory and
10368 to_has_memory of 'ops'.
10369
10370 2014-02-23 Yao Qi <yao@codesourcery.com>
10371
10372 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10373 (ctf_thread_alive, ctf_get_trace_status): Remove.
10374 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10375 init_tracefile_ops.
10376 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10377 (tfile_has_stack, tfile_has_registers): Remove.
10378 (tfile_thread_alive): Remove.
10379 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10380 init_tracefile_ops.
10381 * tracefile.c (tracefile_has_stack): New function.
10382 (tracefile_has_registers): New function.
10383 (tracefile_thread_alive): New function.
10384 (tracefile_get_trace_status): New function.
10385 (init_tracefile_ops): New function.
10386 * tracefile.h (init_tracefile_ops): Declare.
10387
10388 2014-02-23 Yao Qi <yao@codesourcery.com>
10389
10390 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10391 (O_LARGEFILE): Likewise.
10392 (tfile_ops): Likewise.
10393 (TRACE_HEADER_SIZE): Likewise.
10394 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10395 (cur_data_size): Likewise.
10396 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10397 (tfile_close, tfile_files_info): Likewise.
10398 (tfile_get_trace_status): Likewise.
10399 (tfile_get_tracepoint_status): Likewise.
10400 (tfile_get_traceframe_address): Likewise.
10401 (tfile_trace_find, match_blocktype): Likewise.
10402 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10403 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10404 (tfile_get_trace_state_variable_value): Likewise.
10405 (tfile_has_all_memory, tfile_has_memory): Likewise.
10406 (tfile_has_stack, tfile_has_registers): Likewise.
10407 (tfile_thread_alive, build_traceframe_info): Likewise.
10408 (tfile_traceframe_info, init_tfile_ops): Likewise.
10409 (_initialize_tracepoint): Don't call init_tfile_ops
10410 and add_target_with_completer.
10411 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10412 exec.h, completer.h and filenames.h.
10413 (_initialize_tracefile_tfile): New function.
10414
10415 2014-02-23 Yao Qi <yao@codesourcery.com>
10416
10417 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10418 tracefile-tfile.o.
10419 (HFILES_NO_SRCDIR): Add tracefile.h.
10420 * ctf.c: Include "tracefile.h".
10421 * tracefile.h: New file.
10422 * tracefile.c: New file
10423 * tracefile-tfile.c: New file.
10424 * tracepoint.c: Include "tracefile.h".
10425 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10426 (stop_reason_names): Add const.
10427 (trace_file_writer_xfree): Move it to tracefile.c.
10428 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10429 (trace_save_ctf): Likewise.
10430 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10431 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10432 (tfile_write_header, tfile_write_regblock_type): Likewise.
10433 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10434 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10435 (tfile_write_raw_data, tfile_end): Likewise.
10436 (tfile_trace_file_writer_new): Likewise.
10437 (free_uploaded_tp): Make it extern.
10438 (free_uploaded_tsv): Make it extern.
10439 (_initialize_tracepoint): Move code to register command 'tsave'
10440 to tracefile.c.
10441 * tracepoint.h (stop_reason_names): Declare.
10442 (struct trace_frame_write_ops): Move it to tracefile.h.
10443 (struct trace_file_write_ops): Likewise.
10444 (struct trace_file_writer): Likewise.
10445 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10446
10447 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10448
10449 PR gdb/16594
10450 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10451 process name.
10452 (get_cores_used_by_process): New parameter num_cores, use it.
10453 (linux_xfer_osdata_processes): Pass num_cores to it.
10454 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10455 process name.
10456
10457 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10458
10459 * target.c (memory_xfer_partial): Fix length arg in call to
10460 breakpoint_xfer_memory.
10461
10462 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10463
10464 PR tdep/16397
10465 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10466 number comes after the + or - signs. Adjust length of register
10467 name to be extracted.
10468
10469 2014-02-20 Tom Tromey <tromey@redhat.com>
10470
10471 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10472 (ada_varobj_ops): Mark "extern".
10473
10474 2014-02-20 Tom Tromey <tromey@redhat.com>
10475
10476 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10477
10478 2014-02-20 Doug Evans <xdje42@gmail.com>
10479
10480 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10481 All callers updated.
10482 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10483 All callers updated.
10484 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10485 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10486
10487 2014-02-20 lin zuojian <manjian2006@gmail.com>
10488 Joel Brobecker <brobecker@adacore.com>
10489 Doug Evans <xdje42@gmail.com>
10490
10491 PR symtab/16581
10492 * dwarf2read.c (struct die_info): New member in_process.
10493 (reset_die_in_process): New function.
10494 (process_die): Set it at the start, reset when returning.
10495 (inherit_abstract_dies): Only call process_die if origin_child_die
10496 not already being processed.
10497
10498 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10499
10500 * windows-nat.c (handle_unload_dll): Add function documentation.
10501 (do_initial_windows_stuff): Add comment explaining why we wait
10502 until after inferior initialization has finished before
10503 processing all DLLs.
10504
10505 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10506
10507 * windows-nat.c (get_module_name): Delete.
10508 (windows_get_exec_module_filename): New function, mostly
10509 inspired from get_module_name.
10510 (windows_pid_to_exec_file): Replace call to get_module_name
10511 by call to windows_get_exec_module_filename.
10512
10513 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10514
10515 * windows-nat.c (handle_load_dll): Rewrite this function's
10516 introductory comment. Remove code using get_module_name
10517 to get the DLL's name.
10518
10519 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10520
10521 * windows-nat.c (get_windows_debug_event): Ignore
10522 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10523 if windows_initialization_done == 0.
10524 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10525 Adjust implementation to always load all DLLs.
10526 (do_initial_windows_stuff): Replace call to
10527 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10528
10529 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10530
10531 * windows-nat.c (_initialize_windows_nat): Deprecate the
10532 "dll-symbols" command. Turn the "add-shared-symbol-files"
10533 and "assf" aliases into commands, and deprecate them as well.
10534 * NEWS: Add entry explaining that "dll-symbols" and its two
10535 aliases are now deprecated.
10536
10537 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10538
10539 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10540 new-line in debug string. Remove trailing spaces.
10541
10542 2014-02-19 Stan Shebs <stan@codesourcery.com>
10543
10544 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10545
10546 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10547
10548 * NEWS: Add entry for the new feature
10549 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10550 and class values.
10551
10552 2014-02-19 Stan Shebs <stan@codesourcery.com>
10553
10554 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10555
10556 2014-02-19 Pedro Alves <palves@redhat.com>
10557
10558 * common/ptid.h (struct ptid): Mention that process_stratum
10559 targets should prefer ptid.lwp.
10560
10561 2014-02-19 Pedro Alves <palves@redhat.com>
10562
10563 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10564 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10565 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10566 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10567 store remote thread ids rather than ptid.tid.
10568 (_initialize_remote): Adjust.
10569
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target.c (target_get_unwinder): Rewrite.
10573 (target_get_tailcall_unwinder): Rewrite.
10574 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10575 (record_btrace_to_get_tailcall_unwinder): New function.
10576 (init_record_btrace_ops): Update.
10577 * target.h (struct target_ops) <to_get_unwinder,
10578 to_get_tailcall_unwinder>: Now function pointers. Use
10579 TARGET_DEFAULT_RETURN.
10580
10581 2014-02-19 Tom Tromey <tromey@redhat.com>
10582
10583 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10584 argument.
10585 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10586
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10590 directly.
10591 * target-delegates.c: Rebuild.
10592 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10593 TARGET_DEFAULT_FUNC.
10594 * target.c (default_target_decr_pc_after_break): Rename from
10595 forward_target_decr_pc_after_break. Simplify.
10596 (target_decr_pc_after_break): Rely on delegation.
10597
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * target.c (update_current_target): Do not INHERIT to_doc or
10601 to_magic. Do not de_fault to_open or to_close.
10602
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * gcore.h (objfile_find_memory_regions): Declare.
10606 * gcore.c (objfile_find_memory_regions): No longer static. Add
10607 "self" argument.
10608 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10609 * exec.c: Include gcore.h.
10610 (exec_set_find_memory_regions): Remove.
10611 (exec_find_memory_regions): Remove.
10612 (exec_do_find_memory_regions): Remove.
10613 (init_exec_ops): Update.
10614 * defs.h (exec_set_find_memory_regions): Remove.
10615
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * target-delegates.c: Rebuild.
10619 * target.h (struct target_ops) <to_extra_thread_info,
10620 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10621 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10622 not 0, in TARGET_DEFAULT_RETURN.
10623
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target.c (complete_target_initialization): Remove casts. Use
10627 return_zero_has_execution.
10628 (return_zero): Add "ignore" argument.
10629 (return_zero_has_execution): New function.
10630 (init_dummy_target): Remove casts. Use
10631 return_zero_has_execution.
10632
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10634
10635 * target.c (update_current_target): Update comments. Do not
10636 INHERIT to_stratum.
10637
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10639
10640 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10641 needed.
10642 * corelow.c (core_read_description): Delegate when needed.
10643 * remote.c (remote_read_description): Delegate when needed.
10644 * target-delegates.c: Rebuild.
10645 * target.c (target_read_description): Rewrite.
10646 * target.h (struct target_ops) <to_read_description>: Update
10647 comment. Use TARGET_DEFAULT_RETURN.
10648
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target-delegates.c: Rebuild.
10652 * target.c (update_current_target): Don't inherit or default
10653 to_can_run.
10654 (find_default_run_target): Check against delegate_can_run.
10655 * target.h (struct target_ops) <to_can_run>: Use
10656 TARGET_DEFAULT_RETURN.
10657
10658 2014-02-19 Tom Tromey <tromey@redhat.com>
10659
10660 * target-delegates.c: Rebuild.
10661 * target.c (target_disconnect): Unconditionally delegate.
10662 * target.h (struct target_ops) <to_disconnect>: Use
10663 TARGET_DEFAULT_NORETURN.
10664
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * record.c (record_stop): Unconditionally delegate.
10668 * target-delegates.c: Rebuild.
10669 * target.c (target_stop_recording): Unconditionally delegate.
10670 * target.h (struct target_ops) <to_stop_recording>: Use
10671 TARGET_DEFAULT_IGNORE.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target-delegates.c: Rebuild.
10676 * target.c (target_enable_btrace): Unconditionally delegate.
10677 * target.h (struct target_ops) <to_enable_btrace>: Use
10678 TARGET_DEFAULT_NORETURN.
10679
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target-delegates.c: Rebuild.
10683 * target.c (target_read_btrace): Unconditionally delegate.
10684 * target.h (struct target_ops) <to_read_btrace>: Use
10685 TARGET_DEFAULT_NORETURN.
10686
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target-delegates.c: Rebuild.
10690 * target.c (target_teardown_btrace): Unconditionally delegate.
10691 * target.h (struct target_ops) <to_teardown_btrace>: Use
10692 TARGET_DEFAULT_NORETURN.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (target_disable_btrace): Unconditionally delegate.
10698 * target.h (struct target_ops) <to_disable_btrace>: Use
10699 TARGET_DEFAULT_NORETURN.
10700
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target-delegates.c: Rebuild.
10704 * target.c (default_search_memory): New function.
10705 (simple_search_memory): Update comment.
10706 (target_search_memory): Unconditionally delegate.
10707 * target.h (struct target_ops) <to_search_memory>: Use
10708 TARGET_DEFAULT_FUNC.
10709
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * auxv.c (default_auxv_parse): No longer static.
10713 (target_auxv_parse): Unconditionally delegate.
10714 * auxv.h (default_auxv_parse): Declare.
10715 * target-delegates.c: Rebuild.
10716 * target.c: Include auxv.h.
10717 * target.h (struct target_ops) <to_auxv_parse>: Use
10718 TARGET_DEFAULT_FUNC.
10719
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target-delegates.c: Rebuild.
10723 * target.c (target_memory_map): Unconditionally delegate.
10724 * target.h (struct target_ops) <to_memory_map>: Use
10725 TARGET_DEFAULT_RETURN.
10726
10727 2014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * target-delegates.c: Rebuild.
10730 * target.c (target_thread_alive): Unconditionally delegate.
10731 * target.h (struct target_ops) <to_thread_alive>: Use
10732 TARGET_DEFAULT_RETURN.
10733
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target-delegates.c: Rebuild.
10737 * target.c (target_save_record): Unconditionally delegate.
10738 * target.h (struct target_ops) <to_save_record>: Use
10739 TARGET_DEFAULT_NORETURN.
10740
10741 2014-02-19 Tom Tromey <tromey@redhat.com>
10742
10743 * target-delegates.c: Rebuild.
10744 * target.c (target_delete_record): Unconditionally delegate.
10745 * target.h (struct target_ops) <to_delete_record>: Use
10746 TARGET_DEFAULT_NORETURN.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (target_record_is_replaying): Unconditionally
10752 delegate.
10753 * target.h (struct target_ops) <to_record_is_replaying>: Use
10754 TARGET_DEFAULT_RETURN.
10755
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target-delegates.c: Rebuild.
10759 * target.c (target_goto_record_begin): Unconditionally delegate.
10760 * target.h (struct target_ops) <to_goto_record_begin>: Use
10761 TARGET_DEFAULT_NORETURN.
10762
10763 2014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * target-delegates.c: Rebuild.
10766 * target.c (target_goto_record_end): Unconditionally delegate.
10767 * target.h (struct target_ops) <to_goto_record_end>: Use
10768 TARGET_DEFAULT_NORETURN.
10769
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * target-delegates.c: Rebuild.
10773 * target.c (target_goto_record): Unconditionally delegate.
10774 * target.h (struct target_ops) <to_goto_record>: Use
10775 TARGET_DEFAULT_NORETURN.
10776
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * target-delegates.c: Rebuild.
10780 * target.c (target_insn_history): Unconditionally delegate.
10781 * target.h (struct target_ops) <to_insn_history>: Use
10782 TARGET_DEFAULT_NORETURN.
10783
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target-delegates.c: Rebuild.
10787 * target.c (target_insn_history_from): Unconditionally delegate.
10788 * target.h (struct target_ops) <to_insn_history_from>: Use
10789 TARGET_DEFAULT_NORETURN.
10790
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target-delegates.c: Rebuild.
10794 * target.c (target_insn_history_range): Unconditionally delegate.
10795 * target.h (struct target_ops) <to_insn_history_range>: Use
10796 TARGET_DEFAULT_NORETURN.
10797
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (target_call_history): Unconditionally delegate.
10802 * target.h (struct target_ops) <to_call_history>: Use
10803 TARGET_DEFAULT_NORETURN.
10804
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target-delegates.c: Rebuild.
10808 * target.c (target_call_history_from): Unconditionally delegate.
10809 * target.h (struct target_ops) <to_call_history_from>: Use
10810 TARGET_DEFAULT_NORETURN.
10811
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_call_history_range): Unconditionally delegate.
10816 * target.h (struct target_ops) <to_call_history_range>: Use
10817 TARGET_DEFAULT_NORETURN.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_verify_memory): Unconditionally delegate.
10823 * target.h (struct target_ops) <to_verify_memory>: Use
10824 TARGET_DEFAULT_NORETURN.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_core_of_thread): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_core_of_thread>: Use
10831 TARGET_DEFAULT_RETURN.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_flash_done): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_flash_done>: Use
10838 TARGET_DEFAULT_NORETURN.
10839
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target-delegates.c: Rebuild.
10843 * target.c (target_flash_erase): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_flash_erase>: Use
10845 TARGET_DEFAULT_NORETURN.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target-delegates.c: Rebuild.
10850 * target.c (target_get_section_table): Unconditionally delegate.
10851 * target.h (struct target_ops) <to_get_section_table>: Use
10852 TARGET_DEFAULT_RETURN.
10853
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_pid_to_str): Unconditionally delegate.
10858 (init_dummy_target): Don't initialize to_pid_to_str.
10859 (default_pid_to_str): Rename from dummy_pid_to_str.
10860 * target.h (struct target_ops) <to_pid_to_str>: Use
10861 TARGET_DEFAULT_FUNC.
10862
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target-delegates.c: Rebuild.
10866 * target.c (target_find_new_threads): Unconditionally delegate.
10867 * target.h (struct target_ops) <to_find_new_threads>: Use
10868 TARGET_DEFAULT_RETURN.
10869
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target-delegates.c: Rebuild.
10873 * target.c (target_program_signals): Unconditionally delegate.
10874 * target.h (struct target_ops) <to_program_signals>: Use
10875 TARGET_DEFAULT_IGNORE.
10876
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target-delegates.c: Rebuild.
10880 * target.c (target_pass_signals): Unconditionally delegate.
10881 * target.h (struct target_ops) <to_pass_signals>: Use
10882 TARGET_DEFAULT_IGNORE.
10883
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * target-delegates.c: Rebuild.
10887 * target.c (default_mourn_inferior): New function.
10888 (target_mourn_inferior): Unconditionally delegate.
10889 * target.h (struct target_ops) <to_mourn_inferior>: Use
10890 TARGET_DEFAULT_FUNC.
10891
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target-delegates.c: Rebuild.
10895 * target.c (default_follow_fork): New function.
10896 (target_follow_fork): Unconditionally delegate.
10897 * target.h (struct target_ops) <to_follow_fork>: Use
10898 TARGET_DEFAULT_FUNC.
10899
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * target-delegates.c: Rebuild.
10903 * target.c (target_kill): Unconditionally delegate.
10904 * target.h (struct target_ops) <to_kill>: Use
10905 TARGET_DEFAULT_NORETURN.
10906
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target-delegates.c: Rebuild.
10910 * target.c (target_masked_watch_num_registers): Unconditionally
10911 delegate.
10912 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10913 Use TARGET_DEFAULT_RETURN.
10914
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10916
10917 * target-delegates.c: Rebuild.
10918 * target.c (target_remove_mask_watchpoint): Unconditionally
10919 delegate.
10920 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10921 TARGET_DEFAULT_RETURN.
10922
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target-delegates.c: Rebuild.
10926 * target.c (target_insert_mask_watchpoint): Unconditionally
10927 delegate.
10928 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10929 TARGET_DEFAULT_RETURN.
10930
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target-delegates.c: Rebuild.
10934 * target.c (target_ranged_break_num_registers): Unconditionally
10935 delegate.
10936 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10937 Use TARGET_DEFAULT_RETURN.
10938
10939 2014-02-19 Tom Tromey <tromey@redhat.com>
10940
10941 * target-delegates.c: Rebuild.
10942 * target.c (target_fetch_registers): Unconditionally delegate.
10943 * target.h (struct target_ops) <to_fetch_registers>: Use
10944 TARGET_DEFAULT_NORETURN.
10945
10946 2014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_stop.
10951 * target.h (struct target_ops) <to_stop>: Use
10952 TARGET_DEFAULT_IGNORE.
10953
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10958 to_can_run_breakpoint_commands.
10959 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10960 Use TARGET_DEFAULT_RETURN.
10961
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_supports_evaluation_of_breakpoint_conditions.
10967 * target.h (struct target_ops)
10968 <to_supports_evaluation_of_breakpoint_conditions>: Use
10969 TARGET_DEFAULT_RETURN.
10970
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target-delegates.c: Rebuild.
10974 * target.c (update_current_target): Don't inherit or default
10975 to_augmented_libraries_svr4_read.
10976 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10977 Use TARGET_DEFAULT_RETURN.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target-delegates.c: Rebuild.
10982 * target.c (update_current_target): Don't inherit or default
10983 to_can_use_agent.
10984 * target.h (struct target_ops) <to_can_use_agent>: Use
10985 TARGET_DEFAULT_RETURN.
10986
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (update_current_target): Don't inherit or default
10991 to_use_agent.
10992 * target.h (struct target_ops) <to_use_agent>: Use
10993 TARGET_DEFAULT_NORETURN.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target-delegates.c: Rebuild.
10998 * target.c (update_current_target): Don't inherit or default
10999 to_traceframe_info.
11000 (return_null): Remove.
11001 * target.h (struct target_ops) <to_traceframe_info>: Use
11002 TARGET_DEFAULT_RETURN.
11003
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target-delegates.c: Rebuild.
11007 * target.c (update_current_target): Don't inherit or default
11008 to_static_tracepoint_markers_by_strid.
11009 * target.h (struct target_ops)
11010 <to_static_tracepoint_markers_by_strid>: Use
11011 TARGET_DEFAULT_NORETURN.
11012
11013 2014-02-19 Tom Tromey <tromey@redhat.com>
11014
11015 * target-delegates.c: Rebuild.
11016 * target.c (update_current_target): Don't inherit or default
11017 to_static_tracepoint_marker_at.
11018 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11019 Use TARGET_DEFAULT_RETURN.
11020
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target-delegates.c: Rebuild.
11024 * target.c (update_current_target): Don't inherit or default
11025 to_set_permissions.
11026 * target.h (struct target_ops) <to_set_permissions>: Use
11027 TARGET_DEFAULT_IGNORE.
11028
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (update_current_target): Don't inherit or default
11033 to_get_tib_address.
11034 * target.h (struct target_ops) <to_get_tib_address>: Use
11035 TARGET_DEFAULT_NORETURN.
11036
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target-delegates.c: Rebuild.
11040 * target.c (update_current_target): Don't inherit or default
11041 to_set_trace_notes.
11042 * target.h (struct target_ops) <to_set_trace_notes>: Use
11043 TARGET_DEFAULT_RETURN.
11044
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target-delegates.c: Rebuild.
11048 * target.c (update_current_target): Don't initialize
11049 to_set_trace_buffer_size.
11050 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11051 TARGET_DEFAULT_IGNORE.
11052
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 * target-delegates.c: Rebuild.
11056 * target.c (update_current_target): Don't inherit or default
11057 to_set_circular_trace_buffer.
11058 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11059 TARGET_DEFAULT_IGNORE.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target-delegates.c: Rebuild.
11064 * target.c (update_current_target): Don't inherit or default
11065 to_set_disconnected_tracing.
11066 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11067 TARGET_DEFAULT_IGNORE.
11068
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11073 to_get_min_fast_tracepoint_insn_len.
11074 (return_minus_one): Remove.
11075 * target.h (struct target_ops)
11076 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11077
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target-delegates.c: Rebuild.
11081 * target.c (update_current_target): Don't inherit or default
11082 to_get_raw_trace_data.
11083 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11084 TARGET_DEFAULT_NORETURN.
11085
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (update_current_target): Don't inherit or default
11090 to_upload_trace_state_variables.
11091 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11092 Use TARGET_DEFAULT_RETURN.
11093
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (update_current_target): Don't inherit or default
11098 to_upload_tracepoints.
11099 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11100 TARGET_DEFAULT_RETURN.
11101
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target-delegates.c: Rebuild.
11105 * target.c (update_current_target): Don't inherit or default
11106 to_save_trace_data.
11107 * target.h (struct target_ops) <to_save_trace_data>: Use
11108 TARGET_DEFAULT_NORETURN.
11109
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't inherit or default
11114 to_get_trace_state_variable_value.
11115 * target.h (struct target_ops)
11116 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11117
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11122 to_trace_find.
11123 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11124
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target-delegates.c: Rebuild.
11128 * target.c (update_current_target): Don't inherit or default
11129 to_trace_stop.
11130 * target.h (struct target_ops) <to_trace_stop>: Use
11131 TARGET_DEFAULT_NORETURN.
11132
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target-delegates.c: Rebuild.
11136 * target.c (update_current_target): Don't inherit or default
11137 to_get_tracepoint_status.
11138 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11139 TARGET_DEFAULT_NORETURN.
11140
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target-delegates.c: Rebuild.
11144 * target.c (update_current_target): Don't inherit or default
11145 to_get_trace_status.
11146 * target.h (struct target_ops) <to_get_trace_status>: Use
11147 TARGET_DEFAULT_RETURN.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target-delegates.c: Rebuild.
11152 * target.c (update_current_target): Don't inherit or default
11153 to_trace_start.
11154 * target.h (struct target_ops) <to_trace_start>: Use
11155 TARGET_DEFAULT_NORETURN.
11156
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target-delegates.c: Rebuild.
11160 * target.c (update_current_target): Don't inherit or default
11161 to_trace_set_readonly_regions.
11162 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11163 Use TARGET_DEFAULT_NORETURN.
11164
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target-delegates.c: Rebuild.
11168 * target.c (update_current_target): Don't inherit or default
11169 to_disable_tracepoint.
11170 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11171 TARGET_DEFAULT_NORETURN.
11172
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target-delegates.c: Rebuild.
11176 * target.c (update_current_target): Don't inherit or default
11177 to_enable_tracepoint.
11178 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11179 TARGET_DEFAULT_NORETURN.
11180
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11185 to_download_trace_state_variable.
11186 * target.h (struct target_ops) <to_download_trace_state_variable>:
11187 Use TARGET_DEFAULT_NORETURN.
11188
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_can_download_tracepoint.
11194 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11195 TARGET_DEFAULT_RETURN.
11196
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11201 to_download_tracepoint.
11202 * target.h (struct target_ops) <to_download_tracepoint>: Use
11203 TARGET_DEFAULT_NORETURN.
11204
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target-delegates.c: Rebuild.
11208 * target.c (update_current_target): Don't inherit or default
11209 to_trace_init.
11210 * target.h (struct target_ops) <to_trace_init>: Use
11211 TARGET_DEFAULT_RETURN.
11212
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target-delegates.c: Rebuild.
11216 * target.c (update_current_target): Don't inherit or default
11217 to_supports_string_tracing.
11218 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11219 TARGET_DEFAULT_RETURN.
11220
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * target-delegates.c: Rebuild.
11224 * target.c (update_current_target): Don't inherit or default
11225 to_supports_enable_disable_tracepoint.
11226 * target.h (struct target_ops)
11227 <to_supports_enable_disable_tracepoint>: Use
11228 TARGET_DEFAULT_RETURN.
11229
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (update_current_target): Don't inherit or default
11234 to_supports_multi_process.
11235 * target.h (struct target_ops) <to_supports_multi_process>: Use
11236 TARGET_DEFAULT_RETURN.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target-delegates.c: Rebuild.
11241 * target.c (update_current_target): Don't inherit or default
11242 to_get_ada_task_ptid.
11243 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11244 TARGET_DEFAULT_FUNC.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (update_current_target): Don't inherit or default
11250 to_thread_architecture.
11251 * target.h (struct target_ops) <to_thread_architecture>: Use
11252 TARGET_DEFAULT_FUNC.
11253
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target-delegates.c: Rebuild.
11257 * target.c (update_current_target): Don't inherit or default
11258 to_execution_direction.
11259 * target.h (struct target_ops) <to_execution_direction>: Use
11260 TARGET_DEFAULT_FUNC.
11261
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target-delegates.c: Rebuild.
11265 * target.c (update_current_target): Don't inherit or default
11266 to_can_execute_reverse.
11267 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11268 TARGET_DEFAULT_RETURN.
11269 (target_can_execute_reverse): Unconditionally delegate.
11270
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target-delegates.c: Rebuild.
11274 * target.c (update_current_target): Don't inherit or default
11275 to_goto_bookmark.
11276 (dummy_goto_bookmark): Remove.
11277 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11278 * target.h (struct target_ops) <to_goto_bookmark>: Use
11279 TARGET_DEFAULT_NORETURN.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target-delegates.c: Rebuild.
11284 * target.c (update_current_target): Don't inherit or default
11285 to_get_bookmark.
11286 (dummy_get_bookmark): Remove.
11287 (init_dummy_target): Don't inherit or default to_get_bookmark.
11288 * target.h (struct target_ops) <to_get_bookmark>: Use
11289 TARGET_DEFAULT_NORETURN
11290
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_make_corefile_notes.
11296 (init_dummy_target): Don't initialize to_make_corefile_notes.
11297 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11298 TARGET_DEFAULT_FUNC.
11299
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11304 to_find_memory_regions.
11305 (init_dummy_target): Don't initialize to_find_memory_regions.
11306 * target.h (struct target_ops) <to_find_memory_regions>: Use
11307 TARGET_DEFAULT_FUNC.
11308
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_log_command.
11314 * target.h (struct target_ops) <to_log_command>: Use
11315 TARGET_DEFAULT_IGNORE.
11316 (target_log_command): Unconditionally delegate.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (update_current_target): Don't inherit or default
11322 to_pid_to_exec_file.
11323 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11324 TARGET_DEFAULT_RETURN.
11325
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target-delegates.c: Rebuild.
11329 * target.c (update_current_target): Don't inherit or default
11330 to_thread_name.
11331 (target_thread_name): Unconditionally delegate.
11332 * target.h (struct target_ops) <to_thread_name>: Use
11333 TARGET_DEFAULT_RETURN.
11334
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target-delegates.c: Rebuild.
11338 * target.c (update_current_target): Don't inherit or default
11339 to_extra_thread_info.
11340 * target.h (struct target_ops) <to_extra_thread_info>: Use
11341 TARGET_DEFAULT_RETURN.
11342
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (update_current_target): Don't inherit or default
11347 to_has_exited.
11348 * target.h (struct target_ops) <to_has_exited>: Use
11349 TARGET_DEFAULT_RETURN..
11350
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_set_syscall_catchpoint.
11356 (return_one): Remove.
11357 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11358 TARGET_DEFAULT_RETURN.
11359
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_insert_exec_catchpoint.
11365 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11366 TARGET_DEFAULT_RETURN.
11367
11368 2014-01-08 Tom Tromey <tromey@redhat.com>
11369
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.
11375
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (update_current_target): Don't inherit or default
11380 to_remove_vfork_catchpoint.
11381 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11382 TARGET_DEFAULT_RETURN.
11383
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target-delegates.c: Rebuild.
11387 * target.c (update_current_target): Don't inherit or default
11388 to_insert_vfork_catchpoint.
11389 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11390 TARGET_DEFAULT_RETURN.
11391
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target-delegates.c: Rebuild.
11395 * target.c (update_current_target): Don't inherit or default
11396 to_remove_fork_catchpoint.
11397 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11398 TARGET_DEFAULT_RETURN.
11399
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target-delegates.c: Rebuild.
11403 * target.c (update_current_target): Don't inherit or default
11404 to_insert_fork_catchpoint.
11405 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11406 TARGET_DEFAULT_RETURN.
11407
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target-delegates.c: Rebuild.
11411 * target.c (update_current_target): Don't inherit or default
11412 to_post_startup_inferior.
11413 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11414 TARGET_DEFAULT_IGNORE.
11415
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_load.
11421 * target.h (struct target_ops) <to_load>: Use
11422 TARGET_DEFAULT_NORETURN.
11423
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_terminal_info.
11429 * target.h (struct target_ops) <to_terminal_info>: Use
11430 TARGET_DEFAULT_FUNC.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11436 to_terminal_save_ours.
11437 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11438 TARGET_DEFAULT_IGNORE.
11439
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (update_current_target): Don't inherit or default
11444 to_terminal_ours.
11445 * target.h (struct target_ops) <to_terminal_ours>: Use
11446 TARGET_DEFAULT_IGNORE.
11447
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_terminal_ours_for_output.
11453 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11454 TARGET_DEFAULT_IGNORE.
11455
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_terminal_inferior.
11461 * target.h (struct target_ops) <to_terminal_inferior>: Use
11462 TARGET_DEFAULT_IGNORE.
11463
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_terminal_init.
11469 * target.h (struct target_ops) <to_terminal_init>: Use
11470 TARGET_DEFAULT_IGNORE.
11471
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11476 to_can_accel_watchpoint_condition.
11477 * target.h (struct target_ops)
11478 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11479
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11484 to_region_ok_for_hw_watchpoint.
11485 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11486 Use TARGET_DEFAULT_FUNC.
11487
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_watchpoint_addr_within_range.
11493 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11494 Use TARGET_DEFAULT_FUNC.
11495
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_remove_watchpoint.
11501 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11502 TARGET_DEFAULT_NORETURN.
11503
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_insert_watchpoint.
11509 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11510 TARGET_DEFAULT_RETURN.
11511
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_remove_hw_breakpoint.
11517 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11518 TARGET_DEFAULT_RETURN.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_insert_hw_breakpoint.
11525 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11526 TARGET_DEFAULT_RETURN.
11527
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_can_use_hw_breakpoint.
11533 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11534 TARGET_DEFAULT_RETURN.
11535
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_files_info.
11541 * target.h (struct target_ops) <to_files_info>: Use
11542 TARGET_DEFAULT_IGNORE.
11543
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_store.
11549 * target.h (struct target_ops) <to_store>: Use
11550 TARGET_DEFAULT_NORETURN.
11551
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_post_attach.
11557 * target.h (struct target_ops) <to_post_attach>: Use
11558 TARGET_DEFAULT_IGNORE.
11559
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11564 to_rcmd.
11565 (default_rcmd): New function.
11566 (do_monitor_command): Unconditionally delegate.
11567 * target.h (struct target_ops) <to_rmcd>: Use
11568 TARGET_DEFAULT_FUNC.
11569
11570 2014-02-19 Tom Tromey <tromey@redhat.com>
11571
11572 * target-delegates.c: Rebuild.
11573 * target.c (init_dummy_target): Don't initialize to_attach.
11574 (target_attach): Unconditionally delegate.
11575 * target.h (struct target_ops) <to_attach>: Use
11576 TARGET_DEFAULT_FUNC.
11577
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target-delegates.c: Rebuild.
11581 * target.c (target_detach): Unconditionally delegate.
11582 (init_dummy_target): Don't initialize to_detach.
11583 * target.h (struct target_ops) <to_detach>: Use
11584 TARGET_DEFAULT_IGNORE.
11585
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11589 Add argument.
11590 (target_augmented_libraries_svr4_read): Add argument.
11591 * target.c (update_current_target): Update.
11592 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11593 argument.
11594
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target.h (struct target_ops) <to_call_history_range>: Add
11598 argument.
11599 * target.c (target_call_history_range): Add argument.
11600 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11601 argument.
11602 (record_btrace_call_history_from): Update.
11603
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target.h (struct target_ops) <to_call_history_from>: Add
11607 argument.
11608 * target.c (target_call_history_from): Add argument.
11609 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11610 argument.
11611
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11613
11614 * target.h (struct target_ops) <to_call_history>: Add argument.
11615 * target.c (target_call_history): Add argument.
11616 * record-btrace.c (record_btrace_call_history): Add 'self'
11617 argument.
11618
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target.h (struct target_ops) <to_insn_history_range>: Add
11622 argument.
11623 * target.c (target_insn_history_range): Add argument.
11624 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11625 argument.
11626 (record_btrace_insn_history_from): Update.
11627
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops) <to_insn_history_from>: Add
11631 argument.
11632 * target.c (target_insn_history_from): Add argument.
11633 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11634 argument.
11635
11636 2014-02-19 Tom Tromey <tromey@redhat.com>
11637
11638 * target.h (struct target_ops) <to_insn_history>: Add argument.
11639 * target.c (target_insn_history): Add argument.
11640 * record-btrace.c (record_btrace_insn_history): Add 'self'
11641 argument.
11642
11643 2014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target.h (struct target_ops) <to_goto_record>: Add argument.
11646 * target.c (target_goto_record): Add argument.
11647 * record-full.c (record_full_goto): Add 'self' argument.
11648 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11649
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11653 * target.c (target_goto_record_end): Add argument.
11654 * record-full.c (record_full_goto_end): Add 'self' argument.
11655 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11656
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_goto_record_begin>: Add
11660 argument.
11661 * target.c (target_goto_record_begin): Add argument.
11662 * record-full.c (record_full_goto_begin): Add 'self' argument.
11663 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11664 argument.
11665
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11667
11668 * target.h (struct target_ops) <to_record_is_replaying>: Add
11669 argument.
11670 * target.c (target_record_is_replaying): Add argument.
11671 * record-full.c (record_full_is_replaying): Add 'self' argument.
11672 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11673 argument.
11674 (record_btrace_xfer_partial, record_btrace_store_registers)
11675 (record_btrace_prepare_to_store, record_btrace_resume)
11676 (record_btrace_wait, record_btrace_decr_pc_after_break)
11677 (record_btrace_find_new_threads, record_btrace_thread_alive):
11678 Update.
11679
11680 2014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target.h (struct target_ops) <to_delete_record>: Add argument.
11683 * target.c (target_delete_record): Add argument.
11684 * record-full.c (record_full_delete): Add 'self' argument.
11685
11686 2014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target.h (struct target_ops) <to_save_record>: Add argument.
11689 * target.c (target_save_record): Add argument.
11690 * record-full.c (record_full_save): Add 'self' argument.
11691 (record_full_save): Add 'self' argument.
11692
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.h (struct target_ops) <to_info_record>: Add argument.
11696 * target.c (target_info_record): Add argument.
11697 * record.c (info_record_command): Add argument.
11698 * record-full.c (record_full_info): Add 'self' argument.
11699 * record-btrace.c (record_btrace_info): Add 'self' argument.
11700
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11702
11703 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11704 * target.c (target_stop_recording): Add argument.
11705 * record.c (record_stop): Add argument.
11706 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11707 argument.
11708
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11712 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11713 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11714 argument.
11715 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11716 (_initialize_amd64_linux_nat): Use it.
11717 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11718 (_initialize_i386_linux_nat): Use it.
11719
11720 2014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11723 * target.c (target_teardown_btrace): Add argument.
11724 * remote.c (remote_teardown_btrace): Add 'self' argument.
11725 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11726 argument.
11727 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11728 argument.
11729
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11733 * target.c (target_disable_btrace): Add argument.
11734 * remote.c (remote_disable_btrace): Add 'self' argument.
11735 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11736 argument.
11737 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11738 argument.
11739
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11743 * target.c (target_enable_btrace): Add argument.
11744 * remote.c (remote_enable_btrace): Add 'self' argument.
11745 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11746 argument.
11747 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11748 argument.
11749
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11753 (target_can_use_agent): Add argument.
11754 * target.c (update_current_target): Update.
11755 * remote.c (remote_can_use_agent): Add 'self' argument.
11756 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11757
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_use_agent>: Add argument.
11761 (target_use_agent): Add argument.
11762 * target.c (update_current_target): Update.
11763 * remote.c (remote_use_agent): Add 'self' argument.
11764 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11765
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11769 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11770 (target_traceframe_info): Add argument.
11771 * target.c (update_current_target): Update.
11772 * remote.c (remote_traceframe_info): Add 'self' argument.
11773 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11774
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * target.h (target_static_tracepoint_markers_by_strid): Add
11778 argument.
11779 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11780 'self' argument.
11781 * target.c (update_current_target): Update.
11782 * remote.c (struct target_ops)
11783 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11784 * linux-nat.c (struct target_ops)
11785 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11786
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11790 Add argument.
11791 (target_static_tracepoint_marker_at): Add argument.
11792 * target.c (update_current_target): Update.
11793 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11794 argument.
11795
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11799 (target_set_permissions): Add argument.
11800 * target.c (update_current_target): Update.
11801 * remote.c (remote_set_permissions): Add 'self' argument.
11802 (remote_start_remote): Update.
11803
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11805
11806 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11807 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11808 (target_get_tib_address): Add argument.
11809 * target.c (update_current_target): Update.
11810 * remote.c (remote_get_tib_address): Add 'self' argument.
11811
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11815 (target_set_trace_notes): Add argument.
11816 * target.c (update_current_target): Update.
11817 * remote.c (remote_set_trace_notes): Add 'self' argument.
11818
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11822 argument.
11823 (target_set_trace_buffer_size): Add argument.
11824 * target.c (update_current_target): Update.
11825 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11826
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11830 argument.
11831 (target_set_circular_trace_buffer): Add argument.
11832 * target.c (update_current_target): Update.
11833 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11834 argument.
11835
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11839 argument.
11840 (target_set_disconnected_tracing): Add argument.
11841 * target.c (update_current_target): Update.
11842 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11843
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target.h (struct target_ops)
11847 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11848 (target_get_min_fast_tracepoint_insn_len): Add argument.
11849 * target.c (update_current_target): Update.
11850 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11851 argument.
11852
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11856 argument.
11857 (target_get_raw_trace_data): Add argument.
11858 * target.c (update_current_target): Update.
11859 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11860
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11864 Add argument.
11865 (target_upload_trace_state_variables): Add argument.
11866 * target.c (update_current_target): Update.
11867 * remote.c (remote_upload_trace_state_variables): Add 'self'
11868 argument.
11869 (remote_start_remote): Update.
11870
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11874 argument.
11875 (target_upload_tracepoints): Add argument.
11876 * target.c (update_current_target): Update.
11877 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11878 (remote_start_remote): Update.
11879
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11883 (target_save_trace_data): Add argument.
11884 * target.c (update_current_target): Update.
11885 * remote.c (remote_save_trace_data): Add 'self' argument.
11886
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11890 argument.
11891 * target.h (struct target_ops)
11892 <to_get_trace_state_variable_value>: Add argument.
11893 (target_get_trace_state_variable_value): Add argument.
11894 * target.c (update_current_target): Update.
11895 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11896 argument.
11897 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11898
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11902 * target.h (struct target_ops) <to_trace_find>: Add argument.
11903 (target_trace_find): Add argument.
11904 * target.c (update_current_target): Update.
11905 * remote.c (remote_trace_find): Add 'self' argument.
11906 * ctf.c (ctf_trace_find): Add 'self' argument.
11907
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11911 (target_trace_stop): Add argument.
11912 * target.c (update_current_target): Update.
11913 * remote.c (remote_trace_stop): Add 'self' argument.
11914
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11918 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11919 argument.
11920 (target_get_tracepoint_status): Add argument.
11921 * target.c (update_current_target): Update.
11922 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11923
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11927 * target.h (struct target_ops) <to_get_trace_status>: Add
11928 argument.
11929 (target_get_trace_status): Add argument.
11930 * target.c (update_current_target): Update.
11931 * remote.c (remote_get_trace_status): Add 'self' argument.
11932 (remote_start_remote, remote_can_download_tracepoint): Update.
11933 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target.h (struct target_ops) <to_trace_start>: Add argument.
11938 (target_trace_start): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_trace_start): Add 'self' argument.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11945 Add argument.
11946 (target_trace_set_readonly_regions): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11949 argument.
11950
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11954 argument.
11955 (target_disable_tracepoint): Add argument.
11956 * target.c (update_current_target): Update.
11957 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11958
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11962 argument.
11963 (target_enable_tracepoint): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11966
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_download_trace_state_variable>:
11970 Add argument.
11971 (target_download_trace_state_variable): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_download_trace_state_variable): Add 'self'
11974 argument.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11979 argument.
11980 (target_can_download_tracepoint): Add argument.
11981 * target.c (update_current_target): Update.
11982 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target.h (struct target_ops) <to_download_tracepoint>: Add
11987 argument.
11988 (target_download_tracepoint): Add argument.
11989 * target.c (update_current_target): Update.
11990 * remote.c (remote_download_tracepoint): Add 'self' argument.
11991
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_trace_init>: Add argument.
11995 (target_trace_init): Add argument.
11996 * target.c (update_current_target): Update.
11997 * remote.c (remote_trace_init): Add 'self' argument.
11998
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12002 * target.c (target_fileio_readlink): Add argument.
12003 * remote.c (remote_hostio_readlink): Add 'self' argument.
12004 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12005
12006 2014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12009 * target.c (target_fileio_unlink): Add argument.
12010 * remote.c (remote_hostio_unlink): Add 'self' argument.
12011 (remote_file_delete): Update.
12012 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12013
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12015
12016 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12017 * target.c (target_fileio_close): Add argument.
12018 * remote.c (remote_hostio_close): Add 'self' argument.
12019 (remote_hostio_close_cleanup): Update.
12020 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12021 Update.
12022 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12023
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12027 * target.c (target_fileio_pread): Add argument.
12028 * remote.c (remote_hostio_pread): Add 'self' argument.
12029 (remote_bfd_iovec_pread, remote_file_get): Update.
12030 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12031
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12035 * target.c (target_fileio_pwrite): Add argument.
12036 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12037 (remote_file_put): Update.
12038 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12039
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12043 * target.c (target_fileio_open): Add argument.
12044 * remote.c (remote_hostio_open): Add 'self' argument.
12045 (remote_bfd_iovec_open): Add 'self' argument.
12046 (remote_file_put): Add 'self' argument.
12047 (remote_file_get): Add 'self' argument.
12048 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12049
12050 2014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12053 Add argument.
12054 (target_can_run_breakpoint_commands): Add argument.
12055 * target.c (update_current_target): Update.
12056 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12057 argument.
12058 (remote_insert_breakpoint): Add 'self' argument.
12059 (remote_insert_hw_breakpoint): Add 'self' argument.
12060 (remote_can_run_breakpoint_commands): Add 'self' argument.
12061
12062 2014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target.h (struct target_ops)
12065 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12066 (target_supports_evaluation_of_breakpoint_conditions): Add
12067 argument.
12068 * target.c (update_current_target): Update.
12069 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12070 argument.
12071 (remote_insert_breakpoint): Add 'self' argument.
12072 (remote_insert_hw_breakpoint): Add 'self' argument.
12073 (remote_supports_cond_breakpoints): Add 'self' argument.
12074
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12076
12077 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12078 argument.
12079 (target_supports_string_tracing): Add argument.
12080 * target.c (update_current_target): Update.
12081 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12082
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * target.h (struct target_ops)
12086 <to_supports_disable_randomization>: Add argument.
12087 * target.c (find_default_supports_disable_randomization): Add
12088 argument.
12089 (target_supports_disable_randomization): Add argument.
12090 (find_default_supports_disable_randomization): Add 'self'
12091 argument.
12092 * remote.c (extended_remote_supports_disable_randomization): Add
12093 'self' argument.
12094 (remote_supports_disable_randomization): Add 'self' argument.
12095 (extended_remote_create_inferior): Update.
12096 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12097 'self' argument.
12098
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (struct target_ops)
12102 <to_supports_enable_disable_tracepoint>: Add argument.
12103 (target_supports_enable_disable_tracepoint): Add argument.
12104 * target.c (update_current_target): Update.
12105 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12106 argument.
12107
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target.h (struct target_ops) <to_supports_multi_process>: Add
12111 argument.
12112 (target_supports_multi_process): Add argument.
12113 * target.c (update_current_target): Update.
12114 * remote.c (remote_supports_multi_process): Add 'self' argument.
12115 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12116 argument.
12117 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12118 argument.
12119
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_execution_direction>: Add
12123 argument.
12124 (target_execution_direction): Add argument.
12125 * target.c (default_execution_direction): Add 'self' argument.
12126 * record-full.c (record_full_execution_direction): Add 'self'
12127 argument.
12128
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12132 argument.
12133 (target_can_execute_reverse): Add argument.
12134 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12135 * record-full.c (record_full_can_execute_reverse): Add 'self'
12136 argument.
12137 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12138 argument.
12139
12140 2014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12143 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12144 argument.
12145 (target_get_ada_task_ptid): Add argument.
12146 * target.c (update_current_target): Update.
12147 (default_get_ada_task_ptid): Add 'self' argument.
12148 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12149 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12150 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12151 argument.
12152 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12153 argument.
12154 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12155 argument.
12156 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12157 argument.
12158 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12159 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12160 argument.
12161
12162 2014-02-19 Tom Tromey <tromey@redhat.com>
12163
12164 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12165 (target_goto_bookmark): Add argument.
12166 * target.c (dummy_goto_bookmark): Add 'self' argument.
12167 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12168
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12172 (target_get_bookmark): Add argument.
12173 * target.c (dummy_get_bookmark): Add 'self' argument.
12174 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12179 argument.
12180 (target_make_corefile_notes): Add argument.
12181 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12182 * procfs.c (procfs_make_note_section): Add 'self' argument.
12183 (procfs_make_note_section): Add 'self' argument.
12184 (procfs_make_note_section): Add 'self' argument.
12185 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12186 argument.
12187 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12188 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12189 * exec.c (exec_make_note_section): Add 'self' argument.
12190 (exec_make_note_section): Add 'self' argument.
12191
12192 2014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target.h (struct target_ops) <to_find_memory_regions>: Add
12195 argument.
12196 (target_find_memory_regions): Add argument.
12197 * target.c (dummy_find_memory_regions): Add 'self' argument.
12198 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12199 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12200 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12201 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12202 * exec. (exec_do_find_memory_regions): New global.
12203 (exec_set_find_memory_regions): Rewrite.
12204 (exec_find_memory_regions): New function.
12205 (init_exec_ops): Use exec_find_memory_regions.
12206
12207 2014-02-19 Tom Tromey <tromey@redhat.com>
12208
12209 * target.h (struct target_ops) <to_supports_non_stop>: Add
12210 argument.
12211 * target.c (find_default_supports_non_stop): Add argument.
12212 (target_supports_non_stop): Add argument.
12213 (find_default_supports_non_stop): Add 'self' argument.
12214 * remote.c (remote_supports_non_stop): Add 'self' argument.
12215 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12216
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target.h (struct target_ops) <to_log_command>: Add argument.
12220 (target_log_command): Add argument.
12221 * serial.h (serial_log_command): Add 'self' argument.
12222 * serial.c (serial_log_command): Add 'self' argument.
12223
12224 2014-02-19 Tom Tromey <tromey@redhat.com>
12225
12226 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12227 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12228 argument.
12229 (target_pid_to_exec_file): Add argument.
12230 * target.c (debug_to_pid_to_exec_file): Add argument.
12231 (update_current_target): Update.
12232 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12233 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12234 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12235 (linux_handle_extended_wait): Update.
12236 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12237 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12238 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12239 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12240
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops) <to_rcmd>: Add argument.
12244 (target_rcmd): Add argument.
12245 * target.c (debug_to_rcmd): Add argument.
12246 (update_current_target, do_monitor_command): Update.
12247 * remote.c (remote_rcmd): Add 'self' argument.
12248 * monitor.c (monitor_rcmd): Add 'self' argument.
12249
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * windows-nat.c (windows_stop): Add 'self' argument.
12253 * target.h (struct target_ops) <to_stop>: Add argument.
12254 * target.c (target_stop): Add argument.
12255 (debug_to_stop): Add argument.
12256 (update_current_target): Update.
12257 * remote.c (remote_stop): Add 'self' argument.
12258 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12259 (gdbsim_cntrl_c): Update.
12260 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12261 * procfs.c (procfs_stop): Add 'self' argument.
12262 * nto-procfs.c (procfs_stop): Add 'self' argument.
12263 * monitor.c (monitor_stop): Add 'self' argument.
12264 (monitor_open): Update.
12265 * linux-nat.c (linux_nat_stop): Add argument.
12266 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12267 * gnu-nat.c (gnu_stop): Add 'self' argument.
12268 * darwin-nat.c (darwin_stop): Add 'self' argument.
12269
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_thread_name>: Add argument.
12273 * target.c (target_thread_name): Add argument.
12274 (update_current_target): Update.
12275 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12276
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target.h (struct target_ops) <to_extra_thread_info>: Add
12280 argument.
12281 (target_extra_thread_info): Add argument.
12282 * target.c (update_current_target): Update.
12283 * remote.c (remote_threads_extra_info): Add 'self' argument.
12284 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12285 argument.
12286 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12287 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12288 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12289 argument.
12290 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12291 argument.
12292 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12293 argument.
12294 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12295 argument.
12296
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target.h (struct target_ops) <to_program_signals>: Add argument.
12300 * target.c (target_program_signals): Add argument.
12301 * remote.c (remote_program_signals): Add 'self' argument.
12302
12303 2014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12306 * target.c (target_pass_signals): Add argument.
12307 * remote.c (remote_pass_signals): Add 'self' argument.
12308 (remote_start_remote): Update.
12309 * procfs.c (procfs_pass_signals): Add 'self' argument.
12310 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12311 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12312 (linux_nat_create_inferior, linux_nat_attach): Update.
12313
12314 2014-02-19 Tom Tromey <tromey@redhat.com>
12315
12316 * windows-nat.c (windows_can_run): Add 'self' argument.
12317 * target.h (struct target_ops) <to_can_run>: Add argument.
12318 (target_can_run): Add argument.
12319 * target.c (debug_to_can_run): Add argument.
12320 (update_current_target): Update.
12321 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12322 * inf-child.c (inf_child_can_run): Add 'self' argument.
12323 * go32-nat.c (go32_can_run): Add 'self' argument.
12324
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target.h (struct target_ops) <to_has_exited>: Add argument.
12328 (target_has_exited): Add argument.
12329 * target.c (debug_to_has_exited): Add argument.
12330 (update_current_target): Update.
12331
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12335 argument.
12336 (target_set_syscall_catchpoint): Add argument.
12337 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12338 argument.
12339 * target.c (update_current_target): Update.
12340
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12344 argument.
12345 (target_remove_exec_catchpoint): Add argument.
12346 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12347 (update_current_target): Update.
12348 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12349 argument.
12350
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12352
12353 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12354 argument.
12355 (target_insert_exec_catchpoint): Add argument.
12356 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12357 (update_current_target): Update.
12358 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12359 argument.
12360
12361 2014-02-19 Tom Tromey <tromey@redhat.com>
12362
12363 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12364 argument.
12365 (target_remove_vfork_catchpoint): Add argument.
12366 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12367 (update_current_target): Update.
12368 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12369 argument.
12370
12371 2014-02-19 Tom Tromey <tromey@redhat.com>
12372
12373 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12374 argument.
12375 (target_insert_vfork_catchpoint): Add argument.
12376 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12377 (update_current_target): Update.
12378 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12379 argument.
12380
12381 2014-02-19 Tom Tromey <tromey@redhat.com>
12382
12383 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12384 argument.
12385 (target_remove_fork_catchpoint): Add argument.
12386 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12387 (update_current_target): Update.
12388 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12389 argument.
12390
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12394 argument.
12395 (target_insert_fork_catchpoint): Add argument.
12396 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12397 (update_current_target): Update.
12398 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12399 argument.
12400
12401 2014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12404 argument.
12405 (target_post_startup_inferior): Add argument.
12406 * target.c (debug_to_post_startup_inferior): Add argument.
12407 (update_current_target): Update.
12408 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12409 argument.
12410 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12411 argument.
12412 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12413 argument.
12414 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12415 argument.
12416 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12417 'self' argument.
12418 (super_post_startup_inferior): Likewise.
12419 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12420 'self' argument.
12421 (super_post_startup_inferior): Likewise.
12422 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12423 Add 'self' argument.
12424 (super_post_startup_inferior): Likewise.
12425
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12427
12428 * target.h (struct target_ops) <to_load>: Add argument.
12429 * target.c (target_load): Add argument.
12430 (debug_to_load): Add argument.
12431 (update_current_target): Update.
12432 * remote.c (remote_load): Add 'self' argument.
12433 * remote-sim.c (gdbsim_load): Add 'self' argument.
12434 * remote-mips.c (mips_load): Add 'self' argument.
12435 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12436 * monitor.c (monitor_load): Add 'self' argument.
12437 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12438
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12442 (target_terminal_info): Add argument.
12443 * target.c (debug_to_terminal_info): Add argument.
12444 (default_terminal_info): Likewise.
12445 * inflow.c (child_terminal_info): Add 'self' argument.
12446 * inferior.h (child_terminal_info): Add 'self' argument.
12447 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12448
12449 2014-02-19 Tom Tromey <tromey@redhat.com>
12450
12451 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12452 argument.
12453 (target_terminal_save_ours): Add argument.
12454 * target.c (debug_to_terminal_save_ours): Add argument.
12455 (update_current_target): Update.
12456 * inflow.c (terminal_save_ours): Add 'self' argument.
12457 * inferior.h (terminal_save_ours): Add 'self' argument.
12458
12459 2014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12462 (target_terminal_ours): Add argument.
12463 * target.c (debug_to_terminal_ours): Add argument.
12464 (update_current_target): Update.
12465 * remote.c (remote_terminal_ours): Add 'self' argument.
12466 (remote_close): Update.
12467 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12468 * inflow.c (terminal_ours): Add 'self' argument.
12469 * inferior.h (terminal_ours): Add 'self' argument.
12470 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12471
12472 2014-02-19 Pedro Alves <palves@redhat.com>
12473 Tom Tromey <tromey@redhat.com>
12474
12475 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12476 argument.
12477 (target_terminal_ours_for_output): Add argument.
12478 * target.c (debug_to_terminal_ours_for_output): Add argument.
12479 (update_current_target): Update.
12480 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12481 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12482 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12483
12484 2014-02-19 Tom Tromey <tromey@redhat.com>
12485
12486 * target.h (struct target_ops) <to_terminal_inferior>: Add
12487 argument.
12488 * target.c (target_terminal_inferior): Add argument.
12489 (update_current_target): Update.
12490 * remote.c (remote_terminal_inferior): Add 'self' argument.
12491 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12492 * inflow.c (terminal_inferior): Add 'self' argument.
12493 * inferior.h (terminal_inferior): Add 'self' argument.
12494 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12495 (go32_terminal_inferior): Add 'self' argument.
12496
12497 2014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12500 (target_terminal_init): Add argument.
12501 * target.c (debug_to_terminal_init): Add argument.
12502 (update_current_target): Update.
12503 * inflow.c (terminal_init_inferior): Add 'self' argument.
12504 * inferior.h (terminal_init_inferior): Add 'self' argument.
12505 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12506 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12507
12508 2014-02-19 Tom Tromey <tromey@redhat.com>
12509
12510 * target.h (struct target_ops)
12511 <to_can_accel_watchpoint_condition>: Add argument.
12512 (target_can_accel_watchpoint_condition): Add argument.
12513 * target.c (debug_to_can_accel_watchpoint_condition): Add
12514 argument.
12515 (update_current_target): Update.
12516 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12517 'self' argument.
12518
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12522 Add argument.
12523 (target_region_ok_for_hw_watchpoint): Add argument.
12524 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12525 (default_region_ok_for_hw_watchpoint): Add argument.
12526 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12527 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12528 argument.
12529 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12530 argument.
12531 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12532 argument.
12533 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12534 'self' argument.
12535 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12536 'self' argument.
12537 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12538 'self' argument.
12539 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12540 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12541 'self' argument.
12542 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12543 Add 'self' argument.
12544
12545 2014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12548 argument.
12549 (target_insert_watchpoint): Add argument.
12550 * target.c (debug_to_insert_watchpoint): Add argument.
12551 (update_current_target): Update.
12552 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12553 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12554 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12555 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12556 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12557 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12558 argument.
12559 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12560 (procfs_insert_hw_watchpoint): Add 'self' argument.
12561 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12562 argument.
12563 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12564 argument.
12565 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12566 argument.
12567 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12568 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12569 argument.
12570 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12571 'self' argument.
12572
12573 2014-02-19 Tom Tromey <tromey@redhat.com>
12574
12575 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12576 argument.
12577 (target_remove_watchpoint): Add argument.
12578 * target.c (debug_to_remove_watchpoint): Add argument.
12579 (update_current_target): Update.
12580 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12581 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12582 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12583 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12584 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12585 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12586 argument.
12587 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12588 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12589 argument.
12590 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12591 argument.
12592 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12593 argument.
12594 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12595 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12596 argument.
12597 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12598 'self' argument.
12599
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12603 argument.
12604 (target_remove_hw_breakpoint): Add argument.
12605 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12606 (update_current_target): Update.
12607 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12608 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12609 argument.
12610 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12611 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12612 argument.
12613 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12614 'self' argument.
12615
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12617
12618 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12619 argument.
12620 (target_insert_hw_breakpoint): Add argument.
12621 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12622 (update_current_target): Update.
12623 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12624 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12625 argument.
12626 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12627 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12628 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12629 argument.
12630 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12631 'self' argument.
12632
12633 2014-02-19 Tom Tromey <tromey@redhat.com>
12634
12635 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12636 argument.
12637 (target_can_use_hardware_watchpoint): Add argument.
12638 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12639 (update_current_target): Update.
12640 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12641 argument.
12642 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12643 argument.
12644 * remote.c (remote_check_watch_resources): Add 'self' argument.
12645 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12646 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12647 argument.
12648 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12649 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12650 argument.
12651 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12652 argument.
12653 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12654 argument.
12655 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12656 argument.
12657 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12658 argument.
12659 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12660 argument.
12661 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12662 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12663 argument.
12664 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12665 'self' argument.
12666
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops) <to_post_attach>: Add argument.
12670 (target_post_attach): Add argument.
12671 * target.c (debug_to_post_attach): Add argument.
12672 (update_current_target): Update.
12673 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12674 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12675 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12676 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12677 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12678
12679 2014-02-19 Tom Tromey <tromey@redhat.com>
12680
12681 * windows-nat.c (windows_close): Add 'self' argument.
12682 * tracepoint.c (tfile_close): Add 'self' argument.
12683 * target.h (struct target_ops) <to_close>: Add argument.
12684 * target.c (target_close): Add argument.
12685 (update_current_target): Update.
12686 * remote.c (remote_close): Add 'self' argument.
12687 * remote-sim.c (gdbsim_close): Add 'self' argument.
12688 * remote-mips.c (mips_close): Add 'self' argument.
12689 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12690 * record-full.c (record_full_close): Add 'self' argument.
12691 * record-btrace.c (record_btrace_close): Add 'self' argument.
12692 * monitor.h (monitor_close): Add 'self' argument.
12693 * monitor.c (monitor_close): Add 'self' argument.
12694 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12695 * linux-nat.c (linux_nat_close): Add argument.
12696 * go32-nat.c (go32_close): Add 'self' argument.
12697 * exec.c (exec_close_1): Add 'self' argument.
12698 * ctf.c (ctf_close): Add 'self' argument.
12699 * corelow.c (core_close): Add 'self' argument.
12700 (core_close_cleanup): Update.
12701 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12702 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12703
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * remote.c (remote_load): New function.
12707 (init_remote_ops): Use it.
12708
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12710
12711 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12712 argument.
12713 * common/linux-btrace.h (linux_supports_btrace): Update.
12714 * remote.c (remote_supports_btrace): Add "self" argument.
12715 * target-delegates.c: Rebuild.
12716 * target.c (target_supports_btrace): Remove.
12717 * target.h (struct target_ops) <to_supports_btrace>: Add
12718 target_ops argument.
12719 (target_supports_btrace): New define.
12720
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12722
12723 * record-full.c (record_full_beneath_to_resume_ops)
12724 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12725 (record_full_beneath_to_wait)
12726 (record_full_beneath_to_store_registers_ops)
12727 (record_full_beneath_to_store_registers)
12728 (record_full_beneath_to_xfer_partial_ops)
12729 (record_full_beneath_to_xfer_partial)
12730 (record_full_beneath_to_insert_breakpoint_ops)
12731 (record_full_beneath_to_insert_breakpoint)
12732 (record_full_beneath_to_remove_breakpoint_ops)
12733 (record_full_beneath_to_remove_breakpoint)
12734 (record_full_beneath_to_stopped_by_watchpoint)
12735 (record_full_beneath_to_stopped_data_address)
12736 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12737 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12738 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12739 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12740 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12741 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12742 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12743 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12744 (record_full_resume, record_full_wait_1)
12745 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12746 (record_full_store_registers, record_full_xfer_partial)
12747 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12748 (record_full_async, record_full_core_xfer_partial): Use target
12749 delegation.
12750 * target-delegates.c: Rebuild.
12751 * target.c (current_xfer_partial): Remove.
12752 (update_current_target): Do not INHERIT or de_fault
12753 to_insert_breakpoint, to_remove_breakpoint,
12754 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12755 to_is_async_p, to_async. Do not set to_xfer_partial field.
12756 (default_xfer_partial): Simplify.
12757 (current_xfer_partial): Remove.
12758 (target_wait, target_resume): Simplify.
12759 (find_default_can_async_p, find_default_is_async_p): Update.
12760 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12761 to_xfer_partial, to_stopped_by_watchpoint,
12762 to_stopped_data_address.
12763 (target_store_registers): Simplify.
12764 (forward_target_remove_breakpoint)
12765 (forward_target_insert_breakpoint): Remove.
12766 (target_remove_breakpoint, target_insert_breakpoint)
12767 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12768 * target.h (struct target_ops) <to_resume, to_wait,
12769 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12770 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12771 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12772 markup.
12773 (forward_target_remove_breakpoint)
12774 (forward_target_insert_breakpoint): Remove.
12775 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12776 directly.
12777 (record_btrace_insert_breakpoint): Delegate directly.
12778
12779 2014-02-19 Tom Tromey <tromey@redhat.com>
12780
12781 PR build/7701:
12782 * target-delegates.c: New file.
12783 * target.c: Include target-delegates.c.
12784 (init_dummy_target): Call install_dummy_methods.
12785 (complete_target_initialization): Call install_delegators.
12786 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12787 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12788 * make-target-delegates: New file.
12789
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12791
12792 * record.c (find_record_target): Use find_target_at.
12793 * target.c (find_target_at): New function.
12794 * target.h (find_target_at): Declare.
12795
12796 2014-02-19 Tom Tromey <tromey@redhat.com>
12797
12798 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12799 Add 'ops' argument.
12800 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12801 'ops' argument.
12802 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12803 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12804 'ops' argument.
12805 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12806 argument.
12807 * linux-nat.c (save_sigtrap): Update.
12808 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12809 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12810 (linux_nat_close): Update.
12811 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12812 argument.
12813 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12814 argument.
12815 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12816 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12817 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12818 (tmp_to_async): Add 'ops' argument.
12819 (record_full_stopped_by_watchpoint, record_full_async)
12820 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12821 argument.
12822 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12823 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12824 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12825 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12826 (remote_is_async_p, remote_async): Add 'ops' argument.
12827 (remote_stopped_data_address): Update.
12828 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12829 * target.c (update_current_target)
12830 (find_default_can_async_p, find_default_is_async_p): Update.
12831 (init_dummy_target): Update.
12832 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12833 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12834 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12835 (target_can_async_p, target_is_async_p, target_async)
12836 (target_stopped_by_watchpoint): Update.
12837
12838 2014-02-19 Yao Qi <yao@codesourcery.com>
12839
12840 PR gdb/16220
12841 * gdbarch.sh: Remove startup_gdbarch.
12842 * gdbarch.c: Regenerated.
12843 * gdbarch.h: Likewise.
12844
12845 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12846
12847 * rl78-tdep.c (rl78_g10_register_name): New function.
12848 (rl78_return_value): Add g10 support.
12849 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12850 g10.
12851
12852 2014-02-17 Doug Evans <xdje42@gmail.com>
12853
12854 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12855 (SUBDIR_GUILE_SRCS): Ditto.
12856 (scm-gsmob.o): Ditto.
12857
12858 2014-02-17 Yao Qi <yao@codesourcery.com>
12859
12860 * gnu-nat.c (ILL_RPC): Declare defined function.
12861
12862 2014-02-17 Yao Qi <yao@codesourcery.com>
12863
12864 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12865 mach_msg_type_number_t.
12866 (gnu_write_inferior): Likewise.
12867
12868 2014-02-17 Yao Qi <yao@codesourcery.com>
12869
12870 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12871 in format string.
12872 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12873 (inf_validate_procs, inf_signal): Likewise.
12874 (S_exception_raise_request): Likewise.
12875 (do_mach_notify_dead_name): Likewise.
12876 (steal_exc_port): Likewise.
12877 (gnu_read_inferior): Change 'copy_count''s type to
12878 mach_msg_type_number_t.
12879 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12880 format string.
12881
12882 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12883
12884 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12885 flag. Adjust all users; in particular...
12886 (gnu_wait): ..., don't decrement its value in here...
12887 (gnu_create_inferior): ..., and instead set the flag in here,
12888 around the startup_inferior call, and call that one with
12889 START_INFERIOR_TRAPS_EXPECTED.
12890
12891 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12892 (ILL_RPC): ... new macro.
12893 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12894 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12895 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12896 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12897 functions with ILL_RPC macro.
12898 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12899 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12900 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12901 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12902 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12903 (S_proc_getlogin_reply, S_proc_getsid_reply)
12904 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12905 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12906 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12907 (S_proc_getnports_reply, S_proc_is_important_reply)
12908 (S_proc_get_code_reply): New stub functions, generated with
12909 ILL_RPC macro.
12910
12911 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12912 collected the type check structures.
12913
12914 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12915
12916 2014-02-14 Doug Evans <dje@google.com>
12917
12918 * target.c (target_write_partial): Fix result type.
12919
12920 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12921
12922 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12923 the proper offsets to access fpregset_t.
12924
12925 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12926
12927 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12928 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12929 * h8300-tdep.c (setmachinelist): Remove global.
12930 * hppa-tdep.c (hppa_sigtramp): Remove global.
12931 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12932 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12933 * ravenscar-thread.c (update_target_observer): Remove global.
12934 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12935
12936 2014-02-12 Tom Tromey <tromey@redhat.com>
12937
12938 * common/rsp-low.c: Update comments.
12939 * common/rsp-low.h: Update comments.
12940
12941 2014-02-12 Tom Tromey <tromey@redhat.com>
12942
12943 * common/rsp-low.c (convert_ascii_to_int): Remove.
12944 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12945
12946 2014-02-12 Tom Tromey <tromey@redhat.com>
12947
12948 * common/rsp-low.h (unhexify): Don't declare.
12949 * common/rsp-low.c (unhexify): Remove.
12950
12951 2014-02-12 Tom Tromey <tromey@redhat.com>
12952
12953 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12954 * common/rsp-low.c (convert_int_to_ascii): Remove.
12955
12956 2014-02-12 Tom Tromey <tromey@redhat.com>
12957
12958 * common/rsp-low.h (hexify): Don't declare.
12959 * common/rsp-low.c (hexify): Remove.
12960
12961 2014-02-12 Tom Tromey <tromey@redhat.com>
12962
12963 * common/rsp-low.c (hexify): Never take strlen of argument.
12964
12965 2014-02-12 Tom Tromey <tromey@redhat.com>
12966
12967 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12968 * remote.c (extended_remote_run, remote_rcmd)
12969 (remote_download_trace_state_variable, remote_save_trace_data)
12970 (remote_set_trace_notes): Update.
12971 * tracepoint.c (encode_source_string, tfile_write_status)
12972 (tfile_write_uploaded_tsv): Update.
12973
12974 2014-02-12 Tom Tromey <tromey@redhat.com>
12975
12976 * tracepoint.c: Include rsp-low.h.
12977 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12978 * remote.c: Include rsp-low.h.
12979 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12980 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12981 (remote_unescape_input): Move to common/rsp-low.c.
12982 * common/rsp-low.h: New file.
12983 * common/rsp-low.c: New file.
12984 * Makefile.in (SFILES): Add common/rsp-low.c.
12985 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12986 (COMMON_OBS): Add rsp-low.o.
12987 (rsp-low.o): New target.
12988
12989 2014-02-12 Tom Tromey <tromey@redhat.com>
12990
12991 * utils.h: Include print-utils.h.
12992 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12993 (int_string, core_addr_to_string, core_addr_to_string_nz)
12994 (hex_string, hex_string_custom): Don't declare.
12995 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12996 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12997 (hex_string_custom, int_string, core_addr_to_string)
12998 (core_addr_to_string_nz, host_address_to_string): Move to
12999 common/print-utils.c.
13000 * common/print-utils.h: New file.
13001 * common/print-utils.c: New file
13002 * Makefile.in (SFILES): Add common/print-utils.c.
13003 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13004 (COMMON_OBS): Add print-utils.o.
13005 (print-utils.o): New target.
13006
13007 2014-02-12 Tom Tromey <tromey@redhat.com>
13008
13009 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13010
13011 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13012
13013 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13014
13015 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13016
13017 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13018 if a PT_IO ptrace request returns sucessfully but indicates that 0
13019 bytes were transferred.
13020
13021 2014-02-12 Pedro Alves <palves@redhat.com>
13022 Kevin Buettner <kevinb@redhat.com>
13023
13024 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13025 TYPE_INSTANCE_FLAG_CODE_SPACE.
13026
13027 2014-02-12 Pedro Alves <palves@redhat.com>
13028
13029 * h8300-tdep.c (pseudo_from_raw_register)
13030 (raw_from_pseudo_register): New functions.
13031 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13032 them.
13033
13034 2014-02-12 Pedro Alves <palves@redhat.com>
13035
13036 * h8300-tdep.c (h8300_register_sim_regno): New function.
13037 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13038 gdbarch_register_sim_regno hook.
13039
13040 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13041
13042 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13043
13044 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13045
13046 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13047
13048 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13049
13050 * obsd-tdep.h (obsd_init_abi): New prototype.
13051 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13052 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13053 (obsd_init_abi): New functions.
13054 * i386obsd-tdep.c: Include "obsd-tdep.h".
13055 (i386obsd_init_abi): Call obsd_init_abi.
13056 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13057 (amd64obsd_init_abi): Call obsd_init_abi.
13058 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13059 obsd-tdep.c to gdb_target_obs.
13060
13061 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13062
13063 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13064 double float arguments to 16-byte in the argument slots.
13065
13066 2014-02-11 Doug Evans <xdje42@gmail.com>
13067
13068 * configure.ac: Don't crash if pkg-config is not found and guile
13069 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13070 in guile checks.
13071 * configure: Regenerate.
13072
13073 2014-02-11 Yao Qi <yao@codesourcery.com>
13074
13075 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13076 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13077 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13078 * gnu-nat.c (gnu_xfer_memory): Likewise.
13079 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13080 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13081 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13082 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13083
13084 2014-02-11 Yao Qi <yao@codesourcery.com>
13085
13086 * target.h (enum target_xfer_error): Rename to ...
13087 (enum target_xfer_status): ... it. New. All users updated.
13088 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13089 New.
13090 (TARGET_XFER_STATUS_ERROR_P): New macro.
13091 (target_xfer_error_to_string): Remove declaration.
13092 (target_xfer_status_to_string): Declare.
13093 (target_xfer_partial_ftype): Adjust it.
13094 (struct target_ops) <to_xfer_partial>: Return
13095 target_xfer_status. Add argument xfered_len. Update
13096 comments.
13097 * target.c (target_xfer_error_to_string): Rename to ...
13098 (target_xfer_status_to_string): ... it. New. All callers
13099 updated.
13100 (target_read_live_memory): Likewise. Call target_xfer_partial
13101 instead of target_read.
13102 (memory_xfer_live_readonly_partial): Return
13103 target_xfer_status. Add argument xfered_len.
13104 (raw_memory_xfer_partial): Likewise.
13105 (memory_xfer_partial_1): Likewise.
13106 (memory_xfer_partial): Likewise.
13107 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13108 properly. Update debug message.
13109 (default_xfer_partial, current_xfer_partial): Likewise.
13110 (target_write_partial): Likewise.
13111 (target_read_partial): Likewise. All callers updated.
13112 (read_whatever_is_readable): Likewise.
13113 (target_write_with_progress): Likewise.
13114 (target_read_alloc_1): Likewise.
13115
13116 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13117 * auxv.c (procfs_xfer_auxv): Likewise.
13118 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13119 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13120 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13121 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13122 * corefile.c (read_memory): Adjust.
13123 * corelow.c (core_xfer_partial): Likewise.
13124 * ctf.c (ctf_xfer_partial): Likewise.
13125 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13126 updated.
13127 (darwin_xfer_partial): Likewise.
13128 * exec.c (section_table_xfer_memory_partial): Likewise. All
13129 callers updated.
13130 (exec_xfer_partial): Likewise.
13131 * exec.h (section_table_xfer_memory_partial): Update
13132 declaration.
13133 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13134 negative.
13135 (gnu_xfer_partial): Likewise.
13136 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13137 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13138 (ia64_hpux_xfer_solib_got): Likewise.
13139 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13140 type of 'partial_len' to ULONGEST.
13141 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13142 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13143 (linux_nat_xfer_partial): Likewise.
13144 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13145 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13146 * monitor.c (monitor_xfer_memory): Likewise.
13147 (monitor_xfer_partial): Likewise.
13148 * procfs.c (procfs_xfer_partial): Likewise.
13149 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13150 * record-full.c (record_full_xfer_partial): Likewise.
13151 (record_full_core_xfer_partial): Likewise.
13152 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13153 (gdbsim_xfer_partial): Likewise.
13154 * remote.c (remote_write_bytes_aux): Likewise. All callers
13155 updated.
13156 (remote_write_bytes, remote_read_bytes): Likewise. All
13157 callers updated.
13158 (remote_flash_erase): Likewise. All callers updated.
13159 (remote_write_qxfer): Likewise. All callers updated.
13160 (remote_read_qxfer): Likewise. All callers updated.
13161 (remote_xfer_partial): Likewise.
13162 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13163 (rs6000_xfer_shared_libraries): Likewise.
13164 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13165 (sol_thread_xfer_partial): Likewise.
13166 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13167 (sparc_xfer_partial): Likewise.
13168 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13169 updated.
13170 (spu_xfer_partial): Likewise.
13171 * spu-multiarch.c (spu_xfer_partial): Likewise.
13172 * tracepoint.c (tfile_xfer_partial): Likewise.
13173 * windows-nat.c (windows_xfer_memory): Likewise.
13174 (windows_xfer_shared_libraries): Likewise.
13175 (windows_xfer_partial): Likewise.
13176 * valprint.c: Replace 'target_xfer_error' with
13177 'target_xfer_status' in comments.
13178
13179 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13180
13181 Checked in by Joel Brobecker <brobecker@adacore.com>.
13182 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13183
13184 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13185
13186 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13187 function parameters.
13188
13189 2014-02-10 Will Newton <will.newton@linaro.org>
13190
13191 * elfread.c (elf_rel_plt_read): Look for a .got section if
13192 looking up .got.plt fails.
13193 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13194 on address passed to elf_gnu_ifunc_record_cache.
13195 (elf_gnu_ifunc_resolve_addr): Likewise.
13196 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13197
13198 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13199
13200 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13201 (X_RETTURN): New macro.
13202 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13203
13204 * sparc64-tdep.c (sparc64_init_abi): Hook
13205 sparc_in_function_epilogue_p.
13206
13207 2014-02-10 Gary Benson <gbenson@redhat.com>
13208
13209 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13210 Rename name_matcher to symbol_matcher.
13211
13212 2014-02-10 Gary Benson <gbenson@redhat.com>
13213
13214 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13215 Use expand_symtabs_file_matcher_ftype and
13216 expand_symtabs_symbol_matcher_ftype.
13217
13218 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13219
13220 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13221 (struct ada_symbol_cache): New.
13222 (ada_free_symbol_cache): Forward declare.
13223 (struct ada_pspace_data): New.
13224 (ada_pspace_data_handle): New static global.
13225 (get_ada_pspace_data, ada_pspace_data_cleanup)
13226 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13227 (cache_space, cache): Delete, now folded inside struct
13228 ada_pspace_data.
13229 (ada_get_symbol_cache): New function.
13230 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13231 implementation.
13232 (_initialize_ada_language): Remove initialization of cache_space.
13233 Move call to observer_attach_inferior_exit up, grouping it
13234 with the other observer registrations inside this function.
13235 Rename command to be more general. Add call to
13236 register_program_space_data_with_cleanup.
13237
13238 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13239
13240 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13241 ada_new_objfile_observer.
13242 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13243 (_initialize_tasks): Update uses of ada_new_objfile_observer
13244 and ada_tasks_normal_stop_observer.
13245
13246 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13247
13248 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13249 returned by the 'Length attribute to integer.
13250
13251 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13252
13253 * ada-lang.c (_initialize_ada_language): Initialize
13254 cache_space obstack.
13255
13256 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13257
13258 * ada-lang.c (HASH_SIZE): New macro.
13259 (struct cache_entry): New type.
13260 (cache_space, cache): New static globals.
13261 (ada_clear_symbol_cache, find_entry): New functions.
13262 (lookup_cached_symbol, cache_symbol): Implement.
13263 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13264 (_initialize_ada_language): Attach ada_new_objfile_observer
13265 and ada_free_objfile_observer.
13266
13267 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13268
13269 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13270 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13271 struct block * parameter.
13272 (ada_lookup_symbol_list_worker): Constify local variable "block".
13273 Remove cast which is no longer necessary.
13274
13275 2014-02-10 Doug Evans <xdje42@gmail.com>
13276
13277 Add Guile as an extension language.
13278 * NEWS: Mention Guile scripting.
13279 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13280 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13281 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13282 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13283 (CLIBS): Add GUILE_LIBS.
13284 (install-guile): New rule.
13285 (guile.o): New rule.
13286 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13287 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13288 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13289 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13290 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13291 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13292 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13293 * configure.ac: New option --with-guile.
13294 * configure: Regenerate.
13295 * config.in: Regenerate.
13296 * auto-load.c: Remove #include "python/python.h". Add #include
13297 "gdb/section-scripts.h".
13298 (source_section_scripts): Handle Guile scripts.
13299 (_initialize_auto_load): Add name of Guile objfile script to
13300 scripts-directory help text.
13301 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13302 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13303 (struct breakpoint): New member scm_bp_object.
13304 * defs.h (enum command_control_type): New value guile_control.
13305 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13306 "extension.h".
13307 (show_user): Update comment.
13308 (_initialize_cli_cmds): Update help text for "show user". Update help
13309 text for max-user-call-depth.
13310 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13311 "extension.h".
13312 (multi_line_command_p): Add guile_control.
13313 (print_command_lines): Handle guile_control.
13314 (execute_control_command, recurse_read_control_structure): Ditto.
13315 (process_next_line): Recognize "guile" commands.
13316 * disasm.c (gdb_disassemble_info): Make non-static.
13317 * disasm.h: #include "dis-asm.h".
13318 (struct gdbarch): Add forward decl.
13319 (gdb_disassemble_info): Declare.
13320 * extension.c: #include "guile/guile.h".
13321 (extension_languages): Add guile.
13322 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13323 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13324 * gdbtypes.c (get_unsigned_type_max): New function.
13325 (get_signed_type_minmax): New function.
13326 * gdbtypes.h (get_unsigned_type_max): Declare.
13327 (get_signed_type_minmax): Declare.
13328 * guile/README: New file.
13329 * guile/guile-internal.h: New file.
13330 * guile/guile.c: New file.
13331 * guile/guile.h: New file.
13332 * guile/scm-arch.c: New file.
13333 * guile/scm-auto-load.c: New file.
13334 * guile/scm-block.c: New file.
13335 * guile/scm-breakpoint.c: New file.
13336 * guile/scm-disasm.c: New file.
13337 * guile/scm-exception.c: New file.
13338 * guile/scm-frame.c: New file.
13339 * guile/scm-gsmob.c: New file.
13340 * guile/scm-iterator.c: New file.
13341 * guile/scm-lazy-string.c: New file.
13342 * guile/scm-math.c: New file.
13343 * guile/scm-objfile.c: New file.
13344 * guile/scm-ports.c: New file.
13345 * guile/scm-pretty-print.c: New file.
13346 * guile/scm-safe-call.c: New file.
13347 * guile/scm-string.c: New file.
13348 * guile/scm-symbol.c: New file.
13349 * guile/scm-symtab.c: New file.
13350 * guile/scm-type.c: New file.
13351 * guile/scm-utils.c: New file.
13352 * guile/scm-value.c: New file.
13353 * guile/lib/gdb.scm: New file.
13354 * guile/lib/gdb/boot.scm: New file.
13355 * guile/lib/gdb/experimental.scm: New file.
13356 * guile/lib/gdb/init.scm: New file.
13357 * guile/lib/gdb/iterator.scm: New file.
13358 * guile/lib/gdb/printing.scm: New file.
13359 * guile/lib/gdb/types.scm: New file.
13360 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13361 (VPATH): Add $(GUILE_SRCDIR).
13362 (GUILE_DIR): New variable.
13363 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13364 (all): Add stamp-guile dependency.
13365 (stamp-guile): New rule.
13366 (clean-guile, install-guile, uninstall-guile): New rules.
13367 (install-only): Add install-guile dependency.
13368 (uninstall): Add uninstall-guile dependency.
13369 (clean): Add clean-guile dependency.
13370
13371 2014-02-09 Doug Evans <xdje42@gmail.com>
13372
13373 Revert this patch (which I approved, mea culpa).
13374
13375 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13376
13377 * Makefile.in (all-lib): Remove.
13378 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13379
13380 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13381
13382 Fix Python stack corruption.
13383 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13384 gdb_py_longest.
13385
13386 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13387
13388 * Makefile.in (all-lib): Remove.
13389 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13390
13391 2014-02-07 Doug Evans <dje@google.com>
13392
13393 * extension-priv.h (extension_language_script_ops): Add comment.
13394 (extension_language_ops): Add comment.
13395 (active_ext_lang_state): Fix typo in comment.
13396
13397 2014-02-07 Pedro Alves <palves@redhat.com>
13398
13399 PR breakpoints/16292
13400 * infrun.c (handle_signal_stop) <signal arrives while stepping
13401 over a breakpoint>: Switch back to the stepping thread.
13402
13403 2014-02-07 Yao Qi <yao@codesourcery.com>
13404
13405 * target.c (target_xfer_partial): Return zero if LEN is zero.
13406
13407 2014-02-07 Yao Qi <yao@codesourcery.com>
13408
13409 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13410 (ld_so_xfer_auxv): Likewise.
13411 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13412 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13413 * corelow.c (core_xfer_partial): Likewise.
13414 * ctf.c (ctf_xfer_partial): Likewise.
13415 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13416 (darwin_xfer_partial): Likewise.
13417 * exec.c (exec_xfer_partial): Likewise.
13418 * gnu-nat.c (gnu_xfer_partial): Likewise.
13419 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13420 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13421 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13422 * linux-nat.c (linux_xfer_siginfo): Likewise.
13423 (linux_proc_xfer_spu): Likewise.
13424 * procfs.c (procfs_xfer_partial): Likewise.
13425 * record-full.c (record_full_xfer_partial): Likewise.
13426 (record_full_core_xfer_partial): Likewise.
13427 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13428 * remote.c (remote_write_qxfer): Likewise.
13429 (remote_write_qxfer, remote_read_qxfer): Likewise.
13430 (remote_xfer_partial): Likewise.
13431 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13432 (rs6000_xfer_shared_libraries): Likewise.
13433 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13434 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13435 (spu_xfer_partial): Likewise.
13436 * target.c (memory_xfer_partial_1): Likewise.
13437 * tracepoint.c (tfile_xfer_partial): Likewise.
13438 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13439 (windows_xfer_partial): Likewise.
13440
13441 2014-02-07 Yao Qi <yao@codesourcery.com>
13442
13443 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13444 comments.
13445 (core_xfer_shared_libraries_aix): Likewise.
13446 * gdbarch.c, gdbarch.h: Regenerated.
13447 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13448 ULONGEST. Change 'len_avail' type to ULONGEST.
13449 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13450 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13451 declaration.
13452 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13453
13454 2014-02-07 Yao Qi <yao@codesourcery.com>
13455
13456 * corefile.c (memory_error): Get 'exception' from ERR and pass
13457 'exception' to throw_error.
13458
13459 2014-02-06 Doug Evans <xdje42@gmail.com>
13460
13461 * configure.ac (libpython checking): Remove all but python.o from
13462 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13463 * configure: Regenerate.
13464
13465 * Makefile.in (SFILES): Add extension.c.
13466 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13467 (COMMON_OBS): Add extension.o.
13468 * extension.h: New file.
13469 * extension-priv.h: New file.
13470 * extension.c: New file.
13471
13472 * python/python-internal.h: #include "extension.h".
13473 (gdbpy_auto_load_enabled): Declare.
13474 (gdbpy_apply_val_pretty_printer): Declare.
13475 (gdbpy_apply_frame_filter): Declare.
13476 (gdbpy_preserve_values): Declare.
13477 (gdbpy_breakpoint_cond_says_stop): Declare.
13478 (gdbpy_breakpoint_has_cond): Declare.
13479 (void source_python_script_for_objfile): Delete.
13480 * python/python.c: #include "extension-priv.h".
13481 Delete inclusion of "observer.h".
13482 (extension_language_python): Moved here and renamed from
13483 script_language_python in py-auto-load.c.
13484 Redefined to be of type extension_language_defn.
13485 (python_extension_script_ops): New global.
13486 (python_extension_ops): New global.
13487 (struct python_env): New member previous_active.
13488 (restore_python_env): Call restore_active_ext_lang.
13489 (ensure_python_env): Call set_active_ext_lang.
13490 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13491 New arg extlang.
13492 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13493 New arg extlang.
13494 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13495 New arg extlang.
13496 (gdbpy_eval_from_control_command): Renamed from
13497 eval_python_from_control_command, made static. New arg extlang.
13498 (gdbpy_source_script) Renamed from source_python_script, made static.
13499 New arg extlang.
13500 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13501 result to int. New arg extlang.
13502 (gdbpy_source_objfile_script): Renamed from
13503 source_python_script_for_objfile, made static. New arg extlang.
13504 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13505 static. New args extlang, extlang_printers. Change result type to
13506 "void".
13507 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13508 static. New arg extlang. Rename arg printers to extlang_printers
13509 and change type to ext_lang_type_printers *.
13510 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13511 static. Replace argument arg with extlang, extlang_printers.
13512 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13513 (!HAVE_PYTHON, source_python_script): Delete.
13514 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13515 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13516 (!HAVE_PYTHON, start_type_printers): Delete.
13517 (!HAVE_PYTHON, apply_type_printers): Delete.
13518 (!HAVE_PYTHON, free_type_printers): Delete.
13519 (_initialize_python): Delete call to observer_attach_before_prompt.
13520 (finalize_python): Set/restore active extension language.
13521 (gdbpy_finish_initialization) Renamed from
13522 finish_python_initialization, made static. New arg extlang.
13523 (gdbpy_initialized): New function.
13524 * python/python.h: #include "extension.h". Delete #include
13525 "value.h", "mi/mi-cmds.h".
13526 (extension_language_python): Declare.
13527 (GDBPY_AUTO_FILE_NAME): Delete.
13528 (enum py_bt_status): Moved to extension.h and renamed to
13529 ext_lang_bt_status.
13530 (enum frame_filter_flags): Moved to extension.h.
13531 (enum py_frame_args): Moved to extension.h and renamed to
13532 ext_lang_frame_args.
13533 (finish_python_initialization): Delete.
13534 (eval_python_from_control_command): Delete.
13535 (source_python_script): Delete.
13536 (apply_val_pretty_printer): Delete.
13537 (apply_frame_filter): Delete.
13538 (preserve_python_values): Delete.
13539 (gdbpy_script_language_defn): Delete.
13540 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13541 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13542
13543 * auto-load.c: #include "extension.h".
13544 (GDB_AUTO_FILE_NAME): Delete.
13545 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13546 (script_language_gdb): Delete, moved to extension.c and renamed to
13547 extension_language_gdb.
13548 (source_gdb_script_for_objfile): Delete.
13549 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13550 (loaded_script): Change type of language member to
13551 struct extension_language_defn *.
13552 (init_loaded_scripts_info): Initialize
13553 unsupported_script_warning_printed.
13554 (maybe_add_script): Make static. Change type of language arg to
13555 struct extension_language_defn *.
13556 (clear_section_scripts): Reset unsupported_script_warning_printed.
13557 (auto_load_objfile_script_1): Rewrite to use extension language API.
13558 (auto_load_objfile_script): Make public. Remove support-compiled-in
13559 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13560 (source_section_scripts): Rewrite to use extension language API.
13561 (load_auto_scripts_for_objfile): Rewrite to use
13562 auto_load_scripts_for_objfile.
13563 (collect_matching_scripts_data): Change type of language member to
13564 struct extension_language_defn *.
13565 (auto_load_info_scripts): Change type of language arg to
13566 struct extension_language_defn *.
13567 (unsupported_script_warning_print): New function.
13568 (script_not_found_warning_print): Make static.
13569 (_initialize_auto_load): Rewrite construction of scripts-directory
13570 help.
13571 * auto-load.h (struct objfile): Add forward decl.
13572 (struct script_language): Delete.
13573 (struct auto_load_pspace_info): Add forward decl.
13574 (struct extension_language_defn): Add forward decl.
13575 (maybe_add_script): Delete.
13576 (auto_load_objfile_script): Declare.
13577 (script_not_found_warning_print): Delete.
13578 (auto_load_info_scripts): Update prototype.
13579 (auto_load_gdb_scripts_enabled): Declare.
13580 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13581 auto_load_python_scripts_enabled and made public.
13582 (script_language_python): Delete, moved to python.c.
13583 (gdbpy_script_language_defn): Delete.
13584 (info_auto_load_python_scripts): Update to use
13585 extension_language_python.
13586
13587 * breakpoint.c (condition_command): Replace call to
13588 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13589 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13590 with call to breakpoint_ext_lang_cond_says_stop.
13591 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13592 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13593 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13594 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13595 New arg slang.
13596 (local_setattro): Print name of extension language with existing
13597 stop condition.
13598
13599 * valprint.c (val_print, value_print): Update to call
13600 apply_ext_lang_val_pretty_printer.
13601 * cp-valprint.c (cp_print_value): Update call to
13602 apply_ext_lang_val_pretty_printer.
13603 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13604 (gdbpy_apply_val_pretty_printer): Renamed from
13605 apply_val_pretty_printer. New arg extlang.
13606 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13607
13608 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13609 extension language API.
13610 * cli/cli-script.c (execute_control_command): Update to call
13611 eval_ext_lang_from_control_command.
13612
13613 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13614 enum ext_lang_bt_status values. Update call to
13615 apply_ext_lang_frame_filter.
13616 (mi_cmd_stack_list_locals): Ditto.
13617 (mi_cmd_stack_list_args): Ditto.
13618 (mi_cmd_stack_list_variables): Ditto.
13619 * mi/mi-main.c: Delete #include "python/python-internal.h".
13620 Add #include "extension.h".
13621 (mi_cmd_list_features): Replace reference to python internal variable
13622 gdb_python_initialized with call to ext_lang_initialized_p.
13623
13624 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13625 Update to use enum ext_lang_frame_args. Update to call
13626 apply_ext_lang_frame_filter.
13627 * python/py-framefilter.c (extract_sym): Update to use enum
13628 ext_lang_bt_status.
13629 (extract_value, py_print_type, py_print_value): Ditto.
13630 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13631 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13632 (py_print_frame): Ditto.
13633 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13634 New arg extlang. Update to use enum ext_lang_bt_status.
13635
13636 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13637 finish_python_initialization. Replace with call to
13638 finish_ext_lang_initialization.
13639
13640 * typeprint.c (do_free_global_table): Update to call
13641 free_ext_lang_type_printers.
13642 (create_global_typedef_table): Update to call
13643 start_ext_lang_type_printers.
13644 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13645 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13646 (type_print_options): Change type of global_printers from "void *"
13647 to "struct ext_lang_type_printers *".
13648
13649 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13650 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13651 (gdbpy_preserve_values): Renamed from preserve_python_values.
13652 New arg extlang.
13653 (!HAVE_PYTHON, preserve_python_values): Delete.
13654
13655 * utils.c (quit_flag): Delete, moved to extension.c.
13656 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13657 extension.c.
13658
13659 * eval.c: Delete #include "python/python.h".
13660 * main.c: Delete #include "python/python.h".
13661
13662 * defs.h: Update comment.
13663
13664 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13665
13666 GDB 7.7 released.
13667
13668 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13669
13670 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13671 defined.
13672
13673 2014-02-05 Yao Qi <yao@codesourcery.com>
13674
13675 * remote.c (remote_pass_signals): Remove local 'buf' and use
13676 rs->buf.
13677 (remote_program_signals): Likewise.
13678
13679 2014-02-05 Yao Qi <yao@codesourcery.com>
13680
13681 * ctf.c: Include "inferior.h" and "gdbthread.h".
13682 (CTF_PID): A new macro.
13683 (ctf_open): Call inferior_appeared and add_thread_silent.
13684 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13685 (ctf_thread_alive): New function.
13686 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13687
13688 2014-02-05 Yao Qi <yao@codesourcery.com>
13689
13690 Revert this patch:
13691
13692 2013-05-24 Yao Qi <yao@codesourcery.com>
13693
13694 * tracepoint.c (TFILE_PID): Remove.
13695 (tfile_open): Don't add thread and inferior.
13696 (tfile_close): Don't set 'inferior_ptid'. Don't call
13697 exit_inferior_silent.
13698 (tfile_thread_alive): Remove.
13699 (init_tfile_ops): Don't set field 'to_thread_alive' of
13700 tfile_ops.
13701
13702 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13703
13704 * remote.c (remote_start_remote): Call remote_check_symbols even
13705 if only symbol-file (not file) has been given.
13706
13707 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13708
13709 * gdbarch.sh (skip_entrypoint): New callback.
13710 * gdbarch.c, gdbarch.h: Regenerate.
13711 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13712 * infrun.c (fill_in_stop_func): Likewise.
13713 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13714 (ppc_elfv2_elf_make_msymbol_special): New function.
13715 (ppc_elfv2_skip_entrypoint): Likewise.
13716 (ppc_linux_init_abi): Install them for ELFv2.
13717
13718 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13719
13720 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13721 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13722 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13723 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13724 structures returned in GPRs.
13725
13726 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13727
13728 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13729 offset to the stack parameter list for the ELFv2 ABI.
13730
13731 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13732
13733 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13734 set_gdbarch_convert_from_func_ptr_addr and
13735 set_gdbarch_elf_make_msymbol_special for ELFv1.
13736 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13737 function descriptors on ELFv1.
13738 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13739 set up r12 at function entry.
13740
13741 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13742
13743 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13744 (struct gdbarch_tdep): New member elf_abi.
13745
13746 * rs6000-tdep.c: Include "elf/ppc64.h".
13747 (rs6000_gdbarch_init): Detect ELF ABI version.
13748
13749 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13750
13751 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13752 within a register pair holding a DFP 128-bit value on little-endian.
13753 (ppc64_sysv_abi_return_value_base): Likewise.
13754 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13755 (dfp_pseudo_register_write): Likewise.
13756
13757 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13758
13759 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13760 offset on little-endian when passing _Decimal32.
13761 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13762
13763 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13764
13765 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13766 of the overlapped FP register within the VSX register on little-
13767 endian platforms.
13768 (efpr_pseudo_register_write): Likewise.
13769
13770 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13771
13772 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13773 offset on little-endian when passing small structures.
13774
13775 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13776
13777 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13778 (struct ppc64_sysv_argpos): New data structure.
13779 (ppc64_sysv_abi_push_float): Remove.
13780 (ppc64_sysv_abi_push_val): New function.
13781 (ppc64_sysv_abi_push_integer): Likewise.
13782 (ppc64_sysv_abi_push_freg): Likewise.
13783 (ppc64_sysv_abi_push_vreg): Likewise.
13784 (ppc64_sysv_abi_push_param): Likewise.
13785 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13786 (ppc64_sysv_abi_return_value_base): New function.
13787 (ppc64_sysv_abi_return_value): Refactor to use it.
13788
13789 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13790
13791 * NEWS: Document new target powerpc64le-*-linux*.
13792
13793 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13794
13795 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13796 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13797 core dumps.
13798 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13799 register set used in ELF core dumps. Add floating-point register set.
13800
13801 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13802
13803 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13804 dwarf2_to_gdb[] table using symbolic constants. Adjust
13805 penultimate entry from number representing the PC register
13806 to symbolic constant representing the MDR register. Add
13807 constant for the PC register to the end of the table.
13808
13809 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13810
13811 * bsd-kvm.c: Include <sys/param.h>
13812
13813 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13814
13815 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13816
13817 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13818
13819 * ada-lang.h (clear_ada_sym_cache): Delete.
13820
13821 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13822
13823 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13824
13825 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13826
13827 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13828 the sigreturn register save area only if the syscall is
13829 sigreturn.
13830
13831 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13832
13833 * valops.c (value_slice): Minor reformatting.
13834
13835 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13836
13837 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13838
13839 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13840
13841 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13842 New static globals.
13843 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13844 (ada_ignore_descriptive_types_p): New static global.
13845 (find_parallel_type_by_descriptive_type): Return immediately
13846 if ada_ignore_descriptive_types_p is set.
13847 (_initialize_ada_language): Register new commands "maintenance
13848 set ada", "maintenance show ada", "maintenance set ada
13849 ignore-descriptive-types" and "maintenance show ada
13850 ignore-descriptive-types".
13851 * NEWS: Add entry for new "maint ada set/show
13852 ignore-descriptive-types" commands.
13853
13854 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13855
13856 * record-btrace.c (record_btrace_close): Call btrace_teardown
13857 for all threads.
13858
13859 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13860
13861 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13862 "ui-out.h".
13863
13864 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13865
13866 * ada-typeprint (type_is_full_subrange_of_target_type):
13867 New function.
13868 (print_range): Add parameter bounds_prefered_p. If not set,
13869 try printing range types using the name of their base type.
13870 (print_range_type): Add parameter bounds_prefered_p.
13871 Use it in call to print_range.
13872 (print_array_type, ada_print_type): Update calls to print_range
13873 and print_range_type.
13874
13875 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13876
13877 * ada-typeprint.c (print_array_type, print_choices, print_range)
13878 (print_range_bound, print_dynamic_range_bound, print_range_type):
13879 Remove declaration.
13880
13881 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13882
13883 * ada-typeprint.c (print_range): Add missing empty line
13884 after local declaration.
13885
13886 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13887
13888 * ada-valprint.c (print_optional_low_bound): Get index_type's
13889 target type for as long as it is a TYPE_CODE_RANGE.
13890
13891 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13892
13893 * procfs.c (procfs_make_note_section): Remove assertion and
13894 associated comment.
13895
13896 2014-01-24 Yao Qi <yao@codesourcery.com>
13897
13898 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13899 * corelow.c (get_core_siginfo): Likewise.
13900
13901 2014-01-24 Yao Qi <yao@codesourcery.com>
13902
13903 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13904 ULONGEST. Don't check 'len' is negative.
13905 (remote_write_bytes): Change type of 'len' to ULONGEST.
13906
13907 2014-01-23 Tom Tromey <tromey@redhat.com>
13908
13909 PR python/16485:
13910 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13911 Handle exception from frame.block.
13912 (FrameVars.fetch_frame_locals): Likewise.
13913
13914 2014-01-23 Tom Tromey <tromey@redhat.com>
13915
13916 PR python/16487:
13917 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13918 on a NULL pointer. Move "goto error" to correct place.
13919
13920 2014-01-23 Tom Tromey <tromey@redhat.com>
13921
13922 PR python/16491:
13923 * python/py-framefilter.c (apply_frame_filter): Call
13924 ensure_python_env after computing gdbarch.
13925
13926 2014-01-23 Yao Qi <yao@codesourcery.com>
13927
13928 * target.c (raw_memory_xfer_partial): Change argument type
13929 from void * to gdb_byte *.
13930 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13931
13932 2014-01-22 Doug Evans <dje@google.com>
13933
13934 New gdbserver option --debug-format=timestamp.
13935 * NEWS: Mention it.
13936
13937 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13938
13939 * syscalls/s390x-linux.xml: New file.
13940 * syscalls/s390-linux.xml: New file.
13941 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13942 (XML_SYSCALL_FILENAME_S390X): Likewise.
13943 (op_svc): New enum value for SVC opcode.
13944 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13945 (s390_linux_get_syscall_number): New function.
13946 (s390_gdbarch_init): Register '*get_syscall_number' and the
13947 syscall xml file name.
13948 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13949 "s390-linux.xml" and "s390x-linux.xml".
13950 * NEWS: Announce new feature.
13951
13952 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13953
13954 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13955
13956 2014-01-22 Pedro Alves <palves@redhat.com>
13957
13958 * xtensa-config.c: Include defs.h.
13959
13960 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13961
13962 * common/common-utils.h: Add "ARI:" comment beside __func__
13963 reference.
13964
13965 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13966
13967 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13968 documentation a bit.
13969
13970 2014-01-21 Roland McGrath <mcgrathr@google.com>
13971
13972 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13973 * configure: Regenerate.
13974 * aclocal.m4: Regenerate.
13975 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13976 New substituted variables.
13977 (install-strip): New target.
13978 (INSTALL_SCRIPT): New substituted variable.
13979 (FLAGS_TO_PASS): Add it.
13980 (install-only): Use $(INSTALL_SCRIPT) rather than
13981 $(INSTALL_PROGRAM) for gcore.
13982
13983 2014-01-20 Tom Tromey <tromey@redhat.com>
13984
13985 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13986 together.
13987
13988 2014-01-20 Tom Tromey <tromey@redhat.com>
13989
13990 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13991 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13992 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13993 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13994 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13995 (struct cmd_list_element) <flags>: Remove.
13996 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13997 doc_allocated>: New fields.
13998 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13999 bitfields.
14000 * maint.c (maintenance_do_deprecate): Update.
14001 * top.c (execute_command): Update.
14002
14003 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14004
14005 * xtensa-linux-nat.c: Include asm/ptrace.h.
14006
14007 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14008
14009 * Makefile.in (SFILES): Add d-support.c.
14010 (COMMON_OBS): Add d-support.o.
14011 * d-lang.h (d_parse_symbol): Add comment, now defined in
14012 d-support.c.
14013 * d-lang.c (parse_call_convention)
14014 (parse_attributes, parse_function_types)
14015 (parse_function_args, parse_type, parse_identifier)
14016 (call_convention_p, d_parse_symbol): Move functions to ...
14017 * d-support.c: ... New file.
14018
14019 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14020
14021 * d-lang.h (d_parse_symbol): Add declaration.
14022 * d-lang.c (extract_identifiers)
14023 (extract_type_info): Remove functions.
14024 (parse_call_convention, parse_attributes)
14025 (parse_function_types, parse_function_args)
14026 (parse_type, parse_identifier, call_convention_p)
14027 (d_parse_symbol): New functions.
14028 (d_demangle): Use d_parse_symbol to demangle D symbols.
14029
14030 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14031
14032 * d-lang.h (struct builtin_d_type): New data type.
14033 (builtin_d_type): Add declaration.
14034 * d-lang.c (d_language_arch_info, build_d_types)
14035 (builtin_d_type): New functions.
14036 (enum d_primitive_types): New data type.
14037 (d_language_defn): Change c_language_arch_info to
14038 d_language_arch_info.
14039 (d_type_data): New static variable.
14040 (_initialize_d_language): Initialize d_type_data.
14041
14042 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14043
14044 * d-lang.h (d_main_name): Add declaration.
14045 * d-lang.c (d_main_name): New function.
14046 * symtab.c (find_main_name): Add call to d_main_name.
14047
14048 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14049
14050 * d-lang.c (d_language_defn): Change macro_expansion_c to
14051 macro_expansion_no.
14052
14053 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14054
14055 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14056
14057 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14058
14059 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14060 gdb_exception" declaration.
14061 * remote.c (getpkt_or_notif_sane): Likewise.
14062
14063 2014-01-17 Doug Evans <dje@google.com>
14064
14065 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14066 function, contents of dirnames_to_char_ptr_vec_append moved here.
14067 (delim_string_to_char_ptr_vec): New function.
14068 (dirnames_to_char_ptr_vec_append): Rewrite.
14069 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14070
14071 2014-01-17 Doug Evans <dje@google.com>
14072
14073 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14074 and moved here ...
14075 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14076 #include "common-utils.h".
14077 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14078 * common/vec.h (VEC_ASSERT_PASS): Update.
14079 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14080 (MACH_CHECK_ERROR): Update.
14081
14082 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14083
14084 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14085 comments.
14086 * gdbarch.h: Regenerate.
14087
14088 2014-01-16 Tom Tromey <tromey@redhat.com>
14089
14090 * value.c (struct value) <regnum>: Move earlier.
14091
14092 2014-01-16 Tom Tromey <tromey@redhat.com>
14093
14094 * remote.c (extended_remote_create_inferior): Rename from
14095 extended_remote_create_inferior_1. Add "ops" argument. Remove
14096 old implementation.
14097
14098 2014-01-16 Pedro Alves <palves@redhat.com>
14099
14100 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14101 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14102 the backchain.
14103
14104 2014-01-16 Doug Evans <dje@google.com>
14105
14106 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14107
14108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14109
14110 * btrace.h (btrace_thread_flag): New.
14111 (struct btrace_thread_info) <flags>: New.
14112 * record-btrace.c (record_btrace_resume_thread)
14113 (record_btrace_find_thread_to_move, btrace_step_no_history)
14114 (btrace_step_stopped, record_btrace_start_replaying)
14115 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14116 (record_btrace_find_resume_thread): New.
14117 (record_btrace_resume, record_btrace_wait): Extend.
14118 (record_btrace_can_execute_reverse): New.
14119 (record_btrace_open): Fail in non-stop mode.
14120 (record_btrace_set_replay): Split into this, ...
14121 (record_btrace_stop_replaying): ... this, ...
14122 (record_btrace_clear_histories): ... and this.
14123 (init_record_btrace_ops): Init to_can_execute_reverse.
14124 * NEWS: Announce it.
14125
14126 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14127
14128 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14129 (forward_target_decr_pc_after_break)
14130 (target_decr_pc_after_break): New.
14131 * target.c (forward_target_decr_pc_after_break)
14132 (target_decr_pc_after_break): New.
14133 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14134 instead of gdbarch_decr_pc_after_break.
14135 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14136 instead of gdbarch_decr_pc_after_break.
14137 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14138 instead of gdbarch_decr_pc_after_break.
14139 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14140 instead of gdbarch_decr_pc_after_break.
14141 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14142 instead of gdbarch_decr_pc_after_break.
14143 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14144 instead of gdbarch_decr_pc_after_break.
14145
14146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14147
14148 * btrace.c: Include regcache.h.
14149 (btrace_add_pc): New.
14150 (btrace_enable): Call btrace_add_pc.
14151 (btrace_is_empty): New.
14152 * btrace.h (btrace_is_empty): New.
14153 * record-btrace.c (require_btrace, record_btrace_info): Call
14154 btrace_is_empty.
14155
14156 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14157
14158 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14159 Support delta reads.
14160 (linux_disable_btrace): Change return type.
14161 * common/linux-btrace.h (linux_read_btrace): Change parameters
14162 and return type to allow error reporting. Update users.
14163 (linux_disable_btrace): Change return type. Update users.
14164 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14165 New.
14166 (btrace_error): New.
14167 (btrace_block) <begin>: Comment on BEGIN == 0.
14168 * btrace.c (btrace_compute_ftrace): Start from the end of
14169 the current trace.
14170 (btrace_stitch_trace, btrace_clear_history): New.
14171 (btrace_fetch): Read delta trace, return if replaying.
14172 (btrace_clear): Move clear history code to btrace_clear_history.
14173 (parse_xml_btrace): Throw an error if parsing failed.
14174 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14175 and return type to allow error reporting.
14176 (target_read_btrace): Change parameters and return type to allow
14177 error reporting.
14178 * target.c (target_read_btrace): Update.
14179 * remote.c (remote_read_btrace): Support delta reads. Pass
14180 errors on.
14181 * NEWS: Announce it.
14182
14183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14184
14185 * record.h (record_btrace_frame_unwind)
14186 (record_btrace_tailcall_frame_unwind): New declarations.
14187 * dwarf2-frame: Include record.h
14188 (dwarf2_frame_cfa): Throw an error for btrace frames.
14189 * record-btrace.c: Include hashtab.h.
14190 (btrace_get_bfun_name): New.
14191 (btrace_call_history): Call btrace_get_bfun_name.
14192 (struct btrace_frame_cache): New.
14193 (bfcache): New.
14194 (bfcache_hash, bfcache_eq, bfcache_new): New.
14195 (btrace_get_frame_function): New.
14196 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14197 (record_btrace_frame_this_id): Compute own id.
14198 (record_btrace_frame_prev_register): Provide PC, throw_error
14199 for all other registers.
14200 (record_btrace_frame_sniffer): Detect btrace frames.
14201 (record_btrace_tailcall_frame_sniffer): New.
14202 (record_btrace_frame_dealloc_cache): New.
14203 (record_btrace_frame_unwind): Add new functions.
14204 (record_btrace_tailcall_frame_unwind): New.
14205 (_initialize_record_btrace): Allocate cache.
14206 * btrace.c (btrace_clear): Call reinit_frame_cache.
14207 * NEWS: Announce it.
14208
14209 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14210
14211 * record-btrace.c (record_btrace_set_replay)
14212 (record_btrace_goto_begin, record_btrace_goto_end)
14213 (record_btrace_goto): New.
14214 (init_record_btrace_ops): Initialize them.
14215 * NEWS: Announce it.
14216
14217 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14218
14219 * record-btrace.c (record_btrace_find_new_threads)
14220 (record_btrace_thread_alive): New.
14221 (init_record_btrace_ops): Initialize to_find_new_threads and
14222 to_thread_alive.
14223
14224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14225
14226 * record-btrace.c (record_btrace_resume): New.
14227 (record_btrace_wait): New.
14228 (init_record_btrace_ops): Initialize to_wait and to_resume.
14229
14230 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14231
14232 * record-btrace.c (record_btrace_xfer_partial)
14233 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14234 (record_btrace_allow_memory_access): New.
14235 (init_record_btrace_ops): Initialize new methods.
14236 * target.c (raw_memory_xfer_partial): Bail out if target reports
14237 that this memory is not available.
14238
14239 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14240
14241 * target.h (target_ops) <to_insert_breakpoint>
14242 <to_remove_breakpoint>: Add target_ops parameter.
14243 (forward_target_insert_breakpoint): New.
14244 (forward_target_remove_breakpoint): New.
14245 (memory_remove_breakpoint, memory_insert_breakpoint):
14246 Add target_ops parameter.
14247 * target.c (target_insert_breakpoint): Split into this and ...
14248 (forward_target_insert_breakpoint): ... this.
14249 (target_remove_breakpoint): Split into this and ...
14250 (forward_target_remove_breakpoint): ... this.
14251 (debug_to_insert_breakpoint): Add target_ops parameter.
14252 Call forward_target_insert_breakpoint.
14253 (debug_to_remove_breakpoint): Add target_ops parameter.
14254 Call forward_target_remove_breakpoint.
14255 (update_current_target): Do not inherit or default to_insert_breakpoint
14256 and to_remove_breakpoint.
14257 * corelow.c (ignore): Add target_ops parameter.
14258 * exec.c (ignore): Add target_ops parameter.
14259 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14260 Add target_ops parameter.
14261 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14262 Add target_ops parameter.
14263 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14264 Add target_ops parameter.
14265 * record-full.c (record_full_beneath_to_insert_breakpoint)
14266 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14267 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14268 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14269 (record_full_core_remove_breakpoint): Add target_ops parameter.
14270 Update users.
14271 (record_full_beneath_to_insert_breakpoint_ops)
14272 (record_full_beneath_to_remove_breakpoint_ops)
14273 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14274 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14275 tmp_to_remove_breakpoint_ops,
14276 record_full_beneath_to_insert_breakpoint_ops, and
14277 record_full_beneath_to_remove_breakpoint_ops.
14278 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14279 (m32r_remove_breakpoint): Add target_ops parameter.
14280 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14281 Add target_ops parameter.
14282 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14283 Add target_ops parameter.
14284
14285 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14286 Markus Metzger <markus.t.metzger@intel.com>
14287
14288 * record-btrace.c: Include frame-unwind.h.
14289 (record_btrace_frame_unwind_stop_reason)
14290 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14291 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14292 New.
14293 (init_record_btrace_ops): Install it.
14294
14295 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14296
14297 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14298 get_prev_frame_1.
14299
14300 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14301
14302 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14303 earlier.
14304
14305 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14306
14307 * frame-unwind.c: Include target.h.
14308 (frame_unwind_try_unwinder): New function with code from ...
14309 (frame_unwind_find_by_frame): ... here. New variable
14310 unwinder_from_target, call also target_get_unwinder)
14311 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14312 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14313 * target.h (struct target_ops): New fields to_get_unwinder and
14314 to_get_tailcall_unwinder.
14315 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14316
14317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14318
14319 * record-btrace.c (record_btrace_fetch_registers)
14320 (record_btrace_store_registers)
14321 (record_btrace_to_prepare_to_store): New.
14322 (init_record_btrace_ops): Add the above.
14323
14324 2014-01-16 Tom Tromey <tromey@redhat.com>
14325
14326 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14327 * target.h (struct target_ops) <to_prepare_to_store>: Add
14328 argument.
14329 (target_prepare_to_store): Add argument.
14330 * target.c (debug_to_prepare_to_store): Add argument.
14331 (update_current_target): Update.
14332 * remote.c (remote_prepare_to_store): Add 'self' argument.
14333 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14334 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14335 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14336 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14337 argument.
14338 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14339 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14340 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14341 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14342 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14343
14344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14345
14346 * btrace.h (replay) <replay>: New.
14347 (btrace_is_replaying): New.
14348 * btrace.c (btrace_clear): Free replay iterator.
14349 (btrace_is_replaying): New.
14350 * record-btrace.c (record_btrace_is_replaying): New.
14351 (record_btrace_info): Print insn number if replaying.
14352 (record_btrace_insn_history): Start at replay position.
14353 (record_btrace_call_history): Start at replay position.
14354 (init_record_btrace_ops): Init to_record_is_replaying.
14355
14356 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14357
14358 * record-btrace.c (record_btrace_insn_history_range): Include
14359 end.
14360 (record_btrace_insn_history_from): Adjust range.
14361 (record_btrace_call_history_range): Include
14362 end.
14363 (record_btrace_call_history_from): Adjust range.
14364 * NEWS: Announce changes.
14365
14366 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14367
14368 * record.h (enum record_print_flag)
14369 <record_print_indent_calls>: New.
14370 * record.c (get_call_history_modifiers): Recognize /c modifier.
14371 (_initialize_record): Document /c modifier.
14372 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14373 Reorder fields. Optionally indent the function name. Update
14374 all users.
14375 * NEWS: Announce changes.
14376
14377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14378
14379 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14380
14381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14382
14383 * btrace.c (ftrace_new_function): Start counting at one.
14384 * record-btrace.c (record_btrace_info): Adjust number of calls
14385 and insns.
14386 * NEWS: Announce it.
14387
14388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14389
14390 * record-btrace.c (btrace_call_history_insn_range): Print
14391 insn range as [begin, end].
14392
14393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14394
14395 * btrace.h (struct btrace_func_link): New.
14396 (enum btrace_function_flag): New.
14397 (struct btrace_inst): Rename to ...
14398 (struct btrace_insn): ...this. Update all users.
14399 (struct btrace_func) <ibegin, iend>: Remove.
14400 (struct btrace_func_link): New.
14401 (struct btrace_func): Rename to ...
14402 (struct btrace_function): ...this. Update all users.
14403 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14404 (number, level, flags>: New.
14405 (struct btrace_insn_iterator): Rename to ...
14406 (struct btrace_insn_history): ...this.
14407 Update all users.
14408 (struct btrace_insn_iterator, btrace_call_iterator): New.
14409 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14410 (struct btrace_target_info) <begin, end, level>
14411 <insn_history, call_history>: New.
14412 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14413 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14414 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14415 (btrace_call_number, btrace_call_begin, btrace_call_end)
14416 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14417 (btrace_find_function_by_number, btrace_set_insn_history)
14418 (btrace_set_call_history): New.
14419 * btrace.c (btrace_init_insn_iterator)
14420 (btrace_init_func_iterator, compute_itrace): Remove.
14421 (ftrace_print_function_name, ftrace_print_filename)
14422 (ftrace_skip_file): Change
14423 parameter to const.
14424 (ftrace_init_func): Remove.
14425 (ftrace_debug): Use new btrace_function fields.
14426 (ftrace_function_switched): Also consider gaining and
14427 losing symbol information).
14428 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14429 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14430 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14431 New.
14432 (ftrace_new_function): Move. Remove debug print.
14433 (ftrace_update_lines, ftrace_update_insns): New.
14434 (ftrace_update_function): Check for call, ret, and jump.
14435 (compute_ftrace): Renamed to ...
14436 (btrace_compute_ftrace): ...this. Rewritten to compute call
14437 stack.
14438 (btrace_fetch, btrace_clear): Updated.
14439 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14440 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14441 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14442 (btrace_call_number, btrace_call_begin, btrace_call_end)
14443 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14444 (btrace_find_function_by_number, btrace_set_insn_history)
14445 (btrace_set_call_history): New.
14446 * record-btrace.c (require_btrace): Use new btrace thread
14447 info fields.
14448 (record_btrace_info, btrace_insn_history)
14449 (record_btrace_insn_history, record_btrace_insn_history_range):
14450 Use new btrace thread info fields and new iterator.
14451 (btrace_func_history_src_line): Rename to ...
14452 (btrace_call_history_src_line): ...this. Use new btrace
14453 thread info fields.
14454 (btrace_func_history): Rename to ...
14455 (btrace_call_history): ...this. Use new btrace thread info
14456 fields and new iterator.
14457 (record_btrace_call_history, record_btrace_call_history_range):
14458 Use new btrace thread info fields and new iterator.
14459
14460 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14461
14462 * frame.h (frame_id_build_unavailable_stack_special): New.
14463 * frame.c (frame_id_build_unavailable_stack_special): New.
14464
14465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14466
14467 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14468 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14469 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14470 to gdbarch.
14471 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14472 (i386_insn_is_jump, i386_jmp_p): New.
14473 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14474 insn_is_jump to gdbarch.
14475 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14476 * gdbarch.h: Regenerated.
14477 * gdbarch.c: Regenerated.
14478 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14479 (default_insn_is_jump): New.
14480 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14481 (default_insn_is_jump): New.
14482
14483 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14484
14485 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14486 Change to ...
14487 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14488 (btrace_read_type) <btrace_read_new>: Change to ...
14489 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14490
14491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14492
14493 * common/linux-btrace.c (linux_read_btrace): Free trace from
14494 previous iteration.
14495
14496 2014-01-15 Doug Evans <dje@google.com>
14497
14498 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14499 uint32_t.
14500
14501 2014-01-15 Tom Tromey <tromey@redhat.com>
14502
14503 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14504 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14505 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14506 (set_objfile_main_name): New function.
14507 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14508 language_of_main>: New fields.
14509 (set_objfile_main_name): Declare.
14510 * symtab.c (find_main_name): Loop over objfiles to find the main
14511 name and language.
14512 (set_main_name): Now static.
14513 (get_main_info): Add comment.
14514 * symtab.h (set_main_name): Don't declare.
14515
14516 2014-01-15 Tom Tromey <tromey@redhat.com>
14517
14518 * symtab.c (main_progspace_key): New global.
14519 (struct main_info): New.
14520 (name_of_main, language_of_main): Remove.
14521 (get_main_info, main_info_cleanup): New function.
14522 (set_main_name, main_name, main_language): Use get_main_info.
14523 (_initialize_symtab): Initialize main_progspace_key.
14524
14525 2014-01-15 Tom Tromey <tromey@redhat.com>
14526
14527 * dbxread.c (process_one_symbol): Update.
14528 * dwarf2read.c (read_partial_die): Update.
14529 * symfile.c (set_initial_language): Call main_language.
14530 * symtab.c (language_of_main): Now static.
14531 (set_main_name): Add 'lang' parameter.
14532 (find_main_name): Update.
14533 (main_language): New function.
14534 (symtab_observer_executable_changed): Update.
14535 * symtab.h (set_main_name): Update.
14536 (language_of_main): Remove.
14537 (main_language): Declare.
14538
14539 2014-01-15 Tom Tromey <tromey@redhat.com>
14540
14541 * symfile.c (init_entry_point_info): Use new "initialized" field.
14542 Update.
14543 * objfiles.h (struct entry_point) <initialized>: New field.
14544 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14545 (struct objfile) <ei>: ...here. Remove.
14546 * objfiles.c (entry_point_address_query): Update.
14547
14548 2014-01-15 Tom Tromey <tromey@redhat.com>
14549
14550 * objfiles.c (entry_point_address_query): Relocate entry point
14551 address.
14552 (objfile_relocate1): Do not relocate entry point address.
14553 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14554 <the_bfd_section_index>: New field.
14555 * symfile.c (init_entry_point_info): Find the entry point's
14556 section.
14557
14558 2014-01-15 Tom Tromey <tromey@redhat.com>
14559
14560 * solib-frv.c (enable_break): Use entry_point_address_query.
14561
14562 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14563
14564 * NEWS: Add note on improved process record-replay on
14565 arm*-linux* targets.
14566
14567 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14568
14569 * arm-tdep.c (enum arm_record_result): New enum.
14570 (arm_record_unsupported_insn): New function.
14571 (arm_record_coproc_data_proc): Removed.
14572 (thumb2_record_ld_st_multiple): New function.
14573 (thumb2_record_ld_st_dual_ex_tbb): New function.
14574 (thumb2_record_data_proc_sreg_mimm): New function.
14575 (thumb2_record_ps_dest_generic): New function.
14576 (thumb2_record_branch_misc_cntrl): New function.
14577 (thumb2_record_str_single_data): New function.
14578 (thumb2_record_ld_mem_hints): New function.
14579 (thumb2_record_ld_word): New function.
14580 (thumb2_record_lmul_lmla_div): New function.
14581 (thumb2_record_decode_insn_handler): New function.
14582 (decode_insn): Add thumb32 instruction handlers.
14583
14584 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14585
14586 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14587 (struct arm_linux_record_tdep): Declare.
14588 (arm_canonicalize_syscall): New function.
14589 (arm_all_but_pc_registers_record): New function.
14590 (arm_linux_syscall_record): New function.
14591 (arm_linux_init_abi): Add syscall recording constructs.
14592 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14593 decoding. (arm_record_coproc_data_proc): Update arm syscall
14594 decoding.
14595 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14596 <arm_syscall_record>: New field.
14597 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14598 gdb_target_obs.
14599
14600 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14601
14602 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14603 register for push instruction recording.
14604
14605 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14606
14607 * arm-tdep.c (thumb_record_misc): Update to correct logical
14608 error while recording ldm, ldmia and pop instructions.
14609
14610 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14611
14612 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14613
14614 2014-01-15 Pedro Alves <palves@redhat.com>
14615
14616 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14617 (go32_resume, go32_fetch_registers, store_register)
14618 (go32_store_registers, go32_prepare_to_store)
14619 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14620 (go32_create_inferior, go32_can_run, go32_terminal_init)
14621 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14622 declarations.
14623
14624 2014-01-15 Tom Tromey <tromey@redhat.com>
14625
14626 * target.h (async_callback_ftype): New typedef.
14627 (struct target_ops) <to_async>: Use it.
14628
14629 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14630
14631 * python/py-value.c (get_field_type): Remove unnecessary curly
14632 braces for single-statement if block.
14633
14634 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14635
14636 * python/py-type.c (convert_field): Add missing empty line
14637 after declarations.
14638
14639 2014-01-14 Doug Evans <dje@google.com>
14640
14641 * symfile.h (expand_symtabs_matching): Renamed from
14642 expand_partial_symbol_names. Update prototype.
14643 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14644 * symfile.c (expand_symtabs_matching): Renamed from
14645 expand_partial_symbol_names. New args file_matcher, kind.
14646 Rename arg fun to symbol_matcher.
14647 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14648 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14649 ada_expand_partial_symbol_name.
14650 (ada_make_symbol_completion_list): Update to call
14651 expand_symtabs_matching.
14652 (ada_add_global_exceptions): Call expand_symtabs_matching.
14653 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14654 call map_symbol_filenames.
14655 * symtab.c (sources_info): Update to call map_symbol_filenames.
14656 (search_symbols): Call expand_symtabs_matching.
14657 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14658 (default_make_symbol_completion_list_break_on): Update to call
14659 expand_symtabs_matching.
14660 (make_source_files_completion_list): Update to call
14661 map_symbol_filenames.
14662
14663 2014-01-14 Doug Evans <dje@google.com>
14664
14665 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14666 (expand_symtabs_symbol_matcher_ftype): New typedef.
14667 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14668 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14669 * symfile.c (expand_partial_symbol_names): Update to use
14670 expand_symtabs_symbol_matcher_ftype.
14671 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14672 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14673 Arg name_matcher renamed to symbol_matcher.
14674 * psymtab.c (recursively_search_psymtabs): Update to use
14675 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14676 sym_matcher.
14677 (expand_symtabs_matching_via_partial): Update to use
14678 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14679 Arg name_matcher renamed to symbol_matcher.
14680
14681 2014-01-14 Doug Evans <dje@google.com>
14682
14683 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14684 (map_partial_symbol_filenames): Ditto.
14685 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14686 (map_partial_symbol_filenames): Ditto.
14687 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14688 (map_partial_symbol_filenames): Ditto.
14689 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14690 (map_partial_symbol_filenames): Ditto.
14691 * symtab.c: Delete #include "psymtab.h".
14692
14693 2014-01-14 Pedro Alves <palves@redhat.com>
14694 Tom Tromey <tromey@redhat.com>
14695
14696 * infrun.c (use_displaced_stepping): Use find_record_target
14697 instead of RECORD_IS_USED.
14698 (adjust_pc_after_break): Use record_full_is_used instead of
14699 RECORD_IS_USED.
14700 * record-btrace.c (record_btrace_open): Call record_preopen
14701 instead of checking RECORD_IS_USED.
14702 * record-full.c (record_full_shortname)
14703 (record_full_core_shortname): New globals.
14704 (record_full_is_used): New function.
14705 (find_full_open): Call record_preopen instead of checking
14706 RECORD_IS_USED.
14707 (init_record_full_ops): Set the target's shortname to
14708 record_full_shortname.
14709 (init_record_full_core_ops): Set the target's shortname to
14710 record_full_core_shortname.
14711 * record-full.h (record_full_is_used): Declare.
14712 * record.c (find_record_target): Make extern.
14713 (record_preopen): New function.
14714 * record.h (RECORD_IS_USED): Delete macro.
14715 (find_record_target, record_preopen): Declare functions.
14716
14717 2014-01-14 Yao Qi <yao@codesourcery.com>
14718
14719 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14720 'len''s type to ULONGEST.
14721 (core_xfer_shared_libraries_aix): Likewise.
14722 * gdbarch.c, gdbarch.h: Regenerated.
14723 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14724 Change type of 'len' to ULONGEST.
14725 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14726 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14727
14728 2014-01-14 Yao Qi <yao@codesourcery.com>
14729
14730 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14731 type of 'len' to ULONGEST.
14732 (linux_xfer_osdata_processgroups): Likewise.
14733 (linux_xfer_osdata_threads): Likewise.
14734 (linux_xfer_osdata_fds): Likewise.
14735 (linux_xfer_osdata_isockets): Likewise.
14736 (linux_xfer_osdata_shm): Likewise.
14737 (linux_xfer_osdata_sem): Likewise.
14738 (linux_xfer_osdata_msg): Likewise.
14739 (linux_common_xfer_osdata): Likewise.
14740 (struct osdata_type) <getter>: Likewise.
14741 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14742 the declaration.
14743
14744 2014-01-14 Yao Qi <yao@codesourcery.com>
14745
14746 * target.h (target_xfer_partial_ftype): Update.
14747 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14748 ULONGEST.
14749 * aix-thread.c (aix_thread_xfer_partial): Change type of
14750 argument 'len' to ULONGEST.
14751 * auxv.c (procfs_xfer_auxv): Likewise.
14752 (ld_so_xfer_auxv): Likewise.
14753 (memory_xfer_auxv): Likewise.
14754 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14755 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14756 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14757 * corelow.c (core_xfer_partial): Likewise.
14758 * ctf.c (ctf_xfer_partial): Likewise.
14759 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14760 '%u'.
14761 (darwin_read_dyld_info): Likewise.
14762 (darwin_xfer_partial): Likewise.
14763 * exec.c (section_table_xfer_memory_partial): Likewise.
14764 (exec_xfer_partial): Likewise.
14765 * exec.h (section_table_xfer_memory_partial): Update
14766 declaration.
14767 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14768 instead of plongest.
14769 (gnu_xfer_partial): Likewise.
14770 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14771 (ia64_hpux_xfer_solib_got): Likewise.
14772 (ia64_hpux_xfer_partial): Likewise.
14773 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14774 * inf-ptrace.c (inf_ptrace_xfer_partial):
14775 * inf-ttrace.c (inf_ttrace_xfer_partial):
14776 * linux-nat.c (linux_xfer_siginfo): Likewise.
14777 (linux_nat_xfer_partial): Likewise.
14778 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14779 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14780 * monitor.c (monitor_xfer_memory): Likewise.
14781 (monitor_xfer_partial): Likewise.
14782 * procfs.c (procfs_xfer_partial): Likewise.
14783 * record-full.c (record_full_xfer_partial): Likewise.
14784 (record_full_core_xfer_partial): Likewise.
14785 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14786 instead of plongest.
14787 (gdbsim_xfer_partial): Likewise.
14788 * remote.c (remote_xfer_partial): Likewise.
14789 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14790 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14791 declaration.
14792 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14793 (rs6000_xfer_shared_libraries): Likewise.
14794 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14795 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14796 (sparc_xfer_partial): Likewise.
14797 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14798 (spu_xfer_partial): Likewise.
14799 * spu-multiarch.c (spu_xfer_partial): Likewise.
14800 * target.c (target_read_live_memory): Likewise.
14801 (memory_xfer_live_readonly_partial): Likewise.
14802 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14803 (target_xfer_partial, default_xfer_partial): Likewise.
14804 (current_xfer_partial): Likewise.
14805 * tracepoint.c (tfile_xfer_partial): Likewise.
14806 * windows-nat.c (windows_xfer_memory): Likewise. Call
14807 pulongest instead of plongest.
14808 (windows_xfer_partial): Likewise.
14809 (windows_xfer_shared_libraries): Likewise.
14810
14811 2014-01-14 Yao Qi <yao@codesourcery.com>
14812
14813 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14814 target_xfer_partial_ftype.
14815
14816 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14817
14818 PR python/15464
14819 PR python/16113
14820 * valops.c (value_struct_elt_bitpos): New function
14821 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14822 object to 'None' if the field name is an empty string ("").
14823 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14824 attribute to look for a field when 'name' is 'None'.
14825 (get_field_type): New function
14826
14827 2014-01-13 Doug Evans <dje@google.com>
14828
14829 PR symtab/16426
14830 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14831 (try_open_dwop_file): Ditto.
14832 * gdb_bfd.c: #include "vec.h".
14833 (bfdp): New typedef.
14834 (struct gdb_bfd_data): New member included_bfds.
14835 (gdb_bfd_unref): Unref all included bfds.
14836 (gdb_bfd_record_inclusion): New function.
14837 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14838
14839 2014-01-13 Tom Tromey <tromey@redhat.com>
14840
14841 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14842
14843 2014-01-13 Tom Tromey <tromey@redhat.com>
14844
14845 * defs.h (use_windows): Remove.
14846 * gdb.c (main): Update.
14847 * main.c (captured_main, gdb_main): Update.
14848 * main.h (struct captured_main_args) <use_windows>: Remove.
14849 * top.c (use_windows): Remove.
14850
14851 2014-01-13 Tom Tromey <tromey@redhat.com>
14852
14853 * defs.h (deprecated_flush_hook): Remove.
14854
14855 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14856
14857 PR threads/16216
14858 * linux-thread-db.c (try_thread_db_load): Add parameter
14859 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14860 (try_thread_db_load_from_pdir_1): Move it there from here.
14861 (try_thread_db_load_from_sdir): Update caller.
14862 (try_thread_db_load_from_dir): Move it there from here.
14863
14864 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14865
14866 * regformats/regdat.sh: Always rewrite the register file.
14867
14868 2014-01-13 Pedro Alves <palves@redhat.com>
14869
14870 * Makefile.in (CHECK_HEADERS): New variable.
14871 (check-headers:): New rule.
14872
14873 2014-01-13 Tom Tromey <tromey@redhat.com>
14874
14875 * cli/cli-setshow.c (do_set_command): Update.
14876 * defs.h (deprecated_set_hook): Remove.
14877 * top.c (deprecated_set_hook): Remove.
14878
14879 2014-01-13 Pedro Alves <palves@redhat.com>
14880
14881 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14882 the tracepoint if the PC is a pseudo-register.
14883
14884 2014-01-13 Tom Tromey <tromey@redhat.com>
14885
14886 * defs.h (XCALLOC): Remove.
14887 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14888 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14889 * dwarf2loc.c (allocate_piece_closure): Likewise.
14890 * elfread.c (elf_symfile_segments): Likewise.
14891 (elf_symfile_segments): Likewise.
14892 * gdbtypes.c (copy_type_recursive): Likewise.
14893 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14894 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14895 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14896 XCALLOC.
14897 * mt-tdep.c (mt_gdbarch_init): Likewise.
14898 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14899 XCALLOC.
14900 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14901 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14902 * registry.c (registry_alloc_data): Likewise.
14903 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14904 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14905 * serial.c (serial_fdopen_ops): Likewise.
14906 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14907 XCALLOC.
14908 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14909 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14910 not XCALLOC.
14911
14912 2014-01-13 Tom Tromey <tromey@redhat.com>
14913
14914 * defs.h (XMALLOC): Remove.
14915 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14916 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14917 * cli-out.c (struct ui_out *): Likewise.
14918 * cli/cli-dump.c (add_dump_command): Likewise.
14919 (add_dump_command): Likewise.
14920 * complaints.c (get_complaints): Likewise.
14921 (find_complaint): Likewise.
14922 * dwarf2-frame.c (execute_cfa_program): Likewise.
14923 * dwarf2read.c (abbrev_table_read_table): Likewise.
14924 * gdbarch.sh: Likewise.
14925 * gdbarch.c: Rebuild.
14926 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14927 * interps.c (interp_new): Likewise.
14928 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14929 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14930 * mi/mi-console.c (mi_console_file_new): Likewise.
14931 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14932 * mi/mi-out.c (mi_out_new): Likewise.
14933 * mi/mi-parse.c (mi_parse): Likewise.
14934 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14935 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14936 * observer.c (xalloc_observer_list_node): Likewise.
14937 * regcache.c (regcache_xmalloc_1): Likewise.
14938 * reggroups.c (reggroup_new): Likewise.
14939 (_initialize_reggroup): Likewise.
14940 * registry.c (register_data_with_cleanup): Likewise.
14941 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14942 * ser-base.c (serial_ttystate): Likewise.
14943 * ser-mingw.c (make_pipe_state): Likewise.
14944 * ser-pipe.c (pipe_open): Likewise.
14945 * serial.c (serial_open): Likewise.
14946 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14947 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14948 (tui_alloc_win_info): Likewise.
14949 (tui_add_content_elements): Likewise.
14950 * tui/tui-file.c (tui_file_new): Likewise.
14951 * tui/tui-out.c (tui_out_new): Likewise.
14952 * ui-file.c (mem_file_new): Likewise.
14953 * ui-out.c (push_level): Likewise.
14954 (make_cleanup_ui_out_end): Likewise.
14955 (append_header_to_list): Likewise.
14956 (ui_out_new): Likewise.
14957 * user-regs.c (user_reg_add_builtin): Likewise.
14958
14959 2014-01-13 Tom Tromey <tromey@redhat.com>
14960
14961 * defs.h (XZALLOC): Remove.
14962 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14963 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14964 (get_ada_tasks_inferior_data): Likewise.
14965 * auto-load.c (get_auto_load_pspace_data): Likewise.
14966 * auxv.c (get_auxv_inferior_data): Likewise.
14967 * bfd-target.c (target_bfd_reopen): Likewise.
14968 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14969 (deprecated_insert_raw_breakpoint): Likewise.
14970 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14971 * corelow.c (core_open): Likewise.
14972 * darwin-nat.c (darwin_check_new_threads): Likewise.
14973 (darwin_attach_pid): Likewise.
14974 * dummy-frame.c (dummy_frame_push): Likewise.
14975 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14976 * dwarf2loc.c (allocate_piece_closure): Likewise.
14977 * elfread.c (elf_symfile_segments): Likewise.
14978 * eval.c (ptrmath_type_p): Likewise.
14979 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14980 * gdbtypes.c (alloc_type_arch): Likewise.
14981 (alloc_type_instance): Likewise.
14982 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14983 * inf-child.c (inf_child_can_use_agent): Likewise.
14984 * inflow.c (get_inflow_inferior_data): Likewise.
14985 * infrun.c (save_infcall_suspend_state): Likewise.
14986 * jit.c (jit_reader_load): Likewise.
14987 (get_jit_objfile_data): Likewise.
14988 (get_jit_program_space_data): Likewise.
14989 (jit_object_open_impl): Likewise.
14990 (jit_symtab_open_impl): Likewise.
14991 (jit_block_open_impl): Likewise.
14992 (jit_frame_sniffer): Likewise.
14993 * linux-fork.c (add_fork): Likewise.
14994 * maint.c (make_command_stats_cleanup): Likewise.
14995 * objfiles.c (get_objfile_pspace_data): Likewise.
14996 * opencl-lang.c (struct lval_closure): Likewise.
14997 * osdata.c (osdata_start_osdata): Likewise.
14998 * progspace.c (new_address_space): Likewise.
14999 (add_program_space): Likewise.
15000 * remote-sim.c (get_sim_inferior_data): Likewise.
15001 * sh-tdep.c (sh_gdbarch_init): Likewise.
15002 * skip.c (Ignore): Likewise.
15003 (skip_delete_command): Likewise.
15004 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15005 (library_list_start_library): Likewise.
15006 (solib_aix_current_sos): Likewise.
15007 * solib-darwin.c (get_darwin_info): Likewise.
15008 (darwin_current_sos): Likewise.
15009 * solib-dsbt.c (get_dsbt_info): Likewise.
15010 * solib-ia64-hpux.c (new_so_list): Likewise.
15011 (ia64_hpux_get_solib_linkage_addr): Likewise.
15012 * solib-spu.c (append_ocl_sos): Likewise.
15013 (spu_current_sos): Likewise.
15014 * solib-svr4.c (get_svr4_info): Likewise.
15015 (svr4_keep_data_in_core): Likewise.
15016 (library_list_start_library): Likewise.
15017 (svr4_default_sos): Likewise.
15018 (svr4_read_so_list): Likewise.
15019 * solib-target.c (library_list_start_library): Likewise.
15020 (solib_target_current_sos): Likewise.
15021 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15022 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15023 * symfile.c (default_symfile_segments): Likewise.
15024 * target-descriptions.c (tdesc_data_init): Likewise.
15025 (tdesc_create_reg): Likewise.
15026 (struct tdesc_type *): Likewise.
15027 (tdesc_create_vector): Likewise.
15028 (tdesc_set_struct_size): Likewise.
15029 (struct tdesc_type *): Likewise.
15030 (tdesc_free_feature): Likewise.
15031 (tdesc_create_feature): Likewise.
15032 * windows-nat.c (windows_add_thread): Likewise.
15033 (windows_make_so): Likewise.
15034 * xml-support.c (gdb_xml_body_text): Likewise.
15035 (gdb_xml_create_parser_and_cleanup): Likewise.
15036 (xml_process_xincludes): Likewise.
15037 * xml-syscall.c (allocate_syscalls_info): Likewise.
15038 (syscall_create_syscall_desc): Likewise.
15039
15040 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15041
15042 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15043 function, with code from i386_stap_parse_special_token.
15044 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15045 (i386_stap_parse_special_token): Move code to the two functions
15046 above; simplify it.
15047
15048 2014-01-09 Pedro Alves <palves@redhat.com>
15049 Hui Zhu <hui@codesourcery.com>
15050
15051 PR gdb/16101
15052 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15053 bp_err_string. Don't mark the location shlib_disabled if the
15054 error thrown wasn't a generic or memory error. Catch errors
15055 thrown while inserting breakpoints in overlayed code. Output
15056 error message of software breakpoints.
15057 * remote.c (remote_insert_breakpoint): If this breakpoint has
15058 target-side commands but this stub doesn't support Z0 packets,
15059 throw NOT_SUPPORTED_ERROR error.
15060 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15061 * target.h (target_insert_breakpoint): Extend comment.
15062 (target_insert_hw_breakpoint): Add comment.
15063
15064 2014-01-08 Pedro Alves <palves@redhat.com>
15065
15066 * remote.c (remote_add_thread): Add threads silently if starting
15067 up.
15068 (remote_notice_new_inferior): If in all-stop, and starting up,
15069 don't call notice_new_inferior.
15070 (get_current_thread): New function, factored out from ...
15071 (add_current_inferior_and_thread): ... this. Adjust.
15072 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15073 found any thread, then select the remote's current thread as GDB's
15074 current thread too.
15075
15076 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15077
15078 * NEWS: Create a new section for the next release branch.
15079 Rename the section of the current branch, now that it has
15080 been cut.
15081
15082 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15083
15084 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15085 * version.in: Bump version to 7.7.50.DATE-cvs.
15086
15087 2014-01-08 Yao Qi <yao@codesourcery.com>
15088
15089 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15090 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15091 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15092
15093 2014-01-08 Yao Qi <yao@codesourcery.com>
15094
15095 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15096 return value of bfd_get_filename to symbol_file_add_from_bfd.
15097
15098 2014-01-08 Pierre Muller <muller@sourceware.org>
15099
15100 Fix PR16201.
15101 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15102 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15103 to prim_record_mininal_symbol_and_info.
15104 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15105 in call to prim_record_minimal_symbol_and_info.
15106 (read_pe_exported_syms): Set index field of section_data.
15107
15108 2014-01-07 Andrew Pinski <apinski@cavium.com>
15109
15110 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15111 * features/aarch64.c: Regenerate.
15112
15113 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15114
15115 * target.c (return_null): Define.
15116 (update_current_target): Use it instead of return_zero for
15117 functions that return a pointer.
15118
15119 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15120
15121 * source.c (add_path): Fix check for duplicated paths in the previously
15122 included paths.
15123
15124 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15125
15126 * ada-lang.c: Remove duplicated include statements.
15127 * alphabsd-nat.c: Ditto.
15128 * amd64-darwin-tdep.c: Ditto.
15129 * amd64fbsd-nat.c: Ditto.
15130 * auto-load.c: Ditto.
15131 * ax-gdb.c: Ditto.
15132 * breakpoint.c: Ditto.
15133 * dbxread.c: Ditto.
15134 * fork-child.c: Ditto.
15135 * gdb_usleep.c: Ditto.
15136 * i386-darwin-tdep.c: Ditto.
15137 * i386fbsd-nat.c: Ditto.
15138 * infcmd.c: Ditto.
15139 * inferior.c: Ditto.
15140 * jv-lang.c: Ditto.
15141 * linux-nat.c: Ditto.
15142 * linux-tdep.c: Ditto.
15143 * m68kbsd-nat.c: Ditto.
15144 * m68klinux-nat.c: Ditto.
15145 * microblaze-tdep.c: Ditto.
15146 * mips-linux-tdep.c: Ditto.
15147 * mn10300-tdep.c: Ditto.
15148 * nto-tdep.c: Ditto.
15149 * opencl-lang.c: Ditto.
15150 * osdata.c: Ditto.
15151 * printcmd.c: Ditto.
15152 * regcache.c: Ditto.
15153 * remote-m32r-sdi.c: Ditto.
15154 * remote.c: Ditto.
15155 * symfile.c: Ditto.
15156 * symtab.c: Ditto.
15157 * tilegx-linux-nat.c: Ditto.
15158 * tilegx-tdep.c: Ditto.
15159 * tracepoint.c: Ditto.
15160 * valops.c: Ditto.
15161 * vaxbsd-nat.c: Ditto.
15162 * windows-nat.c: Ditto.
15163 * xtensa-tdep.c: Ditto.
15164
15165 2014-01-07 Yao Qi <yao@codesourcery.com>
15166
15167 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15168
15169 2014-01-07 Yao Qi <yao@codesourcery.com>
15170 Joel Brobecker <brobecker@adacore.com>
15171
15172 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15173 (pdc_write_regs): Likewise.
15174 (fetch_regs_kernel_thread): Likewise.
15175 (store_regs_kernel_thread): Likewise.
15176
15177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15178
15179 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15180 tagged type objects to their actual type.
15181
15182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15183
15184 * ada-valprint.c (print_field_values): Add "language" parameter.
15185 Update calls to print_field_values and print_variant_part.
15186 Pass new parameter "language" in call to val_print instead
15187 of "current_language". Replace call to ada_val_print by call
15188 to val_print.
15189 (print_variant_part): Add "language" parameter.
15190 (ada_val_print_struct_union): Update call to print_field_values.
15191
15192 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15193
15194 * ada-valprint.c (ui_memcpy): Delete.
15195 (ada_print_floating): Update documentation. Add empty line
15196 between between function documentation and implementation.
15197 Delete variable "buffer". Use ui_file_xstrdup in place of
15198 ui_file_put. Minor adjustments following this change.
15199
15200 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15201
15202 * ada-valprint.c (ada_val_print_string): New function,
15203 extracted from ada_val_print_array.
15204 (ada_val_print_array): Replace extracted code by call
15205 to ada_val_print_string followed by a return. Move
15206 "else" branch to the function's top block.
15207
15208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15209
15210 * ada-valprint.c (ada_val_print_array): Move implementation
15211 down. Rename parameter "offset" and "val" into "offset_aligned"
15212 and "original_value" respectively. Add parameter "offset".
15213
15214 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15215
15216 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15217 re-organizing the code. Change the "???" message printed
15218 when target type is a TYPE_CODE_UNDEF into
15219 "<ref to undefined type>".
15220
15221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15222
15223 * ada-valprint.c (print_record): Delete, implementation inlined...
15224 (ada_val_print_struct_union): ... here. Remove call to
15225 ada_check_typedef in inlined implementation.
15226
15227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15228
15229 * ada-valprint.c (ada_val_print_gnat_array): New function,
15230 extracted from ada_val_print_1;
15231 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15232 (ada_val_print_flt, ada_val_print_struct_union)
15233 (ada_val_print_ref): Likewise.
15234 (ada_val_print_1): Delete variables i and elttype.
15235 Replace extracted-out code by call to corresponding
15236 new functions.
15237
15238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15239
15240 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15241
15242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15243
15244 * ada-valprint.c (ada_val_print_1): Replace calls to
15245 ada_val_print_1 by calls to val_print.
15246
15247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15248
15249 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15250 Update calls to self accordingly. Replace calls to c_val_print
15251 by calls to val_print.
15252
15253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15254
15255 * ada-valprint.c (print_record): Delete declaration.
15256 (adjust_type_signedness, ada_val_print_1): Likewise.
15257 (ada_val_print): Move function implementation down.
15258 (print_variant_part, print_field_values, print_record):
15259 Move function implementation up.
15260
15261 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15262
15263 * python/py-type.c (typy_get_name): New function.
15264 (type_object_getset): Add entry for attribute "name".
15265 * NEWS: Add entry mentioning this new attribute.
15266
15267 2014-01-07 Yao Qi <yao@codesourcery.com>
15268
15269 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15270 statement.
15271
15272 2014-01-07 Yao Qi <yao@codesourcery.com>
15273
15274 * gnu-nat.c (info_port_rights): Add qualifier const to
15275 argument args.
15276
15277 2014-01-07 Yao Qi <yao@codesourcery.com>
15278
15279 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15280
15281 2014-01-07 Yao Qi <yao@codesourcery.com>
15282
15283 * gnu-nat.c (make_inf) Update declaration.
15284 (make_inf): Make it static.
15285 (inf_set_traced): Likewise.
15286 (inf_port_to_thread, inf_task_died_status): Likewise.
15287
15288 2014-01-07 Yao Qi <yao@codesourcery.com>
15289
15290 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15291
15292 2014-01-07 Yao Qi <yao@codesourcery.com>
15293
15294 * gnu-nat.c (_initialize_gnu_nat): Declare.
15295
15296 2014-01-07 Yao Qi <yao@codesourcery.com>
15297
15298 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15299 'enum bfd_endian'.
15300 (struct gdbarch_info) <byte_order>: Change type to
15301 'enum bfd_endian'.
15302 <byte_order_for_code>: Likewise.
15303 * gdbarch.c, gdbarch.h: Regenerated.
15304
15305 2014-01-06 Sasha Smundak <asmundak@google.com>
15306
15307 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15308
15309 2014-01-06 Tom Tromey <tromey@redhat.com>
15310
15311 * doublest.c (convert_doublest_to_floatformat): Use const, not
15312 CONST.
15313 * somread.c (som_symtab_read): Likewise.
15314
15315 2014-01-07 Hui Zhu <hui@codesourcery.com>
15316
15317 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15318 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15319 (gdb_bfd_fopen): Ditto.
15320 (gdb_bfd_openr): Ditto.
15321 (gdb_bfd_openw): Ditto.
15322 (gdb_bfd_openr_iovec): Ditto.
15323 (gdb_bfd_fdopenr): Ditto.
15324 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15325 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15326 with xstrdup.
15327 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15328 with xstrdup.
15329 * symfile-mem.c (symbol_file_add_from_memory): Removed
15330 gdb_bfd_stash_filename.
15331
15332 2014-01-03 Doug Evans <dje@google.com>
15333
15334 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15335 output.
15336
15337 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15338
15339 Update year range in copyright notice of all files.
15340
15341 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15342
15343 * top.c (print_gdb_version): Set copyright year to 2014.
15344
15345 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15346
15347 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15348
15349 For older changes see ChangeLog-2013.
15350 \f
15351 Local Variables:
15352 mode: change-log
15353 left-margin: 8
15354 fill-column: 74
15355 version-control: never
15356 coding: utf-8
15357 End:
This page took 0.345395 seconds and 4 git commands to generate.