Import wchar and wctype-h explicitly
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f0c00af8
YQ
12014-11-21 Yao Qi <yao@codesourcery.com>
2
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
4 and wctype-h.
5 * gnulib/import/Makefile.am: Re-generated.
6 * gnulib/import/Makefile.in: Likewise.
7 * gnulib/import/m4/gnulib-cache.m4: Likewise.
8
0cae13bb
YQ
92014-11-21 Yao Qi <yao@codesourcery.com>
10
11 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
12 memchr.
13 * gnulib/import/Makefile.am: Re-generated.
14 * gnulib/import/Makefile.in: Likewise.
15 * gnulib/import/m4/gnulib-cache.m4: Likewise.
16
9c232dda
YQ
172014-11-21 Yao Qi <yao@codesourcery.com>
18
19 * common/common-defs.h: Include alloca.h
20 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
21 * configure: Re-generated.
22 * defs.h: Remove code handling alloca.
23 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
24 or not.
25
00d7f58f
YQ
262014-11-21 Yao Qi <yao@codesourcery.com>
27
28 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
29 alloca.
30 * gnulib/import/Makefile.am: Re-generated.
31 * gnulib/import/Makefile.in: Likewise..
32 * gnulib/import/m4/gnulib-cache.m4: Likewise.
33
6068ad5d
YQ
342014-11-21 Yao Qi <yao@codesourcery.com>
35
36 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
37 alphabetical order.
38
45e44d27
JB
392014-11-21 Joel Brobecker <brobecker@adacore.com>
40
41 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
42 flag_unsigned if HIGH_BOUND is constant and negative.
43
7e7cbeb3
SDJ
442014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
45
46 PR breakpoints/10737
47 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
48 modifier from "struct gdbarch" when compiling without Expat (XML)
49 support.
50 (get_syscall_by_number): Likewise.
51 (get_syscall_by_name): Likewise.
52 (get_syscall_names): Likewise.
53
458c8db8
SDJ
542014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
55
56 PR breakpoints/10737
57 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
58 set_xml_syscall_file_name to provide gdbarch.
59 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
60 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
61 * breakpoint.c (print_it_catch_syscall): Adjust call to
62 get_syscall_by_number to provide gdbarch.
63 (print_one_catch_syscall): Likewise.
64 (print_mention_catch_syscall): Likewise.
65 (print_recreate_catch_syscall): Likewise.
66 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
67 and get_syscall_by_name to provide gdbarch.
68 (catch_syscall_completer): Adjust call to get_syscall_names to
69 provide gdbarch.
70 * gdbarch.c: Regenerate.
71 * gdbarch.h: Likewise.
72 * gdbarch.sh: Forward declare "struct syscalls_info".
73 (xml_syscall_file): New variable.
74 (syscalls_info): Likewise.
75 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
76 set_xml_syscall_file_name to provide gdbarch.
77 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
78 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
79 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
80 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
81 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
82 * xml-syscall.c: Include gdbarch.h.
83 (set_xml_syscall_file_name): Accept gdbarch parameter.
84 (get_syscall_by_number): Likewise.
85 (get_syscall_by_name): Likewise.
86 (get_syscall_names): Likewise.
87 (my_gdb_datadir): Delete global variable.
88 (struct syscalls_info) <my_gdb_datadir>: New variable.
89 (struct syscalls_info) <sysinfo>: Rename variable to
90 "syscalls_info".
91 (sysinfo): Delete global variable.
92 (have_initialized_sysinfo): Likewise.
93 (xml_syscall_file): Likewise.
94 (sysinfo_free_syscalls_desc): Rename to...
95 (syscalls_info_free_syscalls_desc): ... this.
96 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
97 code to the new layout of "struct syscalls_info".
98 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
99 "syscalls_info".
100 (syscall_create_syscall_desc): Likewise.
101 (syscall_start_syscall): Likewise.
102 (syscall_parse_xml): Likewise.
103 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
104 (init_sysinfo): Rename to...
105 (init_syscalls_info): ...this. Add gdbarch as a parameter.
106 Adjust function to deal with gdbarch.
107 (xml_get_syscall_number): Delete parameter sysinfo. Accept
108 gdbarch as a parameter. Adjust code.
109 (xml_get_syscall_name): Likewise.
110 (xml_list_of_syscalls): Likewise.
111 (set_xml_syscall_file_name): Accept gdbarch as parameter.
112 (get_syscall_by_number): Likewise.
113 (get_syscall_by_name): Likewise.
114 (get_syscall_names): Likewise.
115 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
116 (get_syscall_by_number): Likewise.
117 (get_syscall_by_name): Likewise.
118 (get_syscall_names): Likewise.
119
43f3e411
DE
1202014-11-20 Doug Evans <xdje42@gmail.com>
121
122 Split struct symtab into two: struct symtab and compunit_symtab.
123 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
124 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
125 to "struct compunit_symtab *". All callers updated.
126 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
127 "struct symtab *" argument to "struct compunit_symtab *".
128 All callers updated.
129 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
130 result to "struct compunit_symtab *". All callers updated.
131 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
132 Change result to "struct compunit_symtab *". All callers updated.
133 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
134 hange type to "struct compunit_symtab *". All uses updated.
135 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
136 Change type to "struct compunit_symtab *". All uses updated.
137 * buildsym.c (struct buildsym_compunit): New struct.
138 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
139 (buildsym_compunit): New static global.
140 (finish_block_internal): Update to fetch objfile from
141 buildsym_compunit.
142 (make_blockvector): Delete objfile argument.
143 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
144 debugformat, producer.
145 (start_buildsym_compunit): New function.
146 (free_buildsym_compunit): Renamed from free_subfiles_list.
147 All callers updated.
148 (patch_subfile_names): Rewrite to use buildsym_compunit.
149 (get_compunit_symtab): New function.
150 (get_macro_table): Delete argument comp_dir. All callers updated.
151 (start_symtab): Change result to "struct compunit_symtab *".
152 All callers updated. Create the subfile of the main source file.
153 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
154 (reset_symtab_globals): Update.
155 (end_symtab_get_static_block): Update to use buildsym_compunit.
156 (end_symtab_without_blockvector): Rewrite.
157 (end_symtab_with_blockvector): Change result to
158 "struct compunit_symtab *". All callers updated.
159 Update to use buildsym_compunit. Don't set symtab->dirname,
160 instead set it in the compunit.
161 Explicitly make sure main symtab is first in its list.
162 Set debugformat, producer, blockvector, block_line_section, and
163 macrotable in the compunit.
164 (end_symtab_from_static_block): Change result to
165 "struct compunit_symtab *". All callers updated.
166 (end_symtab, end_expandable_symtab): Ditto.
167 (set_missing_symtab): Change symtab argument to
168 "struct compunit_symtab *". All callers updated.
169 (augment_type_symtab): Ditto.
170 (record_debugformat): Update to use buildsym_compunit.
171 (record_producer): Update to use buildsym_compunit.
172 * buildsym.h (struct subfile) <dirname>: Delete.
173 <producer, debugformat>: Delete.
174 <buildsym_compunit>: New member.
175 (get_compunit_symtab): Declare.
176 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
177 from primary_symtab. Change type to "struct compunit_symtab *".
178 All uses updated.
179 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
180 All callers updated.
181 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
182 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
183 symtab. Change type to "struct compunit_symtab *". All uses updated.
184 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
185 All callers updated.
186 (dw2_find_last_source_symtab): Ditto.
187 (dw2_lookup_symbol): Ditto.
188 (recursively_find_pc_sect_compunit_symtab): Renamed from
189 recursively_find_pc_sect_symtab. Change result to
190 "struct compunit_symtab *". All callers updated.
191 (dw2_find_pc_sect_compunit_symtab): Renamed from
192 dw2_find_pc_sect_symtab. Change result to
193 "struct compunit_symtab *". All callers updated.
194 (get_compunit_symtab): Renamed from get_symtab. Change result to
195 "struct compunit_symtab *". All callers updated.
196 (recursively_compute_inclusions): Change type of immediate_parent
197 argument to "struct compunit_symtab *". All callers updated.
198 (compute_compunit_symtab_includes): Renamed from
199 compute_symtab_includes. All callers updated. Rewrite to compute
200 includes of compunit_symtabs and not symtabs.
201 (process_full_comp_unit): Update to work with struct compunit_symtab.
202 (process_full_type_unit): Ditto.
203 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
204 (dwarf_decode_lines): Remove special case handling of main subfile.
205 (macro_start_file): Delete argument comp_dir. All callers updated.
206 (dwarf_decode_macro_bytes): Ditto.
207 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
208 use struct compunit_symtab.
209 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
210 * jit.c (finalize_symtab): Build compunit_symtab.
211 * jv-lang.c (get_java_class_symtab): Change result to
212 "struct compunit_symtab *". All callers updated.
213 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
214 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
215 comp_dir. Change type to "struct compunit_symtab *".
216 All uses updated.
217 (new_macro_table): Change comp_dir argument to cust,
218 "struct compunit_symtab *". All callers updated.
219 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
220 nr_primary_symtabs. All uses updated.
221 (count_symtabs_and_blocks): Update to handle compunits.
222 (report_command_stats): Update output, "primary symtabs" renamed to
223 "compunits".
224 * mdebugread.c (new_symtab): Change result to
225 "struct compunit_symtab *". All callers updated.
226 (parse_procedure): Change type of search_symtab argument to
227 "struct compunit_symtab *". All callers updated.
228 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
229 separate loop.
230 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
231 symtabs. Change type to "struct compunit_symtab *". All uses updated.
232 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
233 All uses updated.
234 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
235 All uses updated.
236 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
237 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
238 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
239 symtab. Change type to "struct compunit_symtab *". All uses updated.
240 * psymtab.c (psymtab_to_symtab): Change result type to
241 "struct compunit_symtab *". All callers updated.
242 (find_pc_sect_compunit_symtab_from_partial): Renamed from
243 find_pc_sect_symtab_from_partial. Change result type to
244 "struct compunit_symtab *". All callers updated.
245 (lookup_symbol_aux_psymtabs): Change result type to
246 "struct compunit_symtab *". All callers updated.
247 (find_last_source_symtab_from_partial): Ditto.
248 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
249 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
250 and macro_table from compunit.
251 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
252 type to "struct compunit_symtab *". All callers updated.
253 (debug_qf_lookup_symbol): Ditto.
254 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
255 debug_qf_find_pc_sect_symtab, change result type to
256 "struct compunit_symtab *". All callers updated.
257 * symfile.c (allocate_symtab): Delete objfile argument.
258 New argument cust.
259 (allocate_compunit_symtab): New function.
260 (add_compunit_symtab_to_objfile): New function.
261 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
262 Change result type to "struct compunit_symtab *". All uses updated.
263 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
264 Change result type to "struct compunit_symtab *". All uses updated.
265 * symmisc.c (print_objfile_statistics): Compute blockvector count in
266 separate loop.
267 (dump_symtab_1): Update test for primary source symtab.
268 (maintenance_info_symtabs): Update to handle compunit symtabs.
269 (maintenance_check_symtabs): Ditto.
270 * symtab.c (set_primary_symtab): Delete.
271 (compunit_primary_filetab): New function.
272 (compunit_language): New function.
273 (iterate_over_some_symtabs): Change type of arguments "first",
274 "after_last" to "struct compunit_symtab *". All callers updated.
275 Update to loop over symtabs in each compunit.
276 (error_in_psymtab_expansion): Rename symtab argument to cust,
277 and change type to "struct compunit_symtab *". All callers updated.
278 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
279 Change result type to "struct compunit_symtab *". All callers updated.
280 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
281 Change result type to "struct compunit_symtab *". All callers updated.
282 (find_pc_sect_line): Only loop over symtabs within selected compunit
283 instead of all symtabs in the objfile.
284 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
285 <compunit_symtab> New member.
286 <block_line_section>: Moved to compunit_symtab.
287 <locations_valid>: Ditto.
288 <epilogue_unwind_valid>: Ditto.
289 <macro_table>: Ditto.
290 <dirname>: Ditto.
291 <debugformat>: Ditto.
292 <producer>: Ditto.
293 <objfile>: Ditto.
294 <call_site_htab>: Ditto.
295 <includes>: Ditto.
296 <user>: Ditto.
297 <primary>: Delete
298 (SYMTAB_COMPUNIT): New macro.
299 (SYMTAB_BLOCKVECTOR): Update definition.
300 (SYMTAB_OBJFILE): Update definition.
301 (SYMTAB_DIRNAME): Update definition.
302 (struct compunit_symtab): New type. Common members among all source
303 symtabs within a compilation unit moved here. All uses updated.
304 (COMPUNIT_OBJFILE): New macro.
305 (COMPUNIT_FILETABS): New macro.
306 (COMPUNIT_DEBUGFORMAT): New macro.
307 (COMPUNIT_PRODUCER): New macro.
308 (COMPUNIT_DIRNAME): New macro.
309 (COMPUNIT_BLOCKVECTOR): New macro.
310 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
311 (COMPUNIT_LOCATIONS_VALID): New macro.
312 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
313 (COMPUNIT_CALL_SITE_HTAB): New macro.
314 (COMPUNIT_MACRO_TABLE): New macro.
315 (ALL_COMPUNIT_FILETABS): New macro.
316 (compunit_symtab_ptr): New typedef.
317 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
318
005e2509
JB
3192014-11-20 Joel Brobecker <brobecker@adacore.com>
320
321 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
322 if the TYPE_CODE of range_type's base type does not match
323 the TYPE_CODE of encoding_type's base type.
324
2b0f535a
JB
3252014-11-19 Joel Brobecker <brobecker@adacore.com>
326
327 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
328 it starts with '<'.
329
8908fca5
JB
3302014-11-19 Joel Brobecker <brobecker@adacore.com>
331
332 * ada-lang.c (ada_is_redundant_range_encoding): New function.
333 (ada_is_redundant_index_type_desc): New function.
334 (to_fixed_array_type): Ignore parallel XA type if redundant.
335
4a46959e
JB
3362014-11-19 Joel Brobecker <brobecker@adacore.com>
337
338 * ada-lang.c (constrained_packed_array_type): Set the length
339 of the return array as if both bounds where zero if that
340 returned array's index type is dynamic.
341
2acf986b
YQ
3422014-11-19 Yao Qi <yao@codesourcery.com>
343
344 * config/i386/go32.mh (CC): Remove.
345
439247b6
DE
3462014-11-18 Doug Evans <xdje42@gmail.com>
347
348 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
349 updated.
350
4d663531
DE
3512014-11-18 Doug Evans <xdje42@gmail.com>
352
353 * buildsym.c (buildsym_objfile): New static global.
354 (buildsym_comp_dir): New static global.
355 (finish_block_internal): Delete arg objfile. All callers updated.
356 (finish_block): Delete arg objfile. All callers updated.
357 (start_subfile): Delete arg dirname. All callers updated.
358 (patch_subfile_names): Update buildsym_comp_dir.
359 (get_macro_table): Delete arg objfile. All callers updated.
360 (start_symtab): New arg objfile. All callers updated.
361 Rename arg dirname to comp_dir.
362 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
363 (end_symtab_get_static_block): Delete arg objfile. All callers
364 updated.
365 (end_symtab_without_blockvector): Ditto.
366 (end_symtab_with_blockvector): Ditto.
367 (end_symtab_from_static_block): Ditto.
368 (end_symtab): Ditto.
369 (end_expandable_symtab): Ditto.
370 (augment_type_symtab): Ditto.
371 * coffread.c (coff_start_symtab): New arg objfile. All callers
372 updated.
373
8435453b
DE
3742014-11-18 Doug Evans <xdje42@gmail.com>
375
376 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
377 updated.
378
ee6f8984
DE
3792014-11-18 Doug Evans <xdje42@gmail.com>
380
381 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
382 symtab.dirname updated to use it.
383
eb822aa6
DE
3842014-11-18 Doug Evans <xdje42@gmail.com>
385
386 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
387 symtab.objfile updated to use it.
388
98387a29
DE
3892014-11-18 Doug Evans <xdje42@gmail.com>
390
391 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
392
aff08958
DE
3932014-11-18 Doug Evans <xdje42@gmail.com>
394
395 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
396 SYMBOL_OBJFILE.
397 * findvar.c (default_read_var_value): Ditto.
398 * jv-lang.c (add_class_symtab_symbol): Ditto.
399 * parse.c (operator_check_standard): Ditto.
400 * printcmd.c (address_info): Ditto.
401 * symtab.c (fixup_symbol_section): Ditto.
402 (skip_prologue_sal): Ditto.
403 * tracepoint.c (scope_info): Ditto.
404 * valops.c (find_function_in_inferior): Ditto.
405 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
406 * python/py-symbol.c (set_symbol): Ditto.
407
7bab9b58
DE
4082014-11-18 Doug Evans <xdje42@gmail.com>
409
410 * buildsym.c (main_subfile): New static global.
411 (free_subfiles_list): New function.
412 (start_symtab): Set main_subfile.
413 (restart_symtab): Replace init of subfiles, current_subfile with
414 call to free_subfiles_list.
415 (watch_main_source_file_lossage): Use main_subfile.
416 (reset_symtab_globals): Replace init of current_subfile with call
417 to free_subfiles_list.
418 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
419 functions, split out from ...
420 (end_symtab_from_static_block): ... here. Rewrite to call them.
421
f194fefb
DE
4222014-11-18 Doug Evans <xdje42@gmail.com>
423
424 The result of symtab expansion is always a primary symtab.
425 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
426 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
427 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
428 (psymtab_to_symtab): Add comment and assert.
429 (map_matching_symbols_psymtab): Remove unnecessary test for
430 non-primary symtab.
431
34248c3a
DE
4322014-11-15 Doug Evans <xdje42@gmail.com>
433
434 PR symtab/17559
435 * symtab.c (find_pc_line_symtab): New function.
436 * symtab.h (find_pc_line_symtab): Declare.
437 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
438 find_pc_symtab.
439 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
440 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
441 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
442 * tui/tui-win.c (make_visible_with_new_height): Ditto.
443 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
444 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
445
2097ae25
DE
4462014-11-15 Doug Evans <xdje42@gmail.com>
447
448 * symtab.c (expand_symtab_containing_pc): Renamed from
449 find_pc_sect_symtab_via_partial. All callers updated.
450
1ada499f
YQ
4512014-11-15 Yao Qi <yao@codesourcery.com>
452
453 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
454
355e2102
JB
4552014-11-14 Joel Brobecker <brobecker@adacore.com>
456
457 * common/common-defs.h: Move <stdarg.h> #include ahead of
458 <stdio.h> #include.
459
83030110
PA
4602014-11-14 Pedro Alves <palves@redhat.com>
461
462 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
463 [!PHONY_ICONV] (gdb_iconv): New function.
464 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
465
a8719064
DE
4662014-11-13 Doug Evans <dje@google.com>
467
468 PR symtab/17591
469 * dwarf2read.c (find_slot_in_mapped_hash): Handle
470 "(anonymous namespace)".
471
60f7655a
DE
4722014-11-13 Doug Evans <dje@google.com>
473
474 * dwarf2read.c (update_enumeration_type_from_children): Avoid
475 infinite loop.
476
5784b3ca
JK
4772014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 * NEWS (maint set target-async): Fix typo.
480
6218dc4b
PA
4812014-11-12 Pedro Alves <palves@redhat.com>
482
483 * infrun.c (enum infwait_states, infwait_state): Delete.
484
af48d08f
PA
4852014-11-12 Pedro Alves <palves@redhat.com>
486
487 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
488 Rewrite stepping over a permanent breakpoint.
489 (thread_still_needs_step_over, proceed): Don't set
490 stepping_over_breakpoint for permanent breakpoints.
491 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
492 single-step breakpoints out of the target on hardware step
493 targets.
494 (process_event_stop_test): If stepping a permanent breakpoint
495 doesn't hit the step-resume breakpoint, delete the step-resume
496 breakpoint.
497 (switch_back_to_stepped_thread): Also check if the stepped thread
498 has advanced already on hardware step targets.
499 (currently_stepping): Return true if the thread stepped a
500 breakpoint.
501
1a853c52
PA
5022014-11-12 Pedro Alves <palves@redhat.com>
503
504 Mark locations as permanent, not the whole breakpoint.
505 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
506 (mark_breakpoints_out): Don't mark permanent breakpoints as
507 uninserted.
508 (breakpoint_init_inferior): Use mark_breakpoints_out.
509 (breakpoint_here_p): Adjust.
510 (bpstat_stop_status, describe_other_breakpoints): Remove handling
511 of permanent breakpoints.
512 (make_breakpoint_permanent): Mark each location as permanent,
513 instead of marking the breakpoint.
514 (add_location_to_breakpoint): If the location is permanent, mark
515 it as such, and as inserted.
516 (init_breakpoint_sal): Don't make the breakpoint permanent here.
517 (bp_location_compare, update_global_location_list): Adjust.
518 (update_breakpoint_locations): Don't make the breakpoint permanent
519 here.
520 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
521 breakpoints.
522 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
523 (struct bp_location) <permanent>: New field.
524 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
525 reference to bp_permanent.
526
ae9bb220
PA
5272014-11-12 Pedro Alves <palves@redhat.com>
528
529 * arch-utils.c (default_skip_permanent_breakpoint): New function.
530 * arch-utils.h (default_skip_permanent_breakpoint): New
531 declaration.
532 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
533 Install default_skip_permanent_breakpoint as default method.
534 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
535 (i386_gdbarch_init): Don't install it.
536 * infrun.c (resume): Assume there's always a
537 gdbarch_skip_permanent_breakpoint implementation.
538 * gdbarch.h, gdbarch.c: Regenerate.
539
015de688
DC
5402014-11-11 Daniel Colascione <dancol@dancol.org>
541
542 Warn about cross-PID-namespace debugging.
543 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
544 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
545 * linux-thread-db.c (check_pid_namespace_match): New function.
546 (thread_db_inferior_created): Call it.
547
26a84859
DE
5482014-11-10 Doug Evans <xdje42@gmail.com>
549
550 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
551 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
552
712a2e6d
DE
5532014-11-10 Doug Evans <xdje42@gmail.com>
554
555 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
556
af3768e9
DE
5572014-11-10 Doug Evans <xdje42@gmail.com>
558
559 PR symtab/17564
560 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
561 (lookup_static_symbol): Move definition to new location and rewrite.
562 (lookup_symbol_in_objfile): New function.
563 (lookup_symbol_global_iterator_cb): Call it.
564
b1f28d99
UW
5652014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
566
567 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
568
b7a084be
PA
5692014-11-07 Pedro Alves <palves@redhat.com>
570
571 * infrun.c (process_event_stop_test) <subroutine check>: Don't
572 check if we did a "nexti" inside a prologue.
573 * symtab.c (in_prologue): Delete function.
574 * symtab.h (in_prologue): Delete declaration.
575
67be31e5
DE
5762014-11-06 Doug Evans <xdje42@gmail.com>
577
578 * symtab.h (lookup_global_symbol): Improve function comment.
579
08724ab7
DE
5802014-11-06 Doug Evans <xdje42@gmail.com>
581
582 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
583 All callers updated.
584 * symtab.h (lookup_global_symbol): Update decl.
585 (lookup_static_symbol): Move decl to better location.
586
d9060ba6
DE
5872014-11-06 Doug Evans <xdje42@gmail.com>
588
589 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
590
74016e12
DE
5912014-11-06 Doug Evans <xdje42@gmail.com>
592
593 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
594 All callers updated.
595 (lookup_symbol_in_all_objfiles): Renamed from
596 lookup_symbol_aux_symtabs. All callers updated.
597 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
598 All callers updated.
599 (lookup_symbol_in_objfile_symtabs): Renamed from
600 lookup_symbol_aux_objfile. All callers updated.
601
d1a2d36d
DE
6022014-11-06 Doug Evans <xdje42@gmail.com>
603
604 * symtab.c (lookup_symbol_in_block): Renamed from
605 lookup_symbol_aux_block. All callers updated.
606
24d864bb
DE
6072014-11-06 Doug Evans <xdje42@gmail.com>
608
609 * symtab.c (lookup_static_symbol): Renamed from
610 lookup_static_symbol_aux. All callers updated.
611 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
612 All callers updated.
613
358d6ab3
DE
6142014-11-06 Doug Evans <xdje42@gmail.com>
615
616 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
617 * block.c (block_lookup_symbol): Use it.
618 * cp-support.c (make_symbol_overload_list_block): Use it.
619 * symtab.c (iterate_over_symbols): Use it.
620
16b2eaa1
DE
6212014-11-06 Doug Evans <xdje42@gmail.com>
622
623 * symtab.c (lookup_block_symbol): Moved to ...
624 * block.c (block_lookup_symbol): ... here and renamed.
625 All callers updated.
626 * block.h (block_lookup_symbol): Declare.
627 * symtab.h (lookup_block_symbol): Delete.
628
2dd2cd1c
DE
6292014-11-06 Doug Evans <xdje42@gmail.com>
630
631 * ada-lang.c (ada_make_symbol_completion_list): Use
632 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
633 * symtab.c (lookup_objfile_from_block): Ditto.
634
d4c58915
DE
6352014-11-06 Doug Evans <xdje42@gmail.com>
636
637 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
638 TYPE_CODE_STRUCT.
639
9c1877ea
DE
6402014-11-06 Doug Evans <xdje42@gmail.com>
641
642 * objfiles.c (get_objfile_arch): Constify.
643 * objfiles.h (get_objfile_arch): Update prototype.
644 * solib.c (solib_global_lookup): Fetch arch from objfile,
645 not target_gdbarch.
646
426a4079
SL
6472014-11-06 Sandra Loosemore <sandra@codesourcery.com>
648
649 * nios2-tdep.c (wild_insn): Delete.
650 (profiler_insn, irqentry_insn): Delete.
651 (nios2_match_sequence): Delete.
652 (nios2_analyze_prologue): Update comments. Remove matching
653 of obsolete profiler_insn and irqentry_insn sequences.
654
ee11262d
AM
6552014-11-05 Alan Modra <amodra@gmail.com>
656
657 * charset.c (convert_between_encodings): Shrink obstack using
658 obstack_blank_fast.
659 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
660 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
661 to char* before doing pointer arithmetic.
ee11262d 662
c87e6d00
SM
6632014-11-04 Simon Marchi <simon.marchi@ericsson.com>
664
665 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
666
441ef17f
PA
6672014-11-04 Pedro Alves <palves@redhat.com>
668
669 * breakpoint.c (breakpoint_thread_match): Delete function.
670 * breakpoint.h (breakpoint_thread_match): Delete declaration.
671
e0f52461
SC
6722014-11-03 Siva Chandra Reddy <sivachandra@google.com>
673
674 PR c++/17494
675 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
676 the method args also under EVAL_SKIP when evaluating method
677 calls under EVAL_SKIP.
678
a0b4d890
YQ
6792014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
680
681 * dwarf2loc.c (read_pieced_value): Do big endian
682 processing only if gdb_regnum is not -1.
683 (write_pieced_value): Ditto.
684
6852014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
686
687 * arm-linux-tdep.c (arm_linux_init_abi): Use
688 info.byte_order_for_code to choose endianity of breakpoint
689 instructions snippets.
690
6912014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
692
693 * arm-tdep.c (extract_arm_insn): Use
694 gdbarch_byte_order_for_code to read arm instruction.
695
e82149ff
DE
6962014-11-02 Doug Evans <xdje42@gmail.com>
697
698 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
699
d7ee84f1
DE
7002014-11-02 Doug Evans <xdje42@gmail.com>
701
702 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
703 main_subfile before returning.
704
4f072d17
DE
7052014-10-31 Doug Evans <xdje42@gmail.com>
706
707 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
708 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
709
8301c89e
DE
7102014-10-31 Doug Evans <xdje42@gmail.com>
711
712 * valops.c (value_cast_pointers): Fix whitespace.
713 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
714 Ditto.
715
02be9a71
DE
7162014-10-30 Doug Evans <dje@google.com>
717
718 * NEWS: Mention ability add attributes to gdb.Objfile and
719 gdb.Progspace objects.
720 * python/py-objfile.c (objfile_object): New member dict.
721 (objfpy_dealloc): Py_XDECREF dict.
722 (objfpy_initialize): Initialize dict.
723 (objfile_getset): Add __dict__.
724 (objfile_object_type): Set tp_dictoffset member.
725 * python/py-progspace.c (progspace_object): New member dict.
726 (pspy_dealloc): Py_XDECREF dict.
727 (pspy_initialize): Initialize dict.
728 (pspace_getset): Add __dict__.
729 (pspace_object_type): Set tp_dictoffset member.
730
6427bef6
YQ
7312014-10-30 Yao Qi <yao@codesourcery.com>
732
733 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
734 replace '\\' with '\\\\'.
735
f60325be
JB
7362014-10-29 Joel Brobecker <brobecker@adacore.com>
737
738 GDB 7.8.1 released.
739
ab917dfb
PA
7402014-10-29 Pedro Alves <palves@redhat.com>
741
742 PR gdb/17408
743 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
744 instead of assuming a thread with a stepping range is always
745 stepping.
746
d3d4baed
PA
7472014-10-29 Pedro Alves <palves@redhat.com>
748
749 PR python/17372
750 * event-top.c (change_line_handler): Call
751 gdb_rl_callback_handler_remove instead of
752 rl_callback_handler_remove.
753 (callback_handler_installed): New global.
754 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
755 (gdb_rl_callback_handler_reinstall): New functions.
756 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
757 gdb_rl_callback_handler_install instead of
758 rl_callback_handler_remove and rl_callback_handler_install.
759 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
760 instead of rl_callback_handler_remove.
761 * event-top.h (gdb_rl_callback_handler_remove)
762 (gdb_rl_callback_handler_install)
763 (gdb_rl_callback_handler_reinstall): New declarations.
764 * infrun.c (reinstall_readline_callback_handler_cleanup): New
765 cleanup function.
766 (fetch_inferior_event): Install it.
767 * top.c (gdb_readline_wrapper_line) Call
768 gdb_rl_callback_handler_remove instead of
769 rl_callback_handler_remove.
770 (gdb_readline_wrapper_cleanup): Don't call
771 rl_callback_handler_install.
772
6e5d7f39
PA
7732014-10-29 Pedro Alves <palves@redhat.com>
774
775 * event-top.c (command_line_handler): Clear the first byte of
776 linebuffer, when it is first allocated.
777
551cb6a5
PA
7782014-10-29 Pedro Alves <palves@redhat.com>
779
780 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
781 TRY_CATCH.
782
1e1e619b
PA
7832014-10-29 Pedro Alves <palves@redhat.com>
784
785 PR tui/16138
786 PR tui/17519
787 * tui/tui-interp.c (tui_is_toplevel): Delete global.
788 (tui_allowed_p): Delete function.
789 * tui/tui.c: Include "interps.h".
790 (tui_enable): Don't use tui_allowed_p. Error out here with
791 detailed error messages if the TUI is the top level interpreter,
792 or if output is not a terminal. Use newterm instead of initscr,
793 and error out if initializing the terminal fails. Also error out if
794 the terminal doesn't support cursor addressing.
795 * tui/tui.h (tui_allowed_p): Delete declaration.
796
6041179a
JB
7972014-10-29 Joel Brobecker <brobecker@adacore.com>
798
799 * arm-tdep.c (arm_skip_stack_protector): Return early if
800 address loaded by first "ldr" instruction does not have
801 a corresponding minimal symbol. Update comment.
802
6ae274b7
YQ
8032014-10-29 Yao Qi <yao@codesourcery.com>
804
805 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
806 loaded address correctly of ldr instruction.
807
7f5ef605
PA
8082014-10-28 Pedro Alves <palves@redhat.com>
809
810 PR gdb/12623
811 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
812 field.
813 * infrun.c (resume) <stepping breakpoint instruction>: Set the
814 thread's stepped_breakpoint field. Skip if reverse debugging.
815 Add comment.
816 (init_thread_stepping_state, handle_signal_stop): Clear the
817 thread's stepped_breakpoint field.
818
7d1a114c
PA
8192014-10-27 Pedro Alves <palves@redhat.com>
820
821 * remote.c (remote_thread_alive): New, factored out from ...
822 (remote_thread_alive): ... this.
823 (remote_update_thread_list): Bail out before deleting threads if
824 the target returned an empty list, and, the current thread has a
825 magic/fake ptid.
826
e5f8a7cc
PA
8272014-10-27 Pedro Alves <palves@redhat.com>
828
829 * infrun.c (handle_signal_stop): Also skip handlers when a random
830 signal arrives while handling a "stepi" or a "nexti". Set the
831 thread's 'step_after_step_resume_breakpoint' flag.
832
71e396f9
LM
8332014-10-27 Luis Machado <lgustavo@codesourcery.com>
834
835 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
836 (arm_record_ld_st_imm_offset): Reimplement to cover all
837 load/store cases for ARM opcode 010.
838 (arm_record_ld_st_multiple): Reimplement to cover all
839 load/store cases for ARM opcode 100.
840
3aee438b
DE
8412014-10-26 Doug Evans <xdje42@gmail.com>
842
843 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
844
f88cb4b6
DE
8452014-10-26 Doug Evans <xdje42@gmail.com>
846
847 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
848 parameter "kind" to "block_index".
849 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
850 "block_index".
851 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
852
a023a30f
DE
8532014-10-26 Doug Evans <xdje42@gmail.com>
854
855 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
856
4c35218e
DE
8572014-10-26 Doug Evans <xdje42@gmail.com>
858
859 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
860 obstack_alloc.
861
f08e8df3
DE
8622014-10-26 Doug Evans <xdje42@gmail.com>
863
864 * parser-defs.h (block_found): Move decl from here ...
865 * symtab.h (block_found): ... to here.
866
cf901d3b
DE
8672014-10-26 Doug Evans <xdje42@gmail.com>
868
869 * symtab.h (struct field_of_this_result): Fix typo in comment.
870 (lookup_symbol_in_language): Move function comment here.
871 (lookup_symbol): Improve function comment.
872 (basic_lookup_symbol_nonlocal): Ditto.
873 (lookup_symbol_static, lookup_symbol_global): Ditto.
874 (lookup_symbol_aux_block): Ditto.
875 (lookup_language_this): Add function comment.
876 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
877 function comment.
878 (lookup_block_symbol): Improve function comment.
879 (lookup_struct): Fix capitalization in function comment.
880 (lookup_transparent_type): Add function comment.
881 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
882 Improve function comment.
883 (lookup_objfile_from_block): Add function comment.
884 * symtab.c (lookup_symbol_in_language): Update function comment.
885 (lookup_symbol, lookup_language_this): Ditto.
886 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
887 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
888 (basic_lookup_symbol_nonlocal): Ditto.
889 (lookup_symbol_static, lookup_symbol_global): Ditto.
890 (lookup_transparent_type, lookup_block_symbol): Ditto.
891
ff6c39cf
DE
8922014-10-25 Doug Evans <xdje42@gmail.com>
893
894 * symtab.c (types_info): Delete forward decl.
895 (functions_info, variables_info, sources_info): Ditto.
896 (_initialize_symtab): Rewrite forward decl to use
897 initialize_file_ftype.
898
ec201f0c
DE
8992014-10-25 Doug Evans <xdje42@gmail.com>
900
901 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
902
ca040673
DE
9032014-10-25 Doug Evans <xdje42@gmail.com>
904
905 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
906 of local var child_die.
907
6f259a23
DB
9082014-10-24 Don Breazeal <donb@codesourcery.com>
909
910 * infrun.c (follow_fork_inferior): Update fork message printing
911 to use target_terminal_ours_for_output instead of
912 target_terminal_ours, to use _() for all format strings, to print
913 "vfork" instead of "fork" for vforks, and to add a detach message.
914 (handle_vfork_child_exec_or_exit): Update message printing to use
915 target_terminal_ours_for_output instead of target_terminal_ours, to
916 use _() for all format strings, and to fix some formatting.
917
09dd9a69
PA
9182014-10-24 Pedro Alves <palves@redhat.com>
919
920 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
921 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
922 * config/vax/vax.mh: Delete.
923 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
924 obsolete configurations section.
925 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
926 * vax-nat.c: Delete file.
927
5ab806de
PA
9282014-10-24 Pedro Alves <palves@redhat.com>
929
930 * NEWS (Removed targets): Add OS/arch column.
931
3433cfa5
SC
9322014-10-24 Siva Chandra Reddy <sivachandra@google.com>
933
934 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
935 on the arg type of a constructor only if it is of reference type.
936
96ba4233
SL
9372014-10-23 Sandra Loosemore <sandra@codesourcery.com>
938
939 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
940 accessors and constants from nios2 opcodes update.
941 (nios2_get_next_pc): Likewise.
942
28153fd3
DE
9432014-10-19 Doug Evans <xdje42@gmail.com>
944
945 * gdbthread.h (set_running): Fix comment.
946 (set_executing, finish_thread_state): Fix comment.
947
fc9b8e47
DE
9482014-10-18 Doug Evans <xdje42@gmail.com>
949
950 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
951
4ffbba72
DE
9522014-10-17 Doug Evans <dje@google.com>
953
954 * NEWS: Mention new event gdb.clear_objfiles.
955 * python/py-event.h (emit_clear_objfiles_event): Clear
956 * python/py-events.h (events_object): New member clear_objfiles.
957 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
958 event.
959 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
960 emit clear_objfiles event.
961 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
962 function.
963 (emit_clear_objfiles_event): New function.
964 (clear_objfiles): New event.
965 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
966 Declare.
967 * python/python.c (_initialize_python): Call
968 gdbpy_initialize_clear_objfiles_event.
969
d096d8c1
DE
9702014-10-17 Doug Evans <dje@google.com>
971
972 * NEWS: Mention new gdb.Objfile.progspace attribute.
973 * python/py-objfile.c (objfpy_get_progspace): New function.
974 (objfile_getset): New entry for "progspace".
975
6c4486e6
PA
9762014-10-17 Pedro Alves <palves@redhat.com>
977
978 PR gdb/17471
979 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
980 returns a copy of the input.
981 (run_command_1, continue_command, step_1, jump_command)
982 (signal_command, until_command, advance_command, finish_command)
983 (attach_command): Adjust and install a cleanup to free the
984 stripped args.
985
0ff33695
PA
9862014-10-17 Pedro Alves <palves@redhat.com>
987
988 PR gdb/17300
989 * infcmd.c (continue_1): If continuing all threads in the
990 foreground, make sure the inferior's terminal settings are put in
991 effect.
992
6fdebc3d
PA
9932014-10-17 Pedro Alves <palves@redhat.com>
994
995 PR gdb/17472
996 * annotate.c (annotate_breakpoints_invalid): Use
997 target_terminal_our_for_output instead of target_terminal_ours.
998 Give back the terminal to the target.
999 (annotate_frames_invalid): Likewise.
1000
5842f62a
PA
10012014-10-17 Pedro Alves <palves@redhat.com>
1002
1003 * target.c (enum terminal_state): New enum.
1004 (terminal_state): New global.
1005 (target_terminal_init): New function.
1006 (target_terminal_inferior): Skip if inferior already owns the
1007 terminal.
1008 (target_terminal_ours, target_terminal_ours_for_output): New
1009 functions.
1010 * target.h (target_terminal_init): Convert to function prototype.
1011 (target_terminal_ours_for_output): Convert to function prototype
1012 and tweak comment.
1013 (target_terminal_ours): Convert to function prototype and tweak
1014 comment.
1015 * windows-nat.c (do_initial_windows_stuff): Call
1016 target_terminal_init instead of child_terminal_init_with_pgrp.
1017
32a8097b
PA
10182014-10-17 Pedro Alves <palves@redhat.com>
1019
1020 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1021 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1022 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1023 solib-osf.c.
1024 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1025 * ada-lang.h [__alpha__ && __osf__]
1026 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1027 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1028 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1029 GDB_OSABI_OSF1.
1030 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1031 files.
1032 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1033 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1034 * configure: Regenerate.
1035 * configure.ac: Remove references to osf.
1036 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1037 section. Remove all other references to osf.
1038 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1039 Remove all other references to osf.
1040 * dec-thread.c: Delete file.
1041 * defs.h (GDB_OSABI_OSF1): Delete.
1042 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1043 defined.
1044 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1045 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1046 Delete code.
1047 (unconditionally_kill_inferior)
1048 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1049 * solib-osf.c: Delete file.
1050
80134cf5
PA
10512014-10-17 Pedro Alves <palves@redhat.com>
1052
1053 * remote.c (clear_threads_listing_context): Move higher up, out of
1054 the HAVE_LIBEXPAT guard.
1055
89c7137f
TG
10562014-10-16 Tristan Gingold <gingold@adacore.com>
1057
1058 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1059 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1060 on amd64.
1061
44ee4a52
PA
10622014-10-15 Pedro Alves <palves@redhat.com>
1063
1064 * dec-thread.c (dec_thread_count_gdb_threads)
1065 (dec_thread_add_gdb_thread): Delete.
1066 (dec_thread_update_thread_list): Delete.
1067 (dec_thread_find_new_threads): Rename to ...
1068 (dec_thread_update_thread_list): ... this. Delete GDB-size
1069 threads that are no longer found in dec_thread_list.
1070 (resync_thread_list): Delete.
1071 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1072 resync_thread_list.
1073
ab970af1
PA
10742014-10-15 Pedro Alves <palves@redhat.com>
1075
1076 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1077 * remote.c (remote_update_thread_list): Skip calling prune_threads
1078 if any thread listing method is supported, and instead walk over
1079 the set of remote threads listed, deleting those that are not
1080 found in GDB's thread list.
1081
e8032dde
PA
10822014-10-15 Pedro Alves <palves@redhat.com>
1083
1084 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1085 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1086 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1087 (bsd_uthread_target): Adjust.
1088 * corelow.c (core_open): Adjust.
1089 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1090 (dec_thread_update_thread_list): New function.
1091 (init_dec_thread_ops): Adjust.
1092 * gdbthread.h (prune_threads): New declaration.
1093 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1094 (thread_db_update_thread_list): ... this. Call prune_threads.
1095 (init_thread_db_ops): Adjust.
1096 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1097 (procfs_update_thread_list): ... this. Call prune_threads.
1098 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1099 Adjust.
1100 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1101 (obsd_update_thread_list): ... this. Call prune_threads.
1102 (obsd_add_target): Adjust.
1103 * procfs.c (procfs_target): Adjust.
1104 (procfs_notice_thread): Update comment.
1105 (procfs_find_new_threads): Rename to ...
1106 (procfs_update_thread_list): ... this. Call prune_threads.
1107 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1108 comment.
1109 (ravenscar_wait): Adjust.
1110 (ravenscar_find_new_threads): Rename to ...
1111 (ravenscar_update_thread_list): ... this. Call prune_threads.
1112 (init_ravenscar_thread_ops): Adjust.
1113 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1114 (record_btrace_update_thread_list): ... this. Adjust comment.
1115 (init_record_btrace_ops): Adjust.
1116 * remote.c (remote_threads_info): Rename to ...
1117 (remote_update_thread_list): ... this. Call prune_threads.
1118 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1119 Adjust.
1120 * sol-thread.c (check_for_thread_db): Adjust.
1121 (sol_find_new_threads_callback): Rename to ...
1122 (sol_update_thread_list_callback): ... this.
1123 (sol_find_new_threads): Rename to ...
1124 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1125 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1126 * target-delegates.c: Regenerate.
1127 * target.c (target_find_new_threads): Rename to ...
1128 (target_update_thread_list): ... this.
1129 * target.h (struct target_ops): Rename to_find_new_threads field
1130 to to_update_thread_list.
1131 (target_find_new_threads): Rename to ...
1132 (target_update_thread_list): ... this.
1133 * thread.c (prune_threads): Make extern.
1134 (update_thread_list): Adjust.
1135
6dc54d91
PA
11362014-10-15 Pedro Alves <palves@redhat.com>
1137
1138 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1139 Add describing comment. Return -1 if the qL packet is not
1140 supported.
1141 (struct thread_item, thread_item_t): Move higher up in
1142 the file. Add comments.
1143 (struct threads_parsing_context): Move higher up in
1144 the file, add comments, and remote to ...
1145 (struct threads_listing_context): ... this.
1146 (remote_newthread_step): Don't add the thread to GDB's thread
1147 database here. Instead push it to the thread_listing_context
1148 list.
1149 (remote_find_new_threads): Rename to ...
1150 (remote_get_threads_with_ql): ... this. Add target_ops and
1151 targets_listing_context parameters. Pass down context.
1152 (start_thread): Adjust.
1153 (clear_threads_parsing_context): Rename to ...
1154 (clear_threads_listing_context): ... this.
1155 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1156 remote_threads_info.
1157 (remote_get_threads_with_qthreadinfo): Ditto.
1158 (remote_threads_info): Reimplement.
1159
36728e82
PA
11602014-10-15 Pedro Alves <palves@redhat.com>
1161
1162 * infrun.c (resume): Don't force displaced-stepping for all
1163 single-steps on software single-stepping archs.
1164
34b7e8a6
PA
11652014-10-15 Pedro Alves <palves@redhat.com>
1166
1167 * breakpoint.c (single_step_breakpoints): Delete global.
1168 (insert_single_step_breakpoint): Adjust to store the breakpoint
1169 pointer in the current thread.
1170 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1171 (cancel_single_step_breakpoints): Delete functions.
1172 (breakpoint_has_location_inserted_here): Make extern.
1173 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1174 breakpoint list.
1175 * breakpoint.h (breakpoint_has_location_inserted_here): New
1176 declaration.
1177 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1178 (cancel_single_step_breakpoints): Remove declarations.
1179 * gdbthread.h (struct thread_control_state)
1180 <single_step_breakpoints>: New field.
1181 (delete_single_step_breakpoints)
1182 (thread_has_single_step_breakpoints_set)
1183 (thread_has_single_step_breakpoint_here): New declarations.
1184 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1185 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1186 (singlestep_pc): Delete globals.
1187 (infrun_thread_ptid_changed): Remove references to removed
1188 globals.
1189 (resume_cleanups): Delete the current thread's single-step
1190 breakpoints.
1191 (maybe_software_singlestep): Remove references to removed globals.
1192 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1193 delete_single_step_breakpoints.
1194 (init_wait_for_inferior): Remove references to removed globals.
1195 (delete_thread_infrun_breakpoints): Delete the thread's
1196 single-step breakpoints too.
1197 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1198 single-step breakpoints here.
1199 (delete_stopped_threads_single_step_breakpoints): New function.
1200 (adjust_pc_after_break): Adjust to use
1201 thread_has_single_step_breakpoints_set.
1202 (handle_inferior_event): Remove references to removed globals.
1203 Use delete_stopped_threads_single_step_breakpoints.
1204 (handle_signal_stop): Adjust to per-thread single-step
1205 breakpoints. Swap test order to do cheaper tests first.
1206 (switch_back_to_stepped_thread): Extend debug output. Remove
1207 references to removed globals.
1208 * record-full.c (record_full_wait_1): Adjust to per-thread
1209 single-step breakpoints.
1210 * thread.c (delete_single_step_breakpoints)
1211 (thread_has_single_step_breakpoints_set)
1212 (thread_has_single_step_breakpoint_here): New functions.
1213 (clear_thread_inferior_resources): Also delete the thread's
1214 single-step breakpoints.
1215
5b834a0a
PA
12162014-10-15 Pedro Alves <palves@redhat.com>
1217
1218 * thread.c (delete_thread_breakpoint): New function.
1219 (delete_step_resume_breakpoint)
1220 (delete_exception_resume_breakpoint): Use it.
1221 (delete_at_next_stop): New function.
1222 (clear_thread_inferior_resources): Use delete_at_next_stop.
1223
a1fd2fa5
PA
12242014-10-15 Pedro Alves <palves@redhat.com>
1225
1226 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1227 (breakpoint_inserted_here_p): ... here. Remove special case for
1228 software single-step breakpoints.
1229 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1230 (software_breakpoint_inserted_here_p): ... here. Remove special
1231 case for software single-step breakpoints.
1232 (bp_target_info_copy_insertion_state)
1233 (deprecated_insert_raw_breakpoint)
1234 (deprecated_remove_raw_breakpoint): Delete functions.
1235 * breakpoint.h (deprecated_insert_raw_breakpoint)
1236 (deprecated_remove_raw_breakpoint): Remove declarations.
1237
7c16b83e
PA
12382014-10-15 Pedro Alves <palves@redhat.com>
1239
1240 PR breakpoints/9649
1241 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1242 Delete array globals.
1243 (single_step_breakpoints): New global.
1244 (breakpoint_xfer_memory): Remove special handling for single-step
1245 breakpoints.
1246 (update_breakpoints_after_exec): Delete bp_single_step
1247 breakpoints.
1248 (detach_breakpoints): Remove special handling for single-step
1249 breakpoints.
1250 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1251 (bpstat_stop_status): Add comment.
1252 (bpstat_what, bptype_string, print_one_breakpoint_location)
1253 (adjust_breakpoint_address, init_bp_location): Handle
1254 bp_single_step.
1255 (new_single_step_breakpoint): New function.
1256 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1257 handling for single-step breakpoints.
1258 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1259 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1260 Rewrite.
1261 (detach_single_step_breakpoints, find_single_step_breakpoint):
1262 Delete functions.
1263 (breakpoint_has_location_inserted_here): New function.
1264 (single_step_breakpoint_inserted_here_p): Rewrite.
1265 * breakpoint.h: Remove FIXME.
1266 (enum bptype) <bp_single_step>: New enum value.
1267 (insert_single_step_breakpoint): Update comment.
1268 * infrun.c (resume_cleanups)
1269 (delete_step_thread_step_resume_breakpoint): Remove single-step
1270 breakpoints.
1271 (fetch_inferior_event): Install a cleanup that removes infrun
1272 breakpoints.
1273 (switch_back_to_stepped_thread) <expect thread advanced also>:
1274 Clear step-over info.
1275
0cbcdb96
PA
12762014-10-15 Pedro Alves <palves@redhat.com>
1277
1278 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1279 (delete_thread_infrun_breakpoints): New function, with parts
1280 salvaged from delete_step_resume_breakpoint_callback.
1281 (delete_step_thread_step_resume_breakpoint): Delete.
1282 (for_each_just_stopped_thread_callback_func): New typedef.
1283 (for_each_just_stopped_thread): New function.
1284 (delete_just_stopped_threads_infrun_breakpoints): New function.
1285 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1286 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1287 ... this. Adjust.
1288 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1289
963f9c80
PA
12902014-10-15 Pedro Alves <palves@redhat.com>
1291
1292 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1293 trying to step past a non-steppable watchpoint.
1294 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1295 field.
1296 * infrun.c (struct step_over_info): Add new field
1297 'nonsteppable_watchpoint_p' and adjust comments.
1298 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1299 Adjust.
1300 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1301 (stepping_past_nonsteppable_watchpoint): New function.
1302 (step_over_info_valid_p): Also return true if stepping past a
1303 nonsteppable watchpoint.
1304 (proceed): Adjust call to set_step_over_info. Remove reference to
1305 init_infwait_state.
1306 (init_wait_for_inferior): Remove reference to init_infwait_state.
1307 (waiton_ptid): Delete global.
1308 (struct execution_control_state)
1309 <stepped_after_stopped_by_watchpoint>: Delete field.
1310 (wait_for_inferior, fetch_inferior_event): Always pass
1311 minus_one_ptid to target_wait.
1312 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1313 field.
1314 (init_infwait_state): Delete function.
1315 (handle_inferior_event): Remove infwait_state handling.
1316 (handle_signal_stop) <watchpoints handling>: Adjust after
1317 stepped_after_stopped_by_watchpoint removal. Don't remove
1318 breakpoints here nor set infwait_state. Set the thread's
1319 stepping_over_watchpoint flag, and call keep_going instead.
1320 (keep_going): Handle stepping_over_watchpoint. Adjust
1321 set_step_over_info calls.
1322 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1323 function.
1324
6cc83d2a
PA
13252014-10-15 Pedro Alves <palves@redhat.com>
1326
1327 * infrun.c (step_over_info_valid_p): New function.
1328 (resume): Use step_over_info_valid_p instead of checking the
1329 threads's trap_expected flag.
1330
6979730b
DE
13312014-10-15 Doug Evans <dje@google.com>
1332 Walfred Tedeschi <walfred.tedeschi@intel.com>
1333
1334 PR python/17364
1335 * python/lib/gdb/__init__.py (packages): Add "printer".
1336 * python/lib/gdb/command/bound_registers.py: Moved to ...
1337 * python/lib/gdb/printer/bound_registers.py: ... here.
1338 Add printer to global set of builtin printers. Rename printer from
1339 "bound" to "mpx_bound128".
1340 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1341 registered as global "builtin" printer.
1342 (add_builtin_pretty_printer): New function.
1343 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1344 gdb/printer/__init__.py.
1345
35a49624
IB
13462014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1347
1348 * Makefile.in (SFILES): Remove d-support.c.
1349 (COMMON_OBS): Remove d-support.o.
1350 * d-lang.h (d_parse_symbol): Remove declaration.
1351 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1352 * d-support.c: Remove file.
1353
8fa0c4f8
AA
13542014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355
1356 * gdb/infrun.c (process_event_stop_test): Apply
1357 gdbarch_addr_bits_remove to longjmp resume address.
1358
3666da81
PA
13592014-10-15 Pedro Alves <palves@redhat.com>
1360
1361 * regformats/microblaze.dat: Delete file.
1362
449aa9df
AKA
13632014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1364
1365 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1366 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1367
ebb8ece2
SC
13682014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1369
1370 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1371 as non-trivial.
1372
82c48ac7
SC
13732014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1374
1375 PR c++/13403
1376 PR c++/15154
1377 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1378 with qualified args.
1379
c40cc657
JB
13802014-10-14 Joel Brobecker <brobecker@adacore.com>
1381
1382 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1383 of the case where the second operand is a pointer.
1384 <BINOP_SUB>: Likewise.
1385
0ea5cda8
SDJ
13862014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1387
1388 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1389 only if it is not NULL.
1390 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1391 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1392 (struct probe_ops) <clear_semaphore>: Likewise.
1393 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1394 not NULL.
1395 (stop_tracing): Likewise, for clear_semaphore.
1396
f7088df3
SDJ
13972014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1398
1399 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1400 using language_c, instead of current_language.
1401
4e1bbde0
DE
14022014-10-13 Doug Evans <dje@google.com>
1403
6ff5a0f6 1404 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1405 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1406 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1407 (pspy_new, pspace_to_pspace_object): Call it.
1408
c780cc2f
JK
14092014-10-13 Miroslav Franc <mfranc@redhat.com>
1410 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Fix "save breakpoints" for "catch" command.
1413 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1414 newline.
1415
99894e11
JK
14162014-10-12 Miroslav Franc <mfranc@redhat.com>
1417
1418 Fix "save breakpoints" for "disable $bpnum" command.
1419 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1420
3831839c
PA
14212014-10-10 Pedro Alves <palves@redhat.com>
1422
1423 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1424 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1425 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1426 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1427 and been removed.
1428 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1429 * configure.ac: Remove references to IRIX.
1430 * configure.host: Add *-*-irix* to the obsolete hosts section.
1431 Remove all other references to irix.
1432 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1433 Delete files.
1434
cc3afae2
AKA
14352014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1436
1437 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1438 isn't valid, release the tdesc arch data and return NULL.
1439
cdfa0b0a
PA
14402014-10-10 Pedro Alves <palves@redhat.com>
1441
1442 * linux-tdep.c: Include observer.h.
1443 (linux_inferior_data): New global.
1444 (struct linux_info): New structure.
1445 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1446 (get_linux_inferior_data): New functions.
1447 (linux_vsyscall_range): Rename to ...
1448 (linux_vsyscall_range_raw): ... this.
1449 (linux_vsyscall_range): New function; handles caching.
1450 (_initialize_linux_tdep): Register linux_inferior_data. Install
1451 inferior_exit and inferior_appeared observers.
1452
8b9a549d
PA
14532014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1454 Pedro Alves <palves@redhat.com>
1455
1456 PR symtab/14466
1457 * solib-svr4.c (svr4_read_so_list): Rename to ...
1458 (svr4_current_sos_1): ... this and change the function comment.
1459 (svr4_current_sos): New function.
1460
3437254d
PA
14612014-10-10 Pedro Alves <palves@redhat.com>
1462
1463 * arch-utils.c (default_vsyscall_range): New function.
1464 * arch-utils.h (default_vsyscall_range): New declaration.
1465 * gdbarch.sh (vsyscall_range): New hook.
1466 * gdbarch.h, gdbarch.c: Regenerate.
1467 * linux-tdep.c (linux_vsyscall_range): New function.
1468 (linux_init_abi): Install linux_vsyscall_range as
1469 vsyscall_range gdbarch hook.
1470 * memrange.c (address_in_mem_range): New function.
1471 * memrange.h (address_in_mem_range): New declaration.
1472 * symfile-mem.c (find_vdso_size): Delete function.
1473 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1474
31cc0b80
PA
14752014-10-10 Pedro Alves <palves@redhat.com>
1476
1477 * infrun.c (normal_stop): Fix typo in comment.
1478
3e3286a2
SDJ
14792014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1480
1481 PR tdep/9390
1482 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1483 typo when using logical AND to determine instruction type.
1484
fcbdedf8
YQ
14852014-10-09 Yao Qi <yao@codesourcery.com>
1486
1487 * infrun.c (handle_signal_stop): Remove local variable
1488 'printed'.
1489
db984616
SS
14902014-10-08 Stan Shebs <stan@codesourcery.com>
1491
1492 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1493
3ba37e6c
GB
14942014-10-08 Gary Benson <gbenson@redhat.com>
1495
1496 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1497
a442d071
GB
14982014-10-08 Gary Benson <gbenson@redhat.com>
1499
1500 * common/common-defs.h: Include common-exceptions.h.
1501 * exceptions.h: Do not include common-exceptions.h.
1502
6f1947e8
GB
15032014-10-08 Gary Benson <gbenson@redhat.com>
1504
1505 * common/common-defs.h: Include cleanups.h.
1506 * common/common-exceptions.c: Do not include cleanups.h.
1507 * utils.h: Likewise.
1508
c765fdb9
GB
15092014-10-08 Gary Benson <gbenson@redhat.com>
1510
1511 * ada-lang.c: Do not include exceptions.h.
1512 * ada-valprint.c: Likewise.
1513 * amd64-tdep.c: Likewise.
1514 * auto-load.c: Likewise.
1515 * block.c: Likewise.
1516 * break-catch-throw.c: Likewise.
1517 * breakpoint.c: Likewise.
1518 * btrace.c: Likewise.
1519 * c-lang.c: Likewise.
1520 * cli/cli-cmds.c: Likewise.
1521 * cli/cli-interp.c: Likewise.
1522 * cli/cli-script.c: Likewise.
1523 * completer.c: Likewise.
1524 * corefile.c: Likewise.
1525 * corelow.c: Likewise.
1526 * cp-abi.c: Likewise.
1527 * cp-support.c: Likewise.
1528 * cp-valprint.c: Likewise.
1529 * darwin-nat.c: Likewise.
1530 * dwarf2-frame-tailcall.c: Likewise.
1531 * dwarf2-frame.c: Likewise.
1532 * dwarf2loc.c: Likewise.
1533 * dwarf2read.c: Likewise.
1534 * eval.c: Likewise.
1535 * event-loop.c: Likewise.
1536 * event-top.c: Likewise.
1537 * f-valprint.c: Likewise.
1538 * frame-unwind.c: Likewise.
1539 * frame.c: Likewise.
1540 * gdbtypes.c: Likewise.
1541 * gnu-v2-abi.c: Likewise.
1542 * gnu-v3-abi.c: Likewise.
1543 * guile/scm-auto-load.c: Likewise.
1544 * guile/scm-breakpoint.c: Likewise.
1545 * guile/scm-cmd.c: Likewise.
1546 * guile/scm-frame.c: Likewise.
1547 * guile/scm-lazy-string.c: Likewise.
1548 * guile/scm-param.c: Likewise.
1549 * guile/scm-symbol.c: Likewise.
1550 * guile/scm-type.c: Likewise.
1551 * hppa-hpux-tdep.c: Likewise.
1552 * i386-tdep.c: Likewise.
1553 * inf-loop.c: Likewise.
1554 * infcall.c: Likewise.
1555 * infcmd.c: Likewise.
1556 * infrun.c: Likewise.
1557 * interps.c: Likewise.
1558 * interps.h: Likewise.
1559 * jit.c: Likewise.
1560 * linespec.c: Likewise.
1561 * linux-nat.c: Likewise.
1562 * linux-thread-db.c: Likewise.
1563 * m32r-rom.c: Likewise.
1564 * main.c: Likewise.
1565 * memory-map.c: Likewise.
1566 * mi/mi-cmd-break.c: Likewise.
1567 * mi/mi-cmd-stack.c: Likewise.
1568 * mi/mi-interp.c: Likewise.
1569 * mi/mi-main.c: Likewise.
1570 * monitor.c: Likewise.
1571 * nto-procfs.c: Likewise.
1572 * objc-lang.c: Likewise.
1573 * p-valprint.c: Likewise.
1574 * parse.c: Likewise.
1575 * ppc-linux-tdep.c: Likewise.
1576 * printcmd.c: Likewise.
1577 * probe.c: Likewise.
1578 * python/py-auto-load.c: Likewise.
1579 * python/py-breakpoint.c: Likewise.
1580 * python/py-cmd.c: Likewise.
1581 * python/py-finishbreakpoint.c: Likewise.
1582 * python/py-frame.c: Likewise.
1583 * python/py-framefilter.c: Likewise.
1584 * python/py-function.c: Likewise.
1585 * python/py-gdb-readline.c: Likewise.
1586 * python/py-inferior.c: Likewise.
1587 * python/py-infthread.c: Likewise.
1588 * python/py-lazy-string.c: Likewise.
1589 * python/py-linetable.c: Likewise.
1590 * python/py-param.c: Likewise.
1591 * python/py-prettyprint.c: Likewise.
1592 * python/py-symbol.c: Likewise.
1593 * python/py-type.c: Likewise.
1594 * python/py-value.c: Likewise.
1595 * python/python-internal.h: Likewise.
1596 * python/python.c: Likewise.
1597 * record-btrace.c: Likewise.
1598 * record-full.c: Likewise.
1599 * regcache.c: Likewise.
1600 * remote-fileio.c: Likewise.
1601 * remote-mips.c: Likewise.
1602 * remote.c: Likewise.
1603 * rs6000-aix-tdep.c: Likewise.
1604 * rs6000-nat.c: Likewise.
1605 * skip.c: Likewise.
1606 * solib-darwin.c: Likewise.
1607 * solib-dsbt.c: Likewise.
1608 * solib-frv.c: Likewise.
1609 * solib-ia64-hpux.c: Likewise.
1610 * solib-spu.c: Likewise.
1611 * solib-svr4.c: Likewise.
1612 * solib.c: Likewise.
1613 * spu-tdep.c: Likewise.
1614 * stack.c: Likewise.
1615 * stap-probe.c: Likewise.
1616 * symfile-mem.c: Likewise.
1617 * symmisc.c: Likewise.
1618 * target.c: Likewise.
1619 * thread.c: Likewise.
1620 * top.c: Likewise.
1621 * tracepoint.c: Likewise.
1622 * tui/tui-interp.c: Likewise.
1623 * typeprint.c: Likewise.
1624 * utils.c: Likewise.
1625 * valarith.c: Likewise.
1626 * valops.c: Likewise.
1627 * valprint.c: Likewise.
1628 * value.c: Likewise.
1629 * varobj.c: Likewise.
1630 * windows-nat.c: Likewise.
1631 * xml-support.c: Likewise.
1632
484933d1
MR
16332014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1634
1635 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1636 name implies.
1637 (extended_mips16_next_pc): Update accordingly.
1638
ab50adb6
MR
16392014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1640
1641 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1642 function.
1643 (micromips_instruction_is_compact_branch): Likewise.
1644 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1645 or a compact jump, reaching a jump delay slot, or seeing a
1646 second non-prologue instruction.
1647 (micromips_scan_prologue): Also terminate scanning upon seeing a
1648 compact branch or jump, or reaching a branch or jump delay slot.
1649 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1650 or jump delay slot, or seeing a second non-prologue instruction.
1651 (mips32_instruction_has_delay_slot): Retain instruction
1652 examination code only, update arguments accordingly and move
1653 instruction fetch pieces to...
1654 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1655 (micromips_instruction_has_delay_slot): Likewise and to...
1656 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1657 (mips16_instruction_has_delay_slot): Likewise and to...
1658 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1659 (mips_single_step_through_delay): Update accordingly.
1660 (mips_adjust_breakpoint_address): Likewise.
1661
ae790652
MR
16622014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1663
1664 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1665 !mustbe32 also return 1 for 32-bit instructions.
1666 (mips16_instruction_has_delay_slot): Likewise. Add an
1667 explanatory comment.
1668
9b807e7b
MR
16692014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1670
1671 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1672 symbols special.
1673
0d5ed153
MR
16742014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1675
1676 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1677 update comments.
1678 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1679 for the breakpoint's address. Don't preinitialize `placed_size'.
1680 (insert_bp_location): Set `reqstd_address' rather than
1681 `placed_address'.
1682 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1683 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1684 address.
1685 (bkpt_remove_location): Likewise.
1686 (deprecated_insert_raw_breakpoint): Likewise.
1687 (deprecated_remove_raw_breakpoint): Likewise.
1688 (find_single_step_breakpoint): Likewise.
1689 * mem-break.c (default_memory_insert_breakpoint): Use
1690 `reqstd_address' for the breakpoint's address. Don't set
1691 `placed_address' or `placed_size' if breakpoint contents couldn't
1692 have been determined.
1693 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1694 the breakpoint's address.
1695 (remote_insert_hw_breakpoint): Likewise. Don't set
1696 `placed_address' or `placed_size' if breakpoint couldn't have been
1697 set.
1698 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1699 `reqstd_address' for the breakpoint's address.
1700 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1701 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1702 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1703 * microblaze-linux-tdep.c
1704 (microblaze_linux_memory_remove_breakpoint): Likewise.
1705 * monitor.c (monitor_insert_breakpoint): Likewise.
1706 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1707 (procfs_insert_hw_breakpoint): Likewise.
1708 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1709 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1710 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1711 * remote-mips.c (mips_insert_breakpoint): Likewise.
1712 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1713
3e871532
LM
17142014-10-03 Luis Machado <lgustavo@codesourcery.com>
1715
1716 * valops.c (value_assign): Check for bit field assignments
1717 before calling architecture-specific register value
1718 conversion functions.
1719
ec48dc8b
PM
17202014-10-03 Pierre Muller <muller@sourceware.org>
1721
1722 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1723
b57bacec
PA
17242014-10-02 Pedro Alves <palves@redhat.com>
1725
1726 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1727 threads_are_executing.
1728 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1729 describing comment.
1730 * gdbthread.h (threads_are_executing): Declare.
1731 (handle_signal_stop) <random signals>: Don't print about the
1732 signal here if stopping.
1733 (end_stepping_range): Don't notify observers here.
1734 (normal_stop): Update the thread list. If stopped by a random
1735 signal or a stepping range ended, notify observers.
1736 * thread.c (threads_executing): New global.
1737 (init_thread_list): Clear 'threads_executing'.
1738 (set_executing): Set or clear 'threads_executing'.
1739 (threads_are_executing): New function.
1740 (update_threads_executing): New function.
1741 (update_thread_list): Use it.
1742
13fd3ff3
PA
17432014-10-02 Pedro Alves <palves@redhat.com>
1744
1745 PR breakpoints/17431
1746 * breakpoint.c (update_breakpoints_after_exec): Don't create
1747 overlay, longjmp, std terminate nor exception breakpoints here.
1748
32990ada
PA
17492014-10-02 Pedro Alves <palves@redhat.com>
1750
1751 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1752 Adjust comments.
1753 * inferior.c (find_inferior_for_program_space): Give preference to
1754 the current inferior.
1755 * inferior.h (find_inferior_for_program_space): Update comment.
1756 * progspace.c (switch_to_program_space_and_thread): Prefer the
1757 current inferior if it's bound to the program space requested. If
1758 the inferior found doesn't have a PID yet, don't bother looking up
1759 a thread.
1760 * progspace.h (switch_to_program_space_and_thread): Adjust
1761 comment.
1762 * thread.c (any_thread_of_process, any_live_thread_of_process):
1763 Give preference to the current thread.
1764
0fec99e8
PA
17652014-10-01 Pedro Alves <palves@redhat.com>
1766
1767 * breakpoint.c (insert_bp_location): Error out if inserting a
1768 software breakpoint at a read-only address.
1769 * target.c (memory_xfer_check_region): New function, factored out
1770 from ...
1771 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1772 ULONGEST.
1773 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1774 against the memory region attributes.
1775
2ddf4301
SM
17762014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1777
1778 * NEWS: Announce new exit-code field in -list-thread-groups
1779 output.
1780 * inferior.c (exit_inferior_1): Don't clear exit code.
1781 (inferior_appeared): Clear exit code.
1782 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1783 code.
1784
5fdeec1d
PA
17852014-10-01 Pedro Alves <palves@redhat.com>
1786
1787 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1788 GENERATED" along with emacs/vi read-only markers.
1789 * regformats/aarch64.dat: Regenerate.
1790 * regformats/arm-with-iwmmxt.dat: Regenerate.
1791 * regformats/arm-with-neon.dat: Regenerate.
1792 * regformats/arm-with-vfpv2.dat: Regenerate.
1793 * regformats/arm-with-vfpv3.dat: Regenerate.
1794 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1795 * regformats/i386/amd64-avx.dat: Regenerate.
1796 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1797 * regformats/i386/amd64-avx512.dat: Regenerate.
1798 * regformats/i386/amd64-linux.dat: Regenerate.
1799 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1800 * regformats/i386/amd64-mpx.dat: Regenerate.
1801 * regformats/i386/amd64.dat: Regenerate.
1802 * regformats/i386/i386-avx-linux.dat: Regenerate.
1803 * regformats/i386/i386-avx.dat: Regenerate.
1804 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1805 * regformats/i386/i386-avx512.dat: Regenerate.
1806 * regformats/i386/i386-linux.dat: Regenerate.
1807 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1808 * regformats/i386/i386-mmx.dat: Regenerate.
1809 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1810 * regformats/i386/i386-mpx.dat: Regenerate.
1811 * regformats/i386/i386.dat: Regenerate.
1812 * regformats/i386/x32-avx-linux.dat: Regenerate.
1813 * regformats/i386/x32-avx.dat: Regenerate.
1814 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1815 * regformats/i386/x32-avx512.dat: Regenerate.
1816 * regformats/i386/x32-linux.dat: Regenerate.
1817 * regformats/i386/x32.dat: Regenerate.
1818 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1819 * regformats/mips-dsp-linux.dat: Regenerate.
1820 * regformats/mips-linux.dat: Regenerate.
1821 * regformats/mips64-dsp-linux.dat: Regenerate.
1822 * regformats/mips64-linux.dat: Regenerate.
1823 * regformats/nios2-linux.dat: Regenerate.
1824 * regformats/rs6000/powerpc-32.dat: Regenerate.
1825 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1826 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1827 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1828 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1829 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1830 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1831 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1832 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1833 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1834 * regformats/s390-linux32.dat: Regenerate.
1835 * regformats/s390-linux32v1.dat: Regenerate.
1836 * regformats/s390-linux32v2.dat: Regenerate.
1837 * regformats/s390-linux64.dat: Regenerate.
1838 * regformats/s390-linux64v1.dat: Regenerate.
1839 * regformats/s390-linux64v2.dat: Regenerate.
1840 * regformats/s390-te-linux64.dat: Regenerate.
1841 * regformats/s390x-linux64.dat: Regenerate.
1842 * regformats/s390x-linux64v1.dat: Regenerate.
1843 * regformats/s390x-linux64v2.dat: Regenerate.
1844 * regformats/s390x-te-linux64.dat: Regenerate.
1845 * regformats/tic6x-c62x-linux.dat: Regenerate.
1846 * regformats/tic6x-c62x.dat: Regenerate.
1847 * regformats/tic6x-c64x-linux.dat: Regenerate.
1848 * regformats/tic6x-c64x.dat: Regenerate.
1849 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1850 * regformats/tic6x-c64xp.dat: Regenerate.
1851
db74e4ba
PA
18522014-10-01 Pedro Alves <palves@redhat.com>
1853
1854 * features/Makefile: Update comments.
1855 (XMLTOC): List all xml files we build C files from.
1856 (clean-cfiles): New rule.
1857
d63f2f84
PA
18582014-10-01 Pedro Alves <palves@redhat.com>
1859
1860 * features/i386/amd64-avx512-linux.c: Regenerate.
1861 * features/i386/amd64-avx512.c: Regenerate.
1862 * features/i386/x32-avx512-linux.c: Regenerate.
1863 * features/i386/x32-avx512.c: Regenerate.
1864
20ad026d
PA
18652014-10-01 Pedro Alves <palves@redhat.com>
1866
1867 * features/Makefile (WHICH): Remove arm-with-m,
1868 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1869
acc9fe45
PA
18702014-10-01 Pedro Alves <palves@redhat.com>
1871
1872 * features/Makefile (clean): New rule.
1873
e001e535
PA
18742014-10-01 Pedro Alves <palves@redhat.com>
1875
1876 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1877 (zmm14h): Add missing end quotes.
1878
bdc14417
PA
18792014-10-01 Pedro Alves <palves@redhat.com>
1880
1881 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1882 * features/aarch64.c: Regenerate.
1883
d83ad864
DB
18842014-09-30 Don Breazeal <donb@codesourcery.com>
1885
1886 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1887 code so as to work with follow_fork_inferior.
1888 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1889 (inf_ttrace_create_inferior): Remove reference to
1890 inf_ttrace_vfork_ppid.
1891 (inf_ttrace_attach): Ditto.
1892 (inf_ttrace_detach): Ditto.
1893 (inf_ttrace_kill): Use current_inferior instead of
1894 inf_ttrace_vfork_ppid.
1895 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1896 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1897 inferior away from the parent.
1898 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1899 target_follow_fork.
1900 (follow_fork_inferior): New function.
1901 (follow_inferior_reset_breakpoints): Make function static.
1902 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1903 * linux-nat.c (linux_child_follow_fork): Move target-independent
1904 code to infrun.c:follow_fork_inferior.
1905
29082443
AA
19062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1907
1908 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1909 * gdbarch.c: Regenerate.
1910 * gdbarch.h: Likewise.
1911 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1912 gdbarch method 'regset_from_core_section'.
1913 (get_core_register_section): Remove handling for the case that
1914 regset == NULL and regset_from_core_section is defined.
1915 (get_core_registers): Drop check for deleted method.
1916 * procfs.c (procfs_do_thread_registers): Adjust comment.
1917
f968fe80
AA
19182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1919
1920 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1921 (linux_nat_make_corefile_notes): Remove.
1922 (linux_target_install_ops): Do not set target method
1923 'make_corefile_notes'.
1924 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1925 Remove field.
1926 (linux_corefile_thread_callback): Instead of args->collect, call
1927 linux_collect_thread_registers.
1928 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1929 NULL unless there is a regset iterator.
1930 (linux_make_corefile_notes_1): Remove.
1931 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1932 by linux_make_corefile_notes.
1933 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1934
174ad59a
AA
19352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1936
1937 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1938 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1939 Remove.
1940 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1941
97094034
AA
19422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1943
1944 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1945 (xtensa_iterate_over_regset_sections): New.
1946 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1947
f73d3ce7
AA
19482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1949
1950 * vax-tdep.c (vax_regset_from_core_section): Remove.
1951 (vax_iterate_over_regset_sections): New.
1952 (vax_gdbarch_init): Adjust gdbarch initialization.
1953
cb24567a
AA
19542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1955
1956 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1957 (tilegx_regset_from_core_section): Remove.
1958 (tilegx_iterate_over_regset_sections): New.
1959 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1960
e5139de8
AA
19612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1962
1963 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1964 (sparc_iterate_over_regset_sections): New.
1965 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1966 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1967 targets.
1968 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1969 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1970 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1971 target method 'make_corefile_notes'.
1972
c6d41a6f
AA
19732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1974
1975 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1976 'sizeof_gregset' and 'sizeof_fpregset'.
1977 * sh-tdep.c (sh_regset_from_core_section): Remove.
1978 (sh_iterate_over_regset_sections): New.
1979 (sh_gdbarch_init): Adjust gdbarch initialization.
1980 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1981 sizeof_fpregset.
1982 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1983 'sizeof_gregset'.
1984
9845a0b5
AA
19852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1986
1987 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1988 (score7_linux_iterate_over_regset_sections): New.
1989 (score_gdbarch_init): Adjust gdbarch initialization.
1990
23ea9aeb
AA
19912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1992
1993 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1994 FreeBSD targets.
1995 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1996 method 'make_corefile_notes'.
1997 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1998 (ppcfbsd_regset_from_core_section): Remove.
1999 (ppcfbsd_iterate_over_regset_sections): New.
2000 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2001 initialization.
2002 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2003 (ppcnbsd_iterate_over_regset_sections): New.
2004 (ppcnbsd_init_abi): Adjust.
2005 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2006 (ppcobsd_iterate_over_regset_sections): New.
2007 (ppcobsd_init_abi): Adjust.
2008 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2009 (rs6000_aix_iterate_over_regset_sections): New.
2010 (rs6000_aix_init_osabi): Adjust.
2011
c5b8d704
AA
20122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2013
2014 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2015 (nios2_regset_from_core_section): Remove.
2016 (nios2_iterate_over_regset_sections): New.
2017 (nios2_linux_init_abi): Adjust gdbarch initialization.
2018
3636e608
AA
20192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2020
2021 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2022 (am33_iterate_over_regset_sections): New.
2023 (am33_linux_init_osabi): Adjust gdbarch initialization.
2024
d4036235
AA
20252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026
2027 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2028 (mips_linux_iterate_over_regset_sections): New.
2029 (mips_linux_init_abi): Adjust gdbarch initialization.
2030 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2031 (mips64obsd_iterate_over_regset_sections): New.
2032 (mips64obsd_init_abi): Adjust.
2033 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2034 (mipsnbsd_iterate_over_regset_sections): New.
2035 (mipsnbsd_init_abi): Adjust.
2036
b61ddd6e
AA
20372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2038
2039 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2040 (m88k_iterate_over_regset_sections): New.
2041 (m88k_gdbarch_init): Adjust gdbarch initialization.
2042
55a2906a
AA
20432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044
2045 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2046 (ia64_linux_iterate_over_regset_sections): New.
2047 (ia64_linux_init_abi): Adjust gdbarch initialization.
2048
022c98ab
AA
20492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050
2051 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2052 (m68kbsd_iterate_over_regset_sections): New.
2053 (m68kbsd_init_abi): Adjust gdbarch initialization.
2054 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2055 (m68k_linux_iterate_over_regset_sections): New.
2056 (m68k_linux_init_abi): Adjust gdbarch initialization.
2057
5fac247f
AA
20582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059
2060 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2061 (m32r_linux_regset_from_core_section): Remove.
2062 (m32r_linux_iterate_over_regset_sections): New.
2063 (m32r_linux_init_abi): Adjust gdbarch initialization.
2064
490496c3
AA
20652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2066
2067 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2068 (amd64obsd_iterate_over_regset_sections): New.
2069 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2070 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2071 Remove.
2072 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2073 regset_from_core_section initialization.
2074 * i386-tdep.c (i386_regset_from_core_section): Remove.
2075 (i386_iterate_over_regset_sections): New.
2076 (i386_gdbarch_init): Adjust gdbarch initialization.
2077 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2078 (i386_iterate_over_regset_sections): New prototype.
2079 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2080 Remove.
2081 (i386obsd_aout_iterate_over_regset_sections): New.
2082 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2083 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2084 targets.
2085 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2086 (amd64fbsd_init_abi): Call fbsd_init_abi.
2087 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2088 (i386fbsd4_init_abi): Call fbsd_init_abi.
2089 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2090 target method 'make_corefile_notes'.
2091 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2092
50c5eb53
AA
20932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2094
2095 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2096 (hppa_hpux_iterate_over_regset_sections): New.
2097 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2098 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2099 (hppa_linux_iterate_over_regset_sections): New.
2100 (hppa_linux_init_abi): Adjust.
2101 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2102 (hppanbsd_iterate_over_regset_sections): New.
2103 (hppanbsd_init_abi): Adjust.
2104 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2105 (hppaobsd_iterate_over_regset_sections): New.
2106 (hppaobsd_init_abi): Adjust.
2107
66afae4f
AA
21082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109
2110 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2111 (frv_linux_iterate_over_regset_sections): New.
2112 (frv_linux_init_abi): Adjust gdbarch initialization.
2113
ed09174e
AA
21142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2115
2116 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2117 (armbsd_iterate_over_regset_sections): New prototype.
2118 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2119 (armbsd_iterate_over_regset_sections): New.
2120 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2121 initialization.
2122
dff2166e
AA
21232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2124
2125 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2126 (alpha_linux_iterate_over_regset_sections): New.
2127 (alpha_linux_init_abi): Adjust gdbarch initialization.
2128 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2129 prototype.
2130 (alphanbsd_iterate_over_regset_sections): New prototype.
2131
4108500a
AA
21322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2133
2134 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2135 Remove.
2136 (aarch64_linux_iterate_over_regset_sections): New.
2137 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2138
a904c024
AA
21392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2140
2141 * fbsd-tdep.c: New file.
2142 * fbsd-tdep.h: New file.
2143 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2144 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2145 (ALLDEPFILES): Add fbsd-tdep.c.
2146
8f0435f7
AA
21472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148
2149 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2150 parameter.
2151 * gdbarch.h: Regenerate.
2152 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2153 iterator.
2154 (get_core_register_section): Add parameter 'regset' and use it, if
2155 set. Add parameter 'min_size' and verify the bfd section size
2156 against it.
2157 (get_core_registers_cb): Add parameter 'regset' and pass it to
2158 get_core_register section. For the "standard" register sections
2159 ".reg" and ".reg2", set an appropriate default for human_name.
2160 (get_core_registers): Don't abort when the gdbarch has an iterator
2161 but no regset_from_core_section. Add NULL/0 for parameters
2162 'regset'/'min_size' in calls to get_core_register_section.
2163 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2164 'regset' and use it instead of calling the
2165 regset_from_core_section gdbarch method.
2166 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2167 * i386-tdep.c (i386_supply_xstateregset)
2168 (i386_collect_xstateregset, i386_xstateregset): Moved to
2169 i386-linux-tdep.c.
2170 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2171 .reg-xstate.
2172 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2173 core file support only if the regset iterator hasn't been set.
2174 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2175 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2176 Moved from i386-tdep.c and renamed to *_linux*.
2177 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2178 each callback invocation. Allow any .reg-xstate size when reading
2179 from a core file.
2180 * amd64-tdep.c (amd64_supply_xstateregset)
2181 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2182 amd64-linux-tdep.c.
2183 (amd64_regset_from_core_section): Remove.
2184 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2185 install an amd64-specific regset_from_core_section gdbarch method.
2186 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2187 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2188 Moved from amd64-tdep.c and renamed to *_linux*.
2189 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2190 to each callback invocation. Allow any .reg-xstate size when
2191 reading from a core file.
2192 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2193 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2194 each callback invocation.
2195 (arm_linux_init_abi): No longer set the regset_from_core_section
2196 gdbarch method.
2197 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2198 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2199 each callback invocation.
2200 (ppc_linux_init_abi): No longer set the regset_from_core_section
2201 gdbarch method.
2202 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2203 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2204 (s390_regset_from_core_section): Remove.
2205 (s390_iterate_over_regset_sections): Add regset parameter to each
2206 callback invocation.
2207 (s390_gdbarch_init): No longer set the regset_from_core_section
2208 gdbarch method. Drop initialization of deleted tdep fields.
2209
5aa82d05
AA
22102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2211
2212 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2213 (amd64_linux_iterate_over_regset_sections): New.
2214 (amd64_linux_init_abi_common): Don't install the regset section
2215 list, but the new iterator in gdbarch.
2216 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2217 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2218 (arm_linux_iterate_over_regset_sections): ...here. New function.
2219 (arm_linux_init_abi): Set iterator instead of section list.
2220 * corelow.c (get_core_registers_cb): New function, logic moved
2221 from...
2222 (get_core_registers): ...loop body here. Use new iterator method
2223 instead of walking through the regset section list.
2224 * gdbarch.sh: Remove 'core_regset_sections'. New method
2225 'iterate_over_regset_sections'. New typedef
2226 'iterate_over_regset_sections_cb'.
2227 * gdbarch.c: Regenerate.
2228 * gdbarch.h: Likewise.
2229 * i386-linux-tdep.c (i386_linux_regset_sections)
2230 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2231 Remove.
2232 (i386_linux_iterate_over_regset_sections): New.
2233 (i386_linux_init_abi): Don't choose a regset section list, but
2234 install new iterator in gdbarch.
2235 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2236 (linux_collect_regset_section_cb): New function, logic moved
2237 from...
2238 (linux_collect_thread_registers): ...loop body here. Use iterator
2239 method instead of walking through list.
2240 (linux_make_corefile_notes_1): Check for presence of iterator
2241 method instead of regset section list.
2242 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2243 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2244 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2245 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2246 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2247 (ppc_linux_init_abi): Don't choose from above regset section
2248 lists, but install new iterator in gdbarch.
2249 * regset.h (struct core_regset_section): Remove.
2250 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2251 have_linux_v1, have_linux_v2, and have_tdb.
2252 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2253 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2254 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2255 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2256 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2257 (s390_iterate_over_regset_sections): ...here. New function. Use
2258 new tdep fields.
2259 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2260 regset section lists, but install new iterator.
2261
2eca4a8d
JK
22622014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
2264 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2265
a73c2b56
SM
22662014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2267
2268 * progspace.c (print_program_space): Don't prune program spaces
2269 before printing them.
2270
03d46957
PA
22712014-09-25 Pedro Alves <palves@redhat.com>
2272
2273 * infrun.c (user_visible_resume_ptid): Don't check
2274 singlestep_breakpoints_inserted_p.
2275
e558d7c1
PA
22762014-09-25 Pedro Alves <palves@redhat.com>
2277
2278 * breakpoint.c (should_be_inserted): Add debug output.
2279
7f89fd65
PA
22802014-09-25 Pedro Alves <palves@redhat.com>
2281
2282 * infrun.c (stepping_past_instruction_at)
2283 (clear_exit_convenience_vars): Point at infrun.h instead of
2284 inferior.h.
2285 (handle_signal_stop): Fix typo.
2286
b7576e5c
YQ
22872014-09-24 Yao Qi <yao@codesourcery.com>
2288
2289 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2290 bitmask.
2291
9a6cf368
GB
22922014-09-22 Gary Benson <gbenson@redhat.com>
2293
2294 * target.c (target_stop): Updated comment.
2295
03f4463b
GB
22962014-09-22 Gary Benson <gbenson@redhat.com>
2297
2298 * target/target.h (target_stop_ptid): Renamed as...
2299 (target_stop_and_wait): New function. Updated comment.
2300 All uses updated.
2301 (target_continue_ptid): Renamed as...
2302 (target_continue_no_signal): New function. Updated comment.
2303 All uses updated.
2304
a25a5a45
PA
23052014-09-22 Pedro Alves <palves@redhat.com>
2306
2307 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2308 and "auto" merged.
2309 * breakpoint.c (enum ugll_insert_mode): New enum.
2310 (always_inserted_mode): Now a plain boolean.
2311 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2312 (breakpoints_always_inserted_mode): Delete.
2313 (breakpoints_should_be_inserted_now): New function.
2314 (insert_breakpoints): Pass UGLL_INSERT to
2315 update_global_location_list instead of calling
2316 insert_breakpoint_locations manually.
2317 (create_solib_event_breakpoint_1): New, factored out from ...
2318 (create_solib_event_breakpoint): ... this.
2319 (create_and_insert_solib_event_breakpoint): Use
2320 create_solib_event_breakpoint_1 instead of calling
2321 insert_breakpoint_locations manually.
2322 (update_global_location_list): Change parameter type from boolean
2323 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2324 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2325 (update_global_location_list_nothrow): Change parameter type from
2326 boolean to enum ugll_insert_mode.
2327 (_initialize_breakpoint): "breakpoint always-inserted" option is
2328 now a boolean command. Update help text.
2329 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2330 (breakpoints_should_be_inserted_now): New declaration.
2331 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2332 Remove breakpoints_always_inserted_mode check.
2333 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2334 * remote.c (remote_start_remote): Likewise.
2335
04086b45
PA
23362014-09-22 Pedro Alves <palves@redhat.com>
2337
2338 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2339 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2340 Instead, pass UGLL_INSERT to update_global_location_list.
2341 (update_global_location_list): Change parameter type from boolean
2342 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2343 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2344 (create_solib_event_breakpoint_1): New, factored out from ...
2345 (create_solib_event_breakpoint): ... this.
2346 (create_and_insert_solib_event_breakpoint): Use
2347 create_solib_event_breakpoint_1 instead of calling
2348 insert_breakpoint_locations manually.
2349 (update_global_location_list): Handle UGLL_INSERT.
2350
44702360
PA
23512014-09-22 Pedro Alves <palves@redhat.com>
2352
2353 * breakpoint.c (enum ugll_insert_mode): New enum.
2354 (update_global_location_list)
2355 (update_global_location_list_nothrow): Change parameter type from
2356 boolean to enum ugll_insert_mode. All callers adjusted.
2357
93c6145a
JB
23582014-09-19 Joel Brobecker <brobecker@adacore.com>
2359
2360 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2361 SystemTap support in GDB.
2362
89a5711c
DB
23632014-09-19 Don Breazeal <donb@codesourcery.com>
2364
2365 * linux-nat.c (linux_handle_extended_wait): Call
2366 linux_ptrace_get_extended_event.
2367 (wait_lwp): Call linux_is_extended_waitstatus.
2368 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2369 and linux_is_extended_waitstatus.
2370 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2371 linux_ptrace_get_extended_event.
2372 (linux_ptrace_get_extended_event): New function.
2373 (linux_is_extended_waitstatus): New function.
2374 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2375 (linux_is_extended_waitstatus): New declarations.
2376
c3b7b696
YQ
23772014-09-19 Yao Qi <yao@codesourcery.com>
2378
2379 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2380 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2381 comments. Callers update.
2382 (dwarf_decode_lines): Likewise.
2383 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2384 comments. Skip the line table if 'lowpc' is greater than
2385 'address'. Don't check
2386 dwarf2_per_objfile->has_section_at_zero.
2387
2b4fd423
DE
23882014-09-18 Doug Evans <dje@google.com>
2389
2390 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2391 * python/py-symtab.c (stpy_get_producer): New function.
2392 (symtab_object_getset): Add "producer" attribute.
2393
5e43d467
UW
23942014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2395
2396 PR gdb/17384
2397 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2398 (do_captured_read_memory_integer): Remove.
2399 (safe_read_memory_integer): Use target_read_memory directly instead
2400 of catching errors in do_captured_read_memory_integer.
2401
04e79979
MR
24022014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2403
2404 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2405 not gdb/doc.
2406
76aeec5b
SDJ
24072014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2408
2409 * objc-lang.c (find_implementation_from_class): Remove dead code.
2410
2f693f9d
SDJ
24112014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2412
2413 PR cli/7233
2414 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2415 "fprintf_unfiltered (gdb_stdlog...)".
2416
bb9d5f81
PP
24172014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2418
2419 PR breakpoints/12526
2420 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2421 val_bitsize.
2422 * breakpoint.c (watch_command_1): Use these fields to retain
2423 bitfield information.
2424 (extract_bitfield_from_watchpoint_value): New function.
2425 (watchpoint_check): Use it.
2426 (update_watchpoint): Use it. Optimize the address and length of a
2427 HW watchpoint pointing to a bitfield.
2428 * value.h (unpack_value_bitfield): New prototype.
2429 * value.c (unpack_value_bitfield): Make extern.
2430
05db5edd
ST
24312014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2432
2433 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2434 x86-dregs.o.
2435 * gnu-nat.c (inf_threads): New function.
2436 * gnu-nat.h (inf_threads_ftype): New typedef.
2437 (inf_threads): New declaration.
2438 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2439 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2440 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2441 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2442 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2443 (i386_gnu_dr_get_control): New functions.
2444 (reg_addr): New structure.
2445 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2446 i386 debugging register hooks.
2447 * NEWS: Mention this.
2448
5a578da5
OJ
24492014-08-13 Omair Javaid <omair.javaid@linaro.org>
2450
2451 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2452 vector data transfer instructions.
2453 (arm_record_coproc_data_proc): Updated.
2454
f20f80dd
OJ
24552014-08-13 Omair Javaid <omair.javaid@linaro.org>
2456
2457 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2458 arm_record_exreg_ld_st_insn.
2459 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2460 load/store insns.
2461
851f26ae
OJ
24622014-08-13 Omair Javaid <omair.javaid@linaro.org>
2463
2464 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2465 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2466 processing instructions.
2467
1e1b6563
OJ
24682014-08-13 Omair Javaid <omair.javaid@linaro.org>
2469
2470 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2471 for advance SIMD struct ld/st insn.
2472 (thumb2_record_decode_insn_handler): Replace stub handler with
2473 thumb2_record_asimd_struct_ld_st.
2474
60cc5e93
OJ
24752014-08-13 Omair Javaid <omair.javaid@linaro.org>
2476
2477 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2478 for asimd, vfp and coprocessor insns.
2479 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2480 and coprocessor insns.
2481 (thumb2_record_coproc_insn): New function.
2482 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2483 handlers.
2484 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2485 opcode 110 insns.
2486
81219e53
DE
24872014-09-13 Doug Evans <xdje42@gmail.com>
2488
2489 * NEWS: Mention new "queue-signal" command.
2490 * infcmd.c (queue_signal_command): New function.
2491 (_initialize_infcmd): Add new queue-signal command.
2492
d36bf488
DE
24932014-09-13 Doug Evans <xdje42@gmail.com>
2494
2495 * linux-nat.c (wait_lwp): Add debugging printf.
2496 (linux_nat_wait_1): Ditto.
2497
f37f681c
PA
24982014-09-12 Pedro Alves <palves@redhat.com>
2499
2500 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2501 (create_and_insert_solib_event_breakpoint): New functions.
2502 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2503 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2504 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2505 (remove_dbx_link_breakpoint): Delete function.
2506 (insert_dbx_link_bpt_in_file): Use
2507 create_and_insert_solib_event_breakpoint instead of
2508 deprecated_insert_raw_breakpoint.
2509 (procfs_wait): Don't check whether we hit __dbx_link here.
2510 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2511 here.
2512 * solib-irix.c (base_breakpoint): Delete global.
2513 (disable_break): Delete function.
2514 (enable_break): Use create_solib_event_breakpoint
2515 instead of deprecated_insert_raw_breakpoint.
2516 (irix_solib_handle_event): New function.
2517 (irix_solib_create_inferior_hook): Don't run the target or disable
2518 the mapping-complete breakpoint here.
2519 (_initialize_irix_solib): Install irix_solib_handle_event as
2520 so_ops->handle_event hook.
2521
9d9bf2df
EBM
25222014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2523 Ulrich Weigand  <uweigand@de.ibm.com>
2524
2525 PR tdep/17379
2526 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2527 instead of read_memory_unsigned_integer.
2528
b006a80e
GB
25292014-09-12 Gary Benson <gbenson@redhat.com>
2530
2531 * nat/linux-waitpid.c: Include common-defs.h.
2532 [GDBSERVER]: Add FIXME comment.
2533 [!GDBSERVER]: Don't include defs.h or signal.h.
2534 (linux_debug) [!GDBSERVER]: Remove empty block.
2535
296b1496
GB
25362014-09-12 Gary Benson <gbenson@redhat.com>
2537
2538 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2539 Don't include defs.h or server.h.
2540
53f81362
GB
25412014-09-12 Gary Benson <gbenson@redhat.com>
2542
2543 * nat/linux-btrace.c: Include common-defs.h.
2544 Don't include defs.h, server.h or gdbthread.h.
2545 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2546
727605ca
GB
25472014-09-12 Gary Benson <gbenson@redhat.com>
2548
2549 * common/agent.c: Include common-defs.h.
2550 Don't include defs.h or server.h.
2551 * common/buffer.c: Likewise.
2552 * common/common-debug.c: Likewise.
2553 * common/common-utils.c: Likewise.
2554 * common/errors.c: Likewise.
2555 * common/filestuff.c: Likewise.
2556 * common/format.c: Likewise.
2557 * common/gdb_vecs.c: Likewise.
2558 * common/print-utils.c: Likewise.
2559 * common/ptid.c: Likewise.
2560 * common/rsp-low.c: Likewise.
2561 * common/signals.c: Likewise.
2562 * common/vec.c: Likewise.
2563 * common/xml-utils.c: Likewise.
2564 * nat/linux-osdata.c: Likewise.
2565 * nat/linux-procfs.c: Likewise.
2566 * nat/linux-ptrace.c: Likewise.
2567 * nat/mips-linux-watch.c: Likewise.
2568 * target/waitstatus.c: Likewise.
2569
361c8ade
GB
25702014-09-12 Tom Tromey <tromey@redhat.com>
2571 Gary Benson <gbenson@redhat.com>
2572
2573 * common/common-regcache.h: New file.
2574 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2575 * regcache.h: Include common-regcache.h.
2576 (regcache_read_pc): Don't declare.
2577 * regcache.c (get_thread_regcache_for_ptid): New function.
2578 * nat/linux-btrace.c: Don't include regcache.h.
2579 Include common-regcache.h.
2580 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2581
a01cbb49
TS
25822014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2583
2584 * regcache.h (struct regset): Declare.
2585
98880d46
PA
25862014-09-11 Pedro Alves <palves@redhat.com>
2587
2588 PR gdb/17347
2589 * main.c: Include "infrun.h".
2590 (catch_command_errors, catch_command_errors_const): Wait for the
2591 foreground command to complete.
2592 * top.c (maybe_wait_sync_command_done): New function, factored out
2593 from ...
2594 (maybe_wait_sync_command_done): ... here.
2595 * top.h (maybe_wait_sync_command_done): New declaration.
2596
bd9269f7
GB
25972014-09-11 Tom Tromey <tromey@redhat.com>
2598 Gary Benson <gbenson@redhat.com>
2599
2600 * common/symbol.h: New file.
2601 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2602 * minsyms.c (find_minimal_symbol_address): New function.
2603 * common/agent.c: Include common/symbol.h.
2604 [!GDBSERVER]: Don't include objfiles.h.
2605 (agent_look_up_symbols): Use find_minimal_symbol_address.
2606
f8c1d06b
GB
26072014-09-11 Gary Benson <gbenson@redhat.com>
2608
2609 * target/target.h (target_stop_ptid, target_continue_ptid):
2610 Declare.
2611 * target.c (target_stop_ptid, target_continue_ptid): New
2612 functions.
2613 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2614 (agent_run_command): Always use target_stop_ptid and
2615 target_continue_ptid.
2616
721ec300
GB
26172014-09-11 Tom Tromey <tromey@redhat.com>
2618 Gary Benson <gbenson@redhat.com>
2619
2620 * target/target.h: New file.
2621 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2622 * target.h: Include target/target.h.
2623 (target_read_memory, target_write_memory): Don't declare.
2624 * target.c (target_read_uint32): New function.
2625 * common/agent.c: Include target/target.h.
2626 [!GDBSERVER]: Don't include target.h.
2627 (helper_thread_id): Type changed to uint32_t.
2628 (agent_get_helper_thread_id): Use target_read_uint32.
2629 (agent_run_command): Always use target_read_memory and
2630 target_write_memory.
2631 (agent_capability): Type changed to uint32_t.
2632 (agent_capability_check): Use target_read_uint32.
2633
c5e92cca
GB
26342014-09-11 Gary Benson <gbenson@redhat.com>
2635
2636 * common/common-debug.h (show_debug_regs): Declare.
2637 * common/common-debug.c (show_debug_regs): Define.
2638 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2639 all uses with show_debug_regs. Replace all uses that considered
2640 debug_hw_points as a multi-value integer with straight boolean
2641 uses.
2642 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2643 with show_debug_regs.
2644 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2645 all uses with show_debug_regs.
2646 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2647 uses with show_debug_regs.
2648
eeef931a
UW
26492014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2650
2651 * findvar.c (address_from_register): Handle targets requiring
2652 a special conversion routine even for plain pointer types.
2653
8efa9855
UW
26542014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2655
2656 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2657 (store_register): Do not call exec_one_dummy_insn.
2658
eb479039
JB
26592014-09-10 Joel Brobecker <brobecker@adacore.com>
2660
2661 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2662 dereference it first. Use value_enclosing_type instead of
2663 value_type.
2664 (ada_array_length): Likewise.
2665
deede10c
JB
26662014-09-10 Joel Brobecker <brobecker@adacore.com>
2667
2668 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2669 Adjust function implementation and documentation accordingly.
2670 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2671 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2672 Update call to ada_value_ptr_subscript.
2673
7828a5f5
JB
26742014-09-10 Joel Brobecker <brobecker@adacore.com>
2675
2676 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2677 instead of VAL's type.
2678
35782f14
JB
26792014-09-10 Joel Brobecker <brobecker@adacore.com>
2680
2681 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2682
d342a0da
DE
26832014-09-09 Doug Evans <xdje42@gmail.com>
2684
2685 PR guile/17367
2686 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2687 last parameter to pkg-config, not first.
2688 * configure.ac: Pass --with-guile provided pkg-config path to
2689 GDB_GUILE_PROGRAM_NAMES.
2690 * configure: Regenerate.
2691
b4a3d263
GKB
26922014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2693
2694 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2695 Bertazi".
2696
6e466374
MR
26972014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2698
2699 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2700 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2701 the list of sections determining GDB_OSABI_IRIX.
2702
a1ada89a
JH
27032014-09-09 James Hogan <james.hogan@imgtec.com>
2704
2705 * MAINTAINERS (Write After Approval): Add "James Hogan".
2706
86db008d
JH
27072014-09-09 James Hogan <james.hogan@imgtec.com>
2708
2709 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2710
72fde3df
JB
27112014-09-09 Joel Brobecker <brobecker@adacore.com>
2712
2713 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2714
92d8d229
DE
27152014-09-08 Doug Evans <xdje42@gmail.com>
2716
2717 PR 17247
2718 * guile.c: #include <signal.h>.
2719 (_initialize_guile): Block SIGCHLD while initializing Guile.
2720
2721 Replaces the following, which is reverted.
2722
2723 2014-07-26 Doug Evans <xdje42@gmail.com>
2724
2725 PR 17185
2726 * configure.ac: Add check for header gc/gc.h.
2727 Add check for function setenv.
2728 * configure: Regenerate.
2729 * config.in: Regenerate.
2730 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2731
d81412aa
DE
27322014-09-08 Doug Evans <xdje42@gmail.com>
2733
2734 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2735 with named constant. Fix style of pointer comparison.
2736 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2737
a9f116cb
GKB
27382014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2739
2740 PR gdb/17035
2741 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2742 decide whether we display the command on "show user".
2743 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2744 printing command name.
2745 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2746 * cli/cli-decode.c (cli_user_command_p): Create helper function
2747 to verify whether cmd_list_element is a user-defined command.
2748
c75bd3a2
JK
27492014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 PR python/17355
2752 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2753 Fix goto out of TRY_CATCH.
2754
faa42425 27552014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2756 Tom Tromey <tromey@redhat.com>
faa42425
DE
2757
2758 PR 15276
2759 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2760 $_any_caller_matches.
2761 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2762 * python/lib/gdb/function/caller_is.py: New file.
2763
0d41ba00
DE
27642014-09-06 Doug Evans <xdje42@gmail.com>
2765
2766 * infcmd.c (program_info): Fix typo.
2767
474ca4f6
SDJ
27682014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2769
2770 PR gdb/17235
2771 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2772 'number'. New variable 'has_digit'. Rewrite code to deal with
2773 subexpressions on SDT probes.
2774
ebf13736
PA
27752014-09-04 Pedro Alves <palves@redhat.com>
2776
2777 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2778 the input is only one character long.
2779
eb0b0463
SDJ
27802014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2781
2782 PR fortran/17237
2783 * f-valprint.c (f_val_print): Specify the correct print option to
2784 use when printing integer values.
2785
5ee44bfa
GB
27862014-09-04 Gary Benson <gbenson@redhat.com>
2787
2788 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2789 Remove code to cope with LWPs wrapped as PIDs.
2790 Add assertions to ensure no wrapped LWPs are passed.
2791
4875ffdb
PA
27922014-09-04 Pedro Alves <palves@redhat.com>
2793
2794 * value.c (value_ranges_copy_adjusted): New function, factored out
2795 from ...
2796 (value_contents_copy_raw): ... here.
2797 (unpack_value_bits_as_long_1): Rename back to ...
2798 (unpack_bits_as_long): ... this. Remove 'original_value' and
2799 'result' parameters. Change return type to LONGEST.
2800 (unpack_value_bits_as_long): Delete.
2801 (unpack_value_field_as_long_1): Delete.
2802 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2803 (unpack_value_bitfield): New function.
2804 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2805 (value_fetch_lazy): Use unpack_value_bitfield.
2806 * value.h (unpack_value_bits_as_long): Delete declaration.
2807
5f3b99cf
SS
28082014-09-03 Sasha Smundak <asmundak@google.com>
2809
2810 * python/py-frame.c (frapy_read_register): New function.
2811
ac740bc7
JH
28122014-09-03 James Hogan <james.hogan@imgtec.com>
2813
2814 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2815 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2816
7d793aa9
SDJ
28172014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2818
2819 PR python/16699
2820 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2821 function.
2822 (add_cmd): Set "completer_handle_brkchars" to NULL.
2823 * cli/cli-decode.h (struct cmd_list_element)
2824 <completer_handle_brkchars>: New field.
2825 * command.h (completer_ftype_void): New typedef.
2826 (set_cmd_completer_handle_brkchars): New prototype.
2827 * completer.c (set_gdb_completion_word_break_characters): New
2828 function.
2829 (complete_line_internal): Call "completer_handle_brkchars"
2830 callback from command.
2831 * completer.h: Include "command.h".
2832 (set_gdb_completion_word_break_characters): New prototype.
2833 * python/py-cmd.c (cmdpy_completer_helper): New function.
2834 (cmdpy_completer_handle_brkchars): New function.
2835 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2836 (cmdpy_init): Set completer_handle_brkchars to
2837 cmdpy_completer_handle_brkchars.
2838
97ea6506
GB
28392014-09-03 Gary Benson <gbenson@redhat.com>
2840
2841 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2842 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2843 Loop conditions changed to equivalent form.
2844 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2845 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2846 ALL_DEBUG_ADDRESS_REGISTERS.
2847
d1437815
JB
28482014-09-03 Joel Brobecker <brobecker@adacore.com>
2849
2850 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2851 description fix.
2852
9b94fcf1
DE
28532014-09-02 Doug Evans <dje@google.com>
2854
2855 * typeprint.c (find_global_typedef): Fix comment.
2856
df7e5265
GB
28572014-09-02 Gary Benson <gbenson@redhat.com>
2858
2859 * i386-nat.h: Renamed as...
2860 * x86-nat.h: New file. All type, function and variable name
2861 prefixes changed from "i386_" to "x86_". All references updated.
2862 * i386-nat.c: Renamed as...
2863 * x86-nat.c: New file. All type, function and variable name
2864 prefixes changed from "i386_" to "x86_". All references updated.
2865 * common/i386-xstate.h: Renamed as...
2866 * common/x86-xstate.h: New file. All type, function and variable
2867 name prefixes changed from "i386_" to "x86_". All references
2868 updated.
2869 * nat/i386-cpuid.h: Renamed as...
2870 * nat/x86-cpuid.h: New file. All type, function and variable name
2871 prefixes changed from "i386_" to "x86_". All references updated.
2872 * nat/i386-gcc-cpuid.h: Renamed as...
2873 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2874 name prefixes changed from "i386_" to "x86_". All references
2875 updated.
2876 * nat/i386-dregs.h: Renamed as...
2877 * nat/x86-dregs.h: New file. All type, function and variable name
2878 prefixes changed from "i386_" to "x86_". All references updated.
2879 * nat/i386-dregs.c: Renamed as...
2880 * nat/x86-dregs.c: New file. All type, function and variable name
2881 prefixes changed from "i386_" to "x86_". All references updated.
2882
1c3569d4
MR
28832014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2884
2885 * varobj.c (_initialize_varobj): Move to the end of file.
2886
ff55e1b5
GB
28872014-08-29 Gary Benson <gbenson@redhat.com>
2888
2889 * common/common-exceptions.h: New file.
2890 * common/common-exceptions.c: Likewise.
2891 * Makefile.in (SFILES): Add common/common-exceptions.c.
2892 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2893 (COMMON_OBS): Add common-exceptions.o.
2894 (common-exceptions.o): New rule.
2895 * exceptions.h (common-exceptions.h): Include.
2896 (gdb_setjmp.h): Do not include.
2897 (return_reason): Moved to common-exceptions.h.
2898 (enum return_reason): Likewise.
2899 (RETURN_MASK): Likewise.
2900 (typedef return_mask): Likewise.
2901 (enum errors): Likewise.
2902 (struct gdb_exception): Likewise.
2903 (exceptions_state_mc_init): Likewise.
2904 (exceptions_state_mc_action_iter): Likewise.
2905 (exceptions_state_mc_action_iter_1): Likewise.
2906 (TRY_CATCH): Likewise.
2907 (throw_exception): Likewise.
2908 (throw_verror): Likewise.
2909 (throw_vquit): Likewise.
2910 (throw_error): Likewise.
2911 (throw_quit): Likewise.
2912 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2913 (enum catcher_action): Likewise.
2914 (struct catcher): Likewise.
2915 (current_catcher): Likewise.
2916 (catcher_list_size): Likewise.
2917 (exceptions_state_mc_init): Likewise.
2918 (catcher_pop): Likewise.
2919 (exceptions_state_mc): Likewise.
2920 (exceptions_state_mc_action_iter): Likewise.
2921 (exceptions_state_mc_action_iter_1): Likewise.
2922 (throw_exception): Likewise.
2923 (exception_messages): Likewise.
2924 (exception_messages_size): Likewise.
2925 (throw_it): Likewise.
2926 (throw_verror): Likewise.
2927 (throw_vquit): Likewise.
2928 (throw_error): Likewise.
2929 (throw_quit): Likewise.
2930 (prepare_to_throw_exception): New function.
2931
e9bcb658
GB
29322014-08-29 Gary Benson <gbenson@redhat.com>
2933
2934 * common/gdb_setjmp.h: New file.
2935 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2936 * configure.ac: Move sigsetjmp check...
2937 * common/common.m4: ...here.
2938 * configure: Regenerate.
2939 * cp-support.c (SIGJMP_BUF): Delete.
2940 (SIGSETJMP): Likewise.
2941 (SIGLONGJMP): Likewise.
2942 * exceptions.h (gdb_setjmp.h): Include.
2943 (setjmp.h): Do not include.
2944 (EXCEPTIONS_SIGJMP_BUF): Delete.
2945 (EXCEPTIONS_SIGSETJMP): Likewise.
2946 (EXCEPTIONS_SIGLONGJMP): Likewise.
2947 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2948 from gdb_setjmp.h.
2949 * exceptions.c: Likewise.
2950
e3180625
GB
29512014-08-29 Gary Benson <gbenson@redhat.com>
2952
2953 * cleanups.h: Moved to...
2954 * common/cleanups.h: New file.
2955 * cleanups.c: Moved to...
2956 * common/cleanups.c: New file. Include common-defs.h and
2957 cleanups.h. Do not include defs.h.
2958 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2959 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2960 (cleanups.o): New rule.
2961
e3d6ba5d
GB
29622014-08-29 Gary Benson <gbenson@redhat.com>
2963
2964 * common/errors.h (internal_warning): New declaration.
2965 (internal_vwarning): Likewise.
2966 * common/errors.c (internal_warning): New function.
2967 * utils.h (internal_warning): Don't declare.
2968 (internal_vwarning): Likewise.
2969 * utils.c (internal_warning): Removed.
2970
075c7033
GB
29712014-08-29 Gary Benson <gbenson@redhat.com>
2972
2973 * main.c (captured_main): Use warning during startup.
2974 Prefix startup warning messages with command name.
2975
91b35fd0
GB
29762014-08-29 Gary Benson <gbenson@redhat.com>
2977
2978 * main.c (captured_main): Handle usage errors with error.
2979
b1ec390e
GB
29802014-08-29 Gary Benson <gbenson@redhat.com>
2981
2982 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2983 exit pair with a call to error. Wrap the message with _().
2984
fd0ef3dd
GB
29852014-08-29 Gary Benson <gbenson@redhat.com>
2986
2987 * main.c (captured_main): Replace a fprintf/exit
2988 pair with a call to error. Wrap the message with _().
2989
e0e6bcab
GB
29902014-08-29 Gary Benson <gbenson@redhat.com>
2991
2992 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2993 pairs with calls to error. Wrap the message with _().
2994
0d2f5c07
GB
29952014-08-29 Gary Benson <gbenson@redhat.com>
2996
2997 * utils.c (vwarning): Protect calls to target_terminal_ours
2998 and wrap_here.
2999
5df43998
GB
30002014-08-29 Gary Benson <gbenson@redhat.com>
3001
3002 * exceptions.c (print_flush): Protect calls to
3003 target_terminal_ours and wrap_here.
3004
2437fd32
GB
30052014-08-29 Gary Benson <gbenson@redhat.com>
3006
3007 * utils.h (filtered_printing_initialized): New declaration.
3008 * utils.c (abort_with_message): New function.
3009 (internal_vproblem): Use abort_with_message for first level
3010 recursive internal problems, and if gdb_stderr is not set up.
3011 Protect calls to target_terminal_ours, begin_line and query.
3012
f1f58506
DE
30132014-08-28 Doug Evans <dje@google.com>
3014
3015 * symtab.c (in_prologue): Move definition to better spot.
3016 (skip_prologue_using_sal): Ditto.
3017
aab2f208
DE
30182014-08-28 Doug Evans <dje@google.com>
3019
3020 * symtab.c (find_function_start_sal): Move definition to better spot.
3021
6b65d1b6
YQ
30222014-08-28 Yao Qi <yao@codesourcery.com>
3023
3024 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3025 found_stack_adjust in forward scan. Remove condition check
3026 on found_stack_adjust which is always true. Indent the code.
3027
a1b34d15
YQ
30282014-08-28 Yao Qi <yao@codesourcery.com>
3029
3030 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3031 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3032 (dwarf_decode_lines): Remove argument
3033 want_line_info. Remove condition check on want_line_info.
3034 Callers update.
3035
d5962de5
DE
30362014-08-27 Doug Evans <dje@google.com>
3037
3038 * dwarf2read.c (dwarf_record_line): Fix typo.
3039
9b139002
SDJ
30402014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3041
3042 * target.h (struct target_ops::to_terminal_save_ours): Remove
3043 declaration.
3044 (target_terminal_save_ours): Remove macro.
3045 * target-delegates.c: Regenerate.
3046 * inf-child.c (inf_child_target): Don't set the nonexistent
3047 field to_terminal_save_ours.
3048 * inferior.h (child_terminal_save_ours): Remove declaration.
3049 * terminal.h (gdb_save_tty_state): New declaration.
3050 * inflow.c (child_terminal_save_ours): Rename to ...
3051 (gdb_save_tty_state): ... this.
3052 * tui/tui.c: Include terminal.h.
3053 (tui_enable): Use gdb_save_tty_state instead of
3054 target_terminal_save_ours.
3055 (tui_disable): Likewise.
3056
9debeba0
DE
30572014-08-25 Doug Evans <dje@google.com>
3058
3059 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3060 Pass NULL instead of 0 for context pointer.
3061
428fc5fc
YQ
30622014-08-25 Yao Qi <yao@codesourcery.com>
3063
3064 * dwarf2read.c: Fix grammatical error.
3065
cdc07690
YQ
30662014-08-24 Yao Qi <yao@codesourcery.com>
3067
3068 * dwarf2read.c (scan_partial_symbols): Update comments.
3069 Rename argument 'need_pc' with 'set_addrmap'.
3070 (add_partial_namespace): Rename argument 'need_pc' with
3071 'set_addrmap'.
3072 (add_partial_module): Likewise.
3073 (add_partial_subprogram): Likewise. Update comments.
3074 (dwarf2_name): Fix typo.
3075
a05a36a5
DE
30762014-08-22 Doug Evans <dje@google.com>
3077
3078 PR 17276
3079 * dwarf2read.c (dwarf_record_line_p): New function.
3080 (dwarf_decode_lines_1): Ignore subsequent line number entries
3081 for the same line if any entry had a non-zero discriminator.
3082
252a6764
DE
30832014-08-22 Doug Evans <dje@google.com>
3084
3085 * buildsym.h (record_line_ftype): New typedef.
3086 (record_line): Use it.
3087 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3088 (dwarf_decode_lines_1): Call them.
3089
510db052
YQ
30902014-08-22 Yao Qi <yao@codesourcery.com>
3091
3092 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3093 (ctf_end): Remove code.
3094
22fd09ae
JK
30952014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3098 (linux_make_corefile_notes): call update_thread_list, protected against
3099 exceptions.
3100
656e8868
PA
31012014-08-21 Pedro Alves <palves@redhat.com>
3102
3103 * infcmd.c (attach_command): Remove comment.
3104
de589d04
WN
31052014-08-21 Bin Cheng <bin.cheng@arm.com>
3106
3107 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3108 unsigned LONGEST to ULONGEST.
3109
2a31c623
PA
31102014-08-20 Pedro Alves <palves@redhat.com>
3111
3112 * Makefile.in (check-read1): New rule.
3113
d36430db
JB
31142014-08-20 Joel Brobecker <brobecker@adacore.com>
3115
3116 * value.c (value_from_contents_and_address): Strip resolved_type's
3117 typedef layers before checking its TYPE_DATA_LOCATION.
3118
000339af
PA
31192014-08-20 Pedro Alves <palves@redhat.com>
3120
3121 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3122
5f52445b
YQ
31232014-08-20 Yao Qi <yao@codesourcery.com>
3124
3125 * amd64-tdep.c (amd64_classify): Add a blank line after the
3126 example. Move "*/" to a new line.
3127 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3128 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3129 * dwarf2read.c (psymtab_include_file_name): Likewise.
3130
9a0dc9e3
PA
31312014-08-19 Andrew Burgess <aburgess@broadcom.com>
3132 Pedro Alves <palves@redhat.com>
3133
3134 PR symtab/14604
3135 PR symtab/14605
3136 * ada-lang.c (coerce_unspec_val_to_type): Use
3137 value_contents_copy_raw.
3138 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3139 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3140 * cp-valprint.c (cp_print_value_fields): Let the common printing
3141 code handle optimized out values.
3142 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3143 * d-valprint.c (dynamic_array_type): Use
3144 value_bits_any_optimized_out.
3145 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3146 check_any_valid fields.
3147 (check_pieced_value_bits): Delete and inline ...
3148 (check_pieced_synthetic_pointer): ... here.
3149 (check_pieced_value_validity): Delete.
3150 (check_pieced_value_invalid): Delete.
3151 (pieced_value_funcs): Remove check_validity and check_any_valid
3152 fields.
3153 (read_pieced_value): Use mark_value_bits_optimized_out.
3154 (write_pieced_value): Switch to use
3155 mark_value_bytes_optimized_out.
3156 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3157 of assuming the whole value is optimized out.
3158 * findvar.c (read_frame_register_value): Remove special handling
3159 of optimized out registers.
3160 (value_from_register): Use mark_value_bytes_optimized_out.
3161 * frame-unwind.c (frame_unwind_got_optimized): Use
3162 mark_value_bytes_optimized_out.
3163 * jv-valprint.c (java_value_print): Adjust.
3164 (java_print_value_fields): Let the common printing code handle
3165 optimized out values.
3166 * mips-tdep.c (mips_print_register): Remove special handling of
3167 optimized out registers.
3168 * opencl-lang.c (lval_func_check_validity): Delete.
3169 (lval_func_check_any_valid): Delete.
3170 (opencl_value_funcs): Remove check_validity and check_any_valid
3171 fields.
3172 * p-valprint.c (pascal_object_print_value_fields): Let the common
3173 printing code handle optimized out values.
3174 * stack.c (read_frame_arg): Remove special handling of optimized
3175 out values. Fetch both VAL and ENTRYVAL before comparing
3176 contents. Adjust to value_available_contents_eq rename.
3177 * valprint.c (valprint_check_validity)
3178 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3179 (val_print_array_elements): Adjust.
3180 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3181 (value_bits_any_optimized_out): New function.
3182 (value_entirely_covered_by_range_vector): New function, factored
3183 out from value_entirely_unavailable.
3184 (value_entirely_unavailable): Reimplement.
3185 (value_entirely_optimized_out): New function.
3186 (insert_into_bit_range_vector): New function, factored out from
3187 mark_value_bits_unavailable.
3188 (mark_value_bits_unavailable): Reimplement.
3189 (struct ranges_and_idx): New struct.
3190 (find_first_range_overlap_and_match): New function, factored out
3191 from value_available_contents_bits_eq.
3192 (value_available_contents_bits_eq): Rename to ...
3193 (value_contents_bits_eq): ... this. Check both unavailable
3194 contents and optimized out contents.
3195 (value_available_contents_eq): Rename to ...
3196 (value_contents_eq): ... this.
3197 (allocate_value_lazy): Remove reference to the old optimized_out
3198 boolean.
3199 (allocate_optimized_out_value): Use
3200 mark_value_bytes_optimized_out.
3201 (require_not_optimized_out): Adjust to check whether the
3202 optimized_out vec is empty.
3203 (ranges_copy_adjusted): New function, factored out from
3204 value_contents_copy_raw.
3205 (value_contents_copy_raw): Also copy the optimized out ranges.
3206 Assert the destination ranges aren't optimized out.
3207 (value_contents_copy): Update comment, remove call to
3208 require_not_optimized_out.
3209 (value_contents_equal): Adjust to check whether the optimized_out
3210 vec is empty.
3211 (set_value_optimized_out, value_optimized_out_const): Delete.
3212 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3213 New functions.
3214 (value_entirely_optimized_out, value_bits_valid): Delete.
3215 (value_copy): Take a VEC copy of the 'optimized_out' field.
3216 (value_primitive_field): Remove special handling of optimized out.
3217 (value_fetch_lazy): Assert that lazy values have no unavailable
3218 regions. Use value_bits_any_optimized_out. Remove some special
3219 handling for optimized out values.
3220 * value.h: Add intro comment about <optimized out> and
3221 <unavailable>.
3222 (struct lval_funcs): Remove check_validity and check_any_valid
3223 fields.
3224 (set_value_optimized_out, value_optimized_out_const): Remove.
3225 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3226 New declarations.
3227 (value_bits_any_optimized_out): New declaration.
3228 (value_bits_valid): Delete declaration.
3229 (value_available_contents_eq): Rename to ...
3230 (value_contents_eq): ... this, and extend comments.
3231
6694c411
JK
32322014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3233
3234 Fix -fsanitize=address on unreadable inferior strings.
3235 * valprint.c (val_print_string): Fix access before BUFFER.
3236
89a1c21a
SM
32372014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3238
3239 * target.c (target_struct_size): Remove.
3240 (target_struct_allocsize): Remove.
3241 (DEFAULT_ALLOCSIZE): Remove.
3242 (target_ops_p): New typedef.
3243 (DEF_VEC_P (target_ops_p)): New vector type.
3244 (target_structs): Change type to VEC (target_ops_p).
3245 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3246 (find_default_run_target): Rewrite for loop following changes to
3247 target_structs.
3248
cb417230
JB
32492014-08-19 Joel Brobecker <brobecker@adacore.com>
3250
3251 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3252 Adjust code accordingly. Adjust function description comment.
3253
817e0957
YQ
32542014-08-19 Yao Qi <yao@codesourcery.com>
3255
3256 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3257 types.
3258
2974be62
AM
32592014-08-19 Alan Modra <amodra@gmail.com>
3260
3261 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3262 * config.in: Regenerate.
3263 * configure: Regenerate.
3264
34abf635
GB
32652014-08-19 Tom Tromey <tromey@redhat.com>
3266 Gary Benson <gbenson@redhat.com>
3267
3268 * common/common-debug.h: New file.
3269 * common/common-debug.c: Likewise.
3270 * debug.c: Likewise.
3271 * Makefile.in (SFILES): Add common/common-debug.c.
3272 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3273 (COMMON_OBS): Add common-debug.o and debug.o.
3274 (common-debug.o): New rule.
3275 * common/common-defs.h: Include common-debug.h.
3276 * common/agent.c (debug_agent_printf): New function.
3277 (DEBUG_AGENT): Redefine.
3278 * nat/i386-dregs.c (debug_printf): Undefine.
3279
f6e94d78
GB
32802014-08-19 Gary Benson <gbenson@redhat.com>
3281
3282 * common/common-defs.h: Include print-utils.h.
3283 * utils.h: Do not include print-utils.h.
3284
9239eeab
GB
32852014-08-19 Tom Tromey <tromey@redhat.com>
3286 Gary Benson <gbenson@redhat.com>
3287
3288 * common/common-types.h: New file.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3290 * common/common-defs.h: Include common-types.h.
3291 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3292 (ULONGEST): Remove.
3293
ef87c8bb
GB
32942014-08-19 Tom Tromey <tromey@redhat.com>
3295 Gary Benson <gbenson@redhat.com>
3296
3297 * common/errors.h: New file.
3298 * common/errors.c: Likewise.
3299 * Makefile.in (SFILES): Add common/errors.c.
3300 (HFILES_NO_SRCDIR): Add common/errors.h.
3301 (COMMON_OBS): Add errors.o.
3302 (errors.o): New rule.
3303 * common/common-defs.h: Include errors.h.
3304 * utils.h (perror_with_name, error, verror, warning, vwarning):
3305 Don't declare.
3306 * common/common-utils.h: (malloc_failure, internal_error):
3307 Likewise.
3308
196a707b
GB
33092014-08-19 Gary Benson <gbenson@redhat.com>
3310
3311 * utils.c (internal_vproblem): Always print the message.
3312
ded4fc8f
DE
33132014-08-18 Doug Evans <dje@google.com>
3314
3315 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3316
950c97d8
JB
33172014-08-18 Joel Brobecker <brobecker@adacore.com>
3318
3319 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3320 Return 0 if TYPE is dynamic.
3321 (print_range): Add handling of dynamic ranges.
3322
3cdcd0ce
JB
33232014-08-18 Keven Boell <keven.boell@intel.com>
3324 Joel Brobecker <brobecker@adacore.com>
3325
3326 * gdbtypes.h (struct main_type): Add field "data_location".
3327 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3328 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3329 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3330 a dynamic data location.
3331 (resolve_dynamic_type): Add DW_AT_data_location handling.
3332 (copy_recursive, copy_type): Copy the data_location information
3333 when present.
3334 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3335 * value.c (value_from_contents_and_address): Add
3336 DW_AT_data_location handling.
3337
08412b07
JB
33382014-08-18 Keven Boell <keven.boell@intel.com>
3339 Joel Brobecker <brobecker@adacore.com>
3340
3341 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3342 field "get_object_address".
3343 * dwarf2expr.c (execute_stack_op): Add handling for
3344 DW_OP_push_object_address.
3345 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3346 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3347 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3348 (dwarf_expr_get_obj_addr): New function.
3349 (dwarf_expr_ctx_funcs): Add get_object_address field.
3350 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3351 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3352 (dwarf2_evaluate_property): Add parameter "address". Use it.
3353 (needs_get_obj_addr): New function.
3354 (needs_frame_ctx_funcs): Add get_object_address field.
3355 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3356 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3357 (resolve_dynamic_array): Likewise.
3358
84754697
JB
33592014-08-18 Joel Brobecker <brobecker@adacore.com>
3360
3361 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3362 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3363 fixed value for records and unions for which some GNAT encodings
3364 are present.
3365
da5c522f
JB
33662014-08-18 Joel Brobecker <brobecker@adacore.com>
3367
3368 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3369 rewrite to avoid "else if" and "else" constructs. Should be
3370 a no-op in practice.
3371
0d72a7c3
JB
33722014-08-18 Joel Brobecker <brobecker@adacore.com>
3373
3374 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3375 of lexical block.
3376
e66d4446
SC
33772014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3378
3379 PR c++/17132
3380 * eval.c: Update all calls to find_overload_match.
3381 * valarith.c: Likewise.
3382 (value_user_defined_cpp_op, value_user_defined_op): New
3383 argument NOSIDE. Update all callers.
3384 * valops.c (find_overload_match): New argument NOSIDE.
3385 * value.h (find_overload_match): Update signature.
3386
940df408
SC
33872014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3388
3389 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3390 'items' methods instead of 'iteritems' method on dictionaries.
3391
699ca60a
DE
33922014-08-15 Doug Evans <dje@google.com>
3393
3394 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3395 closer to use.
3396
37780ee5
DE
33972014-08-15 Doug Evans <dje@google.com>
3398
3399 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3400
0ad93d4f
DE
34012014-08-15 Doug Evans <dje@google.com>
3402
3403 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3404
20d8c372
DE
34052014-08-15 Doug Evans <dje@google.com>
3406
3407 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3408 unused.
3409
cb039ba4
EZ
34102014-08-15 Eli Zaretskii <eliz@gnu.org>
3411
3412 * dcache.h: Include target.h, to avoid compile time warnings.
3413
eb7a547a
JB
34142014-08-15 Joel Brobecker <brobecker@adacore.com>
3415
3416 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3417 frame_info" partial declaration.
3418 * gdbarch.h: Regenerate.
3419
783cecc8
YQ
34202014-08-15 Yao Qi <yao@codesourcery.com>
3421
3422 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3423 Add parameter 'decode_for_pst_p'. Callers update.
3424
65c749e7
YQ
34252014-08-13 Yao Qi <yao@codesourcery.com>
3426
3427 PR build/17104
3428 * configure.ac: Use local variable 'pos'.
3429 * configure: Regenerated.
3430
d769e349
DE
34312014-08-11 Doug Evans <dje@google.com>
3432
3433 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3434 message, it is redundant with "Reading symbols from ..." message.
3435
24f1235e
DE
34362014-08-10 Doug Evans <xdje42@gmail.com>
3437
3438 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3439
dcd2e6ef
YQ
34402014-08-09 Yao Qi <yao@codesourcery.com>
3441
3442 PR remote/9053
3443 * remote.c (remote_xfer_partial): Remove dead code.
3444
070bdf0b
AA
34452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3446
3447 * ia64-linux-tdep.c: Include "regset.h".
3448 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3449 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3450 (ia64_linux_supply_fpregset): New function.
3451 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3452 (ia64_linux_regset_from_core_section): New function.
3453 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3454 method.
3455
08f9f542
AA
34562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3457
3458 * m68klinux-tdep.c: Include "regset.h".
3459 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3460 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3461 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3462 (m68k_linux_regset_from_core_section): New function.
3463 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3464 method.
3465
8f1cee41
AA
34662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3467
3468 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3469 function. Move logic to...
3470 (tilegx_linux_regmap): ... this new register map.
3471 (tilegx_linux_regset): Refer to register map, replace supply
3472 method by regcache_supply_regset, and add collect method.
3473 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3474 TILEGX_FIRST_EASY_REGNUM.
3475
c5741217
AA
34762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3477
3478 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3479 that calls regcache_supply_regset and handles the EPC register
3480 separately. Move main logic to...
3481 (score7_linux_gregmap): ... this new register map.
3482 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3483 (score7_linux_gregset): Refer to register map. Add collect method.
3484 (score7_linux_regset_from_core_section): Replace
3485 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3486 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3487 (struct regset): Delete unused forward declaraction.
3488 (struct pt_regs): Delete structure definition.
3489 (elf_gregset_t): Delete typedef.
3490
81580573
AA
34912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3492
3493 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3494 (nios2_core_regset): Add collect method.
3495
ba199d7d
AA
34962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3497
3498 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3499 platform-independent and don't write to read-only input buffer.
3500 (m32r_linux_collect_gregset): New function.
3501 (m32r_linux_gregset): Add collect method.
3502
0006a9da
AA
35032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3504
3505 * hppa-linux-tdep.c (greg_map): Rename to...
3506 (hppa_linux_gregmap): ... this. Also convert to
3507 regcache_map_entry format.
3508 (hppa_linux_supply_regset): Delete function.
3509 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3510 (hppa_linux_fpregmap): ... this new register map.
3511 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3512 register map, replace supply method by regcache_supply_regset, and
3513 add collect method regcache_collect_regset.
3514
901e1b23
AA
35152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3516
3517 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3518 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3519 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3520 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3521 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3522 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3523 (frv_linux_supply_gregset): Replace main logic by call to
3524 regcache_supply_regset, but keep clearing gr32-gr63.
3525 (frv_linux_supply_fpregset): Delete function.
3526 (frv_linux_gregset): Refer to appropriate register map and add
3527 regcache_collect_regset as the collect method.
3528 (frv_linux_fpregset): Likewise. Also exchange the supply method
3529 by regcache_supply_regset.
3530
1d6e7555
AA
35312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3532
3533 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3534 by call to alpha_supply_int_regs.
3535 (alpha_linux_collect_gregset): New function.
3536 (alpha_linux_supply_fpregset): Replace logic by call to
3537 alpha_supply_fp_regs.
3538 (alpha_linux_collect_fpregset): New function.
3539 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3540
d4d793bf
AA
35412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3542
3543 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3544 by call to regcache_collect_regset.
3545 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3546 instead of aarch64_linux_supply_gregset/_fpregset.
3547 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3548 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3549 header file instead.
3550 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3551 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3552 functions. Move logic to ...
3553 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3554 register maps.
3555 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3556 refer to new register maps, replace *_regset_from_core by
3557 regcache_supply_regset, and also use regcache_collect_regset.
3558 * aarch64-linux-tdep.h: Include "regset.h".
3559 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3560 Delete prototypes.
3561 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3562 macros, moved from C source file.
3563 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3564 variable declarations.
3565
99b7da5d
AA
35662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3567
3568 * s390-linux-nat.c: Include "regset.h".
3569 (regmap_gregset): Delete macro.
3570 (s390_64_regmap_gregset): New register map for
3571 regcache_supply/_collect_regset.
3572 (s390_64_gregset): New regset.
3573 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3574 (regmap_fpregset): Delete macro.
3575 (s390_native_supply, s390_native_collect): Delete functions.
3576 (supply_gregset, fill_gregset): Replace s390-specific regmap
3577 handling by a call to regcache_supply/_collect_regset.
3578 (supply_fpregset, fill_fpregset): Call regcache_supply/
3579 _collect_regset instead of s390_native_supply/_collect.
3580 (fetch_regset, store_regset): Likewise. Also change the last
3581 parameter to a regset instead of a regmap.
3582 (s390_linux_fetch_inferior_registers)
3583 (390_linux_store_inferior_registers): Adjust last parameter in
3584 calls to fetch_regset and store_regset.
3585 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3586 (s390_gregmap): ... this. Also make static const and convert to
3587 regcache_map_entry format.
3588 (s390x_regmap_gregset): Delete.
3589 (s390_regmap_fpregset): Rename to...
3590 (s390_fpregmap): ... this. Make static const and convert to
3591 regcache_map_entry format.
3592 (s390_regmap_upper, s390_regmap_last_break)
3593 (s390x_regmap_last_break, s390_regmap_system_call)
3594 (s390_regmap_tdb): Likewise.
3595 (s390_supply_regset, s390_collect_regset): Remove functions.
3596 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3597 s390_supply_regset.
3598 (s390_gregset, s390_fpregset, s390_upper_regset)
3599 (s390_last_break_regset, s390x_last_break_regset)
3600 (s390_system_call_regset, s390_tdb_regset): Make global and
3601 replace s390_supply/_collect_regset by regcache_supply/
3602 _collect_regset.
3603 (s390x_gregset): Delete.
3604 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3605 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3606 (s390_regmap_fpregset, s390_regmap_last_break)
3607 (s390x_regmap_last_break, s390_regmap_system_call)
3608 (s390_regmap_tdb): Delete global variable declarations.
3609 (s390_gregset, s390_fpregset, s390_last_break_regset)
3610 (s390x_last_break_regset, s390_system_call_regset)
3611 (s390_tdb_regset): New global variable declarations.
3612
0b309272
AA
36132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3614
3615 * regcache.c: Include "regset.h".
3616 (regcache_transfer_regset): New local function.
3617 (regcache_supply_regset, regcache_collect_regset): New functions.
3618 * regcache.h (struct regcache_map_entry): New structure.
3619 (REGCACHE_MAP_SKIP): New enum value.
3620 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3621
7fefa8d7
AA
36222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3623
3624 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3625 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3626 (ppc_linux_collect_gregset ): Likewise.
3627 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3628 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3629 (ppc_collect_vrregset): Likewise.
3630 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3631 Likewise.
3632
96c4f946
YQ
36332014-08-07 Yao Qi <yao@codesourcery.com>
3634
3635 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3636 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3637 * remote.c (remote_read_bytes): Likewise.
3638
fffbe6a8
YQ
36392014-08-07 Yao Qi <yao@codesourcery.com>
3640
3641 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3642
5ee8a82c
YQ
36432014-08-07 Yao Qi <yao@codesourcery.com>
3644
3645 PR remote/17230
3646 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3647 TARGET_XFER_OK instead of 0.
3648
bb974a24
GB
36492014-08-07 Gary Benson <gbenson@redhat.com>
3650
3651 * common/common-defs.h: Include errno.h.
3652 * defs.h: Do not include errno.h.
3653 * ada-typeprint.c: Likewise.
3654 * c-typeprint.c: Likewise.
3655 * core-regset.c: Likewise.
3656 * corefile.c: Likewise.
3657 * corelow.c: Likewise.
3658 * event-loop.c: Likewise.
3659 * f-typeprint.c: Likewise.
3660 * gnu-nat.c: Likewise.
3661 * go32-nat.c: Likewise.
3662 * i386gnu-nat.c: Likewise.
3663 * m2-typeprint.c: Likewise.
3664 * nat/linux-btrace.c: Likewise.
3665 * p-typeprint.c: Likewise.
3666 * procfs.c: Likewise.
3667 * remote-sim.c: Likewise.
3668 * rs6000-nat.c: Likewise.
3669 * target.c: Likewise.
3670 * typeprint.c: Likewise.
3671 * ui-file.c: Likewise.
3672 * valops.c: Likewise.
3673 * valprint.c: Likewise.
3674
6d3d12eb
GB
36752014-08-07 Gary Benson <gbenson@redhat.com>
3676
3677 * common/common-defs.h: Include string.h.
3678 * aarch64-tdep.c: Do not include string.h.
3679 * ada-exp.y: Likewise.
3680 * ada-lang.c: Likewise.
3681 * ada-lex.l: Likewise.
3682 * ada-typeprint.c: Likewise.
3683 * ada-valprint.c: Likewise.
3684 * aix-thread.c: Likewise.
3685 * alpha-linux-tdep.c: Likewise.
3686 * alpha-mdebug-tdep.c: Likewise.
3687 * alpha-nat.c: Likewise.
3688 * alpha-osf1-tdep.c: Likewise.
3689 * alpha-tdep.c: Likewise.
3690 * alphanbsd-tdep.c: Likewise.
3691 * amd64-dicos-tdep.c: Likewise.
3692 * amd64-linux-tdep.c: Likewise.
3693 * amd64-nat.c: Likewise.
3694 * amd64-sol2-tdep.c: Likewise.
3695 * amd64fbsd-tdep.c: Likewise.
3696 * amd64obsd-tdep.c: Likewise.
3697 * arch-utils.c: Likewise.
3698 * arm-linux-nat.c: Likewise.
3699 * arm-linux-tdep.c: Likewise.
3700 * arm-tdep.c: Likewise.
3701 * arm-wince-tdep.c: Likewise.
3702 * armbsd-tdep.c: Likewise.
3703 * armnbsd-nat.c: Likewise.
3704 * armnbsd-tdep.c: Likewise.
3705 * armobsd-tdep.c: Likewise.
3706 * avr-tdep.c: Likewise.
3707 * ax-gdb.c: Likewise.
3708 * ax-general.c: Likewise.
3709 * bcache.c: Likewise.
3710 * bfin-tdep.c: Likewise.
3711 * breakpoint.c: Likewise.
3712 * build-id.c: Likewise.
3713 * buildsym.c: Likewise.
3714 * c-exp.y: Likewise.
3715 * c-lang.c: Likewise.
3716 * c-typeprint.c: Likewise.
3717 * c-valprint.c: Likewise.
3718 * charset.c: Likewise.
3719 * cli-out.c: Likewise.
3720 * cli/cli-cmds.c: Likewise.
3721 * cli/cli-decode.c: Likewise.
3722 * cli/cli-dump.c: Likewise.
3723 * cli/cli-interp.c: Likewise.
3724 * cli/cli-logging.c: Likewise.
3725 * cli/cli-script.c: Likewise.
3726 * cli/cli-setshow.c: Likewise.
3727 * cli/cli-utils.c: Likewise.
3728 * coffread.c: Likewise.
3729 * common/agent.c: Likewise.
3730 * common/buffer.c: Likewise.
3731 * common/buffer.h: Likewise.
3732 * common/common-utils.c: Likewise.
3733 * common/filestuff.c: Likewise.
3734 * common/filestuff.c: Likewise.
3735 * common/format.c: Likewise.
3736 * common/print-utils.c: Likewise.
3737 * common/rsp-low.c: Likewise.
3738 * common/signals.c: Likewise.
3739 * common/vec.h: Likewise.
3740 * common/xml-utils.c: Likewise.
3741 * core-regset.c: Likewise.
3742 * corefile.c: Likewise.
3743 * corelow.c: Likewise.
3744 * cp-abi.c: Likewise.
3745 * cp-name-parser.y: Likewise.
3746 * cp-support.c: Likewise.
3747 * cp-valprint.c: Likewise.
3748 * cris-tdep.c: Likewise.
3749 * d-exp.y: Likewise.
3750 * darwin-nat.c: Likewise.
3751 * dbxread.c: Likewise.
3752 * dcache.c: Likewise.
3753 * demangle.c: Likewise.
3754 * dicos-tdep.c: Likewise.
3755 * disasm.c: Likewise.
3756 * doublest.c: Likewise.
3757 * dsrec.c: Likewise.
3758 * dummy-frame.c: Likewise.
3759 * dwarf2-frame.c: Likewise.
3760 * dwarf2loc.c: Likewise.
3761 * dwarf2read.c: Likewise.
3762 * elfread.c: Likewise.
3763 * environ.c: Likewise.
3764 * eval.c: Likewise.
3765 * event-loop.c: Likewise.
3766 * exceptions.c: Likewise.
3767 * exec.c: Likewise.
3768 * expprint.c: Likewise.
3769 * f-exp.y: Likewise.
3770 * f-lang.c: Likewise.
3771 * f-typeprint.c: Likewise.
3772 * f-valprint.c: Likewise.
3773 * fbsd-nat.c: Likewise.
3774 * findcmd.c: Likewise.
3775 * findvar.c: Likewise.
3776 * fork-child.c: Likewise.
3777 * frame.c: Likewise.
3778 * frv-linux-tdep.c: Likewise.
3779 * frv-tdep.c: Likewise.
3780 * gdb.c: Likewise.
3781 * gdb_bfd.c: Likewise.
3782 * gdbarch.c: Likewise.
3783 * gdbarch.sh: Likewise.
3784 * gdbtypes.c: Likewise.
3785 * gnu-nat.c: Likewise.
3786 * gnu-v2-abi.c: Likewise.
3787 * gnu-v3-abi.c: Likewise.
3788 * go-exp.y: Likewise.
3789 * go-lang.c: Likewise.
3790 * go32-nat.c: Likewise.
3791 * guile/guile.c: Likewise.
3792 * guile/scm-auto-load.c: Likewise.
3793 * hppa-hpux-tdep.c: Likewise.
3794 * hppa-linux-nat.c: Likewise.
3795 * hppanbsd-tdep.c: Likewise.
3796 * hppaobsd-tdep.c: Likewise.
3797 * i386-cygwin-tdep.c: Likewise.
3798 * i386-dicos-tdep.c: Likewise.
3799 * i386-linux-tdep.c: Likewise.
3800 * i386-nto-tdep.c: Likewise.
3801 * i386-sol2-tdep.c: Likewise.
3802 * i386-tdep.c: Likewise.
3803 * i386bsd-tdep.c: Likewise.
3804 * i386gnu-nat.c: Likewise.
3805 * i386nbsd-tdep.c: Likewise.
3806 * i386obsd-tdep.c: Likewise.
3807 * i387-tdep.c: Likewise.
3808 * ia64-libunwind-tdep.c: Likewise.
3809 * ia64-linux-nat.c: Likewise.
3810 * inf-child.c: Likewise.
3811 * inf-ptrace.c: Likewise.
3812 * inf-ttrace.c: Likewise.
3813 * infcall.c: Likewise.
3814 * infcmd.c: Likewise.
3815 * inflow.c: Likewise.
3816 * infrun.c: Likewise.
3817 * interps.c: Likewise.
3818 * iq2000-tdep.c: Likewise.
3819 * irix5-nat.c: Likewise.
3820 * jv-exp.y: Likewise.
3821 * jv-lang.c: Likewise.
3822 * jv-typeprint.c: Likewise.
3823 * jv-valprint.c: Likewise.
3824 * language.c: Likewise.
3825 * linux-fork.c: Likewise.
3826 * linux-nat.c: Likewise.
3827 * lm32-tdep.c: Likewise.
3828 * m2-exp.y: Likewise.
3829 * m2-typeprint.c: Likewise.
3830 * m32c-tdep.c: Likewise.
3831 * m32r-linux-nat.c: Likewise.
3832 * m32r-linux-tdep.c: Likewise.
3833 * m32r-rom.c: Likewise.
3834 * m32r-tdep.c: Likewise.
3835 * m68hc11-tdep.c: Likewise.
3836 * m68k-tdep.c: Likewise.
3837 * m68kbsd-tdep.c: Likewise.
3838 * m68klinux-nat.c: Likewise.
3839 * m68klinux-tdep.c: Likewise.
3840 * m88k-tdep.c: Likewise.
3841 * machoread.c: Likewise.
3842 * macrocmd.c: Likewise.
3843 * main.c: Likewise.
3844 * mdebugread.c: Likewise.
3845 * mem-break.c: Likewise.
3846 * memattr.c: Likewise.
3847 * memory-map.c: Likewise.
3848 * mep-tdep.c: Likewise.
3849 * mi/mi-cmd-break.c: Likewise.
3850 * mi/mi-cmd-disas.c: Likewise.
3851 * mi/mi-cmd-env.c: Likewise.
3852 * mi/mi-cmd-stack.c: Likewise.
3853 * mi/mi-cmd-var.c: Likewise.
3854 * mi/mi-cmds.c: Likewise.
3855 * mi/mi-console.c: Likewise.
3856 * mi/mi-getopt.c: Likewise.
3857 * mi/mi-interp.c: Likewise.
3858 * mi/mi-main.c: Likewise.
3859 * mi/mi-parse.c: Likewise.
3860 * microblaze-rom.c: Likewise.
3861 * microblaze-tdep.c: Likewise.
3862 * mingw-hdep.c: Likewise.
3863 * minidebug.c: Likewise.
3864 * minsyms.c: Likewise.
3865 * mips-irix-tdep.c: Likewise.
3866 * mips-linux-tdep.c: Likewise.
3867 * mips-tdep.c: Likewise.
3868 * mips64obsd-tdep.c: Likewise.
3869 * mipsnbsd-tdep.c: Likewise.
3870 * mipsread.c: Likewise.
3871 * mn10300-linux-tdep.c: Likewise.
3872 * mn10300-tdep.c: Likewise.
3873 * monitor.c: Likewise.
3874 * moxie-tdep.c: Likewise.
3875 * mt-tdep.c: Likewise.
3876 * nat/linux-btrace.c: Likewise.
3877 * nat/linux-osdata.c: Likewise.
3878 * nat/linux-procfs.c: Likewise.
3879 * nat/linux-ptrace.c: Likewise.
3880 * nat/linux-waitpid.c: Likewise.
3881 * nbsd-tdep.c: Likewise.
3882 * nios2-linux-tdep.c: Likewise.
3883 * nto-procfs.c: Likewise.
3884 * nto-tdep.c: Likewise.
3885 * objc-lang.c: Likewise.
3886 * objfiles.c: Likewise.
3887 * opencl-lang.c: Likewise.
3888 * osabi.c: Likewise.
3889 * osdata.c: Likewise.
3890 * p-exp.y: Likewise.
3891 * p-lang.c: Likewise.
3892 * p-typeprint.c: Likewise.
3893 * parse.c: Likewise.
3894 * posix-hdep.c: Likewise.
3895 * ppc-linux-nat.c: Likewise.
3896 * ppc-sysv-tdep.c: Likewise.
3897 * ppcfbsd-tdep.c: Likewise.
3898 * ppcnbsd-tdep.c: Likewise.
3899 * ppcobsd-tdep.c: Likewise.
3900 * printcmd.c: Likewise.
3901 * procfs.c: Likewise.
3902 * prologue-value.c: Likewise.
3903 * python/py-auto-load.c: Likewise.
3904 * python/py-gdb-readline.c: Likewise.
3905 * ravenscar-thread.c: Likewise.
3906 * regcache.c: Likewise.
3907 * registry.c: Likewise.
3908 * remote-fileio.c: Likewise.
3909 * remote-m32r-sdi.c: Likewise.
3910 * remote-mips.c: Likewise.
3911 * remote-notif.c: Likewise.
3912 * remote-sim.c: Likewise.
3913 * remote.c: Likewise.
3914 * reverse.c: Likewise.
3915 * rs6000-aix-tdep.c: Likewise.
3916 * ser-base.c: Likewise.
3917 * ser-go32.c: Likewise.
3918 * ser-mingw.c: Likewise.
3919 * ser-pipe.c: Likewise.
3920 * ser-tcp.c: Likewise.
3921 * ser-unix.c: Likewise.
3922 * serial.c: Likewise.
3923 * sh-tdep.c: Likewise.
3924 * sh64-tdep.c: Likewise.
3925 * shnbsd-tdep.c: Likewise.
3926 * skip.c: Likewise.
3927 * sol-thread.c: Likewise.
3928 * solib-dsbt.c: Likewise.
3929 * solib-frv.c: Likewise.
3930 * solib-osf.c: Likewise.
3931 * solib-som.c: Likewise.
3932 * solib-spu.c: Likewise.
3933 * solib-target.c: Likewise.
3934 * solib.c: Likewise.
3935 * somread.c: Likewise.
3936 * source.c: Likewise.
3937 * sparc-nat.c: Likewise.
3938 * sparc-sol2-tdep.c: Likewise.
3939 * sparc-tdep.c: Likewise.
3940 * sparc64-tdep.c: Likewise.
3941 * sparc64fbsd-tdep.c: Likewise.
3942 * sparc64nbsd-tdep.c: Likewise.
3943 * sparcnbsd-tdep.c: Likewise.
3944 * spu-linux-nat.c: Likewise.
3945 * spu-multiarch.c: Likewise.
3946 * spu-tdep.c: Likewise.
3947 * stabsread.c: Likewise.
3948 * stack.c: Likewise.
3949 * std-regs.c: Likewise.
3950 * symfile.c: Likewise.
3951 * symmisc.c: Likewise.
3952 * symtab.c: Likewise.
3953 * target.c: Likewise.
3954 * thread.c: Likewise.
3955 * tilegx-linux-nat.c: Likewise.
3956 * tilegx-tdep.c: Likewise.
3957 * top.c: Likewise.
3958 * tracepoint.c: Likewise.
3959 * tui/tui-command.c: Likewise.
3960 * tui/tui-data.c: Likewise.
3961 * tui/tui-disasm.c: Likewise.
3962 * tui/tui-file.c: Likewise.
3963 * tui/tui-layout.c: Likewise.
3964 * tui/tui-out.c: Likewise.
3965 * tui/tui-regs.c: Likewise.
3966 * tui/tui-source.c: Likewise.
3967 * tui/tui-stack.c: Likewise.
3968 * tui/tui-win.c: Likewise.
3969 * tui/tui-windata.c: Likewise.
3970 * tui/tui-winsource.c: Likewise.
3971 * typeprint.c: Likewise.
3972 * ui-file.c: Likewise.
3973 * ui-out.c: Likewise.
3974 * user-regs.c: Likewise.
3975 * utils.c: Likewise.
3976 * v850-tdep.c: Likewise.
3977 * valarith.c: Likewise.
3978 * valops.c: Likewise.
3979 * valprint.c: Likewise.
3980 * value.c: Likewise.
3981 * varobj.c: Likewise.
3982 * vax-tdep.c: Likewise.
3983 * vaxnbsd-tdep.c: Likewise.
3984 * vaxobsd-tdep.c: Likewise.
3985 * windows-nat.c: Likewise.
3986 * xcoffread.c: Likewise.
3987 * xml-support.c: Likewise.
3988 * xstormy16-tdep.c: Likewise.
3989 * xtensa-linux-nat.c: Likewise.
3990
dccbb609
GB
39912014-08-07 Gary Benson <gbenson@redhat.com>
3992
3993 * common/common-defs.h: Include gdb_assert.h.
3994 * aarch64-tdep.c: Do not include gdb_assert.h.
3995 * addrmap.c: Likewise.
3996 * aix-thread.c: Likewise.
3997 * alpha-linux-tdep.c: Likewise.
3998 * alpha-mdebug-tdep.c: Likewise.
3999 * alphanbsd-tdep.c: Likewise.
4000 * amd64-nat.c: Likewise.
4001 * amd64-tdep.c: Likewise.
4002 * amd64bsd-nat.c: Likewise.
4003 * amd64fbsd-nat.c: Likewise.
4004 * amd64fbsd-tdep.c: Likewise.
4005 * amd64nbsd-nat.c: Likewise.
4006 * amd64nbsd-tdep.c: Likewise.
4007 * amd64obsd-nat.c: Likewise.
4008 * amd64obsd-tdep.c: Likewise.
4009 * arch-utils.c: Likewise.
4010 * arm-tdep.c: Likewise.
4011 * armbsd-tdep.c: Likewise.
4012 * auxv.c: Likewise.
4013 * bcache.c: Likewise.
4014 * bfin-tdep.c: Likewise.
4015 * blockframe.c: Likewise.
4016 * breakpoint.c: Likewise.
4017 * bsd-kvm.c: Likewise.
4018 * bsd-uthread.c: Likewise.
4019 * buildsym.c: Likewise.
4020 * c-exp.y: Likewise.
4021 * c-lang.c: Likewise.
4022 * charset.c: Likewise.
4023 * cleanups.c: Likewise.
4024 * cli-out.c: Likewise.
4025 * cli/cli-decode.c: Likewise.
4026 * cli/cli-dump.c: Likewise.
4027 * cli/cli-logging.c: Likewise.
4028 * cli/cli-script.c: Likewise.
4029 * cli/cli-utils.c: Likewise.
4030 * coffread.c: Likewise.
4031 * common/common-utils.c: Likewise.
4032 * common/queue.h: Likewise.
4033 * common/signals.c: Likewise.
4034 * common/vec.h: Likewise.
4035 * complaints.c: Likewise.
4036 * completer.c: Likewise.
4037 * corelow.c: Likewise.
4038 * cp-abi.c: Likewise.
4039 * cp-name-parser.y: Likewise.
4040 * cp-namespace.c: Likewise.
4041 * cp-support.c: Likewise.
4042 * cris-tdep.c: Likewise.
4043 * dbxread.c: Likewise.
4044 * dictionary.c: Likewise.
4045 * doublest.c: Likewise.
4046 * dsrec.c: Likewise.
4047 * dummy-frame.c: Likewise.
4048 * dwarf2-frame-tailcall.c: Likewise.
4049 * dwarf2-frame.c: Likewise.
4050 * dwarf2expr.c: Likewise.
4051 * dwarf2loc.c: Likewise.
4052 * dwarf2read.c: Likewise.
4053 * eval.c: Likewise.
4054 * event-loop.c: Likewise.
4055 * exceptions.c: Likewise.
4056 * expprint.c: Likewise.
4057 * f-valprint.c: Likewise.
4058 * fbsd-nat.c: Likewise.
4059 * findvar.c: Likewise.
4060 * frame-unwind.c: Likewise.
4061 * frame.c: Likewise.
4062 * frv-tdep.c: Likewise.
4063 * gcore.c: Likewise.
4064 * gdb-dlfcn.c: Likewise.
4065 * gdb_bfd.c: Likewise.
4066 * gdbarch.c: Likewise.
4067 * gdbarch.sh: Likewise.
4068 * gdbtypes.c: Likewise.
4069 * gnu-nat.c: Likewise.
4070 * gnu-v3-abi.c: Likewise.
4071 * go-lang.c: Likewise.
4072 * guile/scm-exception.c: Likewise.
4073 * guile/scm-gsmob.c: Likewise.
4074 * guile/scm-lazy-string.c: Likewise.
4075 * guile/scm-math.c: Likewise.
4076 * guile/scm-pretty-print.c: Likewise.
4077 * guile/scm-safe-call.c: Likewise.
4078 * guile/scm-utils.c: Likewise.
4079 * guile/scm-value.c: Likewise.
4080 * h8300-tdep.c: Likewise.
4081 * hppa-hpux-nat.c: Likewise.
4082 * hppa-tdep.c: Likewise.
4083 * hppanbsd-tdep.c: Likewise.
4084 * hppaobsd-tdep.c: Likewise.
4085 * i386-darwin-nat.c: Likewise.
4086 * i386-darwin-tdep.c: Likewise.
4087 * i386-nto-tdep.c: Likewise.
4088 * i386-tdep.c: Likewise.
4089 * i386bsd-nat.c: Likewise.
4090 * i386fbsd-tdep.c: Likewise.
4091 * i386gnu-nat.c: Likewise.
4092 * i386nbsd-tdep.c: Likewise.
4093 * i386obsd-tdep.c: Likewise.
4094 * i387-tdep.c: Likewise.
4095 * ia64-libunwind-tdep.c: Likewise.
4096 * ia64-tdep.c: Likewise.
4097 * inf-ptrace.c: Likewise.
4098 * inf-ttrace.c: Likewise.
4099 * infcall.c: Likewise.
4100 * infcmd.c: Likewise.
4101 * infrun.c: Likewise.
4102 * inline-frame.c: Likewise.
4103 * interps.c: Likewise.
4104 * jv-lang.c: Likewise.
4105 * jv-typeprint.c: Likewise.
4106 * linux-fork.c: Likewise.
4107 * linux-nat.c: Likewise.
4108 * linux-thread-db.c: Likewise.
4109 * m32c-tdep.c: Likewise.
4110 * m32r-linux-nat.c: Likewise.
4111 * m32r-tdep.c: Likewise.
4112 * m68k-tdep.c: Likewise.
4113 * m68kbsd-nat.c: Likewise.
4114 * m68kbsd-tdep.c: Likewise.
4115 * m88k-tdep.c: Likewise.
4116 * machoread.c: Likewise.
4117 * macroexp.c: Likewise.
4118 * macrotab.c: Likewise.
4119 * maint.c: Likewise.
4120 * mdebugread.c: Likewise.
4121 * memory-map.c: Likewise.
4122 * mep-tdep.c: Likewise.
4123 * mi/mi-common.c: Likewise.
4124 * microblaze-tdep.c: Likewise.
4125 * mingw-hdep.c: Likewise.
4126 * mips-linux-nat.c: Likewise.
4127 * mips-linux-tdep.c: Likewise.
4128 * mips-tdep.c: Likewise.
4129 * mips64obsd-tdep.c: Likewise.
4130 * mipsnbsd-tdep.c: Likewise.
4131 * mn10300-linux-tdep.c: Likewise.
4132 * mn10300-tdep.c: Likewise.
4133 * moxie-tdep.c: Likewise.
4134 * mt-tdep.c: Likewise.
4135 * nat/linux-btrace.c: Likewise.
4136 * nat/linux-osdata.c: Likewise.
4137 * nat/linux-ptrace.c: Likewise.
4138 * nat/mips-linux-watch.c: Likewise.
4139 * nios2-linux-tdep.c: Likewise.
4140 * nios2-tdep.c: Likewise.
4141 * objc-lang.c: Likewise.
4142 * objfiles.c: Likewise.
4143 * obsd-nat.c: Likewise.
4144 * opencl-lang.c: Likewise.
4145 * osabi.c: Likewise.
4146 * parse.c: Likewise.
4147 * ppc-linux-nat.c: Likewise.
4148 * ppc-sysv-tdep.c: Likewise.
4149 * ppcfbsd-nat.c: Likewise.
4150 * ppcfbsd-tdep.c: Likewise.
4151 * ppcnbsd-nat.c: Likewise.
4152 * ppcnbsd-tdep.c: Likewise.
4153 * ppcobsd-nat.c: Likewise.
4154 * ppcobsd-tdep.c: Likewise.
4155 * printcmd.c: Likewise.
4156 * procfs.c: Likewise.
4157 * prologue-value.c: Likewise.
4158 * psymtab.c: Likewise.
4159 * python/py-lazy-string.c: Likewise.
4160 * python/py-value.c: Likewise.
4161 * regcache.c: Likewise.
4162 * reggroups.c: Likewise.
4163 * registry.c: Likewise.
4164 * remote-sim.c: Likewise.
4165 * remote.c: Likewise.
4166 * rs6000-aix-tdep.c: Likewise.
4167 * rs6000-tdep.c: Likewise.
4168 * s390-linux-tdep.c: Likewise.
4169 * score-tdep.c: Likewise.
4170 * ser-base.c: Likewise.
4171 * ser-mingw.c: Likewise.
4172 * sh-tdep.c: Likewise.
4173 * sh64-tdep.c: Likewise.
4174 * solib-darwin.c: Likewise.
4175 * solib-spu.c: Likewise.
4176 * solib-svr4.c: Likewise.
4177 * source.c: Likewise.
4178 * sparc-nat.c: Likewise.
4179 * sparc-sol2-tdep.c: Likewise.
4180 * sparc-tdep.c: Likewise.
4181 * sparc64-sol2-tdep.c: Likewise.
4182 * sparc64-tdep.c: Likewise.
4183 * sparc64fbsd-tdep.c: Likewise.
4184 * sparc64nbsd-tdep.c: Likewise.
4185 * sparc64obsd-tdep.c: Likewise.
4186 * sparcnbsd-tdep.c: Likewise.
4187 * sparcobsd-tdep.c: Likewise.
4188 * spu-multiarch.c: Likewise.
4189 * spu-tdep.c: Likewise.
4190 * stabsread.c: Likewise.
4191 * stack.c: Likewise.
4192 * symfile.c: Likewise.
4193 * symtab.c: Likewise.
4194 * target-descriptions.c: Likewise.
4195 * target-memory.c: Likewise.
4196 * target.c: Likewise.
4197 * tic6x-linux-tdep.c: Likewise.
4198 * tic6x-tdep.c: Likewise.
4199 * tilegx-linux-nat.c: Likewise.
4200 * tilegx-tdep.c: Likewise.
4201 * top.c: Likewise.
4202 * tramp-frame.c: Likewise.
4203 * tui/tui-out.c: Likewise.
4204 * tui/tui-winsource.c: Likewise.
4205 * ui-out.c: Likewise.
4206 * user-regs.c: Likewise.
4207 * utils.c: Likewise.
4208 * v850-tdep.c: Likewise.
4209 * valops.c: Likewise.
4210 * value.c: Likewise.
4211 * varobj.c: Likewise.
4212 * vax-nat.c: Likewise.
4213 * xml-syscall.c: Likewise.
4214 * xml-tdesc.c: Likewise.
4215 * xstormy16-tdep.c: Likewise.
4216 * xtensa-linux-nat.c: Likewise.
4217 * xtensa-tdep.c: Likewise.
4218
e76df0d0
GB
42192014-08-07 Gary Benson <gbenson@redhat.com>
4220
4221 * common/common-defs.h: Include common-utils.h.
4222 * defs.h: Do not include common-utils.h.
4223 * common/gdb_assert.h: Likewise.
4224 * darwin-nat.h: Likewise.
4225 * nat/linux-btrace.c: Likewise.
4226 * target/waitstatus.h: Likewise.
4227
4cb9c816
GB
42282014-08-07 Gary Benson <gbenson@redhat.com>
4229
4230 * common/common-defs.h: Include ptid.h.
4231 * defs.h: Do not include ptid.h.
4232 * inferior.h: Likewise.
4233 * infrun.h: Likewise.
4234 * nat/linux-btrace.h: Likewise.
4235 * nat/linux-osdata.h: Likewise.
4236 * target/waitstatus.h: Likewise.
4237
3995eeee
GB
42382014-08-07 Gary Benson <gbenson@redhat.com>
4239
4240 * common/common-defs.h: Include gdb_locale.h.
4241 * defs.h: Do not include gdb_locale.h.
4242
cb9f1a9b
GB
42432014-08-07 Gary Benson <gbenson@redhat.com>
4244
4245 * common/common-defs.h: Include gdb/signals.h.
4246 * defs.h: Do not include gdb/signals.h.
4247
a5fceff8
GB
42482014-08-07 Gary Benson <gbenson@redhat.com>
4249
4250 * common/common-defs.h: Include pathmax.h.
4251 * defs.h: Do not include pathmax.h.
4252
b9391142
GB
42532014-08-07 Gary Benson <gbenson@redhat.com>
4254
4255 * common/common-defs.h: Include libiberty.h.
4256 * defs.h: Do not include libiberty.h.
4257 * common/queue.h: Likewise.
4258 * cp-name-parser.y: Likewise.
4259 * mi/mi-cmd-catch.c: Likewise.
4260 * python/python.c: Likewise.
4261
0e443c87
GB
42622014-08-07 Gary Benson <gbenson@redhat.com>
4263
4264 * common/common-defs.h: Include ansidecl.h.
4265 * defs.h: Do not include ansidecl.h.
4266 * common/buffer.h: Likewise.
4267 * common/common-utils.h: Likewise.
4268
8ebb3f56
GB
42692014-08-07 Gary Benson <gbenson@redhat.com>
4270
4271 * common/common-defs.h: Include stddef.h.
4272 * defs.h: Do not include stddef.h.
4273 * common/common-utils.h: Likewise.
4274 * amd64fbsd-nat.c: Likewise.
4275 * bcache.c: Likewise.
4276 * charset.c: Likewise.
4277 * common/buffer.h: Likewise.
4278 * common/vec.h: Likewise.
4279 * i386bsd-nat.c: Likewise.
4280 * nat/linux-btrace.h: Likewise.
4281 * ppcfbsd-nat.c: Likewise.
4282 * ppcnbsd-tdep.h: Likewise.
4283 * ppcobsd-nat.c: Likewise.
4284 * ppcobsd-tdep.h: Likewise.
4285 * python/py-gdb-readline.c: Likewise.
4286
8980bdf6
GB
42872014-08-07 Gary Benson <gbenson@redhat.com>
4288
4289 * common/common-defs.h: Include stdarg.h.
4290 * defs.h: Do not include stdarg.h.
4291 * ada-lang.c: Likewise.
4292 * common/common-utils.h: Likewise.
4293 * guile/scm-string.c: Likewise.
4294 * guile/scm-utils.c: Likewise.
4295 * m32c-tdep.c: Likewise.
4296
d7096f71
GB
42972014-08-07 Gary Benson <gbenson@redhat.com>
4298
4299 * common/common-defs.h: Include stdlib.h.
4300 * defs.h: Do not include stdlib.h.
4301 * addrmap.c: Likewise.
4302 * bcache.c: Likewise.
4303 * common/buffer.c: Likewise.
4304 * common/common-utils.c: Likewise.
4305 * cp-name-parser.y: Likewise.
4306 * go32-nat.c: Likewise.
4307 * mn10300-linux-tdep.c: Likewise.
4308 * nat/linux-osdata.c: Likewise.
4309 * tui/tui.c: Likewise.
4310 * windows-nat.c: Likewise.
4311
d02f550d
GB
43122014-08-07 Gary Benson <gbenson@redhat.com>
4313
4314 * common/common-defs.h: Include stdio.h.
4315 * defs.h: Do not include stdio.h.
4316 * ada-lang.c: Likewise.
4317 * common/buffer.c: Likewise.
4318 * common/common-utils.c: Likewise.
4319 * cp-name-parser.y: Likewise.
4320 * gnu-nat.c: Likewise.
4321 * go32-nat.c: Likewise.
4322 * i386gnu-nat.c: Likewise.
4323 * proc-api.c: Likewise.
4324 * proc-events.c: Likewise.
4325 * proc-flags.c: Likewise.
4326 * proc-why.c: Likewise.
4327 * python/python-internal.h: Likewise.
4328 * target-memory.c: Likewise.
4329 * tui/tui-io.c: Likewise.
4330 * tui/tui.c: Likewise.
4331
b6d7a4bf
SM
43322014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4333
4334 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4335 (scan_dyntag_auxv): Same.
4336
af19829b
YQ
43372014-08-06 Yao Qi <yao@codesourcery.com>
4338
4339 * amd64-linux-nat.c: Remove duplicated include
4340 "x86-linux-nat.h".
4341 * i386-linux-nat.c: Likewise.
4342
8e07a239
YQ
43432014-08-06 Yao Qi <yao@codesourcery.com>
4344
4345 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4346 operand" with "Special opcode" in comments.
4347
7bfe8241
GB
43482014-08-05 Gary Benson <gbenson@redhat.com>
4349
4350 * interps.c (initialize_interps): Remove prototype.
4351 (interpreter_initialized): Remove static global.
4352 (interp_add): Do not call initialize_interps.
4353 (initialize_interps): Remove function.
4354
d6c95504
GB
43552014-08-05 Gary Benson <gbenson@redhat.com>
4356
4357 * utils.c (vwarning): Remove spurious va_end.
4358
241fd515
AM
43592014-08-05 Alan Modra <amodra@gmail.com>
4360
4361 * charset.c (convert_between_encodings): Cast result of obstack_base.
4362 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4363 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4364 (read_unwind_info): Use size_t for some locals.
4365 * jit.c (finalize_symtab): Likewise.
4366 * utils.c (hashtab_obstack_allocate): Likewise.
4367 * symmisc.c (print_objfile_statistics): Update format strings.
4368
dc304a94
JK
43692014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4370
4371 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4372 (Changes in GDB 7.8): ... here.
4373
3cecbbbe
TT
43742014-08-04 Tom Tromey <tromey@redhat.com>
4375
4376 * target.c (set_targetdebug): New function.
4377 (initialize_targets): Pass set_targetdebug when creating "set
4378 debug target".
4379
6908c509
JB
43802014-08-01 Joel Brobecker <brobecker@adacore.com>
4381
4382 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4383 if detecting a variable-sized field that is not the last field.
4384 Fix struct type length computation.
4385
53e8f97d
JB
43862014-08-01 Joel Brobecker <brobecker@adacore.com>
4387
4388 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4389 Add debug trace.
4390
e068c55d
JB
43912014-08-01 Joel Brobecker <brobecker@adacore.com>
4392
4393 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4394 Remove "+ 8" offset in computation of CHAIN_VMA.
4395
4d4ca2a1
DE
43962014-07-31 Doug Evans <dje@google.com>
4397
4398 * inflow.c (child_terminal_inferior): Add comment.
4399 (child_terminal_ours_for_output): Add comment.
4400 (child_terminal_ours): Add comment.
4401 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4402 (linux_nat_terminal_ours): Add comment.
4403
462f517e
GB
44042014-07-31 Gary Benson <gbenson@redhat.com>
4405
4406 * common/btrace-common.h: Do not include defs.h or server.h.
4407 * nat/mips-linux-watch.h: Likewise.
4408 * gdb-dlfcn.h: Do not include defs.h.
4409 * tracefile.h: Likewise.
4410
74228e77
RM
44112014-07-30 Roland McGrath <mcgrathr@google.com>
4412
4413 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4414
014f9477
TT
44152014-07-30 Tom Tromey <tromey@redhat.com>
4416
4417 * bsd-kvm.c (bsd_kvm_open): Constify.
4418 * corelow.c (core_open): Constify.
4419 * ctf.c (ctf_open): Constify.
4420 * dbug-rom.c (dbug_open): Constify.
4421 * exec.c (exec_open): Constify.
4422 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4423 * microblaze-rom.c (picobug_open): Constify.
4424 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4425 Constify.
4426 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4427 * record-btrace.c (record_btrace_open): Constify.
4428 * record-full.c (record_full_core_open_1, record_full_open_1)
4429 (record_full_open): Constify.
4430 * remote-m32r-sdi.c (m32r_open): Constify.
4431 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4432 (rockhopper_open, lsi_open): Constify.
4433 * remote-sim.c (gdbsim_open): Constify.
4434 * remote.c (remote_open, extended_remote_open, remote_open_1):
4435 Constify.
4436 * target.h (struct target_ops) <to_open>: Make "arg" const.
4437 * tracefile-tfile.c (tfile_open): Constify.
4438
e799154c
TT
44392014-07-30 Tom Tromey <tromey@redhat.com>
4440
4441 * breakpoint.c (map_breakpoint_numbers): Update.
4442 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4443 (get_number_const): New function.
4444 (get_number): Rewrite using get_number_const.
4445 (init_number_or_range): Make "string" const.
4446 (number_is_in_list): Make "list" const.
4447 * cli/cli-utils.h (get_number_const): Declare.
4448 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4449 (init_number_or_range, number_is_in_list): Update.
4450 * printcmd.c (map_display_numbers): Update.
4451 * value.c (value_from_history_ref): Constify.
4452 * value.h (value_from_history_ref): Update.
4453
5f08566b
TT
44542014-07-30 Tom Tromey <tromey@redhat.com>
4455
4456 * corefile.c (hook_type, call_extra_exec_file_hooks)
4457 (specify_exec_file_hook): Constify.
4458 * exec.c (exec_file_attach): Make "filename" const.
4459 * gdbcore.h (deprecated_exec_file_display_hook)
4460 (specify_exec_file_hook, exec_file_attach): Constify.
4461 * main.c (captured_main): Use catch_command_errors_const.
4462
8981c758
TT
44632014-07-30 Tom Tromey <tromey@redhat.com>
4464
4465 * target.c (open_target): New function.
4466 (add_target_with_completer, add_deprecated_target_alias): Use
4467 set_cmd_sfunc, set_cmd_context.
4468 (debug_to_open): Remove.
4469 (setup_target_debug): Update.
4470
a1c7835a
YQ
44712014-07-30 Yao Qi <yao@codesourcery.com>
4472
4473 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4474 comments.
4475 * parse.c (exp_iterate): Update comments.
4476
976411d6
GB
44772014-07-30 Gary Benson <gbenson@redhat.com>
4478
4479 * common/common-defs.h: New file.
4480 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4481 * defs.h: Include common-defs.h.
4482 Do not include config.h or build-gnulib/config.h.
4483
5d4848a4
GB
44842014-07-30 Gary Benson <gbenson@redhat.com>
4485
4486 * common/common-utils.h: Do not include config.h.
4487 * nat/linux-btrace.h: Likewise.
4488
d41f6d8e
GB
44892014-07-30 Gary Benson <gbenson@redhat.com>
4490
4491 * btrace.c: Include defs.h.
4492 * common/ptid.c: Include defs.h or server.h as appropriate.
4493 * nat/mips-linux-watch.c: Likewise.
4494
84202f9c
TT
44952014-07-29 Tom Tromey <tromey@redhat.com>
4496
4497 * target.c (target_is_pushed): Simplify.
4498
2530441c
JB
44992014-07-29 Joel Brobecker <brobecker@adacore.com>
4500
4501 GDB 7.8 released.
4502
7e09a223
YQ
45032014-07-29 Yao Qi <yao@codesourcery.com>
4504
4505 PR gdb/17206
4506 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4507
7ebdbe92
DE
45082014-07-28 Doug Evans <xdje42@gmail.com>
4509
4510 PR guile/17203
4511 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4512 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4513 parameters.
4514
f347ffc9
WN
45152014-07-28 Will Newton <will.newton@linaro.org>
4516
4517 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4518 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4519 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4520 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4521 (THUMB2_EABI_SYSCALL): Likewise.
4522 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4523 struct tramp_frame.
4524 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4525 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4526
37c5f1f7
DE
45272014-07-27 Doug Evans <xdje42@gmail.com>
4528
4529 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4530
0c3abbc7
DE
45312014-07-27 Doug Evans <xdje42@gmail.com>
4532
4533 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4534
e76c5d17
DE
45352014-07-26 Ludovic Courtès <ludo@gnu.org>
4536 Doug Evans <xdje42@gmail.com>
4537
4538 PR guile/17146
4539 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4540 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4541 * configure.ac: Try to use guild to compile an scm file, if it fails
4542 then disable guile support.
4543 * configure: Regenerate.
4544 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4545 GUILE_FILE_LIST.
4546 (GUILE_COMPILED_FILES): New variable.
4547 (GUILE_FILES) Update.
4548 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4549 (stamp-guile): Compile scm files.
4550 * guile/guile.c (boot_guile_support): New function.
4551 (standard_throw_args_p): New function.
4552 (print_standard_throw_error, print_throw_error): New functions.
4553 (handle_boot_error): New function.
4554 (initialize_scheme_side): Rewrite to call boot_guile_support.
4555 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4556 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4557
186fcde0
DE
45582014-07-26 Ludovic Courtès <ludo@gnu.org>
4559 Doug Evans <xdje42@gmail.com>
4560
4561 PR guile/17146
4562 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4563 * guile/lib/gdb/support.scm: New file.
4564 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4565 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4566 All uses updated.
4567 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4568 All uses updated.
4569 (%assert-type): Ditto, and renamed to assert-type.
4570 (%exception-print-style): Delete.
4571
4df42755
DE
45722014-07-26 Doug Evans <xdje42@gmail.com>
4573
4574 PR build/17105
4575 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4576 * configure: Regenerate.
4577 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4578 PYTHON_FILES.
4579 (PYTHON_FILES): New variable.
4580 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4581 (GUILE_FILES): New variable.
4582 (stamp-python, install-python, uninstall-python): Handle empty
4583 file list.
4584 (stamp-guile, install-guile, uninstall-guile): Ditto.
4585
ee7333ae
DE
45862014-07-26 Doug Evans <xdje42@gmail.com>
4587
4588 PR guile/17177
4589 * guile/lib/gdb.scm (pretty-printers): Export.
4590 (set-pretty-printers!): Export.
4591 * guile/lib/gdb/printing.scm (gdb module): Update.
4592 (prepend-pretty-printer!, append-pretty-printer!): Update.
4593 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4594 (pretty_printer_list_var): Delete.
4595 (pretty_printer_list): New static global.
4596 (gdbscm_pretty_printers): New function.
4597 (gdbscm_set_pretty_printers_x): New function.
4598 (ppscm_find_pretty_printer_from_gdb): Update.
4599 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4600 (gdbscm_initialize_pretty_printers): Update.
4601
74edf516
DE
46022014-07-26 Doug Evans <xdje42@gmail.com>
4603
4604 PR 17185
4605 * configure.ac: Add check for header gc/gc.h.
4606 Add check for function setenv.
4607 * configure: Regenerate.
4608 * config.in: Regenerate.
4609 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4610
d54398a7
MR
46112014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4612
4613 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4614 variation in gdbarch matching.
4615
ab16fce8
TT
46162014-07-25 Tom Tromey <tromey@redhat.com>
4617
4618 * exec.c (using_exec_ops): Remove.
4619 (exec_close_1): Update. Remove extraneous block, reindent.
4620 (add_target_sections): Use target_is_pushed.
4621
88056fbb
PA
46222014-07-25 Pedro Alves <palves@redhat.com>
4623
4624 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4625 * monitor.c (monitor_create_inferior): Likewise.
4626 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4627 * remote-sim.c (gdbsim_create_inferior): Likewise.
4628 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4629 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4630 * windows-nat.c (do_initial_windows_stuff): Likewise.
4631
70509625
PA
46322014-07-25 Pedro Alves <palves@redhat.com>
4633
4634 * NEWS: Mention signal passing and "signal" command changes.
4635 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4636 comment.
4637 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4638 call.
4639 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4640 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4641 (jump_command): Adjust clear_proceed_status call.
4642 (signal_command): Warn if other thread that are resumed have
4643 signals that will be delivered. Adjust clear_proceed_status call.
4644 (until_next_command, finish_command)
4645 (proceed_after_attach_callback, attach_command_post_wait)
4646 (attach_command): Adjust clear_proceed_status call.
4647 * infrun.c (proceed_after_vfork_done): Likewise.
4648 (proceed_after_attach_callback): Adjust comment.
4649 (clear_proceed_status_thread): Clear stop_signal if not in pass
4650 state.
4651 (clear_proceed_status_callback): Delete.
4652 (clear_proceed_status): New 'step' parameter. Only clear the
4653 proceed status of threads the command being prepared is about to
4654 resume.
4655 (proceed): If passed in an explicit signal, override stop_signal
4656 with it. Don't pass the last stop signal to the thread we're
4657 resuming.
4658 (init_wait_for_inferior): Adjust clear_proceed_status call.
4659 (switch_back_to_stepped_thread): Clear the signal if it should not
4660 be passed.
4661 * infrun.h (clear_proceed_status): New 'step' parameter.
4662 (user_visible_resume_ptid): Add comment.
4663 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4664 signal is in pass state.
4665 * remote.c (append_pending_thread_resumptions): Likewise.
4666 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4667
d8be2939
TT
46682014-07-25 Tom Tromey <tromey@redhat.com>
4669
4670 * target.h (target_stopped_data_address)
4671 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4672 parentheses.
4673
7d0d9d2b
PL
46742014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4675
4676 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4677 comments.
4678 (avr_pointer_to_address): Likewise.
4679
e9e7f724
TT
46802014-07-24 Tom Tromey <tromey@redhat.com>
4681
4682 * monitor.c (compile_pattern): Update.
4683 * target.h (struct target_ops) <to_shortname, to_longname,
4684 to_doc>: Now const.
4685
1947513d
TT
46862014-07-24 Tom Tromey <tromey@redhat.com>
4687
4688 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4689 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4690 (add_info_alias, add_com): Make "doc" const.
4691 (print_doc_line): Make "str" const.
4692 (delete_cmd): Update.
4693 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4694 (print_doc_line): Update.
4695 * cli/cli-script.c (document_command): Update.
4696 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4697 (add_com, add_info, add_info_alias): Update.
4698 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4699 * python/py-cmd.c (cmdpy_destroyer): Update.
4700
64e61d29
TT
47012014-07-24 Tom Tromey <tromey@redhat.com>
4702
4703 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4704 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4705 (help_cmd_list): Constify.
4706 (lookup_cmd): Update.
4707 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4708 const.
4709 (help_cmd_list, apropos_cmd): Update.
4710 * cli/cli-script.c (show_user): Update.
4711 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4712 * cli/cli-setshow.h (cmd_show_list): Update.
4713 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4714 (cmd_show_list): Update.
4715 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4716 * python/py-cmd.c (cmdpy_destroyer): Update.
4717
429e55ea
TT
47182014-07-24 Tom Tromey <tromey@redhat.com>
4719
4720 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4721 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4722 const.
4723 * command.h (deprecate_cmd): Update.
4724 * maint.c (maintenance_do_deprecate): Add casts.
4725
64669f3b
TT
47262014-07-24 Tom Tromey <tromey@redhat.com>
4727
4728 * cli/cli-decode.c (help_cmd): Make parameter "const".
4729 * cli/cli-decode.h (help_cmd): Update.
4730
d3d3328b
TT
47312014-07-24 Tom Tromey <tromey@redhat.com>
4732
4733 * stack.c (up_silently_base, down_silently_base): Make argument
4734 const.
4735
414842dc
TT
47362014-07-24 Tom Tromey <tromey@redhat.com>
4737
4738 * solib.c (solib_add): Make "pattern" const.
4739 * solib.h (solib_add): Update.
4740
baa336ce
TT
47412014-07-24 Tom Tromey <tromey@redhat.com>
4742
4743 * remote.c (remote_serial_open, print_packet, putpkt)
4744 (putpkt_binary): Constify.
4745 * remote.h (putpkt): Update.
4746
5a19e2d0
TT
47472014-07-24 Tom Tromey <tromey@redhat.com>
4748
4749 * monitor.c (monitor_open): Make "args" const.
4750 * monitor.h (monitor_open): Update.
4751
fc4baa5e
TT
47522014-07-24 Tom Tromey <tromey@redhat.com>
4753
4754 * maint.c (match_bfd_flags): Make "string" const.
4755 (print_bfd_section_info): Remove casts.
4756 (print_objfile_section_info): Make "string" const.
4757
0d5f0dbe
TT
47582014-07-24 Tom Tromey <tromey@redhat.com>
4759
4760 * inf-child.c (inf_child_open_target): Make "arg" const.
4761 * inf-child.h (inf_child_open_target): Update.
4762
41c77899
TT
47632014-07-24 Tom Tromey <tromey@redhat.com>
4764
4765 * environ.c (unset_in_environ): Make "var" const.
4766 * environ.h (unset_in_environ): Update.
4767
93db0d79
TT
47682014-07-24 Tom Tromey <tromey@redhat.com>
4769
4770 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4771 Make "cmd" const.
4772 (scan_filename_with_cleanup): Likewise.
4773 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4774 Make arguments const.
4775 (restore_command): Update.
4776
36d6eb95
PA
47772014-07-24 Pedro Alves <palves@redhat.com>
4778
4779 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4780
8009206a
TT
47812014-07-24 Tom Tromey <tromey@redhat.com>
4782 Gary Benson <gbenson@redhat.com>
4783
4784 * nat/linux-ptrace.c (additional_flags): New global.
4785 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4786 additional_flags; don't check GDBSERVER.
4787 (linux_ptrace_set_additional_flags): New function.
4788 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4789 Declare.
4790 * linux-nat.c (_initialize_linux_nat): Call
4791 linux_ptrace_set_additional_flags.
4792
a7068b60
TT
47932014-07-24 Tom Tromey <tromey@redhat.com>
4794
4795 * make-target-delegates (munge_type, write_debugmethod): New
4796 functions.
4797 (debug_names): New global.
4798 ($TARGET_DEBUG_PRINTER): New global.
4799 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4800 name.
4801 Write debug methods. Generate init_debug_target.
4802 * target-debug.h: New file.
4803 * target-delegates.c: Rebuild.
4804 * target.c: Include target-debug.h.
4805 (debug_target): Hoist definition.
4806 (target_kill, target_get_section_table, target_memory_map)
4807 (target_flash_erase, target_flash_done, target_detach)
4808 (target_disconnect, target_wait, target_resume)
4809 (target_pass_signals, target_program_signals, target_follow_fork)
4810 (target_mourn_inferior, target_search_memory)
4811 (target_thread_address_space, target_close)
4812 (target_find_new_threads, target_core_of_thread)
4813 (target_verify_memory, target_insert_mask_watchpoint)
4814 (target_remove_mask_watchpoint): Remove targetdebug code.
4815 (debug_to_post_attach, debug_to_prepare_to_store)
4816 (debug_to_files_info, debug_to_insert_breakpoint)
4817 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4818 (debug_to_region_ok_for_hw_watchpoint)
4819 (debug_to_can_accel_watchpoint_condition)
4820 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4821 (debug_to_watchpoint_addr_within_range)
4822 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4823 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4824 (debug_to_terminal_init, debug_to_terminal_inferior)
4825 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4826 (debug_to_terminal_save_ours, debug_to_terminal_info)
4827 (debug_to_load, debug_to_post_startup_inferior)
4828 (debug_to_insert_fork_catchpoint)
4829 (debug_to_remove_fork_catchpoint)
4830 (debug_to_insert_vfork_catchpoint)
4831 (debug_to_remove_vfork_catchpoint)
4832 (debug_to_insert_exec_catchpoint)
4833 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4834 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4835 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4836 (setup_target_debug): Call init_debug_target.
4837 * target.h (TARGET_DEBUG_PRINTER): New macro.
4838 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4839 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4840
2c51604d
GB
48412014-07-24 Gary Benson <gbenson@redhat.com>
4842
4843 * exceptions.h (throw_vfatal): Renamed to...
4844 (throw_vquit): New declaration.
4845 (throw_quit): Likewise.
4846 * exceptions.c (throw_vfatal): Renamed to...
4847 (throw_vquit): New function.
4848 (throw_quit): Likewise.
4849 (throw_error): Call throw_verror rather than throw_it.
4850 * utils.h (vfatal): Removed.
4851 (fatal): Likewise.
4852 * utils.c (vfatal): Removed.
4853 (fatal): Likewise.
4854 (internal_verror): Replaced call to fatal with call to throw_quit.
4855 (quit): Replaced calls to fatal with calls to throw_quit.
4856
34211963
ME
48572014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4858
4859 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4860 target_read_code.
4861
a52b4d3e
ME
48622014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4863
4864 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4865 less than zero in conditional expression.
4866
a8bdc56b
TT
48672014-07-23 Tom Tromey <tromey@redhat.com>
4868
4869 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4870 ($INTRO_PART): Don't match whitespace.
4871 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4872 argument matching.
4873 ($METHOD): Add $METHOD_TRAILER.
4874 (trim): Rewrite.
4875 (scan_target_h): New sub.
4876 Change main loop not to collect state.
4877 * target-delegates.c: Rebuild.
4878
91b52240
GB
48792014-07-23 Gary Benson <gbenson@redhat.com>
4880
4881 * cp-support.c (gdb_demangle): Fix build on systems without
4882 sigaltstack.
4883
45326f6f
JK
48842014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4885
4886 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4887 for reference entry value target data value.
4888
e214cf6c
JK
48892014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4890
4891 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4892 value_available_contents_eq.
4893
bddbbedd
PA
48942014-07-22 Pedro Alves <palves@redhat.com>
4895
4896 * value.c (allocate_optimized_out_value): Don't mark value as
4897 non-lazy.
4898
45c71484
JW
48992014-07-22 Jiong Wang <jiong.wang@arm.com>
4900
4901 * MAINTAINERS (Write After Approval): Update my email address.
4902
9597b22a
DE
49032014-07-20 Doug Evans <dje@google.com>
4904
4905 PR server/17147
4906 * remote.c (putpkt_binary): Add text to error message.
4907
91101fe5
YQ
49082014-07-20 Yao Qi <yao@codesourcery.com>
4909
4910 * eval.c: Remove "Chill" from comments.
4911 * gdbtypes.h: Likewise.
4912 * symtab.h: Likewise.
4913
c9402c95
YQ
49142014-07-20 Yao Qi <yao@codesourcery.com>
4915
4916 * std-operator.def: Update comments to TERNOP_SLICE.
4917
ae8fddda
YQ
49182014-07-20 Yao Qi <yao@codesourcery.com>
4919
4920 * std-operator.def: Remove BINOP_RANGE.
4921 * breakpoint.c (watchpoint_exp_is_const): Update.
4922 * expprint.c (dump_subexp_body_standard): Likewise.
4923 * eval.c (init_array_element): Remove dead code.
4924 (evaluate_subexp_standard): Likewise.
4925
9c816640
YQ
49262014-07-20 Yao Qi <yao@codesourcery.com>
4927
4928 * std-operator.def: Remove BINOP_IN.
4929 * breakpoint.c (watchpoint_exp_is_const): Update.
4930 * eval.c (evaluate_subexp_standard): Likewise.
4931 * expprint.c (dump_subexp_body_standard): Likewise.
4932
164224e9
ME
49332014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4934
4935 * microblaze-tdep.c (microblaze_register_names): Add
4936 the rshr and rslr register names.
4937 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4938 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4939 Use of tdesc_numbered_register. Use of
4940 microblaze_register_g_packet_guesses. Use of
4941 tdesc_use_registers. Use of set_gdbarch_register_type.
4942 (microblaze_register_g_packet_guesses): New.
4943 * microblaze-tdep.h (microblaze_reg_num): Add
4944 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4945 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4946 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4947 * features/microblaze-core.xml: New file.
4948 * features/microblaze-stack-protect.xml: New file.
4949 * features/microblaze-with-stack-protect.c: New file.
4950 * features/microblaze-with-stack-protect.xml: New file.
4951 * features/microblaze.xml: New file.
4952 * features/microblaze.c: New file.
4953 * features/Makefile (microblaze-with-stack-protect): Add
4954 microblaze-with-stack-protect microblaze and microblaze-expedite.
4955 * regformats/microblaze-with-stack-protect.dat: New file.
4956 * regformats/microblaze.dat: New file.
4957 * doc/gdb.texinfo (MicroBlaze Features): Added.
4958
e8b2341c
TT
49592014-07-18 Tom Tromey <tromey@redhat.com>
4960
4961 * exec.c (exec_ops): Now static.
4962 * exec.h (exec_ops): Don't declare.
4963
44e89118
TT
49642014-07-18 Tom Tromey <tromey@redhat.com>
4965
4966 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4967 to find_target_beneath.
4968 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4969 find_target_beneath.
4970 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4971
b0ed115f
TT
49722014-07-18 Tom Tromey <tromey@redhat.com>
4973
4974 PR gdb/17130:
4975 * utils.c (quit): Use target_supports_terminal_ours.
4976 * target.h (target_supports_terminal_ours): Declare.
4977 * target.c (target_supports_delete_record): Don't check
4978 to_delete_record against NULL.
4979 (target_supports_terminal_ours): New function.
4980
e75fdfca
TT
49812014-07-18 Tom Tromey <tromey@redhat.com>
4982
4983 PR gdb/17130:
4984 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4985 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4986 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4987 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4988 * windows-nat.c (windows_xfer_partial): Always delegate.
4989 * record-btrace.c (record_btrace_xfer_partial): Simplify
4990 delegation.
4991 (record_btrace_fetch_registers, record_btrace_store_registers)
4992 (record_btrace_prepare_to_store, record_btrace_resume)
4993 (record_btrace_wait, record_btrace_find_new_threads)
4994 (record_btrace_thread_alive): Likewise.
4995 * procfs.c (procfs_xfer_partial): Always delegate.
4996 * corelow.c (core_xfer_partial): Always delegate.
4997 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4998
83814951
TT
49992014-07-18 Tom Tromey <tromey@redhat.com>
5000
5001 * exec.c (exec_make_note_section): Move earlier.
5002
b8b8facf
DE
50032014-07-17 Doug Evans <dje@google.com>
5004
74b49205 5005 PR gdb/17170
b8b8facf
DE
5006 * maint.c (count_symtabs_and_blocks): Handle NULL
5007 current_program_space.
5008 (report_command_stats): Check global enabled flag in addition to
5009 recorded enabled flag.
5010 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5011
69ff6be5
PA
50122014-07-16 Pedro Alves <palves@redhat.com>
5013
5014 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5015
252db1b5
TT
50162014-07-16 Tom Tromey <tromey@redhat.com>
5017
5018 * target.h (struct target_ops) <to_delete_record>: Reformat
5019 comment.
5020
a432721e
TT
50212014-07-16 Tom Tromey <tromey@redhat.com>
5022
5023 * target-delegates.c: Rebuild.
5024
487d9753
PL
50252014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5026
5027 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5028 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5029 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5030 (avr_pointer_to_address): Likewise.
5031 (avr_address_class_type_flags): New function.
5032 (avr_address_class_type_flags_to_name): Likewise.
5033 (avr_address_class_name_to_type_flags): Likewise.
5034 (avr_gdbarch_init): Set address_class_type_flags,
5035 address_class_type_flags_to_name and
5036 address_class_name_to_type_flags.
5037
57745c90
PA
50382014-07-15 Pedro Alves <palves@redhat.com>
5039
5040 * linux-nat.c (kill_callback): Save errno and work with saved
5041 copy.
5042
2d40be18
SM
50432014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5044
5045 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5046
572f6555
EBM
50472014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5048
5049 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5050 breakpoint support correctly.
5051
cc1c52ad
PA
50522014-07-14 Pedro Alves <palves@redhat.com>
5053
5054 * utils.c (prompt_for_continue): Call target_terminal_ours.
5055
1e973570
PA
50562014-07-14 Pedro Alves <palves@redhat.com>
5057
5058 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5059 catch_errors. Don't re-enable stdin or notify observers where,
5060 and rethrow error.
5061 (fetch_inferior_event_wrapper): Delete.
5062
93d6eb10
PA
50632014-07-14 Pedro Alves <palves@redhat.com>
5064
5065 PR gdb/17072
5066 * top.c: Include "inf-loop.h".
5067 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5068 field.
5069 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5070 was async before.
5071 (gdb_readline_wrapper): Store whether the target is async, and
5072 make it sync.
5073
0017922d
PA
50742014-07-14 Pedro Alves <palves@redhat.com>
5075
5076 PR gdb/17072
5077 * top.c (gdb_readline_wrapper_line): Tweak comment.
5078 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5079 the input handler callback.
5080
94696ad3
PA
50812014-07-14 Pedro Alves <palves@redhat.com>
5082
5083 PR gdb/17072
5084 * main.c: Include event-top.h.
5085 (handle_command_errors): New function.
5086 (catch_command_errors, catch_command_errors_const): Use it.
5087
9d1e69a2
PA
50882014-07-14 Pedro Alves <palves@redhat.com>
5089
5090 * exceptions.c (catch_command_errors, catch_command_errors_const):
5091 Moved to main.c.
5092 * exceptions.h (catch_command_errors_ftype)
5093 (catch_command_errors_const_ftype): Moved to main.c.
5094 (catch_command_errors, catch_command_errors_const): Delete
5095 declarations.
5096 * main.c (catch_command_errors_ftype)
5097 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5098 (catch_command_errors, catch_command_errors_const)): Moved here
5099 from exceptions.c and make static.
5100
feefc97b
PA
51012014-07-14 Pedro Alves <palves@redhat.com>
5102
5103 * exceptions.c (print_any_exception): Delete.
5104 (catch_exceptions_with_msg): Use exception_print instead of
5105 print_any_exception.
5106 (catch_errors): Use exception_fprintf instead of
5107 print_any_exception.
5108 (catch_command_errors, catch_command_errors_const): Use
5109 exception_print instead of print_any_exception.
5110
c933f875
PA
51112014-07-14 Pedro Alves <palves@redhat.com>
5112
5113 * infcall.c (run_inferior_call): Set 'sync_execution' while
5114 running the inferior call.
5115
feb6f816
PA
51162014-07-14 Pedro Alves <palves@redhat.com>
5117
5118 * value.c (value_contents_equal): Delete function.
5119 * value.h (value_contents_equal): Delete declaration.
5120
d98b7a16
TT
51212014-07-14 Tom Tromey <tromey@redhat.com>
5122
5123 PR exp/17106:
5124 * gdbtypes.c (is_dynamic_type_internal): New function, from
5125 is_dynamic_type.
5126 (is_dynamic_type): Rewrite.
5127 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5128 (resolve_dynamic_struct): Likewise.
5129 (resolve_dynamic_type_internal): New function, from
5130 resolve_dynamic_type.
5131 (resolve_dynamic_type): Rewrite.
5132
548740d6
TT
51332014-07-14 Tom Tromey <tromey@redhat.com>
5134
5135 * target.c (target_require_runnable): Also check record_stratum.
5136 Update comment.
5137
808f7ab1
YQ
51382014-07-11 Yao Qi <yao@codesourcery.com>
5139
5140 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5141 thumb_instruction_restores_sp return true.
5142
540314bd
YQ
51432014-07-11 Yao Qi <yao@codesourcery.com>
5144
5145 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5146 (thumb_in_function_epilogue_p): Call
5147 thumb_instruction_restores_sp.
5148
1db01f22
YQ
51492014-07-11 Yao Qi <yao@codesourcery.com>
5150
5151 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5152 'add sp, #imm'.
5153 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5154
3116063b
GB
51552014-07-11 Gary Benson <gbenson@redhat.com>
5156
5157 * amd64-linux-nat.c (gdbcore.h): Remove include.
5158 (regset.h): Likewise.
5159 (nat/linux-btrace.h): Likewise.
5160 (btrace.h): Likewise.
5161 (gdb_assert.h): Likewise.
5162 (string.h): Likewise.
5163 (sys/uio.h): Likewise.
5164 (sys/debugreg.h): Likewise.
5165 (sys/syscall.h): Likewise.
5166 (sys/procfs.h): Likewise.
5167 (sys/user.h): Likewise.
5168 (asm/ptrace.h): Likewise.
5169 (i386-nat.h): Likewise.
5170 * i386-linux-nat.c (i386-nat.h): Likewise.
5171 (regset.h): Likewise.
5172 (target.h): Likewise.
5173 (linux-nat.h): Likewise.
5174 (nat/linux-btrace.h): Likewise.
5175 (btrace.h): Likewise.
5176 (gdb_assert.h): Likewise.
5177 (string.h): Likewise.
5178 (sys/uio.h): Likewise.
5179 (sys/user.h): Likewise.
5180 (sys/procfs.h): Likewise.
5181 (sys/reg.h): Likewise.
5182 (sys/debugreg.h): Likewise.
5183 (ORIG_EAX): Remove definition.
5184
040baaf6
GB
51852014-07-11 Gary Benson <gbenson@redhat.com>
5186
5187 * i386-linux-nat.h: New file.
5188 * x86-linux-nat.h: Likewise.
5189 * x86-linux-nat.c: Likewise.
5190 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5191 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5192 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5193 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5194 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5195 (PTRACE_SETREGSET): Likewise.
5196 (arch_lwp_info): Now in x86-linux-nat.c.
5197 (have_ptrace_getregset): Now in x86-linux-nat.h.
5198 (x86_linux_dr_get): Now in x86-linux-nat.c.
5199 (x86_linux_dr_set): Likewise.
5200 (x86_linux_dr_get_addr): Likewise.
5201 (x86_linux_dr_get_control): Likewise.
5202 (x86_linux_dr_get_status): Likewise.
5203 (update_debug_registers_callback): Likewise.
5204 (x86_linux_dr_set_control): Likewise.
5205 (x86_linux_dr_set_addr): Likewise.
5206 (x86_linux_prepare_to_resume): Likewise.
5207 (x86_linux_new_thread): Likewise.
5208 (x86_linux_new_fork): Likewise.
5209 (x86_linux_get_thread_area): Likewise.
5210 (super_post_startup_inferior): Likewise.
5211 (x86_linux_child_post_startup_inferior): Likewise.
5212 (AMD64_LINUX_USER64_CS): Likewise.
5213 (AMD64_LINUX_X32_DS): Likewise.
5214 (x86_linux_read_description): Likewise.
5215 (x86_linux_enable_btrace): Likewise.
5216 (x86_linux_disable_btrace): Likewise.
5217 (x86_linux_teardown_btrace): Likewise.
5218 (x86_linux_read_btrace): Likewise.
5219 (x86_linux_create_target): Likewise.
5220 (x86_linux_add_target): Likewise.
5221 * i386-linux-nat.c (x86-linux-nat.h): New include.
5222 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5223 (PTRACE_SETREGSET): Likewise.
5224 (arch_lwp_info): Now in x86-linux-nat.c.
5225 (have_ptrace_getregset): Now in x86-linux-nat.h.
5226 (x86_linux_dr_get): Now in x86-linux-nat.c.
5227 (x86_linux_dr_set): Likewise.
5228 (x86_linux_dr_get_addr): Likewise.
5229 (x86_linux_dr_get_control): Likewise.
5230 (x86_linux_dr_get_status): Likewise.
5231 (update_debug_registers_callback): Likewise.
5232 (x86_linux_dr_set_control): Likewise.
5233 (x86_linux_dr_set_addr): Likewise.
5234 (x86_linux_prepare_to_resume): Likewise.
5235 (x86_linux_new_thread): Likewise.
5236 (x86_linux_new_fork): Likewise.
5237 (x86_linux_get_thread_area): Likewise.
5238 (super_post_startup_inferior): Likewise.
5239 (x86_linux_child_post_startup_inferior): Likewise.
5240 (AMD64_LINUX_USER64_CS): Likewise.
5241 (AMD64_LINUX_X32_DS): Likewise.
5242 (x86_linux_read_description): Likewise.
5243 (x86_linux_enable_btrace): Likewise.
5244 (x86_linux_disable_btrace): Likewise.
5245 (x86_linux_teardown_btrace): Likewise.
5246 (x86_linux_read_btrace): Likewise.
5247 (x86_linux_create_target): Likewise.
5248 (x86_linux_add_target): Likewise.
5249
1aa7e42c
GB
52502014-07-11 Gary Benson <gbenson@redhat.com>
5251
5252 * amd64-linux-nat.c: Comment and whitespace changes.
5253 * i386-linux-nat.c: Comment and whitespace changes.
5254
c1e246a0
GB
52552014-07-11 Gary Benson <gbenson@redhat.com>
5256
5257 * amd64-linux-nat.c (x86_linux_create_target): New function.
5258 (x86_linux_add_target): Likewise.
5259 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5260 * i386-linux-nat.c (x86_linux_create_target): New function.
5261 (x86_linux_add_target): Likewise.
5262 (_initialize_i386_linux_nat): Delegate to the above new functions.
5263
8c420b8d
GB
52642014-07-11 Gary Benson <gbenson@redhat.com>
5265
5266 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5267 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5268 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5269 (ps_get_thread_area): Delegate to the above.
5270
cb1da100
GB
52712014-07-11 Gary Benson <gbenson@redhat.com>
5272
5273 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5274 x86_linux_read_description. All uses updated. amd64-specific
5275 code conditionalized. Conditionalized i386-specific code added.
5276 Redundant cast removed.
5277 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5278 x86_linux_read_description. All uses updated. i386-specific
5279 code conditionalized. Conditionalized amd64-specific code added.
5280 One sizeof replaced with the actual type it is describing.
5281
2acf3cd0
GB
52822014-07-11 Gary Benson <gbenson@redhat.com>
5283
5284 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5285 x86_linux_dr_get. All uses updated.
5286 (amd64_linux_dr_set): Renamed to
5287 x86_linux_dr_set. All uses updated.
5288 (amd64_linux_dr_get_addr): Renamed to
5289 x86_linux_dr_get_addr. All uses updated.
5290 (amd64_linux_dr_get_control): Renamed to
5291 x86_linux_dr_get_control. All uses updated.
5292 (amd64_linux_dr_get_status): Renamed to
5293 x86_linux_dr_get_status. All uses updated.
5294 (amd64_linux_dr_set_control): Renamed to
5295 x86_linux_dr_set_control. All uses updated.
5296 (amd64_linux_dr_set_addr): Renamed to
5297 x86_linux_dr_set_addr. All uses updated.
5298 (amd64_linux_prepare_to_resume): Renamed to
5299 x86_linux_prepare_to_resume. All uses updated.
5300 (amd64_linux_new_thread): Renamed to
5301 x86_linux_new_thread. All uses updated.
5302 (amd64_linux_new_fork): Renamed to
5303 x86_linux_new_fork. All uses updated.
5304 (amd64_linux_child_post_startup_inferior): Renamed to
5305 x86_linux_child_post_startup_inferior. All uses updated.
5306 (amd64_linux_enable_btrace): Renamed to
5307 x86_linux_enable_btrace. All uses updated.
5308 (amd64_linux_disable_btrace): Renamed to
5309 x86_linux_disable_btrace. All uses updated.
5310 (amd64_linux_teardown_btrace): Renamed to
5311 x86_linux_teardown_btrace. All uses updated.
5312 (amd64_linux_read_btrace): Renamed to
5313 x86_linux_read_btrace. All uses updated.
5314 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5315 x86_linux_dr_get. All uses updated.
5316 (i386_linux_dr_set): Renamed to
5317 x86_linux_dr_set. All uses updated.
5318 (i386_linux_dr_get_addr): Renamed to
5319 x86_linux_dr_get_addr. All uses updated.
5320 (i386_linux_dr_get_control): Renamed to
5321 x86_linux_dr_get_control. All uses updated.
5322 (i386_linux_dr_get_status): Renamed to
5323 x86_linux_dr_get_status. All uses updated.
5324 (i386_linux_dr_set_control): Renamed to
5325 x86_linux_dr_set_control. All uses updated.
5326 (i386_linux_dr_set_addr): Renamed to
5327 x86_linux_dr_set_addr. All uses updated.
5328 (i386_linux_prepare_to_resume): Renamed to
5329 x86_linux_prepare_to_resume. All uses updated.
5330 (i386_linux_new_thread): Renamed to
5331 x86_linux_new_thread. All uses updated.
5332 (i386_linux_new_fork): Renamed to
5333 x86_linux_new_fork. All uses updated.
5334 (i386_linux_child_post_startup_inferior): Renamed to
5335 x86_linux_child_post_startup_inferior. All uses updated.
5336 (i386_linux_enable_btrace): Renamed to
5337 x86_linux_enable_btrace. All uses updated.
5338 (i386_linux_disable_btrace): Renamed to
5339 x86_linux_disable_btrace. All uses updated.
5340 (i386_linux_teardown_btrace): Renamed to
5341 x86_linux_teardown_btrace. All uses updated.
5342 (i386_linux_read_btrace): Renamed to
5343 x86_linux_read_btrace. All uses updated.
5344
b9c1d481
AS
53452014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5346
5347 * remote.c (extended_remote_post_attach): New function.
5348 (init_extended_remote_ops): Install it as to_post_attach method.
5349
7180e04a
PA
53502014-07-09 Pedro Alves <palves@redhat.com>
5351
5352 * infcmd.c (attach_command_post_wait): Don't call
5353 target_terminal_inferior here.
5354 (attach_command): Call it here instead.
5355
9a9a7608
AB
53562014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5359 field.
5360 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5361 from varobj.c, with additional checks.
5362 (c_varobj_ops): Fill in is_path_expr_parent field.
5363 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5364 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5365 field.
5366 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5367 ops method.
5368 (varobj_default_is_path_expr_parent): New function.
5369 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5370 (varobj_default_is_path_expr_parent): Declare new function.
5371
1f267ae3
MM
53722014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5373
5374 * infcmd.c (finish_backward): Turn internal error into normal error.
5375
b2ee242b
PA
53762014-07-07 Pedro Alves <palves@redhat.com>
5377
8a869bca 5378 PR gdb/17096
b2ee242b
PA
5379 * remote.c (async_handle_remote_sigint)
5380 (async_handle_remote_sigint_twice): Call
5381 gdb_call_async_signal_handler instead of
5382 mark_async_signal_handler.
5383
38e229b2
TT
53842014-07-07 Tom Tromey <tromey@redhat.com>
5385
5386 * target-delegates.c: Rebuild.
5387 * target.c (target_info_record): Remove.
5388 * record.c (info_record_command): Unconditionally call
5389 to_info_record.
5390 * target.h (struct target_ops) <to_info_record>: Use
5391 TARGET_DEFAULT_IGNORE.
5392 (target_info_record): Remove.
5393
f0f9ff95
TT
53942014-07-07 Tom Tromey <tromey@redhat.com>
5395
5396 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5397 TARGET_DEFAULT_NORETURN.
5398 * target.c (generic_tls_error): New function.
5399 (target_translate_tls_address): Don't search target stack.
5400 * target-delegates.c: Rebuild.
5401 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5402 stack.
5403 * linux-thread-db.c (thread_db_get_thread_local_address):
5404 Unconditionally call beneath target.
5405
4a5be5ee
MK
54062014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5407
5408 * cli/cli-logging.c (pop_output_files): Assign targerr to
5409 gdb_stdtargerr.
5410
92c3b204
AB
54112014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * MAINTAINERS (Write After Approval): Update my email address.
5414
9b11e3a7
GB
54152014-07-02 Gary Benson <gbenson@redhat.com>
5416
5417 * proc-service.c (ps_xfer_memory): Update comment.
5418 (ps_pstop): Remove unused function.
5419 (ps_pcontinue): Likewise.
5420 (ps_lstop): Likewise.
5421 (ps_lcontinue): Likewise.
5422 (ps_lgetxregsize): Likewise.
5423 (ps_lgetxregs): Likewise.
5424 (ps_lsetxregs): Likewise.
5425 (ps_plog): Likewise.
5426 (ps_ptread): Likewise.
5427 (ps_ptwrite): Likewise.
5428
cf363f18
MW
54292014-07-01 Mark Wielaard <mjw@redhat.com>
5430
5431 * dwarf2read.c (add_array_cv_type): New function.
5432 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5433 (read_tag_volatile_type): Likewise.
5434
82ae6c8d
TT
54352014-07-01 Tom Tromey <tromey@redhat.com>
5436
5437 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5438 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5439 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5440 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5441 * command.h (cmd_cfunc_ftype): Move earlier.
5442 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5443 (add_com, add_info): Use cmd_cfunc_ftype.
5444
96142726
TT
54452014-06-30 Tom Tromey <tromey@redhat.com>
5446
5447 * symtab.c (operator_chars): Make parameters and return type
5448 const.
5449 (file_matches): Make "files" const.
5450 (struct search_symbols_data) <files>: Now const.
5451 (search_symbols): Make "regexp" and "files" parameters const.
5452 Update.
5453 (symtab_symbol_info): Remove cast.
5454 (rbreak_command): Update.
5455 * symtab.h (search_symbols): Update.
5456
b67a2c6f
YQ
54572014-06-27 Yao Qi <yao@codesourcery.com>
5458
5459 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5460 Change parameter type to 'struct thread_info *'. Caller
5461 updated.
5462 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5463 Update declaration.
5464 * dummy-frame.c (struct dummy_frame_id): New.
5465 (dummy_frame_id_eq): New function.
5466 (struct dummy_frame) <id>: Change its type to 'struct
5467 dummy_frame_id'.
5468 (dummy_frame_push): Add parameter ptid and save it in
5469 dummy_frame_id.
5470 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5471 inferior_ptid.
5472 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5473 to inferior_ptid.
5474 (lookup_dummy_frame): Change parameter type to 'struct
5475 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5476 instead of frame_id_eq.
5477 (dummy_frame_pop): Add parameter ptid. Callers updated.
5478 Update comments. Compose dummy_frame_id and pass it to
5479 lookup_dummy_frame.
5480 (dummy_frame_discard): Add parameter ptid.
5481 (dummy_frame_sniffer): Compose dummy_frame_id and call
5482 dummy_frame_id_eq instead of frame_id_eq.
5483 (fprint_dummy_frames): Print ptid.
5484 * dummy-frame.h: Remove comments.
5485 (dummy_frame_push): Add ptid in declaration.
5486 (dummy_frame_pop, dummy_frame_discard): Likewise.
5487
5b10184c
TT
54882014-06-26 Tom Tromey <tromey@redhat.com>
5489
5490 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5491 * command.h (error_no_arg): Update.
5492
06900326
TT
54932014-06-26 Tom Tromey <tromey@redhat.com>
5494
5495 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5496 (do_show_command): Make "arg" const.
5497 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5498
c2bcbb1d
TT
54992014-06-26 Tom Tromey <tromey@redhat.com>
5500
5501 * record-full.c (record_full_get_bookmark): Make "args" const.
5502 (record_full_goto_bookmark): Make "raw_bookmark" const.
5503 * record.c (record_goto): New function.
5504 (cmd_record_goto): Use it. Now static.
5505 * record.h (record_goto): Declare.
5506 (cmd_record_goto): Remove declaration.
5507 * target-delegates.c: Rebuild.
5508 * target.h (struct target_ops) <to_get_bookmark,
5509 to_goto_bookmark>: Make parameter const.
5510
9cbe5fff
TT
55112014-06-26 Tom Tromey <tromey@redhat.com>
5512
5513 * defs.h (generic_load): Update.
5514 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5515 * monitor.c (monitor_load): Make "args" const.
5516 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5517 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5518 const.
5519 (mips_load): Make "file" const.
5520 * remote-sim.c (gdbsim_load): Make "args" const.
5521 * remote.c (remote_load): Make "name" const.
5522 * symfile.c (generic_load): Make "args" const.
5523 * target-delegates.c: Rebuild.
5524 * target.c (target_load): Make "arg" const.
5525 (debug_to_load): Make "args" const.
5526 * target.h (struct target_ops) <to_load>: Make parameter const.
5527 (target_load): Update.
5528
34a68019
TT
55292014-06-26 Tom Tromey <tromey@redhat.com>
5530
5531 PR symtab/16902:
5532 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5533 (dwarf2_physname, read_partial_die)
5534 (guess_partial_die_structure_name, fixup_partial_die)
5535 (guess_full_die_structure_name, anonymous_struct_prefix)
5536 (dwarf2_name): Use per-BFD obstack.
5537
efc889c1
YQ
55382014-06-26 Yao Qi <yao@codesourcery.com>
5539
5540 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5541 dummyframe and this_id into inner block below.
5542
4395285e
YQ
55432014-06-26 Yao Qi <yao@codesourcery.com>
5544
5545 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5546 with "signal_pass[0]" in the initialization of signal_pass.
5547
aef92902
MM
55482014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5549
5550 * record-btrace.c (record_btrace_generating_corefile)
5551 (record_btrace_prepare_to_generate_core)
5552 (record_btrace_done_generating_core): New.
5553 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5554 (record_btrace_store_registers, record_btrace_prepare_to_store):
5555 Forward request when generating a core file.
5556 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5557 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5558 to_done_generating_core.
5559
5fff78c4
MM
55602014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5561
5562 * target.h (target_ops) <to_prepare_to_generate_core>
5563 <to_done_generating_core>: New.
5564 (target_prepare_to_generate_core, target_done_generating_core): New.
5565 * target.c (target_prepare_to_generate_core)
5566 (target_done_generating_core): New.
5567 * target-delegates.c: Regenerate.
5568 * gcore.c: (write_gcore_file): Rename to ...
5569 (write_gcore_file_1): ...this.
5570 (write_gcore_file): Call target_prepare_to_generate_core
5571 and target_done_generating_core.
5572
1d1f1ccb
MM
55732014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5574
5575 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5576 * gcore.c (write_gcore_file): Free memory returned from
5577 make_corefile_notes.
5578 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5579 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5580
3343ef86
YQ
55812014-06-24 Yao Qi <yao@codesourcery.com>
5582
5583 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5584 (arm_linux_init_abi): Set skip_trampoline_code with
5585 gdbarch_skip_trampoline_code instead of
5586 find_solib_trampoline_target.
5587
18d18ac8
YQ
55882014-06-24 Yao Qi <yao@codesourcery.com>
5589
5590 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5591 arm_skip_bx_reg returns non-zero.
5592
80d8d390
YQ
55932014-06-24 Yao Qi <yao@codesourcery.com>
5594
5595 * arm-tdep.c (arm_skip_bx_reg): New function.
5596 (arm_skip_stub): Call arm_skip_bx_reg.
5597
6a18a01c
DB
55982014-06-23 Don Breazeal <donb@codesourcery.com>
5599
5600 * MAINTAINERS: Add myself as write-after-approval maintainer.
5601
8e9db26e
PA
56022014-06-23 Pedro Alves <palves@redhat.com>
5603
5604 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5605 DR_CONTROL before setting DR0..DR3.
5606 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5607 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5608 bits of DR_CONTROL related to the debug register slot being
5609 disabled. If all slots are vacant, clear local slowdown as well,
5610 and assert DR_CONTROL is 0.
5611
70afc5b7
SC
56122014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5613
5614 * python/lib/gdb/command/xmethods.py
5615 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5616 current progspace only if the string "progspace" matches LOCUS_RE.
5617
840ed64d
JK
56182014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5619
5620 Fix --with-system-readline with readline-6.3 patch 5.
5621 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5622 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5623 types.
5624
26f2dc30
TT
56252014-06-20 Tom Tromey <tromey@redhat.com>
5626
5627 * dwarf2read.c (dw2_get_real_path): Use correct type in
5628 OBSTACK_CALLOC.
5629 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5630
125f8a3d
GB
56312014-06-20 Gary Benson <gbenson@redhat.com>
5632
5633 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5634 * common/glibc_thread_db.h: Likewise.
5635 * common/i386-cpuid.h: Likewise.
5636 * common/i386-gcc-cpuid.h: Likewise.
5637 * common/linux-btrace.h: Likewise.
5638 * common/linux-osdata.h: Likewise.
5639 * common/linux-procfs.h: Likewise.
5640 * common/linux-ptrace.h: Likewise.
5641 * common/mips-linux-watch.h: Likewise.
5642 * common/linux-btrace.c: Moved to nat.
5643 * common/linux-osdata.c: Likewise.
5644 * common/linux-procfs.c: Likewise.
5645 * common/linux-ptrace.c: Likewise.
5646 * common/mips-linux-watch.c: Likewise.
5647 * nat/gdb_thread_db.h: Moved from common.
5648 * nat/glibc_thread_db.h: Likewise.
5649 * nat/i386-cpuid.h: Likewise.
5650 * nat/i386-gcc-cpuid.h: Likewise.
5651 * nat/linux-btrace.c: Likewise.
5652 * nat/linux-btrace.h: Likewise.
5653 * nat/linux-osdata.c: Likewise.
5654 * nat/linux-osdata.h: Likewise.
5655 * nat/linux-procfs.c: Likewise.
5656 * nat/linux-procfs.h: Likewise.
5657 * nat/linux-ptrace.c: Likewise.
5658 * nat/linux-ptrace.h: Likewise.
5659 * nat/mips-linux-watch.c: Likewise.
5660 * nat/mips-linux-watch.h: Likewise.
5661 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5662 (object file files): Reordered.
5663 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5664 of glibc_thread_db.h.
5665
42995dbd
GB
56662014-06-20 Gary Benson <gbenson@redhat.com>
5667
5668 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5669 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5670 (i386_dr_low): Likewise.
5671 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5672 (i386_dr_low_set_addr): Likewise.
5673 (i386_dr_low_get_addr): Likewise.
5674 (i386_dr_low_can_set_control): Likewise.
5675 (i386_dr_low_set_control): Likewise.
5676 (i386_dr_low_get_control): Likewise.
5677 (i386_dr_low_get_status): Likewise.
5678 (i386_get_debug_register_length): Likewise.
5679 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5680 (i386_dr_low): Likewise.
5681 * nat/i386-dregs.c (i386-low.h): Remove include.
5682 (i386-nat.h): Likewise.
5683 (nat/i386-dregs.h): New include.
5684 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5685 (i386_dr_low_set_addr): Likewise.
5686 (i386_dr_low_get_addr): Likewise.
5687 (i386_dr_low_can_set_control): Likewise.
5688 (i386_dr_low_set_control): Likewise.
5689 (i386_dr_low_get_control): Likewise.
5690 (i386_dr_low_get_status): Likewise.
5691 (i386_get_debug_register_length): Likewise.
5692 (debug_hw_points): Likewise.
5693
3ed9baed
IB
56942014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5695
5696 * Makefile.in (SFILES): Add d-exp.y.
5697 (YYFILES): Add d-exp.c.
5698 (YYOBJ): Add d-exp.o.
5699 (local-maintainer-clean): Delete d-exp.c.
5700 * d-exp.y: New file.
5701 * d-lang.h (d_parse): New declaration.
5702 (d_error): New declaration.
5703 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5704 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5705 PREC_ORDER operators.
5706 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5707
78c164b0
YQ
57082014-06-19 Yao Qi <yao@codesourcery.com>
5709
5710 * gdbthread.h (any_running): Remove the declaration.
5711 * thread.c (any_running): Remove.
5712
f6e29b6e
YQ
57132014-06-19 Yao Qi <yao@codesourcery.com>
5714
5715 * gdbthread.h (struct thread_info) <state>: Change its type to
5716 'enum thread_state'. Update comments.
5717
034f788c
PA
57182014-06-19 Pedro Alves <palves@redhat.com>
5719
5720 * gdbthread.h (ALL_THREADS): Delete.
5721 (ALL_NON_EXITED_THREADS): New macro.
5722 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5723 instead of ALL_THREADS.
5724 * infrun.c (find_thread_needs_step_over)
5725 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5726 instead of ALL_THREADS.
5727 * record-btrace.c (record_btrace_open)
5728 (record_btrace_stop_recording, record_btrace_close)
5729 (record_btrace_is_replaying, record_btrace_resume)
5730 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5731 * remote.c (append_pending_thread_resumptions): Likewise.
5732 * thread.c (thread_apply_all_command): Likewise.
5733
46e33252
GB
57342014-06-19 Gary Benson <gbenson@redhat.com>
5735
5736 * i386-nat.c (i386_stopped_by_watchpoint):
5737 Use i386_dr_stopped_by_watchpoint.
5738 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5739 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5740
3a8ee006
GB
57412014-06-19 Gary Benson <gbenson@redhat.com>
5742
5743 * nat/i386-dregs.c: New file.
5744 * Makefile.in (i386-dregs.o): New rule.
5745 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5746 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5747 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5748 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5749 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5750 * config/i386/go32.mh (NATDEPFILES): Likewise.
5751 * config/i386/linux.mh (NATDEPFILES): Likewise.
5752 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5753 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5754 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5755 * i386-nat.h (debug_hw_points): New declaration.
5756 * i386-nat.c (breakpoint.h): Remove include.
5757 (command.h): Likewise.
5758 (target.h): Likewise.
5759 (gdb_assert.h): Likewise.
5760 (debug_hw_points): Made nonstatic.
5761 (debug_printf): Now in i386-dregs.c.
5762 (TARGET_HAS_DR_LEN_8): Likewise.
5763 (DR_CONTROL_SHIFT): Likewise.
5764 (DR_CONTROL_SIZE): Likewise.
5765 (DR_RW_EXECUTE): Likewise.
5766 (DR_RW_WRITE): Likewise.
5767 (DR_RW_READ): Likewise.
5768 (DR_RW_IORW): Likewise.
5769 (DR_LEN_1): Likewise.
5770 (DR_LEN_2): Likewise.
5771 (DR_LEN_4): Likewise.
5772 (DR_LEN_8): Likewise.
5773 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5774 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5775 (DR_ENABLE_SIZE): Likewise.
5776 (DR_LOCAL_SLOWDOWN): Likewise.
5777 (DR_GLOBAL_SLOWDOWN): Likewise.
5778 (DR_CONTROL_RESERVED): Likewise.
5779 (I386_DR_CONTROL_MASK): Likewise.
5780 (I386_DR_VACANT): Likewise.
5781 (I386_DR_LOCAL_ENABLE): Likewise.
5782 (I386_DR_GLOBAL_ENABLE): Likewise.
5783 (I386_DR_DISABLE): Likewise.
5784 (I386_DR_SET_RW_LEN): Likewise.
5785 (I386_DR_GET_RW_LEN): Likewise.
5786 (I386_DR_WATCH_HIT): Likewise.
5787 (i386_wp_op_t): Likewise.
5788 (i386_show_dr): Likewise.
5789 (i386_length_and_rw_bits): Likewise.
5790 (i386_insert_aligned_watchpoint): Likewise.
5791 (i386_remove_aligned_watchpoint): Likewise.
5792 (i386_handle_nonaligned_watchpoint): Likewise.
5793 (i386_update_inferior_debug_regs): Likewise.
5794 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5795 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5796 (i386_region_ok_for_watchpoint):
5797 Use i386_dr_region_ok_for_watchpoint.
5798 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5799
322a8e06
GB
58002014-06-19 Gary Benson <gbenson@redhat.com>
5801
5802 * i386-nat.c (i386_insert_hw_breakpoint): Use
5803 i386_insert_watchpoint.
5804 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5805
8f26655c
GB
58062014-06-19 Gary Benson <gbenson@redhat.com>
5807
5808 * i386-nat.c (i386_dr_show): Renamed to
5809 i386_show_dr and made static. All uses updated.
5810 (i386_dr_length_and_rw_bits): Renamed to
5811 i386_length_and_rw_bits and made static.
5812 All uses updated.
5813 (i386_dr_insert_aligned_watchpoint): Renamed to
5814 i386_insert_aligned_watchpoint and made static.
5815 All uses updated.
5816 (i386_dr_remove_aligned_watchpoint): Renamed to
5817 i386_remove_aligned_watchpoint and made static.
5818 All uses updated.
5819 (i386_dr_update_inferior_debug_regs): Renamed to
5820 i386_update_inferior_debug_regs and made static.
5821 All uses updated.
5822 * nat/i386-dregs.h (i386_dr_show): Removed.
5823 (i386_dr_length_and_rw_bits): Likewise.
5824 (i386_dr_insert_aligned_watchpoint): Likewise.
5825 (i386_dr_remove_aligned_watchpoint): Likewise.
5826 (i386_dr_update_inferior_debug_regs): Likewise.
5827
992c7d70
GB
58282014-06-19 Gary Benson <gbenson@redhat.com>
5829
5830 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5831 * configure: Regenerate.
5832 * config.in: Likewise.
5833 * main.c (signal.h): New include.
5834 (setup_alternate_signal_stack): New function.
5835 (captured_main): Call the above.
5836 * cp-support.c (signal.h): New include.
5837 (catch_demangler_crashes): New flag.
5838 (SIGJMP_BUF): New define.
5839 (SIGSETJMP): Likewise.
5840 (SIGLONGJMP): Likewise.
5841 (gdb_demangle_jmp_buf): New static global.
5842 (gdb_demangle_attempt_core_dump): Likewise.
5843 (gdb_demangle_signal_handler): New function.
5844 (gdb_demangle): If catch_demangler_crashes is set, install the
5845 above signal handler before calling bfd_demangle, and restore
5846 the original signal handler afterwards. Display the offending
5847 symbol and call demangler_warning the first time a segmentation
5848 fault is caught.
5849 (_initialize_cp_support): New maint set/show command.
5850
eae7090b
GB
58512014-06-19 Gary Benson <gbenson@redhat.com>
5852
5853 * utils.h (resource_limit_kind): New enum.
5854 (can_dump_core): New declaration.
5855 (warn_cant_dump_core): Likewise.
5856 (dump_core): Likewise.
5857 * utils.c (dump_core): Made nonstatic. Added new
5858 parameter "limit_kind".
5859 (can_dump_core): Made nonstatic. Moved printing code to...
5860 (warn_cant_dump_core): New function.
5861 (can_dump_core_warn): Likewise.
5862 (internal_vproblem): Replace calls to can_dump_core with
5863 calls to can_dump_core_warn. Supply new argument to each.
5864
57fcfb1b
GB
58652014-06-19 Gary Benson <gbenson@redhat.com>
5866
5867 * utils.h (demangler_vwarning): New declaration.
5868 (demangler_warning): Likewise.
5869 * utils.c (struct internal_problem)
5870 <user_settable_should_quit>: New field.
5871 <user_settable_should_dump_core>: Likewise
5872 (internal_error_problem): Add values for above new fields.
5873 (internal_warning_problem): Likewise.
5874 (demangler_warning_problem): New static global.
5875 (demangler_vwarning): New function.
5876 (demangler_warning): Likewise.
5877 (add_internal_problem_command): Selectively add commands.
5878 (_initialize_utils): New internal problem command.
5879 * maint.c (maintenance_demangler_warning): New function.
5880 (_initialize_maint_cmds): New command.
5881
17a40b44
TT
58822014-06-18 Tom Tromey <tromey@redhat.com>
5883
5884 * f-valprint.c (info_common_command_for_block): Update.
5885 * symtab.h (struct general_symbol_info) <common_block>: Now
5886 const.
5887
346d1dfe
TT
58882014-06-18 Tom Tromey <tromey@redhat.com>
5889
5890 * symtab.h (struct symtab) <blockvector>: Now const.
5891 * ada-lang.c (ada_add_global_exceptions): Update.
5892 * buildsym.c (augment_type_symtab): Update.
5893 * dwarf2read.c (dw2_lookup_symbol): Update.
5894 * jit.c (finalize_symtab): Update.
5895 * jv-lang.c (add_class_symtab_symbol): Update.
5896 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5897 Update.
5898 * objfiles.c (objfile_relocate1): Update.
5899 * psymtab.c (lookup_symbol_aux_psymtabs)
5900 (maintenance_check_psymtabs): Update.
5901 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5902 Update.
5903 * spu-tdep.c (spu_catch_start): Update.
5904 * symmisc.c (dump_symtab_1): Update.
5905 * symtab.c (lookup_global_symbol_from_objfile)
5906 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5907 (basic_lookup_transparent_type_quick)
5908 (basic_lookup_transparent_type, find_pc_sect_symtab)
5909 (find_pc_sect_line, search_symbols): Update.
5910 * block.c (find_block_in_blockvector): Make "bl" const.
5911 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5912 const.
5913 (blockvector_contains_pc): Make "bv" const.
5914 (block_for_pc_sect): Update.
5915 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5916 (blockvector_contains_pc): Update.
5917 * breakpoint.c (resolve_sal_pc): Update.
5918 * inline-frame.c (block_starting_point_at): Update.
5919
1834676b
TT
59202014-06-18 Tom Tromey <tromey@redhat.com>
5921
5922 * completer.c (complete_line): Make "line_buffer" const.
5923 * completer.h (complete_line): Update.
5924
ac1a991b
TT
59252014-06-18 Tom Tromey <tromey@redhat.com>
5926
5927 * symtab.c (add_macro_name): Remove unneeded cast.
5928
5bc98e52
TT
59292014-06-18 Tom Tromey <tromey@redhat.com>
5930
5931 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5932 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5933
8236def8
TT
59342014-06-18 Tom Tromey <tromey@redhat.com>
5935
5936 * probe.c (info_probes_for_ops): Make "arg" const.
5937 * probe.h (info_probes_for_ops): Update.
5938
3977b71f
TT
59392014-06-18 Tom Tromey <tromey@redhat.com>
5940
5941 * varobj.c (varobj_create): Update.
5942 * valops.c (value_of_this): Update.
5943 * tracepoint.c (add_local_symbols, scope_info): Update.
5944 * symtab.h (struct general_symbol_info) <block>: Now const.
5945 * symtab.c (skip_prologue_sal)
5946 (default_make_symbol_completion_list_break_on)
5947 (skip_prologue_using_sal): Update.
5948 * stack.h (iterate_over_block_locals)
5949 (iterate_over_block_local_vars): Update.
5950 * stack.c (print_frame_args): Update.
5951 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5952 parameter const.
5953 (get_selected_block): Make return type const.
5954 * python/py-frame.c (frapy_block): Update.
5955 * python/py-block.c (gdbpy_block_for_pc): Update.
5956 * p-exp.y (%union) <bval>: Now const.
5957 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5958 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5959 * m2-exp.y (%union) <bval>: Now const.
5960 * linespec.c (get_current_search_block): Make return type const.
5961 (create_sals_line_offset, find_label_symbols): Update.
5962 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5963 Update.
5964 (block_starting_point_at): Make "block" const.
5965 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5966 (check_exception_resume): Update.
5967 * guile/scm-frame.c (gdbscm_frame_block): Update.
5968 * guile/scm-block.c (gdbscm_lookup_block): Update.
5969 * frame.h (get_frame_block): Update.
5970 (get_selected_block): Make return type const.
5971 * frame.c (frame_id_inner): Update.
5972 * f-valprint.c (info_common_command_for_block)
5973 (info_common_command): Update.
5974 * dwarf2loc.c (dwarf2_find_location_expression)
5975 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5976 (locexpr_describe_location_piece): Update.
5977 * c-exp.y (%union) <bval>: Now const.
5978 * breakpoint.c (resolve_sal_pc): Update.
5979 * blockframe.c (get_frame_block):Make return type const.
5980 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5981 (block_innermost_frame): Update.
5982 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5983 (block_for_pc, block_for_pc_sect): Update.
5984 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5985 'pblock' const.
5986 (block_for_pc_sect, block_for_pc): Make return type const.
5987 * ax-gdb.c (gen_expr): Update.
5988 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5989 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5990 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5991 (ada_read_var_value): Update.
5992 * ada-exp.y (struct name_info) <block>: Now const.
5993 (%union): Likewise.
5994 (block_lookup): Constify.
5995
b9228891
GB
59962014-06-18 Gary Benson <gbenson@redhat.com>
5997
5998 * nat/i386-dregs.h: New file.
5999 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6000 * i386-nat.h (i386-dregs.h): New include.
6001 (DR_FIRSTADDR): Now in i386-dregs.h.
6002 (DR_LASTADDR): Likewise.
6003 (DR_NADDR): Likewise.
6004 (DR_STATUS): Likewise.
6005 (DR_CONTROL): Likewise.
6006 (i386_debug_reg_state): Likewise.
6007 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6008
a1aa2221
LM
60092014-06-18 Don Breazeal <donb@codesourcery.com>
6010
6011 * breakpoint.c (set_longjmp_breakpoint): Call
6012 momentary_breakpoint_from_master with additional argument.
6013 (set_longjmp_breakpoint_for_call_dummy): Call
6014 momentary_breakpoint_from_master with additional argument.
6015 (set_std_terminate_breakpoint): Call
6016 momentary_breakpoint_from_master with additional argument.
6017 (momentary_breakpoint_from_master): Add argument to function
6018 definition and use it to initialize structure member flag.
74228e77 6019 (clone_momentary_breakpoint): Call
a1aa2221
LM
6020 momentary_breakpoint_from_master with additional argument.
6021 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6022 member flags set in momentary_breakpoint_from_master.
6023
4be83cc2
GB
60242014-06-18 Gary Benson <gbenson@redhat.com>
6025
6026 * i386-nat.c (i386_show_dr): Renamed to
6027 i386_dr_show and made nonstatic. All uses updated.
6028 (i386_length_and_rw_bits): Renamed to
6029 i386_dr_length_and_rw_bits and made nonstatic.
6030 All uses updated.
6031 (i386_insert_aligned_watchpoint): Renamed to
6032 i386_dr_insert_aligned_watchpoint and made nonstatic.
6033 All uses updated.
6034 (i386_remove_aligned_watchpoint): Renamed to
6035 i386_dr_remove_aligned_watchpoint and made nonstatic.
6036 All uses updated.
6037 (i386_update_inferior_debug_regs): Renamed to
6038 i386_dr_update_inferior_debug_regs and made nonstatic.
6039 All uses updated.
6040
131aa0d4
GB
60412014-06-18 Gary Benson <gbenson@redhat.com>
6042
6043 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6044 (i386_dr_low_can_set_control): Likewise.
6045 (i386_dr_low_set_addr): Likewise.
6046 (i386_dr_low_set_control): Likewise.
6047 (i386_dr_low_get_addr): Likewise.
6048 (i386_dr_low_get_status): Likewise.
6049 (i386_dr_low_get_control): Likewise.
6050 (i386_insert_aligned_watchpoint): Use new macros.
6051 (i386_update_inferior_debug_regs): Likewise.
6052 (i386_stopped_data_address): Likewise.
6053
d9305f7f
GB
60542014-06-18 Gary Benson <gbenson@redhat.com>
6055
6056 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6057 New parameter. All uses updated.
6058
ea008da4
GB
60592014-06-18 Gary Benson <gbenson@redhat.com>
6060
6061 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6062 All uses updated.
6063
1b6d4134
GB
60642014-06-18 Gary Benson <gbenson@redhat.com>
6065
6066 * i386-nat.c (debug_printf): New macro.
6067 (i386_get_debug_register_length): Likewise.
6068 (TARGET_HAS_DR_LEN_8): Use above macro.
6069 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6070 and printf_unfiltered. Use phex to format values.
6071
9b4550ef
GB
60722014-06-18 Gary Benson <gbenson@redhat.com>
6073
6074 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6075 Make const.
6076
6e62758f
GB
60772014-06-18 Gary Benson <gbenson@redhat.com>
6078
6079 * i386-nat.c: Comment changes.
6080
51c79e94
GB
60812014-06-18 Gary Benson <gbenson@redhat.com>
6082
6083 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6084
3e11889a
GB
60852014-06-18 Gary Benson <gbenson@redhat.com>
6086
6087 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6088 (i386_insert_aligned_watchpoint): Likewise.
6089 (i386_remove_aligned_watchpoint): Likewise.
6090 (i386_handle_nonaligned_watchpoint): Likewise.
6091
fc6e2f03
GB
60922014-06-18 Gary Benson <gbenson@redhat.com>
6093
6094 * i386-nat.c: Whitespace changes.
6095
2afe7d50
SB
60962014-06-17 Samuel Bronson <naesten@gmail.com>
6097
6098 * MAINTAINERS: Update Roland McGrath's email address.
6099 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6100 Red Hat a while ago, and giving me a current address.
2afe7d50 6101
3bca49ee
TT
61022014-06-17 Tom Tromey <tromey@redhat.com>
6103
6104 * utils.h (savestring): Remove declaration.
6105
6e366df1
TT
61062014-06-17 Tom Tromey <tromey@redhat.com>
6107
6108 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6109
6be47f0c
KS
61102014-06-16 Keith Seitz <keiths@redhat.com>
6111
6112 PR mi/15863
6113 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6114 to update the varobj if inferior_ptid is null_ptid.
6115
7bc112c1
TT
61162014-06-16 Tom Tromey <tromey@redhat.com>
6117
6118 * target.h (struct target_ops) <to_info_proc>: Make parameter
6119 const.
6120 (target_info_proc): Update.
6121 * target.c (target_info_proc): Make "args" const.
6122 * procfs.c (procfs_info_proc): Update.
6123 * linux-tdep.c (linux_info_proc): Update.
6124 (linux_core_info_proc_mappings): Make "args" const.
6125 (linux_core_info_proc): Update.
6126 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6127 * gdbarch.c: Rebuild.
6128 * gdbarch.h: Rebuild.
6129 * corelow.c (core_info_proc): Update.
6130
fee354ee
TT
61312014-06-16 Tom Tromey <tromey@redhat.com>
6132
6133 * target.h (struct target_ops) <to_disconnect>: Make parameter
6134 const.
6135 (target_disconnect): Update.
6136 * target.c (target_disconnect): Make "args" const.
6137 * target-delegates.c: Rebuild.
6138 * remote.c (remote_disconnect): Update.
6139 * record.h (record_disconnect): Update.
6140 * record.c (record_disconnect): Update.
6141 * inf-child.c (inf_child_disconnect): Update.
6142
a30bf1f1
TT
61432014-06-16 Tom Tromey <tromey@redhat.com>
6144
6145 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6146 * target.c (debug_to_rcmd, default_rcmd): Update.
6147 * target-delegates.c: Rebuild.
6148 * remote.c (remote_rcmd): Update.
6149 * monitor.c (monitor_rcmd): Update.
6150
d03de421
PA
61512014-06-16 Pedro Alves <palves@redhat.com>
6152
6153 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6154 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6155 have OBJF_SHARED set.
6156 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6157 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6158 instead of OBJF_USERLOADED.
6159 * objfiles.h (OBJF_SHARED): Update comment.
6160 (userloaded_objfile_contains_address_p): Rename to ...
6161 (shared_objfile_contains_address_p): ... this, and update
6162 comments.
6163 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6164 new objfile.
6165 (remove_symbol_file_command): Skip objfiles that don't have
6166 OBJF_SHARED set.
6167
99f4262f
TT
61682014-06-16 Tom Tromey <tromey@redhat.com>
6169
6170 * minsyms.h (prim_record_minimal_symbol)
6171 (prim_record_minimal_symbol_and_info): Update comments.
6172
97d66cc6
EZ
61732014-06-14 Eli Zaretskii <eliz@gnu.org>
6174
6175 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6176 or --without-guile, according to how GDB was built.
6177
635c7e8a
TT
61782014-06-13 Tom Tromey <tromey@redhat.com>
6179
6180 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6181 to help_list.
6182 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6183 to help_list.
6184 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6185 help_list.
6186 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6187 help_list.Pass all_commands, not -1, to help_list.
6188 * cli/cli-dump.c (dump_command, append_command)
6189 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6190 (binary_dump_command, binary_append_command): Pass all_commands,
6191 not -1, to help_list.
6192 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6193 -1, to help_list.
6194 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6195 -1, to help_list.
6196 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6197 help_list.
6198 * top.c (set_history): Pass all_commands, not -1, to help_list.
6199 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6200 all_commands, not -1, to help_list.
6201 * symfile.c (overlay_command): Pass all_commands, not -1, to
6202 help_list.
6203 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6204 help_list.
6205 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6206 help_list.
6207 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6208 -1, to help_list.
6209 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6210 not -1, to help_list.
6211 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6212 not -1, to help_list.
6213 * maint.c (maintenance_command, maintenance_info_command)
6214 (maintenance_print_command, maintenance_set_cmd): Pass
6215 all_commands, not -1, to help_list.
6216 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6217 help_list.
6218 * language.c (set_check): Pass all_commands, not -1, to help_list.
6219 * infcmd.c (unset_command): Pass all_commands, not -1, to
6220 help_list.
6221 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6222 help_list.
6223 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6224 help_list.
6225 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6226 help_list.
6227 * breakpoint.c (save_command): Pass all_commands, not -1, to
6228 help_list.
6229 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6230 all_commands, not -1, to help_list.
6231
b94ade42
PL
62322014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6233
6234 * regcache.c (struct register_to_invalidate): New structure.
6235 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6236 functions.
6237 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6238
31f628ae
YQ
62392014-06-12 Yao Qi <yao@codesourcery.com>
6240
6241 * varobj.c (varobj_get_num_children): Call
6242 varobj_is_dynamic_p.
6243 (varobj_list_children): Likewise.
6244 (varobj_update): Likewise. Update comments.
6245
cde5ef40
YQ
62462014-06-12 Yao Qi <yao@codesourcery.com>
6247
6248 * varobj.c (varobj_pretty_printed_p): Rename to ...
6249 (varobj_is_dynamic_p): ... this. New function.
6250 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6251 (varobj_is_dynamic_p): Declare.
6252 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6253 (mi_print_value_p, varobj_update_one): Likewise.
6254
576ea091
YQ
62552014-06-12 Pedro Alves <pedro@codesourcery.com>
6256 Yao Qi <yao@codesourcery.com>
6257
6258 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6259 (varobj_get_iterator): Wrap up code for pretty-printer by
6260 "#if HAVE_PYTHON" and "#endif".
6261 (update_dynamic_varobj_children): Likewise.
6262
827f100c
YQ
62632014-06-12 Pedro Alves <pedro@codesourcery.com>
6264 Yao Qi <yao@codesourcery.com>
6265
6266 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6267 gdb_python_initialized is false. Move some code from varobj.c.
6268 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6269 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6270 (struct varobj_item): Moved to varobj-iter.h".
6271 (varobj_clear_saved_item): New function.
6272 (update_dynamic_varobj_children): Move python-related code to
6273 py-varobj.c.
6274 (free_variable): Call varobj_clear_saved_item and
6275 varobj_iter_delete.
6276
e5250216
YQ
62772014-06-12 Pedro Alves <pedro@codesourcery.com>
6278 Yao Qi <yao@codesourcery.com>
6279
6280 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6281 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6282 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6283 (py-varobj.o): New rule.
6284 * python/py-varobj.c: New file.
6285 * python/python-internal.h (py_varobj_get_iterator): Declare.
6286 * varobj-iter.h: New file.
6287 * varobj.c: Include "varobj-iter.h"
6288 (struct varobj) <child_iter>: Change its type from "PyObject *"
6289 to "struct varobj_iter *".
6290 <saved_item>: Likewise.
6291 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6292 [HAVE_PYTHON] (varobj_get_iterator): New function.
6293 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6294 python-specific code to python/py-varobj.c.
6295 (install_visualizer): Call varobj_iter_delete instead of
6296 Py_XDECREF.
6297 * varobj.h (varobj_ensure_python_env): Declare.
6298
5a2e0d6e
YQ
62992014-06-12 Yao Qi <yao@codesourcery.com>
6300
6301 * varobj.c (struct varobj_item): New structure.
6302 (create_child_with_value): Update declaration.
6303 (varobj_add_child): Replace arguments 'name' and 'value' with
6304 'item'. All callers updated.
6305 (install_dynamic_child): Likewise.
6306 (update_dynamic_varobj_children): Likewise.
6307 (varobj_add_child): Likewise.
6308 (create_child_with_value): Likewise.
6309
919b9a93
JB
63102014-06-11 Joel Brobecker <brobecker@adacore.com>
6311
6312 * NEWS: Create a new section for the next release branch.
6313 Rename the section of the current branch, now that it has
6314 been cut.
6315
71a55bdf
JB
63162014-06-11 Joel Brobecker <brobecker@adacore.com>
6317
6318 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6319 * version.in: Bump version to 7.8.50.DATE-cvs.
6320
364fe1f7
PA
63212014-06-11 Pedro Alves <palves@redhat.com>
6322
6323 PR remote/17028
6324 * ser-mingw.c (net_windows_socket_check_pending): New function.
6325 (net_windows_select_thread): Ignore spurious wakeups. Use
6326 net_windows_socket_check_pending.
6327 (net_windows_wait_handle): Check for pending events with
6328 ioctlsocket, through net_windows_socket_check_pending, instead of
6329 checking the socket's event.
6330
5a6c7709
SC
63312014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6332
6333 * python/python-internal.h (gdb_PyObject_GetAttrString)
6334 (gdb_PyObject_HasAttrString): New inline function definitions.
6335 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6336 char * of the second argument to PyObject_GetAttrString.
74228e77 6337
0e58ee40
JB
63382014-06-10 Joel Brobecker <brobecker@adacore.com>
6339
6340 * serial.c (serial_write): Fix index of character to be printed
6341 in call to serial_logchar when serial debug traces are enabled.
6342
d190df30
JB
63432014-06-10 Joel Brobecker <brobecker@adacore.com>
6344
6345 * gdbtypes (resolve_dynamic_range): Add function description.
6346
b4b01d36
PA
63472014-06-09 Pedro Alves <palves@redhat.com>
6348
6349 * linux-nat.c (linux_child_follow_fork): Initialize status with
6350 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6351 inner block. Only pass the signal to PTRACE_DETACH if in pass
6352 state.
6353
3657956b
GB
63542014-06-09 Gary Benson <gbenson@redhat.com>
6355
6356 * common/signals.c (gdb_signal_from_host): Reorder to separate
6357 the always-available ANSI-standard signals from the signals that
6358 require checking.
6359 (do_gdb_signal_to_host): Likewise.
6360 * proc-events.c (signal_table): Likewise.
6361
c077881a
HZ
63622014-06-08 Hui Zhu <hui@codesourcery.com>
6363
6364 * common/linux-ptrace.c (linux_disable_event_reporting): New
6365 function.
6366 * common/linux-ptrace.h (linux_disable_event_reporting): New
6367 declaration.
6368 * linux-nat.c (linux_child_follow_fork): Do a single step before
6369 detach.
6370
4186eb54
KS
63712014-06-07 Keith Seitz <keiths@redhat.com>
6372
6373 Revert:
6374 PR c++/16253
6375 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6376 from symbol_matches_domain in symtab.c. All local callers
6377 of symbol_matches_domain updated.
6378 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6379 search STRUCT_DOMAIN.
6380 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6381 independently. standard_lookup will do that automatically.
6382 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6383 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6384 (cp_lookup_symbol_in_namespace): Likewise.
6385 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6386 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6387 may return a STRUCT_DOMAIN match.
6388 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6389 * cp-support.c: Include language.h.
6390 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6391 VAR_DOMAIN.
6392 * psymtab.c (match_partial_symbol): Compare the requested
6393 domain with the symbol's domain directly.
6394 (lookup_partial_symbol): Likewise.
6395 * symtab.c (lookup_symbol_in_language): Explain when/why
6396 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6397 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6398 appropriate languages.
6399 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6400 and moved to ada-lang.c
6401 (lookup_block_symbol): Explain that this function only returns
6402 symbol matching the requested DOMAIN.
6403 Compare the requested domain with the symbol's domain directly.
6404 (iterate_over_symbols): Compare the requested domain with the
6405 symbol's domain directly.
6406 * symtab.h (symbol_matches_domain): Remove.
6407
25326a28 64082014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6409
6410 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6411 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6412 (gdbscm_guile_version_is_at_least): Declare.
6413 (gdbscm_scm_string_to_int): Declare.
6414 * guile/guile.c (gdbscm_guile_major_version): New global.
6415 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6416 (guile_datadir): New static global.
6417 (gdbscm_guile_data_directory): New function.
6418 (initialize_scheme_side): Update.
6419 (misc_guile_functions): Add guile-data-directory.
6420 (initialize_gdb_module): Fetch guile version number.
6421 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6422 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6423 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6424 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6425 comments.
6426 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6427 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6428 * guile/scm-value.c (gdbscm_value_to_string): Only call
6429 scm_port_conversion_strategy if Guile version >= 2.0.6.
6430
0a770bb2 64312014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6432
6433 * main.c (print_gdb_help): Add -q and --silent.
6434
73ba372c
GB
64352014-06-06 Gary Benson <gbenson@redhat.com>
6436
6437 * common/signals.c: Remove preprocessor conditionals for
6438 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6439 SIGSEGV and SIGTERM.
6440 * proc-events.c: Likewise.
6441
c33b2f12
MM
64422014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6443
6444 * symfile.c (symfile_free_objfile): Remove restriction to
6445 OBJF_USERLOADED.
6446 * symfile-mem.c (symbol_file_add_from_memory): Call
6447 add_target_sections_of_objfile.
6448
fb934770
LC
64492014-06-05 Ludovic Courtès <ludo@gnu.org>
6450
6451 * guile/scm-value.c (gdbscm_history_append_x): Use
6452 'vlscm_get_value_smob_arg_unsafe' instead of
6453 'vlscm_scm_to_value'.
6454
6ef284bd
SM
64552014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 PR mi/15806
6458 * utils.c (printchar): Don't escape at all if quoter is NUL.
6459 Update function documentation to clarify effect of parameter
6460 QUOTER.
6461 * remote.c (escape_buffer): Pass '\\' as the quoter to
6462 fputstrn_unfiltered.
6463 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6464 generate the output.
6465 (mi_solib_unloaded): Same.
6466
270c9937
JB
64672014-06-05 Joel Brobecker <brobecker@adacore.com>
6468
6469 * development.sh: Delete.
6470 * Makefile.in (config.status): Adjust dependency on development.sh.
6471 * configure.ac: Adjust development.sh source call.
6472 * configure: Regenerate.
6473
16f691fb
DE
64742014-06-04 Doug Evans <xdje42@gmail.com>
6475
6476 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6477 is_scheme_bkpt, spec.
6478 (bpscm_make_breakpoint_smob): Initialize new members.
6479 (gdbscm_create_breakpoint_x): Split into two ...
6480 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6481 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6482 (scheme_function breakpoint_functions): Update.
6483 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6484 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6485 register-breakpoint!.
6486
ef7cab6b
JB
64872014-06-04 Joel Brobecker <brobecker@adacorer.com>
6488
6489 PR server/17023
6490 * mem-break.c (z_type_supported): Return zero if
6491 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6492
012370f6
TT
64932014-06-04 Tom Tromey <tromey@redhat.com>
6494
6495 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6496 value_from_contents_and_address_unresolved.
6497 (ada_template_to_fixed_record_type_1): Likewise.
6498 (ada_which_variant_applies): Likewise.
6499 * value.h (value_from_contents_and_address_unresolved): Declare.
6500 * value.c (value_from_contents_and_address_unresolved): New
6501 function.
6502 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6503 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6504 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6505
92e2a17f
TT
65062014-06-04 Tom Tromey <tromey@redhat.com>
6507
6508 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6509
c0939df1
TT
65102014-06-04 Tom Tromey <tromey@redhat.com>
6511
6512 * procfs.c (procfs_attach): Make "args" const.
6513 * windows-nat.c (windows_attach): Make "args" const.
6514 * nto-procfs.c (procfs_attach): Make "args" const.
6515 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6516 * go32-nat.c (go32_attach): Make "args" const.
6517 * gnu-nat.c (gnu_attach): Make "args" const.
6518 * darwin-nat.c (darwin_attach): Make "args" const.
6519 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6520 * linux-nat.c (linux_nat_attach): Make "args" const.
6521 * remote.c (extended_remote_attach_1, extended_remote_attach):
6522 Make "args" const.
6523 * target.h (struct target_ops) <to_attach>: Make "args" const.
6524 (find_default_attach): Likewise.
6525 * utils.c (parse_pid_to_attach): Make "args" const.
6526 * utils.h (parse_pid_to_attach): Update.
6527
8eaff7cd
TT
65282014-06-04 Tom Tromey <tromey@redhat.com>
6529
6530 * target-delegates.c: Rebuild.
6531 * target.c (default_thread_address_space): New function.
6532 (target_thread_address_space): Simplify.
6533 * target.h (struct target_ops) <to_thread_address_space>: Add
6534 TARGET_DEFAULT_FUNC.
6535
1913f160
DE
65362014-06-04 Doug Evans <xdje42@gmail.com>
6537
6538 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6539
70ad5bff
MM
65402014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6541
6542 * record-btrace.c: Include event-loop.h and inf-loop.h.
6543 (record_btrace_resume_exec_dir)
6544 (record_btrace_async_inferior_event_handler)
6545 (record_btrace_handle_async_inferior_event): New.
6546 (record_btrace_open): Create async event handler.
6547 (record_btrace_close): Delete async event handler.
6548 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6549 Mark async event handler.
6550 (record_btrace_execution_direction): New.
6551 (init_record_btrace_ops): Initialize to_execution_direction.
6552
b6210538
DE
65532014-06-03 Doug Evans <xdje42@gmail.com>
6554
6555 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6556 (gdbscm_make_parameter): Ditto.
6557
a5b1fd27
DE
65582014-06-03 Doug Evans <dje@google.com>
6559
6560 * exec.c (exec_close_1): Call clear_section_table instead of
6561 resize_section_table.
6562 (clear_section_table): New function.
6563 (resize_section_table): Make static. Rename arg num_added to
6564 adjustment.
6565 * exec.h (clear_section_table): Declare.
6566 (resize_section_table): Delete.
6567 * progspace.c (release_program_space): Call clear_section_table
6568 instead of resize_section_table.
6569
0c6e92a5
SC
65702014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6571
6572 * NEWS (Python Scripting): Add entry about the new xmethods
6573 feature.
6574
883964a7
SC
65752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6576
6577 * python/py-xmethods.c: New file.
6578 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6579 (objfpy_dealloc): XDECREF on the new xmethods field.
6580 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6581 field.
6582 (objfpy_get_xmethods): New function.
6583 (objfile_getset): New entry 'xmethods'.
6584 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6585 (pspy_dealloc): XDECREF on the new xmethods field.
6586 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6587 field.
6588 (pspy_get_xmethods): New function.
6589 (pspace_getset): New entry 'xmethods'.
6590 * python/python-internal.h: Add declarations for new functions.
6591 * python/python.c (_initialize_python): Invoke
6592 gdbpy_initialize_xmethods.
6593 * python/lib/gdb/__init__.py (xmethods): New
6594 attribute.
6595 * python/lib/gdb/xmethod.py: New file.
6596 * python/lib/gdb/command/xmethods.py: New file.
6597
58992dc5
SC
65982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6599
6600 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6601 best match method returned by find_overload_match is an xmethod.
6602 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6603 the best matching operator returned by find_overload_match is an
6604 xmethod.
6605 * valops.c: #include "extension.h".
6606 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6607 Return void. The list of matching source methods is returned in
6608 "fn_list" and a vector of matching debug method workers is
6609 returned in "xm_worker_vec". Update all callers.
6610 (value_find_oload_method_list): Likewise.
6611 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6612 non-NULL, then the index of the best matching method in this
6613 vector is returned. Update all callers.
6614 (find_overload_match): Include xmethods while performing overload
6615 resolution.
6616
e81e7f5e
SC
66172014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6618
6619 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6620 * extension-priv.h (struct extension_language_ops): Add the
6621 xmethod interface.
6622 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6623 get_matching_xmethod_workers, get_xmethod_argtypes,
6624 invoke_xmethod, free_xmethod_worker,
6625 free_xmethod_worker_vec): New functions.
6626 * extension.h: #include "common/vec.h".
6627 New function declarations.
6628 (struct xmethod_worker): New struct.
6629 (VEC (xmethod_worker_ptr)): New vector type.
6630 (xmethod_worker_ptr): New typedef.
6631 (xmethod_worker_vec): Likewise.
6632 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6633 builtin_type.
6634 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6635 (struct builtin_type): New field "xmethod".
6636 * valarith.c (value_ptradd): Assert that the value argument is not
6637 lval_xcallable.
6638 * valops.c (value_must_coerce_to_target): Return 0 for
6639 lval_xcallable values.
6640 * value.c (struct value): New field XM_WORKER in the field
6641 LOCATION.
6642 (value_address, value_raw_address): Return 0 for lval_xcallable
6643 values.
6644 (set_value_address): Assert that the value is not an
6645 lval_xcallable.
6646 (value_free): Free the associated xmethod worker when freeing
6647 lval_xcallable values.
6648 (set_value_component_location): Assert that the WHOLE value is not
6649 lval_xcallable.
6650 (value_of_xmethod, call_xmethod): New functions.
6651 * value.h: Declare "struct xmethod_worker".
6652 Declare new functions value_of_xmethod, call_xmethod.
6653
ef370185
JB
66542014-06-03 Joel Brobecker <brobecker@adacore.com>
6655 Pedro Alves <palves@redhat.com>
6656
6657 PR breakpoints/17000
6658 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6659 New function, extracted from software_breakpoint_inserted_here_p.
6660 (software_breakpoint_inserted_here_p): Replace factored out code
6661 by call to find_non_raw_software_breakpoint_inserted_here.
6662 (bp_target_info_copy_insertion_state): New function.
6663 (bkpt_insert_location): Handle the case of a single-step
6664 breakpoint already inserted at the same address.
6665 (bkpt_remove_location): Handle the case of a single-step
6666 breakpoint still inserted at the same address.
6667 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6668 breakpoint already inserted at the same address.
6669 (deprecated_remove_raw_breakpoint): Handle the case of a
6670 non-raw breakpoint still inserted at the same address.
6671 (find_single_step_breakpoint): New function, extracted from
6672 single_step_breakpoint_inserted_here_p.
6673 (find_single_step_breakpoint): New function,
6674 factored out from single_step_breakpoint_inserted_here_p.
6675 (single_step_breakpoint_inserted_here_p): Reimplement.
6676
1e2ccb61
BM
66772014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6678
6679 Pushed by Joel Brobecker <brobecker@adacore.com>
6680 * source.c (show_substitute_path_command): Fix display of matching
6681 substitution rules.
6682
d3448d85
GB
66832014-06-03 Gary Benson <gbenson@redhat.com>
6684
6685 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6686
06eb1586
DE
66872014-06-02 Doug Evans <xdje42@gmail.com>
6688
6689 Add parameter support for Guile.
6690 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6691 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6692 (scm-param.o): New rule.
6693 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6694 (gdbscm_misc_error): Declare.
6695 (gdbscm_canonicalize_command_name): Declare.
6696 (gdbscm_scm_to_host_string): Declare.
6697 (gdbscm_scm_from_host_string): Declare.
6698 (gdbscm_initialize_parameters): Declare.
6699 * guile/guile.c (initialize_gdb_module): Call
6700 gdbscm_initialize_parameters.
6701 * guile/lib/gdb.scm: Export parameter symbols.
6702 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6703 cmdscm_canonicalize_name and made public. All callers updated.
6704 * guile/scm-exception.c (gdbscm_misc_error): New function.
6705 * guile/scm-param.c: New file.
6706 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6707 (gdbscm_scm_to_host_string): New function.
6708 (gdbscm_scm_from_host_string): New function.
6709 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6710
e698b8c4
DE
67112014-06-02 Doug Evans <xdje42@gmail.com>
6712
6713 Add command support for Guile.
6714 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6715 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6716 (scm-cmd.o): New rule.
6717 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6718 (gdbscm_user_error_p): Declare.
6719 (gdbscm_parse_command_name): Declare.
6720 (gdbscm_valid_command_class_p): Declare.
6721 (gdbscm_initialize_commands): Declare.
6722 * guile/guile.c (initialize_gdb_module): Call
6723 gdbscm_initialize_commands.
6724 * guile/lib/gdb.scm: Export command symbols.
6725 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6726 (throw-user-error): New function.
6727 * guile/scm-cmd.c: New file.
6728 * guile/scm-exception.c (user_error_symbol): New static global.
6729 (gdbscm_user_error_p): New function.
6730 (gdbscm_initialize_exceptions): Set user_error_symbol.
6731 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6732
fb1f94b0
PM
67332014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6734
6735 * top.c (command_loop): Handle comments here...
6736 (command_line_input): ... not here.
6737
ded03782
DE
67382014-06-02 Doug Evans <xdje42@gmail.com>
6739
6740 Add progspace support for Guile.
6741 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6742 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6743 (scm-progspace.o): New rule.
6744 * guile/guile-internal.h (pspace_smob): New typedef.
6745 (psscm_pspace_smob_pretty_printers): Declare.
6746 (psscm_pspace_smob_from_pspace): Declare.
6747 (psscm_scm_from_pspace): Declare.
6748 * guile/guile.c (initialize_gdb_module): Call
6749 gdbscm_initialize_pspaces.
6750 * guile/lib/gdb.scm: Export progspace symbols.
6751 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6752 support.
6753 (append-pretty-printer!): Ditto.
6754 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6755 Implement.
6756 * guile/scm-progspace.c: New file.
6757
397998fc
AM
67582014-06-03 Alan Modra <amodra@gmail.com>
6759
6760 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6761 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6762
6aa5f3a6
DE
67632014-06-02 Doug Evans <dje@google.com>
6764
6765 Add support for skeletonless type units.
6766 * dwarf2read.c (struct dwarf2_per_objfile): New member
6767 n_allocated_type_units.
6768 (struct dwarf2_per_objfile) <tu_stats>: New member
6769 nr_all_type_units_reallocs.
6770 (create_signatured_type_table_from_index): Initialize
6771 n_allocated_type_units
6772 (create_all_type_units): Ditto.
6773 (add_type_unit): Move up in file. New arg slot.
6774 All callers updated. Increase space for all_type_units more
6775 efficiently.
6776 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6777 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6778 (lookup_dwp_signatured_type): Ditto.
6779 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6780 All callers updated.
6781 (build_type_psymtabs_1): Leave type_unit_groups as
6782 NULL if no TUs present.
6783 (print_tu_stats): New function.
6784 (process_skeletonless_type_unit): New function.
6785 (process_dwo_file_for_skeletonless_type_units): New
6786 function.
6787 (process_skeletonless_type_units): New function.
6788 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6789 Call print tu_stats if debugging enabled.
6790
41fac0cf
PA
67912014-06-02 Pedro Alves <palves@redhat.com>
6792
6793 * breakpoint.c (build_target_command_list): Don't build a command
6794 list if we have any duplicate location that isn't a dprintf.
6795
cd1608cc
PA
67962014-06-02 Pedro Alves <palves@redhat.com>
6797
6798 * breakpoint.c (dprintf_breakpoint_hit): New function.
6799 (initialize_breakpoint_ops): Install it as dprintf's
6800 breakpoint_hit method.
6801
486ef3b9
JB
68022014-06-02 Joel Brobecker <brobecker@adacore.com>
6803
6804 * source.c (substitute_path_rule_matches): Simplify using
6805 filename_ncmp instead of FILENAME_CMP.
6806
230cd560
JB
68072014-06-02 Joel Brobecker <brobecker@adacore.com>
6808
6809 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6810
16954d5d
LC
68112014-06-01 Ludovic Courtès <ludo@gnu.org>
6812
6813 * configure.ac: When Guile is available, check for the
6814 availability of 'scm_new_smob'.
6815 * configure, config.h.in: Regenerate.
6816 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6817 function.
6818
53e8a631
AB
68192014-05-30 Andrew Burgess <aburgess@broadcom.com>
6820
6821 * frame.c (struct frame_info): Add stop_string field.
6822 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6823 (get_prev_frame_always): Old content moved into
6824 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6825 TRY_CATCH, handle MEMORY_ERROR exceptions.
6826 (frame_stop_reason_string): New function definition.
6827 * frame.h (unwind_stop_reason_to_string): Extend comment to
6828 mention frame_stop_reason_string.
6829 (frame_stop_reason_string): New function declaration.
6830 * stack.c (frame_info): Switch to frame_stop_reason_string.
6831 (backtrace_command_1): Switch to frame_stop_reason_string.
6832 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6833 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6834 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6835
70e38b8e
AB
68362014-05-30 Andrew Burgess <aburgess@broadcom.com>
6837
6838 * frame.c (frame_stop_reason_string): Rename to ...
6839 (unwind_stop_reason_to_string): this.
6840 * frame.h (frame_stop_reason_string): Rename to ...
6841 (unwind_stop_reason_to_string): this.
6842 * stack.c (frame_info): Update call to frame_stop_reason_string.
6843 (backtrace_command_1): Likewise.
6844 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6845 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6846
938f0e2f
AB
68472014-05-30 Andrew Burgess <aburgess@broadcom.com>
6848
6849 * frame.c (remove_prev_frame): New function.
6850 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6851 remove_prev_frame.
6852
a09dd441
PA
68532014-05-29 Pedro Alves <palves@redhat.com>
6854
6855 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6856 and make it const. When a single-step decays to a continue,
6857 clear 'step', not 'hw_step'. Pass whether the caller wanted
6858 to step to user_visible_resume_ptid, not what we ask the
6859 target to do.
6860
bdc36728
PA
68612014-05-29 Pedro Alves <palves@redhat.com>
6862
6863 * infrun.c (process_event_stop_test, handle_step_into_function)
6864 (handle_step_into_function_backward): Adjust.
6865 Don't set the even thread's stop_step and call stop_waiting before
6866 calling end_stepping_range. Instead do that ...
6867 (end_stepping_range): ... here. Take an ecs pointer parameter.
6868
22bcd14b
PA
68692014-05-29 Pedro Alves <palves@redhat.com>
6870
6871 * infrun.c (stop_stepping): Rename to ...
6872 (stop_waiting): ... this.
6873 (proceed): Update comment.
6874 (process_event_stop_test, handle_inferior_event)
6875 (handle_signal_stop, handle_step_into_function)
6876 (handle_step_into_function_backward): Update.
6877
4ae57c05
PA
68782014-05-29 Pedro Alves <palves@redhat.com>
6879
6880 * infcall.c (run_inferior_call): Don't check whether the current
6881 thread is running after the proceed call.
6882
329ea579
PA
68832014-05-29 Pedro Alves <palves@redhat.com>
6884 Tom Tromey <tromey@redhat.com>
6885
6886 * NEWS: Mention "maint set target-async", "set mi-async", and that
6887 background execution commands are now always available.
6888 * target.h (target_async_permitted): Update comment.
6889 * target.c (target_async_permitted, target_async_permitted_1):
6890 Default to 1.
6891 (set_target_async_command): Rename to ...
6892 (maint_set_target_async_command): ... this.
6893 (show_target_async_command): Rename to ...
6894 (maint_show_target_async_command): ... this.
6895 (_initialize_target): Adjust.
6896 * infcmd.c (prepare_execution_command): Make extern.
6897 * inferior.h (prepare_execution_command): Declare.
6898 * infrun.c (set_observer_mode): Leave target async alone.
6899 * mi/mi-interp.c (mi_interpreter_init): Install
6900 mi_on_sync_execution_done as sync_execution_done observer.
6901 (mi_on_sync_execution_done): New function.
6902 (mi_execute_command_input_handler): Don't print the prompt if we
6903 just started a synchronous command with an async target.
6904 (mi_on_resume): Check sync_execution before printing prompt.
6905 * mi/mi-main.h (mi_async_p): Declare.
6906 * mi/mi-main.c: Include gdbcmd.h.
6907 (mi_async_p): New function.
6908 (mi_async, mi_async_1): New globals.
6909 (set_mi_async_command, show_mi_async_command, mi_async): New
6910 functions.
6911 (exec_continue): Call prepare_execution_command.
6912 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6913 (mi_execute_async_cli_command): Use mi_async_p.
6914 (_initialize_mi_main): Install "set mi-async". Make
6915 "target-async" a deprecated alias.
6916
92bcb5f9
PA
69172014-05-29 Pedro Alves <palves@redhat.com>
6918
6919 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6920 (_initialize_cli_interp): Adjust.
6921 * event-loop.c: Include "observer.h".
6922 (start_event_loop): Notify 'command_error' observers instead of
6923 calling display_gdb_prompt. Remove FIXME comment.
6924 * event-top.c (display_gdb_prompt): Remove call into the
6925 interpreters.
6926 * inf-loop.c: Include "observer.h".
6927 (inferior_event_handler): Notify 'command_error' observers instead
6928 of calling display_gdb_prompt.
6929 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6930 observers instead of calling display_gdb_prompt.
6931 * interps.c (interp_set): Don't call display_gdb_prompt.
6932 (current_interp_display_prompt_p): Delete.
6933 * interps.h (interp_prompt_p): Delete declaration.
6934 (interp_prompt_p_ftype): Delete.
6935 (struct interp_procs) <prompt_proc_p>: Delete field.
6936 (current_interp_display_prompt_p): Delete declaration.
6937 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6938 (_initialize_mi_interp): Adjust.
6939 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6940 'command_error' observers.
6941 (tui_on_sync_execution_done, tui_on_command_error): New
6942 functions.
6943 (tui_display_prompt_p): Delete.
6944 (_initialize_tui_interp): Adjust.
6945
fd664c91
PA
69462014-05-29 Pedro Alves <palves@redhat.com>
6947
6948 PR gdb/13860
6949 * cli/cli-interp.c: Include infrun.h and observer.h.
6950 (cli_uiout, cli_interp): New globals.
6951 (cli_on_signal_received, cli_on_end_stepping_range)
6952 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6953 functions.
6954 (cli_interpreter_init): Install them as 'end_stepping_range',
6955 'signal_received' 'signal_exited', 'exited' and 'no_history'
6956 observers.
6957 (_initialize_cli_interp): Remove cli_interp local.
6958 * infrun.c (handle_inferior_event): Call the several stop reason
6959 observers instead of printing the stop reason directly.
6960 (end_stepping_range): New function.
6961 (print_end_stepping_range_reason, print_signal_exited_reason)
6962 (print_exited_reason, print_signal_received_reason)
6963 (print_no_history_reason): Make static, and add an uiout
6964 parameter. Print to that instead of to CURRENT_UIOUT.
6965 * infrun.h (print_end_stepping_range_reason)
6966 (print_signal_exited_reason, print_exited_reason)
6967 (print_signal_received_reason print_no_history_reason): New
6968 declarations.
6969 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6970 'mi_uiout'.
6971 <cli_uiout>: New field.
6972 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6973 uiout for CLI output. Install 'signal_received',
6974 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6975 observers.
6976 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6977 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6978 (mi_on_no_history): New functions.
6979 (ui_out_free_cleanup): Delete function.
6980 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6981 instead use the one already stored in the MI interpreter data.
6982 (mi_ui_out): Adjust.
6983 * tui/tui-interp.c: Include infrun.h and observer.h.
6984 (tui_interp): New global.
6985 (tui_on_signal_received, tui_on_end_stepping_range)
6986 (tui_on_signal_exited, tui_on_exited)
6987 (tui_on_no_history): New functions.
6988 (tui_init): Install them as 'end_stepping_range',
6989 'signal_received' 'signal_exited', 'exited' and 'no_history'
6990 observers.
6991 (_initialize_tui_interp): Delete tui_interp local.
6992
8817a6f2
PA
69932014-05-29 Pedro Alves <palves@redhat.com>
6994
6995 PR gdb/15713
6996 * linux-nat.c (linux_nat_resume_callback): Rename the second
6997 parameter to 'except'. Skip LP if it points to EXCEPT.
6998 (linux_nat_resume): Don't mark the event lwp as not stopped
6999 before resuming sibling lwps. Instead ask
7000 linux_nat_resume_callback to skip the event lwp. Mark it as not
7001 stopped after actually resuming it.
7002 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7003 resuming it.
7004 (wait_lwp): Mark the lwp as stopped here.
7005 (stop_wait_callback): Mark the lwp as not stopped right after
7006 resuming it. Don't mark lwps as stopped here.
7007 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7008 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7009
251bde03
PA
70102014-05-29 Pedro Alves <palves@redhat.com>
7011
7012 PR PR15693
7013 * infrun.c (resume): Determine how much to resume depending on
7014 whether the caller wanted a step, not whether we can hardware step
7015 the target. Mark all threads that we intend to run as running,
7016 unless we're calling an inferior function.
7017 (normal_stop): If the thread is running an infcall, don't finish
7018 thread state.
7019 * target.c (target_resume): Don't mark threads as running here.
7020
7f3c0343
JB
70212014-05-28 Joel Brobecker <brobecker@adacore.com>
7022
7023 * serial.c (_initialize_serial): Remove support for
7024 the "set remotebaud" and "show remotebaud" commands.
7025 * NEWS: Add entry documenting the removal of that command.
7026
ee34b3f9
YQ
70272014-05-28 Yao Qi <yao@codesourcery.com>
7028
7029 * charset.c: Fix typo in comments.
7030
add6c04d
GB
70312014-05-27 Gary Benson <gbenson@redhat.com>
7032
7033 * utils.c (internal_vproblem): Prompt for a bug report.
7034
92c48fc5
AW
70352014-05-26 Andy Wingo <wingo@igalia.com>
7036
7037 * guile/scm-arch.c (arscm_mark_arch_smob):
7038 * guile/scm-block.c (bkscm_mark_block_smob)
7039 (bkscm_mark_block_syms_progress_smob):
7040 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7041 * guile/scm-exception.c (exscm_mark_exception_smob):
7042 * guile/scm-frame.c (frscm_mark_frame_smob):
7043 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7044 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7045 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7046 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7047 (ppscm_mark_pretty_printer_worker_smob):
7048 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7049 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7050 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7051 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7052 mark functions.
7053 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7054 function.
7055
b2715b27
AW
70562014-05-26 Andy Wingo <wingo@igalia.com>
7057 Doug Evans <xdje42@gmail.com>
7058
7059 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7060 empty_base_class. All uses updated.
7061 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7062 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7063 Adapt all callers.
7064 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7065 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7066 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7067 (gdbscm_gsmob_has_property_p, add_property_name)
7068 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7069 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7070 (gdb-object-has-property?, gdb-object-properties): Remove.
7071 (gdb-object-kind): Renamed from gsmob-kind.
7072
214ab2da
AW
70732014-05-26 Andy Wingo <wingo@igalia.com>
7074
7075 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7076 * configure: Regenerate.
7077
589fdceb
MM
70782014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7079
7080 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7081
67b5c0c1
MM
70822014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7083
7084 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7085 (replay_memory_access_read_only, replay_memory_access_read_write)
7086 (replay_memory_access_types, replay_memory_access)
7087 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7088 (cmd_set_record_btrace, cmd_show_record_btrace)
7089 (cmd_show_replay_memory_access): New.
7090 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7091 (record_btrace_remove_breakpoint): Replace
7092 record_btrace_allow_memory_access with replay_memory_access.
7093 (_initialize_record_btrace): Add commands.
7094 * NEWS: Announce it.
7095
036cd381
RR
70962014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7097
7098 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7099
c77c1e42
RR
71002014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7101
7102 * MAINTAINERS (Write After Approval): Move self back from
7103 paper trail.
7104
45741a9c
PA
71052014-05-22 Pedro Alves <palves@redhat.com>
7106
7107 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7108 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7109 (disable_randomization, enum exec_direction_kind)
7110 (execution_direction, stop_registers, start_remote)
7111 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7112 (wait_for_inferior, normal_stop, get_last_target_status)
7113 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7114 (insert_step_resume_breakpoint_at_sal)
7115 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7116 (set_step_info, print_stop_event, signal_stop_state)
7117 (signal_print_state, signal_pass_state, signal_stop_update)
7118 (signal_print_update, signal_pass_update)
7119 (update_signals_program_target, clear_exit_convenience_vars)
7120 (displaced_step_dump_bytes, update_observer_mode)
7121 (signal_catch_update, gdb_signal_from_command): Move
7122 declarations ...
7123 * infrun.h: ... to this new file.
7124 * amd64-tdep.c: Include infrun.h.
7125 * annotate.c: Include infrun.h.
7126 * arch-utils.c: Include infrun.h.
7127 * arm-linux-tdep.c: Include infrun.h.
7128 * arm-tdep.c: Include infrun.h.
7129 * break-catch-sig.c: Include infrun.h.
7130 * breakpoint.c: Include infrun.h.
7131 * common/agent.c: Include infrun.h instead of inferior.h.
7132 * corelow.c: Include infrun.h.
7133 * event-top.c: Include infrun.h.
7134 * go32-nat.c: Include infrun.h.
7135 * i386-tdep.c: Include infrun.h.
7136 * inf-loop.c: Include infrun.h.
7137 * infcall.c: Include infrun.h.
7138 * infcmd.c: Include infrun.h.
7139 * infrun.c: Include infrun.h.
7140 * linux-fork.c: Include infrun.h.
7141 * linux-nat.c: Include infrun.h.
7142 * linux-thread-db.c: Include infrun.h.
7143 * monitor.c: Include infrun.h.
7144 * nto-tdep.c: Include infrun.h.
7145 * procfs.c: Include infrun.h.
7146 * record-btrace.c: Include infrun.h.
7147 * record-full.c: Include infrun.h.
7148 * remote-m32r-sdi.c: Include infrun.h.
7149 * remote-mips.c: Include infrun.h.
7150 * remote-notif.c: Include infrun.h.
7151 * remote-sim.c: Include infrun.h.
7152 * remote.c: Include infrun.h.
7153 * reverse.c: Include infrun.h.
7154 * rs6000-tdep.c: Include infrun.h.
7155 * s390-linux-tdep.c: Include infrun.h.
7156 * solib-irix.c: Include infrun.h.
7157 * solib-osf.c: Include infrun.h.
7158 * solib-svr4.c: Include infrun.h.
7159 * target.c: Include infrun.h.
7160 * top.c: Include infrun.h.
7161 * windows-nat.c: Include infrun.h.
7162 * mi/mi-interp.c: Include infrun.h.
7163 * mi/mi-main.c: Include infrun.h.
7164 * python/py-threadevent.c: Include infrun.h.
7165
98eb56a4
PA
71662014-05-22 Pedro Alves <palves@redhat.com>
7167
7168 * infrun.c (handle_inferior_event): Store the exit code for
7169 --return-child-result here, instead of ...
7170 (print_exited_reason): ... here.
7171
17b2616c
PA
71722014-05-21 Pedro Alves <palves@redhat.com>
7173
7174 PR gdb/13860
7175 * gdbthread.h (struct thread_control_state): New field
7176 `command_interp'.
7177 * infrun.c (follow_fork): Copy the new thread control field to the
7178 child fork thread.
7179 (clear_proceed_status_thread): Clear the new thread control field.
7180 (proceed): Set the new thread control field.
7181 * interps.h (command_interp): Declare.
7182 * interps.c (command_interpreter): New global.
7183 (command_interp): New function.
7184 (interp_exec): Set `command_interpreter' while here.
7185 * cli-out.c (cli_uiout_dtor): New function.
7186 (cli_ui_out_impl): Install it.
7187 * mi/mi-interp.c: Include cli-out.h.
7188 (mi_cmd_interpreter_exec): Add comment.
7189 (restore_current_uiout_cleanup): New function.
7190 (ui_out_free_cleanup): New function.
7191 (mi_on_normal_stop): If finishing an execution command started by
7192 a CLI command, or any kind of breakpoint-like event triggered,
7193 print the stop event to the output (CLI) stream.
7194 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7195
5166082f
PA
71962014-05-21 Pedro Alves <palves@redhat.com>
7197
7198 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7199 current source line having changed.
7200 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7201 * infrun.c (normal_stop): Adjust call to
7202 set_current_sal_from_frame.
7203 * source.c (clear_lines_listed_range): New function.
7204 (set_current_source_symtab_and_line, identify_source_line): Clear
7205 the lines listed range.
7206 (line_info): Handle the first "info line" after the current source
7207 line having changed.
7208 * stack.c (print_stack_frame): Remove center handling.
7209 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7210 center sal.line.
7211
c1ee2fb3
PA
72122014-05-21 Pedro Alves <palves@redhat.com>
7213
7214 * inf-child.c (inf_child_mourn_inferior): New function.
7215 * inf-child.h (inf_child_mourn_inferior): New declaration.
7216 * darwin-nat.c (darwin_mourn_inferior): Use
7217 inf_child_mourn_inferior.
7218 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7219 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7220 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7221 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7222 * windows-nat.c (windows_mourn_inferior): Likewise.
7223
5c6d4fb2
DE
72242014-05-21 Doug Evans <xdje42@gmail.com>
7225
250748cb 7226 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7227
4a2722c5
DE
72282014-05-21 Doug Evans <xdje42@gmail.com>
7229
17292b30 7230 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7231 (gdbscm_out_of_range_error): Ditto.
7232 (gdbscm_memory_error): Ditto.
250748cb
DE
7233 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7234 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7235 (gdbscm_out_of_range_error): Update.
7236 (gdbscm_memory_error): Update.
7237 (gdbscm_scm_to_target_string_unsafe): Delete.
7238
6a3cb8e8
PA
72392014-05-21 Pedro Alves <palves@redhat.com>
7240
7241 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7242 globals.
7243 (inf_child_open_target): New function.
7244 (inf_child_open): Use inf_child_open_target to push the target
7245 instead of erroring out.
7246 (inf_child_disconnect, inf_child_close)
7247 (inf_child_maybe_unpush_target): New functions.
7248 (inf_child_target): Install inf_child_disconnect and
7249 inf_child_close. Store a pointer to the returned object.
7250 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7251 declarations.
7252 * target.c (auto_connect_native_target): New global.
7253 (show_default_run_target): New function.
7254 (find_default_run_target): Return NULL if automatically connecting
7255 to the native target is disabled.
7256 (_initialize_target): Install set/show auto-connect-native-target.
7257 * NEWS: Mention "set auto-connect-native-target", and "target
7258 native".
7259 * linux-nat.c (super_close): New global.
7260 (linux_nat_close): Call super_close.
7261 (linux_nat_add_target): Store a pointer to the base class's
7262 to_close method.
7263 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7264 inf_child_maybe_unpush.
7265 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7266 already pushed.
7267 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7268 the inferior. Use inf_child_maybe_unpush_target.
7269 (inf_ttrace_attach): Don't push the target if it is already
7270 pushed.
7271 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7272 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7273 after mourning the inferior. Use inf_child_maybe_unpush_target.
7274 (darwin_attach_pid): Don't push the target if it is already
7275 pushed.
7276 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7277 mourning the inferior. Use inf_child_maybe_unpush_target.
7278 (gnu_detach): Use inf_child_maybe_unpush_target.
7279 * go32-nat.c (go32_create_inferior): Don't push the target if it
7280 is already pushed.
7281 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7282 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7283 (procfs_open): Rename to ...
7284 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7285 comments. Can target_preopen before changing node. Call
7286 inf_child_open_target to push the target explicitly.
7287 (procfs_attach): Don't push the target if it is already pushed.
7288 (procfs_detach): Use inf_child_maybe_unpush_target.
7289 (procfs_create_inferior): Don't push the target if it is already
7290 pushed.
7291 (nto_native_ops): New global.
7292 (procfs_open): Reimplement.
7293 (procfs_native_open): New function.
7294 (init_procfs_targets): Install procfs_native_open as to_open of
7295 "target native". Store a pointer to the "native" target in
7296 nto_native_ops.
7297 * procfs.c (procfs_attach): Don't push the target if it is already
7298 pushed.
7299 (procfs_detach): Use inf_child_maybe_unpush_target.
7300 (procfs_mourn_inferior): Only unpush the target after mourning the
7301 inferior. Use inf_child_maybe_unpush_target.
7302 (procfs_init_inferior): Don't push the target if it is already
7303 pushed.
7304 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7305 if it is already pushed.
7306
930ee1b1
PA
73072014-05-21 Pedro Alves <palves@redhat.com>
7308
7309 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7310 and "procfs" targets are now called "native" instead.
7311
1f5d1b13
PA
73122014-05-21 Pedro Alves <palves@redhat.com>
7313
7314 * go32-nat.c (go32_open): Delete.
7315 (go32_target): Don't override the to_open method.
7316
132f8e03
PA
73172014-05-21 Pedro Alves <palves@redhat.com>
7318
7319 * nto-procfs.c (procfs_can_run): New function.
7320 (nto_procfs_ops): New global.
7321 (init_procfs_targets): New, based on procfs_target. Install
7322 "target native" in addition to "target procfs".
7323 (_initialize_procfs): Call init_procfs_targets instead of adding
7324 the target here.
7325
03c136c3
PA
73262014-05-21 Pedro Alves <palves@redhat.com>
7327
7328 * windows-nat.c (windows_target): Don't override to_shortname,
7329 to_longname or to_doc.
7330
a635d0f3
PA
73312014-05-21 Pedro Alves <palves@redhat.com>
7332
7333 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7334 to_doc.
7335
4f9b5133
PA
73362014-05-21 Pedro Alves <palves@redhat.com>
7337
7338 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7339 to_shortname, to_longname or to_doc.
7340
bc85afde
PA
73412014-05-21 Pedro Alves <palves@redhat.com>
7342
7343 * go32-nat.c (go32_target): Don't override to_shortname,
7344 to_longname or to_doc.
7345
4ebfc96e
PA
73462014-05-21 Pedro Alves <palves@redhat.com>
7347
7348 * inf-child.c (inf_child_open): Remove mention of "child".
7349 (inf_child_target): Rename target to "native" instead of "child".
7350
2648dfed
AA
73512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7352
7353 * Makefile.in (SFILES): Delete "regset.c".
7354 (COMMON_OBS): Delete "regset.o".
7355 * regset.c: Remove.
7356 * regset.h (regset_alloc): Delete prototype.
7357
b13feb94
AA
73582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7359
7360 * sparc-linux-tdep.c (sparc32_linux_gregset)
7361 (sparc32_linux_fpregset): New static regset structures.
7362 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7363 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7364 'fpregset' fields.
7365 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7366 (sparc64_linux_fpregset): New static regset structures.
7367 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7368 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7369 New static regset structures.
7370 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7371 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7372 New static regset structures.
7373 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7374 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7375 New static regset structures.
7376 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7377 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7378 New static regset structures.
7379 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7380
b4fd25c9
AA
73812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7382
7383 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7384 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7385 register maps ("regmaps") from "*regset" to "*regmap". Do this
7386 for all regmap types and variables.
7387 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7388 (sparc32_linux_supply_core_gregset)
7389 (sparc32_linux_collect_core_gregset)
7390 (sparc32_linux_supply_core_fpregset)
7391 (sparc32_linux_collect_core_fpregset): Likewise.
7392 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7393 (sparc_gregmap, sparc_fpregmap): ... these.
7394 (sparc_supply_gregset, sparc_collect_gregset)
7395 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7396 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7397 (_initialize_sparc_nat): Rename regmaps.
7398 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7399 (sparc_gregmap, sparc_fpregmap): ... these.
7400 (sparc_supply_gregset, sparc_collect_gregset)
7401 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7402 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7403 Rename macros to...
7404 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7405 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7406 Likewise.
7407 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7408 Rename to...
7409 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7410 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7411 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7412 regmaps.
7413 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7414 (sparc32_bsd_fpregset): Rename to...
7415 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7416 (sparc32_bsd_fpregmap): ... these.
7417 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7418 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7419 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7420 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7421 (struct sparc_gregmap, struct sparc_fpregmap)
7422 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7423 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7424 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7425 (sparc32_supply_regset, sparc32_collect_gregset)
7426 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7427 prototypes.
7428 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7429 (sparc64_linux_ptrace_gregmap): ... this.
7430 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7431 (_initialize_sparc64_linux_nat): Rename regmaps.
7432 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7433 (sparc64_linux_core_gregmap): ... this.
7434 (sparc64_linux_supply_core_gregset)
7435 (sparc64_linux_collect_core_gregset)
7436 (sparc64_linux_supply_core_fpregset)
7437 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7438 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7439 (sparc64_sol2_fpregset): Rename to...
7440 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7441 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7442 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7443 regmaps.
7444 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7445 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7446 (sparc64_bsd_fpregset): Rename to...
7447 (struct sparc_gregmap, sparc64_sol2_gregmap)
7448 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7449 (sparc64_bsd_fpregmap): ... these.
7450 (sparc64_supply_gregset, sparc64_collect_gregset)
7451 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7452 prototypes.
7453 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7454 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7455 (sparc64fbsd_gregmap): ... this.
7456 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7457 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7458 Rename regmaps.
7459 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7460 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7461 (sparc64nbsd_collect_fpregset): Likewise.
7462 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7463 (sparc64nbsd_gregmap): ... this.
7464 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7465 regmaps.
7466 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7467 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7468 (sparc64obsd_gregmap): ... this.
7469 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7470 regmaps.
7471 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7472 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7473 (sparc32nbsd_gregmap): ... this.
7474 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7475 regmaps.
7476
8fea3224
AA
74772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7478
7479 * score-tdep.c (score7_linux_gregset): New static regset
7480 structure.
7481 (score7_linux_regset_from_core_section): Remove dynamic regset
7482 allocation.
7483 (score_gdbarch_init): Drop allocation of tdep structure.
7484 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7485
24534243
AA
74862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7487
7488 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7489 regset structures.
7490 (am33_regset_from_core_section): Remove dynamic regset
7491 allocations.
7492
b7195f27
AA
74932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7494
7495 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7496 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7497 structures.
7498 (mips_linux_regset_from_core_section): Remove dynamic regset
7499 allocations.
7500 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7501 'gregset64', 'fpregset', and 'fpregset64'.
7502 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7503 deleted tdep fields.
7504
ecc37a5a
AA
75052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7506
7507 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7508 regset structures.
7509 (amd64_regset_from_core_section): Remove dynamic regset
7510 allocations.
7511 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7512 structure.
7513 (amd64obsd_regset_from_core_section): Remove dynamic regset
7514 allocation.
7515 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7516 Likewise.
7517 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7518 x86-common regset supply function.
7519 * i386-tdep.c (i386_collect_gregset): Make static.
7520 (i386_gregset): New global regset structure.
7521 (i386_fpregset, i386_xstateregset): New static regset structures.
7522 (i386_regset_from_core_section): Remove dynamic regset
7523 allocations.
7524 (i386_gdbarch_init): Remove initialization of tdep fields
7525 'gregset', 'fpregset', and 'xstateregset'.
7526 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7527 'fpregset', and 'xstateregset'.
7528 (i386_collect_gregset): Remove prototype.
7529 (i386_gregset): New declaration.
7530 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7531 structure.
7532 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7533 allocation.
7534
b7611c43
AA
75352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7536
7537 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7538 (arm_linux_vfpregset): New static regset structures.
7539 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7540 regset structures.
7541 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7542 and 'vfpregset' fields.
7543
a069a2bd
AA
75442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7545
7546 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7547 (aarch64_linux_fpregset): New static regset structures.
7548 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7549 of regset structures.
7550 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7551 'fpregset' fields.
7552
09424cff
AA
75532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7554
7555 * regset.h (struct regset): Remove gdbarch field.
7556 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7557 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7558 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7559 Likewise.
7560 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7561 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7562 (ppc32_linux_vsxregset): Likewise.
7563 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7564 via the regcache instead of the regset.
7565 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7566 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7567 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7568 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7569 Likewise.
7570
3ca7dae4
AA
75712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7572
7573 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7574 Constify structures.
7575 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7576 (alphanbsd_aout_gregset): Likewise.
7577 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7578 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7579 Likewise.
7580 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7581 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7582 Likewise.
7583 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7584 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7585 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7586 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7587 * m88k-tdep.c (m88k_gregset): Likewise.
7588 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7589 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7590 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7591 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7592 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7593 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7594 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7595 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7596 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7597 Likewise.
7598 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7599 * sh-tdep.h (sh_corefile_gregset): Likewise.
7600 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7601 * vax-tdep.c (vax_gregset): Likewise.
7602
5876f503
JK
76032014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7604
7605 Fix TLS access for -static -pthread.
7606 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7607 (try_thread_db_load_1): Initialize it.
7608 (thread_db_get_thread_local_address): Call it if LM is zero.
7609 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7610 * target.h (struct target_ops) (to_get_thread_local_address): Add
7611 load_module_addr comment.
7612
0256a6ac
PA
76132014-05-21 Pedro Alves <palves@redhat.com>
7614
7615 * dcache.c (dcache_read_memory_partial): If reading the cache line
7616 fails, fallback to reading just the memory the caller wanted.
7617
227533ac
DE
76182014-05-20 Doug Evans <dje@google.com>
7619
7620 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7621 instead of get_current_arch.
7622
936d2992
PA
76232014-05-20 Pedro Alves <palves@redhat.com>
7624
7625 * NEWS: Mention that compare-sections now works with all targets.
7626
7627 * remote.c (PACKET_qCRC): New enum value.
7628 (remote_verify_memory): Don't send qCRC if the target has no
7629 execution. Use packet_support/packet_ok. If the target doesn't
7630 support the qCRC packet, fallback to a deep memory copy.
7631 (compare_sections_command): Say "target image" instead of "remote
7632 executable".
7633 (_initialize_remote): Add PACKET_qCRC to the list of config
7634 packets that have no associated command. Extend comment.
7635 * target.c (simple_verify_memory, default_verify_memory): New
7636 function.
7637 * target.h (struct target_ops) <to_verify_memory>: Default to
7638 default_verify_memory.
7639 (simple_verify_memory): New declaration.
7640 * target-delegates.c: Regenerate.
7641
e59fa00f
MM
76422014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7643
7644 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7645
f2205de0
HZ
76462014-05-20 Hui Zhu <hui@codesourcery.com>
7647 Yao Qi <yao@codesourcery.com>
7648
7649 PR backtrace/16558
7650 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7651 and change address of sp and pc.
7652
c4e54771
TT
76532014-05-19 Tom Tromey <tromey@redhat.com>
7654
7655 * gdbtypes.c (rank_function): Use XNEWVEC.
7656 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7657
73051182
DE
76582014-05-19 Doug Evans <dje@google.com>
7659
7660 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7661 build_type_unit_groups and moved closer to only caller. Remove
7662 arguments. All references updated. Remove outdated .gdb_index
7663 comment.
7664 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7665 build_type_psymtabs_1.
7666
8832e7e3
DE
76672014-05-19 Doug Evans <dje@google.com>
7668
7669 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7670 n_type_unit_groups, all_type_unit_groups. All uses removed.
7671 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7672 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7673 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7674 (add_type_unit_group_to_table): Delete.
7675
cd8ae15e
DE
76762014-05-19 Doug Evans <dje@google.com>
7677
7678 * eval.c (evaluate_subexp_standard): Add some comments.
7679
08f4850b
DE
76802014-05-17 Doug Evans <xdje42@gmail.com>
7681
7682 * progspace.c (remove_program_space): Delete, unused.
7683 * progspace.h (remove_program_space): Ditto.
7684
bed8455c
DE
76852014-05-17 Doug Evans <xdje42@gmail.com>
7686
7687 * inferior.c (prune_inferiors): Fix comment.
7688 (remove_inferior_command): Call prune_program_spaces.
7689
8d551b02
DE
76902014-05-16 Doug Evans <dje@google.com>
7691
7692 New command line option -D.
7693 * NEWS: Mention it.
7694 * main.c (set_gdb_data_directory): New function.
7695 (captured_main): Recognize -D. Flag error for --data-directory "".
7696 Call set_gdb_data_directory.
7697 (print_gdb_help): Print --data-directory, -D.
7698 * main.h (set_gdb_data_directory): Declare.
7699 * top.c (staged_gdb_datadir): New static global.
7700 (set_gdb_datadir): Call set_gdb_data_directory
7701 (show_gdb_datadir): New function.
7702 (init_main): Update init of data-directory parameter.
7703
18848e28
GF
77042014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7705
7706 Import the "dirfd" gnulib module.
7707 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7708 * gnulib/aclocal.m4: Update.
7709 * gnulib/config.in: Update.
7710 * gnulib/configure: Update.
7711 * gnulib/import/Makefile.am: Update.
7712 * gnulib/import/Makefile.in: Update.
7713 * gnulib/import/dirfd.c: New.
7714 * gnulib/import/m4/dirfd.m4: New.
7715 * gnulib/import/m4/gnulib-cache.m4: Update.
7716 * gnulib/import/m4/gnulib-comp.m4: Update.
7717
95c64f92
YQ
77182014-05-16 Pierre Muller <muller@sourceware.org>
7719 Yao Qi <yao@codesourcery.com>
7720
7721 * valprint.c (print_wchar): Move the code on checking whether
7722 W is a printable wide char to the default branch of switch
7723 statement below. Call wchar_printable instead of gdb_iswprint.
7724
cac395ea
TM
77252014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7726
19679eca 7727 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7728 ldr.w and ldrd instructions.
7729
83655187
DE
77302014-05-15 Doug Evans <dje@google.com>
7731
7732 * dwarf2read.c (read_structure_type): Delete outdated comments.
7733
dd756689
TT
77342014-05-14 Tom Tromey <tromey@redhat.com>
7735
7736 * macrocmd.c (print_macro_definition): Reindent.
7737
75ddda77
DE
77382014-05-13 Doug Evans <xdje42@gmail.com>
7739
7740 * python/py-cmd.c (cmdpy_completer): Add comment.
7741 (completers): Make const.
7742
b0f16a3e
SM
77432014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7744
7745 * infrun.c (resume): Remove should_resume (unused). Move up
7746 declaration of resume_ptid.
7747
033c3379
TT
77482014-05-13 Tom Tromey <tromey@redhat.com>
7749
7750 * language.h (unop_type_check): Remove.
7751 (binop_type_check): Don't declare.
7752
9b44a3a5
AA
77532014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7754
7755 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7756 call to regcache_raw_collect.
7757
303a33fa
SM
77582014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7759
7760 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7761 mi_console->quote as the quoting character.
7762
196100a0
SM
77632014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7766
f989a1c8
TT
77672014-04-29 Tom Tromey <tromey@redhat.com>
7768
7769 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7770 "show debug varobj".
7771
9404b58f
KM
77722014-05-07 Kyle McMartin <kyle@redhat.com>
7773
7774 Pushed by Joel Brobecker <brobecker@adacore.com>.
7775 * aarch64-tdep.c (aarch64_software_single_step): New function.
7776 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7777 with aarch64_software_single_step.
7778
5e49ba57
JB
77792014-05-05 Joel Brobecker <brobecker@adacore.com>
7780
7781 GDB 7.7.1 released.
7782
c888a17d
KS
77832014-05-05 Keith Seitz <keiths@redhat.com>
7784
7785 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7786 variable or history value is successfully parsed.
7787
290a839c
YQ
77882014-05-05 Yao Qi <yao@codesourcery.com>
7789 Pedro Alves <palves@redhat.com>
7790
7791 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7792 address of blocks that intersects the requested range. Trim
7793 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7794 sections.
7795 * ctf.c (ctf_xfer_partial): Likewise.
7796
91256dc2
YQ
77972014-05-05 Yao Qi <yao@codesourcery.com>
7798
7799 * printcmd.c (display_command): Remove the check to
7800 target_has_execution.
7801
07284463
MK
78022014-05-03 Mark Kettenis <kettenis@gnu.org>
7803
7804 * ppcobsd-nat.c: Include "obsd-nat.h".
7805 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7806 add_target.
7807 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7808
30a1e6cc
SDJ
78092014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7810
7811 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7812 and 16-bit signed and unsigned arguments. Update comment.
7813 (stap_parse_probe_arguments): Extend code to handle such
7814 arguments. Use warning instead of complaint to notify about
7815 unrecognized bitness.
7816
f33da99a
SDJ
78172014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7818
7819 PR breakpoints/16889
7820 * stap-probe.c (stap_parse_probe_arguments): Simplify
7821 check for non-prefixed probes (i.e., probes whose
7822 arguments do not start with "N@"). Always set the
7823 argument type to a sane value.
7824
95cf3b38
DT
78252014-05-01 David Taylor <dtaylor@emc.com>
7826
7827 * remote.c (compare_sections_command): Add -r option to compare
7828 all loadable read-only sections.
7829
1cfdf534
SC
78302014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7831
7832 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7833 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7834 Update all callers.
7835 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7836 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7837 Remove unused CORE_ADDR argument. Update all callers.
7838
ca4f7f8b
PA
78392014-04-29 Pedro Alves <palves@redhat.com>
7840
7841 * remote.c (struct packet_config) <detect>: Extend comment.
7842 (add_packet_config_cmd): Don't set the config's detect or support
7843 fields here.
7844 (init_all_packet_configs): Also initialize the config's 'detect'
7845 field.
7846 (reset_all_packet_configs_support): New function.
7847 (remote_open_1): Call reset_all_packet_configs_support instead of
7848 init_all_packet_configs.
7849 (_initialize_remote): Initialize all packet configs. Assert that
7850 all packets have an associated command, except a few known
7851 outliers.
7852
11c1ba78
JB
78532014-04-28 Joel Brobecker <brobecker@adacore.com>
7854
7855 * dwarf2read.c (read_subrange_type): Handle dynamic
7856 DW_AT_lower_bound attributes.
7857
8739bc53
JB
78582014-04-28 Joel Brobecker <brobecker@adacore.com>
7859
7860 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7861 dynamic bounds before computing its upper bound.
7862 (ada_discrete_type_low_bound): Same as above with the lower bound.
7863
6f8a3220
JB
78642014-04-28 Joel Brobecker <brobecker@adacore.com>
7865
7866 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7867 range types. Adjust the array handling implementation to
7868 take advantage of this change.
7869 (resolve_dynamic_range): New function, mostly extracted from
7870 resolve_dynamic_bounds.
7871 (resolve_dynamic_array): New function, mostly extracted from
7872 resolve_dynamic_bounds.
7873 (resolve_dynamic_bounds): Delete.
7874 (resolve_dynamic_type): Reimplement. Add handling of
7875 TYPE_CODE_RANGE types.
7876
4d072ce4
JB
78772014-04-28 Joel Brobecker <brobecker@adacore.com>
7878
7879 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7880 handling of parallel ___XA types.
7881
52865325
JB
78822014-04-28 Joel Brobecker <brobecker@adacore.com>
7883
7884 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7885 unnecessary second call to static_unwrap_type.
7886
433e77fa
HZ
78872014-04-27 Hui Zhu <hui@codesourcery.com>
7888
7889 * stack.c (print_frame_info): Call do_gdb_disassembly with
7890 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7891
b51a69ee
DE
78922014-04-26 Doug Evans <xdje42@gmail.com>
7893
7894 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7895
7ae1a6a6
PA
78962014-04-25 Pedro Alves <palves@redhat.com>
7897
7898 PR server/16255
7899 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7900 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7901 and newline from built string.
7902 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7903 (linux_ptrace_attach_fail_reason): ... this.
7904 * linux-nat.c (linux_nat_attach): Adjust to use
7905 linux_ptrace_attach_fail_reason.
7906
4082afcc
PA
79072014-04-25 Pedro Alves <palves@redhat.com>
7908
7909 * remote.c (struct remote_state): Remove multi_process_aware,
7910 non_stop_aware, cond_tracepoints, cond_breakpoints,
7911 breakpoint_commands, fast_tracepoints, static_tracepoints,
7912 install_in_trace, disconnected_tracing,
7913 enable_disable_tracepoints, string_tracing, and
7914 augmented_libraries_svr4_read fields.
7915 (remote_multi_process_p): Move further below in the file.
7916 (struct packet_config): Add comments.
7917 (update_packet_config): Delete function.
7918 (show_packet_config_cmd): Use packet_config_support.
7919 (add_packet_config_cmd): Use NULL as set callback.
7920 (packet_ok): "set remote foo-packet"-style commands no longer
7921 change config->supported -- adjust.
7922 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7923 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7924 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7925 (PACKET_QNonStop, PACKET_multiprocess_feature)
7926 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7927 (PACKET_DisconnectedTracing_feature)
7928 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7929 (set_remote_protocol_packet_cmd): Delete function.
7930 (packet_config_support, packet_support): New functions.
7931 (set_remote_protocol_Z_packet_cmd): Don't call
7932 update_packet_config.
7933 (remote_query_attached, remote_pass_signals)
7934 (remote_program_signals, remote_threads_info)
7935 (remote_threads_extra_info, remote_start_remote): Use
7936 packet_support.
7937 (remote_start_remote): Use packet_config_support and
7938 packet_support.
7939 (init_all_packet_configs): Set all packets to unknown support,
7940 instead of calling update_packet_config.
7941 (remote_check_symbols): Use packet_support.
7942 (remote_supported_packet): Unconditionally set the packet config's
7943 support status.
7944 (remote_multi_process_feature, remote_non_stop_feature)
7945 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7946 (remote_breakpoint_commands_feature)
7947 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7948 (remote_install_in_trace_feature)
7949 (remote_disconnected_tracing_feature)
7950 (remote_enable_disable_tracepoint_feature)
7951 (remote_string_tracing_feature)
7952 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7953 (remote_protocol_features): Adjust to use remote_supported_packet
7954 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7955 "ConditionalTracepoints", "ConditionalBreakpoints",
7956 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7957 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7958 "EnableDisableTracepoints", and "tracenz".
7959 (remote_query_supported): Use packet_support.
7960 (remote_open_1): Adjust.
7961 (extended_remote_attach_1): Use packet_support. Switch on the
7962 result of packet_ok instead of checking whether the packet ended
7963 up disabled.
7964 (remote_vcont_resume): Use packet_support.
7965 (remote_resume, remote_stop_ns, fetch_register_using_p)
7966 (remote_prepare_to_store, store_register_using_P)
7967 (check_binary_download, remote_write_bytes): Use packet_support.
7968 (remote_vkill): Use packet_support. Switch on the result of
7969 packet_ok instead of checking whether the packet ended up
7970 disabled.
7971 (extended_remote_supports_disable_randomization): Use
7972 packet_support.
7973 (extended_remote_run): Switch on the result of packet_ok instead
7974 of checking whether the packet ended up disabled.
7975 (remote_insert_breakpoint, remote_remove_breakpoint)
7976 (remote_insert_watchpoint, remote_remove_watchpoint)
7977 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7978 packet_support.
7979 (remote_search_memory): Use packet_config_support.
7980 (remote_get_thread_local_address, remote_get_tib_address)
7981 (remote_hostio_send_command, remote_can_execute_reverse): Use
7982 packet_support.
7983 (remote_supports_cond_tracepoints)
7984 (remote_supports_cond_breakpoints)
7985 (remote_supports_fast_tracepoints)
7986 (remote_supports_static_tracepoints)
7987 (remote_supports_install_in_trace)
7988 (remote_supports_enable_disable_tracepoint)
7989 (remote_supports_string_tracing)
7990 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7991 the packet config says the feature is enabled or disabled.
7992 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7993 (remote_get_trace_status): Use packet_support.
7994 (remote_set_disconnected_tracing): Adjust to check whether the
7995 feature is enabled with packet_support.
7996 (remote_set_trace_buffer_size, remote_use_agent)
7997 (remote_can_use_agent, remote_supports_btrace): Use
7998 packet_support.
7999 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8000 Use packet_config_support.
8001 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8002 the packet config says the feature is enabled or disabled.
8003 (set_range_stepping): Use packet_support.
8004
bdb52a22
TT
80052014-04-25 Tom Tromey <tromey@redhat.com>
8006
8007 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8008 argument.
8009
e9475ead
SA
80102014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8011
8012 * NEWS: Mention support for C99 variable length arrays.
8013
82eacd52
JB
80142014-04-24 Joel Brobecker <brobecker@adacore.com>
8015
8016 * ada-lang.c (standard_exc): Expand introductory comment.
8017
01f9f808
MS
80182014-04-24 Michael Sturm <michael.sturm@mintel.com>
8019 Walfred Tedeschi <walfred.tedeschi@intel.com>
8020
8021 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8022 AVX512 registers.
8023 (amd64_linux_read_description): Add code to handle AVX512 xstate
8024 mask and return respective tdesc.
8025 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8026 and features/i386/x32-avx512-linux.c.
8027 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8028 (amd64_linux_core_read_description): Add code to handle AVX512
8029 xstate mask and return respective tdesc.
8030 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8031 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8032 calculation.
8033 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8034 (tdesc_amd64_avx512_linux): New prototype.
8035 (tdesc_x32_avx512_linux): Likewise.
8036 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8037 features/i386/x32-avx512.c.
8038 (amd64_ymm_avx512_names): New register names for pseudo
8039 registers YMM16-31.
8040 (amd64_ymmh_avx512_names): New register names for raw registers
8041 YMMH16-31.
8042 (amd64_k_names): New register names for K registers.
8043 (amd64_zmmh_names): New register names for ZMM raw registers.
8044 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8045 (amd64_xmm_avx512_names): New register names for XMM16-31
8046 registers.
8047 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8048 registers.
8049 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8050 if feature is present.
8051 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8052 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8053 (AMD64_NUM_REGS): Adjust to new number of registers.
8054 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8055 registers supplied via XSTATE by AVX512 registers.
8056 (i386_linux_read_description): Add case for AVX512.
8057 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8058 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8059 (i386_linux_core_read_description): Add case for AVX512.
8060 (i386_linux_init_abi): Install supported register note section
8061 for AVX512.
8062 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8063 AVX512.
8064 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8065 registers to be number of zmm7h + 1.
8066 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8067 * i386-tdep.c: Include features/i386/i386-avx512.c.
8068 (i386_zmm_names): Add ZMM pseudo register names array.
8069 (i386_zmmh_names): Add ZMM raw register names array.
8070 (i386_k_names): Add K raw register names array.
8071 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8072 registers. AVX512 has 16 more ZMM registers than there are YMM
8073 registers.
8074 (i386_zmmh_regnum_p): Add function to look up register number of
8075 ZMM raw registers.
8076 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8077 (i386_k_regnum_p): Likewise for K raw registers.
8078 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8079 registers added by AVX512.
8080 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8081 registers added by AVX512.
8082 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8083 added by AVX512.
8084 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8085 (i386_pseudo_register_name): Add ZMM pseudo registers.
8086 (i386_zmm_type): Construct and return vector registers type for ZMM
8087 registers.
8088 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8089 ZMM0-31 pseudo registers and K registers.
8090 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8091 and YMM16-31 registers from register cache.
8092 (i386_pseudo_register_write): Add code to write K, ZMM and
8093 YMM16-31 registers.
8094 (i386_register_reggroup_p): Add code to include/exclude AVX512
8095 registers in/from respective register groups.
8096 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8097 registers if feature is present in xcr0.
8098 (i386_gdbarch_init): Add code to initialize AVX512 feature
8099 variables in tdep structure, wire in pseudo registers and call
8100 initialize_tdesc_i386_avx512.
8101 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8102 variables.
8103 (i386_regnum): Add AVX512 registers.
8104 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8105 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8106 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8107 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8108 512 bits wide.
8109 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8110 (i386_ymm_avx512_regnum_p): Likewise.
8111 (i386_k_regnum_p): Likewise.
8112 (i386_zmm_regnum_p): Likewise.
8113 (i386_zmmh_regnum_p): Likewise.
8114 * i387-tdep.c : Update year in copyright notice.
8115 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8116 XSAVE buffer.
8117 (XSAVE_YMM_AVX512_ADDR): New macro.
8118 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8119 XSAVE buffer.
8120 (XSAVE_XMM_AVX512_ADDR): New macro.
8121 (xsave_avx512_k_offset): New table for K register offsets in
8122 XSAVE buffer.
8123 (XSAVE_AVX512_K_ADDR): New macro.
8124 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8125 in XSAVE buffer.
8126 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8127 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8128 buffer.
8129 (i387_collect_xsave): Add code to collect AVX512 registers from
8130 XSAVE buffer.
8131 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8132 of XMM16-31 registers.
8133 (I387_NUM_K_REGS): New define for number of K registers.
8134 (I387_K0_REGNUM): New define for K0 register number.
8135 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8136 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8137 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8138 registers.
8139 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8140 (I387_XMM16_REGNUM): New define for XMM16 register number.
8141 (I387_YMM0_REGNUM): New define for YMM0 register number.
8142 (I387_KEND_REGNUM): New define for last K register number.
8143 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8144 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8145 number.
8146 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8147 number.
8148 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8149 size.
8150 * features/Makefile: Add AVX512 related files.
8151 * features/i386/32bit-avx512.xml: New file.
8152 * features/i386/64bit-avx512.xml: Likewise.
8153 * features/i386/amd64-avx512-linux.c: Likewise.
8154 * features/i386/amd64-avx512-linux.xml: Likewise.
8155 * features/i386/amd64-avx512.c: Likewise.
8156 * features/i386/amd64-avx512.xml: Likewise.
8157 * features/i386/i386-avx512-linux.c: Likewise.
8158 * features/i386/i386-avx512-linux.xml: Likewise.
8159 * features/i386/i386-avx512.c: Likewise.
8160 * features/i386/i386-avx512.xml: Likewise.
8161 * features/i386/x32-avx512-linux.c: Likewise.
8162 * features/i386/x32-avx512-linux.xml: Likewise.
8163 * features/i386/x32-avx512.c: Likewise.
8164 * features/i386/x32-avx512.xml: Likewise.
8165 * regformats/i386/amd64-avx512-linux.dat: New file.
8166 * regformats/i386/amd64-avx512.dat: Likewise.
8167 * regformats/i386/i386-avx512-linux.dat: Likewise.
8168 * regformats/i386/i386-avx512.dat: Likewise.
8169 * regformats/i386/x32-avx512-linux.dat: Likewise.
8170 * regformats/i386/x32-avx512.dat: Likewise.
8171 * NEWS: Add note about new support for AVX512.
8172
8173
08351840
PA
81742014-04-23 Pedro Alves <palves@redhat.com>
8175
8176 * breakpoint.c (insert_bp_location): Tolerate errors if the
8177 breakpoint is set in a user-loaded objfile.
8178 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8179 location is marked shlib_disabled. If the breakpoint is set in a
8180 user-loaded objfile is a GDB-side memory breakpoint, validate it
8181 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8182 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8183 flag.
8184 * mem-break.c (memory_validate_breakpoint): New function.
8185 * objfiles.c (userloaded_objfile_contains_address_p): New
8186 function.
8187 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8188 * target.h (memory_validate_breakpoint): New declaration.
8189
076855f9
PA
81902014-04-23 Pedro Alves <palves@redhat.com>
8191
8192 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8193 the breakpoint is set in a shared library, only suppress
8194 errors for software breakpoints, not hardware breakpoints.
8195
483805cf
PA
81962014-04-22 Pedro Alves <palves@redhat.com>
8197
8198 * infrun.c (schedlock_applies): New function, factored out from
8199 find_thread_needs_step_over.
8200 (find_thread_needs_step_over): Use it.
8201 (switch_back_to_stepped_thread): Always clear trap_expected if the
8202 step over is finished. Return early if scheduler locking applies.
8203 Look for the stepping thread and a potential step-over thread with
8204 a single loop.
8205 (currently_stepping_or_nexting_callback): Delete.
8206
a75fef0e
NC
82072014-04-22 Nick Clifton <nickc@redhat.com>
8208
8209 * NEWS: Mention that ARM sim now supports tracing.
8210
48b6e87e
YQ
82112014-04-22 Yao Qi <yao@codesourcery.com>
8212
8213 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8214 to ...
8215 * tracefile.c (tracefile_fetch_registers): ... it. New
8216 function.
8217 * tracefile.h (tracefile_fetch_registers): Declare.
8218 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8219 tracefile_fetch_registers.
8220
17617f2d
EZ
82212014-04-19 Eli Zaretskii <eliz@gnu.org>
8222
8223 PR gdb/14018
8224 * windows-nat.c (thread_rec): Don't display a warning when
8225 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8226 fails for any reason, set th->suspended to -1, so that we don't
8227 try to resume such a thread. Also, don't return NULL in these
8228 cases, to avoid completely ruin the session due to "PC register is
8229 not available" error.
8230 (do_windows_fetch_inferior_registers): Check errors in
8231 GetThreadContext call.
8232 (windows_continue): Accept an additional argument KILLED; if not
8233 zero, ignore errors in the SetThreadContext call, since the
8234 inferior was killed and is shutting down.
8235 (windows_resume, get_windows_debug_event)
8236 (windows_create_inferior, windows_mourn_inferior)
8237 (windows_kill_inferior): All callers of windows_continue changed
8238 to adjust to its new calling sequence.
8239
5723a6fd
YQ
82402014-04-19 Yao Qi <yao@codesourcery.com>
8241
8242 * ctf.c (ctf_open): Call post_create_inferior.
8243
614d5099
YQ
82442014-04-19 Yao Qi <yao@codesourcery.com>
8245
8246 * ctf.c (handle_id): New static variable.
8247 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8248 value. Get the declaration of event "register" and get length
8249 of field "contents".
8250
dac3e710
YQ
82512014-04-19 Yao Qi <yao@codesourcery.com>
8252
8253 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8254
2bca57ba
SC
82552014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8256
8257 * valops.c (oload_method_static): Remove unnecessary argument
8258 METHOD. Update all callers.
8259
51d48146
PA
82602014-04-18 Pedro alves <palves@redhat.com>
8261 Tom Tromey <tromey@redhat.com>
8262
8263 PR backtrace/15558
8264 * frame.c (get_prev_frame_1): Rename to ...
8265 (get_prev_frame_always): ... this, and make extern. Adjust.
8266 (skip_artificial_frames): Use get_prev_frame_always.
8267 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8268 (get_frame_unwind_stop_reason): Adjust to rename.
8269 * frame.h (get_prev_frame_always): Declare.
8270 * inline-frame.c: Include frame.h.
8271 (inline_frame_this_id): Use get_prev_frame_always.
8272
1bdad2e0
TG
82732014-04-18 Tristan Gingold <gingold@adacore.com>
8274
8275 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8276 code by using bfd_mach_o_get_base_address.
8277
7ce16bd4
UW
82782014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8279
8280 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8281 (spu_ax_pseudo_register_collect): New function.
8282 (spu_ax_pseudo_register_push_stack): Likewise.
8283 (spu_dwarf_reg_to_regnum): Likewise.
8284 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8285
2ed3c037
UW
82862014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8287
8288 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8289 Replace FRAME argument with FRAME_ID.
8290 * gdbarch.c, gdbarch.h: Regenerate.
8291 * findvar.c (default_value_from_register): Add GDBARCH argument;
8292 replace FRAME by FRAME_ID. No longer call get_frame_id.
8293 (value_from_register): Update call to gdbarch_value_from_register.
8294 * value.h (default_value_from_register): Update prototype.
8295 * s390-linux-tdep.c (s390_value_from_register): Update interface
8296 and call to default_value_from_register.
8297 * spu-tdep.c (spu_value_from_register): Likewise.
8298
8299 * findvar.c (address_from_register): Remove TYPE argument.
8300 Do not call value_from_register; use gdbarch_value_from_register
8301 with null_frame_id instead.
8302 * value.h (address_from_register): Update prototype.
8303 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8304 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8305 address_from_register interface change.
8306
71e50e83
YQ
83072014-04-17 Yao Qi <yao@codesourcery.com>
8308
8309 * gdbtypes.h: Update comments to link to types and macros'
8310 definitions.
8311
7a23c549
SC
83122014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8313
8314 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8315
22869d73
KS
83162014-04-16 Keith Seitz <keiths@redhat.com>
8317
8318 PR gdb/15827
8319 * dwarf2read.c (skip_one_die): Check that all relative-offset
8320 sibling DIEs fall within range of the current reader's buffer.
8321 (read_partial_die): Likewise.
8322
c4f87ca6
KS
83232014-04-16 Keith Seitz <keiths@redhat.com>
8324
8325 PR c++/16597
8326 * cp-namespace.c (lookup_symbol_file): If the type name of
8327 `this' is NULL, return immediately.
8328
b50c8614
KS
83292014-04-14 Keith Seitz <keiths@redhat.com>
8330
8331 PR c++/16253
8332 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8333 from symbol_matches_domain in symtab.c. All local callers
8334 of symbol_matches_domain updated.
8335 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8336 search STRUCT_DOMAIN.
8337 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8338 independently. standard_lookup will do that automatically.
8339 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8340 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8341 (cp_lookup_symbol_in_namespace): Likewise.
8342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8343 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8344 may return a STRUCT_DOMAIN match.
8345 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8346 * cp-support.c: Include language.h.
8347 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8348 VAR_DOMAIN.
8349 * psymtab.c (match_partial_symbol): Compare the requested
8350 domain with the symbol's domain directly.
8351 (lookup_partial_symbol): Likewise.
8352 * symtab.c (lookup_symbol_in_language): Explain when/why
8353 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8354 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8355 appropriate languages.
8356 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8357 and moved to ada-lang.c
8358 (lookup_block_symbol): Explain that this function only returns
8359 symbol matching the requested DOMAIN.
8360 Compare the requested domain with the symbol's domain directly.
8361 (iterate_over_symbols): Compare the requested domain with the
8362 symbol's domain directly.
8363 * symtab.h (symbol_matches_domain): Remove.
8364
3d567982
TT
83652014-04-14 Tom Tromey <tromey@redhat.com>
8366
8367 PR c++/15246:
8368 * c-exp.y (type_aggregate_p): New function.
8369 (qualified_name, classify_inner_name): Use it.
8370 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8371 and TYPE_TARGET_TYPE of an enum type.
8372 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8373 an enum type.
8374 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8375 handle TYPE_DECLARED_CLASS.
8376 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8377 types.
8378 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8379 * valops.c (enum_constant_from_type): New function.
8380 (value_aggregate_elt): Use it.
8381 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8382 TYPE_CODE_ENUM.
8383
c848d642
TT
83842014-04-14 Tom Tromey <tromey@redhat.com>
8385
8386 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8387 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8388 const.
8389 * value.h (value_aggregate_elt): Update.
8390
0626fc76
TT
83912014-04-14 Tom Tromey <tromey@redhat.com>
8392
8393 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8394
5ecaaa66
SA
83952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8396
8397 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8398 (evaluate_subexp_standard): Pass noside argument.
8399 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8400 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8401 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8402 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8403 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8404
1612e0c0
SA
84052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8406
8407 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8408 points to a constant blob.
8409
c451ebe5
SA
84102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8411
8412 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8413 property and store it as the high bound and flag the range accordingly.
8414 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8415 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8416 * gdbtypes.h (enum range_flags): New enum.
8417 (struct range_bounds): Add flags member.
8418
1d42e4c4
SA
84192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8420
8421 * c-typeprint.c (c_type_print_varspec_suffix): Added
8422 check for not yet resolved high bound. If unresolved, print
8423 "variable length" string to the console instead of random
8424 length.
8425
9f1f738a
SA
84262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8427
8428 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8429 value.
8430 (ada_template_to_fixed_record_type_1): Likewise.
8431 (ada_to_fixed_type_1): Likewise.
8432 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8433 (cp_print_value): Likewise.
8434 * d-valprint.c (dynamic_array_type): Likewise.
8435 * findvar.c (address_of_variable): Likewise.
8436 * jv-valprint.c (java_value_print): Likewise.
8437 * valops.c (value_ind): Likewise.
8438 * value.c (coerce_ref): Likewise.
8439
3c8452d4
SA
84402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8441
8442 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8443 value and retrieve the dynamic type size.
8444
4ad88275
SA
84452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8446
8447 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8448 passed to sizeof is dynamic evaluate the argument to compute the length.
8449
80180f79
SA
84502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8451 Joel Brobecker <brobecker@adacore.com>
8452
8453 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8454 (dwarf2_evaluate_property): New function.
8455 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8456 * dwarf2read.c (attr_to_dynamic_prop): New function.
8457 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8458 attribute.
8459 * gdbtypes.c: Include dwarf2loc.h.
8460 (is_dynamic_type): New function.
8461 (resolve_dynamic_type): New function.
8462 (resolve_dynamic_bounds): New function.
8463 (get_type_length): New function.
8464 (check_typedef): Use get_type_length to compute type length.
8465 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8466 (TYPE_LOW_BOUND_KIND): New macro.
8467 (is_dynamic_type): New function prototype.
8468 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8469 to resolve dynamic properties of the type. Update comment.
8470 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8471
a1556843
RH
84722014-04-14 Richard Henderson <rth@redhat.com>
8473
8474 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8475
0be03e84
DE
84762014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8477 Doug Evans <xdje42@gmail.com>
8478
8479 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8480 dereference TYPE_CODE_REF values.
8481
6b662e19
JB
84822014-04-11 Joel Brobecker <brobecker@adacore.com>
8483
8484 Revert the following changes due to regressions:
8485
8486 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8487 (dwarf2_evaluate_property): New function.
8488 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8489 * dwarf2read.c (attr_to_dynamic_prop): New function.
8490 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8491 attribute.
8492 * gdbtypes.c: Include dwarf2loc.h.
8493 (is_dynamic_type): New function.
8494 (resolve_dynamic_type): New function.
8495 (resolve_dynamic_bounds): New function.
8496 (get_type_length): New function.
8497 (check_typedef): Use get_type_length to compute type length.
8498 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8499 (TYPE_LOW_BOUND_KIND): New macro.
8500 (is_dynamic_type): New function prototype.
8501 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8502 to resolve dynamic properties of the type. Update comment.
8503 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8504
8505 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8506 passed to sizeof is dynamic evaluate the argument to compute the length.
8507
8508 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8509 value and retrieve the dynamic type size.
8510
8511 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8512 (ada_template_to_fixed_record_type_1): Likewise.
8513 (ada_to_fixed_type_1): Likewise.
8514 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8515 (cp_print_value): Likewise.
8516 * d-valprint.c (dynamic_array_type): Likewise.
8517 * eval.c (evaluate_subexp_with_coercion): Likewise.
8518 * findvar.c (address_of_variable): Likewise.
8519 * jv-valprint.c (java_value_print): Likewise.
8520 * valops.c (value_ind): Likewise.
8521 * value.c (coerce_ref): Likewise.
8522
8523 * c-typeprint.c (c_type_print_varspec_suffix): Added
8524 check for not yet resolved high bound. If unresolved, print
8525 "variable length" string to the console instead of random
8526 length.
8527
8528 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8529 property and store it as the high bound and flag the range accordingly.
8530 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8531 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8532 * gdbtypes.h (enum range_flags): New enum.
8533 (struct range_bounds): Add flags member.
8534
8535 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8536 points to a constant blob.
8537
8538 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8539 (evaluate_subexp_standard): Pass noside argument.
8540 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8541 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8542 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8543 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8544 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8545
245a5f0b
KS
85462014-04-11 Keith Seitz <keiths@redhat.com>
8547
8548 PR c++/16675
8549 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8550 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8551 reference types.
8552
3bce8237
SA
85532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8554
8555 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8556 (evaluate_subexp_standard): Pass noside argument.
8557 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8558 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8559 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8560 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8561 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8562
92b09522
SA
85632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8564
8565 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8566 points to a constant blob.
8567
e1969afb
SA
85682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8569
8570 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8571 property and store it as the high bound and flag the range accordingly.
8572 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8573 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8574 * gdbtypes.h (enum range_flags): New enum.
8575 (struct range_bounds): Add flags member.
8576
b86138fb
SA
85772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8578
8579 * c-typeprint.c (c_type_print_varspec_suffix): Added
8580 check for not yet resolved high bound. If unresolved, print
8581 "variable length" string to the console instead of random
8582 length.
8583
bcd629a4
SA
85842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8585
8586 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8587 (ada_template_to_fixed_record_type_1): Likewise.
8588 (ada_to_fixed_type_1): Likewise.
8589 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8590 (cp_print_value): Likewise.
8591 * d-valprint.c (dynamic_array_type): Likewise.
8592 * eval.c (evaluate_subexp_with_coercion): Likewise.
8593 * findvar.c (address_of_variable): Likewise.
8594 * jv-valprint.c (java_value_print): Likewise.
8595 * valops.c (value_ind): Likewise.
8596 * value.c (coerce_ref): Likewise.
8597
04b19544
SA
85982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8599
8600 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8601 value and retrieve the dynamic type size.
8602
26cb189f
SA
86032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8604
8605 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8606 passed to sizeof is dynamic evaluate the argument to compute the length.
8607
37c1ab67
SA
86082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8609
8610 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8611 (dwarf2_evaluate_property): New function.
8612 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8613 * dwarf2read.c (attr_to_dynamic_prop): New function.
8614 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8615 attribute.
8616 * gdbtypes.c: Include dwarf2loc.h.
8617 (is_dynamic_type): New function.
8618 (resolve_dynamic_type): New function.
8619 (resolve_dynamic_bounds): New function.
8620 (get_type_length): New function.
8621 (check_typedef): Use get_type_length to compute type length.
8622 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8623 (TYPE_LOW_BOUND_KIND): New macro.
8624 (is_dynamic_type): New function prototype.
8625 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8626 to resolve dynamic properties of the type. Update comment.
8627 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8628
729efb13
SA
86292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8630
8631 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8632 declaring high/low bounds and change uses accordingly. Call
8633 create_range_type instead of create_static_range_type.
8634 * gdbtypes.c (create_range_type): New function.
8635 (create_range_type): Convert bounds into struct bound_prop and pass
8636 them to create_range_type.
8637 * gdbtypes.h (struct bound_prop): New struct.
8638 (create_range_type): New function prototype.
8639 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8640 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8641 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8642 part of the bound.
8643 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8644
0c9c3474
SA
86452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8646
8647 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8648 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8649 * ada-lang.c: All uses of create_range_type updated.
8650 * coffread.c: All uses of create_range_type updated.
8651 * dwarf2read.c: All uses of create_range_type updated.
8652 * f-exp.y: All uses of create_range_type updated.
8653 * m2-valprint.c: All uses of create_range_type updated.
8654 * mdebugread.c: All uses of create_range_type updated.
8655 * stabsread.c: All uses of create_range_type updated.
8656 * valops.c: All uses of create_range_type updated.
8657 * valprint.c: All uses of create_range_type updated.
8658
9d497a19
PA
86592014-04-10 Pedro Alves <palves@redhat.com>
8660
8661 * breakpoint.c (single_step_breakpoints)
8662 (single_step_gdbarch): Move up in the file.
8663 (one_breakpoint_xfer_memory): New function, factored out from ...
8664 (breakpoint_xfer_memory): ... here. Also process single-step
8665 breakpoints.
8666
15a9128a
TG
86672014-04-09 Tristan Gingold <gingold@adacore.com>
8668
8669 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8670 comments.
8671 (darwin_decode_exception_message): Free port only after use.
8672
9c97a070
PL
86732014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8674
8675 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8676 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8677 when setting the size of call_length.
8678
7af389b8
SC
86792014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8680
8681 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8682 dereference TYPE_CODE_REF values.
8683
86ad98c3
JB
86842014-04-07 Joel Brobecker <brobecker@adacore.com>
8685
8686 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8687 end of warning message.
8688
b0aeadb3
DE
86892014-04-03 Doug Evans <dje@google.com>
8690
8691 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8692 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8693
5979d6b6
AM
86942014-04-02 Alan Modra <amodra@gmail.com>
8695
8696 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8697 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8698 (struct symbol_file_add_from_memory_args): Add size field.
8699 (find_vdso_size): New function.
8700 (add_vsyscall_page): Attempt to find vdso size.
8701
0d60c288
DE
87022014-04-01 Doug Evans <dje@google.com>
8703
8704 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8705
a41f2563
TG
87062014-04-01 Tristan Gingold <gingold@adacore.com>
8707
8708 * darwin-nat.c (darwin_encode_reply): Add prototype.
8709 (darwin_decode_exception_message): Reply to unknown inferiors.
8710 (darwin_decode_message): Handle message by id. Ignore message
8711 to unknown inferior.
8712 (darwin_wait): Discard unknown messages, add debug trace.
8713
11a865c8
DE
87142014-03-31 Doug Evans <dje@google.com>
8715
8716 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8717 comp_dir_string.
8718
770e7fc7
DE
87192014-03-31 Doug Evans <dje@google.com>
8720
8721 New option "set print symbol-loading".
8722 * NEWS: Mention it.
8723 * solib.c (solib_read_symbols): Only print symbol loading messages
8724 if requested.
8725 (solib_add): If symbol loading is in "brief" mode, notify user
8726 symbols are being loaded.
8727 (reload_shared_libraries_1): Ditto.
8728 * symfile.c (print_symbol_loading_off): New static global.
8729 (print_symbol_loading_brief): New static global.
8730 (print_symbol_loading_full): New static global.
8731 (print_symbol_loading_enums): New static global.
8732 (print_symbol_loading): New static global.
8733 (print_symbol_loading_p): New function.
8734 (symbol_file_add_with_addrs): Only print symbol loading messages
8735 if requested.
8736 (_initialize_symfile): Register "print symbol-loading" set/show
8737 command.
8738 * symfile.h (print_symbol_loading_p): Declare.
8739
c32c64b7
DE
87402014-03-30 Doug Evans <xdje42@gmail.com>
8741
8742 * infrun.c (set_last_target_status): New function.
8743 (handle_inferior_event): Call it.
8744
7c0bc051
DE
87452014-03-30 Doug Evans <xdje42@gmail.com>
8746
8747 * inferior.h (enum stop_kind): Improve comment.
8748
8776cfe9
JB
87492014-03-28 Joel Brobecker <brobecker@adacore.com>
8750
8751 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8752 a reference, strip the reference layer before calling
8753 the lang_ops value_has_mutated callback.
8754
410a0ff2
SDJ
87552014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8756
8757 Remove some globals from our parser.
8758 * language.c (unk_lang_parser): Add "struct parser_state"
8759 argument.
8760 * language.h (struct language_defn) <la_parser>: Likewise.
8761 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8762 (initialize_expout): Add "struct parser_state" argument.
8763 Rewrite function to use the parser state.
8764 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8765 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8766 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_msymbol, mark_struct_expression,
8770 write_dollar_variable): Likewise.
8771 (parse_exp_in_context_1): Use parser state.
8772 (insert_type_address_space): Add "struct parser_state" argument.
8773 Use parser state.
8774 (increase_expout_size): New function.
8775 * parser-defs.h: Forward declare "struct language_defn" and
8776 "struct parser_state".
8777 (expout, expout_size, expout_ptr): Remove extern declarations.
8778 (parse_gdbarch, parse_language): Rewrite macro declarations to
8779 accept the parser state.
8780 (struct parser_state): New struct.
8781 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8782 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8783 write_exp_elt_decfloatcst, write_exp_elt_type,
8784 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8785 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8786 write_exp_msymbol, write_dollar_variable,
8787 mark_struct_expression, insert_type_address_space): Add "struct
8788 parser_state" argument.
8789 (increase_expout_size): New function.
8790 * utils.c (do_clear_parser_state): New function.
8791 (make_cleanup_clear_parser_state): Likewise.
8792 * utils.h (make_cleanup_clear_parser_state): New function
8793 prototype.
8794 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8795 Update calls to write_exp* in order to pass the parser state.
8796 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8797 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8798 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8799 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8800 * stap-probe.c (stap_parse_register_operand): Likewise.
8801 (stap_parse_single_operand): Likewise.
8802 (stap_parse_argument_1): Likewise.
8803 (stap_parse_argument): Use parser state.
8804 * stap-probe.h: Include "parser-defs.h".
8805 (struct stap_parse_info) <pstate>: New field.
8806 * c-exp.y (parse_type): Rewrite to use parser state.
8807 (yyparse): Redefine to c_parse_internal.
8808 (pstate): New global variable.
8809 (parse_number): Add "struct parser_state" argument.
8810 (write_destructor_name): Likewise.
8811 (type_exp): Update calls to write_exp* and similars in order to
8812 use parser state.
8813 (exp1, exp, variable, qualified_name, space_identifier,
8814 typename, typebase): Likewise.
8815 (write_destructor_name, parse_number, lex_one_token,
8816 classify_name, classify_inner_name, c_parse): Add "struct
8817 parser_state" argument. Update function to use parser state.
8818 * c-lang.h: Forward declare "struct parser_state".
8819 (c_parse): Add "struct parser_state" argument.
8820 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8821 (yyparse): Redefine macro to ada_parse_internal.
8822 (pstate): New variable.
8823 (write_int, write_object_renaming, write_var_or_type,
8824 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8825 type_int, type_long, type_long_long, type_float, type_double,
8826 type_long_double, type_char, type_boolean, type_system_address):
8827 Add "struct parser_state" argument.
8828 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8829 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8830 var_or_type, aggregate, aggregate_component_list,
8831 positional_list, others, component_group,
8832 component_associations): Update calls to write_exp* and similar
8833 functions in order to use parser state.
8834 (ada_parse, write_var_from_sym, write_int,
8835 write_exp_op_with_string, write_object_renaming,
8836 find_primitive_type, write_selectors, write_ambiguous_var,
8837 write_var_or_type, write_name_assoc, type_int, type_long,
8838 type_long_long, type_float, type_double, type_long_double,
8839 type_char, type_boolean, type_system_address): Add "struct
8840 parser_state" argument. Adjust function to use parser state.
8841 * ada-lang.c (parse): Likewise.
8842 * ada-lang.h: Forward declare "struct parser_state".
8843 (ada_parse): Add "struct parser_state" argument.
8844 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8845 calls to both functions.
8846 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8847 parser state.
8848 (yyparse): Redefine macro to f_parse_internal.
8849 (pstate): New variable.
8850 (parse_number): Add "struct parser_state" argument.
8851 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8852 and similars in order to use parser state.
8853 (parse_number): Adjust code to use parser state.
8854 (yylex): Likewise.
8855 (f_parse): New function.
8856 * f-lang.h: Forward declare "struct parser_state".
8857 (f_parse): Add "struct parser_state" argument.
8858 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8859 parser state.
8860 (yyparse): Redefine macro for java_parse_internal.
8861 (pstate): New variable.
8862 (push_expression_name, push_expression_name, insert_exp): Add
8863 "struct parser_state" argument.
8864 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8865 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8866 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8867 PostIncrementExpression, PostDecrementExpression,
8868 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8869 UnaryExpressionNotPlusMinus, CastExpression,
8870 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8871 RelationalExpression, EqualityExpression, AndExpression,
8872 ExclusiveOrExpression, InclusiveOrExpression,
8873 ConditionalAndExpression, ConditionalOrExpression,
8874 ConditionalExpression, Assignment, LeftHandSide): Update
8875 calls to write_exp* and similars in order to use parser state.
8876 (parse_number): Ajust code to use parser state.
8877 (yylex): Likewise.
8878 (java_parse): New function.
8879 (push_variable): Add "struct parser_state" argument. Adjust
8880 code to user parser state.
8881 (push_fieldnames, push_qualified_expression_name,
8882 push_expression_name, insert_exp): Likewise.
8883 * jv-lang.h: Forward declare "struct parser_state".
8884 (java_parse): Add "struct parser_state" argument.
8885 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8886 parser state.
8887 (yyparse): Redefine macro to m2_parse_internal.
8888 (pstate): New variable.
8889 (type_exp, exp, fblock, variable, type): Update calls to
8890 write_exp* and similars to use parser state.
8891 (yylex): Likewise.
8892 (m2_parse): New function.
8893 * m2-lang.h: Forward declare "struct parser_state".
8894 (m2_parse): Add "struct parser_state" argument.
8895 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8896 * objc-lang.h: Forward declare "struct parser_state".
8897 (end_msglist): Add "struct parser_state" argument.
8898 * p-exp.y (parse_type): Rewrite macro to use parser state.
8899 (yyparse): Redefine macro to pascal_parse_internal.
8900 (pstate): New variable.
8901 (parse_number): Add "struct parser_state" argument.
8902 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8903 write_exp* and similars in order to use parser state.
8904 (parse_number, yylex): Adjust code to use parser state.
8905 (pascal_parse): New function.
8906 * p-lang.h: Forward declare "struct parser_state".
8907 (pascal_parse): Add "struct parser_state" argument.
8908 * go-exp.y (parse_type): Rewrite macro to use parser state.
8909 (yyparse): Redefine macro to go_parse_internal.
8910 (pstate): New variable.
8911 (parse_number): Add "struct parser_state" argument.
8912 (type_exp, exp1, exp, variable, type): Update calls to
8913 write_exp* and similars in order to use parser state.
8914 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8915 to use parser state.
8916 (go_parse): Likewise.
8917 * go-lang.h: Forward declare "struct parser_state".
8918 (go_parse): Add "struct parser_state" argument.
8919
342587c4
DE
89202014-03-27 Doug Evans <dje@google.com>
8921
8922 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8923
33e80786
DE
89242014-03-27 Doug Evans <dje@google.com>
8925
8926 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8927 Remove argument abbrev_section. All callers updated.
8928
1dbab08b
DE
89292014-03-27 Doug Evans <dje@google.com>
8930
8931 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8932 addr_base, ranges_base.
8933
318d3177
KS
89342014-03-26 Keith Seitz <keiths@redhat.com>
8935
8936 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8937 types, not VAR_DOMAIN.
8938
1e54db15
SL
89392014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8940
8941 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8942 "ra" registers.
8943 * features/nios2-linux.c: Regenerated.
8944 * features/nios2.c: Regenerated.
8945
d3839ede
PA
89462014-03-25 Pedro Alves <palves@redhat.com>
8947
8948 * cli/cli-script.c (script_from_file): Force the interpreter to
8949 sync mode.
8950
7588d2ec
PL
89512014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8952
8953 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8954 small stack allocation.
8955
a6290449
TG
89562014-03-24 Tristan Gingold <gingold@adacore.com>
8957
8958 * darwin-nat.c (exc_server): Remove unused prototype.
8959 (darwin_dump_message): Correctly display data on x86_64.
8960 (darwin_encode_reply): Fix style.
8961 Add comments and fix indentation.
8962
31ae9d24 89632014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8964
8965 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8966
6339bfc4
DE
89672014-03-22 Doug Evans <xdje42@gmail.com>
8968
8969 * infcmd.c: Whitespace fixes.
8970 (interrupt_command): Merge two function comments into one.
8971
0a07590b
DE
89722014-03-22 Doug Evans <xdje42@gmail.com>
8973
8974 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8975 All uses updated.
8976
b55fbac4
YQ
89772014-03-22 Yao Qi <yao@codesourcery.com>
8978
8979 * remote.c (target_read_live_memory): Remove.
8980 (memory_xfer_live_readonly_partial): Rename it to
8981 remote_xfer_live_readonly_partial. Remove argument 'object'.
8982 All callers updated. Call remote_read_bytes_1
8983 instead of target_read_live_memory.
8984 * tracepoint.c (set_traceframe_number): Remove.
8985 (make_cleanup_restore_traceframe_number): Likewise .
8986 * tracepoint.h (set_traceframe_number): Remove declaration.
8987 (make_cleanup_restore_traceframe_number): Likewise.
8988
9217e74e
YQ
89892014-03-22 Yao Qi <yao@codesourcery.com>
8990
8991 * remote.c (remote_read_bytes): Move code on reading from the
8992 remote stub to ...
8993 (remote_read_bytes_1): ... here. New function.
8994
8acf9577
YQ
89952014-03-22 Yao Qi <yao@codesourcery.com>
8996
8997 * ctf.c (ctf_xfer_partial): Check the return value of
8998 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8999 return TARGET_XFER_UNAVAILABLE.
9000 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9001 * target.c (target_read_live_memory): Move it to remote.c.
9002 (memory_xfer_live_readonly_partial): Likewise.
9003 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9004 * remote.c (target_read_live_memory): Moved from target.c.
9005 (memory_xfer_live_readonly_partial): Likewise.
9006 (remote_read_bytes): Factored out from
9007 memory_xfer_partial_1.
9008
feef67ab
DE
90092014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9010
9011 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9012 NULL pointer.
9013
b65dc60b
PA
90142014-03-21 Pedro Alves <palves@redhat.com>
9015
9016 * infrun.c (normal_stop): Extend comment.
9017
b4ab256d
HZ
90182014-03-21 Hui Zhu <hui@codesourcery.com>
9019 Pedro Alves <palves@redhat.com>
9020
9021 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9022 static buffer.
9023 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9024 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9025 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9026
deba7593
MR
90272014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9028
9029 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9030 `z' formatted output modifier.
9031
1bff71c3
SDJ
90322014-03-20 Tom Tromey <tromey@redhat.com>
9033 Sergio Durigan Junior <sergiodj@redhat.com>
9034
9035 * probe.c (parse_probes): Turn assert into an ordinary error.
9036 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9037 exceptions when parsing probes. Rearrange the code for clarity.
9038
90e28950
TT
90392014-03-20 Tom Tromey <tromey@redhat.com>
9040
9041 PR gdb/14135
9042 * top.c (execute_command): Only dispatch events if the command
9043 started the target.
9044
beb460e8
PA
90452014-03-20 Tom Tromey <tromey@redhat.com>
9046
9047 PR cli/15718
9048 * infcall.c: Include event-top.h.
9049 (run_inferior_call): Call async_disable_stdin if needed.
9050
99619bea
PA
90512014-03-20 Pedro Alves <palves@redhat.com>
9052
9053 * infrun.c (prepare_to_proceed): Delete.
9054 (thread_still_needs_step_over): New function.
9055 (find_thread_needs_step_over): New function.
9056 (proceed): If the current thread needs a step-over, set its
9057 steping_over_breakpoint flag. Adjust to use
9058 find_thread_needs_step_over instead of prepare_to_proceed.
9059 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9060 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9061 breakpoint.
9062 (switch_back_to_stepped_thread): Step over breakpoints of all
9063 threads not the stepping thread, before switching back to the
9064 stepping thread.
9065
2adfaa28
PA
90662014-03-20 Pedro Alves <palves@redhat.com>
9067
9068 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9069 extern.
9070 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9071 * infrun.c (saved_singlestep_ptid)
9072 (stepping_past_singlestep_breakpoint): Delete.
9073 (resume): Remove stepping_past_singlestep_breakpoint handling.
9074 (proceed): Store the prev_pc of the stepping thread too.
9075 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9076 singlestep_pc.
9077 (enum infwait_states): Delete infwait_thread_hop_state.
9078 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9079 field.
9080 (handle_inferior_event): Adjust.
9081 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9082 handling and the thread-hop code. Before removing single-step
9083 breakpoints, check whether the thread hit a single-step breakpoint
9084 of another thread. If it did, the trap is not a random signal.
9085 (switch_back_to_stepped_thread): If the event thread hit a
9086 single-step breakpoint, unblock it before switching to the
9087 stepping thread. Handle the case of the stepped thread having
9088 advanced already.
9089 (keep_going): Handle the case of the current thread moving past a
9090 single-step breakpoint.
9091
31e77af2
PA
90922014-03-20 Pedro Alves <palves@redhat.com>
9093
9094 PR breakpoints/7143
9095 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9096 are being stepped over.
9097 (breakpoint_address_match): Make extern.
9098 * breakpoint.h (breakpoint_address_match): New declaration.
9099 * inferior.h (stepping_past_instruction_at): New declaration.
9100 * infrun.c (struct step_over_info): New type.
9101 (step_over_info): New global.
9102 (set_step_over_info, clear_step_over_info)
9103 (stepping_past_instruction_at): New functions.
9104 (handle_inferior_event): Clear the step-over info when
9105 trap_expected is cleared.
9106 (resume): Remove now stale comment.
9107 (clear_proceed_status): Clear step-over info.
9108 (proceed): Adjust step-over handling to set or clear the step-over
9109 info instead of removing all breakpoints.
9110 (handle_signal_stop): When setting up a thread-hop, don't remove
9111 breakpoints here.
9112 (stop_stepping): Clear step-over info.
9113 (keep_going): Adjust step-over handling to set or clear step-over
9114 info and then always inserting breakpoints, instead of removing
9115 all breakpoints when stepping over one.
9116
b9f437de
PA
91172014-03-20 Pedro Alves <palves@redhat.com>
9118
9119 * infrun.c (previous_inferior_ptid): Adjust comment.
9120 (deferred_step_ptid): Delete.
9121 (infrun_thread_ptid_changed, prepare_to_proceed)
9122 (init_wait_for_inferior): Adjust.
9123 (handle_signal_stop): Delete deferred_step_ptid handling.
9124
06c868a8
JK
91252014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9126
9127 PR gdb/15358
9128 * defs.h (sync_quit_force_run): New declaration.
9129 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9130 * event-top.c (async_sigterm_handler): New declaration.
9131 (async_sigterm_token): New variable.
9132 (async_init_signals): Create also async_sigterm_token.
9133 (async_sigterm_handler): New function.
9134 (sync_quit_force_run): New variable.
9135 (handle_sigterm): Replace quit_force call by other calls.
9136 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9137
dea80df0
MR
91382014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9139
9140 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9141 offset into SPE pseudo registers.
9142
0c7e1a46
PA
91432014-03-18 Pedro Alves <palves@redhat.com>
9144
9145 PR gdb/13860
9146 * inferior.h (print_stop_event): Declare.
9147 * infrun.c (print_stop_event): New, factored out from ...
9148 (normal_stop): ... this.
9149 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9150 of bpstat_print/print_stack_frame.
9151
9c1fcd01
TT
91522014-03-17 Tom Tromey <tromey@redhat.com>
9153
9154 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9155
11aa919a
PMR
91562014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9157
9158 * ada-lang.c (decode_constrained_packed_array): Perform a
9159 minimal coercion for reference with coerce_ref instead of
9160 ada_coerce_ref.
9161
d4ccb5e0
TG
91622014-03-17 Tristan Gingold <gingold@adacore.com>
9163
9164 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9165 (darwin_solib_create_inferior_hook): Emit a warning if version
9166 is unhandled.
9167
49840f2a
UW
91682014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9169
9170 * python/py-value.c (get_field_flag): Cast flag_name argument to
9171 PyObject_GetAttrString to support Python 2.4.
9172
ed4123e5
JK
91732014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9174
9175 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9176 (Global Maintainers): Remove Jan Kratochvil.
9177
d6b64346
PA
91782014-03-14 Pedro Alves <palves@redhat.com>
9179
9180 * inferior.h (terminal_ours_for_output): Rename to ...
9181 (child_terminal_ours_for_output): ... this.
9182 (terminal_save_ours): Rename to ...
9183 (child_terminal_save_ours): ... this.
9184 (terminal_ours): Rename to ...
9185 (child_terminal_ours): ... this.
9186 (terminal_inferior): Rename to ...
9187 (child_terminal_inferior): ... this.
9188 (terminal_init_inferior): Rename to ...
9189 (child_terminal_init_inferior): ... this.
9190 (terminal_init_inferior_with_pgrp): Rename to ...
9191 (child_terminal_init_inferior_with_pgrp): ... this.
9192 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9193 (child_terminal_init_with_pgrp): ... this.
9194 (terminal_save_ours): Rename to ...
9195 (child_terminal_save_ours): ... this.
9196 (terminal_init_inferior): Rename to ...
9197 (child_terminal_init): ... this. Adjust.
9198 (terminal_inferior): Rename to ...
9199 (child_terminal_inferior): ... this.
9200 (terminal_ours_for_output): Rename to ...
9201 (child_terminal_ours_for_output): ... this. Adjust.
9202 (terminal_ours): Rename to ...
9203 (child_terminal_ours): ... this.
9204 (terminal_ours_1): Rename to ...
9205 (child_terminal_ours_1): ... this. Adjust.
9206 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9207 * windows-nat.c (do_initial_windows_stuff): Adjust.
9208 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9209 (gnu_terminal_init): ... this. Adjust.
9210 (gnu_target): Adjust.
9211 * inf-child.c (inf_child_target): Adjust.
9212
5a1e8c7a
DE
92132014-03-13 Doug Evans <xdje42@gmail.com>
9214
9215 PR guile/16612
9216 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9217 new eq?-hashtab.
9218
350e1a76
DE
92192014-03-13 Doug Evans <xdje42@gmail.com>
9220
9221 * value.c (record_latest_value): Call release_value_or_incref
9222 instead of release_value.
9223
a69900ae
PA
92242014-03-13 Pedro Alves <palves@redhat.com>
9225
9226 * procfs.c (procfs_target): Don't override to_shortname,
9227 to_longname or to_doc.
9228
5db9f0bd
PA
92292014-03-13 Pedro Alves <palves@redhat.com>
9230
9231 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9232 Unix in user visible strings.
9233
5e3a2c38
SS
92342014-03-12 Stan Shebs <stan@codesourcery.com>
9235
9236 * gdbtypes.h: Annotate comments for Doxygen, add a page
9237 block comment with some general info.
9238
8bc2fe48
PA
92392014-03-12 Pedro Alves <palves@redhat.com>
9240
9241 * infcmd.c (prepare_execution_command): New function, factored out
9242 from several execution commands.
9243 (run_command_1, continue_command, step_1, jump_command)
9244 (signal_command, until_command, advance_command, finish_command)
9245 (attach_command): Use prepare_execution_command.
9246
638c5f49
OJ
92472014-03-12 Omair Javaid <omair.javaid@linaro.org>
9248
9249 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9250 (MAX_BPTS): Define.
9251 (MAX_WPTS): Define.
9252 (struct arm_linux_thread_points): Removed.
9253 (struct arm_linux_process_info): New.
9254 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9255 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9256 (arm_linux_find_breakpoints_by_tid): Removed.
9257 (struct arch_lwp_info): New.
9258 (arm_linux_find_process_pid): New functions.
9259 (arm_linux_add_process): New functions.
9260 (arm_linux_process_info_get): New functions.
9261 (arm_linux_forget_process): New function.
9262 (arm_linux_get_debug_reg_state): New function.
9263 (struct update_registers_data): New.
9264 (update_registers_callback): New function.
9265 (arm_linux_insert_hw_breakpoint1): Updated.
9266 (arm_linux_remove_hw_breakpoint1): Updated.
9267 (arm_linux_insert_hw_breakpoint): Updated.
9268 (arm_linux_remove_hw_breakpoint): Updated.
9269 (arm_linux_insert_watchpoint): Updated.
9270 (arm_linux_remove_watchpoint): Updated.
9271 (arm_linux_new_thread): Updated.
9272 (arm_linux_prepare_to_resume): New function.
9273 (arm_linux_new_fork): New function.
9274 (_initialize_arm_linux_nat): Updated.
9275
6d03af93
PA
92762014-03-12 Pedro Alves <palves@redhat.com>
9277
9278 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9279
b3ccfe11
TT
92802014-03-12 Tom Tromey <tromey@redhat.com>
9281
9282 * inf-child.c (return_zero): New function.
9283 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9284 * aix-thread.c (aix_thread_inferior_created): New function.
9285 (aix_thread_attach): Remove.
9286 (init_aix_thread_ops): Don't set to_attach.
9287 (_initialize_aix_thread): Register inferior_created observer.
9288 * corelow.c (init_core_ops): Don't set to_attach or
9289 to_create_inferior.
9290 * exec.c (init_exec_ops): Don't set to_attach or
9291 to_create_inferior.
9292 * infcmd.c (run_command_1): Use find_run_target. Make direct
9293 target calls.
9294 (attach_command): Use find_attach_target. Make direct target
9295 calls.
9296 * record-btrace.c (init_record_btrace_ops): Don't set
9297 to_create_inferior.
9298 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9299 Remove.
9300 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9301 set to_create_inferior.
9302 * target.c (complete_target_initialization): Add assertion.
9303 (target_create_inferior): Remove.
9304 (find_default_attach, find_default_create_inferior): Remove.
9305 (find_attach_target, find_run_target): New functions.
9306 (find_default_is_async_p, find_default_can_async_p)
9307 (target_supports_non_stop, target_attach): Remove.
9308 (init_dummy_target): Don't set to_create_inferior or
9309 to_supports_non_stop.
9310 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9311 TARGET_DEFAULT_FUNC.
9312 <to_create_inferior>: Add comment.
9313 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9314 TARGET_DEFAULT_RETURN.
9315 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9316 (find_attach_target, find_run_target): Declare.
9317 (target_create_inferior): Remove.
9318 (target_has_execution_1): Update comment.
9319 (target_supports_non_stop): Remove.
9320 * target-delegates.c: Rebuild.
9321
91f83b02
PA
93222014-03-12 Pedro Alves <palves@redhat.com>
9323
9324 * inf-child.h: Update comment to not mention Unix.
9325
f1aea813
PA
93262014-03-12 Pedro Alves <palves@redhat.com>
9327
9328 * inf-child.c: Update top comment to not mention Unix. Add
9329 generic comment describing how this target is meant to be used.
9330 (inf_child_post_attach, inf_child_post_startup_inferior)
9331 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9332 Unix in comment.
9333
ee8e9165
PA
93342014-03-12 Pedro Alves <palves@redhat.com>
9335
9336 * nto-procfs.c: Include inf-child.h.
9337 (procfs_ops): Delete global.
9338 (procfs_can_run): Delete method.
9339 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9340 target pointer instead of referencing procfs_ops.
9341 (procfs_prepare_to_store): Delete.
9342 (init_procfs_ops): Delete function.
9343 (procfs_target): New function, based on init_procfs_ops, but
9344 inherit inf_child_target.
9345 (_initialize_procfs): Use procfs_target.
9346
51a9c8c5
PA
93472014-03-12 Pedro Alves <palves@redhat.com>
9348
9349 * windows-nat.c: Include inf-child.h.
9350 (windows_ops): Delete global.
9351 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9352 methods.
9353 (init_windows_ops): Delete function.
9354 (windows_target): New function, based on init_windows_ops, but
9355 inherit inf_child_target.
9356 (_initialize_windows_nat): Use windows_target. Install x86
9357 specific target methods here.
9358
c1966e26
DE
93592014-03-10 Doug Evans <xdje42@gmail.com>
9360
9361 * guile/guile.c (call_initialize_gdb_module): New function.
9362 (initialize_guile): Replace call to scm_init_guile with call to
9363 scm_with_guile.
9364
023db19c
JB
93652014-03-10 Joel Brobecker <brobecker@adacore.com>
9366
9367 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9368 in call to TYPE_CODE macro.
9369
5ec18f2b
JG
93702014-03-10 Jerome Guitton <guitton@adacore.com>
9371
8668be63
JB
9372 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9373 Resolve tagged types to full view.
5ec18f2b 9374
7d03f2eb
HZ
93752014-03-10 Hui Zhu <hui@codesourcery.com>
9376
9377 * target.h (target_insert_breakpoint): Remove "hardware" from its
9378 comments.
9379
c5164cbc
DE
93802014-03-07 Doug Evans <dje@google.com>
9381
9382 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9383
c4a3fee2
DE
93842014-03-07 Doug Evans <dje@google.com>
9385
9386 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9387 Remove unused local comp_dir_attr. Assert exactly one of
9388 stub_comp_unit_die, stub_comp_dir is non-NULL.
9389
3156469c
JB
93902014-03-07 Joel Brobecker <brobecker@adacore.com>
9391
9392 * target.h (complete_target_initialization, add_target):
9393 Add comment.
9394
c1a7b7c6
PA
93952014-03-07 Pedro Alves <palves@redhat.com>
9396
9397 * go32-nat.c: Include inf-child.h.
9398 (go32_ops): Delete global.
9399 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9400 Delete methods.
9401 (go32_create_inferior): Push the passed in target pointer instead
9402 of referencing go32_ops.
9403 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9404 (go32_target): New function, based on init_go32_ops, but inherit
9405 inf_child_target.
9406 (_initialize_go32_nat): Use go32_target. Move parts of
9407 init_go32_ops here.
9408
d3c1a85f
JB
94092014-03-06 Joel Brobecker <brobecker@adacore.com>
9410
9411 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9412 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9413 SYMBOL_VALUE_ADDRESS.
9414 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9415
5fa1d40e
YQ
94162014-03-06 Yao Qi <yao@codesourcery.com>
9417
9418 * breakpoint.c (get_tracepoint_by_number): Remove argument
9419 optional_p. All callers updated. Adjust comments. Update
9420 output message.
9421 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9422
0c13193f
YQ
94232014-03-06 Yao Qi <yao@codesourcery.com>
9424
9425 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9426 early if get_number returns zero. Use 'p' instead of 'args'.
9427
2217da06
YQ
94282014-03-06 Yao Qi <yao@codesourcery.com>
9429
9430 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9431 message.
9432
cc3da688
YQ
94332014-03-06 Yao Qi <yao@codesourcery.com>
9434
9435 PR breakpoints/16508
9436 * tracepoint.c (check_trace_running): New function.
9437 (trace_find_command): Move code to check_trace_running and
9438 call check_trace_running.
9439 (trace_find_pc_command): Likewise.
9440 (trace_find_tracepoint_command): Likewise.
9441 (trace_find_line_command): Likewise.
9442 (trace_find_range_command): Likewise.
9443 * tracepoint.h (check_trace_running): Likewise.
9444 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9445
6a5f844b
YQ
94462014-03-06 Yao Qi <yao@codesourcery.com>
9447
9448 * target.h (struct target_ops) <to_traceframe_info>: Use
9449 TARGET_DEFAULT_NORETURN (tcomplain ()).
9450 * target-delegates.c: Regenerated.
9451
0f26cec1
PA
94522014-03-05 Pedro Alves <palves@redhat.com>
9453
9454 PR gdb/16575
9455 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9456 void. Update comment.
9457 (dcache_xfer_memory): Delete.
9458 (dcache_read_memory_partial): New, based on the read bits of
9459 dcache_xfer_memory.
9460 (dcache_update): Add status parameter. Use ULONGEST for len, and
9461 adjust. Discard cache lines if the reason for the update was
9462 error.
9463 * dcache.h (dcache_xfer_memory): Delete declaration.
9464 (dcache_read_memory_partial): New declaration.
9465 (dcache_update): Update prototype.
9466 * target.c (raw_memory_xfer_partial): Update the dcache here.
9467 (memory_xfer_partial_1): Don't handle dcache writes here.
9468
b2b255bd
MF
94692014-03-05 Mike Frysinger <vapier@gentoo.org>
9470
9471 * remote-sim.c (gdbsim_load): Add const to prog.
9472
5d9cf8a4
TT
94732014-03-03 Tom Tromey <tromey@redhat.com>
9474
9475 * elfread.c (probe_key): Change to bfd_data.
9476 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9477 now per-BFD, not per-objfile.
9478 * stap-probe.c (stap_probe_destroy): Update comment.
9479 (handle_stap_probe): Allocate on the per-BFD obstack.
9480
729662a5
TT
94812014-03-03 Tom Tromey <tromey@redhat.com>
9482
9483 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9484 * breakpoint.c (create_longjmp_master_breakpoint): Use
9485 get_probe_address.
9486 (add_location_to_breakpoint, bkpt_probe_insert_location)
9487 (bkpt_probe_remove_location): Update.
9488 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9489 * elfread.c (elf_symfile_relocate_probe): Remove.
9490 (elf_probe_fns): Update.
9491 (insert_exception_resume_breakpoint): Change type of "probe"
9492 parameter to bound_probe.
9493 (check_exception_resume): Update.
9494 * objfiles.c (objfile_relocate1): Don't relocate probes.
9495 * probe.c (bound_probe_s): New typedef.
9496 (parse_probes): Use get_probe_address. Set sal's objfile.
9497 (find_probe_by_pc): Return a bound_probe.
9498 (collect_probes): Return a VEC(bound_probe_s).
9499 (compare_probes): Update.
9500 (gen_ui_out_table_header_info): Change type of "probes"
9501 parameter. Update.
9502 (info_probes_for_ops): Update.
9503 (get_probe_address): New function.
9504 (probe_safe_evaluate_at_pc): Update.
9505 * probe.h (struct probe_ops) <get_probe_address>: New field.
9506 <set_semaphore, clear_semaphore>: Add objfile parameter.
9507 (struct probe) <objfile>: Remove field.
9508 <arch>: New field.
9509 <address>: Update comment.
9510 (struct bound_probe): New.
9511 (find_probe_by_pc): Return a bound_probe.
9512 (get_probe_address): Declare.
9513 * solib-svr4.c (struct probe_and_action) <address>: New field.
9514 (hash_probe_and_action, equal_probe_and_action): Update.
9515 (register_solib_event_probe): Add address parameter.
9516 (solib_event_probe_at): Update.
9517 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9518 get_probe_address.
9519 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9520 (stap_get_probe_address): New function.
9521 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9522 (compile_probe_arg): Update.
9523 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9524 address.
9525 (handle_stap_probe): Don't relocate the probe.
9526 (stap_relocate): Remove.
9527 (stap_gen_info_probes_table_values): Update.
9528 (stap_probe_ops): Remove stap_relocate.
9529 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9530 (debug_sym_probe_fns): Update.
9531 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9532 * symtab.c (init_sal): Use memset.
9533 * symtab.h (struct symtab_and_line) <objfile>: New field.
9534 * tracepoint.c (start_tracing, stop_tracing): Update.
9535
ff887920
TT
95362014-03-03 Tom Tromey <tromey@redhat.com>
9537
9538 * probe.h (parse_probes, find_probe_by_pc)
9539 (find_probes_in_objfile): Fix comments.
9540
f0407826
DE
95412014-03-02 Doug Evans <xdje42@gmail.com>
9542
9543 * infrun.c (handle_signal_stop): Replace test for
9544 TARGET_WAITKIND_STOPPED with an assert.
9545
35e6a711
DE
95462014-03-02 Doug Evans <xdje42@gmail.com>
9547
9548 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9549
667f9d0b
DE
95502014-03-02 Doug Evans <xdje42@gmail.com>
9551
9552 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9553
dc92ace0
MK
95542014-03-01 Mark Kettenis <kettenis@gnu.org>
9555
9556 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9557
a900370f
MK
95582014-03-01 Mark Kettenis <kettenis@gnu.org>
9559
9560 * i386obsd-nat.c: Include "obsd-nat.h".
9561 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9562 add_target.
9563 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9564
b72a7981
MK
95652014-03-01 Mark Kettenis <kettenis@gnu.org>
9566
9567 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9568
96c70aba
MK
95692014-03-01 Mark Kettenis <kettenis@gnu.org>
9570
9571 * mips64obsd-nat.c: Include "obsd-nath".
9572 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9573 add_target
9574 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9575
874a80af
MK
95762014-03-01 Mark Kettenis <kettenis@gnu.org>
9577
8fd408f1
MK
9578 * amd64obsd-nat.c: Include "obsd-nat,h.
9579 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9580 add_target.
874a80af
MK
9581 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9582
9cf95373
SC
95832014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9584
9585 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9586 (find_overload_match): Update call to find_oload_champ.
9587 (find_oload_champ_namespace_loop): Likewise
9588
863e4da4
MK
95892014-02-28 Mark Kettenis <kettenis@gnu.org>
9590
025cac40
MK
9591 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9592
1ed586ce
MK
9593 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9594 * config/sparc/obsd64.mh: New file.
9595 * sparc64obsd-nat.c: New file.
9596
863e4da4
MK
9597 * obsd-nat.h: New file.
9598 * obsd-nat.c: New file.
9599 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9600 (ALLDEPFILES): Add obsd-nat.c.
9601
89de4da4
TT
96022014-02-28 Tom Tromey <tromey@redhat.com>
9603
9604 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9605 * cli-out.h (cli_ui_out_impl): Now const.
9606 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9607 * ui-out.c (struct ui_out) <impl>: Now const.
9608 (default_ui_out_impl): Now const.
9609 (ui_out_new): Make 'impl' parameter const.
9610 * ui-out.h (ui_out_new): Update.
9611
c725e7b6
MK
96122014-02-27 Mark Kettenis <kettenis@gnu.org>
9613
9614 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9615
670b46b3
MK
96162014-02-27 Mark Kettenis <kettenis@gnu.org>
9617
9618 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9619
c91550fc
JK
96202014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9621
9622 Additional PR 8882 fix.
9623 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9624
2fa0369e
PA
96252014-02-27 Pedro Alves <palves@redhat.com>
9626
9627 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9628 isn't set.
9629
d632a097
PA
96302014-02-27 Pedro Alves <palves@redhat.com>
9631
9632 PR 12702
9633 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9634 * nat/linux-waitpid.c: Include string.h.
9635 (status_to_str): Moved here and made extern.
9636 * nat/linux-waitpid.h (status_to_str): New declaration.
9637
2ebd5a35
HZ
96382014-02-27 Hui Zhu <hui@codesourcery.com>
9639
9640 PR 12702
9641 * infrun.c (ptid_match): Move ...
9642 * common/ptid.c (ptid_match): ... here.
9643 * inferior.h (ptid_match): Move ...
9644 * common/ptid.h (ptid_match): ... here.
9645
3cdd631f
MK
96462014-02-27 Mark Kettenis <kettenis@gnu.org>
9647
9648 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9649 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9650 gdb_target_obs.
9651
bee30a64
MK
96522014-02-27 Mark Kettenis <kettenis@gnu.org>
9653
9654 * obsd-tdep.c (obsd_auxv_parse): New function.
9655 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9656
9657 * gdbarch.sh (auxv_parse): New.
9658 * gdbarch.h: Regenerated.
9659 * gdbarch.c: Regenerated.
9660 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9661
7a5a839f
LC
96622014-02-26 Ludovic Courtès <ludo@gnu.org>
9663
9664 * guile/scm-value.c (gdbscm_history_append_x): New function.
9665 (value_functions): Add it.
9666
31aa7e4e
JB
96672014-02-27 Joel Brobecker <brobecker@adacore.com>
9668
9669 * dwarf2read.c (attr_value_as_address): New function.
9670 (dwarf2_find_base_address, read_call_site_scope): Use
9671 attr_value_as_address in place of DW_ADDR.
9672 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9673 the low and high addresses. Slight rework of the handling
9674 of the high pc being a constant form, and limit it to
9675 DWARF verson 4 or higher.
9676 (dwarf2_record_block_ranges): Likewise.
9677 (read_partial_die): Likewise.
9678 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9679
9b333ba3
TT
96802014-02-26 Tom Tromey <tromey@redhat.com>
9681
9682 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9683
5f6cac40
TT
96842014-02-26 Tom Tromey <tromey@redhat.com>
9685
9686 * elfread.c (elf_read_minimal_symbols): Return early if
9687 minimal symbols have already been read. Add "ei" parameter.
9688 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9689 * minsyms.c (prim_record_minimal_symbol_full): Update.
9690 * objfiles.h (struct objstats) <n_minsyms>: Move...
9691 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9692 * symmisc.c (print_objfile_statistics): Update.
9693
2750ef27
TT
96942014-02-26 Tom Tromey <tromey@redhat.com>
9695
9696 * elfread.c (elf_read_minimal_symbols): New function, from
9697 elf_symfile_read.
9698 (elf_symfile_read): Call it.
9699
34643a32
TT
97002014-02-26 Tom Tromey <tromey@redhat.com>
9701
9702 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9703 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9704 (lookup_minimal_symbol_solib_trampoline)
9705 (lookup_minimal_symbol_by_pc_section_1)
9706 (lookup_minimal_symbol_and_objfile): Update.
9707 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9708 Don't allocate a minimal symbol if minsyms have already been read.
9709 (build_minimal_symbol_hash_tables): Update.
9710 (install_minimal_symbols): Do nothing if minsyms already read.
9711 Use the per-BFD obstack.
9712 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9713 * objfiles.c (allocate_objfile): Call
9714 terminate_minimal_symbol_table later.
9715 (have_minimal_symbols): Update.
9716 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9717 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9718 Move from struct objfile.
9719 <minsyms_read>: New field.
9720 (struct objfile) <msymbols, minimal_symbol_count,
9721 msymbol_hash, msymbol_demangled_hash>: Move.
9722 (ALL_OBJFILE_MSYMBOLS): Update.
9723 * symfile.c (read_symbols): Set minsyms_read.
9724 (reread_symbols): Update.
9725 * symmisc.c (dump_objfile, dump_msymbols): Update.
9726
2273f0ac
TT
97272014-02-26 Tom Tromey <tromey@redhat.com>
9728
9729 * minsyms.c (msymbols_sort): Remove.
9730 * minsyms.h (msymbols_sort): Remove.
9731 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9732 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9733 * elfread.c (elf_symtab_read): Don't add section offsets.
9734 * xcoffread.c (record_minimal_symbol): Don't add section offset
9735 to minimal symbol address.
9736 * somread.c (text_offset, data_offset): Remove.
9737 (som_symtab_read): Don't add section offsets to minimal symbol
9738 addresses.
9739 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9740 Don't add section offsets to minimal symbols.
9741 * coffread.c (coff_symtab_read): Don't add section offsets
9742 to minimal symbol addresses.
9743 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9744 to minimal symbol addresses.
9745 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9746 section offset to minimal symbol addresses.
9747 * mdebugread.c (parse_partial_symbols): Don't add section
9748 offset to minimal symbol addresses.
9749 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9750 offset to minimal symbol addresses.
9751
77e371c0
TT
97522014-02-26 Tom Tromey <tromey@redhat.com>
9753
9754 * ada-lang.c (ada_main_name): Update.
9755 (ada_add_standard_exceptions): Update.
9756 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9757 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9758 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9759 * auxv.c (ld_so_xfer_auxv): Update.
9760 * avr-tdep.c (avr_scan_prologue): Update.
9761 * ax-gdb.c (gen_var_ref): Update.
9762 * blockframe.c (get_pc_function_start)
9763 (find_pc_partial_function_gnu_ifunc): Update.
9764 * breakpoint.c (create_overlay_event_breakpoint)
9765 (create_longjmp_master_breakpoint)
9766 (create_std_terminate_master_breakpoint)
9767 (create_exception_master_breakpoint): Update.
9768 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9769 * c-valprint.c (c_val_print): Update.
9770 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9771 * common/agent.c (agent_look_up_symbols): Update.
9772 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9773 * dwarf2loc.c (call_site_to_target_addr): Update.
9774 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9775 * elfread.c (elf_gnu_ifunc_record_cache)
9776 (elf_gnu_ifunc_resolve_by_got): Update.
9777 * findvar.c (default_read_var_value): Update.
9778 * frame.c (inside_main_func): Update.
9779 * frv-tdep.c (frv_frame_this_id): Update.
9780 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9781 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9782 Update.
9783 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9784 (hppa_hpux_find_dummy_bpaddr): Update.
9785 * hppa-tdep.c (hppa_symbol_address): Update.
9786 * infcmd.c (until_next_command): Update.
9787 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9788 Update.
9789 * linespec.c (minsym_found, add_minsym): Update.
9790 * linux-nat.c (get_signo): Update.
9791 * linux-thread-db.c (inferior_has_bug): Update.
9792 * m32c-tdep.c (m32c_return_value)
9793 (m32c_m16c_address_to_pointer): Update.
9794 * m32r-tdep.c (m32r_frame_this_id): Update.
9795 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9796 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9797 * maint.c (maintenance_translate_address): Update.
9798 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9799 (frob_address): New function.
9800 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9801 frob_address. Rename parameter to "pc_in".
9802 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9803 addresses.
9804 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9805 Update.
9806 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9807 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9808 * objc-lang.c (find_objc_msgsend): Update.
9809 * objfiles.c (objfile_relocate1): Update.
9810 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9811 * p-valprint.c (pascal_val_print): Update.
9812 * parse.c (write_exp_msymbol): Update.
9813 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9814 (ppc_elfv2_skip_entrypoint): Update.
9815 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9816 * printcmd.c (build_address_symbolic, msym_info)
9817 (address_info): Update.
9818 * proc-service.c (ps_pglobal_lookup): Update.
9819 * psymtab.c (find_pc_sect_psymtab_closer)
9820 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9821 Change msymbol parameter to bound_minimal_symbol.
9822 * ravenscar-thread.c (get_running_thread_id): Update.
9823 * remote.c (remote_check_symbols): Update.
9824 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9825 address.
9826 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9827 * solib-dsbt.c (lm_base): Update.
9828 * solib-frv.c (lm_base, main_got): Update.
9829 * solib-irix.c (locate_base): Update.
9830 * solib-som.c (som_solib_create_inferior_hook)
9831 (link_map_start): Update.
9832 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9833 * solib-svr4.c (elf_locate_base, enable_break): Update.
9834 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9835 (flush_ea_cache): Update.
9836 * stabsread.c (define_symbol, scan_file_globals): Update.
9837 * stack.c (find_frame_funname): Update.
9838 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9839 (debug_qf_find_pc_sect_symtab): Update.
9840 * symfile.c (simple_read_overlay_table)
9841 (simple_overlay_update): Update.
9842 * symfile.h (struct quick_symbol_functions)
9843 <find_pc_sect_symtab>: Change type of msymbol to
9844 bound_minimal_symbol.
9845 * symmisc.c (dump_msymbols): Update.
9846 * symtab.c (find_pc_sect_symtab_via_partial)
9847 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9848 (search_symbols, print_msymbol_info): Update.
9849 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9850 (MSYMBOL_VALUE_ADDRESS): Redefine.
9851 (BMSYMBOL_VALUE_ADDRESS): New macro.
9852 * tracepoint.c (scope_info): Update.
9853 * tui/tui-disasm.c (tui_find_disassembly_address)
9854 (tui_get_begin_asm_address): Update.
9855 * valops.c (find_function_in_inferior): Update.
9856 * value.c (value_static_field, value_fn_field): Update.
9857
3b7344d5
TT
98582014-02-26 Tom Tromey <tromey@redhat.com>
9859
9860 * ada-lang.c (ada_update_initial_language): Update.
9861 (ada_main_name, ada_has_this_exception_support): Update.
9862 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9863 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9864 * arm-tdep.c (arm_skip_stub): Update.
9865 * auxv.c (ld_so_xfer_auxv): Update.
9866 * avr-tdep.c (avr_scan_prologue): Update.
9867 * ax-gdb.c (gen_var_ref): Update.
9868 * breakpoint.c (struct breakpoint_objfile_data)
9869 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9870 type to bound_minimal_symbol.
9871 (create_overlay_event_breakpoint)
9872 (create_longjmp_master_breakpoint)
9873 (create_std_terminate_master_breakpoint)
9874 (create_exception_master_breakpoint): Update.
9875 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9876 * c-exp.y (classify_name): Update.
9877 * coffread.c (coff_symfile_read): Update.
9878 * common/agent.c (agent_look_up_symbols): Update.
9879 * d-lang.c (d_main_name): Update.
9880 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9881 * dec-thread.c (enable_dec_thread): Update.
9882 * dwarf2loc.c (call_site_to_target_addr): Update.
9883 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9884 * eval.c (evaluate_subexp_standard): Update.
9885 * findvar.c (struct minsym_lookup_data) <result>: Change type
9886 to bound_minimal_symbol.
9887 <objfile>: Remove.
9888 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9889 * frame.c (inside_main_func): Update.
9890 * frv-tdep.c (frv_frame_this_id): Update.
9891 * gcore.c (call_target_sbrk): Update.
9892 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9893 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9894 Update.
9895 * go-lang.c (go_main_name): Update.
9896 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9897 (hppa_hpux_find_import_stub_for_addr): Update.
9898 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9899 Update. Change return type.
9900 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9901 type.
9902 * jit.c (jit_breakpoint_re_set_internal): Update.
9903 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9904 Update.
9905 * linux-nat.c (get_signo): Update.
9906 * linux-thread-db.c (inferior_has_bug): Update
9907 * m32c-tdep.c (m32c_return_value)
9908 (m32c_m16c_address_to_pointer): Update.
9909 * m32r-tdep.c (m32r_frame_this_id): Update.
9910 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9911 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9912 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9913 lookup_minimal_symbol. Change return type.
9914 (lookup_minimal_symbol): Remove.
9915 (lookup_bound_minimal_symbol): Update.
9916 (lookup_minimal_symbol_text): Change return type.
9917 (lookup_minimal_symbol_solib_trampoline): Change return type.
9918 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9919 (lookup_minimal_symbol_solib_trampoline): Change return type.
9920 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9921 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9922 (value_nsstring, find_imps): Update.
9923 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9924 * p-lang.c (pascal_main_name): Update.
9925 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9926 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9927 * proc-service.c (ps_pglobal_lookup): Update.
9928 * ravenscar-thread.c (get_running_thread_msymbol): Change
9929 return type.
9930 (has_ravenscar_runtime, get_running_thread_id): Update.
9931 * remote.c (remote_check_symbols): Update.
9932 * sol-thread.c (ps_pglobal_lookup): Update.
9933 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9934 * solib-dsbt.c (lm_base): Update.
9935 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9936 Update.
9937 * solib-irix.c (locate_base): Update.
9938 * solib-som.c (som_solib_create_inferior_hook)
9939 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9940 Update.
9941 * solib-spu.c (spu_enable_break): Update.
9942 * solib-svr4.c (elf_locate_base, enable_break): Update.
9943 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9944 (flush_ea_cache): Update.
9945 * stabsread.c (define_symbol): Update.
9946 * symfile.c (simple_read_overlay_table): Update.
9947 * symtab.c (find_pc_sect_line): Update.
9948 * tracepoint.c (scope_info): Update.
9949 * tui-disasm.c (tui_get_begin_asm_address): Update.
9950 * value.c (value_static_field): Update.
9951
40c1a007
TT
99522014-02-26 Tom Tromey <tromey@redhat.com>
9953
9954 * minsyms.c (prim_record_minimal_symbol_full): Use
9955 SET_MSYMBOL_VALUE_ADDRESS.
9956 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9957 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9958 SET_MSYMBOL_VALUE_ADDRESS.
9959 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9960 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9961
efd66ac6
TT
99622014-02-26 Tom Tromey <tromey@redhat.com>
9963
9964 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9965 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9966 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9967 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9968 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9969 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9970 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9971 * ada-lang.c (ada_main_name): Update.
9972 (ada_lookup_simple_minsym): Update.
9973 (ada_make_symbol_completion_list): Update.
9974 (ada_add_standard_exceptions): Update.
9975 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9976 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9977 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9978 * arm-tdep.c (skip_prologue_function): Update.
9979 (arm_skip_stack_protector, arm_skip_stub): Update.
9980 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9981 (arm_wince_skip_main_prologue): Update.
9982 * auxv.c (ld_so_xfer_auxv): Update.
9983 * avr-tdep.c (avr_scan_prologue): Update.
9984 * ax-gdb.c (gen_var_ref): Update.
9985 * block.c (call_site_for_pc): Update.
9986 * blockframe.c (get_pc_function_start): Update.
9987 (find_pc_partial_function_gnu_ifunc): Update.
9988 * breakpoint.c (create_overlay_event_breakpoint): Update.
9989 (create_longjmp_master_breakpoint): Update.
9990 (create_std_terminate_master_breakpoint): Update.
9991 (create_exception_master_breakpoint): Update.
9992 (resolve_sal_pc): Update.
9993 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9994 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9995 Update.
9996 * c-valprint.c (c_val_print): Update.
9997 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9998 * coffread.c (coff_symfile_read): Update.
9999 * common/agent.c (agent_look_up_symbols): Update.
10000 * dbxread.c (find_stab_function_addr): Update.
10001 (end_psymtab): Update.
10002 * dwarf2loc.c (call_site_to_target_addr): Update.
10003 (func_verify_no_selftailcall): Update.
10004 (tailcall_dump): Update.
10005 (call_site_find_chain_1): Update.
10006 (dwarf_expr_reg_to_entry_parameter): Update.
10007 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10008 (elf_gnu_ifunc_resolve_by_got): Update.
10009 * f-valprint.c (info_common_command): Update.
10010 * findvar.c (read_var_value): Update.
10011 * frame.c (get_prev_frame_1): Update.
10012 (inside_main_func): Update.
10013 * frv-tdep.c (frv_skip_main_prologue): Update.
10014 (frv_frame_this_id): Update.
10015 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10016 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10017 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10018 (gnuv3_skip_trampoline): Update.
10019 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10020 (hppa64_hpux_in_solib_call_trampoline): Update.
10021 (hppa_hpux_skip_trampoline_code): Update.
10022 (hppa64_hpux_search_dummy_call_sequence): Update.
10023 (hppa_hpux_find_import_stub_for_addr): Update.
10024 (hppa_hpux_find_dummy_bpaddr): Update.
10025 * hppa-tdep.c (hppa_symbol_address)
10026 (hppa_lookup_stub_minimal_symbol): Update.
10027 * i386-tdep.c (i386_skip_main_prologue): Update.
10028 (i386_pe_skip_trampoline_code): Update.
10029 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10030 * infcall.c (get_function_name): Update.
10031 * infcmd.c (until_next_command): Update.
10032 * jit.c (jit_breakpoint_re_set_internal): Update.
10033 (jit_inferior_init): Update.
10034 * linespec.c (minsym_found): Update.
10035 (add_minsym): Update.
10036 * linux-fork.c (info_checkpoints_command): Update.
10037 * linux-nat.c (get_signo): Update.
10038 * linux-thread-db.c (inferior_has_bug): Update.
10039 * m32c-tdep.c (m32c_return_value): Update.
10040 (m32c_m16c_address_to_pointer): Update.
10041 (m32c_m16c_pointer_to_address): Update.
10042 * m32r-tdep.c (m32r_frame_this_id): Update.
10043 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10044 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10045 * maint.c (maintenance_translate_address): Update.
10046 * minsyms.c (add_minsym_to_hash_table): Update.
10047 (add_minsym_to_demangled_hash_table): Update.
10048 (msymbol_objfile): Update.
10049 (lookup_minimal_symbol): Update.
10050 (iterate_over_minimal_symbols): Update.
10051 (lookup_minimal_symbol_text): Update.
10052 (lookup_minimal_symbol_by_pc_name): Update.
10053 (lookup_minimal_symbol_solib_trampoline): Update.
10054 (lookup_minimal_symbol_by_pc_section_1): Update.
10055 (lookup_minimal_symbol_and_objfile): Update.
10056 (prim_record_minimal_symbol_full): Update.
10057 (compare_minimal_symbols): Update.
10058 (compact_minimal_symbols): Update.
10059 (build_minimal_symbol_hash_tables): Update.
10060 (install_minimal_symbols): Update.
10061 (terminate_minimal_symbol_table): Update.
10062 (find_solib_trampoline_target): Update.
10063 (minimal_symbol_upper_bound): Update.
10064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10065 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10066 (mips_skip_pic_trampoline_code): Update.
10067 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10068 * objc-lang.c (selectors_info): Update.
10069 (classes_info): Update.
10070 (find_methods): Update.
10071 (find_imps): Update.
10072 (find_objc_msgsend): Update.
10073 * objfiles.c (objfile_relocate1): Update.
10074 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10075 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10076 * p-valprint.c (pascal_val_print): Update.
10077 * parse.c (write_exp_msymbol): Update.
10078 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10079 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10080 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10081 * printcmd.c (build_address_symbolic): Update.
10082 (sym_info): Update.
10083 (address_info): Update.
10084 * proc-service.c (ps_pglobal_lookup): Update.
10085 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10086 (find_pc_sect_psymtab): Update.
10087 * python/py-framefilter.c (py_print_frame): Update.
10088 * ravenscar-thread.c (get_running_thread_id): Update.
10089 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10090 Update.
10091 * remote.c (remote_check_symbols): Update.
10092 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10093 (rs6000_skip_trampoline_code): Update.
10094 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10095 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10096 * solib-dsbt.c (lm_base): Update.
10097 * solib-frv.c (lm_base): Update.
10098 (main_got): Update.
10099 * solib-irix.c (locate_base): Update.
10100 * solib-som.c (som_solib_create_inferior_hook): Update.
10101 (som_solib_desire_dynamic_linker_symbols): Update.
10102 (link_map_start): Update.
10103 * solib-spu.c (spu_enable_break): Update.
10104 (ocl_enable_break): Update.
10105 * solib-svr4.c (elf_locate_base): Update.
10106 (enable_break): Update.
10107 * spu-tdep.c (spu_get_overlay_table): Update.
10108 (spu_catch_start): Update.
10109 (flush_ea_cache): Update.
10110 * stabsread.c (define_symbol): Update.
10111 (scan_file_globals): Update.
10112 * stack.c (find_frame_funname): Update.
10113 (frame_info): Update.
10114 * symfile.c (simple_read_overlay_table): Update.
10115 (simple_overlay_update): Update.
10116 * symmisc.c (dump_msymbols): Update.
10117 * symtab.c (fixup_section): Update.
10118 (find_pc_sect_line): Update.
10119 (skip_prologue_sal): Update.
10120 (search_symbols): Update.
10121 (print_msymbol_info): Update.
10122 (rbreak_command): Update.
10123 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10124 (completion_list_objc_symbol): Update.
10125 (default_make_symbol_completion_list_break_on): Update.
10126 * tracepoint.c (scope_info): Update.
10127 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10128 (tui_get_begin_asm_address): Update.
10129 * valops.c (find_function_in_inferior): Update.
10130 * value.c (value_static_field): Update.
10131 (value_fn_field): Update.
10132
50e65b17
TT
101332014-02-26 Tom Tromey <tromey@redhat.com>
10134
10135 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10136 bound minimal symbols. Move code that knows about minsym
10137 table layout...
10138 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10139 function.
10140 * minsyms.h (minimal_symbol_upper_bound): Declare.
10141 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10142 minimal_symbol_upper_bound.
10143
1b588015
JB
101442014-02-27 Joel Brobecker <brobecker@adacore.com>
10145
10146 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10147 Use the type's name if its basic type does not have a tag.
10148
dbb9c2b1
JB
101492014-02-27 Joel Brobecker <brobecker@adacore.com>
10150
10151 * dwarf2read.c (read_subrange_type): Add comment.
10152
55426c9d
JB
101532014-02-27 Joel Brobecker <brobecker@adacore.com>
10154
10155 * dwarf2read.c (update_enumeration_type_from_children): New
10156 function, mostly extracted from process_structure_scope.
10157 (read_enumeration_type): Call update_enumeration_type_from_children.
10158 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10159 and flag_flag_enum fields.
10160
f2fce0ca
PA
101612014-02-26 Pedro Alves <palves@redhat.com>
10162
10163 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10164 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10165 to_xfer_partial method.
10166
7a44e40e
PA
101672014-02-26 Pedro Alves <palves@redhat.com>
10168
10169 * target.c (complete_target_initialization): Don't install
10170 default_xfer_partial as to_xfer_partial hook.
10171 (nomemory): Delete.
10172 (update_current_target): Don't INHERIT nor de_fault
10173 deprecated_xfer_memory. Delete de_fault macro.
10174 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10175 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10176 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10177 field.
10178
bd265cd0
PA
101792014-02-26 Pedro Alves <palves@redhat.com>
10180
10181 * go32-nat.c (my_write_child): New function.
10182 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10183 (go32_xfer_partial): New function.
10184 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10185 Instead install a to_xfer_partial hook.
10186
9d46c4e5
PA
101872014-02-26 Pedro Alves <palves@redhat.com>
10188
10189 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10190 to_xfer_partial helper. Rewrite.
10191 (procfs_xfer_partial): New function.
10192 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10193 Install a to_xfer_partial hook.
10194
a1583b1f
PA
101952014-02-26 Pedro Alves <palves@redhat.com>
10196
10197 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10198 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10199 (m32r_xfer_partial): New function.
10200 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10201 Install a to_xfer_partial hook.
10202
6df1b29f
PA
102032014-02-26 Pedro Alves <palves@redhat.com>
10204
10205 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10206 helper.
10207 (mips_xfer_partial): New function.
10208 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10209 hook. Install a to_xfer_partial hook.
10210
dc53a7ad
JB
102112014-02-26 Joel Brobecker <brobecker@adacore.com>
10212
10213 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10214 * gdbtypes.c (create_array_type_with_stride): New function,
10215 renaming create_array_type, but with an added parameter
10216 called "bit_stride".
10217 (create_array_type): Re-implement using
10218 create_array_type_with_stride.
10219 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10220 and DW_AT_bit_stride attributes.
10221
12ab52e9
PA
102222014-02-26 Pedro Alves <palves@redhat.com>
10223
10224 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10225 task-specific breakpoints.
10226
d16461ae
PA
102272014-02-25 Pedro Alves <palves@redhat.com>
10228
10229 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10230 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10231
a8b16220
SS
102322014-02-25 Stan Shebs <stan@codesourcery.com>
10233
10234 * defs.h: Annotate comments for Doxygen.
10235
b9e795ee
TT
102362014-02-25 Tom Tromey <tromey@redhat.com>
10237
10238 * target.h (target_ignore): Don't declare.
10239 * target.c (target_ignore): Remove.
10240
849c862e
JK
102412014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10242
10243 PR gdb/16626
10244 * auto-load.c (auto_load_objfile_script_1): Change filename to
10245 debugfile.
10246
475109d8
JB
102472014-02-25 Joel Brobecker <brobecker@adacore.com>
10248
10249 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10250 documentation. Adjust prototype to match the target_ops
10251 to_xfer_partial method. Adjust implementation accordingly.
10252
e186c3bd
HZ
102532014-02-25 Hui Zhu <hui@codesourcery.com>
10254
10255 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10256 to_traceframe_info.
10257
6d451942
KB
102582014-02-25 Kevin Buettner <kevinb@redhat.com>
10259
041ab8b4 10260 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10261 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10262 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10263 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10264 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10265 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10266 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10267 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10268 New constants.
10269 (rl78_register_type): Use a data pointer type for SP and
10270 new pseudo registers mentioned above. Use a 16 bit integer
10271 type for all other register pairs.
10272 (rl78_register_name, rl78_g10_register_name): Update for
10273 new pseudo registers.
10274 (rl78_pseudo_register_read): Likewise.
10275 (rl78_pseudo_register_write): Likewise.
10276 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10277 to the newly added pseudo registers.
10278
eddf0bae
DE
102792014-02-24 Doug Evans <dje@google.com>
10280
10281 * value.c (record_latest_value): Fix comment.
10282 * printcmd.c (print_command_1): Remove code to handle -1 return from
10283 record_latest_value.
10284
e96027e0
PA
102852014-02-24 Pedro Alves <palves@redhat.com>
10286
10287 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10288 deprecated_xfer_memory hook.
10289 (procfs_xfer_partial): Call procfs_xfer_memory instead
10290 of the deprecated_xfer_memory target hook.
10291 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10292 helper.
10293
0837c976
YZ
102942014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10295
10296 * windows-nat.c (windows_xfer_shared_libraries): Return
10297 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10298 requested object is TARGET_OBJECT_LIBRARIES.
10299
bc113b4e
YQ
103002014-02-24 Yao Qi <yao@codesourcery.com>
10301
10302 * target.h (enum target_xfer_status)
10303 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10304 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10305 explicitly. New.
10306 * corefile.c (memory_error_message): User updated.
10307 * exec.c (section_table_read_available_memory): Likewise.
10308 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10309 * target.c (target_xfer_status_to_string): Likewise.
10310 (raw_memory_xfer_partial): Likewise.
10311 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10312 * valops.c (read_value_memory): Likewise.
10313 * exec.h: Update comments.
10314
01cb8804
YQ
103152014-02-24 Yao Qi <yao@codesourcery.com>
10316
10317 * target.c (target_xfer_status_to_string): Rename argument err
10318 to status.
10319 * target.h (target_xfer_status_to_string): Update declaration.
10320 Replace target_xfer_error_to_string with
10321 target_xfer_status_to_string in comment.
10322
93063aa6
YQ
103232014-02-24 Yao Qi <yao@codesourcery.com>
10324
10325 * mips-linux-nat.c (super_close): Update its type.
10326 (mips_linux_close): Pass 'self' to super_close.
10327
5c328c05
YQ
103282014-02-24 Yao Qi <yao@codesourcery.com>
10329
10330 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10331 * corefile.c (read_memory): Adjusted.
10332 * target.c (target_write_with_progress): Adjusted.
10333
f73023dd
YQ
103342014-02-23 Yao Qi <yao@codesourcery.com>
10335
10336 Revert two patches:
10337
10338 2013-10-25 Yao Qi <yao@codesourcery.com>
10339
10340 * remote.c (remote_traceframe_info): Return early if
10341 traceframe is not selected.
10342
10343 2013-07-19 Yao Qi <yao@codesourcery.com>
10344
10345 * target.c (update_current_target): Change the default action
10346 of 'to_traceframe_info' from tcomplain to return_zero.
10347 * target.h (struct target_ops) <to_traceframe_info>: Add more
10348 comments.
10349
5a2eb0ef
YQ
103502014-02-23 Yao Qi <yao@codesourcery.com>
10351
10352 * valops.c (read_value_memory): Rewrite it. Call
10353 target_xfer_partial in a loop.
10354 * exec.h (section_table_available_memory): Remove declaration.
10355 Move comments to ...
10356 * exec.c (section_table_available_memory): ... here. Make it
10357 static.
10358
1ee79381
YQ
103592014-02-23 Yao Qi <yao@codesourcery.com>
10360
10361 * exec.c (section_table_read_available_memory): New function.
10362 * exec.h (section_table_read_available_memory): Declare.
10363 * ctf.c (ctf_xfer_partial): Call
10364 section_table_read_available_memory.
10365 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10366
1ca49d37
YQ
103672014-02-23 Yao Qi <yao@codesourcery.com>
10368
10369 * ctf.c (ctf_xfer_partial): Move code to ...
10370 * exec.c (exec_read_partial_read_only): ... it. New function.
10371 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10372 * tracefile.c: Include "exec.h".
10373 * exec.h (exec_read_partial_read_only): Declare.
10374
a283690e
YQ
103752014-02-23 Yao Qi <yao@codesourcery.com>
10376
10377 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10378 (tfile_has_memory): Remove.
10379 (init_tfile_ops): Don't set fields to_has_all_memory and
10380 to_has_memory of tfile_ops.
10381 * tracefile.c (tracefile_has_all_memory): New function.
10382 (tracefile_has_memory): New function.
10383 (init_tracefile_ops): Initialize fields to_has_all_memory and
10384 to_has_memory of 'ops'.
10385
12e03cd0
YQ
103862014-02-23 Yao Qi <yao@codesourcery.com>
10387
10388 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10389 (ctf_thread_alive, ctf_get_trace_status): Remove.
10390 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10391 init_tracefile_ops.
10392 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10393 (tfile_has_stack, tfile_has_registers): Remove.
10394 (tfile_thread_alive): Remove.
10395 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10396 init_tracefile_ops.
10397 * tracefile.c (tracefile_has_stack): New function.
10398 (tracefile_has_registers): New function.
10399 (tracefile_thread_alive): New function.
10400 (tracefile_get_trace_status): New function.
10401 (init_tracefile_ops): New function.
10402 * tracefile.h (init_tracefile_ops): Declare.
10403
11395323
YQ
104042014-02-23 Yao Qi <yao@codesourcery.com>
10405
10406 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10407 (O_LARGEFILE): Likewise.
10408 (tfile_ops): Likewise.
10409 (TRACE_HEADER_SIZE): Likewise.
10410 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10411 (cur_data_size): Likewise.
10412 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10413 (tfile_close, tfile_files_info): Likewise.
10414 (tfile_get_trace_status): Likewise.
10415 (tfile_get_tracepoint_status): Likewise.
10416 (tfile_get_traceframe_address): Likewise.
10417 (tfile_trace_find, match_blocktype): Likewise.
10418 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10419 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10420 (tfile_get_trace_state_variable_value): Likewise.
10421 (tfile_has_all_memory, tfile_has_memory): Likewise.
10422 (tfile_has_stack, tfile_has_registers): Likewise.
10423 (tfile_thread_alive, build_traceframe_info): Likewise.
10424 (tfile_traceframe_info, init_tfile_ops): Likewise.
10425 (_initialize_tracepoint): Don't call init_tfile_ops
10426 and add_target_with_completer.
10427 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10428 exec.h, completer.h and filenames.h.
10429 (_initialize_tracefile_tfile): New function.
10430
7951c4eb
YQ
104312014-02-23 Yao Qi <yao@codesourcery.com>
10432
10433 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10434 tracefile-tfile.o.
10435 (HFILES_NO_SRCDIR): Add tracefile.h.
10436 * ctf.c: Include "tracefile.h".
10437 * tracefile.h: New file.
10438 * tracefile.c: New file
10439 * tracefile-tfile.c: New file.
10440 * tracepoint.c: Include "tracefile.h".
10441 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10442 (stop_reason_names): Add const.
10443 (trace_file_writer_xfree): Move it to tracefile.c.
10444 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10445 (trace_save_ctf): Likewise.
10446 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10447 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10448 (tfile_write_header, tfile_write_regblock_type): Likewise.
10449 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10450 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10451 (tfile_write_raw_data, tfile_end): Likewise.
10452 (tfile_trace_file_writer_new): Likewise.
10453 (free_uploaded_tp): Make it extern.
10454 (free_uploaded_tsv): Make it extern.
10455 (_initialize_tracepoint): Move code to register command 'tsave'
10456 to tracefile.c.
10457 * tracepoint.h (stop_reason_names): Declare.
10458 (struct trace_frame_write_ops): Move it to tracefile.h.
10459 (struct trace_file_write_ops): Likewise.
10460 (struct trace_file_writer): Likewise.
10461 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10462
184cd072
JK
104632014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10464
10465 PR gdb/16594
10466 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10467 process name.
10468 (get_cores_used_by_process): New parameter num_cores, use it.
10469 (linux_xfer_osdata_processes): Pass num_cores to it.
10470 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10471 process name.
10472
c63528fc
AK
104732014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10474
10475 * target.c (memory_xfer_partial): Fix length arg in call to
10476 breakpoint_xfer_memory.
10477
d7b30f67
SDJ
104782014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10479
10480 PR tdep/16397
10481 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10482 number comes after the + or - signs. Adjust length of register
10483 name to be extracted.
10484
8838afaf
TT
104852014-02-20 Tom Tromey <tromey@redhat.com>
10486
10487 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10488 (ada_varobj_ops): Mark "extern".
10489
05227d14
TT
104902014-02-20 Tom Tromey <tromey@redhat.com>
10491
10492 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10493
1254eefc
DE
104942014-02-20 Doug Evans <xdje42@gmail.com>
10495
10496 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10497 All callers updated.
10498 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10499 All callers updated.
10500 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10501 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10502
adde2bff
DE
105032014-02-20 lin zuojian <manjian2006@gmail.com>
10504 Joel Brobecker <brobecker@adacore.com>
10505 Doug Evans <xdje42@gmail.com>
10506
10507 PR symtab/16581
10508 * dwarf2read.c (struct die_info): New member in_process.
10509 (reset_die_in_process): New function.
10510 (process_die): Set it at the start, reset when returning.
10511 (inherit_abstract_dies): Only call process_die if origin_child_die
10512 not already being processed.
10513
3be75f87
JB
105142014-02-20 Joel Brobecker <brobecker@adacore.com>
10515
10516 * windows-nat.c (handle_unload_dll): Add function documentation.
10517 (do_initial_windows_stuff): Add comment explaining why we wait
10518 until after inferior initialization has finished before
10519 processing all DLLs.
10520
47f7ffdb
JB
105212014-02-20 Joel Brobecker <brobecker@adacore.com>
10522
10523 * windows-nat.c (get_module_name): Delete.
10524 (windows_get_exec_module_filename): New function, mostly
10525 inspired from get_module_name.
10526 (windows_pid_to_exec_file): Replace call to get_module_name
10527 by call to windows_get_exec_module_filename.
10528
1cd9feab
JB
105292014-02-20 Joel Brobecker <brobecker@adacore.com>
10530
10531 * windows-nat.c (handle_load_dll): Rewrite this function's
10532 introductory comment. Remove code using get_module_name
10533 to get the DLL's name.
10534
ea39ad35
JB
105352014-02-20 Joel Brobecker <brobecker@adacore.com>
10536
10537 * windows-nat.c (get_windows_debug_event): Ignore
10538 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10539 if windows_initialization_done == 0.
10540 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10541 Adjust implementation to always load all DLLs.
10542 (do_initial_windows_stuff): Replace call to
10543 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10544
95060284
JB
105452014-02-20 Joel Brobecker <brobecker@adacore.com>
10546
10547 * windows-nat.c (_initialize_windows_nat): Deprecate the
10548 "dll-symbols" command. Turn the "add-shared-symbol-files"
10549 and "assf" aliases into commands, and deprecate them as well.
10550 * NEWS: Add entry explaining that "dll-symbols" and its two
10551 aliases are now deprecated.
10552
8d4fdb12
JB
105532014-02-20 Joel Brobecker <brobecker@adacore.com>
10554
10555 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10556 new-line in debug string. Remove trailing spaces.
10557
1b281443
SS
105582014-02-19 Stan Shebs <stan@codesourcery.com>
10559
10560 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10561
f7bd0f78
SC
105622014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10563
10564 * NEWS: Add entry for the new feature
10565 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10566 and class values.
10567
399ebc3d
SS
105682014-02-19 Stan Shebs <stan@codesourcery.com>
10569
10570 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10571
c658158d
PA
105722014-02-19 Pedro Alves <palves@redhat.com>
10573
10574 * common/ptid.h (struct ptid): Mention that process_stratum
10575 targets should prefer ptid.lwp.
10576
ba348170
PA
105772014-02-19 Pedro Alves <palves@redhat.com>
10578
10579 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10580 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10581 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10582 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10583 store remote thread ids rather than ptid.tid.
10584 (_initialize_remote): Adjust.
10585
ac01945b
TT
105862014-02-19 Tom Tromey <tromey@redhat.com>
10587
10588 * target.c (target_get_unwinder): Rewrite.
10589 (target_get_tailcall_unwinder): Rewrite.
10590 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10591 (record_btrace_to_get_tailcall_unwinder): New function.
10592 (init_record_btrace_ops): Update.
10593 * target.h (struct target_ops) <to_get_unwinder,
10594 to_get_tailcall_unwinder>: Now function pointers. Use
10595 TARGET_DEFAULT_RETURN.
10596
8476dc92
TT
105972014-02-19 Tom Tromey <tromey@redhat.com>
10598
10599 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10600 argument.
10601 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10602
c0eca49f
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10606 directly.
10607 * target-delegates.c: Rebuild.
10608 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10609 TARGET_DEFAULT_FUNC.
10610 * target.c (default_target_decr_pc_after_break): Rename from
10611 forward_target_decr_pc_after_break. Simplify.
10612 (target_decr_pc_after_break): Rely on delegation.
10613
596b6b39
TT
106142014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target.c (update_current_target): Do not INHERIT to_doc or
10617 to_magic. Do not de_fault to_open or to_close.
10618
b427c1bc
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * gcore.h (objfile_find_memory_regions): Declare.
10622 * gcore.c (objfile_find_memory_regions): No longer static. Add
10623 "self" argument.
10624 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10625 * exec.c: Include gcore.h.
10626 (exec_set_find_memory_regions): Remove.
10627 (exec_find_memory_regions): Remove.
10628 (exec_do_find_memory_regions): Remove.
10629 (init_exec_ops): Update.
10630 * defs.h (exec_set_find_memory_regions): Remove.
10631
9b144037
TT
106322014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target-delegates.c: Rebuild.
10635 * target.h (struct target_ops) <to_extra_thread_info,
10636 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10637 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10638 not 0, in TARGET_DEFAULT_RETURN.
10639
555bbdeb
TT
106402014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target.c (complete_target_initialization): Remove casts. Use
10643 return_zero_has_execution.
10644 (return_zero): Add "ignore" argument.
10645 (return_zero_has_execution): New function.
10646 (init_dummy_target): Remove casts. Use
10647 return_zero_has_execution.
10648
be4ddd36
TT
106492014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target.c (update_current_target): Update comments. Do not
10652 INHERIT to_stratum.
10653
2117c711
TT
106542014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10657 needed.
10658 * corelow.c (core_read_description): Delegate when needed.
10659 * remote.c (remote_read_description): Delegate when needed.
10660 * target-delegates.c: Rebuild.
10661 * target.c (target_read_description): Rewrite.
10662 * target.h (struct target_ops) <to_read_description>: Update
10663 comment. Use TARGET_DEFAULT_RETURN.
10664
e88ef65c
TT
106652014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * target-delegates.c: Rebuild.
10668 * target.c (update_current_target): Don't inherit or default
10669 to_can_run.
10670 (find_default_run_target): Check against delegate_can_run.
10671 * target.h (struct target_ops) <to_can_run>: Use
10672 TARGET_DEFAULT_RETURN.
10673
86a0854a
TT
106742014-02-19 Tom Tromey <tromey@redhat.com>
10675
10676 * target-delegates.c: Rebuild.
10677 * target.c (target_disconnect): Unconditionally delegate.
10678 * target.h (struct target_ops) <to_disconnect>: Use
10679 TARGET_DEFAULT_NORETURN.
10680
ee97f592
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * record.c (record_stop): Unconditionally delegate.
10684 * target-delegates.c: Rebuild.
10685 * target.c (target_stop_recording): Unconditionally delegate.
10686 * target.h (struct target_ops) <to_stop_recording>: Use
10687 TARGET_DEFAULT_IGNORE.
10688
6dc7fcf4
TT
106892014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * target-delegates.c: Rebuild.
10692 * target.c (target_enable_btrace): Unconditionally delegate.
10693 * target.h (struct target_ops) <to_enable_btrace>: Use
10694 TARGET_DEFAULT_NORETURN.
10695
eb5b20d4
TT
106962014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target-delegates.c: Rebuild.
10699 * target.c (target_read_btrace): Unconditionally delegate.
10700 * target.h (struct target_ops) <to_read_btrace>: Use
10701 TARGET_DEFAULT_NORETURN.
10702
9ace480d
TT
107032014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target-delegates.c: Rebuild.
10706 * target.c (target_teardown_btrace): Unconditionally delegate.
10707 * target.h (struct target_ops) <to_teardown_btrace>: Use
10708 TARGET_DEFAULT_NORETURN.
10709
8dc292d3
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.c (target_disable_btrace): Unconditionally delegate.
10714 * target.h (struct target_ops) <to_disable_btrace>: Use
10715 TARGET_DEFAULT_NORETURN.
10716
58a5184e
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target-delegates.c: Rebuild.
10720 * target.c (default_search_memory): New function.
10721 (simple_search_memory): Update comment.
10722 (target_search_memory): Unconditionally delegate.
10723 * target.h (struct target_ops) <to_search_memory>: Use
10724 TARGET_DEFAULT_FUNC.
10725
8de71aab
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * auxv.c (default_auxv_parse): No longer static.
10729 (target_auxv_parse): Unconditionally delegate.
10730 * auxv.h (default_auxv_parse): Declare.
10731 * target-delegates.c: Rebuild.
10732 * target.c: Include auxv.h.
10733 * target.h (struct target_ops) <to_auxv_parse>: Use
10734 TARGET_DEFAULT_FUNC.
10735
6b2c5a57
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (target_memory_map): Unconditionally delegate.
10740 * target.h (struct target_ops) <to_memory_map>: Use
10741 TARGET_DEFAULT_RETURN.
10742
cbffc065
TT
107432014-02-19 Tom Tromey <tromey@redhat.com>
10744
10745 * target-delegates.c: Rebuild.
10746 * target.c (target_thread_alive): Unconditionally delegate.
10747 * target.h (struct target_ops) <to_thread_alive>: Use
10748 TARGET_DEFAULT_RETURN.
10749
f09e2107
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (target_save_record): Unconditionally delegate.
10754 * target.h (struct target_ops) <to_save_record>: Use
10755 TARGET_DEFAULT_NORETURN.
10756
07366925
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target-delegates.c: Rebuild.
10760 * target.c (target_delete_record): Unconditionally delegate.
10761 * target.h (struct target_ops) <to_delete_record>: Use
10762 TARGET_DEFAULT_NORETURN.
10763
dd2e9d25
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target-delegates.c: Rebuild.
10767 * target.c (target_record_is_replaying): Unconditionally
10768 delegate.
10769 * target.h (struct target_ops) <to_record_is_replaying>: Use
10770 TARGET_DEFAULT_RETURN.
10771
671e76cc
TT
107722014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * target-delegates.c: Rebuild.
10775 * target.c (target_goto_record_begin): Unconditionally delegate.
10776 * target.h (struct target_ops) <to_goto_record_begin>: Use
10777 TARGET_DEFAULT_NORETURN.
10778
e9179bb3
TT
107792014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target-delegates.c: Rebuild.
10782 * target.c (target_goto_record_end): Unconditionally delegate.
10783 * target.h (struct target_ops) <to_goto_record_end>: Use
10784 TARGET_DEFAULT_NORETURN.
10785
05969c84
TT
107862014-02-19 Tom Tromey <tromey@redhat.com>
10787
10788 * target-delegates.c: Rebuild.
10789 * target.c (target_goto_record): Unconditionally delegate.
10790 * target.h (struct target_ops) <to_goto_record>: Use
10791 TARGET_DEFAULT_NORETURN.
10792
3679abfa
TT
107932014-02-19 Tom Tromey <tromey@redhat.com>
10794
10795 * target-delegates.c: Rebuild.
10796 * target.c (target_insn_history): Unconditionally delegate.
10797 * target.h (struct target_ops) <to_insn_history>: Use
10798 TARGET_DEFAULT_NORETURN.
10799
8444ab58
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target-delegates.c: Rebuild.
10803 * target.c (target_insn_history_from): Unconditionally delegate.
10804 * target.h (struct target_ops) <to_insn_history_from>: Use
10805 TARGET_DEFAULT_NORETURN.
10806
c29302cc
TT
108072014-02-19 Tom Tromey <tromey@redhat.com>
10808
10809 * target-delegates.c: Rebuild.
10810 * target.c (target_insn_history_range): Unconditionally delegate.
10811 * target.h (struct target_ops) <to_insn_history_range>: Use
10812 TARGET_DEFAULT_NORETURN.
10813
170049d4
TT
108142014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (target_call_history): Unconditionally delegate.
10818 * target.h (struct target_ops) <to_call_history>: Use
10819 TARGET_DEFAULT_NORETURN.
10820
16fc27d6
TT
108212014-02-19 Tom Tromey <tromey@redhat.com>
10822
10823 * target-delegates.c: Rebuild.
10824 * target.c (target_call_history_from): Unconditionally delegate.
10825 * target.h (struct target_ops) <to_call_history_from>: Use
10826 TARGET_DEFAULT_NORETURN.
10827
115d9817
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target-delegates.c: Rebuild.
10831 * target.c (target_call_history_range): Unconditionally delegate.
10832 * target.h (struct target_ops) <to_call_history_range>: Use
10833 TARGET_DEFAULT_NORETURN.
10834
eb276a6b
TT
108352014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 * target-delegates.c: Rebuild.
10838 * target.c (target_verify_memory): Unconditionally delegate.
10839 * target.h (struct target_ops) <to_verify_memory>: Use
10840 TARGET_DEFAULT_NORETURN.
10841
9e538d0d
TT
108422014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target-delegates.c: Rebuild.
10845 * target.c (target_core_of_thread): Unconditionally delegate.
10846 * target.h (struct target_ops) <to_core_of_thread>: Use
10847 TARGET_DEFAULT_RETURN.
10848
f6fb2925
TT
108492014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * target-delegates.c: Rebuild.
10852 * target.c (target_flash_done): Unconditionally delegate.
10853 * target.h (struct target_ops) <to_flash_done>: Use
10854 TARGET_DEFAULT_NORETURN.
10855
e8a6c6ac
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target-delegates.c: Rebuild.
10859 * target.c (target_flash_erase): Unconditionally delegate.
10860 * target.h (struct target_ops) <to_flash_erase>: Use
10861 TARGET_DEFAULT_NORETURN.
10862
7e35c012
TT
108632014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target-delegates.c: Rebuild.
10866 * target.c (target_get_section_table): Unconditionally delegate.
10867 * target.h (struct target_ops) <to_get_section_table>: Use
10868 TARGET_DEFAULT_RETURN.
10869
770234d3
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target-delegates.c: Rebuild.
10873 * target.c (target_pid_to_str): Unconditionally delegate.
10874 (init_dummy_target): Don't initialize to_pid_to_str.
10875 (default_pid_to_str): Rename from dummy_pid_to_str.
10876 * target.h (struct target_ops) <to_pid_to_str>: Use
10877 TARGET_DEFAULT_FUNC.
10878
09b0dc2b
TT
108792014-02-19 Tom Tromey <tromey@redhat.com>
10880
10881 * target-delegates.c: Rebuild.
10882 * target.c (target_find_new_threads): Unconditionally delegate.
10883 * target.h (struct target_ops) <to_find_new_threads>: Use
10884 TARGET_DEFAULT_RETURN.
10885
7d4f8efa
TT
108862014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (target_program_signals): Unconditionally delegate.
10890 * target.h (struct target_ops) <to_program_signals>: Use
10891 TARGET_DEFAULT_IGNORE.
10892
035cad7f
TT
108932014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target-delegates.c: Rebuild.
10896 * target.c (target_pass_signals): Unconditionally delegate.
10897 * target.h (struct target_ops) <to_pass_signals>: Use
10898 TARGET_DEFAULT_IGNORE.
10899
8d657035
TT
109002014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * target-delegates.c: Rebuild.
10903 * target.c (default_mourn_inferior): New function.
10904 (target_mourn_inferior): Unconditionally delegate.
10905 * target.h (struct target_ops) <to_mourn_inferior>: Use
10906 TARGET_DEFAULT_FUNC.
10907
098dba18
TT
109082014-02-19 Tom Tromey <tromey@redhat.com>
10909
10910 * target-delegates.c: Rebuild.
10911 * target.c (default_follow_fork): New function.
10912 (target_follow_fork): Unconditionally delegate.
10913 * target.h (struct target_ops) <to_follow_fork>: Use
10914 TARGET_DEFAULT_FUNC.
10915
423a4807
TT
109162014-02-19 Tom Tromey <tromey@redhat.com>
10917
10918 * target-delegates.c: Rebuild.
10919 * target.c (target_kill): Unconditionally delegate.
10920 * target.h (struct target_ops) <to_kill>: Use
10921 TARGET_DEFAULT_NORETURN.
10922
6c7e5e5c
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target-delegates.c: Rebuild.
10926 * target.c (target_masked_watch_num_registers): Unconditionally
10927 delegate.
10928 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10929 Use TARGET_DEFAULT_RETURN.
10930
8b1c364c
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target-delegates.c: Rebuild.
10934 * target.c (target_remove_mask_watchpoint): Unconditionally
10935 delegate.
10936 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10937 TARGET_DEFAULT_RETURN.
10938
cd4ae029
TT
109392014-02-19 Tom Tromey <tromey@redhat.com>
10940
10941 * target-delegates.c: Rebuild.
10942 * target.c (target_insert_mask_watchpoint): Unconditionally
10943 delegate.
10944 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10945 TARGET_DEFAULT_RETURN.
10946
a134316b
TT
109472014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target-delegates.c: Rebuild.
10950 * target.c (target_ranged_break_num_registers): Unconditionally
10951 delegate.
10952 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10953 Use TARGET_DEFAULT_RETURN.
10954
ad5989bd
TT
109552014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target-delegates.c: Rebuild.
10958 * target.c (target_fetch_registers): Unconditionally delegate.
10959 * target.h (struct target_ops) <to_fetch_registers>: Use
10960 TARGET_DEFAULT_NORETURN.
10961
46ee7e8d
TT
109622014-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_stop.
10967 * target.h (struct target_ops) <to_stop>: Use
10968 TARGET_DEFAULT_IGNORE.
10969
843f59ed
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10974 to_can_run_breakpoint_commands.
10975 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10976 Use TARGET_DEFAULT_RETURN.
10977
ccfde2a0
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target-delegates.c: Rebuild.
10981 * target.c (update_current_target): Don't inherit or default
10982 to_supports_evaluation_of_breakpoint_conditions.
10983 * target.h (struct target_ops)
10984 <to_supports_evaluation_of_breakpoint_conditions>: Use
10985 TARGET_DEFAULT_RETURN.
10986
0de91722
TT
109872014-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_augmented_libraries_svr4_read.
10992 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10993 Use TARGET_DEFAULT_RETURN.
10994
9a7d8b48
TT
109952014-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_can_use_agent.
11000 * target.h (struct target_ops) <to_can_use_agent>: Use
11001 TARGET_DEFAULT_RETURN.
11002
d9db5b21
TT
110032014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target-delegates.c: Rebuild.
11006 * target.c (update_current_target): Don't inherit or default
11007 to_use_agent.
11008 * target.h (struct target_ops) <to_use_agent>: Use
11009 TARGET_DEFAULT_NORETURN.
11010
92155eeb
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target-delegates.c: Rebuild.
11014 * target.c (update_current_target): Don't inherit or default
11015 to_traceframe_info.
11016 (return_null): Remove.
11017 * target.h (struct target_ops) <to_traceframe_info>: Use
11018 TARGET_DEFAULT_RETURN.
11019
d6522a22
TT
110202014-02-19 Tom Tromey <tromey@redhat.com>
11021
11022 * target-delegates.c: Rebuild.
11023 * target.c (update_current_target): Don't inherit or default
11024 to_static_tracepoint_markers_by_strid.
11025 * target.h (struct target_ops)
11026 <to_static_tracepoint_markers_by_strid>: Use
11027 TARGET_DEFAULT_NORETURN.
11028
4c3e4425
TT
110292014-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_static_tracepoint_marker_at.
11034 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11035 Use TARGET_DEFAULT_RETURN.
11036
dcd6917f
TT
110372014-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_permissions.
11042 * target.h (struct target_ops) <to_set_permissions>: Use
11043 TARGET_DEFAULT_IGNORE.
11044
22bcceee
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target-delegates.c: Rebuild.
11048 * target.c (update_current_target): Don't inherit or default
11049 to_get_tib_address.
11050 * target.h (struct target_ops) <to_get_tib_address>: Use
11051 TARGET_DEFAULT_NORETURN.
11052
8586ccaa
TT
110532014-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_trace_notes.
11058 * target.h (struct target_ops) <to_set_trace_notes>: Use
11059 TARGET_DEFAULT_RETURN.
11060
91df8d1d
TT
110612014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target-delegates.c: Rebuild.
11064 * target.c (update_current_target): Don't initialize
11065 to_set_trace_buffer_size.
11066 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11067 TARGET_DEFAULT_IGNORE.
11068
8d526939
TT
110692014-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_set_circular_trace_buffer.
11074 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11075 TARGET_DEFAULT_IGNORE.
11076
0bcfeddf
TT
110772014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_set_disconnected_tracing.
11082 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11083 TARGET_DEFAULT_IGNORE.
11084
9249843f
TT
110852014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_get_min_fast_tracepoint_insn_len.
11090 (return_minus_one): Remove.
11091 * target.h (struct target_ops)
11092 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11093
ace92e7d
TT
110942014-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_get_raw_trace_data.
11099 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11100 TARGET_DEFAULT_NORETURN.
11101
08120467
TT
111022014-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_upload_trace_state_variables.
11107 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11108 Use TARGET_DEFAULT_RETURN.
11109
1e949b00
TT
111102014-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_upload_tracepoints.
11115 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11116 TARGET_DEFAULT_RETURN.
11117
a2e6c147
TT
111182014-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_save_trace_data.
11123 * target.h (struct target_ops) <to_save_trace_data>: Use
11124 TARGET_DEFAULT_NORETURN.
11125
959bcd0b
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11130 to_get_trace_state_variable_value.
11131 * target.h (struct target_ops)
11132 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11133
afc94e66
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target-delegates.c: Rebuild.
11137 * target.c (update_current_target): Don't inherit or default
11138 to_trace_find.
11139 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11140
e51c07ea
TT
111412014-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_trace_stop.
11146 * target.h (struct target_ops) <to_trace_stop>: Use
11147 TARGET_DEFAULT_NORETURN.
11148
6fea14cd
TT
111492014-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_get_tracepoint_status.
11154 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11155 TARGET_DEFAULT_NORETURN.
11156
4072d4ff
TT
111572014-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_get_trace_status.
11162 * target.h (struct target_ops) <to_get_trace_status>: Use
11163 TARGET_DEFAULT_RETURN.
11164
25da2e80
TT
111652014-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_trace_start.
11170 * target.h (struct target_ops) <to_trace_start>: Use
11171 TARGET_DEFAULT_NORETURN.
11172
86dd181d
TT
111732014-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_trace_set_readonly_regions.
11178 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11179 Use TARGET_DEFAULT_NORETURN.
11180
05c41993
TT
111812014-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_disable_tracepoint.
11186 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11187 TARGET_DEFAULT_NORETURN.
11188
151f70f1
TT
111892014-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_enable_tracepoint.
11194 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11195 TARGET_DEFAULT_NORETURN.
11196
94eb98b9
TT
111972014-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_trace_state_variable.
11202 * target.h (struct target_ops) <to_download_trace_state_variable>:
11203 Use TARGET_DEFAULT_NORETURN.
11204
719acc4a
TT
112052014-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_can_download_tracepoint.
11210 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11211 TARGET_DEFAULT_RETURN.
11212
9a980a22
TT
112132014-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_download_tracepoint.
11218 * target.h (struct target_ops) <to_download_tracepoint>: Use
11219 TARGET_DEFAULT_NORETURN.
11220
5536135b
TT
112212014-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_trace_init.
11226 * target.h (struct target_ops) <to_trace_init>: Use
11227 TARGET_DEFAULT_RETURN.
11228
9409d39e
TT
112292014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * target-delegates.c: Rebuild.
11232 * target.c (update_current_target): Don't inherit or default
11233 to_supports_string_tracing.
11234 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11235 TARGET_DEFAULT_RETURN.
11236
aab1b22d
TT
112372014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target-delegates.c: Rebuild.
11240 * target.c (update_current_target): Don't inherit or default
11241 to_supports_enable_disable_tracepoint.
11242 * target.h (struct target_ops)
11243 <to_supports_enable_disable_tracepoint>: Use
11244 TARGET_DEFAULT_RETURN.
11245
a7304748
TT
112462014-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_supports_multi_process.
11251 * target.h (struct target_ops) <to_supports_multi_process>: Use
11252 TARGET_DEFAULT_RETURN.
11253
4229b31d
TT
112542014-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_get_ada_task_ptid.
11259 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11260 TARGET_DEFAULT_FUNC.
11261
43eba180
TT
112622014-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_thread_architecture.
11267 * target.h (struct target_ops) <to_thread_architecture>: Use
11268 TARGET_DEFAULT_FUNC.
11269
fe31bf5b
TT
112702014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target-delegates.c: Rebuild.
11273 * target.c (update_current_target): Don't inherit or default
11274 to_execution_direction.
11275 * target.h (struct target_ops) <to_execution_direction>: Use
11276 TARGET_DEFAULT_FUNC.
11277
53e1cfc7
TT
112782014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_can_execute_reverse.
11283 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11284 TARGET_DEFAULT_RETURN.
11285 (target_can_execute_reverse): Unconditionally delegate.
11286
9bb9d61d
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target-delegates.c: Rebuild.
11290 * target.c (update_current_target): Don't inherit or default
11291 to_goto_bookmark.
11292 (dummy_goto_bookmark): Remove.
11293 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11294 * target.h (struct target_ops) <to_goto_bookmark>: Use
11295 TARGET_DEFAULT_NORETURN.
11296
3dbafbbb
TT
112972014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target-delegates.c: Rebuild.
11300 * target.c (update_current_target): Don't inherit or default
11301 to_get_bookmark.
11302 (dummy_get_bookmark): Remove.
11303 (init_dummy_target): Don't inherit or default to_get_bookmark.
11304 * target.h (struct target_ops) <to_get_bookmark>: Use
11305 TARGET_DEFAULT_NORETURN
11306
16f796b1
TT
113072014-02-19 Tom Tromey <tromey@redhat.com>
11308
11309 * target-delegates.c: Rebuild.
11310 * target.c (update_current_target): Don't inherit or default
11311 to_make_corefile_notes.
11312 (init_dummy_target): Don't initialize to_make_corefile_notes.
11313 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11314 TARGET_DEFAULT_FUNC.
11315
0b5a2719
TT
113162014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target-delegates.c: Rebuild.
11319 * target.c (update_current_target): Don't inherit or default
11320 to_find_memory_regions.
11321 (init_dummy_target): Don't initialize to_find_memory_regions.
11322 * target.h (struct target_ops) <to_find_memory_regions>: Use
11323 TARGET_DEFAULT_FUNC.
11324
d9cb0195
TT
113252014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target-delegates.c: Rebuild.
11328 * target.c (update_current_target): Don't inherit or default
11329 to_log_command.
11330 * target.h (struct target_ops) <to_log_command>: Use
11331 TARGET_DEFAULT_IGNORE.
11332 (target_log_command): Unconditionally delegate.
11333
830ca330
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (update_current_target): Don't inherit or default
11338 to_pid_to_exec_file.
11339 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11340 TARGET_DEFAULT_RETURN.
11341
825828fc
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_thread_name.
11347 (target_thread_name): Unconditionally delegate.
11348 * target.h (struct target_ops) <to_thread_name>: Use
11349 TARGET_DEFAULT_RETURN.
11350
4a7e6dda
TT
113512014-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_extra_thread_info.
11356 * target.h (struct target_ops) <to_extra_thread_info>: Use
11357 TARGET_DEFAULT_RETURN.
11358
0db88c1d
TT
113592014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_has_exited.
11364 * target.h (struct target_ops) <to_has_exited>: Use
11365 TARGET_DEFAULT_RETURN..
11366
6a9fa051
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (update_current_target): Don't inherit or default
11371 to_set_syscall_catchpoint.
11372 (return_one): Remove.
11373 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11374 TARGET_DEFAULT_RETURN.
11375
62f64d7a
TT
113762014-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_insert_exec_catchpoint.
11381 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11382 TARGET_DEFAULT_RETURN.
11383
cda0f38c
TT
113842014-01-08 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_exec_catchpoint.
11389 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11390 TARGET_DEFAULT_RETURN.
11391
95c3375e
TT
113922014-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_vfork_catchpoint.
11397 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11398 TARGET_DEFAULT_RETURN.
11399
7e18a8dc
TT
114002014-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_vfork_catchpoint.
11405 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11406 TARGET_DEFAULT_RETURN.
11407
e1a21fb7
TT
114082014-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_remove_fork_catchpoint.
11413 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11414 TARGET_DEFAULT_RETURN.
11415
5958ebeb
TT
114162014-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_insert_fork_catchpoint.
11421 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11422 TARGET_DEFAULT_RETURN.
11423
340ba4bf
TT
114242014-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_post_startup_inferior.
11429 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11430 TARGET_DEFAULT_IGNORE.
11431
7634da87
TT
114322014-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_load.
11437 * target.h (struct target_ops) <to_load>: Use
11438 TARGET_DEFAULT_NORETURN.
11439
e19e919f
TT
114402014-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_info.
11445 * target.h (struct target_ops) <to_terminal_info>: Use
11446 TARGET_DEFAULT_FUNC.
11447
c6ea8f79
TT
114482014-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_save_ours.
11453 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11454 TARGET_DEFAULT_IGNORE.
11455
e4a733f1
TT
114562014-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_ours.
11461 * target.h (struct target_ops) <to_terminal_ours>: Use
11462 TARGET_DEFAULT_IGNORE.
11463
74fcbef9
TT
114642014-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_ours_for_output.
11469 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11470 TARGET_DEFAULT_IGNORE.
11471
ddeaacc9
TT
114722014-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_terminal_inferior.
11477 * target.h (struct target_ops) <to_terminal_inferior>: Use
11478 TARGET_DEFAULT_IGNORE.
11479
0343661d
TT
114802014-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_terminal_init.
11485 * target.h (struct target_ops) <to_terminal_init>: Use
11486 TARGET_DEFAULT_IGNORE.
11487
77cdffe9
TT
114882014-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_can_accel_watchpoint_condition.
11493 * target.h (struct target_ops)
11494 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11495
d03655e4
TT
114962014-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_region_ok_for_hw_watchpoint.
11501 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11502 Use TARGET_DEFAULT_FUNC.
11503
65f160a9
TT
115042014-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_watchpoint_addr_within_range.
11509 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11510 Use TARGET_DEFAULT_FUNC.
11511
61dd109f
TT
115122014-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_watchpoint.
11517 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11518 TARGET_DEFAULT_NORETURN.
11519
016facd4
TT
115202014-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_watchpoint.
11525 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11526 TARGET_DEFAULT_RETURN.
11527
418dabac
TT
115282014-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_remove_hw_breakpoint.
11533 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11534 TARGET_DEFAULT_RETURN.
11535
61b371f9
TT
115362014-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_insert_hw_breakpoint.
11541 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11542 TARGET_DEFAULT_RETURN.
11543
52b51d06
TT
115442014-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_can_use_hw_breakpoint.
11549 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11550 TARGET_DEFAULT_RETURN.
11551
f86e59b2
TT
115522014-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_files_info.
11557 * target.h (struct target_ops) <to_files_info>: Use
11558 TARGET_DEFAULT_IGNORE.
11559
6c628163
TT
115602014-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_store.
11565 * target.h (struct target_ops) <to_store>: Use
11566 TARGET_DEFAULT_NORETURN.
11567
bebd3233
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_post_attach.
11573 * target.h (struct target_ops) <to_post_attach>: Use
11574 TARGET_DEFAULT_IGNORE.
11575
a53f3625
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_rcmd.
11581 (default_rcmd): New function.
11582 (do_monitor_command): Unconditionally delegate.
11583 * target.h (struct target_ops) <to_rmcd>: Use
11584 TARGET_DEFAULT_FUNC.
11585
e9a29200
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target-delegates.c: Rebuild.
11589 * target.c (init_dummy_target): Don't initialize to_attach.
11590 (target_attach): Unconditionally delegate.
11591 * target.h (struct target_ops) <to_attach>: Use
11592 TARGET_DEFAULT_FUNC.
11593
09da0d0a
TT
115942014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target-delegates.c: Rebuild.
11597 * target.c (target_detach): Unconditionally delegate.
11598 (init_dummy_target): Don't initialize to_detach.
11599 * target.h (struct target_ops) <to_detach>: Use
11600 TARGET_DEFAULT_IGNORE.
11601
5436ff03
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11605 Add argument.
11606 (target_augmented_libraries_svr4_read): Add argument.
11607 * target.c (update_current_target): Update.
11608 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11609 argument.
11610
f0d960ea
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target.h (struct target_ops) <to_call_history_range>: Add
11614 argument.
11615 * target.c (target_call_history_range): Add argument.
11616 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11617 argument.
11618 (record_btrace_call_history_from): Update.
11619
ec0aea04
TT
116202014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target.h (struct target_ops) <to_call_history_from>: Add
11623 argument.
11624 * target.c (target_call_history_from): Add argument.
11625 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11626 argument.
11627
5df2fcba
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops) <to_call_history>: Add argument.
11631 * target.c (target_call_history): Add argument.
11632 * record-btrace.c (record_btrace_call_history): Add 'self'
11633 argument.
11634
4e99c6b7
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target.h (struct target_ops) <to_insn_history_range>: Add
11638 argument.
11639 * target.c (target_insn_history_range): Add argument.
11640 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11641 argument.
11642 (record_btrace_insn_history_from): Update.
11643
9abc3ff3
TT
116442014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target.h (struct target_ops) <to_insn_history_from>: Add
11647 argument.
11648 * target.c (target_insn_history_from): Add argument.
11649 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11650 argument.
11651
7a6c5609
TT
116522014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target.h (struct target_ops) <to_insn_history>: Add argument.
11655 * target.c (target_insn_history): Add argument.
11656 * record-btrace.c (record_btrace_insn_history): Add 'self'
11657 argument.
11658
606183ac
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_goto_record>: Add argument.
11662 * target.c (target_goto_record): Add argument.
11663 * record-full.c (record_full_goto): Add 'self' argument.
11664 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11665
307a1b91
TT
116662014-02-19 Tom Tromey <tromey@redhat.com>
11667
11668 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11669 * target.c (target_goto_record_end): Add argument.
11670 * record-full.c (record_full_goto_end): Add 'self' argument.
11671 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11672
08475817
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target.h (struct target_ops) <to_goto_record_begin>: Add
11676 argument.
11677 * target.c (target_goto_record_begin): Add argument.
11678 * record-full.c (record_full_goto_begin): Add 'self' argument.
11679 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11680 argument.
11681
1c63c994
TT
116822014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target.h (struct target_ops) <to_record_is_replaying>: Add
11685 argument.
11686 * target.c (target_record_is_replaying): Add argument.
11687 * record-full.c (record_full_is_replaying): Add 'self' argument.
11688 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11689 argument.
11690 (record_btrace_xfer_partial, record_btrace_store_registers)
11691 (record_btrace_prepare_to_store, record_btrace_resume)
11692 (record_btrace_wait, record_btrace_decr_pc_after_break)
11693 (record_btrace_find_new_threads, record_btrace_thread_alive):
11694 Update.
11695
d1b55219
TT
116962014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * target.h (struct target_ops) <to_delete_record>: Add argument.
11699 * target.c (target_delete_record): Add argument.
11700 * record-full.c (record_full_delete): Add 'self' argument.
11701
1390f529
TT
117022014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target.h (struct target_ops) <to_save_record>: Add argument.
11705 * target.c (target_save_record): Add argument.
11706 * record-full.c (record_full_save): Add 'self' argument.
11707 (record_full_save): Add 'self' argument.
11708
630d6a4a
TT
117092014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target.h (struct target_ops) <to_info_record>: Add argument.
11712 * target.c (target_info_record): Add argument.
11713 * record.c (info_record_command): Add argument.
11714 * record-full.c (record_full_info): Add 'self' argument.
11715 * record-btrace.c (record_btrace_info): Add 'self' argument.
11716
c6cd7c02
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11720 * target.c (target_stop_recording): Add argument.
11721 * record.c (record_stop): Add argument.
11722 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11723 argument.
11724
39c49f83
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11728 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11729 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11730 argument.
11731 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11732 (_initialize_amd64_linux_nat): Use it.
11733 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11734 (_initialize_i386_linux_nat): Use it.
11735
1777056d
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11739 * target.c (target_teardown_btrace): Add argument.
11740 * remote.c (remote_teardown_btrace): Add 'self' argument.
11741 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11742 argument.
11743 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11744 argument.
11745
25e95349
TT
117462014-02-19 Tom Tromey <tromey@redhat.com>
11747
11748 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11749 * target.c (target_disable_btrace): Add argument.
11750 * remote.c (remote_disable_btrace): Add 'self' argument.
11751 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11752 argument.
11753 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11754 argument.
11755
e3c49f88
TT
117562014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11759 * target.c (target_enable_btrace): Add argument.
11760 * remote.c (remote_enable_btrace): Add 'self' argument.
11761 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11762 argument.
11763 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11764 argument.
11765
fe38f897
TT
117662014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11769 (target_can_use_agent): Add argument.
11770 * target.c (update_current_target): Update.
11771 * remote.c (remote_can_use_agent): Add 'self' argument.
11772 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11773
2c152180
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target.h (struct target_ops) <to_use_agent>: Add argument.
11777 (target_use_agent): Add argument.
11778 * target.c (update_current_target): Update.
11779 * remote.c (remote_use_agent): Add 'self' argument.
11780 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11781
a893e81f
TT
117822014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11785 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11786 (target_traceframe_info): Add argument.
11787 * target.c (update_current_target): Update.
11788 * remote.c (remote_traceframe_info): Add 'self' argument.
11789 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11790
c686c57f
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target.h (target_static_tracepoint_markers_by_strid): Add
11794 argument.
11795 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11796 'self' argument.
11797 * target.c (update_current_target): Update.
11798 * remote.c (struct target_ops)
11799 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11800 * linux-nat.c (struct target_ops)
11801 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11802
61fc905d
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11806 Add argument.
11807 (target_static_tracepoint_marker_at): Add argument.
11808 * target.c (update_current_target): Update.
11809 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11810 argument.
11811
c378d69d
TT
118122014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11815 (target_set_permissions): Add argument.
11816 * target.c (update_current_target): Update.
11817 * remote.c (remote_set_permissions): Add 'self' argument.
11818 (remote_start_remote): Update.
11819
bd7ae0f5
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11823 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11824 (target_get_tib_address): Add argument.
11825 * target.c (update_current_target): Update.
11826 * remote.c (remote_get_tib_address): Add 'self' argument.
11827
d9e68a2c
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11831 (target_set_trace_notes): Add argument.
11832 * target.c (update_current_target): Update.
11833 * remote.c (remote_set_trace_notes): Add 'self' argument.
11834
4da384be
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11838 argument.
11839 (target_set_trace_buffer_size): Add argument.
11840 * target.c (update_current_target): Update.
11841 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11842
736d5b1f
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11846 argument.
11847 (target_set_circular_trace_buffer): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11850 argument.
11851
37b25738
TT
118522014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11855 argument.
11856 (target_set_disconnected_tracing): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11859
0e67620a
TT
118602014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target.h (struct target_ops)
11863 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11864 (target_get_min_fast_tracepoint_insn_len): Add argument.
11865 * target.c (update_current_target): Update.
11866 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11867 argument.
11868
88ee6f45
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11872 argument.
11873 (target_get_raw_trace_data): Add argument.
11874 * target.c (update_current_target): Update.
11875 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11876
181e3713
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11880 Add argument.
11881 (target_upload_trace_state_variables): Add argument.
11882 * target.c (update_current_target): Update.
11883 * remote.c (remote_upload_trace_state_variables): Add 'self'
11884 argument.
11885 (remote_start_remote): Update.
11886
ab6617cc
TT
118872014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11890 argument.
11891 (target_upload_tracepoints): Add argument.
11892 * target.c (update_current_target): Update.
11893 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11894 (remote_start_remote): Update.
11895
dc3decaf
TT
118962014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11899 (target_save_trace_data): Add argument.
11900 * target.c (update_current_target): Update.
11901 * remote.c (remote_save_trace_data): Add 'self' argument.
11902
4011015b
TT
119032014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11906 argument.
11907 * target.h (struct target_ops)
11908 <to_get_trace_state_variable_value>: Add argument.
11909 (target_get_trace_state_variable_value): Add argument.
11910 * target.c (update_current_target): Update.
11911 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11912 argument.
11913 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11914
bd4c6793
TT
119152014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11918 * target.h (struct target_ops) <to_trace_find>: Add argument.
11919 (target_trace_find): Add argument.
11920 * target.c (update_current_target): Update.
11921 * remote.c (remote_trace_find): Add 'self' argument.
11922 * ctf.c (ctf_trace_find): Add 'self' argument.
11923
74499f1b
TT
119242014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11927 (target_trace_stop): Add argument.
11928 * target.c (update_current_target): Update.
11929 * remote.c (remote_trace_stop): Add 'self' argument.
11930
db90e85c
TT
119312014-02-19 Tom Tromey <tromey@redhat.com>
11932
11933 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11934 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11935 argument.
11936 (target_get_tracepoint_status): Add argument.
11937 * target.c (update_current_target): Update.
11938 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11939
8bd200f1
TT
119402014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11943 * target.h (struct target_ops) <to_get_trace_status>: Add
11944 argument.
11945 (target_get_trace_status): Add argument.
11946 * target.c (update_current_target): Update.
11947 * remote.c (remote_get_trace_status): Add 'self' argument.
11948 (remote_start_remote, remote_can_download_tracepoint): Update.
11949 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11950
e2d1aae3
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target.h (struct target_ops) <to_trace_start>: Add argument.
11954 (target_trace_start): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_trace_start): Add 'self' argument.
11957
583f9a86
TT
119582014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11961 Add argument.
11962 (target_trace_set_readonly_regions): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11965 argument.
11966
780b049c
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11970 argument.
11971 (target_disable_tracepoint): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11974
46670d57
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11978 argument.
11979 (target_enable_tracepoint): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11982
559d2b81
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops) <to_download_trace_state_variable>:
11986 Add argument.
11987 (target_download_trace_state_variable): Add argument.
11988 * target.c (update_current_target): Update.
11989 * remote.c (remote_download_trace_state_variable): Add 'self'
11990 argument.
11991
a52a8357
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11995 argument.
11996 (target_can_download_tracepoint): Add argument.
11997 * target.c (update_current_target): Update.
11998 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11999
548f7808
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target.h (struct target_ops) <to_download_tracepoint>: Add
12003 argument.
12004 (target_download_tracepoint): Add argument.
12005 * target.c (update_current_target): Update.
12006 * remote.c (remote_download_tracepoint): Add 'self' argument.
12007
ecae04e1
TT
120082014-02-19 Tom Tromey <tromey@redhat.com>
12009
12010 * target.h (struct target_ops) <to_trace_init>: Add argument.
12011 (target_trace_init): Add argument.
12012 * target.c (update_current_target): Update.
12013 * remote.c (remote_trace_init): Add 'self' argument.
12014
fab5aa7c
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12018 * target.c (target_fileio_readlink): Add argument.
12019 * remote.c (remote_hostio_readlink): Add 'self' argument.
12020 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12021
dbbca37d
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12025 * target.c (target_fileio_unlink): Add argument.
12026 * remote.c (remote_hostio_unlink): Add 'self' argument.
12027 (remote_file_delete): Update.
12028 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12029
df39ea25
TT
120302014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12033 * target.c (target_fileio_close): Add argument.
12034 * remote.c (remote_hostio_close): Add 'self' argument.
12035 (remote_hostio_close_cleanup): Update.
12036 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12037 Update.
12038 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12039
a3be983c
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12043 * target.c (target_fileio_pread): Add argument.
12044 * remote.c (remote_hostio_pread): Add 'self' argument.
12045 (remote_bfd_iovec_pread, remote_file_get): Update.
12046 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12047
0d866f62
TT
120482014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12051 * target.c (target_fileio_pwrite): Add argument.
12052 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12053 (remote_file_put): Update.
12054 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12055
cd897586
TT
120562014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12059 * target.c (target_fileio_open): Add argument.
12060 * remote.c (remote_hostio_open): Add 'self' argument.
12061 (remote_bfd_iovec_open): Add 'self' argument.
12062 (remote_file_put): Add 'self' argument.
12063 (remote_file_get): Add 'self' argument.
12064 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12065
78eff0ec
TT
120662014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12069 Add argument.
12070 (target_can_run_breakpoint_commands): Add argument.
12071 * target.c (update_current_target): Update.
12072 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12073 argument.
12074 (remote_insert_breakpoint): Add 'self' argument.
12075 (remote_insert_hw_breakpoint): Add 'self' argument.
12076 (remote_can_run_breakpoint_commands): Add 'self' argument.
12077
efcc2da7
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target.h (struct target_ops)
12081 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12082 (target_supports_evaluation_of_breakpoint_conditions): Add
12083 argument.
12084 * target.c (update_current_target): Update.
12085 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12086 argument.
12087 (remote_insert_breakpoint): Add 'self' argument.
12088 (remote_insert_hw_breakpoint): Add 'self' argument.
12089 (remote_supports_cond_breakpoints): Add 'self' argument.
12090
6de37a3a
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12094 argument.
12095 (target_supports_string_tracing): Add argument.
12096 * target.c (update_current_target): Update.
12097 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12098
2bfc0540
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (struct target_ops)
12102 <to_supports_disable_randomization>: Add argument.
12103 * target.c (find_default_supports_disable_randomization): Add
12104 argument.
12105 (target_supports_disable_randomization): Add argument.
12106 (find_default_supports_disable_randomization): Add 'self'
12107 argument.
12108 * remote.c (extended_remote_supports_disable_randomization): Add
12109 'self' argument.
12110 (remote_supports_disable_randomization): Add 'self' argument.
12111 (extended_remote_create_inferior): Update.
12112 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12113 'self' argument.
12114
7d178d6a
TT
121152014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target.h (struct target_ops)
12118 <to_supports_enable_disable_tracepoint>: Add argument.
12119 (target_supports_enable_disable_tracepoint): Add argument.
12120 * target.c (update_current_target): Update.
12121 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12122 argument.
12123
86ce2668
TT
121242014-02-19 Tom Tromey <tromey@redhat.com>
12125
12126 * target.h (struct target_ops) <to_supports_multi_process>: Add
12127 argument.
12128 (target_supports_multi_process): Add argument.
12129 * target.c (update_current_target): Update.
12130 * remote.c (remote_supports_multi_process): Add 'self' argument.
12131 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12132 argument.
12133 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12134 argument.
12135
4c612759
TT
121362014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target.h (struct target_ops) <to_execution_direction>: Add
12139 argument.
12140 (target_execution_direction): Add argument.
12141 * target.c (default_execution_direction): Add 'self' argument.
12142 * record-full.c (record_full_execution_direction): Add 'self'
12143 argument.
12144
19db3e69
TT
121452014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12148 argument.
12149 (target_can_execute_reverse): Add argument.
12150 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12151 * record-full.c (record_full_can_execute_reverse): Add 'self'
12152 argument.
12153 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12154 argument.
12155
1e6b91a4
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12159 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12160 argument.
12161 (target_get_ada_task_ptid): Add argument.
12162 * target.c (update_current_target): Update.
12163 (default_get_ada_task_ptid): Add 'self' argument.
12164 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12165 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12166 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12167 argument.
12168 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12169 argument.
12170 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12171 argument.
12172 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12173 argument.
12174 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12175 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12176 argument.
12177
3c80fb48
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12181 (target_goto_bookmark): Add argument.
12182 * target.c (dummy_goto_bookmark): Add 'self' argument.
12183 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12184
dd0e2830
TT
121852014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12188 (target_get_bookmark): Add argument.
12189 * target.c (dummy_get_bookmark): Add 'self' argument.
12190 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12191
fc6691b2
TT
121922014-02-19 Tom Tromey <tromey@redhat.com>
12193
12194 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12195 argument.
12196 (target_make_corefile_notes): Add argument.
12197 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12198 * procfs.c (procfs_make_note_section): Add 'self' argument.
12199 (procfs_make_note_section): Add 'self' argument.
12200 (procfs_make_note_section): Add 'self' argument.
12201 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12202 argument.
12203 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12204 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12205 * exec.c (exec_make_note_section): Add 'self' argument.
12206 (exec_make_note_section): Add 'self' argument.
12207
2e73927c
TT
122082014-02-19 Tom Tromey <tromey@redhat.com>
12209
12210 * target.h (struct target_ops) <to_find_memory_regions>: Add
12211 argument.
12212 (target_find_memory_regions): Add argument.
12213 * target.c (dummy_find_memory_regions): Add 'self' argument.
12214 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12215 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12216 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12217 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12218 * exec. (exec_do_find_memory_regions): New global.
12219 (exec_set_find_memory_regions): Rewrite.
12220 (exec_find_memory_regions): New function.
12221 (init_exec_ops): Use exec_find_memory_regions.
12222
2a9a2795
TT
122232014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target.h (struct target_ops) <to_supports_non_stop>: Add
12226 argument.
12227 * target.c (find_default_supports_non_stop): Add argument.
12228 (target_supports_non_stop): Add argument.
12229 (find_default_supports_non_stop): Add 'self' argument.
12230 * remote.c (remote_supports_non_stop): Add 'self' argument.
12231 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12232
4ab76ea3
TT
122332014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_log_command>: Add argument.
12236 (target_log_command): Add argument.
12237 * serial.h (serial_log_command): Add 'self' argument.
12238 * serial.c (serial_log_command): Add 'self' argument.
12239
8dd27370
TT
122402014-02-19 Tom Tromey <tromey@redhat.com>
12241
12242 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12243 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12244 argument.
12245 (target_pid_to_exec_file): Add argument.
12246 * target.c (debug_to_pid_to_exec_file): Add argument.
12247 (update_current_target): Update.
12248 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12249 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12250 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12251 (linux_handle_extended_wait): Update.
12252 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12253 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12254 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12255 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12256
1aac633b
TT
122572014-02-19 Tom Tromey <tromey@redhat.com>
12258
12259 * target.h (struct target_ops) <to_rcmd>: Add argument.
12260 (target_rcmd): Add argument.
12261 * target.c (debug_to_rcmd): Add argument.
12262 (update_current_target, do_monitor_command): Update.
12263 * remote.c (remote_rcmd): Add 'self' argument.
12264 * monitor.c (monitor_rcmd): Add 'self' argument.
12265
1eab8a48
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * windows-nat.c (windows_stop): Add 'self' argument.
12269 * target.h (struct target_ops) <to_stop>: Add argument.
12270 * target.c (target_stop): Add argument.
12271 (debug_to_stop): Add argument.
12272 (update_current_target): Update.
12273 * remote.c (remote_stop): Add 'self' argument.
12274 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12275 (gdbsim_cntrl_c): Update.
12276 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12277 * procfs.c (procfs_stop): Add 'self' argument.
12278 * nto-procfs.c (procfs_stop): Add 'self' argument.
12279 * monitor.c (monitor_stop): Add 'self' argument.
12280 (monitor_open): Update.
12281 * linux-nat.c (linux_nat_stop): Add argument.
12282 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12283 * gnu-nat.c (gnu_stop): Add 'self' argument.
12284 * darwin-nat.c (darwin_stop): Add 'self' argument.
12285
503a628d
TT
122862014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * target.h (struct target_ops) <to_thread_name>: Add argument.
12289 * target.c (target_thread_name): Add argument.
12290 (update_current_target): Update.
12291 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12292
c15906d8
TT
122932014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target.h (struct target_ops) <to_extra_thread_info>: Add
12296 argument.
12297 (target_extra_thread_info): Add argument.
12298 * target.c (update_current_target): Update.
12299 * remote.c (remote_threads_extra_info): Add 'self' argument.
12300 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12301 argument.
12302 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12303 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12304 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12305 argument.
12306 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12307 argument.
12308 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12309 argument.
12310 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12311 argument.
12312
daf5e9b6
TT
123132014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_program_signals>: Add argument.
12316 * target.c (target_program_signals): Add argument.
12317 * remote.c (remote_program_signals): Add 'self' argument.
12318
94bedb42
TT
123192014-02-19 Tom Tromey <tromey@redhat.com>
12320
12321 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12322 * target.c (target_pass_signals): Add argument.
12323 * remote.c (remote_pass_signals): Add 'self' argument.
12324 (remote_start_remote): Update.
12325 * procfs.c (procfs_pass_signals): Add 'self' argument.
12326 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12327 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12328 (linux_nat_create_inferior, linux_nat_attach): Update.
12329
da82bd6b
TT
123302014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * windows-nat.c (windows_can_run): Add 'self' argument.
12333 * target.h (struct target_ops) <to_can_run>: Add argument.
12334 (target_can_run): Add argument.
12335 * target.c (debug_to_can_run): Add argument.
12336 (update_current_target): Update.
12337 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12338 * inf-child.c (inf_child_can_run): Add 'self' argument.
12339 * go32-nat.c (go32_can_run): Add 'self' argument.
12340
d796e1d6
TT
123412014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target.h (struct target_ops) <to_has_exited>: Add argument.
12344 (target_has_exited): Add argument.
12345 * target.c (debug_to_has_exited): Add argument.
12346 (update_current_target): Update.
12347
ff214e67
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12351 argument.
12352 (target_set_syscall_catchpoint): Add argument.
12353 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12354 argument.
12355 * target.c (update_current_target): Update.
12356
758e29d2
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12360 argument.
12361 (target_remove_exec_catchpoint): Add argument.
12362 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12363 (update_current_target): Update.
12364 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12365 argument.
12366
ba025e51
TT
123672014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12370 argument.
12371 (target_insert_exec_catchpoint): Add argument.
12372 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12373 (update_current_target): Update.
12374 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12375 argument.
12376
e98cf0cd
TT
123772014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12380 argument.
12381 (target_remove_vfork_catchpoint): Add argument.
12382 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12383 (update_current_target): Update.
12384 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12385 argument.
12386
3ecc7da0
TT
123872014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12390 argument.
12391 (target_insert_vfork_catchpoint): Add argument.
12392 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12393 (update_current_target): Update.
12394 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12395 argument.
12396
973fc227
TT
123972014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12400 argument.
12401 (target_remove_fork_catchpoint): Add argument.
12402 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12403 (update_current_target): Update.
12404 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12405 argument.
12406
a863b201
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12410 argument.
12411 (target_insert_fork_catchpoint): Add argument.
12412 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12413 (update_current_target): Update.
12414 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12415 argument.
12416
2e97a79e
TT
124172014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12420 argument.
12421 (target_post_startup_inferior): Add argument.
12422 * target.c (debug_to_post_startup_inferior): Add argument.
12423 (update_current_target): Update.
12424 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12425 argument.
12426 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12427 argument.
12428 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12429 argument.
12430 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12431 argument.
12432 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12433 'self' argument.
12434 (super_post_startup_inferior): Likewise.
12435 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12436 'self' argument.
12437 (super_post_startup_inferior): Likewise.
12438 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12439 Add 'self' argument.
12440 (super_post_startup_inferior): Likewise.
12441
71a9f134
TT
124422014-02-19 Tom Tromey <tromey@redhat.com>
12443
12444 * target.h (struct target_ops) <to_load>: Add argument.
12445 * target.c (target_load): Add argument.
12446 (debug_to_load): Add argument.
12447 (update_current_target): Update.
12448 * remote.c (remote_load): Add 'self' argument.
12449 * remote-sim.c (gdbsim_load): Add 'self' argument.
12450 * remote-mips.c (mips_load): Add 'self' argument.
12451 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12452 * monitor.c (monitor_load): Add 'self' argument.
12453 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12454
0a4f40a2
TT
124552014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12458 (target_terminal_info): Add argument.
12459 * target.c (debug_to_terminal_info): Add argument.
12460 (default_terminal_info): Likewise.
12461 * inflow.c (child_terminal_info): Add 'self' argument.
12462 * inferior.h (child_terminal_info): Add 'self' argument.
12463 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12464
ae3bd431
TT
124652014-02-19 Tom Tromey <tromey@redhat.com>
12466
12467 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12468 argument.
12469 (target_terminal_save_ours): Add argument.
12470 * target.c (debug_to_terminal_save_ours): Add argument.
12471 (update_current_target): Update.
12472 * inflow.c (terminal_save_ours): Add 'self' argument.
12473 * inferior.h (terminal_save_ours): Add 'self' argument.
12474
e3594fd1
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12478 (target_terminal_ours): Add argument.
12479 * target.c (debug_to_terminal_ours): Add argument.
12480 (update_current_target): Update.
12481 * remote.c (remote_terminal_ours): Add 'self' argument.
12482 (remote_close): Update.
12483 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12484 * inflow.c (terminal_ours): Add 'self' argument.
12485 * inferior.h (terminal_ours): Add 'self' argument.
12486 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12487
2e1e1a19
TT
124882014-02-19 Pedro Alves <palves@redhat.com>
12489 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12492 argument.
12493 (target_terminal_ours_for_output): Add argument.
12494 * target.c (debug_to_terminal_ours_for_output): Add argument.
12495 (update_current_target): Update.
12496 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12497 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12498 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12499
d2f640d4
TT
125002014-02-19 Tom Tromey <tromey@redhat.com>
12501
12502 * target.h (struct target_ops) <to_terminal_inferior>: Add
12503 argument.
12504 * target.c (target_terminal_inferior): Add argument.
12505 (update_current_target): Update.
12506 * remote.c (remote_terminal_inferior): Add 'self' argument.
12507 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12508 * inflow.c (terminal_inferior): Add 'self' argument.
12509 * inferior.h (terminal_inferior): Add 'self' argument.
12510 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12511 (go32_terminal_inferior): Add 'self' argument.
12512
c42bf286
TT
125132014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12516 (target_terminal_init): Add argument.
12517 * target.c (debug_to_terminal_init): Add argument.
12518 (update_current_target): Update.
12519 * inflow.c (terminal_init_inferior): Add 'self' argument.
12520 * inferior.h (terminal_init_inferior): Add 'self' argument.
12521 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12522 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12523
c3a5ff89
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops)
12527 <to_can_accel_watchpoint_condition>: Add argument.
12528 (target_can_accel_watchpoint_condition): Add argument.
12529 * target.c (debug_to_can_accel_watchpoint_condition): Add
12530 argument.
12531 (update_current_target): Update.
12532 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12533 'self' argument.
12534
31568a15
TT
125352014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12538 Add argument.
12539 (target_region_ok_for_hw_watchpoint): Add argument.
12540 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12541 (default_region_ok_for_hw_watchpoint): Add argument.
12542 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12543 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12544 argument.
12545 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12546 argument.
12547 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12548 argument.
12549 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12550 'self' argument.
12551 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12552 'self' argument.
12553 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12554 'self' argument.
12555 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12556 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12557 'self' argument.
12558 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12559 Add 'self' argument.
12560
7bb99c53
TT
125612014-02-19 Tom Tromey <tromey@redhat.com>
12562
12563 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12564 argument.
12565 (target_insert_watchpoint): Add argument.
12566 * target.c (debug_to_insert_watchpoint): Add argument.
12567 (update_current_target): Update.
12568 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12569 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12570 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12571 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12572 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12573 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12574 argument.
12575 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12576 (procfs_insert_hw_watchpoint): Add 'self' argument.
12577 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12578 argument.
12579 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12580 argument.
12581 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12582 argument.
12583 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12584 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12585 argument.
12586 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12587 'self' argument.
12588
11b5219a
TT
125892014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12592 argument.
12593 (target_remove_watchpoint): Add argument.
12594 * target.c (debug_to_remove_watchpoint): Add argument.
12595 (update_current_target): Update.
12596 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12597 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12598 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12599 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12600 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12601 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12602 argument.
12603 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12604 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12605 argument.
12606 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12607 argument.
12608 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12609 argument.
12610 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12611 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12612 argument.
12613 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12614 'self' argument.
12615
a64dc96c
TT
126162014-02-19 Tom Tromey <tromey@redhat.com>
12617
12618 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12619 argument.
12620 (target_remove_hw_breakpoint): Add argument.
12621 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12622 (update_current_target): Update.
12623 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12624 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12625 argument.
12626 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12627 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12628 argument.
12629 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12630 'self' argument.
12631
23a26771
TT
126322014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12635 argument.
12636 (target_insert_hw_breakpoint): Add argument.
12637 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12638 (update_current_target): Update.
12639 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12640 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12641 argument.
12642 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12643 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12644 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12645 argument.
12646 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12647 'self' argument.
12648
5461485a
TT
126492014-02-19 Tom Tromey <tromey@redhat.com>
12650
12651 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12652 argument.
12653 (target_can_use_hardware_watchpoint): Add argument.
12654 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12655 (update_current_target): Update.
12656 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12657 argument.
12658 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12659 argument.
12660 * remote.c (remote_check_watch_resources): Add 'self' argument.
12661 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12662 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12663 argument.
12664 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12665 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12666 argument.
12667 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12668 argument.
12669 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12670 argument.
12671 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12672 argument.
12673 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12674 argument.
12675 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12676 argument.
12677 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12678 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12679 argument.
12680 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12681 'self' argument.
12682
f045800c
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_post_attach>: Add argument.
12686 (target_post_attach): Add argument.
12687 * target.c (debug_to_post_attach): Add argument.
12688 (update_current_target): Update.
12689 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12690 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12691 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12692 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12693 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12694
de90e03d
TT
126952014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * windows-nat.c (windows_close): Add 'self' argument.
12698 * tracepoint.c (tfile_close): Add 'self' argument.
12699 * target.h (struct target_ops) <to_close>: Add argument.
12700 * target.c (target_close): Add argument.
12701 (update_current_target): Update.
12702 * remote.c (remote_close): Add 'self' argument.
12703 * remote-sim.c (gdbsim_close): Add 'self' argument.
12704 * remote-mips.c (mips_close): Add 'self' argument.
12705 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12706 * record-full.c (record_full_close): Add 'self' argument.
12707 * record-btrace.c (record_btrace_close): Add 'self' argument.
12708 * monitor.h (monitor_close): Add 'self' argument.
12709 * monitor.c (monitor_close): Add 'self' argument.
12710 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12711 * linux-nat.c (linux_nat_close): Add argument.
12712 * go32-nat.c (go32_close): Add 'self' argument.
12713 * exec.c (exec_close_1): Add 'self' argument.
12714 * ctf.c (ctf_close): Add 'self' argument.
12715 * corelow.c (core_close): Add 'self' argument.
12716 (core_close_cleanup): Update.
12717 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12718 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12719
9dd130a0
TT
127202014-02-19 Tom Tromey <tromey@redhat.com>
12721
12722 * remote.c (remote_load): New function.
12723 (init_remote_ops): Use it.
12724
46917d26
TT
127252014-02-19 Tom Tromey <tromey@redhat.com>
12726
12727 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12728 argument.
12729 * common/linux-btrace.h (linux_supports_btrace): Update.
12730 * remote.c (remote_supports_btrace): Add "self" argument.
12731 * target-delegates.c: Rebuild.
12732 * target.c (target_supports_btrace): Remove.
12733 * target.h (struct target_ops) <to_supports_btrace>: Add
12734 target_ops argument.
12735 (target_supports_btrace): New define.
12736
6b84065d
TT
127372014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * record-full.c (record_full_beneath_to_resume_ops)
12740 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12741 (record_full_beneath_to_wait)
12742 (record_full_beneath_to_store_registers_ops)
12743 (record_full_beneath_to_store_registers)
12744 (record_full_beneath_to_xfer_partial_ops)
12745 (record_full_beneath_to_xfer_partial)
12746 (record_full_beneath_to_insert_breakpoint_ops)
12747 (record_full_beneath_to_insert_breakpoint)
12748 (record_full_beneath_to_remove_breakpoint_ops)
12749 (record_full_beneath_to_remove_breakpoint)
12750 (record_full_beneath_to_stopped_by_watchpoint)
12751 (record_full_beneath_to_stopped_data_address)
12752 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12753 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12754 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12755 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12756 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12757 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12758 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12759 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12760 (record_full_resume, record_full_wait_1)
12761 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12762 (record_full_store_registers, record_full_xfer_partial)
12763 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12764 (record_full_async, record_full_core_xfer_partial): Use target
12765 delegation.
12766 * target-delegates.c: Rebuild.
12767 * target.c (current_xfer_partial): Remove.
12768 (update_current_target): Do not INHERIT or de_fault
12769 to_insert_breakpoint, to_remove_breakpoint,
12770 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12771 to_is_async_p, to_async. Do not set to_xfer_partial field.
12772 (default_xfer_partial): Simplify.
12773 (current_xfer_partial): Remove.
12774 (target_wait, target_resume): Simplify.
12775 (find_default_can_async_p, find_default_is_async_p): Update.
12776 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12777 to_xfer_partial, to_stopped_by_watchpoint,
12778 to_stopped_data_address.
12779 (target_store_registers): Simplify.
12780 (forward_target_remove_breakpoint)
12781 (forward_target_insert_breakpoint): Remove.
12782 (target_remove_breakpoint, target_insert_breakpoint)
12783 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12784 * target.h (struct target_ops) <to_resume, to_wait,
12785 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12786 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12787 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12788 markup.
12789 (forward_target_remove_breakpoint)
12790 (forward_target_insert_breakpoint): Remove.
12791 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12792 directly.
12793 (record_btrace_insert_breakpoint): Delegate directly.
12794
1101cb7b
TT
127952014-02-19 Tom Tromey <tromey@redhat.com>
12796
12797 PR build/7701:
12798 * target-delegates.c: New file.
12799 * target.c: Include target-delegates.c.
12800 (init_dummy_target): Call install_dummy_methods.
12801 (complete_target_initialization): Call install_delegators.
12802 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12803 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12804 * make-target-delegates: New file.
12805
8b06beed
TT
128062014-02-19 Tom Tromey <tromey@redhat.com>
12807
12808 * record.c (find_record_target): Use find_target_at.
12809 * target.c (find_target_at): New function.
12810 * target.h (find_target_at): Declare.
12811
6a109b6b
TT
128122014-02-19 Tom Tromey <tromey@redhat.com>
12813
12814 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12815 Add 'ops' argument.
12816 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12817 'ops' argument.
12818 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12819 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12820 'ops' argument.
12821 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12822 argument.
12823 * linux-nat.c (save_sigtrap): Update.
12824 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12825 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12826 (linux_nat_close): Update.
12827 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12828 argument.
12829 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12830 argument.
12831 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12832 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12833 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12834 (tmp_to_async): Add 'ops' argument.
12835 (record_full_stopped_by_watchpoint, record_full_async)
12836 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12837 argument.
12838 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12839 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12840 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12841 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12842 (remote_is_async_p, remote_async): Add 'ops' argument.
12843 (remote_stopped_data_address): Update.
12844 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12845 * target.c (update_current_target)
12846 (find_default_can_async_p, find_default_is_async_p): Update.
12847 (init_dummy_target): Update.
12848 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12849 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12850 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12851 (target_can_async_p, target_is_async_p, target_async)
12852 (target_stopped_by_watchpoint): Update.
12853
e095146b
YQ
128542014-02-19 Yao Qi <yao@codesourcery.com>
12855
12856 PR gdb/16220
12857 * gdbarch.sh: Remove startup_gdbarch.
12858 * gdbarch.c: Regenerated.
12859 * gdbarch.h: Likewise.
12860
bc3c6b36
KB
128612014-02-17 Kevin Buettner <kevinb@redhat.com>
12862
12863 * rl78-tdep.c (rl78_g10_register_name): New function.
12864 (rl78_return_value): Add g10 support.
12865 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12866 g10.
12867
98dc0167 128682014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12869
12870 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12871 (SUBDIR_GUILE_SRCS): Ditto.
12872 (scm-gsmob.o): Ditto.
12873
842c05cd
YQ
128742014-02-17 Yao Qi <yao@codesourcery.com>
12875
12876 * gnu-nat.c (ILL_RPC): Declare defined function.
12877
25c0bd04
YQ
128782014-02-17 Yao Qi <yao@codesourcery.com>
12879
12880 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12881 mach_msg_type_number_t.
12882 (gnu_write_inferior): Likewise.
12883
a9a758e3
YQ
128842014-02-17 Yao Qi <yao@codesourcery.com>
12885
12886 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12887 in format string.
12888 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12889 (inf_validate_procs, inf_signal): Likewise.
12890 (S_exception_raise_request): Likewise.
12891 (do_mach_notify_dead_name): Likewise.
12892 (steal_exc_port): Likewise.
12893 (gnu_read_inferior): Change 'copy_count''s type to
12894 mach_msg_type_number_t.
12895 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12896 format string.
12897
bae8023e
TS
128982014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12899
c82f56d9
TS
12900 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12901 flag. Adjust all users; in particular...
12902 (gnu_wait): ..., don't decrement its value in here...
12903 (gnu_create_inferior): ..., and instead set the flag in here,
12904 around the startup_inferior call, and call that one with
12905 START_INFERIOR_TRAPS_EXPECTED.
12906
3398af6a
TS
12907 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12908 (ILL_RPC): ... new macro.
12909 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12910 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12911 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12912 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12913 functions with ILL_RPC macro.
12914 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12915 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12916 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12917 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12918 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12919 (S_proc_getlogin_reply, S_proc_getsid_reply)
12920 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12921 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12922 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12923 (S_proc_getnports_reply, S_proc_is_important_reply)
12924 (S_proc_get_code_reply): New stub functions, generated with
12925 ILL_RPC macro.
12926
d47642c9
TS
12927 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12928 collected the type check structures.
12929
bae8023e
TS
12930 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12931
8a55ffb0
DE
129322014-02-14 Doug Evans <dje@google.com>
12933
12934 * target.c (target_write_partial): Fix result type.
12935
c2853f3d
JM
129362014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12937
12938 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12939 the proper offsets to access fpregset_t.
12940
ac61d2db
SA
129412014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12942
12943 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12944 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12945 * h8300-tdep.c (setmachinelist): Remove global.
12946 * hppa-tdep.c (hppa_sigtramp): Remove global.
12947 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12948 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12949 * ravenscar-thread.c (update_target_observer): Remove global.
12950 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12951
9d2d0b8b
TT
129522014-02-12 Tom Tromey <tromey@redhat.com>
12953
12954 * common/rsp-low.c: Update comments.
12955 * common/rsp-low.h: Update comments.
12956
a7191e8b
TT
129572014-02-12 Tom Tromey <tromey@redhat.com>
12958
12959 * common/rsp-low.c (convert_ascii_to_int): Remove.
12960 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12961
ff0e980e
TT
129622014-02-12 Tom Tromey <tromey@redhat.com>
12963
12964 * common/rsp-low.h (unhexify): Don't declare.
12965 * common/rsp-low.c (unhexify): Remove.
12966
e9371aff
TT
129672014-02-12 Tom Tromey <tromey@redhat.com>
12968
12969 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12970 * common/rsp-low.c (convert_int_to_ascii): Remove.
12971
971dc0b8
TT
129722014-02-12 Tom Tromey <tromey@redhat.com>
12973
12974 * common/rsp-low.h (hexify): Don't declare.
12975 * common/rsp-low.c (hexify): Remove.
12976
0a822afb
TT
129772014-02-12 Tom Tromey <tromey@redhat.com>
12978
12979 * common/rsp-low.c (hexify): Never take strlen of argument.
12980
9f1b45b0
TT
129812014-02-12 Tom Tromey <tromey@redhat.com>
12982
12983 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12984 * remote.c (extended_remote_run, remote_rcmd)
12985 (remote_download_trace_state_variable, remote_save_trace_data)
12986 (remote_set_trace_notes): Update.
12987 * tracepoint.c (encode_source_string, tfile_write_status)
12988 (tfile_write_uploaded_tsv): Update.
12989
9c3d6531
TT
129902014-02-12 Tom Tromey <tromey@redhat.com>
12991
12992 * tracepoint.c: Include rsp-low.h.
12993 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12994 * remote.c: Include rsp-low.h.
12995 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12996 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12997 (remote_unescape_input): Move to common/rsp-low.c.
12998 * common/rsp-low.h: New file.
12999 * common/rsp-low.c: New file.
13000 * Makefile.in (SFILES): Add common/rsp-low.c.
13001 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13002 (COMMON_OBS): Add rsp-low.o.
13003 (rsp-low.o): New target.
13004
01fd3ea5
TT
130052014-02-12 Tom Tromey <tromey@redhat.com>
13006
13007 * utils.h: Include print-utils.h.
13008 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13009 (int_string, core_addr_to_string, core_addr_to_string_nz)
13010 (hex_string, hex_string_custom): Don't declare.
13011 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13012 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13013 (hex_string_custom, int_string, core_addr_to_string)
13014 (core_addr_to_string_nz, host_address_to_string): Move to
13015 common/print-utils.c.
13016 * common/print-utils.h: New file.
13017 * common/print-utils.c: New file
13018 * Makefile.in (SFILES): Add common/print-utils.c.
13019 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13020 (COMMON_OBS): Add print-utils.o.
13021 (print-utils.o): New target.
13022
9fb50108
TT
130232014-02-12 Tom Tromey <tromey@redhat.com>
13024
13025 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13026
0548b5db
MK
130272014-02-12 Mark Kettenis <kettenis@gnu.org>
13028
13029 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13030
493443a4
MK
130312014-02-12 Mark Kettenis <kettenis@gnu.org>
13032
13033 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13034 if a PT_IO ptrace request returns sucessfully but indicates that 0
13035 bytes were transferred.
13036
706d0883
PA
130372014-02-12 Pedro Alves <palves@redhat.com>
13038 Kevin Buettner <kevinb@redhat.com>
13039
13040 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13041 TYPE_INSTANCE_FLAG_CODE_SPACE.
13042
5caa2f0b
PA
130432014-02-12 Pedro Alves <palves@redhat.com>
13044
13045 * h8300-tdep.c (pseudo_from_raw_register)
13046 (raw_from_pseudo_register): New functions.
13047 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13048 them.
13049
76fd5f74
PA
130502014-02-12 Pedro Alves <palves@redhat.com>
13051
13052 * h8300-tdep.c (h8300_register_sim_regno): New function.
13053 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13054 gdbarch_register_sim_regno hook.
13055
8f008406
SA
130562014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13057
13058 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13059
195abc10
SA
130602014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13061
13062 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13063
93ffa5b9
MK
130642014-02-12 Mark Kettenis <kettenis@gnu.org>
13065
13066 * obsd-tdep.h (obsd_init_abi): New prototype.
13067 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13068 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13069 (obsd_init_abi): New functions.
13070 * i386obsd-tdep.c: Include "obsd-tdep.h".
13071 (i386obsd_init_abi): Call obsd_init_abi.
13072 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13073 (amd64obsd_init_abi): Call obsd_init_abi.
13074 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13075 obsd-tdep.c to gdb_target_obs.
13076
49caec94
JM
130772014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13078
13079 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13080 double float arguments to 16-byte in the argument slots.
13081
e1402065
DE
130822014-02-11 Doug Evans <xdje42@gmail.com>
13083
13084 * configure.ac: Don't crash if pkg-config is not found and guile
13085 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13086 in guile checks.
13087 * configure: Regenerate.
13088
edcc890f
YQ
130892014-02-11 Yao Qi <yao@codesourcery.com>
13090
13091 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13092 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13093 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13094 * gnu-nat.c (gnu_xfer_memory): Likewise.
13095 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13096 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13097 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13098 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13099
9b409511
YQ
131002014-02-11 Yao Qi <yao@codesourcery.com>
13101
13102 * target.h (enum target_xfer_error): Rename to ...
13103 (enum target_xfer_status): ... it. New. All users updated.
13104 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13105 New.
13106 (TARGET_XFER_STATUS_ERROR_P): New macro.
13107 (target_xfer_error_to_string): Remove declaration.
13108 (target_xfer_status_to_string): Declare.
13109 (target_xfer_partial_ftype): Adjust it.
13110 (struct target_ops) <to_xfer_partial>: Return
13111 target_xfer_status. Add argument xfered_len. Update
13112 comments.
13113 * target.c (target_xfer_error_to_string): Rename to ...
13114 (target_xfer_status_to_string): ... it. New. All callers
13115 updated.
13116 (target_read_live_memory): Likewise. Call target_xfer_partial
13117 instead of target_read.
13118 (memory_xfer_live_readonly_partial): Return
13119 target_xfer_status. Add argument xfered_len.
13120 (raw_memory_xfer_partial): Likewise.
13121 (memory_xfer_partial_1): Likewise.
13122 (memory_xfer_partial): Likewise.
13123 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13124 properly. Update debug message.
13125 (default_xfer_partial, current_xfer_partial): Likewise.
13126 (target_write_partial): Likewise.
13127 (target_read_partial): Likewise. All callers updated.
13128 (read_whatever_is_readable): Likewise.
13129 (target_write_with_progress): Likewise.
13130 (target_read_alloc_1): Likewise.
13131
13132 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13133 * auxv.c (procfs_xfer_auxv): Likewise.
13134 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13135 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13136 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13137 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13138 * corefile.c (read_memory): Adjust.
13139 * corelow.c (core_xfer_partial): Likewise.
13140 * ctf.c (ctf_xfer_partial): Likewise.
13141 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13142 updated.
13143 (darwin_xfer_partial): Likewise.
13144 * exec.c (section_table_xfer_memory_partial): Likewise. All
13145 callers updated.
13146 (exec_xfer_partial): Likewise.
13147 * exec.h (section_table_xfer_memory_partial): Update
13148 declaration.
13149 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13150 negative.
13151 (gnu_xfer_partial): Likewise.
13152 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13153 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13154 (ia64_hpux_xfer_solib_got): Likewise.
13155 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13156 type of 'partial_len' to ULONGEST.
13157 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13158 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13159 (linux_nat_xfer_partial): Likewise.
13160 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13161 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13162 * monitor.c (monitor_xfer_memory): Likewise.
13163 (monitor_xfer_partial): Likewise.
13164 * procfs.c (procfs_xfer_partial): Likewise.
13165 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13166 * record-full.c (record_full_xfer_partial): Likewise.
13167 (record_full_core_xfer_partial): Likewise.
13168 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13169 (gdbsim_xfer_partial): Likewise.
13170 * remote.c (remote_write_bytes_aux): Likewise. All callers
13171 updated.
13172 (remote_write_bytes, remote_read_bytes): Likewise. All
13173 callers updated.
13174 (remote_flash_erase): Likewise. All callers updated.
13175 (remote_write_qxfer): Likewise. All callers updated.
13176 (remote_read_qxfer): Likewise. All callers updated.
13177 (remote_xfer_partial): Likewise.
13178 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13179 (rs6000_xfer_shared_libraries): Likewise.
13180 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13181 (sol_thread_xfer_partial): Likewise.
13182 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13183 (sparc_xfer_partial): Likewise.
13184 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13185 updated.
13186 (spu_xfer_partial): Likewise.
13187 * spu-multiarch.c (spu_xfer_partial): Likewise.
13188 * tracepoint.c (tfile_xfer_partial): Likewise.
13189 * windows-nat.c (windows_xfer_memory): Likewise.
13190 (windows_xfer_shared_libraries): Likewise.
13191 (windows_xfer_partial): Likewise.
13192 * valprint.c: Replace 'target_xfer_error' with
13193 'target_xfer_status' in comments.
13194
a8e63083
JB
131952014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13196
13197 Checked in by Joel Brobecker <brobecker@adacore.com>.
13198 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13199
e86b67d3
JB
132002014-02-11 Joel Brobecker <brobecker@adacore.com>
13201
13202 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13203 function parameters.
13204
4b7d1f7f
WN
132052014-02-10 Will Newton <will.newton@linaro.org>
13206
13207 * elfread.c (elf_rel_plt_read): Look for a .got section if
13208 looking up .got.plt fails.
13209 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13210 on address passed to elf_gnu_ifunc_record_cache.
13211 (elf_gnu_ifunc_resolve_addr): Likewise.
13212 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13213
961842b2
JM
132142014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13215
13216 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13217 (X_RETTURN): New macro.
13218 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13219
13220 * sparc64-tdep.c (sparc64_init_abi): Hook
13221 sparc_in_function_epilogue_p.
13222
3f03e7b1
GB
132232014-02-10 Gary Benson <gbenson@redhat.com>
13224
13225 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13226 Rename name_matcher to symbol_matcher.
13227
96f861ef
GB
132282014-02-10 Gary Benson <gbenson@redhat.com>
13229
13230 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13231 Use expand_symtabs_file_matcher_ftype and
13232 expand_symtabs_symbol_matcher_ftype.
13233
ee01b665
JB
132342014-02-10 Joel Brobecker <brobecker@adacore.com>
13235
13236 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13237 (struct ada_symbol_cache): New.
13238 (ada_free_symbol_cache): Forward declare.
13239 (struct ada_pspace_data): New.
13240 (ada_pspace_data_handle): New static global.
13241 (get_ada_pspace_data, ada_pspace_data_cleanup)
13242 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13243 (cache_space, cache): Delete, now folded inside struct
13244 ada_pspace_data.
13245 (ada_get_symbol_cache): New function.
13246 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13247 implementation.
13248 (_initialize_ada_language): Remove initialization of cache_space.
13249 Move call to observer_attach_inferior_exit up, grouping it
13250 with the other observer registrations inside this function.
13251 Rename command to be more general. Add call to
13252 register_program_space_data_with_cleanup.
13253
143adbbf
JB
132542014-02-10 Joel Brobecker <brobecker@adacore.com>
13255
13256 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13257 ada_new_objfile_observer.
13258 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13259 (_initialize_tasks): Update uses of ada_new_objfile_observer
13260 and ada_tasks_normal_stop_observer.
13261
aa4fb036
JB
132622014-02-10 Joel Brobecker <brobecker@adacore.com>
13263
13264 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13265 returned by the 'Length attribute to integer.
13266
9dee8cc6
JB
132672014-02-10 Joel Brobecker <brobecker@adacore.com>
13268
13269 * ada-lang.c (_initialize_ada_language): Initialize
13270 cache_space obstack.
13271
3d9434b5
JB
132722014-02-10 Joel Brobecker <brobecker@adacore.com>
13273
13274 * ada-lang.c (HASH_SIZE): New macro.
13275 (struct cache_entry): New type.
13276 (cache_space, cache): New static globals.
13277 (ada_clear_symbol_cache, find_entry): New functions.
13278 (lookup_cached_symbol, cache_symbol): Implement.
13279 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13280 (_initialize_ada_language): Attach ada_new_objfile_observer
13281 and ada_free_objfile_observer.
13282
f0c5f9b2
JB
132832014-02-10 Joel Brobecker <brobecker@adacore.com>
13284
13285 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13286 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13287 struct block * parameter.
13288 (ada_lookup_symbol_list_worker): Constify local variable "block".
13289 Remove cast which is no longer necessary.
13290
ed3ef339
DE
132912014-02-10 Doug Evans <xdje42@gmail.com>
13292
13293 Add Guile as an extension language.
13294 * NEWS: Mention Guile scripting.
13295 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13296 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13297 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13298 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13299 (CLIBS): Add GUILE_LIBS.
13300 (install-guile): New rule.
13301 (guile.o): New rule.
13302 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13303 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13304 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13305 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13306 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13307 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13308 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13309 * configure.ac: New option --with-guile.
13310 * configure: Regenerate.
13311 * config.in: Regenerate.
13312 * auto-load.c: Remove #include "python/python.h". Add #include
13313 "gdb/section-scripts.h".
13314 (source_section_scripts): Handle Guile scripts.
13315 (_initialize_auto_load): Add name of Guile objfile script to
13316 scripts-directory help text.
13317 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13318 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13319 (struct breakpoint): New member scm_bp_object.
13320 * defs.h (enum command_control_type): New value guile_control.
13321 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13322 "extension.h".
13323 (show_user): Update comment.
13324 (_initialize_cli_cmds): Update help text for "show user". Update help
13325 text for max-user-call-depth.
13326 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13327 "extension.h".
13328 (multi_line_command_p): Add guile_control.
13329 (print_command_lines): Handle guile_control.
13330 (execute_control_command, recurse_read_control_structure): Ditto.
13331 (process_next_line): Recognize "guile" commands.
13332 * disasm.c (gdb_disassemble_info): Make non-static.
13333 * disasm.h: #include "dis-asm.h".
13334 (struct gdbarch): Add forward decl.
13335 (gdb_disassemble_info): Declare.
13336 * extension.c: #include "guile/guile.h".
13337 (extension_languages): Add guile.
13338 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13339 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13340 * gdbtypes.c (get_unsigned_type_max): New function.
13341 (get_signed_type_minmax): New function.
13342 * gdbtypes.h (get_unsigned_type_max): Declare.
13343 (get_signed_type_minmax): Declare.
13344 * guile/README: New file.
13345 * guile/guile-internal.h: New file.
13346 * guile/guile.c: New file.
13347 * guile/guile.h: New file.
13348 * guile/scm-arch.c: New file.
13349 * guile/scm-auto-load.c: New file.
13350 * guile/scm-block.c: New file.
13351 * guile/scm-breakpoint.c: New file.
13352 * guile/scm-disasm.c: New file.
13353 * guile/scm-exception.c: New file.
13354 * guile/scm-frame.c: New file.
13355 * guile/scm-gsmob.c: New file.
13356 * guile/scm-iterator.c: New file.
13357 * guile/scm-lazy-string.c: New file.
13358 * guile/scm-math.c: New file.
13359 * guile/scm-objfile.c: New file.
13360 * guile/scm-ports.c: New file.
13361 * guile/scm-pretty-print.c: New file.
13362 * guile/scm-safe-call.c: New file.
13363 * guile/scm-string.c: New file.
13364 * guile/scm-symbol.c: New file.
13365 * guile/scm-symtab.c: New file.
13366 * guile/scm-type.c: New file.
13367 * guile/scm-utils.c: New file.
13368 * guile/scm-value.c: New file.
13369 * guile/lib/gdb.scm: New file.
13370 * guile/lib/gdb/boot.scm: New file.
13371 * guile/lib/gdb/experimental.scm: New file.
13372 * guile/lib/gdb/init.scm: New file.
13373 * guile/lib/gdb/iterator.scm: New file.
13374 * guile/lib/gdb/printing.scm: New file.
13375 * guile/lib/gdb/types.scm: New file.
13376 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13377 (VPATH): Add $(GUILE_SRCDIR).
13378 (GUILE_DIR): New variable.
13379 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13380 (all): Add stamp-guile dependency.
13381 (stamp-guile): New rule.
13382 (clean-guile, install-guile, uninstall-guile): New rules.
13383 (install-only): Add install-guile dependency.
13384 (uninstall): Add uninstall-guile dependency.
13385 (clean): Add clean-guile dependency.
13386
ac020ec5
DE
133872014-02-09 Doug Evans <xdje42@gmail.com>
13388
13389 Revert this patch (which I approved, mea culpa).
13390
13391 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13392
13393 * Makefile.in (all-lib): Remove.
13394 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13395
2a081c59
JK
133962014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13397
13398 Fix Python stack corruption.
13399 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13400 gdb_py_longest.
13401
0a6bd22d
MK
134022014-02-08 Mark Kettenis <kettenis@gnu.org>
13403
13404 * Makefile.in (all-lib): Remove.
13405 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13406
1a860409
DE
134072014-02-07 Doug Evans <dje@google.com>
13408
13409 * extension-priv.h (extension_language_script_ops): Add comment.
13410 (extension_language_ops): Add comment.
caf5a491 13411 (active_ext_lang_state): Fix typo in comment.
1a860409 13412
d137e6dc
PA
134132014-02-07 Pedro Alves <palves@redhat.com>
13414
0dcb32c3 13415 PR breakpoints/16292
d137e6dc
PA
13416 * infrun.c (handle_signal_stop) <signal arrives while stepping
13417 over a breakpoint>: Switch back to the stepping thread.
13418
ce6d0892
YQ
134192014-02-07 Yao Qi <yao@codesourcery.com>
13420
13421 * target.c (target_xfer_partial): Return zero if LEN is zero.
13422
2ed4b548
YQ
134232014-02-07 Yao Qi <yao@codesourcery.com>
13424
13425 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13426 (ld_so_xfer_auxv): Likewise.
13427 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13428 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13429 * corelow.c (core_xfer_partial): Likewise.
13430 * ctf.c (ctf_xfer_partial): Likewise.
13431 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13432 (darwin_xfer_partial): Likewise.
13433 * exec.c (exec_xfer_partial): Likewise.
13434 * gnu-nat.c (gnu_xfer_partial): Likewise.
13435 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13436 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13437 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13438 * linux-nat.c (linux_xfer_siginfo): Likewise.
13439 (linux_proc_xfer_spu): Likewise.
13440 * procfs.c (procfs_xfer_partial): Likewise.
13441 * record-full.c (record_full_xfer_partial): Likewise.
13442 (record_full_core_xfer_partial): Likewise.
13443 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13444 * remote.c (remote_write_qxfer): Likewise.
13445 (remote_write_qxfer, remote_read_qxfer): Likewise.
13446 (remote_xfer_partial): Likewise.
13447 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13448 (rs6000_xfer_shared_libraries): Likewise.
13449 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13450 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13451 (spu_xfer_partial): Likewise.
13452 * target.c (memory_xfer_partial_1): Likewise.
13453 * tracepoint.c (tfile_xfer_partial): Likewise.
13454 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13455 (windows_xfer_partial): Likewise.
13456
c09f20e4
YQ
134572014-02-07 Yao Qi <yao@codesourcery.com>
13458
13459 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13460 comments.
13461 (core_xfer_shared_libraries_aix): Likewise.
13462 * gdbarch.c, gdbarch.h: Regenerated.
13463 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13464 ULONGEST. Change 'len_avail' type to ULONGEST.
13465 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13466 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13467 declaration.
13468 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13469
8635b3bf
YQ
134702014-02-07 Yao Qi <yao@codesourcery.com>
13471
13472 * corefile.c (memory_error): Get 'exception' from ERR and pass
13473 'exception' to throw_error.
13474
6dddc817
DE
134752014-02-06 Doug Evans <xdje42@gmail.com>
13476
13477 * configure.ac (libpython checking): Remove all but python.o from
13478 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13479 * configure: Regenerate.
13480
13481 * Makefile.in (SFILES): Add extension.c.
13482 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13483 (COMMON_OBS): Add extension.o.
13484 * extension.h: New file.
13485 * extension-priv.h: New file.
13486 * extension.c: New file.
13487
13488 * python/python-internal.h: #include "extension.h".
13489 (gdbpy_auto_load_enabled): Declare.
13490 (gdbpy_apply_val_pretty_printer): Declare.
13491 (gdbpy_apply_frame_filter): Declare.
13492 (gdbpy_preserve_values): Declare.
13493 (gdbpy_breakpoint_cond_says_stop): Declare.
13494 (gdbpy_breakpoint_has_cond): Declare.
13495 (void source_python_script_for_objfile): Delete.
13496 * python/python.c: #include "extension-priv.h".
13497 Delete inclusion of "observer.h".
13498 (extension_language_python): Moved here and renamed from
13499 script_language_python in py-auto-load.c.
13500 Redefined to be of type extension_language_defn.
13501 (python_extension_script_ops): New global.
13502 (python_extension_ops): New global.
13503 (struct python_env): New member previous_active.
13504 (restore_python_env): Call restore_active_ext_lang.
13505 (ensure_python_env): Call set_active_ext_lang.
13506 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13507 New arg extlang.
13508 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13509 New arg extlang.
13510 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13511 New arg extlang.
13512 (gdbpy_eval_from_control_command): Renamed from
13513 eval_python_from_control_command, made static. New arg extlang.
13514 (gdbpy_source_script) Renamed from source_python_script, made static.
13515 New arg extlang.
13516 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13517 result to int. New arg extlang.
13518 (gdbpy_source_objfile_script): Renamed from
13519 source_python_script_for_objfile, made static. New arg extlang.
13520 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13521 static. New args extlang, extlang_printers. Change result type to
13522 "void".
13523 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13524 static. New arg extlang. Rename arg printers to extlang_printers
13525 and change type to ext_lang_type_printers *.
13526 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13527 static. Replace argument arg with extlang, extlang_printers.
13528 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13529 (!HAVE_PYTHON, source_python_script): Delete.
13530 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13531 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13532 (!HAVE_PYTHON, start_type_printers): Delete.
13533 (!HAVE_PYTHON, apply_type_printers): Delete.
13534 (!HAVE_PYTHON, free_type_printers): Delete.
13535 (_initialize_python): Delete call to observer_attach_before_prompt.
13536 (finalize_python): Set/restore active extension language.
13537 (gdbpy_finish_initialization) Renamed from
13538 finish_python_initialization, made static. New arg extlang.
13539 (gdbpy_initialized): New function.
13540 * python/python.h: #include "extension.h". Delete #include
13541 "value.h", "mi/mi-cmds.h".
13542 (extension_language_python): Declare.
13543 (GDBPY_AUTO_FILE_NAME): Delete.
13544 (enum py_bt_status): Moved to extension.h and renamed to
13545 ext_lang_bt_status.
13546 (enum frame_filter_flags): Moved to extension.h.
13547 (enum py_frame_args): Moved to extension.h and renamed to
13548 ext_lang_frame_args.
13549 (finish_python_initialization): Delete.
13550 (eval_python_from_control_command): Delete.
13551 (source_python_script): Delete.
13552 (apply_val_pretty_printer): Delete.
13553 (apply_frame_filter): Delete.
13554 (preserve_python_values): Delete.
13555 (gdbpy_script_language_defn): Delete.
13556 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13557 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13558
13559 * auto-load.c: #include "extension.h".
13560 (GDB_AUTO_FILE_NAME): Delete.
13561 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13562 (script_language_gdb): Delete, moved to extension.c and renamed to
13563 extension_language_gdb.
13564 (source_gdb_script_for_objfile): Delete.
13565 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13566 (loaded_script): Change type of language member to
13567 struct extension_language_defn *.
13568 (init_loaded_scripts_info): Initialize
13569 unsupported_script_warning_printed.
13570 (maybe_add_script): Make static. Change type of language arg to
13571 struct extension_language_defn *.
13572 (clear_section_scripts): Reset unsupported_script_warning_printed.
13573 (auto_load_objfile_script_1): Rewrite to use extension language API.
13574 (auto_load_objfile_script): Make public. Remove support-compiled-in
13575 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13576 (source_section_scripts): Rewrite to use extension language API.
13577 (load_auto_scripts_for_objfile): Rewrite to use
13578 auto_load_scripts_for_objfile.
13579 (collect_matching_scripts_data): Change type of language member to
13580 struct extension_language_defn *.
13581 (auto_load_info_scripts): Change type of language arg to
13582 struct extension_language_defn *.
13583 (unsupported_script_warning_print): New function.
13584 (script_not_found_warning_print): Make static.
13585 (_initialize_auto_load): Rewrite construction of scripts-directory
13586 help.
13587 * auto-load.h (struct objfile): Add forward decl.
13588 (struct script_language): Delete.
13589 (struct auto_load_pspace_info): Add forward decl.
13590 (struct extension_language_defn): Add forward decl.
13591 (maybe_add_script): Delete.
13592 (auto_load_objfile_script): Declare.
13593 (script_not_found_warning_print): Delete.
13594 (auto_load_info_scripts): Update prototype.
13595 (auto_load_gdb_scripts_enabled): Declare.
13596 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13597 auto_load_python_scripts_enabled and made public.
13598 (script_language_python): Delete, moved to python.c.
13599 (gdbpy_script_language_defn): Delete.
13600 (info_auto_load_python_scripts): Update to use
13601 extension_language_python.
13602
13603 * breakpoint.c (condition_command): Replace call to
13604 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13605 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13606 with call to breakpoint_ext_lang_cond_says_stop.
13607 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13608 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13609 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13610 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13611 New arg slang.
13612 (local_setattro): Print name of extension language with existing
13613 stop condition.
13614
13615 * valprint.c (val_print, value_print): Update to call
13616 apply_ext_lang_val_pretty_printer.
13617 * cp-valprint.c (cp_print_value): Update call to
13618 apply_ext_lang_val_pretty_printer.
13619 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13620 (gdbpy_apply_val_pretty_printer): Renamed from
13621 apply_val_pretty_printer. New arg extlang.
13622 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13623
13624 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13625 extension language API.
13626 * cli/cli-script.c (execute_control_command): Update to call
13627 eval_ext_lang_from_control_command.
13628
13629 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13630 enum ext_lang_bt_status values. Update call to
13631 apply_ext_lang_frame_filter.
13632 (mi_cmd_stack_list_locals): Ditto.
13633 (mi_cmd_stack_list_args): Ditto.
13634 (mi_cmd_stack_list_variables): Ditto.
13635 * mi/mi-main.c: Delete #include "python/python-internal.h".
13636 Add #include "extension.h".
13637 (mi_cmd_list_features): Replace reference to python internal variable
13638 gdb_python_initialized with call to ext_lang_initialized_p.
13639
13640 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13641 Update to use enum ext_lang_frame_args. Update to call
13642 apply_ext_lang_frame_filter.
13643 * python/py-framefilter.c (extract_sym): Update to use enum
13644 ext_lang_bt_status.
13645 (extract_value, py_print_type, py_print_value): Ditto.
13646 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13647 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13648 (py_print_frame): Ditto.
13649 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13650 New arg extlang. Update to use enum ext_lang_bt_status.
13651
13652 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13653 finish_python_initialization. Replace with call to
13654 finish_ext_lang_initialization.
13655
13656 * typeprint.c (do_free_global_table): Update to call
13657 free_ext_lang_type_printers.
13658 (create_global_typedef_table): Update to call
13659 start_ext_lang_type_printers.
13660 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13661 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13662 (type_print_options): Change type of global_printers from "void *"
13663 to "struct ext_lang_type_printers *".
13664
13665 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13666 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13667 (gdbpy_preserve_values): Renamed from preserve_python_values.
13668 New arg extlang.
13669 (!HAVE_PYTHON, preserve_python_values): Delete.
13670
13671 * utils.c (quit_flag): Delete, moved to extension.c.
13672 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13673 extension.c.
13674
13675 * eval.c: Delete #include "python/python.h".
13676 * main.c: Delete #include "python/python.h".
13677
13678 * defs.h: Update comment.
13679
6af79985
JB
136802014-02-06 Joel Brobecker <brobecker@adacore.com>
13681
13682 GDB 7.7 released.
13683
12c5175d
MK
136842014-02-05 Mark Kettenis <kettenis@gnu.org>
13685
13686 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13687 defined.
13688
8dc5b319
YQ
136892014-02-05 Yao Qi <yao@codesourcery.com>
13690
13691 * remote.c (remote_pass_signals): Remove local 'buf' and use
13692 rs->buf.
13693 (remote_program_signals): Likewise.
13694
de7b2893
YQ
136952014-02-05 Yao Qi <yao@codesourcery.com>
13696
13697 * ctf.c: Include "inferior.h" and "gdbthread.h".
13698 (CTF_PID): A new macro.
13699 (ctf_open): Call inferior_appeared and add_thread_silent.
13700 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13701 (ctf_thread_alive): New function.
13702 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13703
66d032ac
YQ
137042014-02-05 Yao Qi <yao@codesourcery.com>
13705
13706 Revert this patch:
13707
13708 2013-05-24 Yao Qi <yao@codesourcery.com>
13709
13710 * tracepoint.c (TFILE_PID): Remove.
13711 (tfile_open): Don't add thread and inferior.
13712 (tfile_close): Don't set 'inferior_ptid'. Don't call
13713 exit_inferior_silent.
13714 (tfile_thread_alive): Remove.
13715 (init_tfile_ops): Don't set field 'to_thread_alive' of
13716 tfile_ops.
13717
f4ccffad
CE
137182014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13719
13720 * remote.c (remote_start_remote): Call remote_check_symbols even
13721 if only symbol-file (not file) has been given.
13722
591a12a1
UW
137232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13724
13725 * gdbarch.sh (skip_entrypoint): New callback.
13726 * gdbarch.c, gdbarch.h: Regenerate.
13727 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13728 * infrun.c (fill_in_stop_func): Likewise.
13729 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13730 (ppc_elfv2_elf_make_msymbol_special): New function.
13731 (ppc_elfv2_skip_entrypoint): Likewise.
13732 (ppc_linux_init_abi): Install them for ELFv2.
13733
cc0e89c5
UW
137342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13735
13736 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13737 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13738 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13739 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13740 structures returned in GPRs.
13741
52f548e4
UW
137422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13743
13744 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13745 offset to the stack parameter list for the ELFv2 ABI.
13746
d4094b6a
UW
137472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13748
13749 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13750 set_gdbarch_convert_from_func_ptr_addr and
13751 set_gdbarch_elf_make_msymbol_special for ELFv1.
13752 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13753 function descriptors on ELFv1.
13754 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13755 set up r12 at function entry.
13756
cd453cd0
UW
137572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13758
13759 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13760 (struct gdbarch_tdep): New member elf_abi.
13761
13762 * rs6000-tdep.c: Include "elf/ppc64.h".
13763 (rs6000_gdbarch_init): Detect ELF ABI version.
13764
0ff3e01f
UW
137652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13766
13767 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13768 within a register pair holding a DFP 128-bit value on little-endian.
13769 (ppc64_sysv_abi_return_value_base): Likewise.
13770 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13771 (dfp_pseudo_register_write): Likewise.
13772
5b757e5d
UW
137732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13774
13775 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13776 offset on little-endian when passing _Decimal32.
13777 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13778
084ee545
UW
137792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13780
13781 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13782 of the overlapped FP register within the VSX register on little-
13783 endian platforms.
13784 (efpr_pseudo_register_write): Likewise.
13785
d63167af
UW
137862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13787
13788 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13789 offset on little-endian when passing small structures.
13790
e765b44c
UW
137912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13792
13793 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13794 (struct ppc64_sysv_argpos): New data structure.
13795 (ppc64_sysv_abi_push_float): Remove.
13796 (ppc64_sysv_abi_push_val): New function.
13797 (ppc64_sysv_abi_push_integer): Likewise.
13798 (ppc64_sysv_abi_push_freg): Likewise.
13799 (ppc64_sysv_abi_push_vreg): Likewise.
13800 (ppc64_sysv_abi_push_param): Likewise.
13801 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13802 (ppc64_sysv_abi_return_value_base): New function.
13803 (ppc64_sysv_abi_return_value): Refactor to use it.
13804
36c24d95
UW
138052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13806
13807 * NEWS: Document new target powerpc64le-*-linux*.
13808
26fd9228
MK
138092014-02-04 Mark Kettenis <kettenis@gnu.org>
13810
13811 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13812 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13813 core dumps.
13814 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13815 register set used in ELF core dumps. Add floating-point register set.
13816
c5bb7362
KB
138172014-02-03 Kevin Buettner <kevinb@redhat.com>
13818
74228e77 13819 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13820 dwarf2_to_gdb[] table using symbolic constants. Adjust
13821 penultimate entry from number representing the PC register
13822 to symbolic constant representing the MDR register. Add
13823 constant for the PC register to the end of the table.
13824
af09351e
MK
138252014-02-03 Mark Kettenis <kettenis@gnu.org>
13826
13827 * bsd-kvm.c: Include <sys/param.h>
13828
8507e05d
MK
138292014-02-03 Mark Kettenis <kettenis@gnu.org>
13830
13831 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13832
ae56bfb8
JB
138332014-01-31 Joel Brobecker <brobecker@adacore.com>
13834
13835 * ada-lang.h (clear_ada_sym_cache): Delete.
13836
718ee4dc
UW
138372014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13838
13839 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13840
401e27fd
JM
138412014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13842
13843 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13844 the sigreturn register save area only if the syscall is
13845 sigreturn.
13846
a7c88acd
JB
138472014-01-29 Joel Brobecker <brobecker@adacore.com>
13848
13849 * valops.c (value_slice): Minor reformatting.
13850
fa0079ea
UW
138512014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13852
13853 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13854
c6044dd1
JB
138552014-01-28 Joel Brobecker <brobecker@adacore.com>
13856
13857 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13858 New static globals.
13859 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13860 (ada_ignore_descriptive_types_p): New static global.
13861 (find_parallel_type_by_descriptive_type): Return immediately
13862 if ada_ignore_descriptive_types_p is set.
13863 (_initialize_ada_language): Register new commands "maintenance
13864 set ada", "maintenance show ada", "maintenance set ada
13865 ignore-descriptive-types" and "maintenance show ada
13866 ignore-descriptive-types".
13867 * NEWS: Add entry for new "maint ada set/show
13868 ignore-descriptive-types" commands.
13869
568e808b
MM
138702014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13871
13872 * record-btrace.c (record_btrace_close): Call btrace_teardown
13873 for all threads.
13874
467d141b
JB
138752014-01-27 Joel Brobecker <brobecker@adacore.com>
13876
13877 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13878 "ui-out.h".
13879
fb151210
JB
138802014-01-27 Joel Brobecker <brobecker@adacore.com>
13881
13882 * ada-typeprint (type_is_full_subrange_of_target_type):
13883 New function.
13884 (print_range): Add parameter bounds_prefered_p. If not set,
13885 try printing range types using the name of their base type.
13886 (print_range_type): Add parameter bounds_prefered_p.
13887 Use it in call to print_range.
13888 (print_array_type, ada_print_type): Update calls to print_range
13889 and print_range_type.
13890
aba02109
JB
138912014-01-27 Joel Brobecker <brobecker@adacore.com>
13892
13893 * ada-typeprint.c (print_array_type, print_choices, print_range)
13894 (print_range_bound, print_dynamic_range_bound, print_range_type):
13895 Remove declaration.
13896
e62e21fd
JB
138972014-01-27 Joel Brobecker <brobecker@adacore.com>
13898
13899 * ada-typeprint.c (print_range): Add missing empty line
13900 after local declaration.
13901
859cf5d1
JB
139022014-01-27 Joel Brobecker <brobecker@adacore.com>
13903
13904 * ada-valprint.c (print_optional_low_bound): Get index_type's
13905 target type for as long as it is a TYPE_CODE_RANGE.
13906
25790f6f
JB
139072014-01-27 Joel Brobecker <brobecker@adacore.com>
13908
13909 * procfs.c (procfs_make_note_section): Remove assertion and
13910 associated comment.
13911
6b6aa828
YQ
139122014-01-24 Yao Qi <yao@codesourcery.com>
13913
13914 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13915 * corelow.c (get_core_siginfo): Likewise.
13916
5d6df423
YQ
139172014-01-24 Yao Qi <yao@codesourcery.com>
13918
13919 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13920 ULONGEST. Don't check 'len' is negative.
13921 (remote_write_bytes): Change type of 'len' to ULONGEST.
13922
83b645b8
TT
139232014-01-23 Tom Tromey <tromey@redhat.com>
13924
13925 PR python/16485:
13926 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13927 Handle exception from frame.block.
13928 (FrameVars.fetch_frame_locals): Likewise.
13929
0740f8d8
TT
139302014-01-23 Tom Tromey <tromey@redhat.com>
13931
13932 PR python/16487:
13933 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13934 on a NULL pointer. Move "goto error" to correct place.
13935
21909fa1
TT
139362014-01-23 Tom Tromey <tromey@redhat.com>
13937
13938 PR python/16491:
13939 * python/py-framefilter.c (apply_frame_filter): Call
13940 ensure_python_env after computing gdbarch.
13941
17fde6d0
YQ
139422014-01-23 Yao Qi <yao@codesourcery.com>
13943
13944 * target.c (raw_memory_xfer_partial): Change argument type
13945 from void * to gdb_byte *.
13946 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13947
87ce2a04
DE
139482014-01-22 Doug Evans <dje@google.com>
13949
13950 New gdbserver option --debug-format=timestamp.
13951 * NEWS: Mention it.
13952
237b092b
AA
139532014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13954
13955 * syscalls/s390x-linux.xml: New file.
13956 * syscalls/s390-linux.xml: New file.
13957 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13958 (XML_SYSCALL_FILENAME_S390X): Likewise.
13959 (op_svc): New enum value for SVC opcode.
13960 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13961 (s390_linux_get_syscall_number): New function.
13962 (s390_gdbarch_init): Register '*get_syscall_number' and the
13963 syscall xml file name.
13964 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13965 "s390-linux.xml" and "s390x-linux.xml".
13966 * NEWS: Announce new feature.
13967
54bff650
BS
139682014-01-22 Baruch Siach <baruch@tkos.co.il>
13969
13970 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13971
14e361d7
PA
139722014-01-22 Pedro Alves <palves@redhat.com>
13973
13974 * xtensa-config.c: Include defs.h.
13975
46bbb3ed
JB
139762014-01-22 Joel Brobecker <brobecker@adacore.com>
13977
13978 * common/common-utils.h: Add "ARI:" comment beside __func__
13979 reference.
13980
3a80edfc
JB
139812014-01-22 Joel Brobecker <brobecker@adacore.com>
13982
13983 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13984 documentation a bit.
13985
4869db5e
RM
139862014-01-21 Roland McGrath <mcgrathr@google.com>
13987
13988 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13989 * configure: Regenerate.
13990 * aclocal.m4: Regenerate.
13991 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13992 New substituted variables.
13993 (install-strip): New target.
13994 (INSTALL_SCRIPT): New substituted variable.
13995 (FLAGS_TO_PASS): Add it.
13996 (install-only): Use $(INSTALL_SCRIPT) rather than
13997 $(INSTALL_PROGRAM) for gcore.
13998
9ea4267d
TT
139992014-01-20 Tom Tromey <tromey@redhat.com>
14000
14001 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14002 together.
14003
1f2bdf09
TT
140042014-01-20 Tom Tromey <tromey@redhat.com>
14005
14006 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14007 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14008 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14009 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14010 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14011 (struct cmd_list_element) <flags>: Remove.
14012 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14013 doc_allocated>: New fields.
14014 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14015 bitfields.
14016 * maint.c (maintenance_do_deprecate): Update.
14017 * top.c (execute_command): Update.
14018
e671835b
BS
140192014-01-20 Baruch Siach <baruch@tkos.co.il>
14020
14021 * xtensa-linux-nat.c: Include asm/ptrace.h.
14022
50367cd2
IB
140232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14024
14025 * Makefile.in (SFILES): Add d-support.c.
14026 (COMMON_OBS): Add d-support.o.
14027 * d-lang.h (d_parse_symbol): Add comment, now defined in
14028 d-support.c.
14029 * d-lang.c (parse_call_convention)
14030 (parse_attributes, parse_function_types)
14031 (parse_function_args, parse_type, parse_identifier)
14032 (call_convention_p, d_parse_symbol): Move functions to ...
14033 * d-support.c: ... New file.
14034
ec9f644a
IB
140352014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14036
14037 * d-lang.h (d_parse_symbol): Add declaration.
14038 * d-lang.c (extract_identifiers)
14039 (extract_type_info): Remove functions.
14040 (parse_call_convention, parse_attributes)
14041 (parse_function_types, parse_function_args)
14042 (parse_type, parse_identifier, call_convention_p)
14043 (d_parse_symbol): New functions.
14044 (d_demangle): Use d_parse_symbol to demangle D symbols.
14045
94b1b47e
IB
140462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14047
14048 * d-lang.h (struct builtin_d_type): New data type.
14049 (builtin_d_type): Add declaration.
14050 * d-lang.c (d_language_arch_info, build_d_types)
14051 (builtin_d_type): New functions.
14052 (enum d_primitive_types): New data type.
14053 (d_language_defn): Change c_language_arch_info to
14054 d_language_arch_info.
14055 (d_type_data): New static variable.
14056 (_initialize_d_language): Initialize d_type_data.
14057
63778547
IB
140582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14059
14060 * d-lang.h (d_main_name): Add declaration.
14061 * d-lang.c (d_main_name): New function.
14062 * symtab.c (find_main_name): Add call to d_main_name.
14063
3271ba66
IB
140642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14065
14066 * d-lang.c (d_language_defn): Change macro_expansion_c to
14067 macro_expansion_no.
14068
d36b3012
IB
140692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14070
14071 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14072
c90a6fb7
SDJ
140732014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14074
14075 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14076 gdb_exception" declaration.
14077 * remote.c (getpkt_or_notif_sane): Likewise.
14078
749234e5
DE
140792014-01-17 Doug Evans <dje@google.com>
14080
14081 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14082 function, contents of dirnames_to_char_ptr_vec_append moved here.
14083 (delim_string_to_char_ptr_vec): New function.
14084 (dirnames_to_char_ptr_vec_append): Rewrite.
14085 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14086
df049a58
DE
140872014-01-17 Doug Evans <dje@google.com>
14088
14089 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14090 and moved here ...
14091 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14092 #include "common-utils.h".
14093 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14094 * common/vec.h (VEC_ASSERT_PASS): Update.
14095 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14096 (MACH_CHECK_ERROR): Update.
14097
69f97648
SM
140982014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14099
14100 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14101 comments.
14102 * gdbarch.h: Regenerate.
14103
98b1cfdc
TT
141042014-01-16 Tom Tromey <tromey@redhat.com>
14105
14106 * value.c (struct value) <regnum>: Move earlier.
14107
77a19445
TT
141082014-01-16 Tom Tromey <tromey@redhat.com>
14109
14110 * remote.c (extended_remote_create_inferior): Rename from
14111 extended_remote_create_inferior_1. Add "ops" argument. Remove
14112 old implementation.
14113
62261490
PA
141142014-01-16 Pedro Alves <palves@redhat.com>
14115
14116 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14117 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14118 the backchain.
14119
4d65956b
DE
141202014-01-16 Doug Evans <dje@google.com>
14121
14122 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14123
52834460
MM
141242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14125
14126 * btrace.h (btrace_thread_flag): New.
14127 (struct btrace_thread_info) <flags>: New.
14128 * record-btrace.c (record_btrace_resume_thread)
14129 (record_btrace_find_thread_to_move, btrace_step_no_history)
14130 (btrace_step_stopped, record_btrace_start_replaying)
14131 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14132 (record_btrace_find_resume_thread): New.
14133 (record_btrace_resume, record_btrace_wait): Extend.
14134 (record_btrace_can_execute_reverse): New.
14135 (record_btrace_open): Fail in non-stop mode.
14136 (record_btrace_set_replay): Split into this, ...
14137 (record_btrace_stop_replaying): ... this, ...
14138 (record_btrace_clear_histories): ... and this.
14139 (init_record_btrace_ops): Init to_can_execute_reverse.
14140 * NEWS: Announce it.
14141
118e6252
MM
141422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14143
14144 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14145 (forward_target_decr_pc_after_break)
14146 (target_decr_pc_after_break): New.
14147 * target.c (forward_target_decr_pc_after_break)
14148 (target_decr_pc_after_break): New.
14149 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14150 instead of gdbarch_decr_pc_after_break.
14151 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14152 instead of gdbarch_decr_pc_after_break.
14153 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14154 instead of gdbarch_decr_pc_after_break.
14155 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14156 instead of gdbarch_decr_pc_after_break.
14157 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14158 instead of gdbarch_decr_pc_after_break.
14159 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14160 instead of gdbarch_decr_pc_after_break.
14161
6e07b1d2
MM
141622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14163
14164 * btrace.c: Include regcache.h.
14165 (btrace_add_pc): New.
14166 (btrace_enable): Call btrace_add_pc.
14167 (btrace_is_empty): New.
14168 * btrace.h (btrace_is_empty): New.
14169 * record-btrace.c (require_btrace, record_btrace_info): Call
14170 btrace_is_empty.
14171
969c39fb
MM
141722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14173
14174 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14175 Support delta reads.
14176 (linux_disable_btrace): Change return type.
14177 * common/linux-btrace.h (linux_read_btrace): Change parameters
14178 and return type to allow error reporting. Update users.
14179 (linux_disable_btrace): Change return type. Update users.
14180 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14181 New.
14182 (btrace_error): New.
14183 (btrace_block) <begin>: Comment on BEGIN == 0.
14184 * btrace.c (btrace_compute_ftrace): Start from the end of
14185 the current trace.
14186 (btrace_stitch_trace, btrace_clear_history): New.
14187 (btrace_fetch): Read delta trace, return if replaying.
14188 (btrace_clear): Move clear history code to btrace_clear_history.
14189 (parse_xml_btrace): Throw an error if parsing failed.
14190 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14191 and return type to allow error reporting.
14192 (target_read_btrace): Change parameters and return type to allow
14193 error reporting.
14194 * target.c (target_read_btrace): Update.
14195 * remote.c (remote_read_btrace): Support delta reads. Pass
14196 errors on.
14197 * NEWS: Announce it.
14198
0b722aec
MM
141992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14200
14201 * record.h (record_btrace_frame_unwind)
14202 (record_btrace_tailcall_frame_unwind): New declarations.
14203 * dwarf2-frame: Include record.h
14204 (dwarf2_frame_cfa): Throw an error for btrace frames.
14205 * record-btrace.c: Include hashtab.h.
14206 (btrace_get_bfun_name): New.
14207 (btrace_call_history): Call btrace_get_bfun_name.
14208 (struct btrace_frame_cache): New.
14209 (bfcache): New.
14210 (bfcache_hash, bfcache_eq, bfcache_new): New.
14211 (btrace_get_frame_function): New.
14212 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14213 (record_btrace_frame_this_id): Compute own id.
14214 (record_btrace_frame_prev_register): Provide PC, throw_error
14215 for all other registers.
14216 (record_btrace_frame_sniffer): Detect btrace frames.
14217 (record_btrace_tailcall_frame_sniffer): New.
14218 (record_btrace_frame_dealloc_cache): New.
14219 (record_btrace_frame_unwind): Add new functions.
14220 (record_btrace_tailcall_frame_unwind): New.
14221 (_initialize_record_btrace): Allocate cache.
14222 * btrace.c (btrace_clear): Call reinit_frame_cache.
14223 * NEWS: Announce it.
14224
066ce621
MM
142252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14226
14227 * record-btrace.c (record_btrace_set_replay)
14228 (record_btrace_goto_begin, record_btrace_goto_end)
14229 (record_btrace_goto): New.
14230 (init_record_btrace_ops): Initialize them.
14231 * NEWS: Announce it.
14232
e2887aa3
MM
142332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14234
14235 * record-btrace.c (record_btrace_find_new_threads)
14236 (record_btrace_thread_alive): New.
14237 (init_record_btrace_ops): Initialize to_find_new_threads and
14238 to_thread_alive.
14239
b2f4cfde
MM
142402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14241
14242 * record-btrace.c (record_btrace_resume): New.
14243 (record_btrace_wait): New.
14244 (init_record_btrace_ops): Initialize to_wait and to_resume.
14245
633785ff
MM
142462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14247
14248 * record-btrace.c (record_btrace_xfer_partial)
14249 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14250 (record_btrace_allow_memory_access): New.
14251 (init_record_btrace_ops): Initialize new methods.
14252 * target.c (raw_memory_xfer_partial): Bail out if target reports
14253 that this memory is not available.
14254
3db08215
MM
142552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14256
14257 * target.h (target_ops) <to_insert_breakpoint>
14258 <to_remove_breakpoint>: Add target_ops parameter.
14259 (forward_target_insert_breakpoint): New.
14260 (forward_target_remove_breakpoint): New.
14261 (memory_remove_breakpoint, memory_insert_breakpoint):
14262 Add target_ops parameter.
14263 * target.c (target_insert_breakpoint): Split into this and ...
14264 (forward_target_insert_breakpoint): ... this.
14265 (target_remove_breakpoint): Split into this and ...
14266 (forward_target_remove_breakpoint): ... this.
14267 (debug_to_insert_breakpoint): Add target_ops parameter.
14268 Call forward_target_insert_breakpoint.
14269 (debug_to_remove_breakpoint): Add target_ops parameter.
14270 Call forward_target_remove_breakpoint.
14271 (update_current_target): Do not inherit or default to_insert_breakpoint
14272 and to_remove_breakpoint.
14273 * corelow.c (ignore): Add target_ops parameter.
14274 * exec.c (ignore): Add target_ops parameter.
14275 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14276 Add target_ops parameter.
14277 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14278 Add target_ops parameter.
14279 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14280 Add target_ops parameter.
14281 * record-full.c (record_full_beneath_to_insert_breakpoint)
14282 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14283 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14284 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14285 (record_full_core_remove_breakpoint): Add target_ops parameter.
14286 Update users.
14287 (record_full_beneath_to_insert_breakpoint_ops)
14288 (record_full_beneath_to_remove_breakpoint_ops)
14289 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14290 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14291 tmp_to_remove_breakpoint_ops,
14292 record_full_beneath_to_insert_breakpoint_ops, and
14293 record_full_beneath_to_remove_breakpoint_ops.
14294 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14295 (m32r_remove_breakpoint): Add target_ops parameter.
14296 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14297 Add target_ops parameter.
14298 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14299 Add target_ops parameter.
14300
cecac1ab
MM
143012014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14302 Markus Metzger <markus.t.metzger@intel.com>
14303
14304 * record-btrace.c: Include frame-unwind.h.
14305 (record_btrace_frame_unwind_stop_reason)
14306 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14307 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14308 New.
14309 (init_record_btrace_ops): Install it.
14310
824344ca
MM
143112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14312
14313 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14314 get_prev_frame_1.
14315
32261e52
MM
143162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14317
14318 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14319 earlier.
14320
ea001bdc
MM
143212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14322
14323 * frame-unwind.c: Include target.h.
14324 (frame_unwind_try_unwinder): New function with code from ...
14325 (frame_unwind_find_by_frame): ... here. New variable
14326 unwinder_from_target, call also target_get_unwinder)
14327 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14328 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14329 * target.h (struct target_ops): New fields to_get_unwinder and
14330 to_get_tailcall_unwinder.
14331 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14332
1f3ef581
MM
143332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14334
14335 * record-btrace.c (record_btrace_fetch_registers)
14336 (record_btrace_store_registers)
14337 (record_btrace_to_prepare_to_store): New.
14338 (init_record_btrace_ops): Add the above.
14339
f32dbf8c
MM
143402014-01-16 Tom Tromey <tromey@redhat.com>
14341
14342 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14343 * target.h (struct target_ops) <to_prepare_to_store>: Add
14344 argument.
14345 (target_prepare_to_store): Add argument.
14346 * target.c (debug_to_prepare_to_store): Add argument.
14347 (update_current_target): Update.
14348 * remote.c (remote_prepare_to_store): Add 'self' argument.
14349 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14350 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14351 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14352 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14353 argument.
14354 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14355 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14356 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14357 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14358 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14359
07bbe694
MM
143602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14361
14362 * btrace.h (replay) <replay>: New.
14363 (btrace_is_replaying): New.
14364 * btrace.c (btrace_clear): Free replay iterator.
14365 (btrace_is_replaying): New.
14366 * record-btrace.c (record_btrace_is_replaying): New.
14367 (record_btrace_info): Print insn number if replaying.
14368 (record_btrace_insn_history): Start at replay position.
14369 (record_btrace_call_history): Start at replay position.
14370 (init_record_btrace_ops): Init to_record_is_replaying.
14371
0688d04e
MM
143722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14373
14374 * record-btrace.c (record_btrace_insn_history_range): Include
14375 end.
14376 (record_btrace_insn_history_from): Adjust range.
14377 (record_btrace_call_history_range): Include
14378 end.
14379 (record_btrace_call_history_from): Adjust range.
14380 * NEWS: Announce changes.
14381
8710b709
MM
143822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14383
14384 * record.h (enum record_print_flag)
14385 <record_print_indent_calls>: New.
14386 * record.c (get_call_history_modifiers): Recognize /c modifier.
14387 (_initialize_record): Document /c modifier.
14388 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14389 Reorder fields. Optionally indent the function name. Update
14390 all users.
14391 * NEWS: Announce changes.
14392
d0fa7535
MM
143932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14394
14395 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14396
5de9129b
MM
143972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14398
14399 * btrace.c (ftrace_new_function): Start counting at one.
14400 * record-btrace.c (record_btrace_info): Adjust number of calls
14401 and insns.
14402 * NEWS: Announce it.
14403
7acbe133
MM
144042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14405
14406 * record-btrace.c (btrace_call_history_insn_range): Print
14407 insn range as [begin, end].
14408
23a7fe75
MM
144092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14410
14411 * btrace.h (struct btrace_func_link): New.
14412 (enum btrace_function_flag): New.
14413 (struct btrace_inst): Rename to ...
14414 (struct btrace_insn): ...this. Update all users.
14415 (struct btrace_func) <ibegin, iend>: Remove.
14416 (struct btrace_func_link): New.
14417 (struct btrace_func): Rename to ...
14418 (struct btrace_function): ...this. Update all users.
14419 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14420 (number, level, flags>: New.
14421 (struct btrace_insn_iterator): Rename to ...
14422 (struct btrace_insn_history): ...this.
14423 Update all users.
14424 (struct btrace_insn_iterator, btrace_call_iterator): New.
14425 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14426 (struct btrace_target_info) <begin, end, level>
14427 <insn_history, call_history>: New.
14428 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14429 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14430 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14431 (btrace_call_number, btrace_call_begin, btrace_call_end)
14432 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14433 (btrace_find_function_by_number, btrace_set_insn_history)
14434 (btrace_set_call_history): New.
14435 * btrace.c (btrace_init_insn_iterator)
14436 (btrace_init_func_iterator, compute_itrace): Remove.
14437 (ftrace_print_function_name, ftrace_print_filename)
14438 (ftrace_skip_file): Change
14439 parameter to const.
14440 (ftrace_init_func): Remove.
14441 (ftrace_debug): Use new btrace_function fields.
14442 (ftrace_function_switched): Also consider gaining and
14443 losing symbol information).
14444 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14445 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14446 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14447 New.
14448 (ftrace_new_function): Move. Remove debug print.
14449 (ftrace_update_lines, ftrace_update_insns): New.
14450 (ftrace_update_function): Check for call, ret, and jump.
14451 (compute_ftrace): Renamed to ...
14452 (btrace_compute_ftrace): ...this. Rewritten to compute call
14453 stack.
14454 (btrace_fetch, btrace_clear): Updated.
14455 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14456 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14457 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14458 (btrace_call_number, btrace_call_begin, btrace_call_end)
14459 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14460 (btrace_find_function_by_number, btrace_set_insn_history)
14461 (btrace_set_call_history): New.
14462 * record-btrace.c (require_btrace): Use new btrace thread
14463 info fields.
14464 (record_btrace_info, btrace_insn_history)
14465 (record_btrace_insn_history, record_btrace_insn_history_range):
14466 Use new btrace thread info fields and new iterator.
14467 (btrace_func_history_src_line): Rename to ...
14468 (btrace_call_history_src_line): ...this. Use new btrace
14469 thread info fields.
14470 (btrace_func_history): Rename to ...
14471 (btrace_call_history): ...this. Use new btrace thread info
14472 fields and new iterator.
14473 (record_btrace_call_history, record_btrace_call_history_range):
14474 Use new btrace thread info fields and new iterator.
14475
8372a7cb
MM
144762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14477
14478 * frame.h (frame_id_build_unavailable_stack_special): New.
14479 * frame.c (frame_id_build_unavailable_stack_special): New.
14480
c2170eef
MM
144812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14482
14483 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14484 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14485 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14486 to gdbarch.
14487 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14488 (i386_insn_is_jump, i386_jmp_p): New.
14489 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14490 insn_is_jump to gdbarch.
14491 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14492 * gdbarch.h: Regenerated.
14493 * gdbarch.c: Regenerated.
14494 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14495 (default_insn_is_jump): New.
14496 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14497 (default_insn_is_jump): New.
14498
864089d2
MM
144992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14500
14501 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14502 Change to ...
14503 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14504 (btrace_read_type) <btrace_read_new>: Change to ...
14505 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14506
ed9edfb5
MM
145072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14508
14509 * common/linux-btrace.c (linux_read_btrace): Free trace from
14510 previous iteration.
14511
fbcbc3fd
DE
145122014-01-15 Doug Evans <dje@google.com>
14513
14514 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14515 uint32_t.
14516
3d548a53
TT
145172014-01-15 Tom Tromey <tromey@redhat.com>
14518
14519 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14520 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14521 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14522 (set_objfile_main_name): New function.
14523 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14524 language_of_main>: New fields.
14525 (set_objfile_main_name): Declare.
14526 * symtab.c (find_main_name): Loop over objfiles to find the main
14527 name and language.
14528 (set_main_name): Now static.
14529 (get_main_info): Add comment.
14530 * symtab.h (set_main_name): Don't declare.
14531
32ac0d11
TT
145322014-01-15 Tom Tromey <tromey@redhat.com>
14533
14534 * symtab.c (main_progspace_key): New global.
14535 (struct main_info): New.
14536 (name_of_main, language_of_main): Remove.
14537 (get_main_info, main_info_cleanup): New function.
14538 (set_main_name, main_name, main_language): Use get_main_info.
14539 (_initialize_symtab): Initialize main_progspace_key.
14540
9e6c82ad
TT
145412014-01-15 Tom Tromey <tromey@redhat.com>
14542
14543 * dbxread.c (process_one_symbol): Update.
14544 * dwarf2read.c (read_partial_die): Update.
14545 * symfile.c (set_initial_language): Call main_language.
14546 * symtab.c (language_of_main): Now static.
14547 (set_main_name): Add 'lang' parameter.
14548 (find_main_name): Update.
14549 (main_language): New function.
14550 (symtab_observer_executable_changed): Update.
14551 * symtab.h (set_main_name): Update.
14552 (language_of_main): Remove.
14553 (main_language): Declare.
14554
6ef55de7
TT
145552014-01-15 Tom Tromey <tromey@redhat.com>
14556
14557 * symfile.c (init_entry_point_info): Use new "initialized" field.
14558 Update.
14559 * objfiles.h (struct entry_point) <initialized>: New field.
14560 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14561 (struct objfile) <ei>: ...here. Remove.
14562 * objfiles.c (entry_point_address_query): Update.
14563
53eddfa6
TT
145642014-01-15 Tom Tromey <tromey@redhat.com>
14565
14566 * objfiles.c (entry_point_address_query): Relocate entry point
14567 address.
14568 (objfile_relocate1): Do not relocate entry point address.
14569 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14570 <the_bfd_section_index>: New field.
14571 * symfile.c (init_entry_point_info): Find the entry point's
14572 section.
14573
d56e56aa
TT
145742014-01-15 Tom Tromey <tromey@redhat.com>
14575
14576 * solib-frv.c (enable_break): Use entry_point_address_query.
14577
33a97bbe
OJ
145782014-01-15 Omair Javaid <omair.javaid@linaro.org>
14579
14580 * NEWS: Add note on improved process record-replay on
14581 arm*-linux* targets.
14582
c6ec2b30
OJ
145832014-01-15 Omair Javaid <omair.javaid@linaro.org>
14584
14585 * arm-tdep.c (enum arm_record_result): New enum.
14586 (arm_record_unsupported_insn): New function.
14587 (arm_record_coproc_data_proc): Removed.
14588 (thumb2_record_ld_st_multiple): New function.
14589 (thumb2_record_ld_st_dual_ex_tbb): New function.
14590 (thumb2_record_data_proc_sreg_mimm): New function.
14591 (thumb2_record_ps_dest_generic): New function.
14592 (thumb2_record_branch_misc_cntrl): New function.
14593 (thumb2_record_str_single_data): New function.
14594 (thumb2_record_ld_mem_hints): New function.
14595 (thumb2_record_ld_word): New function.
14596 (thumb2_record_lmul_lmla_div): New function.
14597 (thumb2_record_decode_insn_handler): New function.
14598 (decode_insn): Add thumb32 instruction handlers.
14599
97dfe206
OJ
146002014-01-15 Omair Javaid <omair.javaid@linaro.org>
14601
14602 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14603 (struct arm_linux_record_tdep): Declare.
14604 (arm_canonicalize_syscall): New function.
14605 (arm_all_but_pc_registers_record): New function.
14606 (arm_linux_syscall_record): New function.
14607 (arm_linux_init_abi): Add syscall recording constructs.
14608 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14609 decoding. (arm_record_coproc_data_proc): Update arm syscall
14610 decoding.
14611 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14612 <arm_syscall_record>: New field.
14613 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14614 gdb_target_obs.
14615
9904a494
OJ
146162014-01-15 Omair Javaid <omair.javaid@linaro.org>
14617
14618 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14619 register for push instruction recording.
14620
f969241e
OJ
146212014-01-15 Omair Javaid <omair.javaid@linaro.org>
14622
14623 * arm-tdep.c (thumb_record_misc): Update to correct logical
14624 error while recording ldm, ldmia and pop instructions.
14625
bfbbec00
OJ
146262014-01-15 Omair Javaid <omair.javaid@linaro.org>
14627
14628 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14629
e40adcc9
PA
146302014-01-15 Pedro Alves <palves@redhat.com>
14631
14632 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14633 (go32_resume, go32_fetch_registers, store_register)
14634 (go32_store_registers, go32_prepare_to_store)
14635 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14636 (go32_create_inferior, go32_can_run, go32_terminal_init)
14637 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14638 declarations.
14639
b0a16e66
TT
146402014-01-15 Tom Tromey <tromey@redhat.com>
14641
14642 * target.h (async_callback_ftype): New typedef.
14643 (struct target_ops) <to_async>: Use it.
14644
bf7105a4
JB
146452014-01-15 Joel Brobecker <brobecker@adacore.com>
14646
14647 * python/py-value.c (get_field_type): Remove unnecessary curly
14648 braces for single-statement if block.
14649
a8f35c2e
JB
146502014-01-15 Joel Brobecker <brobecker@adacore.com>
14651
14652 * python/py-type.c (convert_field): Add missing empty line
14653 after declarations.
14654
bb4142cf
DE
146552014-01-14 Doug Evans <dje@google.com>
14656
14657 * symfile.h (expand_symtabs_matching): Renamed from
14658 expand_partial_symbol_names. Update prototype.
14659 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14660 * symfile.c (expand_symtabs_matching): Renamed from
14661 expand_partial_symbol_names. New args file_matcher, kind.
14662 Rename arg fun to symbol_matcher.
14663 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14664 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14665 ada_expand_partial_symbol_name.
14666 (ada_make_symbol_completion_list): Update to call
14667 expand_symtabs_matching.
14668 (ada_add_global_exceptions): Call expand_symtabs_matching.
14669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14670 call map_symbol_filenames.
14671 * symtab.c (sources_info): Update to call map_symbol_filenames.
14672 (search_symbols): Call expand_symtabs_matching.
14673 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14674 (default_make_symbol_completion_list_break_on): Update to call
14675 expand_symtabs_matching.
14676 (make_source_files_completion_list): Update to call
14677 map_symbol_filenames.
14678
206f2a57
DE
146792014-01-14 Doug Evans <dje@google.com>
14680
14681 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14682 (expand_symtabs_symbol_matcher_ftype): New typedef.
14683 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14684 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14685 * symfile.c (expand_partial_symbol_names): Update to use
14686 expand_symtabs_symbol_matcher_ftype.
14687 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14688 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14689 Arg name_matcher renamed to symbol_matcher.
14690 * psymtab.c (recursively_search_psymtabs): Update to use
14691 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14692 sym_matcher.
14693 (expand_symtabs_matching_via_partial): Update to use
14694 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14695 Arg name_matcher renamed to symbol_matcher.
14696
540c2971
DE
146972014-01-14 Doug Evans <dje@google.com>
14698
14699 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14700 (map_partial_symbol_filenames): Ditto.
14701 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14702 (map_partial_symbol_filenames): Ditto.
14703 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14704 (map_partial_symbol_filenames): Ditto.
14705 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14706 (map_partial_symbol_filenames): Ditto.
14707 * symtab.c: Delete #include "psymtab.h".
14708
8213266a
PA
147092014-01-14 Pedro Alves <palves@redhat.com>
14710 Tom Tromey <tromey@redhat.com>
14711
14712 * infrun.c (use_displaced_stepping): Use find_record_target
14713 instead of RECORD_IS_USED.
14714 (adjust_pc_after_break): Use record_full_is_used instead of
14715 RECORD_IS_USED.
14716 * record-btrace.c (record_btrace_open): Call record_preopen
14717 instead of checking RECORD_IS_USED.
14718 * record-full.c (record_full_shortname)
14719 (record_full_core_shortname): New globals.
14720 (record_full_is_used): New function.
14721 (find_full_open): Call record_preopen instead of checking
14722 RECORD_IS_USED.
14723 (init_record_full_ops): Set the target's shortname to
14724 record_full_shortname.
14725 (init_record_full_core_ops): Set the target's shortname to
14726 record_full_core_shortname.
14727 * record-full.h (record_full_is_used): Declare.
14728 * record.c (find_record_target): Make extern.
14729 (record_preopen): New function.
14730 * record.h (RECORD_IS_USED): Delete macro.
14731 (find_record_target, record_preopen): Declare functions.
14732
7ec1862d
YQ
147332014-01-14 Yao Qi <yao@codesourcery.com>
14734
14735 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14736 'len''s type to ULONGEST.
14737 (core_xfer_shared_libraries_aix): Likewise.
14738 * gdbarch.c, gdbarch.h: Regenerated.
14739 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14740 Change type of 'len' to ULONGEST.
14741 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14742 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14743
dea80a27
YQ
147442014-01-14 Yao Qi <yao@codesourcery.com>
14745
14746 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14747 type of 'len' to ULONGEST.
14748 (linux_xfer_osdata_processgroups): Likewise.
14749 (linux_xfer_osdata_threads): Likewise.
14750 (linux_xfer_osdata_fds): Likewise.
14751 (linux_xfer_osdata_isockets): Likewise.
14752 (linux_xfer_osdata_shm): Likewise.
14753 (linux_xfer_osdata_sem): Likewise.
14754 (linux_xfer_osdata_msg): Likewise.
14755 (linux_common_xfer_osdata): Likewise.
14756 (struct osdata_type) <getter>: Likewise.
14757 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14758 the declaration.
14759
b55e14c7
YQ
147602014-01-14 Yao Qi <yao@codesourcery.com>
14761
14762 * target.h (target_xfer_partial_ftype): Update.
14763 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14764 ULONGEST.
14765 * aix-thread.c (aix_thread_xfer_partial): Change type of
14766 argument 'len' to ULONGEST.
14767 * auxv.c (procfs_xfer_auxv): Likewise.
14768 (ld_so_xfer_auxv): Likewise.
14769 (memory_xfer_auxv): Likewise.
14770 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14771 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14772 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14773 * corelow.c (core_xfer_partial): Likewise.
14774 * ctf.c (ctf_xfer_partial): Likewise.
14775 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14776 '%u'.
14777 (darwin_read_dyld_info): Likewise.
14778 (darwin_xfer_partial): Likewise.
14779 * exec.c (section_table_xfer_memory_partial): Likewise.
14780 (exec_xfer_partial): Likewise.
14781 * exec.h (section_table_xfer_memory_partial): Update
14782 declaration.
14783 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14784 instead of plongest.
14785 (gnu_xfer_partial): Likewise.
14786 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14787 (ia64_hpux_xfer_solib_got): Likewise.
14788 (ia64_hpux_xfer_partial): Likewise.
14789 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14790 * inf-ptrace.c (inf_ptrace_xfer_partial):
14791 * inf-ttrace.c (inf_ttrace_xfer_partial):
14792 * linux-nat.c (linux_xfer_siginfo): Likewise.
14793 (linux_nat_xfer_partial): Likewise.
14794 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14795 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14796 * monitor.c (monitor_xfer_memory): Likewise.
14797 (monitor_xfer_partial): Likewise.
14798 * procfs.c (procfs_xfer_partial): Likewise.
14799 * record-full.c (record_full_xfer_partial): Likewise.
14800 (record_full_core_xfer_partial): Likewise.
14801 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14802 instead of plongest.
14803 (gdbsim_xfer_partial): Likewise.
14804 * remote.c (remote_xfer_partial): Likewise.
14805 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14806 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14807 declaration.
14808 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14809 (rs6000_xfer_shared_libraries): Likewise.
14810 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14811 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14812 (sparc_xfer_partial): Likewise.
14813 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14814 (spu_xfer_partial): Likewise.
14815 * spu-multiarch.c (spu_xfer_partial): Likewise.
14816 * target.c (target_read_live_memory): Likewise.
14817 (memory_xfer_live_readonly_partial): Likewise.
14818 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14819 (target_xfer_partial, default_xfer_partial): Likewise.
14820 (current_xfer_partial): Likewise.
14821 * tracepoint.c (tfile_xfer_partial): Likewise.
14822 * windows-nat.c (windows_xfer_memory): Likewise. Call
14823 pulongest instead of plongest.
14824 (windows_xfer_partial): Likewise.
14825 (windows_xfer_shared_libraries): Likewise.
14826
05804640
YQ
148272014-01-14 Yao Qi <yao@codesourcery.com>
14828
14829 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14830 target_xfer_partial_ftype.
14831
b5b08fb4
SC
148322014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14833
14834 PR python/15464
14835 PR python/16113
14836 * valops.c (value_struct_elt_bitpos): New function
14837 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14838 object to 'None' if the field name is an empty string ("").
14839 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14840 attribute to look for a field when 'name' is 'None'.
14841 (get_field_type): New function
14842
13aaf454
DE
148432014-01-13 Doug Evans <dje@google.com>
14844
14845 PR symtab/16426
14846 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14847 (try_open_dwop_file): Ditto.
14848 * gdb_bfd.c: #include "vec.h".
14849 (bfdp): New typedef.
14850 (struct gdb_bfd_data): New member included_bfds.
14851 (gdb_bfd_unref): Unref all included bfds.
14852 (gdb_bfd_record_inclusion): New function.
14853 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14854
c2cec97c
TT
148552014-01-13 Tom Tromey <tromey@redhat.com>
14856
14857 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14858
78e5999d
TT
148592014-01-13 Tom Tromey <tromey@redhat.com>
14860
14861 * defs.h (use_windows): Remove.
14862 * gdb.c (main): Update.
14863 * main.c (captured_main, gdb_main): Update.
14864 * main.h (struct captured_main_args) <use_windows>: Remove.
14865 * top.c (use_windows): Remove.
14866
f2052bbe
TT
148672014-01-13 Tom Tromey <tromey@redhat.com>
14868
14869 * defs.h (deprecated_flush_hook): Remove.
14870
fde4f8ed
JK
148712014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14872
14873 PR threads/16216
14874 * linux-thread-db.c (try_thread_db_load): Add parameter
14875 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14876 (try_thread_db_load_from_pdir_1): Move it there from here.
14877 (try_thread_db_load_from_sdir): Update caller.
14878 (try_thread_db_load_from_dir): Move it there from here.
14879
bdf61915
PP
148802014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14881
14882 * regformats/regdat.sh: Always rewrite the register file.
14883
f71e1a8d
PA
148842014-01-13 Pedro Alves <palves@redhat.com>
14885
14886 * Makefile.in (CHECK_HEADERS): New variable.
14887 (check-headers:): New rule.
14888
42c85435
TT
148892014-01-13 Tom Tromey <tromey@redhat.com>
14890
14891 * cli/cli-setshow.c (do_set_command): Update.
14892 * defs.h (deprecated_set_hook): Remove.
14893 * top.c (deprecated_set_hook): Remove.
14894
f8de5129
PA
148952014-01-13 Pedro Alves <palves@redhat.com>
14896
14897 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14898 the tracepoint if the PC is a pseudo-register.
14899
fc270c35
TT
149002014-01-13 Tom Tromey <tromey@redhat.com>
14901
14902 * defs.h (XCALLOC): Remove.
14903 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14904 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14905 * dwarf2loc.c (allocate_piece_closure): Likewise.
14906 * elfread.c (elf_symfile_segments): Likewise.
14907 (elf_symfile_segments): Likewise.
14908 * gdbtypes.c (copy_type_recursive): Likewise.
14909 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14910 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14911 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14912 XCALLOC.
14913 * mt-tdep.c (mt_gdbarch_init): Likewise.
14914 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14915 XCALLOC.
14916 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14917 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14918 * registry.c (registry_alloc_data): Likewise.
14919 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14920 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14921 * serial.c (serial_fdopen_ops): Likewise.
14922 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14923 XCALLOC.
14924 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14925 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14926 not XCALLOC.
14927
70ba0933
TT
149282014-01-13 Tom Tromey <tromey@redhat.com>
14929
14930 * defs.h (XMALLOC): Remove.
14931 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14932 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14933 * cli-out.c (struct ui_out *): Likewise.
14934 * cli/cli-dump.c (add_dump_command): Likewise.
14935 (add_dump_command): Likewise.
14936 * complaints.c (get_complaints): Likewise.
14937 (find_complaint): Likewise.
14938 * dwarf2-frame.c (execute_cfa_program): Likewise.
14939 * dwarf2read.c (abbrev_table_read_table): Likewise.
14940 * gdbarch.sh: Likewise.
14941 * gdbarch.c: Rebuild.
14942 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14943 * interps.c (interp_new): Likewise.
14944 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14945 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14946 * mi/mi-console.c (mi_console_file_new): Likewise.
14947 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14948 * mi/mi-out.c (mi_out_new): Likewise.
14949 * mi/mi-parse.c (mi_parse): Likewise.
14950 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14951 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14952 * observer.c (xalloc_observer_list_node): Likewise.
14953 * regcache.c (regcache_xmalloc_1): Likewise.
14954 * reggroups.c (reggroup_new): Likewise.
14955 (_initialize_reggroup): Likewise.
14956 * registry.c (register_data_with_cleanup): Likewise.
14957 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14958 * ser-base.c (serial_ttystate): Likewise.
14959 * ser-mingw.c (make_pipe_state): Likewise.
14960 * ser-pipe.c (pipe_open): Likewise.
14961 * serial.c (serial_open): Likewise.
14962 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14963 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14964 (tui_alloc_win_info): Likewise.
14965 (tui_add_content_elements): Likewise.
14966 * tui/tui-file.c (tui_file_new): Likewise.
14967 * tui/tui-out.c (tui_out_new): Likewise.
14968 * ui-file.c (mem_file_new): Likewise.
14969 * ui-out.c (push_level): Likewise.
14970 (make_cleanup_ui_out_end): Likewise.
14971 (append_header_to_list): Likewise.
14972 (ui_out_new): Likewise.
14973 * user-regs.c (user_reg_add_builtin): Likewise.
14974
41bf6aca
TT
149752014-01-13 Tom Tromey <tromey@redhat.com>
14976
14977 * defs.h (XZALLOC): Remove.
14978 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14979 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14980 (get_ada_tasks_inferior_data): Likewise.
14981 * auto-load.c (get_auto_load_pspace_data): Likewise.
14982 * auxv.c (get_auxv_inferior_data): Likewise.
14983 * bfd-target.c (target_bfd_reopen): Likewise.
14984 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14985 (deprecated_insert_raw_breakpoint): Likewise.
14986 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14987 * corelow.c (core_open): Likewise.
14988 * darwin-nat.c (darwin_check_new_threads): Likewise.
14989 (darwin_attach_pid): Likewise.
14990 * dummy-frame.c (dummy_frame_push): Likewise.
14991 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14992 * dwarf2loc.c (allocate_piece_closure): Likewise.
14993 * elfread.c (elf_symfile_segments): Likewise.
14994 * eval.c (ptrmath_type_p): Likewise.
14995 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14996 * gdbtypes.c (alloc_type_arch): Likewise.
14997 (alloc_type_instance): Likewise.
14998 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14999 * inf-child.c (inf_child_can_use_agent): Likewise.
15000 * inflow.c (get_inflow_inferior_data): Likewise.
15001 * infrun.c (save_infcall_suspend_state): Likewise.
15002 * jit.c (jit_reader_load): Likewise.
15003 (get_jit_objfile_data): Likewise.
15004 (get_jit_program_space_data): Likewise.
15005 (jit_object_open_impl): Likewise.
15006 (jit_symtab_open_impl): Likewise.
15007 (jit_block_open_impl): Likewise.
15008 (jit_frame_sniffer): Likewise.
15009 * linux-fork.c (add_fork): Likewise.
15010 * maint.c (make_command_stats_cleanup): Likewise.
15011 * objfiles.c (get_objfile_pspace_data): Likewise.
15012 * opencl-lang.c (struct lval_closure): Likewise.
15013 * osdata.c (osdata_start_osdata): Likewise.
15014 * progspace.c (new_address_space): Likewise.
15015 (add_program_space): Likewise.
15016 * remote-sim.c (get_sim_inferior_data): Likewise.
15017 * sh-tdep.c (sh_gdbarch_init): Likewise.
15018 * skip.c (Ignore): Likewise.
15019 (skip_delete_command): Likewise.
15020 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15021 (library_list_start_library): Likewise.
15022 (solib_aix_current_sos): Likewise.
15023 * solib-darwin.c (get_darwin_info): Likewise.
15024 (darwin_current_sos): Likewise.
15025 * solib-dsbt.c (get_dsbt_info): Likewise.
15026 * solib-ia64-hpux.c (new_so_list): Likewise.
15027 (ia64_hpux_get_solib_linkage_addr): Likewise.
15028 * solib-spu.c (append_ocl_sos): Likewise.
15029 (spu_current_sos): Likewise.
15030 * solib-svr4.c (get_svr4_info): Likewise.
15031 (svr4_keep_data_in_core): Likewise.
15032 (library_list_start_library): Likewise.
15033 (svr4_default_sos): Likewise.
15034 (svr4_read_so_list): Likewise.
15035 * solib-target.c (library_list_start_library): Likewise.
15036 (solib_target_current_sos): Likewise.
15037 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15038 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15039 * symfile.c (default_symfile_segments): Likewise.
15040 * target-descriptions.c (tdesc_data_init): Likewise.
15041 (tdesc_create_reg): Likewise.
15042 (struct tdesc_type *): Likewise.
15043 (tdesc_create_vector): Likewise.
15044 (tdesc_set_struct_size): Likewise.
15045 (struct tdesc_type *): Likewise.
15046 (tdesc_free_feature): Likewise.
15047 (tdesc_create_feature): Likewise.
15048 * windows-nat.c (windows_add_thread): Likewise.
15049 (windows_make_so): Likewise.
15050 * xml-support.c (gdb_xml_body_text): Likewise.
15051 (gdb_xml_create_parser_and_cleanup): Likewise.
15052 (xml_process_xincludes): Likewise.
15053 * xml-syscall.c (allocate_syscalls_info): Likewise.
15054 (syscall_create_syscall_desc): Likewise.
15055
5acfdbae
SDJ
150562014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15057
15058 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15059 function, with code from i386_stap_parse_special_token.
15060 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15061 (i386_stap_parse_special_token): Move code to the two functions
15062 above; simplify it.
15063
0000e5cc
PA
150642014-01-09 Pedro Alves <palves@redhat.com>
15065 Hui Zhu <hui@codesourcery.com>
15066
15067 PR gdb/16101
15068 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15069 bp_err_string. Don't mark the location shlib_disabled if the
15070 error thrown wasn't a generic or memory error. Catch errors
15071 thrown while inserting breakpoints in overlayed code. Output
15072 error message of software breakpoints.
15073 * remote.c (remote_insert_breakpoint): If this breakpoint has
15074 target-side commands but this stub doesn't support Z0 packets,
15075 throw NOT_SUPPORTED_ERROR error.
15076 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15077 * target.h (target_insert_breakpoint): Extend comment.
15078 (target_insert_hw_breakpoint): Add comment.
15079
b7ea362b
PA
150802014-01-08 Pedro Alves <palves@redhat.com>
15081
15082 * remote.c (remote_add_thread): Add threads silently if starting
15083 up.
15084 (remote_notice_new_inferior): If in all-stop, and starting up,
15085 don't call notice_new_inferior.
15086 (get_current_thread): New function, factored out from ...
15087 (add_current_inferior_and_thread): ... this. Adjust.
15088 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15089 found any thread, then select the remote's current thread as GDB's
15090 current thread too.
15091
b7bba001
JB
150922014-01-08 Joel Brobecker <brobecker@adacore.com>
15093
15094 * NEWS: Create a new section for the next release branch.
15095 Rename the section of the current branch, now that it has
15096 been cut.
15097
16dfbded
JB
150982014-01-08 Joel Brobecker <brobecker@adacore.com>
15099
15100 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15101 * version.in: Bump version to 7.7.50.DATE-cvs.
15102
22c90ac1
YQ
151032014-01-08 Yao Qi <yao@codesourcery.com>
15104
15105 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15106 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15107 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15108
d64ad97c
YQ
151092014-01-08 Yao Qi <yao@codesourcery.com>
15110
15111 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15112 return value of bfd_get_filename to symbol_file_add_from_bfd.
15113
f93ba80c
PM
151142014-01-08 Pierre Muller <muller@sourceware.org>
15115
15116 Fix PR16201.
15117 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15118 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15119 to prim_record_mininal_symbol_and_info.
15120 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15121 in call to prim_record_minimal_symbol_and_info.
15122 (read_pe_exported_syms): Set index field of section_data.
15123
a4d9ba85
AP
151242014-01-07 Andrew Pinski <apinski@cavium.com>
15125
15126 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15127 * features/aarch64.c: Regenerate.
15128
1b67eb02
AS
151292014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15130
15131 * target.c (return_null): Define.
15132 (update_current_target): Use it instead of return_zero for
15133 functions that return a pointer.
15134
5e3f4fab
EBM
151352014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15136
15137 * source.c (add_path): Fix check for duplicated paths in the previously
15138 included paths.
15139
e2616788
HK
151402014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15141
15142 * ada-lang.c: Remove duplicated include statements.
15143 * alphabsd-nat.c: Ditto.
15144 * amd64-darwin-tdep.c: Ditto.
15145 * amd64fbsd-nat.c: Ditto.
15146 * auto-load.c: Ditto.
15147 * ax-gdb.c: Ditto.
15148 * breakpoint.c: Ditto.
15149 * dbxread.c: Ditto.
15150 * fork-child.c: Ditto.
15151 * gdb_usleep.c: Ditto.
15152 * i386-darwin-tdep.c: Ditto.
15153 * i386fbsd-nat.c: Ditto.
15154 * infcmd.c: Ditto.
15155 * inferior.c: Ditto.
15156 * jv-lang.c: Ditto.
15157 * linux-nat.c: Ditto.
15158 * linux-tdep.c: Ditto.
15159 * m68kbsd-nat.c: Ditto.
15160 * m68klinux-nat.c: Ditto.
15161 * microblaze-tdep.c: Ditto.
15162 * mips-linux-tdep.c: Ditto.
15163 * mn10300-tdep.c: Ditto.
15164 * nto-tdep.c: Ditto.
15165 * opencl-lang.c: Ditto.
15166 * osdata.c: Ditto.
15167 * printcmd.c: Ditto.
15168 * regcache.c: Ditto.
15169 * remote-m32r-sdi.c: Ditto.
15170 * remote.c: Ditto.
15171 * symfile.c: Ditto.
15172 * symtab.c: Ditto.
15173 * tilegx-linux-nat.c: Ditto.
15174 * tilegx-tdep.c: Ditto.
15175 * tracepoint.c: Ditto.
15176 * valops.c: Ditto.
15177 * vaxbsd-nat.c: Ditto.
15178 * windows-nat.c: Ditto.
15179 * xtensa-tdep.c: Ditto.
15180
bd1f7788
YQ
151812014-01-07 Yao Qi <yao@codesourcery.com>
15182
15183 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15184
79301218
JB
151852014-01-07 Yao Qi <yao@codesourcery.com>
15186 Joel Brobecker <brobecker@adacore.com>
15187
15188 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15189 (pdc_write_regs): Likewise.
15190 (fetch_regs_kernel_thread): Likewise.
15191 (store_regs_kernel_thread): Likewise.
15192
151932014-01-07 Joel Brobecker <brobecker@adacore.com>
15194
15195 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15196 tagged type objects to their actual type.
15197
8e355c5d
JB
151982014-01-07 Joel Brobecker <brobecker@adacore.com>
15199
15200 * ada-valprint.c (print_field_values): Add "language" parameter.
15201 Update calls to print_field_values and print_variant_part.
15202 Pass new parameter "language" in call to val_print instead
15203 of "current_language". Replace call to ada_val_print by call
15204 to val_print.
15205 (print_variant_part): Add "language" parameter.
15206 (ada_val_print_struct_union): Update call to print_field_values.
15207
4fbf5aa5
JB
152082014-01-07 Joel Brobecker <brobecker@adacore.com>
15209
15210 * ada-valprint.c (ui_memcpy): Delete.
15211 (ada_print_floating): Update documentation. Add empty line
15212 between between function documentation and implementation.
15213 Delete variable "buffer". Use ui_file_xstrdup in place of
15214 ui_file_put. Minor adjustments following this change.
15215
71855601
JB
152162014-01-07 Joel Brobecker <brobecker@adacore.com>
15217
15218 * ada-valprint.c (ada_val_print_string): New function,
15219 extracted from ada_val_print_array.
15220 (ada_val_print_array): Replace extracted code by call
15221 to ada_val_print_string followed by a return. Move
15222 "else" branch to the function's top block.
15223
4eb27a30
JB
152242014-01-07 Joel Brobecker <brobecker@adacore.com>
15225
15226 * ada-valprint.c (ada_val_print_array): Move implementation
15227 down. Rename parameter "offset" and "val" into "offset_aligned"
15228 and "original_value" respectively. Add parameter "offset".
15229
34b27950
JB
152302014-01-07 Joel Brobecker <brobecker@adacore.com>
15231
15232 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15233 re-organizing the code. Change the "???" message printed
15234 when target type is a TYPE_CODE_UNDEF into
15235 "<ref to undefined type>".
15236
079e4591
JB
152372014-01-07 Joel Brobecker <brobecker@adacore.com>
15238
15239 * ada-valprint.c (print_record): Delete, implementation inlined...
15240 (ada_val_print_struct_union): ... here. Remove call to
15241 ada_check_typedef in inlined implementation.
15242
8004dfd1
JB
152432014-01-07 Joel Brobecker <brobecker@adacore.com>
15244
15245 * ada-valprint.c (ada_val_print_gnat_array): New function,
15246 extracted from ada_val_print_1;
15247 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15248 (ada_val_print_flt, ada_val_print_struct_union)
15249 (ada_val_print_ref): Likewise.
15250 (ada_val_print_1): Delete variables i and elttype.
15251 Replace extracted-out code by call to corresponding
15252 new functions.
15253
760a2db0
JB
152542014-01-07 Joel Brobecker <brobecker@adacore.com>
15255
15256 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15257
3a92c861
JB
152582014-01-07 Joel Brobecker <brobecker@adacore.com>
15259
15260 * ada-valprint.c (ada_val_print_1): Replace calls to
15261 ada_val_print_1 by calls to val_print.
15262
cd1630f9
JB
152632014-01-07 Joel Brobecker <brobecker@adacore.com>
15264
15265 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15266 Update calls to self accordingly. Replace calls to c_val_print
15267 by calls to val_print.
15268
bdf779a0
JB
152692014-01-07 Joel Brobecker <brobecker@adacore.com>
15270
15271 * ada-valprint.c (print_record): Delete declaration.
15272 (adjust_type_signedness, ada_val_print_1): Likewise.
15273 (ada_val_print): Move function implementation down.
15274 (print_variant_part, print_field_values, print_record):
15275 Move function implementation up.
15276
c0d48811
JB
152772014-01-07 Joel Brobecker <brobecker@adacore.com>
15278
15279 * python/py-type.c (typy_get_name): New function.
15280 (type_object_getset): Add entry for attribute "name".
15281 * NEWS: Add entry mentioning this new attribute.
15282
c26e9cbb
YQ
152832014-01-07 Yao Qi <yao@codesourcery.com>
15284
15285 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15286 statement.
15287
0cc6f43d
YQ
152882014-01-07 Yao Qi <yao@codesourcery.com>
15289
15290 * gnu-nat.c (info_port_rights): Add qualifier const to
15291 argument args.
15292
eec03155
YQ
152932014-01-07 Yao Qi <yao@codesourcery.com>
15294
15295 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15296
f04a82ef
YQ
152972014-01-07 Yao Qi <yao@codesourcery.com>
15298
15299 * gnu-nat.c (make_inf) Update declaration.
15300 (make_inf): Make it static.
15301 (inf_set_traced): Likewise.
15302 (inf_port_to_thread, inf_task_died_status): Likewise.
15303
d57dda0a
YQ
153042014-01-07 Yao Qi <yao@codesourcery.com>
15305
15306 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15307
3aa8c969
YQ
153082014-01-07 Yao Qi <yao@codesourcery.com>
15309
15310 * gnu-nat.c (_initialize_gnu_nat): Declare.
15311
94123b4f
YQ
153122014-01-07 Yao Qi <yao@codesourcery.com>
15313
15314 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15315 'enum bfd_endian'.
15316 (struct gdbarch_info) <byte_order>: Change type to
15317 'enum bfd_endian'.
15318 <byte_order_for_code>: Likewise.
15319 * gdbarch.c, gdbarch.h: Regenerated.
15320
dc81d70a
TT
153212014-01-06 Sasha Smundak <asmundak@google.com>
15322
15323 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15324
cc2f3c35
TT
153252014-01-06 Tom Tromey <tromey@redhat.com>
15326
15327 * doublest.c (convert_doublest_to_floatformat): Use const, not
15328 CONST.
15329 * somread.c (som_symtab_read): Likewise.
15330
adcf2eed
HZ
153312014-01-07 Hui Zhu <hui@codesourcery.com>
15332
15333 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15334 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15335 (gdb_bfd_fopen): Ditto.
15336 (gdb_bfd_openr): Ditto.
15337 (gdb_bfd_openw): Ditto.
15338 (gdb_bfd_openr_iovec): Ditto.
15339 (gdb_bfd_fdopenr): Ditto.
15340 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15341 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15342 with xstrdup.
15343 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15344 with xstrdup.
15345 * symfile-mem.c (symbol_file_add_from_memory): Removed
15346 gdb_bfd_stash_filename.
15347
50722198
DE
153482014-01-03 Doug Evans <dje@google.com>
15349
15350 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15351 output.
15352
2fa4b862
JB
153532014-01-01 Joel Brobecker <brobecker@adacore.com>
15354
15355 Update year range in copyright notice of all files.
15356
28498c42
JB
153572014-01-01 Joel Brobecker <brobecker@adacore.com>
15358
15359 * top.c (print_gdb_version): Set copyright year to 2014.
15360
7b6e1046
JB
153612014-01-01 Joel Brobecker <brobecker@adacore.com>
15362
15363 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15364
df96af55 15365For older changes see ChangeLog-2013.
c906108c
SS
15366\f
15367Local Variables:
15368mode: change-log
15369left-margin: 8
15370fill-column: 74
15371version-control: never
57da7796 15372coding: utf-8
c906108c 15373End:
This page took 2.280936 seconds and 4 git commands to generate.