Import alloca explicitly
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
00d7f58f
YQ
12014-11-21 Yao Qi <yao@codesourcery.com>
2
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
4 alloca.
5 * gnulib/import/Makefile.am: Re-generated.
6 * gnulib/import/Makefile.in: Likewise..
7 * gnulib/import/m4/gnulib-cache.m4: Likewise.
8
6068ad5d
YQ
92014-11-21 Yao Qi <yao@codesourcery.com>
10
11 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
12 alphabetical order.
13
45e44d27
JB
142014-11-21 Joel Brobecker <brobecker@adacore.com>
15
16 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
17 flag_unsigned if HIGH_BOUND is constant and negative.
18
7e7cbeb3
SDJ
192014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
20
21 PR breakpoints/10737
22 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
23 modifier from "struct gdbarch" when compiling without Expat (XML)
24 support.
25 (get_syscall_by_number): Likewise.
26 (get_syscall_by_name): Likewise.
27 (get_syscall_names): Likewise.
28
458c8db8
SDJ
292014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
30
31 PR breakpoints/10737
32 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
33 set_xml_syscall_file_name to provide gdbarch.
34 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
35 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
36 * breakpoint.c (print_it_catch_syscall): Adjust call to
37 get_syscall_by_number to provide gdbarch.
38 (print_one_catch_syscall): Likewise.
39 (print_mention_catch_syscall): Likewise.
40 (print_recreate_catch_syscall): Likewise.
41 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
42 and get_syscall_by_name to provide gdbarch.
43 (catch_syscall_completer): Adjust call to get_syscall_names to
44 provide gdbarch.
45 * gdbarch.c: Regenerate.
46 * gdbarch.h: Likewise.
47 * gdbarch.sh: Forward declare "struct syscalls_info".
48 (xml_syscall_file): New variable.
49 (syscalls_info): Likewise.
50 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
51 set_xml_syscall_file_name to provide gdbarch.
52 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
53 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
54 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
55 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
56 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
57 * xml-syscall.c: Include gdbarch.h.
58 (set_xml_syscall_file_name): Accept gdbarch parameter.
59 (get_syscall_by_number): Likewise.
60 (get_syscall_by_name): Likewise.
61 (get_syscall_names): Likewise.
62 (my_gdb_datadir): Delete global variable.
63 (struct syscalls_info) <my_gdb_datadir>: New variable.
64 (struct syscalls_info) <sysinfo>: Rename variable to
65 "syscalls_info".
66 (sysinfo): Delete global variable.
67 (have_initialized_sysinfo): Likewise.
68 (xml_syscall_file): Likewise.
69 (sysinfo_free_syscalls_desc): Rename to...
70 (syscalls_info_free_syscalls_desc): ... this.
71 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
72 code to the new layout of "struct syscalls_info".
73 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
74 "syscalls_info".
75 (syscall_create_syscall_desc): Likewise.
76 (syscall_start_syscall): Likewise.
77 (syscall_parse_xml): Likewise.
78 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
79 (init_sysinfo): Rename to...
80 (init_syscalls_info): ...this. Add gdbarch as a parameter.
81 Adjust function to deal with gdbarch.
82 (xml_get_syscall_number): Delete parameter sysinfo. Accept
83 gdbarch as a parameter. Adjust code.
84 (xml_get_syscall_name): Likewise.
85 (xml_list_of_syscalls): Likewise.
86 (set_xml_syscall_file_name): Accept gdbarch as parameter.
87 (get_syscall_by_number): Likewise.
88 (get_syscall_by_name): Likewise.
89 (get_syscall_names): Likewise.
90 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
91 (get_syscall_by_number): Likewise.
92 (get_syscall_by_name): Likewise.
93 (get_syscall_names): Likewise.
94
43f3e411
DE
952014-11-20 Doug Evans <xdje42@gmail.com>
96
97 Split struct symtab into two: struct symtab and compunit_symtab.
98 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
99 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
100 to "struct compunit_symtab *". All callers updated.
101 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
102 "struct symtab *" argument to "struct compunit_symtab *".
103 All callers updated.
104 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
105 result to "struct compunit_symtab *". All callers updated.
106 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
107 Change result to "struct compunit_symtab *". All callers updated.
108 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
109 hange type to "struct compunit_symtab *". All uses updated.
110 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
111 Change type to "struct compunit_symtab *". All uses updated.
112 * buildsym.c (struct buildsym_compunit): New struct.
113 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
114 (buildsym_compunit): New static global.
115 (finish_block_internal): Update to fetch objfile from
116 buildsym_compunit.
117 (make_blockvector): Delete objfile argument.
118 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
119 debugformat, producer.
120 (start_buildsym_compunit): New function.
121 (free_buildsym_compunit): Renamed from free_subfiles_list.
122 All callers updated.
123 (patch_subfile_names): Rewrite to use buildsym_compunit.
124 (get_compunit_symtab): New function.
125 (get_macro_table): Delete argument comp_dir. All callers updated.
126 (start_symtab): Change result to "struct compunit_symtab *".
127 All callers updated. Create the subfile of the main source file.
128 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
129 (reset_symtab_globals): Update.
130 (end_symtab_get_static_block): Update to use buildsym_compunit.
131 (end_symtab_without_blockvector): Rewrite.
132 (end_symtab_with_blockvector): Change result to
133 "struct compunit_symtab *". All callers updated.
134 Update to use buildsym_compunit. Don't set symtab->dirname,
135 instead set it in the compunit.
136 Explicitly make sure main symtab is first in its list.
137 Set debugformat, producer, blockvector, block_line_section, and
138 macrotable in the compunit.
139 (end_symtab_from_static_block): Change result to
140 "struct compunit_symtab *". All callers updated.
141 (end_symtab, end_expandable_symtab): Ditto.
142 (set_missing_symtab): Change symtab argument to
143 "struct compunit_symtab *". All callers updated.
144 (augment_type_symtab): Ditto.
145 (record_debugformat): Update to use buildsym_compunit.
146 (record_producer): Update to use buildsym_compunit.
147 * buildsym.h (struct subfile) <dirname>: Delete.
148 <producer, debugformat>: Delete.
149 <buildsym_compunit>: New member.
150 (get_compunit_symtab): Declare.
151 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
152 from primary_symtab. Change type to "struct compunit_symtab *".
153 All uses updated.
154 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
155 All callers updated.
156 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
157 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
158 symtab. Change type to "struct compunit_symtab *". All uses updated.
159 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
160 All callers updated.
161 (dw2_find_last_source_symtab): Ditto.
162 (dw2_lookup_symbol): Ditto.
163 (recursively_find_pc_sect_compunit_symtab): Renamed from
164 recursively_find_pc_sect_symtab. Change result to
165 "struct compunit_symtab *". All callers updated.
166 (dw2_find_pc_sect_compunit_symtab): Renamed from
167 dw2_find_pc_sect_symtab. Change result to
168 "struct compunit_symtab *". All callers updated.
169 (get_compunit_symtab): Renamed from get_symtab. Change result to
170 "struct compunit_symtab *". All callers updated.
171 (recursively_compute_inclusions): Change type of immediate_parent
172 argument to "struct compunit_symtab *". All callers updated.
173 (compute_compunit_symtab_includes): Renamed from
174 compute_symtab_includes. All callers updated. Rewrite to compute
175 includes of compunit_symtabs and not symtabs.
176 (process_full_comp_unit): Update to work with struct compunit_symtab.
177 (process_full_type_unit): Ditto.
178 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
179 (dwarf_decode_lines): Remove special case handling of main subfile.
180 (macro_start_file): Delete argument comp_dir. All callers updated.
181 (dwarf_decode_macro_bytes): Ditto.
182 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
183 use struct compunit_symtab.
184 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
185 * jit.c (finalize_symtab): Build compunit_symtab.
186 * jv-lang.c (get_java_class_symtab): Change result to
187 "struct compunit_symtab *". All callers updated.
188 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
189 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
190 comp_dir. Change type to "struct compunit_symtab *".
191 All uses updated.
192 (new_macro_table): Change comp_dir argument to cust,
193 "struct compunit_symtab *". All callers updated.
194 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
195 nr_primary_symtabs. All uses updated.
196 (count_symtabs_and_blocks): Update to handle compunits.
197 (report_command_stats): Update output, "primary symtabs" renamed to
198 "compunits".
199 * mdebugread.c (new_symtab): Change result to
200 "struct compunit_symtab *". All callers updated.
201 (parse_procedure): Change type of search_symtab argument to
202 "struct compunit_symtab *". All callers updated.
203 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
204 separate loop.
205 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
206 symtabs. Change type to "struct compunit_symtab *". All uses updated.
207 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
208 All uses updated.
209 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
210 All uses updated.
211 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
212 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
213 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
214 symtab. Change type to "struct compunit_symtab *". All uses updated.
215 * psymtab.c (psymtab_to_symtab): Change result type to
216 "struct compunit_symtab *". All callers updated.
217 (find_pc_sect_compunit_symtab_from_partial): Renamed from
218 find_pc_sect_symtab_from_partial. Change result type to
219 "struct compunit_symtab *". All callers updated.
220 (lookup_symbol_aux_psymtabs): Change result type to
221 "struct compunit_symtab *". All callers updated.
222 (find_last_source_symtab_from_partial): Ditto.
223 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
224 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
225 and macro_table from compunit.
226 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
227 type to "struct compunit_symtab *". All callers updated.
228 (debug_qf_lookup_symbol): Ditto.
229 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
230 debug_qf_find_pc_sect_symtab, change result type to
231 "struct compunit_symtab *". All callers updated.
232 * symfile.c (allocate_symtab): Delete objfile argument.
233 New argument cust.
234 (allocate_compunit_symtab): New function.
235 (add_compunit_symtab_to_objfile): New function.
236 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
237 Change result type to "struct compunit_symtab *". All uses updated.
238 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
239 Change result type to "struct compunit_symtab *". All uses updated.
240 * symmisc.c (print_objfile_statistics): Compute blockvector count in
241 separate loop.
242 (dump_symtab_1): Update test for primary source symtab.
243 (maintenance_info_symtabs): Update to handle compunit symtabs.
244 (maintenance_check_symtabs): Ditto.
245 * symtab.c (set_primary_symtab): Delete.
246 (compunit_primary_filetab): New function.
247 (compunit_language): New function.
248 (iterate_over_some_symtabs): Change type of arguments "first",
249 "after_last" to "struct compunit_symtab *". All callers updated.
250 Update to loop over symtabs in each compunit.
251 (error_in_psymtab_expansion): Rename symtab argument to cust,
252 and change type to "struct compunit_symtab *". All callers updated.
253 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
254 Change result type to "struct compunit_symtab *". All callers updated.
255 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
256 Change result type to "struct compunit_symtab *". All callers updated.
257 (find_pc_sect_line): Only loop over symtabs within selected compunit
258 instead of all symtabs in the objfile.
259 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
260 <compunit_symtab> New member.
261 <block_line_section>: Moved to compunit_symtab.
262 <locations_valid>: Ditto.
263 <epilogue_unwind_valid>: Ditto.
264 <macro_table>: Ditto.
265 <dirname>: Ditto.
266 <debugformat>: Ditto.
267 <producer>: Ditto.
268 <objfile>: Ditto.
269 <call_site_htab>: Ditto.
270 <includes>: Ditto.
271 <user>: Ditto.
272 <primary>: Delete
273 (SYMTAB_COMPUNIT): New macro.
274 (SYMTAB_BLOCKVECTOR): Update definition.
275 (SYMTAB_OBJFILE): Update definition.
276 (SYMTAB_DIRNAME): Update definition.
277 (struct compunit_symtab): New type. Common members among all source
278 symtabs within a compilation unit moved here. All uses updated.
279 (COMPUNIT_OBJFILE): New macro.
280 (COMPUNIT_FILETABS): New macro.
281 (COMPUNIT_DEBUGFORMAT): New macro.
282 (COMPUNIT_PRODUCER): New macro.
283 (COMPUNIT_DIRNAME): New macro.
284 (COMPUNIT_BLOCKVECTOR): New macro.
285 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
286 (COMPUNIT_LOCATIONS_VALID): New macro.
287 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
288 (COMPUNIT_CALL_SITE_HTAB): New macro.
289 (COMPUNIT_MACRO_TABLE): New macro.
290 (ALL_COMPUNIT_FILETABS): New macro.
291 (compunit_symtab_ptr): New typedef.
292 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
293
005e2509
JB
2942014-11-20 Joel Brobecker <brobecker@adacore.com>
295
296 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
297 if the TYPE_CODE of range_type's base type does not match
298 the TYPE_CODE of encoding_type's base type.
299
2b0f535a
JB
3002014-11-19 Joel Brobecker <brobecker@adacore.com>
301
302 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
303 it starts with '<'.
304
8908fca5
JB
3052014-11-19 Joel Brobecker <brobecker@adacore.com>
306
307 * ada-lang.c (ada_is_redundant_range_encoding): New function.
308 (ada_is_redundant_index_type_desc): New function.
309 (to_fixed_array_type): Ignore parallel XA type if redundant.
310
4a46959e
JB
3112014-11-19 Joel Brobecker <brobecker@adacore.com>
312
313 * ada-lang.c (constrained_packed_array_type): Set the length
314 of the return array as if both bounds where zero if that
315 returned array's index type is dynamic.
316
2acf986b
YQ
3172014-11-19 Yao Qi <yao@codesourcery.com>
318
319 * config/i386/go32.mh (CC): Remove.
320
439247b6
DE
3212014-11-18 Doug Evans <xdje42@gmail.com>
322
323 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
324 updated.
325
4d663531
DE
3262014-11-18 Doug Evans <xdje42@gmail.com>
327
328 * buildsym.c (buildsym_objfile): New static global.
329 (buildsym_comp_dir): New static global.
330 (finish_block_internal): Delete arg objfile. All callers updated.
331 (finish_block): Delete arg objfile. All callers updated.
332 (start_subfile): Delete arg dirname. All callers updated.
333 (patch_subfile_names): Update buildsym_comp_dir.
334 (get_macro_table): Delete arg objfile. All callers updated.
335 (start_symtab): New arg objfile. All callers updated.
336 Rename arg dirname to comp_dir.
337 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
338 (end_symtab_get_static_block): Delete arg objfile. All callers
339 updated.
340 (end_symtab_without_blockvector): Ditto.
341 (end_symtab_with_blockvector): Ditto.
342 (end_symtab_from_static_block): Ditto.
343 (end_symtab): Ditto.
344 (end_expandable_symtab): Ditto.
345 (augment_type_symtab): Ditto.
346 * coffread.c (coff_start_symtab): New arg objfile. All callers
347 updated.
348
8435453b
DE
3492014-11-18 Doug Evans <xdje42@gmail.com>
350
351 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
352 updated.
353
ee6f8984
DE
3542014-11-18 Doug Evans <xdje42@gmail.com>
355
356 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
357 symtab.dirname updated to use it.
358
eb822aa6
DE
3592014-11-18 Doug Evans <xdje42@gmail.com>
360
361 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
362 symtab.objfile updated to use it.
363
98387a29
DE
3642014-11-18 Doug Evans <xdje42@gmail.com>
365
366 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
367
aff08958
DE
3682014-11-18 Doug Evans <xdje42@gmail.com>
369
370 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
371 SYMBOL_OBJFILE.
372 * findvar.c (default_read_var_value): Ditto.
373 * jv-lang.c (add_class_symtab_symbol): Ditto.
374 * parse.c (operator_check_standard): Ditto.
375 * printcmd.c (address_info): Ditto.
376 * symtab.c (fixup_symbol_section): Ditto.
377 (skip_prologue_sal): Ditto.
378 * tracepoint.c (scope_info): Ditto.
379 * valops.c (find_function_in_inferior): Ditto.
380 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
381 * python/py-symbol.c (set_symbol): Ditto.
382
7bab9b58
DE
3832014-11-18 Doug Evans <xdje42@gmail.com>
384
385 * buildsym.c (main_subfile): New static global.
386 (free_subfiles_list): New function.
387 (start_symtab): Set main_subfile.
388 (restart_symtab): Replace init of subfiles, current_subfile with
389 call to free_subfiles_list.
390 (watch_main_source_file_lossage): Use main_subfile.
391 (reset_symtab_globals): Replace init of current_subfile with call
392 to free_subfiles_list.
393 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
394 functions, split out from ...
395 (end_symtab_from_static_block): ... here. Rewrite to call them.
396
f194fefb
DE
3972014-11-18 Doug Evans <xdje42@gmail.com>
398
399 The result of symtab expansion is always a primary symtab.
400 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
401 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
402 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
403 (psymtab_to_symtab): Add comment and assert.
404 (map_matching_symbols_psymtab): Remove unnecessary test for
405 non-primary symtab.
406
34248c3a
DE
4072014-11-15 Doug Evans <xdje42@gmail.com>
408
409 PR symtab/17559
410 * symtab.c (find_pc_line_symtab): New function.
411 * symtab.h (find_pc_line_symtab): Declare.
412 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
413 find_pc_symtab.
414 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
415 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
416 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
417 * tui/tui-win.c (make_visible_with_new_height): Ditto.
418 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
419 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
420
2097ae25
DE
4212014-11-15 Doug Evans <xdje42@gmail.com>
422
423 * symtab.c (expand_symtab_containing_pc): Renamed from
424 find_pc_sect_symtab_via_partial. All callers updated.
425
1ada499f
YQ
4262014-11-15 Yao Qi <yao@codesourcery.com>
427
428 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
429
355e2102
JB
4302014-11-14 Joel Brobecker <brobecker@adacore.com>
431
432 * common/common-defs.h: Move <stdarg.h> #include ahead of
433 <stdio.h> #include.
434
83030110
PA
4352014-11-14 Pedro Alves <palves@redhat.com>
436
437 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
438 [!PHONY_ICONV] (gdb_iconv): New function.
439 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
440
a8719064
DE
4412014-11-13 Doug Evans <dje@google.com>
442
443 PR symtab/17591
444 * dwarf2read.c (find_slot_in_mapped_hash): Handle
445 "(anonymous namespace)".
446
60f7655a
DE
4472014-11-13 Doug Evans <dje@google.com>
448
449 * dwarf2read.c (update_enumeration_type_from_children): Avoid
450 infinite loop.
451
5784b3ca
JK
4522014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
453
454 * NEWS (maint set target-async): Fix typo.
455
6218dc4b
PA
4562014-11-12 Pedro Alves <palves@redhat.com>
457
458 * infrun.c (enum infwait_states, infwait_state): Delete.
459
af48d08f
PA
4602014-11-12 Pedro Alves <palves@redhat.com>
461
462 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
463 Rewrite stepping over a permanent breakpoint.
464 (thread_still_needs_step_over, proceed): Don't set
465 stepping_over_breakpoint for permanent breakpoints.
466 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
467 single-step breakpoints out of the target on hardware step
468 targets.
469 (process_event_stop_test): If stepping a permanent breakpoint
470 doesn't hit the step-resume breakpoint, delete the step-resume
471 breakpoint.
472 (switch_back_to_stepped_thread): Also check if the stepped thread
473 has advanced already on hardware step targets.
474 (currently_stepping): Return true if the thread stepped a
475 breakpoint.
476
1a853c52
PA
4772014-11-12 Pedro Alves <palves@redhat.com>
478
479 Mark locations as permanent, not the whole breakpoint.
480 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
481 (mark_breakpoints_out): Don't mark permanent breakpoints as
482 uninserted.
483 (breakpoint_init_inferior): Use mark_breakpoints_out.
484 (breakpoint_here_p): Adjust.
485 (bpstat_stop_status, describe_other_breakpoints): Remove handling
486 of permanent breakpoints.
487 (make_breakpoint_permanent): Mark each location as permanent,
488 instead of marking the breakpoint.
489 (add_location_to_breakpoint): If the location is permanent, mark
490 it as such, and as inserted.
491 (init_breakpoint_sal): Don't make the breakpoint permanent here.
492 (bp_location_compare, update_global_location_list): Adjust.
493 (update_breakpoint_locations): Don't make the breakpoint permanent
494 here.
495 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
496 breakpoints.
497 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
498 (struct bp_location) <permanent>: New field.
499 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
500 reference to bp_permanent.
501
ae9bb220
PA
5022014-11-12 Pedro Alves <palves@redhat.com>
503
504 * arch-utils.c (default_skip_permanent_breakpoint): New function.
505 * arch-utils.h (default_skip_permanent_breakpoint): New
506 declaration.
507 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
508 Install default_skip_permanent_breakpoint as default method.
509 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
510 (i386_gdbarch_init): Don't install it.
511 * infrun.c (resume): Assume there's always a
512 gdbarch_skip_permanent_breakpoint implementation.
513 * gdbarch.h, gdbarch.c: Regenerate.
514
015de688
DC
5152014-11-11 Daniel Colascione <dancol@dancol.org>
516
517 Warn about cross-PID-namespace debugging.
518 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
519 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
520 * linux-thread-db.c (check_pid_namespace_match): New function.
521 (thread_db_inferior_created): Call it.
522
26a84859
DE
5232014-11-10 Doug Evans <xdje42@gmail.com>
524
525 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
526 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
527
712a2e6d
DE
5282014-11-10 Doug Evans <xdje42@gmail.com>
529
530 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
531
af3768e9
DE
5322014-11-10 Doug Evans <xdje42@gmail.com>
533
534 PR symtab/17564
535 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
536 (lookup_static_symbol): Move definition to new location and rewrite.
537 (lookup_symbol_in_objfile): New function.
538 (lookup_symbol_global_iterator_cb): Call it.
539
b1f28d99
UW
5402014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
541
542 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
543
b7a084be
PA
5442014-11-07 Pedro Alves <palves@redhat.com>
545
546 * infrun.c (process_event_stop_test) <subroutine check>: Don't
547 check if we did a "nexti" inside a prologue.
548 * symtab.c (in_prologue): Delete function.
549 * symtab.h (in_prologue): Delete declaration.
550
67be31e5
DE
5512014-11-06 Doug Evans <xdje42@gmail.com>
552
553 * symtab.h (lookup_global_symbol): Improve function comment.
554
08724ab7
DE
5552014-11-06 Doug Evans <xdje42@gmail.com>
556
557 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
558 All callers updated.
559 * symtab.h (lookup_global_symbol): Update decl.
560 (lookup_static_symbol): Move decl to better location.
561
d9060ba6
DE
5622014-11-06 Doug Evans <xdje42@gmail.com>
563
564 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
565
74016e12
DE
5662014-11-06 Doug Evans <xdje42@gmail.com>
567
568 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
569 All callers updated.
570 (lookup_symbol_in_all_objfiles): Renamed from
571 lookup_symbol_aux_symtabs. All callers updated.
572 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
573 All callers updated.
574 (lookup_symbol_in_objfile_symtabs): Renamed from
575 lookup_symbol_aux_objfile. All callers updated.
576
d1a2d36d
DE
5772014-11-06 Doug Evans <xdje42@gmail.com>
578
579 * symtab.c (lookup_symbol_in_block): Renamed from
580 lookup_symbol_aux_block. All callers updated.
581
24d864bb
DE
5822014-11-06 Doug Evans <xdje42@gmail.com>
583
584 * symtab.c (lookup_static_symbol): Renamed from
585 lookup_static_symbol_aux. All callers updated.
586 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
587 All callers updated.
588
358d6ab3
DE
5892014-11-06 Doug Evans <xdje42@gmail.com>
590
591 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
592 * block.c (block_lookup_symbol): Use it.
593 * cp-support.c (make_symbol_overload_list_block): Use it.
594 * symtab.c (iterate_over_symbols): Use it.
595
16b2eaa1
DE
5962014-11-06 Doug Evans <xdje42@gmail.com>
597
598 * symtab.c (lookup_block_symbol): Moved to ...
599 * block.c (block_lookup_symbol): ... here and renamed.
600 All callers updated.
601 * block.h (block_lookup_symbol): Declare.
602 * symtab.h (lookup_block_symbol): Delete.
603
2dd2cd1c
DE
6042014-11-06 Doug Evans <xdje42@gmail.com>
605
606 * ada-lang.c (ada_make_symbol_completion_list): Use
607 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
608 * symtab.c (lookup_objfile_from_block): Ditto.
609
d4c58915
DE
6102014-11-06 Doug Evans <xdje42@gmail.com>
611
612 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
613 TYPE_CODE_STRUCT.
614
9c1877ea
DE
6152014-11-06 Doug Evans <xdje42@gmail.com>
616
617 * objfiles.c (get_objfile_arch): Constify.
618 * objfiles.h (get_objfile_arch): Update prototype.
619 * solib.c (solib_global_lookup): Fetch arch from objfile,
620 not target_gdbarch.
621
426a4079
SL
6222014-11-06 Sandra Loosemore <sandra@codesourcery.com>
623
624 * nios2-tdep.c (wild_insn): Delete.
625 (profiler_insn, irqentry_insn): Delete.
626 (nios2_match_sequence): Delete.
627 (nios2_analyze_prologue): Update comments. Remove matching
628 of obsolete profiler_insn and irqentry_insn sequences.
629
ee11262d
AM
6302014-11-05 Alan Modra <amodra@gmail.com>
631
632 * charset.c (convert_between_encodings): Shrink obstack using
633 obstack_blank_fast.
634 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
635 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
636 to char* before doing pointer arithmetic.
ee11262d 637
c87e6d00
SM
6382014-11-04 Simon Marchi <simon.marchi@ericsson.com>
639
640 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
641
441ef17f
PA
6422014-11-04 Pedro Alves <palves@redhat.com>
643
644 * breakpoint.c (breakpoint_thread_match): Delete function.
645 * breakpoint.h (breakpoint_thread_match): Delete declaration.
646
e0f52461
SC
6472014-11-03 Siva Chandra Reddy <sivachandra@google.com>
648
649 PR c++/17494
650 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
651 the method args also under EVAL_SKIP when evaluating method
652 calls under EVAL_SKIP.
653
a0b4d890
YQ
6542014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
655
656 * dwarf2loc.c (read_pieced_value): Do big endian
657 processing only if gdb_regnum is not -1.
658 (write_pieced_value): Ditto.
659
6602014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
661
662 * arm-linux-tdep.c (arm_linux_init_abi): Use
663 info.byte_order_for_code to choose endianity of breakpoint
664 instructions snippets.
665
6662014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
667
668 * arm-tdep.c (extract_arm_insn): Use
669 gdbarch_byte_order_for_code to read arm instruction.
670
e82149ff
DE
6712014-11-02 Doug Evans <xdje42@gmail.com>
672
673 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
674
d7ee84f1
DE
6752014-11-02 Doug Evans <xdje42@gmail.com>
676
677 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
678 main_subfile before returning.
679
4f072d17
DE
6802014-10-31 Doug Evans <xdje42@gmail.com>
681
682 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
683 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
684
8301c89e
DE
6852014-10-31 Doug Evans <xdje42@gmail.com>
686
687 * valops.c (value_cast_pointers): Fix whitespace.
688 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
689 Ditto.
690
02be9a71
DE
6912014-10-30 Doug Evans <dje@google.com>
692
693 * NEWS: Mention ability add attributes to gdb.Objfile and
694 gdb.Progspace objects.
695 * python/py-objfile.c (objfile_object): New member dict.
696 (objfpy_dealloc): Py_XDECREF dict.
697 (objfpy_initialize): Initialize dict.
698 (objfile_getset): Add __dict__.
699 (objfile_object_type): Set tp_dictoffset member.
700 * python/py-progspace.c (progspace_object): New member dict.
701 (pspy_dealloc): Py_XDECREF dict.
702 (pspy_initialize): Initialize dict.
703 (pspace_getset): Add __dict__.
704 (pspace_object_type): Set tp_dictoffset member.
705
6427bef6
YQ
7062014-10-30 Yao Qi <yao@codesourcery.com>
707
708 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
709 replace '\\' with '\\\\'.
710
f60325be
JB
7112014-10-29 Joel Brobecker <brobecker@adacore.com>
712
713 GDB 7.8.1 released.
714
ab917dfb
PA
7152014-10-29 Pedro Alves <palves@redhat.com>
716
717 PR gdb/17408
718 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
719 instead of assuming a thread with a stepping range is always
720 stepping.
721
d3d4baed
PA
7222014-10-29 Pedro Alves <palves@redhat.com>
723
724 PR python/17372
725 * event-top.c (change_line_handler): Call
726 gdb_rl_callback_handler_remove instead of
727 rl_callback_handler_remove.
728 (callback_handler_installed): New global.
729 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
730 (gdb_rl_callback_handler_reinstall): New functions.
731 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
732 gdb_rl_callback_handler_install instead of
733 rl_callback_handler_remove and rl_callback_handler_install.
734 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
735 instead of rl_callback_handler_remove.
736 * event-top.h (gdb_rl_callback_handler_remove)
737 (gdb_rl_callback_handler_install)
738 (gdb_rl_callback_handler_reinstall): New declarations.
739 * infrun.c (reinstall_readline_callback_handler_cleanup): New
740 cleanup function.
741 (fetch_inferior_event): Install it.
742 * top.c (gdb_readline_wrapper_line) Call
743 gdb_rl_callback_handler_remove instead of
744 rl_callback_handler_remove.
745 (gdb_readline_wrapper_cleanup): Don't call
746 rl_callback_handler_install.
747
6e5d7f39
PA
7482014-10-29 Pedro Alves <palves@redhat.com>
749
750 * event-top.c (command_line_handler): Clear the first byte of
751 linebuffer, when it is first allocated.
752
551cb6a5
PA
7532014-10-29 Pedro Alves <palves@redhat.com>
754
755 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
756 TRY_CATCH.
757
1e1e619b
PA
7582014-10-29 Pedro Alves <palves@redhat.com>
759
760 PR tui/16138
761 PR tui/17519
762 * tui/tui-interp.c (tui_is_toplevel): Delete global.
763 (tui_allowed_p): Delete function.
764 * tui/tui.c: Include "interps.h".
765 (tui_enable): Don't use tui_allowed_p. Error out here with
766 detailed error messages if the TUI is the top level interpreter,
767 or if output is not a terminal. Use newterm instead of initscr,
768 and error out if initializing the terminal fails. Also error out if
769 the terminal doesn't support cursor addressing.
770 * tui/tui.h (tui_allowed_p): Delete declaration.
771
6041179a
JB
7722014-10-29 Joel Brobecker <brobecker@adacore.com>
773
774 * arm-tdep.c (arm_skip_stack_protector): Return early if
775 address loaded by first "ldr" instruction does not have
776 a corresponding minimal symbol. Update comment.
777
6ae274b7
YQ
7782014-10-29 Yao Qi <yao@codesourcery.com>
779
780 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
781 loaded address correctly of ldr instruction.
782
7f5ef605
PA
7832014-10-28 Pedro Alves <palves@redhat.com>
784
785 PR gdb/12623
786 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
787 field.
788 * infrun.c (resume) <stepping breakpoint instruction>: Set the
789 thread's stepped_breakpoint field. Skip if reverse debugging.
790 Add comment.
791 (init_thread_stepping_state, handle_signal_stop): Clear the
792 thread's stepped_breakpoint field.
793
7d1a114c
PA
7942014-10-27 Pedro Alves <palves@redhat.com>
795
796 * remote.c (remote_thread_alive): New, factored out from ...
797 (remote_thread_alive): ... this.
798 (remote_update_thread_list): Bail out before deleting threads if
799 the target returned an empty list, and, the current thread has a
800 magic/fake ptid.
801
e5f8a7cc
PA
8022014-10-27 Pedro Alves <palves@redhat.com>
803
804 * infrun.c (handle_signal_stop): Also skip handlers when a random
805 signal arrives while handling a "stepi" or a "nexti". Set the
806 thread's 'step_after_step_resume_breakpoint' flag.
807
71e396f9
LM
8082014-10-27 Luis Machado <lgustavo@codesourcery.com>
809
810 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
811 (arm_record_ld_st_imm_offset): Reimplement to cover all
812 load/store cases for ARM opcode 010.
813 (arm_record_ld_st_multiple): Reimplement to cover all
814 load/store cases for ARM opcode 100.
815
3aee438b
DE
8162014-10-26 Doug Evans <xdje42@gmail.com>
817
818 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
819
f88cb4b6
DE
8202014-10-26 Doug Evans <xdje42@gmail.com>
821
822 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
823 parameter "kind" to "block_index".
824 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
825 "block_index".
826 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
827
a023a30f
DE
8282014-10-26 Doug Evans <xdje42@gmail.com>
829
830 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
831
4c35218e
DE
8322014-10-26 Doug Evans <xdje42@gmail.com>
833
834 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
835 obstack_alloc.
836
f08e8df3
DE
8372014-10-26 Doug Evans <xdje42@gmail.com>
838
839 * parser-defs.h (block_found): Move decl from here ...
840 * symtab.h (block_found): ... to here.
841
cf901d3b
DE
8422014-10-26 Doug Evans <xdje42@gmail.com>
843
844 * symtab.h (struct field_of_this_result): Fix typo in comment.
845 (lookup_symbol_in_language): Move function comment here.
846 (lookup_symbol): Improve function comment.
847 (basic_lookup_symbol_nonlocal): Ditto.
848 (lookup_symbol_static, lookup_symbol_global): Ditto.
849 (lookup_symbol_aux_block): Ditto.
850 (lookup_language_this): Add function comment.
851 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
852 function comment.
853 (lookup_block_symbol): Improve function comment.
854 (lookup_struct): Fix capitalization in function comment.
855 (lookup_transparent_type): Add function comment.
856 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
857 Improve function comment.
858 (lookup_objfile_from_block): Add function comment.
859 * symtab.c (lookup_symbol_in_language): Update function comment.
860 (lookup_symbol, lookup_language_this): Ditto.
861 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
862 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
863 (basic_lookup_symbol_nonlocal): Ditto.
864 (lookup_symbol_static, lookup_symbol_global): Ditto.
865 (lookup_transparent_type, lookup_block_symbol): Ditto.
866
ff6c39cf
DE
8672014-10-25 Doug Evans <xdje42@gmail.com>
868
869 * symtab.c (types_info): Delete forward decl.
870 (functions_info, variables_info, sources_info): Ditto.
871 (_initialize_symtab): Rewrite forward decl to use
872 initialize_file_ftype.
873
ec201f0c
DE
8742014-10-25 Doug Evans <xdje42@gmail.com>
875
876 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
877
ca040673
DE
8782014-10-25 Doug Evans <xdje42@gmail.com>
879
880 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
881 of local var child_die.
882
6f259a23
DB
8832014-10-24 Don Breazeal <donb@codesourcery.com>
884
885 * infrun.c (follow_fork_inferior): Update fork message printing
886 to use target_terminal_ours_for_output instead of
887 target_terminal_ours, to use _() for all format strings, to print
888 "vfork" instead of "fork" for vforks, and to add a detach message.
889 (handle_vfork_child_exec_or_exit): Update message printing to use
890 target_terminal_ours_for_output instead of target_terminal_ours, to
891 use _() for all format strings, and to fix some formatting.
892
09dd9a69
PA
8932014-10-24 Pedro Alves <palves@redhat.com>
894
895 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
896 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
897 * config/vax/vax.mh: Delete.
898 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
899 obsolete configurations section.
900 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
901 * vax-nat.c: Delete file.
902
5ab806de
PA
9032014-10-24 Pedro Alves <palves@redhat.com>
904
905 * NEWS (Removed targets): Add OS/arch column.
906
3433cfa5
SC
9072014-10-24 Siva Chandra Reddy <sivachandra@google.com>
908
909 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
910 on the arg type of a constructor only if it is of reference type.
911
96ba4233
SL
9122014-10-23 Sandra Loosemore <sandra@codesourcery.com>
913
914 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
915 accessors and constants from nios2 opcodes update.
916 (nios2_get_next_pc): Likewise.
917
28153fd3
DE
9182014-10-19 Doug Evans <xdje42@gmail.com>
919
920 * gdbthread.h (set_running): Fix comment.
921 (set_executing, finish_thread_state): Fix comment.
922
fc9b8e47
DE
9232014-10-18 Doug Evans <xdje42@gmail.com>
924
925 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
926
4ffbba72
DE
9272014-10-17 Doug Evans <dje@google.com>
928
929 * NEWS: Mention new event gdb.clear_objfiles.
930 * python/py-event.h (emit_clear_objfiles_event): Clear
931 * python/py-events.h (events_object): New member clear_objfiles.
932 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
933 event.
934 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
935 emit clear_objfiles event.
936 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
937 function.
938 (emit_clear_objfiles_event): New function.
939 (clear_objfiles): New event.
940 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
941 Declare.
942 * python/python.c (_initialize_python): Call
943 gdbpy_initialize_clear_objfiles_event.
944
d096d8c1
DE
9452014-10-17 Doug Evans <dje@google.com>
946
947 * NEWS: Mention new gdb.Objfile.progspace attribute.
948 * python/py-objfile.c (objfpy_get_progspace): New function.
949 (objfile_getset): New entry for "progspace".
950
6c4486e6
PA
9512014-10-17 Pedro Alves <palves@redhat.com>
952
953 PR gdb/17471
954 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
955 returns a copy of the input.
956 (run_command_1, continue_command, step_1, jump_command)
957 (signal_command, until_command, advance_command, finish_command)
958 (attach_command): Adjust and install a cleanup to free the
959 stripped args.
960
0ff33695
PA
9612014-10-17 Pedro Alves <palves@redhat.com>
962
963 PR gdb/17300
964 * infcmd.c (continue_1): If continuing all threads in the
965 foreground, make sure the inferior's terminal settings are put in
966 effect.
967
6fdebc3d
PA
9682014-10-17 Pedro Alves <palves@redhat.com>
969
970 PR gdb/17472
971 * annotate.c (annotate_breakpoints_invalid): Use
972 target_terminal_our_for_output instead of target_terminal_ours.
973 Give back the terminal to the target.
974 (annotate_frames_invalid): Likewise.
975
5842f62a
PA
9762014-10-17 Pedro Alves <palves@redhat.com>
977
978 * target.c (enum terminal_state): New enum.
979 (terminal_state): New global.
980 (target_terminal_init): New function.
981 (target_terminal_inferior): Skip if inferior already owns the
982 terminal.
983 (target_terminal_ours, target_terminal_ours_for_output): New
984 functions.
985 * target.h (target_terminal_init): Convert to function prototype.
986 (target_terminal_ours_for_output): Convert to function prototype
987 and tweak comment.
988 (target_terminal_ours): Convert to function prototype and tweak
989 comment.
990 * windows-nat.c (do_initial_windows_stuff): Call
991 target_terminal_init instead of child_terminal_init_with_pgrp.
992
32a8097b
PA
9932014-10-17 Pedro Alves <palves@redhat.com>
994
995 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
996 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
997 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
998 solib-osf.c.
999 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1000 * ada-lang.h [__alpha__ && __osf__]
1001 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1002 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1003 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1004 GDB_OSABI_OSF1.
1005 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1006 files.
1007 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1008 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1009 * configure: Regenerate.
1010 * configure.ac: Remove references to osf.
1011 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1012 section. Remove all other references to osf.
1013 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1014 Remove all other references to osf.
1015 * dec-thread.c: Delete file.
1016 * defs.h (GDB_OSABI_OSF1): Delete.
1017 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1018 defined.
1019 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1020 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1021 Delete code.
1022 (unconditionally_kill_inferior)
1023 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1024 * solib-osf.c: Delete file.
1025
80134cf5
PA
10262014-10-17 Pedro Alves <palves@redhat.com>
1027
1028 * remote.c (clear_threads_listing_context): Move higher up, out of
1029 the HAVE_LIBEXPAT guard.
1030
89c7137f
TG
10312014-10-16 Tristan Gingold <gingold@adacore.com>
1032
1033 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1034 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1035 on amd64.
1036
44ee4a52
PA
10372014-10-15 Pedro Alves <palves@redhat.com>
1038
1039 * dec-thread.c (dec_thread_count_gdb_threads)
1040 (dec_thread_add_gdb_thread): Delete.
1041 (dec_thread_update_thread_list): Delete.
1042 (dec_thread_find_new_threads): Rename to ...
1043 (dec_thread_update_thread_list): ... this. Delete GDB-size
1044 threads that are no longer found in dec_thread_list.
1045 (resync_thread_list): Delete.
1046 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1047 resync_thread_list.
1048
ab970af1
PA
10492014-10-15 Pedro Alves <palves@redhat.com>
1050
1051 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1052 * remote.c (remote_update_thread_list): Skip calling prune_threads
1053 if any thread listing method is supported, and instead walk over
1054 the set of remote threads listed, deleting those that are not
1055 found in GDB's thread list.
1056
e8032dde
PA
10572014-10-15 Pedro Alves <palves@redhat.com>
1058
1059 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1060 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1061 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1062 (bsd_uthread_target): Adjust.
1063 * corelow.c (core_open): Adjust.
1064 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1065 (dec_thread_update_thread_list): New function.
1066 (init_dec_thread_ops): Adjust.
1067 * gdbthread.h (prune_threads): New declaration.
1068 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1069 (thread_db_update_thread_list): ... this. Call prune_threads.
1070 (init_thread_db_ops): Adjust.
1071 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1072 (procfs_update_thread_list): ... this. Call prune_threads.
1073 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1074 Adjust.
1075 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1076 (obsd_update_thread_list): ... this. Call prune_threads.
1077 (obsd_add_target): Adjust.
1078 * procfs.c (procfs_target): Adjust.
1079 (procfs_notice_thread): Update comment.
1080 (procfs_find_new_threads): Rename to ...
1081 (procfs_update_thread_list): ... this. Call prune_threads.
1082 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1083 comment.
1084 (ravenscar_wait): Adjust.
1085 (ravenscar_find_new_threads): Rename to ...
1086 (ravenscar_update_thread_list): ... this. Call prune_threads.
1087 (init_ravenscar_thread_ops): Adjust.
1088 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1089 (record_btrace_update_thread_list): ... this. Adjust comment.
1090 (init_record_btrace_ops): Adjust.
1091 * remote.c (remote_threads_info): Rename to ...
1092 (remote_update_thread_list): ... this. Call prune_threads.
1093 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1094 Adjust.
1095 * sol-thread.c (check_for_thread_db): Adjust.
1096 (sol_find_new_threads_callback): Rename to ...
1097 (sol_update_thread_list_callback): ... this.
1098 (sol_find_new_threads): Rename to ...
1099 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1100 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1101 * target-delegates.c: Regenerate.
1102 * target.c (target_find_new_threads): Rename to ...
1103 (target_update_thread_list): ... this.
1104 * target.h (struct target_ops): Rename to_find_new_threads field
1105 to to_update_thread_list.
1106 (target_find_new_threads): Rename to ...
1107 (target_update_thread_list): ... this.
1108 * thread.c (prune_threads): Make extern.
1109 (update_thread_list): Adjust.
1110
6dc54d91
PA
11112014-10-15 Pedro Alves <palves@redhat.com>
1112
1113 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1114 Add describing comment. Return -1 if the qL packet is not
1115 supported.
1116 (struct thread_item, thread_item_t): Move higher up in
1117 the file. Add comments.
1118 (struct threads_parsing_context): Move higher up in
1119 the file, add comments, and remote to ...
1120 (struct threads_listing_context): ... this.
1121 (remote_newthread_step): Don't add the thread to GDB's thread
1122 database here. Instead push it to the thread_listing_context
1123 list.
1124 (remote_find_new_threads): Rename to ...
1125 (remote_get_threads_with_ql): ... this. Add target_ops and
1126 targets_listing_context parameters. Pass down context.
1127 (start_thread): Adjust.
1128 (clear_threads_parsing_context): Rename to ...
1129 (clear_threads_listing_context): ... this.
1130 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1131 remote_threads_info.
1132 (remote_get_threads_with_qthreadinfo): Ditto.
1133 (remote_threads_info): Reimplement.
1134
36728e82
PA
11352014-10-15 Pedro Alves <palves@redhat.com>
1136
1137 * infrun.c (resume): Don't force displaced-stepping for all
1138 single-steps on software single-stepping archs.
1139
34b7e8a6
PA
11402014-10-15 Pedro Alves <palves@redhat.com>
1141
1142 * breakpoint.c (single_step_breakpoints): Delete global.
1143 (insert_single_step_breakpoint): Adjust to store the breakpoint
1144 pointer in the current thread.
1145 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1146 (cancel_single_step_breakpoints): Delete functions.
1147 (breakpoint_has_location_inserted_here): Make extern.
1148 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1149 breakpoint list.
1150 * breakpoint.h (breakpoint_has_location_inserted_here): New
1151 declaration.
1152 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1153 (cancel_single_step_breakpoints): Remove declarations.
1154 * gdbthread.h (struct thread_control_state)
1155 <single_step_breakpoints>: New field.
1156 (delete_single_step_breakpoints)
1157 (thread_has_single_step_breakpoints_set)
1158 (thread_has_single_step_breakpoint_here): New declarations.
1159 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1160 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1161 (singlestep_pc): Delete globals.
1162 (infrun_thread_ptid_changed): Remove references to removed
1163 globals.
1164 (resume_cleanups): Delete the current thread's single-step
1165 breakpoints.
1166 (maybe_software_singlestep): Remove references to removed globals.
1167 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1168 delete_single_step_breakpoints.
1169 (init_wait_for_inferior): Remove references to removed globals.
1170 (delete_thread_infrun_breakpoints): Delete the thread's
1171 single-step breakpoints too.
1172 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1173 single-step breakpoints here.
1174 (delete_stopped_threads_single_step_breakpoints): New function.
1175 (adjust_pc_after_break): Adjust to use
1176 thread_has_single_step_breakpoints_set.
1177 (handle_inferior_event): Remove references to removed globals.
1178 Use delete_stopped_threads_single_step_breakpoints.
1179 (handle_signal_stop): Adjust to per-thread single-step
1180 breakpoints. Swap test order to do cheaper tests first.
1181 (switch_back_to_stepped_thread): Extend debug output. Remove
1182 references to removed globals.
1183 * record-full.c (record_full_wait_1): Adjust to per-thread
1184 single-step breakpoints.
1185 * thread.c (delete_single_step_breakpoints)
1186 (thread_has_single_step_breakpoints_set)
1187 (thread_has_single_step_breakpoint_here): New functions.
1188 (clear_thread_inferior_resources): Also delete the thread's
1189 single-step breakpoints.
1190
5b834a0a
PA
11912014-10-15 Pedro Alves <palves@redhat.com>
1192
1193 * thread.c (delete_thread_breakpoint): New function.
1194 (delete_step_resume_breakpoint)
1195 (delete_exception_resume_breakpoint): Use it.
1196 (delete_at_next_stop): New function.
1197 (clear_thread_inferior_resources): Use delete_at_next_stop.
1198
a1fd2fa5
PA
11992014-10-15 Pedro Alves <palves@redhat.com>
1200
1201 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1202 (breakpoint_inserted_here_p): ... here. Remove special case for
1203 software single-step breakpoints.
1204 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1205 (software_breakpoint_inserted_here_p): ... here. Remove special
1206 case for software single-step breakpoints.
1207 (bp_target_info_copy_insertion_state)
1208 (deprecated_insert_raw_breakpoint)
1209 (deprecated_remove_raw_breakpoint): Delete functions.
1210 * breakpoint.h (deprecated_insert_raw_breakpoint)
1211 (deprecated_remove_raw_breakpoint): Remove declarations.
1212
7c16b83e
PA
12132014-10-15 Pedro Alves <palves@redhat.com>
1214
1215 PR breakpoints/9649
1216 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1217 Delete array globals.
1218 (single_step_breakpoints): New global.
1219 (breakpoint_xfer_memory): Remove special handling for single-step
1220 breakpoints.
1221 (update_breakpoints_after_exec): Delete bp_single_step
1222 breakpoints.
1223 (detach_breakpoints): Remove special handling for single-step
1224 breakpoints.
1225 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1226 (bpstat_stop_status): Add comment.
1227 (bpstat_what, bptype_string, print_one_breakpoint_location)
1228 (adjust_breakpoint_address, init_bp_location): Handle
1229 bp_single_step.
1230 (new_single_step_breakpoint): New function.
1231 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1232 handling for single-step breakpoints.
1233 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1234 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1235 Rewrite.
1236 (detach_single_step_breakpoints, find_single_step_breakpoint):
1237 Delete functions.
1238 (breakpoint_has_location_inserted_here): New function.
1239 (single_step_breakpoint_inserted_here_p): Rewrite.
1240 * breakpoint.h: Remove FIXME.
1241 (enum bptype) <bp_single_step>: New enum value.
1242 (insert_single_step_breakpoint): Update comment.
1243 * infrun.c (resume_cleanups)
1244 (delete_step_thread_step_resume_breakpoint): Remove single-step
1245 breakpoints.
1246 (fetch_inferior_event): Install a cleanup that removes infrun
1247 breakpoints.
1248 (switch_back_to_stepped_thread) <expect thread advanced also>:
1249 Clear step-over info.
1250
0cbcdb96
PA
12512014-10-15 Pedro Alves <palves@redhat.com>
1252
1253 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1254 (delete_thread_infrun_breakpoints): New function, with parts
1255 salvaged from delete_step_resume_breakpoint_callback.
1256 (delete_step_thread_step_resume_breakpoint): Delete.
1257 (for_each_just_stopped_thread_callback_func): New typedef.
1258 (for_each_just_stopped_thread): New function.
1259 (delete_just_stopped_threads_infrun_breakpoints): New function.
1260 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1261 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1262 ... this. Adjust.
1263 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1264
963f9c80
PA
12652014-10-15 Pedro Alves <palves@redhat.com>
1266
1267 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1268 trying to step past a non-steppable watchpoint.
1269 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1270 field.
1271 * infrun.c (struct step_over_info): Add new field
1272 'nonsteppable_watchpoint_p' and adjust comments.
1273 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1274 Adjust.
1275 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1276 (stepping_past_nonsteppable_watchpoint): New function.
1277 (step_over_info_valid_p): Also return true if stepping past a
1278 nonsteppable watchpoint.
1279 (proceed): Adjust call to set_step_over_info. Remove reference to
1280 init_infwait_state.
1281 (init_wait_for_inferior): Remove reference to init_infwait_state.
1282 (waiton_ptid): Delete global.
1283 (struct execution_control_state)
1284 <stepped_after_stopped_by_watchpoint>: Delete field.
1285 (wait_for_inferior, fetch_inferior_event): Always pass
1286 minus_one_ptid to target_wait.
1287 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1288 field.
1289 (init_infwait_state): Delete function.
1290 (handle_inferior_event): Remove infwait_state handling.
1291 (handle_signal_stop) <watchpoints handling>: Adjust after
1292 stepped_after_stopped_by_watchpoint removal. Don't remove
1293 breakpoints here nor set infwait_state. Set the thread's
1294 stepping_over_watchpoint flag, and call keep_going instead.
1295 (keep_going): Handle stepping_over_watchpoint. Adjust
1296 set_step_over_info calls.
1297 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1298 function.
1299
6cc83d2a
PA
13002014-10-15 Pedro Alves <palves@redhat.com>
1301
1302 * infrun.c (step_over_info_valid_p): New function.
1303 (resume): Use step_over_info_valid_p instead of checking the
1304 threads's trap_expected flag.
1305
6979730b
DE
13062014-10-15 Doug Evans <dje@google.com>
1307 Walfred Tedeschi <walfred.tedeschi@intel.com>
1308
1309 PR python/17364
1310 * python/lib/gdb/__init__.py (packages): Add "printer".
1311 * python/lib/gdb/command/bound_registers.py: Moved to ...
1312 * python/lib/gdb/printer/bound_registers.py: ... here.
1313 Add printer to global set of builtin printers. Rename printer from
1314 "bound" to "mpx_bound128".
1315 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1316 registered as global "builtin" printer.
1317 (add_builtin_pretty_printer): New function.
1318 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1319 gdb/printer/__init__.py.
1320
35a49624
IB
13212014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1322
1323 * Makefile.in (SFILES): Remove d-support.c.
1324 (COMMON_OBS): Remove d-support.o.
1325 * d-lang.h (d_parse_symbol): Remove declaration.
1326 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1327 * d-support.c: Remove file.
1328
8fa0c4f8
AA
13292014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1330
1331 * gdb/infrun.c (process_event_stop_test): Apply
1332 gdbarch_addr_bits_remove to longjmp resume address.
1333
3666da81
PA
13342014-10-15 Pedro Alves <palves@redhat.com>
1335
1336 * regformats/microblaze.dat: Delete file.
1337
449aa9df
AKA
13382014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1339
1340 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1341 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1342
ebb8ece2
SC
13432014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1344
1345 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1346 as non-trivial.
1347
82c48ac7
SC
13482014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1349
1350 PR c++/13403
1351 PR c++/15154
1352 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1353 with qualified args.
1354
c40cc657
JB
13552014-10-14 Joel Brobecker <brobecker@adacore.com>
1356
1357 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1358 of the case where the second operand is a pointer.
1359 <BINOP_SUB>: Likewise.
1360
0ea5cda8
SDJ
13612014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1362
1363 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1364 only if it is not NULL.
1365 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1366 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1367 (struct probe_ops) <clear_semaphore>: Likewise.
1368 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1369 not NULL.
1370 (stop_tracing): Likewise, for clear_semaphore.
1371
f7088df3
SDJ
13722014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1373
1374 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1375 using language_c, instead of current_language.
1376
4e1bbde0
DE
13772014-10-13 Doug Evans <dje@google.com>
1378
6ff5a0f6 1379 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1380 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1381 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1382 (pspy_new, pspace_to_pspace_object): Call it.
1383
c780cc2f
JK
13842014-10-13 Miroslav Franc <mfranc@redhat.com>
1385 Jan Kratochvil <jan.kratochvil@redhat.com>
1386
1387 Fix "save breakpoints" for "catch" command.
1388 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1389 newline.
1390
99894e11
JK
13912014-10-12 Miroslav Franc <mfranc@redhat.com>
1392
1393 Fix "save breakpoints" for "disable $bpnum" command.
1394 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1395
3831839c
PA
13962014-10-10 Pedro Alves <palves@redhat.com>
1397
1398 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1399 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1400 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1401 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1402 and been removed.
1403 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1404 * configure.ac: Remove references to IRIX.
1405 * configure.host: Add *-*-irix* to the obsolete hosts section.
1406 Remove all other references to irix.
1407 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1408 Delete files.
1409
cc3afae2
AKA
14102014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1411
1412 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1413 isn't valid, release the tdesc arch data and return NULL.
1414
cdfa0b0a
PA
14152014-10-10 Pedro Alves <palves@redhat.com>
1416
1417 * linux-tdep.c: Include observer.h.
1418 (linux_inferior_data): New global.
1419 (struct linux_info): New structure.
1420 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1421 (get_linux_inferior_data): New functions.
1422 (linux_vsyscall_range): Rename to ...
1423 (linux_vsyscall_range_raw): ... this.
1424 (linux_vsyscall_range): New function; handles caching.
1425 (_initialize_linux_tdep): Register linux_inferior_data. Install
1426 inferior_exit and inferior_appeared observers.
1427
8b9a549d
PA
14282014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1429 Pedro Alves <palves@redhat.com>
1430
1431 PR symtab/14466
1432 * solib-svr4.c (svr4_read_so_list): Rename to ...
1433 (svr4_current_sos_1): ... this and change the function comment.
1434 (svr4_current_sos): New function.
1435
3437254d
PA
14362014-10-10 Pedro Alves <palves@redhat.com>
1437
1438 * arch-utils.c (default_vsyscall_range): New function.
1439 * arch-utils.h (default_vsyscall_range): New declaration.
1440 * gdbarch.sh (vsyscall_range): New hook.
1441 * gdbarch.h, gdbarch.c: Regenerate.
1442 * linux-tdep.c (linux_vsyscall_range): New function.
1443 (linux_init_abi): Install linux_vsyscall_range as
1444 vsyscall_range gdbarch hook.
1445 * memrange.c (address_in_mem_range): New function.
1446 * memrange.h (address_in_mem_range): New declaration.
1447 * symfile-mem.c (find_vdso_size): Delete function.
1448 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1449
31cc0b80
PA
14502014-10-10 Pedro Alves <palves@redhat.com>
1451
1452 * infrun.c (normal_stop): Fix typo in comment.
1453
3e3286a2
SDJ
14542014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1455
1456 PR tdep/9390
1457 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1458 typo when using logical AND to determine instruction type.
1459
fcbdedf8
YQ
14602014-10-09 Yao Qi <yao@codesourcery.com>
1461
1462 * infrun.c (handle_signal_stop): Remove local variable
1463 'printed'.
1464
db984616
SS
14652014-10-08 Stan Shebs <stan@codesourcery.com>
1466
1467 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1468
3ba37e6c
GB
14692014-10-08 Gary Benson <gbenson@redhat.com>
1470
1471 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1472
a442d071
GB
14732014-10-08 Gary Benson <gbenson@redhat.com>
1474
1475 * common/common-defs.h: Include common-exceptions.h.
1476 * exceptions.h: Do not include common-exceptions.h.
1477
6f1947e8
GB
14782014-10-08 Gary Benson <gbenson@redhat.com>
1479
1480 * common/common-defs.h: Include cleanups.h.
1481 * common/common-exceptions.c: Do not include cleanups.h.
1482 * utils.h: Likewise.
1483
c765fdb9
GB
14842014-10-08 Gary Benson <gbenson@redhat.com>
1485
1486 * ada-lang.c: Do not include exceptions.h.
1487 * ada-valprint.c: Likewise.
1488 * amd64-tdep.c: Likewise.
1489 * auto-load.c: Likewise.
1490 * block.c: Likewise.
1491 * break-catch-throw.c: Likewise.
1492 * breakpoint.c: Likewise.
1493 * btrace.c: Likewise.
1494 * c-lang.c: Likewise.
1495 * cli/cli-cmds.c: Likewise.
1496 * cli/cli-interp.c: Likewise.
1497 * cli/cli-script.c: Likewise.
1498 * completer.c: Likewise.
1499 * corefile.c: Likewise.
1500 * corelow.c: Likewise.
1501 * cp-abi.c: Likewise.
1502 * cp-support.c: Likewise.
1503 * cp-valprint.c: Likewise.
1504 * darwin-nat.c: Likewise.
1505 * dwarf2-frame-tailcall.c: Likewise.
1506 * dwarf2-frame.c: Likewise.
1507 * dwarf2loc.c: Likewise.
1508 * dwarf2read.c: Likewise.
1509 * eval.c: Likewise.
1510 * event-loop.c: Likewise.
1511 * event-top.c: Likewise.
1512 * f-valprint.c: Likewise.
1513 * frame-unwind.c: Likewise.
1514 * frame.c: Likewise.
1515 * gdbtypes.c: Likewise.
1516 * gnu-v2-abi.c: Likewise.
1517 * gnu-v3-abi.c: Likewise.
1518 * guile/scm-auto-load.c: Likewise.
1519 * guile/scm-breakpoint.c: Likewise.
1520 * guile/scm-cmd.c: Likewise.
1521 * guile/scm-frame.c: Likewise.
1522 * guile/scm-lazy-string.c: Likewise.
1523 * guile/scm-param.c: Likewise.
1524 * guile/scm-symbol.c: Likewise.
1525 * guile/scm-type.c: Likewise.
1526 * hppa-hpux-tdep.c: Likewise.
1527 * i386-tdep.c: Likewise.
1528 * inf-loop.c: Likewise.
1529 * infcall.c: Likewise.
1530 * infcmd.c: Likewise.
1531 * infrun.c: Likewise.
1532 * interps.c: Likewise.
1533 * interps.h: Likewise.
1534 * jit.c: Likewise.
1535 * linespec.c: Likewise.
1536 * linux-nat.c: Likewise.
1537 * linux-thread-db.c: Likewise.
1538 * m32r-rom.c: Likewise.
1539 * main.c: Likewise.
1540 * memory-map.c: Likewise.
1541 * mi/mi-cmd-break.c: Likewise.
1542 * mi/mi-cmd-stack.c: Likewise.
1543 * mi/mi-interp.c: Likewise.
1544 * mi/mi-main.c: Likewise.
1545 * monitor.c: Likewise.
1546 * nto-procfs.c: Likewise.
1547 * objc-lang.c: Likewise.
1548 * p-valprint.c: Likewise.
1549 * parse.c: Likewise.
1550 * ppc-linux-tdep.c: Likewise.
1551 * printcmd.c: Likewise.
1552 * probe.c: Likewise.
1553 * python/py-auto-load.c: Likewise.
1554 * python/py-breakpoint.c: Likewise.
1555 * python/py-cmd.c: Likewise.
1556 * python/py-finishbreakpoint.c: Likewise.
1557 * python/py-frame.c: Likewise.
1558 * python/py-framefilter.c: Likewise.
1559 * python/py-function.c: Likewise.
1560 * python/py-gdb-readline.c: Likewise.
1561 * python/py-inferior.c: Likewise.
1562 * python/py-infthread.c: Likewise.
1563 * python/py-lazy-string.c: Likewise.
1564 * python/py-linetable.c: Likewise.
1565 * python/py-param.c: Likewise.
1566 * python/py-prettyprint.c: Likewise.
1567 * python/py-symbol.c: Likewise.
1568 * python/py-type.c: Likewise.
1569 * python/py-value.c: Likewise.
1570 * python/python-internal.h: Likewise.
1571 * python/python.c: Likewise.
1572 * record-btrace.c: Likewise.
1573 * record-full.c: Likewise.
1574 * regcache.c: Likewise.
1575 * remote-fileio.c: Likewise.
1576 * remote-mips.c: Likewise.
1577 * remote.c: Likewise.
1578 * rs6000-aix-tdep.c: Likewise.
1579 * rs6000-nat.c: Likewise.
1580 * skip.c: Likewise.
1581 * solib-darwin.c: Likewise.
1582 * solib-dsbt.c: Likewise.
1583 * solib-frv.c: Likewise.
1584 * solib-ia64-hpux.c: Likewise.
1585 * solib-spu.c: Likewise.
1586 * solib-svr4.c: Likewise.
1587 * solib.c: Likewise.
1588 * spu-tdep.c: Likewise.
1589 * stack.c: Likewise.
1590 * stap-probe.c: Likewise.
1591 * symfile-mem.c: Likewise.
1592 * symmisc.c: Likewise.
1593 * target.c: Likewise.
1594 * thread.c: Likewise.
1595 * top.c: Likewise.
1596 * tracepoint.c: Likewise.
1597 * tui/tui-interp.c: Likewise.
1598 * typeprint.c: Likewise.
1599 * utils.c: Likewise.
1600 * valarith.c: Likewise.
1601 * valops.c: Likewise.
1602 * valprint.c: Likewise.
1603 * value.c: Likewise.
1604 * varobj.c: Likewise.
1605 * windows-nat.c: Likewise.
1606 * xml-support.c: Likewise.
1607
484933d1
MR
16082014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1609
1610 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1611 name implies.
1612 (extended_mips16_next_pc): Update accordingly.
1613
ab50adb6
MR
16142014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1615
1616 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1617 function.
1618 (micromips_instruction_is_compact_branch): Likewise.
1619 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1620 or a compact jump, reaching a jump delay slot, or seeing a
1621 second non-prologue instruction.
1622 (micromips_scan_prologue): Also terminate scanning upon seeing a
1623 compact branch or jump, or reaching a branch or jump delay slot.
1624 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1625 or jump delay slot, or seeing a second non-prologue instruction.
1626 (mips32_instruction_has_delay_slot): Retain instruction
1627 examination code only, update arguments accordingly and move
1628 instruction fetch pieces to...
1629 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1630 (micromips_instruction_has_delay_slot): Likewise and to...
1631 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1632 (mips16_instruction_has_delay_slot): Likewise and to...
1633 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1634 (mips_single_step_through_delay): Update accordingly.
1635 (mips_adjust_breakpoint_address): Likewise.
1636
ae790652
MR
16372014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1638
1639 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1640 !mustbe32 also return 1 for 32-bit instructions.
1641 (mips16_instruction_has_delay_slot): Likewise. Add an
1642 explanatory comment.
1643
9b807e7b
MR
16442014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1645
1646 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1647 symbols special.
1648
0d5ed153
MR
16492014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1650
1651 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1652 update comments.
1653 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1654 for the breakpoint's address. Don't preinitialize `placed_size'.
1655 (insert_bp_location): Set `reqstd_address' rather than
1656 `placed_address'.
1657 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1658 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1659 address.
1660 (bkpt_remove_location): Likewise.
1661 (deprecated_insert_raw_breakpoint): Likewise.
1662 (deprecated_remove_raw_breakpoint): Likewise.
1663 (find_single_step_breakpoint): Likewise.
1664 * mem-break.c (default_memory_insert_breakpoint): Use
1665 `reqstd_address' for the breakpoint's address. Don't set
1666 `placed_address' or `placed_size' if breakpoint contents couldn't
1667 have been determined.
1668 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1669 the breakpoint's address.
1670 (remote_insert_hw_breakpoint): Likewise. Don't set
1671 `placed_address' or `placed_size' if breakpoint couldn't have been
1672 set.
1673 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1674 `reqstd_address' for the breakpoint's address.
1675 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1676 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1677 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1678 * microblaze-linux-tdep.c
1679 (microblaze_linux_memory_remove_breakpoint): Likewise.
1680 * monitor.c (monitor_insert_breakpoint): Likewise.
1681 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1682 (procfs_insert_hw_breakpoint): Likewise.
1683 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1684 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1685 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1686 * remote-mips.c (mips_insert_breakpoint): Likewise.
1687 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1688
3e871532
LM
16892014-10-03 Luis Machado <lgustavo@codesourcery.com>
1690
1691 * valops.c (value_assign): Check for bit field assignments
1692 before calling architecture-specific register value
1693 conversion functions.
1694
ec48dc8b
PM
16952014-10-03 Pierre Muller <muller@sourceware.org>
1696
1697 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1698
b57bacec
PA
16992014-10-02 Pedro Alves <palves@redhat.com>
1700
1701 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1702 threads_are_executing.
1703 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1704 describing comment.
1705 * gdbthread.h (threads_are_executing): Declare.
1706 (handle_signal_stop) <random signals>: Don't print about the
1707 signal here if stopping.
1708 (end_stepping_range): Don't notify observers here.
1709 (normal_stop): Update the thread list. If stopped by a random
1710 signal or a stepping range ended, notify observers.
1711 * thread.c (threads_executing): New global.
1712 (init_thread_list): Clear 'threads_executing'.
1713 (set_executing): Set or clear 'threads_executing'.
1714 (threads_are_executing): New function.
1715 (update_threads_executing): New function.
1716 (update_thread_list): Use it.
1717
13fd3ff3
PA
17182014-10-02 Pedro Alves <palves@redhat.com>
1719
1720 PR breakpoints/17431
1721 * breakpoint.c (update_breakpoints_after_exec): Don't create
1722 overlay, longjmp, std terminate nor exception breakpoints here.
1723
32990ada
PA
17242014-10-02 Pedro Alves <palves@redhat.com>
1725
1726 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1727 Adjust comments.
1728 * inferior.c (find_inferior_for_program_space): Give preference to
1729 the current inferior.
1730 * inferior.h (find_inferior_for_program_space): Update comment.
1731 * progspace.c (switch_to_program_space_and_thread): Prefer the
1732 current inferior if it's bound to the program space requested. If
1733 the inferior found doesn't have a PID yet, don't bother looking up
1734 a thread.
1735 * progspace.h (switch_to_program_space_and_thread): Adjust
1736 comment.
1737 * thread.c (any_thread_of_process, any_live_thread_of_process):
1738 Give preference to the current thread.
1739
0fec99e8
PA
17402014-10-01 Pedro Alves <palves@redhat.com>
1741
1742 * breakpoint.c (insert_bp_location): Error out if inserting a
1743 software breakpoint at a read-only address.
1744 * target.c (memory_xfer_check_region): New function, factored out
1745 from ...
1746 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1747 ULONGEST.
1748 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1749 against the memory region attributes.
1750
2ddf4301
SM
17512014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1752
1753 * NEWS: Announce new exit-code field in -list-thread-groups
1754 output.
1755 * inferior.c (exit_inferior_1): Don't clear exit code.
1756 (inferior_appeared): Clear exit code.
1757 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1758 code.
1759
5fdeec1d
PA
17602014-10-01 Pedro Alves <palves@redhat.com>
1761
1762 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1763 GENERATED" along with emacs/vi read-only markers.
1764 * regformats/aarch64.dat: Regenerate.
1765 * regformats/arm-with-iwmmxt.dat: Regenerate.
1766 * regformats/arm-with-neon.dat: Regenerate.
1767 * regformats/arm-with-vfpv2.dat: Regenerate.
1768 * regformats/arm-with-vfpv3.dat: Regenerate.
1769 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1770 * regformats/i386/amd64-avx.dat: Regenerate.
1771 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1772 * regformats/i386/amd64-avx512.dat: Regenerate.
1773 * regformats/i386/amd64-linux.dat: Regenerate.
1774 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1775 * regformats/i386/amd64-mpx.dat: Regenerate.
1776 * regformats/i386/amd64.dat: Regenerate.
1777 * regformats/i386/i386-avx-linux.dat: Regenerate.
1778 * regformats/i386/i386-avx.dat: Regenerate.
1779 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1780 * regformats/i386/i386-avx512.dat: Regenerate.
1781 * regformats/i386/i386-linux.dat: Regenerate.
1782 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1783 * regformats/i386/i386-mmx.dat: Regenerate.
1784 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1785 * regformats/i386/i386-mpx.dat: Regenerate.
1786 * regformats/i386/i386.dat: Regenerate.
1787 * regformats/i386/x32-avx-linux.dat: Regenerate.
1788 * regformats/i386/x32-avx.dat: Regenerate.
1789 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1790 * regformats/i386/x32-avx512.dat: Regenerate.
1791 * regformats/i386/x32-linux.dat: Regenerate.
1792 * regformats/i386/x32.dat: Regenerate.
1793 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1794 * regformats/mips-dsp-linux.dat: Regenerate.
1795 * regformats/mips-linux.dat: Regenerate.
1796 * regformats/mips64-dsp-linux.dat: Regenerate.
1797 * regformats/mips64-linux.dat: Regenerate.
1798 * regformats/nios2-linux.dat: Regenerate.
1799 * regformats/rs6000/powerpc-32.dat: Regenerate.
1800 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1801 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1802 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1803 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1804 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1805 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1806 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1807 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1808 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1809 * regformats/s390-linux32.dat: Regenerate.
1810 * regformats/s390-linux32v1.dat: Regenerate.
1811 * regformats/s390-linux32v2.dat: Regenerate.
1812 * regformats/s390-linux64.dat: Regenerate.
1813 * regformats/s390-linux64v1.dat: Regenerate.
1814 * regformats/s390-linux64v2.dat: Regenerate.
1815 * regformats/s390-te-linux64.dat: Regenerate.
1816 * regformats/s390x-linux64.dat: Regenerate.
1817 * regformats/s390x-linux64v1.dat: Regenerate.
1818 * regformats/s390x-linux64v2.dat: Regenerate.
1819 * regformats/s390x-te-linux64.dat: Regenerate.
1820 * regformats/tic6x-c62x-linux.dat: Regenerate.
1821 * regformats/tic6x-c62x.dat: Regenerate.
1822 * regformats/tic6x-c64x-linux.dat: Regenerate.
1823 * regformats/tic6x-c64x.dat: Regenerate.
1824 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1825 * regformats/tic6x-c64xp.dat: Regenerate.
1826
db74e4ba
PA
18272014-10-01 Pedro Alves <palves@redhat.com>
1828
1829 * features/Makefile: Update comments.
1830 (XMLTOC): List all xml files we build C files from.
1831 (clean-cfiles): New rule.
1832
d63f2f84
PA
18332014-10-01 Pedro Alves <palves@redhat.com>
1834
1835 * features/i386/amd64-avx512-linux.c: Regenerate.
1836 * features/i386/amd64-avx512.c: Regenerate.
1837 * features/i386/x32-avx512-linux.c: Regenerate.
1838 * features/i386/x32-avx512.c: Regenerate.
1839
20ad026d
PA
18402014-10-01 Pedro Alves <palves@redhat.com>
1841
1842 * features/Makefile (WHICH): Remove arm-with-m,
1843 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1844
acc9fe45
PA
18452014-10-01 Pedro Alves <palves@redhat.com>
1846
1847 * features/Makefile (clean): New rule.
1848
e001e535
PA
18492014-10-01 Pedro Alves <palves@redhat.com>
1850
1851 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1852 (zmm14h): Add missing end quotes.
1853
bdc14417
PA
18542014-10-01 Pedro Alves <palves@redhat.com>
1855
1856 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1857 * features/aarch64.c: Regenerate.
1858
d83ad864
DB
18592014-09-30 Don Breazeal <donb@codesourcery.com>
1860
1861 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1862 code so as to work with follow_fork_inferior.
1863 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1864 (inf_ttrace_create_inferior): Remove reference to
1865 inf_ttrace_vfork_ppid.
1866 (inf_ttrace_attach): Ditto.
1867 (inf_ttrace_detach): Ditto.
1868 (inf_ttrace_kill): Use current_inferior instead of
1869 inf_ttrace_vfork_ppid.
1870 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1871 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1872 inferior away from the parent.
1873 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1874 target_follow_fork.
1875 (follow_fork_inferior): New function.
1876 (follow_inferior_reset_breakpoints): Make function static.
1877 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1878 * linux-nat.c (linux_child_follow_fork): Move target-independent
1879 code to infrun.c:follow_fork_inferior.
1880
29082443
AA
18812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1882
1883 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1884 * gdbarch.c: Regenerate.
1885 * gdbarch.h: Likewise.
1886 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1887 gdbarch method 'regset_from_core_section'.
1888 (get_core_register_section): Remove handling for the case that
1889 regset == NULL and regset_from_core_section is defined.
1890 (get_core_registers): Drop check for deleted method.
1891 * procfs.c (procfs_do_thread_registers): Adjust comment.
1892
f968fe80
AA
18932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1894
1895 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1896 (linux_nat_make_corefile_notes): Remove.
1897 (linux_target_install_ops): Do not set target method
1898 'make_corefile_notes'.
1899 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1900 Remove field.
1901 (linux_corefile_thread_callback): Instead of args->collect, call
1902 linux_collect_thread_registers.
1903 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1904 NULL unless there is a regset iterator.
1905 (linux_make_corefile_notes_1): Remove.
1906 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1907 by linux_make_corefile_notes.
1908 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1909
174ad59a
AA
19102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1911
1912 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1913 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1914 Remove.
1915 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1916
97094034
AA
19172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1918
1919 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1920 (xtensa_iterate_over_regset_sections): New.
1921 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1922
f73d3ce7
AA
19232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1924
1925 * vax-tdep.c (vax_regset_from_core_section): Remove.
1926 (vax_iterate_over_regset_sections): New.
1927 (vax_gdbarch_init): Adjust gdbarch initialization.
1928
cb24567a
AA
19292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1930
1931 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1932 (tilegx_regset_from_core_section): Remove.
1933 (tilegx_iterate_over_regset_sections): New.
1934 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1935
e5139de8
AA
19362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1937
1938 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1939 (sparc_iterate_over_regset_sections): New.
1940 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1941 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1942 targets.
1943 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1944 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1945 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1946 target method 'make_corefile_notes'.
1947
c6d41a6f
AA
19482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1949
1950 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1951 'sizeof_gregset' and 'sizeof_fpregset'.
1952 * sh-tdep.c (sh_regset_from_core_section): Remove.
1953 (sh_iterate_over_regset_sections): New.
1954 (sh_gdbarch_init): Adjust gdbarch initialization.
1955 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1956 sizeof_fpregset.
1957 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1958 'sizeof_gregset'.
1959
9845a0b5
AA
19602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1961
1962 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1963 (score7_linux_iterate_over_regset_sections): New.
1964 (score_gdbarch_init): Adjust gdbarch initialization.
1965
23ea9aeb
AA
19662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1967
1968 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1969 FreeBSD targets.
1970 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1971 method 'make_corefile_notes'.
1972 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1973 (ppcfbsd_regset_from_core_section): Remove.
1974 (ppcfbsd_iterate_over_regset_sections): New.
1975 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1976 initialization.
1977 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1978 (ppcnbsd_iterate_over_regset_sections): New.
1979 (ppcnbsd_init_abi): Adjust.
1980 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1981 (ppcobsd_iterate_over_regset_sections): New.
1982 (ppcobsd_init_abi): Adjust.
1983 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1984 (rs6000_aix_iterate_over_regset_sections): New.
1985 (rs6000_aix_init_osabi): Adjust.
1986
c5b8d704
AA
19872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1988
1989 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1990 (nios2_regset_from_core_section): Remove.
1991 (nios2_iterate_over_regset_sections): New.
1992 (nios2_linux_init_abi): Adjust gdbarch initialization.
1993
3636e608
AA
19942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1995
1996 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1997 (am33_iterate_over_regset_sections): New.
1998 (am33_linux_init_osabi): Adjust gdbarch initialization.
1999
d4036235
AA
20002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2001
2002 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2003 (mips_linux_iterate_over_regset_sections): New.
2004 (mips_linux_init_abi): Adjust gdbarch initialization.
2005 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2006 (mips64obsd_iterate_over_regset_sections): New.
2007 (mips64obsd_init_abi): Adjust.
2008 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2009 (mipsnbsd_iterate_over_regset_sections): New.
2010 (mipsnbsd_init_abi): Adjust.
2011
b61ddd6e
AA
20122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2013
2014 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2015 (m88k_iterate_over_regset_sections): New.
2016 (m88k_gdbarch_init): Adjust gdbarch initialization.
2017
55a2906a
AA
20182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2019
2020 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2021 (ia64_linux_iterate_over_regset_sections): New.
2022 (ia64_linux_init_abi): Adjust gdbarch initialization.
2023
022c98ab
AA
20242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2025
2026 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2027 (m68kbsd_iterate_over_regset_sections): New.
2028 (m68kbsd_init_abi): Adjust gdbarch initialization.
2029 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2030 (m68k_linux_iterate_over_regset_sections): New.
2031 (m68k_linux_init_abi): Adjust gdbarch initialization.
2032
5fac247f
AA
20332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2034
2035 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2036 (m32r_linux_regset_from_core_section): Remove.
2037 (m32r_linux_iterate_over_regset_sections): New.
2038 (m32r_linux_init_abi): Adjust gdbarch initialization.
2039
490496c3
AA
20402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2041
2042 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2043 (amd64obsd_iterate_over_regset_sections): New.
2044 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2045 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2046 Remove.
2047 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2048 regset_from_core_section initialization.
2049 * i386-tdep.c (i386_regset_from_core_section): Remove.
2050 (i386_iterate_over_regset_sections): New.
2051 (i386_gdbarch_init): Adjust gdbarch initialization.
2052 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2053 (i386_iterate_over_regset_sections): New prototype.
2054 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2055 Remove.
2056 (i386obsd_aout_iterate_over_regset_sections): New.
2057 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2058 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2059 targets.
2060 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2061 (amd64fbsd_init_abi): Call fbsd_init_abi.
2062 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2063 (i386fbsd4_init_abi): Call fbsd_init_abi.
2064 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2065 target method 'make_corefile_notes'.
2066 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2067
50c5eb53
AA
20682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2069
2070 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2071 (hppa_hpux_iterate_over_regset_sections): New.
2072 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2073 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2074 (hppa_linux_iterate_over_regset_sections): New.
2075 (hppa_linux_init_abi): Adjust.
2076 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2077 (hppanbsd_iterate_over_regset_sections): New.
2078 (hppanbsd_init_abi): Adjust.
2079 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2080 (hppaobsd_iterate_over_regset_sections): New.
2081 (hppaobsd_init_abi): Adjust.
2082
66afae4f
AA
20832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084
2085 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2086 (frv_linux_iterate_over_regset_sections): New.
2087 (frv_linux_init_abi): Adjust gdbarch initialization.
2088
ed09174e
AA
20892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2090
2091 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2092 (armbsd_iterate_over_regset_sections): New prototype.
2093 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2094 (armbsd_iterate_over_regset_sections): New.
2095 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2096 initialization.
2097
dff2166e
AA
20982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099
2100 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2101 (alpha_linux_iterate_over_regset_sections): New.
2102 (alpha_linux_init_abi): Adjust gdbarch initialization.
2103 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2104 prototype.
2105 (alphanbsd_iterate_over_regset_sections): New prototype.
2106
4108500a
AA
21072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2110 Remove.
2111 (aarch64_linux_iterate_over_regset_sections): New.
2112 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2113
a904c024
AA
21142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2115
2116 * fbsd-tdep.c: New file.
2117 * fbsd-tdep.h: New file.
2118 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2119 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2120 (ALLDEPFILES): Add fbsd-tdep.c.
2121
8f0435f7
AA
21222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2123
2124 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2125 parameter.
2126 * gdbarch.h: Regenerate.
2127 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2128 iterator.
2129 (get_core_register_section): Add parameter 'regset' and use it, if
2130 set. Add parameter 'min_size' and verify the bfd section size
2131 against it.
2132 (get_core_registers_cb): Add parameter 'regset' and pass it to
2133 get_core_register section. For the "standard" register sections
2134 ".reg" and ".reg2", set an appropriate default for human_name.
2135 (get_core_registers): Don't abort when the gdbarch has an iterator
2136 but no regset_from_core_section. Add NULL/0 for parameters
2137 'regset'/'min_size' in calls to get_core_register_section.
2138 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2139 'regset' and use it instead of calling the
2140 regset_from_core_section gdbarch method.
2141 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2142 * i386-tdep.c (i386_supply_xstateregset)
2143 (i386_collect_xstateregset, i386_xstateregset): Moved to
2144 i386-linux-tdep.c.
2145 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2146 .reg-xstate.
2147 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2148 core file support only if the regset iterator hasn't been set.
2149 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2150 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2151 Moved from i386-tdep.c and renamed to *_linux*.
2152 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2153 each callback invocation. Allow any .reg-xstate size when reading
2154 from a core file.
2155 * amd64-tdep.c (amd64_supply_xstateregset)
2156 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2157 amd64-linux-tdep.c.
2158 (amd64_regset_from_core_section): Remove.
2159 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2160 install an amd64-specific regset_from_core_section gdbarch method.
2161 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2162 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2163 Moved from amd64-tdep.c and renamed to *_linux*.
2164 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2165 to each callback invocation. Allow any .reg-xstate size when
2166 reading from a core file.
2167 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2168 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2169 each callback invocation.
2170 (arm_linux_init_abi): No longer set the regset_from_core_section
2171 gdbarch method.
2172 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2173 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2174 each callback invocation.
2175 (ppc_linux_init_abi): No longer set the regset_from_core_section
2176 gdbarch method.
2177 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2178 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2179 (s390_regset_from_core_section): Remove.
2180 (s390_iterate_over_regset_sections): Add regset parameter to each
2181 callback invocation.
2182 (s390_gdbarch_init): No longer set the regset_from_core_section
2183 gdbarch method. Drop initialization of deleted tdep fields.
2184
5aa82d05
AA
21852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2186
2187 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2188 (amd64_linux_iterate_over_regset_sections): New.
2189 (amd64_linux_init_abi_common): Don't install the regset section
2190 list, but the new iterator in gdbarch.
2191 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2192 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2193 (arm_linux_iterate_over_regset_sections): ...here. New function.
2194 (arm_linux_init_abi): Set iterator instead of section list.
2195 * corelow.c (get_core_registers_cb): New function, logic moved
2196 from...
2197 (get_core_registers): ...loop body here. Use new iterator method
2198 instead of walking through the regset section list.
2199 * gdbarch.sh: Remove 'core_regset_sections'. New method
2200 'iterate_over_regset_sections'. New typedef
2201 'iterate_over_regset_sections_cb'.
2202 * gdbarch.c: Regenerate.
2203 * gdbarch.h: Likewise.
2204 * i386-linux-tdep.c (i386_linux_regset_sections)
2205 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2206 Remove.
2207 (i386_linux_iterate_over_regset_sections): New.
2208 (i386_linux_init_abi): Don't choose a regset section list, but
2209 install new iterator in gdbarch.
2210 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2211 (linux_collect_regset_section_cb): New function, logic moved
2212 from...
2213 (linux_collect_thread_registers): ...loop body here. Use iterator
2214 method instead of walking through list.
2215 (linux_make_corefile_notes_1): Check for presence of iterator
2216 method instead of regset section list.
2217 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2218 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2219 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2220 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2221 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2222 (ppc_linux_init_abi): Don't choose from above regset section
2223 lists, but install new iterator in gdbarch.
2224 * regset.h (struct core_regset_section): Remove.
2225 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2226 have_linux_v1, have_linux_v2, and have_tdb.
2227 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2228 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2229 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2230 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2231 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2232 (s390_iterate_over_regset_sections): ...here. New function. Use
2233 new tdep fields.
2234 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2235 regset section lists, but install new iterator.
2236
2eca4a8d
JK
22372014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2238
2239 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2240
a73c2b56
SM
22412014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2242
2243 * progspace.c (print_program_space): Don't prune program spaces
2244 before printing them.
2245
03d46957
PA
22462014-09-25 Pedro Alves <palves@redhat.com>
2247
2248 * infrun.c (user_visible_resume_ptid): Don't check
2249 singlestep_breakpoints_inserted_p.
2250
e558d7c1
PA
22512014-09-25 Pedro Alves <palves@redhat.com>
2252
2253 * breakpoint.c (should_be_inserted): Add debug output.
2254
7f89fd65
PA
22552014-09-25 Pedro Alves <palves@redhat.com>
2256
2257 * infrun.c (stepping_past_instruction_at)
2258 (clear_exit_convenience_vars): Point at infrun.h instead of
2259 inferior.h.
2260 (handle_signal_stop): Fix typo.
2261
b7576e5c
YQ
22622014-09-24 Yao Qi <yao@codesourcery.com>
2263
2264 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2265 bitmask.
2266
9a6cf368
GB
22672014-09-22 Gary Benson <gbenson@redhat.com>
2268
2269 * target.c (target_stop): Updated comment.
2270
03f4463b
GB
22712014-09-22 Gary Benson <gbenson@redhat.com>
2272
2273 * target/target.h (target_stop_ptid): Renamed as...
2274 (target_stop_and_wait): New function. Updated comment.
2275 All uses updated.
2276 (target_continue_ptid): Renamed as...
2277 (target_continue_no_signal): New function. Updated comment.
2278 All uses updated.
2279
a25a5a45
PA
22802014-09-22 Pedro Alves <palves@redhat.com>
2281
2282 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2283 and "auto" merged.
2284 * breakpoint.c (enum ugll_insert_mode): New enum.
2285 (always_inserted_mode): Now a plain boolean.
2286 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2287 (breakpoints_always_inserted_mode): Delete.
2288 (breakpoints_should_be_inserted_now): New function.
2289 (insert_breakpoints): Pass UGLL_INSERT to
2290 update_global_location_list instead of calling
2291 insert_breakpoint_locations manually.
2292 (create_solib_event_breakpoint_1): New, factored out from ...
2293 (create_solib_event_breakpoint): ... this.
2294 (create_and_insert_solib_event_breakpoint): Use
2295 create_solib_event_breakpoint_1 instead of calling
2296 insert_breakpoint_locations manually.
2297 (update_global_location_list): Change parameter type from boolean
2298 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2299 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2300 (update_global_location_list_nothrow): Change parameter type from
2301 boolean to enum ugll_insert_mode.
2302 (_initialize_breakpoint): "breakpoint always-inserted" option is
2303 now a boolean command. Update help text.
2304 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2305 (breakpoints_should_be_inserted_now): New declaration.
2306 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2307 Remove breakpoints_always_inserted_mode check.
2308 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2309 * remote.c (remote_start_remote): Likewise.
2310
04086b45
PA
23112014-09-22 Pedro Alves <palves@redhat.com>
2312
2313 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2314 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2315 Instead, pass UGLL_INSERT to update_global_location_list.
2316 (update_global_location_list): Change parameter type from boolean
2317 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2318 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2319 (create_solib_event_breakpoint_1): New, factored out from ...
2320 (create_solib_event_breakpoint): ... this.
2321 (create_and_insert_solib_event_breakpoint): Use
2322 create_solib_event_breakpoint_1 instead of calling
2323 insert_breakpoint_locations manually.
2324 (update_global_location_list): Handle UGLL_INSERT.
2325
44702360
PA
23262014-09-22 Pedro Alves <palves@redhat.com>
2327
2328 * breakpoint.c (enum ugll_insert_mode): New enum.
2329 (update_global_location_list)
2330 (update_global_location_list_nothrow): Change parameter type from
2331 boolean to enum ugll_insert_mode. All callers adjusted.
2332
93c6145a
JB
23332014-09-19 Joel Brobecker <brobecker@adacore.com>
2334
2335 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2336 SystemTap support in GDB.
2337
89a5711c
DB
23382014-09-19 Don Breazeal <donb@codesourcery.com>
2339
2340 * linux-nat.c (linux_handle_extended_wait): Call
2341 linux_ptrace_get_extended_event.
2342 (wait_lwp): Call linux_is_extended_waitstatus.
2343 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2344 and linux_is_extended_waitstatus.
2345 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2346 linux_ptrace_get_extended_event.
2347 (linux_ptrace_get_extended_event): New function.
2348 (linux_is_extended_waitstatus): New function.
2349 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2350 (linux_is_extended_waitstatus): New declarations.
2351
c3b7b696
YQ
23522014-09-19 Yao Qi <yao@codesourcery.com>
2353
2354 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2355 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2356 comments. Callers update.
2357 (dwarf_decode_lines): Likewise.
2358 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2359 comments. Skip the line table if 'lowpc' is greater than
2360 'address'. Don't check
2361 dwarf2_per_objfile->has_section_at_zero.
2362
2b4fd423
DE
23632014-09-18 Doug Evans <dje@google.com>
2364
2365 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2366 * python/py-symtab.c (stpy_get_producer): New function.
2367 (symtab_object_getset): Add "producer" attribute.
2368
5e43d467
UW
23692014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2370
2371 PR gdb/17384
2372 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2373 (do_captured_read_memory_integer): Remove.
2374 (safe_read_memory_integer): Use target_read_memory directly instead
2375 of catching errors in do_captured_read_memory_integer.
2376
04e79979
MR
23772014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2378
2379 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2380 not gdb/doc.
2381
76aeec5b
SDJ
23822014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2383
2384 * objc-lang.c (find_implementation_from_class): Remove dead code.
2385
2f693f9d
SDJ
23862014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2387
2388 PR cli/7233
2389 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2390 "fprintf_unfiltered (gdb_stdlog...)".
2391
bb9d5f81
PP
23922014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2393
2394 PR breakpoints/12526
2395 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2396 val_bitsize.
2397 * breakpoint.c (watch_command_1): Use these fields to retain
2398 bitfield information.
2399 (extract_bitfield_from_watchpoint_value): New function.
2400 (watchpoint_check): Use it.
2401 (update_watchpoint): Use it. Optimize the address and length of a
2402 HW watchpoint pointing to a bitfield.
2403 * value.h (unpack_value_bitfield): New prototype.
2404 * value.c (unpack_value_bitfield): Make extern.
2405
05db5edd
ST
24062014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2407
2408 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2409 x86-dregs.o.
2410 * gnu-nat.c (inf_threads): New function.
2411 * gnu-nat.h (inf_threads_ftype): New typedef.
2412 (inf_threads): New declaration.
2413 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2414 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2415 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2416 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2417 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2418 (i386_gnu_dr_get_control): New functions.
2419 (reg_addr): New structure.
2420 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2421 i386 debugging register hooks.
2422 * NEWS: Mention this.
2423
5a578da5
OJ
24242014-08-13 Omair Javaid <omair.javaid@linaro.org>
2425
2426 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2427 vector data transfer instructions.
2428 (arm_record_coproc_data_proc): Updated.
2429
f20f80dd
OJ
24302014-08-13 Omair Javaid <omair.javaid@linaro.org>
2431
2432 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2433 arm_record_exreg_ld_st_insn.
2434 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2435 load/store insns.
2436
851f26ae
OJ
24372014-08-13 Omair Javaid <omair.javaid@linaro.org>
2438
2439 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2440 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2441 processing instructions.
2442
1e1b6563
OJ
24432014-08-13 Omair Javaid <omair.javaid@linaro.org>
2444
2445 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2446 for advance SIMD struct ld/st insn.
2447 (thumb2_record_decode_insn_handler): Replace stub handler with
2448 thumb2_record_asimd_struct_ld_st.
2449
60cc5e93
OJ
24502014-08-13 Omair Javaid <omair.javaid@linaro.org>
2451
2452 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2453 for asimd, vfp and coprocessor insns.
2454 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2455 and coprocessor insns.
2456 (thumb2_record_coproc_insn): New function.
2457 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2458 handlers.
2459 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2460 opcode 110 insns.
2461
81219e53
DE
24622014-09-13 Doug Evans <xdje42@gmail.com>
2463
2464 * NEWS: Mention new "queue-signal" command.
2465 * infcmd.c (queue_signal_command): New function.
2466 (_initialize_infcmd): Add new queue-signal command.
2467
d36bf488
DE
24682014-09-13 Doug Evans <xdje42@gmail.com>
2469
2470 * linux-nat.c (wait_lwp): Add debugging printf.
2471 (linux_nat_wait_1): Ditto.
2472
f37f681c
PA
24732014-09-12 Pedro Alves <palves@redhat.com>
2474
2475 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2476 (create_and_insert_solib_event_breakpoint): New functions.
2477 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2478 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2479 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2480 (remove_dbx_link_breakpoint): Delete function.
2481 (insert_dbx_link_bpt_in_file): Use
2482 create_and_insert_solib_event_breakpoint instead of
2483 deprecated_insert_raw_breakpoint.
2484 (procfs_wait): Don't check whether we hit __dbx_link here.
2485 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2486 here.
2487 * solib-irix.c (base_breakpoint): Delete global.
2488 (disable_break): Delete function.
2489 (enable_break): Use create_solib_event_breakpoint
2490 instead of deprecated_insert_raw_breakpoint.
2491 (irix_solib_handle_event): New function.
2492 (irix_solib_create_inferior_hook): Don't run the target or disable
2493 the mapping-complete breakpoint here.
2494 (_initialize_irix_solib): Install irix_solib_handle_event as
2495 so_ops->handle_event hook.
2496
9d9bf2df
EBM
24972014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2498 Ulrich Weigand  <uweigand@de.ibm.com>
2499
2500 PR tdep/17379
2501 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2502 instead of read_memory_unsigned_integer.
2503
b006a80e
GB
25042014-09-12 Gary Benson <gbenson@redhat.com>
2505
2506 * nat/linux-waitpid.c: Include common-defs.h.
2507 [GDBSERVER]: Add FIXME comment.
2508 [!GDBSERVER]: Don't include defs.h or signal.h.
2509 (linux_debug) [!GDBSERVER]: Remove empty block.
2510
296b1496
GB
25112014-09-12 Gary Benson <gbenson@redhat.com>
2512
2513 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2514 Don't include defs.h or server.h.
2515
53f81362
GB
25162014-09-12 Gary Benson <gbenson@redhat.com>
2517
2518 * nat/linux-btrace.c: Include common-defs.h.
2519 Don't include defs.h, server.h or gdbthread.h.
2520 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2521
727605ca
GB
25222014-09-12 Gary Benson <gbenson@redhat.com>
2523
2524 * common/agent.c: Include common-defs.h.
2525 Don't include defs.h or server.h.
2526 * common/buffer.c: Likewise.
2527 * common/common-debug.c: Likewise.
2528 * common/common-utils.c: Likewise.
2529 * common/errors.c: Likewise.
2530 * common/filestuff.c: Likewise.
2531 * common/format.c: Likewise.
2532 * common/gdb_vecs.c: Likewise.
2533 * common/print-utils.c: Likewise.
2534 * common/ptid.c: Likewise.
2535 * common/rsp-low.c: Likewise.
2536 * common/signals.c: Likewise.
2537 * common/vec.c: Likewise.
2538 * common/xml-utils.c: Likewise.
2539 * nat/linux-osdata.c: Likewise.
2540 * nat/linux-procfs.c: Likewise.
2541 * nat/linux-ptrace.c: Likewise.
2542 * nat/mips-linux-watch.c: Likewise.
2543 * target/waitstatus.c: Likewise.
2544
361c8ade
GB
25452014-09-12 Tom Tromey <tromey@redhat.com>
2546 Gary Benson <gbenson@redhat.com>
2547
2548 * common/common-regcache.h: New file.
2549 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2550 * regcache.h: Include common-regcache.h.
2551 (regcache_read_pc): Don't declare.
2552 * regcache.c (get_thread_regcache_for_ptid): New function.
2553 * nat/linux-btrace.c: Don't include regcache.h.
2554 Include common-regcache.h.
2555 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2556
a01cbb49
TS
25572014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2558
2559 * regcache.h (struct regset): Declare.
2560
98880d46
PA
25612014-09-11 Pedro Alves <palves@redhat.com>
2562
2563 PR gdb/17347
2564 * main.c: Include "infrun.h".
2565 (catch_command_errors, catch_command_errors_const): Wait for the
2566 foreground command to complete.
2567 * top.c (maybe_wait_sync_command_done): New function, factored out
2568 from ...
2569 (maybe_wait_sync_command_done): ... here.
2570 * top.h (maybe_wait_sync_command_done): New declaration.
2571
bd9269f7
GB
25722014-09-11 Tom Tromey <tromey@redhat.com>
2573 Gary Benson <gbenson@redhat.com>
2574
2575 * common/symbol.h: New file.
2576 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2577 * minsyms.c (find_minimal_symbol_address): New function.
2578 * common/agent.c: Include common/symbol.h.
2579 [!GDBSERVER]: Don't include objfiles.h.
2580 (agent_look_up_symbols): Use find_minimal_symbol_address.
2581
f8c1d06b
GB
25822014-09-11 Gary Benson <gbenson@redhat.com>
2583
2584 * target/target.h (target_stop_ptid, target_continue_ptid):
2585 Declare.
2586 * target.c (target_stop_ptid, target_continue_ptid): New
2587 functions.
2588 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2589 (agent_run_command): Always use target_stop_ptid and
2590 target_continue_ptid.
2591
721ec300
GB
25922014-09-11 Tom Tromey <tromey@redhat.com>
2593 Gary Benson <gbenson@redhat.com>
2594
2595 * target/target.h: New file.
2596 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2597 * target.h: Include target/target.h.
2598 (target_read_memory, target_write_memory): Don't declare.
2599 * target.c (target_read_uint32): New function.
2600 * common/agent.c: Include target/target.h.
2601 [!GDBSERVER]: Don't include target.h.
2602 (helper_thread_id): Type changed to uint32_t.
2603 (agent_get_helper_thread_id): Use target_read_uint32.
2604 (agent_run_command): Always use target_read_memory and
2605 target_write_memory.
2606 (agent_capability): Type changed to uint32_t.
2607 (agent_capability_check): Use target_read_uint32.
2608
c5e92cca
GB
26092014-09-11 Gary Benson <gbenson@redhat.com>
2610
2611 * common/common-debug.h (show_debug_regs): Declare.
2612 * common/common-debug.c (show_debug_regs): Define.
2613 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2614 all uses with show_debug_regs. Replace all uses that considered
2615 debug_hw_points as a multi-value integer with straight boolean
2616 uses.
2617 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2618 with show_debug_regs.
2619 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2620 all uses with show_debug_regs.
2621 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2622 uses with show_debug_regs.
2623
eeef931a
UW
26242014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2625
2626 * findvar.c (address_from_register): Handle targets requiring
2627 a special conversion routine even for plain pointer types.
2628
8efa9855
UW
26292014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2630
2631 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2632 (store_register): Do not call exec_one_dummy_insn.
2633
eb479039
JB
26342014-09-10 Joel Brobecker <brobecker@adacore.com>
2635
2636 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2637 dereference it first. Use value_enclosing_type instead of
2638 value_type.
2639 (ada_array_length): Likewise.
2640
deede10c
JB
26412014-09-10 Joel Brobecker <brobecker@adacore.com>
2642
2643 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2644 Adjust function implementation and documentation accordingly.
2645 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2646 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2647 Update call to ada_value_ptr_subscript.
2648
7828a5f5
JB
26492014-09-10 Joel Brobecker <brobecker@adacore.com>
2650
2651 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2652 instead of VAL's type.
2653
35782f14
JB
26542014-09-10 Joel Brobecker <brobecker@adacore.com>
2655
2656 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2657
d342a0da
DE
26582014-09-09 Doug Evans <xdje42@gmail.com>
2659
2660 PR guile/17367
2661 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2662 last parameter to pkg-config, not first.
2663 * configure.ac: Pass --with-guile provided pkg-config path to
2664 GDB_GUILE_PROGRAM_NAMES.
2665 * configure: Regenerate.
2666
b4a3d263
GKB
26672014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2668
2669 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2670 Bertazi".
2671
6e466374
MR
26722014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2673
2674 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2675 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2676 the list of sections determining GDB_OSABI_IRIX.
2677
a1ada89a
JH
26782014-09-09 James Hogan <james.hogan@imgtec.com>
2679
2680 * MAINTAINERS (Write After Approval): Add "James Hogan".
2681
86db008d
JH
26822014-09-09 James Hogan <james.hogan@imgtec.com>
2683
2684 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2685
72fde3df
JB
26862014-09-09 Joel Brobecker <brobecker@adacore.com>
2687
2688 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2689
92d8d229
DE
26902014-09-08 Doug Evans <xdje42@gmail.com>
2691
2692 PR 17247
2693 * guile.c: #include <signal.h>.
2694 (_initialize_guile): Block SIGCHLD while initializing Guile.
2695
2696 Replaces the following, which is reverted.
2697
2698 2014-07-26 Doug Evans <xdje42@gmail.com>
2699
2700 PR 17185
2701 * configure.ac: Add check for header gc/gc.h.
2702 Add check for function setenv.
2703 * configure: Regenerate.
2704 * config.in: Regenerate.
2705 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2706
d81412aa
DE
27072014-09-08 Doug Evans <xdje42@gmail.com>
2708
2709 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2710 with named constant. Fix style of pointer comparison.
2711 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2712
a9f116cb
GKB
27132014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2714
2715 PR gdb/17035
2716 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2717 decide whether we display the command on "show user".
2718 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2719 printing command name.
2720 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2721 * cli/cli-decode.c (cli_user_command_p): Create helper function
2722 to verify whether cmd_list_element is a user-defined command.
2723
c75bd3a2
JK
27242014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2725
2726 PR python/17355
2727 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2728 Fix goto out of TRY_CATCH.
2729
faa42425 27302014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2731 Tom Tromey <tromey@redhat.com>
faa42425
DE
2732
2733 PR 15276
2734 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2735 $_any_caller_matches.
2736 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2737 * python/lib/gdb/function/caller_is.py: New file.
2738
0d41ba00
DE
27392014-09-06 Doug Evans <xdje42@gmail.com>
2740
2741 * infcmd.c (program_info): Fix typo.
2742
474ca4f6
SDJ
27432014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2744
2745 PR gdb/17235
2746 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2747 'number'. New variable 'has_digit'. Rewrite code to deal with
2748 subexpressions on SDT probes.
2749
ebf13736
PA
27502014-09-04 Pedro Alves <palves@redhat.com>
2751
2752 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2753 the input is only one character long.
2754
eb0b0463
SDJ
27552014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2756
2757 PR fortran/17237
2758 * f-valprint.c (f_val_print): Specify the correct print option to
2759 use when printing integer values.
2760
5ee44bfa
GB
27612014-09-04 Gary Benson <gbenson@redhat.com>
2762
2763 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2764 Remove code to cope with LWPs wrapped as PIDs.
2765 Add assertions to ensure no wrapped LWPs are passed.
2766
4875ffdb
PA
27672014-09-04 Pedro Alves <palves@redhat.com>
2768
2769 * value.c (value_ranges_copy_adjusted): New function, factored out
2770 from ...
2771 (value_contents_copy_raw): ... here.
2772 (unpack_value_bits_as_long_1): Rename back to ...
2773 (unpack_bits_as_long): ... this. Remove 'original_value' and
2774 'result' parameters. Change return type to LONGEST.
2775 (unpack_value_bits_as_long): Delete.
2776 (unpack_value_field_as_long_1): Delete.
2777 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2778 (unpack_value_bitfield): New function.
2779 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2780 (value_fetch_lazy): Use unpack_value_bitfield.
2781 * value.h (unpack_value_bits_as_long): Delete declaration.
2782
5f3b99cf
SS
27832014-09-03 Sasha Smundak <asmundak@google.com>
2784
2785 * python/py-frame.c (frapy_read_register): New function.
2786
ac740bc7
JH
27872014-09-03 James Hogan <james.hogan@imgtec.com>
2788
2789 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2790 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2791
7d793aa9
SDJ
27922014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2793
2794 PR python/16699
2795 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2796 function.
2797 (add_cmd): Set "completer_handle_brkchars" to NULL.
2798 * cli/cli-decode.h (struct cmd_list_element)
2799 <completer_handle_brkchars>: New field.
2800 * command.h (completer_ftype_void): New typedef.
2801 (set_cmd_completer_handle_brkchars): New prototype.
2802 * completer.c (set_gdb_completion_word_break_characters): New
2803 function.
2804 (complete_line_internal): Call "completer_handle_brkchars"
2805 callback from command.
2806 * completer.h: Include "command.h".
2807 (set_gdb_completion_word_break_characters): New prototype.
2808 * python/py-cmd.c (cmdpy_completer_helper): New function.
2809 (cmdpy_completer_handle_brkchars): New function.
2810 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2811 (cmdpy_init): Set completer_handle_brkchars to
2812 cmdpy_completer_handle_brkchars.
2813
97ea6506
GB
28142014-09-03 Gary Benson <gbenson@redhat.com>
2815
2816 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2817 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2818 Loop conditions changed to equivalent form.
2819 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2820 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2821 ALL_DEBUG_ADDRESS_REGISTERS.
2822
d1437815
JB
28232014-09-03 Joel Brobecker <brobecker@adacore.com>
2824
2825 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2826 description fix.
2827
9b94fcf1
DE
28282014-09-02 Doug Evans <dje@google.com>
2829
2830 * typeprint.c (find_global_typedef): Fix comment.
2831
df7e5265
GB
28322014-09-02 Gary Benson <gbenson@redhat.com>
2833
2834 * i386-nat.h: Renamed as...
2835 * x86-nat.h: New file. All type, function and variable name
2836 prefixes changed from "i386_" to "x86_". All references updated.
2837 * i386-nat.c: Renamed as...
2838 * x86-nat.c: New file. All type, function and variable name
2839 prefixes changed from "i386_" to "x86_". All references updated.
2840 * common/i386-xstate.h: Renamed as...
2841 * common/x86-xstate.h: New file. All type, function and variable
2842 name prefixes changed from "i386_" to "x86_". All references
2843 updated.
2844 * nat/i386-cpuid.h: Renamed as...
2845 * nat/x86-cpuid.h: New file. All type, function and variable name
2846 prefixes changed from "i386_" to "x86_". All references updated.
2847 * nat/i386-gcc-cpuid.h: Renamed as...
2848 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2849 name prefixes changed from "i386_" to "x86_". All references
2850 updated.
2851 * nat/i386-dregs.h: Renamed as...
2852 * nat/x86-dregs.h: New file. All type, function and variable name
2853 prefixes changed from "i386_" to "x86_". All references updated.
2854 * nat/i386-dregs.c: Renamed as...
2855 * nat/x86-dregs.c: New file. All type, function and variable name
2856 prefixes changed from "i386_" to "x86_". All references updated.
2857
1c3569d4
MR
28582014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2859
2860 * varobj.c (_initialize_varobj): Move to the end of file.
2861
ff55e1b5
GB
28622014-08-29 Gary Benson <gbenson@redhat.com>
2863
2864 * common/common-exceptions.h: New file.
2865 * common/common-exceptions.c: Likewise.
2866 * Makefile.in (SFILES): Add common/common-exceptions.c.
2867 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2868 (COMMON_OBS): Add common-exceptions.o.
2869 (common-exceptions.o): New rule.
2870 * exceptions.h (common-exceptions.h): Include.
2871 (gdb_setjmp.h): Do not include.
2872 (return_reason): Moved to common-exceptions.h.
2873 (enum return_reason): Likewise.
2874 (RETURN_MASK): Likewise.
2875 (typedef return_mask): Likewise.
2876 (enum errors): Likewise.
2877 (struct gdb_exception): Likewise.
2878 (exceptions_state_mc_init): Likewise.
2879 (exceptions_state_mc_action_iter): Likewise.
2880 (exceptions_state_mc_action_iter_1): Likewise.
2881 (TRY_CATCH): Likewise.
2882 (throw_exception): Likewise.
2883 (throw_verror): Likewise.
2884 (throw_vquit): Likewise.
2885 (throw_error): Likewise.
2886 (throw_quit): Likewise.
2887 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2888 (enum catcher_action): Likewise.
2889 (struct catcher): Likewise.
2890 (current_catcher): Likewise.
2891 (catcher_list_size): Likewise.
2892 (exceptions_state_mc_init): Likewise.
2893 (catcher_pop): Likewise.
2894 (exceptions_state_mc): Likewise.
2895 (exceptions_state_mc_action_iter): Likewise.
2896 (exceptions_state_mc_action_iter_1): Likewise.
2897 (throw_exception): Likewise.
2898 (exception_messages): Likewise.
2899 (exception_messages_size): Likewise.
2900 (throw_it): Likewise.
2901 (throw_verror): Likewise.
2902 (throw_vquit): Likewise.
2903 (throw_error): Likewise.
2904 (throw_quit): Likewise.
2905 (prepare_to_throw_exception): New function.
2906
e9bcb658
GB
29072014-08-29 Gary Benson <gbenson@redhat.com>
2908
2909 * common/gdb_setjmp.h: New file.
2910 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2911 * configure.ac: Move sigsetjmp check...
2912 * common/common.m4: ...here.
2913 * configure: Regenerate.
2914 * cp-support.c (SIGJMP_BUF): Delete.
2915 (SIGSETJMP): Likewise.
2916 (SIGLONGJMP): Likewise.
2917 * exceptions.h (gdb_setjmp.h): Include.
2918 (setjmp.h): Do not include.
2919 (EXCEPTIONS_SIGJMP_BUF): Delete.
2920 (EXCEPTIONS_SIGSETJMP): Likewise.
2921 (EXCEPTIONS_SIGLONGJMP): Likewise.
2922 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2923 from gdb_setjmp.h.
2924 * exceptions.c: Likewise.
2925
e3180625
GB
29262014-08-29 Gary Benson <gbenson@redhat.com>
2927
2928 * cleanups.h: Moved to...
2929 * common/cleanups.h: New file.
2930 * cleanups.c: Moved to...
2931 * common/cleanups.c: New file. Include common-defs.h and
2932 cleanups.h. Do not include defs.h.
2933 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2934 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2935 (cleanups.o): New rule.
2936
e3d6ba5d
GB
29372014-08-29 Gary Benson <gbenson@redhat.com>
2938
2939 * common/errors.h (internal_warning): New declaration.
2940 (internal_vwarning): Likewise.
2941 * common/errors.c (internal_warning): New function.
2942 * utils.h (internal_warning): Don't declare.
2943 (internal_vwarning): Likewise.
2944 * utils.c (internal_warning): Removed.
2945
075c7033
GB
29462014-08-29 Gary Benson <gbenson@redhat.com>
2947
2948 * main.c (captured_main): Use warning during startup.
2949 Prefix startup warning messages with command name.
2950
91b35fd0
GB
29512014-08-29 Gary Benson <gbenson@redhat.com>
2952
2953 * main.c (captured_main): Handle usage errors with error.
2954
b1ec390e
GB
29552014-08-29 Gary Benson <gbenson@redhat.com>
2956
2957 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2958 exit pair with a call to error. Wrap the message with _().
2959
fd0ef3dd
GB
29602014-08-29 Gary Benson <gbenson@redhat.com>
2961
2962 * main.c (captured_main): Replace a fprintf/exit
2963 pair with a call to error. Wrap the message with _().
2964
e0e6bcab
GB
29652014-08-29 Gary Benson <gbenson@redhat.com>
2966
2967 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2968 pairs with calls to error. Wrap the message with _().
2969
0d2f5c07
GB
29702014-08-29 Gary Benson <gbenson@redhat.com>
2971
2972 * utils.c (vwarning): Protect calls to target_terminal_ours
2973 and wrap_here.
2974
5df43998
GB
29752014-08-29 Gary Benson <gbenson@redhat.com>
2976
2977 * exceptions.c (print_flush): Protect calls to
2978 target_terminal_ours and wrap_here.
2979
2437fd32
GB
29802014-08-29 Gary Benson <gbenson@redhat.com>
2981
2982 * utils.h (filtered_printing_initialized): New declaration.
2983 * utils.c (abort_with_message): New function.
2984 (internal_vproblem): Use abort_with_message for first level
2985 recursive internal problems, and if gdb_stderr is not set up.
2986 Protect calls to target_terminal_ours, begin_line and query.
2987
f1f58506
DE
29882014-08-28 Doug Evans <dje@google.com>
2989
2990 * symtab.c (in_prologue): Move definition to better spot.
2991 (skip_prologue_using_sal): Ditto.
2992
aab2f208
DE
29932014-08-28 Doug Evans <dje@google.com>
2994
2995 * symtab.c (find_function_start_sal): Move definition to better spot.
2996
6b65d1b6
YQ
29972014-08-28 Yao Qi <yao@codesourcery.com>
2998
2999 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3000 found_stack_adjust in forward scan. Remove condition check
3001 on found_stack_adjust which is always true. Indent the code.
3002
a1b34d15
YQ
30032014-08-28 Yao Qi <yao@codesourcery.com>
3004
3005 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3006 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3007 (dwarf_decode_lines): Remove argument
3008 want_line_info. Remove condition check on want_line_info.
3009 Callers update.
3010
d5962de5
DE
30112014-08-27 Doug Evans <dje@google.com>
3012
3013 * dwarf2read.c (dwarf_record_line): Fix typo.
3014
9b139002
SDJ
30152014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3016
3017 * target.h (struct target_ops::to_terminal_save_ours): Remove
3018 declaration.
3019 (target_terminal_save_ours): Remove macro.
3020 * target-delegates.c: Regenerate.
3021 * inf-child.c (inf_child_target): Don't set the nonexistent
3022 field to_terminal_save_ours.
3023 * inferior.h (child_terminal_save_ours): Remove declaration.
3024 * terminal.h (gdb_save_tty_state): New declaration.
3025 * inflow.c (child_terminal_save_ours): Rename to ...
3026 (gdb_save_tty_state): ... this.
3027 * tui/tui.c: Include terminal.h.
3028 (tui_enable): Use gdb_save_tty_state instead of
3029 target_terminal_save_ours.
3030 (tui_disable): Likewise.
3031
9debeba0
DE
30322014-08-25 Doug Evans <dje@google.com>
3033
3034 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3035 Pass NULL instead of 0 for context pointer.
3036
428fc5fc
YQ
30372014-08-25 Yao Qi <yao@codesourcery.com>
3038
3039 * dwarf2read.c: Fix grammatical error.
3040
cdc07690
YQ
30412014-08-24 Yao Qi <yao@codesourcery.com>
3042
3043 * dwarf2read.c (scan_partial_symbols): Update comments.
3044 Rename argument 'need_pc' with 'set_addrmap'.
3045 (add_partial_namespace): Rename argument 'need_pc' with
3046 'set_addrmap'.
3047 (add_partial_module): Likewise.
3048 (add_partial_subprogram): Likewise. Update comments.
3049 (dwarf2_name): Fix typo.
3050
a05a36a5
DE
30512014-08-22 Doug Evans <dje@google.com>
3052
3053 PR 17276
3054 * dwarf2read.c (dwarf_record_line_p): New function.
3055 (dwarf_decode_lines_1): Ignore subsequent line number entries
3056 for the same line if any entry had a non-zero discriminator.
3057
252a6764
DE
30582014-08-22 Doug Evans <dje@google.com>
3059
3060 * buildsym.h (record_line_ftype): New typedef.
3061 (record_line): Use it.
3062 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3063 (dwarf_decode_lines_1): Call them.
3064
510db052
YQ
30652014-08-22 Yao Qi <yao@codesourcery.com>
3066
3067 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3068 (ctf_end): Remove code.
3069
22fd09ae
JK
30702014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3073 (linux_make_corefile_notes): call update_thread_list, protected against
3074 exceptions.
3075
656e8868
PA
30762014-08-21 Pedro Alves <palves@redhat.com>
3077
3078 * infcmd.c (attach_command): Remove comment.
3079
de589d04
WN
30802014-08-21 Bin Cheng <bin.cheng@arm.com>
3081
3082 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3083 unsigned LONGEST to ULONGEST.
3084
2a31c623
PA
30852014-08-20 Pedro Alves <palves@redhat.com>
3086
3087 * Makefile.in (check-read1): New rule.
3088
d36430db
JB
30892014-08-20 Joel Brobecker <brobecker@adacore.com>
3090
3091 * value.c (value_from_contents_and_address): Strip resolved_type's
3092 typedef layers before checking its TYPE_DATA_LOCATION.
3093
000339af
PA
30942014-08-20 Pedro Alves <palves@redhat.com>
3095
3096 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3097
5f52445b
YQ
30982014-08-20 Yao Qi <yao@codesourcery.com>
3099
3100 * amd64-tdep.c (amd64_classify): Add a blank line after the
3101 example. Move "*/" to a new line.
3102 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3103 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3104 * dwarf2read.c (psymtab_include_file_name): Likewise.
3105
9a0dc9e3
PA
31062014-08-19 Andrew Burgess <aburgess@broadcom.com>
3107 Pedro Alves <palves@redhat.com>
3108
3109 PR symtab/14604
3110 PR symtab/14605
3111 * ada-lang.c (coerce_unspec_val_to_type): Use
3112 value_contents_copy_raw.
3113 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3114 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3115 * cp-valprint.c (cp_print_value_fields): Let the common printing
3116 code handle optimized out values.
3117 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3118 * d-valprint.c (dynamic_array_type): Use
3119 value_bits_any_optimized_out.
3120 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3121 check_any_valid fields.
3122 (check_pieced_value_bits): Delete and inline ...
3123 (check_pieced_synthetic_pointer): ... here.
3124 (check_pieced_value_validity): Delete.
3125 (check_pieced_value_invalid): Delete.
3126 (pieced_value_funcs): Remove check_validity and check_any_valid
3127 fields.
3128 (read_pieced_value): Use mark_value_bits_optimized_out.
3129 (write_pieced_value): Switch to use
3130 mark_value_bytes_optimized_out.
3131 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3132 of assuming the whole value is optimized out.
3133 * findvar.c (read_frame_register_value): Remove special handling
3134 of optimized out registers.
3135 (value_from_register): Use mark_value_bytes_optimized_out.
3136 * frame-unwind.c (frame_unwind_got_optimized): Use
3137 mark_value_bytes_optimized_out.
3138 * jv-valprint.c (java_value_print): Adjust.
3139 (java_print_value_fields): Let the common printing code handle
3140 optimized out values.
3141 * mips-tdep.c (mips_print_register): Remove special handling of
3142 optimized out registers.
3143 * opencl-lang.c (lval_func_check_validity): Delete.
3144 (lval_func_check_any_valid): Delete.
3145 (opencl_value_funcs): Remove check_validity and check_any_valid
3146 fields.
3147 * p-valprint.c (pascal_object_print_value_fields): Let the common
3148 printing code handle optimized out values.
3149 * stack.c (read_frame_arg): Remove special handling of optimized
3150 out values. Fetch both VAL and ENTRYVAL before comparing
3151 contents. Adjust to value_available_contents_eq rename.
3152 * valprint.c (valprint_check_validity)
3153 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3154 (val_print_array_elements): Adjust.
3155 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3156 (value_bits_any_optimized_out): New function.
3157 (value_entirely_covered_by_range_vector): New function, factored
3158 out from value_entirely_unavailable.
3159 (value_entirely_unavailable): Reimplement.
3160 (value_entirely_optimized_out): New function.
3161 (insert_into_bit_range_vector): New function, factored out from
3162 mark_value_bits_unavailable.
3163 (mark_value_bits_unavailable): Reimplement.
3164 (struct ranges_and_idx): New struct.
3165 (find_first_range_overlap_and_match): New function, factored out
3166 from value_available_contents_bits_eq.
3167 (value_available_contents_bits_eq): Rename to ...
3168 (value_contents_bits_eq): ... this. Check both unavailable
3169 contents and optimized out contents.
3170 (value_available_contents_eq): Rename to ...
3171 (value_contents_eq): ... this.
3172 (allocate_value_lazy): Remove reference to the old optimized_out
3173 boolean.
3174 (allocate_optimized_out_value): Use
3175 mark_value_bytes_optimized_out.
3176 (require_not_optimized_out): Adjust to check whether the
3177 optimized_out vec is empty.
3178 (ranges_copy_adjusted): New function, factored out from
3179 value_contents_copy_raw.
3180 (value_contents_copy_raw): Also copy the optimized out ranges.
3181 Assert the destination ranges aren't optimized out.
3182 (value_contents_copy): Update comment, remove call to
3183 require_not_optimized_out.
3184 (value_contents_equal): Adjust to check whether the optimized_out
3185 vec is empty.
3186 (set_value_optimized_out, value_optimized_out_const): Delete.
3187 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3188 New functions.
3189 (value_entirely_optimized_out, value_bits_valid): Delete.
3190 (value_copy): Take a VEC copy of the 'optimized_out' field.
3191 (value_primitive_field): Remove special handling of optimized out.
3192 (value_fetch_lazy): Assert that lazy values have no unavailable
3193 regions. Use value_bits_any_optimized_out. Remove some special
3194 handling for optimized out values.
3195 * value.h: Add intro comment about <optimized out> and
3196 <unavailable>.
3197 (struct lval_funcs): Remove check_validity and check_any_valid
3198 fields.
3199 (set_value_optimized_out, value_optimized_out_const): Remove.
3200 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3201 New declarations.
3202 (value_bits_any_optimized_out): New declaration.
3203 (value_bits_valid): Delete declaration.
3204 (value_available_contents_eq): Rename to ...
3205 (value_contents_eq): ... this, and extend comments.
3206
6694c411
JK
32072014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3208
3209 Fix -fsanitize=address on unreadable inferior strings.
3210 * valprint.c (val_print_string): Fix access before BUFFER.
3211
89a1c21a
SM
32122014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3213
3214 * target.c (target_struct_size): Remove.
3215 (target_struct_allocsize): Remove.
3216 (DEFAULT_ALLOCSIZE): Remove.
3217 (target_ops_p): New typedef.
3218 (DEF_VEC_P (target_ops_p)): New vector type.
3219 (target_structs): Change type to VEC (target_ops_p).
3220 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3221 (find_default_run_target): Rewrite for loop following changes to
3222 target_structs.
3223
cb417230
JB
32242014-08-19 Joel Brobecker <brobecker@adacore.com>
3225
3226 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3227 Adjust code accordingly. Adjust function description comment.
3228
817e0957
YQ
32292014-08-19 Yao Qi <yao@codesourcery.com>
3230
3231 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3232 types.
3233
2974be62
AM
32342014-08-19 Alan Modra <amodra@gmail.com>
3235
3236 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3237 * config.in: Regenerate.
3238 * configure: Regenerate.
3239
34abf635
GB
32402014-08-19 Tom Tromey <tromey@redhat.com>
3241 Gary Benson <gbenson@redhat.com>
3242
3243 * common/common-debug.h: New file.
3244 * common/common-debug.c: Likewise.
3245 * debug.c: Likewise.
3246 * Makefile.in (SFILES): Add common/common-debug.c.
3247 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3248 (COMMON_OBS): Add common-debug.o and debug.o.
3249 (common-debug.o): New rule.
3250 * common/common-defs.h: Include common-debug.h.
3251 * common/agent.c (debug_agent_printf): New function.
3252 (DEBUG_AGENT): Redefine.
3253 * nat/i386-dregs.c (debug_printf): Undefine.
3254
f6e94d78
GB
32552014-08-19 Gary Benson <gbenson@redhat.com>
3256
3257 * common/common-defs.h: Include print-utils.h.
3258 * utils.h: Do not include print-utils.h.
3259
9239eeab
GB
32602014-08-19 Tom Tromey <tromey@redhat.com>
3261 Gary Benson <gbenson@redhat.com>
3262
3263 * common/common-types.h: New file.
3264 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3265 * common/common-defs.h: Include common-types.h.
3266 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3267 (ULONGEST): Remove.
3268
ef87c8bb
GB
32692014-08-19 Tom Tromey <tromey@redhat.com>
3270 Gary Benson <gbenson@redhat.com>
3271
3272 * common/errors.h: New file.
3273 * common/errors.c: Likewise.
3274 * Makefile.in (SFILES): Add common/errors.c.
3275 (HFILES_NO_SRCDIR): Add common/errors.h.
3276 (COMMON_OBS): Add errors.o.
3277 (errors.o): New rule.
3278 * common/common-defs.h: Include errors.h.
3279 * utils.h (perror_with_name, error, verror, warning, vwarning):
3280 Don't declare.
3281 * common/common-utils.h: (malloc_failure, internal_error):
3282 Likewise.
3283
196a707b
GB
32842014-08-19 Gary Benson <gbenson@redhat.com>
3285
3286 * utils.c (internal_vproblem): Always print the message.
3287
ded4fc8f
DE
32882014-08-18 Doug Evans <dje@google.com>
3289
3290 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3291
950c97d8
JB
32922014-08-18 Joel Brobecker <brobecker@adacore.com>
3293
3294 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3295 Return 0 if TYPE is dynamic.
3296 (print_range): Add handling of dynamic ranges.
3297
3cdcd0ce
JB
32982014-08-18 Keven Boell <keven.boell@intel.com>
3299 Joel Brobecker <brobecker@adacore.com>
3300
3301 * gdbtypes.h (struct main_type): Add field "data_location".
3302 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3303 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3304 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3305 a dynamic data location.
3306 (resolve_dynamic_type): Add DW_AT_data_location handling.
3307 (copy_recursive, copy_type): Copy the data_location information
3308 when present.
3309 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3310 * value.c (value_from_contents_and_address): Add
3311 DW_AT_data_location handling.
3312
08412b07
JB
33132014-08-18 Keven Boell <keven.boell@intel.com>
3314 Joel Brobecker <brobecker@adacore.com>
3315
3316 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3317 field "get_object_address".
3318 * dwarf2expr.c (execute_stack_op): Add handling for
3319 DW_OP_push_object_address.
3320 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3321 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3322 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3323 (dwarf_expr_get_obj_addr): New function.
3324 (dwarf_expr_ctx_funcs): Add get_object_address field.
3325 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3326 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3327 (dwarf2_evaluate_property): Add parameter "address". Use it.
3328 (needs_get_obj_addr): New function.
3329 (needs_frame_ctx_funcs): Add get_object_address field.
3330 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3331 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3332 (resolve_dynamic_array): Likewise.
3333
84754697
JB
33342014-08-18 Joel Brobecker <brobecker@adacore.com>
3335
3336 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3337 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3338 fixed value for records and unions for which some GNAT encodings
3339 are present.
3340
da5c522f
JB
33412014-08-18 Joel Brobecker <brobecker@adacore.com>
3342
3343 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3344 rewrite to avoid "else if" and "else" constructs. Should be
3345 a no-op in practice.
3346
0d72a7c3
JB
33472014-08-18 Joel Brobecker <brobecker@adacore.com>
3348
3349 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3350 of lexical block.
3351
e66d4446
SC
33522014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3353
3354 PR c++/17132
3355 * eval.c: Update all calls to find_overload_match.
3356 * valarith.c: Likewise.
3357 (value_user_defined_cpp_op, value_user_defined_op): New
3358 argument NOSIDE. Update all callers.
3359 * valops.c (find_overload_match): New argument NOSIDE.
3360 * value.h (find_overload_match): Update signature.
3361
940df408
SC
33622014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3363
3364 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3365 'items' methods instead of 'iteritems' method on dictionaries.
3366
699ca60a
DE
33672014-08-15 Doug Evans <dje@google.com>
3368
3369 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3370 closer to use.
3371
37780ee5
DE
33722014-08-15 Doug Evans <dje@google.com>
3373
3374 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3375
0ad93d4f
DE
33762014-08-15 Doug Evans <dje@google.com>
3377
3378 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3379
20d8c372
DE
33802014-08-15 Doug Evans <dje@google.com>
3381
3382 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3383 unused.
3384
cb039ba4
EZ
33852014-08-15 Eli Zaretskii <eliz@gnu.org>
3386
3387 * dcache.h: Include target.h, to avoid compile time warnings.
3388
eb7a547a
JB
33892014-08-15 Joel Brobecker <brobecker@adacore.com>
3390
3391 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3392 frame_info" partial declaration.
3393 * gdbarch.h: Regenerate.
3394
783cecc8
YQ
33952014-08-15 Yao Qi <yao@codesourcery.com>
3396
3397 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3398 Add parameter 'decode_for_pst_p'. Callers update.
3399
65c749e7
YQ
34002014-08-13 Yao Qi <yao@codesourcery.com>
3401
3402 PR build/17104
3403 * configure.ac: Use local variable 'pos'.
3404 * configure: Regenerated.
3405
d769e349
DE
34062014-08-11 Doug Evans <dje@google.com>
3407
3408 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3409 message, it is redundant with "Reading symbols from ..." message.
3410
24f1235e
DE
34112014-08-10 Doug Evans <xdje42@gmail.com>
3412
3413 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3414
dcd2e6ef
YQ
34152014-08-09 Yao Qi <yao@codesourcery.com>
3416
3417 PR remote/9053
3418 * remote.c (remote_xfer_partial): Remove dead code.
3419
070bdf0b
AA
34202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3421
3422 * ia64-linux-tdep.c: Include "regset.h".
3423 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3424 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3425 (ia64_linux_supply_fpregset): New function.
3426 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3427 (ia64_linux_regset_from_core_section): New function.
3428 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3429 method.
3430
08f9f542
AA
34312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3432
3433 * m68klinux-tdep.c: Include "regset.h".
3434 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3435 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3436 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3437 (m68k_linux_regset_from_core_section): New function.
3438 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3439 method.
3440
8f1cee41
AA
34412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3442
3443 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3444 function. Move logic to...
3445 (tilegx_linux_regmap): ... this new register map.
3446 (tilegx_linux_regset): Refer to register map, replace supply
3447 method by regcache_supply_regset, and add collect method.
3448 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3449 TILEGX_FIRST_EASY_REGNUM.
3450
c5741217
AA
34512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3452
3453 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3454 that calls regcache_supply_regset and handles the EPC register
3455 separately. Move main logic to...
3456 (score7_linux_gregmap): ... this new register map.
3457 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3458 (score7_linux_gregset): Refer to register map. Add collect method.
3459 (score7_linux_regset_from_core_section): Replace
3460 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3461 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3462 (struct regset): Delete unused forward declaraction.
3463 (struct pt_regs): Delete structure definition.
3464 (elf_gregset_t): Delete typedef.
3465
81580573
AA
34662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3467
3468 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3469 (nios2_core_regset): Add collect method.
3470
ba199d7d
AA
34712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3472
3473 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3474 platform-independent and don't write to read-only input buffer.
3475 (m32r_linux_collect_gregset): New function.
3476 (m32r_linux_gregset): Add collect method.
3477
0006a9da
AA
34782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3479
3480 * hppa-linux-tdep.c (greg_map): Rename to...
3481 (hppa_linux_gregmap): ... this. Also convert to
3482 regcache_map_entry format.
3483 (hppa_linux_supply_regset): Delete function.
3484 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3485 (hppa_linux_fpregmap): ... this new register map.
3486 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3487 register map, replace supply method by regcache_supply_regset, and
3488 add collect method regcache_collect_regset.
3489
901e1b23
AA
34902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3491
3492 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3493 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3494 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3495 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3496 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3497 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3498 (frv_linux_supply_gregset): Replace main logic by call to
3499 regcache_supply_regset, but keep clearing gr32-gr63.
3500 (frv_linux_supply_fpregset): Delete function.
3501 (frv_linux_gregset): Refer to appropriate register map and add
3502 regcache_collect_regset as the collect method.
3503 (frv_linux_fpregset): Likewise. Also exchange the supply method
3504 by regcache_supply_regset.
3505
1d6e7555
AA
35062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3507
3508 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3509 by call to alpha_supply_int_regs.
3510 (alpha_linux_collect_gregset): New function.
3511 (alpha_linux_supply_fpregset): Replace logic by call to
3512 alpha_supply_fp_regs.
3513 (alpha_linux_collect_fpregset): New function.
3514 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3515
d4d793bf
AA
35162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3517
3518 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3519 by call to regcache_collect_regset.
3520 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3521 instead of aarch64_linux_supply_gregset/_fpregset.
3522 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3523 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3524 header file instead.
3525 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3526 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3527 functions. Move logic to ...
3528 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3529 register maps.
3530 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3531 refer to new register maps, replace *_regset_from_core by
3532 regcache_supply_regset, and also use regcache_collect_regset.
3533 * aarch64-linux-tdep.h: Include "regset.h".
3534 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3535 Delete prototypes.
3536 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3537 macros, moved from C source file.
3538 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3539 variable declarations.
3540
99b7da5d
AA
35412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3542
3543 * s390-linux-nat.c: Include "regset.h".
3544 (regmap_gregset): Delete macro.
3545 (s390_64_regmap_gregset): New register map for
3546 regcache_supply/_collect_regset.
3547 (s390_64_gregset): New regset.
3548 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3549 (regmap_fpregset): Delete macro.
3550 (s390_native_supply, s390_native_collect): Delete functions.
3551 (supply_gregset, fill_gregset): Replace s390-specific regmap
3552 handling by a call to regcache_supply/_collect_regset.
3553 (supply_fpregset, fill_fpregset): Call regcache_supply/
3554 _collect_regset instead of s390_native_supply/_collect.
3555 (fetch_regset, store_regset): Likewise. Also change the last
3556 parameter to a regset instead of a regmap.
3557 (s390_linux_fetch_inferior_registers)
3558 (390_linux_store_inferior_registers): Adjust last parameter in
3559 calls to fetch_regset and store_regset.
3560 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3561 (s390_gregmap): ... this. Also make static const and convert to
3562 regcache_map_entry format.
3563 (s390x_regmap_gregset): Delete.
3564 (s390_regmap_fpregset): Rename to...
3565 (s390_fpregmap): ... this. Make static const and convert to
3566 regcache_map_entry format.
3567 (s390_regmap_upper, s390_regmap_last_break)
3568 (s390x_regmap_last_break, s390_regmap_system_call)
3569 (s390_regmap_tdb): Likewise.
3570 (s390_supply_regset, s390_collect_regset): Remove functions.
3571 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3572 s390_supply_regset.
3573 (s390_gregset, s390_fpregset, s390_upper_regset)
3574 (s390_last_break_regset, s390x_last_break_regset)
3575 (s390_system_call_regset, s390_tdb_regset): Make global and
3576 replace s390_supply/_collect_regset by regcache_supply/
3577 _collect_regset.
3578 (s390x_gregset): Delete.
3579 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3580 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3581 (s390_regmap_fpregset, s390_regmap_last_break)
3582 (s390x_regmap_last_break, s390_regmap_system_call)
3583 (s390_regmap_tdb): Delete global variable declarations.
3584 (s390_gregset, s390_fpregset, s390_last_break_regset)
3585 (s390x_last_break_regset, s390_system_call_regset)
3586 (s390_tdb_regset): New global variable declarations.
3587
0b309272
AA
35882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3589
3590 * regcache.c: Include "regset.h".
3591 (regcache_transfer_regset): New local function.
3592 (regcache_supply_regset, regcache_collect_regset): New functions.
3593 * regcache.h (struct regcache_map_entry): New structure.
3594 (REGCACHE_MAP_SKIP): New enum value.
3595 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3596
7fefa8d7
AA
35972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3598
3599 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3600 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3601 (ppc_linux_collect_gregset ): Likewise.
3602 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3603 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3604 (ppc_collect_vrregset): Likewise.
3605 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3606 Likewise.
3607
96c4f946
YQ
36082014-08-07 Yao Qi <yao@codesourcery.com>
3609
3610 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3611 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3612 * remote.c (remote_read_bytes): Likewise.
3613
fffbe6a8
YQ
36142014-08-07 Yao Qi <yao@codesourcery.com>
3615
3616 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3617
5ee8a82c
YQ
36182014-08-07 Yao Qi <yao@codesourcery.com>
3619
3620 PR remote/17230
3621 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3622 TARGET_XFER_OK instead of 0.
3623
bb974a24
GB
36242014-08-07 Gary Benson <gbenson@redhat.com>
3625
3626 * common/common-defs.h: Include errno.h.
3627 * defs.h: Do not include errno.h.
3628 * ada-typeprint.c: Likewise.
3629 * c-typeprint.c: Likewise.
3630 * core-regset.c: Likewise.
3631 * corefile.c: Likewise.
3632 * corelow.c: Likewise.
3633 * event-loop.c: Likewise.
3634 * f-typeprint.c: Likewise.
3635 * gnu-nat.c: Likewise.
3636 * go32-nat.c: Likewise.
3637 * i386gnu-nat.c: Likewise.
3638 * m2-typeprint.c: Likewise.
3639 * nat/linux-btrace.c: Likewise.
3640 * p-typeprint.c: Likewise.
3641 * procfs.c: Likewise.
3642 * remote-sim.c: Likewise.
3643 * rs6000-nat.c: Likewise.
3644 * target.c: Likewise.
3645 * typeprint.c: Likewise.
3646 * ui-file.c: Likewise.
3647 * valops.c: Likewise.
3648 * valprint.c: Likewise.
3649
6d3d12eb
GB
36502014-08-07 Gary Benson <gbenson@redhat.com>
3651
3652 * common/common-defs.h: Include string.h.
3653 * aarch64-tdep.c: Do not include string.h.
3654 * ada-exp.y: Likewise.
3655 * ada-lang.c: Likewise.
3656 * ada-lex.l: Likewise.
3657 * ada-typeprint.c: Likewise.
3658 * ada-valprint.c: Likewise.
3659 * aix-thread.c: Likewise.
3660 * alpha-linux-tdep.c: Likewise.
3661 * alpha-mdebug-tdep.c: Likewise.
3662 * alpha-nat.c: Likewise.
3663 * alpha-osf1-tdep.c: Likewise.
3664 * alpha-tdep.c: Likewise.
3665 * alphanbsd-tdep.c: Likewise.
3666 * amd64-dicos-tdep.c: Likewise.
3667 * amd64-linux-tdep.c: Likewise.
3668 * amd64-nat.c: Likewise.
3669 * amd64-sol2-tdep.c: Likewise.
3670 * amd64fbsd-tdep.c: Likewise.
3671 * amd64obsd-tdep.c: Likewise.
3672 * arch-utils.c: Likewise.
3673 * arm-linux-nat.c: Likewise.
3674 * arm-linux-tdep.c: Likewise.
3675 * arm-tdep.c: Likewise.
3676 * arm-wince-tdep.c: Likewise.
3677 * armbsd-tdep.c: Likewise.
3678 * armnbsd-nat.c: Likewise.
3679 * armnbsd-tdep.c: Likewise.
3680 * armobsd-tdep.c: Likewise.
3681 * avr-tdep.c: Likewise.
3682 * ax-gdb.c: Likewise.
3683 * ax-general.c: Likewise.
3684 * bcache.c: Likewise.
3685 * bfin-tdep.c: Likewise.
3686 * breakpoint.c: Likewise.
3687 * build-id.c: Likewise.
3688 * buildsym.c: Likewise.
3689 * c-exp.y: Likewise.
3690 * c-lang.c: Likewise.
3691 * c-typeprint.c: Likewise.
3692 * c-valprint.c: Likewise.
3693 * charset.c: Likewise.
3694 * cli-out.c: Likewise.
3695 * cli/cli-cmds.c: Likewise.
3696 * cli/cli-decode.c: Likewise.
3697 * cli/cli-dump.c: Likewise.
3698 * cli/cli-interp.c: Likewise.
3699 * cli/cli-logging.c: Likewise.
3700 * cli/cli-script.c: Likewise.
3701 * cli/cli-setshow.c: Likewise.
3702 * cli/cli-utils.c: Likewise.
3703 * coffread.c: Likewise.
3704 * common/agent.c: Likewise.
3705 * common/buffer.c: Likewise.
3706 * common/buffer.h: Likewise.
3707 * common/common-utils.c: Likewise.
3708 * common/filestuff.c: Likewise.
3709 * common/filestuff.c: Likewise.
3710 * common/format.c: Likewise.
3711 * common/print-utils.c: Likewise.
3712 * common/rsp-low.c: Likewise.
3713 * common/signals.c: Likewise.
3714 * common/vec.h: Likewise.
3715 * common/xml-utils.c: Likewise.
3716 * core-regset.c: Likewise.
3717 * corefile.c: Likewise.
3718 * corelow.c: Likewise.
3719 * cp-abi.c: Likewise.
3720 * cp-name-parser.y: Likewise.
3721 * cp-support.c: Likewise.
3722 * cp-valprint.c: Likewise.
3723 * cris-tdep.c: Likewise.
3724 * d-exp.y: Likewise.
3725 * darwin-nat.c: Likewise.
3726 * dbxread.c: Likewise.
3727 * dcache.c: Likewise.
3728 * demangle.c: Likewise.
3729 * dicos-tdep.c: Likewise.
3730 * disasm.c: Likewise.
3731 * doublest.c: Likewise.
3732 * dsrec.c: Likewise.
3733 * dummy-frame.c: Likewise.
3734 * dwarf2-frame.c: Likewise.
3735 * dwarf2loc.c: Likewise.
3736 * dwarf2read.c: Likewise.
3737 * elfread.c: Likewise.
3738 * environ.c: Likewise.
3739 * eval.c: Likewise.
3740 * event-loop.c: Likewise.
3741 * exceptions.c: Likewise.
3742 * exec.c: Likewise.
3743 * expprint.c: Likewise.
3744 * f-exp.y: Likewise.
3745 * f-lang.c: Likewise.
3746 * f-typeprint.c: Likewise.
3747 * f-valprint.c: Likewise.
3748 * fbsd-nat.c: Likewise.
3749 * findcmd.c: Likewise.
3750 * findvar.c: Likewise.
3751 * fork-child.c: Likewise.
3752 * frame.c: Likewise.
3753 * frv-linux-tdep.c: Likewise.
3754 * frv-tdep.c: Likewise.
3755 * gdb.c: Likewise.
3756 * gdb_bfd.c: Likewise.
3757 * gdbarch.c: Likewise.
3758 * gdbarch.sh: Likewise.
3759 * gdbtypes.c: Likewise.
3760 * gnu-nat.c: Likewise.
3761 * gnu-v2-abi.c: Likewise.
3762 * gnu-v3-abi.c: Likewise.
3763 * go-exp.y: Likewise.
3764 * go-lang.c: Likewise.
3765 * go32-nat.c: Likewise.
3766 * guile/guile.c: Likewise.
3767 * guile/scm-auto-load.c: Likewise.
3768 * hppa-hpux-tdep.c: Likewise.
3769 * hppa-linux-nat.c: Likewise.
3770 * hppanbsd-tdep.c: Likewise.
3771 * hppaobsd-tdep.c: Likewise.
3772 * i386-cygwin-tdep.c: Likewise.
3773 * i386-dicos-tdep.c: Likewise.
3774 * i386-linux-tdep.c: Likewise.
3775 * i386-nto-tdep.c: Likewise.
3776 * i386-sol2-tdep.c: Likewise.
3777 * i386-tdep.c: Likewise.
3778 * i386bsd-tdep.c: Likewise.
3779 * i386gnu-nat.c: Likewise.
3780 * i386nbsd-tdep.c: Likewise.
3781 * i386obsd-tdep.c: Likewise.
3782 * i387-tdep.c: Likewise.
3783 * ia64-libunwind-tdep.c: Likewise.
3784 * ia64-linux-nat.c: Likewise.
3785 * inf-child.c: Likewise.
3786 * inf-ptrace.c: Likewise.
3787 * inf-ttrace.c: Likewise.
3788 * infcall.c: Likewise.
3789 * infcmd.c: Likewise.
3790 * inflow.c: Likewise.
3791 * infrun.c: Likewise.
3792 * interps.c: Likewise.
3793 * iq2000-tdep.c: Likewise.
3794 * irix5-nat.c: Likewise.
3795 * jv-exp.y: Likewise.
3796 * jv-lang.c: Likewise.
3797 * jv-typeprint.c: Likewise.
3798 * jv-valprint.c: Likewise.
3799 * language.c: Likewise.
3800 * linux-fork.c: Likewise.
3801 * linux-nat.c: Likewise.
3802 * lm32-tdep.c: Likewise.
3803 * m2-exp.y: Likewise.
3804 * m2-typeprint.c: Likewise.
3805 * m32c-tdep.c: Likewise.
3806 * m32r-linux-nat.c: Likewise.
3807 * m32r-linux-tdep.c: Likewise.
3808 * m32r-rom.c: Likewise.
3809 * m32r-tdep.c: Likewise.
3810 * m68hc11-tdep.c: Likewise.
3811 * m68k-tdep.c: Likewise.
3812 * m68kbsd-tdep.c: Likewise.
3813 * m68klinux-nat.c: Likewise.
3814 * m68klinux-tdep.c: Likewise.
3815 * m88k-tdep.c: Likewise.
3816 * machoread.c: Likewise.
3817 * macrocmd.c: Likewise.
3818 * main.c: Likewise.
3819 * mdebugread.c: Likewise.
3820 * mem-break.c: Likewise.
3821 * memattr.c: Likewise.
3822 * memory-map.c: Likewise.
3823 * mep-tdep.c: Likewise.
3824 * mi/mi-cmd-break.c: Likewise.
3825 * mi/mi-cmd-disas.c: Likewise.
3826 * mi/mi-cmd-env.c: Likewise.
3827 * mi/mi-cmd-stack.c: Likewise.
3828 * mi/mi-cmd-var.c: Likewise.
3829 * mi/mi-cmds.c: Likewise.
3830 * mi/mi-console.c: Likewise.
3831 * mi/mi-getopt.c: Likewise.
3832 * mi/mi-interp.c: Likewise.
3833 * mi/mi-main.c: Likewise.
3834 * mi/mi-parse.c: Likewise.
3835 * microblaze-rom.c: Likewise.
3836 * microblaze-tdep.c: Likewise.
3837 * mingw-hdep.c: Likewise.
3838 * minidebug.c: Likewise.
3839 * minsyms.c: Likewise.
3840 * mips-irix-tdep.c: Likewise.
3841 * mips-linux-tdep.c: Likewise.
3842 * mips-tdep.c: Likewise.
3843 * mips64obsd-tdep.c: Likewise.
3844 * mipsnbsd-tdep.c: Likewise.
3845 * mipsread.c: Likewise.
3846 * mn10300-linux-tdep.c: Likewise.
3847 * mn10300-tdep.c: Likewise.
3848 * monitor.c: Likewise.
3849 * moxie-tdep.c: Likewise.
3850 * mt-tdep.c: Likewise.
3851 * nat/linux-btrace.c: Likewise.
3852 * nat/linux-osdata.c: Likewise.
3853 * nat/linux-procfs.c: Likewise.
3854 * nat/linux-ptrace.c: Likewise.
3855 * nat/linux-waitpid.c: Likewise.
3856 * nbsd-tdep.c: Likewise.
3857 * nios2-linux-tdep.c: Likewise.
3858 * nto-procfs.c: Likewise.
3859 * nto-tdep.c: Likewise.
3860 * objc-lang.c: Likewise.
3861 * objfiles.c: Likewise.
3862 * opencl-lang.c: Likewise.
3863 * osabi.c: Likewise.
3864 * osdata.c: Likewise.
3865 * p-exp.y: Likewise.
3866 * p-lang.c: Likewise.
3867 * p-typeprint.c: Likewise.
3868 * parse.c: Likewise.
3869 * posix-hdep.c: Likewise.
3870 * ppc-linux-nat.c: Likewise.
3871 * ppc-sysv-tdep.c: Likewise.
3872 * ppcfbsd-tdep.c: Likewise.
3873 * ppcnbsd-tdep.c: Likewise.
3874 * ppcobsd-tdep.c: Likewise.
3875 * printcmd.c: Likewise.
3876 * procfs.c: Likewise.
3877 * prologue-value.c: Likewise.
3878 * python/py-auto-load.c: Likewise.
3879 * python/py-gdb-readline.c: Likewise.
3880 * ravenscar-thread.c: Likewise.
3881 * regcache.c: Likewise.
3882 * registry.c: Likewise.
3883 * remote-fileio.c: Likewise.
3884 * remote-m32r-sdi.c: Likewise.
3885 * remote-mips.c: Likewise.
3886 * remote-notif.c: Likewise.
3887 * remote-sim.c: Likewise.
3888 * remote.c: Likewise.
3889 * reverse.c: Likewise.
3890 * rs6000-aix-tdep.c: Likewise.
3891 * ser-base.c: Likewise.
3892 * ser-go32.c: Likewise.
3893 * ser-mingw.c: Likewise.
3894 * ser-pipe.c: Likewise.
3895 * ser-tcp.c: Likewise.
3896 * ser-unix.c: Likewise.
3897 * serial.c: Likewise.
3898 * sh-tdep.c: Likewise.
3899 * sh64-tdep.c: Likewise.
3900 * shnbsd-tdep.c: Likewise.
3901 * skip.c: Likewise.
3902 * sol-thread.c: Likewise.
3903 * solib-dsbt.c: Likewise.
3904 * solib-frv.c: Likewise.
3905 * solib-osf.c: Likewise.
3906 * solib-som.c: Likewise.
3907 * solib-spu.c: Likewise.
3908 * solib-target.c: Likewise.
3909 * solib.c: Likewise.
3910 * somread.c: Likewise.
3911 * source.c: Likewise.
3912 * sparc-nat.c: Likewise.
3913 * sparc-sol2-tdep.c: Likewise.
3914 * sparc-tdep.c: Likewise.
3915 * sparc64-tdep.c: Likewise.
3916 * sparc64fbsd-tdep.c: Likewise.
3917 * sparc64nbsd-tdep.c: Likewise.
3918 * sparcnbsd-tdep.c: Likewise.
3919 * spu-linux-nat.c: Likewise.
3920 * spu-multiarch.c: Likewise.
3921 * spu-tdep.c: Likewise.
3922 * stabsread.c: Likewise.
3923 * stack.c: Likewise.
3924 * std-regs.c: Likewise.
3925 * symfile.c: Likewise.
3926 * symmisc.c: Likewise.
3927 * symtab.c: Likewise.
3928 * target.c: Likewise.
3929 * thread.c: Likewise.
3930 * tilegx-linux-nat.c: Likewise.
3931 * tilegx-tdep.c: Likewise.
3932 * top.c: Likewise.
3933 * tracepoint.c: Likewise.
3934 * tui/tui-command.c: Likewise.
3935 * tui/tui-data.c: Likewise.
3936 * tui/tui-disasm.c: Likewise.
3937 * tui/tui-file.c: Likewise.
3938 * tui/tui-layout.c: Likewise.
3939 * tui/tui-out.c: Likewise.
3940 * tui/tui-regs.c: Likewise.
3941 * tui/tui-source.c: Likewise.
3942 * tui/tui-stack.c: Likewise.
3943 * tui/tui-win.c: Likewise.
3944 * tui/tui-windata.c: Likewise.
3945 * tui/tui-winsource.c: Likewise.
3946 * typeprint.c: Likewise.
3947 * ui-file.c: Likewise.
3948 * ui-out.c: Likewise.
3949 * user-regs.c: Likewise.
3950 * utils.c: Likewise.
3951 * v850-tdep.c: Likewise.
3952 * valarith.c: Likewise.
3953 * valops.c: Likewise.
3954 * valprint.c: Likewise.
3955 * value.c: Likewise.
3956 * varobj.c: Likewise.
3957 * vax-tdep.c: Likewise.
3958 * vaxnbsd-tdep.c: Likewise.
3959 * vaxobsd-tdep.c: Likewise.
3960 * windows-nat.c: Likewise.
3961 * xcoffread.c: Likewise.
3962 * xml-support.c: Likewise.
3963 * xstormy16-tdep.c: Likewise.
3964 * xtensa-linux-nat.c: Likewise.
3965
dccbb609
GB
39662014-08-07 Gary Benson <gbenson@redhat.com>
3967
3968 * common/common-defs.h: Include gdb_assert.h.
3969 * aarch64-tdep.c: Do not include gdb_assert.h.
3970 * addrmap.c: Likewise.
3971 * aix-thread.c: Likewise.
3972 * alpha-linux-tdep.c: Likewise.
3973 * alpha-mdebug-tdep.c: Likewise.
3974 * alphanbsd-tdep.c: Likewise.
3975 * amd64-nat.c: Likewise.
3976 * amd64-tdep.c: Likewise.
3977 * amd64bsd-nat.c: Likewise.
3978 * amd64fbsd-nat.c: Likewise.
3979 * amd64fbsd-tdep.c: Likewise.
3980 * amd64nbsd-nat.c: Likewise.
3981 * amd64nbsd-tdep.c: Likewise.
3982 * amd64obsd-nat.c: Likewise.
3983 * amd64obsd-tdep.c: Likewise.
3984 * arch-utils.c: Likewise.
3985 * arm-tdep.c: Likewise.
3986 * armbsd-tdep.c: Likewise.
3987 * auxv.c: Likewise.
3988 * bcache.c: Likewise.
3989 * bfin-tdep.c: Likewise.
3990 * blockframe.c: Likewise.
3991 * breakpoint.c: Likewise.
3992 * bsd-kvm.c: Likewise.
3993 * bsd-uthread.c: Likewise.
3994 * buildsym.c: Likewise.
3995 * c-exp.y: Likewise.
3996 * c-lang.c: Likewise.
3997 * charset.c: Likewise.
3998 * cleanups.c: Likewise.
3999 * cli-out.c: Likewise.
4000 * cli/cli-decode.c: Likewise.
4001 * cli/cli-dump.c: Likewise.
4002 * cli/cli-logging.c: Likewise.
4003 * cli/cli-script.c: Likewise.
4004 * cli/cli-utils.c: Likewise.
4005 * coffread.c: Likewise.
4006 * common/common-utils.c: Likewise.
4007 * common/queue.h: Likewise.
4008 * common/signals.c: Likewise.
4009 * common/vec.h: Likewise.
4010 * complaints.c: Likewise.
4011 * completer.c: Likewise.
4012 * corelow.c: Likewise.
4013 * cp-abi.c: Likewise.
4014 * cp-name-parser.y: Likewise.
4015 * cp-namespace.c: Likewise.
4016 * cp-support.c: Likewise.
4017 * cris-tdep.c: Likewise.
4018 * dbxread.c: Likewise.
4019 * dictionary.c: Likewise.
4020 * doublest.c: Likewise.
4021 * dsrec.c: Likewise.
4022 * dummy-frame.c: Likewise.
4023 * dwarf2-frame-tailcall.c: Likewise.
4024 * dwarf2-frame.c: Likewise.
4025 * dwarf2expr.c: Likewise.
4026 * dwarf2loc.c: Likewise.
4027 * dwarf2read.c: Likewise.
4028 * eval.c: Likewise.
4029 * event-loop.c: Likewise.
4030 * exceptions.c: Likewise.
4031 * expprint.c: Likewise.
4032 * f-valprint.c: Likewise.
4033 * fbsd-nat.c: Likewise.
4034 * findvar.c: Likewise.
4035 * frame-unwind.c: Likewise.
4036 * frame.c: Likewise.
4037 * frv-tdep.c: Likewise.
4038 * gcore.c: Likewise.
4039 * gdb-dlfcn.c: Likewise.
4040 * gdb_bfd.c: Likewise.
4041 * gdbarch.c: Likewise.
4042 * gdbarch.sh: Likewise.
4043 * gdbtypes.c: Likewise.
4044 * gnu-nat.c: Likewise.
4045 * gnu-v3-abi.c: Likewise.
4046 * go-lang.c: Likewise.
4047 * guile/scm-exception.c: Likewise.
4048 * guile/scm-gsmob.c: Likewise.
4049 * guile/scm-lazy-string.c: Likewise.
4050 * guile/scm-math.c: Likewise.
4051 * guile/scm-pretty-print.c: Likewise.
4052 * guile/scm-safe-call.c: Likewise.
4053 * guile/scm-utils.c: Likewise.
4054 * guile/scm-value.c: Likewise.
4055 * h8300-tdep.c: Likewise.
4056 * hppa-hpux-nat.c: Likewise.
4057 * hppa-tdep.c: Likewise.
4058 * hppanbsd-tdep.c: Likewise.
4059 * hppaobsd-tdep.c: Likewise.
4060 * i386-darwin-nat.c: Likewise.
4061 * i386-darwin-tdep.c: Likewise.
4062 * i386-nto-tdep.c: Likewise.
4063 * i386-tdep.c: Likewise.
4064 * i386bsd-nat.c: Likewise.
4065 * i386fbsd-tdep.c: Likewise.
4066 * i386gnu-nat.c: Likewise.
4067 * i386nbsd-tdep.c: Likewise.
4068 * i386obsd-tdep.c: Likewise.
4069 * i387-tdep.c: Likewise.
4070 * ia64-libunwind-tdep.c: Likewise.
4071 * ia64-tdep.c: Likewise.
4072 * inf-ptrace.c: Likewise.
4073 * inf-ttrace.c: Likewise.
4074 * infcall.c: Likewise.
4075 * infcmd.c: Likewise.
4076 * infrun.c: Likewise.
4077 * inline-frame.c: Likewise.
4078 * interps.c: Likewise.
4079 * jv-lang.c: Likewise.
4080 * jv-typeprint.c: Likewise.
4081 * linux-fork.c: Likewise.
4082 * linux-nat.c: Likewise.
4083 * linux-thread-db.c: Likewise.
4084 * m32c-tdep.c: Likewise.
4085 * m32r-linux-nat.c: Likewise.
4086 * m32r-tdep.c: Likewise.
4087 * m68k-tdep.c: Likewise.
4088 * m68kbsd-nat.c: Likewise.
4089 * m68kbsd-tdep.c: Likewise.
4090 * m88k-tdep.c: Likewise.
4091 * machoread.c: Likewise.
4092 * macroexp.c: Likewise.
4093 * macrotab.c: Likewise.
4094 * maint.c: Likewise.
4095 * mdebugread.c: Likewise.
4096 * memory-map.c: Likewise.
4097 * mep-tdep.c: Likewise.
4098 * mi/mi-common.c: Likewise.
4099 * microblaze-tdep.c: Likewise.
4100 * mingw-hdep.c: Likewise.
4101 * mips-linux-nat.c: Likewise.
4102 * mips-linux-tdep.c: Likewise.
4103 * mips-tdep.c: Likewise.
4104 * mips64obsd-tdep.c: Likewise.
4105 * mipsnbsd-tdep.c: Likewise.
4106 * mn10300-linux-tdep.c: Likewise.
4107 * mn10300-tdep.c: Likewise.
4108 * moxie-tdep.c: Likewise.
4109 * mt-tdep.c: Likewise.
4110 * nat/linux-btrace.c: Likewise.
4111 * nat/linux-osdata.c: Likewise.
4112 * nat/linux-ptrace.c: Likewise.
4113 * nat/mips-linux-watch.c: Likewise.
4114 * nios2-linux-tdep.c: Likewise.
4115 * nios2-tdep.c: Likewise.
4116 * objc-lang.c: Likewise.
4117 * objfiles.c: Likewise.
4118 * obsd-nat.c: Likewise.
4119 * opencl-lang.c: Likewise.
4120 * osabi.c: Likewise.
4121 * parse.c: Likewise.
4122 * ppc-linux-nat.c: Likewise.
4123 * ppc-sysv-tdep.c: Likewise.
4124 * ppcfbsd-nat.c: Likewise.
4125 * ppcfbsd-tdep.c: Likewise.
4126 * ppcnbsd-nat.c: Likewise.
4127 * ppcnbsd-tdep.c: Likewise.
4128 * ppcobsd-nat.c: Likewise.
4129 * ppcobsd-tdep.c: Likewise.
4130 * printcmd.c: Likewise.
4131 * procfs.c: Likewise.
4132 * prologue-value.c: Likewise.
4133 * psymtab.c: Likewise.
4134 * python/py-lazy-string.c: Likewise.
4135 * python/py-value.c: Likewise.
4136 * regcache.c: Likewise.
4137 * reggroups.c: Likewise.
4138 * registry.c: Likewise.
4139 * remote-sim.c: Likewise.
4140 * remote.c: Likewise.
4141 * rs6000-aix-tdep.c: Likewise.
4142 * rs6000-tdep.c: Likewise.
4143 * s390-linux-tdep.c: Likewise.
4144 * score-tdep.c: Likewise.
4145 * ser-base.c: Likewise.
4146 * ser-mingw.c: Likewise.
4147 * sh-tdep.c: Likewise.
4148 * sh64-tdep.c: Likewise.
4149 * solib-darwin.c: Likewise.
4150 * solib-spu.c: Likewise.
4151 * solib-svr4.c: Likewise.
4152 * source.c: Likewise.
4153 * sparc-nat.c: Likewise.
4154 * sparc-sol2-tdep.c: Likewise.
4155 * sparc-tdep.c: Likewise.
4156 * sparc64-sol2-tdep.c: Likewise.
4157 * sparc64-tdep.c: Likewise.
4158 * sparc64fbsd-tdep.c: Likewise.
4159 * sparc64nbsd-tdep.c: Likewise.
4160 * sparc64obsd-tdep.c: Likewise.
4161 * sparcnbsd-tdep.c: Likewise.
4162 * sparcobsd-tdep.c: Likewise.
4163 * spu-multiarch.c: Likewise.
4164 * spu-tdep.c: Likewise.
4165 * stabsread.c: Likewise.
4166 * stack.c: Likewise.
4167 * symfile.c: Likewise.
4168 * symtab.c: Likewise.
4169 * target-descriptions.c: Likewise.
4170 * target-memory.c: Likewise.
4171 * target.c: Likewise.
4172 * tic6x-linux-tdep.c: Likewise.
4173 * tic6x-tdep.c: Likewise.
4174 * tilegx-linux-nat.c: Likewise.
4175 * tilegx-tdep.c: Likewise.
4176 * top.c: Likewise.
4177 * tramp-frame.c: Likewise.
4178 * tui/tui-out.c: Likewise.
4179 * tui/tui-winsource.c: Likewise.
4180 * ui-out.c: Likewise.
4181 * user-regs.c: Likewise.
4182 * utils.c: Likewise.
4183 * v850-tdep.c: Likewise.
4184 * valops.c: Likewise.
4185 * value.c: Likewise.
4186 * varobj.c: Likewise.
4187 * vax-nat.c: Likewise.
4188 * xml-syscall.c: Likewise.
4189 * xml-tdesc.c: Likewise.
4190 * xstormy16-tdep.c: Likewise.
4191 * xtensa-linux-nat.c: Likewise.
4192 * xtensa-tdep.c: Likewise.
4193
e76df0d0
GB
41942014-08-07 Gary Benson <gbenson@redhat.com>
4195
4196 * common/common-defs.h: Include common-utils.h.
4197 * defs.h: Do not include common-utils.h.
4198 * common/gdb_assert.h: Likewise.
4199 * darwin-nat.h: Likewise.
4200 * nat/linux-btrace.c: Likewise.
4201 * target/waitstatus.h: Likewise.
4202
4cb9c816
GB
42032014-08-07 Gary Benson <gbenson@redhat.com>
4204
4205 * common/common-defs.h: Include ptid.h.
4206 * defs.h: Do not include ptid.h.
4207 * inferior.h: Likewise.
4208 * infrun.h: Likewise.
4209 * nat/linux-btrace.h: Likewise.
4210 * nat/linux-osdata.h: Likewise.
4211 * target/waitstatus.h: Likewise.
4212
3995eeee
GB
42132014-08-07 Gary Benson <gbenson@redhat.com>
4214
4215 * common/common-defs.h: Include gdb_locale.h.
4216 * defs.h: Do not include gdb_locale.h.
4217
cb9f1a9b
GB
42182014-08-07 Gary Benson <gbenson@redhat.com>
4219
4220 * common/common-defs.h: Include gdb/signals.h.
4221 * defs.h: Do not include gdb/signals.h.
4222
a5fceff8
GB
42232014-08-07 Gary Benson <gbenson@redhat.com>
4224
4225 * common/common-defs.h: Include pathmax.h.
4226 * defs.h: Do not include pathmax.h.
4227
b9391142
GB
42282014-08-07 Gary Benson <gbenson@redhat.com>
4229
4230 * common/common-defs.h: Include libiberty.h.
4231 * defs.h: Do not include libiberty.h.
4232 * common/queue.h: Likewise.
4233 * cp-name-parser.y: Likewise.
4234 * mi/mi-cmd-catch.c: Likewise.
4235 * python/python.c: Likewise.
4236
0e443c87
GB
42372014-08-07 Gary Benson <gbenson@redhat.com>
4238
4239 * common/common-defs.h: Include ansidecl.h.
4240 * defs.h: Do not include ansidecl.h.
4241 * common/buffer.h: Likewise.
4242 * common/common-utils.h: Likewise.
4243
8ebb3f56
GB
42442014-08-07 Gary Benson <gbenson@redhat.com>
4245
4246 * common/common-defs.h: Include stddef.h.
4247 * defs.h: Do not include stddef.h.
4248 * common/common-utils.h: Likewise.
4249 * amd64fbsd-nat.c: Likewise.
4250 * bcache.c: Likewise.
4251 * charset.c: Likewise.
4252 * common/buffer.h: Likewise.
4253 * common/vec.h: Likewise.
4254 * i386bsd-nat.c: Likewise.
4255 * nat/linux-btrace.h: Likewise.
4256 * ppcfbsd-nat.c: Likewise.
4257 * ppcnbsd-tdep.h: Likewise.
4258 * ppcobsd-nat.c: Likewise.
4259 * ppcobsd-tdep.h: Likewise.
4260 * python/py-gdb-readline.c: Likewise.
4261
8980bdf6
GB
42622014-08-07 Gary Benson <gbenson@redhat.com>
4263
4264 * common/common-defs.h: Include stdarg.h.
4265 * defs.h: Do not include stdarg.h.
4266 * ada-lang.c: Likewise.
4267 * common/common-utils.h: Likewise.
4268 * guile/scm-string.c: Likewise.
4269 * guile/scm-utils.c: Likewise.
4270 * m32c-tdep.c: Likewise.
4271
d7096f71
GB
42722014-08-07 Gary Benson <gbenson@redhat.com>
4273
4274 * common/common-defs.h: Include stdlib.h.
4275 * defs.h: Do not include stdlib.h.
4276 * addrmap.c: Likewise.
4277 * bcache.c: Likewise.
4278 * common/buffer.c: Likewise.
4279 * common/common-utils.c: Likewise.
4280 * cp-name-parser.y: Likewise.
4281 * go32-nat.c: Likewise.
4282 * mn10300-linux-tdep.c: Likewise.
4283 * nat/linux-osdata.c: Likewise.
4284 * tui/tui.c: Likewise.
4285 * windows-nat.c: Likewise.
4286
d02f550d
GB
42872014-08-07 Gary Benson <gbenson@redhat.com>
4288
4289 * common/common-defs.h: Include stdio.h.
4290 * defs.h: Do not include stdio.h.
4291 * ada-lang.c: Likewise.
4292 * common/buffer.c: Likewise.
4293 * common/common-utils.c: Likewise.
4294 * cp-name-parser.y: Likewise.
4295 * gnu-nat.c: Likewise.
4296 * go32-nat.c: Likewise.
4297 * i386gnu-nat.c: Likewise.
4298 * proc-api.c: Likewise.
4299 * proc-events.c: Likewise.
4300 * proc-flags.c: Likewise.
4301 * proc-why.c: Likewise.
4302 * python/python-internal.h: Likewise.
4303 * target-memory.c: Likewise.
4304 * tui/tui-io.c: Likewise.
4305 * tui/tui.c: Likewise.
4306
b6d7a4bf
SM
43072014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4308
4309 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4310 (scan_dyntag_auxv): Same.
4311
af19829b
YQ
43122014-08-06 Yao Qi <yao@codesourcery.com>
4313
4314 * amd64-linux-nat.c: Remove duplicated include
4315 "x86-linux-nat.h".
4316 * i386-linux-nat.c: Likewise.
4317
8e07a239
YQ
43182014-08-06 Yao Qi <yao@codesourcery.com>
4319
4320 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4321 operand" with "Special opcode" in comments.
4322
7bfe8241
GB
43232014-08-05 Gary Benson <gbenson@redhat.com>
4324
4325 * interps.c (initialize_interps): Remove prototype.
4326 (interpreter_initialized): Remove static global.
4327 (interp_add): Do not call initialize_interps.
4328 (initialize_interps): Remove function.
4329
d6c95504
GB
43302014-08-05 Gary Benson <gbenson@redhat.com>
4331
4332 * utils.c (vwarning): Remove spurious va_end.
4333
241fd515
AM
43342014-08-05 Alan Modra <amodra@gmail.com>
4335
4336 * charset.c (convert_between_encodings): Cast result of obstack_base.
4337 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4338 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4339 (read_unwind_info): Use size_t for some locals.
4340 * jit.c (finalize_symtab): Likewise.
4341 * utils.c (hashtab_obstack_allocate): Likewise.
4342 * symmisc.c (print_objfile_statistics): Update format strings.
4343
dc304a94
JK
43442014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4345
4346 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4347 (Changes in GDB 7.8): ... here.
4348
3cecbbbe
TT
43492014-08-04 Tom Tromey <tromey@redhat.com>
4350
4351 * target.c (set_targetdebug): New function.
4352 (initialize_targets): Pass set_targetdebug when creating "set
4353 debug target".
4354
6908c509
JB
43552014-08-01 Joel Brobecker <brobecker@adacore.com>
4356
4357 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4358 if detecting a variable-sized field that is not the last field.
4359 Fix struct type length computation.
4360
53e8f97d
JB
43612014-08-01 Joel Brobecker <brobecker@adacore.com>
4362
4363 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4364 Add debug trace.
4365
e068c55d
JB
43662014-08-01 Joel Brobecker <brobecker@adacore.com>
4367
4368 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4369 Remove "+ 8" offset in computation of CHAIN_VMA.
4370
4d4ca2a1
DE
43712014-07-31 Doug Evans <dje@google.com>
4372
4373 * inflow.c (child_terminal_inferior): Add comment.
4374 (child_terminal_ours_for_output): Add comment.
4375 (child_terminal_ours): Add comment.
4376 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4377 (linux_nat_terminal_ours): Add comment.
4378
462f517e
GB
43792014-07-31 Gary Benson <gbenson@redhat.com>
4380
4381 * common/btrace-common.h: Do not include defs.h or server.h.
4382 * nat/mips-linux-watch.h: Likewise.
4383 * gdb-dlfcn.h: Do not include defs.h.
4384 * tracefile.h: Likewise.
4385
74228e77
RM
43862014-07-30 Roland McGrath <mcgrathr@google.com>
4387
4388 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4389
014f9477
TT
43902014-07-30 Tom Tromey <tromey@redhat.com>
4391
4392 * bsd-kvm.c (bsd_kvm_open): Constify.
4393 * corelow.c (core_open): Constify.
4394 * ctf.c (ctf_open): Constify.
4395 * dbug-rom.c (dbug_open): Constify.
4396 * exec.c (exec_open): Constify.
4397 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4398 * microblaze-rom.c (picobug_open): Constify.
4399 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4400 Constify.
4401 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4402 * record-btrace.c (record_btrace_open): Constify.
4403 * record-full.c (record_full_core_open_1, record_full_open_1)
4404 (record_full_open): Constify.
4405 * remote-m32r-sdi.c (m32r_open): Constify.
4406 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4407 (rockhopper_open, lsi_open): Constify.
4408 * remote-sim.c (gdbsim_open): Constify.
4409 * remote.c (remote_open, extended_remote_open, remote_open_1):
4410 Constify.
4411 * target.h (struct target_ops) <to_open>: Make "arg" const.
4412 * tracefile-tfile.c (tfile_open): Constify.
4413
e799154c
TT
44142014-07-30 Tom Tromey <tromey@redhat.com>
4415
4416 * breakpoint.c (map_breakpoint_numbers): Update.
4417 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4418 (get_number_const): New function.
4419 (get_number): Rewrite using get_number_const.
4420 (init_number_or_range): Make "string" const.
4421 (number_is_in_list): Make "list" const.
4422 * cli/cli-utils.h (get_number_const): Declare.
4423 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4424 (init_number_or_range, number_is_in_list): Update.
4425 * printcmd.c (map_display_numbers): Update.
4426 * value.c (value_from_history_ref): Constify.
4427 * value.h (value_from_history_ref): Update.
4428
5f08566b
TT
44292014-07-30 Tom Tromey <tromey@redhat.com>
4430
4431 * corefile.c (hook_type, call_extra_exec_file_hooks)
4432 (specify_exec_file_hook): Constify.
4433 * exec.c (exec_file_attach): Make "filename" const.
4434 * gdbcore.h (deprecated_exec_file_display_hook)
4435 (specify_exec_file_hook, exec_file_attach): Constify.
4436 * main.c (captured_main): Use catch_command_errors_const.
4437
8981c758
TT
44382014-07-30 Tom Tromey <tromey@redhat.com>
4439
4440 * target.c (open_target): New function.
4441 (add_target_with_completer, add_deprecated_target_alias): Use
4442 set_cmd_sfunc, set_cmd_context.
4443 (debug_to_open): Remove.
4444 (setup_target_debug): Update.
4445
a1c7835a
YQ
44462014-07-30 Yao Qi <yao@codesourcery.com>
4447
4448 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4449 comments.
4450 * parse.c (exp_iterate): Update comments.
4451
976411d6
GB
44522014-07-30 Gary Benson <gbenson@redhat.com>
4453
4454 * common/common-defs.h: New file.
4455 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4456 * defs.h: Include common-defs.h.
4457 Do not include config.h or build-gnulib/config.h.
4458
5d4848a4
GB
44592014-07-30 Gary Benson <gbenson@redhat.com>
4460
4461 * common/common-utils.h: Do not include config.h.
4462 * nat/linux-btrace.h: Likewise.
4463
d41f6d8e
GB
44642014-07-30 Gary Benson <gbenson@redhat.com>
4465
4466 * btrace.c: Include defs.h.
4467 * common/ptid.c: Include defs.h or server.h as appropriate.
4468 * nat/mips-linux-watch.c: Likewise.
4469
84202f9c
TT
44702014-07-29 Tom Tromey <tromey@redhat.com>
4471
4472 * target.c (target_is_pushed): Simplify.
4473
2530441c
JB
44742014-07-29 Joel Brobecker <brobecker@adacore.com>
4475
4476 GDB 7.8 released.
4477
7e09a223
YQ
44782014-07-29 Yao Qi <yao@codesourcery.com>
4479
4480 PR gdb/17206
4481 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4482
7ebdbe92
DE
44832014-07-28 Doug Evans <xdje42@gmail.com>
4484
4485 PR guile/17203
4486 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4487 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4488 parameters.
4489
f347ffc9
WN
44902014-07-28 Will Newton <will.newton@linaro.org>
4491
4492 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4493 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4494 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4495 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4496 (THUMB2_EABI_SYSCALL): Likewise.
4497 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4498 struct tramp_frame.
4499 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4500 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4501
37c5f1f7
DE
45022014-07-27 Doug Evans <xdje42@gmail.com>
4503
4504 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4505
0c3abbc7
DE
45062014-07-27 Doug Evans <xdje42@gmail.com>
4507
4508 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4509
e76c5d17
DE
45102014-07-26 Ludovic Courtès <ludo@gnu.org>
4511 Doug Evans <xdje42@gmail.com>
4512
4513 PR guile/17146
4514 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4515 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4516 * configure.ac: Try to use guild to compile an scm file, if it fails
4517 then disable guile support.
4518 * configure: Regenerate.
4519 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4520 GUILE_FILE_LIST.
4521 (GUILE_COMPILED_FILES): New variable.
4522 (GUILE_FILES) Update.
4523 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4524 (stamp-guile): Compile scm files.
4525 * guile/guile.c (boot_guile_support): New function.
4526 (standard_throw_args_p): New function.
4527 (print_standard_throw_error, print_throw_error): New functions.
4528 (handle_boot_error): New function.
4529 (initialize_scheme_side): Rewrite to call boot_guile_support.
4530 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4531 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4532
186fcde0
DE
45332014-07-26 Ludovic Courtès <ludo@gnu.org>
4534 Doug Evans <xdje42@gmail.com>
4535
4536 PR guile/17146
4537 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4538 * guile/lib/gdb/support.scm: New file.
4539 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4540 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4541 All uses updated.
4542 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4543 All uses updated.
4544 (%assert-type): Ditto, and renamed to assert-type.
4545 (%exception-print-style): Delete.
4546
4df42755
DE
45472014-07-26 Doug Evans <xdje42@gmail.com>
4548
4549 PR build/17105
4550 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4551 * configure: Regenerate.
4552 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4553 PYTHON_FILES.
4554 (PYTHON_FILES): New variable.
4555 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4556 (GUILE_FILES): New variable.
4557 (stamp-python, install-python, uninstall-python): Handle empty
4558 file list.
4559 (stamp-guile, install-guile, uninstall-guile): Ditto.
4560
ee7333ae
DE
45612014-07-26 Doug Evans <xdje42@gmail.com>
4562
4563 PR guile/17177
4564 * guile/lib/gdb.scm (pretty-printers): Export.
4565 (set-pretty-printers!): Export.
4566 * guile/lib/gdb/printing.scm (gdb module): Update.
4567 (prepend-pretty-printer!, append-pretty-printer!): Update.
4568 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4569 (pretty_printer_list_var): Delete.
4570 (pretty_printer_list): New static global.
4571 (gdbscm_pretty_printers): New function.
4572 (gdbscm_set_pretty_printers_x): New function.
4573 (ppscm_find_pretty_printer_from_gdb): Update.
4574 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4575 (gdbscm_initialize_pretty_printers): Update.
4576
74edf516
DE
45772014-07-26 Doug Evans <xdje42@gmail.com>
4578
4579 PR 17185
4580 * configure.ac: Add check for header gc/gc.h.
4581 Add check for function setenv.
4582 * configure: Regenerate.
4583 * config.in: Regenerate.
4584 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4585
d54398a7
MR
45862014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4587
4588 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4589 variation in gdbarch matching.
4590
ab16fce8
TT
45912014-07-25 Tom Tromey <tromey@redhat.com>
4592
4593 * exec.c (using_exec_ops): Remove.
4594 (exec_close_1): Update. Remove extraneous block, reindent.
4595 (add_target_sections): Use target_is_pushed.
4596
88056fbb
PA
45972014-07-25 Pedro Alves <palves@redhat.com>
4598
4599 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4600 * monitor.c (monitor_create_inferior): Likewise.
4601 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4602 * remote-sim.c (gdbsim_create_inferior): Likewise.
4603 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4604 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4605 * windows-nat.c (do_initial_windows_stuff): Likewise.
4606
70509625
PA
46072014-07-25 Pedro Alves <palves@redhat.com>
4608
4609 * NEWS: Mention signal passing and "signal" command changes.
4610 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4611 comment.
4612 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4613 call.
4614 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4615 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4616 (jump_command): Adjust clear_proceed_status call.
4617 (signal_command): Warn if other thread that are resumed have
4618 signals that will be delivered. Adjust clear_proceed_status call.
4619 (until_next_command, finish_command)
4620 (proceed_after_attach_callback, attach_command_post_wait)
4621 (attach_command): Adjust clear_proceed_status call.
4622 * infrun.c (proceed_after_vfork_done): Likewise.
4623 (proceed_after_attach_callback): Adjust comment.
4624 (clear_proceed_status_thread): Clear stop_signal if not in pass
4625 state.
4626 (clear_proceed_status_callback): Delete.
4627 (clear_proceed_status): New 'step' parameter. Only clear the
4628 proceed status of threads the command being prepared is about to
4629 resume.
4630 (proceed): If passed in an explicit signal, override stop_signal
4631 with it. Don't pass the last stop signal to the thread we're
4632 resuming.
4633 (init_wait_for_inferior): Adjust clear_proceed_status call.
4634 (switch_back_to_stepped_thread): Clear the signal if it should not
4635 be passed.
4636 * infrun.h (clear_proceed_status): New 'step' parameter.
4637 (user_visible_resume_ptid): Add comment.
4638 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4639 signal is in pass state.
4640 * remote.c (append_pending_thread_resumptions): Likewise.
4641 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4642
d8be2939
TT
46432014-07-25 Tom Tromey <tromey@redhat.com>
4644
4645 * target.h (target_stopped_data_address)
4646 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4647 parentheses.
4648
7d0d9d2b
PL
46492014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4650
4651 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4652 comments.
4653 (avr_pointer_to_address): Likewise.
4654
e9e7f724
TT
46552014-07-24 Tom Tromey <tromey@redhat.com>
4656
4657 * monitor.c (compile_pattern): Update.
4658 * target.h (struct target_ops) <to_shortname, to_longname,
4659 to_doc>: Now const.
4660
1947513d
TT
46612014-07-24 Tom Tromey <tromey@redhat.com>
4662
4663 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4664 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4665 (add_info_alias, add_com): Make "doc" const.
4666 (print_doc_line): Make "str" const.
4667 (delete_cmd): Update.
4668 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4669 (print_doc_line): Update.
4670 * cli/cli-script.c (document_command): Update.
4671 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4672 (add_com, add_info, add_info_alias): Update.
4673 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4674 * python/py-cmd.c (cmdpy_destroyer): Update.
4675
64e61d29
TT
46762014-07-24 Tom Tromey <tromey@redhat.com>
4677
4678 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4679 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4680 (help_cmd_list): Constify.
4681 (lookup_cmd): Update.
4682 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4683 const.
4684 (help_cmd_list, apropos_cmd): Update.
4685 * cli/cli-script.c (show_user): Update.
4686 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4687 * cli/cli-setshow.h (cmd_show_list): Update.
4688 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4689 (cmd_show_list): Update.
4690 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4691 * python/py-cmd.c (cmdpy_destroyer): Update.
4692
429e55ea
TT
46932014-07-24 Tom Tromey <tromey@redhat.com>
4694
4695 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4696 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4697 const.
4698 * command.h (deprecate_cmd): Update.
4699 * maint.c (maintenance_do_deprecate): Add casts.
4700
64669f3b
TT
47012014-07-24 Tom Tromey <tromey@redhat.com>
4702
4703 * cli/cli-decode.c (help_cmd): Make parameter "const".
4704 * cli/cli-decode.h (help_cmd): Update.
4705
d3d3328b
TT
47062014-07-24 Tom Tromey <tromey@redhat.com>
4707
4708 * stack.c (up_silently_base, down_silently_base): Make argument
4709 const.
4710
414842dc
TT
47112014-07-24 Tom Tromey <tromey@redhat.com>
4712
4713 * solib.c (solib_add): Make "pattern" const.
4714 * solib.h (solib_add): Update.
4715
baa336ce
TT
47162014-07-24 Tom Tromey <tromey@redhat.com>
4717
4718 * remote.c (remote_serial_open, print_packet, putpkt)
4719 (putpkt_binary): Constify.
4720 * remote.h (putpkt): Update.
4721
5a19e2d0
TT
47222014-07-24 Tom Tromey <tromey@redhat.com>
4723
4724 * monitor.c (monitor_open): Make "args" const.
4725 * monitor.h (monitor_open): Update.
4726
fc4baa5e
TT
47272014-07-24 Tom Tromey <tromey@redhat.com>
4728
4729 * maint.c (match_bfd_flags): Make "string" const.
4730 (print_bfd_section_info): Remove casts.
4731 (print_objfile_section_info): Make "string" const.
4732
0d5f0dbe
TT
47332014-07-24 Tom Tromey <tromey@redhat.com>
4734
4735 * inf-child.c (inf_child_open_target): Make "arg" const.
4736 * inf-child.h (inf_child_open_target): Update.
4737
41c77899
TT
47382014-07-24 Tom Tromey <tromey@redhat.com>
4739
4740 * environ.c (unset_in_environ): Make "var" const.
4741 * environ.h (unset_in_environ): Update.
4742
93db0d79
TT
47432014-07-24 Tom Tromey <tromey@redhat.com>
4744
4745 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4746 Make "cmd" const.
4747 (scan_filename_with_cleanup): Likewise.
4748 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4749 Make arguments const.
4750 (restore_command): Update.
4751
36d6eb95
PA
47522014-07-24 Pedro Alves <palves@redhat.com>
4753
4754 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4755
8009206a
TT
47562014-07-24 Tom Tromey <tromey@redhat.com>
4757 Gary Benson <gbenson@redhat.com>
4758
4759 * nat/linux-ptrace.c (additional_flags): New global.
4760 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4761 additional_flags; don't check GDBSERVER.
4762 (linux_ptrace_set_additional_flags): New function.
4763 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4764 Declare.
4765 * linux-nat.c (_initialize_linux_nat): Call
4766 linux_ptrace_set_additional_flags.
4767
a7068b60
TT
47682014-07-24 Tom Tromey <tromey@redhat.com>
4769
4770 * make-target-delegates (munge_type, write_debugmethod): New
4771 functions.
4772 (debug_names): New global.
4773 ($TARGET_DEBUG_PRINTER): New global.
4774 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4775 name.
4776 Write debug methods. Generate init_debug_target.
4777 * target-debug.h: New file.
4778 * target-delegates.c: Rebuild.
4779 * target.c: Include target-debug.h.
4780 (debug_target): Hoist definition.
4781 (target_kill, target_get_section_table, target_memory_map)
4782 (target_flash_erase, target_flash_done, target_detach)
4783 (target_disconnect, target_wait, target_resume)
4784 (target_pass_signals, target_program_signals, target_follow_fork)
4785 (target_mourn_inferior, target_search_memory)
4786 (target_thread_address_space, target_close)
4787 (target_find_new_threads, target_core_of_thread)
4788 (target_verify_memory, target_insert_mask_watchpoint)
4789 (target_remove_mask_watchpoint): Remove targetdebug code.
4790 (debug_to_post_attach, debug_to_prepare_to_store)
4791 (debug_to_files_info, debug_to_insert_breakpoint)
4792 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4793 (debug_to_region_ok_for_hw_watchpoint)
4794 (debug_to_can_accel_watchpoint_condition)
4795 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4796 (debug_to_watchpoint_addr_within_range)
4797 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4798 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4799 (debug_to_terminal_init, debug_to_terminal_inferior)
4800 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4801 (debug_to_terminal_save_ours, debug_to_terminal_info)
4802 (debug_to_load, debug_to_post_startup_inferior)
4803 (debug_to_insert_fork_catchpoint)
4804 (debug_to_remove_fork_catchpoint)
4805 (debug_to_insert_vfork_catchpoint)
4806 (debug_to_remove_vfork_catchpoint)
4807 (debug_to_insert_exec_catchpoint)
4808 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4809 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4810 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4811 (setup_target_debug): Call init_debug_target.
4812 * target.h (TARGET_DEBUG_PRINTER): New macro.
4813 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4814 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4815
2c51604d
GB
48162014-07-24 Gary Benson <gbenson@redhat.com>
4817
4818 * exceptions.h (throw_vfatal): Renamed to...
4819 (throw_vquit): New declaration.
4820 (throw_quit): Likewise.
4821 * exceptions.c (throw_vfatal): Renamed to...
4822 (throw_vquit): New function.
4823 (throw_quit): Likewise.
4824 (throw_error): Call throw_verror rather than throw_it.
4825 * utils.h (vfatal): Removed.
4826 (fatal): Likewise.
4827 * utils.c (vfatal): Removed.
4828 (fatal): Likewise.
4829 (internal_verror): Replaced call to fatal with call to throw_quit.
4830 (quit): Replaced calls to fatal with calls to throw_quit.
4831
34211963
ME
48322014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4833
4834 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4835 target_read_code.
4836
a52b4d3e
ME
48372014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4838
4839 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4840 less than zero in conditional expression.
4841
a8bdc56b
TT
48422014-07-23 Tom Tromey <tromey@redhat.com>
4843
4844 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4845 ($INTRO_PART): Don't match whitespace.
4846 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4847 argument matching.
4848 ($METHOD): Add $METHOD_TRAILER.
4849 (trim): Rewrite.
4850 (scan_target_h): New sub.
4851 Change main loop not to collect state.
4852 * target-delegates.c: Rebuild.
4853
91b52240
GB
48542014-07-23 Gary Benson <gbenson@redhat.com>
4855
4856 * cp-support.c (gdb_demangle): Fix build on systems without
4857 sigaltstack.
4858
45326f6f
JK
48592014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4860
4861 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4862 for reference entry value target data value.
4863
e214cf6c
JK
48642014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4865
4866 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4867 value_available_contents_eq.
4868
bddbbedd
PA
48692014-07-22 Pedro Alves <palves@redhat.com>
4870
4871 * value.c (allocate_optimized_out_value): Don't mark value as
4872 non-lazy.
4873
45c71484
JW
48742014-07-22 Jiong Wang <jiong.wang@arm.com>
4875
4876 * MAINTAINERS (Write After Approval): Update my email address.
4877
9597b22a
DE
48782014-07-20 Doug Evans <dje@google.com>
4879
4880 PR server/17147
4881 * remote.c (putpkt_binary): Add text to error message.
4882
91101fe5
YQ
48832014-07-20 Yao Qi <yao@codesourcery.com>
4884
4885 * eval.c: Remove "Chill" from comments.
4886 * gdbtypes.h: Likewise.
4887 * symtab.h: Likewise.
4888
c9402c95
YQ
48892014-07-20 Yao Qi <yao@codesourcery.com>
4890
4891 * std-operator.def: Update comments to TERNOP_SLICE.
4892
ae8fddda
YQ
48932014-07-20 Yao Qi <yao@codesourcery.com>
4894
4895 * std-operator.def: Remove BINOP_RANGE.
4896 * breakpoint.c (watchpoint_exp_is_const): Update.
4897 * expprint.c (dump_subexp_body_standard): Likewise.
4898 * eval.c (init_array_element): Remove dead code.
4899 (evaluate_subexp_standard): Likewise.
4900
9c816640
YQ
49012014-07-20 Yao Qi <yao@codesourcery.com>
4902
4903 * std-operator.def: Remove BINOP_IN.
4904 * breakpoint.c (watchpoint_exp_is_const): Update.
4905 * eval.c (evaluate_subexp_standard): Likewise.
4906 * expprint.c (dump_subexp_body_standard): Likewise.
4907
164224e9
ME
49082014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4909
4910 * microblaze-tdep.c (microblaze_register_names): Add
4911 the rshr and rslr register names.
4912 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4913 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4914 Use of tdesc_numbered_register. Use of
4915 microblaze_register_g_packet_guesses. Use of
4916 tdesc_use_registers. Use of set_gdbarch_register_type.
4917 (microblaze_register_g_packet_guesses): New.
4918 * microblaze-tdep.h (microblaze_reg_num): Add
4919 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4920 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4921 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4922 * features/microblaze-core.xml: New file.
4923 * features/microblaze-stack-protect.xml: New file.
4924 * features/microblaze-with-stack-protect.c: New file.
4925 * features/microblaze-with-stack-protect.xml: New file.
4926 * features/microblaze.xml: New file.
4927 * features/microblaze.c: New file.
4928 * features/Makefile (microblaze-with-stack-protect): Add
4929 microblaze-with-stack-protect microblaze and microblaze-expedite.
4930 * regformats/microblaze-with-stack-protect.dat: New file.
4931 * regformats/microblaze.dat: New file.
4932 * doc/gdb.texinfo (MicroBlaze Features): Added.
4933
e8b2341c
TT
49342014-07-18 Tom Tromey <tromey@redhat.com>
4935
4936 * exec.c (exec_ops): Now static.
4937 * exec.h (exec_ops): Don't declare.
4938
44e89118
TT
49392014-07-18 Tom Tromey <tromey@redhat.com>
4940
4941 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4942 to find_target_beneath.
4943 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4944 find_target_beneath.
4945 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4946
b0ed115f
TT
49472014-07-18 Tom Tromey <tromey@redhat.com>
4948
4949 PR gdb/17130:
4950 * utils.c (quit): Use target_supports_terminal_ours.
4951 * target.h (target_supports_terminal_ours): Declare.
4952 * target.c (target_supports_delete_record): Don't check
4953 to_delete_record against NULL.
4954 (target_supports_terminal_ours): New function.
4955
e75fdfca
TT
49562014-07-18 Tom Tromey <tromey@redhat.com>
4957
4958 PR gdb/17130:
4959 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4960 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4961 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4962 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4963 * windows-nat.c (windows_xfer_partial): Always delegate.
4964 * record-btrace.c (record_btrace_xfer_partial): Simplify
4965 delegation.
4966 (record_btrace_fetch_registers, record_btrace_store_registers)
4967 (record_btrace_prepare_to_store, record_btrace_resume)
4968 (record_btrace_wait, record_btrace_find_new_threads)
4969 (record_btrace_thread_alive): Likewise.
4970 * procfs.c (procfs_xfer_partial): Always delegate.
4971 * corelow.c (core_xfer_partial): Always delegate.
4972 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4973
83814951
TT
49742014-07-18 Tom Tromey <tromey@redhat.com>
4975
4976 * exec.c (exec_make_note_section): Move earlier.
4977
b8b8facf
DE
49782014-07-17 Doug Evans <dje@google.com>
4979
74b49205 4980 PR gdb/17170
b8b8facf
DE
4981 * maint.c (count_symtabs_and_blocks): Handle NULL
4982 current_program_space.
4983 (report_command_stats): Check global enabled flag in addition to
4984 recorded enabled flag.
4985 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4986
69ff6be5
PA
49872014-07-16 Pedro Alves <palves@redhat.com>
4988
4989 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4990
252db1b5
TT
49912014-07-16 Tom Tromey <tromey@redhat.com>
4992
4993 * target.h (struct target_ops) <to_delete_record>: Reformat
4994 comment.
4995
a432721e
TT
49962014-07-16 Tom Tromey <tromey@redhat.com>
4997
4998 * target-delegates.c: Rebuild.
4999
487d9753
PL
50002014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5001
5002 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5003 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5004 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5005 (avr_pointer_to_address): Likewise.
5006 (avr_address_class_type_flags): New function.
5007 (avr_address_class_type_flags_to_name): Likewise.
5008 (avr_address_class_name_to_type_flags): Likewise.
5009 (avr_gdbarch_init): Set address_class_type_flags,
5010 address_class_type_flags_to_name and
5011 address_class_name_to_type_flags.
5012
57745c90
PA
50132014-07-15 Pedro Alves <palves@redhat.com>
5014
5015 * linux-nat.c (kill_callback): Save errno and work with saved
5016 copy.
5017
2d40be18
SM
50182014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5019
5020 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5021
572f6555
EBM
50222014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5023
5024 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5025 breakpoint support correctly.
5026
cc1c52ad
PA
50272014-07-14 Pedro Alves <palves@redhat.com>
5028
5029 * utils.c (prompt_for_continue): Call target_terminal_ours.
5030
1e973570
PA
50312014-07-14 Pedro Alves <palves@redhat.com>
5032
5033 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5034 catch_errors. Don't re-enable stdin or notify observers where,
5035 and rethrow error.
5036 (fetch_inferior_event_wrapper): Delete.
5037
93d6eb10
PA
50382014-07-14 Pedro Alves <palves@redhat.com>
5039
5040 PR gdb/17072
5041 * top.c: Include "inf-loop.h".
5042 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5043 field.
5044 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5045 was async before.
5046 (gdb_readline_wrapper): Store whether the target is async, and
5047 make it sync.
5048
0017922d
PA
50492014-07-14 Pedro Alves <palves@redhat.com>
5050
5051 PR gdb/17072
5052 * top.c (gdb_readline_wrapper_line): Tweak comment.
5053 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5054 the input handler callback.
5055
94696ad3
PA
50562014-07-14 Pedro Alves <palves@redhat.com>
5057
5058 PR gdb/17072
5059 * main.c: Include event-top.h.
5060 (handle_command_errors): New function.
5061 (catch_command_errors, catch_command_errors_const): Use it.
5062
9d1e69a2
PA
50632014-07-14 Pedro Alves <palves@redhat.com>
5064
5065 * exceptions.c (catch_command_errors, catch_command_errors_const):
5066 Moved to main.c.
5067 * exceptions.h (catch_command_errors_ftype)
5068 (catch_command_errors_const_ftype): Moved to main.c.
5069 (catch_command_errors, catch_command_errors_const): Delete
5070 declarations.
5071 * main.c (catch_command_errors_ftype)
5072 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5073 (catch_command_errors, catch_command_errors_const)): Moved here
5074 from exceptions.c and make static.
5075
feefc97b
PA
50762014-07-14 Pedro Alves <palves@redhat.com>
5077
5078 * exceptions.c (print_any_exception): Delete.
5079 (catch_exceptions_with_msg): Use exception_print instead of
5080 print_any_exception.
5081 (catch_errors): Use exception_fprintf instead of
5082 print_any_exception.
5083 (catch_command_errors, catch_command_errors_const): Use
5084 exception_print instead of print_any_exception.
5085
c933f875
PA
50862014-07-14 Pedro Alves <palves@redhat.com>
5087
5088 * infcall.c (run_inferior_call): Set 'sync_execution' while
5089 running the inferior call.
5090
feb6f816
PA
50912014-07-14 Pedro Alves <palves@redhat.com>
5092
5093 * value.c (value_contents_equal): Delete function.
5094 * value.h (value_contents_equal): Delete declaration.
5095
d98b7a16
TT
50962014-07-14 Tom Tromey <tromey@redhat.com>
5097
5098 PR exp/17106:
5099 * gdbtypes.c (is_dynamic_type_internal): New function, from
5100 is_dynamic_type.
5101 (is_dynamic_type): Rewrite.
5102 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5103 (resolve_dynamic_struct): Likewise.
5104 (resolve_dynamic_type_internal): New function, from
5105 resolve_dynamic_type.
5106 (resolve_dynamic_type): Rewrite.
5107
548740d6
TT
51082014-07-14 Tom Tromey <tromey@redhat.com>
5109
5110 * target.c (target_require_runnable): Also check record_stratum.
5111 Update comment.
5112
808f7ab1
YQ
51132014-07-11 Yao Qi <yao@codesourcery.com>
5114
5115 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5116 thumb_instruction_restores_sp return true.
5117
540314bd
YQ
51182014-07-11 Yao Qi <yao@codesourcery.com>
5119
5120 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5121 (thumb_in_function_epilogue_p): Call
5122 thumb_instruction_restores_sp.
5123
1db01f22
YQ
51242014-07-11 Yao Qi <yao@codesourcery.com>
5125
5126 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5127 'add sp, #imm'.
5128 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5129
3116063b
GB
51302014-07-11 Gary Benson <gbenson@redhat.com>
5131
5132 * amd64-linux-nat.c (gdbcore.h): Remove include.
5133 (regset.h): Likewise.
5134 (nat/linux-btrace.h): Likewise.
5135 (btrace.h): Likewise.
5136 (gdb_assert.h): Likewise.
5137 (string.h): Likewise.
5138 (sys/uio.h): Likewise.
5139 (sys/debugreg.h): Likewise.
5140 (sys/syscall.h): Likewise.
5141 (sys/procfs.h): Likewise.
5142 (sys/user.h): Likewise.
5143 (asm/ptrace.h): Likewise.
5144 (i386-nat.h): Likewise.
5145 * i386-linux-nat.c (i386-nat.h): Likewise.
5146 (regset.h): Likewise.
5147 (target.h): Likewise.
5148 (linux-nat.h): Likewise.
5149 (nat/linux-btrace.h): Likewise.
5150 (btrace.h): Likewise.
5151 (gdb_assert.h): Likewise.
5152 (string.h): Likewise.
5153 (sys/uio.h): Likewise.
5154 (sys/user.h): Likewise.
5155 (sys/procfs.h): Likewise.
5156 (sys/reg.h): Likewise.
5157 (sys/debugreg.h): Likewise.
5158 (ORIG_EAX): Remove definition.
5159
040baaf6
GB
51602014-07-11 Gary Benson <gbenson@redhat.com>
5161
5162 * i386-linux-nat.h: New file.
5163 * x86-linux-nat.h: Likewise.
5164 * x86-linux-nat.c: Likewise.
5165 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5166 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5167 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5168 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5169 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5170 (PTRACE_SETREGSET): Likewise.
5171 (arch_lwp_info): Now in x86-linux-nat.c.
5172 (have_ptrace_getregset): Now in x86-linux-nat.h.
5173 (x86_linux_dr_get): Now in x86-linux-nat.c.
5174 (x86_linux_dr_set): Likewise.
5175 (x86_linux_dr_get_addr): Likewise.
5176 (x86_linux_dr_get_control): Likewise.
5177 (x86_linux_dr_get_status): Likewise.
5178 (update_debug_registers_callback): Likewise.
5179 (x86_linux_dr_set_control): Likewise.
5180 (x86_linux_dr_set_addr): Likewise.
5181 (x86_linux_prepare_to_resume): Likewise.
5182 (x86_linux_new_thread): Likewise.
5183 (x86_linux_new_fork): Likewise.
5184 (x86_linux_get_thread_area): Likewise.
5185 (super_post_startup_inferior): Likewise.
5186 (x86_linux_child_post_startup_inferior): Likewise.
5187 (AMD64_LINUX_USER64_CS): Likewise.
5188 (AMD64_LINUX_X32_DS): Likewise.
5189 (x86_linux_read_description): Likewise.
5190 (x86_linux_enable_btrace): Likewise.
5191 (x86_linux_disable_btrace): Likewise.
5192 (x86_linux_teardown_btrace): Likewise.
5193 (x86_linux_read_btrace): Likewise.
5194 (x86_linux_create_target): Likewise.
5195 (x86_linux_add_target): Likewise.
5196 * i386-linux-nat.c (x86-linux-nat.h): New include.
5197 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5198 (PTRACE_SETREGSET): Likewise.
5199 (arch_lwp_info): Now in x86-linux-nat.c.
5200 (have_ptrace_getregset): Now in x86-linux-nat.h.
5201 (x86_linux_dr_get): Now in x86-linux-nat.c.
5202 (x86_linux_dr_set): Likewise.
5203 (x86_linux_dr_get_addr): Likewise.
5204 (x86_linux_dr_get_control): Likewise.
5205 (x86_linux_dr_get_status): Likewise.
5206 (update_debug_registers_callback): Likewise.
5207 (x86_linux_dr_set_control): Likewise.
5208 (x86_linux_dr_set_addr): Likewise.
5209 (x86_linux_prepare_to_resume): Likewise.
5210 (x86_linux_new_thread): Likewise.
5211 (x86_linux_new_fork): Likewise.
5212 (x86_linux_get_thread_area): Likewise.
5213 (super_post_startup_inferior): Likewise.
5214 (x86_linux_child_post_startup_inferior): Likewise.
5215 (AMD64_LINUX_USER64_CS): Likewise.
5216 (AMD64_LINUX_X32_DS): Likewise.
5217 (x86_linux_read_description): Likewise.
5218 (x86_linux_enable_btrace): Likewise.
5219 (x86_linux_disable_btrace): Likewise.
5220 (x86_linux_teardown_btrace): Likewise.
5221 (x86_linux_read_btrace): Likewise.
5222 (x86_linux_create_target): Likewise.
5223 (x86_linux_add_target): Likewise.
5224
1aa7e42c
GB
52252014-07-11 Gary Benson <gbenson@redhat.com>
5226
5227 * amd64-linux-nat.c: Comment and whitespace changes.
5228 * i386-linux-nat.c: Comment and whitespace changes.
5229
c1e246a0
GB
52302014-07-11 Gary Benson <gbenson@redhat.com>
5231
5232 * amd64-linux-nat.c (x86_linux_create_target): New function.
5233 (x86_linux_add_target): Likewise.
5234 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5235 * i386-linux-nat.c (x86_linux_create_target): New function.
5236 (x86_linux_add_target): Likewise.
5237 (_initialize_i386_linux_nat): Delegate to the above new functions.
5238
8c420b8d
GB
52392014-07-11 Gary Benson <gbenson@redhat.com>
5240
5241 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5242 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5243 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5244 (ps_get_thread_area): Delegate to the above.
5245
cb1da100
GB
52462014-07-11 Gary Benson <gbenson@redhat.com>
5247
5248 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5249 x86_linux_read_description. All uses updated. amd64-specific
5250 code conditionalized. Conditionalized i386-specific code added.
5251 Redundant cast removed.
5252 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5253 x86_linux_read_description. All uses updated. i386-specific
5254 code conditionalized. Conditionalized amd64-specific code added.
5255 One sizeof replaced with the actual type it is describing.
5256
2acf3cd0
GB
52572014-07-11 Gary Benson <gbenson@redhat.com>
5258
5259 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5260 x86_linux_dr_get. All uses updated.
5261 (amd64_linux_dr_set): Renamed to
5262 x86_linux_dr_set. All uses updated.
5263 (amd64_linux_dr_get_addr): Renamed to
5264 x86_linux_dr_get_addr. All uses updated.
5265 (amd64_linux_dr_get_control): Renamed to
5266 x86_linux_dr_get_control. All uses updated.
5267 (amd64_linux_dr_get_status): Renamed to
5268 x86_linux_dr_get_status. All uses updated.
5269 (amd64_linux_dr_set_control): Renamed to
5270 x86_linux_dr_set_control. All uses updated.
5271 (amd64_linux_dr_set_addr): Renamed to
5272 x86_linux_dr_set_addr. All uses updated.
5273 (amd64_linux_prepare_to_resume): Renamed to
5274 x86_linux_prepare_to_resume. All uses updated.
5275 (amd64_linux_new_thread): Renamed to
5276 x86_linux_new_thread. All uses updated.
5277 (amd64_linux_new_fork): Renamed to
5278 x86_linux_new_fork. All uses updated.
5279 (amd64_linux_child_post_startup_inferior): Renamed to
5280 x86_linux_child_post_startup_inferior. All uses updated.
5281 (amd64_linux_enable_btrace): Renamed to
5282 x86_linux_enable_btrace. All uses updated.
5283 (amd64_linux_disable_btrace): Renamed to
5284 x86_linux_disable_btrace. All uses updated.
5285 (amd64_linux_teardown_btrace): Renamed to
5286 x86_linux_teardown_btrace. All uses updated.
5287 (amd64_linux_read_btrace): Renamed to
5288 x86_linux_read_btrace. All uses updated.
5289 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5290 x86_linux_dr_get. All uses updated.
5291 (i386_linux_dr_set): Renamed to
5292 x86_linux_dr_set. All uses updated.
5293 (i386_linux_dr_get_addr): Renamed to
5294 x86_linux_dr_get_addr. All uses updated.
5295 (i386_linux_dr_get_control): Renamed to
5296 x86_linux_dr_get_control. All uses updated.
5297 (i386_linux_dr_get_status): Renamed to
5298 x86_linux_dr_get_status. All uses updated.
5299 (i386_linux_dr_set_control): Renamed to
5300 x86_linux_dr_set_control. All uses updated.
5301 (i386_linux_dr_set_addr): Renamed to
5302 x86_linux_dr_set_addr. All uses updated.
5303 (i386_linux_prepare_to_resume): Renamed to
5304 x86_linux_prepare_to_resume. All uses updated.
5305 (i386_linux_new_thread): Renamed to
5306 x86_linux_new_thread. All uses updated.
5307 (i386_linux_new_fork): Renamed to
5308 x86_linux_new_fork. All uses updated.
5309 (i386_linux_child_post_startup_inferior): Renamed to
5310 x86_linux_child_post_startup_inferior. All uses updated.
5311 (i386_linux_enable_btrace): Renamed to
5312 x86_linux_enable_btrace. All uses updated.
5313 (i386_linux_disable_btrace): Renamed to
5314 x86_linux_disable_btrace. All uses updated.
5315 (i386_linux_teardown_btrace): Renamed to
5316 x86_linux_teardown_btrace. All uses updated.
5317 (i386_linux_read_btrace): Renamed to
5318 x86_linux_read_btrace. All uses updated.
5319
b9c1d481
AS
53202014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5321
5322 * remote.c (extended_remote_post_attach): New function.
5323 (init_extended_remote_ops): Install it as to_post_attach method.
5324
7180e04a
PA
53252014-07-09 Pedro Alves <palves@redhat.com>
5326
5327 * infcmd.c (attach_command_post_wait): Don't call
5328 target_terminal_inferior here.
5329 (attach_command): Call it here instead.
5330
9a9a7608
AB
53312014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5334 field.
5335 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5336 from varobj.c, with additional checks.
5337 (c_varobj_ops): Fill in is_path_expr_parent field.
5338 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5339 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5340 field.
5341 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5342 ops method.
5343 (varobj_default_is_path_expr_parent): New function.
5344 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5345 (varobj_default_is_path_expr_parent): Declare new function.
5346
1f267ae3
MM
53472014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5348
5349 * infcmd.c (finish_backward): Turn internal error into normal error.
5350
b2ee242b
PA
53512014-07-07 Pedro Alves <palves@redhat.com>
5352
8a869bca 5353 PR gdb/17096
b2ee242b
PA
5354 * remote.c (async_handle_remote_sigint)
5355 (async_handle_remote_sigint_twice): Call
5356 gdb_call_async_signal_handler instead of
5357 mark_async_signal_handler.
5358
38e229b2
TT
53592014-07-07 Tom Tromey <tromey@redhat.com>
5360
5361 * target-delegates.c: Rebuild.
5362 * target.c (target_info_record): Remove.
5363 * record.c (info_record_command): Unconditionally call
5364 to_info_record.
5365 * target.h (struct target_ops) <to_info_record>: Use
5366 TARGET_DEFAULT_IGNORE.
5367 (target_info_record): Remove.
5368
f0f9ff95
TT
53692014-07-07 Tom Tromey <tromey@redhat.com>
5370
5371 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5372 TARGET_DEFAULT_NORETURN.
5373 * target.c (generic_tls_error): New function.
5374 (target_translate_tls_address): Don't search target stack.
5375 * target-delegates.c: Rebuild.
5376 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5377 stack.
5378 * linux-thread-db.c (thread_db_get_thread_local_address):
5379 Unconditionally call beneath target.
5380
4a5be5ee
MK
53812014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5382
5383 * cli/cli-logging.c (pop_output_files): Assign targerr to
5384 gdb_stdtargerr.
5385
92c3b204
AB
53862014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5387
5388 * MAINTAINERS (Write After Approval): Update my email address.
5389
9b11e3a7
GB
53902014-07-02 Gary Benson <gbenson@redhat.com>
5391
5392 * proc-service.c (ps_xfer_memory): Update comment.
5393 (ps_pstop): Remove unused function.
5394 (ps_pcontinue): Likewise.
5395 (ps_lstop): Likewise.
5396 (ps_lcontinue): Likewise.
5397 (ps_lgetxregsize): Likewise.
5398 (ps_lgetxregs): Likewise.
5399 (ps_lsetxregs): Likewise.
5400 (ps_plog): Likewise.
5401 (ps_ptread): Likewise.
5402 (ps_ptwrite): Likewise.
5403
cf363f18
MW
54042014-07-01 Mark Wielaard <mjw@redhat.com>
5405
5406 * dwarf2read.c (add_array_cv_type): New function.
5407 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5408 (read_tag_volatile_type): Likewise.
5409
82ae6c8d
TT
54102014-07-01 Tom Tromey <tromey@redhat.com>
5411
5412 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5413 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5414 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5415 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5416 * command.h (cmd_cfunc_ftype): Move earlier.
5417 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5418 (add_com, add_info): Use cmd_cfunc_ftype.
5419
96142726
TT
54202014-06-30 Tom Tromey <tromey@redhat.com>
5421
5422 * symtab.c (operator_chars): Make parameters and return type
5423 const.
5424 (file_matches): Make "files" const.
5425 (struct search_symbols_data) <files>: Now const.
5426 (search_symbols): Make "regexp" and "files" parameters const.
5427 Update.
5428 (symtab_symbol_info): Remove cast.
5429 (rbreak_command): Update.
5430 * symtab.h (search_symbols): Update.
5431
b67a2c6f
YQ
54322014-06-27 Yao Qi <yao@codesourcery.com>
5433
5434 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5435 Change parameter type to 'struct thread_info *'. Caller
5436 updated.
5437 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5438 Update declaration.
5439 * dummy-frame.c (struct dummy_frame_id): New.
5440 (dummy_frame_id_eq): New function.
5441 (struct dummy_frame) <id>: Change its type to 'struct
5442 dummy_frame_id'.
5443 (dummy_frame_push): Add parameter ptid and save it in
5444 dummy_frame_id.
5445 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5446 inferior_ptid.
5447 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5448 to inferior_ptid.
5449 (lookup_dummy_frame): Change parameter type to 'struct
5450 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5451 instead of frame_id_eq.
5452 (dummy_frame_pop): Add parameter ptid. Callers updated.
5453 Update comments. Compose dummy_frame_id and pass it to
5454 lookup_dummy_frame.
5455 (dummy_frame_discard): Add parameter ptid.
5456 (dummy_frame_sniffer): Compose dummy_frame_id and call
5457 dummy_frame_id_eq instead of frame_id_eq.
5458 (fprint_dummy_frames): Print ptid.
5459 * dummy-frame.h: Remove comments.
5460 (dummy_frame_push): Add ptid in declaration.
5461 (dummy_frame_pop, dummy_frame_discard): Likewise.
5462
5b10184c
TT
54632014-06-26 Tom Tromey <tromey@redhat.com>
5464
5465 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5466 * command.h (error_no_arg): Update.
5467
06900326
TT
54682014-06-26 Tom Tromey <tromey@redhat.com>
5469
5470 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5471 (do_show_command): Make "arg" const.
5472 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5473
c2bcbb1d
TT
54742014-06-26 Tom Tromey <tromey@redhat.com>
5475
5476 * record-full.c (record_full_get_bookmark): Make "args" const.
5477 (record_full_goto_bookmark): Make "raw_bookmark" const.
5478 * record.c (record_goto): New function.
5479 (cmd_record_goto): Use it. Now static.
5480 * record.h (record_goto): Declare.
5481 (cmd_record_goto): Remove declaration.
5482 * target-delegates.c: Rebuild.
5483 * target.h (struct target_ops) <to_get_bookmark,
5484 to_goto_bookmark>: Make parameter const.
5485
9cbe5fff
TT
54862014-06-26 Tom Tromey <tromey@redhat.com>
5487
5488 * defs.h (generic_load): Update.
5489 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5490 * monitor.c (monitor_load): Make "args" const.
5491 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5492 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5493 const.
5494 (mips_load): Make "file" const.
5495 * remote-sim.c (gdbsim_load): Make "args" const.
5496 * remote.c (remote_load): Make "name" const.
5497 * symfile.c (generic_load): Make "args" const.
5498 * target-delegates.c: Rebuild.
5499 * target.c (target_load): Make "arg" const.
5500 (debug_to_load): Make "args" const.
5501 * target.h (struct target_ops) <to_load>: Make parameter const.
5502 (target_load): Update.
5503
34a68019
TT
55042014-06-26 Tom Tromey <tromey@redhat.com>
5505
5506 PR symtab/16902:
5507 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5508 (dwarf2_physname, read_partial_die)
5509 (guess_partial_die_structure_name, fixup_partial_die)
5510 (guess_full_die_structure_name, anonymous_struct_prefix)
5511 (dwarf2_name): Use per-BFD obstack.
5512
efc889c1
YQ
55132014-06-26 Yao Qi <yao@codesourcery.com>
5514
5515 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5516 dummyframe and this_id into inner block below.
5517
4395285e
YQ
55182014-06-26 Yao Qi <yao@codesourcery.com>
5519
5520 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5521 with "signal_pass[0]" in the initialization of signal_pass.
5522
aef92902
MM
55232014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5524
5525 * record-btrace.c (record_btrace_generating_corefile)
5526 (record_btrace_prepare_to_generate_core)
5527 (record_btrace_done_generating_core): New.
5528 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5529 (record_btrace_store_registers, record_btrace_prepare_to_store):
5530 Forward request when generating a core file.
5531 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5532 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5533 to_done_generating_core.
5534
5fff78c4
MM
55352014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5536
5537 * target.h (target_ops) <to_prepare_to_generate_core>
5538 <to_done_generating_core>: New.
5539 (target_prepare_to_generate_core, target_done_generating_core): New.
5540 * target.c (target_prepare_to_generate_core)
5541 (target_done_generating_core): New.
5542 * target-delegates.c: Regenerate.
5543 * gcore.c: (write_gcore_file): Rename to ...
5544 (write_gcore_file_1): ...this.
5545 (write_gcore_file): Call target_prepare_to_generate_core
5546 and target_done_generating_core.
5547
1d1f1ccb
MM
55482014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5549
5550 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5551 * gcore.c (write_gcore_file): Free memory returned from
5552 make_corefile_notes.
5553 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5554 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5555
3343ef86
YQ
55562014-06-24 Yao Qi <yao@codesourcery.com>
5557
5558 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5559 (arm_linux_init_abi): Set skip_trampoline_code with
5560 gdbarch_skip_trampoline_code instead of
5561 find_solib_trampoline_target.
5562
18d18ac8
YQ
55632014-06-24 Yao Qi <yao@codesourcery.com>
5564
5565 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5566 arm_skip_bx_reg returns non-zero.
5567
80d8d390
YQ
55682014-06-24 Yao Qi <yao@codesourcery.com>
5569
5570 * arm-tdep.c (arm_skip_bx_reg): New function.
5571 (arm_skip_stub): Call arm_skip_bx_reg.
5572
6a18a01c
DB
55732014-06-23 Don Breazeal <donb@codesourcery.com>
5574
5575 * MAINTAINERS: Add myself as write-after-approval maintainer.
5576
8e9db26e
PA
55772014-06-23 Pedro Alves <palves@redhat.com>
5578
5579 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5580 DR_CONTROL before setting DR0..DR3.
5581 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5582 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5583 bits of DR_CONTROL related to the debug register slot being
5584 disabled. If all slots are vacant, clear local slowdown as well,
5585 and assert DR_CONTROL is 0.
5586
70afc5b7
SC
55872014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5588
5589 * python/lib/gdb/command/xmethods.py
5590 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5591 current progspace only if the string "progspace" matches LOCUS_RE.
5592
840ed64d
JK
55932014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5594
5595 Fix --with-system-readline with readline-6.3 patch 5.
5596 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5597 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5598 types.
5599
26f2dc30
TT
56002014-06-20 Tom Tromey <tromey@redhat.com>
5601
5602 * dwarf2read.c (dw2_get_real_path): Use correct type in
5603 OBSTACK_CALLOC.
5604 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5605
125f8a3d
GB
56062014-06-20 Gary Benson <gbenson@redhat.com>
5607
5608 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5609 * common/glibc_thread_db.h: Likewise.
5610 * common/i386-cpuid.h: Likewise.
5611 * common/i386-gcc-cpuid.h: Likewise.
5612 * common/linux-btrace.h: Likewise.
5613 * common/linux-osdata.h: Likewise.
5614 * common/linux-procfs.h: Likewise.
5615 * common/linux-ptrace.h: Likewise.
5616 * common/mips-linux-watch.h: Likewise.
5617 * common/linux-btrace.c: Moved to nat.
5618 * common/linux-osdata.c: Likewise.
5619 * common/linux-procfs.c: Likewise.
5620 * common/linux-ptrace.c: Likewise.
5621 * common/mips-linux-watch.c: Likewise.
5622 * nat/gdb_thread_db.h: Moved from common.
5623 * nat/glibc_thread_db.h: Likewise.
5624 * nat/i386-cpuid.h: Likewise.
5625 * nat/i386-gcc-cpuid.h: Likewise.
5626 * nat/linux-btrace.c: Likewise.
5627 * nat/linux-btrace.h: Likewise.
5628 * nat/linux-osdata.c: Likewise.
5629 * nat/linux-osdata.h: Likewise.
5630 * nat/linux-procfs.c: Likewise.
5631 * nat/linux-procfs.h: Likewise.
5632 * nat/linux-ptrace.c: Likewise.
5633 * nat/linux-ptrace.h: Likewise.
5634 * nat/mips-linux-watch.c: Likewise.
5635 * nat/mips-linux-watch.h: Likewise.
5636 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5637 (object file files): Reordered.
5638 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5639 of glibc_thread_db.h.
5640
42995dbd
GB
56412014-06-20 Gary Benson <gbenson@redhat.com>
5642
5643 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5644 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5645 (i386_dr_low): Likewise.
5646 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5647 (i386_dr_low_set_addr): Likewise.
5648 (i386_dr_low_get_addr): Likewise.
5649 (i386_dr_low_can_set_control): Likewise.
5650 (i386_dr_low_set_control): Likewise.
5651 (i386_dr_low_get_control): Likewise.
5652 (i386_dr_low_get_status): Likewise.
5653 (i386_get_debug_register_length): Likewise.
5654 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5655 (i386_dr_low): Likewise.
5656 * nat/i386-dregs.c (i386-low.h): Remove include.
5657 (i386-nat.h): Likewise.
5658 (nat/i386-dregs.h): New include.
5659 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5660 (i386_dr_low_set_addr): Likewise.
5661 (i386_dr_low_get_addr): Likewise.
5662 (i386_dr_low_can_set_control): Likewise.
5663 (i386_dr_low_set_control): Likewise.
5664 (i386_dr_low_get_control): Likewise.
5665 (i386_dr_low_get_status): Likewise.
5666 (i386_get_debug_register_length): Likewise.
5667 (debug_hw_points): Likewise.
5668
3ed9baed
IB
56692014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5670
5671 * Makefile.in (SFILES): Add d-exp.y.
5672 (YYFILES): Add d-exp.c.
5673 (YYOBJ): Add d-exp.o.
5674 (local-maintainer-clean): Delete d-exp.c.
5675 * d-exp.y: New file.
5676 * d-lang.h (d_parse): New declaration.
5677 (d_error): New declaration.
5678 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5679 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5680 PREC_ORDER operators.
5681 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5682
78c164b0
YQ
56832014-06-19 Yao Qi <yao@codesourcery.com>
5684
5685 * gdbthread.h (any_running): Remove the declaration.
5686 * thread.c (any_running): Remove.
5687
f6e29b6e
YQ
56882014-06-19 Yao Qi <yao@codesourcery.com>
5689
5690 * gdbthread.h (struct thread_info) <state>: Change its type to
5691 'enum thread_state'. Update comments.
5692
034f788c
PA
56932014-06-19 Pedro Alves <palves@redhat.com>
5694
5695 * gdbthread.h (ALL_THREADS): Delete.
5696 (ALL_NON_EXITED_THREADS): New macro.
5697 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5698 instead of ALL_THREADS.
5699 * infrun.c (find_thread_needs_step_over)
5700 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5701 instead of ALL_THREADS.
5702 * record-btrace.c (record_btrace_open)
5703 (record_btrace_stop_recording, record_btrace_close)
5704 (record_btrace_is_replaying, record_btrace_resume)
5705 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5706 * remote.c (append_pending_thread_resumptions): Likewise.
5707 * thread.c (thread_apply_all_command): Likewise.
5708
46e33252
GB
57092014-06-19 Gary Benson <gbenson@redhat.com>
5710
5711 * i386-nat.c (i386_stopped_by_watchpoint):
5712 Use i386_dr_stopped_by_watchpoint.
5713 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5714 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5715
3a8ee006
GB
57162014-06-19 Gary Benson <gbenson@redhat.com>
5717
5718 * nat/i386-dregs.c: New file.
5719 * Makefile.in (i386-dregs.o): New rule.
5720 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5721 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5722 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5723 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5724 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5725 * config/i386/go32.mh (NATDEPFILES): Likewise.
5726 * config/i386/linux.mh (NATDEPFILES): Likewise.
5727 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5728 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5729 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5730 * i386-nat.h (debug_hw_points): New declaration.
5731 * i386-nat.c (breakpoint.h): Remove include.
5732 (command.h): Likewise.
5733 (target.h): Likewise.
5734 (gdb_assert.h): Likewise.
5735 (debug_hw_points): Made nonstatic.
5736 (debug_printf): Now in i386-dregs.c.
5737 (TARGET_HAS_DR_LEN_8): Likewise.
5738 (DR_CONTROL_SHIFT): Likewise.
5739 (DR_CONTROL_SIZE): Likewise.
5740 (DR_RW_EXECUTE): Likewise.
5741 (DR_RW_WRITE): Likewise.
5742 (DR_RW_READ): Likewise.
5743 (DR_RW_IORW): Likewise.
5744 (DR_LEN_1): Likewise.
5745 (DR_LEN_2): Likewise.
5746 (DR_LEN_4): Likewise.
5747 (DR_LEN_8): Likewise.
5748 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5749 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5750 (DR_ENABLE_SIZE): Likewise.
5751 (DR_LOCAL_SLOWDOWN): Likewise.
5752 (DR_GLOBAL_SLOWDOWN): Likewise.
5753 (DR_CONTROL_RESERVED): Likewise.
5754 (I386_DR_CONTROL_MASK): Likewise.
5755 (I386_DR_VACANT): Likewise.
5756 (I386_DR_LOCAL_ENABLE): Likewise.
5757 (I386_DR_GLOBAL_ENABLE): Likewise.
5758 (I386_DR_DISABLE): Likewise.
5759 (I386_DR_SET_RW_LEN): Likewise.
5760 (I386_DR_GET_RW_LEN): Likewise.
5761 (I386_DR_WATCH_HIT): Likewise.
5762 (i386_wp_op_t): Likewise.
5763 (i386_show_dr): Likewise.
5764 (i386_length_and_rw_bits): Likewise.
5765 (i386_insert_aligned_watchpoint): Likewise.
5766 (i386_remove_aligned_watchpoint): Likewise.
5767 (i386_handle_nonaligned_watchpoint): Likewise.
5768 (i386_update_inferior_debug_regs): Likewise.
5769 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5770 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5771 (i386_region_ok_for_watchpoint):
5772 Use i386_dr_region_ok_for_watchpoint.
5773 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5774
322a8e06
GB
57752014-06-19 Gary Benson <gbenson@redhat.com>
5776
5777 * i386-nat.c (i386_insert_hw_breakpoint): Use
5778 i386_insert_watchpoint.
5779 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5780
8f26655c
GB
57812014-06-19 Gary Benson <gbenson@redhat.com>
5782
5783 * i386-nat.c (i386_dr_show): Renamed to
5784 i386_show_dr and made static. All uses updated.
5785 (i386_dr_length_and_rw_bits): Renamed to
5786 i386_length_and_rw_bits and made static.
5787 All uses updated.
5788 (i386_dr_insert_aligned_watchpoint): Renamed to
5789 i386_insert_aligned_watchpoint and made static.
5790 All uses updated.
5791 (i386_dr_remove_aligned_watchpoint): Renamed to
5792 i386_remove_aligned_watchpoint and made static.
5793 All uses updated.
5794 (i386_dr_update_inferior_debug_regs): Renamed to
5795 i386_update_inferior_debug_regs and made static.
5796 All uses updated.
5797 * nat/i386-dregs.h (i386_dr_show): Removed.
5798 (i386_dr_length_and_rw_bits): Likewise.
5799 (i386_dr_insert_aligned_watchpoint): Likewise.
5800 (i386_dr_remove_aligned_watchpoint): Likewise.
5801 (i386_dr_update_inferior_debug_regs): Likewise.
5802
992c7d70
GB
58032014-06-19 Gary Benson <gbenson@redhat.com>
5804
5805 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5806 * configure: Regenerate.
5807 * config.in: Likewise.
5808 * main.c (signal.h): New include.
5809 (setup_alternate_signal_stack): New function.
5810 (captured_main): Call the above.
5811 * cp-support.c (signal.h): New include.
5812 (catch_demangler_crashes): New flag.
5813 (SIGJMP_BUF): New define.
5814 (SIGSETJMP): Likewise.
5815 (SIGLONGJMP): Likewise.
5816 (gdb_demangle_jmp_buf): New static global.
5817 (gdb_demangle_attempt_core_dump): Likewise.
5818 (gdb_demangle_signal_handler): New function.
5819 (gdb_demangle): If catch_demangler_crashes is set, install the
5820 above signal handler before calling bfd_demangle, and restore
5821 the original signal handler afterwards. Display the offending
5822 symbol and call demangler_warning the first time a segmentation
5823 fault is caught.
5824 (_initialize_cp_support): New maint set/show command.
5825
eae7090b
GB
58262014-06-19 Gary Benson <gbenson@redhat.com>
5827
5828 * utils.h (resource_limit_kind): New enum.
5829 (can_dump_core): New declaration.
5830 (warn_cant_dump_core): Likewise.
5831 (dump_core): Likewise.
5832 * utils.c (dump_core): Made nonstatic. Added new
5833 parameter "limit_kind".
5834 (can_dump_core): Made nonstatic. Moved printing code to...
5835 (warn_cant_dump_core): New function.
5836 (can_dump_core_warn): Likewise.
5837 (internal_vproblem): Replace calls to can_dump_core with
5838 calls to can_dump_core_warn. Supply new argument to each.
5839
57fcfb1b
GB
58402014-06-19 Gary Benson <gbenson@redhat.com>
5841
5842 * utils.h (demangler_vwarning): New declaration.
5843 (demangler_warning): Likewise.
5844 * utils.c (struct internal_problem)
5845 <user_settable_should_quit>: New field.
5846 <user_settable_should_dump_core>: Likewise
5847 (internal_error_problem): Add values for above new fields.
5848 (internal_warning_problem): Likewise.
5849 (demangler_warning_problem): New static global.
5850 (demangler_vwarning): New function.
5851 (demangler_warning): Likewise.
5852 (add_internal_problem_command): Selectively add commands.
5853 (_initialize_utils): New internal problem command.
5854 * maint.c (maintenance_demangler_warning): New function.
5855 (_initialize_maint_cmds): New command.
5856
17a40b44
TT
58572014-06-18 Tom Tromey <tromey@redhat.com>
5858
5859 * f-valprint.c (info_common_command_for_block): Update.
5860 * symtab.h (struct general_symbol_info) <common_block>: Now
5861 const.
5862
346d1dfe
TT
58632014-06-18 Tom Tromey <tromey@redhat.com>
5864
5865 * symtab.h (struct symtab) <blockvector>: Now const.
5866 * ada-lang.c (ada_add_global_exceptions): Update.
5867 * buildsym.c (augment_type_symtab): Update.
5868 * dwarf2read.c (dw2_lookup_symbol): Update.
5869 * jit.c (finalize_symtab): Update.
5870 * jv-lang.c (add_class_symtab_symbol): Update.
5871 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5872 Update.
5873 * objfiles.c (objfile_relocate1): Update.
5874 * psymtab.c (lookup_symbol_aux_psymtabs)
5875 (maintenance_check_psymtabs): Update.
5876 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5877 Update.
5878 * spu-tdep.c (spu_catch_start): Update.
5879 * symmisc.c (dump_symtab_1): Update.
5880 * symtab.c (lookup_global_symbol_from_objfile)
5881 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5882 (basic_lookup_transparent_type_quick)
5883 (basic_lookup_transparent_type, find_pc_sect_symtab)
5884 (find_pc_sect_line, search_symbols): Update.
5885 * block.c (find_block_in_blockvector): Make "bl" const.
5886 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5887 const.
5888 (blockvector_contains_pc): Make "bv" const.
5889 (block_for_pc_sect): Update.
5890 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5891 (blockvector_contains_pc): Update.
5892 * breakpoint.c (resolve_sal_pc): Update.
5893 * inline-frame.c (block_starting_point_at): Update.
5894
1834676b
TT
58952014-06-18 Tom Tromey <tromey@redhat.com>
5896
5897 * completer.c (complete_line): Make "line_buffer" const.
5898 * completer.h (complete_line): Update.
5899
ac1a991b
TT
59002014-06-18 Tom Tromey <tromey@redhat.com>
5901
5902 * symtab.c (add_macro_name): Remove unneeded cast.
5903
5bc98e52
TT
59042014-06-18 Tom Tromey <tromey@redhat.com>
5905
5906 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5907 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5908
8236def8
TT
59092014-06-18 Tom Tromey <tromey@redhat.com>
5910
5911 * probe.c (info_probes_for_ops): Make "arg" const.
5912 * probe.h (info_probes_for_ops): Update.
5913
3977b71f
TT
59142014-06-18 Tom Tromey <tromey@redhat.com>
5915
5916 * varobj.c (varobj_create): Update.
5917 * valops.c (value_of_this): Update.
5918 * tracepoint.c (add_local_symbols, scope_info): Update.
5919 * symtab.h (struct general_symbol_info) <block>: Now const.
5920 * symtab.c (skip_prologue_sal)
5921 (default_make_symbol_completion_list_break_on)
5922 (skip_prologue_using_sal): Update.
5923 * stack.h (iterate_over_block_locals)
5924 (iterate_over_block_local_vars): Update.
5925 * stack.c (print_frame_args): Update.
5926 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5927 parameter const.
5928 (get_selected_block): Make return type const.
5929 * python/py-frame.c (frapy_block): Update.
5930 * python/py-block.c (gdbpy_block_for_pc): Update.
5931 * p-exp.y (%union) <bval>: Now const.
5932 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5933 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5934 * m2-exp.y (%union) <bval>: Now const.
5935 * linespec.c (get_current_search_block): Make return type const.
5936 (create_sals_line_offset, find_label_symbols): Update.
5937 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5938 Update.
5939 (block_starting_point_at): Make "block" const.
5940 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5941 (check_exception_resume): Update.
5942 * guile/scm-frame.c (gdbscm_frame_block): Update.
5943 * guile/scm-block.c (gdbscm_lookup_block): Update.
5944 * frame.h (get_frame_block): Update.
5945 (get_selected_block): Make return type const.
5946 * frame.c (frame_id_inner): Update.
5947 * f-valprint.c (info_common_command_for_block)
5948 (info_common_command): Update.
5949 * dwarf2loc.c (dwarf2_find_location_expression)
5950 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5951 (locexpr_describe_location_piece): Update.
5952 * c-exp.y (%union) <bval>: Now const.
5953 * breakpoint.c (resolve_sal_pc): Update.
5954 * blockframe.c (get_frame_block):Make return type const.
5955 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5956 (block_innermost_frame): Update.
5957 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5958 (block_for_pc, block_for_pc_sect): Update.
5959 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5960 'pblock' const.
5961 (block_for_pc_sect, block_for_pc): Make return type const.
5962 * ax-gdb.c (gen_expr): Update.
5963 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5964 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5965 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5966 (ada_read_var_value): Update.
5967 * ada-exp.y (struct name_info) <block>: Now const.
5968 (%union): Likewise.
5969 (block_lookup): Constify.
5970
b9228891
GB
59712014-06-18 Gary Benson <gbenson@redhat.com>
5972
5973 * nat/i386-dregs.h: New file.
5974 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5975 * i386-nat.h (i386-dregs.h): New include.
5976 (DR_FIRSTADDR): Now in i386-dregs.h.
5977 (DR_LASTADDR): Likewise.
5978 (DR_NADDR): Likewise.
5979 (DR_STATUS): Likewise.
5980 (DR_CONTROL): Likewise.
5981 (i386_debug_reg_state): Likewise.
5982 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5983
a1aa2221
LM
59842014-06-18 Don Breazeal <donb@codesourcery.com>
5985
5986 * breakpoint.c (set_longjmp_breakpoint): Call
5987 momentary_breakpoint_from_master with additional argument.
5988 (set_longjmp_breakpoint_for_call_dummy): Call
5989 momentary_breakpoint_from_master with additional argument.
5990 (set_std_terminate_breakpoint): Call
5991 momentary_breakpoint_from_master with additional argument.
5992 (momentary_breakpoint_from_master): Add argument to function
5993 definition and use it to initialize structure member flag.
74228e77 5994 (clone_momentary_breakpoint): Call
a1aa2221
LM
5995 momentary_breakpoint_from_master with additional argument.
5996 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5997 member flags set in momentary_breakpoint_from_master.
5998
4be83cc2
GB
59992014-06-18 Gary Benson <gbenson@redhat.com>
6000
6001 * i386-nat.c (i386_show_dr): Renamed to
6002 i386_dr_show and made nonstatic. All uses updated.
6003 (i386_length_and_rw_bits): Renamed to
6004 i386_dr_length_and_rw_bits and made nonstatic.
6005 All uses updated.
6006 (i386_insert_aligned_watchpoint): Renamed to
6007 i386_dr_insert_aligned_watchpoint and made nonstatic.
6008 All uses updated.
6009 (i386_remove_aligned_watchpoint): Renamed to
6010 i386_dr_remove_aligned_watchpoint and made nonstatic.
6011 All uses updated.
6012 (i386_update_inferior_debug_regs): Renamed to
6013 i386_dr_update_inferior_debug_regs and made nonstatic.
6014 All uses updated.
6015
131aa0d4
GB
60162014-06-18 Gary Benson <gbenson@redhat.com>
6017
6018 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6019 (i386_dr_low_can_set_control): Likewise.
6020 (i386_dr_low_set_addr): Likewise.
6021 (i386_dr_low_set_control): Likewise.
6022 (i386_dr_low_get_addr): Likewise.
6023 (i386_dr_low_get_status): Likewise.
6024 (i386_dr_low_get_control): Likewise.
6025 (i386_insert_aligned_watchpoint): Use new macros.
6026 (i386_update_inferior_debug_regs): Likewise.
6027 (i386_stopped_data_address): Likewise.
6028
d9305f7f
GB
60292014-06-18 Gary Benson <gbenson@redhat.com>
6030
6031 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6032 New parameter. All uses updated.
6033
ea008da4
GB
60342014-06-18 Gary Benson <gbenson@redhat.com>
6035
6036 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6037 All uses updated.
6038
1b6d4134
GB
60392014-06-18 Gary Benson <gbenson@redhat.com>
6040
6041 * i386-nat.c (debug_printf): New macro.
6042 (i386_get_debug_register_length): Likewise.
6043 (TARGET_HAS_DR_LEN_8): Use above macro.
6044 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6045 and printf_unfiltered. Use phex to format values.
6046
9b4550ef
GB
60472014-06-18 Gary Benson <gbenson@redhat.com>
6048
6049 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6050 Make const.
6051
6e62758f
GB
60522014-06-18 Gary Benson <gbenson@redhat.com>
6053
6054 * i386-nat.c: Comment changes.
6055
51c79e94
GB
60562014-06-18 Gary Benson <gbenson@redhat.com>
6057
6058 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6059
3e11889a
GB
60602014-06-18 Gary Benson <gbenson@redhat.com>
6061
6062 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6063 (i386_insert_aligned_watchpoint): Likewise.
6064 (i386_remove_aligned_watchpoint): Likewise.
6065 (i386_handle_nonaligned_watchpoint): Likewise.
6066
fc6e2f03
GB
60672014-06-18 Gary Benson <gbenson@redhat.com>
6068
6069 * i386-nat.c: Whitespace changes.
6070
2afe7d50
SB
60712014-06-17 Samuel Bronson <naesten@gmail.com>
6072
6073 * MAINTAINERS: Update Roland McGrath's email address.
6074 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6075 Red Hat a while ago, and giving me a current address.
2afe7d50 6076
3bca49ee
TT
60772014-06-17 Tom Tromey <tromey@redhat.com>
6078
6079 * utils.h (savestring): Remove declaration.
6080
6e366df1
TT
60812014-06-17 Tom Tromey <tromey@redhat.com>
6082
6083 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6084
6be47f0c
KS
60852014-06-16 Keith Seitz <keiths@redhat.com>
6086
6087 PR mi/15863
6088 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6089 to update the varobj if inferior_ptid is null_ptid.
6090
7bc112c1
TT
60912014-06-16 Tom Tromey <tromey@redhat.com>
6092
6093 * target.h (struct target_ops) <to_info_proc>: Make parameter
6094 const.
6095 (target_info_proc): Update.
6096 * target.c (target_info_proc): Make "args" const.
6097 * procfs.c (procfs_info_proc): Update.
6098 * linux-tdep.c (linux_info_proc): Update.
6099 (linux_core_info_proc_mappings): Make "args" const.
6100 (linux_core_info_proc): Update.
6101 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6102 * gdbarch.c: Rebuild.
6103 * gdbarch.h: Rebuild.
6104 * corelow.c (core_info_proc): Update.
6105
fee354ee
TT
61062014-06-16 Tom Tromey <tromey@redhat.com>
6107
6108 * target.h (struct target_ops) <to_disconnect>: Make parameter
6109 const.
6110 (target_disconnect): Update.
6111 * target.c (target_disconnect): Make "args" const.
6112 * target-delegates.c: Rebuild.
6113 * remote.c (remote_disconnect): Update.
6114 * record.h (record_disconnect): Update.
6115 * record.c (record_disconnect): Update.
6116 * inf-child.c (inf_child_disconnect): Update.
6117
a30bf1f1
TT
61182014-06-16 Tom Tromey <tromey@redhat.com>
6119
6120 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6121 * target.c (debug_to_rcmd, default_rcmd): Update.
6122 * target-delegates.c: Rebuild.
6123 * remote.c (remote_rcmd): Update.
6124 * monitor.c (monitor_rcmd): Update.
6125
d03de421
PA
61262014-06-16 Pedro Alves <palves@redhat.com>
6127
6128 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6129 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6130 have OBJF_SHARED set.
6131 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6132 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6133 instead of OBJF_USERLOADED.
6134 * objfiles.h (OBJF_SHARED): Update comment.
6135 (userloaded_objfile_contains_address_p): Rename to ...
6136 (shared_objfile_contains_address_p): ... this, and update
6137 comments.
6138 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6139 new objfile.
6140 (remove_symbol_file_command): Skip objfiles that don't have
6141 OBJF_SHARED set.
6142
99f4262f
TT
61432014-06-16 Tom Tromey <tromey@redhat.com>
6144
6145 * minsyms.h (prim_record_minimal_symbol)
6146 (prim_record_minimal_symbol_and_info): Update comments.
6147
97d66cc6
EZ
61482014-06-14 Eli Zaretskii <eliz@gnu.org>
6149
6150 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6151 or --without-guile, according to how GDB was built.
6152
635c7e8a
TT
61532014-06-13 Tom Tromey <tromey@redhat.com>
6154
6155 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6156 to help_list.
6157 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6158 to help_list.
6159 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6160 help_list.
6161 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6162 help_list.Pass all_commands, not -1, to help_list.
6163 * cli/cli-dump.c (dump_command, append_command)
6164 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6165 (binary_dump_command, binary_append_command): Pass all_commands,
6166 not -1, to help_list.
6167 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6168 -1, to help_list.
6169 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6170 -1, to help_list.
6171 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6172 help_list.
6173 * top.c (set_history): Pass all_commands, not -1, to help_list.
6174 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6175 all_commands, not -1, to help_list.
6176 * symfile.c (overlay_command): Pass all_commands, not -1, to
6177 help_list.
6178 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6179 help_list.
6180 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6181 help_list.
6182 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6183 -1, to help_list.
6184 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6185 not -1, to help_list.
6186 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6187 not -1, to help_list.
6188 * maint.c (maintenance_command, maintenance_info_command)
6189 (maintenance_print_command, maintenance_set_cmd): Pass
6190 all_commands, not -1, to help_list.
6191 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6192 help_list.
6193 * language.c (set_check): Pass all_commands, not -1, to help_list.
6194 * infcmd.c (unset_command): Pass all_commands, not -1, to
6195 help_list.
6196 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6197 help_list.
6198 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6199 help_list.
6200 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6201 help_list.
6202 * breakpoint.c (save_command): Pass all_commands, not -1, to
6203 help_list.
6204 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6205 all_commands, not -1, to help_list.
6206
b94ade42
PL
62072014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6208
6209 * regcache.c (struct register_to_invalidate): New structure.
6210 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6211 functions.
6212 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6213
31f628ae
YQ
62142014-06-12 Yao Qi <yao@codesourcery.com>
6215
6216 * varobj.c (varobj_get_num_children): Call
6217 varobj_is_dynamic_p.
6218 (varobj_list_children): Likewise.
6219 (varobj_update): Likewise. Update comments.
6220
cde5ef40
YQ
62212014-06-12 Yao Qi <yao@codesourcery.com>
6222
6223 * varobj.c (varobj_pretty_printed_p): Rename to ...
6224 (varobj_is_dynamic_p): ... this. New function.
6225 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6226 (varobj_is_dynamic_p): Declare.
6227 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6228 (mi_print_value_p, varobj_update_one): Likewise.
6229
576ea091
YQ
62302014-06-12 Pedro Alves <pedro@codesourcery.com>
6231 Yao Qi <yao@codesourcery.com>
6232
6233 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6234 (varobj_get_iterator): Wrap up code for pretty-printer by
6235 "#if HAVE_PYTHON" and "#endif".
6236 (update_dynamic_varobj_children): Likewise.
6237
827f100c
YQ
62382014-06-12 Pedro Alves <pedro@codesourcery.com>
6239 Yao Qi <yao@codesourcery.com>
6240
6241 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6242 gdb_python_initialized is false. Move some code from varobj.c.
6243 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6244 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6245 (struct varobj_item): Moved to varobj-iter.h".
6246 (varobj_clear_saved_item): New function.
6247 (update_dynamic_varobj_children): Move python-related code to
6248 py-varobj.c.
6249 (free_variable): Call varobj_clear_saved_item and
6250 varobj_iter_delete.
6251
e5250216
YQ
62522014-06-12 Pedro Alves <pedro@codesourcery.com>
6253 Yao Qi <yao@codesourcery.com>
6254
6255 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6256 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6257 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6258 (py-varobj.o): New rule.
6259 * python/py-varobj.c: New file.
6260 * python/python-internal.h (py_varobj_get_iterator): Declare.
6261 * varobj-iter.h: New file.
6262 * varobj.c: Include "varobj-iter.h"
6263 (struct varobj) <child_iter>: Change its type from "PyObject *"
6264 to "struct varobj_iter *".
6265 <saved_item>: Likewise.
6266 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6267 [HAVE_PYTHON] (varobj_get_iterator): New function.
6268 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6269 python-specific code to python/py-varobj.c.
6270 (install_visualizer): Call varobj_iter_delete instead of
6271 Py_XDECREF.
6272 * varobj.h (varobj_ensure_python_env): Declare.
6273
5a2e0d6e
YQ
62742014-06-12 Yao Qi <yao@codesourcery.com>
6275
6276 * varobj.c (struct varobj_item): New structure.
6277 (create_child_with_value): Update declaration.
6278 (varobj_add_child): Replace arguments 'name' and 'value' with
6279 'item'. All callers updated.
6280 (install_dynamic_child): Likewise.
6281 (update_dynamic_varobj_children): Likewise.
6282 (varobj_add_child): Likewise.
6283 (create_child_with_value): Likewise.
6284
919b9a93
JB
62852014-06-11 Joel Brobecker <brobecker@adacore.com>
6286
6287 * NEWS: Create a new section for the next release branch.
6288 Rename the section of the current branch, now that it has
6289 been cut.
6290
71a55bdf
JB
62912014-06-11 Joel Brobecker <brobecker@adacore.com>
6292
6293 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6294 * version.in: Bump version to 7.8.50.DATE-cvs.
6295
364fe1f7
PA
62962014-06-11 Pedro Alves <palves@redhat.com>
6297
6298 PR remote/17028
6299 * ser-mingw.c (net_windows_socket_check_pending): New function.
6300 (net_windows_select_thread): Ignore spurious wakeups. Use
6301 net_windows_socket_check_pending.
6302 (net_windows_wait_handle): Check for pending events with
6303 ioctlsocket, through net_windows_socket_check_pending, instead of
6304 checking the socket's event.
6305
5a6c7709
SC
63062014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6307
6308 * python/python-internal.h (gdb_PyObject_GetAttrString)
6309 (gdb_PyObject_HasAttrString): New inline function definitions.
6310 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6311 char * of the second argument to PyObject_GetAttrString.
74228e77 6312
0e58ee40
JB
63132014-06-10 Joel Brobecker <brobecker@adacore.com>
6314
6315 * serial.c (serial_write): Fix index of character to be printed
6316 in call to serial_logchar when serial debug traces are enabled.
6317
d190df30
JB
63182014-06-10 Joel Brobecker <brobecker@adacore.com>
6319
6320 * gdbtypes (resolve_dynamic_range): Add function description.
6321
b4b01d36
PA
63222014-06-09 Pedro Alves <palves@redhat.com>
6323
6324 * linux-nat.c (linux_child_follow_fork): Initialize status with
6325 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6326 inner block. Only pass the signal to PTRACE_DETACH if in pass
6327 state.
6328
3657956b
GB
63292014-06-09 Gary Benson <gbenson@redhat.com>
6330
6331 * common/signals.c (gdb_signal_from_host): Reorder to separate
6332 the always-available ANSI-standard signals from the signals that
6333 require checking.
6334 (do_gdb_signal_to_host): Likewise.
6335 * proc-events.c (signal_table): Likewise.
6336
c077881a
HZ
63372014-06-08 Hui Zhu <hui@codesourcery.com>
6338
6339 * common/linux-ptrace.c (linux_disable_event_reporting): New
6340 function.
6341 * common/linux-ptrace.h (linux_disable_event_reporting): New
6342 declaration.
6343 * linux-nat.c (linux_child_follow_fork): Do a single step before
6344 detach.
6345
4186eb54
KS
63462014-06-07 Keith Seitz <keiths@redhat.com>
6347
6348 Revert:
6349 PR c++/16253
6350 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6351 from symbol_matches_domain in symtab.c. All local callers
6352 of symbol_matches_domain updated.
6353 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6354 search STRUCT_DOMAIN.
6355 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6356 independently. standard_lookup will do that automatically.
6357 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6358 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6359 (cp_lookup_symbol_in_namespace): Likewise.
6360 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6361 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6362 may return a STRUCT_DOMAIN match.
6363 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6364 * cp-support.c: Include language.h.
6365 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6366 VAR_DOMAIN.
6367 * psymtab.c (match_partial_symbol): Compare the requested
6368 domain with the symbol's domain directly.
6369 (lookup_partial_symbol): Likewise.
6370 * symtab.c (lookup_symbol_in_language): Explain when/why
6371 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6372 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6373 appropriate languages.
6374 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6375 and moved to ada-lang.c
6376 (lookup_block_symbol): Explain that this function only returns
6377 symbol matching the requested DOMAIN.
6378 Compare the requested domain with the symbol's domain directly.
6379 (iterate_over_symbols): Compare the requested domain with the
6380 symbol's domain directly.
6381 * symtab.h (symbol_matches_domain): Remove.
6382
25326a28 63832014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6384
6385 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6386 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6387 (gdbscm_guile_version_is_at_least): Declare.
6388 (gdbscm_scm_string_to_int): Declare.
6389 * guile/guile.c (gdbscm_guile_major_version): New global.
6390 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6391 (guile_datadir): New static global.
6392 (gdbscm_guile_data_directory): New function.
6393 (initialize_scheme_side): Update.
6394 (misc_guile_functions): Add guile-data-directory.
6395 (initialize_gdb_module): Fetch guile version number.
6396 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6397 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6398 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6399 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6400 comments.
6401 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6402 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6403 * guile/scm-value.c (gdbscm_value_to_string): Only call
6404 scm_port_conversion_strategy if Guile version >= 2.0.6.
6405
0a770bb2 64062014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6407
6408 * main.c (print_gdb_help): Add -q and --silent.
6409
73ba372c
GB
64102014-06-06 Gary Benson <gbenson@redhat.com>
6411
6412 * common/signals.c: Remove preprocessor conditionals for
6413 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6414 SIGSEGV and SIGTERM.
6415 * proc-events.c: Likewise.
6416
c33b2f12
MM
64172014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6418
6419 * symfile.c (symfile_free_objfile): Remove restriction to
6420 OBJF_USERLOADED.
6421 * symfile-mem.c (symbol_file_add_from_memory): Call
6422 add_target_sections_of_objfile.
6423
fb934770
LC
64242014-06-05 Ludovic Courtès <ludo@gnu.org>
6425
6426 * guile/scm-value.c (gdbscm_history_append_x): Use
6427 'vlscm_get_value_smob_arg_unsafe' instead of
6428 'vlscm_scm_to_value'.
6429
6ef284bd
SM
64302014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 PR mi/15806
6433 * utils.c (printchar): Don't escape at all if quoter is NUL.
6434 Update function documentation to clarify effect of parameter
6435 QUOTER.
6436 * remote.c (escape_buffer): Pass '\\' as the quoter to
6437 fputstrn_unfiltered.
6438 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6439 generate the output.
6440 (mi_solib_unloaded): Same.
6441
270c9937
JB
64422014-06-05 Joel Brobecker <brobecker@adacore.com>
6443
6444 * development.sh: Delete.
6445 * Makefile.in (config.status): Adjust dependency on development.sh.
6446 * configure.ac: Adjust development.sh source call.
6447 * configure: Regenerate.
6448
16f691fb
DE
64492014-06-04 Doug Evans <xdje42@gmail.com>
6450
6451 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6452 is_scheme_bkpt, spec.
6453 (bpscm_make_breakpoint_smob): Initialize new members.
6454 (gdbscm_create_breakpoint_x): Split into two ...
6455 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6456 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6457 (scheme_function breakpoint_functions): Update.
6458 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6459 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6460 register-breakpoint!.
6461
ef7cab6b
JB
64622014-06-04 Joel Brobecker <brobecker@adacorer.com>
6463
6464 PR server/17023
6465 * mem-break.c (z_type_supported): Return zero if
6466 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6467
012370f6
TT
64682014-06-04 Tom Tromey <tromey@redhat.com>
6469
6470 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6471 value_from_contents_and_address_unresolved.
6472 (ada_template_to_fixed_record_type_1): Likewise.
6473 (ada_which_variant_applies): Likewise.
6474 * value.h (value_from_contents_and_address_unresolved): Declare.
6475 * value.c (value_from_contents_and_address_unresolved): New
6476 function.
6477 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6478 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6479 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6480
92e2a17f
TT
64812014-06-04 Tom Tromey <tromey@redhat.com>
6482
6483 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6484
c0939df1
TT
64852014-06-04 Tom Tromey <tromey@redhat.com>
6486
6487 * procfs.c (procfs_attach): Make "args" const.
6488 * windows-nat.c (windows_attach): Make "args" const.
6489 * nto-procfs.c (procfs_attach): Make "args" const.
6490 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6491 * go32-nat.c (go32_attach): Make "args" const.
6492 * gnu-nat.c (gnu_attach): Make "args" const.
6493 * darwin-nat.c (darwin_attach): Make "args" const.
6494 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6495 * linux-nat.c (linux_nat_attach): Make "args" const.
6496 * remote.c (extended_remote_attach_1, extended_remote_attach):
6497 Make "args" const.
6498 * target.h (struct target_ops) <to_attach>: Make "args" const.
6499 (find_default_attach): Likewise.
6500 * utils.c (parse_pid_to_attach): Make "args" const.
6501 * utils.h (parse_pid_to_attach): Update.
6502
8eaff7cd
TT
65032014-06-04 Tom Tromey <tromey@redhat.com>
6504
6505 * target-delegates.c: Rebuild.
6506 * target.c (default_thread_address_space): New function.
6507 (target_thread_address_space): Simplify.
6508 * target.h (struct target_ops) <to_thread_address_space>: Add
6509 TARGET_DEFAULT_FUNC.
6510
1913f160
DE
65112014-06-04 Doug Evans <xdje42@gmail.com>
6512
6513 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6514
70ad5bff
MM
65152014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6516
6517 * record-btrace.c: Include event-loop.h and inf-loop.h.
6518 (record_btrace_resume_exec_dir)
6519 (record_btrace_async_inferior_event_handler)
6520 (record_btrace_handle_async_inferior_event): New.
6521 (record_btrace_open): Create async event handler.
6522 (record_btrace_close): Delete async event handler.
6523 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6524 Mark async event handler.
6525 (record_btrace_execution_direction): New.
6526 (init_record_btrace_ops): Initialize to_execution_direction.
6527
b6210538
DE
65282014-06-03 Doug Evans <xdje42@gmail.com>
6529
6530 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6531 (gdbscm_make_parameter): Ditto.
6532
a5b1fd27
DE
65332014-06-03 Doug Evans <dje@google.com>
6534
6535 * exec.c (exec_close_1): Call clear_section_table instead of
6536 resize_section_table.
6537 (clear_section_table): New function.
6538 (resize_section_table): Make static. Rename arg num_added to
6539 adjustment.
6540 * exec.h (clear_section_table): Declare.
6541 (resize_section_table): Delete.
6542 * progspace.c (release_program_space): Call clear_section_table
6543 instead of resize_section_table.
6544
0c6e92a5
SC
65452014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6546
6547 * NEWS (Python Scripting): Add entry about the new xmethods
6548 feature.
6549
883964a7
SC
65502014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6551
6552 * python/py-xmethods.c: New file.
6553 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6554 (objfpy_dealloc): XDECREF on the new xmethods field.
6555 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6556 field.
6557 (objfpy_get_xmethods): New function.
6558 (objfile_getset): New entry 'xmethods'.
6559 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6560 (pspy_dealloc): XDECREF on the new xmethods field.
6561 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6562 field.
6563 (pspy_get_xmethods): New function.
6564 (pspace_getset): New entry 'xmethods'.
6565 * python/python-internal.h: Add declarations for new functions.
6566 * python/python.c (_initialize_python): Invoke
6567 gdbpy_initialize_xmethods.
6568 * python/lib/gdb/__init__.py (xmethods): New
6569 attribute.
6570 * python/lib/gdb/xmethod.py: New file.
6571 * python/lib/gdb/command/xmethods.py: New file.
6572
58992dc5
SC
65732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6574
6575 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6576 best match method returned by find_overload_match is an xmethod.
6577 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6578 the best matching operator returned by find_overload_match is an
6579 xmethod.
6580 * valops.c: #include "extension.h".
6581 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6582 Return void. The list of matching source methods is returned in
6583 "fn_list" and a vector of matching debug method workers is
6584 returned in "xm_worker_vec". Update all callers.
6585 (value_find_oload_method_list): Likewise.
6586 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6587 non-NULL, then the index of the best matching method in this
6588 vector is returned. Update all callers.
6589 (find_overload_match): Include xmethods while performing overload
6590 resolution.
6591
e81e7f5e
SC
65922014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6593
6594 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6595 * extension-priv.h (struct extension_language_ops): Add the
6596 xmethod interface.
6597 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6598 get_matching_xmethod_workers, get_xmethod_argtypes,
6599 invoke_xmethod, free_xmethod_worker,
6600 free_xmethod_worker_vec): New functions.
6601 * extension.h: #include "common/vec.h".
6602 New function declarations.
6603 (struct xmethod_worker): New struct.
6604 (VEC (xmethod_worker_ptr)): New vector type.
6605 (xmethod_worker_ptr): New typedef.
6606 (xmethod_worker_vec): Likewise.
6607 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6608 builtin_type.
6609 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6610 (struct builtin_type): New field "xmethod".
6611 * valarith.c (value_ptradd): Assert that the value argument is not
6612 lval_xcallable.
6613 * valops.c (value_must_coerce_to_target): Return 0 for
6614 lval_xcallable values.
6615 * value.c (struct value): New field XM_WORKER in the field
6616 LOCATION.
6617 (value_address, value_raw_address): Return 0 for lval_xcallable
6618 values.
6619 (set_value_address): Assert that the value is not an
6620 lval_xcallable.
6621 (value_free): Free the associated xmethod worker when freeing
6622 lval_xcallable values.
6623 (set_value_component_location): Assert that the WHOLE value is not
6624 lval_xcallable.
6625 (value_of_xmethod, call_xmethod): New functions.
6626 * value.h: Declare "struct xmethod_worker".
6627 Declare new functions value_of_xmethod, call_xmethod.
6628
ef370185
JB
66292014-06-03 Joel Brobecker <brobecker@adacore.com>
6630 Pedro Alves <palves@redhat.com>
6631
6632 PR breakpoints/17000
6633 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6634 New function, extracted from software_breakpoint_inserted_here_p.
6635 (software_breakpoint_inserted_here_p): Replace factored out code
6636 by call to find_non_raw_software_breakpoint_inserted_here.
6637 (bp_target_info_copy_insertion_state): New function.
6638 (bkpt_insert_location): Handle the case of a single-step
6639 breakpoint already inserted at the same address.
6640 (bkpt_remove_location): Handle the case of a single-step
6641 breakpoint still inserted at the same address.
6642 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6643 breakpoint already inserted at the same address.
6644 (deprecated_remove_raw_breakpoint): Handle the case of a
6645 non-raw breakpoint still inserted at the same address.
6646 (find_single_step_breakpoint): New function, extracted from
6647 single_step_breakpoint_inserted_here_p.
6648 (find_single_step_breakpoint): New function,
6649 factored out from single_step_breakpoint_inserted_here_p.
6650 (single_step_breakpoint_inserted_here_p): Reimplement.
6651
1e2ccb61
BM
66522014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6653
6654 Pushed by Joel Brobecker <brobecker@adacore.com>
6655 * source.c (show_substitute_path_command): Fix display of matching
6656 substitution rules.
6657
d3448d85
GB
66582014-06-03 Gary Benson <gbenson@redhat.com>
6659
6660 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6661
06eb1586
DE
66622014-06-02 Doug Evans <xdje42@gmail.com>
6663
6664 Add parameter support for Guile.
6665 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6666 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6667 (scm-param.o): New rule.
6668 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6669 (gdbscm_misc_error): Declare.
6670 (gdbscm_canonicalize_command_name): Declare.
6671 (gdbscm_scm_to_host_string): Declare.
6672 (gdbscm_scm_from_host_string): Declare.
6673 (gdbscm_initialize_parameters): Declare.
6674 * guile/guile.c (initialize_gdb_module): Call
6675 gdbscm_initialize_parameters.
6676 * guile/lib/gdb.scm: Export parameter symbols.
6677 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6678 cmdscm_canonicalize_name and made public. All callers updated.
6679 * guile/scm-exception.c (gdbscm_misc_error): New function.
6680 * guile/scm-param.c: New file.
6681 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6682 (gdbscm_scm_to_host_string): New function.
6683 (gdbscm_scm_from_host_string): New function.
6684 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6685
e698b8c4
DE
66862014-06-02 Doug Evans <xdje42@gmail.com>
6687
6688 Add command support for Guile.
6689 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6690 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6691 (scm-cmd.o): New rule.
6692 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6693 (gdbscm_user_error_p): Declare.
6694 (gdbscm_parse_command_name): Declare.
6695 (gdbscm_valid_command_class_p): Declare.
6696 (gdbscm_initialize_commands): Declare.
6697 * guile/guile.c (initialize_gdb_module): Call
6698 gdbscm_initialize_commands.
6699 * guile/lib/gdb.scm: Export command symbols.
6700 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6701 (throw-user-error): New function.
6702 * guile/scm-cmd.c: New file.
6703 * guile/scm-exception.c (user_error_symbol): New static global.
6704 (gdbscm_user_error_p): New function.
6705 (gdbscm_initialize_exceptions): Set user_error_symbol.
6706 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6707
fb1f94b0
PM
67082014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6709
6710 * top.c (command_loop): Handle comments here...
6711 (command_line_input): ... not here.
6712
ded03782
DE
67132014-06-02 Doug Evans <xdje42@gmail.com>
6714
6715 Add progspace support for Guile.
6716 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6717 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6718 (scm-progspace.o): New rule.
6719 * guile/guile-internal.h (pspace_smob): New typedef.
6720 (psscm_pspace_smob_pretty_printers): Declare.
6721 (psscm_pspace_smob_from_pspace): Declare.
6722 (psscm_scm_from_pspace): Declare.
6723 * guile/guile.c (initialize_gdb_module): Call
6724 gdbscm_initialize_pspaces.
6725 * guile/lib/gdb.scm: Export progspace symbols.
6726 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6727 support.
6728 (append-pretty-printer!): Ditto.
6729 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6730 Implement.
6731 * guile/scm-progspace.c: New file.
6732
397998fc
AM
67332014-06-03 Alan Modra <amodra@gmail.com>
6734
6735 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6736 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6737
6aa5f3a6
DE
67382014-06-02 Doug Evans <dje@google.com>
6739
6740 Add support for skeletonless type units.
6741 * dwarf2read.c (struct dwarf2_per_objfile): New member
6742 n_allocated_type_units.
6743 (struct dwarf2_per_objfile) <tu_stats>: New member
6744 nr_all_type_units_reallocs.
6745 (create_signatured_type_table_from_index): Initialize
6746 n_allocated_type_units
6747 (create_all_type_units): Ditto.
6748 (add_type_unit): Move up in file. New arg slot.
6749 All callers updated. Increase space for all_type_units more
6750 efficiently.
6751 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6752 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6753 (lookup_dwp_signatured_type): Ditto.
6754 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6755 All callers updated.
6756 (build_type_psymtabs_1): Leave type_unit_groups as
6757 NULL if no TUs present.
6758 (print_tu_stats): New function.
6759 (process_skeletonless_type_unit): New function.
6760 (process_dwo_file_for_skeletonless_type_units): New
6761 function.
6762 (process_skeletonless_type_units): New function.
6763 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6764 Call print tu_stats if debugging enabled.
6765
41fac0cf
PA
67662014-06-02 Pedro Alves <palves@redhat.com>
6767
6768 * breakpoint.c (build_target_command_list): Don't build a command
6769 list if we have any duplicate location that isn't a dprintf.
6770
cd1608cc
PA
67712014-06-02 Pedro Alves <palves@redhat.com>
6772
6773 * breakpoint.c (dprintf_breakpoint_hit): New function.
6774 (initialize_breakpoint_ops): Install it as dprintf's
6775 breakpoint_hit method.
6776
486ef3b9
JB
67772014-06-02 Joel Brobecker <brobecker@adacore.com>
6778
6779 * source.c (substitute_path_rule_matches): Simplify using
6780 filename_ncmp instead of FILENAME_CMP.
6781
230cd560
JB
67822014-06-02 Joel Brobecker <brobecker@adacore.com>
6783
6784 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6785
16954d5d
LC
67862014-06-01 Ludovic Courtès <ludo@gnu.org>
6787
6788 * configure.ac: When Guile is available, check for the
6789 availability of 'scm_new_smob'.
6790 * configure, config.h.in: Regenerate.
6791 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6792 function.
6793
53e8a631
AB
67942014-05-30 Andrew Burgess <aburgess@broadcom.com>
6795
6796 * frame.c (struct frame_info): Add stop_string field.
6797 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6798 (get_prev_frame_always): Old content moved into
6799 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6800 TRY_CATCH, handle MEMORY_ERROR exceptions.
6801 (frame_stop_reason_string): New function definition.
6802 * frame.h (unwind_stop_reason_to_string): Extend comment to
6803 mention frame_stop_reason_string.
6804 (frame_stop_reason_string): New function declaration.
6805 * stack.c (frame_info): Switch to frame_stop_reason_string.
6806 (backtrace_command_1): Switch to frame_stop_reason_string.
6807 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6808 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6809 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6810
70e38b8e
AB
68112014-05-30 Andrew Burgess <aburgess@broadcom.com>
6812
6813 * frame.c (frame_stop_reason_string): Rename to ...
6814 (unwind_stop_reason_to_string): this.
6815 * frame.h (frame_stop_reason_string): Rename to ...
6816 (unwind_stop_reason_to_string): this.
6817 * stack.c (frame_info): Update call to frame_stop_reason_string.
6818 (backtrace_command_1): Likewise.
6819 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6820 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6821
938f0e2f
AB
68222014-05-30 Andrew Burgess <aburgess@broadcom.com>
6823
6824 * frame.c (remove_prev_frame): New function.
6825 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6826 remove_prev_frame.
6827
a09dd441
PA
68282014-05-29 Pedro Alves <palves@redhat.com>
6829
6830 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6831 and make it const. When a single-step decays to a continue,
6832 clear 'step', not 'hw_step'. Pass whether the caller wanted
6833 to step to user_visible_resume_ptid, not what we ask the
6834 target to do.
6835
bdc36728
PA
68362014-05-29 Pedro Alves <palves@redhat.com>
6837
6838 * infrun.c (process_event_stop_test, handle_step_into_function)
6839 (handle_step_into_function_backward): Adjust.
6840 Don't set the even thread's stop_step and call stop_waiting before
6841 calling end_stepping_range. Instead do that ...
6842 (end_stepping_range): ... here. Take an ecs pointer parameter.
6843
22bcd14b
PA
68442014-05-29 Pedro Alves <palves@redhat.com>
6845
6846 * infrun.c (stop_stepping): Rename to ...
6847 (stop_waiting): ... this.
6848 (proceed): Update comment.
6849 (process_event_stop_test, handle_inferior_event)
6850 (handle_signal_stop, handle_step_into_function)
6851 (handle_step_into_function_backward): Update.
6852
4ae57c05
PA
68532014-05-29 Pedro Alves <palves@redhat.com>
6854
6855 * infcall.c (run_inferior_call): Don't check whether the current
6856 thread is running after the proceed call.
6857
329ea579
PA
68582014-05-29 Pedro Alves <palves@redhat.com>
6859 Tom Tromey <tromey@redhat.com>
6860
6861 * NEWS: Mention "maint set target-async", "set mi-async", and that
6862 background execution commands are now always available.
6863 * target.h (target_async_permitted): Update comment.
6864 * target.c (target_async_permitted, target_async_permitted_1):
6865 Default to 1.
6866 (set_target_async_command): Rename to ...
6867 (maint_set_target_async_command): ... this.
6868 (show_target_async_command): Rename to ...
6869 (maint_show_target_async_command): ... this.
6870 (_initialize_target): Adjust.
6871 * infcmd.c (prepare_execution_command): Make extern.
6872 * inferior.h (prepare_execution_command): Declare.
6873 * infrun.c (set_observer_mode): Leave target async alone.
6874 * mi/mi-interp.c (mi_interpreter_init): Install
6875 mi_on_sync_execution_done as sync_execution_done observer.
6876 (mi_on_sync_execution_done): New function.
6877 (mi_execute_command_input_handler): Don't print the prompt if we
6878 just started a synchronous command with an async target.
6879 (mi_on_resume): Check sync_execution before printing prompt.
6880 * mi/mi-main.h (mi_async_p): Declare.
6881 * mi/mi-main.c: Include gdbcmd.h.
6882 (mi_async_p): New function.
6883 (mi_async, mi_async_1): New globals.
6884 (set_mi_async_command, show_mi_async_command, mi_async): New
6885 functions.
6886 (exec_continue): Call prepare_execution_command.
6887 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6888 (mi_execute_async_cli_command): Use mi_async_p.
6889 (_initialize_mi_main): Install "set mi-async". Make
6890 "target-async" a deprecated alias.
6891
92bcb5f9
PA
68922014-05-29 Pedro Alves <palves@redhat.com>
6893
6894 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6895 (_initialize_cli_interp): Adjust.
6896 * event-loop.c: Include "observer.h".
6897 (start_event_loop): Notify 'command_error' observers instead of
6898 calling display_gdb_prompt. Remove FIXME comment.
6899 * event-top.c (display_gdb_prompt): Remove call into the
6900 interpreters.
6901 * inf-loop.c: Include "observer.h".
6902 (inferior_event_handler): Notify 'command_error' observers instead
6903 of calling display_gdb_prompt.
6904 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6905 observers instead of calling display_gdb_prompt.
6906 * interps.c (interp_set): Don't call display_gdb_prompt.
6907 (current_interp_display_prompt_p): Delete.
6908 * interps.h (interp_prompt_p): Delete declaration.
6909 (interp_prompt_p_ftype): Delete.
6910 (struct interp_procs) <prompt_proc_p>: Delete field.
6911 (current_interp_display_prompt_p): Delete declaration.
6912 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6913 (_initialize_mi_interp): Adjust.
6914 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6915 'command_error' observers.
6916 (tui_on_sync_execution_done, tui_on_command_error): New
6917 functions.
6918 (tui_display_prompt_p): Delete.
6919 (_initialize_tui_interp): Adjust.
6920
fd664c91
PA
69212014-05-29 Pedro Alves <palves@redhat.com>
6922
6923 PR gdb/13860
6924 * cli/cli-interp.c: Include infrun.h and observer.h.
6925 (cli_uiout, cli_interp): New globals.
6926 (cli_on_signal_received, cli_on_end_stepping_range)
6927 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6928 functions.
6929 (cli_interpreter_init): Install them as 'end_stepping_range',
6930 'signal_received' 'signal_exited', 'exited' and 'no_history'
6931 observers.
6932 (_initialize_cli_interp): Remove cli_interp local.
6933 * infrun.c (handle_inferior_event): Call the several stop reason
6934 observers instead of printing the stop reason directly.
6935 (end_stepping_range): New function.
6936 (print_end_stepping_range_reason, print_signal_exited_reason)
6937 (print_exited_reason, print_signal_received_reason)
6938 (print_no_history_reason): Make static, and add an uiout
6939 parameter. Print to that instead of to CURRENT_UIOUT.
6940 * infrun.h (print_end_stepping_range_reason)
6941 (print_signal_exited_reason, print_exited_reason)
6942 (print_signal_received_reason print_no_history_reason): New
6943 declarations.
6944 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6945 'mi_uiout'.
6946 <cli_uiout>: New field.
6947 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6948 uiout for CLI output. Install 'signal_received',
6949 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6950 observers.
6951 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6952 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6953 (mi_on_no_history): New functions.
6954 (ui_out_free_cleanup): Delete function.
6955 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6956 instead use the one already stored in the MI interpreter data.
6957 (mi_ui_out): Adjust.
6958 * tui/tui-interp.c: Include infrun.h and observer.h.
6959 (tui_interp): New global.
6960 (tui_on_signal_received, tui_on_end_stepping_range)
6961 (tui_on_signal_exited, tui_on_exited)
6962 (tui_on_no_history): New functions.
6963 (tui_init): Install them as 'end_stepping_range',
6964 'signal_received' 'signal_exited', 'exited' and 'no_history'
6965 observers.
6966 (_initialize_tui_interp): Delete tui_interp local.
6967
8817a6f2
PA
69682014-05-29 Pedro Alves <palves@redhat.com>
6969
6970 PR gdb/15713
6971 * linux-nat.c (linux_nat_resume_callback): Rename the second
6972 parameter to 'except'. Skip LP if it points to EXCEPT.
6973 (linux_nat_resume): Don't mark the event lwp as not stopped
6974 before resuming sibling lwps. Instead ask
6975 linux_nat_resume_callback to skip the event lwp. Mark it as not
6976 stopped after actually resuming it.
6977 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6978 resuming it.
6979 (wait_lwp): Mark the lwp as stopped here.
6980 (stop_wait_callback): Mark the lwp as not stopped right after
6981 resuming it. Don't mark lwps as stopped here.
6982 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6983 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6984
251bde03
PA
69852014-05-29 Pedro Alves <palves@redhat.com>
6986
6987 PR PR15693
6988 * infrun.c (resume): Determine how much to resume depending on
6989 whether the caller wanted a step, not whether we can hardware step
6990 the target. Mark all threads that we intend to run as running,
6991 unless we're calling an inferior function.
6992 (normal_stop): If the thread is running an infcall, don't finish
6993 thread state.
6994 * target.c (target_resume): Don't mark threads as running here.
6995
7f3c0343
JB
69962014-05-28 Joel Brobecker <brobecker@adacore.com>
6997
6998 * serial.c (_initialize_serial): Remove support for
6999 the "set remotebaud" and "show remotebaud" commands.
7000 * NEWS: Add entry documenting the removal of that command.
7001
ee34b3f9
YQ
70022014-05-28 Yao Qi <yao@codesourcery.com>
7003
7004 * charset.c: Fix typo in comments.
7005
add6c04d
GB
70062014-05-27 Gary Benson <gbenson@redhat.com>
7007
7008 * utils.c (internal_vproblem): Prompt for a bug report.
7009
92c48fc5
AW
70102014-05-26 Andy Wingo <wingo@igalia.com>
7011
7012 * guile/scm-arch.c (arscm_mark_arch_smob):
7013 * guile/scm-block.c (bkscm_mark_block_smob)
7014 (bkscm_mark_block_syms_progress_smob):
7015 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7016 * guile/scm-exception.c (exscm_mark_exception_smob):
7017 * guile/scm-frame.c (frscm_mark_frame_smob):
7018 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7019 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7020 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7021 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7022 (ppscm_mark_pretty_printer_worker_smob):
7023 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7024 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7025 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7026 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7027 mark functions.
7028 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7029 function.
7030
b2715b27
AW
70312014-05-26 Andy Wingo <wingo@igalia.com>
7032 Doug Evans <xdje42@gmail.com>
7033
7034 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7035 empty_base_class. All uses updated.
7036 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7037 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7038 Adapt all callers.
7039 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7040 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7041 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7042 (gdbscm_gsmob_has_property_p, add_property_name)
7043 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7044 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7045 (gdb-object-has-property?, gdb-object-properties): Remove.
7046 (gdb-object-kind): Renamed from gsmob-kind.
7047
214ab2da
AW
70482014-05-26 Andy Wingo <wingo@igalia.com>
7049
7050 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7051 * configure: Regenerate.
7052
589fdceb
MM
70532014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7054
7055 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7056
67b5c0c1
MM
70572014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7058
7059 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7060 (replay_memory_access_read_only, replay_memory_access_read_write)
7061 (replay_memory_access_types, replay_memory_access)
7062 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7063 (cmd_set_record_btrace, cmd_show_record_btrace)
7064 (cmd_show_replay_memory_access): New.
7065 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7066 (record_btrace_remove_breakpoint): Replace
7067 record_btrace_allow_memory_access with replay_memory_access.
7068 (_initialize_record_btrace): Add commands.
7069 * NEWS: Announce it.
7070
036cd381
RR
70712014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7072
7073 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7074
c77c1e42
RR
70752014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7076
7077 * MAINTAINERS (Write After Approval): Move self back from
7078 paper trail.
7079
45741a9c
PA
70802014-05-22 Pedro Alves <palves@redhat.com>
7081
7082 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7083 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7084 (disable_randomization, enum exec_direction_kind)
7085 (execution_direction, stop_registers, start_remote)
7086 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7087 (wait_for_inferior, normal_stop, get_last_target_status)
7088 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7089 (insert_step_resume_breakpoint_at_sal)
7090 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7091 (set_step_info, print_stop_event, signal_stop_state)
7092 (signal_print_state, signal_pass_state, signal_stop_update)
7093 (signal_print_update, signal_pass_update)
7094 (update_signals_program_target, clear_exit_convenience_vars)
7095 (displaced_step_dump_bytes, update_observer_mode)
7096 (signal_catch_update, gdb_signal_from_command): Move
7097 declarations ...
7098 * infrun.h: ... to this new file.
7099 * amd64-tdep.c: Include infrun.h.
7100 * annotate.c: Include infrun.h.
7101 * arch-utils.c: Include infrun.h.
7102 * arm-linux-tdep.c: Include infrun.h.
7103 * arm-tdep.c: Include infrun.h.
7104 * break-catch-sig.c: Include infrun.h.
7105 * breakpoint.c: Include infrun.h.
7106 * common/agent.c: Include infrun.h instead of inferior.h.
7107 * corelow.c: Include infrun.h.
7108 * event-top.c: Include infrun.h.
7109 * go32-nat.c: Include infrun.h.
7110 * i386-tdep.c: Include infrun.h.
7111 * inf-loop.c: Include infrun.h.
7112 * infcall.c: Include infrun.h.
7113 * infcmd.c: Include infrun.h.
7114 * infrun.c: Include infrun.h.
7115 * linux-fork.c: Include infrun.h.
7116 * linux-nat.c: Include infrun.h.
7117 * linux-thread-db.c: Include infrun.h.
7118 * monitor.c: Include infrun.h.
7119 * nto-tdep.c: Include infrun.h.
7120 * procfs.c: Include infrun.h.
7121 * record-btrace.c: Include infrun.h.
7122 * record-full.c: Include infrun.h.
7123 * remote-m32r-sdi.c: Include infrun.h.
7124 * remote-mips.c: Include infrun.h.
7125 * remote-notif.c: Include infrun.h.
7126 * remote-sim.c: Include infrun.h.
7127 * remote.c: Include infrun.h.
7128 * reverse.c: Include infrun.h.
7129 * rs6000-tdep.c: Include infrun.h.
7130 * s390-linux-tdep.c: Include infrun.h.
7131 * solib-irix.c: Include infrun.h.
7132 * solib-osf.c: Include infrun.h.
7133 * solib-svr4.c: Include infrun.h.
7134 * target.c: Include infrun.h.
7135 * top.c: Include infrun.h.
7136 * windows-nat.c: Include infrun.h.
7137 * mi/mi-interp.c: Include infrun.h.
7138 * mi/mi-main.c: Include infrun.h.
7139 * python/py-threadevent.c: Include infrun.h.
7140
98eb56a4
PA
71412014-05-22 Pedro Alves <palves@redhat.com>
7142
7143 * infrun.c (handle_inferior_event): Store the exit code for
7144 --return-child-result here, instead of ...
7145 (print_exited_reason): ... here.
7146
17b2616c
PA
71472014-05-21 Pedro Alves <palves@redhat.com>
7148
7149 PR gdb/13860
7150 * gdbthread.h (struct thread_control_state): New field
7151 `command_interp'.
7152 * infrun.c (follow_fork): Copy the new thread control field to the
7153 child fork thread.
7154 (clear_proceed_status_thread): Clear the new thread control field.
7155 (proceed): Set the new thread control field.
7156 * interps.h (command_interp): Declare.
7157 * interps.c (command_interpreter): New global.
7158 (command_interp): New function.
7159 (interp_exec): Set `command_interpreter' while here.
7160 * cli-out.c (cli_uiout_dtor): New function.
7161 (cli_ui_out_impl): Install it.
7162 * mi/mi-interp.c: Include cli-out.h.
7163 (mi_cmd_interpreter_exec): Add comment.
7164 (restore_current_uiout_cleanup): New function.
7165 (ui_out_free_cleanup): New function.
7166 (mi_on_normal_stop): If finishing an execution command started by
7167 a CLI command, or any kind of breakpoint-like event triggered,
7168 print the stop event to the output (CLI) stream.
7169 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7170
5166082f
PA
71712014-05-21 Pedro Alves <palves@redhat.com>
7172
7173 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7174 current source line having changed.
7175 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7176 * infrun.c (normal_stop): Adjust call to
7177 set_current_sal_from_frame.
7178 * source.c (clear_lines_listed_range): New function.
7179 (set_current_source_symtab_and_line, identify_source_line): Clear
7180 the lines listed range.
7181 (line_info): Handle the first "info line" after the current source
7182 line having changed.
7183 * stack.c (print_stack_frame): Remove center handling.
7184 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7185 center sal.line.
7186
c1ee2fb3
PA
71872014-05-21 Pedro Alves <palves@redhat.com>
7188
7189 * inf-child.c (inf_child_mourn_inferior): New function.
7190 * inf-child.h (inf_child_mourn_inferior): New declaration.
7191 * darwin-nat.c (darwin_mourn_inferior): Use
7192 inf_child_mourn_inferior.
7193 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7194 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7195 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7196 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7197 * windows-nat.c (windows_mourn_inferior): Likewise.
7198
5c6d4fb2
DE
71992014-05-21 Doug Evans <xdje42@gmail.com>
7200
250748cb 7201 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7202
4a2722c5
DE
72032014-05-21 Doug Evans <xdje42@gmail.com>
7204
17292b30 7205 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7206 (gdbscm_out_of_range_error): Ditto.
7207 (gdbscm_memory_error): Ditto.
250748cb
DE
7208 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7209 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7210 (gdbscm_out_of_range_error): Update.
7211 (gdbscm_memory_error): Update.
7212 (gdbscm_scm_to_target_string_unsafe): Delete.
7213
6a3cb8e8
PA
72142014-05-21 Pedro Alves <palves@redhat.com>
7215
7216 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7217 globals.
7218 (inf_child_open_target): New function.
7219 (inf_child_open): Use inf_child_open_target to push the target
7220 instead of erroring out.
7221 (inf_child_disconnect, inf_child_close)
7222 (inf_child_maybe_unpush_target): New functions.
7223 (inf_child_target): Install inf_child_disconnect and
7224 inf_child_close. Store a pointer to the returned object.
7225 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7226 declarations.
7227 * target.c (auto_connect_native_target): New global.
7228 (show_default_run_target): New function.
7229 (find_default_run_target): Return NULL if automatically connecting
7230 to the native target is disabled.
7231 (_initialize_target): Install set/show auto-connect-native-target.
7232 * NEWS: Mention "set auto-connect-native-target", and "target
7233 native".
7234 * linux-nat.c (super_close): New global.
7235 (linux_nat_close): Call super_close.
7236 (linux_nat_add_target): Store a pointer to the base class's
7237 to_close method.
7238 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7239 inf_child_maybe_unpush.
7240 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7241 already pushed.
7242 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7243 the inferior. Use inf_child_maybe_unpush_target.
7244 (inf_ttrace_attach): Don't push the target if it is already
7245 pushed.
7246 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7247 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7248 after mourning the inferior. Use inf_child_maybe_unpush_target.
7249 (darwin_attach_pid): Don't push the target if it is already
7250 pushed.
7251 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7252 mourning the inferior. Use inf_child_maybe_unpush_target.
7253 (gnu_detach): Use inf_child_maybe_unpush_target.
7254 * go32-nat.c (go32_create_inferior): Don't push the target if it
7255 is already pushed.
7256 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7257 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7258 (procfs_open): Rename to ...
7259 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7260 comments. Can target_preopen before changing node. Call
7261 inf_child_open_target to push the target explicitly.
7262 (procfs_attach): Don't push the target if it is already pushed.
7263 (procfs_detach): Use inf_child_maybe_unpush_target.
7264 (procfs_create_inferior): Don't push the target if it is already
7265 pushed.
7266 (nto_native_ops): New global.
7267 (procfs_open): Reimplement.
7268 (procfs_native_open): New function.
7269 (init_procfs_targets): Install procfs_native_open as to_open of
7270 "target native". Store a pointer to the "native" target in
7271 nto_native_ops.
7272 * procfs.c (procfs_attach): Don't push the target if it is already
7273 pushed.
7274 (procfs_detach): Use inf_child_maybe_unpush_target.
7275 (procfs_mourn_inferior): Only unpush the target after mourning the
7276 inferior. Use inf_child_maybe_unpush_target.
7277 (procfs_init_inferior): Don't push the target if it is already
7278 pushed.
7279 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7280 if it is already pushed.
7281
930ee1b1
PA
72822014-05-21 Pedro Alves <palves@redhat.com>
7283
7284 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7285 and "procfs" targets are now called "native" instead.
7286
1f5d1b13
PA
72872014-05-21 Pedro Alves <palves@redhat.com>
7288
7289 * go32-nat.c (go32_open): Delete.
7290 (go32_target): Don't override the to_open method.
7291
132f8e03
PA
72922014-05-21 Pedro Alves <palves@redhat.com>
7293
7294 * nto-procfs.c (procfs_can_run): New function.
7295 (nto_procfs_ops): New global.
7296 (init_procfs_targets): New, based on procfs_target. Install
7297 "target native" in addition to "target procfs".
7298 (_initialize_procfs): Call init_procfs_targets instead of adding
7299 the target here.
7300
03c136c3
PA
73012014-05-21 Pedro Alves <palves@redhat.com>
7302
7303 * windows-nat.c (windows_target): Don't override to_shortname,
7304 to_longname or to_doc.
7305
a635d0f3
PA
73062014-05-21 Pedro Alves <palves@redhat.com>
7307
7308 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7309 to_doc.
7310
4f9b5133
PA
73112014-05-21 Pedro Alves <palves@redhat.com>
7312
7313 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7314 to_shortname, to_longname or to_doc.
7315
bc85afde
PA
73162014-05-21 Pedro Alves <palves@redhat.com>
7317
7318 * go32-nat.c (go32_target): Don't override to_shortname,
7319 to_longname or to_doc.
7320
4ebfc96e
PA
73212014-05-21 Pedro Alves <palves@redhat.com>
7322
7323 * inf-child.c (inf_child_open): Remove mention of "child".
7324 (inf_child_target): Rename target to "native" instead of "child".
7325
2648dfed
AA
73262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7327
7328 * Makefile.in (SFILES): Delete "regset.c".
7329 (COMMON_OBS): Delete "regset.o".
7330 * regset.c: Remove.
7331 * regset.h (regset_alloc): Delete prototype.
7332
b13feb94
AA
73332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7334
7335 * sparc-linux-tdep.c (sparc32_linux_gregset)
7336 (sparc32_linux_fpregset): New static regset structures.
7337 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7338 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7339 'fpregset' fields.
7340 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7341 (sparc64_linux_fpregset): New static regset structures.
7342 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7343 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7344 New static regset structures.
7345 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7346 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7347 New static regset structures.
7348 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7349 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7350 New static regset structures.
7351 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7352 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7353 New static regset structures.
7354 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7355
b4fd25c9
AA
73562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7357
7358 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7359 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7360 register maps ("regmaps") from "*regset" to "*regmap". Do this
7361 for all regmap types and variables.
7362 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7363 (sparc32_linux_supply_core_gregset)
7364 (sparc32_linux_collect_core_gregset)
7365 (sparc32_linux_supply_core_fpregset)
7366 (sparc32_linux_collect_core_fpregset): Likewise.
7367 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7368 (sparc_gregmap, sparc_fpregmap): ... these.
7369 (sparc_supply_gregset, sparc_collect_gregset)
7370 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7371 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7372 (_initialize_sparc_nat): Rename regmaps.
7373 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7374 (sparc_gregmap, sparc_fpregmap): ... these.
7375 (sparc_supply_gregset, sparc_collect_gregset)
7376 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7377 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7378 Rename macros to...
7379 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7380 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7381 Likewise.
7382 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7383 Rename to...
7384 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7385 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7386 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7387 regmaps.
7388 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7389 (sparc32_bsd_fpregset): Rename to...
7390 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7391 (sparc32_bsd_fpregmap): ... these.
7392 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7393 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7394 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7395 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7396 (struct sparc_gregmap, struct sparc_fpregmap)
7397 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7398 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7399 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7400 (sparc32_supply_regset, sparc32_collect_gregset)
7401 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7402 prototypes.
7403 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7404 (sparc64_linux_ptrace_gregmap): ... this.
7405 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7406 (_initialize_sparc64_linux_nat): Rename regmaps.
7407 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7408 (sparc64_linux_core_gregmap): ... this.
7409 (sparc64_linux_supply_core_gregset)
7410 (sparc64_linux_collect_core_gregset)
7411 (sparc64_linux_supply_core_fpregset)
7412 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7413 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7414 (sparc64_sol2_fpregset): Rename to...
7415 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7416 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7417 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7418 regmaps.
7419 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7420 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7421 (sparc64_bsd_fpregset): Rename to...
7422 (struct sparc_gregmap, sparc64_sol2_gregmap)
7423 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7424 (sparc64_bsd_fpregmap): ... these.
7425 (sparc64_supply_gregset, sparc64_collect_gregset)
7426 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7427 prototypes.
7428 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7429 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7430 (sparc64fbsd_gregmap): ... this.
7431 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7432 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7433 Rename regmaps.
7434 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7435 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7436 (sparc64nbsd_collect_fpregset): Likewise.
7437 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7438 (sparc64nbsd_gregmap): ... this.
7439 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7440 regmaps.
7441 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7442 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7443 (sparc64obsd_gregmap): ... this.
7444 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7445 regmaps.
7446 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7447 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7448 (sparc32nbsd_gregmap): ... this.
7449 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7450 regmaps.
7451
8fea3224
AA
74522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7453
7454 * score-tdep.c (score7_linux_gregset): New static regset
7455 structure.
7456 (score7_linux_regset_from_core_section): Remove dynamic regset
7457 allocation.
7458 (score_gdbarch_init): Drop allocation of tdep structure.
7459 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7460
24534243
AA
74612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7462
7463 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7464 regset structures.
7465 (am33_regset_from_core_section): Remove dynamic regset
7466 allocations.
7467
b7195f27
AA
74682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7469
7470 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7471 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7472 structures.
7473 (mips_linux_regset_from_core_section): Remove dynamic regset
7474 allocations.
7475 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7476 'gregset64', 'fpregset', and 'fpregset64'.
7477 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7478 deleted tdep fields.
7479
ecc37a5a
AA
74802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7481
7482 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7483 regset structures.
7484 (amd64_regset_from_core_section): Remove dynamic regset
7485 allocations.
7486 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7487 structure.
7488 (amd64obsd_regset_from_core_section): Remove dynamic regset
7489 allocation.
7490 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7491 Likewise.
7492 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7493 x86-common regset supply function.
7494 * i386-tdep.c (i386_collect_gregset): Make static.
7495 (i386_gregset): New global regset structure.
7496 (i386_fpregset, i386_xstateregset): New static regset structures.
7497 (i386_regset_from_core_section): Remove dynamic regset
7498 allocations.
7499 (i386_gdbarch_init): Remove initialization of tdep fields
7500 'gregset', 'fpregset', and 'xstateregset'.
7501 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7502 'fpregset', and 'xstateregset'.
7503 (i386_collect_gregset): Remove prototype.
7504 (i386_gregset): New declaration.
7505 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7506 structure.
7507 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7508 allocation.
7509
b7611c43
AA
75102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7511
7512 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7513 (arm_linux_vfpregset): New static regset structures.
7514 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7515 regset structures.
7516 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7517 and 'vfpregset' fields.
7518
a069a2bd
AA
75192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7520
7521 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7522 (aarch64_linux_fpregset): New static regset structures.
7523 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7524 of regset structures.
7525 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7526 'fpregset' fields.
7527
09424cff
AA
75282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7529
7530 * regset.h (struct regset): Remove gdbarch field.
7531 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7532 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7533 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7534 Likewise.
7535 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7536 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7537 (ppc32_linux_vsxregset): Likewise.
7538 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7539 via the regcache instead of the regset.
7540 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7541 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7542 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7543 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7544 Likewise.
7545
3ca7dae4
AA
75462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7547
7548 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7549 Constify structures.
7550 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7551 (alphanbsd_aout_gregset): Likewise.
7552 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7553 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7554 Likewise.
7555 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7556 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7557 Likewise.
7558 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7559 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7560 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7561 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7562 * m88k-tdep.c (m88k_gregset): Likewise.
7563 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7564 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7565 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7566 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7567 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7568 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7569 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7570 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7571 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7572 Likewise.
7573 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7574 * sh-tdep.h (sh_corefile_gregset): Likewise.
7575 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7576 * vax-tdep.c (vax_gregset): Likewise.
7577
5876f503
JK
75782014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7579
7580 Fix TLS access for -static -pthread.
7581 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7582 (try_thread_db_load_1): Initialize it.
7583 (thread_db_get_thread_local_address): Call it if LM is zero.
7584 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7585 * target.h (struct target_ops) (to_get_thread_local_address): Add
7586 load_module_addr comment.
7587
0256a6ac
PA
75882014-05-21 Pedro Alves <palves@redhat.com>
7589
7590 * dcache.c (dcache_read_memory_partial): If reading the cache line
7591 fails, fallback to reading just the memory the caller wanted.
7592
227533ac
DE
75932014-05-20 Doug Evans <dje@google.com>
7594
7595 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7596 instead of get_current_arch.
7597
936d2992
PA
75982014-05-20 Pedro Alves <palves@redhat.com>
7599
7600 * NEWS: Mention that compare-sections now works with all targets.
7601
7602 * remote.c (PACKET_qCRC): New enum value.
7603 (remote_verify_memory): Don't send qCRC if the target has no
7604 execution. Use packet_support/packet_ok. If the target doesn't
7605 support the qCRC packet, fallback to a deep memory copy.
7606 (compare_sections_command): Say "target image" instead of "remote
7607 executable".
7608 (_initialize_remote): Add PACKET_qCRC to the list of config
7609 packets that have no associated command. Extend comment.
7610 * target.c (simple_verify_memory, default_verify_memory): New
7611 function.
7612 * target.h (struct target_ops) <to_verify_memory>: Default to
7613 default_verify_memory.
7614 (simple_verify_memory): New declaration.
7615 * target-delegates.c: Regenerate.
7616
e59fa00f
MM
76172014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7618
7619 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7620
f2205de0
HZ
76212014-05-20 Hui Zhu <hui@codesourcery.com>
7622 Yao Qi <yao@codesourcery.com>
7623
7624 PR backtrace/16558
7625 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7626 and change address of sp and pc.
7627
c4e54771
TT
76282014-05-19 Tom Tromey <tromey@redhat.com>
7629
7630 * gdbtypes.c (rank_function): Use XNEWVEC.
7631 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7632
73051182
DE
76332014-05-19 Doug Evans <dje@google.com>
7634
7635 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7636 build_type_unit_groups and moved closer to only caller. Remove
7637 arguments. All references updated. Remove outdated .gdb_index
7638 comment.
7639 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7640 build_type_psymtabs_1.
7641
8832e7e3
DE
76422014-05-19 Doug Evans <dje@google.com>
7643
7644 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7645 n_type_unit_groups, all_type_unit_groups. All uses removed.
7646 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7647 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7648 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7649 (add_type_unit_group_to_table): Delete.
7650
cd8ae15e
DE
76512014-05-19 Doug Evans <dje@google.com>
7652
7653 * eval.c (evaluate_subexp_standard): Add some comments.
7654
08f4850b
DE
76552014-05-17 Doug Evans <xdje42@gmail.com>
7656
7657 * progspace.c (remove_program_space): Delete, unused.
7658 * progspace.h (remove_program_space): Ditto.
7659
bed8455c
DE
76602014-05-17 Doug Evans <xdje42@gmail.com>
7661
7662 * inferior.c (prune_inferiors): Fix comment.
7663 (remove_inferior_command): Call prune_program_spaces.
7664
8d551b02
DE
76652014-05-16 Doug Evans <dje@google.com>
7666
7667 New command line option -D.
7668 * NEWS: Mention it.
7669 * main.c (set_gdb_data_directory): New function.
7670 (captured_main): Recognize -D. Flag error for --data-directory "".
7671 Call set_gdb_data_directory.
7672 (print_gdb_help): Print --data-directory, -D.
7673 * main.h (set_gdb_data_directory): Declare.
7674 * top.c (staged_gdb_datadir): New static global.
7675 (set_gdb_datadir): Call set_gdb_data_directory
7676 (show_gdb_datadir): New function.
7677 (init_main): Update init of data-directory parameter.
7678
18848e28
GF
76792014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7680
7681 Import the "dirfd" gnulib module.
7682 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7683 * gnulib/aclocal.m4: Update.
7684 * gnulib/config.in: Update.
7685 * gnulib/configure: Update.
7686 * gnulib/import/Makefile.am: Update.
7687 * gnulib/import/Makefile.in: Update.
7688 * gnulib/import/dirfd.c: New.
7689 * gnulib/import/m4/dirfd.m4: New.
7690 * gnulib/import/m4/gnulib-cache.m4: Update.
7691 * gnulib/import/m4/gnulib-comp.m4: Update.
7692
95c64f92
YQ
76932014-05-16 Pierre Muller <muller@sourceware.org>
7694 Yao Qi <yao@codesourcery.com>
7695
7696 * valprint.c (print_wchar): Move the code on checking whether
7697 W is a printable wide char to the default branch of switch
7698 statement below. Call wchar_printable instead of gdb_iswprint.
7699
cac395ea
TM
77002014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7701
19679eca 7702 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7703 ldr.w and ldrd instructions.
7704
83655187
DE
77052014-05-15 Doug Evans <dje@google.com>
7706
7707 * dwarf2read.c (read_structure_type): Delete outdated comments.
7708
dd756689
TT
77092014-05-14 Tom Tromey <tromey@redhat.com>
7710
7711 * macrocmd.c (print_macro_definition): Reindent.
7712
75ddda77
DE
77132014-05-13 Doug Evans <xdje42@gmail.com>
7714
7715 * python/py-cmd.c (cmdpy_completer): Add comment.
7716 (completers): Make const.
7717
b0f16a3e
SM
77182014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7719
7720 * infrun.c (resume): Remove should_resume (unused). Move up
7721 declaration of resume_ptid.
7722
033c3379
TT
77232014-05-13 Tom Tromey <tromey@redhat.com>
7724
7725 * language.h (unop_type_check): Remove.
7726 (binop_type_check): Don't declare.
7727
9b44a3a5
AA
77282014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7729
7730 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7731 call to regcache_raw_collect.
7732
303a33fa
SM
77332014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7734
7735 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7736 mi_console->quote as the quoting character.
7737
196100a0
SM
77382014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7739
7740 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7741
f989a1c8
TT
77422014-04-29 Tom Tromey <tromey@redhat.com>
7743
7744 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7745 "show debug varobj".
7746
9404b58f
KM
77472014-05-07 Kyle McMartin <kyle@redhat.com>
7748
7749 Pushed by Joel Brobecker <brobecker@adacore.com>.
7750 * aarch64-tdep.c (aarch64_software_single_step): New function.
7751 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7752 with aarch64_software_single_step.
7753
5e49ba57
JB
77542014-05-05 Joel Brobecker <brobecker@adacore.com>
7755
7756 GDB 7.7.1 released.
7757
c888a17d
KS
77582014-05-05 Keith Seitz <keiths@redhat.com>
7759
7760 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7761 variable or history value is successfully parsed.
7762
290a839c
YQ
77632014-05-05 Yao Qi <yao@codesourcery.com>
7764 Pedro Alves <palves@redhat.com>
7765
7766 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7767 address of blocks that intersects the requested range. Trim
7768 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7769 sections.
7770 * ctf.c (ctf_xfer_partial): Likewise.
7771
91256dc2
YQ
77722014-05-05 Yao Qi <yao@codesourcery.com>
7773
7774 * printcmd.c (display_command): Remove the check to
7775 target_has_execution.
7776
07284463
MK
77772014-05-03 Mark Kettenis <kettenis@gnu.org>
7778
7779 * ppcobsd-nat.c: Include "obsd-nat.h".
7780 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7781 add_target.
7782 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7783
30a1e6cc
SDJ
77842014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7785
7786 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7787 and 16-bit signed and unsigned arguments. Update comment.
7788 (stap_parse_probe_arguments): Extend code to handle such
7789 arguments. Use warning instead of complaint to notify about
7790 unrecognized bitness.
7791
f33da99a
SDJ
77922014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7793
7794 PR breakpoints/16889
7795 * stap-probe.c (stap_parse_probe_arguments): Simplify
7796 check for non-prefixed probes (i.e., probes whose
7797 arguments do not start with "N@"). Always set the
7798 argument type to a sane value.
7799
95cf3b38
DT
78002014-05-01 David Taylor <dtaylor@emc.com>
7801
7802 * remote.c (compare_sections_command): Add -r option to compare
7803 all loadable read-only sections.
7804
1cfdf534
SC
78052014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7806
7807 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7808 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7809 Update all callers.
7810 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7811 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7812 Remove unused CORE_ADDR argument. Update all callers.
7813
ca4f7f8b
PA
78142014-04-29 Pedro Alves <palves@redhat.com>
7815
7816 * remote.c (struct packet_config) <detect>: Extend comment.
7817 (add_packet_config_cmd): Don't set the config's detect or support
7818 fields here.
7819 (init_all_packet_configs): Also initialize the config's 'detect'
7820 field.
7821 (reset_all_packet_configs_support): New function.
7822 (remote_open_1): Call reset_all_packet_configs_support instead of
7823 init_all_packet_configs.
7824 (_initialize_remote): Initialize all packet configs. Assert that
7825 all packets have an associated command, except a few known
7826 outliers.
7827
11c1ba78
JB
78282014-04-28 Joel Brobecker <brobecker@adacore.com>
7829
7830 * dwarf2read.c (read_subrange_type): Handle dynamic
7831 DW_AT_lower_bound attributes.
7832
8739bc53
JB
78332014-04-28 Joel Brobecker <brobecker@adacore.com>
7834
7835 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7836 dynamic bounds before computing its upper bound.
7837 (ada_discrete_type_low_bound): Same as above with the lower bound.
7838
6f8a3220
JB
78392014-04-28 Joel Brobecker <brobecker@adacore.com>
7840
7841 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7842 range types. Adjust the array handling implementation to
7843 take advantage of this change.
7844 (resolve_dynamic_range): New function, mostly extracted from
7845 resolve_dynamic_bounds.
7846 (resolve_dynamic_array): New function, mostly extracted from
7847 resolve_dynamic_bounds.
7848 (resolve_dynamic_bounds): Delete.
7849 (resolve_dynamic_type): Reimplement. Add handling of
7850 TYPE_CODE_RANGE types.
7851
4d072ce4
JB
78522014-04-28 Joel Brobecker <brobecker@adacore.com>
7853
7854 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7855 handling of parallel ___XA types.
7856
52865325
JB
78572014-04-28 Joel Brobecker <brobecker@adacore.com>
7858
7859 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7860 unnecessary second call to static_unwrap_type.
7861
433e77fa
HZ
78622014-04-27 Hui Zhu <hui@codesourcery.com>
7863
7864 * stack.c (print_frame_info): Call do_gdb_disassembly with
7865 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7866
b51a69ee
DE
78672014-04-26 Doug Evans <xdje42@gmail.com>
7868
7869 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7870
7ae1a6a6
PA
78712014-04-25 Pedro Alves <palves@redhat.com>
7872
7873 PR server/16255
7874 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7875 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7876 and newline from built string.
7877 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7878 (linux_ptrace_attach_fail_reason): ... this.
7879 * linux-nat.c (linux_nat_attach): Adjust to use
7880 linux_ptrace_attach_fail_reason.
7881
4082afcc
PA
78822014-04-25 Pedro Alves <palves@redhat.com>
7883
7884 * remote.c (struct remote_state): Remove multi_process_aware,
7885 non_stop_aware, cond_tracepoints, cond_breakpoints,
7886 breakpoint_commands, fast_tracepoints, static_tracepoints,
7887 install_in_trace, disconnected_tracing,
7888 enable_disable_tracepoints, string_tracing, and
7889 augmented_libraries_svr4_read fields.
7890 (remote_multi_process_p): Move further below in the file.
7891 (struct packet_config): Add comments.
7892 (update_packet_config): Delete function.
7893 (show_packet_config_cmd): Use packet_config_support.
7894 (add_packet_config_cmd): Use NULL as set callback.
7895 (packet_ok): "set remote foo-packet"-style commands no longer
7896 change config->supported -- adjust.
7897 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7898 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7899 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7900 (PACKET_QNonStop, PACKET_multiprocess_feature)
7901 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7902 (PACKET_DisconnectedTracing_feature)
7903 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7904 (set_remote_protocol_packet_cmd): Delete function.
7905 (packet_config_support, packet_support): New functions.
7906 (set_remote_protocol_Z_packet_cmd): Don't call
7907 update_packet_config.
7908 (remote_query_attached, remote_pass_signals)
7909 (remote_program_signals, remote_threads_info)
7910 (remote_threads_extra_info, remote_start_remote): Use
7911 packet_support.
7912 (remote_start_remote): Use packet_config_support and
7913 packet_support.
7914 (init_all_packet_configs): Set all packets to unknown support,
7915 instead of calling update_packet_config.
7916 (remote_check_symbols): Use packet_support.
7917 (remote_supported_packet): Unconditionally set the packet config's
7918 support status.
7919 (remote_multi_process_feature, remote_non_stop_feature)
7920 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7921 (remote_breakpoint_commands_feature)
7922 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7923 (remote_install_in_trace_feature)
7924 (remote_disconnected_tracing_feature)
7925 (remote_enable_disable_tracepoint_feature)
7926 (remote_string_tracing_feature)
7927 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7928 (remote_protocol_features): Adjust to use remote_supported_packet
7929 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7930 "ConditionalTracepoints", "ConditionalBreakpoints",
7931 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7932 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7933 "EnableDisableTracepoints", and "tracenz".
7934 (remote_query_supported): Use packet_support.
7935 (remote_open_1): Adjust.
7936 (extended_remote_attach_1): Use packet_support. Switch on the
7937 result of packet_ok instead of checking whether the packet ended
7938 up disabled.
7939 (remote_vcont_resume): Use packet_support.
7940 (remote_resume, remote_stop_ns, fetch_register_using_p)
7941 (remote_prepare_to_store, store_register_using_P)
7942 (check_binary_download, remote_write_bytes): Use packet_support.
7943 (remote_vkill): Use packet_support. Switch on the result of
7944 packet_ok instead of checking whether the packet ended up
7945 disabled.
7946 (extended_remote_supports_disable_randomization): Use
7947 packet_support.
7948 (extended_remote_run): Switch on the result of packet_ok instead
7949 of checking whether the packet ended up disabled.
7950 (remote_insert_breakpoint, remote_remove_breakpoint)
7951 (remote_insert_watchpoint, remote_remove_watchpoint)
7952 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7953 packet_support.
7954 (remote_search_memory): Use packet_config_support.
7955 (remote_get_thread_local_address, remote_get_tib_address)
7956 (remote_hostio_send_command, remote_can_execute_reverse): Use
7957 packet_support.
7958 (remote_supports_cond_tracepoints)
7959 (remote_supports_cond_breakpoints)
7960 (remote_supports_fast_tracepoints)
7961 (remote_supports_static_tracepoints)
7962 (remote_supports_install_in_trace)
7963 (remote_supports_enable_disable_tracepoint)
7964 (remote_supports_string_tracing)
7965 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7966 the packet config says the feature is enabled or disabled.
7967 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7968 (remote_get_trace_status): Use packet_support.
7969 (remote_set_disconnected_tracing): Adjust to check whether the
7970 feature is enabled with packet_support.
7971 (remote_set_trace_buffer_size, remote_use_agent)
7972 (remote_can_use_agent, remote_supports_btrace): Use
7973 packet_support.
7974 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7975 Use packet_config_support.
7976 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7977 the packet config says the feature is enabled or disabled.
7978 (set_range_stepping): Use packet_support.
7979
bdb52a22
TT
79802014-04-25 Tom Tromey <tromey@redhat.com>
7981
7982 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7983 argument.
7984
e9475ead
SA
79852014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7986
7987 * NEWS: Mention support for C99 variable length arrays.
7988
82eacd52
JB
79892014-04-24 Joel Brobecker <brobecker@adacore.com>
7990
7991 * ada-lang.c (standard_exc): Expand introductory comment.
7992
01f9f808
MS
79932014-04-24 Michael Sturm <michael.sturm@mintel.com>
7994 Walfred Tedeschi <walfred.tedeschi@intel.com>
7995
7996 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7997 AVX512 registers.
7998 (amd64_linux_read_description): Add code to handle AVX512 xstate
7999 mask and return respective tdesc.
8000 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8001 and features/i386/x32-avx512-linux.c.
8002 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8003 (amd64_linux_core_read_description): Add code to handle AVX512
8004 xstate mask and return respective tdesc.
8005 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8006 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8007 calculation.
8008 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8009 (tdesc_amd64_avx512_linux): New prototype.
8010 (tdesc_x32_avx512_linux): Likewise.
8011 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8012 features/i386/x32-avx512.c.
8013 (amd64_ymm_avx512_names): New register names for pseudo
8014 registers YMM16-31.
8015 (amd64_ymmh_avx512_names): New register names for raw registers
8016 YMMH16-31.
8017 (amd64_k_names): New register names for K registers.
8018 (amd64_zmmh_names): New register names for ZMM raw registers.
8019 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8020 (amd64_xmm_avx512_names): New register names for XMM16-31
8021 registers.
8022 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8023 registers.
8024 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8025 if feature is present.
8026 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8027 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8028 (AMD64_NUM_REGS): Adjust to new number of registers.
8029 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8030 registers supplied via XSTATE by AVX512 registers.
8031 (i386_linux_read_description): Add case for AVX512.
8032 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8033 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8034 (i386_linux_core_read_description): Add case for AVX512.
8035 (i386_linux_init_abi): Install supported register note section
8036 for AVX512.
8037 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8038 AVX512.
8039 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8040 registers to be number of zmm7h + 1.
8041 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8042 * i386-tdep.c: Include features/i386/i386-avx512.c.
8043 (i386_zmm_names): Add ZMM pseudo register names array.
8044 (i386_zmmh_names): Add ZMM raw register names array.
8045 (i386_k_names): Add K raw register names array.
8046 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8047 registers. AVX512 has 16 more ZMM registers than there are YMM
8048 registers.
8049 (i386_zmmh_regnum_p): Add function to look up register number of
8050 ZMM raw registers.
8051 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8052 (i386_k_regnum_p): Likewise for K raw registers.
8053 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8054 registers added by AVX512.
8055 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8056 registers added by AVX512.
8057 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8058 added by AVX512.
8059 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8060 (i386_pseudo_register_name): Add ZMM pseudo registers.
8061 (i386_zmm_type): Construct and return vector registers type for ZMM
8062 registers.
8063 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8064 ZMM0-31 pseudo registers and K registers.
8065 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8066 and YMM16-31 registers from register cache.
8067 (i386_pseudo_register_write): Add code to write K, ZMM and
8068 YMM16-31 registers.
8069 (i386_register_reggroup_p): Add code to include/exclude AVX512
8070 registers in/from respective register groups.
8071 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8072 registers if feature is present in xcr0.
8073 (i386_gdbarch_init): Add code to initialize AVX512 feature
8074 variables in tdep structure, wire in pseudo registers and call
8075 initialize_tdesc_i386_avx512.
8076 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8077 variables.
8078 (i386_regnum): Add AVX512 registers.
8079 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8080 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8081 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8082 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8083 512 bits wide.
8084 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8085 (i386_ymm_avx512_regnum_p): Likewise.
8086 (i386_k_regnum_p): Likewise.
8087 (i386_zmm_regnum_p): Likewise.
8088 (i386_zmmh_regnum_p): Likewise.
8089 * i387-tdep.c : Update year in copyright notice.
8090 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8091 XSAVE buffer.
8092 (XSAVE_YMM_AVX512_ADDR): New macro.
8093 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8094 XSAVE buffer.
8095 (XSAVE_XMM_AVX512_ADDR): New macro.
8096 (xsave_avx512_k_offset): New table for K register offsets in
8097 XSAVE buffer.
8098 (XSAVE_AVX512_K_ADDR): New macro.
8099 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8100 in XSAVE buffer.
8101 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8102 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8103 buffer.
8104 (i387_collect_xsave): Add code to collect AVX512 registers from
8105 XSAVE buffer.
8106 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8107 of XMM16-31 registers.
8108 (I387_NUM_K_REGS): New define for number of K registers.
8109 (I387_K0_REGNUM): New define for K0 register number.
8110 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8111 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8112 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8113 registers.
8114 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8115 (I387_XMM16_REGNUM): New define for XMM16 register number.
8116 (I387_YMM0_REGNUM): New define for YMM0 register number.
8117 (I387_KEND_REGNUM): New define for last K register number.
8118 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8119 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8120 number.
8121 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8122 number.
8123 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8124 size.
8125 * features/Makefile: Add AVX512 related files.
8126 * features/i386/32bit-avx512.xml: New file.
8127 * features/i386/64bit-avx512.xml: Likewise.
8128 * features/i386/amd64-avx512-linux.c: Likewise.
8129 * features/i386/amd64-avx512-linux.xml: Likewise.
8130 * features/i386/amd64-avx512.c: Likewise.
8131 * features/i386/amd64-avx512.xml: Likewise.
8132 * features/i386/i386-avx512-linux.c: Likewise.
8133 * features/i386/i386-avx512-linux.xml: Likewise.
8134 * features/i386/i386-avx512.c: Likewise.
8135 * features/i386/i386-avx512.xml: Likewise.
8136 * features/i386/x32-avx512-linux.c: Likewise.
8137 * features/i386/x32-avx512-linux.xml: Likewise.
8138 * features/i386/x32-avx512.c: Likewise.
8139 * features/i386/x32-avx512.xml: Likewise.
8140 * regformats/i386/amd64-avx512-linux.dat: New file.
8141 * regformats/i386/amd64-avx512.dat: Likewise.
8142 * regformats/i386/i386-avx512-linux.dat: Likewise.
8143 * regformats/i386/i386-avx512.dat: Likewise.
8144 * regformats/i386/x32-avx512-linux.dat: Likewise.
8145 * regformats/i386/x32-avx512.dat: Likewise.
8146 * NEWS: Add note about new support for AVX512.
8147
8148
08351840
PA
81492014-04-23 Pedro Alves <palves@redhat.com>
8150
8151 * breakpoint.c (insert_bp_location): Tolerate errors if the
8152 breakpoint is set in a user-loaded objfile.
8153 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8154 location is marked shlib_disabled. If the breakpoint is set in a
8155 user-loaded objfile is a GDB-side memory breakpoint, validate it
8156 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8157 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8158 flag.
8159 * mem-break.c (memory_validate_breakpoint): New function.
8160 * objfiles.c (userloaded_objfile_contains_address_p): New
8161 function.
8162 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8163 * target.h (memory_validate_breakpoint): New declaration.
8164
076855f9
PA
81652014-04-23 Pedro Alves <palves@redhat.com>
8166
8167 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8168 the breakpoint is set in a shared library, only suppress
8169 errors for software breakpoints, not hardware breakpoints.
8170
483805cf
PA
81712014-04-22 Pedro Alves <palves@redhat.com>
8172
8173 * infrun.c (schedlock_applies): New function, factored out from
8174 find_thread_needs_step_over.
8175 (find_thread_needs_step_over): Use it.
8176 (switch_back_to_stepped_thread): Always clear trap_expected if the
8177 step over is finished. Return early if scheduler locking applies.
8178 Look for the stepping thread and a potential step-over thread with
8179 a single loop.
8180 (currently_stepping_or_nexting_callback): Delete.
8181
a75fef0e
NC
81822014-04-22 Nick Clifton <nickc@redhat.com>
8183
8184 * NEWS: Mention that ARM sim now supports tracing.
8185
48b6e87e
YQ
81862014-04-22 Yao Qi <yao@codesourcery.com>
8187
8188 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8189 to ...
8190 * tracefile.c (tracefile_fetch_registers): ... it. New
8191 function.
8192 * tracefile.h (tracefile_fetch_registers): Declare.
8193 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8194 tracefile_fetch_registers.
8195
17617f2d
EZ
81962014-04-19 Eli Zaretskii <eliz@gnu.org>
8197
8198 PR gdb/14018
8199 * windows-nat.c (thread_rec): Don't display a warning when
8200 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8201 fails for any reason, set th->suspended to -1, so that we don't
8202 try to resume such a thread. Also, don't return NULL in these
8203 cases, to avoid completely ruin the session due to "PC register is
8204 not available" error.
8205 (do_windows_fetch_inferior_registers): Check errors in
8206 GetThreadContext call.
8207 (windows_continue): Accept an additional argument KILLED; if not
8208 zero, ignore errors in the SetThreadContext call, since the
8209 inferior was killed and is shutting down.
8210 (windows_resume, get_windows_debug_event)
8211 (windows_create_inferior, windows_mourn_inferior)
8212 (windows_kill_inferior): All callers of windows_continue changed
8213 to adjust to its new calling sequence.
8214
5723a6fd
YQ
82152014-04-19 Yao Qi <yao@codesourcery.com>
8216
8217 * ctf.c (ctf_open): Call post_create_inferior.
8218
614d5099
YQ
82192014-04-19 Yao Qi <yao@codesourcery.com>
8220
8221 * ctf.c (handle_id): New static variable.
8222 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8223 value. Get the declaration of event "register" and get length
8224 of field "contents".
8225
dac3e710
YQ
82262014-04-19 Yao Qi <yao@codesourcery.com>
8227
8228 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8229
2bca57ba
SC
82302014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8231
8232 * valops.c (oload_method_static): Remove unnecessary argument
8233 METHOD. Update all callers.
8234
51d48146
PA
82352014-04-18 Pedro alves <palves@redhat.com>
8236 Tom Tromey <tromey@redhat.com>
8237
8238 PR backtrace/15558
8239 * frame.c (get_prev_frame_1): Rename to ...
8240 (get_prev_frame_always): ... this, and make extern. Adjust.
8241 (skip_artificial_frames): Use get_prev_frame_always.
8242 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8243 (get_frame_unwind_stop_reason): Adjust to rename.
8244 * frame.h (get_prev_frame_always): Declare.
8245 * inline-frame.c: Include frame.h.
8246 (inline_frame_this_id): Use get_prev_frame_always.
8247
1bdad2e0
TG
82482014-04-18 Tristan Gingold <gingold@adacore.com>
8249
8250 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8251 code by using bfd_mach_o_get_base_address.
8252
7ce16bd4
UW
82532014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8254
8255 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8256 (spu_ax_pseudo_register_collect): New function.
8257 (spu_ax_pseudo_register_push_stack): Likewise.
8258 (spu_dwarf_reg_to_regnum): Likewise.
8259 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8260
2ed3c037
UW
82612014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8262
8263 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8264 Replace FRAME argument with FRAME_ID.
8265 * gdbarch.c, gdbarch.h: Regenerate.
8266 * findvar.c (default_value_from_register): Add GDBARCH argument;
8267 replace FRAME by FRAME_ID. No longer call get_frame_id.
8268 (value_from_register): Update call to gdbarch_value_from_register.
8269 * value.h (default_value_from_register): Update prototype.
8270 * s390-linux-tdep.c (s390_value_from_register): Update interface
8271 and call to default_value_from_register.
8272 * spu-tdep.c (spu_value_from_register): Likewise.
8273
8274 * findvar.c (address_from_register): Remove TYPE argument.
8275 Do not call value_from_register; use gdbarch_value_from_register
8276 with null_frame_id instead.
8277 * value.h (address_from_register): Update prototype.
8278 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8279 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8280 address_from_register interface change.
8281
71e50e83
YQ
82822014-04-17 Yao Qi <yao@codesourcery.com>
8283
8284 * gdbtypes.h: Update comments to link to types and macros'
8285 definitions.
8286
7a23c549
SC
82872014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8288
8289 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8290
22869d73
KS
82912014-04-16 Keith Seitz <keiths@redhat.com>
8292
8293 PR gdb/15827
8294 * dwarf2read.c (skip_one_die): Check that all relative-offset
8295 sibling DIEs fall within range of the current reader's buffer.
8296 (read_partial_die): Likewise.
8297
c4f87ca6
KS
82982014-04-16 Keith Seitz <keiths@redhat.com>
8299
8300 PR c++/16597
8301 * cp-namespace.c (lookup_symbol_file): If the type name of
8302 `this' is NULL, return immediately.
8303
b50c8614
KS
83042014-04-14 Keith Seitz <keiths@redhat.com>
8305
8306 PR c++/16253
8307 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8308 from symbol_matches_domain in symtab.c. All local callers
8309 of symbol_matches_domain updated.
8310 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8311 search STRUCT_DOMAIN.
8312 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8313 independently. standard_lookup will do that automatically.
8314 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8315 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8316 (cp_lookup_symbol_in_namespace): Likewise.
8317 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8318 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8319 may return a STRUCT_DOMAIN match.
8320 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8321 * cp-support.c: Include language.h.
8322 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8323 VAR_DOMAIN.
8324 * psymtab.c (match_partial_symbol): Compare the requested
8325 domain with the symbol's domain directly.
8326 (lookup_partial_symbol): Likewise.
8327 * symtab.c (lookup_symbol_in_language): Explain when/why
8328 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8329 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8330 appropriate languages.
8331 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8332 and moved to ada-lang.c
8333 (lookup_block_symbol): Explain that this function only returns
8334 symbol matching the requested DOMAIN.
8335 Compare the requested domain with the symbol's domain directly.
8336 (iterate_over_symbols): Compare the requested domain with the
8337 symbol's domain directly.
8338 * symtab.h (symbol_matches_domain): Remove.
8339
3d567982
TT
83402014-04-14 Tom Tromey <tromey@redhat.com>
8341
8342 PR c++/15246:
8343 * c-exp.y (type_aggregate_p): New function.
8344 (qualified_name, classify_inner_name): Use it.
8345 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8346 and TYPE_TARGET_TYPE of an enum type.
8347 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8348 an enum type.
8349 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8350 handle TYPE_DECLARED_CLASS.
8351 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8352 types.
8353 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8354 * valops.c (enum_constant_from_type): New function.
8355 (value_aggregate_elt): Use it.
8356 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8357 TYPE_CODE_ENUM.
8358
c848d642
TT
83592014-04-14 Tom Tromey <tromey@redhat.com>
8360
8361 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8362 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8363 const.
8364 * value.h (value_aggregate_elt): Update.
8365
0626fc76
TT
83662014-04-14 Tom Tromey <tromey@redhat.com>
8367
8368 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8369
5ecaaa66
SA
83702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8371
8372 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8373 (evaluate_subexp_standard): Pass noside argument.
8374 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8375 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8376 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8377 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8378 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8379
1612e0c0
SA
83802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8381
8382 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8383 points to a constant blob.
8384
c451ebe5
SA
83852014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8386
8387 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8388 property and store it as the high bound and flag the range accordingly.
8389 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8390 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8391 * gdbtypes.h (enum range_flags): New enum.
8392 (struct range_bounds): Add flags member.
8393
1d42e4c4
SA
83942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8395
8396 * c-typeprint.c (c_type_print_varspec_suffix): Added
8397 check for not yet resolved high bound. If unresolved, print
8398 "variable length" string to the console instead of random
8399 length.
8400
9f1f738a
SA
84012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8402
8403 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8404 value.
8405 (ada_template_to_fixed_record_type_1): Likewise.
8406 (ada_to_fixed_type_1): Likewise.
8407 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8408 (cp_print_value): Likewise.
8409 * d-valprint.c (dynamic_array_type): Likewise.
8410 * findvar.c (address_of_variable): Likewise.
8411 * jv-valprint.c (java_value_print): Likewise.
8412 * valops.c (value_ind): Likewise.
8413 * value.c (coerce_ref): Likewise.
8414
3c8452d4
SA
84152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8416
8417 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8418 value and retrieve the dynamic type size.
8419
4ad88275
SA
84202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8421
8422 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8423 passed to sizeof is dynamic evaluate the argument to compute the length.
8424
80180f79
SA
84252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8426 Joel Brobecker <brobecker@adacore.com>
8427
8428 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8429 (dwarf2_evaluate_property): New function.
8430 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8431 * dwarf2read.c (attr_to_dynamic_prop): New function.
8432 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8433 attribute.
8434 * gdbtypes.c: Include dwarf2loc.h.
8435 (is_dynamic_type): New function.
8436 (resolve_dynamic_type): New function.
8437 (resolve_dynamic_bounds): New function.
8438 (get_type_length): New function.
8439 (check_typedef): Use get_type_length to compute type length.
8440 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8441 (TYPE_LOW_BOUND_KIND): New macro.
8442 (is_dynamic_type): New function prototype.
8443 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8444 to resolve dynamic properties of the type. Update comment.
8445 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8446
a1556843
RH
84472014-04-14 Richard Henderson <rth@redhat.com>
8448
8449 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8450
0be03e84
DE
84512014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8452 Doug Evans <xdje42@gmail.com>
8453
8454 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8455 dereference TYPE_CODE_REF values.
8456
6b662e19
JB
84572014-04-11 Joel Brobecker <brobecker@adacore.com>
8458
8459 Revert the following changes due to regressions:
8460
8461 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8462 (dwarf2_evaluate_property): New function.
8463 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8464 * dwarf2read.c (attr_to_dynamic_prop): New function.
8465 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8466 attribute.
8467 * gdbtypes.c: Include dwarf2loc.h.
8468 (is_dynamic_type): New function.
8469 (resolve_dynamic_type): New function.
8470 (resolve_dynamic_bounds): New function.
8471 (get_type_length): New function.
8472 (check_typedef): Use get_type_length to compute type length.
8473 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8474 (TYPE_LOW_BOUND_KIND): New macro.
8475 (is_dynamic_type): New function prototype.
8476 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8477 to resolve dynamic properties of the type. Update comment.
8478 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8479
8480 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8481 passed to sizeof is dynamic evaluate the argument to compute the length.
8482
8483 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8484 value and retrieve the dynamic type size.
8485
8486 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8487 (ada_template_to_fixed_record_type_1): Likewise.
8488 (ada_to_fixed_type_1): Likewise.
8489 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8490 (cp_print_value): Likewise.
8491 * d-valprint.c (dynamic_array_type): Likewise.
8492 * eval.c (evaluate_subexp_with_coercion): Likewise.
8493 * findvar.c (address_of_variable): Likewise.
8494 * jv-valprint.c (java_value_print): Likewise.
8495 * valops.c (value_ind): Likewise.
8496 * value.c (coerce_ref): Likewise.
8497
8498 * c-typeprint.c (c_type_print_varspec_suffix): Added
8499 check for not yet resolved high bound. If unresolved, print
8500 "variable length" string to the console instead of random
8501 length.
8502
8503 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8504 property and store it as the high bound and flag the range accordingly.
8505 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8506 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8507 * gdbtypes.h (enum range_flags): New enum.
8508 (struct range_bounds): Add flags member.
8509
8510 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8511 points to a constant blob.
8512
8513 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8514 (evaluate_subexp_standard): Pass noside argument.
8515 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8516 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8517 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8518 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8519 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8520
245a5f0b
KS
85212014-04-11 Keith Seitz <keiths@redhat.com>
8522
8523 PR c++/16675
8524 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8525 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8526 reference types.
8527
3bce8237
SA
85282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8529
8530 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8531 (evaluate_subexp_standard): Pass noside argument.
8532 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8533 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8534 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8535 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8536 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8537
92b09522
SA
85382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8539
8540 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8541 points to a constant blob.
8542
e1969afb
SA
85432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8544
8545 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8546 property and store it as the high bound and flag the range accordingly.
8547 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8548 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8549 * gdbtypes.h (enum range_flags): New enum.
8550 (struct range_bounds): Add flags member.
8551
b86138fb
SA
85522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8553
8554 * c-typeprint.c (c_type_print_varspec_suffix): Added
8555 check for not yet resolved high bound. If unresolved, print
8556 "variable length" string to the console instead of random
8557 length.
8558
bcd629a4
SA
85592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8560
8561 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8562 (ada_template_to_fixed_record_type_1): Likewise.
8563 (ada_to_fixed_type_1): Likewise.
8564 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8565 (cp_print_value): Likewise.
8566 * d-valprint.c (dynamic_array_type): Likewise.
8567 * eval.c (evaluate_subexp_with_coercion): Likewise.
8568 * findvar.c (address_of_variable): Likewise.
8569 * jv-valprint.c (java_value_print): Likewise.
8570 * valops.c (value_ind): Likewise.
8571 * value.c (coerce_ref): Likewise.
8572
04b19544
SA
85732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8574
8575 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8576 value and retrieve the dynamic type size.
8577
26cb189f
SA
85782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8579
8580 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8581 passed to sizeof is dynamic evaluate the argument to compute the length.
8582
37c1ab67
SA
85832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8584
8585 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8586 (dwarf2_evaluate_property): New function.
8587 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8588 * dwarf2read.c (attr_to_dynamic_prop): New function.
8589 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8590 attribute.
8591 * gdbtypes.c: Include dwarf2loc.h.
8592 (is_dynamic_type): New function.
8593 (resolve_dynamic_type): New function.
8594 (resolve_dynamic_bounds): New function.
8595 (get_type_length): New function.
8596 (check_typedef): Use get_type_length to compute type length.
8597 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8598 (TYPE_LOW_BOUND_KIND): New macro.
8599 (is_dynamic_type): New function prototype.
8600 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8601 to resolve dynamic properties of the type. Update comment.
8602 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8603
729efb13
SA
86042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8605
8606 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8607 declaring high/low bounds and change uses accordingly. Call
8608 create_range_type instead of create_static_range_type.
8609 * gdbtypes.c (create_range_type): New function.
8610 (create_range_type): Convert bounds into struct bound_prop and pass
8611 them to create_range_type.
8612 * gdbtypes.h (struct bound_prop): New struct.
8613 (create_range_type): New function prototype.
8614 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8615 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8616 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8617 part of the bound.
8618 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8619
0c9c3474
SA
86202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8621
8622 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8623 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8624 * ada-lang.c: All uses of create_range_type updated.
8625 * coffread.c: All uses of create_range_type updated.
8626 * dwarf2read.c: All uses of create_range_type updated.
8627 * f-exp.y: All uses of create_range_type updated.
8628 * m2-valprint.c: All uses of create_range_type updated.
8629 * mdebugread.c: All uses of create_range_type updated.
8630 * stabsread.c: All uses of create_range_type updated.
8631 * valops.c: All uses of create_range_type updated.
8632 * valprint.c: All uses of create_range_type updated.
8633
9d497a19
PA
86342014-04-10 Pedro Alves <palves@redhat.com>
8635
8636 * breakpoint.c (single_step_breakpoints)
8637 (single_step_gdbarch): Move up in the file.
8638 (one_breakpoint_xfer_memory): New function, factored out from ...
8639 (breakpoint_xfer_memory): ... here. Also process single-step
8640 breakpoints.
8641
15a9128a
TG
86422014-04-09 Tristan Gingold <gingold@adacore.com>
8643
8644 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8645 comments.
8646 (darwin_decode_exception_message): Free port only after use.
8647
9c97a070
PL
86482014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8649
8650 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8651 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8652 when setting the size of call_length.
8653
7af389b8
SC
86542014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8655
8656 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8657 dereference TYPE_CODE_REF values.
8658
86ad98c3
JB
86592014-04-07 Joel Brobecker <brobecker@adacore.com>
8660
8661 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8662 end of warning message.
8663
b0aeadb3
DE
86642014-04-03 Doug Evans <dje@google.com>
8665
8666 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8667 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8668
5979d6b6
AM
86692014-04-02 Alan Modra <amodra@gmail.com>
8670
8671 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8672 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8673 (struct symbol_file_add_from_memory_args): Add size field.
8674 (find_vdso_size): New function.
8675 (add_vsyscall_page): Attempt to find vdso size.
8676
0d60c288
DE
86772014-04-01 Doug Evans <dje@google.com>
8678
8679 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8680
a41f2563
TG
86812014-04-01 Tristan Gingold <gingold@adacore.com>
8682
8683 * darwin-nat.c (darwin_encode_reply): Add prototype.
8684 (darwin_decode_exception_message): Reply to unknown inferiors.
8685 (darwin_decode_message): Handle message by id. Ignore message
8686 to unknown inferior.
8687 (darwin_wait): Discard unknown messages, add debug trace.
8688
11a865c8
DE
86892014-03-31 Doug Evans <dje@google.com>
8690
8691 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8692 comp_dir_string.
8693
770e7fc7
DE
86942014-03-31 Doug Evans <dje@google.com>
8695
8696 New option "set print symbol-loading".
8697 * NEWS: Mention it.
8698 * solib.c (solib_read_symbols): Only print symbol loading messages
8699 if requested.
8700 (solib_add): If symbol loading is in "brief" mode, notify user
8701 symbols are being loaded.
8702 (reload_shared_libraries_1): Ditto.
8703 * symfile.c (print_symbol_loading_off): New static global.
8704 (print_symbol_loading_brief): New static global.
8705 (print_symbol_loading_full): New static global.
8706 (print_symbol_loading_enums): New static global.
8707 (print_symbol_loading): New static global.
8708 (print_symbol_loading_p): New function.
8709 (symbol_file_add_with_addrs): Only print symbol loading messages
8710 if requested.
8711 (_initialize_symfile): Register "print symbol-loading" set/show
8712 command.
8713 * symfile.h (print_symbol_loading_p): Declare.
8714
c32c64b7
DE
87152014-03-30 Doug Evans <xdje42@gmail.com>
8716
8717 * infrun.c (set_last_target_status): New function.
8718 (handle_inferior_event): Call it.
8719
7c0bc051
DE
87202014-03-30 Doug Evans <xdje42@gmail.com>
8721
8722 * inferior.h (enum stop_kind): Improve comment.
8723
8776cfe9
JB
87242014-03-28 Joel Brobecker <brobecker@adacore.com>
8725
8726 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8727 a reference, strip the reference layer before calling
8728 the lang_ops value_has_mutated callback.
8729
410a0ff2
SDJ
87302014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8731
8732 Remove some globals from our parser.
8733 * language.c (unk_lang_parser): Add "struct parser_state"
8734 argument.
8735 * language.h (struct language_defn) <la_parser>: Likewise.
8736 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8737 (initialize_expout): Add "struct parser_state" argument.
8738 Rewrite function to use the parser state.
8739 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8740 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8741 write_exp_elt_longcst, write_exp_elt_dblcst,
8742 write_exp_elt_decfloatcst, write_exp_elt_type,
8743 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8744 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8745 write_dollar_variable): Likewise.
8746 (parse_exp_in_context_1): Use parser state.
8747 (insert_type_address_space): Add "struct parser_state" argument.
8748 Use parser state.
8749 (increase_expout_size): New function.
8750 * parser-defs.h: Forward declare "struct language_defn" and
8751 "struct parser_state".
8752 (expout, expout_size, expout_ptr): Remove extern declarations.
8753 (parse_gdbarch, parse_language): Rewrite macro declarations to
8754 accept the parser state.
8755 (struct parser_state): New struct.
8756 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8757 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8758 write_exp_elt_decfloatcst, write_exp_elt_type,
8759 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8760 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8761 write_exp_msymbol, write_dollar_variable,
8762 mark_struct_expression, insert_type_address_space): Add "struct
8763 parser_state" argument.
8764 (increase_expout_size): New function.
8765 * utils.c (do_clear_parser_state): New function.
8766 (make_cleanup_clear_parser_state): Likewise.
8767 * utils.h (make_cleanup_clear_parser_state): New function
8768 prototype.
8769 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8770 Update calls to write_exp* in order to pass the parser state.
8771 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8772 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8773 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8774 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8775 * stap-probe.c (stap_parse_register_operand): Likewise.
8776 (stap_parse_single_operand): Likewise.
8777 (stap_parse_argument_1): Likewise.
8778 (stap_parse_argument): Use parser state.
8779 * stap-probe.h: Include "parser-defs.h".
8780 (struct stap_parse_info) <pstate>: New field.
8781 * c-exp.y (parse_type): Rewrite to use parser state.
8782 (yyparse): Redefine to c_parse_internal.
8783 (pstate): New global variable.
8784 (parse_number): Add "struct parser_state" argument.
8785 (write_destructor_name): Likewise.
8786 (type_exp): Update calls to write_exp* and similars in order to
8787 use parser state.
8788 (exp1, exp, variable, qualified_name, space_identifier,
8789 typename, typebase): Likewise.
8790 (write_destructor_name, parse_number, lex_one_token,
8791 classify_name, classify_inner_name, c_parse): Add "struct
8792 parser_state" argument. Update function to use parser state.
8793 * c-lang.h: Forward declare "struct parser_state".
8794 (c_parse): Add "struct parser_state" argument.
8795 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8796 (yyparse): Redefine macro to ada_parse_internal.
8797 (pstate): New variable.
8798 (write_int, write_object_renaming, write_var_or_type,
8799 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8800 type_int, type_long, type_long_long, type_float, type_double,
8801 type_long_double, type_char, type_boolean, type_system_address):
8802 Add "struct parser_state" argument.
8803 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8804 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8805 var_or_type, aggregate, aggregate_component_list,
8806 positional_list, others, component_group,
8807 component_associations): Update calls to write_exp* and similar
8808 functions in order to use parser state.
8809 (ada_parse, write_var_from_sym, write_int,
8810 write_exp_op_with_string, write_object_renaming,
8811 find_primitive_type, write_selectors, write_ambiguous_var,
8812 write_var_or_type, write_name_assoc, type_int, type_long,
8813 type_long_long, type_float, type_double, type_long_double,
8814 type_char, type_boolean, type_system_address): Add "struct
8815 parser_state" argument. Adjust function to use parser state.
8816 * ada-lang.c (parse): Likewise.
8817 * ada-lang.h: Forward declare "struct parser_state".
8818 (ada_parse): Add "struct parser_state" argument.
8819 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8820 calls to both functions.
8821 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8822 parser state.
8823 (yyparse): Redefine macro to f_parse_internal.
8824 (pstate): New variable.
8825 (parse_number): Add "struct parser_state" argument.
8826 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8827 and similars in order to use parser state.
8828 (parse_number): Adjust code to use parser state.
8829 (yylex): Likewise.
8830 (f_parse): New function.
8831 * f-lang.h: Forward declare "struct parser_state".
8832 (f_parse): Add "struct parser_state" argument.
8833 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8834 parser state.
8835 (yyparse): Redefine macro for java_parse_internal.
8836 (pstate): New variable.
8837 (push_expression_name, push_expression_name, insert_exp): Add
8838 "struct parser_state" argument.
8839 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8840 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8841 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8842 PostIncrementExpression, PostDecrementExpression,
8843 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8844 UnaryExpressionNotPlusMinus, CastExpression,
8845 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8846 RelationalExpression, EqualityExpression, AndExpression,
8847 ExclusiveOrExpression, InclusiveOrExpression,
8848 ConditionalAndExpression, ConditionalOrExpression,
8849 ConditionalExpression, Assignment, LeftHandSide): Update
8850 calls to write_exp* and similars in order to use parser state.
8851 (parse_number): Ajust code to use parser state.
8852 (yylex): Likewise.
8853 (java_parse): New function.
8854 (push_variable): Add "struct parser_state" argument. Adjust
8855 code to user parser state.
8856 (push_fieldnames, push_qualified_expression_name,
8857 push_expression_name, insert_exp): Likewise.
8858 * jv-lang.h: Forward declare "struct parser_state".
8859 (java_parse): Add "struct parser_state" argument.
8860 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8861 parser state.
8862 (yyparse): Redefine macro to m2_parse_internal.
8863 (pstate): New variable.
8864 (type_exp, exp, fblock, variable, type): Update calls to
8865 write_exp* and similars to use parser state.
8866 (yylex): Likewise.
8867 (m2_parse): New function.
8868 * m2-lang.h: Forward declare "struct parser_state".
8869 (m2_parse): Add "struct parser_state" argument.
8870 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8871 * objc-lang.h: Forward declare "struct parser_state".
8872 (end_msglist): Add "struct parser_state" argument.
8873 * p-exp.y (parse_type): Rewrite macro to use parser state.
8874 (yyparse): Redefine macro to pascal_parse_internal.
8875 (pstate): New variable.
8876 (parse_number): Add "struct parser_state" argument.
8877 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8878 write_exp* and similars in order to use parser state.
8879 (parse_number, yylex): Adjust code to use parser state.
8880 (pascal_parse): New function.
8881 * p-lang.h: Forward declare "struct parser_state".
8882 (pascal_parse): Add "struct parser_state" argument.
8883 * go-exp.y (parse_type): Rewrite macro to use parser state.
8884 (yyparse): Redefine macro to go_parse_internal.
8885 (pstate): New variable.
8886 (parse_number): Add "struct parser_state" argument.
8887 (type_exp, exp1, exp, variable, type): Update calls to
8888 write_exp* and similars in order to use parser state.
8889 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8890 to use parser state.
8891 (go_parse): Likewise.
8892 * go-lang.h: Forward declare "struct parser_state".
8893 (go_parse): Add "struct parser_state" argument.
8894
342587c4
DE
88952014-03-27 Doug Evans <dje@google.com>
8896
8897 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8898
33e80786
DE
88992014-03-27 Doug Evans <dje@google.com>
8900
8901 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8902 Remove argument abbrev_section. All callers updated.
8903
1dbab08b
DE
89042014-03-27 Doug Evans <dje@google.com>
8905
8906 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8907 addr_base, ranges_base.
8908
318d3177
KS
89092014-03-26 Keith Seitz <keiths@redhat.com>
8910
8911 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8912 types, not VAR_DOMAIN.
8913
1e54db15
SL
89142014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8915
8916 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8917 "ra" registers.
8918 * features/nios2-linux.c: Regenerated.
8919 * features/nios2.c: Regenerated.
8920
d3839ede
PA
89212014-03-25 Pedro Alves <palves@redhat.com>
8922
8923 * cli/cli-script.c (script_from_file): Force the interpreter to
8924 sync mode.
8925
7588d2ec
PL
89262014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8927
8928 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8929 small stack allocation.
8930
a6290449
TG
89312014-03-24 Tristan Gingold <gingold@adacore.com>
8932
8933 * darwin-nat.c (exc_server): Remove unused prototype.
8934 (darwin_dump_message): Correctly display data on x86_64.
8935 (darwin_encode_reply): Fix style.
8936 Add comments and fix indentation.
8937
31ae9d24 89382014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8939
8940 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8941
6339bfc4
DE
89422014-03-22 Doug Evans <xdje42@gmail.com>
8943
8944 * infcmd.c: Whitespace fixes.
8945 (interrupt_command): Merge two function comments into one.
8946
0a07590b
DE
89472014-03-22 Doug Evans <xdje42@gmail.com>
8948
8949 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8950 All uses updated.
8951
b55fbac4
YQ
89522014-03-22 Yao Qi <yao@codesourcery.com>
8953
8954 * remote.c (target_read_live_memory): Remove.
8955 (memory_xfer_live_readonly_partial): Rename it to
8956 remote_xfer_live_readonly_partial. Remove argument 'object'.
8957 All callers updated. Call remote_read_bytes_1
8958 instead of target_read_live_memory.
8959 * tracepoint.c (set_traceframe_number): Remove.
8960 (make_cleanup_restore_traceframe_number): Likewise .
8961 * tracepoint.h (set_traceframe_number): Remove declaration.
8962 (make_cleanup_restore_traceframe_number): Likewise.
8963
9217e74e
YQ
89642014-03-22 Yao Qi <yao@codesourcery.com>
8965
8966 * remote.c (remote_read_bytes): Move code on reading from the
8967 remote stub to ...
8968 (remote_read_bytes_1): ... here. New function.
8969
8acf9577
YQ
89702014-03-22 Yao Qi <yao@codesourcery.com>
8971
8972 * ctf.c (ctf_xfer_partial): Check the return value of
8973 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8974 return TARGET_XFER_UNAVAILABLE.
8975 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8976 * target.c (target_read_live_memory): Move it to remote.c.
8977 (memory_xfer_live_readonly_partial): Likewise.
8978 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8979 * remote.c (target_read_live_memory): Moved from target.c.
8980 (memory_xfer_live_readonly_partial): Likewise.
8981 (remote_read_bytes): Factored out from
8982 memory_xfer_partial_1.
8983
feef67ab
DE
89842014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8985
8986 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8987 NULL pointer.
8988
b65dc60b
PA
89892014-03-21 Pedro Alves <palves@redhat.com>
8990
8991 * infrun.c (normal_stop): Extend comment.
8992
b4ab256d
HZ
89932014-03-21 Hui Zhu <hui@codesourcery.com>
8994 Pedro Alves <palves@redhat.com>
8995
8996 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8997 static buffer.
8998 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8999 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9000 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9001
deba7593
MR
90022014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9003
9004 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9005 `z' formatted output modifier.
9006
1bff71c3
SDJ
90072014-03-20 Tom Tromey <tromey@redhat.com>
9008 Sergio Durigan Junior <sergiodj@redhat.com>
9009
9010 * probe.c (parse_probes): Turn assert into an ordinary error.
9011 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9012 exceptions when parsing probes. Rearrange the code for clarity.
9013
90e28950
TT
90142014-03-20 Tom Tromey <tromey@redhat.com>
9015
9016 PR gdb/14135
9017 * top.c (execute_command): Only dispatch events if the command
9018 started the target.
9019
beb460e8
PA
90202014-03-20 Tom Tromey <tromey@redhat.com>
9021
9022 PR cli/15718
9023 * infcall.c: Include event-top.h.
9024 (run_inferior_call): Call async_disable_stdin if needed.
9025
99619bea
PA
90262014-03-20 Pedro Alves <palves@redhat.com>
9027
9028 * infrun.c (prepare_to_proceed): Delete.
9029 (thread_still_needs_step_over): New function.
9030 (find_thread_needs_step_over): New function.
9031 (proceed): If the current thread needs a step-over, set its
9032 steping_over_breakpoint flag. Adjust to use
9033 find_thread_needs_step_over instead of prepare_to_proceed.
9034 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9035 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9036 breakpoint.
9037 (switch_back_to_stepped_thread): Step over breakpoints of all
9038 threads not the stepping thread, before switching back to the
9039 stepping thread.
9040
2adfaa28
PA
90412014-03-20 Pedro Alves <palves@redhat.com>
9042
9043 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9044 extern.
9045 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9046 * infrun.c (saved_singlestep_ptid)
9047 (stepping_past_singlestep_breakpoint): Delete.
9048 (resume): Remove stepping_past_singlestep_breakpoint handling.
9049 (proceed): Store the prev_pc of the stepping thread too.
9050 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9051 singlestep_pc.
9052 (enum infwait_states): Delete infwait_thread_hop_state.
9053 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9054 field.
9055 (handle_inferior_event): Adjust.
9056 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9057 handling and the thread-hop code. Before removing single-step
9058 breakpoints, check whether the thread hit a single-step breakpoint
9059 of another thread. If it did, the trap is not a random signal.
9060 (switch_back_to_stepped_thread): If the event thread hit a
9061 single-step breakpoint, unblock it before switching to the
9062 stepping thread. Handle the case of the stepped thread having
9063 advanced already.
9064 (keep_going): Handle the case of the current thread moving past a
9065 single-step breakpoint.
9066
31e77af2
PA
90672014-03-20 Pedro Alves <palves@redhat.com>
9068
9069 PR breakpoints/7143
9070 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9071 are being stepped over.
9072 (breakpoint_address_match): Make extern.
9073 * breakpoint.h (breakpoint_address_match): New declaration.
9074 * inferior.h (stepping_past_instruction_at): New declaration.
9075 * infrun.c (struct step_over_info): New type.
9076 (step_over_info): New global.
9077 (set_step_over_info, clear_step_over_info)
9078 (stepping_past_instruction_at): New functions.
9079 (handle_inferior_event): Clear the step-over info when
9080 trap_expected is cleared.
9081 (resume): Remove now stale comment.
9082 (clear_proceed_status): Clear step-over info.
9083 (proceed): Adjust step-over handling to set or clear the step-over
9084 info instead of removing all breakpoints.
9085 (handle_signal_stop): When setting up a thread-hop, don't remove
9086 breakpoints here.
9087 (stop_stepping): Clear step-over info.
9088 (keep_going): Adjust step-over handling to set or clear step-over
9089 info and then always inserting breakpoints, instead of removing
9090 all breakpoints when stepping over one.
9091
b9f437de
PA
90922014-03-20 Pedro Alves <palves@redhat.com>
9093
9094 * infrun.c (previous_inferior_ptid): Adjust comment.
9095 (deferred_step_ptid): Delete.
9096 (infrun_thread_ptid_changed, prepare_to_proceed)
9097 (init_wait_for_inferior): Adjust.
9098 (handle_signal_stop): Delete deferred_step_ptid handling.
9099
06c868a8
JK
91002014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9101
9102 PR gdb/15358
9103 * defs.h (sync_quit_force_run): New declaration.
9104 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9105 * event-top.c (async_sigterm_handler): New declaration.
9106 (async_sigterm_token): New variable.
9107 (async_init_signals): Create also async_sigterm_token.
9108 (async_sigterm_handler): New function.
9109 (sync_quit_force_run): New variable.
9110 (handle_sigterm): Replace quit_force call by other calls.
9111 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9112
dea80df0
MR
91132014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9114
9115 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9116 offset into SPE pseudo registers.
9117
0c7e1a46
PA
91182014-03-18 Pedro Alves <palves@redhat.com>
9119
9120 PR gdb/13860
9121 * inferior.h (print_stop_event): Declare.
9122 * infrun.c (print_stop_event): New, factored out from ...
9123 (normal_stop): ... this.
9124 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9125 of bpstat_print/print_stack_frame.
9126
9c1fcd01
TT
91272014-03-17 Tom Tromey <tromey@redhat.com>
9128
9129 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9130
11aa919a
PMR
91312014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9132
9133 * ada-lang.c (decode_constrained_packed_array): Perform a
9134 minimal coercion for reference with coerce_ref instead of
9135 ada_coerce_ref.
9136
d4ccb5e0
TG
91372014-03-17 Tristan Gingold <gingold@adacore.com>
9138
9139 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9140 (darwin_solib_create_inferior_hook): Emit a warning if version
9141 is unhandled.
9142
49840f2a
UW
91432014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9144
9145 * python/py-value.c (get_field_flag): Cast flag_name argument to
9146 PyObject_GetAttrString to support Python 2.4.
9147
ed4123e5
JK
91482014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9149
9150 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9151 (Global Maintainers): Remove Jan Kratochvil.
9152
d6b64346
PA
91532014-03-14 Pedro Alves <palves@redhat.com>
9154
9155 * inferior.h (terminal_ours_for_output): Rename to ...
9156 (child_terminal_ours_for_output): ... this.
9157 (terminal_save_ours): Rename to ...
9158 (child_terminal_save_ours): ... this.
9159 (terminal_ours): Rename to ...
9160 (child_terminal_ours): ... this.
9161 (terminal_inferior): Rename to ...
9162 (child_terminal_inferior): ... this.
9163 (terminal_init_inferior): Rename to ...
9164 (child_terminal_init_inferior): ... this.
9165 (terminal_init_inferior_with_pgrp): Rename to ...
9166 (child_terminal_init_inferior_with_pgrp): ... this.
9167 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9168 (child_terminal_init_with_pgrp): ... this.
9169 (terminal_save_ours): Rename to ...
9170 (child_terminal_save_ours): ... this.
9171 (terminal_init_inferior): Rename to ...
9172 (child_terminal_init): ... this. Adjust.
9173 (terminal_inferior): Rename to ...
9174 (child_terminal_inferior): ... this.
9175 (terminal_ours_for_output): Rename to ...
9176 (child_terminal_ours_for_output): ... this. Adjust.
9177 (terminal_ours): Rename to ...
9178 (child_terminal_ours): ... this.
9179 (terminal_ours_1): Rename to ...
9180 (child_terminal_ours_1): ... this. Adjust.
9181 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9182 * windows-nat.c (do_initial_windows_stuff): Adjust.
9183 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9184 (gnu_terminal_init): ... this. Adjust.
9185 (gnu_target): Adjust.
9186 * inf-child.c (inf_child_target): Adjust.
9187
5a1e8c7a
DE
91882014-03-13 Doug Evans <xdje42@gmail.com>
9189
9190 PR guile/16612
9191 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9192 new eq?-hashtab.
9193
350e1a76
DE
91942014-03-13 Doug Evans <xdje42@gmail.com>
9195
9196 * value.c (record_latest_value): Call release_value_or_incref
9197 instead of release_value.
9198
a69900ae
PA
91992014-03-13 Pedro Alves <palves@redhat.com>
9200
9201 * procfs.c (procfs_target): Don't override to_shortname,
9202 to_longname or to_doc.
9203
5db9f0bd
PA
92042014-03-13 Pedro Alves <palves@redhat.com>
9205
9206 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9207 Unix in user visible strings.
9208
5e3a2c38
SS
92092014-03-12 Stan Shebs <stan@codesourcery.com>
9210
9211 * gdbtypes.h: Annotate comments for Doxygen, add a page
9212 block comment with some general info.
9213
8bc2fe48
PA
92142014-03-12 Pedro Alves <palves@redhat.com>
9215
9216 * infcmd.c (prepare_execution_command): New function, factored out
9217 from several execution commands.
9218 (run_command_1, continue_command, step_1, jump_command)
9219 (signal_command, until_command, advance_command, finish_command)
9220 (attach_command): Use prepare_execution_command.
9221
638c5f49
OJ
92222014-03-12 Omair Javaid <omair.javaid@linaro.org>
9223
9224 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9225 (MAX_BPTS): Define.
9226 (MAX_WPTS): Define.
9227 (struct arm_linux_thread_points): Removed.
9228 (struct arm_linux_process_info): New.
9229 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9230 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9231 (arm_linux_find_breakpoints_by_tid): Removed.
9232 (struct arch_lwp_info): New.
9233 (arm_linux_find_process_pid): New functions.
9234 (arm_linux_add_process): New functions.
9235 (arm_linux_process_info_get): New functions.
9236 (arm_linux_forget_process): New function.
9237 (arm_linux_get_debug_reg_state): New function.
9238 (struct update_registers_data): New.
9239 (update_registers_callback): New function.
9240 (arm_linux_insert_hw_breakpoint1): Updated.
9241 (arm_linux_remove_hw_breakpoint1): Updated.
9242 (arm_linux_insert_hw_breakpoint): Updated.
9243 (arm_linux_remove_hw_breakpoint): Updated.
9244 (arm_linux_insert_watchpoint): Updated.
9245 (arm_linux_remove_watchpoint): Updated.
9246 (arm_linux_new_thread): Updated.
9247 (arm_linux_prepare_to_resume): New function.
9248 (arm_linux_new_fork): New function.
9249 (_initialize_arm_linux_nat): Updated.
9250
6d03af93
PA
92512014-03-12 Pedro Alves <palves@redhat.com>
9252
9253 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9254
b3ccfe11
TT
92552014-03-12 Tom Tromey <tromey@redhat.com>
9256
9257 * inf-child.c (return_zero): New function.
9258 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9259 * aix-thread.c (aix_thread_inferior_created): New function.
9260 (aix_thread_attach): Remove.
9261 (init_aix_thread_ops): Don't set to_attach.
9262 (_initialize_aix_thread): Register inferior_created observer.
9263 * corelow.c (init_core_ops): Don't set to_attach or
9264 to_create_inferior.
9265 * exec.c (init_exec_ops): Don't set to_attach or
9266 to_create_inferior.
9267 * infcmd.c (run_command_1): Use find_run_target. Make direct
9268 target calls.
9269 (attach_command): Use find_attach_target. Make direct target
9270 calls.
9271 * record-btrace.c (init_record_btrace_ops): Don't set
9272 to_create_inferior.
9273 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9274 Remove.
9275 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9276 set to_create_inferior.
9277 * target.c (complete_target_initialization): Add assertion.
9278 (target_create_inferior): Remove.
9279 (find_default_attach, find_default_create_inferior): Remove.
9280 (find_attach_target, find_run_target): New functions.
9281 (find_default_is_async_p, find_default_can_async_p)
9282 (target_supports_non_stop, target_attach): Remove.
9283 (init_dummy_target): Don't set to_create_inferior or
9284 to_supports_non_stop.
9285 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9286 TARGET_DEFAULT_FUNC.
9287 <to_create_inferior>: Add comment.
9288 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9289 TARGET_DEFAULT_RETURN.
9290 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9291 (find_attach_target, find_run_target): Declare.
9292 (target_create_inferior): Remove.
9293 (target_has_execution_1): Update comment.
9294 (target_supports_non_stop): Remove.
9295 * target-delegates.c: Rebuild.
9296
91f83b02
PA
92972014-03-12 Pedro Alves <palves@redhat.com>
9298
9299 * inf-child.h: Update comment to not mention Unix.
9300
f1aea813
PA
93012014-03-12 Pedro Alves <palves@redhat.com>
9302
9303 * inf-child.c: Update top comment to not mention Unix. Add
9304 generic comment describing how this target is meant to be used.
9305 (inf_child_post_attach, inf_child_post_startup_inferior)
9306 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9307 Unix in comment.
9308
ee8e9165
PA
93092014-03-12 Pedro Alves <palves@redhat.com>
9310
9311 * nto-procfs.c: Include inf-child.h.
9312 (procfs_ops): Delete global.
9313 (procfs_can_run): Delete method.
9314 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9315 target pointer instead of referencing procfs_ops.
9316 (procfs_prepare_to_store): Delete.
9317 (init_procfs_ops): Delete function.
9318 (procfs_target): New function, based on init_procfs_ops, but
9319 inherit inf_child_target.
9320 (_initialize_procfs): Use procfs_target.
9321
51a9c8c5
PA
93222014-03-12 Pedro Alves <palves@redhat.com>
9323
9324 * windows-nat.c: Include inf-child.h.
9325 (windows_ops): Delete global.
9326 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9327 methods.
9328 (init_windows_ops): Delete function.
9329 (windows_target): New function, based on init_windows_ops, but
9330 inherit inf_child_target.
9331 (_initialize_windows_nat): Use windows_target. Install x86
9332 specific target methods here.
9333
c1966e26
DE
93342014-03-10 Doug Evans <xdje42@gmail.com>
9335
9336 * guile/guile.c (call_initialize_gdb_module): New function.
9337 (initialize_guile): Replace call to scm_init_guile with call to
9338 scm_with_guile.
9339
023db19c
JB
93402014-03-10 Joel Brobecker <brobecker@adacore.com>
9341
9342 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9343 in call to TYPE_CODE macro.
9344
5ec18f2b
JG
93452014-03-10 Jerome Guitton <guitton@adacore.com>
9346
8668be63
JB
9347 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9348 Resolve tagged types to full view.
5ec18f2b 9349
7d03f2eb
HZ
93502014-03-10 Hui Zhu <hui@codesourcery.com>
9351
9352 * target.h (target_insert_breakpoint): Remove "hardware" from its
9353 comments.
9354
c5164cbc
DE
93552014-03-07 Doug Evans <dje@google.com>
9356
9357 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9358
c4a3fee2
DE
93592014-03-07 Doug Evans <dje@google.com>
9360
9361 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9362 Remove unused local comp_dir_attr. Assert exactly one of
9363 stub_comp_unit_die, stub_comp_dir is non-NULL.
9364
3156469c
JB
93652014-03-07 Joel Brobecker <brobecker@adacore.com>
9366
9367 * target.h (complete_target_initialization, add_target):
9368 Add comment.
9369
c1a7b7c6
PA
93702014-03-07 Pedro Alves <palves@redhat.com>
9371
9372 * go32-nat.c: Include inf-child.h.
9373 (go32_ops): Delete global.
9374 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9375 Delete methods.
9376 (go32_create_inferior): Push the passed in target pointer instead
9377 of referencing go32_ops.
9378 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9379 (go32_target): New function, based on init_go32_ops, but inherit
9380 inf_child_target.
9381 (_initialize_go32_nat): Use go32_target. Move parts of
9382 init_go32_ops here.
9383
d3c1a85f
JB
93842014-03-06 Joel Brobecker <brobecker@adacore.com>
9385
9386 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9387 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9388 SYMBOL_VALUE_ADDRESS.
9389 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9390
5fa1d40e
YQ
93912014-03-06 Yao Qi <yao@codesourcery.com>
9392
9393 * breakpoint.c (get_tracepoint_by_number): Remove argument
9394 optional_p. All callers updated. Adjust comments. Update
9395 output message.
9396 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9397
0c13193f
YQ
93982014-03-06 Yao Qi <yao@codesourcery.com>
9399
9400 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9401 early if get_number returns zero. Use 'p' instead of 'args'.
9402
2217da06
YQ
94032014-03-06 Yao Qi <yao@codesourcery.com>
9404
9405 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9406 message.
9407
cc3da688
YQ
94082014-03-06 Yao Qi <yao@codesourcery.com>
9409
9410 PR breakpoints/16508
9411 * tracepoint.c (check_trace_running): New function.
9412 (trace_find_command): Move code to check_trace_running and
9413 call check_trace_running.
9414 (trace_find_pc_command): Likewise.
9415 (trace_find_tracepoint_command): Likewise.
9416 (trace_find_line_command): Likewise.
9417 (trace_find_range_command): Likewise.
9418 * tracepoint.h (check_trace_running): Likewise.
9419 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9420
6a5f844b
YQ
94212014-03-06 Yao Qi <yao@codesourcery.com>
9422
9423 * target.h (struct target_ops) <to_traceframe_info>: Use
9424 TARGET_DEFAULT_NORETURN (tcomplain ()).
9425 * target-delegates.c: Regenerated.
9426
0f26cec1
PA
94272014-03-05 Pedro Alves <palves@redhat.com>
9428
9429 PR gdb/16575
9430 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9431 void. Update comment.
9432 (dcache_xfer_memory): Delete.
9433 (dcache_read_memory_partial): New, based on the read bits of
9434 dcache_xfer_memory.
9435 (dcache_update): Add status parameter. Use ULONGEST for len, and
9436 adjust. Discard cache lines if the reason for the update was
9437 error.
9438 * dcache.h (dcache_xfer_memory): Delete declaration.
9439 (dcache_read_memory_partial): New declaration.
9440 (dcache_update): Update prototype.
9441 * target.c (raw_memory_xfer_partial): Update the dcache here.
9442 (memory_xfer_partial_1): Don't handle dcache writes here.
9443
b2b255bd
MF
94442014-03-05 Mike Frysinger <vapier@gentoo.org>
9445
9446 * remote-sim.c (gdbsim_load): Add const to prog.
9447
5d9cf8a4
TT
94482014-03-03 Tom Tromey <tromey@redhat.com>
9449
9450 * elfread.c (probe_key): Change to bfd_data.
9451 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9452 now per-BFD, not per-objfile.
9453 * stap-probe.c (stap_probe_destroy): Update comment.
9454 (handle_stap_probe): Allocate on the per-BFD obstack.
9455
729662a5
TT
94562014-03-03 Tom Tromey <tromey@redhat.com>
9457
9458 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9459 * breakpoint.c (create_longjmp_master_breakpoint): Use
9460 get_probe_address.
9461 (add_location_to_breakpoint, bkpt_probe_insert_location)
9462 (bkpt_probe_remove_location): Update.
9463 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9464 * elfread.c (elf_symfile_relocate_probe): Remove.
9465 (elf_probe_fns): Update.
9466 (insert_exception_resume_breakpoint): Change type of "probe"
9467 parameter to bound_probe.
9468 (check_exception_resume): Update.
9469 * objfiles.c (objfile_relocate1): Don't relocate probes.
9470 * probe.c (bound_probe_s): New typedef.
9471 (parse_probes): Use get_probe_address. Set sal's objfile.
9472 (find_probe_by_pc): Return a bound_probe.
9473 (collect_probes): Return a VEC(bound_probe_s).
9474 (compare_probes): Update.
9475 (gen_ui_out_table_header_info): Change type of "probes"
9476 parameter. Update.
9477 (info_probes_for_ops): Update.
9478 (get_probe_address): New function.
9479 (probe_safe_evaluate_at_pc): Update.
9480 * probe.h (struct probe_ops) <get_probe_address>: New field.
9481 <set_semaphore, clear_semaphore>: Add objfile parameter.
9482 (struct probe) <objfile>: Remove field.
9483 <arch>: New field.
9484 <address>: Update comment.
9485 (struct bound_probe): New.
9486 (find_probe_by_pc): Return a bound_probe.
9487 (get_probe_address): Declare.
9488 * solib-svr4.c (struct probe_and_action) <address>: New field.
9489 (hash_probe_and_action, equal_probe_and_action): Update.
9490 (register_solib_event_probe): Add address parameter.
9491 (solib_event_probe_at): Update.
9492 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9493 get_probe_address.
9494 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9495 (stap_get_probe_address): New function.
9496 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9497 (compile_probe_arg): Update.
9498 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9499 address.
9500 (handle_stap_probe): Don't relocate the probe.
9501 (stap_relocate): Remove.
9502 (stap_gen_info_probes_table_values): Update.
9503 (stap_probe_ops): Remove stap_relocate.
9504 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9505 (debug_sym_probe_fns): Update.
9506 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9507 * symtab.c (init_sal): Use memset.
9508 * symtab.h (struct symtab_and_line) <objfile>: New field.
9509 * tracepoint.c (start_tracing, stop_tracing): Update.
9510
ff887920
TT
95112014-03-03 Tom Tromey <tromey@redhat.com>
9512
9513 * probe.h (parse_probes, find_probe_by_pc)
9514 (find_probes_in_objfile): Fix comments.
9515
f0407826
DE
95162014-03-02 Doug Evans <xdje42@gmail.com>
9517
9518 * infrun.c (handle_signal_stop): Replace test for
9519 TARGET_WAITKIND_STOPPED with an assert.
9520
35e6a711
DE
95212014-03-02 Doug Evans <xdje42@gmail.com>
9522
9523 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9524
667f9d0b
DE
95252014-03-02 Doug Evans <xdje42@gmail.com>
9526
9527 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9528
dc92ace0
MK
95292014-03-01 Mark Kettenis <kettenis@gnu.org>
9530
9531 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9532
a900370f
MK
95332014-03-01 Mark Kettenis <kettenis@gnu.org>
9534
9535 * i386obsd-nat.c: Include "obsd-nat.h".
9536 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9537 add_target.
9538 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9539
b72a7981
MK
95402014-03-01 Mark Kettenis <kettenis@gnu.org>
9541
9542 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9543
96c70aba
MK
95442014-03-01 Mark Kettenis <kettenis@gnu.org>
9545
9546 * mips64obsd-nat.c: Include "obsd-nath".
9547 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9548 add_target
9549 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9550
874a80af
MK
95512014-03-01 Mark Kettenis <kettenis@gnu.org>
9552
8fd408f1
MK
9553 * amd64obsd-nat.c: Include "obsd-nat,h.
9554 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9555 add_target.
874a80af
MK
9556 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9557
9cf95373
SC
95582014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9559
9560 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9561 (find_overload_match): Update call to find_oload_champ.
9562 (find_oload_champ_namespace_loop): Likewise
9563
863e4da4
MK
95642014-02-28 Mark Kettenis <kettenis@gnu.org>
9565
025cac40
MK
9566 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9567
1ed586ce
MK
9568 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9569 * config/sparc/obsd64.mh: New file.
9570 * sparc64obsd-nat.c: New file.
9571
863e4da4
MK
9572 * obsd-nat.h: New file.
9573 * obsd-nat.c: New file.
9574 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9575 (ALLDEPFILES): Add obsd-nat.c.
9576
89de4da4
TT
95772014-02-28 Tom Tromey <tromey@redhat.com>
9578
9579 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9580 * cli-out.h (cli_ui_out_impl): Now const.
9581 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9582 * ui-out.c (struct ui_out) <impl>: Now const.
9583 (default_ui_out_impl): Now const.
9584 (ui_out_new): Make 'impl' parameter const.
9585 * ui-out.h (ui_out_new): Update.
9586
c725e7b6
MK
95872014-02-27 Mark Kettenis <kettenis@gnu.org>
9588
9589 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9590
670b46b3
MK
95912014-02-27 Mark Kettenis <kettenis@gnu.org>
9592
9593 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9594
c91550fc
JK
95952014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9596
9597 Additional PR 8882 fix.
9598 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9599
2fa0369e
PA
96002014-02-27 Pedro Alves <palves@redhat.com>
9601
9602 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9603 isn't set.
9604
d632a097
PA
96052014-02-27 Pedro Alves <palves@redhat.com>
9606
9607 PR 12702
9608 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9609 * nat/linux-waitpid.c: Include string.h.
9610 (status_to_str): Moved here and made extern.
9611 * nat/linux-waitpid.h (status_to_str): New declaration.
9612
2ebd5a35
HZ
96132014-02-27 Hui Zhu <hui@codesourcery.com>
9614
9615 PR 12702
9616 * infrun.c (ptid_match): Move ...
9617 * common/ptid.c (ptid_match): ... here.
9618 * inferior.h (ptid_match): Move ...
9619 * common/ptid.h (ptid_match): ... here.
9620
3cdd631f
MK
96212014-02-27 Mark Kettenis <kettenis@gnu.org>
9622
9623 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9624 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9625 gdb_target_obs.
9626
bee30a64
MK
96272014-02-27 Mark Kettenis <kettenis@gnu.org>
9628
9629 * obsd-tdep.c (obsd_auxv_parse): New function.
9630 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9631
9632 * gdbarch.sh (auxv_parse): New.
9633 * gdbarch.h: Regenerated.
9634 * gdbarch.c: Regenerated.
9635 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9636
7a5a839f
LC
96372014-02-26 Ludovic Courtès <ludo@gnu.org>
9638
9639 * guile/scm-value.c (gdbscm_history_append_x): New function.
9640 (value_functions): Add it.
9641
31aa7e4e
JB
96422014-02-27 Joel Brobecker <brobecker@adacore.com>
9643
9644 * dwarf2read.c (attr_value_as_address): New function.
9645 (dwarf2_find_base_address, read_call_site_scope): Use
9646 attr_value_as_address in place of DW_ADDR.
9647 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9648 the low and high addresses. Slight rework of the handling
9649 of the high pc being a constant form, and limit it to
9650 DWARF verson 4 or higher.
9651 (dwarf2_record_block_ranges): Likewise.
9652 (read_partial_die): Likewise.
9653 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9654
9b333ba3
TT
96552014-02-26 Tom Tromey <tromey@redhat.com>
9656
9657 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9658
5f6cac40
TT
96592014-02-26 Tom Tromey <tromey@redhat.com>
9660
9661 * elfread.c (elf_read_minimal_symbols): Return early if
9662 minimal symbols have already been read. Add "ei" parameter.
9663 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9664 * minsyms.c (prim_record_minimal_symbol_full): Update.
9665 * objfiles.h (struct objstats) <n_minsyms>: Move...
9666 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9667 * symmisc.c (print_objfile_statistics): Update.
9668
2750ef27
TT
96692014-02-26 Tom Tromey <tromey@redhat.com>
9670
9671 * elfread.c (elf_read_minimal_symbols): New function, from
9672 elf_symfile_read.
9673 (elf_symfile_read): Call it.
9674
34643a32
TT
96752014-02-26 Tom Tromey <tromey@redhat.com>
9676
9677 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9678 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9679 (lookup_minimal_symbol_solib_trampoline)
9680 (lookup_minimal_symbol_by_pc_section_1)
9681 (lookup_minimal_symbol_and_objfile): Update.
9682 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9683 Don't allocate a minimal symbol if minsyms have already been read.
9684 (build_minimal_symbol_hash_tables): Update.
9685 (install_minimal_symbols): Do nothing if minsyms already read.
9686 Use the per-BFD obstack.
9687 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9688 * objfiles.c (allocate_objfile): Call
9689 terminate_minimal_symbol_table later.
9690 (have_minimal_symbols): Update.
9691 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9692 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9693 Move from struct objfile.
9694 <minsyms_read>: New field.
9695 (struct objfile) <msymbols, minimal_symbol_count,
9696 msymbol_hash, msymbol_demangled_hash>: Move.
9697 (ALL_OBJFILE_MSYMBOLS): Update.
9698 * symfile.c (read_symbols): Set minsyms_read.
9699 (reread_symbols): Update.
9700 * symmisc.c (dump_objfile, dump_msymbols): Update.
9701
2273f0ac
TT
97022014-02-26 Tom Tromey <tromey@redhat.com>
9703
9704 * minsyms.c (msymbols_sort): Remove.
9705 * minsyms.h (msymbols_sort): Remove.
9706 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9707 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9708 * elfread.c (elf_symtab_read): Don't add section offsets.
9709 * xcoffread.c (record_minimal_symbol): Don't add section offset
9710 to minimal symbol address.
9711 * somread.c (text_offset, data_offset): Remove.
9712 (som_symtab_read): Don't add section offsets to minimal symbol
9713 addresses.
9714 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9715 Don't add section offsets to minimal symbols.
9716 * coffread.c (coff_symtab_read): Don't add section offsets
9717 to minimal symbol addresses.
9718 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9719 to minimal symbol addresses.
9720 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9721 section offset to minimal symbol addresses.
9722 * mdebugread.c (parse_partial_symbols): Don't add section
9723 offset to minimal symbol addresses.
9724 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9725 offset to minimal symbol addresses.
9726
77e371c0
TT
97272014-02-26 Tom Tromey <tromey@redhat.com>
9728
9729 * ada-lang.c (ada_main_name): Update.
9730 (ada_add_standard_exceptions): Update.
9731 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9732 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9733 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9734 * auxv.c (ld_so_xfer_auxv): Update.
9735 * avr-tdep.c (avr_scan_prologue): Update.
9736 * ax-gdb.c (gen_var_ref): Update.
9737 * blockframe.c (get_pc_function_start)
9738 (find_pc_partial_function_gnu_ifunc): Update.
9739 * breakpoint.c (create_overlay_event_breakpoint)
9740 (create_longjmp_master_breakpoint)
9741 (create_std_terminate_master_breakpoint)
9742 (create_exception_master_breakpoint): Update.
9743 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9744 * c-valprint.c (c_val_print): Update.
9745 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9746 * common/agent.c (agent_look_up_symbols): Update.
9747 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9748 * dwarf2loc.c (call_site_to_target_addr): Update.
9749 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9750 * elfread.c (elf_gnu_ifunc_record_cache)
9751 (elf_gnu_ifunc_resolve_by_got): Update.
9752 * findvar.c (default_read_var_value): Update.
9753 * frame.c (inside_main_func): Update.
9754 * frv-tdep.c (frv_frame_this_id): Update.
9755 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9756 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9757 Update.
9758 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9759 (hppa_hpux_find_dummy_bpaddr): Update.
9760 * hppa-tdep.c (hppa_symbol_address): Update.
9761 * infcmd.c (until_next_command): Update.
9762 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9763 Update.
9764 * linespec.c (minsym_found, add_minsym): Update.
9765 * linux-nat.c (get_signo): Update.
9766 * linux-thread-db.c (inferior_has_bug): Update.
9767 * m32c-tdep.c (m32c_return_value)
9768 (m32c_m16c_address_to_pointer): Update.
9769 * m32r-tdep.c (m32r_frame_this_id): Update.
9770 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9771 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9772 * maint.c (maintenance_translate_address): Update.
9773 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9774 (frob_address): New function.
9775 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9776 frob_address. Rename parameter to "pc_in".
9777 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9778 addresses.
9779 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9780 Update.
9781 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9782 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9783 * objc-lang.c (find_objc_msgsend): Update.
9784 * objfiles.c (objfile_relocate1): Update.
9785 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9786 * p-valprint.c (pascal_val_print): Update.
9787 * parse.c (write_exp_msymbol): Update.
9788 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9789 (ppc_elfv2_skip_entrypoint): Update.
9790 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9791 * printcmd.c (build_address_symbolic, msym_info)
9792 (address_info): Update.
9793 * proc-service.c (ps_pglobal_lookup): Update.
9794 * psymtab.c (find_pc_sect_psymtab_closer)
9795 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9796 Change msymbol parameter to bound_minimal_symbol.
9797 * ravenscar-thread.c (get_running_thread_id): Update.
9798 * remote.c (remote_check_symbols): Update.
9799 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9800 address.
9801 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9802 * solib-dsbt.c (lm_base): Update.
9803 * solib-frv.c (lm_base, main_got): Update.
9804 * solib-irix.c (locate_base): Update.
9805 * solib-som.c (som_solib_create_inferior_hook)
9806 (link_map_start): Update.
9807 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9808 * solib-svr4.c (elf_locate_base, enable_break): Update.
9809 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9810 (flush_ea_cache): Update.
9811 * stabsread.c (define_symbol, scan_file_globals): Update.
9812 * stack.c (find_frame_funname): Update.
9813 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9814 (debug_qf_find_pc_sect_symtab): Update.
9815 * symfile.c (simple_read_overlay_table)
9816 (simple_overlay_update): Update.
9817 * symfile.h (struct quick_symbol_functions)
9818 <find_pc_sect_symtab>: Change type of msymbol to
9819 bound_minimal_symbol.
9820 * symmisc.c (dump_msymbols): Update.
9821 * symtab.c (find_pc_sect_symtab_via_partial)
9822 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9823 (search_symbols, print_msymbol_info): Update.
9824 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9825 (MSYMBOL_VALUE_ADDRESS): Redefine.
9826 (BMSYMBOL_VALUE_ADDRESS): New macro.
9827 * tracepoint.c (scope_info): Update.
9828 * tui/tui-disasm.c (tui_find_disassembly_address)
9829 (tui_get_begin_asm_address): Update.
9830 * valops.c (find_function_in_inferior): Update.
9831 * value.c (value_static_field, value_fn_field): Update.
9832
3b7344d5
TT
98332014-02-26 Tom Tromey <tromey@redhat.com>
9834
9835 * ada-lang.c (ada_update_initial_language): Update.
9836 (ada_main_name, ada_has_this_exception_support): Update.
9837 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9838 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9839 * arm-tdep.c (arm_skip_stub): Update.
9840 * auxv.c (ld_so_xfer_auxv): Update.
9841 * avr-tdep.c (avr_scan_prologue): Update.
9842 * ax-gdb.c (gen_var_ref): Update.
9843 * breakpoint.c (struct breakpoint_objfile_data)
9844 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9845 type to bound_minimal_symbol.
9846 (create_overlay_event_breakpoint)
9847 (create_longjmp_master_breakpoint)
9848 (create_std_terminate_master_breakpoint)
9849 (create_exception_master_breakpoint): Update.
9850 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9851 * c-exp.y (classify_name): Update.
9852 * coffread.c (coff_symfile_read): Update.
9853 * common/agent.c (agent_look_up_symbols): Update.
9854 * d-lang.c (d_main_name): Update.
9855 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9856 * dec-thread.c (enable_dec_thread): Update.
9857 * dwarf2loc.c (call_site_to_target_addr): Update.
9858 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9859 * eval.c (evaluate_subexp_standard): Update.
9860 * findvar.c (struct minsym_lookup_data) <result>: Change type
9861 to bound_minimal_symbol.
9862 <objfile>: Remove.
9863 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9864 * frame.c (inside_main_func): Update.
9865 * frv-tdep.c (frv_frame_this_id): Update.
9866 * gcore.c (call_target_sbrk): Update.
9867 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9868 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9869 Update.
9870 * go-lang.c (go_main_name): Update.
9871 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9872 (hppa_hpux_find_import_stub_for_addr): Update.
9873 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9874 Update. Change return type.
9875 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9876 type.
9877 * jit.c (jit_breakpoint_re_set_internal): Update.
9878 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9879 Update.
9880 * linux-nat.c (get_signo): Update.
9881 * linux-thread-db.c (inferior_has_bug): Update
9882 * m32c-tdep.c (m32c_return_value)
9883 (m32c_m16c_address_to_pointer): Update.
9884 * m32r-tdep.c (m32r_frame_this_id): Update.
9885 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9886 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9887 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9888 lookup_minimal_symbol. Change return type.
9889 (lookup_minimal_symbol): Remove.
9890 (lookup_bound_minimal_symbol): Update.
9891 (lookup_minimal_symbol_text): Change return type.
9892 (lookup_minimal_symbol_solib_trampoline): Change return type.
9893 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9894 (lookup_minimal_symbol_solib_trampoline): Change return type.
9895 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9896 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9897 (value_nsstring, find_imps): Update.
9898 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9899 * p-lang.c (pascal_main_name): Update.
9900 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9901 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9902 * proc-service.c (ps_pglobal_lookup): Update.
9903 * ravenscar-thread.c (get_running_thread_msymbol): Change
9904 return type.
9905 (has_ravenscar_runtime, get_running_thread_id): Update.
9906 * remote.c (remote_check_symbols): Update.
9907 * sol-thread.c (ps_pglobal_lookup): Update.
9908 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9909 * solib-dsbt.c (lm_base): Update.
9910 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9911 Update.
9912 * solib-irix.c (locate_base): Update.
9913 * solib-som.c (som_solib_create_inferior_hook)
9914 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9915 Update.
9916 * solib-spu.c (spu_enable_break): Update.
9917 * solib-svr4.c (elf_locate_base, enable_break): Update.
9918 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9919 (flush_ea_cache): Update.
9920 * stabsread.c (define_symbol): Update.
9921 * symfile.c (simple_read_overlay_table): Update.
9922 * symtab.c (find_pc_sect_line): Update.
9923 * tracepoint.c (scope_info): Update.
9924 * tui-disasm.c (tui_get_begin_asm_address): Update.
9925 * value.c (value_static_field): Update.
9926
40c1a007
TT
99272014-02-26 Tom Tromey <tromey@redhat.com>
9928
9929 * minsyms.c (prim_record_minimal_symbol_full): Use
9930 SET_MSYMBOL_VALUE_ADDRESS.
9931 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9932 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9933 SET_MSYMBOL_VALUE_ADDRESS.
9934 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9935 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9936
efd66ac6
TT
99372014-02-26 Tom Tromey <tromey@redhat.com>
9938
9939 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9940 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9941 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9942 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9943 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9944 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9945 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9946 * ada-lang.c (ada_main_name): Update.
9947 (ada_lookup_simple_minsym): Update.
9948 (ada_make_symbol_completion_list): Update.
9949 (ada_add_standard_exceptions): Update.
9950 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9951 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9952 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9953 * arm-tdep.c (skip_prologue_function): Update.
9954 (arm_skip_stack_protector, arm_skip_stub): Update.
9955 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9956 (arm_wince_skip_main_prologue): Update.
9957 * auxv.c (ld_so_xfer_auxv): Update.
9958 * avr-tdep.c (avr_scan_prologue): Update.
9959 * ax-gdb.c (gen_var_ref): Update.
9960 * block.c (call_site_for_pc): Update.
9961 * blockframe.c (get_pc_function_start): Update.
9962 (find_pc_partial_function_gnu_ifunc): Update.
9963 * breakpoint.c (create_overlay_event_breakpoint): Update.
9964 (create_longjmp_master_breakpoint): Update.
9965 (create_std_terminate_master_breakpoint): Update.
9966 (create_exception_master_breakpoint): Update.
9967 (resolve_sal_pc): Update.
9968 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9969 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9970 Update.
9971 * c-valprint.c (c_val_print): Update.
9972 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9973 * coffread.c (coff_symfile_read): Update.
9974 * common/agent.c (agent_look_up_symbols): Update.
9975 * dbxread.c (find_stab_function_addr): Update.
9976 (end_psymtab): Update.
9977 * dwarf2loc.c (call_site_to_target_addr): Update.
9978 (func_verify_no_selftailcall): Update.
9979 (tailcall_dump): Update.
9980 (call_site_find_chain_1): Update.
9981 (dwarf_expr_reg_to_entry_parameter): Update.
9982 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9983 (elf_gnu_ifunc_resolve_by_got): Update.
9984 * f-valprint.c (info_common_command): Update.
9985 * findvar.c (read_var_value): Update.
9986 * frame.c (get_prev_frame_1): Update.
9987 (inside_main_func): Update.
9988 * frv-tdep.c (frv_skip_main_prologue): Update.
9989 (frv_frame_this_id): Update.
9990 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9991 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9992 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9993 (gnuv3_skip_trampoline): Update.
9994 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9995 (hppa64_hpux_in_solib_call_trampoline): Update.
9996 (hppa_hpux_skip_trampoline_code): Update.
9997 (hppa64_hpux_search_dummy_call_sequence): Update.
9998 (hppa_hpux_find_import_stub_for_addr): Update.
9999 (hppa_hpux_find_dummy_bpaddr): Update.
10000 * hppa-tdep.c (hppa_symbol_address)
10001 (hppa_lookup_stub_minimal_symbol): Update.
10002 * i386-tdep.c (i386_skip_main_prologue): Update.
10003 (i386_pe_skip_trampoline_code): Update.
10004 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10005 * infcall.c (get_function_name): Update.
10006 * infcmd.c (until_next_command): Update.
10007 * jit.c (jit_breakpoint_re_set_internal): Update.
10008 (jit_inferior_init): Update.
10009 * linespec.c (minsym_found): Update.
10010 (add_minsym): Update.
10011 * linux-fork.c (info_checkpoints_command): Update.
10012 * linux-nat.c (get_signo): Update.
10013 * linux-thread-db.c (inferior_has_bug): Update.
10014 * m32c-tdep.c (m32c_return_value): Update.
10015 (m32c_m16c_address_to_pointer): Update.
10016 (m32c_m16c_pointer_to_address): Update.
10017 * m32r-tdep.c (m32r_frame_this_id): Update.
10018 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10019 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10020 * maint.c (maintenance_translate_address): Update.
10021 * minsyms.c (add_minsym_to_hash_table): Update.
10022 (add_minsym_to_demangled_hash_table): Update.
10023 (msymbol_objfile): Update.
10024 (lookup_minimal_symbol): Update.
10025 (iterate_over_minimal_symbols): Update.
10026 (lookup_minimal_symbol_text): Update.
10027 (lookup_minimal_symbol_by_pc_name): Update.
10028 (lookup_minimal_symbol_solib_trampoline): Update.
10029 (lookup_minimal_symbol_by_pc_section_1): Update.
10030 (lookup_minimal_symbol_and_objfile): Update.
10031 (prim_record_minimal_symbol_full): Update.
10032 (compare_minimal_symbols): Update.
10033 (compact_minimal_symbols): Update.
10034 (build_minimal_symbol_hash_tables): Update.
10035 (install_minimal_symbols): Update.
10036 (terminate_minimal_symbol_table): Update.
10037 (find_solib_trampoline_target): Update.
10038 (minimal_symbol_upper_bound): Update.
10039 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10040 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10041 (mips_skip_pic_trampoline_code): Update.
10042 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10043 * objc-lang.c (selectors_info): Update.
10044 (classes_info): Update.
10045 (find_methods): Update.
10046 (find_imps): Update.
10047 (find_objc_msgsend): Update.
10048 * objfiles.c (objfile_relocate1): Update.
10049 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10050 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10051 * p-valprint.c (pascal_val_print): Update.
10052 * parse.c (write_exp_msymbol): Update.
10053 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10054 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10055 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10056 * printcmd.c (build_address_symbolic): Update.
10057 (sym_info): Update.
10058 (address_info): Update.
10059 * proc-service.c (ps_pglobal_lookup): Update.
10060 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10061 (find_pc_sect_psymtab): Update.
10062 * python/py-framefilter.c (py_print_frame): Update.
10063 * ravenscar-thread.c (get_running_thread_id): Update.
10064 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10065 Update.
10066 * remote.c (remote_check_symbols): Update.
10067 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10068 (rs6000_skip_trampoline_code): Update.
10069 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10070 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10071 * solib-dsbt.c (lm_base): Update.
10072 * solib-frv.c (lm_base): Update.
10073 (main_got): Update.
10074 * solib-irix.c (locate_base): Update.
10075 * solib-som.c (som_solib_create_inferior_hook): Update.
10076 (som_solib_desire_dynamic_linker_symbols): Update.
10077 (link_map_start): Update.
10078 * solib-spu.c (spu_enable_break): Update.
10079 (ocl_enable_break): Update.
10080 * solib-svr4.c (elf_locate_base): Update.
10081 (enable_break): Update.
10082 * spu-tdep.c (spu_get_overlay_table): Update.
10083 (spu_catch_start): Update.
10084 (flush_ea_cache): Update.
10085 * stabsread.c (define_symbol): Update.
10086 (scan_file_globals): Update.
10087 * stack.c (find_frame_funname): Update.
10088 (frame_info): Update.
10089 * symfile.c (simple_read_overlay_table): Update.
10090 (simple_overlay_update): Update.
10091 * symmisc.c (dump_msymbols): Update.
10092 * symtab.c (fixup_section): Update.
10093 (find_pc_sect_line): Update.
10094 (skip_prologue_sal): Update.
10095 (search_symbols): Update.
10096 (print_msymbol_info): Update.
10097 (rbreak_command): Update.
10098 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10099 (completion_list_objc_symbol): Update.
10100 (default_make_symbol_completion_list_break_on): Update.
10101 * tracepoint.c (scope_info): Update.
10102 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10103 (tui_get_begin_asm_address): Update.
10104 * valops.c (find_function_in_inferior): Update.
10105 * value.c (value_static_field): Update.
10106 (value_fn_field): Update.
10107
50e65b17
TT
101082014-02-26 Tom Tromey <tromey@redhat.com>
10109
10110 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10111 bound minimal symbols. Move code that knows about minsym
10112 table layout...
10113 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10114 function.
10115 * minsyms.h (minimal_symbol_upper_bound): Declare.
10116 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10117 minimal_symbol_upper_bound.
10118
1b588015
JB
101192014-02-27 Joel Brobecker <brobecker@adacore.com>
10120
10121 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10122 Use the type's name if its basic type does not have a tag.
10123
dbb9c2b1
JB
101242014-02-27 Joel Brobecker <brobecker@adacore.com>
10125
10126 * dwarf2read.c (read_subrange_type): Add comment.
10127
55426c9d
JB
101282014-02-27 Joel Brobecker <brobecker@adacore.com>
10129
10130 * dwarf2read.c (update_enumeration_type_from_children): New
10131 function, mostly extracted from process_structure_scope.
10132 (read_enumeration_type): Call update_enumeration_type_from_children.
10133 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10134 and flag_flag_enum fields.
10135
f2fce0ca
PA
101362014-02-26 Pedro Alves <palves@redhat.com>
10137
10138 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10139 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10140 to_xfer_partial method.
10141
7a44e40e
PA
101422014-02-26 Pedro Alves <palves@redhat.com>
10143
10144 * target.c (complete_target_initialization): Don't install
10145 default_xfer_partial as to_xfer_partial hook.
10146 (nomemory): Delete.
10147 (update_current_target): Don't INHERIT nor de_fault
10148 deprecated_xfer_memory. Delete de_fault macro.
10149 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10150 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10151 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10152 field.
10153
bd265cd0
PA
101542014-02-26 Pedro Alves <palves@redhat.com>
10155
10156 * go32-nat.c (my_write_child): New function.
10157 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10158 (go32_xfer_partial): New function.
10159 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10160 Instead install a to_xfer_partial hook.
10161
9d46c4e5
PA
101622014-02-26 Pedro Alves <palves@redhat.com>
10163
10164 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10165 to_xfer_partial helper. Rewrite.
10166 (procfs_xfer_partial): New function.
10167 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10168 Install a to_xfer_partial hook.
10169
a1583b1f
PA
101702014-02-26 Pedro Alves <palves@redhat.com>
10171
10172 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10173 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10174 (m32r_xfer_partial): New function.
10175 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10176 Install a to_xfer_partial hook.
10177
6df1b29f
PA
101782014-02-26 Pedro Alves <palves@redhat.com>
10179
10180 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10181 helper.
10182 (mips_xfer_partial): New function.
10183 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10184 hook. Install a to_xfer_partial hook.
10185
dc53a7ad
JB
101862014-02-26 Joel Brobecker <brobecker@adacore.com>
10187
10188 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10189 * gdbtypes.c (create_array_type_with_stride): New function,
10190 renaming create_array_type, but with an added parameter
10191 called "bit_stride".
10192 (create_array_type): Re-implement using
10193 create_array_type_with_stride.
10194 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10195 and DW_AT_bit_stride attributes.
10196
12ab52e9
PA
101972014-02-26 Pedro Alves <palves@redhat.com>
10198
10199 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10200 task-specific breakpoints.
10201
d16461ae
PA
102022014-02-25 Pedro Alves <palves@redhat.com>
10203
10204 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10205 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10206
a8b16220
SS
102072014-02-25 Stan Shebs <stan@codesourcery.com>
10208
10209 * defs.h: Annotate comments for Doxygen.
10210
b9e795ee
TT
102112014-02-25 Tom Tromey <tromey@redhat.com>
10212
10213 * target.h (target_ignore): Don't declare.
10214 * target.c (target_ignore): Remove.
10215
849c862e
JK
102162014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10217
10218 PR gdb/16626
10219 * auto-load.c (auto_load_objfile_script_1): Change filename to
10220 debugfile.
10221
475109d8
JB
102222014-02-25 Joel Brobecker <brobecker@adacore.com>
10223
10224 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10225 documentation. Adjust prototype to match the target_ops
10226 to_xfer_partial method. Adjust implementation accordingly.
10227
e186c3bd
HZ
102282014-02-25 Hui Zhu <hui@codesourcery.com>
10229
10230 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10231 to_traceframe_info.
10232
6d451942
KB
102332014-02-25 Kevin Buettner <kevinb@redhat.com>
10234
041ab8b4 10235 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10236 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10237 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10238 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10239 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10240 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10241 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10242 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10243 New constants.
10244 (rl78_register_type): Use a data pointer type for SP and
10245 new pseudo registers mentioned above. Use a 16 bit integer
10246 type for all other register pairs.
10247 (rl78_register_name, rl78_g10_register_name): Update for
10248 new pseudo registers.
10249 (rl78_pseudo_register_read): Likewise.
10250 (rl78_pseudo_register_write): Likewise.
10251 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10252 to the newly added pseudo registers.
10253
eddf0bae
DE
102542014-02-24 Doug Evans <dje@google.com>
10255
10256 * value.c (record_latest_value): Fix comment.
10257 * printcmd.c (print_command_1): Remove code to handle -1 return from
10258 record_latest_value.
10259
e96027e0
PA
102602014-02-24 Pedro Alves <palves@redhat.com>
10261
10262 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10263 deprecated_xfer_memory hook.
10264 (procfs_xfer_partial): Call procfs_xfer_memory instead
10265 of the deprecated_xfer_memory target hook.
10266 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10267 helper.
10268
0837c976
YZ
102692014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10270
10271 * windows-nat.c (windows_xfer_shared_libraries): Return
10272 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10273 requested object is TARGET_OBJECT_LIBRARIES.
10274
bc113b4e
YQ
102752014-02-24 Yao Qi <yao@codesourcery.com>
10276
10277 * target.h (enum target_xfer_status)
10278 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10279 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10280 explicitly. New.
10281 * corefile.c (memory_error_message): User updated.
10282 * exec.c (section_table_read_available_memory): Likewise.
10283 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10284 * target.c (target_xfer_status_to_string): Likewise.
10285 (raw_memory_xfer_partial): Likewise.
10286 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10287 * valops.c (read_value_memory): Likewise.
10288 * exec.h: Update comments.
10289
01cb8804
YQ
102902014-02-24 Yao Qi <yao@codesourcery.com>
10291
10292 * target.c (target_xfer_status_to_string): Rename argument err
10293 to status.
10294 * target.h (target_xfer_status_to_string): Update declaration.
10295 Replace target_xfer_error_to_string with
10296 target_xfer_status_to_string in comment.
10297
93063aa6
YQ
102982014-02-24 Yao Qi <yao@codesourcery.com>
10299
10300 * mips-linux-nat.c (super_close): Update its type.
10301 (mips_linux_close): Pass 'self' to super_close.
10302
5c328c05
YQ
103032014-02-24 Yao Qi <yao@codesourcery.com>
10304
10305 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10306 * corefile.c (read_memory): Adjusted.
10307 * target.c (target_write_with_progress): Adjusted.
10308
f73023dd
YQ
103092014-02-23 Yao Qi <yao@codesourcery.com>
10310
10311 Revert two patches:
10312
10313 2013-10-25 Yao Qi <yao@codesourcery.com>
10314
10315 * remote.c (remote_traceframe_info): Return early if
10316 traceframe is not selected.
10317
10318 2013-07-19 Yao Qi <yao@codesourcery.com>
10319
10320 * target.c (update_current_target): Change the default action
10321 of 'to_traceframe_info' from tcomplain to return_zero.
10322 * target.h (struct target_ops) <to_traceframe_info>: Add more
10323 comments.
10324
5a2eb0ef
YQ
103252014-02-23 Yao Qi <yao@codesourcery.com>
10326
10327 * valops.c (read_value_memory): Rewrite it. Call
10328 target_xfer_partial in a loop.
10329 * exec.h (section_table_available_memory): Remove declaration.
10330 Move comments to ...
10331 * exec.c (section_table_available_memory): ... here. Make it
10332 static.
10333
1ee79381
YQ
103342014-02-23 Yao Qi <yao@codesourcery.com>
10335
10336 * exec.c (section_table_read_available_memory): New function.
10337 * exec.h (section_table_read_available_memory): Declare.
10338 * ctf.c (ctf_xfer_partial): Call
10339 section_table_read_available_memory.
10340 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10341
1ca49d37
YQ
103422014-02-23 Yao Qi <yao@codesourcery.com>
10343
10344 * ctf.c (ctf_xfer_partial): Move code to ...
10345 * exec.c (exec_read_partial_read_only): ... it. New function.
10346 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10347 * tracefile.c: Include "exec.h".
10348 * exec.h (exec_read_partial_read_only): Declare.
10349
a283690e
YQ
103502014-02-23 Yao Qi <yao@codesourcery.com>
10351
10352 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10353 (tfile_has_memory): Remove.
10354 (init_tfile_ops): Don't set fields to_has_all_memory and
10355 to_has_memory of tfile_ops.
10356 * tracefile.c (tracefile_has_all_memory): New function.
10357 (tracefile_has_memory): New function.
10358 (init_tracefile_ops): Initialize fields to_has_all_memory and
10359 to_has_memory of 'ops'.
10360
12e03cd0
YQ
103612014-02-23 Yao Qi <yao@codesourcery.com>
10362
10363 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10364 (ctf_thread_alive, ctf_get_trace_status): Remove.
10365 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10366 init_tracefile_ops.
10367 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10368 (tfile_has_stack, tfile_has_registers): Remove.
10369 (tfile_thread_alive): Remove.
10370 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10371 init_tracefile_ops.
10372 * tracefile.c (tracefile_has_stack): New function.
10373 (tracefile_has_registers): New function.
10374 (tracefile_thread_alive): New function.
10375 (tracefile_get_trace_status): New function.
10376 (init_tracefile_ops): New function.
10377 * tracefile.h (init_tracefile_ops): Declare.
10378
11395323
YQ
103792014-02-23 Yao Qi <yao@codesourcery.com>
10380
10381 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10382 (O_LARGEFILE): Likewise.
10383 (tfile_ops): Likewise.
10384 (TRACE_HEADER_SIZE): Likewise.
10385 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10386 (cur_data_size): Likewise.
10387 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10388 (tfile_close, tfile_files_info): Likewise.
10389 (tfile_get_trace_status): Likewise.
10390 (tfile_get_tracepoint_status): Likewise.
10391 (tfile_get_traceframe_address): Likewise.
10392 (tfile_trace_find, match_blocktype): Likewise.
10393 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10394 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10395 (tfile_get_trace_state_variable_value): Likewise.
10396 (tfile_has_all_memory, tfile_has_memory): Likewise.
10397 (tfile_has_stack, tfile_has_registers): Likewise.
10398 (tfile_thread_alive, build_traceframe_info): Likewise.
10399 (tfile_traceframe_info, init_tfile_ops): Likewise.
10400 (_initialize_tracepoint): Don't call init_tfile_ops
10401 and add_target_with_completer.
10402 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10403 exec.h, completer.h and filenames.h.
10404 (_initialize_tracefile_tfile): New function.
10405
7951c4eb
YQ
104062014-02-23 Yao Qi <yao@codesourcery.com>
10407
10408 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10409 tracefile-tfile.o.
10410 (HFILES_NO_SRCDIR): Add tracefile.h.
10411 * ctf.c: Include "tracefile.h".
10412 * tracefile.h: New file.
10413 * tracefile.c: New file
10414 * tracefile-tfile.c: New file.
10415 * tracepoint.c: Include "tracefile.h".
10416 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10417 (stop_reason_names): Add const.
10418 (trace_file_writer_xfree): Move it to tracefile.c.
10419 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10420 (trace_save_ctf): Likewise.
10421 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10422 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10423 (tfile_write_header, tfile_write_regblock_type): Likewise.
10424 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10425 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10426 (tfile_write_raw_data, tfile_end): Likewise.
10427 (tfile_trace_file_writer_new): Likewise.
10428 (free_uploaded_tp): Make it extern.
10429 (free_uploaded_tsv): Make it extern.
10430 (_initialize_tracepoint): Move code to register command 'tsave'
10431 to tracefile.c.
10432 * tracepoint.h (stop_reason_names): Declare.
10433 (struct trace_frame_write_ops): Move it to tracefile.h.
10434 (struct trace_file_write_ops): Likewise.
10435 (struct trace_file_writer): Likewise.
10436 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10437
184cd072
JK
104382014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10439
10440 PR gdb/16594
10441 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10442 process name.
10443 (get_cores_used_by_process): New parameter num_cores, use it.
10444 (linux_xfer_osdata_processes): Pass num_cores to it.
10445 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10446 process name.
10447
c63528fc
AK
104482014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10449
10450 * target.c (memory_xfer_partial): Fix length arg in call to
10451 breakpoint_xfer_memory.
10452
d7b30f67
SDJ
104532014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10454
10455 PR tdep/16397
10456 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10457 number comes after the + or - signs. Adjust length of register
10458 name to be extracted.
10459
8838afaf
TT
104602014-02-20 Tom Tromey <tromey@redhat.com>
10461
10462 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10463 (ada_varobj_ops): Mark "extern".
10464
05227d14
TT
104652014-02-20 Tom Tromey <tromey@redhat.com>
10466
10467 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10468
1254eefc
DE
104692014-02-20 Doug Evans <xdje42@gmail.com>
10470
10471 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10472 All callers updated.
10473 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10474 All callers updated.
10475 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10476 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10477
adde2bff
DE
104782014-02-20 lin zuojian <manjian2006@gmail.com>
10479 Joel Brobecker <brobecker@adacore.com>
10480 Doug Evans <xdje42@gmail.com>
10481
10482 PR symtab/16581
10483 * dwarf2read.c (struct die_info): New member in_process.
10484 (reset_die_in_process): New function.
10485 (process_die): Set it at the start, reset when returning.
10486 (inherit_abstract_dies): Only call process_die if origin_child_die
10487 not already being processed.
10488
3be75f87
JB
104892014-02-20 Joel Brobecker <brobecker@adacore.com>
10490
10491 * windows-nat.c (handle_unload_dll): Add function documentation.
10492 (do_initial_windows_stuff): Add comment explaining why we wait
10493 until after inferior initialization has finished before
10494 processing all DLLs.
10495
47f7ffdb
JB
104962014-02-20 Joel Brobecker <brobecker@adacore.com>
10497
10498 * windows-nat.c (get_module_name): Delete.
10499 (windows_get_exec_module_filename): New function, mostly
10500 inspired from get_module_name.
10501 (windows_pid_to_exec_file): Replace call to get_module_name
10502 by call to windows_get_exec_module_filename.
10503
1cd9feab
JB
105042014-02-20 Joel Brobecker <brobecker@adacore.com>
10505
10506 * windows-nat.c (handle_load_dll): Rewrite this function's
10507 introductory comment. Remove code using get_module_name
10508 to get the DLL's name.
10509
ea39ad35
JB
105102014-02-20 Joel Brobecker <brobecker@adacore.com>
10511
10512 * windows-nat.c (get_windows_debug_event): Ignore
10513 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10514 if windows_initialization_done == 0.
10515 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10516 Adjust implementation to always load all DLLs.
10517 (do_initial_windows_stuff): Replace call to
10518 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10519
95060284
JB
105202014-02-20 Joel Brobecker <brobecker@adacore.com>
10521
10522 * windows-nat.c (_initialize_windows_nat): Deprecate the
10523 "dll-symbols" command. Turn the "add-shared-symbol-files"
10524 and "assf" aliases into commands, and deprecate them as well.
10525 * NEWS: Add entry explaining that "dll-symbols" and its two
10526 aliases are now deprecated.
10527
8d4fdb12
JB
105282014-02-20 Joel Brobecker <brobecker@adacore.com>
10529
10530 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10531 new-line in debug string. Remove trailing spaces.
10532
1b281443
SS
105332014-02-19 Stan Shebs <stan@codesourcery.com>
10534
10535 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10536
f7bd0f78
SC
105372014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10538
10539 * NEWS: Add entry for the new feature
10540 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10541 and class values.
10542
399ebc3d
SS
105432014-02-19 Stan Shebs <stan@codesourcery.com>
10544
10545 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10546
c658158d
PA
105472014-02-19 Pedro Alves <palves@redhat.com>
10548
10549 * common/ptid.h (struct ptid): Mention that process_stratum
10550 targets should prefer ptid.lwp.
10551
ba348170
PA
105522014-02-19 Pedro Alves <palves@redhat.com>
10553
10554 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10555 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10556 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10557 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10558 store remote thread ids rather than ptid.tid.
10559 (_initialize_remote): Adjust.
10560
ac01945b
TT
105612014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target.c (target_get_unwinder): Rewrite.
10564 (target_get_tailcall_unwinder): Rewrite.
10565 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10566 (record_btrace_to_get_tailcall_unwinder): New function.
10567 (init_record_btrace_ops): Update.
10568 * target.h (struct target_ops) <to_get_unwinder,
10569 to_get_tailcall_unwinder>: Now function pointers. Use
10570 TARGET_DEFAULT_RETURN.
10571
8476dc92
TT
105722014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10575 argument.
10576 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10577
c0eca49f
TT
105782014-02-19 Tom Tromey <tromey@redhat.com>
10579
10580 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10581 directly.
10582 * target-delegates.c: Rebuild.
10583 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10584 TARGET_DEFAULT_FUNC.
10585 * target.c (default_target_decr_pc_after_break): Rename from
10586 forward_target_decr_pc_after_break. Simplify.
10587 (target_decr_pc_after_break): Rely on delegation.
10588
596b6b39
TT
105892014-02-19 Tom Tromey <tromey@redhat.com>
10590
10591 * target.c (update_current_target): Do not INHERIT to_doc or
10592 to_magic. Do not de_fault to_open or to_close.
10593
b427c1bc
TT
105942014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * gcore.h (objfile_find_memory_regions): Declare.
10597 * gcore.c (objfile_find_memory_regions): No longer static. Add
10598 "self" argument.
10599 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10600 * exec.c: Include gcore.h.
10601 (exec_set_find_memory_regions): Remove.
10602 (exec_find_memory_regions): Remove.
10603 (exec_do_find_memory_regions): Remove.
10604 (init_exec_ops): Update.
10605 * defs.h (exec_set_find_memory_regions): Remove.
10606
9b144037
TT
106072014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target-delegates.c: Rebuild.
10610 * target.h (struct target_ops) <to_extra_thread_info,
10611 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10612 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10613 not 0, in TARGET_DEFAULT_RETURN.
10614
555bbdeb
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target.c (complete_target_initialization): Remove casts. Use
10618 return_zero_has_execution.
10619 (return_zero): Add "ignore" argument.
10620 (return_zero_has_execution): New function.
10621 (init_dummy_target): Remove casts. Use
10622 return_zero_has_execution.
10623
be4ddd36
TT
106242014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target.c (update_current_target): Update comments. Do not
10627 INHERIT to_stratum.
10628
2117c711
TT
106292014-02-19 Tom Tromey <tromey@redhat.com>
10630
10631 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10632 needed.
10633 * corelow.c (core_read_description): Delegate when needed.
10634 * remote.c (remote_read_description): Delegate when needed.
10635 * target-delegates.c: Rebuild.
10636 * target.c (target_read_description): Rewrite.
10637 * target.h (struct target_ops) <to_read_description>: Update
10638 comment. Use TARGET_DEFAULT_RETURN.
10639
e88ef65c
TT
106402014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10644 to_can_run.
10645 (find_default_run_target): Check against delegate_can_run.
10646 * target.h (struct target_ops) <to_can_run>: Use
10647 TARGET_DEFAULT_RETURN.
10648
86a0854a
TT
106492014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target-delegates.c: Rebuild.
10652 * target.c (target_disconnect): Unconditionally delegate.
10653 * target.h (struct target_ops) <to_disconnect>: Use
10654 TARGET_DEFAULT_NORETURN.
10655
ee97f592
TT
106562014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * record.c (record_stop): Unconditionally delegate.
10659 * target-delegates.c: Rebuild.
10660 * target.c (target_stop_recording): Unconditionally delegate.
10661 * target.h (struct target_ops) <to_stop_recording>: Use
10662 TARGET_DEFAULT_IGNORE.
10663
6dc7fcf4
TT
106642014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target-delegates.c: Rebuild.
10667 * target.c (target_enable_btrace): Unconditionally delegate.
10668 * target.h (struct target_ops) <to_enable_btrace>: Use
10669 TARGET_DEFAULT_NORETURN.
10670
eb5b20d4
TT
106712014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * target-delegates.c: Rebuild.
10674 * target.c (target_read_btrace): Unconditionally delegate.
10675 * target.h (struct target_ops) <to_read_btrace>: Use
10676 TARGET_DEFAULT_NORETURN.
10677
9ace480d
TT
106782014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target-delegates.c: Rebuild.
10681 * target.c (target_teardown_btrace): Unconditionally delegate.
10682 * target.h (struct target_ops) <to_teardown_btrace>: Use
10683 TARGET_DEFAULT_NORETURN.
10684
8dc292d3
TT
106852014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target-delegates.c: Rebuild.
10688 * target.c (target_disable_btrace): Unconditionally delegate.
10689 * target.h (struct target_ops) <to_disable_btrace>: Use
10690 TARGET_DEFAULT_NORETURN.
10691
58a5184e
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (default_search_memory): New function.
10696 (simple_search_memory): Update comment.
10697 (target_search_memory): Unconditionally delegate.
10698 * target.h (struct target_ops) <to_search_memory>: Use
10699 TARGET_DEFAULT_FUNC.
10700
8de71aab
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * auxv.c (default_auxv_parse): No longer static.
10704 (target_auxv_parse): Unconditionally delegate.
10705 * auxv.h (default_auxv_parse): Declare.
10706 * target-delegates.c: Rebuild.
10707 * target.c: Include auxv.h.
10708 * target.h (struct target_ops) <to_auxv_parse>: Use
10709 TARGET_DEFAULT_FUNC.
10710
6b2c5a57
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target-delegates.c: Rebuild.
10714 * target.c (target_memory_map): Unconditionally delegate.
10715 * target.h (struct target_ops) <to_memory_map>: Use
10716 TARGET_DEFAULT_RETURN.
10717
cbffc065
TT
107182014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target-delegates.c: Rebuild.
10721 * target.c (target_thread_alive): Unconditionally delegate.
10722 * target.h (struct target_ops) <to_thread_alive>: Use
10723 TARGET_DEFAULT_RETURN.
10724
f09e2107
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target-delegates.c: Rebuild.
10728 * target.c (target_save_record): Unconditionally delegate.
10729 * target.h (struct target_ops) <to_save_record>: Use
10730 TARGET_DEFAULT_NORETURN.
10731
07366925
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target-delegates.c: Rebuild.
10735 * target.c (target_delete_record): Unconditionally delegate.
10736 * target.h (struct target_ops) <to_delete_record>: Use
10737 TARGET_DEFAULT_NORETURN.
10738
dd2e9d25
TT
107392014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target-delegates.c: Rebuild.
10742 * target.c (target_record_is_replaying): Unconditionally
10743 delegate.
10744 * target.h (struct target_ops) <to_record_is_replaying>: Use
10745 TARGET_DEFAULT_RETURN.
10746
671e76cc
TT
107472014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * target-delegates.c: Rebuild.
10750 * target.c (target_goto_record_begin): Unconditionally delegate.
10751 * target.h (struct target_ops) <to_goto_record_begin>: Use
10752 TARGET_DEFAULT_NORETURN.
10753
e9179bb3
TT
107542014-02-19 Tom Tromey <tromey@redhat.com>
10755
10756 * target-delegates.c: Rebuild.
10757 * target.c (target_goto_record_end): Unconditionally delegate.
10758 * target.h (struct target_ops) <to_goto_record_end>: Use
10759 TARGET_DEFAULT_NORETURN.
10760
05969c84
TT
107612014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target-delegates.c: Rebuild.
10764 * target.c (target_goto_record): Unconditionally delegate.
10765 * target.h (struct target_ops) <to_goto_record>: Use
10766 TARGET_DEFAULT_NORETURN.
10767
3679abfa
TT
107682014-02-19 Tom Tromey <tromey@redhat.com>
10769
10770 * target-delegates.c: Rebuild.
10771 * target.c (target_insn_history): Unconditionally delegate.
10772 * target.h (struct target_ops) <to_insn_history>: Use
10773 TARGET_DEFAULT_NORETURN.
10774
8444ab58
TT
107752014-02-19 Tom Tromey <tromey@redhat.com>
10776
10777 * target-delegates.c: Rebuild.
10778 * target.c (target_insn_history_from): Unconditionally delegate.
10779 * target.h (struct target_ops) <to_insn_history_from>: Use
10780 TARGET_DEFAULT_NORETURN.
10781
c29302cc
TT
107822014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * target-delegates.c: Rebuild.
10785 * target.c (target_insn_history_range): Unconditionally delegate.
10786 * target.h (struct target_ops) <to_insn_history_range>: Use
10787 TARGET_DEFAULT_NORETURN.
10788
170049d4
TT
107892014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * target-delegates.c: Rebuild.
10792 * target.c (target_call_history): Unconditionally delegate.
10793 * target.h (struct target_ops) <to_call_history>: Use
10794 TARGET_DEFAULT_NORETURN.
10795
16fc27d6
TT
107962014-02-19 Tom Tromey <tromey@redhat.com>
10797
10798 * target-delegates.c: Rebuild.
10799 * target.c (target_call_history_from): Unconditionally delegate.
10800 * target.h (struct target_ops) <to_call_history_from>: Use
10801 TARGET_DEFAULT_NORETURN.
10802
115d9817
TT
108032014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target-delegates.c: Rebuild.
10806 * target.c (target_call_history_range): Unconditionally delegate.
10807 * target.h (struct target_ops) <to_call_history_range>: Use
10808 TARGET_DEFAULT_NORETURN.
10809
eb276a6b
TT
108102014-02-19 Tom Tromey <tromey@redhat.com>
10811
10812 * target-delegates.c: Rebuild.
10813 * target.c (target_verify_memory): Unconditionally delegate.
10814 * target.h (struct target_ops) <to_verify_memory>: Use
10815 TARGET_DEFAULT_NORETURN.
10816
9e538d0d
TT
108172014-02-19 Tom Tromey <tromey@redhat.com>
10818
10819 * target-delegates.c: Rebuild.
10820 * target.c (target_core_of_thread): Unconditionally delegate.
10821 * target.h (struct target_ops) <to_core_of_thread>: Use
10822 TARGET_DEFAULT_RETURN.
10823
f6fb2925
TT
108242014-02-19 Tom Tromey <tromey@redhat.com>
10825
10826 * target-delegates.c: Rebuild.
10827 * target.c (target_flash_done): Unconditionally delegate.
10828 * target.h (struct target_ops) <to_flash_done>: Use
10829 TARGET_DEFAULT_NORETURN.
10830
e8a6c6ac
TT
108312014-02-19 Tom Tromey <tromey@redhat.com>
10832
10833 * target-delegates.c: Rebuild.
10834 * target.c (target_flash_erase): Unconditionally delegate.
10835 * target.h (struct target_ops) <to_flash_erase>: Use
10836 TARGET_DEFAULT_NORETURN.
10837
7e35c012
TT
108382014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target-delegates.c: Rebuild.
10841 * target.c (target_get_section_table): Unconditionally delegate.
10842 * target.h (struct target_ops) <to_get_section_table>: Use
10843 TARGET_DEFAULT_RETURN.
10844
770234d3
TT
108452014-02-19 Tom Tromey <tromey@redhat.com>
10846
10847 * target-delegates.c: Rebuild.
10848 * target.c (target_pid_to_str): Unconditionally delegate.
10849 (init_dummy_target): Don't initialize to_pid_to_str.
10850 (default_pid_to_str): Rename from dummy_pid_to_str.
10851 * target.h (struct target_ops) <to_pid_to_str>: Use
10852 TARGET_DEFAULT_FUNC.
10853
09b0dc2b
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_find_new_threads): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_find_new_threads>: Use
10859 TARGET_DEFAULT_RETURN.
10860
7d4f8efa
TT
108612014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target-delegates.c: Rebuild.
10864 * target.c (target_program_signals): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_program_signals>: Use
10866 TARGET_DEFAULT_IGNORE.
10867
035cad7f
TT
108682014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target-delegates.c: Rebuild.
10871 * target.c (target_pass_signals): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_pass_signals>: Use
10873 TARGET_DEFAULT_IGNORE.
10874
8d657035
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target-delegates.c: Rebuild.
10878 * target.c (default_mourn_inferior): New function.
10879 (target_mourn_inferior): Unconditionally delegate.
10880 * target.h (struct target_ops) <to_mourn_inferior>: Use
10881 TARGET_DEFAULT_FUNC.
10882
098dba18
TT
108832014-02-19 Tom Tromey <tromey@redhat.com>
10884
10885 * target-delegates.c: Rebuild.
10886 * target.c (default_follow_fork): New function.
10887 (target_follow_fork): Unconditionally delegate.
10888 * target.h (struct target_ops) <to_follow_fork>: Use
10889 TARGET_DEFAULT_FUNC.
10890
423a4807
TT
108912014-02-19 Tom Tromey <tromey@redhat.com>
10892
10893 * target-delegates.c: Rebuild.
10894 * target.c (target_kill): Unconditionally delegate.
10895 * target.h (struct target_ops) <to_kill>: Use
10896 TARGET_DEFAULT_NORETURN.
10897
6c7e5e5c
TT
108982014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target-delegates.c: Rebuild.
10901 * target.c (target_masked_watch_num_registers): Unconditionally
10902 delegate.
10903 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10904 Use TARGET_DEFAULT_RETURN.
10905
8b1c364c
TT
109062014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target-delegates.c: Rebuild.
10909 * target.c (target_remove_mask_watchpoint): Unconditionally
10910 delegate.
10911 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10912 TARGET_DEFAULT_RETURN.
10913
cd4ae029
TT
109142014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target-delegates.c: Rebuild.
10917 * target.c (target_insert_mask_watchpoint): Unconditionally
10918 delegate.
10919 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10920 TARGET_DEFAULT_RETURN.
10921
a134316b
TT
109222014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target-delegates.c: Rebuild.
10925 * target.c (target_ranged_break_num_registers): Unconditionally
10926 delegate.
10927 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10928 Use TARGET_DEFAULT_RETURN.
10929
ad5989bd
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.c (target_fetch_registers): Unconditionally delegate.
10934 * target.h (struct target_ops) <to_fetch_registers>: Use
10935 TARGET_DEFAULT_NORETURN.
10936
46ee7e8d
TT
109372014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target-delegates.c: Rebuild.
10940 * target.c (update_current_target): Don't inherit or default
10941 to_stop.
10942 * target.h (struct target_ops) <to_stop>: Use
10943 TARGET_DEFAULT_IGNORE.
10944
843f59ed
TT
109452014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target-delegates.c: Rebuild.
10948 * target.c (update_current_target): Don't inherit or default
10949 to_can_run_breakpoint_commands.
10950 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10951 Use TARGET_DEFAULT_RETURN.
10952
ccfde2a0
TT
109532014-02-19 Tom Tromey <tromey@redhat.com>
10954
10955 * target-delegates.c: Rebuild.
10956 * target.c (update_current_target): Don't inherit or default
10957 to_supports_evaluation_of_breakpoint_conditions.
10958 * target.h (struct target_ops)
10959 <to_supports_evaluation_of_breakpoint_conditions>: Use
10960 TARGET_DEFAULT_RETURN.
10961
0de91722
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_augmented_libraries_svr4_read.
10967 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10968 Use TARGET_DEFAULT_RETURN.
10969
9a7d8b48
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_use_agent.
10975 * target.h (struct target_ops) <to_can_use_agent>: Use
10976 TARGET_DEFAULT_RETURN.
10977
d9db5b21
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_use_agent.
10983 * target.h (struct target_ops) <to_use_agent>: Use
10984 TARGET_DEFAULT_NORETURN.
10985
92155eeb
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target-delegates.c: Rebuild.
10989 * target.c (update_current_target): Don't inherit or default
10990 to_traceframe_info.
10991 (return_null): Remove.
10992 * target.h (struct target_ops) <to_traceframe_info>: Use
10993 TARGET_DEFAULT_RETURN.
10994
d6522a22
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_static_tracepoint_markers_by_strid.
11000 * target.h (struct target_ops)
11001 <to_static_tracepoint_markers_by_strid>: Use
11002 TARGET_DEFAULT_NORETURN.
11003
4c3e4425
TT
110042014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target-delegates.c: Rebuild.
11007 * target.c (update_current_target): Don't inherit or default
11008 to_static_tracepoint_marker_at.
11009 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11010 Use TARGET_DEFAULT_RETURN.
11011
dcd6917f
TT
110122014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target-delegates.c: Rebuild.
11015 * target.c (update_current_target): Don't inherit or default
11016 to_set_permissions.
11017 * target.h (struct target_ops) <to_set_permissions>: Use
11018 TARGET_DEFAULT_IGNORE.
11019
22bcceee
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_get_tib_address.
11025 * target.h (struct target_ops) <to_get_tib_address>: Use
11026 TARGET_DEFAULT_NORETURN.
11027
8586ccaa
TT
110282014-02-19 Tom Tromey <tromey@redhat.com>
11029
11030 * target-delegates.c: Rebuild.
11031 * target.c (update_current_target): Don't inherit or default
11032 to_set_trace_notes.
11033 * target.h (struct target_ops) <to_set_trace_notes>: Use
11034 TARGET_DEFAULT_RETURN.
11035
91df8d1d
TT
110362014-02-19 Tom Tromey <tromey@redhat.com>
11037
11038 * target-delegates.c: Rebuild.
11039 * target.c (update_current_target): Don't initialize
11040 to_set_trace_buffer_size.
11041 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11042 TARGET_DEFAULT_IGNORE.
11043
8d526939
TT
110442014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target-delegates.c: Rebuild.
11047 * target.c (update_current_target): Don't inherit or default
11048 to_set_circular_trace_buffer.
11049 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11050 TARGET_DEFAULT_IGNORE.
11051
0bcfeddf
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target-delegates.c: Rebuild.
11055 * target.c (update_current_target): Don't inherit or default
11056 to_set_disconnected_tracing.
11057 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11058 TARGET_DEFAULT_IGNORE.
11059
9249843f
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_get_min_fast_tracepoint_insn_len.
11065 (return_minus_one): Remove.
11066 * target.h (struct target_ops)
11067 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11068
ace92e7d
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_get_raw_trace_data.
11074 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11075 TARGET_DEFAULT_NORETURN.
11076
08120467
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_upload_trace_state_variables.
11082 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11083 Use TARGET_DEFAULT_RETURN.
11084
1e949b00
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_upload_tracepoints.
11090 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11091 TARGET_DEFAULT_RETURN.
11092
a2e6c147
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_save_trace_data.
11098 * target.h (struct target_ops) <to_save_trace_data>: Use
11099 TARGET_DEFAULT_NORETURN.
11100
959bcd0b
TT
111012014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't inherit or default
11105 to_get_trace_state_variable_value.
11106 * target.h (struct target_ops)
11107 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11108
afc94e66
TT
111092014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * target-delegates.c: Rebuild.
11112 * target.c (update_current_target): Don't inherit or default
11113 to_trace_find.
11114 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11115
e51c07ea
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target-delegates.c: Rebuild.
11119 * target.c (update_current_target): Don't inherit or default
11120 to_trace_stop.
11121 * target.h (struct target_ops) <to_trace_stop>: Use
11122 TARGET_DEFAULT_NORETURN.
11123
6fea14cd
TT
111242014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target-delegates.c: Rebuild.
11127 * target.c (update_current_target): Don't inherit or default
11128 to_get_tracepoint_status.
11129 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11130 TARGET_DEFAULT_NORETURN.
11131
4072d4ff
TT
111322014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target-delegates.c: Rebuild.
11135 * target.c (update_current_target): Don't inherit or default
11136 to_get_trace_status.
11137 * target.h (struct target_ops) <to_get_trace_status>: Use
11138 TARGET_DEFAULT_RETURN.
11139
25da2e80
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target-delegates.c: Rebuild.
11143 * target.c (update_current_target): Don't inherit or default
11144 to_trace_start.
11145 * target.h (struct target_ops) <to_trace_start>: Use
11146 TARGET_DEFAULT_NORETURN.
11147
86dd181d
TT
111482014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target-delegates.c: Rebuild.
11151 * target.c (update_current_target): Don't inherit or default
11152 to_trace_set_readonly_regions.
11153 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11154 Use TARGET_DEFAULT_NORETURN.
11155
05c41993
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (update_current_target): Don't inherit or default
11160 to_disable_tracepoint.
11161 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11162 TARGET_DEFAULT_NORETURN.
11163
151f70f1
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (update_current_target): Don't inherit or default
11168 to_enable_tracepoint.
11169 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11170 TARGET_DEFAULT_NORETURN.
11171
94eb98b9
TT
111722014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (update_current_target): Don't inherit or default
11176 to_download_trace_state_variable.
11177 * target.h (struct target_ops) <to_download_trace_state_variable>:
11178 Use TARGET_DEFAULT_NORETURN.
11179
719acc4a
TT
111802014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target-delegates.c: Rebuild.
11183 * target.c (update_current_target): Don't inherit or default
11184 to_can_download_tracepoint.
11185 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11186 TARGET_DEFAULT_RETURN.
11187
9a980a22
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (update_current_target): Don't inherit or default
11192 to_download_tracepoint.
11193 * target.h (struct target_ops) <to_download_tracepoint>: Use
11194 TARGET_DEFAULT_NORETURN.
11195
5536135b
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target-delegates.c: Rebuild.
11199 * target.c (update_current_target): Don't inherit or default
11200 to_trace_init.
11201 * target.h (struct target_ops) <to_trace_init>: Use
11202 TARGET_DEFAULT_RETURN.
11203
9409d39e
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (update_current_target): Don't inherit or default
11208 to_supports_string_tracing.
11209 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11210 TARGET_DEFAULT_RETURN.
11211
aab1b22d
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target-delegates.c: Rebuild.
11215 * target.c (update_current_target): Don't inherit or default
11216 to_supports_enable_disable_tracepoint.
11217 * target.h (struct target_ops)
11218 <to_supports_enable_disable_tracepoint>: Use
11219 TARGET_DEFAULT_RETURN.
11220
a7304748
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_supports_multi_process.
11226 * target.h (struct target_ops) <to_supports_multi_process>: Use
11227 TARGET_DEFAULT_RETURN.
11228
4229b31d
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_get_ada_task_ptid.
11234 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11235 TARGET_DEFAULT_FUNC.
11236
43eba180
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_thread_architecture.
11242 * target.h (struct target_ops) <to_thread_architecture>: Use
11243 TARGET_DEFAULT_FUNC.
11244
fe31bf5b
TT
112452014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target-delegates.c: Rebuild.
11248 * target.c (update_current_target): Don't inherit or default
11249 to_execution_direction.
11250 * target.h (struct target_ops) <to_execution_direction>: Use
11251 TARGET_DEFAULT_FUNC.
11252
53e1cfc7
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11257 to_can_execute_reverse.
11258 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11259 TARGET_DEFAULT_RETURN.
11260 (target_can_execute_reverse): Unconditionally delegate.
11261
9bb9d61d
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_goto_bookmark.
11267 (dummy_goto_bookmark): Remove.
11268 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11269 * target.h (struct target_ops) <to_goto_bookmark>: Use
11270 TARGET_DEFAULT_NORETURN.
11271
3dbafbbb
TT
112722014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11276 to_get_bookmark.
11277 (dummy_get_bookmark): Remove.
11278 (init_dummy_target): Don't inherit or default to_get_bookmark.
11279 * target.h (struct target_ops) <to_get_bookmark>: Use
11280 TARGET_DEFAULT_NORETURN
11281
16f796b1
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target-delegates.c: Rebuild.
11285 * target.c (update_current_target): Don't inherit or default
11286 to_make_corefile_notes.
11287 (init_dummy_target): Don't initialize to_make_corefile_notes.
11288 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11289 TARGET_DEFAULT_FUNC.
11290
0b5a2719
TT
112912014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_find_memory_regions.
11296 (init_dummy_target): Don't initialize to_find_memory_regions.
11297 * target.h (struct target_ops) <to_find_memory_regions>: Use
11298 TARGET_DEFAULT_FUNC.
11299
d9cb0195
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11304 to_log_command.
11305 * target.h (struct target_ops) <to_log_command>: Use
11306 TARGET_DEFAULT_IGNORE.
11307 (target_log_command): Unconditionally delegate.
11308
830ca330
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_pid_to_exec_file.
11314 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11315 TARGET_DEFAULT_RETURN.
11316
825828fc
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target-delegates.c: Rebuild.
11320 * target.c (update_current_target): Don't inherit or default
11321 to_thread_name.
11322 (target_thread_name): Unconditionally delegate.
11323 * target.h (struct target_ops) <to_thread_name>: Use
11324 TARGET_DEFAULT_RETURN.
11325
4a7e6dda
TT
113262014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target-delegates.c: Rebuild.
11329 * target.c (update_current_target): Don't inherit or default
11330 to_extra_thread_info.
11331 * target.h (struct target_ops) <to_extra_thread_info>: Use
11332 TARGET_DEFAULT_RETURN.
11333
0db88c1d
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_has_exited.
11339 * target.h (struct target_ops) <to_has_exited>: Use
11340 TARGET_DEFAULT_RETURN..
11341
6a9fa051
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_set_syscall_catchpoint.
11347 (return_one): Remove.
11348 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11349 TARGET_DEFAULT_RETURN.
11350
62f64d7a
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_insert_exec_catchpoint.
11356 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11357 TARGET_DEFAULT_RETURN.
11358
cda0f38c
TT
113592014-01-08 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_insert_exec_catchpoint.
11364 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11365 TARGET_DEFAULT_RETURN.
11366
95c3375e
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_remove_vfork_catchpoint.
11372 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11373 TARGET_DEFAULT_RETURN.
11374
7e18a8dc
TT
113752014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_insert_vfork_catchpoint.
11380 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11381 TARGET_DEFAULT_RETURN.
11382
e1a21fb7
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't inherit or default
11387 to_remove_fork_catchpoint.
11388 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11389 TARGET_DEFAULT_RETURN.
11390
5958ebeb
TT
113912014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_insert_fork_catchpoint.
11396 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11397 TARGET_DEFAULT_RETURN.
11398
340ba4bf
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_post_startup_inferior.
11404 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11405 TARGET_DEFAULT_IGNORE.
11406
7634da87
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_load.
11412 * target.h (struct target_ops) <to_load>: Use
11413 TARGET_DEFAULT_NORETURN.
11414
e19e919f
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (update_current_target): Don't inherit or default
11419 to_terminal_info.
11420 * target.h (struct target_ops) <to_terminal_info>: Use
11421 TARGET_DEFAULT_FUNC.
11422
c6ea8f79
TT
114232014-02-19 Tom Tromey <tromey@redhat.com>
11424
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_terminal_save_ours.
11428 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11429 TARGET_DEFAULT_IGNORE.
11430
e4a733f1
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (update_current_target): Don't inherit or default
11435 to_terminal_ours.
11436 * target.h (struct target_ops) <to_terminal_ours>: Use
11437 TARGET_DEFAULT_IGNORE.
11438
74fcbef9
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_terminal_ours_for_output.
11444 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11445 TARGET_DEFAULT_IGNORE.
11446
ddeaacc9
TT
114472014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_terminal_inferior.
11452 * target.h (struct target_ops) <to_terminal_inferior>: Use
11453 TARGET_DEFAULT_IGNORE.
11454
0343661d
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11459 to_terminal_init.
11460 * target.h (struct target_ops) <to_terminal_init>: Use
11461 TARGET_DEFAULT_IGNORE.
11462
77cdffe9
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_can_accel_watchpoint_condition.
11468 * target.h (struct target_ops)
11469 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11470
d03655e4
TT
114712014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_region_ok_for_hw_watchpoint.
11476 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11477 Use TARGET_DEFAULT_FUNC.
11478
65f160a9
TT
114792014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_watchpoint_addr_within_range.
11484 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11485 Use TARGET_DEFAULT_FUNC.
11486
61dd109f
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_remove_watchpoint.
11492 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11493 TARGET_DEFAULT_NORETURN.
11494
016facd4
TT
114952014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_insert_watchpoint.
11500 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11501 TARGET_DEFAULT_RETURN.
11502
418dabac
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_remove_hw_breakpoint.
11508 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11509 TARGET_DEFAULT_RETURN.
11510
61b371f9
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_insert_hw_breakpoint.
11516 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11517 TARGET_DEFAULT_RETURN.
11518
52b51d06
TT
115192014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_can_use_hw_breakpoint.
11524 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11525 TARGET_DEFAULT_RETURN.
11526
f86e59b2
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_files_info.
11532 * target.h (struct target_ops) <to_files_info>: Use
11533 TARGET_DEFAULT_IGNORE.
11534
6c628163
TT
115352014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_store.
11540 * target.h (struct target_ops) <to_store>: Use
11541 TARGET_DEFAULT_NORETURN.
11542
bebd3233
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_post_attach.
11548 * target.h (struct target_ops) <to_post_attach>: Use
11549 TARGET_DEFAULT_IGNORE.
11550
a53f3625
TT
115512014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_rcmd.
11556 (default_rcmd): New function.
11557 (do_monitor_command): Unconditionally delegate.
11558 * target.h (struct target_ops) <to_rmcd>: Use
11559 TARGET_DEFAULT_FUNC.
11560
e9a29200
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (init_dummy_target): Don't initialize to_attach.
11565 (target_attach): Unconditionally delegate.
11566 * target.h (struct target_ops) <to_attach>: Use
11567 TARGET_DEFAULT_FUNC.
11568
09da0d0a
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target-delegates.c: Rebuild.
11572 * target.c (target_detach): Unconditionally delegate.
11573 (init_dummy_target): Don't initialize to_detach.
11574 * target.h (struct target_ops) <to_detach>: Use
11575 TARGET_DEFAULT_IGNORE.
11576
5436ff03
TT
115772014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11580 Add argument.
11581 (target_augmented_libraries_svr4_read): Add argument.
11582 * target.c (update_current_target): Update.
11583 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11584 argument.
11585
f0d960ea
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target.h (struct target_ops) <to_call_history_range>: Add
11589 argument.
11590 * target.c (target_call_history_range): Add argument.
11591 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11592 argument.
11593 (record_btrace_call_history_from): Update.
11594
ec0aea04
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target.h (struct target_ops) <to_call_history_from>: Add
11598 argument.
11599 * target.c (target_call_history_from): Add argument.
11600 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11601 argument.
11602
5df2fcba
TT
116032014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target.h (struct target_ops) <to_call_history>: Add argument.
11606 * target.c (target_call_history): Add argument.
11607 * record-btrace.c (record_btrace_call_history): Add 'self'
11608 argument.
11609
4e99c6b7
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target.h (struct target_ops) <to_insn_history_range>: Add
11613 argument.
11614 * target.c (target_insn_history_range): Add argument.
11615 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11616 argument.
11617 (record_btrace_insn_history_from): Update.
11618
9abc3ff3
TT
116192014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target.h (struct target_ops) <to_insn_history_from>: Add
11622 argument.
11623 * target.c (target_insn_history_from): Add argument.
11624 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11625 argument.
11626
7a6c5609
TT
116272014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target.h (struct target_ops) <to_insn_history>: Add argument.
11630 * target.c (target_insn_history): Add argument.
11631 * record-btrace.c (record_btrace_insn_history): Add 'self'
11632 argument.
11633
606183ac
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target.h (struct target_ops) <to_goto_record>: Add argument.
11637 * target.c (target_goto_record): Add argument.
11638 * record-full.c (record_full_goto): Add 'self' argument.
11639 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11640
307a1b91
TT
116412014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11644 * target.c (target_goto_record_end): Add argument.
11645 * record-full.c (record_full_goto_end): Add 'self' argument.
11646 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11647
08475817
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target.h (struct target_ops) <to_goto_record_begin>: Add
11651 argument.
11652 * target.c (target_goto_record_begin): Add argument.
11653 * record-full.c (record_full_goto_begin): Add 'self' argument.
11654 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11655 argument.
11656
1c63c994
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_record_is_replaying>: Add
11660 argument.
11661 * target.c (target_record_is_replaying): Add argument.
11662 * record-full.c (record_full_is_replaying): Add 'self' argument.
11663 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11664 argument.
11665 (record_btrace_xfer_partial, record_btrace_store_registers)
11666 (record_btrace_prepare_to_store, record_btrace_resume)
11667 (record_btrace_wait, record_btrace_decr_pc_after_break)
11668 (record_btrace_find_new_threads, record_btrace_thread_alive):
11669 Update.
11670
d1b55219
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target.h (struct target_ops) <to_delete_record>: Add argument.
11674 * target.c (target_delete_record): Add argument.
11675 * record-full.c (record_full_delete): Add 'self' argument.
11676
1390f529
TT
116772014-02-19 Tom Tromey <tromey@redhat.com>
11678
11679 * target.h (struct target_ops) <to_save_record>: Add argument.
11680 * target.c (target_save_record): Add argument.
11681 * record-full.c (record_full_save): Add 'self' argument.
11682 (record_full_save): Add 'self' argument.
11683
630d6a4a
TT
116842014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target.h (struct target_ops) <to_info_record>: Add argument.
11687 * target.c (target_info_record): Add argument.
11688 * record.c (info_record_command): Add argument.
11689 * record-full.c (record_full_info): Add 'self' argument.
11690 * record-btrace.c (record_btrace_info): Add 'self' argument.
11691
c6cd7c02
TT
116922014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11695 * target.c (target_stop_recording): Add argument.
11696 * record.c (record_stop): Add argument.
11697 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11698 argument.
11699
39c49f83
TT
117002014-02-19 Tom Tromey <tromey@redhat.com>
11701
11702 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11703 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11704 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11705 argument.
11706 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11707 (_initialize_amd64_linux_nat): Use it.
11708 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11709 (_initialize_i386_linux_nat): Use it.
11710
1777056d
TT
117112014-02-19 Tom Tromey <tromey@redhat.com>
11712
11713 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11714 * target.c (target_teardown_btrace): Add argument.
11715 * remote.c (remote_teardown_btrace): Add 'self' argument.
11716 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11717 argument.
11718 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11719 argument.
11720
25e95349
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11724 * target.c (target_disable_btrace): Add argument.
11725 * remote.c (remote_disable_btrace): Add 'self' argument.
11726 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11727 argument.
11728 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11729 argument.
11730
e3c49f88
TT
117312014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11734 * target.c (target_enable_btrace): Add argument.
11735 * remote.c (remote_enable_btrace): Add 'self' argument.
11736 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11737 argument.
11738 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11739 argument.
11740
fe38f897
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11744 (target_can_use_agent): Add argument.
11745 * target.c (update_current_target): Update.
11746 * remote.c (remote_can_use_agent): Add 'self' argument.
11747 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11748
2c152180
TT
117492014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target.h (struct target_ops) <to_use_agent>: Add argument.
11752 (target_use_agent): Add argument.
11753 * target.c (update_current_target): Update.
11754 * remote.c (remote_use_agent): Add 'self' argument.
11755 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11756
a893e81f
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11760 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11761 (target_traceframe_info): Add argument.
11762 * target.c (update_current_target): Update.
11763 * remote.c (remote_traceframe_info): Add 'self' argument.
11764 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11765
c686c57f
TT
117662014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target.h (target_static_tracepoint_markers_by_strid): Add
11769 argument.
11770 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11771 'self' argument.
11772 * target.c (update_current_target): Update.
11773 * remote.c (struct target_ops)
11774 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11775 * linux-nat.c (struct target_ops)
11776 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11777
61fc905d
TT
117782014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11781 Add argument.
11782 (target_static_tracepoint_marker_at): Add argument.
11783 * target.c (update_current_target): Update.
11784 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11785 argument.
11786
c378d69d
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11790 (target_set_permissions): Add argument.
11791 * target.c (update_current_target): Update.
11792 * remote.c (remote_set_permissions): Add 'self' argument.
11793 (remote_start_remote): Update.
11794
bd7ae0f5
TT
117952014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11798 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11799 (target_get_tib_address): Add argument.
11800 * target.c (update_current_target): Update.
11801 * remote.c (remote_get_tib_address): Add 'self' argument.
11802
d9e68a2c
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11806 (target_set_trace_notes): Add argument.
11807 * target.c (update_current_target): Update.
11808 * remote.c (remote_set_trace_notes): Add 'self' argument.
11809
4da384be
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11813 argument.
11814 (target_set_trace_buffer_size): Add argument.
11815 * target.c (update_current_target): Update.
11816 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11817
736d5b1f
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11821 argument.
11822 (target_set_circular_trace_buffer): Add argument.
11823 * target.c (update_current_target): Update.
11824 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11825 argument.
11826
37b25738
TT
118272014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11830 argument.
11831 (target_set_disconnected_tracing): Add argument.
11832 * target.c (update_current_target): Update.
11833 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11834
0e67620a
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target.h (struct target_ops)
11838 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11839 (target_get_min_fast_tracepoint_insn_len): Add argument.
11840 * target.c (update_current_target): Update.
11841 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11842 argument.
11843
88ee6f45
TT
118442014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11847 argument.
11848 (target_get_raw_trace_data): Add argument.
11849 * target.c (update_current_target): Update.
11850 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11851
181e3713
TT
118522014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11855 Add argument.
11856 (target_upload_trace_state_variables): Add argument.
11857 * target.c (update_current_target): Update.
11858 * remote.c (remote_upload_trace_state_variables): Add 'self'
11859 argument.
11860 (remote_start_remote): Update.
11861
ab6617cc
TT
118622014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11865 argument.
11866 (target_upload_tracepoints): Add argument.
11867 * target.c (update_current_target): Update.
11868 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11869 (remote_start_remote): Update.
11870
dc3decaf
TT
118712014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11874 (target_save_trace_data): Add argument.
11875 * target.c (update_current_target): Update.
11876 * remote.c (remote_save_trace_data): Add 'self' argument.
11877
4011015b
TT
118782014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11881 argument.
11882 * target.h (struct target_ops)
11883 <to_get_trace_state_variable_value>: Add argument.
11884 (target_get_trace_state_variable_value): Add argument.
11885 * target.c (update_current_target): Update.
11886 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11887 argument.
11888 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11889
bd4c6793
TT
118902014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11893 * target.h (struct target_ops) <to_trace_find>: Add argument.
11894 (target_trace_find): Add argument.
11895 * target.c (update_current_target): Update.
11896 * remote.c (remote_trace_find): Add 'self' argument.
11897 * ctf.c (ctf_trace_find): Add 'self' argument.
11898
74499f1b
TT
118992014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11902 (target_trace_stop): Add argument.
11903 * target.c (update_current_target): Update.
11904 * remote.c (remote_trace_stop): Add 'self' argument.
11905
db90e85c
TT
119062014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11909 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11910 argument.
11911 (target_get_tracepoint_status): Add argument.
11912 * target.c (update_current_target): Update.
11913 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11914
8bd200f1
TT
119152014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11918 * target.h (struct target_ops) <to_get_trace_status>: Add
11919 argument.
11920 (target_get_trace_status): Add argument.
11921 * target.c (update_current_target): Update.
11922 * remote.c (remote_get_trace_status): Add 'self' argument.
11923 (remote_start_remote, remote_can_download_tracepoint): Update.
11924 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11925
e2d1aae3
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (struct target_ops) <to_trace_start>: Add argument.
11929 (target_trace_start): Add argument.
11930 * target.c (update_current_target): Update.
11931 * remote.c (remote_trace_start): Add 'self' argument.
11932
583f9a86
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11936 Add argument.
11937 (target_trace_set_readonly_regions): Add argument.
11938 * target.c (update_current_target): Update.
11939 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11940 argument.
11941
780b049c
TT
119422014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11945 argument.
11946 (target_disable_tracepoint): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11949
46670d57
TT
119502014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11953 argument.
11954 (target_enable_tracepoint): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11957
559d2b81
TT
119582014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_download_trace_state_variable>:
11961 Add argument.
11962 (target_download_trace_state_variable): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_download_trace_state_variable): Add 'self'
11965 argument.
11966
a52a8357
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11970 argument.
11971 (target_can_download_tracepoint): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11974
548f7808
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (struct target_ops) <to_download_tracepoint>: Add
11978 argument.
11979 (target_download_tracepoint): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_download_tracepoint): Add 'self' argument.
11982
ecae04e1
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops) <to_trace_init>: Add argument.
11986 (target_trace_init): Add argument.
11987 * target.c (update_current_target): Update.
11988 * remote.c (remote_trace_init): Add 'self' argument.
11989
fab5aa7c
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11993 * target.c (target_fileio_readlink): Add argument.
11994 * remote.c (remote_hostio_readlink): Add 'self' argument.
11995 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11996
dbbca37d
TT
119972014-02-19 Tom Tromey <tromey@redhat.com>
11998
11999 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12000 * target.c (target_fileio_unlink): Add argument.
12001 * remote.c (remote_hostio_unlink): Add 'self' argument.
12002 (remote_file_delete): Update.
12003 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12004
df39ea25
TT
120052014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12008 * target.c (target_fileio_close): Add argument.
12009 * remote.c (remote_hostio_close): Add 'self' argument.
12010 (remote_hostio_close_cleanup): Update.
12011 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12012 Update.
12013 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12014
a3be983c
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12018 * target.c (target_fileio_pread): Add argument.
12019 * remote.c (remote_hostio_pread): Add 'self' argument.
12020 (remote_bfd_iovec_pread, remote_file_get): Update.
12021 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12022
0d866f62
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12026 * target.c (target_fileio_pwrite): Add argument.
12027 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12028 (remote_file_put): Update.
12029 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12030
cd897586
TT
120312014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12034 * target.c (target_fileio_open): Add argument.
12035 * remote.c (remote_hostio_open): Add 'self' argument.
12036 (remote_bfd_iovec_open): Add 'self' argument.
12037 (remote_file_put): Add 'self' argument.
12038 (remote_file_get): Add 'self' argument.
12039 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12040
78eff0ec
TT
120412014-02-19 Tom Tromey <tromey@redhat.com>
12042
12043 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12044 Add argument.
12045 (target_can_run_breakpoint_commands): Add argument.
12046 * target.c (update_current_target): Update.
12047 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12048 argument.
12049 (remote_insert_breakpoint): Add 'self' argument.
12050 (remote_insert_hw_breakpoint): Add 'self' argument.
12051 (remote_can_run_breakpoint_commands): Add 'self' argument.
12052
efcc2da7
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target.h (struct target_ops)
12056 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12057 (target_supports_evaluation_of_breakpoint_conditions): Add
12058 argument.
12059 * target.c (update_current_target): Update.
12060 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12061 argument.
12062 (remote_insert_breakpoint): Add 'self' argument.
12063 (remote_insert_hw_breakpoint): Add 'self' argument.
12064 (remote_supports_cond_breakpoints): Add 'self' argument.
12065
6de37a3a
TT
120662014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12069 argument.
12070 (target_supports_string_tracing): Add argument.
12071 * target.c (update_current_target): Update.
12072 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12073
2bfc0540
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops)
12077 <to_supports_disable_randomization>: Add argument.
12078 * target.c (find_default_supports_disable_randomization): Add
12079 argument.
12080 (target_supports_disable_randomization): Add argument.
12081 (find_default_supports_disable_randomization): Add 'self'
12082 argument.
12083 * remote.c (extended_remote_supports_disable_randomization): Add
12084 'self' argument.
12085 (remote_supports_disable_randomization): Add 'self' argument.
12086 (extended_remote_create_inferior): Update.
12087 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12088 'self' argument.
12089
7d178d6a
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops)
12093 <to_supports_enable_disable_tracepoint>: Add argument.
12094 (target_supports_enable_disable_tracepoint): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12097 argument.
12098
86ce2668
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (struct target_ops) <to_supports_multi_process>: Add
12102 argument.
12103 (target_supports_multi_process): Add argument.
12104 * target.c (update_current_target): Update.
12105 * remote.c (remote_supports_multi_process): Add 'self' argument.
12106 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12107 argument.
12108 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12109 argument.
12110
4c612759
TT
121112014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target.h (struct target_ops) <to_execution_direction>: Add
12114 argument.
12115 (target_execution_direction): Add argument.
12116 * target.c (default_execution_direction): Add 'self' argument.
12117 * record-full.c (record_full_execution_direction): Add 'self'
12118 argument.
12119
19db3e69
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12123 argument.
12124 (target_can_execute_reverse): Add argument.
12125 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12126 * record-full.c (record_full_can_execute_reverse): Add 'self'
12127 argument.
12128 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12129 argument.
12130
1e6b91a4
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12134 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12135 argument.
12136 (target_get_ada_task_ptid): Add argument.
12137 * target.c (update_current_target): Update.
12138 (default_get_ada_task_ptid): Add 'self' argument.
12139 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12140 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12141 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12142 argument.
12143 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12144 argument.
12145 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12146 argument.
12147 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12148 argument.
12149 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12150 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12151 argument.
12152
3c80fb48
TT
121532014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12156 (target_goto_bookmark): Add argument.
12157 * target.c (dummy_goto_bookmark): Add 'self' argument.
12158 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12159
dd0e2830
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12163 (target_get_bookmark): Add argument.
12164 * target.c (dummy_get_bookmark): Add 'self' argument.
12165 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12166
fc6691b2
TT
121672014-02-19 Tom Tromey <tromey@redhat.com>
12168
12169 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12170 argument.
12171 (target_make_corefile_notes): Add argument.
12172 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12173 * procfs.c (procfs_make_note_section): Add 'self' argument.
12174 (procfs_make_note_section): Add 'self' argument.
12175 (procfs_make_note_section): Add 'self' argument.
12176 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12177 argument.
12178 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12179 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12180 * exec.c (exec_make_note_section): Add 'self' argument.
12181 (exec_make_note_section): Add 'self' argument.
12182
2e73927c
TT
121832014-02-19 Tom Tromey <tromey@redhat.com>
12184
12185 * target.h (struct target_ops) <to_find_memory_regions>: Add
12186 argument.
12187 (target_find_memory_regions): Add argument.
12188 * target.c (dummy_find_memory_regions): Add 'self' argument.
12189 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12190 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12191 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12192 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12193 * exec. (exec_do_find_memory_regions): New global.
12194 (exec_set_find_memory_regions): Rewrite.
12195 (exec_find_memory_regions): New function.
12196 (init_exec_ops): Use exec_find_memory_regions.
12197
2a9a2795
TT
121982014-02-19 Tom Tromey <tromey@redhat.com>
12199
12200 * target.h (struct target_ops) <to_supports_non_stop>: Add
12201 argument.
12202 * target.c (find_default_supports_non_stop): Add argument.
12203 (target_supports_non_stop): Add argument.
12204 (find_default_supports_non_stop): Add 'self' argument.
12205 * remote.c (remote_supports_non_stop): Add 'self' argument.
12206 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12207
4ab76ea3
TT
122082014-02-19 Tom Tromey <tromey@redhat.com>
12209
12210 * target.h (struct target_ops) <to_log_command>: Add argument.
12211 (target_log_command): Add argument.
12212 * serial.h (serial_log_command): Add 'self' argument.
12213 * serial.c (serial_log_command): Add 'self' argument.
12214
8dd27370
TT
122152014-02-19 Tom Tromey <tromey@redhat.com>
12216
12217 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12218 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12219 argument.
12220 (target_pid_to_exec_file): Add argument.
12221 * target.c (debug_to_pid_to_exec_file): Add argument.
12222 (update_current_target): Update.
12223 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12224 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12225 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12226 (linux_handle_extended_wait): Update.
12227 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12228 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12229 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12230 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12231
1aac633b
TT
122322014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target.h (struct target_ops) <to_rcmd>: Add argument.
12235 (target_rcmd): Add argument.
12236 * target.c (debug_to_rcmd): Add argument.
12237 (update_current_target, do_monitor_command): Update.
12238 * remote.c (remote_rcmd): Add 'self' argument.
12239 * monitor.c (monitor_rcmd): Add 'self' argument.
12240
1eab8a48
TT
122412014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * windows-nat.c (windows_stop): Add 'self' argument.
12244 * target.h (struct target_ops) <to_stop>: Add argument.
12245 * target.c (target_stop): Add argument.
12246 (debug_to_stop): Add argument.
12247 (update_current_target): Update.
12248 * remote.c (remote_stop): Add 'self' argument.
12249 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12250 (gdbsim_cntrl_c): Update.
12251 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12252 * procfs.c (procfs_stop): Add 'self' argument.
12253 * nto-procfs.c (procfs_stop): Add 'self' argument.
12254 * monitor.c (monitor_stop): Add 'self' argument.
12255 (monitor_open): Update.
12256 * linux-nat.c (linux_nat_stop): Add argument.
12257 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12258 * gnu-nat.c (gnu_stop): Add 'self' argument.
12259 * darwin-nat.c (darwin_stop): Add 'self' argument.
12260
503a628d
TT
122612014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target.h (struct target_ops) <to_thread_name>: Add argument.
12264 * target.c (target_thread_name): Add argument.
12265 (update_current_target): Update.
12266 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12267
c15906d8
TT
122682014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target.h (struct target_ops) <to_extra_thread_info>: Add
12271 argument.
12272 (target_extra_thread_info): Add argument.
12273 * target.c (update_current_target): Update.
12274 * remote.c (remote_threads_extra_info): Add 'self' argument.
12275 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12276 argument.
12277 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12278 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12279 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12280 argument.
12281 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12282 argument.
12283 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12284 argument.
12285 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12286 argument.
12287
daf5e9b6
TT
122882014-02-19 Tom Tromey <tromey@redhat.com>
12289
12290 * target.h (struct target_ops) <to_program_signals>: Add argument.
12291 * target.c (target_program_signals): Add argument.
12292 * remote.c (remote_program_signals): Add 'self' argument.
12293
94bedb42
TT
122942014-02-19 Tom Tromey <tromey@redhat.com>
12295
12296 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12297 * target.c (target_pass_signals): Add argument.
12298 * remote.c (remote_pass_signals): Add 'self' argument.
12299 (remote_start_remote): Update.
12300 * procfs.c (procfs_pass_signals): Add 'self' argument.
12301 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12302 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12303 (linux_nat_create_inferior, linux_nat_attach): Update.
12304
da82bd6b
TT
123052014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * windows-nat.c (windows_can_run): Add 'self' argument.
12308 * target.h (struct target_ops) <to_can_run>: Add argument.
12309 (target_can_run): Add argument.
12310 * target.c (debug_to_can_run): Add argument.
12311 (update_current_target): Update.
12312 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12313 * inf-child.c (inf_child_can_run): Add 'self' argument.
12314 * go32-nat.c (go32_can_run): Add 'self' argument.
12315
d796e1d6
TT
123162014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target.h (struct target_ops) <to_has_exited>: Add argument.
12319 (target_has_exited): Add argument.
12320 * target.c (debug_to_has_exited): Add argument.
12321 (update_current_target): Update.
12322
ff214e67
TT
123232014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12326 argument.
12327 (target_set_syscall_catchpoint): Add argument.
12328 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12329 argument.
12330 * target.c (update_current_target): Update.
12331
758e29d2
TT
123322014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12335 argument.
12336 (target_remove_exec_catchpoint): Add argument.
12337 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12338 (update_current_target): Update.
12339 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12340 argument.
12341
ba025e51
TT
123422014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12345 argument.
12346 (target_insert_exec_catchpoint): Add argument.
12347 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12348 (update_current_target): Update.
12349 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12350 argument.
12351
e98cf0cd
TT
123522014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12355 argument.
12356 (target_remove_vfork_catchpoint): Add argument.
12357 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12358 (update_current_target): Update.
12359 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12360 argument.
12361
3ecc7da0
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12365 argument.
12366 (target_insert_vfork_catchpoint): Add argument.
12367 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12368 (update_current_target): Update.
12369 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12370 argument.
12371
973fc227
TT
123722014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12375 argument.
12376 (target_remove_fork_catchpoint): Add argument.
12377 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12378 (update_current_target): Update.
12379 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12380 argument.
12381
a863b201
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12385 argument.
12386 (target_insert_fork_catchpoint): Add argument.
12387 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12388 (update_current_target): Update.
12389 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12390 argument.
12391
2e97a79e
TT
123922014-02-19 Tom Tromey <tromey@redhat.com>
12393
12394 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12395 argument.
12396 (target_post_startup_inferior): Add argument.
12397 * target.c (debug_to_post_startup_inferior): Add argument.
12398 (update_current_target): Update.
12399 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12400 argument.
12401 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12402 argument.
12403 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12404 argument.
12405 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12406 argument.
12407 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12408 'self' argument.
12409 (super_post_startup_inferior): Likewise.
12410 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12411 'self' argument.
12412 (super_post_startup_inferior): Likewise.
12413 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12414 Add 'self' argument.
12415 (super_post_startup_inferior): Likewise.
12416
71a9f134
TT
124172014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (struct target_ops) <to_load>: Add argument.
12420 * target.c (target_load): Add argument.
12421 (debug_to_load): Add argument.
12422 (update_current_target): Update.
12423 * remote.c (remote_load): Add 'self' argument.
12424 * remote-sim.c (gdbsim_load): Add 'self' argument.
12425 * remote-mips.c (mips_load): Add 'self' argument.
12426 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12427 * monitor.c (monitor_load): Add 'self' argument.
12428 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12429
0a4f40a2
TT
124302014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12433 (target_terminal_info): Add argument.
12434 * target.c (debug_to_terminal_info): Add argument.
12435 (default_terminal_info): Likewise.
12436 * inflow.c (child_terminal_info): Add 'self' argument.
12437 * inferior.h (child_terminal_info): Add 'self' argument.
12438 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12439
ae3bd431
TT
124402014-02-19 Tom Tromey <tromey@redhat.com>
12441
12442 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12443 argument.
12444 (target_terminal_save_ours): Add argument.
12445 * target.c (debug_to_terminal_save_ours): Add argument.
12446 (update_current_target): Update.
12447 * inflow.c (terminal_save_ours): Add 'self' argument.
12448 * inferior.h (terminal_save_ours): Add 'self' argument.
12449
e3594fd1
TT
124502014-02-19 Tom Tromey <tromey@redhat.com>
12451
12452 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12453 (target_terminal_ours): Add argument.
12454 * target.c (debug_to_terminal_ours): Add argument.
12455 (update_current_target): Update.
12456 * remote.c (remote_terminal_ours): Add 'self' argument.
12457 (remote_close): Update.
12458 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12459 * inflow.c (terminal_ours): Add 'self' argument.
12460 * inferior.h (terminal_ours): Add 'self' argument.
12461 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12462
2e1e1a19
TT
124632014-02-19 Pedro Alves <palves@redhat.com>
12464 Tom Tromey <tromey@redhat.com>
12465
12466 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12467 argument.
12468 (target_terminal_ours_for_output): Add argument.
12469 * target.c (debug_to_terminal_ours_for_output): Add argument.
12470 (update_current_target): Update.
12471 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12472 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12473 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12474
d2f640d4
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_terminal_inferior>: Add
12478 argument.
12479 * target.c (target_terminal_inferior): Add argument.
12480 (update_current_target): Update.
12481 * remote.c (remote_terminal_inferior): Add 'self' argument.
12482 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12483 * inflow.c (terminal_inferior): Add 'self' argument.
12484 * inferior.h (terminal_inferior): Add 'self' argument.
12485 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12486 (go32_terminal_inferior): Add 'self' argument.
12487
c42bf286
TT
124882014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12491 (target_terminal_init): Add argument.
12492 * target.c (debug_to_terminal_init): Add argument.
12493 (update_current_target): Update.
12494 * inflow.c (terminal_init_inferior): Add 'self' argument.
12495 * inferior.h (terminal_init_inferior): Add 'self' argument.
12496 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12497 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12498
c3a5ff89
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops)
12502 <to_can_accel_watchpoint_condition>: Add argument.
12503 (target_can_accel_watchpoint_condition): Add argument.
12504 * target.c (debug_to_can_accel_watchpoint_condition): Add
12505 argument.
12506 (update_current_target): Update.
12507 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12508 'self' argument.
12509
31568a15
TT
125102014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12513 Add argument.
12514 (target_region_ok_for_hw_watchpoint): Add argument.
12515 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12516 (default_region_ok_for_hw_watchpoint): Add argument.
12517 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12518 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12519 argument.
12520 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12521 argument.
12522 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12523 argument.
12524 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12525 'self' argument.
12526 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12527 'self' argument.
12528 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12529 'self' argument.
12530 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12531 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12532 'self' argument.
12533 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12534 Add 'self' argument.
12535
7bb99c53
TT
125362014-02-19 Tom Tromey <tromey@redhat.com>
12537
12538 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12539 argument.
12540 (target_insert_watchpoint): Add argument.
12541 * target.c (debug_to_insert_watchpoint): Add argument.
12542 (update_current_target): Update.
12543 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12544 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12545 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12546 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12547 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12548 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12549 argument.
12550 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12551 (procfs_insert_hw_watchpoint): Add 'self' argument.
12552 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12553 argument.
12554 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12555 argument.
12556 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12557 argument.
12558 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12559 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12560 argument.
12561 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12562 'self' argument.
12563
11b5219a
TT
125642014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12567 argument.
12568 (target_remove_watchpoint): Add argument.
12569 * target.c (debug_to_remove_watchpoint): Add argument.
12570 (update_current_target): Update.
12571 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12572 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12573 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12574 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12575 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12576 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12577 argument.
12578 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12579 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12580 argument.
12581 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12582 argument.
12583 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12584 argument.
12585 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12586 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12587 argument.
12588 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12589 'self' argument.
12590
a64dc96c
TT
125912014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12594 argument.
12595 (target_remove_hw_breakpoint): Add argument.
12596 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12597 (update_current_target): Update.
12598 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12599 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12600 argument.
12601 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12602 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12603 argument.
12604 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12605 'self' argument.
12606
23a26771
TT
126072014-02-19 Tom Tromey <tromey@redhat.com>
12608
12609 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12610 argument.
12611 (target_insert_hw_breakpoint): Add argument.
12612 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12613 (update_current_target): Update.
12614 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12615 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12616 argument.
12617 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12618 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12619 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12620 argument.
12621 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12622 'self' argument.
12623
5461485a
TT
126242014-02-19 Tom Tromey <tromey@redhat.com>
12625
12626 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12627 argument.
12628 (target_can_use_hardware_watchpoint): Add argument.
12629 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12630 (update_current_target): Update.
12631 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12632 argument.
12633 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12634 argument.
12635 * remote.c (remote_check_watch_resources): Add 'self' argument.
12636 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12637 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12638 argument.
12639 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12640 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12641 argument.
12642 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12643 argument.
12644 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12645 argument.
12646 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12647 argument.
12648 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12649 argument.
12650 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12651 argument.
12652 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12653 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12654 argument.
12655 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12656 'self' argument.
12657
f045800c
TT
126582014-02-19 Tom Tromey <tromey@redhat.com>
12659
12660 * target.h (struct target_ops) <to_post_attach>: Add argument.
12661 (target_post_attach): Add argument.
12662 * target.c (debug_to_post_attach): Add argument.
12663 (update_current_target): Update.
12664 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12665 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12666 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12667 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12668 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12669
de90e03d
TT
126702014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * windows-nat.c (windows_close): Add 'self' argument.
12673 * tracepoint.c (tfile_close): Add 'self' argument.
12674 * target.h (struct target_ops) <to_close>: Add argument.
12675 * target.c (target_close): Add argument.
12676 (update_current_target): Update.
12677 * remote.c (remote_close): Add 'self' argument.
12678 * remote-sim.c (gdbsim_close): Add 'self' argument.
12679 * remote-mips.c (mips_close): Add 'self' argument.
12680 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12681 * record-full.c (record_full_close): Add 'self' argument.
12682 * record-btrace.c (record_btrace_close): Add 'self' argument.
12683 * monitor.h (monitor_close): Add 'self' argument.
12684 * monitor.c (monitor_close): Add 'self' argument.
12685 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12686 * linux-nat.c (linux_nat_close): Add argument.
12687 * go32-nat.c (go32_close): Add 'self' argument.
12688 * exec.c (exec_close_1): Add 'self' argument.
12689 * ctf.c (ctf_close): Add 'self' argument.
12690 * corelow.c (core_close): Add 'self' argument.
12691 (core_close_cleanup): Update.
12692 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12693 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12694
9dd130a0
TT
126952014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * remote.c (remote_load): New function.
12698 (init_remote_ops): Use it.
12699
46917d26
TT
127002014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12703 argument.
12704 * common/linux-btrace.h (linux_supports_btrace): Update.
12705 * remote.c (remote_supports_btrace): Add "self" argument.
12706 * target-delegates.c: Rebuild.
12707 * target.c (target_supports_btrace): Remove.
12708 * target.h (struct target_ops) <to_supports_btrace>: Add
12709 target_ops argument.
12710 (target_supports_btrace): New define.
12711
6b84065d
TT
127122014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * record-full.c (record_full_beneath_to_resume_ops)
12715 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12716 (record_full_beneath_to_wait)
12717 (record_full_beneath_to_store_registers_ops)
12718 (record_full_beneath_to_store_registers)
12719 (record_full_beneath_to_xfer_partial_ops)
12720 (record_full_beneath_to_xfer_partial)
12721 (record_full_beneath_to_insert_breakpoint_ops)
12722 (record_full_beneath_to_insert_breakpoint)
12723 (record_full_beneath_to_remove_breakpoint_ops)
12724 (record_full_beneath_to_remove_breakpoint)
12725 (record_full_beneath_to_stopped_by_watchpoint)
12726 (record_full_beneath_to_stopped_data_address)
12727 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12728 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12729 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12730 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12731 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12732 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12733 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12734 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12735 (record_full_resume, record_full_wait_1)
12736 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12737 (record_full_store_registers, record_full_xfer_partial)
12738 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12739 (record_full_async, record_full_core_xfer_partial): Use target
12740 delegation.
12741 * target-delegates.c: Rebuild.
12742 * target.c (current_xfer_partial): Remove.
12743 (update_current_target): Do not INHERIT or de_fault
12744 to_insert_breakpoint, to_remove_breakpoint,
12745 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12746 to_is_async_p, to_async. Do not set to_xfer_partial field.
12747 (default_xfer_partial): Simplify.
12748 (current_xfer_partial): Remove.
12749 (target_wait, target_resume): Simplify.
12750 (find_default_can_async_p, find_default_is_async_p): Update.
12751 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12752 to_xfer_partial, to_stopped_by_watchpoint,
12753 to_stopped_data_address.
12754 (target_store_registers): Simplify.
12755 (forward_target_remove_breakpoint)
12756 (forward_target_insert_breakpoint): Remove.
12757 (target_remove_breakpoint, target_insert_breakpoint)
12758 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12759 * target.h (struct target_ops) <to_resume, to_wait,
12760 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12761 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12762 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12763 markup.
12764 (forward_target_remove_breakpoint)
12765 (forward_target_insert_breakpoint): Remove.
12766 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12767 directly.
12768 (record_btrace_insert_breakpoint): Delegate directly.
12769
1101cb7b
TT
127702014-02-19 Tom Tromey <tromey@redhat.com>
12771
12772 PR build/7701:
12773 * target-delegates.c: New file.
12774 * target.c: Include target-delegates.c.
12775 (init_dummy_target): Call install_dummy_methods.
12776 (complete_target_initialization): Call install_delegators.
12777 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12778 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12779 * make-target-delegates: New file.
12780
8b06beed
TT
127812014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * record.c (find_record_target): Use find_target_at.
12784 * target.c (find_target_at): New function.
12785 * target.h (find_target_at): Declare.
12786
6a109b6b
TT
127872014-02-19 Tom Tromey <tromey@redhat.com>
12788
12789 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12790 Add 'ops' argument.
12791 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12792 'ops' argument.
12793 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12794 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12795 'ops' argument.
12796 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12797 argument.
12798 * linux-nat.c (save_sigtrap): Update.
12799 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12800 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12801 (linux_nat_close): Update.
12802 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12803 argument.
12804 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12805 argument.
12806 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12807 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12808 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12809 (tmp_to_async): Add 'ops' argument.
12810 (record_full_stopped_by_watchpoint, record_full_async)
12811 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12812 argument.
12813 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12814 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12815 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12816 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12817 (remote_is_async_p, remote_async): Add 'ops' argument.
12818 (remote_stopped_data_address): Update.
12819 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12820 * target.c (update_current_target)
12821 (find_default_can_async_p, find_default_is_async_p): Update.
12822 (init_dummy_target): Update.
12823 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12824 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12825 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12826 (target_can_async_p, target_is_async_p, target_async)
12827 (target_stopped_by_watchpoint): Update.
12828
e095146b
YQ
128292014-02-19 Yao Qi <yao@codesourcery.com>
12830
12831 PR gdb/16220
12832 * gdbarch.sh: Remove startup_gdbarch.
12833 * gdbarch.c: Regenerated.
12834 * gdbarch.h: Likewise.
12835
bc3c6b36
KB
128362014-02-17 Kevin Buettner <kevinb@redhat.com>
12837
12838 * rl78-tdep.c (rl78_g10_register_name): New function.
12839 (rl78_return_value): Add g10 support.
12840 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12841 g10.
12842
98dc0167 128432014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12844
12845 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12846 (SUBDIR_GUILE_SRCS): Ditto.
12847 (scm-gsmob.o): Ditto.
12848
842c05cd
YQ
128492014-02-17 Yao Qi <yao@codesourcery.com>
12850
12851 * gnu-nat.c (ILL_RPC): Declare defined function.
12852
25c0bd04
YQ
128532014-02-17 Yao Qi <yao@codesourcery.com>
12854
12855 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12856 mach_msg_type_number_t.
12857 (gnu_write_inferior): Likewise.
12858
a9a758e3
YQ
128592014-02-17 Yao Qi <yao@codesourcery.com>
12860
12861 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12862 in format string.
12863 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12864 (inf_validate_procs, inf_signal): Likewise.
12865 (S_exception_raise_request): Likewise.
12866 (do_mach_notify_dead_name): Likewise.
12867 (steal_exc_port): Likewise.
12868 (gnu_read_inferior): Change 'copy_count''s type to
12869 mach_msg_type_number_t.
12870 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12871 format string.
12872
bae8023e
TS
128732014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12874
c82f56d9
TS
12875 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12876 flag. Adjust all users; in particular...
12877 (gnu_wait): ..., don't decrement its value in here...
12878 (gnu_create_inferior): ..., and instead set the flag in here,
12879 around the startup_inferior call, and call that one with
12880 START_INFERIOR_TRAPS_EXPECTED.
12881
3398af6a
TS
12882 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12883 (ILL_RPC): ... new macro.
12884 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12885 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12886 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12887 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12888 functions with ILL_RPC macro.
12889 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12890 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12891 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12892 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12893 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12894 (S_proc_getlogin_reply, S_proc_getsid_reply)
12895 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12896 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12897 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12898 (S_proc_getnports_reply, S_proc_is_important_reply)
12899 (S_proc_get_code_reply): New stub functions, generated with
12900 ILL_RPC macro.
12901
d47642c9
TS
12902 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12903 collected the type check structures.
12904
bae8023e
TS
12905 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12906
8a55ffb0
DE
129072014-02-14 Doug Evans <dje@google.com>
12908
12909 * target.c (target_write_partial): Fix result type.
12910
c2853f3d
JM
129112014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12912
12913 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12914 the proper offsets to access fpregset_t.
12915
ac61d2db
SA
129162014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12917
12918 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12919 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12920 * h8300-tdep.c (setmachinelist): Remove global.
12921 * hppa-tdep.c (hppa_sigtramp): Remove global.
12922 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12923 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12924 * ravenscar-thread.c (update_target_observer): Remove global.
12925 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12926
9d2d0b8b
TT
129272014-02-12 Tom Tromey <tromey@redhat.com>
12928
12929 * common/rsp-low.c: Update comments.
12930 * common/rsp-low.h: Update comments.
12931
a7191e8b
TT
129322014-02-12 Tom Tromey <tromey@redhat.com>
12933
12934 * common/rsp-low.c (convert_ascii_to_int): Remove.
12935 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12936
ff0e980e
TT
129372014-02-12 Tom Tromey <tromey@redhat.com>
12938
12939 * common/rsp-low.h (unhexify): Don't declare.
12940 * common/rsp-low.c (unhexify): Remove.
12941
e9371aff
TT
129422014-02-12 Tom Tromey <tromey@redhat.com>
12943
12944 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12945 * common/rsp-low.c (convert_int_to_ascii): Remove.
12946
971dc0b8
TT
129472014-02-12 Tom Tromey <tromey@redhat.com>
12948
12949 * common/rsp-low.h (hexify): Don't declare.
12950 * common/rsp-low.c (hexify): Remove.
12951
0a822afb
TT
129522014-02-12 Tom Tromey <tromey@redhat.com>
12953
12954 * common/rsp-low.c (hexify): Never take strlen of argument.
12955
9f1b45b0
TT
129562014-02-12 Tom Tromey <tromey@redhat.com>
12957
12958 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12959 * remote.c (extended_remote_run, remote_rcmd)
12960 (remote_download_trace_state_variable, remote_save_trace_data)
12961 (remote_set_trace_notes): Update.
12962 * tracepoint.c (encode_source_string, tfile_write_status)
12963 (tfile_write_uploaded_tsv): Update.
12964
9c3d6531
TT
129652014-02-12 Tom Tromey <tromey@redhat.com>
12966
12967 * tracepoint.c: Include rsp-low.h.
12968 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12969 * remote.c: Include rsp-low.h.
12970 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12971 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12972 (remote_unescape_input): Move to common/rsp-low.c.
12973 * common/rsp-low.h: New file.
12974 * common/rsp-low.c: New file.
12975 * Makefile.in (SFILES): Add common/rsp-low.c.
12976 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12977 (COMMON_OBS): Add rsp-low.o.
12978 (rsp-low.o): New target.
12979
01fd3ea5
TT
129802014-02-12 Tom Tromey <tromey@redhat.com>
12981
12982 * utils.h: Include print-utils.h.
12983 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12984 (int_string, core_addr_to_string, core_addr_to_string_nz)
12985 (hex_string, hex_string_custom): Don't declare.
12986 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12987 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12988 (hex_string_custom, int_string, core_addr_to_string)
12989 (core_addr_to_string_nz, host_address_to_string): Move to
12990 common/print-utils.c.
12991 * common/print-utils.h: New file.
12992 * common/print-utils.c: New file
12993 * Makefile.in (SFILES): Add common/print-utils.c.
12994 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12995 (COMMON_OBS): Add print-utils.o.
12996 (print-utils.o): New target.
12997
9fb50108
TT
129982014-02-12 Tom Tromey <tromey@redhat.com>
12999
13000 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13001
0548b5db
MK
130022014-02-12 Mark Kettenis <kettenis@gnu.org>
13003
13004 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13005
493443a4
MK
130062014-02-12 Mark Kettenis <kettenis@gnu.org>
13007
13008 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13009 if a PT_IO ptrace request returns sucessfully but indicates that 0
13010 bytes were transferred.
13011
706d0883
PA
130122014-02-12 Pedro Alves <palves@redhat.com>
13013 Kevin Buettner <kevinb@redhat.com>
13014
13015 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13016 TYPE_INSTANCE_FLAG_CODE_SPACE.
13017
5caa2f0b
PA
130182014-02-12 Pedro Alves <palves@redhat.com>
13019
13020 * h8300-tdep.c (pseudo_from_raw_register)
13021 (raw_from_pseudo_register): New functions.
13022 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13023 them.
13024
76fd5f74
PA
130252014-02-12 Pedro Alves <palves@redhat.com>
13026
13027 * h8300-tdep.c (h8300_register_sim_regno): New function.
13028 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13029 gdbarch_register_sim_regno hook.
13030
8f008406
SA
130312014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13032
13033 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13034
195abc10
SA
130352014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13036
13037 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13038
93ffa5b9
MK
130392014-02-12 Mark Kettenis <kettenis@gnu.org>
13040
13041 * obsd-tdep.h (obsd_init_abi): New prototype.
13042 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13043 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13044 (obsd_init_abi): New functions.
13045 * i386obsd-tdep.c: Include "obsd-tdep.h".
13046 (i386obsd_init_abi): Call obsd_init_abi.
13047 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13048 (amd64obsd_init_abi): Call obsd_init_abi.
13049 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13050 obsd-tdep.c to gdb_target_obs.
13051
49caec94
JM
130522014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13053
13054 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13055 double float arguments to 16-byte in the argument slots.
13056
e1402065
DE
130572014-02-11 Doug Evans <xdje42@gmail.com>
13058
13059 * configure.ac: Don't crash if pkg-config is not found and guile
13060 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13061 in guile checks.
13062 * configure: Regenerate.
13063
edcc890f
YQ
130642014-02-11 Yao Qi <yao@codesourcery.com>
13065
13066 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13067 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13068 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13069 * gnu-nat.c (gnu_xfer_memory): Likewise.
13070 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13072 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13073 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13074
9b409511
YQ
130752014-02-11 Yao Qi <yao@codesourcery.com>
13076
13077 * target.h (enum target_xfer_error): Rename to ...
13078 (enum target_xfer_status): ... it. New. All users updated.
13079 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13080 New.
13081 (TARGET_XFER_STATUS_ERROR_P): New macro.
13082 (target_xfer_error_to_string): Remove declaration.
13083 (target_xfer_status_to_string): Declare.
13084 (target_xfer_partial_ftype): Adjust it.
13085 (struct target_ops) <to_xfer_partial>: Return
13086 target_xfer_status. Add argument xfered_len. Update
13087 comments.
13088 * target.c (target_xfer_error_to_string): Rename to ...
13089 (target_xfer_status_to_string): ... it. New. All callers
13090 updated.
13091 (target_read_live_memory): Likewise. Call target_xfer_partial
13092 instead of target_read.
13093 (memory_xfer_live_readonly_partial): Return
13094 target_xfer_status. Add argument xfered_len.
13095 (raw_memory_xfer_partial): Likewise.
13096 (memory_xfer_partial_1): Likewise.
13097 (memory_xfer_partial): Likewise.
13098 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13099 properly. Update debug message.
13100 (default_xfer_partial, current_xfer_partial): Likewise.
13101 (target_write_partial): Likewise.
13102 (target_read_partial): Likewise. All callers updated.
13103 (read_whatever_is_readable): Likewise.
13104 (target_write_with_progress): Likewise.
13105 (target_read_alloc_1): Likewise.
13106
13107 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13108 * auxv.c (procfs_xfer_auxv): Likewise.
13109 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13110 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13111 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13112 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13113 * corefile.c (read_memory): Adjust.
13114 * corelow.c (core_xfer_partial): Likewise.
13115 * ctf.c (ctf_xfer_partial): Likewise.
13116 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13117 updated.
13118 (darwin_xfer_partial): Likewise.
13119 * exec.c (section_table_xfer_memory_partial): Likewise. All
13120 callers updated.
13121 (exec_xfer_partial): Likewise.
13122 * exec.h (section_table_xfer_memory_partial): Update
13123 declaration.
13124 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13125 negative.
13126 (gnu_xfer_partial): Likewise.
13127 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13128 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13129 (ia64_hpux_xfer_solib_got): Likewise.
13130 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13131 type of 'partial_len' to ULONGEST.
13132 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13133 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13134 (linux_nat_xfer_partial): Likewise.
13135 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13136 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13137 * monitor.c (monitor_xfer_memory): Likewise.
13138 (monitor_xfer_partial): Likewise.
13139 * procfs.c (procfs_xfer_partial): Likewise.
13140 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13141 * record-full.c (record_full_xfer_partial): Likewise.
13142 (record_full_core_xfer_partial): Likewise.
13143 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13144 (gdbsim_xfer_partial): Likewise.
13145 * remote.c (remote_write_bytes_aux): Likewise. All callers
13146 updated.
13147 (remote_write_bytes, remote_read_bytes): Likewise. All
13148 callers updated.
13149 (remote_flash_erase): Likewise. All callers updated.
13150 (remote_write_qxfer): Likewise. All callers updated.
13151 (remote_read_qxfer): Likewise. All callers updated.
13152 (remote_xfer_partial): Likewise.
13153 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13154 (rs6000_xfer_shared_libraries): Likewise.
13155 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13156 (sol_thread_xfer_partial): Likewise.
13157 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13158 (sparc_xfer_partial): Likewise.
13159 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13160 updated.
13161 (spu_xfer_partial): Likewise.
13162 * spu-multiarch.c (spu_xfer_partial): Likewise.
13163 * tracepoint.c (tfile_xfer_partial): Likewise.
13164 * windows-nat.c (windows_xfer_memory): Likewise.
13165 (windows_xfer_shared_libraries): Likewise.
13166 (windows_xfer_partial): Likewise.
13167 * valprint.c: Replace 'target_xfer_error' with
13168 'target_xfer_status' in comments.
13169
a8e63083
JB
131702014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13171
13172 Checked in by Joel Brobecker <brobecker@adacore.com>.
13173 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13174
e86b67d3
JB
131752014-02-11 Joel Brobecker <brobecker@adacore.com>
13176
13177 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13178 function parameters.
13179
4b7d1f7f
WN
131802014-02-10 Will Newton <will.newton@linaro.org>
13181
13182 * elfread.c (elf_rel_plt_read): Look for a .got section if
13183 looking up .got.plt fails.
13184 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13185 on address passed to elf_gnu_ifunc_record_cache.
13186 (elf_gnu_ifunc_resolve_addr): Likewise.
13187 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13188
961842b2
JM
131892014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13190
13191 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13192 (X_RETTURN): New macro.
13193 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13194
13195 * sparc64-tdep.c (sparc64_init_abi): Hook
13196 sparc_in_function_epilogue_p.
13197
3f03e7b1
GB
131982014-02-10 Gary Benson <gbenson@redhat.com>
13199
13200 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13201 Rename name_matcher to symbol_matcher.
13202
96f861ef
GB
132032014-02-10 Gary Benson <gbenson@redhat.com>
13204
13205 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13206 Use expand_symtabs_file_matcher_ftype and
13207 expand_symtabs_symbol_matcher_ftype.
13208
ee01b665
JB
132092014-02-10 Joel Brobecker <brobecker@adacore.com>
13210
13211 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13212 (struct ada_symbol_cache): New.
13213 (ada_free_symbol_cache): Forward declare.
13214 (struct ada_pspace_data): New.
13215 (ada_pspace_data_handle): New static global.
13216 (get_ada_pspace_data, ada_pspace_data_cleanup)
13217 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13218 (cache_space, cache): Delete, now folded inside struct
13219 ada_pspace_data.
13220 (ada_get_symbol_cache): New function.
13221 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13222 implementation.
13223 (_initialize_ada_language): Remove initialization of cache_space.
13224 Move call to observer_attach_inferior_exit up, grouping it
13225 with the other observer registrations inside this function.
13226 Rename command to be more general. Add call to
13227 register_program_space_data_with_cleanup.
13228
143adbbf
JB
132292014-02-10 Joel Brobecker <brobecker@adacore.com>
13230
13231 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13232 ada_new_objfile_observer.
13233 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13234 (_initialize_tasks): Update uses of ada_new_objfile_observer
13235 and ada_tasks_normal_stop_observer.
13236
aa4fb036
JB
132372014-02-10 Joel Brobecker <brobecker@adacore.com>
13238
13239 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13240 returned by the 'Length attribute to integer.
13241
9dee8cc6
JB
132422014-02-10 Joel Brobecker <brobecker@adacore.com>
13243
13244 * ada-lang.c (_initialize_ada_language): Initialize
13245 cache_space obstack.
13246
3d9434b5
JB
132472014-02-10 Joel Brobecker <brobecker@adacore.com>
13248
13249 * ada-lang.c (HASH_SIZE): New macro.
13250 (struct cache_entry): New type.
13251 (cache_space, cache): New static globals.
13252 (ada_clear_symbol_cache, find_entry): New functions.
13253 (lookup_cached_symbol, cache_symbol): Implement.
13254 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13255 (_initialize_ada_language): Attach ada_new_objfile_observer
13256 and ada_free_objfile_observer.
13257
f0c5f9b2
JB
132582014-02-10 Joel Brobecker <brobecker@adacore.com>
13259
13260 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13261 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13262 struct block * parameter.
13263 (ada_lookup_symbol_list_worker): Constify local variable "block".
13264 Remove cast which is no longer necessary.
13265
ed3ef339
DE
132662014-02-10 Doug Evans <xdje42@gmail.com>
13267
13268 Add Guile as an extension language.
13269 * NEWS: Mention Guile scripting.
13270 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13271 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13272 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13273 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13274 (CLIBS): Add GUILE_LIBS.
13275 (install-guile): New rule.
13276 (guile.o): New rule.
13277 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13278 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13279 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13280 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13281 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13282 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13283 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13284 * configure.ac: New option --with-guile.
13285 * configure: Regenerate.
13286 * config.in: Regenerate.
13287 * auto-load.c: Remove #include "python/python.h". Add #include
13288 "gdb/section-scripts.h".
13289 (source_section_scripts): Handle Guile scripts.
13290 (_initialize_auto_load): Add name of Guile objfile script to
13291 scripts-directory help text.
13292 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13293 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13294 (struct breakpoint): New member scm_bp_object.
13295 * defs.h (enum command_control_type): New value guile_control.
13296 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13297 "extension.h".
13298 (show_user): Update comment.
13299 (_initialize_cli_cmds): Update help text for "show user". Update help
13300 text for max-user-call-depth.
13301 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13302 "extension.h".
13303 (multi_line_command_p): Add guile_control.
13304 (print_command_lines): Handle guile_control.
13305 (execute_control_command, recurse_read_control_structure): Ditto.
13306 (process_next_line): Recognize "guile" commands.
13307 * disasm.c (gdb_disassemble_info): Make non-static.
13308 * disasm.h: #include "dis-asm.h".
13309 (struct gdbarch): Add forward decl.
13310 (gdb_disassemble_info): Declare.
13311 * extension.c: #include "guile/guile.h".
13312 (extension_languages): Add guile.
13313 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13314 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13315 * gdbtypes.c (get_unsigned_type_max): New function.
13316 (get_signed_type_minmax): New function.
13317 * gdbtypes.h (get_unsigned_type_max): Declare.
13318 (get_signed_type_minmax): Declare.
13319 * guile/README: New file.
13320 * guile/guile-internal.h: New file.
13321 * guile/guile.c: New file.
13322 * guile/guile.h: New file.
13323 * guile/scm-arch.c: New file.
13324 * guile/scm-auto-load.c: New file.
13325 * guile/scm-block.c: New file.
13326 * guile/scm-breakpoint.c: New file.
13327 * guile/scm-disasm.c: New file.
13328 * guile/scm-exception.c: New file.
13329 * guile/scm-frame.c: New file.
13330 * guile/scm-gsmob.c: New file.
13331 * guile/scm-iterator.c: New file.
13332 * guile/scm-lazy-string.c: New file.
13333 * guile/scm-math.c: New file.
13334 * guile/scm-objfile.c: New file.
13335 * guile/scm-ports.c: New file.
13336 * guile/scm-pretty-print.c: New file.
13337 * guile/scm-safe-call.c: New file.
13338 * guile/scm-string.c: New file.
13339 * guile/scm-symbol.c: New file.
13340 * guile/scm-symtab.c: New file.
13341 * guile/scm-type.c: New file.
13342 * guile/scm-utils.c: New file.
13343 * guile/scm-value.c: New file.
13344 * guile/lib/gdb.scm: New file.
13345 * guile/lib/gdb/boot.scm: New file.
13346 * guile/lib/gdb/experimental.scm: New file.
13347 * guile/lib/gdb/init.scm: New file.
13348 * guile/lib/gdb/iterator.scm: New file.
13349 * guile/lib/gdb/printing.scm: New file.
13350 * guile/lib/gdb/types.scm: New file.
13351 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13352 (VPATH): Add $(GUILE_SRCDIR).
13353 (GUILE_DIR): New variable.
13354 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13355 (all): Add stamp-guile dependency.
13356 (stamp-guile): New rule.
13357 (clean-guile, install-guile, uninstall-guile): New rules.
13358 (install-only): Add install-guile dependency.
13359 (uninstall): Add uninstall-guile dependency.
13360 (clean): Add clean-guile dependency.
13361
ac020ec5
DE
133622014-02-09 Doug Evans <xdje42@gmail.com>
13363
13364 Revert this patch (which I approved, mea culpa).
13365
13366 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13367
13368 * Makefile.in (all-lib): Remove.
13369 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13370
2a081c59
JK
133712014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13372
13373 Fix Python stack corruption.
13374 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13375 gdb_py_longest.
13376
0a6bd22d
MK
133772014-02-08 Mark Kettenis <kettenis@gnu.org>
13378
13379 * Makefile.in (all-lib): Remove.
13380 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13381
1a860409
DE
133822014-02-07 Doug Evans <dje@google.com>
13383
13384 * extension-priv.h (extension_language_script_ops): Add comment.
13385 (extension_language_ops): Add comment.
caf5a491 13386 (active_ext_lang_state): Fix typo in comment.
1a860409 13387
d137e6dc
PA
133882014-02-07 Pedro Alves <palves@redhat.com>
13389
0dcb32c3 13390 PR breakpoints/16292
d137e6dc
PA
13391 * infrun.c (handle_signal_stop) <signal arrives while stepping
13392 over a breakpoint>: Switch back to the stepping thread.
13393
ce6d0892
YQ
133942014-02-07 Yao Qi <yao@codesourcery.com>
13395
13396 * target.c (target_xfer_partial): Return zero if LEN is zero.
13397
2ed4b548
YQ
133982014-02-07 Yao Qi <yao@codesourcery.com>
13399
13400 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13401 (ld_so_xfer_auxv): Likewise.
13402 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13403 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13404 * corelow.c (core_xfer_partial): Likewise.
13405 * ctf.c (ctf_xfer_partial): Likewise.
13406 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13407 (darwin_xfer_partial): Likewise.
13408 * exec.c (exec_xfer_partial): Likewise.
13409 * gnu-nat.c (gnu_xfer_partial): Likewise.
13410 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13411 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13412 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13413 * linux-nat.c (linux_xfer_siginfo): Likewise.
13414 (linux_proc_xfer_spu): Likewise.
13415 * procfs.c (procfs_xfer_partial): Likewise.
13416 * record-full.c (record_full_xfer_partial): Likewise.
13417 (record_full_core_xfer_partial): Likewise.
13418 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13419 * remote.c (remote_write_qxfer): Likewise.
13420 (remote_write_qxfer, remote_read_qxfer): Likewise.
13421 (remote_xfer_partial): Likewise.
13422 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13423 (rs6000_xfer_shared_libraries): Likewise.
13424 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13425 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13426 (spu_xfer_partial): Likewise.
13427 * target.c (memory_xfer_partial_1): Likewise.
13428 * tracepoint.c (tfile_xfer_partial): Likewise.
13429 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13430 (windows_xfer_partial): Likewise.
13431
c09f20e4
YQ
134322014-02-07 Yao Qi <yao@codesourcery.com>
13433
13434 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13435 comments.
13436 (core_xfer_shared_libraries_aix): Likewise.
13437 * gdbarch.c, gdbarch.h: Regenerated.
13438 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13439 ULONGEST. Change 'len_avail' type to ULONGEST.
13440 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13441 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13442 declaration.
13443 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13444
8635b3bf
YQ
134452014-02-07 Yao Qi <yao@codesourcery.com>
13446
13447 * corefile.c (memory_error): Get 'exception' from ERR and pass
13448 'exception' to throw_error.
13449
6dddc817
DE
134502014-02-06 Doug Evans <xdje42@gmail.com>
13451
13452 * configure.ac (libpython checking): Remove all but python.o from
13453 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13454 * configure: Regenerate.
13455
13456 * Makefile.in (SFILES): Add extension.c.
13457 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13458 (COMMON_OBS): Add extension.o.
13459 * extension.h: New file.
13460 * extension-priv.h: New file.
13461 * extension.c: New file.
13462
13463 * python/python-internal.h: #include "extension.h".
13464 (gdbpy_auto_load_enabled): Declare.
13465 (gdbpy_apply_val_pretty_printer): Declare.
13466 (gdbpy_apply_frame_filter): Declare.
13467 (gdbpy_preserve_values): Declare.
13468 (gdbpy_breakpoint_cond_says_stop): Declare.
13469 (gdbpy_breakpoint_has_cond): Declare.
13470 (void source_python_script_for_objfile): Delete.
13471 * python/python.c: #include "extension-priv.h".
13472 Delete inclusion of "observer.h".
13473 (extension_language_python): Moved here and renamed from
13474 script_language_python in py-auto-load.c.
13475 Redefined to be of type extension_language_defn.
13476 (python_extension_script_ops): New global.
13477 (python_extension_ops): New global.
13478 (struct python_env): New member previous_active.
13479 (restore_python_env): Call restore_active_ext_lang.
13480 (ensure_python_env): Call set_active_ext_lang.
13481 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13482 New arg extlang.
13483 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13484 New arg extlang.
13485 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13486 New arg extlang.
13487 (gdbpy_eval_from_control_command): Renamed from
13488 eval_python_from_control_command, made static. New arg extlang.
13489 (gdbpy_source_script) Renamed from source_python_script, made static.
13490 New arg extlang.
13491 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13492 result to int. New arg extlang.
13493 (gdbpy_source_objfile_script): Renamed from
13494 source_python_script_for_objfile, made static. New arg extlang.
13495 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13496 static. New args extlang, extlang_printers. Change result type to
13497 "void".
13498 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13499 static. New arg extlang. Rename arg printers to extlang_printers
13500 and change type to ext_lang_type_printers *.
13501 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13502 static. Replace argument arg with extlang, extlang_printers.
13503 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13504 (!HAVE_PYTHON, source_python_script): Delete.
13505 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13506 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13507 (!HAVE_PYTHON, start_type_printers): Delete.
13508 (!HAVE_PYTHON, apply_type_printers): Delete.
13509 (!HAVE_PYTHON, free_type_printers): Delete.
13510 (_initialize_python): Delete call to observer_attach_before_prompt.
13511 (finalize_python): Set/restore active extension language.
13512 (gdbpy_finish_initialization) Renamed from
13513 finish_python_initialization, made static. New arg extlang.
13514 (gdbpy_initialized): New function.
13515 * python/python.h: #include "extension.h". Delete #include
13516 "value.h", "mi/mi-cmds.h".
13517 (extension_language_python): Declare.
13518 (GDBPY_AUTO_FILE_NAME): Delete.
13519 (enum py_bt_status): Moved to extension.h and renamed to
13520 ext_lang_bt_status.
13521 (enum frame_filter_flags): Moved to extension.h.
13522 (enum py_frame_args): Moved to extension.h and renamed to
13523 ext_lang_frame_args.
13524 (finish_python_initialization): Delete.
13525 (eval_python_from_control_command): Delete.
13526 (source_python_script): Delete.
13527 (apply_val_pretty_printer): Delete.
13528 (apply_frame_filter): Delete.
13529 (preserve_python_values): Delete.
13530 (gdbpy_script_language_defn): Delete.
13531 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13532 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13533
13534 * auto-load.c: #include "extension.h".
13535 (GDB_AUTO_FILE_NAME): Delete.
13536 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13537 (script_language_gdb): Delete, moved to extension.c and renamed to
13538 extension_language_gdb.
13539 (source_gdb_script_for_objfile): Delete.
13540 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13541 (loaded_script): Change type of language member to
13542 struct extension_language_defn *.
13543 (init_loaded_scripts_info): Initialize
13544 unsupported_script_warning_printed.
13545 (maybe_add_script): Make static. Change type of language arg to
13546 struct extension_language_defn *.
13547 (clear_section_scripts): Reset unsupported_script_warning_printed.
13548 (auto_load_objfile_script_1): Rewrite to use extension language API.
13549 (auto_load_objfile_script): Make public. Remove support-compiled-in
13550 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13551 (source_section_scripts): Rewrite to use extension language API.
13552 (load_auto_scripts_for_objfile): Rewrite to use
13553 auto_load_scripts_for_objfile.
13554 (collect_matching_scripts_data): Change type of language member to
13555 struct extension_language_defn *.
13556 (auto_load_info_scripts): Change type of language arg to
13557 struct extension_language_defn *.
13558 (unsupported_script_warning_print): New function.
13559 (script_not_found_warning_print): Make static.
13560 (_initialize_auto_load): Rewrite construction of scripts-directory
13561 help.
13562 * auto-load.h (struct objfile): Add forward decl.
13563 (struct script_language): Delete.
13564 (struct auto_load_pspace_info): Add forward decl.
13565 (struct extension_language_defn): Add forward decl.
13566 (maybe_add_script): Delete.
13567 (auto_load_objfile_script): Declare.
13568 (script_not_found_warning_print): Delete.
13569 (auto_load_info_scripts): Update prototype.
13570 (auto_load_gdb_scripts_enabled): Declare.
13571 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13572 auto_load_python_scripts_enabled and made public.
13573 (script_language_python): Delete, moved to python.c.
13574 (gdbpy_script_language_defn): Delete.
13575 (info_auto_load_python_scripts): Update to use
13576 extension_language_python.
13577
13578 * breakpoint.c (condition_command): Replace call to
13579 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13580 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13581 with call to breakpoint_ext_lang_cond_says_stop.
13582 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13583 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13584 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13585 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13586 New arg slang.
13587 (local_setattro): Print name of extension language with existing
13588 stop condition.
13589
13590 * valprint.c (val_print, value_print): Update to call
13591 apply_ext_lang_val_pretty_printer.
13592 * cp-valprint.c (cp_print_value): Update call to
13593 apply_ext_lang_val_pretty_printer.
13594 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13595 (gdbpy_apply_val_pretty_printer): Renamed from
13596 apply_val_pretty_printer. New arg extlang.
13597 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13598
13599 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13600 extension language API.
13601 * cli/cli-script.c (execute_control_command): Update to call
13602 eval_ext_lang_from_control_command.
13603
13604 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13605 enum ext_lang_bt_status values. Update call to
13606 apply_ext_lang_frame_filter.
13607 (mi_cmd_stack_list_locals): Ditto.
13608 (mi_cmd_stack_list_args): Ditto.
13609 (mi_cmd_stack_list_variables): Ditto.
13610 * mi/mi-main.c: Delete #include "python/python-internal.h".
13611 Add #include "extension.h".
13612 (mi_cmd_list_features): Replace reference to python internal variable
13613 gdb_python_initialized with call to ext_lang_initialized_p.
13614
13615 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13616 Update to use enum ext_lang_frame_args. Update to call
13617 apply_ext_lang_frame_filter.
13618 * python/py-framefilter.c (extract_sym): Update to use enum
13619 ext_lang_bt_status.
13620 (extract_value, py_print_type, py_print_value): Ditto.
13621 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13622 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13623 (py_print_frame): Ditto.
13624 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13625 New arg extlang. Update to use enum ext_lang_bt_status.
13626
13627 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13628 finish_python_initialization. Replace with call to
13629 finish_ext_lang_initialization.
13630
13631 * typeprint.c (do_free_global_table): Update to call
13632 free_ext_lang_type_printers.
13633 (create_global_typedef_table): Update to call
13634 start_ext_lang_type_printers.
13635 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13636 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13637 (type_print_options): Change type of global_printers from "void *"
13638 to "struct ext_lang_type_printers *".
13639
13640 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13641 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13642 (gdbpy_preserve_values): Renamed from preserve_python_values.
13643 New arg extlang.
13644 (!HAVE_PYTHON, preserve_python_values): Delete.
13645
13646 * utils.c (quit_flag): Delete, moved to extension.c.
13647 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13648 extension.c.
13649
13650 * eval.c: Delete #include "python/python.h".
13651 * main.c: Delete #include "python/python.h".
13652
13653 * defs.h: Update comment.
13654
6af79985
JB
136552014-02-06 Joel Brobecker <brobecker@adacore.com>
13656
13657 GDB 7.7 released.
13658
12c5175d
MK
136592014-02-05 Mark Kettenis <kettenis@gnu.org>
13660
13661 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13662 defined.
13663
8dc5b319
YQ
136642014-02-05 Yao Qi <yao@codesourcery.com>
13665
13666 * remote.c (remote_pass_signals): Remove local 'buf' and use
13667 rs->buf.
13668 (remote_program_signals): Likewise.
13669
de7b2893
YQ
136702014-02-05 Yao Qi <yao@codesourcery.com>
13671
13672 * ctf.c: Include "inferior.h" and "gdbthread.h".
13673 (CTF_PID): A new macro.
13674 (ctf_open): Call inferior_appeared and add_thread_silent.
13675 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13676 (ctf_thread_alive): New function.
13677 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13678
66d032ac
YQ
136792014-02-05 Yao Qi <yao@codesourcery.com>
13680
13681 Revert this patch:
13682
13683 2013-05-24 Yao Qi <yao@codesourcery.com>
13684
13685 * tracepoint.c (TFILE_PID): Remove.
13686 (tfile_open): Don't add thread and inferior.
13687 (tfile_close): Don't set 'inferior_ptid'. Don't call
13688 exit_inferior_silent.
13689 (tfile_thread_alive): Remove.
13690 (init_tfile_ops): Don't set field 'to_thread_alive' of
13691 tfile_ops.
13692
f4ccffad
CE
136932014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13694
13695 * remote.c (remote_start_remote): Call remote_check_symbols even
13696 if only symbol-file (not file) has been given.
13697
591a12a1
UW
136982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13699
13700 * gdbarch.sh (skip_entrypoint): New callback.
13701 * gdbarch.c, gdbarch.h: Regenerate.
13702 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13703 * infrun.c (fill_in_stop_func): Likewise.
13704 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13705 (ppc_elfv2_elf_make_msymbol_special): New function.
13706 (ppc_elfv2_skip_entrypoint): Likewise.
13707 (ppc_linux_init_abi): Install them for ELFv2.
13708
cc0e89c5
UW
137092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13710
13711 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13712 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13713 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13714 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13715 structures returned in GPRs.
13716
52f548e4
UW
137172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13718
13719 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13720 offset to the stack parameter list for the ELFv2 ABI.
13721
d4094b6a
UW
137222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13723
13724 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13725 set_gdbarch_convert_from_func_ptr_addr and
13726 set_gdbarch_elf_make_msymbol_special for ELFv1.
13727 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13728 function descriptors on ELFv1.
13729 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13730 set up r12 at function entry.
13731
cd453cd0
UW
137322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13733
13734 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13735 (struct gdbarch_tdep): New member elf_abi.
13736
13737 * rs6000-tdep.c: Include "elf/ppc64.h".
13738 (rs6000_gdbarch_init): Detect ELF ABI version.
13739
0ff3e01f
UW
137402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13741
13742 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13743 within a register pair holding a DFP 128-bit value on little-endian.
13744 (ppc64_sysv_abi_return_value_base): Likewise.
13745 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13746 (dfp_pseudo_register_write): Likewise.
13747
5b757e5d
UW
137482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13749
13750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13751 offset on little-endian when passing _Decimal32.
13752 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13753
084ee545
UW
137542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13755
13756 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13757 of the overlapped FP register within the VSX register on little-
13758 endian platforms.
13759 (efpr_pseudo_register_write): Likewise.
13760
d63167af
UW
137612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13762
13763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13764 offset on little-endian when passing small structures.
13765
e765b44c
UW
137662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13767
13768 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13769 (struct ppc64_sysv_argpos): New data structure.
13770 (ppc64_sysv_abi_push_float): Remove.
13771 (ppc64_sysv_abi_push_val): New function.
13772 (ppc64_sysv_abi_push_integer): Likewise.
13773 (ppc64_sysv_abi_push_freg): Likewise.
13774 (ppc64_sysv_abi_push_vreg): Likewise.
13775 (ppc64_sysv_abi_push_param): Likewise.
13776 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13777 (ppc64_sysv_abi_return_value_base): New function.
13778 (ppc64_sysv_abi_return_value): Refactor to use it.
13779
36c24d95
UW
137802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13781
13782 * NEWS: Document new target powerpc64le-*-linux*.
13783
26fd9228
MK
137842014-02-04 Mark Kettenis <kettenis@gnu.org>
13785
13786 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13787 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13788 core dumps.
13789 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13790 register set used in ELF core dumps. Add floating-point register set.
13791
c5bb7362
KB
137922014-02-03 Kevin Buettner <kevinb@redhat.com>
13793
74228e77 13794 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13795 dwarf2_to_gdb[] table using symbolic constants. Adjust
13796 penultimate entry from number representing the PC register
13797 to symbolic constant representing the MDR register. Add
13798 constant for the PC register to the end of the table.
13799
af09351e
MK
138002014-02-03 Mark Kettenis <kettenis@gnu.org>
13801
13802 * bsd-kvm.c: Include <sys/param.h>
13803
8507e05d
MK
138042014-02-03 Mark Kettenis <kettenis@gnu.org>
13805
13806 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13807
ae56bfb8
JB
138082014-01-31 Joel Brobecker <brobecker@adacore.com>
13809
13810 * ada-lang.h (clear_ada_sym_cache): Delete.
13811
718ee4dc
UW
138122014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13813
13814 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13815
401e27fd
JM
138162014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13817
13818 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13819 the sigreturn register save area only if the syscall is
13820 sigreturn.
13821
a7c88acd
JB
138222014-01-29 Joel Brobecker <brobecker@adacore.com>
13823
13824 * valops.c (value_slice): Minor reformatting.
13825
fa0079ea
UW
138262014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13827
13828 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13829
c6044dd1
JB
138302014-01-28 Joel Brobecker <brobecker@adacore.com>
13831
13832 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13833 New static globals.
13834 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13835 (ada_ignore_descriptive_types_p): New static global.
13836 (find_parallel_type_by_descriptive_type): Return immediately
13837 if ada_ignore_descriptive_types_p is set.
13838 (_initialize_ada_language): Register new commands "maintenance
13839 set ada", "maintenance show ada", "maintenance set ada
13840 ignore-descriptive-types" and "maintenance show ada
13841 ignore-descriptive-types".
13842 * NEWS: Add entry for new "maint ada set/show
13843 ignore-descriptive-types" commands.
13844
568e808b
MM
138452014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13846
13847 * record-btrace.c (record_btrace_close): Call btrace_teardown
13848 for all threads.
13849
467d141b
JB
138502014-01-27 Joel Brobecker <brobecker@adacore.com>
13851
13852 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13853 "ui-out.h".
13854
fb151210
JB
138552014-01-27 Joel Brobecker <brobecker@adacore.com>
13856
13857 * ada-typeprint (type_is_full_subrange_of_target_type):
13858 New function.
13859 (print_range): Add parameter bounds_prefered_p. If not set,
13860 try printing range types using the name of their base type.
13861 (print_range_type): Add parameter bounds_prefered_p.
13862 Use it in call to print_range.
13863 (print_array_type, ada_print_type): Update calls to print_range
13864 and print_range_type.
13865
aba02109
JB
138662014-01-27 Joel Brobecker <brobecker@adacore.com>
13867
13868 * ada-typeprint.c (print_array_type, print_choices, print_range)
13869 (print_range_bound, print_dynamic_range_bound, print_range_type):
13870 Remove declaration.
13871
e62e21fd
JB
138722014-01-27 Joel Brobecker <brobecker@adacore.com>
13873
13874 * ada-typeprint.c (print_range): Add missing empty line
13875 after local declaration.
13876
859cf5d1
JB
138772014-01-27 Joel Brobecker <brobecker@adacore.com>
13878
13879 * ada-valprint.c (print_optional_low_bound): Get index_type's
13880 target type for as long as it is a TYPE_CODE_RANGE.
13881
25790f6f
JB
138822014-01-27 Joel Brobecker <brobecker@adacore.com>
13883
13884 * procfs.c (procfs_make_note_section): Remove assertion and
13885 associated comment.
13886
6b6aa828
YQ
138872014-01-24 Yao Qi <yao@codesourcery.com>
13888
13889 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13890 * corelow.c (get_core_siginfo): Likewise.
13891
5d6df423
YQ
138922014-01-24 Yao Qi <yao@codesourcery.com>
13893
13894 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13895 ULONGEST. Don't check 'len' is negative.
13896 (remote_write_bytes): Change type of 'len' to ULONGEST.
13897
83b645b8
TT
138982014-01-23 Tom Tromey <tromey@redhat.com>
13899
13900 PR python/16485:
13901 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13902 Handle exception from frame.block.
13903 (FrameVars.fetch_frame_locals): Likewise.
13904
0740f8d8
TT
139052014-01-23 Tom Tromey <tromey@redhat.com>
13906
13907 PR python/16487:
13908 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13909 on a NULL pointer. Move "goto error" to correct place.
13910
21909fa1
TT
139112014-01-23 Tom Tromey <tromey@redhat.com>
13912
13913 PR python/16491:
13914 * python/py-framefilter.c (apply_frame_filter): Call
13915 ensure_python_env after computing gdbarch.
13916
17fde6d0
YQ
139172014-01-23 Yao Qi <yao@codesourcery.com>
13918
13919 * target.c (raw_memory_xfer_partial): Change argument type
13920 from void * to gdb_byte *.
13921 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13922
87ce2a04
DE
139232014-01-22 Doug Evans <dje@google.com>
13924
13925 New gdbserver option --debug-format=timestamp.
13926 * NEWS: Mention it.
13927
237b092b
AA
139282014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13929
13930 * syscalls/s390x-linux.xml: New file.
13931 * syscalls/s390-linux.xml: New file.
13932 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13933 (XML_SYSCALL_FILENAME_S390X): Likewise.
13934 (op_svc): New enum value for SVC opcode.
13935 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13936 (s390_linux_get_syscall_number): New function.
13937 (s390_gdbarch_init): Register '*get_syscall_number' and the
13938 syscall xml file name.
13939 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13940 "s390-linux.xml" and "s390x-linux.xml".
13941 * NEWS: Announce new feature.
13942
54bff650
BS
139432014-01-22 Baruch Siach <baruch@tkos.co.il>
13944
13945 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13946
14e361d7
PA
139472014-01-22 Pedro Alves <palves@redhat.com>
13948
13949 * xtensa-config.c: Include defs.h.
13950
46bbb3ed
JB
139512014-01-22 Joel Brobecker <brobecker@adacore.com>
13952
13953 * common/common-utils.h: Add "ARI:" comment beside __func__
13954 reference.
13955
3a80edfc
JB
139562014-01-22 Joel Brobecker <brobecker@adacore.com>
13957
13958 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13959 documentation a bit.
13960
4869db5e
RM
139612014-01-21 Roland McGrath <mcgrathr@google.com>
13962
13963 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13964 * configure: Regenerate.
13965 * aclocal.m4: Regenerate.
13966 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13967 New substituted variables.
13968 (install-strip): New target.
13969 (INSTALL_SCRIPT): New substituted variable.
13970 (FLAGS_TO_PASS): Add it.
13971 (install-only): Use $(INSTALL_SCRIPT) rather than
13972 $(INSTALL_PROGRAM) for gcore.
13973
9ea4267d
TT
139742014-01-20 Tom Tromey <tromey@redhat.com>
13975
13976 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13977 together.
13978
1f2bdf09
TT
139792014-01-20 Tom Tromey <tromey@redhat.com>
13980
13981 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13982 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13983 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13984 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13985 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13986 (struct cmd_list_element) <flags>: Remove.
13987 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13988 doc_allocated>: New fields.
13989 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13990 bitfields.
13991 * maint.c (maintenance_do_deprecate): Update.
13992 * top.c (execute_command): Update.
13993
e671835b
BS
139942014-01-20 Baruch Siach <baruch@tkos.co.il>
13995
13996 * xtensa-linux-nat.c: Include asm/ptrace.h.
13997
50367cd2
IB
139982014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13999
14000 * Makefile.in (SFILES): Add d-support.c.
14001 (COMMON_OBS): Add d-support.o.
14002 * d-lang.h (d_parse_symbol): Add comment, now defined in
14003 d-support.c.
14004 * d-lang.c (parse_call_convention)
14005 (parse_attributes, parse_function_types)
14006 (parse_function_args, parse_type, parse_identifier)
14007 (call_convention_p, d_parse_symbol): Move functions to ...
14008 * d-support.c: ... New file.
14009
ec9f644a
IB
140102014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14011
14012 * d-lang.h (d_parse_symbol): Add declaration.
14013 * d-lang.c (extract_identifiers)
14014 (extract_type_info): Remove functions.
14015 (parse_call_convention, parse_attributes)
14016 (parse_function_types, parse_function_args)
14017 (parse_type, parse_identifier, call_convention_p)
14018 (d_parse_symbol): New functions.
14019 (d_demangle): Use d_parse_symbol to demangle D symbols.
14020
94b1b47e
IB
140212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14022
14023 * d-lang.h (struct builtin_d_type): New data type.
14024 (builtin_d_type): Add declaration.
14025 * d-lang.c (d_language_arch_info, build_d_types)
14026 (builtin_d_type): New functions.
14027 (enum d_primitive_types): New data type.
14028 (d_language_defn): Change c_language_arch_info to
14029 d_language_arch_info.
14030 (d_type_data): New static variable.
14031 (_initialize_d_language): Initialize d_type_data.
14032
63778547
IB
140332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14034
14035 * d-lang.h (d_main_name): Add declaration.
14036 * d-lang.c (d_main_name): New function.
14037 * symtab.c (find_main_name): Add call to d_main_name.
14038
3271ba66
IB
140392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14040
14041 * d-lang.c (d_language_defn): Change macro_expansion_c to
14042 macro_expansion_no.
14043
d36b3012
IB
140442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14045
14046 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14047
c90a6fb7
SDJ
140482014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14049
14050 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14051 gdb_exception" declaration.
14052 * remote.c (getpkt_or_notif_sane): Likewise.
14053
749234e5
DE
140542014-01-17 Doug Evans <dje@google.com>
14055
14056 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14057 function, contents of dirnames_to_char_ptr_vec_append moved here.
14058 (delim_string_to_char_ptr_vec): New function.
14059 (dirnames_to_char_ptr_vec_append): Rewrite.
14060 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14061
df049a58
DE
140622014-01-17 Doug Evans <dje@google.com>
14063
14064 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14065 and moved here ...
14066 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14067 #include "common-utils.h".
14068 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14069 * common/vec.h (VEC_ASSERT_PASS): Update.
14070 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14071 (MACH_CHECK_ERROR): Update.
14072
69f97648
SM
140732014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14074
14075 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14076 comments.
14077 * gdbarch.h: Regenerate.
14078
98b1cfdc
TT
140792014-01-16 Tom Tromey <tromey@redhat.com>
14080
14081 * value.c (struct value) <regnum>: Move earlier.
14082
77a19445
TT
140832014-01-16 Tom Tromey <tromey@redhat.com>
14084
14085 * remote.c (extended_remote_create_inferior): Rename from
14086 extended_remote_create_inferior_1. Add "ops" argument. Remove
14087 old implementation.
14088
62261490
PA
140892014-01-16 Pedro Alves <palves@redhat.com>
14090
14091 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14092 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14093 the backchain.
14094
4d65956b
DE
140952014-01-16 Doug Evans <dje@google.com>
14096
14097 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14098
52834460
MM
140992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14100
14101 * btrace.h (btrace_thread_flag): New.
14102 (struct btrace_thread_info) <flags>: New.
14103 * record-btrace.c (record_btrace_resume_thread)
14104 (record_btrace_find_thread_to_move, btrace_step_no_history)
14105 (btrace_step_stopped, record_btrace_start_replaying)
14106 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14107 (record_btrace_find_resume_thread): New.
14108 (record_btrace_resume, record_btrace_wait): Extend.
14109 (record_btrace_can_execute_reverse): New.
14110 (record_btrace_open): Fail in non-stop mode.
14111 (record_btrace_set_replay): Split into this, ...
14112 (record_btrace_stop_replaying): ... this, ...
14113 (record_btrace_clear_histories): ... and this.
14114 (init_record_btrace_ops): Init to_can_execute_reverse.
14115 * NEWS: Announce it.
14116
118e6252
MM
141172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14118
14119 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14120 (forward_target_decr_pc_after_break)
14121 (target_decr_pc_after_break): New.
14122 * target.c (forward_target_decr_pc_after_break)
14123 (target_decr_pc_after_break): New.
14124 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14125 instead of gdbarch_decr_pc_after_break.
14126 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14127 instead of gdbarch_decr_pc_after_break.
14128 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14129 instead of gdbarch_decr_pc_after_break.
14130 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14131 instead of gdbarch_decr_pc_after_break.
14132 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14133 instead of gdbarch_decr_pc_after_break.
14134 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14135 instead of gdbarch_decr_pc_after_break.
14136
6e07b1d2
MM
141372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14138
14139 * btrace.c: Include regcache.h.
14140 (btrace_add_pc): New.
14141 (btrace_enable): Call btrace_add_pc.
14142 (btrace_is_empty): New.
14143 * btrace.h (btrace_is_empty): New.
14144 * record-btrace.c (require_btrace, record_btrace_info): Call
14145 btrace_is_empty.
14146
969c39fb
MM
141472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14148
14149 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14150 Support delta reads.
14151 (linux_disable_btrace): Change return type.
14152 * common/linux-btrace.h (linux_read_btrace): Change parameters
14153 and return type to allow error reporting. Update users.
14154 (linux_disable_btrace): Change return type. Update users.
14155 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14156 New.
14157 (btrace_error): New.
14158 (btrace_block) <begin>: Comment on BEGIN == 0.
14159 * btrace.c (btrace_compute_ftrace): Start from the end of
14160 the current trace.
14161 (btrace_stitch_trace, btrace_clear_history): New.
14162 (btrace_fetch): Read delta trace, return if replaying.
14163 (btrace_clear): Move clear history code to btrace_clear_history.
14164 (parse_xml_btrace): Throw an error if parsing failed.
14165 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14166 and return type to allow error reporting.
14167 (target_read_btrace): Change parameters and return type to allow
14168 error reporting.
14169 * target.c (target_read_btrace): Update.
14170 * remote.c (remote_read_btrace): Support delta reads. Pass
14171 errors on.
14172 * NEWS: Announce it.
14173
0b722aec
MM
141742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14175
14176 * record.h (record_btrace_frame_unwind)
14177 (record_btrace_tailcall_frame_unwind): New declarations.
14178 * dwarf2-frame: Include record.h
14179 (dwarf2_frame_cfa): Throw an error for btrace frames.
14180 * record-btrace.c: Include hashtab.h.
14181 (btrace_get_bfun_name): New.
14182 (btrace_call_history): Call btrace_get_bfun_name.
14183 (struct btrace_frame_cache): New.
14184 (bfcache): New.
14185 (bfcache_hash, bfcache_eq, bfcache_new): New.
14186 (btrace_get_frame_function): New.
14187 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14188 (record_btrace_frame_this_id): Compute own id.
14189 (record_btrace_frame_prev_register): Provide PC, throw_error
14190 for all other registers.
14191 (record_btrace_frame_sniffer): Detect btrace frames.
14192 (record_btrace_tailcall_frame_sniffer): New.
14193 (record_btrace_frame_dealloc_cache): New.
14194 (record_btrace_frame_unwind): Add new functions.
14195 (record_btrace_tailcall_frame_unwind): New.
14196 (_initialize_record_btrace): Allocate cache.
14197 * btrace.c (btrace_clear): Call reinit_frame_cache.
14198 * NEWS: Announce it.
14199
066ce621
MM
142002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14201
14202 * record-btrace.c (record_btrace_set_replay)
14203 (record_btrace_goto_begin, record_btrace_goto_end)
14204 (record_btrace_goto): New.
14205 (init_record_btrace_ops): Initialize them.
14206 * NEWS: Announce it.
14207
e2887aa3
MM
142082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14209
14210 * record-btrace.c (record_btrace_find_new_threads)
14211 (record_btrace_thread_alive): New.
14212 (init_record_btrace_ops): Initialize to_find_new_threads and
14213 to_thread_alive.
14214
b2f4cfde
MM
142152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14216
14217 * record-btrace.c (record_btrace_resume): New.
14218 (record_btrace_wait): New.
14219 (init_record_btrace_ops): Initialize to_wait and to_resume.
14220
633785ff
MM
142212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14222
14223 * record-btrace.c (record_btrace_xfer_partial)
14224 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14225 (record_btrace_allow_memory_access): New.
14226 (init_record_btrace_ops): Initialize new methods.
14227 * target.c (raw_memory_xfer_partial): Bail out if target reports
14228 that this memory is not available.
14229
3db08215
MM
142302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14231
14232 * target.h (target_ops) <to_insert_breakpoint>
14233 <to_remove_breakpoint>: Add target_ops parameter.
14234 (forward_target_insert_breakpoint): New.
14235 (forward_target_remove_breakpoint): New.
14236 (memory_remove_breakpoint, memory_insert_breakpoint):
14237 Add target_ops parameter.
14238 * target.c (target_insert_breakpoint): Split into this and ...
14239 (forward_target_insert_breakpoint): ... this.
14240 (target_remove_breakpoint): Split into this and ...
14241 (forward_target_remove_breakpoint): ... this.
14242 (debug_to_insert_breakpoint): Add target_ops parameter.
14243 Call forward_target_insert_breakpoint.
14244 (debug_to_remove_breakpoint): Add target_ops parameter.
14245 Call forward_target_remove_breakpoint.
14246 (update_current_target): Do not inherit or default to_insert_breakpoint
14247 and to_remove_breakpoint.
14248 * corelow.c (ignore): Add target_ops parameter.
14249 * exec.c (ignore): Add target_ops parameter.
14250 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14251 Add target_ops parameter.
14252 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14253 Add target_ops parameter.
14254 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14255 Add target_ops parameter.
14256 * record-full.c (record_full_beneath_to_insert_breakpoint)
14257 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14258 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14259 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14260 (record_full_core_remove_breakpoint): Add target_ops parameter.
14261 Update users.
14262 (record_full_beneath_to_insert_breakpoint_ops)
14263 (record_full_beneath_to_remove_breakpoint_ops)
14264 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14265 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14266 tmp_to_remove_breakpoint_ops,
14267 record_full_beneath_to_insert_breakpoint_ops, and
14268 record_full_beneath_to_remove_breakpoint_ops.
14269 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14270 (m32r_remove_breakpoint): Add target_ops parameter.
14271 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14272 Add target_ops parameter.
14273 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14274 Add target_ops parameter.
14275
cecac1ab
MM
142762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14277 Markus Metzger <markus.t.metzger@intel.com>
14278
14279 * record-btrace.c: Include frame-unwind.h.
14280 (record_btrace_frame_unwind_stop_reason)
14281 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14282 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14283 New.
14284 (init_record_btrace_ops): Install it.
14285
824344ca
MM
142862014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14287
14288 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14289 get_prev_frame_1.
14290
32261e52
MM
142912014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14292
14293 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14294 earlier.
14295
ea001bdc
MM
142962014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14297
14298 * frame-unwind.c: Include target.h.
14299 (frame_unwind_try_unwinder): New function with code from ...
14300 (frame_unwind_find_by_frame): ... here. New variable
14301 unwinder_from_target, call also target_get_unwinder)
14302 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14303 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14304 * target.h (struct target_ops): New fields to_get_unwinder and
14305 to_get_tailcall_unwinder.
14306 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14307
1f3ef581
MM
143082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14309
14310 * record-btrace.c (record_btrace_fetch_registers)
14311 (record_btrace_store_registers)
14312 (record_btrace_to_prepare_to_store): New.
14313 (init_record_btrace_ops): Add the above.
14314
f32dbf8c
MM
143152014-01-16 Tom Tromey <tromey@redhat.com>
14316
14317 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14318 * target.h (struct target_ops) <to_prepare_to_store>: Add
14319 argument.
14320 (target_prepare_to_store): Add argument.
14321 * target.c (debug_to_prepare_to_store): Add argument.
14322 (update_current_target): Update.
14323 * remote.c (remote_prepare_to_store): Add 'self' argument.
14324 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14325 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14326 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14327 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14328 argument.
14329 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14330 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14331 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14332 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14333 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14334
07bbe694
MM
143352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14336
14337 * btrace.h (replay) <replay>: New.
14338 (btrace_is_replaying): New.
14339 * btrace.c (btrace_clear): Free replay iterator.
14340 (btrace_is_replaying): New.
14341 * record-btrace.c (record_btrace_is_replaying): New.
14342 (record_btrace_info): Print insn number if replaying.
14343 (record_btrace_insn_history): Start at replay position.
14344 (record_btrace_call_history): Start at replay position.
14345 (init_record_btrace_ops): Init to_record_is_replaying.
14346
0688d04e
MM
143472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14348
14349 * record-btrace.c (record_btrace_insn_history_range): Include
14350 end.
14351 (record_btrace_insn_history_from): Adjust range.
14352 (record_btrace_call_history_range): Include
14353 end.
14354 (record_btrace_call_history_from): Adjust range.
14355 * NEWS: Announce changes.
14356
8710b709
MM
143572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14358
14359 * record.h (enum record_print_flag)
14360 <record_print_indent_calls>: New.
14361 * record.c (get_call_history_modifiers): Recognize /c modifier.
14362 (_initialize_record): Document /c modifier.
14363 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14364 Reorder fields. Optionally indent the function name. Update
14365 all users.
14366 * NEWS: Announce changes.
14367
d0fa7535
MM
143682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14369
14370 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14371
5de9129b
MM
143722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14373
14374 * btrace.c (ftrace_new_function): Start counting at one.
14375 * record-btrace.c (record_btrace_info): Adjust number of calls
14376 and insns.
14377 * NEWS: Announce it.
14378
7acbe133
MM
143792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14380
14381 * record-btrace.c (btrace_call_history_insn_range): Print
14382 insn range as [begin, end].
14383
23a7fe75
MM
143842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14385
14386 * btrace.h (struct btrace_func_link): New.
14387 (enum btrace_function_flag): New.
14388 (struct btrace_inst): Rename to ...
14389 (struct btrace_insn): ...this. Update all users.
14390 (struct btrace_func) <ibegin, iend>: Remove.
14391 (struct btrace_func_link): New.
14392 (struct btrace_func): Rename to ...
14393 (struct btrace_function): ...this. Update all users.
14394 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14395 (number, level, flags>: New.
14396 (struct btrace_insn_iterator): Rename to ...
14397 (struct btrace_insn_history): ...this.
14398 Update all users.
14399 (struct btrace_insn_iterator, btrace_call_iterator): New.
14400 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14401 (struct btrace_target_info) <begin, end, level>
14402 <insn_history, call_history>: New.
14403 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14404 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14405 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14406 (btrace_call_number, btrace_call_begin, btrace_call_end)
14407 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14408 (btrace_find_function_by_number, btrace_set_insn_history)
14409 (btrace_set_call_history): New.
14410 * btrace.c (btrace_init_insn_iterator)
14411 (btrace_init_func_iterator, compute_itrace): Remove.
14412 (ftrace_print_function_name, ftrace_print_filename)
14413 (ftrace_skip_file): Change
14414 parameter to const.
14415 (ftrace_init_func): Remove.
14416 (ftrace_debug): Use new btrace_function fields.
14417 (ftrace_function_switched): Also consider gaining and
14418 losing symbol information).
14419 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14420 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14421 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14422 New.
14423 (ftrace_new_function): Move. Remove debug print.
14424 (ftrace_update_lines, ftrace_update_insns): New.
14425 (ftrace_update_function): Check for call, ret, and jump.
14426 (compute_ftrace): Renamed to ...
14427 (btrace_compute_ftrace): ...this. Rewritten to compute call
14428 stack.
14429 (btrace_fetch, btrace_clear): Updated.
14430 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14431 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14432 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14433 (btrace_call_number, btrace_call_begin, btrace_call_end)
14434 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14435 (btrace_find_function_by_number, btrace_set_insn_history)
14436 (btrace_set_call_history): New.
14437 * record-btrace.c (require_btrace): Use new btrace thread
14438 info fields.
14439 (record_btrace_info, btrace_insn_history)
14440 (record_btrace_insn_history, record_btrace_insn_history_range):
14441 Use new btrace thread info fields and new iterator.
14442 (btrace_func_history_src_line): Rename to ...
14443 (btrace_call_history_src_line): ...this. Use new btrace
14444 thread info fields.
14445 (btrace_func_history): Rename to ...
14446 (btrace_call_history): ...this. Use new btrace thread info
14447 fields and new iterator.
14448 (record_btrace_call_history, record_btrace_call_history_range):
14449 Use new btrace thread info fields and new iterator.
14450
8372a7cb
MM
144512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14452
14453 * frame.h (frame_id_build_unavailable_stack_special): New.
14454 * frame.c (frame_id_build_unavailable_stack_special): New.
14455
c2170eef
MM
144562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14457
14458 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14459 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14460 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14461 to gdbarch.
14462 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14463 (i386_insn_is_jump, i386_jmp_p): New.
14464 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14465 insn_is_jump to gdbarch.
14466 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14467 * gdbarch.h: Regenerated.
14468 * gdbarch.c: Regenerated.
14469 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14470 (default_insn_is_jump): New.
14471 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14472 (default_insn_is_jump): New.
14473
864089d2
MM
144742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14475
14476 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14477 Change to ...
14478 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14479 (btrace_read_type) <btrace_read_new>: Change to ...
14480 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14481
ed9edfb5
MM
144822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14483
14484 * common/linux-btrace.c (linux_read_btrace): Free trace from
14485 previous iteration.
14486
fbcbc3fd
DE
144872014-01-15 Doug Evans <dje@google.com>
14488
14489 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14490 uint32_t.
14491
3d548a53
TT
144922014-01-15 Tom Tromey <tromey@redhat.com>
14493
14494 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14495 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14496 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14497 (set_objfile_main_name): New function.
14498 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14499 language_of_main>: New fields.
14500 (set_objfile_main_name): Declare.
14501 * symtab.c (find_main_name): Loop over objfiles to find the main
14502 name and language.
14503 (set_main_name): Now static.
14504 (get_main_info): Add comment.
14505 * symtab.h (set_main_name): Don't declare.
14506
32ac0d11
TT
145072014-01-15 Tom Tromey <tromey@redhat.com>
14508
14509 * symtab.c (main_progspace_key): New global.
14510 (struct main_info): New.
14511 (name_of_main, language_of_main): Remove.
14512 (get_main_info, main_info_cleanup): New function.
14513 (set_main_name, main_name, main_language): Use get_main_info.
14514 (_initialize_symtab): Initialize main_progspace_key.
14515
9e6c82ad
TT
145162014-01-15 Tom Tromey <tromey@redhat.com>
14517
14518 * dbxread.c (process_one_symbol): Update.
14519 * dwarf2read.c (read_partial_die): Update.
14520 * symfile.c (set_initial_language): Call main_language.
14521 * symtab.c (language_of_main): Now static.
14522 (set_main_name): Add 'lang' parameter.
14523 (find_main_name): Update.
14524 (main_language): New function.
14525 (symtab_observer_executable_changed): Update.
14526 * symtab.h (set_main_name): Update.
14527 (language_of_main): Remove.
14528 (main_language): Declare.
14529
6ef55de7
TT
145302014-01-15 Tom Tromey <tromey@redhat.com>
14531
14532 * symfile.c (init_entry_point_info): Use new "initialized" field.
14533 Update.
14534 * objfiles.h (struct entry_point) <initialized>: New field.
14535 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14536 (struct objfile) <ei>: ...here. Remove.
14537 * objfiles.c (entry_point_address_query): Update.
14538
53eddfa6
TT
145392014-01-15 Tom Tromey <tromey@redhat.com>
14540
14541 * objfiles.c (entry_point_address_query): Relocate entry point
14542 address.
14543 (objfile_relocate1): Do not relocate entry point address.
14544 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14545 <the_bfd_section_index>: New field.
14546 * symfile.c (init_entry_point_info): Find the entry point's
14547 section.
14548
d56e56aa
TT
145492014-01-15 Tom Tromey <tromey@redhat.com>
14550
14551 * solib-frv.c (enable_break): Use entry_point_address_query.
14552
33a97bbe
OJ
145532014-01-15 Omair Javaid <omair.javaid@linaro.org>
14554
14555 * NEWS: Add note on improved process record-replay on
14556 arm*-linux* targets.
14557
c6ec2b30
OJ
145582014-01-15 Omair Javaid <omair.javaid@linaro.org>
14559
14560 * arm-tdep.c (enum arm_record_result): New enum.
14561 (arm_record_unsupported_insn): New function.
14562 (arm_record_coproc_data_proc): Removed.
14563 (thumb2_record_ld_st_multiple): New function.
14564 (thumb2_record_ld_st_dual_ex_tbb): New function.
14565 (thumb2_record_data_proc_sreg_mimm): New function.
14566 (thumb2_record_ps_dest_generic): New function.
14567 (thumb2_record_branch_misc_cntrl): New function.
14568 (thumb2_record_str_single_data): New function.
14569 (thumb2_record_ld_mem_hints): New function.
14570 (thumb2_record_ld_word): New function.
14571 (thumb2_record_lmul_lmla_div): New function.
14572 (thumb2_record_decode_insn_handler): New function.
14573 (decode_insn): Add thumb32 instruction handlers.
14574
97dfe206
OJ
145752014-01-15 Omair Javaid <omair.javaid@linaro.org>
14576
14577 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14578 (struct arm_linux_record_tdep): Declare.
14579 (arm_canonicalize_syscall): New function.
14580 (arm_all_but_pc_registers_record): New function.
14581 (arm_linux_syscall_record): New function.
14582 (arm_linux_init_abi): Add syscall recording constructs.
14583 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14584 decoding. (arm_record_coproc_data_proc): Update arm syscall
14585 decoding.
14586 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14587 <arm_syscall_record>: New field.
14588 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14589 gdb_target_obs.
14590
9904a494
OJ
145912014-01-15 Omair Javaid <omair.javaid@linaro.org>
14592
14593 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14594 register for push instruction recording.
14595
f969241e
OJ
145962014-01-15 Omair Javaid <omair.javaid@linaro.org>
14597
14598 * arm-tdep.c (thumb_record_misc): Update to correct logical
14599 error while recording ldm, ldmia and pop instructions.
14600
bfbbec00
OJ
146012014-01-15 Omair Javaid <omair.javaid@linaro.org>
14602
14603 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14604
e40adcc9
PA
146052014-01-15 Pedro Alves <palves@redhat.com>
14606
14607 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14608 (go32_resume, go32_fetch_registers, store_register)
14609 (go32_store_registers, go32_prepare_to_store)
14610 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14611 (go32_create_inferior, go32_can_run, go32_terminal_init)
14612 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14613 declarations.
14614
b0a16e66
TT
146152014-01-15 Tom Tromey <tromey@redhat.com>
14616
14617 * target.h (async_callback_ftype): New typedef.
14618 (struct target_ops) <to_async>: Use it.
14619
bf7105a4
JB
146202014-01-15 Joel Brobecker <brobecker@adacore.com>
14621
14622 * python/py-value.c (get_field_type): Remove unnecessary curly
14623 braces for single-statement if block.
14624
a8f35c2e
JB
146252014-01-15 Joel Brobecker <brobecker@adacore.com>
14626
14627 * python/py-type.c (convert_field): Add missing empty line
14628 after declarations.
14629
bb4142cf
DE
146302014-01-14 Doug Evans <dje@google.com>
14631
14632 * symfile.h (expand_symtabs_matching): Renamed from
14633 expand_partial_symbol_names. Update prototype.
14634 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14635 * symfile.c (expand_symtabs_matching): Renamed from
14636 expand_partial_symbol_names. New args file_matcher, kind.
14637 Rename arg fun to symbol_matcher.
14638 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14639 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14640 ada_expand_partial_symbol_name.
14641 (ada_make_symbol_completion_list): Update to call
14642 expand_symtabs_matching.
14643 (ada_add_global_exceptions): Call expand_symtabs_matching.
14644 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14645 call map_symbol_filenames.
14646 * symtab.c (sources_info): Update to call map_symbol_filenames.
14647 (search_symbols): Call expand_symtabs_matching.
14648 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14649 (default_make_symbol_completion_list_break_on): Update to call
14650 expand_symtabs_matching.
14651 (make_source_files_completion_list): Update to call
14652 map_symbol_filenames.
14653
206f2a57
DE
146542014-01-14 Doug Evans <dje@google.com>
14655
14656 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14657 (expand_symtabs_symbol_matcher_ftype): New typedef.
14658 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14659 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14660 * symfile.c (expand_partial_symbol_names): Update to use
14661 expand_symtabs_symbol_matcher_ftype.
14662 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14663 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14664 Arg name_matcher renamed to symbol_matcher.
14665 * psymtab.c (recursively_search_psymtabs): Update to use
14666 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14667 sym_matcher.
14668 (expand_symtabs_matching_via_partial): Update to use
14669 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14670 Arg name_matcher renamed to symbol_matcher.
14671
540c2971
DE
146722014-01-14 Doug Evans <dje@google.com>
14673
14674 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14675 (map_partial_symbol_filenames): Ditto.
14676 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14677 (map_partial_symbol_filenames): Ditto.
14678 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14679 (map_partial_symbol_filenames): Ditto.
14680 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14681 (map_partial_symbol_filenames): Ditto.
14682 * symtab.c: Delete #include "psymtab.h".
14683
8213266a
PA
146842014-01-14 Pedro Alves <palves@redhat.com>
14685 Tom Tromey <tromey@redhat.com>
14686
14687 * infrun.c (use_displaced_stepping): Use find_record_target
14688 instead of RECORD_IS_USED.
14689 (adjust_pc_after_break): Use record_full_is_used instead of
14690 RECORD_IS_USED.
14691 * record-btrace.c (record_btrace_open): Call record_preopen
14692 instead of checking RECORD_IS_USED.
14693 * record-full.c (record_full_shortname)
14694 (record_full_core_shortname): New globals.
14695 (record_full_is_used): New function.
14696 (find_full_open): Call record_preopen instead of checking
14697 RECORD_IS_USED.
14698 (init_record_full_ops): Set the target's shortname to
14699 record_full_shortname.
14700 (init_record_full_core_ops): Set the target's shortname to
14701 record_full_core_shortname.
14702 * record-full.h (record_full_is_used): Declare.
14703 * record.c (find_record_target): Make extern.
14704 (record_preopen): New function.
14705 * record.h (RECORD_IS_USED): Delete macro.
14706 (find_record_target, record_preopen): Declare functions.
14707
7ec1862d
YQ
147082014-01-14 Yao Qi <yao@codesourcery.com>
14709
14710 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14711 'len''s type to ULONGEST.
14712 (core_xfer_shared_libraries_aix): Likewise.
14713 * gdbarch.c, gdbarch.h: Regenerated.
14714 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14715 Change type of 'len' to ULONGEST.
14716 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14717 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14718
dea80a27
YQ
147192014-01-14 Yao Qi <yao@codesourcery.com>
14720
14721 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14722 type of 'len' to ULONGEST.
14723 (linux_xfer_osdata_processgroups): Likewise.
14724 (linux_xfer_osdata_threads): Likewise.
14725 (linux_xfer_osdata_fds): Likewise.
14726 (linux_xfer_osdata_isockets): Likewise.
14727 (linux_xfer_osdata_shm): Likewise.
14728 (linux_xfer_osdata_sem): Likewise.
14729 (linux_xfer_osdata_msg): Likewise.
14730 (linux_common_xfer_osdata): Likewise.
14731 (struct osdata_type) <getter>: Likewise.
14732 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14733 the declaration.
14734
b55e14c7
YQ
147352014-01-14 Yao Qi <yao@codesourcery.com>
14736
14737 * target.h (target_xfer_partial_ftype): Update.
14738 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14739 ULONGEST.
14740 * aix-thread.c (aix_thread_xfer_partial): Change type of
14741 argument 'len' to ULONGEST.
14742 * auxv.c (procfs_xfer_auxv): Likewise.
14743 (ld_so_xfer_auxv): Likewise.
14744 (memory_xfer_auxv): Likewise.
14745 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14746 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14747 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14748 * corelow.c (core_xfer_partial): Likewise.
14749 * ctf.c (ctf_xfer_partial): Likewise.
14750 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14751 '%u'.
14752 (darwin_read_dyld_info): Likewise.
14753 (darwin_xfer_partial): Likewise.
14754 * exec.c (section_table_xfer_memory_partial): Likewise.
14755 (exec_xfer_partial): Likewise.
14756 * exec.h (section_table_xfer_memory_partial): Update
14757 declaration.
14758 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14759 instead of plongest.
14760 (gnu_xfer_partial): Likewise.
14761 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14762 (ia64_hpux_xfer_solib_got): Likewise.
14763 (ia64_hpux_xfer_partial): Likewise.
14764 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14765 * inf-ptrace.c (inf_ptrace_xfer_partial):
14766 * inf-ttrace.c (inf_ttrace_xfer_partial):
14767 * linux-nat.c (linux_xfer_siginfo): Likewise.
14768 (linux_nat_xfer_partial): Likewise.
14769 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14770 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14771 * monitor.c (monitor_xfer_memory): Likewise.
14772 (monitor_xfer_partial): Likewise.
14773 * procfs.c (procfs_xfer_partial): Likewise.
14774 * record-full.c (record_full_xfer_partial): Likewise.
14775 (record_full_core_xfer_partial): Likewise.
14776 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14777 instead of plongest.
14778 (gdbsim_xfer_partial): Likewise.
14779 * remote.c (remote_xfer_partial): Likewise.
14780 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14781 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14782 declaration.
14783 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14784 (rs6000_xfer_shared_libraries): Likewise.
14785 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14786 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14787 (sparc_xfer_partial): Likewise.
14788 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14789 (spu_xfer_partial): Likewise.
14790 * spu-multiarch.c (spu_xfer_partial): Likewise.
14791 * target.c (target_read_live_memory): Likewise.
14792 (memory_xfer_live_readonly_partial): Likewise.
14793 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14794 (target_xfer_partial, default_xfer_partial): Likewise.
14795 (current_xfer_partial): Likewise.
14796 * tracepoint.c (tfile_xfer_partial): Likewise.
14797 * windows-nat.c (windows_xfer_memory): Likewise. Call
14798 pulongest instead of plongest.
14799 (windows_xfer_partial): Likewise.
14800 (windows_xfer_shared_libraries): Likewise.
14801
05804640
YQ
148022014-01-14 Yao Qi <yao@codesourcery.com>
14803
14804 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14805 target_xfer_partial_ftype.
14806
b5b08fb4
SC
148072014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14808
14809 PR python/15464
14810 PR python/16113
14811 * valops.c (value_struct_elt_bitpos): New function
14812 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14813 object to 'None' if the field name is an empty string ("").
14814 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14815 attribute to look for a field when 'name' is 'None'.
14816 (get_field_type): New function
14817
13aaf454
DE
148182014-01-13 Doug Evans <dje@google.com>
14819
14820 PR symtab/16426
14821 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14822 (try_open_dwop_file): Ditto.
14823 * gdb_bfd.c: #include "vec.h".
14824 (bfdp): New typedef.
14825 (struct gdb_bfd_data): New member included_bfds.
14826 (gdb_bfd_unref): Unref all included bfds.
14827 (gdb_bfd_record_inclusion): New function.
14828 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14829
c2cec97c
TT
148302014-01-13 Tom Tromey <tromey@redhat.com>
14831
14832 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14833
78e5999d
TT
148342014-01-13 Tom Tromey <tromey@redhat.com>
14835
14836 * defs.h (use_windows): Remove.
14837 * gdb.c (main): Update.
14838 * main.c (captured_main, gdb_main): Update.
14839 * main.h (struct captured_main_args) <use_windows>: Remove.
14840 * top.c (use_windows): Remove.
14841
f2052bbe
TT
148422014-01-13 Tom Tromey <tromey@redhat.com>
14843
14844 * defs.h (deprecated_flush_hook): Remove.
14845
fde4f8ed
JK
148462014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14847
14848 PR threads/16216
14849 * linux-thread-db.c (try_thread_db_load): Add parameter
14850 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14851 (try_thread_db_load_from_pdir_1): Move it there from here.
14852 (try_thread_db_load_from_sdir): Update caller.
14853 (try_thread_db_load_from_dir): Move it there from here.
14854
bdf61915
PP
148552014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14856
14857 * regformats/regdat.sh: Always rewrite the register file.
14858
f71e1a8d
PA
148592014-01-13 Pedro Alves <palves@redhat.com>
14860
14861 * Makefile.in (CHECK_HEADERS): New variable.
14862 (check-headers:): New rule.
14863
42c85435
TT
148642014-01-13 Tom Tromey <tromey@redhat.com>
14865
14866 * cli/cli-setshow.c (do_set_command): Update.
14867 * defs.h (deprecated_set_hook): Remove.
14868 * top.c (deprecated_set_hook): Remove.
14869
f8de5129
PA
148702014-01-13 Pedro Alves <palves@redhat.com>
14871
14872 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14873 the tracepoint if the PC is a pseudo-register.
14874
fc270c35
TT
148752014-01-13 Tom Tromey <tromey@redhat.com>
14876
14877 * defs.h (XCALLOC): Remove.
14878 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14879 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14880 * dwarf2loc.c (allocate_piece_closure): Likewise.
14881 * elfread.c (elf_symfile_segments): Likewise.
14882 (elf_symfile_segments): Likewise.
14883 * gdbtypes.c (copy_type_recursive): Likewise.
14884 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14885 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14886 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14887 XCALLOC.
14888 * mt-tdep.c (mt_gdbarch_init): Likewise.
14889 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14890 XCALLOC.
14891 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14892 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14893 * registry.c (registry_alloc_data): Likewise.
14894 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14895 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14896 * serial.c (serial_fdopen_ops): Likewise.
14897 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14898 XCALLOC.
14899 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14900 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14901 not XCALLOC.
14902
70ba0933
TT
149032014-01-13 Tom Tromey <tromey@redhat.com>
14904
14905 * defs.h (XMALLOC): Remove.
14906 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14907 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14908 * cli-out.c (struct ui_out *): Likewise.
14909 * cli/cli-dump.c (add_dump_command): Likewise.
14910 (add_dump_command): Likewise.
14911 * complaints.c (get_complaints): Likewise.
14912 (find_complaint): Likewise.
14913 * dwarf2-frame.c (execute_cfa_program): Likewise.
14914 * dwarf2read.c (abbrev_table_read_table): Likewise.
14915 * gdbarch.sh: Likewise.
14916 * gdbarch.c: Rebuild.
14917 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14918 * interps.c (interp_new): Likewise.
14919 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14920 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14921 * mi/mi-console.c (mi_console_file_new): Likewise.
14922 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14923 * mi/mi-out.c (mi_out_new): Likewise.
14924 * mi/mi-parse.c (mi_parse): Likewise.
14925 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14926 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14927 * observer.c (xalloc_observer_list_node): Likewise.
14928 * regcache.c (regcache_xmalloc_1): Likewise.
14929 * reggroups.c (reggroup_new): Likewise.
14930 (_initialize_reggroup): Likewise.
14931 * registry.c (register_data_with_cleanup): Likewise.
14932 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14933 * ser-base.c (serial_ttystate): Likewise.
14934 * ser-mingw.c (make_pipe_state): Likewise.
14935 * ser-pipe.c (pipe_open): Likewise.
14936 * serial.c (serial_open): Likewise.
14937 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14938 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14939 (tui_alloc_win_info): Likewise.
14940 (tui_add_content_elements): Likewise.
14941 * tui/tui-file.c (tui_file_new): Likewise.
14942 * tui/tui-out.c (tui_out_new): Likewise.
14943 * ui-file.c (mem_file_new): Likewise.
14944 * ui-out.c (push_level): Likewise.
14945 (make_cleanup_ui_out_end): Likewise.
14946 (append_header_to_list): Likewise.
14947 (ui_out_new): Likewise.
14948 * user-regs.c (user_reg_add_builtin): Likewise.
14949
41bf6aca
TT
149502014-01-13 Tom Tromey <tromey@redhat.com>
14951
14952 * defs.h (XZALLOC): Remove.
14953 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14954 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14955 (get_ada_tasks_inferior_data): Likewise.
14956 * auto-load.c (get_auto_load_pspace_data): Likewise.
14957 * auxv.c (get_auxv_inferior_data): Likewise.
14958 * bfd-target.c (target_bfd_reopen): Likewise.
14959 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14960 (deprecated_insert_raw_breakpoint): Likewise.
14961 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14962 * corelow.c (core_open): Likewise.
14963 * darwin-nat.c (darwin_check_new_threads): Likewise.
14964 (darwin_attach_pid): Likewise.
14965 * dummy-frame.c (dummy_frame_push): Likewise.
14966 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14967 * dwarf2loc.c (allocate_piece_closure): Likewise.
14968 * elfread.c (elf_symfile_segments): Likewise.
14969 * eval.c (ptrmath_type_p): Likewise.
14970 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14971 * gdbtypes.c (alloc_type_arch): Likewise.
14972 (alloc_type_instance): Likewise.
14973 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14974 * inf-child.c (inf_child_can_use_agent): Likewise.
14975 * inflow.c (get_inflow_inferior_data): Likewise.
14976 * infrun.c (save_infcall_suspend_state): Likewise.
14977 * jit.c (jit_reader_load): Likewise.
14978 (get_jit_objfile_data): Likewise.
14979 (get_jit_program_space_data): Likewise.
14980 (jit_object_open_impl): Likewise.
14981 (jit_symtab_open_impl): Likewise.
14982 (jit_block_open_impl): Likewise.
14983 (jit_frame_sniffer): Likewise.
14984 * linux-fork.c (add_fork): Likewise.
14985 * maint.c (make_command_stats_cleanup): Likewise.
14986 * objfiles.c (get_objfile_pspace_data): Likewise.
14987 * opencl-lang.c (struct lval_closure): Likewise.
14988 * osdata.c (osdata_start_osdata): Likewise.
14989 * progspace.c (new_address_space): Likewise.
14990 (add_program_space): Likewise.
14991 * remote-sim.c (get_sim_inferior_data): Likewise.
14992 * sh-tdep.c (sh_gdbarch_init): Likewise.
14993 * skip.c (Ignore): Likewise.
14994 (skip_delete_command): Likewise.
14995 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14996 (library_list_start_library): Likewise.
14997 (solib_aix_current_sos): Likewise.
14998 * solib-darwin.c (get_darwin_info): Likewise.
14999 (darwin_current_sos): Likewise.
15000 * solib-dsbt.c (get_dsbt_info): Likewise.
15001 * solib-ia64-hpux.c (new_so_list): Likewise.
15002 (ia64_hpux_get_solib_linkage_addr): Likewise.
15003 * solib-spu.c (append_ocl_sos): Likewise.
15004 (spu_current_sos): Likewise.
15005 * solib-svr4.c (get_svr4_info): Likewise.
15006 (svr4_keep_data_in_core): Likewise.
15007 (library_list_start_library): Likewise.
15008 (svr4_default_sos): Likewise.
15009 (svr4_read_so_list): Likewise.
15010 * solib-target.c (library_list_start_library): Likewise.
15011 (solib_target_current_sos): Likewise.
15012 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15013 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15014 * symfile.c (default_symfile_segments): Likewise.
15015 * target-descriptions.c (tdesc_data_init): Likewise.
15016 (tdesc_create_reg): Likewise.
15017 (struct tdesc_type *): Likewise.
15018 (tdesc_create_vector): Likewise.
15019 (tdesc_set_struct_size): Likewise.
15020 (struct tdesc_type *): Likewise.
15021 (tdesc_free_feature): Likewise.
15022 (tdesc_create_feature): Likewise.
15023 * windows-nat.c (windows_add_thread): Likewise.
15024 (windows_make_so): Likewise.
15025 * xml-support.c (gdb_xml_body_text): Likewise.
15026 (gdb_xml_create_parser_and_cleanup): Likewise.
15027 (xml_process_xincludes): Likewise.
15028 * xml-syscall.c (allocate_syscalls_info): Likewise.
15029 (syscall_create_syscall_desc): Likewise.
15030
5acfdbae
SDJ
150312014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15032
15033 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15034 function, with code from i386_stap_parse_special_token.
15035 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15036 (i386_stap_parse_special_token): Move code to the two functions
15037 above; simplify it.
15038
0000e5cc
PA
150392014-01-09 Pedro Alves <palves@redhat.com>
15040 Hui Zhu <hui@codesourcery.com>
15041
15042 PR gdb/16101
15043 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15044 bp_err_string. Don't mark the location shlib_disabled if the
15045 error thrown wasn't a generic or memory error. Catch errors
15046 thrown while inserting breakpoints in overlayed code. Output
15047 error message of software breakpoints.
15048 * remote.c (remote_insert_breakpoint): If this breakpoint has
15049 target-side commands but this stub doesn't support Z0 packets,
15050 throw NOT_SUPPORTED_ERROR error.
15051 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15052 * target.h (target_insert_breakpoint): Extend comment.
15053 (target_insert_hw_breakpoint): Add comment.
15054
b7ea362b
PA
150552014-01-08 Pedro Alves <palves@redhat.com>
15056
15057 * remote.c (remote_add_thread): Add threads silently if starting
15058 up.
15059 (remote_notice_new_inferior): If in all-stop, and starting up,
15060 don't call notice_new_inferior.
15061 (get_current_thread): New function, factored out from ...
15062 (add_current_inferior_and_thread): ... this. Adjust.
15063 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15064 found any thread, then select the remote's current thread as GDB's
15065 current thread too.
15066
b7bba001
JB
150672014-01-08 Joel Brobecker <brobecker@adacore.com>
15068
15069 * NEWS: Create a new section for the next release branch.
15070 Rename the section of the current branch, now that it has
15071 been cut.
15072
16dfbded
JB
150732014-01-08 Joel Brobecker <brobecker@adacore.com>
15074
15075 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15076 * version.in: Bump version to 7.7.50.DATE-cvs.
15077
22c90ac1
YQ
150782014-01-08 Yao Qi <yao@codesourcery.com>
15079
15080 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15081 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15082 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15083
d64ad97c
YQ
150842014-01-08 Yao Qi <yao@codesourcery.com>
15085
15086 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15087 return value of bfd_get_filename to symbol_file_add_from_bfd.
15088
f93ba80c
PM
150892014-01-08 Pierre Muller <muller@sourceware.org>
15090
15091 Fix PR16201.
15092 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15093 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15094 to prim_record_mininal_symbol_and_info.
15095 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15096 in call to prim_record_minimal_symbol_and_info.
15097 (read_pe_exported_syms): Set index field of section_data.
15098
a4d9ba85
AP
150992014-01-07 Andrew Pinski <apinski@cavium.com>
15100
15101 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15102 * features/aarch64.c: Regenerate.
15103
1b67eb02
AS
151042014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15105
15106 * target.c (return_null): Define.
15107 (update_current_target): Use it instead of return_zero for
15108 functions that return a pointer.
15109
5e3f4fab
EBM
151102014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15111
15112 * source.c (add_path): Fix check for duplicated paths in the previously
15113 included paths.
15114
e2616788
HK
151152014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15116
15117 * ada-lang.c: Remove duplicated include statements.
15118 * alphabsd-nat.c: Ditto.
15119 * amd64-darwin-tdep.c: Ditto.
15120 * amd64fbsd-nat.c: Ditto.
15121 * auto-load.c: Ditto.
15122 * ax-gdb.c: Ditto.
15123 * breakpoint.c: Ditto.
15124 * dbxread.c: Ditto.
15125 * fork-child.c: Ditto.
15126 * gdb_usleep.c: Ditto.
15127 * i386-darwin-tdep.c: Ditto.
15128 * i386fbsd-nat.c: Ditto.
15129 * infcmd.c: Ditto.
15130 * inferior.c: Ditto.
15131 * jv-lang.c: Ditto.
15132 * linux-nat.c: Ditto.
15133 * linux-tdep.c: Ditto.
15134 * m68kbsd-nat.c: Ditto.
15135 * m68klinux-nat.c: Ditto.
15136 * microblaze-tdep.c: Ditto.
15137 * mips-linux-tdep.c: Ditto.
15138 * mn10300-tdep.c: Ditto.
15139 * nto-tdep.c: Ditto.
15140 * opencl-lang.c: Ditto.
15141 * osdata.c: Ditto.
15142 * printcmd.c: Ditto.
15143 * regcache.c: Ditto.
15144 * remote-m32r-sdi.c: Ditto.
15145 * remote.c: Ditto.
15146 * symfile.c: Ditto.
15147 * symtab.c: Ditto.
15148 * tilegx-linux-nat.c: Ditto.
15149 * tilegx-tdep.c: Ditto.
15150 * tracepoint.c: Ditto.
15151 * valops.c: Ditto.
15152 * vaxbsd-nat.c: Ditto.
15153 * windows-nat.c: Ditto.
15154 * xtensa-tdep.c: Ditto.
15155
bd1f7788
YQ
151562014-01-07 Yao Qi <yao@codesourcery.com>
15157
15158 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15159
79301218
JB
151602014-01-07 Yao Qi <yao@codesourcery.com>
15161 Joel Brobecker <brobecker@adacore.com>
15162
15163 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15164 (pdc_write_regs): Likewise.
15165 (fetch_regs_kernel_thread): Likewise.
15166 (store_regs_kernel_thread): Likewise.
15167
151682014-01-07 Joel Brobecker <brobecker@adacore.com>
15169
15170 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15171 tagged type objects to their actual type.
15172
8e355c5d
JB
151732014-01-07 Joel Brobecker <brobecker@adacore.com>
15174
15175 * ada-valprint.c (print_field_values): Add "language" parameter.
15176 Update calls to print_field_values and print_variant_part.
15177 Pass new parameter "language" in call to val_print instead
15178 of "current_language". Replace call to ada_val_print by call
15179 to val_print.
15180 (print_variant_part): Add "language" parameter.
15181 (ada_val_print_struct_union): Update call to print_field_values.
15182
4fbf5aa5
JB
151832014-01-07 Joel Brobecker <brobecker@adacore.com>
15184
15185 * ada-valprint.c (ui_memcpy): Delete.
15186 (ada_print_floating): Update documentation. Add empty line
15187 between between function documentation and implementation.
15188 Delete variable "buffer". Use ui_file_xstrdup in place of
15189 ui_file_put. Minor adjustments following this change.
15190
71855601
JB
151912014-01-07 Joel Brobecker <brobecker@adacore.com>
15192
15193 * ada-valprint.c (ada_val_print_string): New function,
15194 extracted from ada_val_print_array.
15195 (ada_val_print_array): Replace extracted code by call
15196 to ada_val_print_string followed by a return. Move
15197 "else" branch to the function's top block.
15198
4eb27a30
JB
151992014-01-07 Joel Brobecker <brobecker@adacore.com>
15200
15201 * ada-valprint.c (ada_val_print_array): Move implementation
15202 down. Rename parameter "offset" and "val" into "offset_aligned"
15203 and "original_value" respectively. Add parameter "offset".
15204
34b27950
JB
152052014-01-07 Joel Brobecker <brobecker@adacore.com>
15206
15207 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15208 re-organizing the code. Change the "???" message printed
15209 when target type is a TYPE_CODE_UNDEF into
15210 "<ref to undefined type>".
15211
079e4591
JB
152122014-01-07 Joel Brobecker <brobecker@adacore.com>
15213
15214 * ada-valprint.c (print_record): Delete, implementation inlined...
15215 (ada_val_print_struct_union): ... here. Remove call to
15216 ada_check_typedef in inlined implementation.
15217
8004dfd1
JB
152182014-01-07 Joel Brobecker <brobecker@adacore.com>
15219
15220 * ada-valprint.c (ada_val_print_gnat_array): New function,
15221 extracted from ada_val_print_1;
15222 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15223 (ada_val_print_flt, ada_val_print_struct_union)
15224 (ada_val_print_ref): Likewise.
15225 (ada_val_print_1): Delete variables i and elttype.
15226 Replace extracted-out code by call to corresponding
15227 new functions.
15228
760a2db0
JB
152292014-01-07 Joel Brobecker <brobecker@adacore.com>
15230
15231 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15232
3a92c861
JB
152332014-01-07 Joel Brobecker <brobecker@adacore.com>
15234
15235 * ada-valprint.c (ada_val_print_1): Replace calls to
15236 ada_val_print_1 by calls to val_print.
15237
cd1630f9
JB
152382014-01-07 Joel Brobecker <brobecker@adacore.com>
15239
15240 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15241 Update calls to self accordingly. Replace calls to c_val_print
15242 by calls to val_print.
15243
bdf779a0
JB
152442014-01-07 Joel Brobecker <brobecker@adacore.com>
15245
15246 * ada-valprint.c (print_record): Delete declaration.
15247 (adjust_type_signedness, ada_val_print_1): Likewise.
15248 (ada_val_print): Move function implementation down.
15249 (print_variant_part, print_field_values, print_record):
15250 Move function implementation up.
15251
c0d48811
JB
152522014-01-07 Joel Brobecker <brobecker@adacore.com>
15253
15254 * python/py-type.c (typy_get_name): New function.
15255 (type_object_getset): Add entry for attribute "name".
15256 * NEWS: Add entry mentioning this new attribute.
15257
c26e9cbb
YQ
152582014-01-07 Yao Qi <yao@codesourcery.com>
15259
15260 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15261 statement.
15262
0cc6f43d
YQ
152632014-01-07 Yao Qi <yao@codesourcery.com>
15264
15265 * gnu-nat.c (info_port_rights): Add qualifier const to
15266 argument args.
15267
eec03155
YQ
152682014-01-07 Yao Qi <yao@codesourcery.com>
15269
15270 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15271
f04a82ef
YQ
152722014-01-07 Yao Qi <yao@codesourcery.com>
15273
15274 * gnu-nat.c (make_inf) Update declaration.
15275 (make_inf): Make it static.
15276 (inf_set_traced): Likewise.
15277 (inf_port_to_thread, inf_task_died_status): Likewise.
15278
d57dda0a
YQ
152792014-01-07 Yao Qi <yao@codesourcery.com>
15280
15281 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15282
3aa8c969
YQ
152832014-01-07 Yao Qi <yao@codesourcery.com>
15284
15285 * gnu-nat.c (_initialize_gnu_nat): Declare.
15286
94123b4f
YQ
152872014-01-07 Yao Qi <yao@codesourcery.com>
15288
15289 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15290 'enum bfd_endian'.
15291 (struct gdbarch_info) <byte_order>: Change type to
15292 'enum bfd_endian'.
15293 <byte_order_for_code>: Likewise.
15294 * gdbarch.c, gdbarch.h: Regenerated.
15295
dc81d70a
TT
152962014-01-06 Sasha Smundak <asmundak@google.com>
15297
15298 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15299
cc2f3c35
TT
153002014-01-06 Tom Tromey <tromey@redhat.com>
15301
15302 * doublest.c (convert_doublest_to_floatformat): Use const, not
15303 CONST.
15304 * somread.c (som_symtab_read): Likewise.
15305
adcf2eed
HZ
153062014-01-07 Hui Zhu <hui@codesourcery.com>
15307
15308 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15309 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15310 (gdb_bfd_fopen): Ditto.
15311 (gdb_bfd_openr): Ditto.
15312 (gdb_bfd_openw): Ditto.
15313 (gdb_bfd_openr_iovec): Ditto.
15314 (gdb_bfd_fdopenr): Ditto.
15315 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15316 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15317 with xstrdup.
15318 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15319 with xstrdup.
15320 * symfile-mem.c (symbol_file_add_from_memory): Removed
15321 gdb_bfd_stash_filename.
15322
50722198
DE
153232014-01-03 Doug Evans <dje@google.com>
15324
15325 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15326 output.
15327
2fa4b862
JB
153282014-01-01 Joel Brobecker <brobecker@adacore.com>
15329
15330 Update year range in copyright notice of all files.
15331
28498c42
JB
153322014-01-01 Joel Brobecker <brobecker@adacore.com>
15333
15334 * top.c (print_gdb_version): Set copyright year to 2014.
15335
7b6e1046
JB
153362014-01-01 Joel Brobecker <brobecker@adacore.com>
15337
15338 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15339
df96af55 15340For older changes see ChangeLog-2013.
c906108c
SS
15341\f
15342Local Variables:
15343mode: change-log
15344left-margin: 8
15345fill-column: 74
15346version-control: never
57da7796 15347coding: utf-8
c906108c 15348End:
This page took 2.633471 seconds and 4 git commands to generate.