Handling of empty Ada ranges with a negative upper bound.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
45e44d27
JB
12014-11-21 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
4 flag_unsigned if HIGH_BOUND is constant and negative.
5
7e7cbeb3
SDJ
62014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
7
8 PR breakpoints/10737
9 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
10 modifier from "struct gdbarch" when compiling without Expat (XML)
11 support.
12 (get_syscall_by_number): Likewise.
13 (get_syscall_by_name): Likewise.
14 (get_syscall_names): Likewise.
15
458c8db8
SDJ
162014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
17
18 PR breakpoints/10737
19 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
20 set_xml_syscall_file_name to provide gdbarch.
21 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
22 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
23 * breakpoint.c (print_it_catch_syscall): Adjust call to
24 get_syscall_by_number to provide gdbarch.
25 (print_one_catch_syscall): Likewise.
26 (print_mention_catch_syscall): Likewise.
27 (print_recreate_catch_syscall): Likewise.
28 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
29 and get_syscall_by_name to provide gdbarch.
30 (catch_syscall_completer): Adjust call to get_syscall_names to
31 provide gdbarch.
32 * gdbarch.c: Regenerate.
33 * gdbarch.h: Likewise.
34 * gdbarch.sh: Forward declare "struct syscalls_info".
35 (xml_syscall_file): New variable.
36 (syscalls_info): Likewise.
37 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
38 set_xml_syscall_file_name to provide gdbarch.
39 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
40 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
41 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
42 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
43 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
44 * xml-syscall.c: Include gdbarch.h.
45 (set_xml_syscall_file_name): Accept gdbarch parameter.
46 (get_syscall_by_number): Likewise.
47 (get_syscall_by_name): Likewise.
48 (get_syscall_names): Likewise.
49 (my_gdb_datadir): Delete global variable.
50 (struct syscalls_info) <my_gdb_datadir>: New variable.
51 (struct syscalls_info) <sysinfo>: Rename variable to
52 "syscalls_info".
53 (sysinfo): Delete global variable.
54 (have_initialized_sysinfo): Likewise.
55 (xml_syscall_file): Likewise.
56 (sysinfo_free_syscalls_desc): Rename to...
57 (syscalls_info_free_syscalls_desc): ... this.
58 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
59 code to the new layout of "struct syscalls_info".
60 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
61 "syscalls_info".
62 (syscall_create_syscall_desc): Likewise.
63 (syscall_start_syscall): Likewise.
64 (syscall_parse_xml): Likewise.
65 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
66 (init_sysinfo): Rename to...
67 (init_syscalls_info): ...this. Add gdbarch as a parameter.
68 Adjust function to deal with gdbarch.
69 (xml_get_syscall_number): Delete parameter sysinfo. Accept
70 gdbarch as a parameter. Adjust code.
71 (xml_get_syscall_name): Likewise.
72 (xml_list_of_syscalls): Likewise.
73 (set_xml_syscall_file_name): Accept gdbarch as parameter.
74 (get_syscall_by_number): Likewise.
75 (get_syscall_by_name): Likewise.
76 (get_syscall_names): Likewise.
77 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
78 (get_syscall_by_number): Likewise.
79 (get_syscall_by_name): Likewise.
80 (get_syscall_names): Likewise.
81
43f3e411
DE
822014-11-20 Doug Evans <xdje42@gmail.com>
83
84 Split struct symtab into two: struct symtab and compunit_symtab.
85 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
86 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
87 to "struct compunit_symtab *". All callers updated.
88 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
89 "struct symtab *" argument to "struct compunit_symtab *".
90 All callers updated.
91 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
92 result to "struct compunit_symtab *". All callers updated.
93 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
94 Change result to "struct compunit_symtab *". All callers updated.
95 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
96 hange type to "struct compunit_symtab *". All uses updated.
97 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
98 Change type to "struct compunit_symtab *". All uses updated.
99 * buildsym.c (struct buildsym_compunit): New struct.
100 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
101 (buildsym_compunit): New static global.
102 (finish_block_internal): Update to fetch objfile from
103 buildsym_compunit.
104 (make_blockvector): Delete objfile argument.
105 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
106 debugformat, producer.
107 (start_buildsym_compunit): New function.
108 (free_buildsym_compunit): Renamed from free_subfiles_list.
109 All callers updated.
110 (patch_subfile_names): Rewrite to use buildsym_compunit.
111 (get_compunit_symtab): New function.
112 (get_macro_table): Delete argument comp_dir. All callers updated.
113 (start_symtab): Change result to "struct compunit_symtab *".
114 All callers updated. Create the subfile of the main source file.
115 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
116 (reset_symtab_globals): Update.
117 (end_symtab_get_static_block): Update to use buildsym_compunit.
118 (end_symtab_without_blockvector): Rewrite.
119 (end_symtab_with_blockvector): Change result to
120 "struct compunit_symtab *". All callers updated.
121 Update to use buildsym_compunit. Don't set symtab->dirname,
122 instead set it in the compunit.
123 Explicitly make sure main symtab is first in its list.
124 Set debugformat, producer, blockvector, block_line_section, and
125 macrotable in the compunit.
126 (end_symtab_from_static_block): Change result to
127 "struct compunit_symtab *". All callers updated.
128 (end_symtab, end_expandable_symtab): Ditto.
129 (set_missing_symtab): Change symtab argument to
130 "struct compunit_symtab *". All callers updated.
131 (augment_type_symtab): Ditto.
132 (record_debugformat): Update to use buildsym_compunit.
133 (record_producer): Update to use buildsym_compunit.
134 * buildsym.h (struct subfile) <dirname>: Delete.
135 <producer, debugformat>: Delete.
136 <buildsym_compunit>: New member.
137 (get_compunit_symtab): Declare.
138 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
139 from primary_symtab. Change type to "struct compunit_symtab *".
140 All uses updated.
141 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
142 All callers updated.
143 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
144 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
145 symtab. Change type to "struct compunit_symtab *". All uses updated.
146 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
147 All callers updated.
148 (dw2_find_last_source_symtab): Ditto.
149 (dw2_lookup_symbol): Ditto.
150 (recursively_find_pc_sect_compunit_symtab): Renamed from
151 recursively_find_pc_sect_symtab. Change result to
152 "struct compunit_symtab *". All callers updated.
153 (dw2_find_pc_sect_compunit_symtab): Renamed from
154 dw2_find_pc_sect_symtab. Change result to
155 "struct compunit_symtab *". All callers updated.
156 (get_compunit_symtab): Renamed from get_symtab. Change result to
157 "struct compunit_symtab *". All callers updated.
158 (recursively_compute_inclusions): Change type of immediate_parent
159 argument to "struct compunit_symtab *". All callers updated.
160 (compute_compunit_symtab_includes): Renamed from
161 compute_symtab_includes. All callers updated. Rewrite to compute
162 includes of compunit_symtabs and not symtabs.
163 (process_full_comp_unit): Update to work with struct compunit_symtab.
164 (process_full_type_unit): Ditto.
165 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
166 (dwarf_decode_lines): Remove special case handling of main subfile.
167 (macro_start_file): Delete argument comp_dir. All callers updated.
168 (dwarf_decode_macro_bytes): Ditto.
169 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
170 use struct compunit_symtab.
171 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
172 * jit.c (finalize_symtab): Build compunit_symtab.
173 * jv-lang.c (get_java_class_symtab): Change result to
174 "struct compunit_symtab *". All callers updated.
175 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
176 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
177 comp_dir. Change type to "struct compunit_symtab *".
178 All uses updated.
179 (new_macro_table): Change comp_dir argument to cust,
180 "struct compunit_symtab *". All callers updated.
181 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
182 nr_primary_symtabs. All uses updated.
183 (count_symtabs_and_blocks): Update to handle compunits.
184 (report_command_stats): Update output, "primary symtabs" renamed to
185 "compunits".
186 * mdebugread.c (new_symtab): Change result to
187 "struct compunit_symtab *". All callers updated.
188 (parse_procedure): Change type of search_symtab argument to
189 "struct compunit_symtab *". All callers updated.
190 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
191 separate loop.
192 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
193 symtabs. Change type to "struct compunit_symtab *". All uses updated.
194 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
195 All uses updated.
196 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
197 All uses updated.
198 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
199 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
200 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
201 symtab. Change type to "struct compunit_symtab *". All uses updated.
202 * psymtab.c (psymtab_to_symtab): Change result type to
203 "struct compunit_symtab *". All callers updated.
204 (find_pc_sect_compunit_symtab_from_partial): Renamed from
205 find_pc_sect_symtab_from_partial. Change result type to
206 "struct compunit_symtab *". All callers updated.
207 (lookup_symbol_aux_psymtabs): Change result type to
208 "struct compunit_symtab *". All callers updated.
209 (find_last_source_symtab_from_partial): Ditto.
210 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
211 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
212 and macro_table from compunit.
213 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
214 type to "struct compunit_symtab *". All callers updated.
215 (debug_qf_lookup_symbol): Ditto.
216 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
217 debug_qf_find_pc_sect_symtab, change result type to
218 "struct compunit_symtab *". All callers updated.
219 * symfile.c (allocate_symtab): Delete objfile argument.
220 New argument cust.
221 (allocate_compunit_symtab): New function.
222 (add_compunit_symtab_to_objfile): New function.
223 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
224 Change result type to "struct compunit_symtab *". All uses updated.
225 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
226 Change result type to "struct compunit_symtab *". All uses updated.
227 * symmisc.c (print_objfile_statistics): Compute blockvector count in
228 separate loop.
229 (dump_symtab_1): Update test for primary source symtab.
230 (maintenance_info_symtabs): Update to handle compunit symtabs.
231 (maintenance_check_symtabs): Ditto.
232 * symtab.c (set_primary_symtab): Delete.
233 (compunit_primary_filetab): New function.
234 (compunit_language): New function.
235 (iterate_over_some_symtabs): Change type of arguments "first",
236 "after_last" to "struct compunit_symtab *". All callers updated.
237 Update to loop over symtabs in each compunit.
238 (error_in_psymtab_expansion): Rename symtab argument to cust,
239 and change type to "struct compunit_symtab *". All callers updated.
240 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
241 Change result type to "struct compunit_symtab *". All callers updated.
242 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
243 Change result type to "struct compunit_symtab *". All callers updated.
244 (find_pc_sect_line): Only loop over symtabs within selected compunit
245 instead of all symtabs in the objfile.
246 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
247 <compunit_symtab> New member.
248 <block_line_section>: Moved to compunit_symtab.
249 <locations_valid>: Ditto.
250 <epilogue_unwind_valid>: Ditto.
251 <macro_table>: Ditto.
252 <dirname>: Ditto.
253 <debugformat>: Ditto.
254 <producer>: Ditto.
255 <objfile>: Ditto.
256 <call_site_htab>: Ditto.
257 <includes>: Ditto.
258 <user>: Ditto.
259 <primary>: Delete
260 (SYMTAB_COMPUNIT): New macro.
261 (SYMTAB_BLOCKVECTOR): Update definition.
262 (SYMTAB_OBJFILE): Update definition.
263 (SYMTAB_DIRNAME): Update definition.
264 (struct compunit_symtab): New type. Common members among all source
265 symtabs within a compilation unit moved here. All uses updated.
266 (COMPUNIT_OBJFILE): New macro.
267 (COMPUNIT_FILETABS): New macro.
268 (COMPUNIT_DEBUGFORMAT): New macro.
269 (COMPUNIT_PRODUCER): New macro.
270 (COMPUNIT_DIRNAME): New macro.
271 (COMPUNIT_BLOCKVECTOR): New macro.
272 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
273 (COMPUNIT_LOCATIONS_VALID): New macro.
274 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
275 (COMPUNIT_CALL_SITE_HTAB): New macro.
276 (COMPUNIT_MACRO_TABLE): New macro.
277 (ALL_COMPUNIT_FILETABS): New macro.
278 (compunit_symtab_ptr): New typedef.
279 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
280
005e2509
JB
2812014-11-20 Joel Brobecker <brobecker@adacore.com>
282
283 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
284 if the TYPE_CODE of range_type's base type does not match
285 the TYPE_CODE of encoding_type's base type.
286
2b0f535a
JB
2872014-11-19 Joel Brobecker <brobecker@adacore.com>
288
289 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
290 it starts with '<'.
291
8908fca5
JB
2922014-11-19 Joel Brobecker <brobecker@adacore.com>
293
294 * ada-lang.c (ada_is_redundant_range_encoding): New function.
295 (ada_is_redundant_index_type_desc): New function.
296 (to_fixed_array_type): Ignore parallel XA type if redundant.
297
4a46959e
JB
2982014-11-19 Joel Brobecker <brobecker@adacore.com>
299
300 * ada-lang.c (constrained_packed_array_type): Set the length
301 of the return array as if both bounds where zero if that
302 returned array's index type is dynamic.
303
2acf986b
YQ
3042014-11-19 Yao Qi <yao@codesourcery.com>
305
306 * config/i386/go32.mh (CC): Remove.
307
439247b6
DE
3082014-11-18 Doug Evans <xdje42@gmail.com>
309
310 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
311 updated.
312
4d663531
DE
3132014-11-18 Doug Evans <xdje42@gmail.com>
314
315 * buildsym.c (buildsym_objfile): New static global.
316 (buildsym_comp_dir): New static global.
317 (finish_block_internal): Delete arg objfile. All callers updated.
318 (finish_block): Delete arg objfile. All callers updated.
319 (start_subfile): Delete arg dirname. All callers updated.
320 (patch_subfile_names): Update buildsym_comp_dir.
321 (get_macro_table): Delete arg objfile. All callers updated.
322 (start_symtab): New arg objfile. All callers updated.
323 Rename arg dirname to comp_dir.
324 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
325 (end_symtab_get_static_block): Delete arg objfile. All callers
326 updated.
327 (end_symtab_without_blockvector): Ditto.
328 (end_symtab_with_blockvector): Ditto.
329 (end_symtab_from_static_block): Ditto.
330 (end_symtab): Ditto.
331 (end_expandable_symtab): Ditto.
332 (augment_type_symtab): Ditto.
333 * coffread.c (coff_start_symtab): New arg objfile. All callers
334 updated.
335
8435453b
DE
3362014-11-18 Doug Evans <xdje42@gmail.com>
337
338 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
339 updated.
340
ee6f8984
DE
3412014-11-18 Doug Evans <xdje42@gmail.com>
342
343 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
344 symtab.dirname updated to use it.
345
eb822aa6
DE
3462014-11-18 Doug Evans <xdje42@gmail.com>
347
348 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
349 symtab.objfile updated to use it.
350
98387a29
DE
3512014-11-18 Doug Evans <xdje42@gmail.com>
352
353 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
354
aff08958
DE
3552014-11-18 Doug Evans <xdje42@gmail.com>
356
357 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
358 SYMBOL_OBJFILE.
359 * findvar.c (default_read_var_value): Ditto.
360 * jv-lang.c (add_class_symtab_symbol): Ditto.
361 * parse.c (operator_check_standard): Ditto.
362 * printcmd.c (address_info): Ditto.
363 * symtab.c (fixup_symbol_section): Ditto.
364 (skip_prologue_sal): Ditto.
365 * tracepoint.c (scope_info): Ditto.
366 * valops.c (find_function_in_inferior): Ditto.
367 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
368 * python/py-symbol.c (set_symbol): Ditto.
369
7bab9b58
DE
3702014-11-18 Doug Evans <xdje42@gmail.com>
371
372 * buildsym.c (main_subfile): New static global.
373 (free_subfiles_list): New function.
374 (start_symtab): Set main_subfile.
375 (restart_symtab): Replace init of subfiles, current_subfile with
376 call to free_subfiles_list.
377 (watch_main_source_file_lossage): Use main_subfile.
378 (reset_symtab_globals): Replace init of current_subfile with call
379 to free_subfiles_list.
380 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
381 functions, split out from ...
382 (end_symtab_from_static_block): ... here. Rewrite to call them.
383
f194fefb
DE
3842014-11-18 Doug Evans <xdje42@gmail.com>
385
386 The result of symtab expansion is always a primary symtab.
387 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
388 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
389 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
390 (psymtab_to_symtab): Add comment and assert.
391 (map_matching_symbols_psymtab): Remove unnecessary test for
392 non-primary symtab.
393
34248c3a
DE
3942014-11-15 Doug Evans <xdje42@gmail.com>
395
396 PR symtab/17559
397 * symtab.c (find_pc_line_symtab): New function.
398 * symtab.h (find_pc_line_symtab): Declare.
399 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
400 find_pc_symtab.
401 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
402 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
403 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
404 * tui/tui-win.c (make_visible_with_new_height): Ditto.
405 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
406 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
407
2097ae25
DE
4082014-11-15 Doug Evans <xdje42@gmail.com>
409
410 * symtab.c (expand_symtab_containing_pc): Renamed from
411 find_pc_sect_symtab_via_partial. All callers updated.
412
1ada499f
YQ
4132014-11-15 Yao Qi <yao@codesourcery.com>
414
415 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
416
355e2102
JB
4172014-11-14 Joel Brobecker <brobecker@adacore.com>
418
419 * common/common-defs.h: Move <stdarg.h> #include ahead of
420 <stdio.h> #include.
421
83030110
PA
4222014-11-14 Pedro Alves <palves@redhat.com>
423
424 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
425 [!PHONY_ICONV] (gdb_iconv): New function.
426 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
427
a8719064
DE
4282014-11-13 Doug Evans <dje@google.com>
429
430 PR symtab/17591
431 * dwarf2read.c (find_slot_in_mapped_hash): Handle
432 "(anonymous namespace)".
433
60f7655a
DE
4342014-11-13 Doug Evans <dje@google.com>
435
436 * dwarf2read.c (update_enumeration_type_from_children): Avoid
437 infinite loop.
438
5784b3ca
JK
4392014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
440
441 * NEWS (maint set target-async): Fix typo.
442
6218dc4b
PA
4432014-11-12 Pedro Alves <palves@redhat.com>
444
445 * infrun.c (enum infwait_states, infwait_state): Delete.
446
af48d08f
PA
4472014-11-12 Pedro Alves <palves@redhat.com>
448
449 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
450 Rewrite stepping over a permanent breakpoint.
451 (thread_still_needs_step_over, proceed): Don't set
452 stepping_over_breakpoint for permanent breakpoints.
453 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
454 single-step breakpoints out of the target on hardware step
455 targets.
456 (process_event_stop_test): If stepping a permanent breakpoint
457 doesn't hit the step-resume breakpoint, delete the step-resume
458 breakpoint.
459 (switch_back_to_stepped_thread): Also check if the stepped thread
460 has advanced already on hardware step targets.
461 (currently_stepping): Return true if the thread stepped a
462 breakpoint.
463
1a853c52
PA
4642014-11-12 Pedro Alves <palves@redhat.com>
465
466 Mark locations as permanent, not the whole breakpoint.
467 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
468 (mark_breakpoints_out): Don't mark permanent breakpoints as
469 uninserted.
470 (breakpoint_init_inferior): Use mark_breakpoints_out.
471 (breakpoint_here_p): Adjust.
472 (bpstat_stop_status, describe_other_breakpoints): Remove handling
473 of permanent breakpoints.
474 (make_breakpoint_permanent): Mark each location as permanent,
475 instead of marking the breakpoint.
476 (add_location_to_breakpoint): If the location is permanent, mark
477 it as such, and as inserted.
478 (init_breakpoint_sal): Don't make the breakpoint permanent here.
479 (bp_location_compare, update_global_location_list): Adjust.
480 (update_breakpoint_locations): Don't make the breakpoint permanent
481 here.
482 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
483 breakpoints.
484 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
485 (struct bp_location) <permanent>: New field.
486 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
487 reference to bp_permanent.
488
ae9bb220
PA
4892014-11-12 Pedro Alves <palves@redhat.com>
490
491 * arch-utils.c (default_skip_permanent_breakpoint): New function.
492 * arch-utils.h (default_skip_permanent_breakpoint): New
493 declaration.
494 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
495 Install default_skip_permanent_breakpoint as default method.
496 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
497 (i386_gdbarch_init): Don't install it.
498 * infrun.c (resume): Assume there's always a
499 gdbarch_skip_permanent_breakpoint implementation.
500 * gdbarch.h, gdbarch.c: Regenerate.
501
015de688
DC
5022014-11-11 Daniel Colascione <dancol@dancol.org>
503
504 Warn about cross-PID-namespace debugging.
505 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
506 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
507 * linux-thread-db.c (check_pid_namespace_match): New function.
508 (thread_db_inferior_created): Call it.
509
26a84859
DE
5102014-11-10 Doug Evans <xdje42@gmail.com>
511
512 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
513 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
514
712a2e6d
DE
5152014-11-10 Doug Evans <xdje42@gmail.com>
516
517 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
518
af3768e9
DE
5192014-11-10 Doug Evans <xdje42@gmail.com>
520
521 PR symtab/17564
522 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
523 (lookup_static_symbol): Move definition to new location and rewrite.
524 (lookup_symbol_in_objfile): New function.
525 (lookup_symbol_global_iterator_cb): Call it.
526
b1f28d99
UW
5272014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
528
529 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
530
b7a084be
PA
5312014-11-07 Pedro Alves <palves@redhat.com>
532
533 * infrun.c (process_event_stop_test) <subroutine check>: Don't
534 check if we did a "nexti" inside a prologue.
535 * symtab.c (in_prologue): Delete function.
536 * symtab.h (in_prologue): Delete declaration.
537
67be31e5
DE
5382014-11-06 Doug Evans <xdje42@gmail.com>
539
540 * symtab.h (lookup_global_symbol): Improve function comment.
541
08724ab7
DE
5422014-11-06 Doug Evans <xdje42@gmail.com>
543
544 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
545 All callers updated.
546 * symtab.h (lookup_global_symbol): Update decl.
547 (lookup_static_symbol): Move decl to better location.
548
d9060ba6
DE
5492014-11-06 Doug Evans <xdje42@gmail.com>
550
551 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
552
74016e12
DE
5532014-11-06 Doug Evans <xdje42@gmail.com>
554
555 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
556 All callers updated.
557 (lookup_symbol_in_all_objfiles): Renamed from
558 lookup_symbol_aux_symtabs. All callers updated.
559 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
560 All callers updated.
561 (lookup_symbol_in_objfile_symtabs): Renamed from
562 lookup_symbol_aux_objfile. All callers updated.
563
d1a2d36d
DE
5642014-11-06 Doug Evans <xdje42@gmail.com>
565
566 * symtab.c (lookup_symbol_in_block): Renamed from
567 lookup_symbol_aux_block. All callers updated.
568
24d864bb
DE
5692014-11-06 Doug Evans <xdje42@gmail.com>
570
571 * symtab.c (lookup_static_symbol): Renamed from
572 lookup_static_symbol_aux. All callers updated.
573 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
574 All callers updated.
575
358d6ab3
DE
5762014-11-06 Doug Evans <xdje42@gmail.com>
577
578 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
579 * block.c (block_lookup_symbol): Use it.
580 * cp-support.c (make_symbol_overload_list_block): Use it.
581 * symtab.c (iterate_over_symbols): Use it.
582
16b2eaa1
DE
5832014-11-06 Doug Evans <xdje42@gmail.com>
584
585 * symtab.c (lookup_block_symbol): Moved to ...
586 * block.c (block_lookup_symbol): ... here and renamed.
587 All callers updated.
588 * block.h (block_lookup_symbol): Declare.
589 * symtab.h (lookup_block_symbol): Delete.
590
2dd2cd1c
DE
5912014-11-06 Doug Evans <xdje42@gmail.com>
592
593 * ada-lang.c (ada_make_symbol_completion_list): Use
594 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
595 * symtab.c (lookup_objfile_from_block): Ditto.
596
d4c58915
DE
5972014-11-06 Doug Evans <xdje42@gmail.com>
598
599 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
600 TYPE_CODE_STRUCT.
601
9c1877ea
DE
6022014-11-06 Doug Evans <xdje42@gmail.com>
603
604 * objfiles.c (get_objfile_arch): Constify.
605 * objfiles.h (get_objfile_arch): Update prototype.
606 * solib.c (solib_global_lookup): Fetch arch from objfile,
607 not target_gdbarch.
608
426a4079
SL
6092014-11-06 Sandra Loosemore <sandra@codesourcery.com>
610
611 * nios2-tdep.c (wild_insn): Delete.
612 (profiler_insn, irqentry_insn): Delete.
613 (nios2_match_sequence): Delete.
614 (nios2_analyze_prologue): Update comments. Remove matching
615 of obsolete profiler_insn and irqentry_insn sequences.
616
ee11262d
AM
6172014-11-05 Alan Modra <amodra@gmail.com>
618
619 * charset.c (convert_between_encodings): Shrink obstack using
620 obstack_blank_fast.
621 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
622 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
623 to char* before doing pointer arithmetic.
ee11262d 624
c87e6d00
SM
6252014-11-04 Simon Marchi <simon.marchi@ericsson.com>
626
627 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
628
441ef17f
PA
6292014-11-04 Pedro Alves <palves@redhat.com>
630
631 * breakpoint.c (breakpoint_thread_match): Delete function.
632 * breakpoint.h (breakpoint_thread_match): Delete declaration.
633
e0f52461
SC
6342014-11-03 Siva Chandra Reddy <sivachandra@google.com>
635
636 PR c++/17494
637 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
638 the method args also under EVAL_SKIP when evaluating method
639 calls under EVAL_SKIP.
640
a0b4d890
YQ
6412014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
642
643 * dwarf2loc.c (read_pieced_value): Do big endian
644 processing only if gdb_regnum is not -1.
645 (write_pieced_value): Ditto.
646
6472014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
648
649 * arm-linux-tdep.c (arm_linux_init_abi): Use
650 info.byte_order_for_code to choose endianity of breakpoint
651 instructions snippets.
652
6532014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
654
655 * arm-tdep.c (extract_arm_insn): Use
656 gdbarch_byte_order_for_code to read arm instruction.
657
e82149ff
DE
6582014-11-02 Doug Evans <xdje42@gmail.com>
659
660 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
661
d7ee84f1
DE
6622014-11-02 Doug Evans <xdje42@gmail.com>
663
664 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
665 main_subfile before returning.
666
4f072d17
DE
6672014-10-31 Doug Evans <xdje42@gmail.com>
668
669 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
670 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
671
8301c89e
DE
6722014-10-31 Doug Evans <xdje42@gmail.com>
673
674 * valops.c (value_cast_pointers): Fix whitespace.
675 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
676 Ditto.
677
02be9a71
DE
6782014-10-30 Doug Evans <dje@google.com>
679
680 * NEWS: Mention ability add attributes to gdb.Objfile and
681 gdb.Progspace objects.
682 * python/py-objfile.c (objfile_object): New member dict.
683 (objfpy_dealloc): Py_XDECREF dict.
684 (objfpy_initialize): Initialize dict.
685 (objfile_getset): Add __dict__.
686 (objfile_object_type): Set tp_dictoffset member.
687 * python/py-progspace.c (progspace_object): New member dict.
688 (pspy_dealloc): Py_XDECREF dict.
689 (pspy_initialize): Initialize dict.
690 (pspace_getset): Add __dict__.
691 (pspace_object_type): Set tp_dictoffset member.
692
6427bef6
YQ
6932014-10-30 Yao Qi <yao@codesourcery.com>
694
695 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
696 replace '\\' with '\\\\'.
697
f60325be
JB
6982014-10-29 Joel Brobecker <brobecker@adacore.com>
699
700 GDB 7.8.1 released.
701
ab917dfb
PA
7022014-10-29 Pedro Alves <palves@redhat.com>
703
704 PR gdb/17408
705 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
706 instead of assuming a thread with a stepping range is always
707 stepping.
708
d3d4baed
PA
7092014-10-29 Pedro Alves <palves@redhat.com>
710
711 PR python/17372
712 * event-top.c (change_line_handler): Call
713 gdb_rl_callback_handler_remove instead of
714 rl_callback_handler_remove.
715 (callback_handler_installed): New global.
716 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
717 (gdb_rl_callback_handler_reinstall): New functions.
718 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
719 gdb_rl_callback_handler_install instead of
720 rl_callback_handler_remove and rl_callback_handler_install.
721 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
722 instead of rl_callback_handler_remove.
723 * event-top.h (gdb_rl_callback_handler_remove)
724 (gdb_rl_callback_handler_install)
725 (gdb_rl_callback_handler_reinstall): New declarations.
726 * infrun.c (reinstall_readline_callback_handler_cleanup): New
727 cleanup function.
728 (fetch_inferior_event): Install it.
729 * top.c (gdb_readline_wrapper_line) Call
730 gdb_rl_callback_handler_remove instead of
731 rl_callback_handler_remove.
732 (gdb_readline_wrapper_cleanup): Don't call
733 rl_callback_handler_install.
734
6e5d7f39
PA
7352014-10-29 Pedro Alves <palves@redhat.com>
736
737 * event-top.c (command_line_handler): Clear the first byte of
738 linebuffer, when it is first allocated.
739
551cb6a5
PA
7402014-10-29 Pedro Alves <palves@redhat.com>
741
742 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
743 TRY_CATCH.
744
1e1e619b
PA
7452014-10-29 Pedro Alves <palves@redhat.com>
746
747 PR tui/16138
748 PR tui/17519
749 * tui/tui-interp.c (tui_is_toplevel): Delete global.
750 (tui_allowed_p): Delete function.
751 * tui/tui.c: Include "interps.h".
752 (tui_enable): Don't use tui_allowed_p. Error out here with
753 detailed error messages if the TUI is the top level interpreter,
754 or if output is not a terminal. Use newterm instead of initscr,
755 and error out if initializing the terminal fails. Also error out if
756 the terminal doesn't support cursor addressing.
757 * tui/tui.h (tui_allowed_p): Delete declaration.
758
6041179a
JB
7592014-10-29 Joel Brobecker <brobecker@adacore.com>
760
761 * arm-tdep.c (arm_skip_stack_protector): Return early if
762 address loaded by first "ldr" instruction does not have
763 a corresponding minimal symbol. Update comment.
764
6ae274b7
YQ
7652014-10-29 Yao Qi <yao@codesourcery.com>
766
767 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
768 loaded address correctly of ldr instruction.
769
7f5ef605
PA
7702014-10-28 Pedro Alves <palves@redhat.com>
771
772 PR gdb/12623
773 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
774 field.
775 * infrun.c (resume) <stepping breakpoint instruction>: Set the
776 thread's stepped_breakpoint field. Skip if reverse debugging.
777 Add comment.
778 (init_thread_stepping_state, handle_signal_stop): Clear the
779 thread's stepped_breakpoint field.
780
7d1a114c
PA
7812014-10-27 Pedro Alves <palves@redhat.com>
782
783 * remote.c (remote_thread_alive): New, factored out from ...
784 (remote_thread_alive): ... this.
785 (remote_update_thread_list): Bail out before deleting threads if
786 the target returned an empty list, and, the current thread has a
787 magic/fake ptid.
788
e5f8a7cc
PA
7892014-10-27 Pedro Alves <palves@redhat.com>
790
791 * infrun.c (handle_signal_stop): Also skip handlers when a random
792 signal arrives while handling a "stepi" or a "nexti". Set the
793 thread's 'step_after_step_resume_breakpoint' flag.
794
71e396f9
LM
7952014-10-27 Luis Machado <lgustavo@codesourcery.com>
796
797 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
798 (arm_record_ld_st_imm_offset): Reimplement to cover all
799 load/store cases for ARM opcode 010.
800 (arm_record_ld_st_multiple): Reimplement to cover all
801 load/store cases for ARM opcode 100.
802
3aee438b
DE
8032014-10-26 Doug Evans <xdje42@gmail.com>
804
805 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
806
f88cb4b6
DE
8072014-10-26 Doug Evans <xdje42@gmail.com>
808
809 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
810 parameter "kind" to "block_index".
811 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
812 "block_index".
813 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
814
a023a30f
DE
8152014-10-26 Doug Evans <xdje42@gmail.com>
816
817 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
818
4c35218e
DE
8192014-10-26 Doug Evans <xdje42@gmail.com>
820
821 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
822 obstack_alloc.
823
f08e8df3
DE
8242014-10-26 Doug Evans <xdje42@gmail.com>
825
826 * parser-defs.h (block_found): Move decl from here ...
827 * symtab.h (block_found): ... to here.
828
cf901d3b
DE
8292014-10-26 Doug Evans <xdje42@gmail.com>
830
831 * symtab.h (struct field_of_this_result): Fix typo in comment.
832 (lookup_symbol_in_language): Move function comment here.
833 (lookup_symbol): Improve function comment.
834 (basic_lookup_symbol_nonlocal): Ditto.
835 (lookup_symbol_static, lookup_symbol_global): Ditto.
836 (lookup_symbol_aux_block): Ditto.
837 (lookup_language_this): Add function comment.
838 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
839 function comment.
840 (lookup_block_symbol): Improve function comment.
841 (lookup_struct): Fix capitalization in function comment.
842 (lookup_transparent_type): Add function comment.
843 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
844 Improve function comment.
845 (lookup_objfile_from_block): Add function comment.
846 * symtab.c (lookup_symbol_in_language): Update function comment.
847 (lookup_symbol, lookup_language_this): Ditto.
848 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
849 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
850 (basic_lookup_symbol_nonlocal): Ditto.
851 (lookup_symbol_static, lookup_symbol_global): Ditto.
852 (lookup_transparent_type, lookup_block_symbol): Ditto.
853
ff6c39cf
DE
8542014-10-25 Doug Evans <xdje42@gmail.com>
855
856 * symtab.c (types_info): Delete forward decl.
857 (functions_info, variables_info, sources_info): Ditto.
858 (_initialize_symtab): Rewrite forward decl to use
859 initialize_file_ftype.
860
ec201f0c
DE
8612014-10-25 Doug Evans <xdje42@gmail.com>
862
863 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
864
ca040673
DE
8652014-10-25 Doug Evans <xdje42@gmail.com>
866
867 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
868 of local var child_die.
869
6f259a23
DB
8702014-10-24 Don Breazeal <donb@codesourcery.com>
871
872 * infrun.c (follow_fork_inferior): Update fork message printing
873 to use target_terminal_ours_for_output instead of
874 target_terminal_ours, to use _() for all format strings, to print
875 "vfork" instead of "fork" for vforks, and to add a detach message.
876 (handle_vfork_child_exec_or_exit): Update message printing to use
877 target_terminal_ours_for_output instead of target_terminal_ours, to
878 use _() for all format strings, and to fix some formatting.
879
09dd9a69
PA
8802014-10-24 Pedro Alves <palves@redhat.com>
881
882 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
883 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
884 * config/vax/vax.mh: Delete.
885 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
886 obsolete configurations section.
887 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
888 * vax-nat.c: Delete file.
889
5ab806de
PA
8902014-10-24 Pedro Alves <palves@redhat.com>
891
892 * NEWS (Removed targets): Add OS/arch column.
893
3433cfa5
SC
8942014-10-24 Siva Chandra Reddy <sivachandra@google.com>
895
896 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
897 on the arg type of a constructor only if it is of reference type.
898
96ba4233
SL
8992014-10-23 Sandra Loosemore <sandra@codesourcery.com>
900
901 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
902 accessors and constants from nios2 opcodes update.
903 (nios2_get_next_pc): Likewise.
904
28153fd3
DE
9052014-10-19 Doug Evans <xdje42@gmail.com>
906
907 * gdbthread.h (set_running): Fix comment.
908 (set_executing, finish_thread_state): Fix comment.
909
fc9b8e47
DE
9102014-10-18 Doug Evans <xdje42@gmail.com>
911
912 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
913
4ffbba72
DE
9142014-10-17 Doug Evans <dje@google.com>
915
916 * NEWS: Mention new event gdb.clear_objfiles.
917 * python/py-event.h (emit_clear_objfiles_event): Clear
918 * python/py-events.h (events_object): New member clear_objfiles.
919 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
920 event.
921 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
922 emit clear_objfiles event.
923 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
924 function.
925 (emit_clear_objfiles_event): New function.
926 (clear_objfiles): New event.
927 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
928 Declare.
929 * python/python.c (_initialize_python): Call
930 gdbpy_initialize_clear_objfiles_event.
931
d096d8c1
DE
9322014-10-17 Doug Evans <dje@google.com>
933
934 * NEWS: Mention new gdb.Objfile.progspace attribute.
935 * python/py-objfile.c (objfpy_get_progspace): New function.
936 (objfile_getset): New entry for "progspace".
937
6c4486e6
PA
9382014-10-17 Pedro Alves <palves@redhat.com>
939
940 PR gdb/17471
941 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
942 returns a copy of the input.
943 (run_command_1, continue_command, step_1, jump_command)
944 (signal_command, until_command, advance_command, finish_command)
945 (attach_command): Adjust and install a cleanup to free the
946 stripped args.
947
0ff33695
PA
9482014-10-17 Pedro Alves <palves@redhat.com>
949
950 PR gdb/17300
951 * infcmd.c (continue_1): If continuing all threads in the
952 foreground, make sure the inferior's terminal settings are put in
953 effect.
954
6fdebc3d
PA
9552014-10-17 Pedro Alves <palves@redhat.com>
956
957 PR gdb/17472
958 * annotate.c (annotate_breakpoints_invalid): Use
959 target_terminal_our_for_output instead of target_terminal_ours.
960 Give back the terminal to the target.
961 (annotate_frames_invalid): Likewise.
962
5842f62a
PA
9632014-10-17 Pedro Alves <palves@redhat.com>
964
965 * target.c (enum terminal_state): New enum.
966 (terminal_state): New global.
967 (target_terminal_init): New function.
968 (target_terminal_inferior): Skip if inferior already owns the
969 terminal.
970 (target_terminal_ours, target_terminal_ours_for_output): New
971 functions.
972 * target.h (target_terminal_init): Convert to function prototype.
973 (target_terminal_ours_for_output): Convert to function prototype
974 and tweak comment.
975 (target_terminal_ours): Convert to function prototype and tweak
976 comment.
977 * windows-nat.c (do_initial_windows_stuff): Call
978 target_terminal_init instead of child_terminal_init_with_pgrp.
979
32a8097b
PA
9802014-10-17 Pedro Alves <palves@redhat.com>
981
982 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
983 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
984 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
985 solib-osf.c.
986 * NEWS: Mention that support for alpha*-*-osf* has been removed.
987 * ada-lang.h [__alpha__ && __osf__]
988 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
989 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
990 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
991 GDB_OSABI_OSF1.
992 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
993 files.
994 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
995 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
996 * configure: Regenerate.
997 * configure.ac: Remove references to osf.
998 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
999 section. Remove all other references to osf.
1000 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1001 Remove all other references to osf.
1002 * dec-thread.c: Delete file.
1003 * defs.h (GDB_OSABI_OSF1): Delete.
1004 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1005 defined.
1006 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1007 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1008 Delete code.
1009 (unconditionally_kill_inferior)
1010 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1011 * solib-osf.c: Delete file.
1012
80134cf5
PA
10132014-10-17 Pedro Alves <palves@redhat.com>
1014
1015 * remote.c (clear_threads_listing_context): Move higher up, out of
1016 the HAVE_LIBEXPAT guard.
1017
89c7137f
TG
10182014-10-16 Tristan Gingold <gingold@adacore.com>
1019
1020 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1021 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1022 on amd64.
1023
44ee4a52
PA
10242014-10-15 Pedro Alves <palves@redhat.com>
1025
1026 * dec-thread.c (dec_thread_count_gdb_threads)
1027 (dec_thread_add_gdb_thread): Delete.
1028 (dec_thread_update_thread_list): Delete.
1029 (dec_thread_find_new_threads): Rename to ...
1030 (dec_thread_update_thread_list): ... this. Delete GDB-size
1031 threads that are no longer found in dec_thread_list.
1032 (resync_thread_list): Delete.
1033 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1034 resync_thread_list.
1035
ab970af1
PA
10362014-10-15 Pedro Alves <palves@redhat.com>
1037
1038 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1039 * remote.c (remote_update_thread_list): Skip calling prune_threads
1040 if any thread listing method is supported, and instead walk over
1041 the set of remote threads listed, deleting those that are not
1042 found in GDB's thread list.
1043
e8032dde
PA
10442014-10-15 Pedro Alves <palves@redhat.com>
1045
1046 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1047 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1048 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1049 (bsd_uthread_target): Adjust.
1050 * corelow.c (core_open): Adjust.
1051 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1052 (dec_thread_update_thread_list): New function.
1053 (init_dec_thread_ops): Adjust.
1054 * gdbthread.h (prune_threads): New declaration.
1055 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1056 (thread_db_update_thread_list): ... this. Call prune_threads.
1057 (init_thread_db_ops): Adjust.
1058 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1059 (procfs_update_thread_list): ... this. Call prune_threads.
1060 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1061 Adjust.
1062 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1063 (obsd_update_thread_list): ... this. Call prune_threads.
1064 (obsd_add_target): Adjust.
1065 * procfs.c (procfs_target): Adjust.
1066 (procfs_notice_thread): Update comment.
1067 (procfs_find_new_threads): Rename to ...
1068 (procfs_update_thread_list): ... this. Call prune_threads.
1069 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1070 comment.
1071 (ravenscar_wait): Adjust.
1072 (ravenscar_find_new_threads): Rename to ...
1073 (ravenscar_update_thread_list): ... this. Call prune_threads.
1074 (init_ravenscar_thread_ops): Adjust.
1075 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1076 (record_btrace_update_thread_list): ... this. Adjust comment.
1077 (init_record_btrace_ops): Adjust.
1078 * remote.c (remote_threads_info): Rename to ...
1079 (remote_update_thread_list): ... this. Call prune_threads.
1080 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1081 Adjust.
1082 * sol-thread.c (check_for_thread_db): Adjust.
1083 (sol_find_new_threads_callback): Rename to ...
1084 (sol_update_thread_list_callback): ... this.
1085 (sol_find_new_threads): Rename to ...
1086 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1087 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1088 * target-delegates.c: Regenerate.
1089 * target.c (target_find_new_threads): Rename to ...
1090 (target_update_thread_list): ... this.
1091 * target.h (struct target_ops): Rename to_find_new_threads field
1092 to to_update_thread_list.
1093 (target_find_new_threads): Rename to ...
1094 (target_update_thread_list): ... this.
1095 * thread.c (prune_threads): Make extern.
1096 (update_thread_list): Adjust.
1097
6dc54d91
PA
10982014-10-15 Pedro Alves <palves@redhat.com>
1099
1100 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1101 Add describing comment. Return -1 if the qL packet is not
1102 supported.
1103 (struct thread_item, thread_item_t): Move higher up in
1104 the file. Add comments.
1105 (struct threads_parsing_context): Move higher up in
1106 the file, add comments, and remote to ...
1107 (struct threads_listing_context): ... this.
1108 (remote_newthread_step): Don't add the thread to GDB's thread
1109 database here. Instead push it to the thread_listing_context
1110 list.
1111 (remote_find_new_threads): Rename to ...
1112 (remote_get_threads_with_ql): ... this. Add target_ops and
1113 targets_listing_context parameters. Pass down context.
1114 (start_thread): Adjust.
1115 (clear_threads_parsing_context): Rename to ...
1116 (clear_threads_listing_context): ... this.
1117 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1118 remote_threads_info.
1119 (remote_get_threads_with_qthreadinfo): Ditto.
1120 (remote_threads_info): Reimplement.
1121
36728e82
PA
11222014-10-15 Pedro Alves <palves@redhat.com>
1123
1124 * infrun.c (resume): Don't force displaced-stepping for all
1125 single-steps on software single-stepping archs.
1126
34b7e8a6
PA
11272014-10-15 Pedro Alves <palves@redhat.com>
1128
1129 * breakpoint.c (single_step_breakpoints): Delete global.
1130 (insert_single_step_breakpoint): Adjust to store the breakpoint
1131 pointer in the current thread.
1132 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1133 (cancel_single_step_breakpoints): Delete functions.
1134 (breakpoint_has_location_inserted_here): Make extern.
1135 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1136 breakpoint list.
1137 * breakpoint.h (breakpoint_has_location_inserted_here): New
1138 declaration.
1139 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1140 (cancel_single_step_breakpoints): Remove declarations.
1141 * gdbthread.h (struct thread_control_state)
1142 <single_step_breakpoints>: New field.
1143 (delete_single_step_breakpoints)
1144 (thread_has_single_step_breakpoints_set)
1145 (thread_has_single_step_breakpoint_here): New declarations.
1146 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1147 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1148 (singlestep_pc): Delete globals.
1149 (infrun_thread_ptid_changed): Remove references to removed
1150 globals.
1151 (resume_cleanups): Delete the current thread's single-step
1152 breakpoints.
1153 (maybe_software_singlestep): Remove references to removed globals.
1154 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1155 delete_single_step_breakpoints.
1156 (init_wait_for_inferior): Remove references to removed globals.
1157 (delete_thread_infrun_breakpoints): Delete the thread's
1158 single-step breakpoints too.
1159 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1160 single-step breakpoints here.
1161 (delete_stopped_threads_single_step_breakpoints): New function.
1162 (adjust_pc_after_break): Adjust to use
1163 thread_has_single_step_breakpoints_set.
1164 (handle_inferior_event): Remove references to removed globals.
1165 Use delete_stopped_threads_single_step_breakpoints.
1166 (handle_signal_stop): Adjust to per-thread single-step
1167 breakpoints. Swap test order to do cheaper tests first.
1168 (switch_back_to_stepped_thread): Extend debug output. Remove
1169 references to removed globals.
1170 * record-full.c (record_full_wait_1): Adjust to per-thread
1171 single-step breakpoints.
1172 * thread.c (delete_single_step_breakpoints)
1173 (thread_has_single_step_breakpoints_set)
1174 (thread_has_single_step_breakpoint_here): New functions.
1175 (clear_thread_inferior_resources): Also delete the thread's
1176 single-step breakpoints.
1177
5b834a0a
PA
11782014-10-15 Pedro Alves <palves@redhat.com>
1179
1180 * thread.c (delete_thread_breakpoint): New function.
1181 (delete_step_resume_breakpoint)
1182 (delete_exception_resume_breakpoint): Use it.
1183 (delete_at_next_stop): New function.
1184 (clear_thread_inferior_resources): Use delete_at_next_stop.
1185
a1fd2fa5
PA
11862014-10-15 Pedro Alves <palves@redhat.com>
1187
1188 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1189 (breakpoint_inserted_here_p): ... here. Remove special case for
1190 software single-step breakpoints.
1191 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1192 (software_breakpoint_inserted_here_p): ... here. Remove special
1193 case for software single-step breakpoints.
1194 (bp_target_info_copy_insertion_state)
1195 (deprecated_insert_raw_breakpoint)
1196 (deprecated_remove_raw_breakpoint): Delete functions.
1197 * breakpoint.h (deprecated_insert_raw_breakpoint)
1198 (deprecated_remove_raw_breakpoint): Remove declarations.
1199
7c16b83e
PA
12002014-10-15 Pedro Alves <palves@redhat.com>
1201
1202 PR breakpoints/9649
1203 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1204 Delete array globals.
1205 (single_step_breakpoints): New global.
1206 (breakpoint_xfer_memory): Remove special handling for single-step
1207 breakpoints.
1208 (update_breakpoints_after_exec): Delete bp_single_step
1209 breakpoints.
1210 (detach_breakpoints): Remove special handling for single-step
1211 breakpoints.
1212 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1213 (bpstat_stop_status): Add comment.
1214 (bpstat_what, bptype_string, print_one_breakpoint_location)
1215 (adjust_breakpoint_address, init_bp_location): Handle
1216 bp_single_step.
1217 (new_single_step_breakpoint): New function.
1218 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1219 handling for single-step breakpoints.
1220 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1221 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1222 Rewrite.
1223 (detach_single_step_breakpoints, find_single_step_breakpoint):
1224 Delete functions.
1225 (breakpoint_has_location_inserted_here): New function.
1226 (single_step_breakpoint_inserted_here_p): Rewrite.
1227 * breakpoint.h: Remove FIXME.
1228 (enum bptype) <bp_single_step>: New enum value.
1229 (insert_single_step_breakpoint): Update comment.
1230 * infrun.c (resume_cleanups)
1231 (delete_step_thread_step_resume_breakpoint): Remove single-step
1232 breakpoints.
1233 (fetch_inferior_event): Install a cleanup that removes infrun
1234 breakpoints.
1235 (switch_back_to_stepped_thread) <expect thread advanced also>:
1236 Clear step-over info.
1237
0cbcdb96
PA
12382014-10-15 Pedro Alves <palves@redhat.com>
1239
1240 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1241 (delete_thread_infrun_breakpoints): New function, with parts
1242 salvaged from delete_step_resume_breakpoint_callback.
1243 (delete_step_thread_step_resume_breakpoint): Delete.
1244 (for_each_just_stopped_thread_callback_func): New typedef.
1245 (for_each_just_stopped_thread): New function.
1246 (delete_just_stopped_threads_infrun_breakpoints): New function.
1247 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1248 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1249 ... this. Adjust.
1250 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1251
963f9c80
PA
12522014-10-15 Pedro Alves <palves@redhat.com>
1253
1254 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1255 trying to step past a non-steppable watchpoint.
1256 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1257 field.
1258 * infrun.c (struct step_over_info): Add new field
1259 'nonsteppable_watchpoint_p' and adjust comments.
1260 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1261 Adjust.
1262 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1263 (stepping_past_nonsteppable_watchpoint): New function.
1264 (step_over_info_valid_p): Also return true if stepping past a
1265 nonsteppable watchpoint.
1266 (proceed): Adjust call to set_step_over_info. Remove reference to
1267 init_infwait_state.
1268 (init_wait_for_inferior): Remove reference to init_infwait_state.
1269 (waiton_ptid): Delete global.
1270 (struct execution_control_state)
1271 <stepped_after_stopped_by_watchpoint>: Delete field.
1272 (wait_for_inferior, fetch_inferior_event): Always pass
1273 minus_one_ptid to target_wait.
1274 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1275 field.
1276 (init_infwait_state): Delete function.
1277 (handle_inferior_event): Remove infwait_state handling.
1278 (handle_signal_stop) <watchpoints handling>: Adjust after
1279 stepped_after_stopped_by_watchpoint removal. Don't remove
1280 breakpoints here nor set infwait_state. Set the thread's
1281 stepping_over_watchpoint flag, and call keep_going instead.
1282 (keep_going): Handle stepping_over_watchpoint. Adjust
1283 set_step_over_info calls.
1284 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1285 function.
1286
6cc83d2a
PA
12872014-10-15 Pedro Alves <palves@redhat.com>
1288
1289 * infrun.c (step_over_info_valid_p): New function.
1290 (resume): Use step_over_info_valid_p instead of checking the
1291 threads's trap_expected flag.
1292
6979730b
DE
12932014-10-15 Doug Evans <dje@google.com>
1294 Walfred Tedeschi <walfred.tedeschi@intel.com>
1295
1296 PR python/17364
1297 * python/lib/gdb/__init__.py (packages): Add "printer".
1298 * python/lib/gdb/command/bound_registers.py: Moved to ...
1299 * python/lib/gdb/printer/bound_registers.py: ... here.
1300 Add printer to global set of builtin printers. Rename printer from
1301 "bound" to "mpx_bound128".
1302 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1303 registered as global "builtin" printer.
1304 (add_builtin_pretty_printer): New function.
1305 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1306 gdb/printer/__init__.py.
1307
35a49624
IB
13082014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1309
1310 * Makefile.in (SFILES): Remove d-support.c.
1311 (COMMON_OBS): Remove d-support.o.
1312 * d-lang.h (d_parse_symbol): Remove declaration.
1313 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1314 * d-support.c: Remove file.
1315
8fa0c4f8
AA
13162014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1317
1318 * gdb/infrun.c (process_event_stop_test): Apply
1319 gdbarch_addr_bits_remove to longjmp resume address.
1320
3666da81
PA
13212014-10-15 Pedro Alves <palves@redhat.com>
1322
1323 * regformats/microblaze.dat: Delete file.
1324
449aa9df
AKA
13252014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1326
1327 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1328 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1329
ebb8ece2
SC
13302014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1331
1332 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1333 as non-trivial.
1334
82c48ac7
SC
13352014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1336
1337 PR c++/13403
1338 PR c++/15154
1339 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1340 with qualified args.
1341
c40cc657
JB
13422014-10-14 Joel Brobecker <brobecker@adacore.com>
1343
1344 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1345 of the case where the second operand is a pointer.
1346 <BINOP_SUB>: Likewise.
1347
0ea5cda8
SDJ
13482014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1349
1350 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1351 only if it is not NULL.
1352 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1353 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1354 (struct probe_ops) <clear_semaphore>: Likewise.
1355 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1356 not NULL.
1357 (stop_tracing): Likewise, for clear_semaphore.
1358
f7088df3
SDJ
13592014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1360
1361 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1362 using language_c, instead of current_language.
1363
4e1bbde0
DE
13642014-10-13 Doug Evans <dje@google.com>
1365
6ff5a0f6 1366 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1367 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1368 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1369 (pspy_new, pspace_to_pspace_object): Call it.
1370
c780cc2f
JK
13712014-10-13 Miroslav Franc <mfranc@redhat.com>
1372 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 Fix "save breakpoints" for "catch" command.
1375 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1376 newline.
1377
99894e11
JK
13782014-10-12 Miroslav Franc <mfranc@redhat.com>
1379
1380 Fix "save breakpoints" for "disable $bpnum" command.
1381 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1382
3831839c
PA
13832014-10-10 Pedro Alves <palves@redhat.com>
1384
1385 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1386 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1387 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1388 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1389 and been removed.
1390 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1391 * configure.ac: Remove references to IRIX.
1392 * configure.host: Add *-*-irix* to the obsolete hosts section.
1393 Remove all other references to irix.
1394 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1395 Delete files.
1396
cc3afae2
AKA
13972014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1398
1399 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1400 isn't valid, release the tdesc arch data and return NULL.
1401
cdfa0b0a
PA
14022014-10-10 Pedro Alves <palves@redhat.com>
1403
1404 * linux-tdep.c: Include observer.h.
1405 (linux_inferior_data): New global.
1406 (struct linux_info): New structure.
1407 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1408 (get_linux_inferior_data): New functions.
1409 (linux_vsyscall_range): Rename to ...
1410 (linux_vsyscall_range_raw): ... this.
1411 (linux_vsyscall_range): New function; handles caching.
1412 (_initialize_linux_tdep): Register linux_inferior_data. Install
1413 inferior_exit and inferior_appeared observers.
1414
8b9a549d
PA
14152014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1416 Pedro Alves <palves@redhat.com>
1417
1418 PR symtab/14466
1419 * solib-svr4.c (svr4_read_so_list): Rename to ...
1420 (svr4_current_sos_1): ... this and change the function comment.
1421 (svr4_current_sos): New function.
1422
3437254d
PA
14232014-10-10 Pedro Alves <palves@redhat.com>
1424
1425 * arch-utils.c (default_vsyscall_range): New function.
1426 * arch-utils.h (default_vsyscall_range): New declaration.
1427 * gdbarch.sh (vsyscall_range): New hook.
1428 * gdbarch.h, gdbarch.c: Regenerate.
1429 * linux-tdep.c (linux_vsyscall_range): New function.
1430 (linux_init_abi): Install linux_vsyscall_range as
1431 vsyscall_range gdbarch hook.
1432 * memrange.c (address_in_mem_range): New function.
1433 * memrange.h (address_in_mem_range): New declaration.
1434 * symfile-mem.c (find_vdso_size): Delete function.
1435 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1436
31cc0b80
PA
14372014-10-10 Pedro Alves <palves@redhat.com>
1438
1439 * infrun.c (normal_stop): Fix typo in comment.
1440
3e3286a2
SDJ
14412014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1442
1443 PR tdep/9390
1444 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1445 typo when using logical AND to determine instruction type.
1446
fcbdedf8
YQ
14472014-10-09 Yao Qi <yao@codesourcery.com>
1448
1449 * infrun.c (handle_signal_stop): Remove local variable
1450 'printed'.
1451
db984616
SS
14522014-10-08 Stan Shebs <stan@codesourcery.com>
1453
1454 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1455
3ba37e6c
GB
14562014-10-08 Gary Benson <gbenson@redhat.com>
1457
1458 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1459
a442d071
GB
14602014-10-08 Gary Benson <gbenson@redhat.com>
1461
1462 * common/common-defs.h: Include common-exceptions.h.
1463 * exceptions.h: Do not include common-exceptions.h.
1464
6f1947e8
GB
14652014-10-08 Gary Benson <gbenson@redhat.com>
1466
1467 * common/common-defs.h: Include cleanups.h.
1468 * common/common-exceptions.c: Do not include cleanups.h.
1469 * utils.h: Likewise.
1470
c765fdb9
GB
14712014-10-08 Gary Benson <gbenson@redhat.com>
1472
1473 * ada-lang.c: Do not include exceptions.h.
1474 * ada-valprint.c: Likewise.
1475 * amd64-tdep.c: Likewise.
1476 * auto-load.c: Likewise.
1477 * block.c: Likewise.
1478 * break-catch-throw.c: Likewise.
1479 * breakpoint.c: Likewise.
1480 * btrace.c: Likewise.
1481 * c-lang.c: Likewise.
1482 * cli/cli-cmds.c: Likewise.
1483 * cli/cli-interp.c: Likewise.
1484 * cli/cli-script.c: Likewise.
1485 * completer.c: Likewise.
1486 * corefile.c: Likewise.
1487 * corelow.c: Likewise.
1488 * cp-abi.c: Likewise.
1489 * cp-support.c: Likewise.
1490 * cp-valprint.c: Likewise.
1491 * darwin-nat.c: Likewise.
1492 * dwarf2-frame-tailcall.c: Likewise.
1493 * dwarf2-frame.c: Likewise.
1494 * dwarf2loc.c: Likewise.
1495 * dwarf2read.c: Likewise.
1496 * eval.c: Likewise.
1497 * event-loop.c: Likewise.
1498 * event-top.c: Likewise.
1499 * f-valprint.c: Likewise.
1500 * frame-unwind.c: Likewise.
1501 * frame.c: Likewise.
1502 * gdbtypes.c: Likewise.
1503 * gnu-v2-abi.c: Likewise.
1504 * gnu-v3-abi.c: Likewise.
1505 * guile/scm-auto-load.c: Likewise.
1506 * guile/scm-breakpoint.c: Likewise.
1507 * guile/scm-cmd.c: Likewise.
1508 * guile/scm-frame.c: Likewise.
1509 * guile/scm-lazy-string.c: Likewise.
1510 * guile/scm-param.c: Likewise.
1511 * guile/scm-symbol.c: Likewise.
1512 * guile/scm-type.c: Likewise.
1513 * hppa-hpux-tdep.c: Likewise.
1514 * i386-tdep.c: Likewise.
1515 * inf-loop.c: Likewise.
1516 * infcall.c: Likewise.
1517 * infcmd.c: Likewise.
1518 * infrun.c: Likewise.
1519 * interps.c: Likewise.
1520 * interps.h: Likewise.
1521 * jit.c: Likewise.
1522 * linespec.c: Likewise.
1523 * linux-nat.c: Likewise.
1524 * linux-thread-db.c: Likewise.
1525 * m32r-rom.c: Likewise.
1526 * main.c: Likewise.
1527 * memory-map.c: Likewise.
1528 * mi/mi-cmd-break.c: Likewise.
1529 * mi/mi-cmd-stack.c: Likewise.
1530 * mi/mi-interp.c: Likewise.
1531 * mi/mi-main.c: Likewise.
1532 * monitor.c: Likewise.
1533 * nto-procfs.c: Likewise.
1534 * objc-lang.c: Likewise.
1535 * p-valprint.c: Likewise.
1536 * parse.c: Likewise.
1537 * ppc-linux-tdep.c: Likewise.
1538 * printcmd.c: Likewise.
1539 * probe.c: Likewise.
1540 * python/py-auto-load.c: Likewise.
1541 * python/py-breakpoint.c: Likewise.
1542 * python/py-cmd.c: Likewise.
1543 * python/py-finishbreakpoint.c: Likewise.
1544 * python/py-frame.c: Likewise.
1545 * python/py-framefilter.c: Likewise.
1546 * python/py-function.c: Likewise.
1547 * python/py-gdb-readline.c: Likewise.
1548 * python/py-inferior.c: Likewise.
1549 * python/py-infthread.c: Likewise.
1550 * python/py-lazy-string.c: Likewise.
1551 * python/py-linetable.c: Likewise.
1552 * python/py-param.c: Likewise.
1553 * python/py-prettyprint.c: Likewise.
1554 * python/py-symbol.c: Likewise.
1555 * python/py-type.c: Likewise.
1556 * python/py-value.c: Likewise.
1557 * python/python-internal.h: Likewise.
1558 * python/python.c: Likewise.
1559 * record-btrace.c: Likewise.
1560 * record-full.c: Likewise.
1561 * regcache.c: Likewise.
1562 * remote-fileio.c: Likewise.
1563 * remote-mips.c: Likewise.
1564 * remote.c: Likewise.
1565 * rs6000-aix-tdep.c: Likewise.
1566 * rs6000-nat.c: Likewise.
1567 * skip.c: Likewise.
1568 * solib-darwin.c: Likewise.
1569 * solib-dsbt.c: Likewise.
1570 * solib-frv.c: Likewise.
1571 * solib-ia64-hpux.c: Likewise.
1572 * solib-spu.c: Likewise.
1573 * solib-svr4.c: Likewise.
1574 * solib.c: Likewise.
1575 * spu-tdep.c: Likewise.
1576 * stack.c: Likewise.
1577 * stap-probe.c: Likewise.
1578 * symfile-mem.c: Likewise.
1579 * symmisc.c: Likewise.
1580 * target.c: Likewise.
1581 * thread.c: Likewise.
1582 * top.c: Likewise.
1583 * tracepoint.c: Likewise.
1584 * tui/tui-interp.c: Likewise.
1585 * typeprint.c: Likewise.
1586 * utils.c: Likewise.
1587 * valarith.c: Likewise.
1588 * valops.c: Likewise.
1589 * valprint.c: Likewise.
1590 * value.c: Likewise.
1591 * varobj.c: Likewise.
1592 * windows-nat.c: Likewise.
1593 * xml-support.c: Likewise.
1594
484933d1
MR
15952014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1596
1597 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1598 name implies.
1599 (extended_mips16_next_pc): Update accordingly.
1600
ab50adb6
MR
16012014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1602
1603 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1604 function.
1605 (micromips_instruction_is_compact_branch): Likewise.
1606 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1607 or a compact jump, reaching a jump delay slot, or seeing a
1608 second non-prologue instruction.
1609 (micromips_scan_prologue): Also terminate scanning upon seeing a
1610 compact branch or jump, or reaching a branch or jump delay slot.
1611 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1612 or jump delay slot, or seeing a second non-prologue instruction.
1613 (mips32_instruction_has_delay_slot): Retain instruction
1614 examination code only, update arguments accordingly and move
1615 instruction fetch pieces to...
1616 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1617 (micromips_instruction_has_delay_slot): Likewise and to...
1618 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1619 (mips16_instruction_has_delay_slot): Likewise and to...
1620 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1621 (mips_single_step_through_delay): Update accordingly.
1622 (mips_adjust_breakpoint_address): Likewise.
1623
ae790652
MR
16242014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1625
1626 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1627 !mustbe32 also return 1 for 32-bit instructions.
1628 (mips16_instruction_has_delay_slot): Likewise. Add an
1629 explanatory comment.
1630
9b807e7b
MR
16312014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1632
1633 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1634 symbols special.
1635
0d5ed153
MR
16362014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1637
1638 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1639 update comments.
1640 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1641 for the breakpoint's address. Don't preinitialize `placed_size'.
1642 (insert_bp_location): Set `reqstd_address' rather than
1643 `placed_address'.
1644 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1645 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1646 address.
1647 (bkpt_remove_location): Likewise.
1648 (deprecated_insert_raw_breakpoint): Likewise.
1649 (deprecated_remove_raw_breakpoint): Likewise.
1650 (find_single_step_breakpoint): Likewise.
1651 * mem-break.c (default_memory_insert_breakpoint): Use
1652 `reqstd_address' for the breakpoint's address. Don't set
1653 `placed_address' or `placed_size' if breakpoint contents couldn't
1654 have been determined.
1655 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1656 the breakpoint's address.
1657 (remote_insert_hw_breakpoint): Likewise. Don't set
1658 `placed_address' or `placed_size' if breakpoint couldn't have been
1659 set.
1660 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1661 `reqstd_address' for the breakpoint's address.
1662 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1663 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1664 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1665 * microblaze-linux-tdep.c
1666 (microblaze_linux_memory_remove_breakpoint): Likewise.
1667 * monitor.c (monitor_insert_breakpoint): Likewise.
1668 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1669 (procfs_insert_hw_breakpoint): Likewise.
1670 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1671 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1672 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1673 * remote-mips.c (mips_insert_breakpoint): Likewise.
1674 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1675
3e871532
LM
16762014-10-03 Luis Machado <lgustavo@codesourcery.com>
1677
1678 * valops.c (value_assign): Check for bit field assignments
1679 before calling architecture-specific register value
1680 conversion functions.
1681
ec48dc8b
PM
16822014-10-03 Pierre Muller <muller@sourceware.org>
1683
1684 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1685
b57bacec
PA
16862014-10-02 Pedro Alves <palves@redhat.com>
1687
1688 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1689 threads_are_executing.
1690 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1691 describing comment.
1692 * gdbthread.h (threads_are_executing): Declare.
1693 (handle_signal_stop) <random signals>: Don't print about the
1694 signal here if stopping.
1695 (end_stepping_range): Don't notify observers here.
1696 (normal_stop): Update the thread list. If stopped by a random
1697 signal or a stepping range ended, notify observers.
1698 * thread.c (threads_executing): New global.
1699 (init_thread_list): Clear 'threads_executing'.
1700 (set_executing): Set or clear 'threads_executing'.
1701 (threads_are_executing): New function.
1702 (update_threads_executing): New function.
1703 (update_thread_list): Use it.
1704
13fd3ff3
PA
17052014-10-02 Pedro Alves <palves@redhat.com>
1706
1707 PR breakpoints/17431
1708 * breakpoint.c (update_breakpoints_after_exec): Don't create
1709 overlay, longjmp, std terminate nor exception breakpoints here.
1710
32990ada
PA
17112014-10-02 Pedro Alves <palves@redhat.com>
1712
1713 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1714 Adjust comments.
1715 * inferior.c (find_inferior_for_program_space): Give preference to
1716 the current inferior.
1717 * inferior.h (find_inferior_for_program_space): Update comment.
1718 * progspace.c (switch_to_program_space_and_thread): Prefer the
1719 current inferior if it's bound to the program space requested. If
1720 the inferior found doesn't have a PID yet, don't bother looking up
1721 a thread.
1722 * progspace.h (switch_to_program_space_and_thread): Adjust
1723 comment.
1724 * thread.c (any_thread_of_process, any_live_thread_of_process):
1725 Give preference to the current thread.
1726
0fec99e8
PA
17272014-10-01 Pedro Alves <palves@redhat.com>
1728
1729 * breakpoint.c (insert_bp_location): Error out if inserting a
1730 software breakpoint at a read-only address.
1731 * target.c (memory_xfer_check_region): New function, factored out
1732 from ...
1733 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1734 ULONGEST.
1735 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1736 against the memory region attributes.
1737
2ddf4301
SM
17382014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1739
1740 * NEWS: Announce new exit-code field in -list-thread-groups
1741 output.
1742 * inferior.c (exit_inferior_1): Don't clear exit code.
1743 (inferior_appeared): Clear exit code.
1744 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1745 code.
1746
5fdeec1d
PA
17472014-10-01 Pedro Alves <palves@redhat.com>
1748
1749 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1750 GENERATED" along with emacs/vi read-only markers.
1751 * regformats/aarch64.dat: Regenerate.
1752 * regformats/arm-with-iwmmxt.dat: Regenerate.
1753 * regformats/arm-with-neon.dat: Regenerate.
1754 * regformats/arm-with-vfpv2.dat: Regenerate.
1755 * regformats/arm-with-vfpv3.dat: Regenerate.
1756 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1757 * regformats/i386/amd64-avx.dat: Regenerate.
1758 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1759 * regformats/i386/amd64-avx512.dat: Regenerate.
1760 * regformats/i386/amd64-linux.dat: Regenerate.
1761 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1762 * regformats/i386/amd64-mpx.dat: Regenerate.
1763 * regformats/i386/amd64.dat: Regenerate.
1764 * regformats/i386/i386-avx-linux.dat: Regenerate.
1765 * regformats/i386/i386-avx.dat: Regenerate.
1766 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1767 * regformats/i386/i386-avx512.dat: Regenerate.
1768 * regformats/i386/i386-linux.dat: Regenerate.
1769 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1770 * regformats/i386/i386-mmx.dat: Regenerate.
1771 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1772 * regformats/i386/i386-mpx.dat: Regenerate.
1773 * regformats/i386/i386.dat: Regenerate.
1774 * regformats/i386/x32-avx-linux.dat: Regenerate.
1775 * regformats/i386/x32-avx.dat: Regenerate.
1776 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1777 * regformats/i386/x32-avx512.dat: Regenerate.
1778 * regformats/i386/x32-linux.dat: Regenerate.
1779 * regformats/i386/x32.dat: Regenerate.
1780 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1781 * regformats/mips-dsp-linux.dat: Regenerate.
1782 * regformats/mips-linux.dat: Regenerate.
1783 * regformats/mips64-dsp-linux.dat: Regenerate.
1784 * regformats/mips64-linux.dat: Regenerate.
1785 * regformats/nios2-linux.dat: Regenerate.
1786 * regformats/rs6000/powerpc-32.dat: Regenerate.
1787 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1788 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1789 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1790 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1791 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1792 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1793 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1794 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1795 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1796 * regformats/s390-linux32.dat: Regenerate.
1797 * regformats/s390-linux32v1.dat: Regenerate.
1798 * regformats/s390-linux32v2.dat: Regenerate.
1799 * regformats/s390-linux64.dat: Regenerate.
1800 * regformats/s390-linux64v1.dat: Regenerate.
1801 * regformats/s390-linux64v2.dat: Regenerate.
1802 * regformats/s390-te-linux64.dat: Regenerate.
1803 * regformats/s390x-linux64.dat: Regenerate.
1804 * regformats/s390x-linux64v1.dat: Regenerate.
1805 * regformats/s390x-linux64v2.dat: Regenerate.
1806 * regformats/s390x-te-linux64.dat: Regenerate.
1807 * regformats/tic6x-c62x-linux.dat: Regenerate.
1808 * regformats/tic6x-c62x.dat: Regenerate.
1809 * regformats/tic6x-c64x-linux.dat: Regenerate.
1810 * regformats/tic6x-c64x.dat: Regenerate.
1811 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1812 * regformats/tic6x-c64xp.dat: Regenerate.
1813
db74e4ba
PA
18142014-10-01 Pedro Alves <palves@redhat.com>
1815
1816 * features/Makefile: Update comments.
1817 (XMLTOC): List all xml files we build C files from.
1818 (clean-cfiles): New rule.
1819
d63f2f84
PA
18202014-10-01 Pedro Alves <palves@redhat.com>
1821
1822 * features/i386/amd64-avx512-linux.c: Regenerate.
1823 * features/i386/amd64-avx512.c: Regenerate.
1824 * features/i386/x32-avx512-linux.c: Regenerate.
1825 * features/i386/x32-avx512.c: Regenerate.
1826
20ad026d
PA
18272014-10-01 Pedro Alves <palves@redhat.com>
1828
1829 * features/Makefile (WHICH): Remove arm-with-m,
1830 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1831
acc9fe45
PA
18322014-10-01 Pedro Alves <palves@redhat.com>
1833
1834 * features/Makefile (clean): New rule.
1835
e001e535
PA
18362014-10-01 Pedro Alves <palves@redhat.com>
1837
1838 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1839 (zmm14h): Add missing end quotes.
1840
bdc14417
PA
18412014-10-01 Pedro Alves <palves@redhat.com>
1842
1843 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1844 * features/aarch64.c: Regenerate.
1845
d83ad864
DB
18462014-09-30 Don Breazeal <donb@codesourcery.com>
1847
1848 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1849 code so as to work with follow_fork_inferior.
1850 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1851 (inf_ttrace_create_inferior): Remove reference to
1852 inf_ttrace_vfork_ppid.
1853 (inf_ttrace_attach): Ditto.
1854 (inf_ttrace_detach): Ditto.
1855 (inf_ttrace_kill): Use current_inferior instead of
1856 inf_ttrace_vfork_ppid.
1857 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1858 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1859 inferior away from the parent.
1860 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1861 target_follow_fork.
1862 (follow_fork_inferior): New function.
1863 (follow_inferior_reset_breakpoints): Make function static.
1864 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1865 * linux-nat.c (linux_child_follow_fork): Move target-independent
1866 code to infrun.c:follow_fork_inferior.
1867
29082443
AA
18682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1869
1870 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1871 * gdbarch.c: Regenerate.
1872 * gdbarch.h: Likewise.
1873 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1874 gdbarch method 'regset_from_core_section'.
1875 (get_core_register_section): Remove handling for the case that
1876 regset == NULL and regset_from_core_section is defined.
1877 (get_core_registers): Drop check for deleted method.
1878 * procfs.c (procfs_do_thread_registers): Adjust comment.
1879
f968fe80
AA
18802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1881
1882 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1883 (linux_nat_make_corefile_notes): Remove.
1884 (linux_target_install_ops): Do not set target method
1885 'make_corefile_notes'.
1886 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1887 Remove field.
1888 (linux_corefile_thread_callback): Instead of args->collect, call
1889 linux_collect_thread_registers.
1890 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1891 NULL unless there is a regset iterator.
1892 (linux_make_corefile_notes_1): Remove.
1893 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1894 by linux_make_corefile_notes.
1895 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1896
174ad59a
AA
18972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1898
1899 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1900 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1901 Remove.
1902 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1903
97094034
AA
19042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1905
1906 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1907 (xtensa_iterate_over_regset_sections): New.
1908 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1909
f73d3ce7
AA
19102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1911
1912 * vax-tdep.c (vax_regset_from_core_section): Remove.
1913 (vax_iterate_over_regset_sections): New.
1914 (vax_gdbarch_init): Adjust gdbarch initialization.
1915
cb24567a
AA
19162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1917
1918 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1919 (tilegx_regset_from_core_section): Remove.
1920 (tilegx_iterate_over_regset_sections): New.
1921 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1922
e5139de8
AA
19232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1924
1925 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1926 (sparc_iterate_over_regset_sections): New.
1927 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1928 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1929 targets.
1930 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1931 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1932 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1933 target method 'make_corefile_notes'.
1934
c6d41a6f
AA
19352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1936
1937 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1938 'sizeof_gregset' and 'sizeof_fpregset'.
1939 * sh-tdep.c (sh_regset_from_core_section): Remove.
1940 (sh_iterate_over_regset_sections): New.
1941 (sh_gdbarch_init): Adjust gdbarch initialization.
1942 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1943 sizeof_fpregset.
1944 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1945 'sizeof_gregset'.
1946
9845a0b5
AA
19472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1948
1949 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1950 (score7_linux_iterate_over_regset_sections): New.
1951 (score_gdbarch_init): Adjust gdbarch initialization.
1952
23ea9aeb
AA
19532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1954
1955 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1956 FreeBSD targets.
1957 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1958 method 'make_corefile_notes'.
1959 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1960 (ppcfbsd_regset_from_core_section): Remove.
1961 (ppcfbsd_iterate_over_regset_sections): New.
1962 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1963 initialization.
1964 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1965 (ppcnbsd_iterate_over_regset_sections): New.
1966 (ppcnbsd_init_abi): Adjust.
1967 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1968 (ppcobsd_iterate_over_regset_sections): New.
1969 (ppcobsd_init_abi): Adjust.
1970 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1971 (rs6000_aix_iterate_over_regset_sections): New.
1972 (rs6000_aix_init_osabi): Adjust.
1973
c5b8d704
AA
19742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1975
1976 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1977 (nios2_regset_from_core_section): Remove.
1978 (nios2_iterate_over_regset_sections): New.
1979 (nios2_linux_init_abi): Adjust gdbarch initialization.
1980
3636e608
AA
19812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1982
1983 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1984 (am33_iterate_over_regset_sections): New.
1985 (am33_linux_init_osabi): Adjust gdbarch initialization.
1986
d4036235
AA
19872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1988
1989 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1990 (mips_linux_iterate_over_regset_sections): New.
1991 (mips_linux_init_abi): Adjust gdbarch initialization.
1992 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1993 (mips64obsd_iterate_over_regset_sections): New.
1994 (mips64obsd_init_abi): Adjust.
1995 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1996 (mipsnbsd_iterate_over_regset_sections): New.
1997 (mipsnbsd_init_abi): Adjust.
1998
b61ddd6e
AA
19992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2000
2001 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2002 (m88k_iterate_over_regset_sections): New.
2003 (m88k_gdbarch_init): Adjust gdbarch initialization.
2004
55a2906a
AA
20052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2006
2007 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2008 (ia64_linux_iterate_over_regset_sections): New.
2009 (ia64_linux_init_abi): Adjust gdbarch initialization.
2010
022c98ab
AA
20112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2012
2013 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2014 (m68kbsd_iterate_over_regset_sections): New.
2015 (m68kbsd_init_abi): Adjust gdbarch initialization.
2016 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2017 (m68k_linux_iterate_over_regset_sections): New.
2018 (m68k_linux_init_abi): Adjust gdbarch initialization.
2019
5fac247f
AA
20202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2021
2022 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2023 (m32r_linux_regset_from_core_section): Remove.
2024 (m32r_linux_iterate_over_regset_sections): New.
2025 (m32r_linux_init_abi): Adjust gdbarch initialization.
2026
490496c3
AA
20272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2028
2029 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2030 (amd64obsd_iterate_over_regset_sections): New.
2031 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2032 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2033 Remove.
2034 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2035 regset_from_core_section initialization.
2036 * i386-tdep.c (i386_regset_from_core_section): Remove.
2037 (i386_iterate_over_regset_sections): New.
2038 (i386_gdbarch_init): Adjust gdbarch initialization.
2039 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2040 (i386_iterate_over_regset_sections): New prototype.
2041 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2042 Remove.
2043 (i386obsd_aout_iterate_over_regset_sections): New.
2044 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2045 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2046 targets.
2047 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2048 (amd64fbsd_init_abi): Call fbsd_init_abi.
2049 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2050 (i386fbsd4_init_abi): Call fbsd_init_abi.
2051 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2052 target method 'make_corefile_notes'.
2053 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2054
50c5eb53
AA
20552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2056
2057 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2058 (hppa_hpux_iterate_over_regset_sections): New.
2059 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2060 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2061 (hppa_linux_iterate_over_regset_sections): New.
2062 (hppa_linux_init_abi): Adjust.
2063 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2064 (hppanbsd_iterate_over_regset_sections): New.
2065 (hppanbsd_init_abi): Adjust.
2066 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2067 (hppaobsd_iterate_over_regset_sections): New.
2068 (hppaobsd_init_abi): Adjust.
2069
66afae4f
AA
20702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2071
2072 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2073 (frv_linux_iterate_over_regset_sections): New.
2074 (frv_linux_init_abi): Adjust gdbarch initialization.
2075
ed09174e
AA
20762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2077
2078 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2079 (armbsd_iterate_over_regset_sections): New prototype.
2080 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2081 (armbsd_iterate_over_regset_sections): New.
2082 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2083 initialization.
2084
dff2166e
AA
20852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2086
2087 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2088 (alpha_linux_iterate_over_regset_sections): New.
2089 (alpha_linux_init_abi): Adjust gdbarch initialization.
2090 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2091 prototype.
2092 (alphanbsd_iterate_over_regset_sections): New prototype.
2093
4108500a
AA
20942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2095
2096 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2097 Remove.
2098 (aarch64_linux_iterate_over_regset_sections): New.
2099 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2100
a904c024
AA
21012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102
2103 * fbsd-tdep.c: New file.
2104 * fbsd-tdep.h: New file.
2105 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2106 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2107 (ALLDEPFILES): Add fbsd-tdep.c.
2108
8f0435f7
AA
21092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2112 parameter.
2113 * gdbarch.h: Regenerate.
2114 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2115 iterator.
2116 (get_core_register_section): Add parameter 'regset' and use it, if
2117 set. Add parameter 'min_size' and verify the bfd section size
2118 against it.
2119 (get_core_registers_cb): Add parameter 'regset' and pass it to
2120 get_core_register section. For the "standard" register sections
2121 ".reg" and ".reg2", set an appropriate default for human_name.
2122 (get_core_registers): Don't abort when the gdbarch has an iterator
2123 but no regset_from_core_section. Add NULL/0 for parameters
2124 'regset'/'min_size' in calls to get_core_register_section.
2125 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2126 'regset' and use it instead of calling the
2127 regset_from_core_section gdbarch method.
2128 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2129 * i386-tdep.c (i386_supply_xstateregset)
2130 (i386_collect_xstateregset, i386_xstateregset): Moved to
2131 i386-linux-tdep.c.
2132 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2133 .reg-xstate.
2134 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2135 core file support only if the regset iterator hasn't been set.
2136 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2137 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2138 Moved from i386-tdep.c and renamed to *_linux*.
2139 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2140 each callback invocation. Allow any .reg-xstate size when reading
2141 from a core file.
2142 * amd64-tdep.c (amd64_supply_xstateregset)
2143 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2144 amd64-linux-tdep.c.
2145 (amd64_regset_from_core_section): Remove.
2146 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2147 install an amd64-specific regset_from_core_section gdbarch method.
2148 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2149 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2150 Moved from amd64-tdep.c and renamed to *_linux*.
2151 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2152 to each callback invocation. Allow any .reg-xstate size when
2153 reading from a core file.
2154 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2155 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2156 each callback invocation.
2157 (arm_linux_init_abi): No longer set the regset_from_core_section
2158 gdbarch method.
2159 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2160 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2161 each callback invocation.
2162 (ppc_linux_init_abi): No longer set the regset_from_core_section
2163 gdbarch method.
2164 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2165 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2166 (s390_regset_from_core_section): Remove.
2167 (s390_iterate_over_regset_sections): Add regset parameter to each
2168 callback invocation.
2169 (s390_gdbarch_init): No longer set the regset_from_core_section
2170 gdbarch method. Drop initialization of deleted tdep fields.
2171
5aa82d05
AA
21722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173
2174 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2175 (amd64_linux_iterate_over_regset_sections): New.
2176 (amd64_linux_init_abi_common): Don't install the regset section
2177 list, but the new iterator in gdbarch.
2178 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2179 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2180 (arm_linux_iterate_over_regset_sections): ...here. New function.
2181 (arm_linux_init_abi): Set iterator instead of section list.
2182 * corelow.c (get_core_registers_cb): New function, logic moved
2183 from...
2184 (get_core_registers): ...loop body here. Use new iterator method
2185 instead of walking through the regset section list.
2186 * gdbarch.sh: Remove 'core_regset_sections'. New method
2187 'iterate_over_regset_sections'. New typedef
2188 'iterate_over_regset_sections_cb'.
2189 * gdbarch.c: Regenerate.
2190 * gdbarch.h: Likewise.
2191 * i386-linux-tdep.c (i386_linux_regset_sections)
2192 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2193 Remove.
2194 (i386_linux_iterate_over_regset_sections): New.
2195 (i386_linux_init_abi): Don't choose a regset section list, but
2196 install new iterator in gdbarch.
2197 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2198 (linux_collect_regset_section_cb): New function, logic moved
2199 from...
2200 (linux_collect_thread_registers): ...loop body here. Use iterator
2201 method instead of walking through list.
2202 (linux_make_corefile_notes_1): Check for presence of iterator
2203 method instead of regset section list.
2204 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2205 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2206 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2207 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2208 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2209 (ppc_linux_init_abi): Don't choose from above regset section
2210 lists, but install new iterator in gdbarch.
2211 * regset.h (struct core_regset_section): Remove.
2212 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2213 have_linux_v1, have_linux_v2, and have_tdb.
2214 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2215 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2216 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2217 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2218 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2219 (s390_iterate_over_regset_sections): ...here. New function. Use
2220 new tdep fields.
2221 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2222 regset section lists, but install new iterator.
2223
2eca4a8d
JK
22242014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2225
2226 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2227
a73c2b56
SM
22282014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2229
2230 * progspace.c (print_program_space): Don't prune program spaces
2231 before printing them.
2232
03d46957
PA
22332014-09-25 Pedro Alves <palves@redhat.com>
2234
2235 * infrun.c (user_visible_resume_ptid): Don't check
2236 singlestep_breakpoints_inserted_p.
2237
e558d7c1
PA
22382014-09-25 Pedro Alves <palves@redhat.com>
2239
2240 * breakpoint.c (should_be_inserted): Add debug output.
2241
7f89fd65
PA
22422014-09-25 Pedro Alves <palves@redhat.com>
2243
2244 * infrun.c (stepping_past_instruction_at)
2245 (clear_exit_convenience_vars): Point at infrun.h instead of
2246 inferior.h.
2247 (handle_signal_stop): Fix typo.
2248
b7576e5c
YQ
22492014-09-24 Yao Qi <yao@codesourcery.com>
2250
2251 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2252 bitmask.
2253
9a6cf368
GB
22542014-09-22 Gary Benson <gbenson@redhat.com>
2255
2256 * target.c (target_stop): Updated comment.
2257
03f4463b
GB
22582014-09-22 Gary Benson <gbenson@redhat.com>
2259
2260 * target/target.h (target_stop_ptid): Renamed as...
2261 (target_stop_and_wait): New function. Updated comment.
2262 All uses updated.
2263 (target_continue_ptid): Renamed as...
2264 (target_continue_no_signal): New function. Updated comment.
2265 All uses updated.
2266
a25a5a45
PA
22672014-09-22 Pedro Alves <palves@redhat.com>
2268
2269 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2270 and "auto" merged.
2271 * breakpoint.c (enum ugll_insert_mode): New enum.
2272 (always_inserted_mode): Now a plain boolean.
2273 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2274 (breakpoints_always_inserted_mode): Delete.
2275 (breakpoints_should_be_inserted_now): New function.
2276 (insert_breakpoints): Pass UGLL_INSERT to
2277 update_global_location_list instead of calling
2278 insert_breakpoint_locations manually.
2279 (create_solib_event_breakpoint_1): New, factored out from ...
2280 (create_solib_event_breakpoint): ... this.
2281 (create_and_insert_solib_event_breakpoint): Use
2282 create_solib_event_breakpoint_1 instead of calling
2283 insert_breakpoint_locations manually.
2284 (update_global_location_list): Change parameter type from boolean
2285 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2286 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2287 (update_global_location_list_nothrow): Change parameter type from
2288 boolean to enum ugll_insert_mode.
2289 (_initialize_breakpoint): "breakpoint always-inserted" option is
2290 now a boolean command. Update help text.
2291 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2292 (breakpoints_should_be_inserted_now): New declaration.
2293 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2294 Remove breakpoints_always_inserted_mode check.
2295 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2296 * remote.c (remote_start_remote): Likewise.
2297
04086b45
PA
22982014-09-22 Pedro Alves <palves@redhat.com>
2299
2300 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2301 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2302 Instead, pass UGLL_INSERT to update_global_location_list.
2303 (update_global_location_list): Change parameter type from boolean
2304 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2305 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2306 (create_solib_event_breakpoint_1): New, factored out from ...
2307 (create_solib_event_breakpoint): ... this.
2308 (create_and_insert_solib_event_breakpoint): Use
2309 create_solib_event_breakpoint_1 instead of calling
2310 insert_breakpoint_locations manually.
2311 (update_global_location_list): Handle UGLL_INSERT.
2312
44702360
PA
23132014-09-22 Pedro Alves <palves@redhat.com>
2314
2315 * breakpoint.c (enum ugll_insert_mode): New enum.
2316 (update_global_location_list)
2317 (update_global_location_list_nothrow): Change parameter type from
2318 boolean to enum ugll_insert_mode. All callers adjusted.
2319
93c6145a
JB
23202014-09-19 Joel Brobecker <brobecker@adacore.com>
2321
2322 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2323 SystemTap support in GDB.
2324
89a5711c
DB
23252014-09-19 Don Breazeal <donb@codesourcery.com>
2326
2327 * linux-nat.c (linux_handle_extended_wait): Call
2328 linux_ptrace_get_extended_event.
2329 (wait_lwp): Call linux_is_extended_waitstatus.
2330 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2331 and linux_is_extended_waitstatus.
2332 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2333 linux_ptrace_get_extended_event.
2334 (linux_ptrace_get_extended_event): New function.
2335 (linux_is_extended_waitstatus): New function.
2336 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2337 (linux_is_extended_waitstatus): New declarations.
2338
c3b7b696
YQ
23392014-09-19 Yao Qi <yao@codesourcery.com>
2340
2341 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2342 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2343 comments. Callers update.
2344 (dwarf_decode_lines): Likewise.
2345 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2346 comments. Skip the line table if 'lowpc' is greater than
2347 'address'. Don't check
2348 dwarf2_per_objfile->has_section_at_zero.
2349
2b4fd423
DE
23502014-09-18 Doug Evans <dje@google.com>
2351
2352 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2353 * python/py-symtab.c (stpy_get_producer): New function.
2354 (symtab_object_getset): Add "producer" attribute.
2355
5e43d467
UW
23562014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2357
2358 PR gdb/17384
2359 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2360 (do_captured_read_memory_integer): Remove.
2361 (safe_read_memory_integer): Use target_read_memory directly instead
2362 of catching errors in do_captured_read_memory_integer.
2363
04e79979
MR
23642014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2365
2366 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2367 not gdb/doc.
2368
76aeec5b
SDJ
23692014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2370
2371 * objc-lang.c (find_implementation_from_class): Remove dead code.
2372
2f693f9d
SDJ
23732014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2374
2375 PR cli/7233
2376 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2377 "fprintf_unfiltered (gdb_stdlog...)".
2378
bb9d5f81
PP
23792014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2380
2381 PR breakpoints/12526
2382 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2383 val_bitsize.
2384 * breakpoint.c (watch_command_1): Use these fields to retain
2385 bitfield information.
2386 (extract_bitfield_from_watchpoint_value): New function.
2387 (watchpoint_check): Use it.
2388 (update_watchpoint): Use it. Optimize the address and length of a
2389 HW watchpoint pointing to a bitfield.
2390 * value.h (unpack_value_bitfield): New prototype.
2391 * value.c (unpack_value_bitfield): Make extern.
2392
05db5edd
ST
23932014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2394
2395 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2396 x86-dregs.o.
2397 * gnu-nat.c (inf_threads): New function.
2398 * gnu-nat.h (inf_threads_ftype): New typedef.
2399 (inf_threads): New declaration.
2400 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2401 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2402 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2403 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2404 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2405 (i386_gnu_dr_get_control): New functions.
2406 (reg_addr): New structure.
2407 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2408 i386 debugging register hooks.
2409 * NEWS: Mention this.
2410
5a578da5
OJ
24112014-08-13 Omair Javaid <omair.javaid@linaro.org>
2412
2413 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2414 vector data transfer instructions.
2415 (arm_record_coproc_data_proc): Updated.
2416
f20f80dd
OJ
24172014-08-13 Omair Javaid <omair.javaid@linaro.org>
2418
2419 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2420 arm_record_exreg_ld_st_insn.
2421 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2422 load/store insns.
2423
851f26ae
OJ
24242014-08-13 Omair Javaid <omair.javaid@linaro.org>
2425
2426 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2427 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2428 processing instructions.
2429
1e1b6563
OJ
24302014-08-13 Omair Javaid <omair.javaid@linaro.org>
2431
2432 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2433 for advance SIMD struct ld/st insn.
2434 (thumb2_record_decode_insn_handler): Replace stub handler with
2435 thumb2_record_asimd_struct_ld_st.
2436
60cc5e93
OJ
24372014-08-13 Omair Javaid <omair.javaid@linaro.org>
2438
2439 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2440 for asimd, vfp and coprocessor insns.
2441 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2442 and coprocessor insns.
2443 (thumb2_record_coproc_insn): New function.
2444 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2445 handlers.
2446 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2447 opcode 110 insns.
2448
81219e53
DE
24492014-09-13 Doug Evans <xdje42@gmail.com>
2450
2451 * NEWS: Mention new "queue-signal" command.
2452 * infcmd.c (queue_signal_command): New function.
2453 (_initialize_infcmd): Add new queue-signal command.
2454
d36bf488
DE
24552014-09-13 Doug Evans <xdje42@gmail.com>
2456
2457 * linux-nat.c (wait_lwp): Add debugging printf.
2458 (linux_nat_wait_1): Ditto.
2459
f37f681c
PA
24602014-09-12 Pedro Alves <palves@redhat.com>
2461
2462 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2463 (create_and_insert_solib_event_breakpoint): New functions.
2464 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2465 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2466 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2467 (remove_dbx_link_breakpoint): Delete function.
2468 (insert_dbx_link_bpt_in_file): Use
2469 create_and_insert_solib_event_breakpoint instead of
2470 deprecated_insert_raw_breakpoint.
2471 (procfs_wait): Don't check whether we hit __dbx_link here.
2472 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2473 here.
2474 * solib-irix.c (base_breakpoint): Delete global.
2475 (disable_break): Delete function.
2476 (enable_break): Use create_solib_event_breakpoint
2477 instead of deprecated_insert_raw_breakpoint.
2478 (irix_solib_handle_event): New function.
2479 (irix_solib_create_inferior_hook): Don't run the target or disable
2480 the mapping-complete breakpoint here.
2481 (_initialize_irix_solib): Install irix_solib_handle_event as
2482 so_ops->handle_event hook.
2483
9d9bf2df
EBM
24842014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2485 Ulrich Weigand  <uweigand@de.ibm.com>
2486
2487 PR tdep/17379
2488 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2489 instead of read_memory_unsigned_integer.
2490
b006a80e
GB
24912014-09-12 Gary Benson <gbenson@redhat.com>
2492
2493 * nat/linux-waitpid.c: Include common-defs.h.
2494 [GDBSERVER]: Add FIXME comment.
2495 [!GDBSERVER]: Don't include defs.h or signal.h.
2496 (linux_debug) [!GDBSERVER]: Remove empty block.
2497
296b1496
GB
24982014-09-12 Gary Benson <gbenson@redhat.com>
2499
2500 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2501 Don't include defs.h or server.h.
2502
53f81362
GB
25032014-09-12 Gary Benson <gbenson@redhat.com>
2504
2505 * nat/linux-btrace.c: Include common-defs.h.
2506 Don't include defs.h, server.h or gdbthread.h.
2507 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2508
727605ca
GB
25092014-09-12 Gary Benson <gbenson@redhat.com>
2510
2511 * common/agent.c: Include common-defs.h.
2512 Don't include defs.h or server.h.
2513 * common/buffer.c: Likewise.
2514 * common/common-debug.c: Likewise.
2515 * common/common-utils.c: Likewise.
2516 * common/errors.c: Likewise.
2517 * common/filestuff.c: Likewise.
2518 * common/format.c: Likewise.
2519 * common/gdb_vecs.c: Likewise.
2520 * common/print-utils.c: Likewise.
2521 * common/ptid.c: Likewise.
2522 * common/rsp-low.c: Likewise.
2523 * common/signals.c: Likewise.
2524 * common/vec.c: Likewise.
2525 * common/xml-utils.c: Likewise.
2526 * nat/linux-osdata.c: Likewise.
2527 * nat/linux-procfs.c: Likewise.
2528 * nat/linux-ptrace.c: Likewise.
2529 * nat/mips-linux-watch.c: Likewise.
2530 * target/waitstatus.c: Likewise.
2531
361c8ade
GB
25322014-09-12 Tom Tromey <tromey@redhat.com>
2533 Gary Benson <gbenson@redhat.com>
2534
2535 * common/common-regcache.h: New file.
2536 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2537 * regcache.h: Include common-regcache.h.
2538 (regcache_read_pc): Don't declare.
2539 * regcache.c (get_thread_regcache_for_ptid): New function.
2540 * nat/linux-btrace.c: Don't include regcache.h.
2541 Include common-regcache.h.
2542 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2543
a01cbb49
TS
25442014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2545
2546 * regcache.h (struct regset): Declare.
2547
98880d46
PA
25482014-09-11 Pedro Alves <palves@redhat.com>
2549
2550 PR gdb/17347
2551 * main.c: Include "infrun.h".
2552 (catch_command_errors, catch_command_errors_const): Wait for the
2553 foreground command to complete.
2554 * top.c (maybe_wait_sync_command_done): New function, factored out
2555 from ...
2556 (maybe_wait_sync_command_done): ... here.
2557 * top.h (maybe_wait_sync_command_done): New declaration.
2558
bd9269f7
GB
25592014-09-11 Tom Tromey <tromey@redhat.com>
2560 Gary Benson <gbenson@redhat.com>
2561
2562 * common/symbol.h: New file.
2563 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2564 * minsyms.c (find_minimal_symbol_address): New function.
2565 * common/agent.c: Include common/symbol.h.
2566 [!GDBSERVER]: Don't include objfiles.h.
2567 (agent_look_up_symbols): Use find_minimal_symbol_address.
2568
f8c1d06b
GB
25692014-09-11 Gary Benson <gbenson@redhat.com>
2570
2571 * target/target.h (target_stop_ptid, target_continue_ptid):
2572 Declare.
2573 * target.c (target_stop_ptid, target_continue_ptid): New
2574 functions.
2575 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2576 (agent_run_command): Always use target_stop_ptid and
2577 target_continue_ptid.
2578
721ec300
GB
25792014-09-11 Tom Tromey <tromey@redhat.com>
2580 Gary Benson <gbenson@redhat.com>
2581
2582 * target/target.h: New file.
2583 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2584 * target.h: Include target/target.h.
2585 (target_read_memory, target_write_memory): Don't declare.
2586 * target.c (target_read_uint32): New function.
2587 * common/agent.c: Include target/target.h.
2588 [!GDBSERVER]: Don't include target.h.
2589 (helper_thread_id): Type changed to uint32_t.
2590 (agent_get_helper_thread_id): Use target_read_uint32.
2591 (agent_run_command): Always use target_read_memory and
2592 target_write_memory.
2593 (agent_capability): Type changed to uint32_t.
2594 (agent_capability_check): Use target_read_uint32.
2595
c5e92cca
GB
25962014-09-11 Gary Benson <gbenson@redhat.com>
2597
2598 * common/common-debug.h (show_debug_regs): Declare.
2599 * common/common-debug.c (show_debug_regs): Define.
2600 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2601 all uses with show_debug_regs. Replace all uses that considered
2602 debug_hw_points as a multi-value integer with straight boolean
2603 uses.
2604 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2605 with show_debug_regs.
2606 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2607 all uses with show_debug_regs.
2608 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2609 uses with show_debug_regs.
2610
eeef931a
UW
26112014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2612
2613 * findvar.c (address_from_register): Handle targets requiring
2614 a special conversion routine even for plain pointer types.
2615
8efa9855
UW
26162014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2617
2618 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2619 (store_register): Do not call exec_one_dummy_insn.
2620
eb479039
JB
26212014-09-10 Joel Brobecker <brobecker@adacore.com>
2622
2623 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2624 dereference it first. Use value_enclosing_type instead of
2625 value_type.
2626 (ada_array_length): Likewise.
2627
deede10c
JB
26282014-09-10 Joel Brobecker <brobecker@adacore.com>
2629
2630 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2631 Adjust function implementation and documentation accordingly.
2632 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2633 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2634 Update call to ada_value_ptr_subscript.
2635
7828a5f5
JB
26362014-09-10 Joel Brobecker <brobecker@adacore.com>
2637
2638 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2639 instead of VAL's type.
2640
35782f14
JB
26412014-09-10 Joel Brobecker <brobecker@adacore.com>
2642
2643 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2644
d342a0da
DE
26452014-09-09 Doug Evans <xdje42@gmail.com>
2646
2647 PR guile/17367
2648 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2649 last parameter to pkg-config, not first.
2650 * configure.ac: Pass --with-guile provided pkg-config path to
2651 GDB_GUILE_PROGRAM_NAMES.
2652 * configure: Regenerate.
2653
b4a3d263
GKB
26542014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2655
2656 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2657 Bertazi".
2658
6e466374
MR
26592014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2660
2661 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2662 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2663 the list of sections determining GDB_OSABI_IRIX.
2664
a1ada89a
JH
26652014-09-09 James Hogan <james.hogan@imgtec.com>
2666
2667 * MAINTAINERS (Write After Approval): Add "James Hogan".
2668
86db008d
JH
26692014-09-09 James Hogan <james.hogan@imgtec.com>
2670
2671 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2672
72fde3df
JB
26732014-09-09 Joel Brobecker <brobecker@adacore.com>
2674
2675 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2676
92d8d229
DE
26772014-09-08 Doug Evans <xdje42@gmail.com>
2678
2679 PR 17247
2680 * guile.c: #include <signal.h>.
2681 (_initialize_guile): Block SIGCHLD while initializing Guile.
2682
2683 Replaces the following, which is reverted.
2684
2685 2014-07-26 Doug Evans <xdje42@gmail.com>
2686
2687 PR 17185
2688 * configure.ac: Add check for header gc/gc.h.
2689 Add check for function setenv.
2690 * configure: Regenerate.
2691 * config.in: Regenerate.
2692 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2693
d81412aa
DE
26942014-09-08 Doug Evans <xdje42@gmail.com>
2695
2696 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2697 with named constant. Fix style of pointer comparison.
2698 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2699
a9f116cb
GKB
27002014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2701
2702 PR gdb/17035
2703 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2704 decide whether we display the command on "show user".
2705 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2706 printing command name.
2707 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2708 * cli/cli-decode.c (cli_user_command_p): Create helper function
2709 to verify whether cmd_list_element is a user-defined command.
2710
c75bd3a2
JK
27112014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2712
2713 PR python/17355
2714 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2715 Fix goto out of TRY_CATCH.
2716
faa42425 27172014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2718 Tom Tromey <tromey@redhat.com>
faa42425
DE
2719
2720 PR 15276
2721 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2722 $_any_caller_matches.
2723 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2724 * python/lib/gdb/function/caller_is.py: New file.
2725
0d41ba00
DE
27262014-09-06 Doug Evans <xdje42@gmail.com>
2727
2728 * infcmd.c (program_info): Fix typo.
2729
474ca4f6
SDJ
27302014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2731
2732 PR gdb/17235
2733 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2734 'number'. New variable 'has_digit'. Rewrite code to deal with
2735 subexpressions on SDT probes.
2736
ebf13736
PA
27372014-09-04 Pedro Alves <palves@redhat.com>
2738
2739 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2740 the input is only one character long.
2741
eb0b0463
SDJ
27422014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2743
2744 PR fortran/17237
2745 * f-valprint.c (f_val_print): Specify the correct print option to
2746 use when printing integer values.
2747
5ee44bfa
GB
27482014-09-04 Gary Benson <gbenson@redhat.com>
2749
2750 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2751 Remove code to cope with LWPs wrapped as PIDs.
2752 Add assertions to ensure no wrapped LWPs are passed.
2753
4875ffdb
PA
27542014-09-04 Pedro Alves <palves@redhat.com>
2755
2756 * value.c (value_ranges_copy_adjusted): New function, factored out
2757 from ...
2758 (value_contents_copy_raw): ... here.
2759 (unpack_value_bits_as_long_1): Rename back to ...
2760 (unpack_bits_as_long): ... this. Remove 'original_value' and
2761 'result' parameters. Change return type to LONGEST.
2762 (unpack_value_bits_as_long): Delete.
2763 (unpack_value_field_as_long_1): Delete.
2764 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2765 (unpack_value_bitfield): New function.
2766 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2767 (value_fetch_lazy): Use unpack_value_bitfield.
2768 * value.h (unpack_value_bits_as_long): Delete declaration.
2769
5f3b99cf
SS
27702014-09-03 Sasha Smundak <asmundak@google.com>
2771
2772 * python/py-frame.c (frapy_read_register): New function.
2773
ac740bc7
JH
27742014-09-03 James Hogan <james.hogan@imgtec.com>
2775
2776 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2777 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2778
7d793aa9
SDJ
27792014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2780
2781 PR python/16699
2782 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2783 function.
2784 (add_cmd): Set "completer_handle_brkchars" to NULL.
2785 * cli/cli-decode.h (struct cmd_list_element)
2786 <completer_handle_brkchars>: New field.
2787 * command.h (completer_ftype_void): New typedef.
2788 (set_cmd_completer_handle_brkchars): New prototype.
2789 * completer.c (set_gdb_completion_word_break_characters): New
2790 function.
2791 (complete_line_internal): Call "completer_handle_brkchars"
2792 callback from command.
2793 * completer.h: Include "command.h".
2794 (set_gdb_completion_word_break_characters): New prototype.
2795 * python/py-cmd.c (cmdpy_completer_helper): New function.
2796 (cmdpy_completer_handle_brkchars): New function.
2797 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2798 (cmdpy_init): Set completer_handle_brkchars to
2799 cmdpy_completer_handle_brkchars.
2800
97ea6506
GB
28012014-09-03 Gary Benson <gbenson@redhat.com>
2802
2803 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2804 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2805 Loop conditions changed to equivalent form.
2806 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2807 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2808 ALL_DEBUG_ADDRESS_REGISTERS.
2809
d1437815
JB
28102014-09-03 Joel Brobecker <brobecker@adacore.com>
2811
2812 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2813 description fix.
2814
9b94fcf1
DE
28152014-09-02 Doug Evans <dje@google.com>
2816
2817 * typeprint.c (find_global_typedef): Fix comment.
2818
df7e5265
GB
28192014-09-02 Gary Benson <gbenson@redhat.com>
2820
2821 * i386-nat.h: Renamed as...
2822 * x86-nat.h: New file. All type, function and variable name
2823 prefixes changed from "i386_" to "x86_". All references updated.
2824 * i386-nat.c: Renamed as...
2825 * x86-nat.c: New file. All type, function and variable name
2826 prefixes changed from "i386_" to "x86_". All references updated.
2827 * common/i386-xstate.h: Renamed as...
2828 * common/x86-xstate.h: New file. All type, function and variable
2829 name prefixes changed from "i386_" to "x86_". All references
2830 updated.
2831 * nat/i386-cpuid.h: Renamed as...
2832 * nat/x86-cpuid.h: New file. All type, function and variable name
2833 prefixes changed from "i386_" to "x86_". All references updated.
2834 * nat/i386-gcc-cpuid.h: Renamed as...
2835 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2836 name prefixes changed from "i386_" to "x86_". All references
2837 updated.
2838 * nat/i386-dregs.h: Renamed as...
2839 * nat/x86-dregs.h: New file. All type, function and variable name
2840 prefixes changed from "i386_" to "x86_". All references updated.
2841 * nat/i386-dregs.c: Renamed as...
2842 * nat/x86-dregs.c: New file. All type, function and variable name
2843 prefixes changed from "i386_" to "x86_". All references updated.
2844
1c3569d4
MR
28452014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2846
2847 * varobj.c (_initialize_varobj): Move to the end of file.
2848
ff55e1b5
GB
28492014-08-29 Gary Benson <gbenson@redhat.com>
2850
2851 * common/common-exceptions.h: New file.
2852 * common/common-exceptions.c: Likewise.
2853 * Makefile.in (SFILES): Add common/common-exceptions.c.
2854 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2855 (COMMON_OBS): Add common-exceptions.o.
2856 (common-exceptions.o): New rule.
2857 * exceptions.h (common-exceptions.h): Include.
2858 (gdb_setjmp.h): Do not include.
2859 (return_reason): Moved to common-exceptions.h.
2860 (enum return_reason): Likewise.
2861 (RETURN_MASK): Likewise.
2862 (typedef return_mask): Likewise.
2863 (enum errors): Likewise.
2864 (struct gdb_exception): Likewise.
2865 (exceptions_state_mc_init): Likewise.
2866 (exceptions_state_mc_action_iter): Likewise.
2867 (exceptions_state_mc_action_iter_1): Likewise.
2868 (TRY_CATCH): Likewise.
2869 (throw_exception): Likewise.
2870 (throw_verror): Likewise.
2871 (throw_vquit): Likewise.
2872 (throw_error): Likewise.
2873 (throw_quit): Likewise.
2874 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2875 (enum catcher_action): Likewise.
2876 (struct catcher): Likewise.
2877 (current_catcher): Likewise.
2878 (catcher_list_size): Likewise.
2879 (exceptions_state_mc_init): Likewise.
2880 (catcher_pop): Likewise.
2881 (exceptions_state_mc): Likewise.
2882 (exceptions_state_mc_action_iter): Likewise.
2883 (exceptions_state_mc_action_iter_1): Likewise.
2884 (throw_exception): Likewise.
2885 (exception_messages): Likewise.
2886 (exception_messages_size): Likewise.
2887 (throw_it): Likewise.
2888 (throw_verror): Likewise.
2889 (throw_vquit): Likewise.
2890 (throw_error): Likewise.
2891 (throw_quit): Likewise.
2892 (prepare_to_throw_exception): New function.
2893
e9bcb658
GB
28942014-08-29 Gary Benson <gbenson@redhat.com>
2895
2896 * common/gdb_setjmp.h: New file.
2897 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2898 * configure.ac: Move sigsetjmp check...
2899 * common/common.m4: ...here.
2900 * configure: Regenerate.
2901 * cp-support.c (SIGJMP_BUF): Delete.
2902 (SIGSETJMP): Likewise.
2903 (SIGLONGJMP): Likewise.
2904 * exceptions.h (gdb_setjmp.h): Include.
2905 (setjmp.h): Do not include.
2906 (EXCEPTIONS_SIGJMP_BUF): Delete.
2907 (EXCEPTIONS_SIGSETJMP): Likewise.
2908 (EXCEPTIONS_SIGLONGJMP): Likewise.
2909 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2910 from gdb_setjmp.h.
2911 * exceptions.c: Likewise.
2912
e3180625
GB
29132014-08-29 Gary Benson <gbenson@redhat.com>
2914
2915 * cleanups.h: Moved to...
2916 * common/cleanups.h: New file.
2917 * cleanups.c: Moved to...
2918 * common/cleanups.c: New file. Include common-defs.h and
2919 cleanups.h. Do not include defs.h.
2920 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2921 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2922 (cleanups.o): New rule.
2923
e3d6ba5d
GB
29242014-08-29 Gary Benson <gbenson@redhat.com>
2925
2926 * common/errors.h (internal_warning): New declaration.
2927 (internal_vwarning): Likewise.
2928 * common/errors.c (internal_warning): New function.
2929 * utils.h (internal_warning): Don't declare.
2930 (internal_vwarning): Likewise.
2931 * utils.c (internal_warning): Removed.
2932
075c7033
GB
29332014-08-29 Gary Benson <gbenson@redhat.com>
2934
2935 * main.c (captured_main): Use warning during startup.
2936 Prefix startup warning messages with command name.
2937
91b35fd0
GB
29382014-08-29 Gary Benson <gbenson@redhat.com>
2939
2940 * main.c (captured_main): Handle usage errors with error.
2941
b1ec390e
GB
29422014-08-29 Gary Benson <gbenson@redhat.com>
2943
2944 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2945 exit pair with a call to error. Wrap the message with _().
2946
fd0ef3dd
GB
29472014-08-29 Gary Benson <gbenson@redhat.com>
2948
2949 * main.c (captured_main): Replace a fprintf/exit
2950 pair with a call to error. Wrap the message with _().
2951
e0e6bcab
GB
29522014-08-29 Gary Benson <gbenson@redhat.com>
2953
2954 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2955 pairs with calls to error. Wrap the message with _().
2956
0d2f5c07
GB
29572014-08-29 Gary Benson <gbenson@redhat.com>
2958
2959 * utils.c (vwarning): Protect calls to target_terminal_ours
2960 and wrap_here.
2961
5df43998
GB
29622014-08-29 Gary Benson <gbenson@redhat.com>
2963
2964 * exceptions.c (print_flush): Protect calls to
2965 target_terminal_ours and wrap_here.
2966
2437fd32
GB
29672014-08-29 Gary Benson <gbenson@redhat.com>
2968
2969 * utils.h (filtered_printing_initialized): New declaration.
2970 * utils.c (abort_with_message): New function.
2971 (internal_vproblem): Use abort_with_message for first level
2972 recursive internal problems, and if gdb_stderr is not set up.
2973 Protect calls to target_terminal_ours, begin_line and query.
2974
f1f58506
DE
29752014-08-28 Doug Evans <dje@google.com>
2976
2977 * symtab.c (in_prologue): Move definition to better spot.
2978 (skip_prologue_using_sal): Ditto.
2979
aab2f208
DE
29802014-08-28 Doug Evans <dje@google.com>
2981
2982 * symtab.c (find_function_start_sal): Move definition to better spot.
2983
6b65d1b6
YQ
29842014-08-28 Yao Qi <yao@codesourcery.com>
2985
2986 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2987 found_stack_adjust in forward scan. Remove condition check
2988 on found_stack_adjust which is always true. Indent the code.
2989
a1b34d15
YQ
29902014-08-28 Yao Qi <yao@codesourcery.com>
2991
2992 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2993 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2994 (dwarf_decode_lines): Remove argument
2995 want_line_info. Remove condition check on want_line_info.
2996 Callers update.
2997
d5962de5
DE
29982014-08-27 Doug Evans <dje@google.com>
2999
3000 * dwarf2read.c (dwarf_record_line): Fix typo.
3001
9b139002
SDJ
30022014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3003
3004 * target.h (struct target_ops::to_terminal_save_ours): Remove
3005 declaration.
3006 (target_terminal_save_ours): Remove macro.
3007 * target-delegates.c: Regenerate.
3008 * inf-child.c (inf_child_target): Don't set the nonexistent
3009 field to_terminal_save_ours.
3010 * inferior.h (child_terminal_save_ours): Remove declaration.
3011 * terminal.h (gdb_save_tty_state): New declaration.
3012 * inflow.c (child_terminal_save_ours): Rename to ...
3013 (gdb_save_tty_state): ... this.
3014 * tui/tui.c: Include terminal.h.
3015 (tui_enable): Use gdb_save_tty_state instead of
3016 target_terminal_save_ours.
3017 (tui_disable): Likewise.
3018
9debeba0
DE
30192014-08-25 Doug Evans <dje@google.com>
3020
3021 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3022 Pass NULL instead of 0 for context pointer.
3023
428fc5fc
YQ
30242014-08-25 Yao Qi <yao@codesourcery.com>
3025
3026 * dwarf2read.c: Fix grammatical error.
3027
cdc07690
YQ
30282014-08-24 Yao Qi <yao@codesourcery.com>
3029
3030 * dwarf2read.c (scan_partial_symbols): Update comments.
3031 Rename argument 'need_pc' with 'set_addrmap'.
3032 (add_partial_namespace): Rename argument 'need_pc' with
3033 'set_addrmap'.
3034 (add_partial_module): Likewise.
3035 (add_partial_subprogram): Likewise. Update comments.
3036 (dwarf2_name): Fix typo.
3037
a05a36a5
DE
30382014-08-22 Doug Evans <dje@google.com>
3039
3040 PR 17276
3041 * dwarf2read.c (dwarf_record_line_p): New function.
3042 (dwarf_decode_lines_1): Ignore subsequent line number entries
3043 for the same line if any entry had a non-zero discriminator.
3044
252a6764
DE
30452014-08-22 Doug Evans <dje@google.com>
3046
3047 * buildsym.h (record_line_ftype): New typedef.
3048 (record_line): Use it.
3049 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3050 (dwarf_decode_lines_1): Call them.
3051
510db052
YQ
30522014-08-22 Yao Qi <yao@codesourcery.com>
3053
3054 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3055 (ctf_end): Remove code.
3056
22fd09ae
JK
30572014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3058
3059 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3060 (linux_make_corefile_notes): call update_thread_list, protected against
3061 exceptions.
3062
656e8868
PA
30632014-08-21 Pedro Alves <palves@redhat.com>
3064
3065 * infcmd.c (attach_command): Remove comment.
3066
de589d04
WN
30672014-08-21 Bin Cheng <bin.cheng@arm.com>
3068
3069 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3070 unsigned LONGEST to ULONGEST.
3071
2a31c623
PA
30722014-08-20 Pedro Alves <palves@redhat.com>
3073
3074 * Makefile.in (check-read1): New rule.
3075
d36430db
JB
30762014-08-20 Joel Brobecker <brobecker@adacore.com>
3077
3078 * value.c (value_from_contents_and_address): Strip resolved_type's
3079 typedef layers before checking its TYPE_DATA_LOCATION.
3080
000339af
PA
30812014-08-20 Pedro Alves <palves@redhat.com>
3082
3083 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3084
5f52445b
YQ
30852014-08-20 Yao Qi <yao@codesourcery.com>
3086
3087 * amd64-tdep.c (amd64_classify): Add a blank line after the
3088 example. Move "*/" to a new line.
3089 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3090 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3091 * dwarf2read.c (psymtab_include_file_name): Likewise.
3092
9a0dc9e3
PA
30932014-08-19 Andrew Burgess <aburgess@broadcom.com>
3094 Pedro Alves <palves@redhat.com>
3095
3096 PR symtab/14604
3097 PR symtab/14605
3098 * ada-lang.c (coerce_unspec_val_to_type): Use
3099 value_contents_copy_raw.
3100 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3101 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3102 * cp-valprint.c (cp_print_value_fields): Let the common printing
3103 code handle optimized out values.
3104 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3105 * d-valprint.c (dynamic_array_type): Use
3106 value_bits_any_optimized_out.
3107 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3108 check_any_valid fields.
3109 (check_pieced_value_bits): Delete and inline ...
3110 (check_pieced_synthetic_pointer): ... here.
3111 (check_pieced_value_validity): Delete.
3112 (check_pieced_value_invalid): Delete.
3113 (pieced_value_funcs): Remove check_validity and check_any_valid
3114 fields.
3115 (read_pieced_value): Use mark_value_bits_optimized_out.
3116 (write_pieced_value): Switch to use
3117 mark_value_bytes_optimized_out.
3118 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3119 of assuming the whole value is optimized out.
3120 * findvar.c (read_frame_register_value): Remove special handling
3121 of optimized out registers.
3122 (value_from_register): Use mark_value_bytes_optimized_out.
3123 * frame-unwind.c (frame_unwind_got_optimized): Use
3124 mark_value_bytes_optimized_out.
3125 * jv-valprint.c (java_value_print): Adjust.
3126 (java_print_value_fields): Let the common printing code handle
3127 optimized out values.
3128 * mips-tdep.c (mips_print_register): Remove special handling of
3129 optimized out registers.
3130 * opencl-lang.c (lval_func_check_validity): Delete.
3131 (lval_func_check_any_valid): Delete.
3132 (opencl_value_funcs): Remove check_validity and check_any_valid
3133 fields.
3134 * p-valprint.c (pascal_object_print_value_fields): Let the common
3135 printing code handle optimized out values.
3136 * stack.c (read_frame_arg): Remove special handling of optimized
3137 out values. Fetch both VAL and ENTRYVAL before comparing
3138 contents. Adjust to value_available_contents_eq rename.
3139 * valprint.c (valprint_check_validity)
3140 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3141 (val_print_array_elements): Adjust.
3142 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3143 (value_bits_any_optimized_out): New function.
3144 (value_entirely_covered_by_range_vector): New function, factored
3145 out from value_entirely_unavailable.
3146 (value_entirely_unavailable): Reimplement.
3147 (value_entirely_optimized_out): New function.
3148 (insert_into_bit_range_vector): New function, factored out from
3149 mark_value_bits_unavailable.
3150 (mark_value_bits_unavailable): Reimplement.
3151 (struct ranges_and_idx): New struct.
3152 (find_first_range_overlap_and_match): New function, factored out
3153 from value_available_contents_bits_eq.
3154 (value_available_contents_bits_eq): Rename to ...
3155 (value_contents_bits_eq): ... this. Check both unavailable
3156 contents and optimized out contents.
3157 (value_available_contents_eq): Rename to ...
3158 (value_contents_eq): ... this.
3159 (allocate_value_lazy): Remove reference to the old optimized_out
3160 boolean.
3161 (allocate_optimized_out_value): Use
3162 mark_value_bytes_optimized_out.
3163 (require_not_optimized_out): Adjust to check whether the
3164 optimized_out vec is empty.
3165 (ranges_copy_adjusted): New function, factored out from
3166 value_contents_copy_raw.
3167 (value_contents_copy_raw): Also copy the optimized out ranges.
3168 Assert the destination ranges aren't optimized out.
3169 (value_contents_copy): Update comment, remove call to
3170 require_not_optimized_out.
3171 (value_contents_equal): Adjust to check whether the optimized_out
3172 vec is empty.
3173 (set_value_optimized_out, value_optimized_out_const): Delete.
3174 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3175 New functions.
3176 (value_entirely_optimized_out, value_bits_valid): Delete.
3177 (value_copy): Take a VEC copy of the 'optimized_out' field.
3178 (value_primitive_field): Remove special handling of optimized out.
3179 (value_fetch_lazy): Assert that lazy values have no unavailable
3180 regions. Use value_bits_any_optimized_out. Remove some special
3181 handling for optimized out values.
3182 * value.h: Add intro comment about <optimized out> and
3183 <unavailable>.
3184 (struct lval_funcs): Remove check_validity and check_any_valid
3185 fields.
3186 (set_value_optimized_out, value_optimized_out_const): Remove.
3187 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3188 New declarations.
3189 (value_bits_any_optimized_out): New declaration.
3190 (value_bits_valid): Delete declaration.
3191 (value_available_contents_eq): Rename to ...
3192 (value_contents_eq): ... this, and extend comments.
3193
6694c411
JK
31942014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3195
3196 Fix -fsanitize=address on unreadable inferior strings.
3197 * valprint.c (val_print_string): Fix access before BUFFER.
3198
89a1c21a
SM
31992014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3200
3201 * target.c (target_struct_size): Remove.
3202 (target_struct_allocsize): Remove.
3203 (DEFAULT_ALLOCSIZE): Remove.
3204 (target_ops_p): New typedef.
3205 (DEF_VEC_P (target_ops_p)): New vector type.
3206 (target_structs): Change type to VEC (target_ops_p).
3207 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3208 (find_default_run_target): Rewrite for loop following changes to
3209 target_structs.
3210
cb417230
JB
32112014-08-19 Joel Brobecker <brobecker@adacore.com>
3212
3213 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3214 Adjust code accordingly. Adjust function description comment.
3215
817e0957
YQ
32162014-08-19 Yao Qi <yao@codesourcery.com>
3217
3218 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3219 types.
3220
2974be62
AM
32212014-08-19 Alan Modra <amodra@gmail.com>
3222
3223 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3224 * config.in: Regenerate.
3225 * configure: Regenerate.
3226
34abf635
GB
32272014-08-19 Tom Tromey <tromey@redhat.com>
3228 Gary Benson <gbenson@redhat.com>
3229
3230 * common/common-debug.h: New file.
3231 * common/common-debug.c: Likewise.
3232 * debug.c: Likewise.
3233 * Makefile.in (SFILES): Add common/common-debug.c.
3234 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3235 (COMMON_OBS): Add common-debug.o and debug.o.
3236 (common-debug.o): New rule.
3237 * common/common-defs.h: Include common-debug.h.
3238 * common/agent.c (debug_agent_printf): New function.
3239 (DEBUG_AGENT): Redefine.
3240 * nat/i386-dregs.c (debug_printf): Undefine.
3241
f6e94d78
GB
32422014-08-19 Gary Benson <gbenson@redhat.com>
3243
3244 * common/common-defs.h: Include print-utils.h.
3245 * utils.h: Do not include print-utils.h.
3246
9239eeab
GB
32472014-08-19 Tom Tromey <tromey@redhat.com>
3248 Gary Benson <gbenson@redhat.com>
3249
3250 * common/common-types.h: New file.
3251 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3252 * common/common-defs.h: Include common-types.h.
3253 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3254 (ULONGEST): Remove.
3255
ef87c8bb
GB
32562014-08-19 Tom Tromey <tromey@redhat.com>
3257 Gary Benson <gbenson@redhat.com>
3258
3259 * common/errors.h: New file.
3260 * common/errors.c: Likewise.
3261 * Makefile.in (SFILES): Add common/errors.c.
3262 (HFILES_NO_SRCDIR): Add common/errors.h.
3263 (COMMON_OBS): Add errors.o.
3264 (errors.o): New rule.
3265 * common/common-defs.h: Include errors.h.
3266 * utils.h (perror_with_name, error, verror, warning, vwarning):
3267 Don't declare.
3268 * common/common-utils.h: (malloc_failure, internal_error):
3269 Likewise.
3270
196a707b
GB
32712014-08-19 Gary Benson <gbenson@redhat.com>
3272
3273 * utils.c (internal_vproblem): Always print the message.
3274
ded4fc8f
DE
32752014-08-18 Doug Evans <dje@google.com>
3276
3277 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3278
950c97d8
JB
32792014-08-18 Joel Brobecker <brobecker@adacore.com>
3280
3281 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3282 Return 0 if TYPE is dynamic.
3283 (print_range): Add handling of dynamic ranges.
3284
3cdcd0ce
JB
32852014-08-18 Keven Boell <keven.boell@intel.com>
3286 Joel Brobecker <brobecker@adacore.com>
3287
3288 * gdbtypes.h (struct main_type): Add field "data_location".
3289 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3290 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3291 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3292 a dynamic data location.
3293 (resolve_dynamic_type): Add DW_AT_data_location handling.
3294 (copy_recursive, copy_type): Copy the data_location information
3295 when present.
3296 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3297 * value.c (value_from_contents_and_address): Add
3298 DW_AT_data_location handling.
3299
08412b07
JB
33002014-08-18 Keven Boell <keven.boell@intel.com>
3301 Joel Brobecker <brobecker@adacore.com>
3302
3303 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3304 field "get_object_address".
3305 * dwarf2expr.c (execute_stack_op): Add handling for
3306 DW_OP_push_object_address.
3307 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3308 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3309 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3310 (dwarf_expr_get_obj_addr): New function.
3311 (dwarf_expr_ctx_funcs): Add get_object_address field.
3312 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3313 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3314 (dwarf2_evaluate_property): Add parameter "address". Use it.
3315 (needs_get_obj_addr): New function.
3316 (needs_frame_ctx_funcs): Add get_object_address field.
3317 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3318 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3319 (resolve_dynamic_array): Likewise.
3320
84754697
JB
33212014-08-18 Joel Brobecker <brobecker@adacore.com>
3322
3323 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3324 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3325 fixed value for records and unions for which some GNAT encodings
3326 are present.
3327
da5c522f
JB
33282014-08-18 Joel Brobecker <brobecker@adacore.com>
3329
3330 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3331 rewrite to avoid "else if" and "else" constructs. Should be
3332 a no-op in practice.
3333
0d72a7c3
JB
33342014-08-18 Joel Brobecker <brobecker@adacore.com>
3335
3336 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3337 of lexical block.
3338
e66d4446
SC
33392014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3340
3341 PR c++/17132
3342 * eval.c: Update all calls to find_overload_match.
3343 * valarith.c: Likewise.
3344 (value_user_defined_cpp_op, value_user_defined_op): New
3345 argument NOSIDE. Update all callers.
3346 * valops.c (find_overload_match): New argument NOSIDE.
3347 * value.h (find_overload_match): Update signature.
3348
940df408
SC
33492014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3350
3351 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3352 'items' methods instead of 'iteritems' method on dictionaries.
3353
699ca60a
DE
33542014-08-15 Doug Evans <dje@google.com>
3355
3356 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3357 closer to use.
3358
37780ee5
DE
33592014-08-15 Doug Evans <dje@google.com>
3360
3361 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3362
0ad93d4f
DE
33632014-08-15 Doug Evans <dje@google.com>
3364
3365 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3366
20d8c372
DE
33672014-08-15 Doug Evans <dje@google.com>
3368
3369 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3370 unused.
3371
cb039ba4
EZ
33722014-08-15 Eli Zaretskii <eliz@gnu.org>
3373
3374 * dcache.h: Include target.h, to avoid compile time warnings.
3375
eb7a547a
JB
33762014-08-15 Joel Brobecker <brobecker@adacore.com>
3377
3378 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3379 frame_info" partial declaration.
3380 * gdbarch.h: Regenerate.
3381
783cecc8
YQ
33822014-08-15 Yao Qi <yao@codesourcery.com>
3383
3384 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3385 Add parameter 'decode_for_pst_p'. Callers update.
3386
65c749e7
YQ
33872014-08-13 Yao Qi <yao@codesourcery.com>
3388
3389 PR build/17104
3390 * configure.ac: Use local variable 'pos'.
3391 * configure: Regenerated.
3392
d769e349
DE
33932014-08-11 Doug Evans <dje@google.com>
3394
3395 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3396 message, it is redundant with "Reading symbols from ..." message.
3397
24f1235e
DE
33982014-08-10 Doug Evans <xdje42@gmail.com>
3399
3400 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3401
dcd2e6ef
YQ
34022014-08-09 Yao Qi <yao@codesourcery.com>
3403
3404 PR remote/9053
3405 * remote.c (remote_xfer_partial): Remove dead code.
3406
070bdf0b
AA
34072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3408
3409 * ia64-linux-tdep.c: Include "regset.h".
3410 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3411 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3412 (ia64_linux_supply_fpregset): New function.
3413 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3414 (ia64_linux_regset_from_core_section): New function.
3415 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3416 method.
3417
08f9f542
AA
34182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3419
3420 * m68klinux-tdep.c: Include "regset.h".
3421 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3422 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3423 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3424 (m68k_linux_regset_from_core_section): New function.
3425 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3426 method.
3427
8f1cee41
AA
34282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3429
3430 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3431 function. Move logic to...
3432 (tilegx_linux_regmap): ... this new register map.
3433 (tilegx_linux_regset): Refer to register map, replace supply
3434 method by regcache_supply_regset, and add collect method.
3435 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3436 TILEGX_FIRST_EASY_REGNUM.
3437
c5741217
AA
34382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3439
3440 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3441 that calls regcache_supply_regset and handles the EPC register
3442 separately. Move main logic to...
3443 (score7_linux_gregmap): ... this new register map.
3444 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3445 (score7_linux_gregset): Refer to register map. Add collect method.
3446 (score7_linux_regset_from_core_section): Replace
3447 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3448 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3449 (struct regset): Delete unused forward declaraction.
3450 (struct pt_regs): Delete structure definition.
3451 (elf_gregset_t): Delete typedef.
3452
81580573
AA
34532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3454
3455 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3456 (nios2_core_regset): Add collect method.
3457
ba199d7d
AA
34582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3459
3460 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3461 platform-independent and don't write to read-only input buffer.
3462 (m32r_linux_collect_gregset): New function.
3463 (m32r_linux_gregset): Add collect method.
3464
0006a9da
AA
34652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3466
3467 * hppa-linux-tdep.c (greg_map): Rename to...
3468 (hppa_linux_gregmap): ... this. Also convert to
3469 regcache_map_entry format.
3470 (hppa_linux_supply_regset): Delete function.
3471 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3472 (hppa_linux_fpregmap): ... this new register map.
3473 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3474 register map, replace supply method by regcache_supply_regset, and
3475 add collect method regcache_collect_regset.
3476
901e1b23
AA
34772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3478
3479 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3480 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3481 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3482 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3483 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3484 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3485 (frv_linux_supply_gregset): Replace main logic by call to
3486 regcache_supply_regset, but keep clearing gr32-gr63.
3487 (frv_linux_supply_fpregset): Delete function.
3488 (frv_linux_gregset): Refer to appropriate register map and add
3489 regcache_collect_regset as the collect method.
3490 (frv_linux_fpregset): Likewise. Also exchange the supply method
3491 by regcache_supply_regset.
3492
1d6e7555
AA
34932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3494
3495 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3496 by call to alpha_supply_int_regs.
3497 (alpha_linux_collect_gregset): New function.
3498 (alpha_linux_supply_fpregset): Replace logic by call to
3499 alpha_supply_fp_regs.
3500 (alpha_linux_collect_fpregset): New function.
3501 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3502
d4d793bf
AA
35032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3504
3505 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3506 by call to regcache_collect_regset.
3507 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3508 instead of aarch64_linux_supply_gregset/_fpregset.
3509 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3510 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3511 header file instead.
3512 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3513 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3514 functions. Move logic to ...
3515 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3516 register maps.
3517 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3518 refer to new register maps, replace *_regset_from_core by
3519 regcache_supply_regset, and also use regcache_collect_regset.
3520 * aarch64-linux-tdep.h: Include "regset.h".
3521 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3522 Delete prototypes.
3523 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3524 macros, moved from C source file.
3525 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3526 variable declarations.
3527
99b7da5d
AA
35282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3529
3530 * s390-linux-nat.c: Include "regset.h".
3531 (regmap_gregset): Delete macro.
3532 (s390_64_regmap_gregset): New register map for
3533 regcache_supply/_collect_regset.
3534 (s390_64_gregset): New regset.
3535 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3536 (regmap_fpregset): Delete macro.
3537 (s390_native_supply, s390_native_collect): Delete functions.
3538 (supply_gregset, fill_gregset): Replace s390-specific regmap
3539 handling by a call to regcache_supply/_collect_regset.
3540 (supply_fpregset, fill_fpregset): Call regcache_supply/
3541 _collect_regset instead of s390_native_supply/_collect.
3542 (fetch_regset, store_regset): Likewise. Also change the last
3543 parameter to a regset instead of a regmap.
3544 (s390_linux_fetch_inferior_registers)
3545 (390_linux_store_inferior_registers): Adjust last parameter in
3546 calls to fetch_regset and store_regset.
3547 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3548 (s390_gregmap): ... this. Also make static const and convert to
3549 regcache_map_entry format.
3550 (s390x_regmap_gregset): Delete.
3551 (s390_regmap_fpregset): Rename to...
3552 (s390_fpregmap): ... this. Make static const and convert to
3553 regcache_map_entry format.
3554 (s390_regmap_upper, s390_regmap_last_break)
3555 (s390x_regmap_last_break, s390_regmap_system_call)
3556 (s390_regmap_tdb): Likewise.
3557 (s390_supply_regset, s390_collect_regset): Remove functions.
3558 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3559 s390_supply_regset.
3560 (s390_gregset, s390_fpregset, s390_upper_regset)
3561 (s390_last_break_regset, s390x_last_break_regset)
3562 (s390_system_call_regset, s390_tdb_regset): Make global and
3563 replace s390_supply/_collect_regset by regcache_supply/
3564 _collect_regset.
3565 (s390x_gregset): Delete.
3566 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3567 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3568 (s390_regmap_fpregset, s390_regmap_last_break)
3569 (s390x_regmap_last_break, s390_regmap_system_call)
3570 (s390_regmap_tdb): Delete global variable declarations.
3571 (s390_gregset, s390_fpregset, s390_last_break_regset)
3572 (s390x_last_break_regset, s390_system_call_regset)
3573 (s390_tdb_regset): New global variable declarations.
3574
0b309272
AA
35752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3576
3577 * regcache.c: Include "regset.h".
3578 (regcache_transfer_regset): New local function.
3579 (regcache_supply_regset, regcache_collect_regset): New functions.
3580 * regcache.h (struct regcache_map_entry): New structure.
3581 (REGCACHE_MAP_SKIP): New enum value.
3582 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3583
7fefa8d7
AA
35842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3585
3586 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3587 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3588 (ppc_linux_collect_gregset ): Likewise.
3589 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3590 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3591 (ppc_collect_vrregset): Likewise.
3592 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3593 Likewise.
3594
96c4f946
YQ
35952014-08-07 Yao Qi <yao@codesourcery.com>
3596
3597 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3598 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3599 * remote.c (remote_read_bytes): Likewise.
3600
fffbe6a8
YQ
36012014-08-07 Yao Qi <yao@codesourcery.com>
3602
3603 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3604
5ee8a82c
YQ
36052014-08-07 Yao Qi <yao@codesourcery.com>
3606
3607 PR remote/17230
3608 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3609 TARGET_XFER_OK instead of 0.
3610
bb974a24
GB
36112014-08-07 Gary Benson <gbenson@redhat.com>
3612
3613 * common/common-defs.h: Include errno.h.
3614 * defs.h: Do not include errno.h.
3615 * ada-typeprint.c: Likewise.
3616 * c-typeprint.c: Likewise.
3617 * core-regset.c: Likewise.
3618 * corefile.c: Likewise.
3619 * corelow.c: Likewise.
3620 * event-loop.c: Likewise.
3621 * f-typeprint.c: Likewise.
3622 * gnu-nat.c: Likewise.
3623 * go32-nat.c: Likewise.
3624 * i386gnu-nat.c: Likewise.
3625 * m2-typeprint.c: Likewise.
3626 * nat/linux-btrace.c: Likewise.
3627 * p-typeprint.c: Likewise.
3628 * procfs.c: Likewise.
3629 * remote-sim.c: Likewise.
3630 * rs6000-nat.c: Likewise.
3631 * target.c: Likewise.
3632 * typeprint.c: Likewise.
3633 * ui-file.c: Likewise.
3634 * valops.c: Likewise.
3635 * valprint.c: Likewise.
3636
6d3d12eb
GB
36372014-08-07 Gary Benson <gbenson@redhat.com>
3638
3639 * common/common-defs.h: Include string.h.
3640 * aarch64-tdep.c: Do not include string.h.
3641 * ada-exp.y: Likewise.
3642 * ada-lang.c: Likewise.
3643 * ada-lex.l: Likewise.
3644 * ada-typeprint.c: Likewise.
3645 * ada-valprint.c: Likewise.
3646 * aix-thread.c: Likewise.
3647 * alpha-linux-tdep.c: Likewise.
3648 * alpha-mdebug-tdep.c: Likewise.
3649 * alpha-nat.c: Likewise.
3650 * alpha-osf1-tdep.c: Likewise.
3651 * alpha-tdep.c: Likewise.
3652 * alphanbsd-tdep.c: Likewise.
3653 * amd64-dicos-tdep.c: Likewise.
3654 * amd64-linux-tdep.c: Likewise.
3655 * amd64-nat.c: Likewise.
3656 * amd64-sol2-tdep.c: Likewise.
3657 * amd64fbsd-tdep.c: Likewise.
3658 * amd64obsd-tdep.c: Likewise.
3659 * arch-utils.c: Likewise.
3660 * arm-linux-nat.c: Likewise.
3661 * arm-linux-tdep.c: Likewise.
3662 * arm-tdep.c: Likewise.
3663 * arm-wince-tdep.c: Likewise.
3664 * armbsd-tdep.c: Likewise.
3665 * armnbsd-nat.c: Likewise.
3666 * armnbsd-tdep.c: Likewise.
3667 * armobsd-tdep.c: Likewise.
3668 * avr-tdep.c: Likewise.
3669 * ax-gdb.c: Likewise.
3670 * ax-general.c: Likewise.
3671 * bcache.c: Likewise.
3672 * bfin-tdep.c: Likewise.
3673 * breakpoint.c: Likewise.
3674 * build-id.c: Likewise.
3675 * buildsym.c: Likewise.
3676 * c-exp.y: Likewise.
3677 * c-lang.c: Likewise.
3678 * c-typeprint.c: Likewise.
3679 * c-valprint.c: Likewise.
3680 * charset.c: Likewise.
3681 * cli-out.c: Likewise.
3682 * cli/cli-cmds.c: Likewise.
3683 * cli/cli-decode.c: Likewise.
3684 * cli/cli-dump.c: Likewise.
3685 * cli/cli-interp.c: Likewise.
3686 * cli/cli-logging.c: Likewise.
3687 * cli/cli-script.c: Likewise.
3688 * cli/cli-setshow.c: Likewise.
3689 * cli/cli-utils.c: Likewise.
3690 * coffread.c: Likewise.
3691 * common/agent.c: Likewise.
3692 * common/buffer.c: Likewise.
3693 * common/buffer.h: Likewise.
3694 * common/common-utils.c: Likewise.
3695 * common/filestuff.c: Likewise.
3696 * common/filestuff.c: Likewise.
3697 * common/format.c: Likewise.
3698 * common/print-utils.c: Likewise.
3699 * common/rsp-low.c: Likewise.
3700 * common/signals.c: Likewise.
3701 * common/vec.h: Likewise.
3702 * common/xml-utils.c: Likewise.
3703 * core-regset.c: Likewise.
3704 * corefile.c: Likewise.
3705 * corelow.c: Likewise.
3706 * cp-abi.c: Likewise.
3707 * cp-name-parser.y: Likewise.
3708 * cp-support.c: Likewise.
3709 * cp-valprint.c: Likewise.
3710 * cris-tdep.c: Likewise.
3711 * d-exp.y: Likewise.
3712 * darwin-nat.c: Likewise.
3713 * dbxread.c: Likewise.
3714 * dcache.c: Likewise.
3715 * demangle.c: Likewise.
3716 * dicos-tdep.c: Likewise.
3717 * disasm.c: Likewise.
3718 * doublest.c: Likewise.
3719 * dsrec.c: Likewise.
3720 * dummy-frame.c: Likewise.
3721 * dwarf2-frame.c: Likewise.
3722 * dwarf2loc.c: Likewise.
3723 * dwarf2read.c: Likewise.
3724 * elfread.c: Likewise.
3725 * environ.c: Likewise.
3726 * eval.c: Likewise.
3727 * event-loop.c: Likewise.
3728 * exceptions.c: Likewise.
3729 * exec.c: Likewise.
3730 * expprint.c: Likewise.
3731 * f-exp.y: Likewise.
3732 * f-lang.c: Likewise.
3733 * f-typeprint.c: Likewise.
3734 * f-valprint.c: Likewise.
3735 * fbsd-nat.c: Likewise.
3736 * findcmd.c: Likewise.
3737 * findvar.c: Likewise.
3738 * fork-child.c: Likewise.
3739 * frame.c: Likewise.
3740 * frv-linux-tdep.c: Likewise.
3741 * frv-tdep.c: Likewise.
3742 * gdb.c: Likewise.
3743 * gdb_bfd.c: Likewise.
3744 * gdbarch.c: Likewise.
3745 * gdbarch.sh: Likewise.
3746 * gdbtypes.c: Likewise.
3747 * gnu-nat.c: Likewise.
3748 * gnu-v2-abi.c: Likewise.
3749 * gnu-v3-abi.c: Likewise.
3750 * go-exp.y: Likewise.
3751 * go-lang.c: Likewise.
3752 * go32-nat.c: Likewise.
3753 * guile/guile.c: Likewise.
3754 * guile/scm-auto-load.c: Likewise.
3755 * hppa-hpux-tdep.c: Likewise.
3756 * hppa-linux-nat.c: Likewise.
3757 * hppanbsd-tdep.c: Likewise.
3758 * hppaobsd-tdep.c: Likewise.
3759 * i386-cygwin-tdep.c: Likewise.
3760 * i386-dicos-tdep.c: Likewise.
3761 * i386-linux-tdep.c: Likewise.
3762 * i386-nto-tdep.c: Likewise.
3763 * i386-sol2-tdep.c: Likewise.
3764 * i386-tdep.c: Likewise.
3765 * i386bsd-tdep.c: Likewise.
3766 * i386gnu-nat.c: Likewise.
3767 * i386nbsd-tdep.c: Likewise.
3768 * i386obsd-tdep.c: Likewise.
3769 * i387-tdep.c: Likewise.
3770 * ia64-libunwind-tdep.c: Likewise.
3771 * ia64-linux-nat.c: Likewise.
3772 * inf-child.c: Likewise.
3773 * inf-ptrace.c: Likewise.
3774 * inf-ttrace.c: Likewise.
3775 * infcall.c: Likewise.
3776 * infcmd.c: Likewise.
3777 * inflow.c: Likewise.
3778 * infrun.c: Likewise.
3779 * interps.c: Likewise.
3780 * iq2000-tdep.c: Likewise.
3781 * irix5-nat.c: Likewise.
3782 * jv-exp.y: Likewise.
3783 * jv-lang.c: Likewise.
3784 * jv-typeprint.c: Likewise.
3785 * jv-valprint.c: Likewise.
3786 * language.c: Likewise.
3787 * linux-fork.c: Likewise.
3788 * linux-nat.c: Likewise.
3789 * lm32-tdep.c: Likewise.
3790 * m2-exp.y: Likewise.
3791 * m2-typeprint.c: Likewise.
3792 * m32c-tdep.c: Likewise.
3793 * m32r-linux-nat.c: Likewise.
3794 * m32r-linux-tdep.c: Likewise.
3795 * m32r-rom.c: Likewise.
3796 * m32r-tdep.c: Likewise.
3797 * m68hc11-tdep.c: Likewise.
3798 * m68k-tdep.c: Likewise.
3799 * m68kbsd-tdep.c: Likewise.
3800 * m68klinux-nat.c: Likewise.
3801 * m68klinux-tdep.c: Likewise.
3802 * m88k-tdep.c: Likewise.
3803 * machoread.c: Likewise.
3804 * macrocmd.c: Likewise.
3805 * main.c: Likewise.
3806 * mdebugread.c: Likewise.
3807 * mem-break.c: Likewise.
3808 * memattr.c: Likewise.
3809 * memory-map.c: Likewise.
3810 * mep-tdep.c: Likewise.
3811 * mi/mi-cmd-break.c: Likewise.
3812 * mi/mi-cmd-disas.c: Likewise.
3813 * mi/mi-cmd-env.c: Likewise.
3814 * mi/mi-cmd-stack.c: Likewise.
3815 * mi/mi-cmd-var.c: Likewise.
3816 * mi/mi-cmds.c: Likewise.
3817 * mi/mi-console.c: Likewise.
3818 * mi/mi-getopt.c: Likewise.
3819 * mi/mi-interp.c: Likewise.
3820 * mi/mi-main.c: Likewise.
3821 * mi/mi-parse.c: Likewise.
3822 * microblaze-rom.c: Likewise.
3823 * microblaze-tdep.c: Likewise.
3824 * mingw-hdep.c: Likewise.
3825 * minidebug.c: Likewise.
3826 * minsyms.c: Likewise.
3827 * mips-irix-tdep.c: Likewise.
3828 * mips-linux-tdep.c: Likewise.
3829 * mips-tdep.c: Likewise.
3830 * mips64obsd-tdep.c: Likewise.
3831 * mipsnbsd-tdep.c: Likewise.
3832 * mipsread.c: Likewise.
3833 * mn10300-linux-tdep.c: Likewise.
3834 * mn10300-tdep.c: Likewise.
3835 * monitor.c: Likewise.
3836 * moxie-tdep.c: Likewise.
3837 * mt-tdep.c: Likewise.
3838 * nat/linux-btrace.c: Likewise.
3839 * nat/linux-osdata.c: Likewise.
3840 * nat/linux-procfs.c: Likewise.
3841 * nat/linux-ptrace.c: Likewise.
3842 * nat/linux-waitpid.c: Likewise.
3843 * nbsd-tdep.c: Likewise.
3844 * nios2-linux-tdep.c: Likewise.
3845 * nto-procfs.c: Likewise.
3846 * nto-tdep.c: Likewise.
3847 * objc-lang.c: Likewise.
3848 * objfiles.c: Likewise.
3849 * opencl-lang.c: Likewise.
3850 * osabi.c: Likewise.
3851 * osdata.c: Likewise.
3852 * p-exp.y: Likewise.
3853 * p-lang.c: Likewise.
3854 * p-typeprint.c: Likewise.
3855 * parse.c: Likewise.
3856 * posix-hdep.c: Likewise.
3857 * ppc-linux-nat.c: Likewise.
3858 * ppc-sysv-tdep.c: Likewise.
3859 * ppcfbsd-tdep.c: Likewise.
3860 * ppcnbsd-tdep.c: Likewise.
3861 * ppcobsd-tdep.c: Likewise.
3862 * printcmd.c: Likewise.
3863 * procfs.c: Likewise.
3864 * prologue-value.c: Likewise.
3865 * python/py-auto-load.c: Likewise.
3866 * python/py-gdb-readline.c: Likewise.
3867 * ravenscar-thread.c: Likewise.
3868 * regcache.c: Likewise.
3869 * registry.c: Likewise.
3870 * remote-fileio.c: Likewise.
3871 * remote-m32r-sdi.c: Likewise.
3872 * remote-mips.c: Likewise.
3873 * remote-notif.c: Likewise.
3874 * remote-sim.c: Likewise.
3875 * remote.c: Likewise.
3876 * reverse.c: Likewise.
3877 * rs6000-aix-tdep.c: Likewise.
3878 * ser-base.c: Likewise.
3879 * ser-go32.c: Likewise.
3880 * ser-mingw.c: Likewise.
3881 * ser-pipe.c: Likewise.
3882 * ser-tcp.c: Likewise.
3883 * ser-unix.c: Likewise.
3884 * serial.c: Likewise.
3885 * sh-tdep.c: Likewise.
3886 * sh64-tdep.c: Likewise.
3887 * shnbsd-tdep.c: Likewise.
3888 * skip.c: Likewise.
3889 * sol-thread.c: Likewise.
3890 * solib-dsbt.c: Likewise.
3891 * solib-frv.c: Likewise.
3892 * solib-osf.c: Likewise.
3893 * solib-som.c: Likewise.
3894 * solib-spu.c: Likewise.
3895 * solib-target.c: Likewise.
3896 * solib.c: Likewise.
3897 * somread.c: Likewise.
3898 * source.c: Likewise.
3899 * sparc-nat.c: Likewise.
3900 * sparc-sol2-tdep.c: Likewise.
3901 * sparc-tdep.c: Likewise.
3902 * sparc64-tdep.c: Likewise.
3903 * sparc64fbsd-tdep.c: Likewise.
3904 * sparc64nbsd-tdep.c: Likewise.
3905 * sparcnbsd-tdep.c: Likewise.
3906 * spu-linux-nat.c: Likewise.
3907 * spu-multiarch.c: Likewise.
3908 * spu-tdep.c: Likewise.
3909 * stabsread.c: Likewise.
3910 * stack.c: Likewise.
3911 * std-regs.c: Likewise.
3912 * symfile.c: Likewise.
3913 * symmisc.c: Likewise.
3914 * symtab.c: Likewise.
3915 * target.c: Likewise.
3916 * thread.c: Likewise.
3917 * tilegx-linux-nat.c: Likewise.
3918 * tilegx-tdep.c: Likewise.
3919 * top.c: Likewise.
3920 * tracepoint.c: Likewise.
3921 * tui/tui-command.c: Likewise.
3922 * tui/tui-data.c: Likewise.
3923 * tui/tui-disasm.c: Likewise.
3924 * tui/tui-file.c: Likewise.
3925 * tui/tui-layout.c: Likewise.
3926 * tui/tui-out.c: Likewise.
3927 * tui/tui-regs.c: Likewise.
3928 * tui/tui-source.c: Likewise.
3929 * tui/tui-stack.c: Likewise.
3930 * tui/tui-win.c: Likewise.
3931 * tui/tui-windata.c: Likewise.
3932 * tui/tui-winsource.c: Likewise.
3933 * typeprint.c: Likewise.
3934 * ui-file.c: Likewise.
3935 * ui-out.c: Likewise.
3936 * user-regs.c: Likewise.
3937 * utils.c: Likewise.
3938 * v850-tdep.c: Likewise.
3939 * valarith.c: Likewise.
3940 * valops.c: Likewise.
3941 * valprint.c: Likewise.
3942 * value.c: Likewise.
3943 * varobj.c: Likewise.
3944 * vax-tdep.c: Likewise.
3945 * vaxnbsd-tdep.c: Likewise.
3946 * vaxobsd-tdep.c: Likewise.
3947 * windows-nat.c: Likewise.
3948 * xcoffread.c: Likewise.
3949 * xml-support.c: Likewise.
3950 * xstormy16-tdep.c: Likewise.
3951 * xtensa-linux-nat.c: Likewise.
3952
dccbb609
GB
39532014-08-07 Gary Benson <gbenson@redhat.com>
3954
3955 * common/common-defs.h: Include gdb_assert.h.
3956 * aarch64-tdep.c: Do not include gdb_assert.h.
3957 * addrmap.c: Likewise.
3958 * aix-thread.c: Likewise.
3959 * alpha-linux-tdep.c: Likewise.
3960 * alpha-mdebug-tdep.c: Likewise.
3961 * alphanbsd-tdep.c: Likewise.
3962 * amd64-nat.c: Likewise.
3963 * amd64-tdep.c: Likewise.
3964 * amd64bsd-nat.c: Likewise.
3965 * amd64fbsd-nat.c: Likewise.
3966 * amd64fbsd-tdep.c: Likewise.
3967 * amd64nbsd-nat.c: Likewise.
3968 * amd64nbsd-tdep.c: Likewise.
3969 * amd64obsd-nat.c: Likewise.
3970 * amd64obsd-tdep.c: Likewise.
3971 * arch-utils.c: Likewise.
3972 * arm-tdep.c: Likewise.
3973 * armbsd-tdep.c: Likewise.
3974 * auxv.c: Likewise.
3975 * bcache.c: Likewise.
3976 * bfin-tdep.c: Likewise.
3977 * blockframe.c: Likewise.
3978 * breakpoint.c: Likewise.
3979 * bsd-kvm.c: Likewise.
3980 * bsd-uthread.c: Likewise.
3981 * buildsym.c: Likewise.
3982 * c-exp.y: Likewise.
3983 * c-lang.c: Likewise.
3984 * charset.c: Likewise.
3985 * cleanups.c: Likewise.
3986 * cli-out.c: Likewise.
3987 * cli/cli-decode.c: Likewise.
3988 * cli/cli-dump.c: Likewise.
3989 * cli/cli-logging.c: Likewise.
3990 * cli/cli-script.c: Likewise.
3991 * cli/cli-utils.c: Likewise.
3992 * coffread.c: Likewise.
3993 * common/common-utils.c: Likewise.
3994 * common/queue.h: Likewise.
3995 * common/signals.c: Likewise.
3996 * common/vec.h: Likewise.
3997 * complaints.c: Likewise.
3998 * completer.c: Likewise.
3999 * corelow.c: Likewise.
4000 * cp-abi.c: Likewise.
4001 * cp-name-parser.y: Likewise.
4002 * cp-namespace.c: Likewise.
4003 * cp-support.c: Likewise.
4004 * cris-tdep.c: Likewise.
4005 * dbxread.c: Likewise.
4006 * dictionary.c: Likewise.
4007 * doublest.c: Likewise.
4008 * dsrec.c: Likewise.
4009 * dummy-frame.c: Likewise.
4010 * dwarf2-frame-tailcall.c: Likewise.
4011 * dwarf2-frame.c: Likewise.
4012 * dwarf2expr.c: Likewise.
4013 * dwarf2loc.c: Likewise.
4014 * dwarf2read.c: Likewise.
4015 * eval.c: Likewise.
4016 * event-loop.c: Likewise.
4017 * exceptions.c: Likewise.
4018 * expprint.c: Likewise.
4019 * f-valprint.c: Likewise.
4020 * fbsd-nat.c: Likewise.
4021 * findvar.c: Likewise.
4022 * frame-unwind.c: Likewise.
4023 * frame.c: Likewise.
4024 * frv-tdep.c: Likewise.
4025 * gcore.c: Likewise.
4026 * gdb-dlfcn.c: Likewise.
4027 * gdb_bfd.c: Likewise.
4028 * gdbarch.c: Likewise.
4029 * gdbarch.sh: Likewise.
4030 * gdbtypes.c: Likewise.
4031 * gnu-nat.c: Likewise.
4032 * gnu-v3-abi.c: Likewise.
4033 * go-lang.c: Likewise.
4034 * guile/scm-exception.c: Likewise.
4035 * guile/scm-gsmob.c: Likewise.
4036 * guile/scm-lazy-string.c: Likewise.
4037 * guile/scm-math.c: Likewise.
4038 * guile/scm-pretty-print.c: Likewise.
4039 * guile/scm-safe-call.c: Likewise.
4040 * guile/scm-utils.c: Likewise.
4041 * guile/scm-value.c: Likewise.
4042 * h8300-tdep.c: Likewise.
4043 * hppa-hpux-nat.c: Likewise.
4044 * hppa-tdep.c: Likewise.
4045 * hppanbsd-tdep.c: Likewise.
4046 * hppaobsd-tdep.c: Likewise.
4047 * i386-darwin-nat.c: Likewise.
4048 * i386-darwin-tdep.c: Likewise.
4049 * i386-nto-tdep.c: Likewise.
4050 * i386-tdep.c: Likewise.
4051 * i386bsd-nat.c: Likewise.
4052 * i386fbsd-tdep.c: Likewise.
4053 * i386gnu-nat.c: Likewise.
4054 * i386nbsd-tdep.c: Likewise.
4055 * i386obsd-tdep.c: Likewise.
4056 * i387-tdep.c: Likewise.
4057 * ia64-libunwind-tdep.c: Likewise.
4058 * ia64-tdep.c: Likewise.
4059 * inf-ptrace.c: Likewise.
4060 * inf-ttrace.c: Likewise.
4061 * infcall.c: Likewise.
4062 * infcmd.c: Likewise.
4063 * infrun.c: Likewise.
4064 * inline-frame.c: Likewise.
4065 * interps.c: Likewise.
4066 * jv-lang.c: Likewise.
4067 * jv-typeprint.c: Likewise.
4068 * linux-fork.c: Likewise.
4069 * linux-nat.c: Likewise.
4070 * linux-thread-db.c: Likewise.
4071 * m32c-tdep.c: Likewise.
4072 * m32r-linux-nat.c: Likewise.
4073 * m32r-tdep.c: Likewise.
4074 * m68k-tdep.c: Likewise.
4075 * m68kbsd-nat.c: Likewise.
4076 * m68kbsd-tdep.c: Likewise.
4077 * m88k-tdep.c: Likewise.
4078 * machoread.c: Likewise.
4079 * macroexp.c: Likewise.
4080 * macrotab.c: Likewise.
4081 * maint.c: Likewise.
4082 * mdebugread.c: Likewise.
4083 * memory-map.c: Likewise.
4084 * mep-tdep.c: Likewise.
4085 * mi/mi-common.c: Likewise.
4086 * microblaze-tdep.c: Likewise.
4087 * mingw-hdep.c: Likewise.
4088 * mips-linux-nat.c: Likewise.
4089 * mips-linux-tdep.c: Likewise.
4090 * mips-tdep.c: Likewise.
4091 * mips64obsd-tdep.c: Likewise.
4092 * mipsnbsd-tdep.c: Likewise.
4093 * mn10300-linux-tdep.c: Likewise.
4094 * mn10300-tdep.c: Likewise.
4095 * moxie-tdep.c: Likewise.
4096 * mt-tdep.c: Likewise.
4097 * nat/linux-btrace.c: Likewise.
4098 * nat/linux-osdata.c: Likewise.
4099 * nat/linux-ptrace.c: Likewise.
4100 * nat/mips-linux-watch.c: Likewise.
4101 * nios2-linux-tdep.c: Likewise.
4102 * nios2-tdep.c: Likewise.
4103 * objc-lang.c: Likewise.
4104 * objfiles.c: Likewise.
4105 * obsd-nat.c: Likewise.
4106 * opencl-lang.c: Likewise.
4107 * osabi.c: Likewise.
4108 * parse.c: Likewise.
4109 * ppc-linux-nat.c: Likewise.
4110 * ppc-sysv-tdep.c: Likewise.
4111 * ppcfbsd-nat.c: Likewise.
4112 * ppcfbsd-tdep.c: Likewise.
4113 * ppcnbsd-nat.c: Likewise.
4114 * ppcnbsd-tdep.c: Likewise.
4115 * ppcobsd-nat.c: Likewise.
4116 * ppcobsd-tdep.c: Likewise.
4117 * printcmd.c: Likewise.
4118 * procfs.c: Likewise.
4119 * prologue-value.c: Likewise.
4120 * psymtab.c: Likewise.
4121 * python/py-lazy-string.c: Likewise.
4122 * python/py-value.c: Likewise.
4123 * regcache.c: Likewise.
4124 * reggroups.c: Likewise.
4125 * registry.c: Likewise.
4126 * remote-sim.c: Likewise.
4127 * remote.c: Likewise.
4128 * rs6000-aix-tdep.c: Likewise.
4129 * rs6000-tdep.c: Likewise.
4130 * s390-linux-tdep.c: Likewise.
4131 * score-tdep.c: Likewise.
4132 * ser-base.c: Likewise.
4133 * ser-mingw.c: Likewise.
4134 * sh-tdep.c: Likewise.
4135 * sh64-tdep.c: Likewise.
4136 * solib-darwin.c: Likewise.
4137 * solib-spu.c: Likewise.
4138 * solib-svr4.c: Likewise.
4139 * source.c: Likewise.
4140 * sparc-nat.c: Likewise.
4141 * sparc-sol2-tdep.c: Likewise.
4142 * sparc-tdep.c: Likewise.
4143 * sparc64-sol2-tdep.c: Likewise.
4144 * sparc64-tdep.c: Likewise.
4145 * sparc64fbsd-tdep.c: Likewise.
4146 * sparc64nbsd-tdep.c: Likewise.
4147 * sparc64obsd-tdep.c: Likewise.
4148 * sparcnbsd-tdep.c: Likewise.
4149 * sparcobsd-tdep.c: Likewise.
4150 * spu-multiarch.c: Likewise.
4151 * spu-tdep.c: Likewise.
4152 * stabsread.c: Likewise.
4153 * stack.c: Likewise.
4154 * symfile.c: Likewise.
4155 * symtab.c: Likewise.
4156 * target-descriptions.c: Likewise.
4157 * target-memory.c: Likewise.
4158 * target.c: Likewise.
4159 * tic6x-linux-tdep.c: Likewise.
4160 * tic6x-tdep.c: Likewise.
4161 * tilegx-linux-nat.c: Likewise.
4162 * tilegx-tdep.c: Likewise.
4163 * top.c: Likewise.
4164 * tramp-frame.c: Likewise.
4165 * tui/tui-out.c: Likewise.
4166 * tui/tui-winsource.c: Likewise.
4167 * ui-out.c: Likewise.
4168 * user-regs.c: Likewise.
4169 * utils.c: Likewise.
4170 * v850-tdep.c: Likewise.
4171 * valops.c: Likewise.
4172 * value.c: Likewise.
4173 * varobj.c: Likewise.
4174 * vax-nat.c: Likewise.
4175 * xml-syscall.c: Likewise.
4176 * xml-tdesc.c: Likewise.
4177 * xstormy16-tdep.c: Likewise.
4178 * xtensa-linux-nat.c: Likewise.
4179 * xtensa-tdep.c: Likewise.
4180
e76df0d0
GB
41812014-08-07 Gary Benson <gbenson@redhat.com>
4182
4183 * common/common-defs.h: Include common-utils.h.
4184 * defs.h: Do not include common-utils.h.
4185 * common/gdb_assert.h: Likewise.
4186 * darwin-nat.h: Likewise.
4187 * nat/linux-btrace.c: Likewise.
4188 * target/waitstatus.h: Likewise.
4189
4cb9c816
GB
41902014-08-07 Gary Benson <gbenson@redhat.com>
4191
4192 * common/common-defs.h: Include ptid.h.
4193 * defs.h: Do not include ptid.h.
4194 * inferior.h: Likewise.
4195 * infrun.h: Likewise.
4196 * nat/linux-btrace.h: Likewise.
4197 * nat/linux-osdata.h: Likewise.
4198 * target/waitstatus.h: Likewise.
4199
3995eeee
GB
42002014-08-07 Gary Benson <gbenson@redhat.com>
4201
4202 * common/common-defs.h: Include gdb_locale.h.
4203 * defs.h: Do not include gdb_locale.h.
4204
cb9f1a9b
GB
42052014-08-07 Gary Benson <gbenson@redhat.com>
4206
4207 * common/common-defs.h: Include gdb/signals.h.
4208 * defs.h: Do not include gdb/signals.h.
4209
a5fceff8
GB
42102014-08-07 Gary Benson <gbenson@redhat.com>
4211
4212 * common/common-defs.h: Include pathmax.h.
4213 * defs.h: Do not include pathmax.h.
4214
b9391142
GB
42152014-08-07 Gary Benson <gbenson@redhat.com>
4216
4217 * common/common-defs.h: Include libiberty.h.
4218 * defs.h: Do not include libiberty.h.
4219 * common/queue.h: Likewise.
4220 * cp-name-parser.y: Likewise.
4221 * mi/mi-cmd-catch.c: Likewise.
4222 * python/python.c: Likewise.
4223
0e443c87
GB
42242014-08-07 Gary Benson <gbenson@redhat.com>
4225
4226 * common/common-defs.h: Include ansidecl.h.
4227 * defs.h: Do not include ansidecl.h.
4228 * common/buffer.h: Likewise.
4229 * common/common-utils.h: Likewise.
4230
8ebb3f56
GB
42312014-08-07 Gary Benson <gbenson@redhat.com>
4232
4233 * common/common-defs.h: Include stddef.h.
4234 * defs.h: Do not include stddef.h.
4235 * common/common-utils.h: Likewise.
4236 * amd64fbsd-nat.c: Likewise.
4237 * bcache.c: Likewise.
4238 * charset.c: Likewise.
4239 * common/buffer.h: Likewise.
4240 * common/vec.h: Likewise.
4241 * i386bsd-nat.c: Likewise.
4242 * nat/linux-btrace.h: Likewise.
4243 * ppcfbsd-nat.c: Likewise.
4244 * ppcnbsd-tdep.h: Likewise.
4245 * ppcobsd-nat.c: Likewise.
4246 * ppcobsd-tdep.h: Likewise.
4247 * python/py-gdb-readline.c: Likewise.
4248
8980bdf6
GB
42492014-08-07 Gary Benson <gbenson@redhat.com>
4250
4251 * common/common-defs.h: Include stdarg.h.
4252 * defs.h: Do not include stdarg.h.
4253 * ada-lang.c: Likewise.
4254 * common/common-utils.h: Likewise.
4255 * guile/scm-string.c: Likewise.
4256 * guile/scm-utils.c: Likewise.
4257 * m32c-tdep.c: Likewise.
4258
d7096f71
GB
42592014-08-07 Gary Benson <gbenson@redhat.com>
4260
4261 * common/common-defs.h: Include stdlib.h.
4262 * defs.h: Do not include stdlib.h.
4263 * addrmap.c: Likewise.
4264 * bcache.c: Likewise.
4265 * common/buffer.c: Likewise.
4266 * common/common-utils.c: Likewise.
4267 * cp-name-parser.y: Likewise.
4268 * go32-nat.c: Likewise.
4269 * mn10300-linux-tdep.c: Likewise.
4270 * nat/linux-osdata.c: Likewise.
4271 * tui/tui.c: Likewise.
4272 * windows-nat.c: Likewise.
4273
d02f550d
GB
42742014-08-07 Gary Benson <gbenson@redhat.com>
4275
4276 * common/common-defs.h: Include stdio.h.
4277 * defs.h: Do not include stdio.h.
4278 * ada-lang.c: Likewise.
4279 * common/buffer.c: Likewise.
4280 * common/common-utils.c: Likewise.
4281 * cp-name-parser.y: Likewise.
4282 * gnu-nat.c: Likewise.
4283 * go32-nat.c: Likewise.
4284 * i386gnu-nat.c: Likewise.
4285 * proc-api.c: Likewise.
4286 * proc-events.c: Likewise.
4287 * proc-flags.c: Likewise.
4288 * proc-why.c: Likewise.
4289 * python/python-internal.h: Likewise.
4290 * target-memory.c: Likewise.
4291 * tui/tui-io.c: Likewise.
4292 * tui/tui.c: Likewise.
4293
b6d7a4bf
SM
42942014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4295
4296 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4297 (scan_dyntag_auxv): Same.
4298
af19829b
YQ
42992014-08-06 Yao Qi <yao@codesourcery.com>
4300
4301 * amd64-linux-nat.c: Remove duplicated include
4302 "x86-linux-nat.h".
4303 * i386-linux-nat.c: Likewise.
4304
8e07a239
YQ
43052014-08-06 Yao Qi <yao@codesourcery.com>
4306
4307 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4308 operand" with "Special opcode" in comments.
4309
7bfe8241
GB
43102014-08-05 Gary Benson <gbenson@redhat.com>
4311
4312 * interps.c (initialize_interps): Remove prototype.
4313 (interpreter_initialized): Remove static global.
4314 (interp_add): Do not call initialize_interps.
4315 (initialize_interps): Remove function.
4316
d6c95504
GB
43172014-08-05 Gary Benson <gbenson@redhat.com>
4318
4319 * utils.c (vwarning): Remove spurious va_end.
4320
241fd515
AM
43212014-08-05 Alan Modra <amodra@gmail.com>
4322
4323 * charset.c (convert_between_encodings): Cast result of obstack_base.
4324 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4325 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4326 (read_unwind_info): Use size_t for some locals.
4327 * jit.c (finalize_symtab): Likewise.
4328 * utils.c (hashtab_obstack_allocate): Likewise.
4329 * symmisc.c (print_objfile_statistics): Update format strings.
4330
dc304a94
JK
43312014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4332
4333 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4334 (Changes in GDB 7.8): ... here.
4335
3cecbbbe
TT
43362014-08-04 Tom Tromey <tromey@redhat.com>
4337
4338 * target.c (set_targetdebug): New function.
4339 (initialize_targets): Pass set_targetdebug when creating "set
4340 debug target".
4341
6908c509
JB
43422014-08-01 Joel Brobecker <brobecker@adacore.com>
4343
4344 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4345 if detecting a variable-sized field that is not the last field.
4346 Fix struct type length computation.
4347
53e8f97d
JB
43482014-08-01 Joel Brobecker <brobecker@adacore.com>
4349
4350 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4351 Add debug trace.
4352
e068c55d
JB
43532014-08-01 Joel Brobecker <brobecker@adacore.com>
4354
4355 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4356 Remove "+ 8" offset in computation of CHAIN_VMA.
4357
4d4ca2a1
DE
43582014-07-31 Doug Evans <dje@google.com>
4359
4360 * inflow.c (child_terminal_inferior): Add comment.
4361 (child_terminal_ours_for_output): Add comment.
4362 (child_terminal_ours): Add comment.
4363 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4364 (linux_nat_terminal_ours): Add comment.
4365
462f517e
GB
43662014-07-31 Gary Benson <gbenson@redhat.com>
4367
4368 * common/btrace-common.h: Do not include defs.h or server.h.
4369 * nat/mips-linux-watch.h: Likewise.
4370 * gdb-dlfcn.h: Do not include defs.h.
4371 * tracefile.h: Likewise.
4372
74228e77
RM
43732014-07-30 Roland McGrath <mcgrathr@google.com>
4374
4375 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4376
014f9477
TT
43772014-07-30 Tom Tromey <tromey@redhat.com>
4378
4379 * bsd-kvm.c (bsd_kvm_open): Constify.
4380 * corelow.c (core_open): Constify.
4381 * ctf.c (ctf_open): Constify.
4382 * dbug-rom.c (dbug_open): Constify.
4383 * exec.c (exec_open): Constify.
4384 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4385 * microblaze-rom.c (picobug_open): Constify.
4386 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4387 Constify.
4388 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4389 * record-btrace.c (record_btrace_open): Constify.
4390 * record-full.c (record_full_core_open_1, record_full_open_1)
4391 (record_full_open): Constify.
4392 * remote-m32r-sdi.c (m32r_open): Constify.
4393 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4394 (rockhopper_open, lsi_open): Constify.
4395 * remote-sim.c (gdbsim_open): Constify.
4396 * remote.c (remote_open, extended_remote_open, remote_open_1):
4397 Constify.
4398 * target.h (struct target_ops) <to_open>: Make "arg" const.
4399 * tracefile-tfile.c (tfile_open): Constify.
4400
e799154c
TT
44012014-07-30 Tom Tromey <tromey@redhat.com>
4402
4403 * breakpoint.c (map_breakpoint_numbers): Update.
4404 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4405 (get_number_const): New function.
4406 (get_number): Rewrite using get_number_const.
4407 (init_number_or_range): Make "string" const.
4408 (number_is_in_list): Make "list" const.
4409 * cli/cli-utils.h (get_number_const): Declare.
4410 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4411 (init_number_or_range, number_is_in_list): Update.
4412 * printcmd.c (map_display_numbers): Update.
4413 * value.c (value_from_history_ref): Constify.
4414 * value.h (value_from_history_ref): Update.
4415
5f08566b
TT
44162014-07-30 Tom Tromey <tromey@redhat.com>
4417
4418 * corefile.c (hook_type, call_extra_exec_file_hooks)
4419 (specify_exec_file_hook): Constify.
4420 * exec.c (exec_file_attach): Make "filename" const.
4421 * gdbcore.h (deprecated_exec_file_display_hook)
4422 (specify_exec_file_hook, exec_file_attach): Constify.
4423 * main.c (captured_main): Use catch_command_errors_const.
4424
8981c758
TT
44252014-07-30 Tom Tromey <tromey@redhat.com>
4426
4427 * target.c (open_target): New function.
4428 (add_target_with_completer, add_deprecated_target_alias): Use
4429 set_cmd_sfunc, set_cmd_context.
4430 (debug_to_open): Remove.
4431 (setup_target_debug): Update.
4432
a1c7835a
YQ
44332014-07-30 Yao Qi <yao@codesourcery.com>
4434
4435 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4436 comments.
4437 * parse.c (exp_iterate): Update comments.
4438
976411d6
GB
44392014-07-30 Gary Benson <gbenson@redhat.com>
4440
4441 * common/common-defs.h: New file.
4442 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4443 * defs.h: Include common-defs.h.
4444 Do not include config.h or build-gnulib/config.h.
4445
5d4848a4
GB
44462014-07-30 Gary Benson <gbenson@redhat.com>
4447
4448 * common/common-utils.h: Do not include config.h.
4449 * nat/linux-btrace.h: Likewise.
4450
d41f6d8e
GB
44512014-07-30 Gary Benson <gbenson@redhat.com>
4452
4453 * btrace.c: Include defs.h.
4454 * common/ptid.c: Include defs.h or server.h as appropriate.
4455 * nat/mips-linux-watch.c: Likewise.
4456
84202f9c
TT
44572014-07-29 Tom Tromey <tromey@redhat.com>
4458
4459 * target.c (target_is_pushed): Simplify.
4460
2530441c
JB
44612014-07-29 Joel Brobecker <brobecker@adacore.com>
4462
4463 GDB 7.8 released.
4464
7e09a223
YQ
44652014-07-29 Yao Qi <yao@codesourcery.com>
4466
4467 PR gdb/17206
4468 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4469
7ebdbe92
DE
44702014-07-28 Doug Evans <xdje42@gmail.com>
4471
4472 PR guile/17203
4473 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4474 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4475 parameters.
4476
f347ffc9
WN
44772014-07-28 Will Newton <will.newton@linaro.org>
4478
4479 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4480 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4481 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4482 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4483 (THUMB2_EABI_SYSCALL): Likewise.
4484 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4485 struct tramp_frame.
4486 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4487 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4488
37c5f1f7
DE
44892014-07-27 Doug Evans <xdje42@gmail.com>
4490
4491 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4492
0c3abbc7
DE
44932014-07-27 Doug Evans <xdje42@gmail.com>
4494
4495 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4496
e76c5d17
DE
44972014-07-26 Ludovic Courtès <ludo@gnu.org>
4498 Doug Evans <xdje42@gmail.com>
4499
4500 PR guile/17146
4501 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4502 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4503 * configure.ac: Try to use guild to compile an scm file, if it fails
4504 then disable guile support.
4505 * configure: Regenerate.
4506 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4507 GUILE_FILE_LIST.
4508 (GUILE_COMPILED_FILES): New variable.
4509 (GUILE_FILES) Update.
4510 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4511 (stamp-guile): Compile scm files.
4512 * guile/guile.c (boot_guile_support): New function.
4513 (standard_throw_args_p): New function.
4514 (print_standard_throw_error, print_throw_error): New functions.
4515 (handle_boot_error): New function.
4516 (initialize_scheme_side): Rewrite to call boot_guile_support.
4517 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4518 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4519
186fcde0
DE
45202014-07-26 Ludovic Courtès <ludo@gnu.org>
4521 Doug Evans <xdje42@gmail.com>
4522
4523 PR guile/17146
4524 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4525 * guile/lib/gdb/support.scm: New file.
4526 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4527 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4528 All uses updated.
4529 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4530 All uses updated.
4531 (%assert-type): Ditto, and renamed to assert-type.
4532 (%exception-print-style): Delete.
4533
4df42755
DE
45342014-07-26 Doug Evans <xdje42@gmail.com>
4535
4536 PR build/17105
4537 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4538 * configure: Regenerate.
4539 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4540 PYTHON_FILES.
4541 (PYTHON_FILES): New variable.
4542 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4543 (GUILE_FILES): New variable.
4544 (stamp-python, install-python, uninstall-python): Handle empty
4545 file list.
4546 (stamp-guile, install-guile, uninstall-guile): Ditto.
4547
ee7333ae
DE
45482014-07-26 Doug Evans <xdje42@gmail.com>
4549
4550 PR guile/17177
4551 * guile/lib/gdb.scm (pretty-printers): Export.
4552 (set-pretty-printers!): Export.
4553 * guile/lib/gdb/printing.scm (gdb module): Update.
4554 (prepend-pretty-printer!, append-pretty-printer!): Update.
4555 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4556 (pretty_printer_list_var): Delete.
4557 (pretty_printer_list): New static global.
4558 (gdbscm_pretty_printers): New function.
4559 (gdbscm_set_pretty_printers_x): New function.
4560 (ppscm_find_pretty_printer_from_gdb): Update.
4561 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4562 (gdbscm_initialize_pretty_printers): Update.
4563
74edf516
DE
45642014-07-26 Doug Evans <xdje42@gmail.com>
4565
4566 PR 17185
4567 * configure.ac: Add check for header gc/gc.h.
4568 Add check for function setenv.
4569 * configure: Regenerate.
4570 * config.in: Regenerate.
4571 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4572
d54398a7
MR
45732014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4574
4575 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4576 variation in gdbarch matching.
4577
ab16fce8
TT
45782014-07-25 Tom Tromey <tromey@redhat.com>
4579
4580 * exec.c (using_exec_ops): Remove.
4581 (exec_close_1): Update. Remove extraneous block, reindent.
4582 (add_target_sections): Use target_is_pushed.
4583
88056fbb
PA
45842014-07-25 Pedro Alves <palves@redhat.com>
4585
4586 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4587 * monitor.c (monitor_create_inferior): Likewise.
4588 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4589 * remote-sim.c (gdbsim_create_inferior): Likewise.
4590 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4591 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4592 * windows-nat.c (do_initial_windows_stuff): Likewise.
4593
70509625
PA
45942014-07-25 Pedro Alves <palves@redhat.com>
4595
4596 * NEWS: Mention signal passing and "signal" command changes.
4597 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4598 comment.
4599 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4600 call.
4601 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4602 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4603 (jump_command): Adjust clear_proceed_status call.
4604 (signal_command): Warn if other thread that are resumed have
4605 signals that will be delivered. Adjust clear_proceed_status call.
4606 (until_next_command, finish_command)
4607 (proceed_after_attach_callback, attach_command_post_wait)
4608 (attach_command): Adjust clear_proceed_status call.
4609 * infrun.c (proceed_after_vfork_done): Likewise.
4610 (proceed_after_attach_callback): Adjust comment.
4611 (clear_proceed_status_thread): Clear stop_signal if not in pass
4612 state.
4613 (clear_proceed_status_callback): Delete.
4614 (clear_proceed_status): New 'step' parameter. Only clear the
4615 proceed status of threads the command being prepared is about to
4616 resume.
4617 (proceed): If passed in an explicit signal, override stop_signal
4618 with it. Don't pass the last stop signal to the thread we're
4619 resuming.
4620 (init_wait_for_inferior): Adjust clear_proceed_status call.
4621 (switch_back_to_stepped_thread): Clear the signal if it should not
4622 be passed.
4623 * infrun.h (clear_proceed_status): New 'step' parameter.
4624 (user_visible_resume_ptid): Add comment.
4625 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4626 signal is in pass state.
4627 * remote.c (append_pending_thread_resumptions): Likewise.
4628 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4629
d8be2939
TT
46302014-07-25 Tom Tromey <tromey@redhat.com>
4631
4632 * target.h (target_stopped_data_address)
4633 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4634 parentheses.
4635
7d0d9d2b
PL
46362014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4637
4638 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4639 comments.
4640 (avr_pointer_to_address): Likewise.
4641
e9e7f724
TT
46422014-07-24 Tom Tromey <tromey@redhat.com>
4643
4644 * monitor.c (compile_pattern): Update.
4645 * target.h (struct target_ops) <to_shortname, to_longname,
4646 to_doc>: Now const.
4647
1947513d
TT
46482014-07-24 Tom Tromey <tromey@redhat.com>
4649
4650 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4651 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4652 (add_info_alias, add_com): Make "doc" const.
4653 (print_doc_line): Make "str" const.
4654 (delete_cmd): Update.
4655 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4656 (print_doc_line): Update.
4657 * cli/cli-script.c (document_command): Update.
4658 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4659 (add_com, add_info, add_info_alias): Update.
4660 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4661 * python/py-cmd.c (cmdpy_destroyer): Update.
4662
64e61d29
TT
46632014-07-24 Tom Tromey <tromey@redhat.com>
4664
4665 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4666 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4667 (help_cmd_list): Constify.
4668 (lookup_cmd): Update.
4669 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4670 const.
4671 (help_cmd_list, apropos_cmd): Update.
4672 * cli/cli-script.c (show_user): Update.
4673 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4674 * cli/cli-setshow.h (cmd_show_list): Update.
4675 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4676 (cmd_show_list): Update.
4677 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4678 * python/py-cmd.c (cmdpy_destroyer): Update.
4679
429e55ea
TT
46802014-07-24 Tom Tromey <tromey@redhat.com>
4681
4682 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4683 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4684 const.
4685 * command.h (deprecate_cmd): Update.
4686 * maint.c (maintenance_do_deprecate): Add casts.
4687
64669f3b
TT
46882014-07-24 Tom Tromey <tromey@redhat.com>
4689
4690 * cli/cli-decode.c (help_cmd): Make parameter "const".
4691 * cli/cli-decode.h (help_cmd): Update.
4692
d3d3328b
TT
46932014-07-24 Tom Tromey <tromey@redhat.com>
4694
4695 * stack.c (up_silently_base, down_silently_base): Make argument
4696 const.
4697
414842dc
TT
46982014-07-24 Tom Tromey <tromey@redhat.com>
4699
4700 * solib.c (solib_add): Make "pattern" const.
4701 * solib.h (solib_add): Update.
4702
baa336ce
TT
47032014-07-24 Tom Tromey <tromey@redhat.com>
4704
4705 * remote.c (remote_serial_open, print_packet, putpkt)
4706 (putpkt_binary): Constify.
4707 * remote.h (putpkt): Update.
4708
5a19e2d0
TT
47092014-07-24 Tom Tromey <tromey@redhat.com>
4710
4711 * monitor.c (monitor_open): Make "args" const.
4712 * monitor.h (monitor_open): Update.
4713
fc4baa5e
TT
47142014-07-24 Tom Tromey <tromey@redhat.com>
4715
4716 * maint.c (match_bfd_flags): Make "string" const.
4717 (print_bfd_section_info): Remove casts.
4718 (print_objfile_section_info): Make "string" const.
4719
0d5f0dbe
TT
47202014-07-24 Tom Tromey <tromey@redhat.com>
4721
4722 * inf-child.c (inf_child_open_target): Make "arg" const.
4723 * inf-child.h (inf_child_open_target): Update.
4724
41c77899
TT
47252014-07-24 Tom Tromey <tromey@redhat.com>
4726
4727 * environ.c (unset_in_environ): Make "var" const.
4728 * environ.h (unset_in_environ): Update.
4729
93db0d79
TT
47302014-07-24 Tom Tromey <tromey@redhat.com>
4731
4732 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4733 Make "cmd" const.
4734 (scan_filename_with_cleanup): Likewise.
4735 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4736 Make arguments const.
4737 (restore_command): Update.
4738
36d6eb95
PA
47392014-07-24 Pedro Alves <palves@redhat.com>
4740
4741 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4742
8009206a
TT
47432014-07-24 Tom Tromey <tromey@redhat.com>
4744 Gary Benson <gbenson@redhat.com>
4745
4746 * nat/linux-ptrace.c (additional_flags): New global.
4747 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4748 additional_flags; don't check GDBSERVER.
4749 (linux_ptrace_set_additional_flags): New function.
4750 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4751 Declare.
4752 * linux-nat.c (_initialize_linux_nat): Call
4753 linux_ptrace_set_additional_flags.
4754
a7068b60
TT
47552014-07-24 Tom Tromey <tromey@redhat.com>
4756
4757 * make-target-delegates (munge_type, write_debugmethod): New
4758 functions.
4759 (debug_names): New global.
4760 ($TARGET_DEBUG_PRINTER): New global.
4761 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4762 name.
4763 Write debug methods. Generate init_debug_target.
4764 * target-debug.h: New file.
4765 * target-delegates.c: Rebuild.
4766 * target.c: Include target-debug.h.
4767 (debug_target): Hoist definition.
4768 (target_kill, target_get_section_table, target_memory_map)
4769 (target_flash_erase, target_flash_done, target_detach)
4770 (target_disconnect, target_wait, target_resume)
4771 (target_pass_signals, target_program_signals, target_follow_fork)
4772 (target_mourn_inferior, target_search_memory)
4773 (target_thread_address_space, target_close)
4774 (target_find_new_threads, target_core_of_thread)
4775 (target_verify_memory, target_insert_mask_watchpoint)
4776 (target_remove_mask_watchpoint): Remove targetdebug code.
4777 (debug_to_post_attach, debug_to_prepare_to_store)
4778 (debug_to_files_info, debug_to_insert_breakpoint)
4779 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4780 (debug_to_region_ok_for_hw_watchpoint)
4781 (debug_to_can_accel_watchpoint_condition)
4782 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4783 (debug_to_watchpoint_addr_within_range)
4784 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4785 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4786 (debug_to_terminal_init, debug_to_terminal_inferior)
4787 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4788 (debug_to_terminal_save_ours, debug_to_terminal_info)
4789 (debug_to_load, debug_to_post_startup_inferior)
4790 (debug_to_insert_fork_catchpoint)
4791 (debug_to_remove_fork_catchpoint)
4792 (debug_to_insert_vfork_catchpoint)
4793 (debug_to_remove_vfork_catchpoint)
4794 (debug_to_insert_exec_catchpoint)
4795 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4796 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4797 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4798 (setup_target_debug): Call init_debug_target.
4799 * target.h (TARGET_DEBUG_PRINTER): New macro.
4800 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4801 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4802
2c51604d
GB
48032014-07-24 Gary Benson <gbenson@redhat.com>
4804
4805 * exceptions.h (throw_vfatal): Renamed to...
4806 (throw_vquit): New declaration.
4807 (throw_quit): Likewise.
4808 * exceptions.c (throw_vfatal): Renamed to...
4809 (throw_vquit): New function.
4810 (throw_quit): Likewise.
4811 (throw_error): Call throw_verror rather than throw_it.
4812 * utils.h (vfatal): Removed.
4813 (fatal): Likewise.
4814 * utils.c (vfatal): Removed.
4815 (fatal): Likewise.
4816 (internal_verror): Replaced call to fatal with call to throw_quit.
4817 (quit): Replaced calls to fatal with calls to throw_quit.
4818
34211963
ME
48192014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4820
4821 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4822 target_read_code.
4823
a52b4d3e
ME
48242014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4825
4826 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4827 less than zero in conditional expression.
4828
a8bdc56b
TT
48292014-07-23 Tom Tromey <tromey@redhat.com>
4830
4831 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4832 ($INTRO_PART): Don't match whitespace.
4833 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4834 argument matching.
4835 ($METHOD): Add $METHOD_TRAILER.
4836 (trim): Rewrite.
4837 (scan_target_h): New sub.
4838 Change main loop not to collect state.
4839 * target-delegates.c: Rebuild.
4840
91b52240
GB
48412014-07-23 Gary Benson <gbenson@redhat.com>
4842
4843 * cp-support.c (gdb_demangle): Fix build on systems without
4844 sigaltstack.
4845
45326f6f
JK
48462014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4849 for reference entry value target data value.
4850
e214cf6c
JK
48512014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4852
4853 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4854 value_available_contents_eq.
4855
bddbbedd
PA
48562014-07-22 Pedro Alves <palves@redhat.com>
4857
4858 * value.c (allocate_optimized_out_value): Don't mark value as
4859 non-lazy.
4860
45c71484
JW
48612014-07-22 Jiong Wang <jiong.wang@arm.com>
4862
4863 * MAINTAINERS (Write After Approval): Update my email address.
4864
9597b22a
DE
48652014-07-20 Doug Evans <dje@google.com>
4866
4867 PR server/17147
4868 * remote.c (putpkt_binary): Add text to error message.
4869
91101fe5
YQ
48702014-07-20 Yao Qi <yao@codesourcery.com>
4871
4872 * eval.c: Remove "Chill" from comments.
4873 * gdbtypes.h: Likewise.
4874 * symtab.h: Likewise.
4875
c9402c95
YQ
48762014-07-20 Yao Qi <yao@codesourcery.com>
4877
4878 * std-operator.def: Update comments to TERNOP_SLICE.
4879
ae8fddda
YQ
48802014-07-20 Yao Qi <yao@codesourcery.com>
4881
4882 * std-operator.def: Remove BINOP_RANGE.
4883 * breakpoint.c (watchpoint_exp_is_const): Update.
4884 * expprint.c (dump_subexp_body_standard): Likewise.
4885 * eval.c (init_array_element): Remove dead code.
4886 (evaluate_subexp_standard): Likewise.
4887
9c816640
YQ
48882014-07-20 Yao Qi <yao@codesourcery.com>
4889
4890 * std-operator.def: Remove BINOP_IN.
4891 * breakpoint.c (watchpoint_exp_is_const): Update.
4892 * eval.c (evaluate_subexp_standard): Likewise.
4893 * expprint.c (dump_subexp_body_standard): Likewise.
4894
164224e9
ME
48952014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4896
4897 * microblaze-tdep.c (microblaze_register_names): Add
4898 the rshr and rslr register names.
4899 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4900 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4901 Use of tdesc_numbered_register. Use of
4902 microblaze_register_g_packet_guesses. Use of
4903 tdesc_use_registers. Use of set_gdbarch_register_type.
4904 (microblaze_register_g_packet_guesses): New.
4905 * microblaze-tdep.h (microblaze_reg_num): Add
4906 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4907 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4908 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4909 * features/microblaze-core.xml: New file.
4910 * features/microblaze-stack-protect.xml: New file.
4911 * features/microblaze-with-stack-protect.c: New file.
4912 * features/microblaze-with-stack-protect.xml: New file.
4913 * features/microblaze.xml: New file.
4914 * features/microblaze.c: New file.
4915 * features/Makefile (microblaze-with-stack-protect): Add
4916 microblaze-with-stack-protect microblaze and microblaze-expedite.
4917 * regformats/microblaze-with-stack-protect.dat: New file.
4918 * regformats/microblaze.dat: New file.
4919 * doc/gdb.texinfo (MicroBlaze Features): Added.
4920
e8b2341c
TT
49212014-07-18 Tom Tromey <tromey@redhat.com>
4922
4923 * exec.c (exec_ops): Now static.
4924 * exec.h (exec_ops): Don't declare.
4925
44e89118
TT
49262014-07-18 Tom Tromey <tromey@redhat.com>
4927
4928 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4929 to find_target_beneath.
4930 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4931 find_target_beneath.
4932 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4933
b0ed115f
TT
49342014-07-18 Tom Tromey <tromey@redhat.com>
4935
4936 PR gdb/17130:
4937 * utils.c (quit): Use target_supports_terminal_ours.
4938 * target.h (target_supports_terminal_ours): Declare.
4939 * target.c (target_supports_delete_record): Don't check
4940 to_delete_record against NULL.
4941 (target_supports_terminal_ours): New function.
4942
e75fdfca
TT
49432014-07-18 Tom Tromey <tromey@redhat.com>
4944
4945 PR gdb/17130:
4946 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4947 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4948 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4949 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4950 * windows-nat.c (windows_xfer_partial): Always delegate.
4951 * record-btrace.c (record_btrace_xfer_partial): Simplify
4952 delegation.
4953 (record_btrace_fetch_registers, record_btrace_store_registers)
4954 (record_btrace_prepare_to_store, record_btrace_resume)
4955 (record_btrace_wait, record_btrace_find_new_threads)
4956 (record_btrace_thread_alive): Likewise.
4957 * procfs.c (procfs_xfer_partial): Always delegate.
4958 * corelow.c (core_xfer_partial): Always delegate.
4959 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4960
83814951
TT
49612014-07-18 Tom Tromey <tromey@redhat.com>
4962
4963 * exec.c (exec_make_note_section): Move earlier.
4964
b8b8facf
DE
49652014-07-17 Doug Evans <dje@google.com>
4966
74b49205 4967 PR gdb/17170
b8b8facf
DE
4968 * maint.c (count_symtabs_and_blocks): Handle NULL
4969 current_program_space.
4970 (report_command_stats): Check global enabled flag in addition to
4971 recorded enabled flag.
4972 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4973
69ff6be5
PA
49742014-07-16 Pedro Alves <palves@redhat.com>
4975
4976 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4977
252db1b5
TT
49782014-07-16 Tom Tromey <tromey@redhat.com>
4979
4980 * target.h (struct target_ops) <to_delete_record>: Reformat
4981 comment.
4982
a432721e
TT
49832014-07-16 Tom Tromey <tromey@redhat.com>
4984
4985 * target-delegates.c: Rebuild.
4986
487d9753
PL
49872014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4988
4989 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4990 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4991 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4992 (avr_pointer_to_address): Likewise.
4993 (avr_address_class_type_flags): New function.
4994 (avr_address_class_type_flags_to_name): Likewise.
4995 (avr_address_class_name_to_type_flags): Likewise.
4996 (avr_gdbarch_init): Set address_class_type_flags,
4997 address_class_type_flags_to_name and
4998 address_class_name_to_type_flags.
4999
57745c90
PA
50002014-07-15 Pedro Alves <palves@redhat.com>
5001
5002 * linux-nat.c (kill_callback): Save errno and work with saved
5003 copy.
5004
2d40be18
SM
50052014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5006
5007 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5008
572f6555
EBM
50092014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5010
5011 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5012 breakpoint support correctly.
5013
cc1c52ad
PA
50142014-07-14 Pedro Alves <palves@redhat.com>
5015
5016 * utils.c (prompt_for_continue): Call target_terminal_ours.
5017
1e973570
PA
50182014-07-14 Pedro Alves <palves@redhat.com>
5019
5020 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5021 catch_errors. Don't re-enable stdin or notify observers where,
5022 and rethrow error.
5023 (fetch_inferior_event_wrapper): Delete.
5024
93d6eb10
PA
50252014-07-14 Pedro Alves <palves@redhat.com>
5026
5027 PR gdb/17072
5028 * top.c: Include "inf-loop.h".
5029 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5030 field.
5031 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5032 was async before.
5033 (gdb_readline_wrapper): Store whether the target is async, and
5034 make it sync.
5035
0017922d
PA
50362014-07-14 Pedro Alves <palves@redhat.com>
5037
5038 PR gdb/17072
5039 * top.c (gdb_readline_wrapper_line): Tweak comment.
5040 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5041 the input handler callback.
5042
94696ad3
PA
50432014-07-14 Pedro Alves <palves@redhat.com>
5044
5045 PR gdb/17072
5046 * main.c: Include event-top.h.
5047 (handle_command_errors): New function.
5048 (catch_command_errors, catch_command_errors_const): Use it.
5049
9d1e69a2
PA
50502014-07-14 Pedro Alves <palves@redhat.com>
5051
5052 * exceptions.c (catch_command_errors, catch_command_errors_const):
5053 Moved to main.c.
5054 * exceptions.h (catch_command_errors_ftype)
5055 (catch_command_errors_const_ftype): Moved to main.c.
5056 (catch_command_errors, catch_command_errors_const): Delete
5057 declarations.
5058 * main.c (catch_command_errors_ftype)
5059 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5060 (catch_command_errors, catch_command_errors_const)): Moved here
5061 from exceptions.c and make static.
5062
feefc97b
PA
50632014-07-14 Pedro Alves <palves@redhat.com>
5064
5065 * exceptions.c (print_any_exception): Delete.
5066 (catch_exceptions_with_msg): Use exception_print instead of
5067 print_any_exception.
5068 (catch_errors): Use exception_fprintf instead of
5069 print_any_exception.
5070 (catch_command_errors, catch_command_errors_const): Use
5071 exception_print instead of print_any_exception.
5072
c933f875
PA
50732014-07-14 Pedro Alves <palves@redhat.com>
5074
5075 * infcall.c (run_inferior_call): Set 'sync_execution' while
5076 running the inferior call.
5077
feb6f816
PA
50782014-07-14 Pedro Alves <palves@redhat.com>
5079
5080 * value.c (value_contents_equal): Delete function.
5081 * value.h (value_contents_equal): Delete declaration.
5082
d98b7a16
TT
50832014-07-14 Tom Tromey <tromey@redhat.com>
5084
5085 PR exp/17106:
5086 * gdbtypes.c (is_dynamic_type_internal): New function, from
5087 is_dynamic_type.
5088 (is_dynamic_type): Rewrite.
5089 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5090 (resolve_dynamic_struct): Likewise.
5091 (resolve_dynamic_type_internal): New function, from
5092 resolve_dynamic_type.
5093 (resolve_dynamic_type): Rewrite.
5094
548740d6
TT
50952014-07-14 Tom Tromey <tromey@redhat.com>
5096
5097 * target.c (target_require_runnable): Also check record_stratum.
5098 Update comment.
5099
808f7ab1
YQ
51002014-07-11 Yao Qi <yao@codesourcery.com>
5101
5102 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5103 thumb_instruction_restores_sp return true.
5104
540314bd
YQ
51052014-07-11 Yao Qi <yao@codesourcery.com>
5106
5107 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5108 (thumb_in_function_epilogue_p): Call
5109 thumb_instruction_restores_sp.
5110
1db01f22
YQ
51112014-07-11 Yao Qi <yao@codesourcery.com>
5112
5113 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5114 'add sp, #imm'.
5115 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5116
3116063b
GB
51172014-07-11 Gary Benson <gbenson@redhat.com>
5118
5119 * amd64-linux-nat.c (gdbcore.h): Remove include.
5120 (regset.h): Likewise.
5121 (nat/linux-btrace.h): Likewise.
5122 (btrace.h): Likewise.
5123 (gdb_assert.h): Likewise.
5124 (string.h): Likewise.
5125 (sys/uio.h): Likewise.
5126 (sys/debugreg.h): Likewise.
5127 (sys/syscall.h): Likewise.
5128 (sys/procfs.h): Likewise.
5129 (sys/user.h): Likewise.
5130 (asm/ptrace.h): Likewise.
5131 (i386-nat.h): Likewise.
5132 * i386-linux-nat.c (i386-nat.h): Likewise.
5133 (regset.h): Likewise.
5134 (target.h): Likewise.
5135 (linux-nat.h): Likewise.
5136 (nat/linux-btrace.h): Likewise.
5137 (btrace.h): Likewise.
5138 (gdb_assert.h): Likewise.
5139 (string.h): Likewise.
5140 (sys/uio.h): Likewise.
5141 (sys/user.h): Likewise.
5142 (sys/procfs.h): Likewise.
5143 (sys/reg.h): Likewise.
5144 (sys/debugreg.h): Likewise.
5145 (ORIG_EAX): Remove definition.
5146
040baaf6
GB
51472014-07-11 Gary Benson <gbenson@redhat.com>
5148
5149 * i386-linux-nat.h: New file.
5150 * x86-linux-nat.h: Likewise.
5151 * x86-linux-nat.c: Likewise.
5152 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5153 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5154 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5155 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5156 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5157 (PTRACE_SETREGSET): Likewise.
5158 (arch_lwp_info): Now in x86-linux-nat.c.
5159 (have_ptrace_getregset): Now in x86-linux-nat.h.
5160 (x86_linux_dr_get): Now in x86-linux-nat.c.
5161 (x86_linux_dr_set): Likewise.
5162 (x86_linux_dr_get_addr): Likewise.
5163 (x86_linux_dr_get_control): Likewise.
5164 (x86_linux_dr_get_status): Likewise.
5165 (update_debug_registers_callback): Likewise.
5166 (x86_linux_dr_set_control): Likewise.
5167 (x86_linux_dr_set_addr): Likewise.
5168 (x86_linux_prepare_to_resume): Likewise.
5169 (x86_linux_new_thread): Likewise.
5170 (x86_linux_new_fork): Likewise.
5171 (x86_linux_get_thread_area): Likewise.
5172 (super_post_startup_inferior): Likewise.
5173 (x86_linux_child_post_startup_inferior): Likewise.
5174 (AMD64_LINUX_USER64_CS): Likewise.
5175 (AMD64_LINUX_X32_DS): Likewise.
5176 (x86_linux_read_description): Likewise.
5177 (x86_linux_enable_btrace): Likewise.
5178 (x86_linux_disable_btrace): Likewise.
5179 (x86_linux_teardown_btrace): Likewise.
5180 (x86_linux_read_btrace): Likewise.
5181 (x86_linux_create_target): Likewise.
5182 (x86_linux_add_target): Likewise.
5183 * i386-linux-nat.c (x86-linux-nat.h): New include.
5184 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5185 (PTRACE_SETREGSET): Likewise.
5186 (arch_lwp_info): Now in x86-linux-nat.c.
5187 (have_ptrace_getregset): Now in x86-linux-nat.h.
5188 (x86_linux_dr_get): Now in x86-linux-nat.c.
5189 (x86_linux_dr_set): Likewise.
5190 (x86_linux_dr_get_addr): Likewise.
5191 (x86_linux_dr_get_control): Likewise.
5192 (x86_linux_dr_get_status): Likewise.
5193 (update_debug_registers_callback): Likewise.
5194 (x86_linux_dr_set_control): Likewise.
5195 (x86_linux_dr_set_addr): Likewise.
5196 (x86_linux_prepare_to_resume): Likewise.
5197 (x86_linux_new_thread): Likewise.
5198 (x86_linux_new_fork): Likewise.
5199 (x86_linux_get_thread_area): Likewise.
5200 (super_post_startup_inferior): Likewise.
5201 (x86_linux_child_post_startup_inferior): Likewise.
5202 (AMD64_LINUX_USER64_CS): Likewise.
5203 (AMD64_LINUX_X32_DS): Likewise.
5204 (x86_linux_read_description): Likewise.
5205 (x86_linux_enable_btrace): Likewise.
5206 (x86_linux_disable_btrace): Likewise.
5207 (x86_linux_teardown_btrace): Likewise.
5208 (x86_linux_read_btrace): Likewise.
5209 (x86_linux_create_target): Likewise.
5210 (x86_linux_add_target): Likewise.
5211
1aa7e42c
GB
52122014-07-11 Gary Benson <gbenson@redhat.com>
5213
5214 * amd64-linux-nat.c: Comment and whitespace changes.
5215 * i386-linux-nat.c: Comment and whitespace changes.
5216
c1e246a0
GB
52172014-07-11 Gary Benson <gbenson@redhat.com>
5218
5219 * amd64-linux-nat.c (x86_linux_create_target): New function.
5220 (x86_linux_add_target): Likewise.
5221 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5222 * i386-linux-nat.c (x86_linux_create_target): New function.
5223 (x86_linux_add_target): Likewise.
5224 (_initialize_i386_linux_nat): Delegate to the above new functions.
5225
8c420b8d
GB
52262014-07-11 Gary Benson <gbenson@redhat.com>
5227
5228 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5229 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5230 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5231 (ps_get_thread_area): Delegate to the above.
5232
cb1da100
GB
52332014-07-11 Gary Benson <gbenson@redhat.com>
5234
5235 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5236 x86_linux_read_description. All uses updated. amd64-specific
5237 code conditionalized. Conditionalized i386-specific code added.
5238 Redundant cast removed.
5239 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5240 x86_linux_read_description. All uses updated. i386-specific
5241 code conditionalized. Conditionalized amd64-specific code added.
5242 One sizeof replaced with the actual type it is describing.
5243
2acf3cd0
GB
52442014-07-11 Gary Benson <gbenson@redhat.com>
5245
5246 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5247 x86_linux_dr_get. All uses updated.
5248 (amd64_linux_dr_set): Renamed to
5249 x86_linux_dr_set. All uses updated.
5250 (amd64_linux_dr_get_addr): Renamed to
5251 x86_linux_dr_get_addr. All uses updated.
5252 (amd64_linux_dr_get_control): Renamed to
5253 x86_linux_dr_get_control. All uses updated.
5254 (amd64_linux_dr_get_status): Renamed to
5255 x86_linux_dr_get_status. All uses updated.
5256 (amd64_linux_dr_set_control): Renamed to
5257 x86_linux_dr_set_control. All uses updated.
5258 (amd64_linux_dr_set_addr): Renamed to
5259 x86_linux_dr_set_addr. All uses updated.
5260 (amd64_linux_prepare_to_resume): Renamed to
5261 x86_linux_prepare_to_resume. All uses updated.
5262 (amd64_linux_new_thread): Renamed to
5263 x86_linux_new_thread. All uses updated.
5264 (amd64_linux_new_fork): Renamed to
5265 x86_linux_new_fork. All uses updated.
5266 (amd64_linux_child_post_startup_inferior): Renamed to
5267 x86_linux_child_post_startup_inferior. All uses updated.
5268 (amd64_linux_enable_btrace): Renamed to
5269 x86_linux_enable_btrace. All uses updated.
5270 (amd64_linux_disable_btrace): Renamed to
5271 x86_linux_disable_btrace. All uses updated.
5272 (amd64_linux_teardown_btrace): Renamed to
5273 x86_linux_teardown_btrace. All uses updated.
5274 (amd64_linux_read_btrace): Renamed to
5275 x86_linux_read_btrace. All uses updated.
5276 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5277 x86_linux_dr_get. All uses updated.
5278 (i386_linux_dr_set): Renamed to
5279 x86_linux_dr_set. All uses updated.
5280 (i386_linux_dr_get_addr): Renamed to
5281 x86_linux_dr_get_addr. All uses updated.
5282 (i386_linux_dr_get_control): Renamed to
5283 x86_linux_dr_get_control. All uses updated.
5284 (i386_linux_dr_get_status): Renamed to
5285 x86_linux_dr_get_status. All uses updated.
5286 (i386_linux_dr_set_control): Renamed to
5287 x86_linux_dr_set_control. All uses updated.
5288 (i386_linux_dr_set_addr): Renamed to
5289 x86_linux_dr_set_addr. All uses updated.
5290 (i386_linux_prepare_to_resume): Renamed to
5291 x86_linux_prepare_to_resume. All uses updated.
5292 (i386_linux_new_thread): Renamed to
5293 x86_linux_new_thread. All uses updated.
5294 (i386_linux_new_fork): Renamed to
5295 x86_linux_new_fork. All uses updated.
5296 (i386_linux_child_post_startup_inferior): Renamed to
5297 x86_linux_child_post_startup_inferior. All uses updated.
5298 (i386_linux_enable_btrace): Renamed to
5299 x86_linux_enable_btrace. All uses updated.
5300 (i386_linux_disable_btrace): Renamed to
5301 x86_linux_disable_btrace. All uses updated.
5302 (i386_linux_teardown_btrace): Renamed to
5303 x86_linux_teardown_btrace. All uses updated.
5304 (i386_linux_read_btrace): Renamed to
5305 x86_linux_read_btrace. All uses updated.
5306
b9c1d481
AS
53072014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5308
5309 * remote.c (extended_remote_post_attach): New function.
5310 (init_extended_remote_ops): Install it as to_post_attach method.
5311
7180e04a
PA
53122014-07-09 Pedro Alves <palves@redhat.com>
5313
5314 * infcmd.c (attach_command_post_wait): Don't call
5315 target_terminal_inferior here.
5316 (attach_command): Call it here instead.
5317
9a9a7608
AB
53182014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5319
5320 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5321 field.
5322 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5323 from varobj.c, with additional checks.
5324 (c_varobj_ops): Fill in is_path_expr_parent field.
5325 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5326 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5327 field.
5328 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5329 ops method.
5330 (varobj_default_is_path_expr_parent): New function.
5331 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5332 (varobj_default_is_path_expr_parent): Declare new function.
5333
1f267ae3
MM
53342014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5335
5336 * infcmd.c (finish_backward): Turn internal error into normal error.
5337
b2ee242b
PA
53382014-07-07 Pedro Alves <palves@redhat.com>
5339
8a869bca 5340 PR gdb/17096
b2ee242b
PA
5341 * remote.c (async_handle_remote_sigint)
5342 (async_handle_remote_sigint_twice): Call
5343 gdb_call_async_signal_handler instead of
5344 mark_async_signal_handler.
5345
38e229b2
TT
53462014-07-07 Tom Tromey <tromey@redhat.com>
5347
5348 * target-delegates.c: Rebuild.
5349 * target.c (target_info_record): Remove.
5350 * record.c (info_record_command): Unconditionally call
5351 to_info_record.
5352 * target.h (struct target_ops) <to_info_record>: Use
5353 TARGET_DEFAULT_IGNORE.
5354 (target_info_record): Remove.
5355
f0f9ff95
TT
53562014-07-07 Tom Tromey <tromey@redhat.com>
5357
5358 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5359 TARGET_DEFAULT_NORETURN.
5360 * target.c (generic_tls_error): New function.
5361 (target_translate_tls_address): Don't search target stack.
5362 * target-delegates.c: Rebuild.
5363 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5364 stack.
5365 * linux-thread-db.c (thread_db_get_thread_local_address):
5366 Unconditionally call beneath target.
5367
4a5be5ee
MK
53682014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5369
5370 * cli/cli-logging.c (pop_output_files): Assign targerr to
5371 gdb_stdtargerr.
5372
92c3b204
AB
53732014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * MAINTAINERS (Write After Approval): Update my email address.
5376
9b11e3a7
GB
53772014-07-02 Gary Benson <gbenson@redhat.com>
5378
5379 * proc-service.c (ps_xfer_memory): Update comment.
5380 (ps_pstop): Remove unused function.
5381 (ps_pcontinue): Likewise.
5382 (ps_lstop): Likewise.
5383 (ps_lcontinue): Likewise.
5384 (ps_lgetxregsize): Likewise.
5385 (ps_lgetxregs): Likewise.
5386 (ps_lsetxregs): Likewise.
5387 (ps_plog): Likewise.
5388 (ps_ptread): Likewise.
5389 (ps_ptwrite): Likewise.
5390
cf363f18
MW
53912014-07-01 Mark Wielaard <mjw@redhat.com>
5392
5393 * dwarf2read.c (add_array_cv_type): New function.
5394 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5395 (read_tag_volatile_type): Likewise.
5396
82ae6c8d
TT
53972014-07-01 Tom Tromey <tromey@redhat.com>
5398
5399 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5400 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5401 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5402 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5403 * command.h (cmd_cfunc_ftype): Move earlier.
5404 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5405 (add_com, add_info): Use cmd_cfunc_ftype.
5406
96142726
TT
54072014-06-30 Tom Tromey <tromey@redhat.com>
5408
5409 * symtab.c (operator_chars): Make parameters and return type
5410 const.
5411 (file_matches): Make "files" const.
5412 (struct search_symbols_data) <files>: Now const.
5413 (search_symbols): Make "regexp" and "files" parameters const.
5414 Update.
5415 (symtab_symbol_info): Remove cast.
5416 (rbreak_command): Update.
5417 * symtab.h (search_symbols): Update.
5418
b67a2c6f
YQ
54192014-06-27 Yao Qi <yao@codesourcery.com>
5420
5421 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5422 Change parameter type to 'struct thread_info *'. Caller
5423 updated.
5424 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5425 Update declaration.
5426 * dummy-frame.c (struct dummy_frame_id): New.
5427 (dummy_frame_id_eq): New function.
5428 (struct dummy_frame) <id>: Change its type to 'struct
5429 dummy_frame_id'.
5430 (dummy_frame_push): Add parameter ptid and save it in
5431 dummy_frame_id.
5432 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5433 inferior_ptid.
5434 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5435 to inferior_ptid.
5436 (lookup_dummy_frame): Change parameter type to 'struct
5437 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5438 instead of frame_id_eq.
5439 (dummy_frame_pop): Add parameter ptid. Callers updated.
5440 Update comments. Compose dummy_frame_id and pass it to
5441 lookup_dummy_frame.
5442 (dummy_frame_discard): Add parameter ptid.
5443 (dummy_frame_sniffer): Compose dummy_frame_id and call
5444 dummy_frame_id_eq instead of frame_id_eq.
5445 (fprint_dummy_frames): Print ptid.
5446 * dummy-frame.h: Remove comments.
5447 (dummy_frame_push): Add ptid in declaration.
5448 (dummy_frame_pop, dummy_frame_discard): Likewise.
5449
5b10184c
TT
54502014-06-26 Tom Tromey <tromey@redhat.com>
5451
5452 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5453 * command.h (error_no_arg): Update.
5454
06900326
TT
54552014-06-26 Tom Tromey <tromey@redhat.com>
5456
5457 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5458 (do_show_command): Make "arg" const.
5459 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5460
c2bcbb1d
TT
54612014-06-26 Tom Tromey <tromey@redhat.com>
5462
5463 * record-full.c (record_full_get_bookmark): Make "args" const.
5464 (record_full_goto_bookmark): Make "raw_bookmark" const.
5465 * record.c (record_goto): New function.
5466 (cmd_record_goto): Use it. Now static.
5467 * record.h (record_goto): Declare.
5468 (cmd_record_goto): Remove declaration.
5469 * target-delegates.c: Rebuild.
5470 * target.h (struct target_ops) <to_get_bookmark,
5471 to_goto_bookmark>: Make parameter const.
5472
9cbe5fff
TT
54732014-06-26 Tom Tromey <tromey@redhat.com>
5474
5475 * defs.h (generic_load): Update.
5476 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5477 * monitor.c (monitor_load): Make "args" const.
5478 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5479 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5480 const.
5481 (mips_load): Make "file" const.
5482 * remote-sim.c (gdbsim_load): Make "args" const.
5483 * remote.c (remote_load): Make "name" const.
5484 * symfile.c (generic_load): Make "args" const.
5485 * target-delegates.c: Rebuild.
5486 * target.c (target_load): Make "arg" const.
5487 (debug_to_load): Make "args" const.
5488 * target.h (struct target_ops) <to_load>: Make parameter const.
5489 (target_load): Update.
5490
34a68019
TT
54912014-06-26 Tom Tromey <tromey@redhat.com>
5492
5493 PR symtab/16902:
5494 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5495 (dwarf2_physname, read_partial_die)
5496 (guess_partial_die_structure_name, fixup_partial_die)
5497 (guess_full_die_structure_name, anonymous_struct_prefix)
5498 (dwarf2_name): Use per-BFD obstack.
5499
efc889c1
YQ
55002014-06-26 Yao Qi <yao@codesourcery.com>
5501
5502 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5503 dummyframe and this_id into inner block below.
5504
4395285e
YQ
55052014-06-26 Yao Qi <yao@codesourcery.com>
5506
5507 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5508 with "signal_pass[0]" in the initialization of signal_pass.
5509
aef92902
MM
55102014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5511
5512 * record-btrace.c (record_btrace_generating_corefile)
5513 (record_btrace_prepare_to_generate_core)
5514 (record_btrace_done_generating_core): New.
5515 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5516 (record_btrace_store_registers, record_btrace_prepare_to_store):
5517 Forward request when generating a core file.
5518 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5519 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5520 to_done_generating_core.
5521
5fff78c4
MM
55222014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5523
5524 * target.h (target_ops) <to_prepare_to_generate_core>
5525 <to_done_generating_core>: New.
5526 (target_prepare_to_generate_core, target_done_generating_core): New.
5527 * target.c (target_prepare_to_generate_core)
5528 (target_done_generating_core): New.
5529 * target-delegates.c: Regenerate.
5530 * gcore.c: (write_gcore_file): Rename to ...
5531 (write_gcore_file_1): ...this.
5532 (write_gcore_file): Call target_prepare_to_generate_core
5533 and target_done_generating_core.
5534
1d1f1ccb
MM
55352014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5536
5537 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5538 * gcore.c (write_gcore_file): Free memory returned from
5539 make_corefile_notes.
5540 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5541 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5542
3343ef86
YQ
55432014-06-24 Yao Qi <yao@codesourcery.com>
5544
5545 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5546 (arm_linux_init_abi): Set skip_trampoline_code with
5547 gdbarch_skip_trampoline_code instead of
5548 find_solib_trampoline_target.
5549
18d18ac8
YQ
55502014-06-24 Yao Qi <yao@codesourcery.com>
5551
5552 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5553 arm_skip_bx_reg returns non-zero.
5554
80d8d390
YQ
55552014-06-24 Yao Qi <yao@codesourcery.com>
5556
5557 * arm-tdep.c (arm_skip_bx_reg): New function.
5558 (arm_skip_stub): Call arm_skip_bx_reg.
5559
6a18a01c
DB
55602014-06-23 Don Breazeal <donb@codesourcery.com>
5561
5562 * MAINTAINERS: Add myself as write-after-approval maintainer.
5563
8e9db26e
PA
55642014-06-23 Pedro Alves <palves@redhat.com>
5565
5566 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5567 DR_CONTROL before setting DR0..DR3.
5568 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5569 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5570 bits of DR_CONTROL related to the debug register slot being
5571 disabled. If all slots are vacant, clear local slowdown as well,
5572 and assert DR_CONTROL is 0.
5573
70afc5b7
SC
55742014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5575
5576 * python/lib/gdb/command/xmethods.py
5577 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5578 current progspace only if the string "progspace" matches LOCUS_RE.
5579
840ed64d
JK
55802014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5581
5582 Fix --with-system-readline with readline-6.3 patch 5.
5583 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5584 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5585 types.
5586
26f2dc30
TT
55872014-06-20 Tom Tromey <tromey@redhat.com>
5588
5589 * dwarf2read.c (dw2_get_real_path): Use correct type in
5590 OBSTACK_CALLOC.
5591 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5592
125f8a3d
GB
55932014-06-20 Gary Benson <gbenson@redhat.com>
5594
5595 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5596 * common/glibc_thread_db.h: Likewise.
5597 * common/i386-cpuid.h: Likewise.
5598 * common/i386-gcc-cpuid.h: Likewise.
5599 * common/linux-btrace.h: Likewise.
5600 * common/linux-osdata.h: Likewise.
5601 * common/linux-procfs.h: Likewise.
5602 * common/linux-ptrace.h: Likewise.
5603 * common/mips-linux-watch.h: Likewise.
5604 * common/linux-btrace.c: Moved to nat.
5605 * common/linux-osdata.c: Likewise.
5606 * common/linux-procfs.c: Likewise.
5607 * common/linux-ptrace.c: Likewise.
5608 * common/mips-linux-watch.c: Likewise.
5609 * nat/gdb_thread_db.h: Moved from common.
5610 * nat/glibc_thread_db.h: Likewise.
5611 * nat/i386-cpuid.h: Likewise.
5612 * nat/i386-gcc-cpuid.h: Likewise.
5613 * nat/linux-btrace.c: Likewise.
5614 * nat/linux-btrace.h: Likewise.
5615 * nat/linux-osdata.c: Likewise.
5616 * nat/linux-osdata.h: Likewise.
5617 * nat/linux-procfs.c: Likewise.
5618 * nat/linux-procfs.h: Likewise.
5619 * nat/linux-ptrace.c: Likewise.
5620 * nat/linux-ptrace.h: Likewise.
5621 * nat/mips-linux-watch.c: Likewise.
5622 * nat/mips-linux-watch.h: Likewise.
5623 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5624 (object file files): Reordered.
5625 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5626 of glibc_thread_db.h.
5627
42995dbd
GB
56282014-06-20 Gary Benson <gbenson@redhat.com>
5629
5630 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5631 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5632 (i386_dr_low): Likewise.
5633 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5634 (i386_dr_low_set_addr): Likewise.
5635 (i386_dr_low_get_addr): Likewise.
5636 (i386_dr_low_can_set_control): Likewise.
5637 (i386_dr_low_set_control): Likewise.
5638 (i386_dr_low_get_control): Likewise.
5639 (i386_dr_low_get_status): Likewise.
5640 (i386_get_debug_register_length): Likewise.
5641 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5642 (i386_dr_low): Likewise.
5643 * nat/i386-dregs.c (i386-low.h): Remove include.
5644 (i386-nat.h): Likewise.
5645 (nat/i386-dregs.h): New include.
5646 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
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 (debug_hw_points): Likewise.
5655
3ed9baed
IB
56562014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5657
5658 * Makefile.in (SFILES): Add d-exp.y.
5659 (YYFILES): Add d-exp.c.
5660 (YYOBJ): Add d-exp.o.
5661 (local-maintainer-clean): Delete d-exp.c.
5662 * d-exp.y: New file.
5663 * d-lang.h (d_parse): New declaration.
5664 (d_error): New declaration.
5665 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5666 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5667 PREC_ORDER operators.
5668 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5669
78c164b0
YQ
56702014-06-19 Yao Qi <yao@codesourcery.com>
5671
5672 * gdbthread.h (any_running): Remove the declaration.
5673 * thread.c (any_running): Remove.
5674
f6e29b6e
YQ
56752014-06-19 Yao Qi <yao@codesourcery.com>
5676
5677 * gdbthread.h (struct thread_info) <state>: Change its type to
5678 'enum thread_state'. Update comments.
5679
034f788c
PA
56802014-06-19 Pedro Alves <palves@redhat.com>
5681
5682 * gdbthread.h (ALL_THREADS): Delete.
5683 (ALL_NON_EXITED_THREADS): New macro.
5684 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5685 instead of ALL_THREADS.
5686 * infrun.c (find_thread_needs_step_over)
5687 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5688 instead of ALL_THREADS.
5689 * record-btrace.c (record_btrace_open)
5690 (record_btrace_stop_recording, record_btrace_close)
5691 (record_btrace_is_replaying, record_btrace_resume)
5692 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5693 * remote.c (append_pending_thread_resumptions): Likewise.
5694 * thread.c (thread_apply_all_command): Likewise.
5695
46e33252
GB
56962014-06-19 Gary Benson <gbenson@redhat.com>
5697
5698 * i386-nat.c (i386_stopped_by_watchpoint):
5699 Use i386_dr_stopped_by_watchpoint.
5700 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5701 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5702
3a8ee006
GB
57032014-06-19 Gary Benson <gbenson@redhat.com>
5704
5705 * nat/i386-dregs.c: New file.
5706 * Makefile.in (i386-dregs.o): New rule.
5707 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5708 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5709 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5710 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5711 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5712 * config/i386/go32.mh (NATDEPFILES): Likewise.
5713 * config/i386/linux.mh (NATDEPFILES): Likewise.
5714 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5715 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5716 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5717 * i386-nat.h (debug_hw_points): New declaration.
5718 * i386-nat.c (breakpoint.h): Remove include.
5719 (command.h): Likewise.
5720 (target.h): Likewise.
5721 (gdb_assert.h): Likewise.
5722 (debug_hw_points): Made nonstatic.
5723 (debug_printf): Now in i386-dregs.c.
5724 (TARGET_HAS_DR_LEN_8): Likewise.
5725 (DR_CONTROL_SHIFT): Likewise.
5726 (DR_CONTROL_SIZE): Likewise.
5727 (DR_RW_EXECUTE): Likewise.
5728 (DR_RW_WRITE): Likewise.
5729 (DR_RW_READ): Likewise.
5730 (DR_RW_IORW): Likewise.
5731 (DR_LEN_1): Likewise.
5732 (DR_LEN_2): Likewise.
5733 (DR_LEN_4): Likewise.
5734 (DR_LEN_8): Likewise.
5735 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5736 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5737 (DR_ENABLE_SIZE): Likewise.
5738 (DR_LOCAL_SLOWDOWN): Likewise.
5739 (DR_GLOBAL_SLOWDOWN): Likewise.
5740 (DR_CONTROL_RESERVED): Likewise.
5741 (I386_DR_CONTROL_MASK): Likewise.
5742 (I386_DR_VACANT): Likewise.
5743 (I386_DR_LOCAL_ENABLE): Likewise.
5744 (I386_DR_GLOBAL_ENABLE): Likewise.
5745 (I386_DR_DISABLE): Likewise.
5746 (I386_DR_SET_RW_LEN): Likewise.
5747 (I386_DR_GET_RW_LEN): Likewise.
5748 (I386_DR_WATCH_HIT): Likewise.
5749 (i386_wp_op_t): Likewise.
5750 (i386_show_dr): Likewise.
5751 (i386_length_and_rw_bits): Likewise.
5752 (i386_insert_aligned_watchpoint): Likewise.
5753 (i386_remove_aligned_watchpoint): Likewise.
5754 (i386_handle_nonaligned_watchpoint): Likewise.
5755 (i386_update_inferior_debug_regs): Likewise.
5756 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5757 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5758 (i386_region_ok_for_watchpoint):
5759 Use i386_dr_region_ok_for_watchpoint.
5760 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5761
322a8e06
GB
57622014-06-19 Gary Benson <gbenson@redhat.com>
5763
5764 * i386-nat.c (i386_insert_hw_breakpoint): Use
5765 i386_insert_watchpoint.
5766 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5767
8f26655c
GB
57682014-06-19 Gary Benson <gbenson@redhat.com>
5769
5770 * i386-nat.c (i386_dr_show): Renamed to
5771 i386_show_dr and made static. All uses updated.
5772 (i386_dr_length_and_rw_bits): Renamed to
5773 i386_length_and_rw_bits and made static.
5774 All uses updated.
5775 (i386_dr_insert_aligned_watchpoint): Renamed to
5776 i386_insert_aligned_watchpoint and made static.
5777 All uses updated.
5778 (i386_dr_remove_aligned_watchpoint): Renamed to
5779 i386_remove_aligned_watchpoint and made static.
5780 All uses updated.
5781 (i386_dr_update_inferior_debug_regs): Renamed to
5782 i386_update_inferior_debug_regs and made static.
5783 All uses updated.
5784 * nat/i386-dregs.h (i386_dr_show): Removed.
5785 (i386_dr_length_and_rw_bits): Likewise.
5786 (i386_dr_insert_aligned_watchpoint): Likewise.
5787 (i386_dr_remove_aligned_watchpoint): Likewise.
5788 (i386_dr_update_inferior_debug_regs): Likewise.
5789
992c7d70
GB
57902014-06-19 Gary Benson <gbenson@redhat.com>
5791
5792 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5793 * configure: Regenerate.
5794 * config.in: Likewise.
5795 * main.c (signal.h): New include.
5796 (setup_alternate_signal_stack): New function.
5797 (captured_main): Call the above.
5798 * cp-support.c (signal.h): New include.
5799 (catch_demangler_crashes): New flag.
5800 (SIGJMP_BUF): New define.
5801 (SIGSETJMP): Likewise.
5802 (SIGLONGJMP): Likewise.
5803 (gdb_demangle_jmp_buf): New static global.
5804 (gdb_demangle_attempt_core_dump): Likewise.
5805 (gdb_demangle_signal_handler): New function.
5806 (gdb_demangle): If catch_demangler_crashes is set, install the
5807 above signal handler before calling bfd_demangle, and restore
5808 the original signal handler afterwards. Display the offending
5809 symbol and call demangler_warning the first time a segmentation
5810 fault is caught.
5811 (_initialize_cp_support): New maint set/show command.
5812
eae7090b
GB
58132014-06-19 Gary Benson <gbenson@redhat.com>
5814
5815 * utils.h (resource_limit_kind): New enum.
5816 (can_dump_core): New declaration.
5817 (warn_cant_dump_core): Likewise.
5818 (dump_core): Likewise.
5819 * utils.c (dump_core): Made nonstatic. Added new
5820 parameter "limit_kind".
5821 (can_dump_core): Made nonstatic. Moved printing code to...
5822 (warn_cant_dump_core): New function.
5823 (can_dump_core_warn): Likewise.
5824 (internal_vproblem): Replace calls to can_dump_core with
5825 calls to can_dump_core_warn. Supply new argument to each.
5826
57fcfb1b
GB
58272014-06-19 Gary Benson <gbenson@redhat.com>
5828
5829 * utils.h (demangler_vwarning): New declaration.
5830 (demangler_warning): Likewise.
5831 * utils.c (struct internal_problem)
5832 <user_settable_should_quit>: New field.
5833 <user_settable_should_dump_core>: Likewise
5834 (internal_error_problem): Add values for above new fields.
5835 (internal_warning_problem): Likewise.
5836 (demangler_warning_problem): New static global.
5837 (demangler_vwarning): New function.
5838 (demangler_warning): Likewise.
5839 (add_internal_problem_command): Selectively add commands.
5840 (_initialize_utils): New internal problem command.
5841 * maint.c (maintenance_demangler_warning): New function.
5842 (_initialize_maint_cmds): New command.
5843
17a40b44
TT
58442014-06-18 Tom Tromey <tromey@redhat.com>
5845
5846 * f-valprint.c (info_common_command_for_block): Update.
5847 * symtab.h (struct general_symbol_info) <common_block>: Now
5848 const.
5849
346d1dfe
TT
58502014-06-18 Tom Tromey <tromey@redhat.com>
5851
5852 * symtab.h (struct symtab) <blockvector>: Now const.
5853 * ada-lang.c (ada_add_global_exceptions): Update.
5854 * buildsym.c (augment_type_symtab): Update.
5855 * dwarf2read.c (dw2_lookup_symbol): Update.
5856 * jit.c (finalize_symtab): Update.
5857 * jv-lang.c (add_class_symtab_symbol): Update.
5858 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5859 Update.
5860 * objfiles.c (objfile_relocate1): Update.
5861 * psymtab.c (lookup_symbol_aux_psymtabs)
5862 (maintenance_check_psymtabs): Update.
5863 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5864 Update.
5865 * spu-tdep.c (spu_catch_start): Update.
5866 * symmisc.c (dump_symtab_1): Update.
5867 * symtab.c (lookup_global_symbol_from_objfile)
5868 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5869 (basic_lookup_transparent_type_quick)
5870 (basic_lookup_transparent_type, find_pc_sect_symtab)
5871 (find_pc_sect_line, search_symbols): Update.
5872 * block.c (find_block_in_blockvector): Make "bl" const.
5873 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5874 const.
5875 (blockvector_contains_pc): Make "bv" const.
5876 (block_for_pc_sect): Update.
5877 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5878 (blockvector_contains_pc): Update.
5879 * breakpoint.c (resolve_sal_pc): Update.
5880 * inline-frame.c (block_starting_point_at): Update.
5881
1834676b
TT
58822014-06-18 Tom Tromey <tromey@redhat.com>
5883
5884 * completer.c (complete_line): Make "line_buffer" const.
5885 * completer.h (complete_line): Update.
5886
ac1a991b
TT
58872014-06-18 Tom Tromey <tromey@redhat.com>
5888
5889 * symtab.c (add_macro_name): Remove unneeded cast.
5890
5bc98e52
TT
58912014-06-18 Tom Tromey <tromey@redhat.com>
5892
5893 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5894 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5895
8236def8
TT
58962014-06-18 Tom Tromey <tromey@redhat.com>
5897
5898 * probe.c (info_probes_for_ops): Make "arg" const.
5899 * probe.h (info_probes_for_ops): Update.
5900
3977b71f
TT
59012014-06-18 Tom Tromey <tromey@redhat.com>
5902
5903 * varobj.c (varobj_create): Update.
5904 * valops.c (value_of_this): Update.
5905 * tracepoint.c (add_local_symbols, scope_info): Update.
5906 * symtab.h (struct general_symbol_info) <block>: Now const.
5907 * symtab.c (skip_prologue_sal)
5908 (default_make_symbol_completion_list_break_on)
5909 (skip_prologue_using_sal): Update.
5910 * stack.h (iterate_over_block_locals)
5911 (iterate_over_block_local_vars): Update.
5912 * stack.c (print_frame_args): Update.
5913 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5914 parameter const.
5915 (get_selected_block): Make return type const.
5916 * python/py-frame.c (frapy_block): Update.
5917 * python/py-block.c (gdbpy_block_for_pc): Update.
5918 * p-exp.y (%union) <bval>: Now const.
5919 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5920 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5921 * m2-exp.y (%union) <bval>: Now const.
5922 * linespec.c (get_current_search_block): Make return type const.
5923 (create_sals_line_offset, find_label_symbols): Update.
5924 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5925 Update.
5926 (block_starting_point_at): Make "block" const.
5927 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5928 (check_exception_resume): Update.
5929 * guile/scm-frame.c (gdbscm_frame_block): Update.
5930 * guile/scm-block.c (gdbscm_lookup_block): Update.
5931 * frame.h (get_frame_block): Update.
5932 (get_selected_block): Make return type const.
5933 * frame.c (frame_id_inner): Update.
5934 * f-valprint.c (info_common_command_for_block)
5935 (info_common_command): Update.
5936 * dwarf2loc.c (dwarf2_find_location_expression)
5937 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5938 (locexpr_describe_location_piece): Update.
5939 * c-exp.y (%union) <bval>: Now const.
5940 * breakpoint.c (resolve_sal_pc): Update.
5941 * blockframe.c (get_frame_block):Make return type const.
5942 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5943 (block_innermost_frame): Update.
5944 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5945 (block_for_pc, block_for_pc_sect): Update.
5946 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5947 'pblock' const.
5948 (block_for_pc_sect, block_for_pc): Make return type const.
5949 * ax-gdb.c (gen_expr): Update.
5950 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5951 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5952 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5953 (ada_read_var_value): Update.
5954 * ada-exp.y (struct name_info) <block>: Now const.
5955 (%union): Likewise.
5956 (block_lookup): Constify.
5957
b9228891
GB
59582014-06-18 Gary Benson <gbenson@redhat.com>
5959
5960 * nat/i386-dregs.h: New file.
5961 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5962 * i386-nat.h (i386-dregs.h): New include.
5963 (DR_FIRSTADDR): Now in i386-dregs.h.
5964 (DR_LASTADDR): Likewise.
5965 (DR_NADDR): Likewise.
5966 (DR_STATUS): Likewise.
5967 (DR_CONTROL): Likewise.
5968 (i386_debug_reg_state): Likewise.
5969 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5970
a1aa2221
LM
59712014-06-18 Don Breazeal <donb@codesourcery.com>
5972
5973 * breakpoint.c (set_longjmp_breakpoint): Call
5974 momentary_breakpoint_from_master with additional argument.
5975 (set_longjmp_breakpoint_for_call_dummy): Call
5976 momentary_breakpoint_from_master with additional argument.
5977 (set_std_terminate_breakpoint): Call
5978 momentary_breakpoint_from_master with additional argument.
5979 (momentary_breakpoint_from_master): Add argument to function
5980 definition and use it to initialize structure member flag.
74228e77 5981 (clone_momentary_breakpoint): Call
a1aa2221
LM
5982 momentary_breakpoint_from_master with additional argument.
5983 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5984 member flags set in momentary_breakpoint_from_master.
5985
4be83cc2
GB
59862014-06-18 Gary Benson <gbenson@redhat.com>
5987
5988 * i386-nat.c (i386_show_dr): Renamed to
5989 i386_dr_show and made nonstatic. All uses updated.
5990 (i386_length_and_rw_bits): Renamed to
5991 i386_dr_length_and_rw_bits and made nonstatic.
5992 All uses updated.
5993 (i386_insert_aligned_watchpoint): Renamed to
5994 i386_dr_insert_aligned_watchpoint and made nonstatic.
5995 All uses updated.
5996 (i386_remove_aligned_watchpoint): Renamed to
5997 i386_dr_remove_aligned_watchpoint and made nonstatic.
5998 All uses updated.
5999 (i386_update_inferior_debug_regs): Renamed to
6000 i386_dr_update_inferior_debug_regs and made nonstatic.
6001 All uses updated.
6002
131aa0d4
GB
60032014-06-18 Gary Benson <gbenson@redhat.com>
6004
6005 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6006 (i386_dr_low_can_set_control): Likewise.
6007 (i386_dr_low_set_addr): Likewise.
6008 (i386_dr_low_set_control): Likewise.
6009 (i386_dr_low_get_addr): Likewise.
6010 (i386_dr_low_get_status): Likewise.
6011 (i386_dr_low_get_control): Likewise.
6012 (i386_insert_aligned_watchpoint): Use new macros.
6013 (i386_update_inferior_debug_regs): Likewise.
6014 (i386_stopped_data_address): Likewise.
6015
d9305f7f
GB
60162014-06-18 Gary Benson <gbenson@redhat.com>
6017
6018 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6019 New parameter. All uses updated.
6020
ea008da4
GB
60212014-06-18 Gary Benson <gbenson@redhat.com>
6022
6023 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6024 All uses updated.
6025
1b6d4134
GB
60262014-06-18 Gary Benson <gbenson@redhat.com>
6027
6028 * i386-nat.c (debug_printf): New macro.
6029 (i386_get_debug_register_length): Likewise.
6030 (TARGET_HAS_DR_LEN_8): Use above macro.
6031 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6032 and printf_unfiltered. Use phex to format values.
6033
9b4550ef
GB
60342014-06-18 Gary Benson <gbenson@redhat.com>
6035
6036 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6037 Make const.
6038
6e62758f
GB
60392014-06-18 Gary Benson <gbenson@redhat.com>
6040
6041 * i386-nat.c: Comment changes.
6042
51c79e94
GB
60432014-06-18 Gary Benson <gbenson@redhat.com>
6044
6045 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6046
3e11889a
GB
60472014-06-18 Gary Benson <gbenson@redhat.com>
6048
6049 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6050 (i386_insert_aligned_watchpoint): Likewise.
6051 (i386_remove_aligned_watchpoint): Likewise.
6052 (i386_handle_nonaligned_watchpoint): Likewise.
6053
fc6e2f03
GB
60542014-06-18 Gary Benson <gbenson@redhat.com>
6055
6056 * i386-nat.c: Whitespace changes.
6057
2afe7d50
SB
60582014-06-17 Samuel Bronson <naesten@gmail.com>
6059
6060 * MAINTAINERS: Update Roland McGrath's email address.
6061 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6062 Red Hat a while ago, and giving me a current address.
2afe7d50 6063
3bca49ee
TT
60642014-06-17 Tom Tromey <tromey@redhat.com>
6065
6066 * utils.h (savestring): Remove declaration.
6067
6e366df1
TT
60682014-06-17 Tom Tromey <tromey@redhat.com>
6069
6070 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6071
6be47f0c
KS
60722014-06-16 Keith Seitz <keiths@redhat.com>
6073
6074 PR mi/15863
6075 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6076 to update the varobj if inferior_ptid is null_ptid.
6077
7bc112c1
TT
60782014-06-16 Tom Tromey <tromey@redhat.com>
6079
6080 * target.h (struct target_ops) <to_info_proc>: Make parameter
6081 const.
6082 (target_info_proc): Update.
6083 * target.c (target_info_proc): Make "args" const.
6084 * procfs.c (procfs_info_proc): Update.
6085 * linux-tdep.c (linux_info_proc): Update.
6086 (linux_core_info_proc_mappings): Make "args" const.
6087 (linux_core_info_proc): Update.
6088 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6089 * gdbarch.c: Rebuild.
6090 * gdbarch.h: Rebuild.
6091 * corelow.c (core_info_proc): Update.
6092
fee354ee
TT
60932014-06-16 Tom Tromey <tromey@redhat.com>
6094
6095 * target.h (struct target_ops) <to_disconnect>: Make parameter
6096 const.
6097 (target_disconnect): Update.
6098 * target.c (target_disconnect): Make "args" const.
6099 * target-delegates.c: Rebuild.
6100 * remote.c (remote_disconnect): Update.
6101 * record.h (record_disconnect): Update.
6102 * record.c (record_disconnect): Update.
6103 * inf-child.c (inf_child_disconnect): Update.
6104
a30bf1f1
TT
61052014-06-16 Tom Tromey <tromey@redhat.com>
6106
6107 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6108 * target.c (debug_to_rcmd, default_rcmd): Update.
6109 * target-delegates.c: Rebuild.
6110 * remote.c (remote_rcmd): Update.
6111 * monitor.c (monitor_rcmd): Update.
6112
d03de421
PA
61132014-06-16 Pedro Alves <palves@redhat.com>
6114
6115 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6116 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6117 have OBJF_SHARED set.
6118 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6119 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6120 instead of OBJF_USERLOADED.
6121 * objfiles.h (OBJF_SHARED): Update comment.
6122 (userloaded_objfile_contains_address_p): Rename to ...
6123 (shared_objfile_contains_address_p): ... this, and update
6124 comments.
6125 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6126 new objfile.
6127 (remove_symbol_file_command): Skip objfiles that don't have
6128 OBJF_SHARED set.
6129
99f4262f
TT
61302014-06-16 Tom Tromey <tromey@redhat.com>
6131
6132 * minsyms.h (prim_record_minimal_symbol)
6133 (prim_record_minimal_symbol_and_info): Update comments.
6134
97d66cc6
EZ
61352014-06-14 Eli Zaretskii <eliz@gnu.org>
6136
6137 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6138 or --without-guile, according to how GDB was built.
6139
635c7e8a
TT
61402014-06-13 Tom Tromey <tromey@redhat.com>
6141
6142 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6143 to help_list.
6144 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6145 to help_list.
6146 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6147 help_list.
6148 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6149 help_list.Pass all_commands, not -1, to help_list.
6150 * cli/cli-dump.c (dump_command, append_command)
6151 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6152 (binary_dump_command, binary_append_command): Pass all_commands,
6153 not -1, to help_list.
6154 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6155 -1, to help_list.
6156 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6157 -1, to help_list.
6158 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6159 help_list.
6160 * top.c (set_history): Pass all_commands, not -1, to help_list.
6161 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6162 all_commands, not -1, to help_list.
6163 * symfile.c (overlay_command): Pass all_commands, not -1, to
6164 help_list.
6165 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6166 help_list.
6167 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6168 help_list.
6169 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6170 -1, to help_list.
6171 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6172 not -1, to help_list.
6173 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6174 not -1, to help_list.
6175 * maint.c (maintenance_command, maintenance_info_command)
6176 (maintenance_print_command, maintenance_set_cmd): Pass
6177 all_commands, not -1, to help_list.
6178 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6179 help_list.
6180 * language.c (set_check): Pass all_commands, not -1, to help_list.
6181 * infcmd.c (unset_command): Pass all_commands, not -1, to
6182 help_list.
6183 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6184 help_list.
6185 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6186 help_list.
6187 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6188 help_list.
6189 * breakpoint.c (save_command): Pass all_commands, not -1, to
6190 help_list.
6191 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6192 all_commands, not -1, to help_list.
6193
b94ade42
PL
61942014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6195
6196 * regcache.c (struct register_to_invalidate): New structure.
6197 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6198 functions.
6199 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6200
31f628ae
YQ
62012014-06-12 Yao Qi <yao@codesourcery.com>
6202
6203 * varobj.c (varobj_get_num_children): Call
6204 varobj_is_dynamic_p.
6205 (varobj_list_children): Likewise.
6206 (varobj_update): Likewise. Update comments.
6207
cde5ef40
YQ
62082014-06-12 Yao Qi <yao@codesourcery.com>
6209
6210 * varobj.c (varobj_pretty_printed_p): Rename to ...
6211 (varobj_is_dynamic_p): ... this. New function.
6212 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6213 (varobj_is_dynamic_p): Declare.
6214 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6215 (mi_print_value_p, varobj_update_one): Likewise.
6216
576ea091
YQ
62172014-06-12 Pedro Alves <pedro@codesourcery.com>
6218 Yao Qi <yao@codesourcery.com>
6219
6220 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6221 (varobj_get_iterator): Wrap up code for pretty-printer by
6222 "#if HAVE_PYTHON" and "#endif".
6223 (update_dynamic_varobj_children): Likewise.
6224
827f100c
YQ
62252014-06-12 Pedro Alves <pedro@codesourcery.com>
6226 Yao Qi <yao@codesourcery.com>
6227
6228 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6229 gdb_python_initialized is false. Move some code from varobj.c.
6230 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6231 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6232 (struct varobj_item): Moved to varobj-iter.h".
6233 (varobj_clear_saved_item): New function.
6234 (update_dynamic_varobj_children): Move python-related code to
6235 py-varobj.c.
6236 (free_variable): Call varobj_clear_saved_item and
6237 varobj_iter_delete.
6238
e5250216
YQ
62392014-06-12 Pedro Alves <pedro@codesourcery.com>
6240 Yao Qi <yao@codesourcery.com>
6241
6242 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6243 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6244 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6245 (py-varobj.o): New rule.
6246 * python/py-varobj.c: New file.
6247 * python/python-internal.h (py_varobj_get_iterator): Declare.
6248 * varobj-iter.h: New file.
6249 * varobj.c: Include "varobj-iter.h"
6250 (struct varobj) <child_iter>: Change its type from "PyObject *"
6251 to "struct varobj_iter *".
6252 <saved_item>: Likewise.
6253 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6254 [HAVE_PYTHON] (varobj_get_iterator): New function.
6255 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6256 python-specific code to python/py-varobj.c.
6257 (install_visualizer): Call varobj_iter_delete instead of
6258 Py_XDECREF.
6259 * varobj.h (varobj_ensure_python_env): Declare.
6260
5a2e0d6e
YQ
62612014-06-12 Yao Qi <yao@codesourcery.com>
6262
6263 * varobj.c (struct varobj_item): New structure.
6264 (create_child_with_value): Update declaration.
6265 (varobj_add_child): Replace arguments 'name' and 'value' with
6266 'item'. All callers updated.
6267 (install_dynamic_child): Likewise.
6268 (update_dynamic_varobj_children): Likewise.
6269 (varobj_add_child): Likewise.
6270 (create_child_with_value): Likewise.
6271
919b9a93
JB
62722014-06-11 Joel Brobecker <brobecker@adacore.com>
6273
6274 * NEWS: Create a new section for the next release branch.
6275 Rename the section of the current branch, now that it has
6276 been cut.
6277
71a55bdf
JB
62782014-06-11 Joel Brobecker <brobecker@adacore.com>
6279
6280 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6281 * version.in: Bump version to 7.8.50.DATE-cvs.
6282
364fe1f7
PA
62832014-06-11 Pedro Alves <palves@redhat.com>
6284
6285 PR remote/17028
6286 * ser-mingw.c (net_windows_socket_check_pending): New function.
6287 (net_windows_select_thread): Ignore spurious wakeups. Use
6288 net_windows_socket_check_pending.
6289 (net_windows_wait_handle): Check for pending events with
6290 ioctlsocket, through net_windows_socket_check_pending, instead of
6291 checking the socket's event.
6292
5a6c7709
SC
62932014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6294
6295 * python/python-internal.h (gdb_PyObject_GetAttrString)
6296 (gdb_PyObject_HasAttrString): New inline function definitions.
6297 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6298 char * of the second argument to PyObject_GetAttrString.
74228e77 6299
0e58ee40
JB
63002014-06-10 Joel Brobecker <brobecker@adacore.com>
6301
6302 * serial.c (serial_write): Fix index of character to be printed
6303 in call to serial_logchar when serial debug traces are enabled.
6304
d190df30
JB
63052014-06-10 Joel Brobecker <brobecker@adacore.com>
6306
6307 * gdbtypes (resolve_dynamic_range): Add function description.
6308
b4b01d36
PA
63092014-06-09 Pedro Alves <palves@redhat.com>
6310
6311 * linux-nat.c (linux_child_follow_fork): Initialize status with
6312 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6313 inner block. Only pass the signal to PTRACE_DETACH if in pass
6314 state.
6315
3657956b
GB
63162014-06-09 Gary Benson <gbenson@redhat.com>
6317
6318 * common/signals.c (gdb_signal_from_host): Reorder to separate
6319 the always-available ANSI-standard signals from the signals that
6320 require checking.
6321 (do_gdb_signal_to_host): Likewise.
6322 * proc-events.c (signal_table): Likewise.
6323
c077881a
HZ
63242014-06-08 Hui Zhu <hui@codesourcery.com>
6325
6326 * common/linux-ptrace.c (linux_disable_event_reporting): New
6327 function.
6328 * common/linux-ptrace.h (linux_disable_event_reporting): New
6329 declaration.
6330 * linux-nat.c (linux_child_follow_fork): Do a single step before
6331 detach.
6332
4186eb54
KS
63332014-06-07 Keith Seitz <keiths@redhat.com>
6334
6335 Revert:
6336 PR c++/16253
6337 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6338 from symbol_matches_domain in symtab.c. All local callers
6339 of symbol_matches_domain updated.
6340 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6341 search STRUCT_DOMAIN.
6342 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6343 independently. standard_lookup will do that automatically.
6344 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6345 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6346 (cp_lookup_symbol_in_namespace): Likewise.
6347 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6348 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6349 may return a STRUCT_DOMAIN match.
6350 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6351 * cp-support.c: Include language.h.
6352 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6353 VAR_DOMAIN.
6354 * psymtab.c (match_partial_symbol): Compare the requested
6355 domain with the symbol's domain directly.
6356 (lookup_partial_symbol): Likewise.
6357 * symtab.c (lookup_symbol_in_language): Explain when/why
6358 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6359 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6360 appropriate languages.
6361 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6362 and moved to ada-lang.c
6363 (lookup_block_symbol): Explain that this function only returns
6364 symbol matching the requested DOMAIN.
6365 Compare the requested domain with the symbol's domain directly.
6366 (iterate_over_symbols): Compare the requested domain with the
6367 symbol's domain directly.
6368 * symtab.h (symbol_matches_domain): Remove.
6369
25326a28 63702014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6371
6372 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6373 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6374 (gdbscm_guile_version_is_at_least): Declare.
6375 (gdbscm_scm_string_to_int): Declare.
6376 * guile/guile.c (gdbscm_guile_major_version): New global.
6377 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6378 (guile_datadir): New static global.
6379 (gdbscm_guile_data_directory): New function.
6380 (initialize_scheme_side): Update.
6381 (misc_guile_functions): Add guile-data-directory.
6382 (initialize_gdb_module): Fetch guile version number.
6383 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6384 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6385 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6386 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6387 comments.
6388 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6389 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6390 * guile/scm-value.c (gdbscm_value_to_string): Only call
6391 scm_port_conversion_strategy if Guile version >= 2.0.6.
6392
0a770bb2 63932014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6394
6395 * main.c (print_gdb_help): Add -q and --silent.
6396
73ba372c
GB
63972014-06-06 Gary Benson <gbenson@redhat.com>
6398
6399 * common/signals.c: Remove preprocessor conditionals for
6400 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6401 SIGSEGV and SIGTERM.
6402 * proc-events.c: Likewise.
6403
c33b2f12
MM
64042014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6405
6406 * symfile.c (symfile_free_objfile): Remove restriction to
6407 OBJF_USERLOADED.
6408 * symfile-mem.c (symbol_file_add_from_memory): Call
6409 add_target_sections_of_objfile.
6410
fb934770
LC
64112014-06-05 Ludovic Courtès <ludo@gnu.org>
6412
6413 * guile/scm-value.c (gdbscm_history_append_x): Use
6414 'vlscm_get_value_smob_arg_unsafe' instead of
6415 'vlscm_scm_to_value'.
6416
6ef284bd
SM
64172014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6418
6419 PR mi/15806
6420 * utils.c (printchar): Don't escape at all if quoter is NUL.
6421 Update function documentation to clarify effect of parameter
6422 QUOTER.
6423 * remote.c (escape_buffer): Pass '\\' as the quoter to
6424 fputstrn_unfiltered.
6425 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6426 generate the output.
6427 (mi_solib_unloaded): Same.
6428
270c9937
JB
64292014-06-05 Joel Brobecker <brobecker@adacore.com>
6430
6431 * development.sh: Delete.
6432 * Makefile.in (config.status): Adjust dependency on development.sh.
6433 * configure.ac: Adjust development.sh source call.
6434 * configure: Regenerate.
6435
16f691fb
DE
64362014-06-04 Doug Evans <xdje42@gmail.com>
6437
6438 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6439 is_scheme_bkpt, spec.
6440 (bpscm_make_breakpoint_smob): Initialize new members.
6441 (gdbscm_create_breakpoint_x): Split into two ...
6442 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6443 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6444 (scheme_function breakpoint_functions): Update.
6445 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6446 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6447 register-breakpoint!.
6448
ef7cab6b
JB
64492014-06-04 Joel Brobecker <brobecker@adacorer.com>
6450
6451 PR server/17023
6452 * mem-break.c (z_type_supported): Return zero if
6453 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6454
012370f6
TT
64552014-06-04 Tom Tromey <tromey@redhat.com>
6456
6457 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6458 value_from_contents_and_address_unresolved.
6459 (ada_template_to_fixed_record_type_1): Likewise.
6460 (ada_which_variant_applies): Likewise.
6461 * value.h (value_from_contents_and_address_unresolved): Declare.
6462 * value.c (value_from_contents_and_address_unresolved): New
6463 function.
6464 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6465 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6466 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6467
92e2a17f
TT
64682014-06-04 Tom Tromey <tromey@redhat.com>
6469
6470 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6471
c0939df1
TT
64722014-06-04 Tom Tromey <tromey@redhat.com>
6473
6474 * procfs.c (procfs_attach): Make "args" const.
6475 * windows-nat.c (windows_attach): Make "args" const.
6476 * nto-procfs.c (procfs_attach): Make "args" const.
6477 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6478 * go32-nat.c (go32_attach): Make "args" const.
6479 * gnu-nat.c (gnu_attach): Make "args" const.
6480 * darwin-nat.c (darwin_attach): Make "args" const.
6481 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6482 * linux-nat.c (linux_nat_attach): Make "args" const.
6483 * remote.c (extended_remote_attach_1, extended_remote_attach):
6484 Make "args" const.
6485 * target.h (struct target_ops) <to_attach>: Make "args" const.
6486 (find_default_attach): Likewise.
6487 * utils.c (parse_pid_to_attach): Make "args" const.
6488 * utils.h (parse_pid_to_attach): Update.
6489
8eaff7cd
TT
64902014-06-04 Tom Tromey <tromey@redhat.com>
6491
6492 * target-delegates.c: Rebuild.
6493 * target.c (default_thread_address_space): New function.
6494 (target_thread_address_space): Simplify.
6495 * target.h (struct target_ops) <to_thread_address_space>: Add
6496 TARGET_DEFAULT_FUNC.
6497
1913f160
DE
64982014-06-04 Doug Evans <xdje42@gmail.com>
6499
6500 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6501
70ad5bff
MM
65022014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6503
6504 * record-btrace.c: Include event-loop.h and inf-loop.h.
6505 (record_btrace_resume_exec_dir)
6506 (record_btrace_async_inferior_event_handler)
6507 (record_btrace_handle_async_inferior_event): New.
6508 (record_btrace_open): Create async event handler.
6509 (record_btrace_close): Delete async event handler.
6510 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6511 Mark async event handler.
6512 (record_btrace_execution_direction): New.
6513 (init_record_btrace_ops): Initialize to_execution_direction.
6514
b6210538
DE
65152014-06-03 Doug Evans <xdje42@gmail.com>
6516
6517 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6518 (gdbscm_make_parameter): Ditto.
6519
a5b1fd27
DE
65202014-06-03 Doug Evans <dje@google.com>
6521
6522 * exec.c (exec_close_1): Call clear_section_table instead of
6523 resize_section_table.
6524 (clear_section_table): New function.
6525 (resize_section_table): Make static. Rename arg num_added to
6526 adjustment.
6527 * exec.h (clear_section_table): Declare.
6528 (resize_section_table): Delete.
6529 * progspace.c (release_program_space): Call clear_section_table
6530 instead of resize_section_table.
6531
0c6e92a5
SC
65322014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6533
6534 * NEWS (Python Scripting): Add entry about the new xmethods
6535 feature.
6536
883964a7
SC
65372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6538
6539 * python/py-xmethods.c: New file.
6540 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6541 (objfpy_dealloc): XDECREF on the new xmethods field.
6542 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6543 field.
6544 (objfpy_get_xmethods): New function.
6545 (objfile_getset): New entry 'xmethods'.
6546 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6547 (pspy_dealloc): XDECREF on the new xmethods field.
6548 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6549 field.
6550 (pspy_get_xmethods): New function.
6551 (pspace_getset): New entry 'xmethods'.
6552 * python/python-internal.h: Add declarations for new functions.
6553 * python/python.c (_initialize_python): Invoke
6554 gdbpy_initialize_xmethods.
6555 * python/lib/gdb/__init__.py (xmethods): New
6556 attribute.
6557 * python/lib/gdb/xmethod.py: New file.
6558 * python/lib/gdb/command/xmethods.py: New file.
6559
58992dc5
SC
65602014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6561
6562 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6563 best match method returned by find_overload_match is an xmethod.
6564 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6565 the best matching operator returned by find_overload_match is an
6566 xmethod.
6567 * valops.c: #include "extension.h".
6568 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6569 Return void. The list of matching source methods is returned in
6570 "fn_list" and a vector of matching debug method workers is
6571 returned in "xm_worker_vec". Update all callers.
6572 (value_find_oload_method_list): Likewise.
6573 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6574 non-NULL, then the index of the best matching method in this
6575 vector is returned. Update all callers.
6576 (find_overload_match): Include xmethods while performing overload
6577 resolution.
6578
e81e7f5e
SC
65792014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6580
6581 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6582 * extension-priv.h (struct extension_language_ops): Add the
6583 xmethod interface.
6584 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6585 get_matching_xmethod_workers, get_xmethod_argtypes,
6586 invoke_xmethod, free_xmethod_worker,
6587 free_xmethod_worker_vec): New functions.
6588 * extension.h: #include "common/vec.h".
6589 New function declarations.
6590 (struct xmethod_worker): New struct.
6591 (VEC (xmethod_worker_ptr)): New vector type.
6592 (xmethod_worker_ptr): New typedef.
6593 (xmethod_worker_vec): Likewise.
6594 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6595 builtin_type.
6596 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6597 (struct builtin_type): New field "xmethod".
6598 * valarith.c (value_ptradd): Assert that the value argument is not
6599 lval_xcallable.
6600 * valops.c (value_must_coerce_to_target): Return 0 for
6601 lval_xcallable values.
6602 * value.c (struct value): New field XM_WORKER in the field
6603 LOCATION.
6604 (value_address, value_raw_address): Return 0 for lval_xcallable
6605 values.
6606 (set_value_address): Assert that the value is not an
6607 lval_xcallable.
6608 (value_free): Free the associated xmethod worker when freeing
6609 lval_xcallable values.
6610 (set_value_component_location): Assert that the WHOLE value is not
6611 lval_xcallable.
6612 (value_of_xmethod, call_xmethod): New functions.
6613 * value.h: Declare "struct xmethod_worker".
6614 Declare new functions value_of_xmethod, call_xmethod.
6615
ef370185
JB
66162014-06-03 Joel Brobecker <brobecker@adacore.com>
6617 Pedro Alves <palves@redhat.com>
6618
6619 PR breakpoints/17000
6620 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6621 New function, extracted from software_breakpoint_inserted_here_p.
6622 (software_breakpoint_inserted_here_p): Replace factored out code
6623 by call to find_non_raw_software_breakpoint_inserted_here.
6624 (bp_target_info_copy_insertion_state): New function.
6625 (bkpt_insert_location): Handle the case of a single-step
6626 breakpoint already inserted at the same address.
6627 (bkpt_remove_location): Handle the case of a single-step
6628 breakpoint still inserted at the same address.
6629 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6630 breakpoint already inserted at the same address.
6631 (deprecated_remove_raw_breakpoint): Handle the case of a
6632 non-raw breakpoint still inserted at the same address.
6633 (find_single_step_breakpoint): New function, extracted from
6634 single_step_breakpoint_inserted_here_p.
6635 (find_single_step_breakpoint): New function,
6636 factored out from single_step_breakpoint_inserted_here_p.
6637 (single_step_breakpoint_inserted_here_p): Reimplement.
6638
1e2ccb61
BM
66392014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6640
6641 Pushed by Joel Brobecker <brobecker@adacore.com>
6642 * source.c (show_substitute_path_command): Fix display of matching
6643 substitution rules.
6644
d3448d85
GB
66452014-06-03 Gary Benson <gbenson@redhat.com>
6646
6647 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6648
06eb1586
DE
66492014-06-02 Doug Evans <xdje42@gmail.com>
6650
6651 Add parameter support for Guile.
6652 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6653 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6654 (scm-param.o): New rule.
6655 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6656 (gdbscm_misc_error): Declare.
6657 (gdbscm_canonicalize_command_name): Declare.
6658 (gdbscm_scm_to_host_string): Declare.
6659 (gdbscm_scm_from_host_string): Declare.
6660 (gdbscm_initialize_parameters): Declare.
6661 * guile/guile.c (initialize_gdb_module): Call
6662 gdbscm_initialize_parameters.
6663 * guile/lib/gdb.scm: Export parameter symbols.
6664 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6665 cmdscm_canonicalize_name and made public. All callers updated.
6666 * guile/scm-exception.c (gdbscm_misc_error): New function.
6667 * guile/scm-param.c: New file.
6668 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6669 (gdbscm_scm_to_host_string): New function.
6670 (gdbscm_scm_from_host_string): New function.
6671 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6672
e698b8c4
DE
66732014-06-02 Doug Evans <xdje42@gmail.com>
6674
6675 Add command support for Guile.
6676 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6677 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6678 (scm-cmd.o): New rule.
6679 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6680 (gdbscm_user_error_p): Declare.
6681 (gdbscm_parse_command_name): Declare.
6682 (gdbscm_valid_command_class_p): Declare.
6683 (gdbscm_initialize_commands): Declare.
6684 * guile/guile.c (initialize_gdb_module): Call
6685 gdbscm_initialize_commands.
6686 * guile/lib/gdb.scm: Export command symbols.
6687 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6688 (throw-user-error): New function.
6689 * guile/scm-cmd.c: New file.
6690 * guile/scm-exception.c (user_error_symbol): New static global.
6691 (gdbscm_user_error_p): New function.
6692 (gdbscm_initialize_exceptions): Set user_error_symbol.
6693 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6694
fb1f94b0
PM
66952014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6696
6697 * top.c (command_loop): Handle comments here...
6698 (command_line_input): ... not here.
6699
ded03782
DE
67002014-06-02 Doug Evans <xdje42@gmail.com>
6701
6702 Add progspace support for Guile.
6703 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6704 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6705 (scm-progspace.o): New rule.
6706 * guile/guile-internal.h (pspace_smob): New typedef.
6707 (psscm_pspace_smob_pretty_printers): Declare.
6708 (psscm_pspace_smob_from_pspace): Declare.
6709 (psscm_scm_from_pspace): Declare.
6710 * guile/guile.c (initialize_gdb_module): Call
6711 gdbscm_initialize_pspaces.
6712 * guile/lib/gdb.scm: Export progspace symbols.
6713 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6714 support.
6715 (append-pretty-printer!): Ditto.
6716 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6717 Implement.
6718 * guile/scm-progspace.c: New file.
6719
397998fc
AM
67202014-06-03 Alan Modra <amodra@gmail.com>
6721
6722 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6723 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6724
6aa5f3a6
DE
67252014-06-02 Doug Evans <dje@google.com>
6726
6727 Add support for skeletonless type units.
6728 * dwarf2read.c (struct dwarf2_per_objfile): New member
6729 n_allocated_type_units.
6730 (struct dwarf2_per_objfile) <tu_stats>: New member
6731 nr_all_type_units_reallocs.
6732 (create_signatured_type_table_from_index): Initialize
6733 n_allocated_type_units
6734 (create_all_type_units): Ditto.
6735 (add_type_unit): Move up in file. New arg slot.
6736 All callers updated. Increase space for all_type_units more
6737 efficiently.
6738 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6739 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6740 (lookup_dwp_signatured_type): Ditto.
6741 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6742 All callers updated.
6743 (build_type_psymtabs_1): Leave type_unit_groups as
6744 NULL if no TUs present.
6745 (print_tu_stats): New function.
6746 (process_skeletonless_type_unit): New function.
6747 (process_dwo_file_for_skeletonless_type_units): New
6748 function.
6749 (process_skeletonless_type_units): New function.
6750 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6751 Call print tu_stats if debugging enabled.
6752
41fac0cf
PA
67532014-06-02 Pedro Alves <palves@redhat.com>
6754
6755 * breakpoint.c (build_target_command_list): Don't build a command
6756 list if we have any duplicate location that isn't a dprintf.
6757
cd1608cc
PA
67582014-06-02 Pedro Alves <palves@redhat.com>
6759
6760 * breakpoint.c (dprintf_breakpoint_hit): New function.
6761 (initialize_breakpoint_ops): Install it as dprintf's
6762 breakpoint_hit method.
6763
486ef3b9
JB
67642014-06-02 Joel Brobecker <brobecker@adacore.com>
6765
6766 * source.c (substitute_path_rule_matches): Simplify using
6767 filename_ncmp instead of FILENAME_CMP.
6768
230cd560
JB
67692014-06-02 Joel Brobecker <brobecker@adacore.com>
6770
6771 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6772
16954d5d
LC
67732014-06-01 Ludovic Courtès <ludo@gnu.org>
6774
6775 * configure.ac: When Guile is available, check for the
6776 availability of 'scm_new_smob'.
6777 * configure, config.h.in: Regenerate.
6778 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6779 function.
6780
53e8a631
AB
67812014-05-30 Andrew Burgess <aburgess@broadcom.com>
6782
6783 * frame.c (struct frame_info): Add stop_string field.
6784 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6785 (get_prev_frame_always): Old content moved into
6786 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6787 TRY_CATCH, handle MEMORY_ERROR exceptions.
6788 (frame_stop_reason_string): New function definition.
6789 * frame.h (unwind_stop_reason_to_string): Extend comment to
6790 mention frame_stop_reason_string.
6791 (frame_stop_reason_string): New function declaration.
6792 * stack.c (frame_info): Switch to frame_stop_reason_string.
6793 (backtrace_command_1): Switch to frame_stop_reason_string.
6794 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6795 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6796 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6797
70e38b8e
AB
67982014-05-30 Andrew Burgess <aburgess@broadcom.com>
6799
6800 * frame.c (frame_stop_reason_string): Rename to ...
6801 (unwind_stop_reason_to_string): this.
6802 * frame.h (frame_stop_reason_string): Rename to ...
6803 (unwind_stop_reason_to_string): this.
6804 * stack.c (frame_info): Update call to frame_stop_reason_string.
6805 (backtrace_command_1): Likewise.
6806 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6807 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6808
938f0e2f
AB
68092014-05-30 Andrew Burgess <aburgess@broadcom.com>
6810
6811 * frame.c (remove_prev_frame): New function.
6812 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6813 remove_prev_frame.
6814
a09dd441
PA
68152014-05-29 Pedro Alves <palves@redhat.com>
6816
6817 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6818 and make it const. When a single-step decays to a continue,
6819 clear 'step', not 'hw_step'. Pass whether the caller wanted
6820 to step to user_visible_resume_ptid, not what we ask the
6821 target to do.
6822
bdc36728
PA
68232014-05-29 Pedro Alves <palves@redhat.com>
6824
6825 * infrun.c (process_event_stop_test, handle_step_into_function)
6826 (handle_step_into_function_backward): Adjust.
6827 Don't set the even thread's stop_step and call stop_waiting before
6828 calling end_stepping_range. Instead do that ...
6829 (end_stepping_range): ... here. Take an ecs pointer parameter.
6830
22bcd14b
PA
68312014-05-29 Pedro Alves <palves@redhat.com>
6832
6833 * infrun.c (stop_stepping): Rename to ...
6834 (stop_waiting): ... this.
6835 (proceed): Update comment.
6836 (process_event_stop_test, handle_inferior_event)
6837 (handle_signal_stop, handle_step_into_function)
6838 (handle_step_into_function_backward): Update.
6839
4ae57c05
PA
68402014-05-29 Pedro Alves <palves@redhat.com>
6841
6842 * infcall.c (run_inferior_call): Don't check whether the current
6843 thread is running after the proceed call.
6844
329ea579
PA
68452014-05-29 Pedro Alves <palves@redhat.com>
6846 Tom Tromey <tromey@redhat.com>
6847
6848 * NEWS: Mention "maint set target-async", "set mi-async", and that
6849 background execution commands are now always available.
6850 * target.h (target_async_permitted): Update comment.
6851 * target.c (target_async_permitted, target_async_permitted_1):
6852 Default to 1.
6853 (set_target_async_command): Rename to ...
6854 (maint_set_target_async_command): ... this.
6855 (show_target_async_command): Rename to ...
6856 (maint_show_target_async_command): ... this.
6857 (_initialize_target): Adjust.
6858 * infcmd.c (prepare_execution_command): Make extern.
6859 * inferior.h (prepare_execution_command): Declare.
6860 * infrun.c (set_observer_mode): Leave target async alone.
6861 * mi/mi-interp.c (mi_interpreter_init): Install
6862 mi_on_sync_execution_done as sync_execution_done observer.
6863 (mi_on_sync_execution_done): New function.
6864 (mi_execute_command_input_handler): Don't print the prompt if we
6865 just started a synchronous command with an async target.
6866 (mi_on_resume): Check sync_execution before printing prompt.
6867 * mi/mi-main.h (mi_async_p): Declare.
6868 * mi/mi-main.c: Include gdbcmd.h.
6869 (mi_async_p): New function.
6870 (mi_async, mi_async_1): New globals.
6871 (set_mi_async_command, show_mi_async_command, mi_async): New
6872 functions.
6873 (exec_continue): Call prepare_execution_command.
6874 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6875 (mi_execute_async_cli_command): Use mi_async_p.
6876 (_initialize_mi_main): Install "set mi-async". Make
6877 "target-async" a deprecated alias.
6878
92bcb5f9
PA
68792014-05-29 Pedro Alves <palves@redhat.com>
6880
6881 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6882 (_initialize_cli_interp): Adjust.
6883 * event-loop.c: Include "observer.h".
6884 (start_event_loop): Notify 'command_error' observers instead of
6885 calling display_gdb_prompt. Remove FIXME comment.
6886 * event-top.c (display_gdb_prompt): Remove call into the
6887 interpreters.
6888 * inf-loop.c: Include "observer.h".
6889 (inferior_event_handler): Notify 'command_error' observers instead
6890 of calling display_gdb_prompt.
6891 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6892 observers instead of calling display_gdb_prompt.
6893 * interps.c (interp_set): Don't call display_gdb_prompt.
6894 (current_interp_display_prompt_p): Delete.
6895 * interps.h (interp_prompt_p): Delete declaration.
6896 (interp_prompt_p_ftype): Delete.
6897 (struct interp_procs) <prompt_proc_p>: Delete field.
6898 (current_interp_display_prompt_p): Delete declaration.
6899 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6900 (_initialize_mi_interp): Adjust.
6901 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6902 'command_error' observers.
6903 (tui_on_sync_execution_done, tui_on_command_error): New
6904 functions.
6905 (tui_display_prompt_p): Delete.
6906 (_initialize_tui_interp): Adjust.
6907
fd664c91
PA
69082014-05-29 Pedro Alves <palves@redhat.com>
6909
6910 PR gdb/13860
6911 * cli/cli-interp.c: Include infrun.h and observer.h.
6912 (cli_uiout, cli_interp): New globals.
6913 (cli_on_signal_received, cli_on_end_stepping_range)
6914 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6915 functions.
6916 (cli_interpreter_init): Install them as 'end_stepping_range',
6917 'signal_received' 'signal_exited', 'exited' and 'no_history'
6918 observers.
6919 (_initialize_cli_interp): Remove cli_interp local.
6920 * infrun.c (handle_inferior_event): Call the several stop reason
6921 observers instead of printing the stop reason directly.
6922 (end_stepping_range): New function.
6923 (print_end_stepping_range_reason, print_signal_exited_reason)
6924 (print_exited_reason, print_signal_received_reason)
6925 (print_no_history_reason): Make static, and add an uiout
6926 parameter. Print to that instead of to CURRENT_UIOUT.
6927 * infrun.h (print_end_stepping_range_reason)
6928 (print_signal_exited_reason, print_exited_reason)
6929 (print_signal_received_reason print_no_history_reason): New
6930 declarations.
6931 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6932 'mi_uiout'.
6933 <cli_uiout>: New field.
6934 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6935 uiout for CLI output. Install 'signal_received',
6936 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6937 observers.
6938 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6939 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6940 (mi_on_no_history): New functions.
6941 (ui_out_free_cleanup): Delete function.
6942 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6943 instead use the one already stored in the MI interpreter data.
6944 (mi_ui_out): Adjust.
6945 * tui/tui-interp.c: Include infrun.h and observer.h.
6946 (tui_interp): New global.
6947 (tui_on_signal_received, tui_on_end_stepping_range)
6948 (tui_on_signal_exited, tui_on_exited)
6949 (tui_on_no_history): New functions.
6950 (tui_init): Install them as 'end_stepping_range',
6951 'signal_received' 'signal_exited', 'exited' and 'no_history'
6952 observers.
6953 (_initialize_tui_interp): Delete tui_interp local.
6954
8817a6f2
PA
69552014-05-29 Pedro Alves <palves@redhat.com>
6956
6957 PR gdb/15713
6958 * linux-nat.c (linux_nat_resume_callback): Rename the second
6959 parameter to 'except'. Skip LP if it points to EXCEPT.
6960 (linux_nat_resume): Don't mark the event lwp as not stopped
6961 before resuming sibling lwps. Instead ask
6962 linux_nat_resume_callback to skip the event lwp. Mark it as not
6963 stopped after actually resuming it.
6964 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6965 resuming it.
6966 (wait_lwp): Mark the lwp as stopped here.
6967 (stop_wait_callback): Mark the lwp as not stopped right after
6968 resuming it. Don't mark lwps as stopped here.
6969 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6970 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6971
251bde03
PA
69722014-05-29 Pedro Alves <palves@redhat.com>
6973
6974 PR PR15693
6975 * infrun.c (resume): Determine how much to resume depending on
6976 whether the caller wanted a step, not whether we can hardware step
6977 the target. Mark all threads that we intend to run as running,
6978 unless we're calling an inferior function.
6979 (normal_stop): If the thread is running an infcall, don't finish
6980 thread state.
6981 * target.c (target_resume): Don't mark threads as running here.
6982
7f3c0343
JB
69832014-05-28 Joel Brobecker <brobecker@adacore.com>
6984
6985 * serial.c (_initialize_serial): Remove support for
6986 the "set remotebaud" and "show remotebaud" commands.
6987 * NEWS: Add entry documenting the removal of that command.
6988
ee34b3f9
YQ
69892014-05-28 Yao Qi <yao@codesourcery.com>
6990
6991 * charset.c: Fix typo in comments.
6992
add6c04d
GB
69932014-05-27 Gary Benson <gbenson@redhat.com>
6994
6995 * utils.c (internal_vproblem): Prompt for a bug report.
6996
92c48fc5
AW
69972014-05-26 Andy Wingo <wingo@igalia.com>
6998
6999 * guile/scm-arch.c (arscm_mark_arch_smob):
7000 * guile/scm-block.c (bkscm_mark_block_smob)
7001 (bkscm_mark_block_syms_progress_smob):
7002 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7003 * guile/scm-exception.c (exscm_mark_exception_smob):
7004 * guile/scm-frame.c (frscm_mark_frame_smob):
7005 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7006 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7007 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7008 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7009 (ppscm_mark_pretty_printer_worker_smob):
7010 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7011 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7012 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7013 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7014 mark functions.
7015 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7016 function.
7017
b2715b27
AW
70182014-05-26 Andy Wingo <wingo@igalia.com>
7019 Doug Evans <xdje42@gmail.com>
7020
7021 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7022 empty_base_class. All uses updated.
7023 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7024 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7025 Adapt all callers.
7026 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7027 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7028 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7029 (gdbscm_gsmob_has_property_p, add_property_name)
7030 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7031 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7032 (gdb-object-has-property?, gdb-object-properties): Remove.
7033 (gdb-object-kind): Renamed from gsmob-kind.
7034
214ab2da
AW
70352014-05-26 Andy Wingo <wingo@igalia.com>
7036
7037 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7038 * configure: Regenerate.
7039
589fdceb
MM
70402014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7041
7042 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7043
67b5c0c1
MM
70442014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7045
7046 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7047 (replay_memory_access_read_only, replay_memory_access_read_write)
7048 (replay_memory_access_types, replay_memory_access)
7049 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7050 (cmd_set_record_btrace, cmd_show_record_btrace)
7051 (cmd_show_replay_memory_access): New.
7052 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7053 (record_btrace_remove_breakpoint): Replace
7054 record_btrace_allow_memory_access with replay_memory_access.
7055 (_initialize_record_btrace): Add commands.
7056 * NEWS: Announce it.
7057
036cd381
RR
70582014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7059
7060 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7061
c77c1e42
RR
70622014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7063
7064 * MAINTAINERS (Write After Approval): Move self back from
7065 paper trail.
7066
45741a9c
PA
70672014-05-22 Pedro Alves <palves@redhat.com>
7068
7069 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7070 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7071 (disable_randomization, enum exec_direction_kind)
7072 (execution_direction, stop_registers, start_remote)
7073 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7074 (wait_for_inferior, normal_stop, get_last_target_status)
7075 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7076 (insert_step_resume_breakpoint_at_sal)
7077 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7078 (set_step_info, print_stop_event, signal_stop_state)
7079 (signal_print_state, signal_pass_state, signal_stop_update)
7080 (signal_print_update, signal_pass_update)
7081 (update_signals_program_target, clear_exit_convenience_vars)
7082 (displaced_step_dump_bytes, update_observer_mode)
7083 (signal_catch_update, gdb_signal_from_command): Move
7084 declarations ...
7085 * infrun.h: ... to this new file.
7086 * amd64-tdep.c: Include infrun.h.
7087 * annotate.c: Include infrun.h.
7088 * arch-utils.c: Include infrun.h.
7089 * arm-linux-tdep.c: Include infrun.h.
7090 * arm-tdep.c: Include infrun.h.
7091 * break-catch-sig.c: Include infrun.h.
7092 * breakpoint.c: Include infrun.h.
7093 * common/agent.c: Include infrun.h instead of inferior.h.
7094 * corelow.c: Include infrun.h.
7095 * event-top.c: Include infrun.h.
7096 * go32-nat.c: Include infrun.h.
7097 * i386-tdep.c: Include infrun.h.
7098 * inf-loop.c: Include infrun.h.
7099 * infcall.c: Include infrun.h.
7100 * infcmd.c: Include infrun.h.
7101 * infrun.c: Include infrun.h.
7102 * linux-fork.c: Include infrun.h.
7103 * linux-nat.c: Include infrun.h.
7104 * linux-thread-db.c: Include infrun.h.
7105 * monitor.c: Include infrun.h.
7106 * nto-tdep.c: Include infrun.h.
7107 * procfs.c: Include infrun.h.
7108 * record-btrace.c: Include infrun.h.
7109 * record-full.c: Include infrun.h.
7110 * remote-m32r-sdi.c: Include infrun.h.
7111 * remote-mips.c: Include infrun.h.
7112 * remote-notif.c: Include infrun.h.
7113 * remote-sim.c: Include infrun.h.
7114 * remote.c: Include infrun.h.
7115 * reverse.c: Include infrun.h.
7116 * rs6000-tdep.c: Include infrun.h.
7117 * s390-linux-tdep.c: Include infrun.h.
7118 * solib-irix.c: Include infrun.h.
7119 * solib-osf.c: Include infrun.h.
7120 * solib-svr4.c: Include infrun.h.
7121 * target.c: Include infrun.h.
7122 * top.c: Include infrun.h.
7123 * windows-nat.c: Include infrun.h.
7124 * mi/mi-interp.c: Include infrun.h.
7125 * mi/mi-main.c: Include infrun.h.
7126 * python/py-threadevent.c: Include infrun.h.
7127
98eb56a4
PA
71282014-05-22 Pedro Alves <palves@redhat.com>
7129
7130 * infrun.c (handle_inferior_event): Store the exit code for
7131 --return-child-result here, instead of ...
7132 (print_exited_reason): ... here.
7133
17b2616c
PA
71342014-05-21 Pedro Alves <palves@redhat.com>
7135
7136 PR gdb/13860
7137 * gdbthread.h (struct thread_control_state): New field
7138 `command_interp'.
7139 * infrun.c (follow_fork): Copy the new thread control field to the
7140 child fork thread.
7141 (clear_proceed_status_thread): Clear the new thread control field.
7142 (proceed): Set the new thread control field.
7143 * interps.h (command_interp): Declare.
7144 * interps.c (command_interpreter): New global.
7145 (command_interp): New function.
7146 (interp_exec): Set `command_interpreter' while here.
7147 * cli-out.c (cli_uiout_dtor): New function.
7148 (cli_ui_out_impl): Install it.
7149 * mi/mi-interp.c: Include cli-out.h.
7150 (mi_cmd_interpreter_exec): Add comment.
7151 (restore_current_uiout_cleanup): New function.
7152 (ui_out_free_cleanup): New function.
7153 (mi_on_normal_stop): If finishing an execution command started by
7154 a CLI command, or any kind of breakpoint-like event triggered,
7155 print the stop event to the output (CLI) stream.
7156 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7157
5166082f
PA
71582014-05-21 Pedro Alves <palves@redhat.com>
7159
7160 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7161 current source line having changed.
7162 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7163 * infrun.c (normal_stop): Adjust call to
7164 set_current_sal_from_frame.
7165 * source.c (clear_lines_listed_range): New function.
7166 (set_current_source_symtab_and_line, identify_source_line): Clear
7167 the lines listed range.
7168 (line_info): Handle the first "info line" after the current source
7169 line having changed.
7170 * stack.c (print_stack_frame): Remove center handling.
7171 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7172 center sal.line.
7173
c1ee2fb3
PA
71742014-05-21 Pedro Alves <palves@redhat.com>
7175
7176 * inf-child.c (inf_child_mourn_inferior): New function.
7177 * inf-child.h (inf_child_mourn_inferior): New declaration.
7178 * darwin-nat.c (darwin_mourn_inferior): Use
7179 inf_child_mourn_inferior.
7180 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7181 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7182 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7183 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7184 * windows-nat.c (windows_mourn_inferior): Likewise.
7185
5c6d4fb2
DE
71862014-05-21 Doug Evans <xdje42@gmail.com>
7187
250748cb 7188 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7189
4a2722c5
DE
71902014-05-21 Doug Evans <xdje42@gmail.com>
7191
17292b30 7192 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7193 (gdbscm_out_of_range_error): Ditto.
7194 (gdbscm_memory_error): Ditto.
250748cb
DE
7195 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7196 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7197 (gdbscm_out_of_range_error): Update.
7198 (gdbscm_memory_error): Update.
7199 (gdbscm_scm_to_target_string_unsafe): Delete.
7200
6a3cb8e8
PA
72012014-05-21 Pedro Alves <palves@redhat.com>
7202
7203 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7204 globals.
7205 (inf_child_open_target): New function.
7206 (inf_child_open): Use inf_child_open_target to push the target
7207 instead of erroring out.
7208 (inf_child_disconnect, inf_child_close)
7209 (inf_child_maybe_unpush_target): New functions.
7210 (inf_child_target): Install inf_child_disconnect and
7211 inf_child_close. Store a pointer to the returned object.
7212 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7213 declarations.
7214 * target.c (auto_connect_native_target): New global.
7215 (show_default_run_target): New function.
7216 (find_default_run_target): Return NULL if automatically connecting
7217 to the native target is disabled.
7218 (_initialize_target): Install set/show auto-connect-native-target.
7219 * NEWS: Mention "set auto-connect-native-target", and "target
7220 native".
7221 * linux-nat.c (super_close): New global.
7222 (linux_nat_close): Call super_close.
7223 (linux_nat_add_target): Store a pointer to the base class's
7224 to_close method.
7225 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7226 inf_child_maybe_unpush.
7227 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7228 already pushed.
7229 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7230 the inferior. Use inf_child_maybe_unpush_target.
7231 (inf_ttrace_attach): Don't push the target if it is already
7232 pushed.
7233 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7234 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7235 after mourning the inferior. Use inf_child_maybe_unpush_target.
7236 (darwin_attach_pid): Don't push the target if it is already
7237 pushed.
7238 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7239 mourning the inferior. Use inf_child_maybe_unpush_target.
7240 (gnu_detach): Use inf_child_maybe_unpush_target.
7241 * go32-nat.c (go32_create_inferior): Don't push the target if it
7242 is already pushed.
7243 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7244 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7245 (procfs_open): Rename to ...
7246 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7247 comments. Can target_preopen before changing node. Call
7248 inf_child_open_target to push the target explicitly.
7249 (procfs_attach): Don't push the target if it is already pushed.
7250 (procfs_detach): Use inf_child_maybe_unpush_target.
7251 (procfs_create_inferior): Don't push the target if it is already
7252 pushed.
7253 (nto_native_ops): New global.
7254 (procfs_open): Reimplement.
7255 (procfs_native_open): New function.
7256 (init_procfs_targets): Install procfs_native_open as to_open of
7257 "target native". Store a pointer to the "native" target in
7258 nto_native_ops.
7259 * procfs.c (procfs_attach): Don't push the target if it is already
7260 pushed.
7261 (procfs_detach): Use inf_child_maybe_unpush_target.
7262 (procfs_mourn_inferior): Only unpush the target after mourning the
7263 inferior. Use inf_child_maybe_unpush_target.
7264 (procfs_init_inferior): Don't push the target if it is already
7265 pushed.
7266 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7267 if it is already pushed.
7268
930ee1b1
PA
72692014-05-21 Pedro Alves <palves@redhat.com>
7270
7271 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7272 and "procfs" targets are now called "native" instead.
7273
1f5d1b13
PA
72742014-05-21 Pedro Alves <palves@redhat.com>
7275
7276 * go32-nat.c (go32_open): Delete.
7277 (go32_target): Don't override the to_open method.
7278
132f8e03
PA
72792014-05-21 Pedro Alves <palves@redhat.com>
7280
7281 * nto-procfs.c (procfs_can_run): New function.
7282 (nto_procfs_ops): New global.
7283 (init_procfs_targets): New, based on procfs_target. Install
7284 "target native" in addition to "target procfs".
7285 (_initialize_procfs): Call init_procfs_targets instead of adding
7286 the target here.
7287
03c136c3
PA
72882014-05-21 Pedro Alves <palves@redhat.com>
7289
7290 * windows-nat.c (windows_target): Don't override to_shortname,
7291 to_longname or to_doc.
7292
a635d0f3
PA
72932014-05-21 Pedro Alves <palves@redhat.com>
7294
7295 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7296 to_doc.
7297
4f9b5133
PA
72982014-05-21 Pedro Alves <palves@redhat.com>
7299
7300 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7301 to_shortname, to_longname or to_doc.
7302
bc85afde
PA
73032014-05-21 Pedro Alves <palves@redhat.com>
7304
7305 * go32-nat.c (go32_target): Don't override to_shortname,
7306 to_longname or to_doc.
7307
4ebfc96e
PA
73082014-05-21 Pedro Alves <palves@redhat.com>
7309
7310 * inf-child.c (inf_child_open): Remove mention of "child".
7311 (inf_child_target): Rename target to "native" instead of "child".
7312
2648dfed
AA
73132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7314
7315 * Makefile.in (SFILES): Delete "regset.c".
7316 (COMMON_OBS): Delete "regset.o".
7317 * regset.c: Remove.
7318 * regset.h (regset_alloc): Delete prototype.
7319
b13feb94
AA
73202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7321
7322 * sparc-linux-tdep.c (sparc32_linux_gregset)
7323 (sparc32_linux_fpregset): New static regset structures.
7324 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7325 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7326 'fpregset' fields.
7327 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7328 (sparc64_linux_fpregset): New static regset structures.
7329 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7330 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7331 New static regset structures.
7332 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7333 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7334 New static regset structures.
7335 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7336 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7337 New static regset structures.
7338 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7339 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7340 New static regset structures.
7341 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7342
b4fd25c9
AA
73432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7344
7345 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7346 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7347 register maps ("regmaps") from "*regset" to "*regmap". Do this
7348 for all regmap types and variables.
7349 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7350 (sparc32_linux_supply_core_gregset)
7351 (sparc32_linux_collect_core_gregset)
7352 (sparc32_linux_supply_core_fpregset)
7353 (sparc32_linux_collect_core_fpregset): Likewise.
7354 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7355 (sparc_gregmap, sparc_fpregmap): ... these.
7356 (sparc_supply_gregset, sparc_collect_gregset)
7357 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7358 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7359 (_initialize_sparc_nat): Rename regmaps.
7360 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7361 (sparc_gregmap, sparc_fpregmap): ... these.
7362 (sparc_supply_gregset, sparc_collect_gregset)
7363 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7364 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7365 Rename macros to...
7366 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7367 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7368 Likewise.
7369 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7370 Rename to...
7371 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7372 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7373 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7374 regmaps.
7375 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7376 (sparc32_bsd_fpregset): Rename to...
7377 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7378 (sparc32_bsd_fpregmap): ... these.
7379 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7380 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7381 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7382 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7383 (struct sparc_gregmap, struct sparc_fpregmap)
7384 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7385 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7386 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7387 (sparc32_supply_regset, sparc32_collect_gregset)
7388 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7389 prototypes.
7390 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7391 (sparc64_linux_ptrace_gregmap): ... this.
7392 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7393 (_initialize_sparc64_linux_nat): Rename regmaps.
7394 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7395 (sparc64_linux_core_gregmap): ... this.
7396 (sparc64_linux_supply_core_gregset)
7397 (sparc64_linux_collect_core_gregset)
7398 (sparc64_linux_supply_core_fpregset)
7399 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7400 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7401 (sparc64_sol2_fpregset): Rename to...
7402 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7403 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7404 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7405 regmaps.
7406 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7407 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7408 (sparc64_bsd_fpregset): Rename to...
7409 (struct sparc_gregmap, sparc64_sol2_gregmap)
7410 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7411 (sparc64_bsd_fpregmap): ... these.
7412 (sparc64_supply_gregset, sparc64_collect_gregset)
7413 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7414 prototypes.
7415 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7416 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7417 (sparc64fbsd_gregmap): ... this.
7418 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7419 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7420 Rename regmaps.
7421 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7422 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7423 (sparc64nbsd_collect_fpregset): Likewise.
7424 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7425 (sparc64nbsd_gregmap): ... this.
7426 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7427 regmaps.
7428 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7429 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7430 (sparc64obsd_gregmap): ... this.
7431 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7432 regmaps.
7433 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7434 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7435 (sparc32nbsd_gregmap): ... this.
7436 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7437 regmaps.
7438
8fea3224
AA
74392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7440
7441 * score-tdep.c (score7_linux_gregset): New static regset
7442 structure.
7443 (score7_linux_regset_from_core_section): Remove dynamic regset
7444 allocation.
7445 (score_gdbarch_init): Drop allocation of tdep structure.
7446 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7447
24534243
AA
74482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7449
7450 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7451 regset structures.
7452 (am33_regset_from_core_section): Remove dynamic regset
7453 allocations.
7454
b7195f27
AA
74552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7456
7457 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7458 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7459 structures.
7460 (mips_linux_regset_from_core_section): Remove dynamic regset
7461 allocations.
7462 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7463 'gregset64', 'fpregset', and 'fpregset64'.
7464 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7465 deleted tdep fields.
7466
ecc37a5a
AA
74672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7468
7469 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7470 regset structures.
7471 (amd64_regset_from_core_section): Remove dynamic regset
7472 allocations.
7473 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7474 structure.
7475 (amd64obsd_regset_from_core_section): Remove dynamic regset
7476 allocation.
7477 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7478 Likewise.
7479 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7480 x86-common regset supply function.
7481 * i386-tdep.c (i386_collect_gregset): Make static.
7482 (i386_gregset): New global regset structure.
7483 (i386_fpregset, i386_xstateregset): New static regset structures.
7484 (i386_regset_from_core_section): Remove dynamic regset
7485 allocations.
7486 (i386_gdbarch_init): Remove initialization of tdep fields
7487 'gregset', 'fpregset', and 'xstateregset'.
7488 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7489 'fpregset', and 'xstateregset'.
7490 (i386_collect_gregset): Remove prototype.
7491 (i386_gregset): New declaration.
7492 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7493 structure.
7494 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7495 allocation.
7496
b7611c43
AA
74972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7498
7499 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7500 (arm_linux_vfpregset): New static regset structures.
7501 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7502 regset structures.
7503 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7504 and 'vfpregset' fields.
7505
a069a2bd
AA
75062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7507
7508 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7509 (aarch64_linux_fpregset): New static regset structures.
7510 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7511 of regset structures.
7512 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7513 'fpregset' fields.
7514
09424cff
AA
75152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7516
7517 * regset.h (struct regset): Remove gdbarch field.
7518 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7519 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7520 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7521 Likewise.
7522 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7523 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7524 (ppc32_linux_vsxregset): Likewise.
7525 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7526 via the regcache instead of the regset.
7527 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7528 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7529 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7530 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7531 Likewise.
7532
3ca7dae4
AA
75332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7534
7535 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7536 Constify structures.
7537 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7538 (alphanbsd_aout_gregset): Likewise.
7539 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7540 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7541 Likewise.
7542 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7543 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7544 Likewise.
7545 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7546 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7547 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7548 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7549 * m88k-tdep.c (m88k_gregset): Likewise.
7550 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7551 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7552 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7553 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7554 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7555 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7556 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7557 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7558 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7559 Likewise.
7560 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7561 * sh-tdep.h (sh_corefile_gregset): Likewise.
7562 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7563 * vax-tdep.c (vax_gregset): Likewise.
7564
5876f503
JK
75652014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7566
7567 Fix TLS access for -static -pthread.
7568 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7569 (try_thread_db_load_1): Initialize it.
7570 (thread_db_get_thread_local_address): Call it if LM is zero.
7571 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7572 * target.h (struct target_ops) (to_get_thread_local_address): Add
7573 load_module_addr comment.
7574
0256a6ac
PA
75752014-05-21 Pedro Alves <palves@redhat.com>
7576
7577 * dcache.c (dcache_read_memory_partial): If reading the cache line
7578 fails, fallback to reading just the memory the caller wanted.
7579
227533ac
DE
75802014-05-20 Doug Evans <dje@google.com>
7581
7582 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7583 instead of get_current_arch.
7584
936d2992
PA
75852014-05-20 Pedro Alves <palves@redhat.com>
7586
7587 * NEWS: Mention that compare-sections now works with all targets.
7588
7589 * remote.c (PACKET_qCRC): New enum value.
7590 (remote_verify_memory): Don't send qCRC if the target has no
7591 execution. Use packet_support/packet_ok. If the target doesn't
7592 support the qCRC packet, fallback to a deep memory copy.
7593 (compare_sections_command): Say "target image" instead of "remote
7594 executable".
7595 (_initialize_remote): Add PACKET_qCRC to the list of config
7596 packets that have no associated command. Extend comment.
7597 * target.c (simple_verify_memory, default_verify_memory): New
7598 function.
7599 * target.h (struct target_ops) <to_verify_memory>: Default to
7600 default_verify_memory.
7601 (simple_verify_memory): New declaration.
7602 * target-delegates.c: Regenerate.
7603
e59fa00f
MM
76042014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7605
7606 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7607
f2205de0
HZ
76082014-05-20 Hui Zhu <hui@codesourcery.com>
7609 Yao Qi <yao@codesourcery.com>
7610
7611 PR backtrace/16558
7612 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7613 and change address of sp and pc.
7614
c4e54771
TT
76152014-05-19 Tom Tromey <tromey@redhat.com>
7616
7617 * gdbtypes.c (rank_function): Use XNEWVEC.
7618 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7619
73051182
DE
76202014-05-19 Doug Evans <dje@google.com>
7621
7622 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7623 build_type_unit_groups and moved closer to only caller. Remove
7624 arguments. All references updated. Remove outdated .gdb_index
7625 comment.
7626 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7627 build_type_psymtabs_1.
7628
8832e7e3
DE
76292014-05-19 Doug Evans <dje@google.com>
7630
7631 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7632 n_type_unit_groups, all_type_unit_groups. All uses removed.
7633 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7634 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7635 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7636 (add_type_unit_group_to_table): Delete.
7637
cd8ae15e
DE
76382014-05-19 Doug Evans <dje@google.com>
7639
7640 * eval.c (evaluate_subexp_standard): Add some comments.
7641
08f4850b
DE
76422014-05-17 Doug Evans <xdje42@gmail.com>
7643
7644 * progspace.c (remove_program_space): Delete, unused.
7645 * progspace.h (remove_program_space): Ditto.
7646
bed8455c
DE
76472014-05-17 Doug Evans <xdje42@gmail.com>
7648
7649 * inferior.c (prune_inferiors): Fix comment.
7650 (remove_inferior_command): Call prune_program_spaces.
7651
8d551b02
DE
76522014-05-16 Doug Evans <dje@google.com>
7653
7654 New command line option -D.
7655 * NEWS: Mention it.
7656 * main.c (set_gdb_data_directory): New function.
7657 (captured_main): Recognize -D. Flag error for --data-directory "".
7658 Call set_gdb_data_directory.
7659 (print_gdb_help): Print --data-directory, -D.
7660 * main.h (set_gdb_data_directory): Declare.
7661 * top.c (staged_gdb_datadir): New static global.
7662 (set_gdb_datadir): Call set_gdb_data_directory
7663 (show_gdb_datadir): New function.
7664 (init_main): Update init of data-directory parameter.
7665
18848e28
GF
76662014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7667
7668 Import the "dirfd" gnulib module.
7669 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7670 * gnulib/aclocal.m4: Update.
7671 * gnulib/config.in: Update.
7672 * gnulib/configure: Update.
7673 * gnulib/import/Makefile.am: Update.
7674 * gnulib/import/Makefile.in: Update.
7675 * gnulib/import/dirfd.c: New.
7676 * gnulib/import/m4/dirfd.m4: New.
7677 * gnulib/import/m4/gnulib-cache.m4: Update.
7678 * gnulib/import/m4/gnulib-comp.m4: Update.
7679
95c64f92
YQ
76802014-05-16 Pierre Muller <muller@sourceware.org>
7681 Yao Qi <yao@codesourcery.com>
7682
7683 * valprint.c (print_wchar): Move the code on checking whether
7684 W is a printable wide char to the default branch of switch
7685 statement below. Call wchar_printable instead of gdb_iswprint.
7686
cac395ea
TM
76872014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7688
19679eca 7689 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7690 ldr.w and ldrd instructions.
7691
83655187
DE
76922014-05-15 Doug Evans <dje@google.com>
7693
7694 * dwarf2read.c (read_structure_type): Delete outdated comments.
7695
dd756689
TT
76962014-05-14 Tom Tromey <tromey@redhat.com>
7697
7698 * macrocmd.c (print_macro_definition): Reindent.
7699
75ddda77
DE
77002014-05-13 Doug Evans <xdje42@gmail.com>
7701
7702 * python/py-cmd.c (cmdpy_completer): Add comment.
7703 (completers): Make const.
7704
b0f16a3e
SM
77052014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7706
7707 * infrun.c (resume): Remove should_resume (unused). Move up
7708 declaration of resume_ptid.
7709
033c3379
TT
77102014-05-13 Tom Tromey <tromey@redhat.com>
7711
7712 * language.h (unop_type_check): Remove.
7713 (binop_type_check): Don't declare.
7714
9b44a3a5
AA
77152014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7716
7717 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7718 call to regcache_raw_collect.
7719
303a33fa
SM
77202014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7721
7722 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7723 mi_console->quote as the quoting character.
7724
196100a0
SM
77252014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7726
7727 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7728
f989a1c8
TT
77292014-04-29 Tom Tromey <tromey@redhat.com>
7730
7731 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7732 "show debug varobj".
7733
9404b58f
KM
77342014-05-07 Kyle McMartin <kyle@redhat.com>
7735
7736 Pushed by Joel Brobecker <brobecker@adacore.com>.
7737 * aarch64-tdep.c (aarch64_software_single_step): New function.
7738 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7739 with aarch64_software_single_step.
7740
5e49ba57
JB
77412014-05-05 Joel Brobecker <brobecker@adacore.com>
7742
7743 GDB 7.7.1 released.
7744
c888a17d
KS
77452014-05-05 Keith Seitz <keiths@redhat.com>
7746
7747 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7748 variable or history value is successfully parsed.
7749
290a839c
YQ
77502014-05-05 Yao Qi <yao@codesourcery.com>
7751 Pedro Alves <palves@redhat.com>
7752
7753 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7754 address of blocks that intersects the requested range. Trim
7755 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7756 sections.
7757 * ctf.c (ctf_xfer_partial): Likewise.
7758
91256dc2
YQ
77592014-05-05 Yao Qi <yao@codesourcery.com>
7760
7761 * printcmd.c (display_command): Remove the check to
7762 target_has_execution.
7763
07284463
MK
77642014-05-03 Mark Kettenis <kettenis@gnu.org>
7765
7766 * ppcobsd-nat.c: Include "obsd-nat.h".
7767 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7768 add_target.
7769 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7770
30a1e6cc
SDJ
77712014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7772
7773 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7774 and 16-bit signed and unsigned arguments. Update comment.
7775 (stap_parse_probe_arguments): Extend code to handle such
7776 arguments. Use warning instead of complaint to notify about
7777 unrecognized bitness.
7778
f33da99a
SDJ
77792014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7780
7781 PR breakpoints/16889
7782 * stap-probe.c (stap_parse_probe_arguments): Simplify
7783 check for non-prefixed probes (i.e., probes whose
7784 arguments do not start with "N@"). Always set the
7785 argument type to a sane value.
7786
95cf3b38
DT
77872014-05-01 David Taylor <dtaylor@emc.com>
7788
7789 * remote.c (compare_sections_command): Add -r option to compare
7790 all loadable read-only sections.
7791
1cfdf534
SC
77922014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7793
7794 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7795 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7796 Update all callers.
7797 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7798 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7799 Remove unused CORE_ADDR argument. Update all callers.
7800
ca4f7f8b
PA
78012014-04-29 Pedro Alves <palves@redhat.com>
7802
7803 * remote.c (struct packet_config) <detect>: Extend comment.
7804 (add_packet_config_cmd): Don't set the config's detect or support
7805 fields here.
7806 (init_all_packet_configs): Also initialize the config's 'detect'
7807 field.
7808 (reset_all_packet_configs_support): New function.
7809 (remote_open_1): Call reset_all_packet_configs_support instead of
7810 init_all_packet_configs.
7811 (_initialize_remote): Initialize all packet configs. Assert that
7812 all packets have an associated command, except a few known
7813 outliers.
7814
11c1ba78
JB
78152014-04-28 Joel Brobecker <brobecker@adacore.com>
7816
7817 * dwarf2read.c (read_subrange_type): Handle dynamic
7818 DW_AT_lower_bound attributes.
7819
8739bc53
JB
78202014-04-28 Joel Brobecker <brobecker@adacore.com>
7821
7822 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7823 dynamic bounds before computing its upper bound.
7824 (ada_discrete_type_low_bound): Same as above with the lower bound.
7825
6f8a3220
JB
78262014-04-28 Joel Brobecker <brobecker@adacore.com>
7827
7828 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7829 range types. Adjust the array handling implementation to
7830 take advantage of this change.
7831 (resolve_dynamic_range): New function, mostly extracted from
7832 resolve_dynamic_bounds.
7833 (resolve_dynamic_array): New function, mostly extracted from
7834 resolve_dynamic_bounds.
7835 (resolve_dynamic_bounds): Delete.
7836 (resolve_dynamic_type): Reimplement. Add handling of
7837 TYPE_CODE_RANGE types.
7838
4d072ce4
JB
78392014-04-28 Joel Brobecker <brobecker@adacore.com>
7840
7841 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7842 handling of parallel ___XA types.
7843
52865325
JB
78442014-04-28 Joel Brobecker <brobecker@adacore.com>
7845
7846 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7847 unnecessary second call to static_unwrap_type.
7848
433e77fa
HZ
78492014-04-27 Hui Zhu <hui@codesourcery.com>
7850
7851 * stack.c (print_frame_info): Call do_gdb_disassembly with
7852 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7853
b51a69ee
DE
78542014-04-26 Doug Evans <xdje42@gmail.com>
7855
7856 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7857
7ae1a6a6
PA
78582014-04-25 Pedro Alves <palves@redhat.com>
7859
7860 PR server/16255
7861 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7862 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7863 and newline from built string.
7864 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7865 (linux_ptrace_attach_fail_reason): ... this.
7866 * linux-nat.c (linux_nat_attach): Adjust to use
7867 linux_ptrace_attach_fail_reason.
7868
4082afcc
PA
78692014-04-25 Pedro Alves <palves@redhat.com>
7870
7871 * remote.c (struct remote_state): Remove multi_process_aware,
7872 non_stop_aware, cond_tracepoints, cond_breakpoints,
7873 breakpoint_commands, fast_tracepoints, static_tracepoints,
7874 install_in_trace, disconnected_tracing,
7875 enable_disable_tracepoints, string_tracing, and
7876 augmented_libraries_svr4_read fields.
7877 (remote_multi_process_p): Move further below in the file.
7878 (struct packet_config): Add comments.
7879 (update_packet_config): Delete function.
7880 (show_packet_config_cmd): Use packet_config_support.
7881 (add_packet_config_cmd): Use NULL as set callback.
7882 (packet_ok): "set remote foo-packet"-style commands no longer
7883 change config->supported -- adjust.
7884 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7885 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7886 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7887 (PACKET_QNonStop, PACKET_multiprocess_feature)
7888 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7889 (PACKET_DisconnectedTracing_feature)
7890 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7891 (set_remote_protocol_packet_cmd): Delete function.
7892 (packet_config_support, packet_support): New functions.
7893 (set_remote_protocol_Z_packet_cmd): Don't call
7894 update_packet_config.
7895 (remote_query_attached, remote_pass_signals)
7896 (remote_program_signals, remote_threads_info)
7897 (remote_threads_extra_info, remote_start_remote): Use
7898 packet_support.
7899 (remote_start_remote): Use packet_config_support and
7900 packet_support.
7901 (init_all_packet_configs): Set all packets to unknown support,
7902 instead of calling update_packet_config.
7903 (remote_check_symbols): Use packet_support.
7904 (remote_supported_packet): Unconditionally set the packet config's
7905 support status.
7906 (remote_multi_process_feature, remote_non_stop_feature)
7907 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7908 (remote_breakpoint_commands_feature)
7909 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7910 (remote_install_in_trace_feature)
7911 (remote_disconnected_tracing_feature)
7912 (remote_enable_disable_tracepoint_feature)
7913 (remote_string_tracing_feature)
7914 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7915 (remote_protocol_features): Adjust to use remote_supported_packet
7916 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7917 "ConditionalTracepoints", "ConditionalBreakpoints",
7918 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7919 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7920 "EnableDisableTracepoints", and "tracenz".
7921 (remote_query_supported): Use packet_support.
7922 (remote_open_1): Adjust.
7923 (extended_remote_attach_1): Use packet_support. Switch on the
7924 result of packet_ok instead of checking whether the packet ended
7925 up disabled.
7926 (remote_vcont_resume): Use packet_support.
7927 (remote_resume, remote_stop_ns, fetch_register_using_p)
7928 (remote_prepare_to_store, store_register_using_P)
7929 (check_binary_download, remote_write_bytes): Use packet_support.
7930 (remote_vkill): Use packet_support. Switch on the result of
7931 packet_ok instead of checking whether the packet ended up
7932 disabled.
7933 (extended_remote_supports_disable_randomization): Use
7934 packet_support.
7935 (extended_remote_run): Switch on the result of packet_ok instead
7936 of checking whether the packet ended up disabled.
7937 (remote_insert_breakpoint, remote_remove_breakpoint)
7938 (remote_insert_watchpoint, remote_remove_watchpoint)
7939 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7940 packet_support.
7941 (remote_search_memory): Use packet_config_support.
7942 (remote_get_thread_local_address, remote_get_tib_address)
7943 (remote_hostio_send_command, remote_can_execute_reverse): Use
7944 packet_support.
7945 (remote_supports_cond_tracepoints)
7946 (remote_supports_cond_breakpoints)
7947 (remote_supports_fast_tracepoints)
7948 (remote_supports_static_tracepoints)
7949 (remote_supports_install_in_trace)
7950 (remote_supports_enable_disable_tracepoint)
7951 (remote_supports_string_tracing)
7952 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7953 the packet config says the feature is enabled or disabled.
7954 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7955 (remote_get_trace_status): Use packet_support.
7956 (remote_set_disconnected_tracing): Adjust to check whether the
7957 feature is enabled with packet_support.
7958 (remote_set_trace_buffer_size, remote_use_agent)
7959 (remote_can_use_agent, remote_supports_btrace): Use
7960 packet_support.
7961 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7962 Use packet_config_support.
7963 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7964 the packet config says the feature is enabled or disabled.
7965 (set_range_stepping): Use packet_support.
7966
bdb52a22
TT
79672014-04-25 Tom Tromey <tromey@redhat.com>
7968
7969 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7970 argument.
7971
e9475ead
SA
79722014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7973
7974 * NEWS: Mention support for C99 variable length arrays.
7975
82eacd52
JB
79762014-04-24 Joel Brobecker <brobecker@adacore.com>
7977
7978 * ada-lang.c (standard_exc): Expand introductory comment.
7979
01f9f808
MS
79802014-04-24 Michael Sturm <michael.sturm@mintel.com>
7981 Walfred Tedeschi <walfred.tedeschi@intel.com>
7982
7983 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7984 AVX512 registers.
7985 (amd64_linux_read_description): Add code to handle AVX512 xstate
7986 mask and return respective tdesc.
7987 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7988 and features/i386/x32-avx512-linux.c.
7989 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7990 (amd64_linux_core_read_description): Add code to handle AVX512
7991 xstate mask and return respective tdesc.
7992 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7993 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7994 calculation.
7995 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7996 (tdesc_amd64_avx512_linux): New prototype.
7997 (tdesc_x32_avx512_linux): Likewise.
7998 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7999 features/i386/x32-avx512.c.
8000 (amd64_ymm_avx512_names): New register names for pseudo
8001 registers YMM16-31.
8002 (amd64_ymmh_avx512_names): New register names for raw registers
8003 YMMH16-31.
8004 (amd64_k_names): New register names for K registers.
8005 (amd64_zmmh_names): New register names for ZMM raw registers.
8006 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8007 (amd64_xmm_avx512_names): New register names for XMM16-31
8008 registers.
8009 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8010 registers.
8011 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8012 if feature is present.
8013 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8014 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8015 (AMD64_NUM_REGS): Adjust to new number of registers.
8016 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8017 registers supplied via XSTATE by AVX512 registers.
8018 (i386_linux_read_description): Add case for AVX512.
8019 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8020 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8021 (i386_linux_core_read_description): Add case for AVX512.
8022 (i386_linux_init_abi): Install supported register note section
8023 for AVX512.
8024 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8025 AVX512.
8026 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8027 registers to be number of zmm7h + 1.
8028 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8029 * i386-tdep.c: Include features/i386/i386-avx512.c.
8030 (i386_zmm_names): Add ZMM pseudo register names array.
8031 (i386_zmmh_names): Add ZMM raw register names array.
8032 (i386_k_names): Add K raw register names array.
8033 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8034 registers. AVX512 has 16 more ZMM registers than there are YMM
8035 registers.
8036 (i386_zmmh_regnum_p): Add function to look up register number of
8037 ZMM raw registers.
8038 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8039 (i386_k_regnum_p): Likewise for K raw registers.
8040 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8041 registers added by AVX512.
8042 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8043 registers added by AVX512.
8044 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8045 added by AVX512.
8046 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8047 (i386_pseudo_register_name): Add ZMM pseudo registers.
8048 (i386_zmm_type): Construct and return vector registers type for ZMM
8049 registers.
8050 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8051 ZMM0-31 pseudo registers and K registers.
8052 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8053 and YMM16-31 registers from register cache.
8054 (i386_pseudo_register_write): Add code to write K, ZMM and
8055 YMM16-31 registers.
8056 (i386_register_reggroup_p): Add code to include/exclude AVX512
8057 registers in/from respective register groups.
8058 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8059 registers if feature is present in xcr0.
8060 (i386_gdbarch_init): Add code to initialize AVX512 feature
8061 variables in tdep structure, wire in pseudo registers and call
8062 initialize_tdesc_i386_avx512.
8063 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8064 variables.
8065 (i386_regnum): Add AVX512 registers.
8066 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8067 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8068 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8069 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8070 512 bits wide.
8071 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8072 (i386_ymm_avx512_regnum_p): Likewise.
8073 (i386_k_regnum_p): Likewise.
8074 (i386_zmm_regnum_p): Likewise.
8075 (i386_zmmh_regnum_p): Likewise.
8076 * i387-tdep.c : Update year in copyright notice.
8077 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8078 XSAVE buffer.
8079 (XSAVE_YMM_AVX512_ADDR): New macro.
8080 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8081 XSAVE buffer.
8082 (XSAVE_XMM_AVX512_ADDR): New macro.
8083 (xsave_avx512_k_offset): New table for K register offsets in
8084 XSAVE buffer.
8085 (XSAVE_AVX512_K_ADDR): New macro.
8086 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8087 in XSAVE buffer.
8088 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8089 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8090 buffer.
8091 (i387_collect_xsave): Add code to collect AVX512 registers from
8092 XSAVE buffer.
8093 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8094 of XMM16-31 registers.
8095 (I387_NUM_K_REGS): New define for number of K registers.
8096 (I387_K0_REGNUM): New define for K0 register number.
8097 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8098 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8099 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8100 registers.
8101 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8102 (I387_XMM16_REGNUM): New define for XMM16 register number.
8103 (I387_YMM0_REGNUM): New define for YMM0 register number.
8104 (I387_KEND_REGNUM): New define for last K register number.
8105 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8106 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8107 number.
8108 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8109 number.
8110 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8111 size.
8112 * features/Makefile: Add AVX512 related files.
8113 * features/i386/32bit-avx512.xml: New file.
8114 * features/i386/64bit-avx512.xml: Likewise.
8115 * features/i386/amd64-avx512-linux.c: Likewise.
8116 * features/i386/amd64-avx512-linux.xml: Likewise.
8117 * features/i386/amd64-avx512.c: Likewise.
8118 * features/i386/amd64-avx512.xml: Likewise.
8119 * features/i386/i386-avx512-linux.c: Likewise.
8120 * features/i386/i386-avx512-linux.xml: Likewise.
8121 * features/i386/i386-avx512.c: Likewise.
8122 * features/i386/i386-avx512.xml: Likewise.
8123 * features/i386/x32-avx512-linux.c: Likewise.
8124 * features/i386/x32-avx512-linux.xml: Likewise.
8125 * features/i386/x32-avx512.c: Likewise.
8126 * features/i386/x32-avx512.xml: Likewise.
8127 * regformats/i386/amd64-avx512-linux.dat: New file.
8128 * regformats/i386/amd64-avx512.dat: Likewise.
8129 * regformats/i386/i386-avx512-linux.dat: Likewise.
8130 * regformats/i386/i386-avx512.dat: Likewise.
8131 * regformats/i386/x32-avx512-linux.dat: Likewise.
8132 * regformats/i386/x32-avx512.dat: Likewise.
8133 * NEWS: Add note about new support for AVX512.
8134
8135
08351840
PA
81362014-04-23 Pedro Alves <palves@redhat.com>
8137
8138 * breakpoint.c (insert_bp_location): Tolerate errors if the
8139 breakpoint is set in a user-loaded objfile.
8140 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8141 location is marked shlib_disabled. If the breakpoint is set in a
8142 user-loaded objfile is a GDB-side memory breakpoint, validate it
8143 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8144 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8145 flag.
8146 * mem-break.c (memory_validate_breakpoint): New function.
8147 * objfiles.c (userloaded_objfile_contains_address_p): New
8148 function.
8149 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8150 * target.h (memory_validate_breakpoint): New declaration.
8151
076855f9
PA
81522014-04-23 Pedro Alves <palves@redhat.com>
8153
8154 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8155 the breakpoint is set in a shared library, only suppress
8156 errors for software breakpoints, not hardware breakpoints.
8157
483805cf
PA
81582014-04-22 Pedro Alves <palves@redhat.com>
8159
8160 * infrun.c (schedlock_applies): New function, factored out from
8161 find_thread_needs_step_over.
8162 (find_thread_needs_step_over): Use it.
8163 (switch_back_to_stepped_thread): Always clear trap_expected if the
8164 step over is finished. Return early if scheduler locking applies.
8165 Look for the stepping thread and a potential step-over thread with
8166 a single loop.
8167 (currently_stepping_or_nexting_callback): Delete.
8168
a75fef0e
NC
81692014-04-22 Nick Clifton <nickc@redhat.com>
8170
8171 * NEWS: Mention that ARM sim now supports tracing.
8172
48b6e87e
YQ
81732014-04-22 Yao Qi <yao@codesourcery.com>
8174
8175 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8176 to ...
8177 * tracefile.c (tracefile_fetch_registers): ... it. New
8178 function.
8179 * tracefile.h (tracefile_fetch_registers): Declare.
8180 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8181 tracefile_fetch_registers.
8182
17617f2d
EZ
81832014-04-19 Eli Zaretskii <eliz@gnu.org>
8184
8185 PR gdb/14018
8186 * windows-nat.c (thread_rec): Don't display a warning when
8187 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8188 fails for any reason, set th->suspended to -1, so that we don't
8189 try to resume such a thread. Also, don't return NULL in these
8190 cases, to avoid completely ruin the session due to "PC register is
8191 not available" error.
8192 (do_windows_fetch_inferior_registers): Check errors in
8193 GetThreadContext call.
8194 (windows_continue): Accept an additional argument KILLED; if not
8195 zero, ignore errors in the SetThreadContext call, since the
8196 inferior was killed and is shutting down.
8197 (windows_resume, get_windows_debug_event)
8198 (windows_create_inferior, windows_mourn_inferior)
8199 (windows_kill_inferior): All callers of windows_continue changed
8200 to adjust to its new calling sequence.
8201
5723a6fd
YQ
82022014-04-19 Yao Qi <yao@codesourcery.com>
8203
8204 * ctf.c (ctf_open): Call post_create_inferior.
8205
614d5099
YQ
82062014-04-19 Yao Qi <yao@codesourcery.com>
8207
8208 * ctf.c (handle_id): New static variable.
8209 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8210 value. Get the declaration of event "register" and get length
8211 of field "contents".
8212
dac3e710
YQ
82132014-04-19 Yao Qi <yao@codesourcery.com>
8214
8215 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8216
2bca57ba
SC
82172014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8218
8219 * valops.c (oload_method_static): Remove unnecessary argument
8220 METHOD. Update all callers.
8221
51d48146
PA
82222014-04-18 Pedro alves <palves@redhat.com>
8223 Tom Tromey <tromey@redhat.com>
8224
8225 PR backtrace/15558
8226 * frame.c (get_prev_frame_1): Rename to ...
8227 (get_prev_frame_always): ... this, and make extern. Adjust.
8228 (skip_artificial_frames): Use get_prev_frame_always.
8229 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8230 (get_frame_unwind_stop_reason): Adjust to rename.
8231 * frame.h (get_prev_frame_always): Declare.
8232 * inline-frame.c: Include frame.h.
8233 (inline_frame_this_id): Use get_prev_frame_always.
8234
1bdad2e0
TG
82352014-04-18 Tristan Gingold <gingold@adacore.com>
8236
8237 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8238 code by using bfd_mach_o_get_base_address.
8239
7ce16bd4
UW
82402014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8241
8242 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8243 (spu_ax_pseudo_register_collect): New function.
8244 (spu_ax_pseudo_register_push_stack): Likewise.
8245 (spu_dwarf_reg_to_regnum): Likewise.
8246 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8247
2ed3c037
UW
82482014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8249
8250 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8251 Replace FRAME argument with FRAME_ID.
8252 * gdbarch.c, gdbarch.h: Regenerate.
8253 * findvar.c (default_value_from_register): Add GDBARCH argument;
8254 replace FRAME by FRAME_ID. No longer call get_frame_id.
8255 (value_from_register): Update call to gdbarch_value_from_register.
8256 * value.h (default_value_from_register): Update prototype.
8257 * s390-linux-tdep.c (s390_value_from_register): Update interface
8258 and call to default_value_from_register.
8259 * spu-tdep.c (spu_value_from_register): Likewise.
8260
8261 * findvar.c (address_from_register): Remove TYPE argument.
8262 Do not call value_from_register; use gdbarch_value_from_register
8263 with null_frame_id instead.
8264 * value.h (address_from_register): Update prototype.
8265 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8266 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8267 address_from_register interface change.
8268
71e50e83
YQ
82692014-04-17 Yao Qi <yao@codesourcery.com>
8270
8271 * gdbtypes.h: Update comments to link to types and macros'
8272 definitions.
8273
7a23c549
SC
82742014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8275
8276 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8277
22869d73
KS
82782014-04-16 Keith Seitz <keiths@redhat.com>
8279
8280 PR gdb/15827
8281 * dwarf2read.c (skip_one_die): Check that all relative-offset
8282 sibling DIEs fall within range of the current reader's buffer.
8283 (read_partial_die): Likewise.
8284
c4f87ca6
KS
82852014-04-16 Keith Seitz <keiths@redhat.com>
8286
8287 PR c++/16597
8288 * cp-namespace.c (lookup_symbol_file): If the type name of
8289 `this' is NULL, return immediately.
8290
b50c8614
KS
82912014-04-14 Keith Seitz <keiths@redhat.com>
8292
8293 PR c++/16253
8294 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8295 from symbol_matches_domain in symtab.c. All local callers
8296 of symbol_matches_domain updated.
8297 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8298 search STRUCT_DOMAIN.
8299 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8300 independently. standard_lookup will do that automatically.
8301 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8302 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8303 (cp_lookup_symbol_in_namespace): Likewise.
8304 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8305 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8306 may return a STRUCT_DOMAIN match.
8307 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8308 * cp-support.c: Include language.h.
8309 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8310 VAR_DOMAIN.
8311 * psymtab.c (match_partial_symbol): Compare the requested
8312 domain with the symbol's domain directly.
8313 (lookup_partial_symbol): Likewise.
8314 * symtab.c (lookup_symbol_in_language): Explain when/why
8315 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8316 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8317 appropriate languages.
8318 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8319 and moved to ada-lang.c
8320 (lookup_block_symbol): Explain that this function only returns
8321 symbol matching the requested DOMAIN.
8322 Compare the requested domain with the symbol's domain directly.
8323 (iterate_over_symbols): Compare the requested domain with the
8324 symbol's domain directly.
8325 * symtab.h (symbol_matches_domain): Remove.
8326
3d567982
TT
83272014-04-14 Tom Tromey <tromey@redhat.com>
8328
8329 PR c++/15246:
8330 * c-exp.y (type_aggregate_p): New function.
8331 (qualified_name, classify_inner_name): Use it.
8332 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8333 and TYPE_TARGET_TYPE of an enum type.
8334 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8335 an enum type.
8336 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8337 handle TYPE_DECLARED_CLASS.
8338 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8339 types.
8340 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8341 * valops.c (enum_constant_from_type): New function.
8342 (value_aggregate_elt): Use it.
8343 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8344 TYPE_CODE_ENUM.
8345
c848d642
TT
83462014-04-14 Tom Tromey <tromey@redhat.com>
8347
8348 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8349 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8350 const.
8351 * value.h (value_aggregate_elt): Update.
8352
0626fc76
TT
83532014-04-14 Tom Tromey <tromey@redhat.com>
8354
8355 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8356
5ecaaa66
SA
83572014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8358
8359 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8360 (evaluate_subexp_standard): Pass noside argument.
8361 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8362 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8363 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8364 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8365 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8366
1612e0c0
SA
83672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8368
8369 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8370 points to a constant blob.
8371
c451ebe5
SA
83722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8373
8374 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8375 property and store it as the high bound and flag the range accordingly.
8376 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8377 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8378 * gdbtypes.h (enum range_flags): New enum.
8379 (struct range_bounds): Add flags member.
8380
1d42e4c4
SA
83812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8382
8383 * c-typeprint.c (c_type_print_varspec_suffix): Added
8384 check for not yet resolved high bound. If unresolved, print
8385 "variable length" string to the console instead of random
8386 length.
8387
9f1f738a
SA
83882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8389
8390 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8391 value.
8392 (ada_template_to_fixed_record_type_1): Likewise.
8393 (ada_to_fixed_type_1): Likewise.
8394 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8395 (cp_print_value): Likewise.
8396 * d-valprint.c (dynamic_array_type): Likewise.
8397 * findvar.c (address_of_variable): Likewise.
8398 * jv-valprint.c (java_value_print): Likewise.
8399 * valops.c (value_ind): Likewise.
8400 * value.c (coerce_ref): Likewise.
8401
3c8452d4
SA
84022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8403
8404 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8405 value and retrieve the dynamic type size.
8406
4ad88275
SA
84072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8408
8409 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8410 passed to sizeof is dynamic evaluate the argument to compute the length.
8411
80180f79
SA
84122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8413 Joel Brobecker <brobecker@adacore.com>
8414
8415 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8416 (dwarf2_evaluate_property): New function.
8417 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8418 * dwarf2read.c (attr_to_dynamic_prop): New function.
8419 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8420 attribute.
8421 * gdbtypes.c: Include dwarf2loc.h.
8422 (is_dynamic_type): New function.
8423 (resolve_dynamic_type): New function.
8424 (resolve_dynamic_bounds): New function.
8425 (get_type_length): New function.
8426 (check_typedef): Use get_type_length to compute type length.
8427 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8428 (TYPE_LOW_BOUND_KIND): New macro.
8429 (is_dynamic_type): New function prototype.
8430 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8431 to resolve dynamic properties of the type. Update comment.
8432 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8433
a1556843
RH
84342014-04-14 Richard Henderson <rth@redhat.com>
8435
8436 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8437
0be03e84
DE
84382014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8439 Doug Evans <xdje42@gmail.com>
8440
8441 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8442 dereference TYPE_CODE_REF values.
8443
6b662e19
JB
84442014-04-11 Joel Brobecker <brobecker@adacore.com>
8445
8446 Revert the following changes due to regressions:
8447
8448 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8449 (dwarf2_evaluate_property): New function.
8450 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8451 * dwarf2read.c (attr_to_dynamic_prop): New function.
8452 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8453 attribute.
8454 * gdbtypes.c: Include dwarf2loc.h.
8455 (is_dynamic_type): New function.
8456 (resolve_dynamic_type): New function.
8457 (resolve_dynamic_bounds): New function.
8458 (get_type_length): New function.
8459 (check_typedef): Use get_type_length to compute type length.
8460 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8461 (TYPE_LOW_BOUND_KIND): New macro.
8462 (is_dynamic_type): New function prototype.
8463 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8464 to resolve dynamic properties of the type. Update comment.
8465 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8466
8467 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8468 passed to sizeof is dynamic evaluate the argument to compute the length.
8469
8470 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8471 value and retrieve the dynamic type size.
8472
8473 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8474 (ada_template_to_fixed_record_type_1): Likewise.
8475 (ada_to_fixed_type_1): Likewise.
8476 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8477 (cp_print_value): Likewise.
8478 * d-valprint.c (dynamic_array_type): Likewise.
8479 * eval.c (evaluate_subexp_with_coercion): Likewise.
8480 * findvar.c (address_of_variable): Likewise.
8481 * jv-valprint.c (java_value_print): Likewise.
8482 * valops.c (value_ind): Likewise.
8483 * value.c (coerce_ref): Likewise.
8484
8485 * c-typeprint.c (c_type_print_varspec_suffix): Added
8486 check for not yet resolved high bound. If unresolved, print
8487 "variable length" string to the console instead of random
8488 length.
8489
8490 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8491 property and store it as the high bound and flag the range accordingly.
8492 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8493 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8494 * gdbtypes.h (enum range_flags): New enum.
8495 (struct range_bounds): Add flags member.
8496
8497 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8498 points to a constant blob.
8499
8500 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8501 (evaluate_subexp_standard): Pass noside argument.
8502 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8503 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8504 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8505 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8506 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8507
245a5f0b
KS
85082014-04-11 Keith Seitz <keiths@redhat.com>
8509
8510 PR c++/16675
8511 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8512 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8513 reference types.
8514
3bce8237
SA
85152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8516
8517 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8518 (evaluate_subexp_standard): Pass noside argument.
8519 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8520 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8521 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8522 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8523 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8524
92b09522
SA
85252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8526
8527 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8528 points to a constant blob.
8529
e1969afb
SA
85302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8531
8532 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8533 property and store it as the high bound and flag the range accordingly.
8534 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8535 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8536 * gdbtypes.h (enum range_flags): New enum.
8537 (struct range_bounds): Add flags member.
8538
b86138fb
SA
85392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8540
8541 * c-typeprint.c (c_type_print_varspec_suffix): Added
8542 check for not yet resolved high bound. If unresolved, print
8543 "variable length" string to the console instead of random
8544 length.
8545
bcd629a4
SA
85462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8547
8548 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8549 (ada_template_to_fixed_record_type_1): Likewise.
8550 (ada_to_fixed_type_1): Likewise.
8551 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8552 (cp_print_value): Likewise.
8553 * d-valprint.c (dynamic_array_type): Likewise.
8554 * eval.c (evaluate_subexp_with_coercion): Likewise.
8555 * findvar.c (address_of_variable): Likewise.
8556 * jv-valprint.c (java_value_print): Likewise.
8557 * valops.c (value_ind): Likewise.
8558 * value.c (coerce_ref): Likewise.
8559
04b19544
SA
85602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8561
8562 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8563 value and retrieve the dynamic type size.
8564
26cb189f
SA
85652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8566
8567 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8568 passed to sizeof is dynamic evaluate the argument to compute the length.
8569
37c1ab67
SA
85702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8571
8572 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8573 (dwarf2_evaluate_property): New function.
8574 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8575 * dwarf2read.c (attr_to_dynamic_prop): New function.
8576 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8577 attribute.
8578 * gdbtypes.c: Include dwarf2loc.h.
8579 (is_dynamic_type): New function.
8580 (resolve_dynamic_type): New function.
8581 (resolve_dynamic_bounds): New function.
8582 (get_type_length): New function.
8583 (check_typedef): Use get_type_length to compute type length.
8584 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8585 (TYPE_LOW_BOUND_KIND): New macro.
8586 (is_dynamic_type): New function prototype.
8587 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8588 to resolve dynamic properties of the type. Update comment.
8589 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8590
729efb13
SA
85912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8592
8593 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8594 declaring high/low bounds and change uses accordingly. Call
8595 create_range_type instead of create_static_range_type.
8596 * gdbtypes.c (create_range_type): New function.
8597 (create_range_type): Convert bounds into struct bound_prop and pass
8598 them to create_range_type.
8599 * gdbtypes.h (struct bound_prop): New struct.
8600 (create_range_type): New function prototype.
8601 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8602 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8603 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8604 part of the bound.
8605 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8606
0c9c3474
SA
86072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8608
8609 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8610 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8611 * ada-lang.c: All uses of create_range_type updated.
8612 * coffread.c: All uses of create_range_type updated.
8613 * dwarf2read.c: All uses of create_range_type updated.
8614 * f-exp.y: All uses of create_range_type updated.
8615 * m2-valprint.c: All uses of create_range_type updated.
8616 * mdebugread.c: All uses of create_range_type updated.
8617 * stabsread.c: All uses of create_range_type updated.
8618 * valops.c: All uses of create_range_type updated.
8619 * valprint.c: All uses of create_range_type updated.
8620
9d497a19
PA
86212014-04-10 Pedro Alves <palves@redhat.com>
8622
8623 * breakpoint.c (single_step_breakpoints)
8624 (single_step_gdbarch): Move up in the file.
8625 (one_breakpoint_xfer_memory): New function, factored out from ...
8626 (breakpoint_xfer_memory): ... here. Also process single-step
8627 breakpoints.
8628
15a9128a
TG
86292014-04-09 Tristan Gingold <gingold@adacore.com>
8630
8631 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8632 comments.
8633 (darwin_decode_exception_message): Free port only after use.
8634
9c97a070
PL
86352014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8636
8637 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8638 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8639 when setting the size of call_length.
8640
7af389b8
SC
86412014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8642
8643 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8644 dereference TYPE_CODE_REF values.
8645
86ad98c3
JB
86462014-04-07 Joel Brobecker <brobecker@adacore.com>
8647
8648 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8649 end of warning message.
8650
b0aeadb3
DE
86512014-04-03 Doug Evans <dje@google.com>
8652
8653 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8654 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8655
5979d6b6
AM
86562014-04-02 Alan Modra <amodra@gmail.com>
8657
8658 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8659 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8660 (struct symbol_file_add_from_memory_args): Add size field.
8661 (find_vdso_size): New function.
8662 (add_vsyscall_page): Attempt to find vdso size.
8663
0d60c288
DE
86642014-04-01 Doug Evans <dje@google.com>
8665
8666 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8667
a41f2563
TG
86682014-04-01 Tristan Gingold <gingold@adacore.com>
8669
8670 * darwin-nat.c (darwin_encode_reply): Add prototype.
8671 (darwin_decode_exception_message): Reply to unknown inferiors.
8672 (darwin_decode_message): Handle message by id. Ignore message
8673 to unknown inferior.
8674 (darwin_wait): Discard unknown messages, add debug trace.
8675
11a865c8
DE
86762014-03-31 Doug Evans <dje@google.com>
8677
8678 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8679 comp_dir_string.
8680
770e7fc7
DE
86812014-03-31 Doug Evans <dje@google.com>
8682
8683 New option "set print symbol-loading".
8684 * NEWS: Mention it.
8685 * solib.c (solib_read_symbols): Only print symbol loading messages
8686 if requested.
8687 (solib_add): If symbol loading is in "brief" mode, notify user
8688 symbols are being loaded.
8689 (reload_shared_libraries_1): Ditto.
8690 * symfile.c (print_symbol_loading_off): New static global.
8691 (print_symbol_loading_brief): New static global.
8692 (print_symbol_loading_full): New static global.
8693 (print_symbol_loading_enums): New static global.
8694 (print_symbol_loading): New static global.
8695 (print_symbol_loading_p): New function.
8696 (symbol_file_add_with_addrs): Only print symbol loading messages
8697 if requested.
8698 (_initialize_symfile): Register "print symbol-loading" set/show
8699 command.
8700 * symfile.h (print_symbol_loading_p): Declare.
8701
c32c64b7
DE
87022014-03-30 Doug Evans <xdje42@gmail.com>
8703
8704 * infrun.c (set_last_target_status): New function.
8705 (handle_inferior_event): Call it.
8706
7c0bc051
DE
87072014-03-30 Doug Evans <xdje42@gmail.com>
8708
8709 * inferior.h (enum stop_kind): Improve comment.
8710
8776cfe9
JB
87112014-03-28 Joel Brobecker <brobecker@adacore.com>
8712
8713 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8714 a reference, strip the reference layer before calling
8715 the lang_ops value_has_mutated callback.
8716
410a0ff2
SDJ
87172014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8718
8719 Remove some globals from our parser.
8720 * language.c (unk_lang_parser): Add "struct parser_state"
8721 argument.
8722 * language.h (struct language_defn) <la_parser>: Likewise.
8723 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8724 (initialize_expout): Add "struct parser_state" argument.
8725 Rewrite function to use the parser state.
8726 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8727 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8728 write_exp_elt_longcst, write_exp_elt_dblcst,
8729 write_exp_elt_decfloatcst, write_exp_elt_type,
8730 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8731 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8732 write_dollar_variable): Likewise.
8733 (parse_exp_in_context_1): Use parser state.
8734 (insert_type_address_space): Add "struct parser_state" argument.
8735 Use parser state.
8736 (increase_expout_size): New function.
8737 * parser-defs.h: Forward declare "struct language_defn" and
8738 "struct parser_state".
8739 (expout, expout_size, expout_ptr): Remove extern declarations.
8740 (parse_gdbarch, parse_language): Rewrite macro declarations to
8741 accept the parser state.
8742 (struct parser_state): New struct.
8743 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8744 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8745 write_exp_elt_decfloatcst, write_exp_elt_type,
8746 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8747 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8748 write_exp_msymbol, write_dollar_variable,
8749 mark_struct_expression, insert_type_address_space): Add "struct
8750 parser_state" argument.
8751 (increase_expout_size): New function.
8752 * utils.c (do_clear_parser_state): New function.
8753 (make_cleanup_clear_parser_state): Likewise.
8754 * utils.h (make_cleanup_clear_parser_state): New function
8755 prototype.
8756 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8757 Update calls to write_exp* in order to pass the parser state.
8758 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8759 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8760 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8761 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8762 * stap-probe.c (stap_parse_register_operand): Likewise.
8763 (stap_parse_single_operand): Likewise.
8764 (stap_parse_argument_1): Likewise.
8765 (stap_parse_argument): Use parser state.
8766 * stap-probe.h: Include "parser-defs.h".
8767 (struct stap_parse_info) <pstate>: New field.
8768 * c-exp.y (parse_type): Rewrite to use parser state.
8769 (yyparse): Redefine to c_parse_internal.
8770 (pstate): New global variable.
8771 (parse_number): Add "struct parser_state" argument.
8772 (write_destructor_name): Likewise.
8773 (type_exp): Update calls to write_exp* and similars in order to
8774 use parser state.
8775 (exp1, exp, variable, qualified_name, space_identifier,
8776 typename, typebase): Likewise.
8777 (write_destructor_name, parse_number, lex_one_token,
8778 classify_name, classify_inner_name, c_parse): Add "struct
8779 parser_state" argument. Update function to use parser state.
8780 * c-lang.h: Forward declare "struct parser_state".
8781 (c_parse): Add "struct parser_state" argument.
8782 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8783 (yyparse): Redefine macro to ada_parse_internal.
8784 (pstate): New variable.
8785 (write_int, write_object_renaming, write_var_or_type,
8786 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8787 type_int, type_long, type_long_long, type_float, type_double,
8788 type_long_double, type_char, type_boolean, type_system_address):
8789 Add "struct parser_state" argument.
8790 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8791 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8792 var_or_type, aggregate, aggregate_component_list,
8793 positional_list, others, component_group,
8794 component_associations): Update calls to write_exp* and similar
8795 functions in order to use parser state.
8796 (ada_parse, write_var_from_sym, write_int,
8797 write_exp_op_with_string, write_object_renaming,
8798 find_primitive_type, write_selectors, write_ambiguous_var,
8799 write_var_or_type, write_name_assoc, type_int, type_long,
8800 type_long_long, type_float, type_double, type_long_double,
8801 type_char, type_boolean, type_system_address): Add "struct
8802 parser_state" argument. Adjust function to use parser state.
8803 * ada-lang.c (parse): Likewise.
8804 * ada-lang.h: Forward declare "struct parser_state".
8805 (ada_parse): Add "struct parser_state" argument.
8806 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8807 calls to both functions.
8808 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8809 parser state.
8810 (yyparse): Redefine macro to f_parse_internal.
8811 (pstate): New variable.
8812 (parse_number): Add "struct parser_state" argument.
8813 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8814 and similars in order to use parser state.
8815 (parse_number): Adjust code to use parser state.
8816 (yylex): Likewise.
8817 (f_parse): New function.
8818 * f-lang.h: Forward declare "struct parser_state".
8819 (f_parse): Add "struct parser_state" argument.
8820 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8821 parser state.
8822 (yyparse): Redefine macro for java_parse_internal.
8823 (pstate): New variable.
8824 (push_expression_name, push_expression_name, insert_exp): Add
8825 "struct parser_state" argument.
8826 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8827 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8828 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8829 PostIncrementExpression, PostDecrementExpression,
8830 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8831 UnaryExpressionNotPlusMinus, CastExpression,
8832 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8833 RelationalExpression, EqualityExpression, AndExpression,
8834 ExclusiveOrExpression, InclusiveOrExpression,
8835 ConditionalAndExpression, ConditionalOrExpression,
8836 ConditionalExpression, Assignment, LeftHandSide): Update
8837 calls to write_exp* and similars in order to use parser state.
8838 (parse_number): Ajust code to use parser state.
8839 (yylex): Likewise.
8840 (java_parse): New function.
8841 (push_variable): Add "struct parser_state" argument. Adjust
8842 code to user parser state.
8843 (push_fieldnames, push_qualified_expression_name,
8844 push_expression_name, insert_exp): Likewise.
8845 * jv-lang.h: Forward declare "struct parser_state".
8846 (java_parse): Add "struct parser_state" argument.
8847 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8848 parser state.
8849 (yyparse): Redefine macro to m2_parse_internal.
8850 (pstate): New variable.
8851 (type_exp, exp, fblock, variable, type): Update calls to
8852 write_exp* and similars to use parser state.
8853 (yylex): Likewise.
8854 (m2_parse): New function.
8855 * m2-lang.h: Forward declare "struct parser_state".
8856 (m2_parse): Add "struct parser_state" argument.
8857 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8858 * objc-lang.h: Forward declare "struct parser_state".
8859 (end_msglist): Add "struct parser_state" argument.
8860 * p-exp.y (parse_type): Rewrite macro to use parser state.
8861 (yyparse): Redefine macro to pascal_parse_internal.
8862 (pstate): New variable.
8863 (parse_number): Add "struct parser_state" argument.
8864 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8865 write_exp* and similars in order to use parser state.
8866 (parse_number, yylex): Adjust code to use parser state.
8867 (pascal_parse): New function.
8868 * p-lang.h: Forward declare "struct parser_state".
8869 (pascal_parse): Add "struct parser_state" argument.
8870 * go-exp.y (parse_type): Rewrite macro to use parser state.
8871 (yyparse): Redefine macro to go_parse_internal.
8872 (pstate): New variable.
8873 (parse_number): Add "struct parser_state" argument.
8874 (type_exp, exp1, exp, variable, type): Update calls to
8875 write_exp* and similars in order to use parser state.
8876 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8877 to use parser state.
8878 (go_parse): Likewise.
8879 * go-lang.h: Forward declare "struct parser_state".
8880 (go_parse): Add "struct parser_state" argument.
8881
342587c4
DE
88822014-03-27 Doug Evans <dje@google.com>
8883
8884 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8885
33e80786
DE
88862014-03-27 Doug Evans <dje@google.com>
8887
8888 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8889 Remove argument abbrev_section. All callers updated.
8890
1dbab08b
DE
88912014-03-27 Doug Evans <dje@google.com>
8892
8893 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8894 addr_base, ranges_base.
8895
318d3177
KS
88962014-03-26 Keith Seitz <keiths@redhat.com>
8897
8898 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8899 types, not VAR_DOMAIN.
8900
1e54db15
SL
89012014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8902
8903 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8904 "ra" registers.
8905 * features/nios2-linux.c: Regenerated.
8906 * features/nios2.c: Regenerated.
8907
d3839ede
PA
89082014-03-25 Pedro Alves <palves@redhat.com>
8909
8910 * cli/cli-script.c (script_from_file): Force the interpreter to
8911 sync mode.
8912
7588d2ec
PL
89132014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8914
8915 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8916 small stack allocation.
8917
a6290449
TG
89182014-03-24 Tristan Gingold <gingold@adacore.com>
8919
8920 * darwin-nat.c (exc_server): Remove unused prototype.
8921 (darwin_dump_message): Correctly display data on x86_64.
8922 (darwin_encode_reply): Fix style.
8923 Add comments and fix indentation.
8924
31ae9d24 89252014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8926
8927 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8928
6339bfc4
DE
89292014-03-22 Doug Evans <xdje42@gmail.com>
8930
8931 * infcmd.c: Whitespace fixes.
8932 (interrupt_command): Merge two function comments into one.
8933
0a07590b
DE
89342014-03-22 Doug Evans <xdje42@gmail.com>
8935
8936 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8937 All uses updated.
8938
b55fbac4
YQ
89392014-03-22 Yao Qi <yao@codesourcery.com>
8940
8941 * remote.c (target_read_live_memory): Remove.
8942 (memory_xfer_live_readonly_partial): Rename it to
8943 remote_xfer_live_readonly_partial. Remove argument 'object'.
8944 All callers updated. Call remote_read_bytes_1
8945 instead of target_read_live_memory.
8946 * tracepoint.c (set_traceframe_number): Remove.
8947 (make_cleanup_restore_traceframe_number): Likewise .
8948 * tracepoint.h (set_traceframe_number): Remove declaration.
8949 (make_cleanup_restore_traceframe_number): Likewise.
8950
9217e74e
YQ
89512014-03-22 Yao Qi <yao@codesourcery.com>
8952
8953 * remote.c (remote_read_bytes): Move code on reading from the
8954 remote stub to ...
8955 (remote_read_bytes_1): ... here. New function.
8956
8acf9577
YQ
89572014-03-22 Yao Qi <yao@codesourcery.com>
8958
8959 * ctf.c (ctf_xfer_partial): Check the return value of
8960 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8961 return TARGET_XFER_UNAVAILABLE.
8962 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8963 * target.c (target_read_live_memory): Move it to remote.c.
8964 (memory_xfer_live_readonly_partial): Likewise.
8965 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8966 * remote.c (target_read_live_memory): Moved from target.c.
8967 (memory_xfer_live_readonly_partial): Likewise.
8968 (remote_read_bytes): Factored out from
8969 memory_xfer_partial_1.
8970
feef67ab
DE
89712014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8972
8973 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8974 NULL pointer.
8975
b65dc60b
PA
89762014-03-21 Pedro Alves <palves@redhat.com>
8977
8978 * infrun.c (normal_stop): Extend comment.
8979
b4ab256d
HZ
89802014-03-21 Hui Zhu <hui@codesourcery.com>
8981 Pedro Alves <palves@redhat.com>
8982
8983 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8984 static buffer.
8985 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8986 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8987 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8988
deba7593
MR
89892014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8990
8991 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8992 `z' formatted output modifier.
8993
1bff71c3
SDJ
89942014-03-20 Tom Tromey <tromey@redhat.com>
8995 Sergio Durigan Junior <sergiodj@redhat.com>
8996
8997 * probe.c (parse_probes): Turn assert into an ordinary error.
8998 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8999 exceptions when parsing probes. Rearrange the code for clarity.
9000
90e28950
TT
90012014-03-20 Tom Tromey <tromey@redhat.com>
9002
9003 PR gdb/14135
9004 * top.c (execute_command): Only dispatch events if the command
9005 started the target.
9006
beb460e8
PA
90072014-03-20 Tom Tromey <tromey@redhat.com>
9008
9009 PR cli/15718
9010 * infcall.c: Include event-top.h.
9011 (run_inferior_call): Call async_disable_stdin if needed.
9012
99619bea
PA
90132014-03-20 Pedro Alves <palves@redhat.com>
9014
9015 * infrun.c (prepare_to_proceed): Delete.
9016 (thread_still_needs_step_over): New function.
9017 (find_thread_needs_step_over): New function.
9018 (proceed): If the current thread needs a step-over, set its
9019 steping_over_breakpoint flag. Adjust to use
9020 find_thread_needs_step_over instead of prepare_to_proceed.
9021 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9022 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9023 breakpoint.
9024 (switch_back_to_stepped_thread): Step over breakpoints of all
9025 threads not the stepping thread, before switching back to the
9026 stepping thread.
9027
2adfaa28
PA
90282014-03-20 Pedro Alves <palves@redhat.com>
9029
9030 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9031 extern.
9032 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9033 * infrun.c (saved_singlestep_ptid)
9034 (stepping_past_singlestep_breakpoint): Delete.
9035 (resume): Remove stepping_past_singlestep_breakpoint handling.
9036 (proceed): Store the prev_pc of the stepping thread too.
9037 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9038 singlestep_pc.
9039 (enum infwait_states): Delete infwait_thread_hop_state.
9040 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9041 field.
9042 (handle_inferior_event): Adjust.
9043 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9044 handling and the thread-hop code. Before removing single-step
9045 breakpoints, check whether the thread hit a single-step breakpoint
9046 of another thread. If it did, the trap is not a random signal.
9047 (switch_back_to_stepped_thread): If the event thread hit a
9048 single-step breakpoint, unblock it before switching to the
9049 stepping thread. Handle the case of the stepped thread having
9050 advanced already.
9051 (keep_going): Handle the case of the current thread moving past a
9052 single-step breakpoint.
9053
31e77af2
PA
90542014-03-20 Pedro Alves <palves@redhat.com>
9055
9056 PR breakpoints/7143
9057 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9058 are being stepped over.
9059 (breakpoint_address_match): Make extern.
9060 * breakpoint.h (breakpoint_address_match): New declaration.
9061 * inferior.h (stepping_past_instruction_at): New declaration.
9062 * infrun.c (struct step_over_info): New type.
9063 (step_over_info): New global.
9064 (set_step_over_info, clear_step_over_info)
9065 (stepping_past_instruction_at): New functions.
9066 (handle_inferior_event): Clear the step-over info when
9067 trap_expected is cleared.
9068 (resume): Remove now stale comment.
9069 (clear_proceed_status): Clear step-over info.
9070 (proceed): Adjust step-over handling to set or clear the step-over
9071 info instead of removing all breakpoints.
9072 (handle_signal_stop): When setting up a thread-hop, don't remove
9073 breakpoints here.
9074 (stop_stepping): Clear step-over info.
9075 (keep_going): Adjust step-over handling to set or clear step-over
9076 info and then always inserting breakpoints, instead of removing
9077 all breakpoints when stepping over one.
9078
b9f437de
PA
90792014-03-20 Pedro Alves <palves@redhat.com>
9080
9081 * infrun.c (previous_inferior_ptid): Adjust comment.
9082 (deferred_step_ptid): Delete.
9083 (infrun_thread_ptid_changed, prepare_to_proceed)
9084 (init_wait_for_inferior): Adjust.
9085 (handle_signal_stop): Delete deferred_step_ptid handling.
9086
06c868a8
JK
90872014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9088
9089 PR gdb/15358
9090 * defs.h (sync_quit_force_run): New declaration.
9091 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9092 * event-top.c (async_sigterm_handler): New declaration.
9093 (async_sigterm_token): New variable.
9094 (async_init_signals): Create also async_sigterm_token.
9095 (async_sigterm_handler): New function.
9096 (sync_quit_force_run): New variable.
9097 (handle_sigterm): Replace quit_force call by other calls.
9098 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9099
dea80df0
MR
91002014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9101
9102 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9103 offset into SPE pseudo registers.
9104
0c7e1a46
PA
91052014-03-18 Pedro Alves <palves@redhat.com>
9106
9107 PR gdb/13860
9108 * inferior.h (print_stop_event): Declare.
9109 * infrun.c (print_stop_event): New, factored out from ...
9110 (normal_stop): ... this.
9111 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9112 of bpstat_print/print_stack_frame.
9113
9c1fcd01
TT
91142014-03-17 Tom Tromey <tromey@redhat.com>
9115
9116 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9117
11aa919a
PMR
91182014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9119
9120 * ada-lang.c (decode_constrained_packed_array): Perform a
9121 minimal coercion for reference with coerce_ref instead of
9122 ada_coerce_ref.
9123
d4ccb5e0
TG
91242014-03-17 Tristan Gingold <gingold@adacore.com>
9125
9126 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9127 (darwin_solib_create_inferior_hook): Emit a warning if version
9128 is unhandled.
9129
49840f2a
UW
91302014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9131
9132 * python/py-value.c (get_field_flag): Cast flag_name argument to
9133 PyObject_GetAttrString to support Python 2.4.
9134
ed4123e5
JK
91352014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9136
9137 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9138 (Global Maintainers): Remove Jan Kratochvil.
9139
d6b64346
PA
91402014-03-14 Pedro Alves <palves@redhat.com>
9141
9142 * inferior.h (terminal_ours_for_output): Rename to ...
9143 (child_terminal_ours_for_output): ... this.
9144 (terminal_save_ours): Rename to ...
9145 (child_terminal_save_ours): ... this.
9146 (terminal_ours): Rename to ...
9147 (child_terminal_ours): ... this.
9148 (terminal_inferior): Rename to ...
9149 (child_terminal_inferior): ... this.
9150 (terminal_init_inferior): Rename to ...
9151 (child_terminal_init_inferior): ... this.
9152 (terminal_init_inferior_with_pgrp): Rename to ...
9153 (child_terminal_init_inferior_with_pgrp): ... this.
9154 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9155 (child_terminal_init_with_pgrp): ... this.
9156 (terminal_save_ours): Rename to ...
9157 (child_terminal_save_ours): ... this.
9158 (terminal_init_inferior): Rename to ...
9159 (child_terminal_init): ... this. Adjust.
9160 (terminal_inferior): Rename to ...
9161 (child_terminal_inferior): ... this.
9162 (terminal_ours_for_output): Rename to ...
9163 (child_terminal_ours_for_output): ... this. Adjust.
9164 (terminal_ours): Rename to ...
9165 (child_terminal_ours): ... this.
9166 (terminal_ours_1): Rename to ...
9167 (child_terminal_ours_1): ... this. Adjust.
9168 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9169 * windows-nat.c (do_initial_windows_stuff): Adjust.
9170 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9171 (gnu_terminal_init): ... this. Adjust.
9172 (gnu_target): Adjust.
9173 * inf-child.c (inf_child_target): Adjust.
9174
5a1e8c7a
DE
91752014-03-13 Doug Evans <xdje42@gmail.com>
9176
9177 PR guile/16612
9178 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9179 new eq?-hashtab.
9180
350e1a76
DE
91812014-03-13 Doug Evans <xdje42@gmail.com>
9182
9183 * value.c (record_latest_value): Call release_value_or_incref
9184 instead of release_value.
9185
a69900ae
PA
91862014-03-13 Pedro Alves <palves@redhat.com>
9187
9188 * procfs.c (procfs_target): Don't override to_shortname,
9189 to_longname or to_doc.
9190
5db9f0bd
PA
91912014-03-13 Pedro Alves <palves@redhat.com>
9192
9193 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9194 Unix in user visible strings.
9195
5e3a2c38
SS
91962014-03-12 Stan Shebs <stan@codesourcery.com>
9197
9198 * gdbtypes.h: Annotate comments for Doxygen, add a page
9199 block comment with some general info.
9200
8bc2fe48
PA
92012014-03-12 Pedro Alves <palves@redhat.com>
9202
9203 * infcmd.c (prepare_execution_command): New function, factored out
9204 from several execution commands.
9205 (run_command_1, continue_command, step_1, jump_command)
9206 (signal_command, until_command, advance_command, finish_command)
9207 (attach_command): Use prepare_execution_command.
9208
638c5f49
OJ
92092014-03-12 Omair Javaid <omair.javaid@linaro.org>
9210
9211 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9212 (MAX_BPTS): Define.
9213 (MAX_WPTS): Define.
9214 (struct arm_linux_thread_points): Removed.
9215 (struct arm_linux_process_info): New.
9216 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9217 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9218 (arm_linux_find_breakpoints_by_tid): Removed.
9219 (struct arch_lwp_info): New.
9220 (arm_linux_find_process_pid): New functions.
9221 (arm_linux_add_process): New functions.
9222 (arm_linux_process_info_get): New functions.
9223 (arm_linux_forget_process): New function.
9224 (arm_linux_get_debug_reg_state): New function.
9225 (struct update_registers_data): New.
9226 (update_registers_callback): New function.
9227 (arm_linux_insert_hw_breakpoint1): Updated.
9228 (arm_linux_remove_hw_breakpoint1): Updated.
9229 (arm_linux_insert_hw_breakpoint): Updated.
9230 (arm_linux_remove_hw_breakpoint): Updated.
9231 (arm_linux_insert_watchpoint): Updated.
9232 (arm_linux_remove_watchpoint): Updated.
9233 (arm_linux_new_thread): Updated.
9234 (arm_linux_prepare_to_resume): New function.
9235 (arm_linux_new_fork): New function.
9236 (_initialize_arm_linux_nat): Updated.
9237
6d03af93
PA
92382014-03-12 Pedro Alves <palves@redhat.com>
9239
9240 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9241
b3ccfe11
TT
92422014-03-12 Tom Tromey <tromey@redhat.com>
9243
9244 * inf-child.c (return_zero): New function.
9245 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9246 * aix-thread.c (aix_thread_inferior_created): New function.
9247 (aix_thread_attach): Remove.
9248 (init_aix_thread_ops): Don't set to_attach.
9249 (_initialize_aix_thread): Register inferior_created observer.
9250 * corelow.c (init_core_ops): Don't set to_attach or
9251 to_create_inferior.
9252 * exec.c (init_exec_ops): Don't set to_attach or
9253 to_create_inferior.
9254 * infcmd.c (run_command_1): Use find_run_target. Make direct
9255 target calls.
9256 (attach_command): Use find_attach_target. Make direct target
9257 calls.
9258 * record-btrace.c (init_record_btrace_ops): Don't set
9259 to_create_inferior.
9260 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9261 Remove.
9262 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9263 set to_create_inferior.
9264 * target.c (complete_target_initialization): Add assertion.
9265 (target_create_inferior): Remove.
9266 (find_default_attach, find_default_create_inferior): Remove.
9267 (find_attach_target, find_run_target): New functions.
9268 (find_default_is_async_p, find_default_can_async_p)
9269 (target_supports_non_stop, target_attach): Remove.
9270 (init_dummy_target): Don't set to_create_inferior or
9271 to_supports_non_stop.
9272 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9273 TARGET_DEFAULT_FUNC.
9274 <to_create_inferior>: Add comment.
9275 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9276 TARGET_DEFAULT_RETURN.
9277 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9278 (find_attach_target, find_run_target): Declare.
9279 (target_create_inferior): Remove.
9280 (target_has_execution_1): Update comment.
9281 (target_supports_non_stop): Remove.
9282 * target-delegates.c: Rebuild.
9283
91f83b02
PA
92842014-03-12 Pedro Alves <palves@redhat.com>
9285
9286 * inf-child.h: Update comment to not mention Unix.
9287
f1aea813
PA
92882014-03-12 Pedro Alves <palves@redhat.com>
9289
9290 * inf-child.c: Update top comment to not mention Unix. Add
9291 generic comment describing how this target is meant to be used.
9292 (inf_child_post_attach, inf_child_post_startup_inferior)
9293 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9294 Unix in comment.
9295
ee8e9165
PA
92962014-03-12 Pedro Alves <palves@redhat.com>
9297
9298 * nto-procfs.c: Include inf-child.h.
9299 (procfs_ops): Delete global.
9300 (procfs_can_run): Delete method.
9301 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9302 target pointer instead of referencing procfs_ops.
9303 (procfs_prepare_to_store): Delete.
9304 (init_procfs_ops): Delete function.
9305 (procfs_target): New function, based on init_procfs_ops, but
9306 inherit inf_child_target.
9307 (_initialize_procfs): Use procfs_target.
9308
51a9c8c5
PA
93092014-03-12 Pedro Alves <palves@redhat.com>
9310
9311 * windows-nat.c: Include inf-child.h.
9312 (windows_ops): Delete global.
9313 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9314 methods.
9315 (init_windows_ops): Delete function.
9316 (windows_target): New function, based on init_windows_ops, but
9317 inherit inf_child_target.
9318 (_initialize_windows_nat): Use windows_target. Install x86
9319 specific target methods here.
9320
c1966e26
DE
93212014-03-10 Doug Evans <xdje42@gmail.com>
9322
9323 * guile/guile.c (call_initialize_gdb_module): New function.
9324 (initialize_guile): Replace call to scm_init_guile with call to
9325 scm_with_guile.
9326
023db19c
JB
93272014-03-10 Joel Brobecker <brobecker@adacore.com>
9328
9329 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9330 in call to TYPE_CODE macro.
9331
5ec18f2b
JG
93322014-03-10 Jerome Guitton <guitton@adacore.com>
9333
8668be63
JB
9334 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9335 Resolve tagged types to full view.
5ec18f2b 9336
7d03f2eb
HZ
93372014-03-10 Hui Zhu <hui@codesourcery.com>
9338
9339 * target.h (target_insert_breakpoint): Remove "hardware" from its
9340 comments.
9341
c5164cbc
DE
93422014-03-07 Doug Evans <dje@google.com>
9343
9344 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9345
c4a3fee2
DE
93462014-03-07 Doug Evans <dje@google.com>
9347
9348 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9349 Remove unused local comp_dir_attr. Assert exactly one of
9350 stub_comp_unit_die, stub_comp_dir is non-NULL.
9351
3156469c
JB
93522014-03-07 Joel Brobecker <brobecker@adacore.com>
9353
9354 * target.h (complete_target_initialization, add_target):
9355 Add comment.
9356
c1a7b7c6
PA
93572014-03-07 Pedro Alves <palves@redhat.com>
9358
9359 * go32-nat.c: Include inf-child.h.
9360 (go32_ops): Delete global.
9361 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9362 Delete methods.
9363 (go32_create_inferior): Push the passed in target pointer instead
9364 of referencing go32_ops.
9365 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9366 (go32_target): New function, based on init_go32_ops, but inherit
9367 inf_child_target.
9368 (_initialize_go32_nat): Use go32_target. Move parts of
9369 init_go32_ops here.
9370
d3c1a85f
JB
93712014-03-06 Joel Brobecker <brobecker@adacore.com>
9372
9373 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9374 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9375 SYMBOL_VALUE_ADDRESS.
9376 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9377
5fa1d40e
YQ
93782014-03-06 Yao Qi <yao@codesourcery.com>
9379
9380 * breakpoint.c (get_tracepoint_by_number): Remove argument
9381 optional_p. All callers updated. Adjust comments. Update
9382 output message.
9383 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9384
0c13193f
YQ
93852014-03-06 Yao Qi <yao@codesourcery.com>
9386
9387 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9388 early if get_number returns zero. Use 'p' instead of 'args'.
9389
2217da06
YQ
93902014-03-06 Yao Qi <yao@codesourcery.com>
9391
9392 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9393 message.
9394
cc3da688
YQ
93952014-03-06 Yao Qi <yao@codesourcery.com>
9396
9397 PR breakpoints/16508
9398 * tracepoint.c (check_trace_running): New function.
9399 (trace_find_command): Move code to check_trace_running and
9400 call check_trace_running.
9401 (trace_find_pc_command): Likewise.
9402 (trace_find_tracepoint_command): Likewise.
9403 (trace_find_line_command): Likewise.
9404 (trace_find_range_command): Likewise.
9405 * tracepoint.h (check_trace_running): Likewise.
9406 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9407
6a5f844b
YQ
94082014-03-06 Yao Qi <yao@codesourcery.com>
9409
9410 * target.h (struct target_ops) <to_traceframe_info>: Use
9411 TARGET_DEFAULT_NORETURN (tcomplain ()).
9412 * target-delegates.c: Regenerated.
9413
0f26cec1
PA
94142014-03-05 Pedro Alves <palves@redhat.com>
9415
9416 PR gdb/16575
9417 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9418 void. Update comment.
9419 (dcache_xfer_memory): Delete.
9420 (dcache_read_memory_partial): New, based on the read bits of
9421 dcache_xfer_memory.
9422 (dcache_update): Add status parameter. Use ULONGEST for len, and
9423 adjust. Discard cache lines if the reason for the update was
9424 error.
9425 * dcache.h (dcache_xfer_memory): Delete declaration.
9426 (dcache_read_memory_partial): New declaration.
9427 (dcache_update): Update prototype.
9428 * target.c (raw_memory_xfer_partial): Update the dcache here.
9429 (memory_xfer_partial_1): Don't handle dcache writes here.
9430
b2b255bd
MF
94312014-03-05 Mike Frysinger <vapier@gentoo.org>
9432
9433 * remote-sim.c (gdbsim_load): Add const to prog.
9434
5d9cf8a4
TT
94352014-03-03 Tom Tromey <tromey@redhat.com>
9436
9437 * elfread.c (probe_key): Change to bfd_data.
9438 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9439 now per-BFD, not per-objfile.
9440 * stap-probe.c (stap_probe_destroy): Update comment.
9441 (handle_stap_probe): Allocate on the per-BFD obstack.
9442
729662a5
TT
94432014-03-03 Tom Tromey <tromey@redhat.com>
9444
9445 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9446 * breakpoint.c (create_longjmp_master_breakpoint): Use
9447 get_probe_address.
9448 (add_location_to_breakpoint, bkpt_probe_insert_location)
9449 (bkpt_probe_remove_location): Update.
9450 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9451 * elfread.c (elf_symfile_relocate_probe): Remove.
9452 (elf_probe_fns): Update.
9453 (insert_exception_resume_breakpoint): Change type of "probe"
9454 parameter to bound_probe.
9455 (check_exception_resume): Update.
9456 * objfiles.c (objfile_relocate1): Don't relocate probes.
9457 * probe.c (bound_probe_s): New typedef.
9458 (parse_probes): Use get_probe_address. Set sal's objfile.
9459 (find_probe_by_pc): Return a bound_probe.
9460 (collect_probes): Return a VEC(bound_probe_s).
9461 (compare_probes): Update.
9462 (gen_ui_out_table_header_info): Change type of "probes"
9463 parameter. Update.
9464 (info_probes_for_ops): Update.
9465 (get_probe_address): New function.
9466 (probe_safe_evaluate_at_pc): Update.
9467 * probe.h (struct probe_ops) <get_probe_address>: New field.
9468 <set_semaphore, clear_semaphore>: Add objfile parameter.
9469 (struct probe) <objfile>: Remove field.
9470 <arch>: New field.
9471 <address>: Update comment.
9472 (struct bound_probe): New.
9473 (find_probe_by_pc): Return a bound_probe.
9474 (get_probe_address): Declare.
9475 * solib-svr4.c (struct probe_and_action) <address>: New field.
9476 (hash_probe_and_action, equal_probe_and_action): Update.
9477 (register_solib_event_probe): Add address parameter.
9478 (solib_event_probe_at): Update.
9479 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9480 get_probe_address.
9481 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9482 (stap_get_probe_address): New function.
9483 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9484 (compile_probe_arg): Update.
9485 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9486 address.
9487 (handle_stap_probe): Don't relocate the probe.
9488 (stap_relocate): Remove.
9489 (stap_gen_info_probes_table_values): Update.
9490 (stap_probe_ops): Remove stap_relocate.
9491 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9492 (debug_sym_probe_fns): Update.
9493 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9494 * symtab.c (init_sal): Use memset.
9495 * symtab.h (struct symtab_and_line) <objfile>: New field.
9496 * tracepoint.c (start_tracing, stop_tracing): Update.
9497
ff887920
TT
94982014-03-03 Tom Tromey <tromey@redhat.com>
9499
9500 * probe.h (parse_probes, find_probe_by_pc)
9501 (find_probes_in_objfile): Fix comments.
9502
f0407826
DE
95032014-03-02 Doug Evans <xdje42@gmail.com>
9504
9505 * infrun.c (handle_signal_stop): Replace test for
9506 TARGET_WAITKIND_STOPPED with an assert.
9507
35e6a711
DE
95082014-03-02 Doug Evans <xdje42@gmail.com>
9509
9510 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9511
667f9d0b
DE
95122014-03-02 Doug Evans <xdje42@gmail.com>
9513
9514 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9515
dc92ace0
MK
95162014-03-01 Mark Kettenis <kettenis@gnu.org>
9517
9518 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9519
a900370f
MK
95202014-03-01 Mark Kettenis <kettenis@gnu.org>
9521
9522 * i386obsd-nat.c: Include "obsd-nat.h".
9523 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9524 add_target.
9525 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9526
b72a7981
MK
95272014-03-01 Mark Kettenis <kettenis@gnu.org>
9528
9529 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9530
96c70aba
MK
95312014-03-01 Mark Kettenis <kettenis@gnu.org>
9532
9533 * mips64obsd-nat.c: Include "obsd-nath".
9534 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9535 add_target
9536 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9537
874a80af
MK
95382014-03-01 Mark Kettenis <kettenis@gnu.org>
9539
8fd408f1
MK
9540 * amd64obsd-nat.c: Include "obsd-nat,h.
9541 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9542 add_target.
874a80af
MK
9543 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9544
9cf95373
SC
95452014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9546
9547 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9548 (find_overload_match): Update call to find_oload_champ.
9549 (find_oload_champ_namespace_loop): Likewise
9550
863e4da4
MK
95512014-02-28 Mark Kettenis <kettenis@gnu.org>
9552
025cac40
MK
9553 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9554
1ed586ce
MK
9555 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9556 * config/sparc/obsd64.mh: New file.
9557 * sparc64obsd-nat.c: New file.
9558
863e4da4
MK
9559 * obsd-nat.h: New file.
9560 * obsd-nat.c: New file.
9561 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9562 (ALLDEPFILES): Add obsd-nat.c.
9563
89de4da4
TT
95642014-02-28 Tom Tromey <tromey@redhat.com>
9565
9566 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9567 * cli-out.h (cli_ui_out_impl): Now const.
9568 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9569 * ui-out.c (struct ui_out) <impl>: Now const.
9570 (default_ui_out_impl): Now const.
9571 (ui_out_new): Make 'impl' parameter const.
9572 * ui-out.h (ui_out_new): Update.
9573
c725e7b6
MK
95742014-02-27 Mark Kettenis <kettenis@gnu.org>
9575
9576 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9577
670b46b3
MK
95782014-02-27 Mark Kettenis <kettenis@gnu.org>
9579
9580 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9581
c91550fc
JK
95822014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 Additional PR 8882 fix.
9585 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9586
2fa0369e
PA
95872014-02-27 Pedro Alves <palves@redhat.com>
9588
9589 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9590 isn't set.
9591
d632a097
PA
95922014-02-27 Pedro Alves <palves@redhat.com>
9593
9594 PR 12702
9595 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9596 * nat/linux-waitpid.c: Include string.h.
9597 (status_to_str): Moved here and made extern.
9598 * nat/linux-waitpid.h (status_to_str): New declaration.
9599
2ebd5a35
HZ
96002014-02-27 Hui Zhu <hui@codesourcery.com>
9601
9602 PR 12702
9603 * infrun.c (ptid_match): Move ...
9604 * common/ptid.c (ptid_match): ... here.
9605 * inferior.h (ptid_match): Move ...
9606 * common/ptid.h (ptid_match): ... here.
9607
3cdd631f
MK
96082014-02-27 Mark Kettenis <kettenis@gnu.org>
9609
9610 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9611 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9612 gdb_target_obs.
9613
bee30a64
MK
96142014-02-27 Mark Kettenis <kettenis@gnu.org>
9615
9616 * obsd-tdep.c (obsd_auxv_parse): New function.
9617 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9618
9619 * gdbarch.sh (auxv_parse): New.
9620 * gdbarch.h: Regenerated.
9621 * gdbarch.c: Regenerated.
9622 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9623
7a5a839f
LC
96242014-02-26 Ludovic Courtès <ludo@gnu.org>
9625
9626 * guile/scm-value.c (gdbscm_history_append_x): New function.
9627 (value_functions): Add it.
9628
31aa7e4e
JB
96292014-02-27 Joel Brobecker <brobecker@adacore.com>
9630
9631 * dwarf2read.c (attr_value_as_address): New function.
9632 (dwarf2_find_base_address, read_call_site_scope): Use
9633 attr_value_as_address in place of DW_ADDR.
9634 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9635 the low and high addresses. Slight rework of the handling
9636 of the high pc being a constant form, and limit it to
9637 DWARF verson 4 or higher.
9638 (dwarf2_record_block_ranges): Likewise.
9639 (read_partial_die): Likewise.
9640 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9641
9b333ba3
TT
96422014-02-26 Tom Tromey <tromey@redhat.com>
9643
9644 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9645
5f6cac40
TT
96462014-02-26 Tom Tromey <tromey@redhat.com>
9647
9648 * elfread.c (elf_read_minimal_symbols): Return early if
9649 minimal symbols have already been read. Add "ei" parameter.
9650 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9651 * minsyms.c (prim_record_minimal_symbol_full): Update.
9652 * objfiles.h (struct objstats) <n_minsyms>: Move...
9653 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9654 * symmisc.c (print_objfile_statistics): Update.
9655
2750ef27
TT
96562014-02-26 Tom Tromey <tromey@redhat.com>
9657
9658 * elfread.c (elf_read_minimal_symbols): New function, from
9659 elf_symfile_read.
9660 (elf_symfile_read): Call it.
9661
34643a32
TT
96622014-02-26 Tom Tromey <tromey@redhat.com>
9663
9664 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9665 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9666 (lookup_minimal_symbol_solib_trampoline)
9667 (lookup_minimal_symbol_by_pc_section_1)
9668 (lookup_minimal_symbol_and_objfile): Update.
9669 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9670 Don't allocate a minimal symbol if minsyms have already been read.
9671 (build_minimal_symbol_hash_tables): Update.
9672 (install_minimal_symbols): Do nothing if minsyms already read.
9673 Use the per-BFD obstack.
9674 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9675 * objfiles.c (allocate_objfile): Call
9676 terminate_minimal_symbol_table later.
9677 (have_minimal_symbols): Update.
9678 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9679 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9680 Move from struct objfile.
9681 <minsyms_read>: New field.
9682 (struct objfile) <msymbols, minimal_symbol_count,
9683 msymbol_hash, msymbol_demangled_hash>: Move.
9684 (ALL_OBJFILE_MSYMBOLS): Update.
9685 * symfile.c (read_symbols): Set minsyms_read.
9686 (reread_symbols): Update.
9687 * symmisc.c (dump_objfile, dump_msymbols): Update.
9688
2273f0ac
TT
96892014-02-26 Tom Tromey <tromey@redhat.com>
9690
9691 * minsyms.c (msymbols_sort): Remove.
9692 * minsyms.h (msymbols_sort): Remove.
9693 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9694 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9695 * elfread.c (elf_symtab_read): Don't add section offsets.
9696 * xcoffread.c (record_minimal_symbol): Don't add section offset
9697 to minimal symbol address.
9698 * somread.c (text_offset, data_offset): Remove.
9699 (som_symtab_read): Don't add section offsets to minimal symbol
9700 addresses.
9701 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9702 Don't add section offsets to minimal symbols.
9703 * coffread.c (coff_symtab_read): Don't add section offsets
9704 to minimal symbol addresses.
9705 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9706 to minimal symbol addresses.
9707 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9708 section offset to minimal symbol addresses.
9709 * mdebugread.c (parse_partial_symbols): Don't add section
9710 offset to minimal symbol addresses.
9711 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9712 offset to minimal symbol addresses.
9713
77e371c0
TT
97142014-02-26 Tom Tromey <tromey@redhat.com>
9715
9716 * ada-lang.c (ada_main_name): Update.
9717 (ada_add_standard_exceptions): Update.
9718 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9719 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9720 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9721 * auxv.c (ld_so_xfer_auxv): Update.
9722 * avr-tdep.c (avr_scan_prologue): Update.
9723 * ax-gdb.c (gen_var_ref): Update.
9724 * blockframe.c (get_pc_function_start)
9725 (find_pc_partial_function_gnu_ifunc): Update.
9726 * breakpoint.c (create_overlay_event_breakpoint)
9727 (create_longjmp_master_breakpoint)
9728 (create_std_terminate_master_breakpoint)
9729 (create_exception_master_breakpoint): Update.
9730 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9731 * c-valprint.c (c_val_print): Update.
9732 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9733 * common/agent.c (agent_look_up_symbols): Update.
9734 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9735 * dwarf2loc.c (call_site_to_target_addr): Update.
9736 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9737 * elfread.c (elf_gnu_ifunc_record_cache)
9738 (elf_gnu_ifunc_resolve_by_got): Update.
9739 * findvar.c (default_read_var_value): Update.
9740 * frame.c (inside_main_func): Update.
9741 * frv-tdep.c (frv_frame_this_id): Update.
9742 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9743 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9744 Update.
9745 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9746 (hppa_hpux_find_dummy_bpaddr): Update.
9747 * hppa-tdep.c (hppa_symbol_address): Update.
9748 * infcmd.c (until_next_command): Update.
9749 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9750 Update.
9751 * linespec.c (minsym_found, add_minsym): Update.
9752 * linux-nat.c (get_signo): Update.
9753 * linux-thread-db.c (inferior_has_bug): Update.
9754 * m32c-tdep.c (m32c_return_value)
9755 (m32c_m16c_address_to_pointer): Update.
9756 * m32r-tdep.c (m32r_frame_this_id): Update.
9757 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9758 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9759 * maint.c (maintenance_translate_address): Update.
9760 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9761 (frob_address): New function.
9762 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9763 frob_address. Rename parameter to "pc_in".
9764 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9765 addresses.
9766 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9767 Update.
9768 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9769 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9770 * objc-lang.c (find_objc_msgsend): Update.
9771 * objfiles.c (objfile_relocate1): Update.
9772 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9773 * p-valprint.c (pascal_val_print): Update.
9774 * parse.c (write_exp_msymbol): Update.
9775 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9776 (ppc_elfv2_skip_entrypoint): Update.
9777 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9778 * printcmd.c (build_address_symbolic, msym_info)
9779 (address_info): Update.
9780 * proc-service.c (ps_pglobal_lookup): Update.
9781 * psymtab.c (find_pc_sect_psymtab_closer)
9782 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9783 Change msymbol parameter to bound_minimal_symbol.
9784 * ravenscar-thread.c (get_running_thread_id): Update.
9785 * remote.c (remote_check_symbols): Update.
9786 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9787 address.
9788 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9789 * solib-dsbt.c (lm_base): Update.
9790 * solib-frv.c (lm_base, main_got): Update.
9791 * solib-irix.c (locate_base): Update.
9792 * solib-som.c (som_solib_create_inferior_hook)
9793 (link_map_start): Update.
9794 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9795 * solib-svr4.c (elf_locate_base, enable_break): Update.
9796 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9797 (flush_ea_cache): Update.
9798 * stabsread.c (define_symbol, scan_file_globals): Update.
9799 * stack.c (find_frame_funname): Update.
9800 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9801 (debug_qf_find_pc_sect_symtab): Update.
9802 * symfile.c (simple_read_overlay_table)
9803 (simple_overlay_update): Update.
9804 * symfile.h (struct quick_symbol_functions)
9805 <find_pc_sect_symtab>: Change type of msymbol to
9806 bound_minimal_symbol.
9807 * symmisc.c (dump_msymbols): Update.
9808 * symtab.c (find_pc_sect_symtab_via_partial)
9809 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9810 (search_symbols, print_msymbol_info): Update.
9811 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9812 (MSYMBOL_VALUE_ADDRESS): Redefine.
9813 (BMSYMBOL_VALUE_ADDRESS): New macro.
9814 * tracepoint.c (scope_info): Update.
9815 * tui/tui-disasm.c (tui_find_disassembly_address)
9816 (tui_get_begin_asm_address): Update.
9817 * valops.c (find_function_in_inferior): Update.
9818 * value.c (value_static_field, value_fn_field): Update.
9819
3b7344d5
TT
98202014-02-26 Tom Tromey <tromey@redhat.com>
9821
9822 * ada-lang.c (ada_update_initial_language): Update.
9823 (ada_main_name, ada_has_this_exception_support): Update.
9824 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9825 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9826 * arm-tdep.c (arm_skip_stub): Update.
9827 * auxv.c (ld_so_xfer_auxv): Update.
9828 * avr-tdep.c (avr_scan_prologue): Update.
9829 * ax-gdb.c (gen_var_ref): Update.
9830 * breakpoint.c (struct breakpoint_objfile_data)
9831 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9832 type to bound_minimal_symbol.
9833 (create_overlay_event_breakpoint)
9834 (create_longjmp_master_breakpoint)
9835 (create_std_terminate_master_breakpoint)
9836 (create_exception_master_breakpoint): Update.
9837 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9838 * c-exp.y (classify_name): Update.
9839 * coffread.c (coff_symfile_read): Update.
9840 * common/agent.c (agent_look_up_symbols): Update.
9841 * d-lang.c (d_main_name): Update.
9842 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9843 * dec-thread.c (enable_dec_thread): Update.
9844 * dwarf2loc.c (call_site_to_target_addr): Update.
9845 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9846 * eval.c (evaluate_subexp_standard): Update.
9847 * findvar.c (struct minsym_lookup_data) <result>: Change type
9848 to bound_minimal_symbol.
9849 <objfile>: Remove.
9850 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9851 * frame.c (inside_main_func): Update.
9852 * frv-tdep.c (frv_frame_this_id): Update.
9853 * gcore.c (call_target_sbrk): Update.
9854 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9855 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9856 Update.
9857 * go-lang.c (go_main_name): Update.
9858 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9859 (hppa_hpux_find_import_stub_for_addr): Update.
9860 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9861 Update. Change return type.
9862 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9863 type.
9864 * jit.c (jit_breakpoint_re_set_internal): Update.
9865 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9866 Update.
9867 * linux-nat.c (get_signo): Update.
9868 * linux-thread-db.c (inferior_has_bug): Update
9869 * m32c-tdep.c (m32c_return_value)
9870 (m32c_m16c_address_to_pointer): Update.
9871 * m32r-tdep.c (m32r_frame_this_id): Update.
9872 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9873 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9874 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9875 lookup_minimal_symbol. Change return type.
9876 (lookup_minimal_symbol): Remove.
9877 (lookup_bound_minimal_symbol): Update.
9878 (lookup_minimal_symbol_text): Change return type.
9879 (lookup_minimal_symbol_solib_trampoline): Change return type.
9880 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9881 (lookup_minimal_symbol_solib_trampoline): Change return type.
9882 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9883 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9884 (value_nsstring, find_imps): Update.
9885 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9886 * p-lang.c (pascal_main_name): Update.
9887 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9888 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9889 * proc-service.c (ps_pglobal_lookup): Update.
9890 * ravenscar-thread.c (get_running_thread_msymbol): Change
9891 return type.
9892 (has_ravenscar_runtime, get_running_thread_id): Update.
9893 * remote.c (remote_check_symbols): Update.
9894 * sol-thread.c (ps_pglobal_lookup): Update.
9895 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9896 * solib-dsbt.c (lm_base): Update.
9897 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9898 Update.
9899 * solib-irix.c (locate_base): Update.
9900 * solib-som.c (som_solib_create_inferior_hook)
9901 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9902 Update.
9903 * solib-spu.c (spu_enable_break): Update.
9904 * solib-svr4.c (elf_locate_base, enable_break): Update.
9905 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9906 (flush_ea_cache): Update.
9907 * stabsread.c (define_symbol): Update.
9908 * symfile.c (simple_read_overlay_table): Update.
9909 * symtab.c (find_pc_sect_line): Update.
9910 * tracepoint.c (scope_info): Update.
9911 * tui-disasm.c (tui_get_begin_asm_address): Update.
9912 * value.c (value_static_field): Update.
9913
40c1a007
TT
99142014-02-26 Tom Tromey <tromey@redhat.com>
9915
9916 * minsyms.c (prim_record_minimal_symbol_full): Use
9917 SET_MSYMBOL_VALUE_ADDRESS.
9918 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9919 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9920 SET_MSYMBOL_VALUE_ADDRESS.
9921 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9922 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9923
efd66ac6
TT
99242014-02-26 Tom Tromey <tromey@redhat.com>
9925
9926 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9927 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9928 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9929 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9930 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9931 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9932 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9933 * ada-lang.c (ada_main_name): Update.
9934 (ada_lookup_simple_minsym): Update.
9935 (ada_make_symbol_completion_list): Update.
9936 (ada_add_standard_exceptions): Update.
9937 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9938 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9939 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9940 * arm-tdep.c (skip_prologue_function): Update.
9941 (arm_skip_stack_protector, arm_skip_stub): Update.
9942 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9943 (arm_wince_skip_main_prologue): Update.
9944 * auxv.c (ld_so_xfer_auxv): Update.
9945 * avr-tdep.c (avr_scan_prologue): Update.
9946 * ax-gdb.c (gen_var_ref): Update.
9947 * block.c (call_site_for_pc): Update.
9948 * blockframe.c (get_pc_function_start): Update.
9949 (find_pc_partial_function_gnu_ifunc): Update.
9950 * breakpoint.c (create_overlay_event_breakpoint): Update.
9951 (create_longjmp_master_breakpoint): Update.
9952 (create_std_terminate_master_breakpoint): Update.
9953 (create_exception_master_breakpoint): Update.
9954 (resolve_sal_pc): Update.
9955 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9956 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9957 Update.
9958 * c-valprint.c (c_val_print): Update.
9959 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9960 * coffread.c (coff_symfile_read): Update.
9961 * common/agent.c (agent_look_up_symbols): Update.
9962 * dbxread.c (find_stab_function_addr): Update.
9963 (end_psymtab): Update.
9964 * dwarf2loc.c (call_site_to_target_addr): Update.
9965 (func_verify_no_selftailcall): Update.
9966 (tailcall_dump): Update.
9967 (call_site_find_chain_1): Update.
9968 (dwarf_expr_reg_to_entry_parameter): Update.
9969 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9970 (elf_gnu_ifunc_resolve_by_got): Update.
9971 * f-valprint.c (info_common_command): Update.
9972 * findvar.c (read_var_value): Update.
9973 * frame.c (get_prev_frame_1): Update.
9974 (inside_main_func): Update.
9975 * frv-tdep.c (frv_skip_main_prologue): Update.
9976 (frv_frame_this_id): Update.
9977 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9978 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9979 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9980 (gnuv3_skip_trampoline): Update.
9981 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9982 (hppa64_hpux_in_solib_call_trampoline): Update.
9983 (hppa_hpux_skip_trampoline_code): Update.
9984 (hppa64_hpux_search_dummy_call_sequence): Update.
9985 (hppa_hpux_find_import_stub_for_addr): Update.
9986 (hppa_hpux_find_dummy_bpaddr): Update.
9987 * hppa-tdep.c (hppa_symbol_address)
9988 (hppa_lookup_stub_minimal_symbol): Update.
9989 * i386-tdep.c (i386_skip_main_prologue): Update.
9990 (i386_pe_skip_trampoline_code): Update.
9991 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9992 * infcall.c (get_function_name): Update.
9993 * infcmd.c (until_next_command): Update.
9994 * jit.c (jit_breakpoint_re_set_internal): Update.
9995 (jit_inferior_init): Update.
9996 * linespec.c (minsym_found): Update.
9997 (add_minsym): Update.
9998 * linux-fork.c (info_checkpoints_command): Update.
9999 * linux-nat.c (get_signo): Update.
10000 * linux-thread-db.c (inferior_has_bug): Update.
10001 * m32c-tdep.c (m32c_return_value): Update.
10002 (m32c_m16c_address_to_pointer): Update.
10003 (m32c_m16c_pointer_to_address): Update.
10004 * m32r-tdep.c (m32r_frame_this_id): Update.
10005 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10006 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10007 * maint.c (maintenance_translate_address): Update.
10008 * minsyms.c (add_minsym_to_hash_table): Update.
10009 (add_minsym_to_demangled_hash_table): Update.
10010 (msymbol_objfile): Update.
10011 (lookup_minimal_symbol): Update.
10012 (iterate_over_minimal_symbols): Update.
10013 (lookup_minimal_symbol_text): Update.
10014 (lookup_minimal_symbol_by_pc_name): Update.
10015 (lookup_minimal_symbol_solib_trampoline): Update.
10016 (lookup_minimal_symbol_by_pc_section_1): Update.
10017 (lookup_minimal_symbol_and_objfile): Update.
10018 (prim_record_minimal_symbol_full): Update.
10019 (compare_minimal_symbols): Update.
10020 (compact_minimal_symbols): Update.
10021 (build_minimal_symbol_hash_tables): Update.
10022 (install_minimal_symbols): Update.
10023 (terminate_minimal_symbol_table): Update.
10024 (find_solib_trampoline_target): Update.
10025 (minimal_symbol_upper_bound): Update.
10026 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10027 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10028 (mips_skip_pic_trampoline_code): Update.
10029 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10030 * objc-lang.c (selectors_info): Update.
10031 (classes_info): Update.
10032 (find_methods): Update.
10033 (find_imps): Update.
10034 (find_objc_msgsend): Update.
10035 * objfiles.c (objfile_relocate1): Update.
10036 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10037 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10038 * p-valprint.c (pascal_val_print): Update.
10039 * parse.c (write_exp_msymbol): Update.
10040 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10041 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10042 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10043 * printcmd.c (build_address_symbolic): Update.
10044 (sym_info): Update.
10045 (address_info): Update.
10046 * proc-service.c (ps_pglobal_lookup): Update.
10047 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10048 (find_pc_sect_psymtab): Update.
10049 * python/py-framefilter.c (py_print_frame): Update.
10050 * ravenscar-thread.c (get_running_thread_id): Update.
10051 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10052 Update.
10053 * remote.c (remote_check_symbols): Update.
10054 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10055 (rs6000_skip_trampoline_code): Update.
10056 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10057 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10058 * solib-dsbt.c (lm_base): Update.
10059 * solib-frv.c (lm_base): Update.
10060 (main_got): Update.
10061 * solib-irix.c (locate_base): Update.
10062 * solib-som.c (som_solib_create_inferior_hook): Update.
10063 (som_solib_desire_dynamic_linker_symbols): Update.
10064 (link_map_start): Update.
10065 * solib-spu.c (spu_enable_break): Update.
10066 (ocl_enable_break): Update.
10067 * solib-svr4.c (elf_locate_base): Update.
10068 (enable_break): Update.
10069 * spu-tdep.c (spu_get_overlay_table): Update.
10070 (spu_catch_start): Update.
10071 (flush_ea_cache): Update.
10072 * stabsread.c (define_symbol): Update.
10073 (scan_file_globals): Update.
10074 * stack.c (find_frame_funname): Update.
10075 (frame_info): Update.
10076 * symfile.c (simple_read_overlay_table): Update.
10077 (simple_overlay_update): Update.
10078 * symmisc.c (dump_msymbols): Update.
10079 * symtab.c (fixup_section): Update.
10080 (find_pc_sect_line): Update.
10081 (skip_prologue_sal): Update.
10082 (search_symbols): Update.
10083 (print_msymbol_info): Update.
10084 (rbreak_command): Update.
10085 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10086 (completion_list_objc_symbol): Update.
10087 (default_make_symbol_completion_list_break_on): Update.
10088 * tracepoint.c (scope_info): Update.
10089 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10090 (tui_get_begin_asm_address): Update.
10091 * valops.c (find_function_in_inferior): Update.
10092 * value.c (value_static_field): Update.
10093 (value_fn_field): Update.
10094
50e65b17
TT
100952014-02-26 Tom Tromey <tromey@redhat.com>
10096
10097 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10098 bound minimal symbols. Move code that knows about minsym
10099 table layout...
10100 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10101 function.
10102 * minsyms.h (minimal_symbol_upper_bound): Declare.
10103 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10104 minimal_symbol_upper_bound.
10105
1b588015
JB
101062014-02-27 Joel Brobecker <brobecker@adacore.com>
10107
10108 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10109 Use the type's name if its basic type does not have a tag.
10110
dbb9c2b1
JB
101112014-02-27 Joel Brobecker <brobecker@adacore.com>
10112
10113 * dwarf2read.c (read_subrange_type): Add comment.
10114
55426c9d
JB
101152014-02-27 Joel Brobecker <brobecker@adacore.com>
10116
10117 * dwarf2read.c (update_enumeration_type_from_children): New
10118 function, mostly extracted from process_structure_scope.
10119 (read_enumeration_type): Call update_enumeration_type_from_children.
10120 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10121 and flag_flag_enum fields.
10122
f2fce0ca
PA
101232014-02-26 Pedro Alves <palves@redhat.com>
10124
10125 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10126 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10127 to_xfer_partial method.
10128
7a44e40e
PA
101292014-02-26 Pedro Alves <palves@redhat.com>
10130
10131 * target.c (complete_target_initialization): Don't install
10132 default_xfer_partial as to_xfer_partial hook.
10133 (nomemory): Delete.
10134 (update_current_target): Don't INHERIT nor de_fault
10135 deprecated_xfer_memory. Delete de_fault macro.
10136 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10137 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10138 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10139 field.
10140
bd265cd0
PA
101412014-02-26 Pedro Alves <palves@redhat.com>
10142
10143 * go32-nat.c (my_write_child): New function.
10144 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10145 (go32_xfer_partial): New function.
10146 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10147 Instead install a to_xfer_partial hook.
10148
9d46c4e5
PA
101492014-02-26 Pedro Alves <palves@redhat.com>
10150
10151 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10152 to_xfer_partial helper. Rewrite.
10153 (procfs_xfer_partial): New function.
10154 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10155 Install a to_xfer_partial hook.
10156
a1583b1f
PA
101572014-02-26 Pedro Alves <palves@redhat.com>
10158
10159 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10160 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10161 (m32r_xfer_partial): New function.
10162 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10163 Install a to_xfer_partial hook.
10164
6df1b29f
PA
101652014-02-26 Pedro Alves <palves@redhat.com>
10166
10167 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10168 helper.
10169 (mips_xfer_partial): New function.
10170 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10171 hook. Install a to_xfer_partial hook.
10172
dc53a7ad
JB
101732014-02-26 Joel Brobecker <brobecker@adacore.com>
10174
10175 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10176 * gdbtypes.c (create_array_type_with_stride): New function,
10177 renaming create_array_type, but with an added parameter
10178 called "bit_stride".
10179 (create_array_type): Re-implement using
10180 create_array_type_with_stride.
10181 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10182 and DW_AT_bit_stride attributes.
10183
12ab52e9
PA
101842014-02-26 Pedro Alves <palves@redhat.com>
10185
10186 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10187 task-specific breakpoints.
10188
d16461ae
PA
101892014-02-25 Pedro Alves <palves@redhat.com>
10190
10191 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10192 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10193
a8b16220
SS
101942014-02-25 Stan Shebs <stan@codesourcery.com>
10195
10196 * defs.h: Annotate comments for Doxygen.
10197
b9e795ee
TT
101982014-02-25 Tom Tromey <tromey@redhat.com>
10199
10200 * target.h (target_ignore): Don't declare.
10201 * target.c (target_ignore): Remove.
10202
849c862e
JK
102032014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10204
10205 PR gdb/16626
10206 * auto-load.c (auto_load_objfile_script_1): Change filename to
10207 debugfile.
10208
475109d8
JB
102092014-02-25 Joel Brobecker <brobecker@adacore.com>
10210
10211 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10212 documentation. Adjust prototype to match the target_ops
10213 to_xfer_partial method. Adjust implementation accordingly.
10214
e186c3bd
HZ
102152014-02-25 Hui Zhu <hui@codesourcery.com>
10216
10217 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10218 to_traceframe_info.
10219
6d451942
KB
102202014-02-25 Kevin Buettner <kevinb@redhat.com>
10221
041ab8b4 10222 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10223 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10224 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10225 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10226 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10227 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10228 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10229 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10230 New constants.
10231 (rl78_register_type): Use a data pointer type for SP and
10232 new pseudo registers mentioned above. Use a 16 bit integer
10233 type for all other register pairs.
10234 (rl78_register_name, rl78_g10_register_name): Update for
10235 new pseudo registers.
10236 (rl78_pseudo_register_read): Likewise.
10237 (rl78_pseudo_register_write): Likewise.
10238 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10239 to the newly added pseudo registers.
10240
eddf0bae
DE
102412014-02-24 Doug Evans <dje@google.com>
10242
10243 * value.c (record_latest_value): Fix comment.
10244 * printcmd.c (print_command_1): Remove code to handle -1 return from
10245 record_latest_value.
10246
e96027e0
PA
102472014-02-24 Pedro Alves <palves@redhat.com>
10248
10249 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10250 deprecated_xfer_memory hook.
10251 (procfs_xfer_partial): Call procfs_xfer_memory instead
10252 of the deprecated_xfer_memory target hook.
10253 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10254 helper.
10255
0837c976
YZ
102562014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10257
10258 * windows-nat.c (windows_xfer_shared_libraries): Return
10259 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10260 requested object is TARGET_OBJECT_LIBRARIES.
10261
bc113b4e
YQ
102622014-02-24 Yao Qi <yao@codesourcery.com>
10263
10264 * target.h (enum target_xfer_status)
10265 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10266 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10267 explicitly. New.
10268 * corefile.c (memory_error_message): User updated.
10269 * exec.c (section_table_read_available_memory): Likewise.
10270 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10271 * target.c (target_xfer_status_to_string): Likewise.
10272 (raw_memory_xfer_partial): Likewise.
10273 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10274 * valops.c (read_value_memory): Likewise.
10275 * exec.h: Update comments.
10276
01cb8804
YQ
102772014-02-24 Yao Qi <yao@codesourcery.com>
10278
10279 * target.c (target_xfer_status_to_string): Rename argument err
10280 to status.
10281 * target.h (target_xfer_status_to_string): Update declaration.
10282 Replace target_xfer_error_to_string with
10283 target_xfer_status_to_string in comment.
10284
93063aa6
YQ
102852014-02-24 Yao Qi <yao@codesourcery.com>
10286
10287 * mips-linux-nat.c (super_close): Update its type.
10288 (mips_linux_close): Pass 'self' to super_close.
10289
5c328c05
YQ
102902014-02-24 Yao Qi <yao@codesourcery.com>
10291
10292 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10293 * corefile.c (read_memory): Adjusted.
10294 * target.c (target_write_with_progress): Adjusted.
10295
f73023dd
YQ
102962014-02-23 Yao Qi <yao@codesourcery.com>
10297
10298 Revert two patches:
10299
10300 2013-10-25 Yao Qi <yao@codesourcery.com>
10301
10302 * remote.c (remote_traceframe_info): Return early if
10303 traceframe is not selected.
10304
10305 2013-07-19 Yao Qi <yao@codesourcery.com>
10306
10307 * target.c (update_current_target): Change the default action
10308 of 'to_traceframe_info' from tcomplain to return_zero.
10309 * target.h (struct target_ops) <to_traceframe_info>: Add more
10310 comments.
10311
5a2eb0ef
YQ
103122014-02-23 Yao Qi <yao@codesourcery.com>
10313
10314 * valops.c (read_value_memory): Rewrite it. Call
10315 target_xfer_partial in a loop.
10316 * exec.h (section_table_available_memory): Remove declaration.
10317 Move comments to ...
10318 * exec.c (section_table_available_memory): ... here. Make it
10319 static.
10320
1ee79381
YQ
103212014-02-23 Yao Qi <yao@codesourcery.com>
10322
10323 * exec.c (section_table_read_available_memory): New function.
10324 * exec.h (section_table_read_available_memory): Declare.
10325 * ctf.c (ctf_xfer_partial): Call
10326 section_table_read_available_memory.
10327 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10328
1ca49d37
YQ
103292014-02-23 Yao Qi <yao@codesourcery.com>
10330
10331 * ctf.c (ctf_xfer_partial): Move code to ...
10332 * exec.c (exec_read_partial_read_only): ... it. New function.
10333 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10334 * tracefile.c: Include "exec.h".
10335 * exec.h (exec_read_partial_read_only): Declare.
10336
a283690e
YQ
103372014-02-23 Yao Qi <yao@codesourcery.com>
10338
10339 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10340 (tfile_has_memory): Remove.
10341 (init_tfile_ops): Don't set fields to_has_all_memory and
10342 to_has_memory of tfile_ops.
10343 * tracefile.c (tracefile_has_all_memory): New function.
10344 (tracefile_has_memory): New function.
10345 (init_tracefile_ops): Initialize fields to_has_all_memory and
10346 to_has_memory of 'ops'.
10347
12e03cd0
YQ
103482014-02-23 Yao Qi <yao@codesourcery.com>
10349
10350 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10351 (ctf_thread_alive, ctf_get_trace_status): Remove.
10352 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10353 init_tracefile_ops.
10354 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10355 (tfile_has_stack, tfile_has_registers): Remove.
10356 (tfile_thread_alive): Remove.
10357 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10358 init_tracefile_ops.
10359 * tracefile.c (tracefile_has_stack): New function.
10360 (tracefile_has_registers): New function.
10361 (tracefile_thread_alive): New function.
10362 (tracefile_get_trace_status): New function.
10363 (init_tracefile_ops): New function.
10364 * tracefile.h (init_tracefile_ops): Declare.
10365
11395323
YQ
103662014-02-23 Yao Qi <yao@codesourcery.com>
10367
10368 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10369 (O_LARGEFILE): Likewise.
10370 (tfile_ops): Likewise.
10371 (TRACE_HEADER_SIZE): Likewise.
10372 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10373 (cur_data_size): Likewise.
10374 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10375 (tfile_close, tfile_files_info): Likewise.
10376 (tfile_get_trace_status): Likewise.
10377 (tfile_get_tracepoint_status): Likewise.
10378 (tfile_get_traceframe_address): Likewise.
10379 (tfile_trace_find, match_blocktype): Likewise.
10380 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10381 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10382 (tfile_get_trace_state_variable_value): Likewise.
10383 (tfile_has_all_memory, tfile_has_memory): Likewise.
10384 (tfile_has_stack, tfile_has_registers): Likewise.
10385 (tfile_thread_alive, build_traceframe_info): Likewise.
10386 (tfile_traceframe_info, init_tfile_ops): Likewise.
10387 (_initialize_tracepoint): Don't call init_tfile_ops
10388 and add_target_with_completer.
10389 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10390 exec.h, completer.h and filenames.h.
10391 (_initialize_tracefile_tfile): New function.
10392
7951c4eb
YQ
103932014-02-23 Yao Qi <yao@codesourcery.com>
10394
10395 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10396 tracefile-tfile.o.
10397 (HFILES_NO_SRCDIR): Add tracefile.h.
10398 * ctf.c: Include "tracefile.h".
10399 * tracefile.h: New file.
10400 * tracefile.c: New file
10401 * tracefile-tfile.c: New file.
10402 * tracepoint.c: Include "tracefile.h".
10403 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10404 (stop_reason_names): Add const.
10405 (trace_file_writer_xfree): Move it to tracefile.c.
10406 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10407 (trace_save_ctf): Likewise.
10408 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10409 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10410 (tfile_write_header, tfile_write_regblock_type): Likewise.
10411 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10412 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10413 (tfile_write_raw_data, tfile_end): Likewise.
10414 (tfile_trace_file_writer_new): Likewise.
10415 (free_uploaded_tp): Make it extern.
10416 (free_uploaded_tsv): Make it extern.
10417 (_initialize_tracepoint): Move code to register command 'tsave'
10418 to tracefile.c.
10419 * tracepoint.h (stop_reason_names): Declare.
10420 (struct trace_frame_write_ops): Move it to tracefile.h.
10421 (struct trace_file_write_ops): Likewise.
10422 (struct trace_file_writer): Likewise.
10423 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10424
184cd072
JK
104252014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10426
10427 PR gdb/16594
10428 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10429 process name.
10430 (get_cores_used_by_process): New parameter num_cores, use it.
10431 (linux_xfer_osdata_processes): Pass num_cores to it.
10432 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10433 process name.
10434
c63528fc
AK
104352014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10436
10437 * target.c (memory_xfer_partial): Fix length arg in call to
10438 breakpoint_xfer_memory.
10439
d7b30f67
SDJ
104402014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10441
10442 PR tdep/16397
10443 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10444 number comes after the + or - signs. Adjust length of register
10445 name to be extracted.
10446
8838afaf
TT
104472014-02-20 Tom Tromey <tromey@redhat.com>
10448
10449 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10450 (ada_varobj_ops): Mark "extern".
10451
05227d14
TT
104522014-02-20 Tom Tromey <tromey@redhat.com>
10453
10454 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10455
1254eefc
DE
104562014-02-20 Doug Evans <xdje42@gmail.com>
10457
10458 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10459 All callers updated.
10460 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10461 All callers updated.
10462 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10463 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10464
adde2bff
DE
104652014-02-20 lin zuojian <manjian2006@gmail.com>
10466 Joel Brobecker <brobecker@adacore.com>
10467 Doug Evans <xdje42@gmail.com>
10468
10469 PR symtab/16581
10470 * dwarf2read.c (struct die_info): New member in_process.
10471 (reset_die_in_process): New function.
10472 (process_die): Set it at the start, reset when returning.
10473 (inherit_abstract_dies): Only call process_die if origin_child_die
10474 not already being processed.
10475
3be75f87
JB
104762014-02-20 Joel Brobecker <brobecker@adacore.com>
10477
10478 * windows-nat.c (handle_unload_dll): Add function documentation.
10479 (do_initial_windows_stuff): Add comment explaining why we wait
10480 until after inferior initialization has finished before
10481 processing all DLLs.
10482
47f7ffdb
JB
104832014-02-20 Joel Brobecker <brobecker@adacore.com>
10484
10485 * windows-nat.c (get_module_name): Delete.
10486 (windows_get_exec_module_filename): New function, mostly
10487 inspired from get_module_name.
10488 (windows_pid_to_exec_file): Replace call to get_module_name
10489 by call to windows_get_exec_module_filename.
10490
1cd9feab
JB
104912014-02-20 Joel Brobecker <brobecker@adacore.com>
10492
10493 * windows-nat.c (handle_load_dll): Rewrite this function's
10494 introductory comment. Remove code using get_module_name
10495 to get the DLL's name.
10496
ea39ad35
JB
104972014-02-20 Joel Brobecker <brobecker@adacore.com>
10498
10499 * windows-nat.c (get_windows_debug_event): Ignore
10500 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10501 if windows_initialization_done == 0.
10502 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10503 Adjust implementation to always load all DLLs.
10504 (do_initial_windows_stuff): Replace call to
10505 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10506
95060284
JB
105072014-02-20 Joel Brobecker <brobecker@adacore.com>
10508
10509 * windows-nat.c (_initialize_windows_nat): Deprecate the
10510 "dll-symbols" command. Turn the "add-shared-symbol-files"
10511 and "assf" aliases into commands, and deprecate them as well.
10512 * NEWS: Add entry explaining that "dll-symbols" and its two
10513 aliases are now deprecated.
10514
8d4fdb12
JB
105152014-02-20 Joel Brobecker <brobecker@adacore.com>
10516
10517 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10518 new-line in debug string. Remove trailing spaces.
10519
1b281443
SS
105202014-02-19 Stan Shebs <stan@codesourcery.com>
10521
10522 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10523
f7bd0f78
SC
105242014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10525
10526 * NEWS: Add entry for the new feature
10527 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10528 and class values.
10529
399ebc3d
SS
105302014-02-19 Stan Shebs <stan@codesourcery.com>
10531
10532 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10533
c658158d
PA
105342014-02-19 Pedro Alves <palves@redhat.com>
10535
10536 * common/ptid.h (struct ptid): Mention that process_stratum
10537 targets should prefer ptid.lwp.
10538
ba348170
PA
105392014-02-19 Pedro Alves <palves@redhat.com>
10540
10541 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10542 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10543 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10544 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10545 store remote thread ids rather than ptid.tid.
10546 (_initialize_remote): Adjust.
10547
ac01945b
TT
105482014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target.c (target_get_unwinder): Rewrite.
10551 (target_get_tailcall_unwinder): Rewrite.
10552 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10553 (record_btrace_to_get_tailcall_unwinder): New function.
10554 (init_record_btrace_ops): Update.
10555 * target.h (struct target_ops) <to_get_unwinder,
10556 to_get_tailcall_unwinder>: Now function pointers. Use
10557 TARGET_DEFAULT_RETURN.
10558
8476dc92
TT
105592014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10562 argument.
10563 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10564
c0eca49f
TT
105652014-02-19 Tom Tromey <tromey@redhat.com>
10566
10567 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10568 directly.
10569 * target-delegates.c: Rebuild.
10570 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10571 TARGET_DEFAULT_FUNC.
10572 * target.c (default_target_decr_pc_after_break): Rename from
10573 forward_target_decr_pc_after_break. Simplify.
10574 (target_decr_pc_after_break): Rely on delegation.
10575
596b6b39
TT
105762014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target.c (update_current_target): Do not INHERIT to_doc or
10579 to_magic. Do not de_fault to_open or to_close.
10580
b427c1bc
TT
105812014-02-19 Tom Tromey <tromey@redhat.com>
10582
10583 * gcore.h (objfile_find_memory_regions): Declare.
10584 * gcore.c (objfile_find_memory_regions): No longer static. Add
10585 "self" argument.
10586 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10587 * exec.c: Include gcore.h.
10588 (exec_set_find_memory_regions): Remove.
10589 (exec_find_memory_regions): Remove.
10590 (exec_do_find_memory_regions): Remove.
10591 (init_exec_ops): Update.
10592 * defs.h (exec_set_find_memory_regions): Remove.
10593
9b144037
TT
105942014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * target-delegates.c: Rebuild.
10597 * target.h (struct target_ops) <to_extra_thread_info,
10598 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10599 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10600 not 0, in TARGET_DEFAULT_RETURN.
10601
555bbdeb
TT
106022014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * target.c (complete_target_initialization): Remove casts. Use
10605 return_zero_has_execution.
10606 (return_zero): Add "ignore" argument.
10607 (return_zero_has_execution): New function.
10608 (init_dummy_target): Remove casts. Use
10609 return_zero_has_execution.
10610
be4ddd36
TT
106112014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target.c (update_current_target): Update comments. Do not
10614 INHERIT to_stratum.
10615
2117c711
TT
106162014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10619 needed.
10620 * corelow.c (core_read_description): Delegate when needed.
10621 * remote.c (remote_read_description): Delegate when needed.
10622 * target-delegates.c: Rebuild.
10623 * target.c (target_read_description): Rewrite.
10624 * target.h (struct target_ops) <to_read_description>: Update
10625 comment. Use TARGET_DEFAULT_RETURN.
10626
e88ef65c
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_can_run.
10632 (find_default_run_target): Check against delegate_can_run.
10633 * target.h (struct target_ops) <to_can_run>: Use
10634 TARGET_DEFAULT_RETURN.
10635
86a0854a
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target-delegates.c: Rebuild.
10639 * target.c (target_disconnect): Unconditionally delegate.
10640 * target.h (struct target_ops) <to_disconnect>: Use
10641 TARGET_DEFAULT_NORETURN.
10642
ee97f592
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * record.c (record_stop): Unconditionally delegate.
10646 * target-delegates.c: Rebuild.
10647 * target.c (target_stop_recording): Unconditionally delegate.
10648 * target.h (struct target_ops) <to_stop_recording>: Use
10649 TARGET_DEFAULT_IGNORE.
10650
6dc7fcf4
TT
106512014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * target-delegates.c: Rebuild.
10654 * target.c (target_enable_btrace): Unconditionally delegate.
10655 * target.h (struct target_ops) <to_enable_btrace>: Use
10656 TARGET_DEFAULT_NORETURN.
10657
eb5b20d4
TT
106582014-02-19 Tom Tromey <tromey@redhat.com>
10659
10660 * target-delegates.c: Rebuild.
10661 * target.c (target_read_btrace): Unconditionally delegate.
10662 * target.h (struct target_ops) <to_read_btrace>: Use
10663 TARGET_DEFAULT_NORETURN.
10664
9ace480d
TT
106652014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * target-delegates.c: Rebuild.
10668 * target.c (target_teardown_btrace): Unconditionally delegate.
10669 * target.h (struct target_ops) <to_teardown_btrace>: Use
10670 TARGET_DEFAULT_NORETURN.
10671
8dc292d3
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.c (target_disable_btrace): Unconditionally delegate.
10676 * target.h (struct target_ops) <to_disable_btrace>: Use
10677 TARGET_DEFAULT_NORETURN.
10678
58a5184e
TT
106792014-02-19 Tom Tromey <tromey@redhat.com>
10680
10681 * target-delegates.c: Rebuild.
10682 * target.c (default_search_memory): New function.
10683 (simple_search_memory): Update comment.
10684 (target_search_memory): Unconditionally delegate.
10685 * target.h (struct target_ops) <to_search_memory>: Use
10686 TARGET_DEFAULT_FUNC.
10687
8de71aab
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * auxv.c (default_auxv_parse): No longer static.
10691 (target_auxv_parse): Unconditionally delegate.
10692 * auxv.h (default_auxv_parse): Declare.
10693 * target-delegates.c: Rebuild.
10694 * target.c: Include auxv.h.
10695 * target.h (struct target_ops) <to_auxv_parse>: Use
10696 TARGET_DEFAULT_FUNC.
10697
6b2c5a57
TT
106982014-02-19 Tom Tromey <tromey@redhat.com>
10699
10700 * target-delegates.c: Rebuild.
10701 * target.c (target_memory_map): Unconditionally delegate.
10702 * target.h (struct target_ops) <to_memory_map>: Use
10703 TARGET_DEFAULT_RETURN.
10704
cbffc065
TT
107052014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * target-delegates.c: Rebuild.
10708 * target.c (target_thread_alive): Unconditionally delegate.
10709 * target.h (struct target_ops) <to_thread_alive>: Use
10710 TARGET_DEFAULT_RETURN.
10711
f09e2107
TT
107122014-02-19 Tom Tromey <tromey@redhat.com>
10713
10714 * target-delegates.c: Rebuild.
10715 * target.c (target_save_record): Unconditionally delegate.
10716 * target.h (struct target_ops) <to_save_record>: Use
10717 TARGET_DEFAULT_NORETURN.
10718
07366925
TT
107192014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target-delegates.c: Rebuild.
10722 * target.c (target_delete_record): Unconditionally delegate.
10723 * target.h (struct target_ops) <to_delete_record>: Use
10724 TARGET_DEFAULT_NORETURN.
10725
dd2e9d25
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (target_record_is_replaying): Unconditionally
10730 delegate.
10731 * target.h (struct target_ops) <to_record_is_replaying>: Use
10732 TARGET_DEFAULT_RETURN.
10733
671e76cc
TT
107342014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target-delegates.c: Rebuild.
10737 * target.c (target_goto_record_begin): Unconditionally delegate.
10738 * target.h (struct target_ops) <to_goto_record_begin>: Use
10739 TARGET_DEFAULT_NORETURN.
10740
e9179bb3
TT
107412014-02-19 Tom Tromey <tromey@redhat.com>
10742
10743 * target-delegates.c: Rebuild.
10744 * target.c (target_goto_record_end): Unconditionally delegate.
10745 * target.h (struct target_ops) <to_goto_record_end>: Use
10746 TARGET_DEFAULT_NORETURN.
10747
05969c84
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (target_goto_record): Unconditionally delegate.
10752 * target.h (struct target_ops) <to_goto_record>: Use
10753 TARGET_DEFAULT_NORETURN.
10754
3679abfa
TT
107552014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target-delegates.c: Rebuild.
10758 * target.c (target_insn_history): Unconditionally delegate.
10759 * target.h (struct target_ops) <to_insn_history>: Use
10760 TARGET_DEFAULT_NORETURN.
10761
8444ab58
TT
107622014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target-delegates.c: Rebuild.
10765 * target.c (target_insn_history_from): Unconditionally delegate.
10766 * target.h (struct target_ops) <to_insn_history_from>: Use
10767 TARGET_DEFAULT_NORETURN.
10768
c29302cc
TT
107692014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target-delegates.c: Rebuild.
10772 * target.c (target_insn_history_range): Unconditionally delegate.
10773 * target.h (struct target_ops) <to_insn_history_range>: Use
10774 TARGET_DEFAULT_NORETURN.
10775
170049d4
TT
107762014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target-delegates.c: Rebuild.
10779 * target.c (target_call_history): Unconditionally delegate.
10780 * target.h (struct target_ops) <to_call_history>: Use
10781 TARGET_DEFAULT_NORETURN.
10782
16fc27d6
TT
107832014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target-delegates.c: Rebuild.
10786 * target.c (target_call_history_from): Unconditionally delegate.
10787 * target.h (struct target_ops) <to_call_history_from>: Use
10788 TARGET_DEFAULT_NORETURN.
10789
115d9817
TT
107902014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (target_call_history_range): Unconditionally delegate.
10794 * target.h (struct target_ops) <to_call_history_range>: Use
10795 TARGET_DEFAULT_NORETURN.
10796
eb276a6b
TT
107972014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (target_verify_memory): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_verify_memory>: Use
10802 TARGET_DEFAULT_NORETURN.
10803
9e538d0d
TT
108042014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target-delegates.c: Rebuild.
10807 * target.c (target_core_of_thread): Unconditionally delegate.
10808 * target.h (struct target_ops) <to_core_of_thread>: Use
10809 TARGET_DEFAULT_RETURN.
10810
f6fb2925
TT
108112014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target-delegates.c: Rebuild.
10814 * target.c (target_flash_done): Unconditionally delegate.
10815 * target.h (struct target_ops) <to_flash_done>: Use
10816 TARGET_DEFAULT_NORETURN.
10817
e8a6c6ac
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target-delegates.c: Rebuild.
10821 * target.c (target_flash_erase): Unconditionally delegate.
10822 * target.h (struct target_ops) <to_flash_erase>: Use
10823 TARGET_DEFAULT_NORETURN.
10824
7e35c012
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target-delegates.c: Rebuild.
10828 * target.c (target_get_section_table): Unconditionally delegate.
10829 * target.h (struct target_ops) <to_get_section_table>: Use
10830 TARGET_DEFAULT_RETURN.
10831
770234d3
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target-delegates.c: Rebuild.
10835 * target.c (target_pid_to_str): Unconditionally delegate.
10836 (init_dummy_target): Don't initialize to_pid_to_str.
10837 (default_pid_to_str): Rename from dummy_pid_to_str.
10838 * target.h (struct target_ops) <to_pid_to_str>: Use
10839 TARGET_DEFAULT_FUNC.
10840
09b0dc2b
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target-delegates.c: Rebuild.
10844 * target.c (target_find_new_threads): Unconditionally delegate.
10845 * target.h (struct target_ops) <to_find_new_threads>: Use
10846 TARGET_DEFAULT_RETURN.
10847
7d4f8efa
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target-delegates.c: Rebuild.
10851 * target.c (target_program_signals): Unconditionally delegate.
10852 * target.h (struct target_ops) <to_program_signals>: Use
10853 TARGET_DEFAULT_IGNORE.
10854
035cad7f
TT
108552014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * target-delegates.c: Rebuild.
10858 * target.c (target_pass_signals): Unconditionally delegate.
10859 * target.h (struct target_ops) <to_pass_signals>: Use
10860 TARGET_DEFAULT_IGNORE.
10861
8d657035
TT
108622014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target-delegates.c: Rebuild.
10865 * target.c (default_mourn_inferior): New function.
10866 (target_mourn_inferior): Unconditionally delegate.
10867 * target.h (struct target_ops) <to_mourn_inferior>: Use
10868 TARGET_DEFAULT_FUNC.
10869
098dba18
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target-delegates.c: Rebuild.
10873 * target.c (default_follow_fork): New function.
10874 (target_follow_fork): Unconditionally delegate.
10875 * target.h (struct target_ops) <to_follow_fork>: Use
10876 TARGET_DEFAULT_FUNC.
10877
423a4807
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target-delegates.c: Rebuild.
10881 * target.c (target_kill): Unconditionally delegate.
10882 * target.h (struct target_ops) <to_kill>: Use
10883 TARGET_DEFAULT_NORETURN.
10884
6c7e5e5c
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target-delegates.c: Rebuild.
10888 * target.c (target_masked_watch_num_registers): Unconditionally
10889 delegate.
10890 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10891 Use TARGET_DEFAULT_RETURN.
10892
8b1c364c
TT
108932014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target-delegates.c: Rebuild.
10896 * target.c (target_remove_mask_watchpoint): Unconditionally
10897 delegate.
10898 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10899 TARGET_DEFAULT_RETURN.
10900
cd4ae029
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target-delegates.c: Rebuild.
10904 * target.c (target_insert_mask_watchpoint): Unconditionally
10905 delegate.
10906 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10907 TARGET_DEFAULT_RETURN.
10908
a134316b
TT
109092014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target-delegates.c: Rebuild.
10912 * target.c (target_ranged_break_num_registers): Unconditionally
10913 delegate.
10914 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10915 Use TARGET_DEFAULT_RETURN.
10916
ad5989bd
TT
109172014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target-delegates.c: Rebuild.
10920 * target.c (target_fetch_registers): Unconditionally delegate.
10921 * target.h (struct target_ops) <to_fetch_registers>: Use
10922 TARGET_DEFAULT_NORETURN.
10923
46ee7e8d
TT
109242014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target-delegates.c: Rebuild.
10927 * target.c (update_current_target): Don't inherit or default
10928 to_stop.
10929 * target.h (struct target_ops) <to_stop>: Use
10930 TARGET_DEFAULT_IGNORE.
10931
843f59ed
TT
109322014-02-19 Tom Tromey <tromey@redhat.com>
10933
10934 * target-delegates.c: Rebuild.
10935 * target.c (update_current_target): Don't inherit or default
10936 to_can_run_breakpoint_commands.
10937 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10938 Use TARGET_DEFAULT_RETURN.
10939
ccfde2a0
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.c (update_current_target): Don't inherit or default
10944 to_supports_evaluation_of_breakpoint_conditions.
10945 * target.h (struct target_ops)
10946 <to_supports_evaluation_of_breakpoint_conditions>: Use
10947 TARGET_DEFAULT_RETURN.
10948
0de91722
TT
109492014-02-19 Tom Tromey <tromey@redhat.com>
10950
10951 * target-delegates.c: Rebuild.
10952 * target.c (update_current_target): Don't inherit or default
10953 to_augmented_libraries_svr4_read.
10954 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10955 Use TARGET_DEFAULT_RETURN.
10956
9a7d8b48
TT
109572014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target-delegates.c: Rebuild.
10960 * target.c (update_current_target): Don't inherit or default
10961 to_can_use_agent.
10962 * target.h (struct target_ops) <to_can_use_agent>: Use
10963 TARGET_DEFAULT_RETURN.
10964
d9db5b21
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target-delegates.c: Rebuild.
10968 * target.c (update_current_target): Don't inherit or default
10969 to_use_agent.
10970 * target.h (struct target_ops) <to_use_agent>: Use
10971 TARGET_DEFAULT_NORETURN.
10972
92155eeb
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target-delegates.c: Rebuild.
10976 * target.c (update_current_target): Don't inherit or default
10977 to_traceframe_info.
10978 (return_null): Remove.
10979 * target.h (struct target_ops) <to_traceframe_info>: Use
10980 TARGET_DEFAULT_RETURN.
10981
d6522a22
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (update_current_target): Don't inherit or default
10986 to_static_tracepoint_markers_by_strid.
10987 * target.h (struct target_ops)
10988 <to_static_tracepoint_markers_by_strid>: Use
10989 TARGET_DEFAULT_NORETURN.
10990
4c3e4425
TT
109912014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target-delegates.c: Rebuild.
10994 * target.c (update_current_target): Don't inherit or default
10995 to_static_tracepoint_marker_at.
10996 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10997 Use TARGET_DEFAULT_RETURN.
10998
dcd6917f
TT
109992014-02-19 Tom Tromey <tromey@redhat.com>
11000
11001 * target-delegates.c: Rebuild.
11002 * target.c (update_current_target): Don't inherit or default
11003 to_set_permissions.
11004 * target.h (struct target_ops) <to_set_permissions>: Use
11005 TARGET_DEFAULT_IGNORE.
11006
22bcceee
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target-delegates.c: Rebuild.
11010 * target.c (update_current_target): Don't inherit or default
11011 to_get_tib_address.
11012 * target.h (struct target_ops) <to_get_tib_address>: Use
11013 TARGET_DEFAULT_NORETURN.
11014
8586ccaa
TT
110152014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target-delegates.c: Rebuild.
11018 * target.c (update_current_target): Don't inherit or default
11019 to_set_trace_notes.
11020 * target.h (struct target_ops) <to_set_trace_notes>: Use
11021 TARGET_DEFAULT_RETURN.
11022
91df8d1d
TT
110232014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * target-delegates.c: Rebuild.
11026 * target.c (update_current_target): Don't initialize
11027 to_set_trace_buffer_size.
11028 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11029 TARGET_DEFAULT_IGNORE.
11030
8d526939
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target-delegates.c: Rebuild.
11034 * target.c (update_current_target): Don't inherit or default
11035 to_set_circular_trace_buffer.
11036 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11037 TARGET_DEFAULT_IGNORE.
11038
0bcfeddf
TT
110392014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target-delegates.c: Rebuild.
11042 * target.c (update_current_target): Don't inherit or default
11043 to_set_disconnected_tracing.
11044 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11045 TARGET_DEFAULT_IGNORE.
11046
9249843f
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target-delegates.c: Rebuild.
11050 * target.c (update_current_target): Don't inherit or default
11051 to_get_min_fast_tracepoint_insn_len.
11052 (return_minus_one): Remove.
11053 * target.h (struct target_ops)
11054 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11055
ace92e7d
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target-delegates.c: Rebuild.
11059 * target.c (update_current_target): Don't inherit or default
11060 to_get_raw_trace_data.
11061 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11062 TARGET_DEFAULT_NORETURN.
11063
08120467
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target-delegates.c: Rebuild.
11067 * target.c (update_current_target): Don't inherit or default
11068 to_upload_trace_state_variables.
11069 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11070 Use TARGET_DEFAULT_RETURN.
11071
1e949b00
TT
110722014-02-19 Tom Tromey <tromey@redhat.com>
11073
11074 * target-delegates.c: Rebuild.
11075 * target.c (update_current_target): Don't inherit or default
11076 to_upload_tracepoints.
11077 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11078 TARGET_DEFAULT_RETURN.
11079
a2e6c147
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target-delegates.c: Rebuild.
11083 * target.c (update_current_target): Don't inherit or default
11084 to_save_trace_data.
11085 * target.h (struct target_ops) <to_save_trace_data>: Use
11086 TARGET_DEFAULT_NORETURN.
11087
959bcd0b
TT
110882014-02-19 Tom Tromey <tromey@redhat.com>
11089
11090 * target-delegates.c: Rebuild.
11091 * target.c (update_current_target): Don't inherit or default
11092 to_get_trace_state_variable_value.
11093 * target.h (struct target_ops)
11094 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11095
afc94e66
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target-delegates.c: Rebuild.
11099 * target.c (update_current_target): Don't inherit or default
11100 to_trace_find.
11101 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11102
e51c07ea
TT
111032014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target-delegates.c: Rebuild.
11106 * target.c (update_current_target): Don't inherit or default
11107 to_trace_stop.
11108 * target.h (struct target_ops) <to_trace_stop>: Use
11109 TARGET_DEFAULT_NORETURN.
11110
6fea14cd
TT
111112014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * target-delegates.c: Rebuild.
11114 * target.c (update_current_target): Don't inherit or default
11115 to_get_tracepoint_status.
11116 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11117 TARGET_DEFAULT_NORETURN.
11118
4072d4ff
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target-delegates.c: Rebuild.
11122 * target.c (update_current_target): Don't inherit or default
11123 to_get_trace_status.
11124 * target.h (struct target_ops) <to_get_trace_status>: Use
11125 TARGET_DEFAULT_RETURN.
11126
25da2e80
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target-delegates.c: Rebuild.
11130 * target.c (update_current_target): Don't inherit or default
11131 to_trace_start.
11132 * target.h (struct target_ops) <to_trace_start>: Use
11133 TARGET_DEFAULT_NORETURN.
11134
86dd181d
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target-delegates.c: Rebuild.
11138 * target.c (update_current_target): Don't inherit or default
11139 to_trace_set_readonly_regions.
11140 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11141 Use TARGET_DEFAULT_NORETURN.
11142
05c41993
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target-delegates.c: Rebuild.
11146 * target.c (update_current_target): Don't inherit or default
11147 to_disable_tracepoint.
11148 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11149 TARGET_DEFAULT_NORETURN.
11150
151f70f1
TT
111512014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target-delegates.c: Rebuild.
11154 * target.c (update_current_target): Don't inherit or default
11155 to_enable_tracepoint.
11156 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11157 TARGET_DEFAULT_NORETURN.
11158
94eb98b9
TT
111592014-02-19 Tom Tromey <tromey@redhat.com>
11160
11161 * target-delegates.c: Rebuild.
11162 * target.c (update_current_target): Don't inherit or default
11163 to_download_trace_state_variable.
11164 * target.h (struct target_ops) <to_download_trace_state_variable>:
11165 Use TARGET_DEFAULT_NORETURN.
11166
719acc4a
TT
111672014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target-delegates.c: Rebuild.
11170 * target.c (update_current_target): Don't inherit or default
11171 to_can_download_tracepoint.
11172 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11173 TARGET_DEFAULT_RETURN.
11174
9a980a22
TT
111752014-02-19 Tom Tromey <tromey@redhat.com>
11176
11177 * target-delegates.c: Rebuild.
11178 * target.c (update_current_target): Don't inherit or default
11179 to_download_tracepoint.
11180 * target.h (struct target_ops) <to_download_tracepoint>: Use
11181 TARGET_DEFAULT_NORETURN.
11182
5536135b
TT
111832014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target-delegates.c: Rebuild.
11186 * target.c (update_current_target): Don't inherit or default
11187 to_trace_init.
11188 * target.h (struct target_ops) <to_trace_init>: Use
11189 TARGET_DEFAULT_RETURN.
11190
9409d39e
TT
111912014-02-19 Tom Tromey <tromey@redhat.com>
11192
11193 * target-delegates.c: Rebuild.
11194 * target.c (update_current_target): Don't inherit or default
11195 to_supports_string_tracing.
11196 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11197 TARGET_DEFAULT_RETURN.
11198
aab1b22d
TT
111992014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target-delegates.c: Rebuild.
11202 * target.c (update_current_target): Don't inherit or default
11203 to_supports_enable_disable_tracepoint.
11204 * target.h (struct target_ops)
11205 <to_supports_enable_disable_tracepoint>: Use
11206 TARGET_DEFAULT_RETURN.
11207
a7304748
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't inherit or default
11212 to_supports_multi_process.
11213 * target.h (struct target_ops) <to_supports_multi_process>: Use
11214 TARGET_DEFAULT_RETURN.
11215
4229b31d
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (update_current_target): Don't inherit or default
11220 to_get_ada_task_ptid.
11221 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11222 TARGET_DEFAULT_FUNC.
11223
43eba180
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target-delegates.c: Rebuild.
11227 * target.c (update_current_target): Don't inherit or default
11228 to_thread_architecture.
11229 * target.h (struct target_ops) <to_thread_architecture>: Use
11230 TARGET_DEFAULT_FUNC.
11231
fe31bf5b
TT
112322014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target-delegates.c: Rebuild.
11235 * target.c (update_current_target): Don't inherit or default
11236 to_execution_direction.
11237 * target.h (struct target_ops) <to_execution_direction>: Use
11238 TARGET_DEFAULT_FUNC.
11239
53e1cfc7
TT
112402014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * target-delegates.c: Rebuild.
11243 * target.c (update_current_target): Don't inherit or default
11244 to_can_execute_reverse.
11245 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11246 TARGET_DEFAULT_RETURN.
11247 (target_can_execute_reverse): Unconditionally delegate.
11248
9bb9d61d
TT
112492014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target-delegates.c: Rebuild.
11252 * target.c (update_current_target): Don't inherit or default
11253 to_goto_bookmark.
11254 (dummy_goto_bookmark): Remove.
11255 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11256 * target.h (struct target_ops) <to_goto_bookmark>: Use
11257 TARGET_DEFAULT_NORETURN.
11258
3dbafbbb
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target-delegates.c: Rebuild.
11262 * target.c (update_current_target): Don't inherit or default
11263 to_get_bookmark.
11264 (dummy_get_bookmark): Remove.
11265 (init_dummy_target): Don't inherit or default to_get_bookmark.
11266 * target.h (struct target_ops) <to_get_bookmark>: Use
11267 TARGET_DEFAULT_NORETURN
11268
16f796b1
TT
112692014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (update_current_target): Don't inherit or default
11273 to_make_corefile_notes.
11274 (init_dummy_target): Don't initialize to_make_corefile_notes.
11275 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11276 TARGET_DEFAULT_FUNC.
11277
0b5a2719
TT
112782014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_find_memory_regions.
11283 (init_dummy_target): Don't initialize to_find_memory_regions.
11284 * target.h (struct target_ops) <to_find_memory_regions>: Use
11285 TARGET_DEFAULT_FUNC.
11286
d9cb0195
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target-delegates.c: Rebuild.
11290 * target.c (update_current_target): Don't inherit or default
11291 to_log_command.
11292 * target.h (struct target_ops) <to_log_command>: Use
11293 TARGET_DEFAULT_IGNORE.
11294 (target_log_command): Unconditionally delegate.
11295
830ca330
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (update_current_target): Don't inherit or default
11300 to_pid_to_exec_file.
11301 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11302 TARGET_DEFAULT_RETURN.
11303
825828fc
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (update_current_target): Don't inherit or default
11308 to_thread_name.
11309 (target_thread_name): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_thread_name>: Use
11311 TARGET_DEFAULT_RETURN.
11312
4a7e6dda
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target-delegates.c: Rebuild.
11316 * target.c (update_current_target): Don't inherit or default
11317 to_extra_thread_info.
11318 * target.h (struct target_ops) <to_extra_thread_info>: Use
11319 TARGET_DEFAULT_RETURN.
11320
0db88c1d
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.c (update_current_target): Don't inherit or default
11325 to_has_exited.
11326 * target.h (struct target_ops) <to_has_exited>: Use
11327 TARGET_DEFAULT_RETURN..
11328
6a9fa051
TT
113292014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target-delegates.c: Rebuild.
11332 * target.c (update_current_target): Don't inherit or default
11333 to_set_syscall_catchpoint.
11334 (return_one): Remove.
11335 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11336 TARGET_DEFAULT_RETURN.
11337
62f64d7a
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target-delegates.c: Rebuild.
11341 * target.c (update_current_target): Don't inherit or default
11342 to_insert_exec_catchpoint.
11343 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11344 TARGET_DEFAULT_RETURN.
11345
cda0f38c
TT
113462014-01-08 Tom Tromey <tromey@redhat.com>
11347
11348 * target-delegates.c: Rebuild.
11349 * target.c (update_current_target): Don't inherit or default
11350 to_insert_exec_catchpoint.
11351 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11352 TARGET_DEFAULT_RETURN.
11353
95c3375e
TT
113542014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * target-delegates.c: Rebuild.
11357 * target.c (update_current_target): Don't inherit or default
11358 to_remove_vfork_catchpoint.
11359 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11360 TARGET_DEFAULT_RETURN.
11361
7e18a8dc
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target-delegates.c: Rebuild.
11365 * target.c (update_current_target): Don't inherit or default
11366 to_insert_vfork_catchpoint.
11367 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11368 TARGET_DEFAULT_RETURN.
11369
e1a21fb7
TT
113702014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target-delegates.c: Rebuild.
11373 * target.c (update_current_target): Don't inherit or default
11374 to_remove_fork_catchpoint.
11375 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11376 TARGET_DEFAULT_RETURN.
11377
5958ebeb
TT
113782014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target-delegates.c: Rebuild.
11381 * target.c (update_current_target): Don't inherit or default
11382 to_insert_fork_catchpoint.
11383 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11384 TARGET_DEFAULT_RETURN.
11385
340ba4bf
TT
113862014-02-19 Tom Tromey <tromey@redhat.com>
11387
11388 * target-delegates.c: Rebuild.
11389 * target.c (update_current_target): Don't inherit or default
11390 to_post_startup_inferior.
11391 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11392 TARGET_DEFAULT_IGNORE.
11393
7634da87
TT
113942014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target-delegates.c: Rebuild.
11397 * target.c (update_current_target): Don't inherit or default
11398 to_load.
11399 * target.h (struct target_ops) <to_load>: Use
11400 TARGET_DEFAULT_NORETURN.
11401
e19e919f
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target-delegates.c: Rebuild.
11405 * target.c (update_current_target): Don't inherit or default
11406 to_terminal_info.
11407 * target.h (struct target_ops) <to_terminal_info>: Use
11408 TARGET_DEFAULT_FUNC.
11409
c6ea8f79
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_terminal_save_ours.
11415 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11416 TARGET_DEFAULT_IGNORE.
11417
e4a733f1
TT
114182014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (update_current_target): Don't inherit or default
11422 to_terminal_ours.
11423 * target.h (struct target_ops) <to_terminal_ours>: Use
11424 TARGET_DEFAULT_IGNORE.
11425
74fcbef9
TT
114262014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target-delegates.c: Rebuild.
11429 * target.c (update_current_target): Don't inherit or default
11430 to_terminal_ours_for_output.
11431 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11432 TARGET_DEFAULT_IGNORE.
11433
ddeaacc9
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * target-delegates.c: Rebuild.
11437 * target.c (update_current_target): Don't inherit or default
11438 to_terminal_inferior.
11439 * target.h (struct target_ops) <to_terminal_inferior>: Use
11440 TARGET_DEFAULT_IGNORE.
11441
0343661d
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't inherit or default
11446 to_terminal_init.
11447 * target.h (struct target_ops) <to_terminal_init>: Use
11448 TARGET_DEFAULT_IGNORE.
11449
77cdffe9
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target-delegates.c: Rebuild.
11453 * target.c (update_current_target): Don't inherit or default
11454 to_can_accel_watchpoint_condition.
11455 * target.h (struct target_ops)
11456 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11457
d03655e4
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_region_ok_for_hw_watchpoint.
11463 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11464 Use TARGET_DEFAULT_FUNC.
11465
65f160a9
TT
114662014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11470 to_watchpoint_addr_within_range.
11471 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11472 Use TARGET_DEFAULT_FUNC.
11473
61dd109f
TT
114742014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target-delegates.c: Rebuild.
11477 * target.c (update_current_target): Don't inherit or default
11478 to_remove_watchpoint.
11479 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11480 TARGET_DEFAULT_NORETURN.
11481
016facd4
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (update_current_target): Don't inherit or default
11486 to_insert_watchpoint.
11487 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11488 TARGET_DEFAULT_RETURN.
11489
418dabac
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target-delegates.c: Rebuild.
11493 * target.c (update_current_target): Don't inherit or default
11494 to_remove_hw_breakpoint.
11495 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11496 TARGET_DEFAULT_RETURN.
11497
61b371f9
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_insert_hw_breakpoint.
11503 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11504 TARGET_DEFAULT_RETURN.
11505
52b51d06
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_can_use_hw_breakpoint.
11511 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11512 TARGET_DEFAULT_RETURN.
11513
f86e59b2
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_files_info.
11519 * target.h (struct target_ops) <to_files_info>: Use
11520 TARGET_DEFAULT_IGNORE.
11521
6c628163
TT
115222014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11526 to_store.
11527 * target.h (struct target_ops) <to_store>: Use
11528 TARGET_DEFAULT_NORETURN.
11529
bebd3233
TT
115302014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_post_attach.
11535 * target.h (struct target_ops) <to_post_attach>: Use
11536 TARGET_DEFAULT_IGNORE.
11537
a53f3625
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_rcmd.
11543 (default_rcmd): New function.
11544 (do_monitor_command): Unconditionally delegate.
11545 * target.h (struct target_ops) <to_rmcd>: Use
11546 TARGET_DEFAULT_FUNC.
11547
e9a29200
TT
115482014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * target-delegates.c: Rebuild.
11551 * target.c (init_dummy_target): Don't initialize to_attach.
11552 (target_attach): Unconditionally delegate.
11553 * target.h (struct target_ops) <to_attach>: Use
11554 TARGET_DEFAULT_FUNC.
11555
09da0d0a
TT
115562014-02-19 Tom Tromey <tromey@redhat.com>
11557
11558 * target-delegates.c: Rebuild.
11559 * target.c (target_detach): Unconditionally delegate.
11560 (init_dummy_target): Don't initialize to_detach.
11561 * target.h (struct target_ops) <to_detach>: Use
11562 TARGET_DEFAULT_IGNORE.
11563
5436ff03
TT
115642014-02-19 Tom Tromey <tromey@redhat.com>
11565
11566 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11567 Add argument.
11568 (target_augmented_libraries_svr4_read): Add argument.
11569 * target.c (update_current_target): Update.
11570 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11571 argument.
11572
f0d960ea
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target.h (struct target_ops) <to_call_history_range>: Add
11576 argument.
11577 * target.c (target_call_history_range): Add argument.
11578 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11579 argument.
11580 (record_btrace_call_history_from): Update.
11581
ec0aea04
TT
115822014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * target.h (struct target_ops) <to_call_history_from>: Add
11585 argument.
11586 * target.c (target_call_history_from): Add argument.
11587 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11588 argument.
11589
5df2fcba
TT
115902014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target.h (struct target_ops) <to_call_history>: Add argument.
11593 * target.c (target_call_history): Add argument.
11594 * record-btrace.c (record_btrace_call_history): Add 'self'
11595 argument.
11596
4e99c6b7
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target.h (struct target_ops) <to_insn_history_range>: Add
11600 argument.
11601 * target.c (target_insn_history_range): Add argument.
11602 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11603 argument.
11604 (record_btrace_insn_history_from): Update.
11605
9abc3ff3
TT
116062014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target.h (struct target_ops) <to_insn_history_from>: Add
11609 argument.
11610 * target.c (target_insn_history_from): Add argument.
11611 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11612 argument.
11613
7a6c5609
TT
116142014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target.h (struct target_ops) <to_insn_history>: Add argument.
11617 * target.c (target_insn_history): Add argument.
11618 * record-btrace.c (record_btrace_insn_history): Add 'self'
11619 argument.
11620
606183ac
TT
116212014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target.h (struct target_ops) <to_goto_record>: Add argument.
11624 * target.c (target_goto_record): Add argument.
11625 * record-full.c (record_full_goto): Add 'self' argument.
11626 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11627
307a1b91
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11631 * target.c (target_goto_record_end): Add argument.
11632 * record-full.c (record_full_goto_end): Add 'self' argument.
11633 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11634
08475817
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target.h (struct target_ops) <to_goto_record_begin>: Add
11638 argument.
11639 * target.c (target_goto_record_begin): Add argument.
11640 * record-full.c (record_full_goto_begin): Add 'self' argument.
11641 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11642 argument.
11643
1c63c994
TT
116442014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target.h (struct target_ops) <to_record_is_replaying>: Add
11647 argument.
11648 * target.c (target_record_is_replaying): Add argument.
11649 * record-full.c (record_full_is_replaying): Add 'self' argument.
11650 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11651 argument.
11652 (record_btrace_xfer_partial, record_btrace_store_registers)
11653 (record_btrace_prepare_to_store, record_btrace_resume)
11654 (record_btrace_wait, record_btrace_decr_pc_after_break)
11655 (record_btrace_find_new_threads, record_btrace_thread_alive):
11656 Update.
11657
d1b55219
TT
116582014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target.h (struct target_ops) <to_delete_record>: Add argument.
11661 * target.c (target_delete_record): Add argument.
11662 * record-full.c (record_full_delete): Add 'self' argument.
11663
1390f529
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target.h (struct target_ops) <to_save_record>: Add argument.
11667 * target.c (target_save_record): Add argument.
11668 * record-full.c (record_full_save): Add 'self' argument.
11669 (record_full_save): Add 'self' argument.
11670
630d6a4a
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target.h (struct target_ops) <to_info_record>: Add argument.
11674 * target.c (target_info_record): Add argument.
11675 * record.c (info_record_command): Add argument.
11676 * record-full.c (record_full_info): Add 'self' argument.
11677 * record-btrace.c (record_btrace_info): Add 'self' argument.
11678
c6cd7c02
TT
116792014-02-19 Tom Tromey <tromey@redhat.com>
11680
11681 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11682 * target.c (target_stop_recording): Add argument.
11683 * record.c (record_stop): Add argument.
11684 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11685 argument.
11686
39c49f83
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11690 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11691 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11692 argument.
11693 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11694 (_initialize_amd64_linux_nat): Use it.
11695 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11696 (_initialize_i386_linux_nat): Use it.
11697
1777056d
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11701 * target.c (target_teardown_btrace): Add argument.
11702 * remote.c (remote_teardown_btrace): Add 'self' argument.
11703 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11704 argument.
11705 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11706 argument.
11707
25e95349
TT
117082014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11711 * target.c (target_disable_btrace): Add argument.
11712 * remote.c (remote_disable_btrace): Add 'self' argument.
11713 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11714 argument.
11715 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11716 argument.
11717
e3c49f88
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11721 * target.c (target_enable_btrace): Add argument.
11722 * remote.c (remote_enable_btrace): Add 'self' argument.
11723 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11724 argument.
11725 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11726 argument.
11727
fe38f897
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11731 (target_can_use_agent): Add argument.
11732 * target.c (update_current_target): Update.
11733 * remote.c (remote_can_use_agent): Add 'self' argument.
11734 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11735
2c152180
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_use_agent>: Add argument.
11739 (target_use_agent): Add argument.
11740 * target.c (update_current_target): Update.
11741 * remote.c (remote_use_agent): Add 'self' argument.
11742 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11743
a893e81f
TT
117442014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11747 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11748 (target_traceframe_info): Add argument.
11749 * target.c (update_current_target): Update.
11750 * remote.c (remote_traceframe_info): Add 'self' argument.
11751 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11752
c686c57f
TT
117532014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target.h (target_static_tracepoint_markers_by_strid): Add
11756 argument.
11757 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11758 'self' argument.
11759 * target.c (update_current_target): Update.
11760 * remote.c (struct target_ops)
11761 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11762 * linux-nat.c (struct target_ops)
11763 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11764
61fc905d
TT
117652014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11768 Add argument.
11769 (target_static_tracepoint_marker_at): Add argument.
11770 * target.c (update_current_target): Update.
11771 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11772 argument.
11773
c378d69d
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11777 (target_set_permissions): Add argument.
11778 * target.c (update_current_target): Update.
11779 * remote.c (remote_set_permissions): Add 'self' argument.
11780 (remote_start_remote): Update.
11781
bd7ae0f5
TT
117822014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11785 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11786 (target_get_tib_address): Add argument.
11787 * target.c (update_current_target): Update.
11788 * remote.c (remote_get_tib_address): Add 'self' argument.
11789
d9e68a2c
TT
117902014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11793 (target_set_trace_notes): Add argument.
11794 * target.c (update_current_target): Update.
11795 * remote.c (remote_set_trace_notes): Add 'self' argument.
11796
4da384be
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11800 argument.
11801 (target_set_trace_buffer_size): Add argument.
11802 * target.c (update_current_target): Update.
11803 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11804
736d5b1f
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11808 argument.
11809 (target_set_circular_trace_buffer): Add argument.
11810 * target.c (update_current_target): Update.
11811 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11812 argument.
11813
37b25738
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11817 argument.
11818 (target_set_disconnected_tracing): Add argument.
11819 * target.c (update_current_target): Update.
11820 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11821
0e67620a
TT
118222014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target.h (struct target_ops)
11825 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11826 (target_get_min_fast_tracepoint_insn_len): Add argument.
11827 * target.c (update_current_target): Update.
11828 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11829 argument.
11830
88ee6f45
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11834 argument.
11835 (target_get_raw_trace_data): Add argument.
11836 * target.c (update_current_target): Update.
11837 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11838
181e3713
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11842 Add argument.
11843 (target_upload_trace_state_variables): Add argument.
11844 * target.c (update_current_target): Update.
11845 * remote.c (remote_upload_trace_state_variables): Add 'self'
11846 argument.
11847 (remote_start_remote): Update.
11848
ab6617cc
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11852 argument.
11853 (target_upload_tracepoints): Add argument.
11854 * target.c (update_current_target): Update.
11855 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11856 (remote_start_remote): Update.
11857
dc3decaf
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11861 (target_save_trace_data): Add argument.
11862 * target.c (update_current_target): Update.
11863 * remote.c (remote_save_trace_data): Add 'self' argument.
11864
4011015b
TT
118652014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11868 argument.
11869 * target.h (struct target_ops)
11870 <to_get_trace_state_variable_value>: Add argument.
11871 (target_get_trace_state_variable_value): Add argument.
11872 * target.c (update_current_target): Update.
11873 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11874 argument.
11875 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11876
bd4c6793
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11880 * target.h (struct target_ops) <to_trace_find>: Add argument.
11881 (target_trace_find): Add argument.
11882 * target.c (update_current_target): Update.
11883 * remote.c (remote_trace_find): Add 'self' argument.
11884 * ctf.c (ctf_trace_find): Add 'self' argument.
11885
74499f1b
TT
118862014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11889 (target_trace_stop): Add argument.
11890 * target.c (update_current_target): Update.
11891 * remote.c (remote_trace_stop): Add 'self' argument.
11892
db90e85c
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11896 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11897 argument.
11898 (target_get_tracepoint_status): Add argument.
11899 * target.c (update_current_target): Update.
11900 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11901
8bd200f1
TT
119022014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11905 * target.h (struct target_ops) <to_get_trace_status>: Add
11906 argument.
11907 (target_get_trace_status): Add argument.
11908 * target.c (update_current_target): Update.
11909 * remote.c (remote_get_trace_status): Add 'self' argument.
11910 (remote_start_remote, remote_can_download_tracepoint): Update.
11911 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11912
e2d1aae3
TT
119132014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target.h (struct target_ops) <to_trace_start>: Add argument.
11916 (target_trace_start): Add argument.
11917 * target.c (update_current_target): Update.
11918 * remote.c (remote_trace_start): Add 'self' argument.
11919
583f9a86
TT
119202014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11923 Add argument.
11924 (target_trace_set_readonly_regions): Add argument.
11925 * target.c (update_current_target): Update.
11926 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11927 argument.
11928
780b049c
TT
119292014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11932 argument.
11933 (target_disable_tracepoint): Add argument.
11934 * target.c (update_current_target): Update.
11935 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11936
46670d57
TT
119372014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11940 argument.
11941 (target_enable_tracepoint): Add argument.
11942 * target.c (update_current_target): Update.
11943 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11944
559d2b81
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target.h (struct target_ops) <to_download_trace_state_variable>:
11948 Add argument.
11949 (target_download_trace_state_variable): Add argument.
11950 * target.c (update_current_target): Update.
11951 * remote.c (remote_download_trace_state_variable): Add 'self'
11952 argument.
11953
a52a8357
TT
119542014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11957 argument.
11958 (target_can_download_tracepoint): Add argument.
11959 * target.c (update_current_target): Update.
11960 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11961
548f7808
TT
119622014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target.h (struct target_ops) <to_download_tracepoint>: Add
11965 argument.
11966 (target_download_tracepoint): Add argument.
11967 * target.c (update_current_target): Update.
11968 * remote.c (remote_download_tracepoint): Add 'self' argument.
11969
ecae04e1
TT
119702014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target.h (struct target_ops) <to_trace_init>: Add argument.
11973 (target_trace_init): Add argument.
11974 * target.c (update_current_target): Update.
11975 * remote.c (remote_trace_init): Add 'self' argument.
11976
fab5aa7c
TT
119772014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11980 * target.c (target_fileio_readlink): Add argument.
11981 * remote.c (remote_hostio_readlink): Add 'self' argument.
11982 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11983
dbbca37d
TT
119842014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11987 * target.c (target_fileio_unlink): Add argument.
11988 * remote.c (remote_hostio_unlink): Add 'self' argument.
11989 (remote_file_delete): Update.
11990 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11991
df39ea25
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11995 * target.c (target_fileio_close): Add argument.
11996 * remote.c (remote_hostio_close): Add 'self' argument.
11997 (remote_hostio_close_cleanup): Update.
11998 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11999 Update.
12000 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12001
a3be983c
TT
120022014-02-19 Tom Tromey <tromey@redhat.com>
12003
12004 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12005 * target.c (target_fileio_pread): Add argument.
12006 * remote.c (remote_hostio_pread): Add 'self' argument.
12007 (remote_bfd_iovec_pread, remote_file_get): Update.
12008 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12009
0d866f62
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12013 * target.c (target_fileio_pwrite): Add argument.
12014 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12015 (remote_file_put): Update.
12016 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12017
cd897586
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12021 * target.c (target_fileio_open): Add argument.
12022 * remote.c (remote_hostio_open): Add 'self' argument.
12023 (remote_bfd_iovec_open): Add 'self' argument.
12024 (remote_file_put): Add 'self' argument.
12025 (remote_file_get): Add 'self' argument.
12026 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12027
78eff0ec
TT
120282014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12031 Add argument.
12032 (target_can_run_breakpoint_commands): Add argument.
12033 * target.c (update_current_target): Update.
12034 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12035 argument.
12036 (remote_insert_breakpoint): Add 'self' argument.
12037 (remote_insert_hw_breakpoint): Add 'self' argument.
12038 (remote_can_run_breakpoint_commands): Add 'self' argument.
12039
efcc2da7
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops)
12043 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12044 (target_supports_evaluation_of_breakpoint_conditions): Add
12045 argument.
12046 * target.c (update_current_target): Update.
12047 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12048 argument.
12049 (remote_insert_breakpoint): Add 'self' argument.
12050 (remote_insert_hw_breakpoint): Add 'self' argument.
12051 (remote_supports_cond_breakpoints): Add 'self' argument.
12052
6de37a3a
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12056 argument.
12057 (target_supports_string_tracing): Add argument.
12058 * target.c (update_current_target): Update.
12059 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12060
2bfc0540
TT
120612014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target.h (struct target_ops)
12064 <to_supports_disable_randomization>: Add argument.
12065 * target.c (find_default_supports_disable_randomization): Add
12066 argument.
12067 (target_supports_disable_randomization): Add argument.
12068 (find_default_supports_disable_randomization): Add 'self'
12069 argument.
12070 * remote.c (extended_remote_supports_disable_randomization): Add
12071 'self' argument.
12072 (remote_supports_disable_randomization): Add 'self' argument.
12073 (extended_remote_create_inferior): Update.
12074 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12075 'self' argument.
12076
7d178d6a
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target.h (struct target_ops)
12080 <to_supports_enable_disable_tracepoint>: Add argument.
12081 (target_supports_enable_disable_tracepoint): Add argument.
12082 * target.c (update_current_target): Update.
12083 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12084 argument.
12085
86ce2668
TT
120862014-02-19 Tom Tromey <tromey@redhat.com>
12087
12088 * target.h (struct target_ops) <to_supports_multi_process>: Add
12089 argument.
12090 (target_supports_multi_process): Add argument.
12091 * target.c (update_current_target): Update.
12092 * remote.c (remote_supports_multi_process): Add 'self' argument.
12093 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12094 argument.
12095 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12096 argument.
12097
4c612759
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target.h (struct target_ops) <to_execution_direction>: Add
12101 argument.
12102 (target_execution_direction): Add argument.
12103 * target.c (default_execution_direction): Add 'self' argument.
12104 * record-full.c (record_full_execution_direction): Add 'self'
12105 argument.
12106
19db3e69
TT
121072014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12110 argument.
12111 (target_can_execute_reverse): Add argument.
12112 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12113 * record-full.c (record_full_can_execute_reverse): Add 'self'
12114 argument.
12115 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12116 argument.
12117
1e6b91a4
TT
121182014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12121 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12122 argument.
12123 (target_get_ada_task_ptid): Add argument.
12124 * target.c (update_current_target): Update.
12125 (default_get_ada_task_ptid): Add 'self' argument.
12126 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12127 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12128 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12129 argument.
12130 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12131 argument.
12132 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12133 argument.
12134 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12135 argument.
12136 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12137 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12138 argument.
12139
3c80fb48
TT
121402014-02-19 Tom Tromey <tromey@redhat.com>
12141
12142 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12143 (target_goto_bookmark): Add argument.
12144 * target.c (dummy_goto_bookmark): Add 'self' argument.
12145 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12146
dd0e2830
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12150 (target_get_bookmark): Add argument.
12151 * target.c (dummy_get_bookmark): Add 'self' argument.
12152 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12153
fc6691b2
TT
121542014-02-19 Tom Tromey <tromey@redhat.com>
12155
12156 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12157 argument.
12158 (target_make_corefile_notes): Add argument.
12159 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12160 * procfs.c (procfs_make_note_section): Add 'self' argument.
12161 (procfs_make_note_section): Add 'self' argument.
12162 (procfs_make_note_section): Add 'self' argument.
12163 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12164 argument.
12165 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12166 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12167 * exec.c (exec_make_note_section): Add 'self' argument.
12168 (exec_make_note_section): Add 'self' argument.
12169
2e73927c
TT
121702014-02-19 Tom Tromey <tromey@redhat.com>
12171
12172 * target.h (struct target_ops) <to_find_memory_regions>: Add
12173 argument.
12174 (target_find_memory_regions): Add argument.
12175 * target.c (dummy_find_memory_regions): Add 'self' argument.
12176 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12177 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12178 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12179 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12180 * exec. (exec_do_find_memory_regions): New global.
12181 (exec_set_find_memory_regions): Rewrite.
12182 (exec_find_memory_regions): New function.
12183 (init_exec_ops): Use exec_find_memory_regions.
12184
2a9a2795
TT
121852014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target.h (struct target_ops) <to_supports_non_stop>: Add
12188 argument.
12189 * target.c (find_default_supports_non_stop): Add argument.
12190 (target_supports_non_stop): Add argument.
12191 (find_default_supports_non_stop): Add 'self' argument.
12192 * remote.c (remote_supports_non_stop): Add 'self' argument.
12193 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12194
4ab76ea3
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target.h (struct target_ops) <to_log_command>: Add argument.
12198 (target_log_command): Add argument.
12199 * serial.h (serial_log_command): Add 'self' argument.
12200 * serial.c (serial_log_command): Add 'self' argument.
12201
8dd27370
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12205 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12206 argument.
12207 (target_pid_to_exec_file): Add argument.
12208 * target.c (debug_to_pid_to_exec_file): Add argument.
12209 (update_current_target): Update.
12210 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12211 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12212 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12213 (linux_handle_extended_wait): Update.
12214 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12215 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12216 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12217 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12218
1aac633b
TT
122192014-02-19 Tom Tromey <tromey@redhat.com>
12220
12221 * target.h (struct target_ops) <to_rcmd>: Add argument.
12222 (target_rcmd): Add argument.
12223 * target.c (debug_to_rcmd): Add argument.
12224 (update_current_target, do_monitor_command): Update.
12225 * remote.c (remote_rcmd): Add 'self' argument.
12226 * monitor.c (monitor_rcmd): Add 'self' argument.
12227
1eab8a48
TT
122282014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * windows-nat.c (windows_stop): Add 'self' argument.
12231 * target.h (struct target_ops) <to_stop>: Add argument.
12232 * target.c (target_stop): Add argument.
12233 (debug_to_stop): Add argument.
12234 (update_current_target): Update.
12235 * remote.c (remote_stop): Add 'self' argument.
12236 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12237 (gdbsim_cntrl_c): Update.
12238 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12239 * procfs.c (procfs_stop): Add 'self' argument.
12240 * nto-procfs.c (procfs_stop): Add 'self' argument.
12241 * monitor.c (monitor_stop): Add 'self' argument.
12242 (monitor_open): Update.
12243 * linux-nat.c (linux_nat_stop): Add argument.
12244 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12245 * gnu-nat.c (gnu_stop): Add 'self' argument.
12246 * darwin-nat.c (darwin_stop): Add 'self' argument.
12247
503a628d
TT
122482014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target.h (struct target_ops) <to_thread_name>: Add argument.
12251 * target.c (target_thread_name): Add argument.
12252 (update_current_target): Update.
12253 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12254
c15906d8
TT
122552014-02-19 Tom Tromey <tromey@redhat.com>
12256
12257 * target.h (struct target_ops) <to_extra_thread_info>: Add
12258 argument.
12259 (target_extra_thread_info): Add argument.
12260 * target.c (update_current_target): Update.
12261 * remote.c (remote_threads_extra_info): Add 'self' argument.
12262 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12263 argument.
12264 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12265 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12266 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12267 argument.
12268 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12269 argument.
12270 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12271 argument.
12272 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12273 argument.
12274
daf5e9b6
TT
122752014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target.h (struct target_ops) <to_program_signals>: Add argument.
12278 * target.c (target_program_signals): Add argument.
12279 * remote.c (remote_program_signals): Add 'self' argument.
12280
94bedb42
TT
122812014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12284 * target.c (target_pass_signals): Add argument.
12285 * remote.c (remote_pass_signals): Add 'self' argument.
12286 (remote_start_remote): Update.
12287 * procfs.c (procfs_pass_signals): Add 'self' argument.
12288 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12289 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12290 (linux_nat_create_inferior, linux_nat_attach): Update.
12291
da82bd6b
TT
122922014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * windows-nat.c (windows_can_run): Add 'self' argument.
12295 * target.h (struct target_ops) <to_can_run>: Add argument.
12296 (target_can_run): Add argument.
12297 * target.c (debug_to_can_run): Add argument.
12298 (update_current_target): Update.
12299 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12300 * inf-child.c (inf_child_can_run): Add 'self' argument.
12301 * go32-nat.c (go32_can_run): Add 'self' argument.
12302
d796e1d6
TT
123032014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * target.h (struct target_ops) <to_has_exited>: Add argument.
12306 (target_has_exited): Add argument.
12307 * target.c (debug_to_has_exited): Add argument.
12308 (update_current_target): Update.
12309
ff214e67
TT
123102014-02-19 Tom Tromey <tromey@redhat.com>
12311
12312 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12313 argument.
12314 (target_set_syscall_catchpoint): Add argument.
12315 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12316 argument.
12317 * target.c (update_current_target): Update.
12318
758e29d2
TT
123192014-02-19 Tom Tromey <tromey@redhat.com>
12320
12321 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12322 argument.
12323 (target_remove_exec_catchpoint): Add argument.
12324 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12325 (update_current_target): Update.
12326 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12327 argument.
12328
ba025e51
TT
123292014-02-19 Tom Tromey <tromey@redhat.com>
12330
12331 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12332 argument.
12333 (target_insert_exec_catchpoint): Add argument.
12334 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12335 (update_current_target): Update.
12336 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12337 argument.
12338
e98cf0cd
TT
123392014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12342 argument.
12343 (target_remove_vfork_catchpoint): Add argument.
12344 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12345 (update_current_target): Update.
12346 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12347 argument.
12348
3ecc7da0
TT
123492014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12352 argument.
12353 (target_insert_vfork_catchpoint): Add argument.
12354 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12355 (update_current_target): Update.
12356 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12357 argument.
12358
973fc227
TT
123592014-02-19 Tom Tromey <tromey@redhat.com>
12360
12361 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12362 argument.
12363 (target_remove_fork_catchpoint): Add argument.
12364 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12365 (update_current_target): Update.
12366 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12367 argument.
12368
a863b201
TT
123692014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12372 argument.
12373 (target_insert_fork_catchpoint): Add argument.
12374 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12375 (update_current_target): Update.
12376 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12377 argument.
12378
2e97a79e
TT
123792014-02-19 Tom Tromey <tromey@redhat.com>
12380
12381 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12382 argument.
12383 (target_post_startup_inferior): Add argument.
12384 * target.c (debug_to_post_startup_inferior): Add argument.
12385 (update_current_target): Update.
12386 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12387 argument.
12388 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12389 argument.
12390 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12391 argument.
12392 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12393 argument.
12394 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12395 'self' argument.
12396 (super_post_startup_inferior): Likewise.
12397 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12398 'self' argument.
12399 (super_post_startup_inferior): Likewise.
12400 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12401 Add 'self' argument.
12402 (super_post_startup_inferior): Likewise.
12403
71a9f134
TT
124042014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target.h (struct target_ops) <to_load>: Add argument.
12407 * target.c (target_load): Add argument.
12408 (debug_to_load): Add argument.
12409 (update_current_target): Update.
12410 * remote.c (remote_load): Add 'self' argument.
12411 * remote-sim.c (gdbsim_load): Add 'self' argument.
12412 * remote-mips.c (mips_load): Add 'self' argument.
12413 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12414 * monitor.c (monitor_load): Add 'self' argument.
12415 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12416
0a4f40a2
TT
124172014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12420 (target_terminal_info): Add argument.
12421 * target.c (debug_to_terminal_info): Add argument.
12422 (default_terminal_info): Likewise.
12423 * inflow.c (child_terminal_info): Add 'self' argument.
12424 * inferior.h (child_terminal_info): Add 'self' argument.
12425 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12426
ae3bd431
TT
124272014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12430 argument.
12431 (target_terminal_save_ours): Add argument.
12432 * target.c (debug_to_terminal_save_ours): Add argument.
12433 (update_current_target): Update.
12434 * inflow.c (terminal_save_ours): Add 'self' argument.
12435 * inferior.h (terminal_save_ours): Add 'self' argument.
12436
e3594fd1
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12440 (target_terminal_ours): Add argument.
12441 * target.c (debug_to_terminal_ours): Add argument.
12442 (update_current_target): Update.
12443 * remote.c (remote_terminal_ours): Add 'self' argument.
12444 (remote_close): Update.
12445 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12446 * inflow.c (terminal_ours): Add 'self' argument.
12447 * inferior.h (terminal_ours): Add 'self' argument.
12448 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12449
2e1e1a19
TT
124502014-02-19 Pedro Alves <palves@redhat.com>
12451 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12454 argument.
12455 (target_terminal_ours_for_output): Add argument.
12456 * target.c (debug_to_terminal_ours_for_output): Add argument.
12457 (update_current_target): Update.
12458 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12459 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12460 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12461
d2f640d4
TT
124622014-02-19 Tom Tromey <tromey@redhat.com>
12463
12464 * target.h (struct target_ops) <to_terminal_inferior>: Add
12465 argument.
12466 * target.c (target_terminal_inferior): Add argument.
12467 (update_current_target): Update.
12468 * remote.c (remote_terminal_inferior): Add 'self' argument.
12469 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12470 * inflow.c (terminal_inferior): Add 'self' argument.
12471 * inferior.h (terminal_inferior): Add 'self' argument.
12472 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12473 (go32_terminal_inferior): Add 'self' argument.
12474
c42bf286
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12478 (target_terminal_init): Add argument.
12479 * target.c (debug_to_terminal_init): Add argument.
12480 (update_current_target): Update.
12481 * inflow.c (terminal_init_inferior): Add 'self' argument.
12482 * inferior.h (terminal_init_inferior): Add 'self' argument.
12483 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12484 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12485
c3a5ff89
TT
124862014-02-19 Tom Tromey <tromey@redhat.com>
12487
12488 * target.h (struct target_ops)
12489 <to_can_accel_watchpoint_condition>: Add argument.
12490 (target_can_accel_watchpoint_condition): Add argument.
12491 * target.c (debug_to_can_accel_watchpoint_condition): Add
12492 argument.
12493 (update_current_target): Update.
12494 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12495 'self' argument.
12496
31568a15
TT
124972014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12500 Add argument.
12501 (target_region_ok_for_hw_watchpoint): Add argument.
12502 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12503 (default_region_ok_for_hw_watchpoint): Add argument.
12504 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12505 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12506 argument.
12507 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12508 argument.
12509 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12510 argument.
12511 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12512 'self' argument.
12513 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12514 'self' argument.
12515 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12516 'self' argument.
12517 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12518 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12519 'self' argument.
12520 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12521 Add 'self' argument.
12522
7bb99c53
TT
125232014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12526 argument.
12527 (target_insert_watchpoint): Add argument.
12528 * target.c (debug_to_insert_watchpoint): Add argument.
12529 (update_current_target): Update.
12530 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12531 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12532 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12533 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12534 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12535 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12536 argument.
12537 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12538 (procfs_insert_hw_watchpoint): Add 'self' argument.
12539 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12540 argument.
12541 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12542 argument.
12543 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12544 argument.
12545 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12546 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12547 argument.
12548 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12549 'self' argument.
12550
11b5219a
TT
125512014-02-19 Tom Tromey <tromey@redhat.com>
12552
12553 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12554 argument.
12555 (target_remove_watchpoint): Add argument.
12556 * target.c (debug_to_remove_watchpoint): Add argument.
12557 (update_current_target): Update.
12558 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12559 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12560 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12561 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12562 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12563 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12564 argument.
12565 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12566 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12567 argument.
12568 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12569 argument.
12570 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12571 argument.
12572 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12573 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12574 argument.
12575 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12576 'self' argument.
12577
a64dc96c
TT
125782014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12581 argument.
12582 (target_remove_hw_breakpoint): Add argument.
12583 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12584 (update_current_target): Update.
12585 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12586 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12587 argument.
12588 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12589 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12590 argument.
12591 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12592 'self' argument.
12593
23a26771
TT
125942014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12597 argument.
12598 (target_insert_hw_breakpoint): Add argument.
12599 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12600 (update_current_target): Update.
12601 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12602 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12603 argument.
12604 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12605 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12606 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12607 argument.
12608 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12609 'self' argument.
12610
5461485a
TT
126112014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12614 argument.
12615 (target_can_use_hardware_watchpoint): Add argument.
12616 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12617 (update_current_target): Update.
12618 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12619 argument.
12620 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12621 argument.
12622 * remote.c (remote_check_watch_resources): Add 'self' argument.
12623 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12624 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12625 argument.
12626 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12627 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12628 argument.
12629 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12630 argument.
12631 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12632 argument.
12633 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12634 argument.
12635 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12636 argument.
12637 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12638 argument.
12639 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12640 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12641 argument.
12642 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12643 'self' argument.
12644
f045800c
TT
126452014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_post_attach>: Add argument.
12648 (target_post_attach): Add argument.
12649 * target.c (debug_to_post_attach): Add argument.
12650 (update_current_target): Update.
12651 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12652 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12653 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12654 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12655 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12656
de90e03d
TT
126572014-02-19 Tom Tromey <tromey@redhat.com>
12658
12659 * windows-nat.c (windows_close): Add 'self' argument.
12660 * tracepoint.c (tfile_close): Add 'self' argument.
12661 * target.h (struct target_ops) <to_close>: Add argument.
12662 * target.c (target_close): Add argument.
12663 (update_current_target): Update.
12664 * remote.c (remote_close): Add 'self' argument.
12665 * remote-sim.c (gdbsim_close): Add 'self' argument.
12666 * remote-mips.c (mips_close): Add 'self' argument.
12667 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12668 * record-full.c (record_full_close): Add 'self' argument.
12669 * record-btrace.c (record_btrace_close): Add 'self' argument.
12670 * monitor.h (monitor_close): Add 'self' argument.
12671 * monitor.c (monitor_close): Add 'self' argument.
12672 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12673 * linux-nat.c (linux_nat_close): Add argument.
12674 * go32-nat.c (go32_close): Add 'self' argument.
12675 * exec.c (exec_close_1): Add 'self' argument.
12676 * ctf.c (ctf_close): Add 'self' argument.
12677 * corelow.c (core_close): Add 'self' argument.
12678 (core_close_cleanup): Update.
12679 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12680 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12681
9dd130a0
TT
126822014-02-19 Tom Tromey <tromey@redhat.com>
12683
12684 * remote.c (remote_load): New function.
12685 (init_remote_ops): Use it.
12686
46917d26
TT
126872014-02-19 Tom Tromey <tromey@redhat.com>
12688
12689 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12690 argument.
12691 * common/linux-btrace.h (linux_supports_btrace): Update.
12692 * remote.c (remote_supports_btrace): Add "self" argument.
12693 * target-delegates.c: Rebuild.
12694 * target.c (target_supports_btrace): Remove.
12695 * target.h (struct target_ops) <to_supports_btrace>: Add
12696 target_ops argument.
12697 (target_supports_btrace): New define.
12698
6b84065d
TT
126992014-02-19 Tom Tromey <tromey@redhat.com>
12700
12701 * record-full.c (record_full_beneath_to_resume_ops)
12702 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12703 (record_full_beneath_to_wait)
12704 (record_full_beneath_to_store_registers_ops)
12705 (record_full_beneath_to_store_registers)
12706 (record_full_beneath_to_xfer_partial_ops)
12707 (record_full_beneath_to_xfer_partial)
12708 (record_full_beneath_to_insert_breakpoint_ops)
12709 (record_full_beneath_to_insert_breakpoint)
12710 (record_full_beneath_to_remove_breakpoint_ops)
12711 (record_full_beneath_to_remove_breakpoint)
12712 (record_full_beneath_to_stopped_by_watchpoint)
12713 (record_full_beneath_to_stopped_data_address)
12714 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12715 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12716 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12717 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12718 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12719 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12720 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12721 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12722 (record_full_resume, record_full_wait_1)
12723 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12724 (record_full_store_registers, record_full_xfer_partial)
12725 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12726 (record_full_async, record_full_core_xfer_partial): Use target
12727 delegation.
12728 * target-delegates.c: Rebuild.
12729 * target.c (current_xfer_partial): Remove.
12730 (update_current_target): Do not INHERIT or de_fault
12731 to_insert_breakpoint, to_remove_breakpoint,
12732 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12733 to_is_async_p, to_async. Do not set to_xfer_partial field.
12734 (default_xfer_partial): Simplify.
12735 (current_xfer_partial): Remove.
12736 (target_wait, target_resume): Simplify.
12737 (find_default_can_async_p, find_default_is_async_p): Update.
12738 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12739 to_xfer_partial, to_stopped_by_watchpoint,
12740 to_stopped_data_address.
12741 (target_store_registers): Simplify.
12742 (forward_target_remove_breakpoint)
12743 (forward_target_insert_breakpoint): Remove.
12744 (target_remove_breakpoint, target_insert_breakpoint)
12745 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12746 * target.h (struct target_ops) <to_resume, to_wait,
12747 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12748 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12749 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12750 markup.
12751 (forward_target_remove_breakpoint)
12752 (forward_target_insert_breakpoint): Remove.
12753 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12754 directly.
12755 (record_btrace_insert_breakpoint): Delegate directly.
12756
1101cb7b
TT
127572014-02-19 Tom Tromey <tromey@redhat.com>
12758
12759 PR build/7701:
12760 * target-delegates.c: New file.
12761 * target.c: Include target-delegates.c.
12762 (init_dummy_target): Call install_dummy_methods.
12763 (complete_target_initialization): Call install_delegators.
12764 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12765 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12766 * make-target-delegates: New file.
12767
8b06beed
TT
127682014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * record.c (find_record_target): Use find_target_at.
12771 * target.c (find_target_at): New function.
12772 * target.h (find_target_at): Declare.
12773
6a109b6b
TT
127742014-02-19 Tom Tromey <tromey@redhat.com>
12775
12776 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12777 Add 'ops' argument.
12778 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12779 'ops' argument.
12780 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12781 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12782 'ops' argument.
12783 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12784 argument.
12785 * linux-nat.c (save_sigtrap): Update.
12786 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12787 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12788 (linux_nat_close): Update.
12789 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12790 argument.
12791 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12792 argument.
12793 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12794 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12795 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12796 (tmp_to_async): Add 'ops' argument.
12797 (record_full_stopped_by_watchpoint, record_full_async)
12798 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12799 argument.
12800 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12801 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12802 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12803 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12804 (remote_is_async_p, remote_async): Add 'ops' argument.
12805 (remote_stopped_data_address): Update.
12806 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12807 * target.c (update_current_target)
12808 (find_default_can_async_p, find_default_is_async_p): Update.
12809 (init_dummy_target): Update.
12810 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12811 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12812 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12813 (target_can_async_p, target_is_async_p, target_async)
12814 (target_stopped_by_watchpoint): Update.
12815
e095146b
YQ
128162014-02-19 Yao Qi <yao@codesourcery.com>
12817
12818 PR gdb/16220
12819 * gdbarch.sh: Remove startup_gdbarch.
12820 * gdbarch.c: Regenerated.
12821 * gdbarch.h: Likewise.
12822
bc3c6b36
KB
128232014-02-17 Kevin Buettner <kevinb@redhat.com>
12824
12825 * rl78-tdep.c (rl78_g10_register_name): New function.
12826 (rl78_return_value): Add g10 support.
12827 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12828 g10.
12829
98dc0167 128302014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12831
12832 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12833 (SUBDIR_GUILE_SRCS): Ditto.
12834 (scm-gsmob.o): Ditto.
12835
842c05cd
YQ
128362014-02-17 Yao Qi <yao@codesourcery.com>
12837
12838 * gnu-nat.c (ILL_RPC): Declare defined function.
12839
25c0bd04
YQ
128402014-02-17 Yao Qi <yao@codesourcery.com>
12841
12842 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12843 mach_msg_type_number_t.
12844 (gnu_write_inferior): Likewise.
12845
a9a758e3
YQ
128462014-02-17 Yao Qi <yao@codesourcery.com>
12847
12848 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12849 in format string.
12850 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12851 (inf_validate_procs, inf_signal): Likewise.
12852 (S_exception_raise_request): Likewise.
12853 (do_mach_notify_dead_name): Likewise.
12854 (steal_exc_port): Likewise.
12855 (gnu_read_inferior): Change 'copy_count''s type to
12856 mach_msg_type_number_t.
12857 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12858 format string.
12859
bae8023e
TS
128602014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12861
c82f56d9
TS
12862 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12863 flag. Adjust all users; in particular...
12864 (gnu_wait): ..., don't decrement its value in here...
12865 (gnu_create_inferior): ..., and instead set the flag in here,
12866 around the startup_inferior call, and call that one with
12867 START_INFERIOR_TRAPS_EXPECTED.
12868
3398af6a
TS
12869 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12870 (ILL_RPC): ... new macro.
12871 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12872 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12873 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12874 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12875 functions with ILL_RPC macro.
12876 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12877 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12878 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12879 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12880 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12881 (S_proc_getlogin_reply, S_proc_getsid_reply)
12882 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12883 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12884 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12885 (S_proc_getnports_reply, S_proc_is_important_reply)
12886 (S_proc_get_code_reply): New stub functions, generated with
12887 ILL_RPC macro.
12888
d47642c9
TS
12889 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12890 collected the type check structures.
12891
bae8023e
TS
12892 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12893
8a55ffb0
DE
128942014-02-14 Doug Evans <dje@google.com>
12895
12896 * target.c (target_write_partial): Fix result type.
12897
c2853f3d
JM
128982014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12899
12900 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12901 the proper offsets to access fpregset_t.
12902
ac61d2db
SA
129032014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12904
12905 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12906 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12907 * h8300-tdep.c (setmachinelist): Remove global.
12908 * hppa-tdep.c (hppa_sigtramp): Remove global.
12909 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12910 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12911 * ravenscar-thread.c (update_target_observer): Remove global.
12912 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12913
9d2d0b8b
TT
129142014-02-12 Tom Tromey <tromey@redhat.com>
12915
12916 * common/rsp-low.c: Update comments.
12917 * common/rsp-low.h: Update comments.
12918
a7191e8b
TT
129192014-02-12 Tom Tromey <tromey@redhat.com>
12920
12921 * common/rsp-low.c (convert_ascii_to_int): Remove.
12922 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12923
ff0e980e
TT
129242014-02-12 Tom Tromey <tromey@redhat.com>
12925
12926 * common/rsp-low.h (unhexify): Don't declare.
12927 * common/rsp-low.c (unhexify): Remove.
12928
e9371aff
TT
129292014-02-12 Tom Tromey <tromey@redhat.com>
12930
12931 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12932 * common/rsp-low.c (convert_int_to_ascii): Remove.
12933
971dc0b8
TT
129342014-02-12 Tom Tromey <tromey@redhat.com>
12935
12936 * common/rsp-low.h (hexify): Don't declare.
12937 * common/rsp-low.c (hexify): Remove.
12938
0a822afb
TT
129392014-02-12 Tom Tromey <tromey@redhat.com>
12940
12941 * common/rsp-low.c (hexify): Never take strlen of argument.
12942
9f1b45b0
TT
129432014-02-12 Tom Tromey <tromey@redhat.com>
12944
12945 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12946 * remote.c (extended_remote_run, remote_rcmd)
12947 (remote_download_trace_state_variable, remote_save_trace_data)
12948 (remote_set_trace_notes): Update.
12949 * tracepoint.c (encode_source_string, tfile_write_status)
12950 (tfile_write_uploaded_tsv): Update.
12951
9c3d6531
TT
129522014-02-12 Tom Tromey <tromey@redhat.com>
12953
12954 * tracepoint.c: Include rsp-low.h.
12955 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12956 * remote.c: Include rsp-low.h.
12957 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12958 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12959 (remote_unescape_input): Move to common/rsp-low.c.
12960 * common/rsp-low.h: New file.
12961 * common/rsp-low.c: New file.
12962 * Makefile.in (SFILES): Add common/rsp-low.c.
12963 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12964 (COMMON_OBS): Add rsp-low.o.
12965 (rsp-low.o): New target.
12966
01fd3ea5
TT
129672014-02-12 Tom Tromey <tromey@redhat.com>
12968
12969 * utils.h: Include print-utils.h.
12970 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12971 (int_string, core_addr_to_string, core_addr_to_string_nz)
12972 (hex_string, hex_string_custom): Don't declare.
12973 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12974 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12975 (hex_string_custom, int_string, core_addr_to_string)
12976 (core_addr_to_string_nz, host_address_to_string): Move to
12977 common/print-utils.c.
12978 * common/print-utils.h: New file.
12979 * common/print-utils.c: New file
12980 * Makefile.in (SFILES): Add common/print-utils.c.
12981 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12982 (COMMON_OBS): Add print-utils.o.
12983 (print-utils.o): New target.
12984
9fb50108
TT
129852014-02-12 Tom Tromey <tromey@redhat.com>
12986
12987 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12988
0548b5db
MK
129892014-02-12 Mark Kettenis <kettenis@gnu.org>
12990
12991 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12992
493443a4
MK
129932014-02-12 Mark Kettenis <kettenis@gnu.org>
12994
12995 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12996 if a PT_IO ptrace request returns sucessfully but indicates that 0
12997 bytes were transferred.
12998
706d0883
PA
129992014-02-12 Pedro Alves <palves@redhat.com>
13000 Kevin Buettner <kevinb@redhat.com>
13001
13002 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13003 TYPE_INSTANCE_FLAG_CODE_SPACE.
13004
5caa2f0b
PA
130052014-02-12 Pedro Alves <palves@redhat.com>
13006
13007 * h8300-tdep.c (pseudo_from_raw_register)
13008 (raw_from_pseudo_register): New functions.
13009 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13010 them.
13011
76fd5f74
PA
130122014-02-12 Pedro Alves <palves@redhat.com>
13013
13014 * h8300-tdep.c (h8300_register_sim_regno): New function.
13015 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13016 gdbarch_register_sim_regno hook.
13017
8f008406
SA
130182014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13019
13020 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13021
195abc10
SA
130222014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13023
13024 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13025
93ffa5b9
MK
130262014-02-12 Mark Kettenis <kettenis@gnu.org>
13027
13028 * obsd-tdep.h (obsd_init_abi): New prototype.
13029 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13030 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13031 (obsd_init_abi): New functions.
13032 * i386obsd-tdep.c: Include "obsd-tdep.h".
13033 (i386obsd_init_abi): Call obsd_init_abi.
13034 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13035 (amd64obsd_init_abi): Call obsd_init_abi.
13036 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13037 obsd-tdep.c to gdb_target_obs.
13038
49caec94
JM
130392014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13040
13041 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13042 double float arguments to 16-byte in the argument slots.
13043
e1402065
DE
130442014-02-11 Doug Evans <xdje42@gmail.com>
13045
13046 * configure.ac: Don't crash if pkg-config is not found and guile
13047 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13048 in guile checks.
13049 * configure: Regenerate.
13050
edcc890f
YQ
130512014-02-11 Yao Qi <yao@codesourcery.com>
13052
13053 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13054 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13055 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13056 * gnu-nat.c (gnu_xfer_memory): Likewise.
13057 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13058 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13059 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13060 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13061
9b409511
YQ
130622014-02-11 Yao Qi <yao@codesourcery.com>
13063
13064 * target.h (enum target_xfer_error): Rename to ...
13065 (enum target_xfer_status): ... it. New. All users updated.
13066 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13067 New.
13068 (TARGET_XFER_STATUS_ERROR_P): New macro.
13069 (target_xfer_error_to_string): Remove declaration.
13070 (target_xfer_status_to_string): Declare.
13071 (target_xfer_partial_ftype): Adjust it.
13072 (struct target_ops) <to_xfer_partial>: Return
13073 target_xfer_status. Add argument xfered_len. Update
13074 comments.
13075 * target.c (target_xfer_error_to_string): Rename to ...
13076 (target_xfer_status_to_string): ... it. New. All callers
13077 updated.
13078 (target_read_live_memory): Likewise. Call target_xfer_partial
13079 instead of target_read.
13080 (memory_xfer_live_readonly_partial): Return
13081 target_xfer_status. Add argument xfered_len.
13082 (raw_memory_xfer_partial): Likewise.
13083 (memory_xfer_partial_1): Likewise.
13084 (memory_xfer_partial): Likewise.
13085 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13086 properly. Update debug message.
13087 (default_xfer_partial, current_xfer_partial): Likewise.
13088 (target_write_partial): Likewise.
13089 (target_read_partial): Likewise. All callers updated.
13090 (read_whatever_is_readable): Likewise.
13091 (target_write_with_progress): Likewise.
13092 (target_read_alloc_1): Likewise.
13093
13094 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13095 * auxv.c (procfs_xfer_auxv): Likewise.
13096 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13097 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13098 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13099 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13100 * corefile.c (read_memory): Adjust.
13101 * corelow.c (core_xfer_partial): Likewise.
13102 * ctf.c (ctf_xfer_partial): Likewise.
13103 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13104 updated.
13105 (darwin_xfer_partial): Likewise.
13106 * exec.c (section_table_xfer_memory_partial): Likewise. All
13107 callers updated.
13108 (exec_xfer_partial): Likewise.
13109 * exec.h (section_table_xfer_memory_partial): Update
13110 declaration.
13111 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13112 negative.
13113 (gnu_xfer_partial): Likewise.
13114 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13115 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13116 (ia64_hpux_xfer_solib_got): Likewise.
13117 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13118 type of 'partial_len' to ULONGEST.
13119 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13120 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13121 (linux_nat_xfer_partial): Likewise.
13122 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13123 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13124 * monitor.c (monitor_xfer_memory): Likewise.
13125 (monitor_xfer_partial): Likewise.
13126 * procfs.c (procfs_xfer_partial): Likewise.
13127 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13128 * record-full.c (record_full_xfer_partial): Likewise.
13129 (record_full_core_xfer_partial): Likewise.
13130 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13131 (gdbsim_xfer_partial): Likewise.
13132 * remote.c (remote_write_bytes_aux): Likewise. All callers
13133 updated.
13134 (remote_write_bytes, remote_read_bytes): Likewise. All
13135 callers updated.
13136 (remote_flash_erase): Likewise. All callers updated.
13137 (remote_write_qxfer): Likewise. All callers updated.
13138 (remote_read_qxfer): Likewise. All callers updated.
13139 (remote_xfer_partial): Likewise.
13140 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13141 (rs6000_xfer_shared_libraries): Likewise.
13142 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13143 (sol_thread_xfer_partial): Likewise.
13144 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13145 (sparc_xfer_partial): Likewise.
13146 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13147 updated.
13148 (spu_xfer_partial): Likewise.
13149 * spu-multiarch.c (spu_xfer_partial): Likewise.
13150 * tracepoint.c (tfile_xfer_partial): Likewise.
13151 * windows-nat.c (windows_xfer_memory): Likewise.
13152 (windows_xfer_shared_libraries): Likewise.
13153 (windows_xfer_partial): Likewise.
13154 * valprint.c: Replace 'target_xfer_error' with
13155 'target_xfer_status' in comments.
13156
a8e63083
JB
131572014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13158
13159 Checked in by Joel Brobecker <brobecker@adacore.com>.
13160 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13161
e86b67d3
JB
131622014-02-11 Joel Brobecker <brobecker@adacore.com>
13163
13164 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13165 function parameters.
13166
4b7d1f7f
WN
131672014-02-10 Will Newton <will.newton@linaro.org>
13168
13169 * elfread.c (elf_rel_plt_read): Look for a .got section if
13170 looking up .got.plt fails.
13171 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13172 on address passed to elf_gnu_ifunc_record_cache.
13173 (elf_gnu_ifunc_resolve_addr): Likewise.
13174 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13175
961842b2
JM
131762014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13177
13178 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13179 (X_RETTURN): New macro.
13180 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13181
13182 * sparc64-tdep.c (sparc64_init_abi): Hook
13183 sparc_in_function_epilogue_p.
13184
3f03e7b1
GB
131852014-02-10 Gary Benson <gbenson@redhat.com>
13186
13187 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13188 Rename name_matcher to symbol_matcher.
13189
96f861ef
GB
131902014-02-10 Gary Benson <gbenson@redhat.com>
13191
13192 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13193 Use expand_symtabs_file_matcher_ftype and
13194 expand_symtabs_symbol_matcher_ftype.
13195
ee01b665
JB
131962014-02-10 Joel Brobecker <brobecker@adacore.com>
13197
13198 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13199 (struct ada_symbol_cache): New.
13200 (ada_free_symbol_cache): Forward declare.
13201 (struct ada_pspace_data): New.
13202 (ada_pspace_data_handle): New static global.
13203 (get_ada_pspace_data, ada_pspace_data_cleanup)
13204 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13205 (cache_space, cache): Delete, now folded inside struct
13206 ada_pspace_data.
13207 (ada_get_symbol_cache): New function.
13208 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13209 implementation.
13210 (_initialize_ada_language): Remove initialization of cache_space.
13211 Move call to observer_attach_inferior_exit up, grouping it
13212 with the other observer registrations inside this function.
13213 Rename command to be more general. Add call to
13214 register_program_space_data_with_cleanup.
13215
143adbbf
JB
132162014-02-10 Joel Brobecker <brobecker@adacore.com>
13217
13218 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13219 ada_new_objfile_observer.
13220 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13221 (_initialize_tasks): Update uses of ada_new_objfile_observer
13222 and ada_tasks_normal_stop_observer.
13223
aa4fb036
JB
132242014-02-10 Joel Brobecker <brobecker@adacore.com>
13225
13226 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13227 returned by the 'Length attribute to integer.
13228
9dee8cc6
JB
132292014-02-10 Joel Brobecker <brobecker@adacore.com>
13230
13231 * ada-lang.c (_initialize_ada_language): Initialize
13232 cache_space obstack.
13233
3d9434b5
JB
132342014-02-10 Joel Brobecker <brobecker@adacore.com>
13235
13236 * ada-lang.c (HASH_SIZE): New macro.
13237 (struct cache_entry): New type.
13238 (cache_space, cache): New static globals.
13239 (ada_clear_symbol_cache, find_entry): New functions.
13240 (lookup_cached_symbol, cache_symbol): Implement.
13241 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13242 (_initialize_ada_language): Attach ada_new_objfile_observer
13243 and ada_free_objfile_observer.
13244
f0c5f9b2
JB
132452014-02-10 Joel Brobecker <brobecker@adacore.com>
13246
13247 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13248 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13249 struct block * parameter.
13250 (ada_lookup_symbol_list_worker): Constify local variable "block".
13251 Remove cast which is no longer necessary.
13252
ed3ef339
DE
132532014-02-10 Doug Evans <xdje42@gmail.com>
13254
13255 Add Guile as an extension language.
13256 * NEWS: Mention Guile scripting.
13257 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13258 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13259 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13260 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13261 (CLIBS): Add GUILE_LIBS.
13262 (install-guile): New rule.
13263 (guile.o): New rule.
13264 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13265 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13266 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13267 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13268 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13269 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13270 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13271 * configure.ac: New option --with-guile.
13272 * configure: Regenerate.
13273 * config.in: Regenerate.
13274 * auto-load.c: Remove #include "python/python.h". Add #include
13275 "gdb/section-scripts.h".
13276 (source_section_scripts): Handle Guile scripts.
13277 (_initialize_auto_load): Add name of Guile objfile script to
13278 scripts-directory help text.
13279 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13280 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13281 (struct breakpoint): New member scm_bp_object.
13282 * defs.h (enum command_control_type): New value guile_control.
13283 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13284 "extension.h".
13285 (show_user): Update comment.
13286 (_initialize_cli_cmds): Update help text for "show user". Update help
13287 text for max-user-call-depth.
13288 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13289 "extension.h".
13290 (multi_line_command_p): Add guile_control.
13291 (print_command_lines): Handle guile_control.
13292 (execute_control_command, recurse_read_control_structure): Ditto.
13293 (process_next_line): Recognize "guile" commands.
13294 * disasm.c (gdb_disassemble_info): Make non-static.
13295 * disasm.h: #include "dis-asm.h".
13296 (struct gdbarch): Add forward decl.
13297 (gdb_disassemble_info): Declare.
13298 * extension.c: #include "guile/guile.h".
13299 (extension_languages): Add guile.
13300 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13301 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13302 * gdbtypes.c (get_unsigned_type_max): New function.
13303 (get_signed_type_minmax): New function.
13304 * gdbtypes.h (get_unsigned_type_max): Declare.
13305 (get_signed_type_minmax): Declare.
13306 * guile/README: New file.
13307 * guile/guile-internal.h: New file.
13308 * guile/guile.c: New file.
13309 * guile/guile.h: New file.
13310 * guile/scm-arch.c: New file.
13311 * guile/scm-auto-load.c: New file.
13312 * guile/scm-block.c: New file.
13313 * guile/scm-breakpoint.c: New file.
13314 * guile/scm-disasm.c: New file.
13315 * guile/scm-exception.c: New file.
13316 * guile/scm-frame.c: New file.
13317 * guile/scm-gsmob.c: New file.
13318 * guile/scm-iterator.c: New file.
13319 * guile/scm-lazy-string.c: New file.
13320 * guile/scm-math.c: New file.
13321 * guile/scm-objfile.c: New file.
13322 * guile/scm-ports.c: New file.
13323 * guile/scm-pretty-print.c: New file.
13324 * guile/scm-safe-call.c: New file.
13325 * guile/scm-string.c: New file.
13326 * guile/scm-symbol.c: New file.
13327 * guile/scm-symtab.c: New file.
13328 * guile/scm-type.c: New file.
13329 * guile/scm-utils.c: New file.
13330 * guile/scm-value.c: New file.
13331 * guile/lib/gdb.scm: New file.
13332 * guile/lib/gdb/boot.scm: New file.
13333 * guile/lib/gdb/experimental.scm: New file.
13334 * guile/lib/gdb/init.scm: New file.
13335 * guile/lib/gdb/iterator.scm: New file.
13336 * guile/lib/gdb/printing.scm: New file.
13337 * guile/lib/gdb/types.scm: New file.
13338 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13339 (VPATH): Add $(GUILE_SRCDIR).
13340 (GUILE_DIR): New variable.
13341 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13342 (all): Add stamp-guile dependency.
13343 (stamp-guile): New rule.
13344 (clean-guile, install-guile, uninstall-guile): New rules.
13345 (install-only): Add install-guile dependency.
13346 (uninstall): Add uninstall-guile dependency.
13347 (clean): Add clean-guile dependency.
13348
ac020ec5
DE
133492014-02-09 Doug Evans <xdje42@gmail.com>
13350
13351 Revert this patch (which I approved, mea culpa).
13352
13353 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13354
13355 * Makefile.in (all-lib): Remove.
13356 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13357
2a081c59
JK
133582014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13359
13360 Fix Python stack corruption.
13361 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13362 gdb_py_longest.
13363
0a6bd22d
MK
133642014-02-08 Mark Kettenis <kettenis@gnu.org>
13365
13366 * Makefile.in (all-lib): Remove.
13367 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13368
1a860409
DE
133692014-02-07 Doug Evans <dje@google.com>
13370
13371 * extension-priv.h (extension_language_script_ops): Add comment.
13372 (extension_language_ops): Add comment.
caf5a491 13373 (active_ext_lang_state): Fix typo in comment.
1a860409 13374
d137e6dc
PA
133752014-02-07 Pedro Alves <palves@redhat.com>
13376
0dcb32c3 13377 PR breakpoints/16292
d137e6dc
PA
13378 * infrun.c (handle_signal_stop) <signal arrives while stepping
13379 over a breakpoint>: Switch back to the stepping thread.
13380
ce6d0892
YQ
133812014-02-07 Yao Qi <yao@codesourcery.com>
13382
13383 * target.c (target_xfer_partial): Return zero if LEN is zero.
13384
2ed4b548
YQ
133852014-02-07 Yao Qi <yao@codesourcery.com>
13386
13387 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13388 (ld_so_xfer_auxv): Likewise.
13389 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13390 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13391 * corelow.c (core_xfer_partial): Likewise.
13392 * ctf.c (ctf_xfer_partial): Likewise.
13393 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13394 (darwin_xfer_partial): Likewise.
13395 * exec.c (exec_xfer_partial): Likewise.
13396 * gnu-nat.c (gnu_xfer_partial): Likewise.
13397 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13398 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13399 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13400 * linux-nat.c (linux_xfer_siginfo): Likewise.
13401 (linux_proc_xfer_spu): Likewise.
13402 * procfs.c (procfs_xfer_partial): Likewise.
13403 * record-full.c (record_full_xfer_partial): Likewise.
13404 (record_full_core_xfer_partial): Likewise.
13405 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13406 * remote.c (remote_write_qxfer): Likewise.
13407 (remote_write_qxfer, remote_read_qxfer): Likewise.
13408 (remote_xfer_partial): Likewise.
13409 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13410 (rs6000_xfer_shared_libraries): Likewise.
13411 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13412 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13413 (spu_xfer_partial): Likewise.
13414 * target.c (memory_xfer_partial_1): Likewise.
13415 * tracepoint.c (tfile_xfer_partial): Likewise.
13416 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13417 (windows_xfer_partial): Likewise.
13418
c09f20e4
YQ
134192014-02-07 Yao Qi <yao@codesourcery.com>
13420
13421 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13422 comments.
13423 (core_xfer_shared_libraries_aix): Likewise.
13424 * gdbarch.c, gdbarch.h: Regenerated.
13425 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13426 ULONGEST. Change 'len_avail' type to ULONGEST.
13427 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13428 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13429 declaration.
13430 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13431
8635b3bf
YQ
134322014-02-07 Yao Qi <yao@codesourcery.com>
13433
13434 * corefile.c (memory_error): Get 'exception' from ERR and pass
13435 'exception' to throw_error.
13436
6dddc817
DE
134372014-02-06 Doug Evans <xdje42@gmail.com>
13438
13439 * configure.ac (libpython checking): Remove all but python.o from
13440 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13441 * configure: Regenerate.
13442
13443 * Makefile.in (SFILES): Add extension.c.
13444 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13445 (COMMON_OBS): Add extension.o.
13446 * extension.h: New file.
13447 * extension-priv.h: New file.
13448 * extension.c: New file.
13449
13450 * python/python-internal.h: #include "extension.h".
13451 (gdbpy_auto_load_enabled): Declare.
13452 (gdbpy_apply_val_pretty_printer): Declare.
13453 (gdbpy_apply_frame_filter): Declare.
13454 (gdbpy_preserve_values): Declare.
13455 (gdbpy_breakpoint_cond_says_stop): Declare.
13456 (gdbpy_breakpoint_has_cond): Declare.
13457 (void source_python_script_for_objfile): Delete.
13458 * python/python.c: #include "extension-priv.h".
13459 Delete inclusion of "observer.h".
13460 (extension_language_python): Moved here and renamed from
13461 script_language_python in py-auto-load.c.
13462 Redefined to be of type extension_language_defn.
13463 (python_extension_script_ops): New global.
13464 (python_extension_ops): New global.
13465 (struct python_env): New member previous_active.
13466 (restore_python_env): Call restore_active_ext_lang.
13467 (ensure_python_env): Call set_active_ext_lang.
13468 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13469 New arg extlang.
13470 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13471 New arg extlang.
13472 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13473 New arg extlang.
13474 (gdbpy_eval_from_control_command): Renamed from
13475 eval_python_from_control_command, made static. New arg extlang.
13476 (gdbpy_source_script) Renamed from source_python_script, made static.
13477 New arg extlang.
13478 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13479 result to int. New arg extlang.
13480 (gdbpy_source_objfile_script): Renamed from
13481 source_python_script_for_objfile, made static. New arg extlang.
13482 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13483 static. New args extlang, extlang_printers. Change result type to
13484 "void".
13485 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13486 static. New arg extlang. Rename arg printers to extlang_printers
13487 and change type to ext_lang_type_printers *.
13488 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13489 static. Replace argument arg with extlang, extlang_printers.
13490 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13491 (!HAVE_PYTHON, source_python_script): Delete.
13492 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13493 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13494 (!HAVE_PYTHON, start_type_printers): Delete.
13495 (!HAVE_PYTHON, apply_type_printers): Delete.
13496 (!HAVE_PYTHON, free_type_printers): Delete.
13497 (_initialize_python): Delete call to observer_attach_before_prompt.
13498 (finalize_python): Set/restore active extension language.
13499 (gdbpy_finish_initialization) Renamed from
13500 finish_python_initialization, made static. New arg extlang.
13501 (gdbpy_initialized): New function.
13502 * python/python.h: #include "extension.h". Delete #include
13503 "value.h", "mi/mi-cmds.h".
13504 (extension_language_python): Declare.
13505 (GDBPY_AUTO_FILE_NAME): Delete.
13506 (enum py_bt_status): Moved to extension.h and renamed to
13507 ext_lang_bt_status.
13508 (enum frame_filter_flags): Moved to extension.h.
13509 (enum py_frame_args): Moved to extension.h and renamed to
13510 ext_lang_frame_args.
13511 (finish_python_initialization): Delete.
13512 (eval_python_from_control_command): Delete.
13513 (source_python_script): Delete.
13514 (apply_val_pretty_printer): Delete.
13515 (apply_frame_filter): Delete.
13516 (preserve_python_values): Delete.
13517 (gdbpy_script_language_defn): Delete.
13518 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13519 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13520
13521 * auto-load.c: #include "extension.h".
13522 (GDB_AUTO_FILE_NAME): Delete.
13523 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13524 (script_language_gdb): Delete, moved to extension.c and renamed to
13525 extension_language_gdb.
13526 (source_gdb_script_for_objfile): Delete.
13527 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13528 (loaded_script): Change type of language member to
13529 struct extension_language_defn *.
13530 (init_loaded_scripts_info): Initialize
13531 unsupported_script_warning_printed.
13532 (maybe_add_script): Make static. Change type of language arg to
13533 struct extension_language_defn *.
13534 (clear_section_scripts): Reset unsupported_script_warning_printed.
13535 (auto_load_objfile_script_1): Rewrite to use extension language API.
13536 (auto_load_objfile_script): Make public. Remove support-compiled-in
13537 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13538 (source_section_scripts): Rewrite to use extension language API.
13539 (load_auto_scripts_for_objfile): Rewrite to use
13540 auto_load_scripts_for_objfile.
13541 (collect_matching_scripts_data): Change type of language member to
13542 struct extension_language_defn *.
13543 (auto_load_info_scripts): Change type of language arg to
13544 struct extension_language_defn *.
13545 (unsupported_script_warning_print): New function.
13546 (script_not_found_warning_print): Make static.
13547 (_initialize_auto_load): Rewrite construction of scripts-directory
13548 help.
13549 * auto-load.h (struct objfile): Add forward decl.
13550 (struct script_language): Delete.
13551 (struct auto_load_pspace_info): Add forward decl.
13552 (struct extension_language_defn): Add forward decl.
13553 (maybe_add_script): Delete.
13554 (auto_load_objfile_script): Declare.
13555 (script_not_found_warning_print): Delete.
13556 (auto_load_info_scripts): Update prototype.
13557 (auto_load_gdb_scripts_enabled): Declare.
13558 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13559 auto_load_python_scripts_enabled and made public.
13560 (script_language_python): Delete, moved to python.c.
13561 (gdbpy_script_language_defn): Delete.
13562 (info_auto_load_python_scripts): Update to use
13563 extension_language_python.
13564
13565 * breakpoint.c (condition_command): Replace call to
13566 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13567 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13568 with call to breakpoint_ext_lang_cond_says_stop.
13569 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13570 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13571 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13572 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13573 New arg slang.
13574 (local_setattro): Print name of extension language with existing
13575 stop condition.
13576
13577 * valprint.c (val_print, value_print): Update to call
13578 apply_ext_lang_val_pretty_printer.
13579 * cp-valprint.c (cp_print_value): Update call to
13580 apply_ext_lang_val_pretty_printer.
13581 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13582 (gdbpy_apply_val_pretty_printer): Renamed from
13583 apply_val_pretty_printer. New arg extlang.
13584 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13585
13586 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13587 extension language API.
13588 * cli/cli-script.c (execute_control_command): Update to call
13589 eval_ext_lang_from_control_command.
13590
13591 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13592 enum ext_lang_bt_status values. Update call to
13593 apply_ext_lang_frame_filter.
13594 (mi_cmd_stack_list_locals): Ditto.
13595 (mi_cmd_stack_list_args): Ditto.
13596 (mi_cmd_stack_list_variables): Ditto.
13597 * mi/mi-main.c: Delete #include "python/python-internal.h".
13598 Add #include "extension.h".
13599 (mi_cmd_list_features): Replace reference to python internal variable
13600 gdb_python_initialized with call to ext_lang_initialized_p.
13601
13602 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13603 Update to use enum ext_lang_frame_args. Update to call
13604 apply_ext_lang_frame_filter.
13605 * python/py-framefilter.c (extract_sym): Update to use enum
13606 ext_lang_bt_status.
13607 (extract_value, py_print_type, py_print_value): Ditto.
13608 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13609 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13610 (py_print_frame): Ditto.
13611 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13612 New arg extlang. Update to use enum ext_lang_bt_status.
13613
13614 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13615 finish_python_initialization. Replace with call to
13616 finish_ext_lang_initialization.
13617
13618 * typeprint.c (do_free_global_table): Update to call
13619 free_ext_lang_type_printers.
13620 (create_global_typedef_table): Update to call
13621 start_ext_lang_type_printers.
13622 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13623 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13624 (type_print_options): Change type of global_printers from "void *"
13625 to "struct ext_lang_type_printers *".
13626
13627 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13628 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13629 (gdbpy_preserve_values): Renamed from preserve_python_values.
13630 New arg extlang.
13631 (!HAVE_PYTHON, preserve_python_values): Delete.
13632
13633 * utils.c (quit_flag): Delete, moved to extension.c.
13634 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13635 extension.c.
13636
13637 * eval.c: Delete #include "python/python.h".
13638 * main.c: Delete #include "python/python.h".
13639
13640 * defs.h: Update comment.
13641
6af79985
JB
136422014-02-06 Joel Brobecker <brobecker@adacore.com>
13643
13644 GDB 7.7 released.
13645
12c5175d
MK
136462014-02-05 Mark Kettenis <kettenis@gnu.org>
13647
13648 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13649 defined.
13650
8dc5b319
YQ
136512014-02-05 Yao Qi <yao@codesourcery.com>
13652
13653 * remote.c (remote_pass_signals): Remove local 'buf' and use
13654 rs->buf.
13655 (remote_program_signals): Likewise.
13656
de7b2893
YQ
136572014-02-05 Yao Qi <yao@codesourcery.com>
13658
13659 * ctf.c: Include "inferior.h" and "gdbthread.h".
13660 (CTF_PID): A new macro.
13661 (ctf_open): Call inferior_appeared and add_thread_silent.
13662 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13663 (ctf_thread_alive): New function.
13664 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13665
66d032ac
YQ
136662014-02-05 Yao Qi <yao@codesourcery.com>
13667
13668 Revert this patch:
13669
13670 2013-05-24 Yao Qi <yao@codesourcery.com>
13671
13672 * tracepoint.c (TFILE_PID): Remove.
13673 (tfile_open): Don't add thread and inferior.
13674 (tfile_close): Don't set 'inferior_ptid'. Don't call
13675 exit_inferior_silent.
13676 (tfile_thread_alive): Remove.
13677 (init_tfile_ops): Don't set field 'to_thread_alive' of
13678 tfile_ops.
13679
f4ccffad
CE
136802014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13681
13682 * remote.c (remote_start_remote): Call remote_check_symbols even
13683 if only symbol-file (not file) has been given.
13684
591a12a1
UW
136852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13686
13687 * gdbarch.sh (skip_entrypoint): New callback.
13688 * gdbarch.c, gdbarch.h: Regenerate.
13689 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13690 * infrun.c (fill_in_stop_func): Likewise.
13691 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13692 (ppc_elfv2_elf_make_msymbol_special): New function.
13693 (ppc_elfv2_skip_entrypoint): Likewise.
13694 (ppc_linux_init_abi): Install them for ELFv2.
13695
cc0e89c5
UW
136962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13697
13698 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13699 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13700 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13701 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13702 structures returned in GPRs.
13703
52f548e4
UW
137042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13705
13706 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13707 offset to the stack parameter list for the ELFv2 ABI.
13708
d4094b6a
UW
137092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13710
13711 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13712 set_gdbarch_convert_from_func_ptr_addr and
13713 set_gdbarch_elf_make_msymbol_special for ELFv1.
13714 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13715 function descriptors on ELFv1.
13716 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13717 set up r12 at function entry.
13718
cd453cd0
UW
137192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13720
13721 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13722 (struct gdbarch_tdep): New member elf_abi.
13723
13724 * rs6000-tdep.c: Include "elf/ppc64.h".
13725 (rs6000_gdbarch_init): Detect ELF ABI version.
13726
0ff3e01f
UW
137272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13728
13729 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13730 within a register pair holding a DFP 128-bit value on little-endian.
13731 (ppc64_sysv_abi_return_value_base): Likewise.
13732 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13733 (dfp_pseudo_register_write): Likewise.
13734
5b757e5d
UW
137352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13736
13737 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13738 offset on little-endian when passing _Decimal32.
13739 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13740
084ee545
UW
137412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13742
13743 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13744 of the overlapped FP register within the VSX register on little-
13745 endian platforms.
13746 (efpr_pseudo_register_write): Likewise.
13747
d63167af
UW
137482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13749
13750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13751 offset on little-endian when passing small structures.
13752
e765b44c
UW
137532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13754
13755 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13756 (struct ppc64_sysv_argpos): New data structure.
13757 (ppc64_sysv_abi_push_float): Remove.
13758 (ppc64_sysv_abi_push_val): New function.
13759 (ppc64_sysv_abi_push_integer): Likewise.
13760 (ppc64_sysv_abi_push_freg): Likewise.
13761 (ppc64_sysv_abi_push_vreg): Likewise.
13762 (ppc64_sysv_abi_push_param): Likewise.
13763 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13764 (ppc64_sysv_abi_return_value_base): New function.
13765 (ppc64_sysv_abi_return_value): Refactor to use it.
13766
36c24d95
UW
137672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13768
13769 * NEWS: Document new target powerpc64le-*-linux*.
13770
26fd9228
MK
137712014-02-04 Mark Kettenis <kettenis@gnu.org>
13772
13773 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13774 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13775 core dumps.
13776 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13777 register set used in ELF core dumps. Add floating-point register set.
13778
c5bb7362
KB
137792014-02-03 Kevin Buettner <kevinb@redhat.com>
13780
74228e77 13781 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13782 dwarf2_to_gdb[] table using symbolic constants. Adjust
13783 penultimate entry from number representing the PC register
13784 to symbolic constant representing the MDR register. Add
13785 constant for the PC register to the end of the table.
13786
af09351e
MK
137872014-02-03 Mark Kettenis <kettenis@gnu.org>
13788
13789 * bsd-kvm.c: Include <sys/param.h>
13790
8507e05d
MK
137912014-02-03 Mark Kettenis <kettenis@gnu.org>
13792
13793 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13794
ae56bfb8
JB
137952014-01-31 Joel Brobecker <brobecker@adacore.com>
13796
13797 * ada-lang.h (clear_ada_sym_cache): Delete.
13798
718ee4dc
UW
137992014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13800
13801 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13802
401e27fd
JM
138032014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13804
13805 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13806 the sigreturn register save area only if the syscall is
13807 sigreturn.
13808
a7c88acd
JB
138092014-01-29 Joel Brobecker <brobecker@adacore.com>
13810
13811 * valops.c (value_slice): Minor reformatting.
13812
fa0079ea
UW
138132014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13814
13815 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13816
c6044dd1
JB
138172014-01-28 Joel Brobecker <brobecker@adacore.com>
13818
13819 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13820 New static globals.
13821 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13822 (ada_ignore_descriptive_types_p): New static global.
13823 (find_parallel_type_by_descriptive_type): Return immediately
13824 if ada_ignore_descriptive_types_p is set.
13825 (_initialize_ada_language): Register new commands "maintenance
13826 set ada", "maintenance show ada", "maintenance set ada
13827 ignore-descriptive-types" and "maintenance show ada
13828 ignore-descriptive-types".
13829 * NEWS: Add entry for new "maint ada set/show
13830 ignore-descriptive-types" commands.
13831
568e808b
MM
138322014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13833
13834 * record-btrace.c (record_btrace_close): Call btrace_teardown
13835 for all threads.
13836
467d141b
JB
138372014-01-27 Joel Brobecker <brobecker@adacore.com>
13838
13839 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13840 "ui-out.h".
13841
fb151210
JB
138422014-01-27 Joel Brobecker <brobecker@adacore.com>
13843
13844 * ada-typeprint (type_is_full_subrange_of_target_type):
13845 New function.
13846 (print_range): Add parameter bounds_prefered_p. If not set,
13847 try printing range types using the name of their base type.
13848 (print_range_type): Add parameter bounds_prefered_p.
13849 Use it in call to print_range.
13850 (print_array_type, ada_print_type): Update calls to print_range
13851 and print_range_type.
13852
aba02109
JB
138532014-01-27 Joel Brobecker <brobecker@adacore.com>
13854
13855 * ada-typeprint.c (print_array_type, print_choices, print_range)
13856 (print_range_bound, print_dynamic_range_bound, print_range_type):
13857 Remove declaration.
13858
e62e21fd
JB
138592014-01-27 Joel Brobecker <brobecker@adacore.com>
13860
13861 * ada-typeprint.c (print_range): Add missing empty line
13862 after local declaration.
13863
859cf5d1
JB
138642014-01-27 Joel Brobecker <brobecker@adacore.com>
13865
13866 * ada-valprint.c (print_optional_low_bound): Get index_type's
13867 target type for as long as it is a TYPE_CODE_RANGE.
13868
25790f6f
JB
138692014-01-27 Joel Brobecker <brobecker@adacore.com>
13870
13871 * procfs.c (procfs_make_note_section): Remove assertion and
13872 associated comment.
13873
6b6aa828
YQ
138742014-01-24 Yao Qi <yao@codesourcery.com>
13875
13876 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13877 * corelow.c (get_core_siginfo): Likewise.
13878
5d6df423
YQ
138792014-01-24 Yao Qi <yao@codesourcery.com>
13880
13881 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13882 ULONGEST. Don't check 'len' is negative.
13883 (remote_write_bytes): Change type of 'len' to ULONGEST.
13884
83b645b8
TT
138852014-01-23 Tom Tromey <tromey@redhat.com>
13886
13887 PR python/16485:
13888 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13889 Handle exception from frame.block.
13890 (FrameVars.fetch_frame_locals): Likewise.
13891
0740f8d8
TT
138922014-01-23 Tom Tromey <tromey@redhat.com>
13893
13894 PR python/16487:
13895 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13896 on a NULL pointer. Move "goto error" to correct place.
13897
21909fa1
TT
138982014-01-23 Tom Tromey <tromey@redhat.com>
13899
13900 PR python/16491:
13901 * python/py-framefilter.c (apply_frame_filter): Call
13902 ensure_python_env after computing gdbarch.
13903
17fde6d0
YQ
139042014-01-23 Yao Qi <yao@codesourcery.com>
13905
13906 * target.c (raw_memory_xfer_partial): Change argument type
13907 from void * to gdb_byte *.
13908 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13909
87ce2a04
DE
139102014-01-22 Doug Evans <dje@google.com>
13911
13912 New gdbserver option --debug-format=timestamp.
13913 * NEWS: Mention it.
13914
237b092b
AA
139152014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13916
13917 * syscalls/s390x-linux.xml: New file.
13918 * syscalls/s390-linux.xml: New file.
13919 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13920 (XML_SYSCALL_FILENAME_S390X): Likewise.
13921 (op_svc): New enum value for SVC opcode.
13922 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13923 (s390_linux_get_syscall_number): New function.
13924 (s390_gdbarch_init): Register '*get_syscall_number' and the
13925 syscall xml file name.
13926 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13927 "s390-linux.xml" and "s390x-linux.xml".
13928 * NEWS: Announce new feature.
13929
54bff650
BS
139302014-01-22 Baruch Siach <baruch@tkos.co.il>
13931
13932 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13933
14e361d7
PA
139342014-01-22 Pedro Alves <palves@redhat.com>
13935
13936 * xtensa-config.c: Include defs.h.
13937
46bbb3ed
JB
139382014-01-22 Joel Brobecker <brobecker@adacore.com>
13939
13940 * common/common-utils.h: Add "ARI:" comment beside __func__
13941 reference.
13942
3a80edfc
JB
139432014-01-22 Joel Brobecker <brobecker@adacore.com>
13944
13945 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13946 documentation a bit.
13947
4869db5e
RM
139482014-01-21 Roland McGrath <mcgrathr@google.com>
13949
13950 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13951 * configure: Regenerate.
13952 * aclocal.m4: Regenerate.
13953 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13954 New substituted variables.
13955 (install-strip): New target.
13956 (INSTALL_SCRIPT): New substituted variable.
13957 (FLAGS_TO_PASS): Add it.
13958 (install-only): Use $(INSTALL_SCRIPT) rather than
13959 $(INSTALL_PROGRAM) for gcore.
13960
9ea4267d
TT
139612014-01-20 Tom Tromey <tromey@redhat.com>
13962
13963 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13964 together.
13965
1f2bdf09
TT
139662014-01-20 Tom Tromey <tromey@redhat.com>
13967
13968 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13969 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13970 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13971 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13972 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13973 (struct cmd_list_element) <flags>: Remove.
13974 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13975 doc_allocated>: New fields.
13976 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13977 bitfields.
13978 * maint.c (maintenance_do_deprecate): Update.
13979 * top.c (execute_command): Update.
13980
e671835b
BS
139812014-01-20 Baruch Siach <baruch@tkos.co.il>
13982
13983 * xtensa-linux-nat.c: Include asm/ptrace.h.
13984
50367cd2
IB
139852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13986
13987 * Makefile.in (SFILES): Add d-support.c.
13988 (COMMON_OBS): Add d-support.o.
13989 * d-lang.h (d_parse_symbol): Add comment, now defined in
13990 d-support.c.
13991 * d-lang.c (parse_call_convention)
13992 (parse_attributes, parse_function_types)
13993 (parse_function_args, parse_type, parse_identifier)
13994 (call_convention_p, d_parse_symbol): Move functions to ...
13995 * d-support.c: ... New file.
13996
ec9f644a
IB
139972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13998
13999 * d-lang.h (d_parse_symbol): Add declaration.
14000 * d-lang.c (extract_identifiers)
14001 (extract_type_info): Remove functions.
14002 (parse_call_convention, parse_attributes)
14003 (parse_function_types, parse_function_args)
14004 (parse_type, parse_identifier, call_convention_p)
14005 (d_parse_symbol): New functions.
14006 (d_demangle): Use d_parse_symbol to demangle D symbols.
14007
94b1b47e
IB
140082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14009
14010 * d-lang.h (struct builtin_d_type): New data type.
14011 (builtin_d_type): Add declaration.
14012 * d-lang.c (d_language_arch_info, build_d_types)
14013 (builtin_d_type): New functions.
14014 (enum d_primitive_types): New data type.
14015 (d_language_defn): Change c_language_arch_info to
14016 d_language_arch_info.
14017 (d_type_data): New static variable.
14018 (_initialize_d_language): Initialize d_type_data.
14019
63778547
IB
140202014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14021
14022 * d-lang.h (d_main_name): Add declaration.
14023 * d-lang.c (d_main_name): New function.
14024 * symtab.c (find_main_name): Add call to d_main_name.
14025
3271ba66
IB
140262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14027
14028 * d-lang.c (d_language_defn): Change macro_expansion_c to
14029 macro_expansion_no.
14030
d36b3012
IB
140312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14032
14033 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14034
c90a6fb7
SDJ
140352014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14036
14037 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14038 gdb_exception" declaration.
14039 * remote.c (getpkt_or_notif_sane): Likewise.
14040
749234e5
DE
140412014-01-17 Doug Evans <dje@google.com>
14042
14043 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14044 function, contents of dirnames_to_char_ptr_vec_append moved here.
14045 (delim_string_to_char_ptr_vec): New function.
14046 (dirnames_to_char_ptr_vec_append): Rewrite.
14047 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14048
df049a58
DE
140492014-01-17 Doug Evans <dje@google.com>
14050
14051 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14052 and moved here ...
14053 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14054 #include "common-utils.h".
14055 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14056 * common/vec.h (VEC_ASSERT_PASS): Update.
14057 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14058 (MACH_CHECK_ERROR): Update.
14059
69f97648
SM
140602014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14061
14062 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14063 comments.
14064 * gdbarch.h: Regenerate.
14065
98b1cfdc
TT
140662014-01-16 Tom Tromey <tromey@redhat.com>
14067
14068 * value.c (struct value) <regnum>: Move earlier.
14069
77a19445
TT
140702014-01-16 Tom Tromey <tromey@redhat.com>
14071
14072 * remote.c (extended_remote_create_inferior): Rename from
14073 extended_remote_create_inferior_1. Add "ops" argument. Remove
14074 old implementation.
14075
62261490
PA
140762014-01-16 Pedro Alves <palves@redhat.com>
14077
14078 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14079 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14080 the backchain.
14081
4d65956b
DE
140822014-01-16 Doug Evans <dje@google.com>
14083
14084 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14085
52834460
MM
140862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14087
14088 * btrace.h (btrace_thread_flag): New.
14089 (struct btrace_thread_info) <flags>: New.
14090 * record-btrace.c (record_btrace_resume_thread)
14091 (record_btrace_find_thread_to_move, btrace_step_no_history)
14092 (btrace_step_stopped, record_btrace_start_replaying)
14093 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14094 (record_btrace_find_resume_thread): New.
14095 (record_btrace_resume, record_btrace_wait): Extend.
14096 (record_btrace_can_execute_reverse): New.
14097 (record_btrace_open): Fail in non-stop mode.
14098 (record_btrace_set_replay): Split into this, ...
14099 (record_btrace_stop_replaying): ... this, ...
14100 (record_btrace_clear_histories): ... and this.
14101 (init_record_btrace_ops): Init to_can_execute_reverse.
14102 * NEWS: Announce it.
14103
118e6252
MM
141042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14105
14106 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14107 (forward_target_decr_pc_after_break)
14108 (target_decr_pc_after_break): New.
14109 * target.c (forward_target_decr_pc_after_break)
14110 (target_decr_pc_after_break): New.
14111 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14112 instead of gdbarch_decr_pc_after_break.
14113 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14114 instead of gdbarch_decr_pc_after_break.
14115 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14116 instead of gdbarch_decr_pc_after_break.
14117 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14118 instead of gdbarch_decr_pc_after_break.
14119 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14120 instead of gdbarch_decr_pc_after_break.
14121 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14122 instead of gdbarch_decr_pc_after_break.
14123
6e07b1d2
MM
141242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14125
14126 * btrace.c: Include regcache.h.
14127 (btrace_add_pc): New.
14128 (btrace_enable): Call btrace_add_pc.
14129 (btrace_is_empty): New.
14130 * btrace.h (btrace_is_empty): New.
14131 * record-btrace.c (require_btrace, record_btrace_info): Call
14132 btrace_is_empty.
14133
969c39fb
MM
141342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14135
14136 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14137 Support delta reads.
14138 (linux_disable_btrace): Change return type.
14139 * common/linux-btrace.h (linux_read_btrace): Change parameters
14140 and return type to allow error reporting. Update users.
14141 (linux_disable_btrace): Change return type. Update users.
14142 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14143 New.
14144 (btrace_error): New.
14145 (btrace_block) <begin>: Comment on BEGIN == 0.
14146 * btrace.c (btrace_compute_ftrace): Start from the end of
14147 the current trace.
14148 (btrace_stitch_trace, btrace_clear_history): New.
14149 (btrace_fetch): Read delta trace, return if replaying.
14150 (btrace_clear): Move clear history code to btrace_clear_history.
14151 (parse_xml_btrace): Throw an error if parsing failed.
14152 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14153 and return type to allow error reporting.
14154 (target_read_btrace): Change parameters and return type to allow
14155 error reporting.
14156 * target.c (target_read_btrace): Update.
14157 * remote.c (remote_read_btrace): Support delta reads. Pass
14158 errors on.
14159 * NEWS: Announce it.
14160
0b722aec
MM
141612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14162
14163 * record.h (record_btrace_frame_unwind)
14164 (record_btrace_tailcall_frame_unwind): New declarations.
14165 * dwarf2-frame: Include record.h
14166 (dwarf2_frame_cfa): Throw an error for btrace frames.
14167 * record-btrace.c: Include hashtab.h.
14168 (btrace_get_bfun_name): New.
14169 (btrace_call_history): Call btrace_get_bfun_name.
14170 (struct btrace_frame_cache): New.
14171 (bfcache): New.
14172 (bfcache_hash, bfcache_eq, bfcache_new): New.
14173 (btrace_get_frame_function): New.
14174 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14175 (record_btrace_frame_this_id): Compute own id.
14176 (record_btrace_frame_prev_register): Provide PC, throw_error
14177 for all other registers.
14178 (record_btrace_frame_sniffer): Detect btrace frames.
14179 (record_btrace_tailcall_frame_sniffer): New.
14180 (record_btrace_frame_dealloc_cache): New.
14181 (record_btrace_frame_unwind): Add new functions.
14182 (record_btrace_tailcall_frame_unwind): New.
14183 (_initialize_record_btrace): Allocate cache.
14184 * btrace.c (btrace_clear): Call reinit_frame_cache.
14185 * NEWS: Announce it.
14186
066ce621
MM
141872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14188
14189 * record-btrace.c (record_btrace_set_replay)
14190 (record_btrace_goto_begin, record_btrace_goto_end)
14191 (record_btrace_goto): New.
14192 (init_record_btrace_ops): Initialize them.
14193 * NEWS: Announce it.
14194
e2887aa3
MM
141952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14196
14197 * record-btrace.c (record_btrace_find_new_threads)
14198 (record_btrace_thread_alive): New.
14199 (init_record_btrace_ops): Initialize to_find_new_threads and
14200 to_thread_alive.
14201
b2f4cfde
MM
142022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14203
14204 * record-btrace.c (record_btrace_resume): New.
14205 (record_btrace_wait): New.
14206 (init_record_btrace_ops): Initialize to_wait and to_resume.
14207
633785ff
MM
142082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14209
14210 * record-btrace.c (record_btrace_xfer_partial)
14211 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14212 (record_btrace_allow_memory_access): New.
14213 (init_record_btrace_ops): Initialize new methods.
14214 * target.c (raw_memory_xfer_partial): Bail out if target reports
14215 that this memory is not available.
14216
3db08215
MM
142172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14218
14219 * target.h (target_ops) <to_insert_breakpoint>
14220 <to_remove_breakpoint>: Add target_ops parameter.
14221 (forward_target_insert_breakpoint): New.
14222 (forward_target_remove_breakpoint): New.
14223 (memory_remove_breakpoint, memory_insert_breakpoint):
14224 Add target_ops parameter.
14225 * target.c (target_insert_breakpoint): Split into this and ...
14226 (forward_target_insert_breakpoint): ... this.
14227 (target_remove_breakpoint): Split into this and ...
14228 (forward_target_remove_breakpoint): ... this.
14229 (debug_to_insert_breakpoint): Add target_ops parameter.
14230 Call forward_target_insert_breakpoint.
14231 (debug_to_remove_breakpoint): Add target_ops parameter.
14232 Call forward_target_remove_breakpoint.
14233 (update_current_target): Do not inherit or default to_insert_breakpoint
14234 and to_remove_breakpoint.
14235 * corelow.c (ignore): Add target_ops parameter.
14236 * exec.c (ignore): Add target_ops parameter.
14237 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14238 Add target_ops parameter.
14239 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14240 Add target_ops parameter.
14241 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14242 Add target_ops parameter.
14243 * record-full.c (record_full_beneath_to_insert_breakpoint)
14244 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14245 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14246 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14247 (record_full_core_remove_breakpoint): Add target_ops parameter.
14248 Update users.
14249 (record_full_beneath_to_insert_breakpoint_ops)
14250 (record_full_beneath_to_remove_breakpoint_ops)
14251 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14252 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14253 tmp_to_remove_breakpoint_ops,
14254 record_full_beneath_to_insert_breakpoint_ops, and
14255 record_full_beneath_to_remove_breakpoint_ops.
14256 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14257 (m32r_remove_breakpoint): Add target_ops parameter.
14258 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14259 Add target_ops parameter.
14260 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14261 Add target_ops parameter.
14262
cecac1ab
MM
142632014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14264 Markus Metzger <markus.t.metzger@intel.com>
14265
14266 * record-btrace.c: Include frame-unwind.h.
14267 (record_btrace_frame_unwind_stop_reason)
14268 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14269 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14270 New.
14271 (init_record_btrace_ops): Install it.
14272
824344ca
MM
142732014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14274
14275 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14276 get_prev_frame_1.
14277
32261e52
MM
142782014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14279
14280 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14281 earlier.
14282
ea001bdc
MM
142832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14284
14285 * frame-unwind.c: Include target.h.
14286 (frame_unwind_try_unwinder): New function with code from ...
14287 (frame_unwind_find_by_frame): ... here. New variable
14288 unwinder_from_target, call also target_get_unwinder)
14289 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14290 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14291 * target.h (struct target_ops): New fields to_get_unwinder and
14292 to_get_tailcall_unwinder.
14293 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14294
1f3ef581
MM
142952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14296
14297 * record-btrace.c (record_btrace_fetch_registers)
14298 (record_btrace_store_registers)
14299 (record_btrace_to_prepare_to_store): New.
14300 (init_record_btrace_ops): Add the above.
14301
f32dbf8c
MM
143022014-01-16 Tom Tromey <tromey@redhat.com>
14303
14304 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14305 * target.h (struct target_ops) <to_prepare_to_store>: Add
14306 argument.
14307 (target_prepare_to_store): Add argument.
14308 * target.c (debug_to_prepare_to_store): Add argument.
14309 (update_current_target): Update.
14310 * remote.c (remote_prepare_to_store): Add 'self' argument.
14311 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14312 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14313 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14314 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14315 argument.
14316 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14317 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14318 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14319 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14320 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14321
07bbe694
MM
143222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14323
14324 * btrace.h (replay) <replay>: New.
14325 (btrace_is_replaying): New.
14326 * btrace.c (btrace_clear): Free replay iterator.
14327 (btrace_is_replaying): New.
14328 * record-btrace.c (record_btrace_is_replaying): New.
14329 (record_btrace_info): Print insn number if replaying.
14330 (record_btrace_insn_history): Start at replay position.
14331 (record_btrace_call_history): Start at replay position.
14332 (init_record_btrace_ops): Init to_record_is_replaying.
14333
0688d04e
MM
143342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14335
14336 * record-btrace.c (record_btrace_insn_history_range): Include
14337 end.
14338 (record_btrace_insn_history_from): Adjust range.
14339 (record_btrace_call_history_range): Include
14340 end.
14341 (record_btrace_call_history_from): Adjust range.
14342 * NEWS: Announce changes.
14343
8710b709
MM
143442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14345
14346 * record.h (enum record_print_flag)
14347 <record_print_indent_calls>: New.
14348 * record.c (get_call_history_modifiers): Recognize /c modifier.
14349 (_initialize_record): Document /c modifier.
14350 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14351 Reorder fields. Optionally indent the function name. Update
14352 all users.
14353 * NEWS: Announce changes.
14354
d0fa7535
MM
143552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14356
14357 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14358
5de9129b
MM
143592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14360
14361 * btrace.c (ftrace_new_function): Start counting at one.
14362 * record-btrace.c (record_btrace_info): Adjust number of calls
14363 and insns.
14364 * NEWS: Announce it.
14365
7acbe133
MM
143662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14367
14368 * record-btrace.c (btrace_call_history_insn_range): Print
14369 insn range as [begin, end].
14370
23a7fe75
MM
143712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14372
14373 * btrace.h (struct btrace_func_link): New.
14374 (enum btrace_function_flag): New.
14375 (struct btrace_inst): Rename to ...
14376 (struct btrace_insn): ...this. Update all users.
14377 (struct btrace_func) <ibegin, iend>: Remove.
14378 (struct btrace_func_link): New.
14379 (struct btrace_func): Rename to ...
14380 (struct btrace_function): ...this. Update all users.
14381 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14382 (number, level, flags>: New.
14383 (struct btrace_insn_iterator): Rename to ...
14384 (struct btrace_insn_history): ...this.
14385 Update all users.
14386 (struct btrace_insn_iterator, btrace_call_iterator): New.
14387 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14388 (struct btrace_target_info) <begin, end, level>
14389 <insn_history, call_history>: New.
14390 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14391 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14392 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14393 (btrace_call_number, btrace_call_begin, btrace_call_end)
14394 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14395 (btrace_find_function_by_number, btrace_set_insn_history)
14396 (btrace_set_call_history): New.
14397 * btrace.c (btrace_init_insn_iterator)
14398 (btrace_init_func_iterator, compute_itrace): Remove.
14399 (ftrace_print_function_name, ftrace_print_filename)
14400 (ftrace_skip_file): Change
14401 parameter to const.
14402 (ftrace_init_func): Remove.
14403 (ftrace_debug): Use new btrace_function fields.
14404 (ftrace_function_switched): Also consider gaining and
14405 losing symbol information).
14406 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14407 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14408 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14409 New.
14410 (ftrace_new_function): Move. Remove debug print.
14411 (ftrace_update_lines, ftrace_update_insns): New.
14412 (ftrace_update_function): Check for call, ret, and jump.
14413 (compute_ftrace): Renamed to ...
14414 (btrace_compute_ftrace): ...this. Rewritten to compute call
14415 stack.
14416 (btrace_fetch, btrace_clear): Updated.
14417 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14418 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14419 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14420 (btrace_call_number, btrace_call_begin, btrace_call_end)
14421 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14422 (btrace_find_function_by_number, btrace_set_insn_history)
14423 (btrace_set_call_history): New.
14424 * record-btrace.c (require_btrace): Use new btrace thread
14425 info fields.
14426 (record_btrace_info, btrace_insn_history)
14427 (record_btrace_insn_history, record_btrace_insn_history_range):
14428 Use new btrace thread info fields and new iterator.
14429 (btrace_func_history_src_line): Rename to ...
14430 (btrace_call_history_src_line): ...this. Use new btrace
14431 thread info fields.
14432 (btrace_func_history): Rename to ...
14433 (btrace_call_history): ...this. Use new btrace thread info
14434 fields and new iterator.
14435 (record_btrace_call_history, record_btrace_call_history_range):
14436 Use new btrace thread info fields and new iterator.
14437
8372a7cb
MM
144382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14439
14440 * frame.h (frame_id_build_unavailable_stack_special): New.
14441 * frame.c (frame_id_build_unavailable_stack_special): New.
14442
c2170eef
MM
144432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14444
14445 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14446 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14447 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14448 to gdbarch.
14449 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14450 (i386_insn_is_jump, i386_jmp_p): New.
14451 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14452 insn_is_jump to gdbarch.
14453 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14454 * gdbarch.h: Regenerated.
14455 * gdbarch.c: Regenerated.
14456 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14457 (default_insn_is_jump): New.
14458 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14459 (default_insn_is_jump): New.
14460
864089d2
MM
144612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14462
14463 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14464 Change to ...
14465 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14466 (btrace_read_type) <btrace_read_new>: Change to ...
14467 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14468
ed9edfb5
MM
144692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14470
14471 * common/linux-btrace.c (linux_read_btrace): Free trace from
14472 previous iteration.
14473
fbcbc3fd
DE
144742014-01-15 Doug Evans <dje@google.com>
14475
14476 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14477 uint32_t.
14478
3d548a53
TT
144792014-01-15 Tom Tromey <tromey@redhat.com>
14480
14481 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14482 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14483 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14484 (set_objfile_main_name): New function.
14485 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14486 language_of_main>: New fields.
14487 (set_objfile_main_name): Declare.
14488 * symtab.c (find_main_name): Loop over objfiles to find the main
14489 name and language.
14490 (set_main_name): Now static.
14491 (get_main_info): Add comment.
14492 * symtab.h (set_main_name): Don't declare.
14493
32ac0d11
TT
144942014-01-15 Tom Tromey <tromey@redhat.com>
14495
14496 * symtab.c (main_progspace_key): New global.
14497 (struct main_info): New.
14498 (name_of_main, language_of_main): Remove.
14499 (get_main_info, main_info_cleanup): New function.
14500 (set_main_name, main_name, main_language): Use get_main_info.
14501 (_initialize_symtab): Initialize main_progspace_key.
14502
9e6c82ad
TT
145032014-01-15 Tom Tromey <tromey@redhat.com>
14504
14505 * dbxread.c (process_one_symbol): Update.
14506 * dwarf2read.c (read_partial_die): Update.
14507 * symfile.c (set_initial_language): Call main_language.
14508 * symtab.c (language_of_main): Now static.
14509 (set_main_name): Add 'lang' parameter.
14510 (find_main_name): Update.
14511 (main_language): New function.
14512 (symtab_observer_executable_changed): Update.
14513 * symtab.h (set_main_name): Update.
14514 (language_of_main): Remove.
14515 (main_language): Declare.
14516
6ef55de7
TT
145172014-01-15 Tom Tromey <tromey@redhat.com>
14518
14519 * symfile.c (init_entry_point_info): Use new "initialized" field.
14520 Update.
14521 * objfiles.h (struct entry_point) <initialized>: New field.
14522 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14523 (struct objfile) <ei>: ...here. Remove.
14524 * objfiles.c (entry_point_address_query): Update.
14525
53eddfa6
TT
145262014-01-15 Tom Tromey <tromey@redhat.com>
14527
14528 * objfiles.c (entry_point_address_query): Relocate entry point
14529 address.
14530 (objfile_relocate1): Do not relocate entry point address.
14531 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14532 <the_bfd_section_index>: New field.
14533 * symfile.c (init_entry_point_info): Find the entry point's
14534 section.
14535
d56e56aa
TT
145362014-01-15 Tom Tromey <tromey@redhat.com>
14537
14538 * solib-frv.c (enable_break): Use entry_point_address_query.
14539
33a97bbe
OJ
145402014-01-15 Omair Javaid <omair.javaid@linaro.org>
14541
14542 * NEWS: Add note on improved process record-replay on
14543 arm*-linux* targets.
14544
c6ec2b30
OJ
145452014-01-15 Omair Javaid <omair.javaid@linaro.org>
14546
14547 * arm-tdep.c (enum arm_record_result): New enum.
14548 (arm_record_unsupported_insn): New function.
14549 (arm_record_coproc_data_proc): Removed.
14550 (thumb2_record_ld_st_multiple): New function.
14551 (thumb2_record_ld_st_dual_ex_tbb): New function.
14552 (thumb2_record_data_proc_sreg_mimm): New function.
14553 (thumb2_record_ps_dest_generic): New function.
14554 (thumb2_record_branch_misc_cntrl): New function.
14555 (thumb2_record_str_single_data): New function.
14556 (thumb2_record_ld_mem_hints): New function.
14557 (thumb2_record_ld_word): New function.
14558 (thumb2_record_lmul_lmla_div): New function.
14559 (thumb2_record_decode_insn_handler): New function.
14560 (decode_insn): Add thumb32 instruction handlers.
14561
97dfe206
OJ
145622014-01-15 Omair Javaid <omair.javaid@linaro.org>
14563
14564 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14565 (struct arm_linux_record_tdep): Declare.
14566 (arm_canonicalize_syscall): New function.
14567 (arm_all_but_pc_registers_record): New function.
14568 (arm_linux_syscall_record): New function.
14569 (arm_linux_init_abi): Add syscall recording constructs.
14570 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14571 decoding. (arm_record_coproc_data_proc): Update arm syscall
14572 decoding.
14573 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14574 <arm_syscall_record>: New field.
14575 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14576 gdb_target_obs.
14577
9904a494
OJ
145782014-01-15 Omair Javaid <omair.javaid@linaro.org>
14579
14580 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14581 register for push instruction recording.
14582
f969241e
OJ
145832014-01-15 Omair Javaid <omair.javaid@linaro.org>
14584
14585 * arm-tdep.c (thumb_record_misc): Update to correct logical
14586 error while recording ldm, ldmia and pop instructions.
14587
bfbbec00
OJ
145882014-01-15 Omair Javaid <omair.javaid@linaro.org>
14589
14590 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14591
e40adcc9
PA
145922014-01-15 Pedro Alves <palves@redhat.com>
14593
14594 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14595 (go32_resume, go32_fetch_registers, store_register)
14596 (go32_store_registers, go32_prepare_to_store)
14597 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14598 (go32_create_inferior, go32_can_run, go32_terminal_init)
14599 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14600 declarations.
14601
b0a16e66
TT
146022014-01-15 Tom Tromey <tromey@redhat.com>
14603
14604 * target.h (async_callback_ftype): New typedef.
14605 (struct target_ops) <to_async>: Use it.
14606
bf7105a4
JB
146072014-01-15 Joel Brobecker <brobecker@adacore.com>
14608
14609 * python/py-value.c (get_field_type): Remove unnecessary curly
14610 braces for single-statement if block.
14611
a8f35c2e
JB
146122014-01-15 Joel Brobecker <brobecker@adacore.com>
14613
14614 * python/py-type.c (convert_field): Add missing empty line
14615 after declarations.
14616
bb4142cf
DE
146172014-01-14 Doug Evans <dje@google.com>
14618
14619 * symfile.h (expand_symtabs_matching): Renamed from
14620 expand_partial_symbol_names. Update prototype.
14621 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14622 * symfile.c (expand_symtabs_matching): Renamed from
14623 expand_partial_symbol_names. New args file_matcher, kind.
14624 Rename arg fun to symbol_matcher.
14625 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14626 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14627 ada_expand_partial_symbol_name.
14628 (ada_make_symbol_completion_list): Update to call
14629 expand_symtabs_matching.
14630 (ada_add_global_exceptions): Call expand_symtabs_matching.
14631 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14632 call map_symbol_filenames.
14633 * symtab.c (sources_info): Update to call map_symbol_filenames.
14634 (search_symbols): Call expand_symtabs_matching.
14635 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14636 (default_make_symbol_completion_list_break_on): Update to call
14637 expand_symtabs_matching.
14638 (make_source_files_completion_list): Update to call
14639 map_symbol_filenames.
14640
206f2a57
DE
146412014-01-14 Doug Evans <dje@google.com>
14642
14643 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14644 (expand_symtabs_symbol_matcher_ftype): New typedef.
14645 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14646 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14647 * symfile.c (expand_partial_symbol_names): Update to use
14648 expand_symtabs_symbol_matcher_ftype.
14649 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14650 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14651 Arg name_matcher renamed to symbol_matcher.
14652 * psymtab.c (recursively_search_psymtabs): Update to use
14653 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14654 sym_matcher.
14655 (expand_symtabs_matching_via_partial): Update to use
14656 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14657 Arg name_matcher renamed to symbol_matcher.
14658
540c2971
DE
146592014-01-14 Doug Evans <dje@google.com>
14660
14661 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14662 (map_partial_symbol_filenames): Ditto.
14663 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14664 (map_partial_symbol_filenames): Ditto.
14665 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14666 (map_partial_symbol_filenames): Ditto.
14667 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14668 (map_partial_symbol_filenames): Ditto.
14669 * symtab.c: Delete #include "psymtab.h".
14670
8213266a
PA
146712014-01-14 Pedro Alves <palves@redhat.com>
14672 Tom Tromey <tromey@redhat.com>
14673
14674 * infrun.c (use_displaced_stepping): Use find_record_target
14675 instead of RECORD_IS_USED.
14676 (adjust_pc_after_break): Use record_full_is_used instead of
14677 RECORD_IS_USED.
14678 * record-btrace.c (record_btrace_open): Call record_preopen
14679 instead of checking RECORD_IS_USED.
14680 * record-full.c (record_full_shortname)
14681 (record_full_core_shortname): New globals.
14682 (record_full_is_used): New function.
14683 (find_full_open): Call record_preopen instead of checking
14684 RECORD_IS_USED.
14685 (init_record_full_ops): Set the target's shortname to
14686 record_full_shortname.
14687 (init_record_full_core_ops): Set the target's shortname to
14688 record_full_core_shortname.
14689 * record-full.h (record_full_is_used): Declare.
14690 * record.c (find_record_target): Make extern.
14691 (record_preopen): New function.
14692 * record.h (RECORD_IS_USED): Delete macro.
14693 (find_record_target, record_preopen): Declare functions.
14694
7ec1862d
YQ
146952014-01-14 Yao Qi <yao@codesourcery.com>
14696
14697 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14698 'len''s type to ULONGEST.
14699 (core_xfer_shared_libraries_aix): Likewise.
14700 * gdbarch.c, gdbarch.h: Regenerated.
14701 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14702 Change type of 'len' to ULONGEST.
14703 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14704 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14705
dea80a27
YQ
147062014-01-14 Yao Qi <yao@codesourcery.com>
14707
14708 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14709 type of 'len' to ULONGEST.
14710 (linux_xfer_osdata_processgroups): Likewise.
14711 (linux_xfer_osdata_threads): Likewise.
14712 (linux_xfer_osdata_fds): Likewise.
14713 (linux_xfer_osdata_isockets): Likewise.
14714 (linux_xfer_osdata_shm): Likewise.
14715 (linux_xfer_osdata_sem): Likewise.
14716 (linux_xfer_osdata_msg): Likewise.
14717 (linux_common_xfer_osdata): Likewise.
14718 (struct osdata_type) <getter>: Likewise.
14719 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14720 the declaration.
14721
b55e14c7
YQ
147222014-01-14 Yao Qi <yao@codesourcery.com>
14723
14724 * target.h (target_xfer_partial_ftype): Update.
14725 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14726 ULONGEST.
14727 * aix-thread.c (aix_thread_xfer_partial): Change type of
14728 argument 'len' to ULONGEST.
14729 * auxv.c (procfs_xfer_auxv): Likewise.
14730 (ld_so_xfer_auxv): Likewise.
14731 (memory_xfer_auxv): Likewise.
14732 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14733 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14734 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14735 * corelow.c (core_xfer_partial): Likewise.
14736 * ctf.c (ctf_xfer_partial): Likewise.
14737 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14738 '%u'.
14739 (darwin_read_dyld_info): Likewise.
14740 (darwin_xfer_partial): Likewise.
14741 * exec.c (section_table_xfer_memory_partial): Likewise.
14742 (exec_xfer_partial): Likewise.
14743 * exec.h (section_table_xfer_memory_partial): Update
14744 declaration.
14745 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14746 instead of plongest.
14747 (gnu_xfer_partial): Likewise.
14748 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14749 (ia64_hpux_xfer_solib_got): Likewise.
14750 (ia64_hpux_xfer_partial): Likewise.
14751 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14752 * inf-ptrace.c (inf_ptrace_xfer_partial):
14753 * inf-ttrace.c (inf_ttrace_xfer_partial):
14754 * linux-nat.c (linux_xfer_siginfo): Likewise.
14755 (linux_nat_xfer_partial): Likewise.
14756 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14757 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14758 * monitor.c (monitor_xfer_memory): Likewise.
14759 (monitor_xfer_partial): Likewise.
14760 * procfs.c (procfs_xfer_partial): Likewise.
14761 * record-full.c (record_full_xfer_partial): Likewise.
14762 (record_full_core_xfer_partial): Likewise.
14763 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14764 instead of plongest.
14765 (gdbsim_xfer_partial): Likewise.
14766 * remote.c (remote_xfer_partial): Likewise.
14767 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14768 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14769 declaration.
14770 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14771 (rs6000_xfer_shared_libraries): Likewise.
14772 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14773 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14774 (sparc_xfer_partial): Likewise.
14775 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14776 (spu_xfer_partial): Likewise.
14777 * spu-multiarch.c (spu_xfer_partial): Likewise.
14778 * target.c (target_read_live_memory): Likewise.
14779 (memory_xfer_live_readonly_partial): Likewise.
14780 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14781 (target_xfer_partial, default_xfer_partial): Likewise.
14782 (current_xfer_partial): Likewise.
14783 * tracepoint.c (tfile_xfer_partial): Likewise.
14784 * windows-nat.c (windows_xfer_memory): Likewise. Call
14785 pulongest instead of plongest.
14786 (windows_xfer_partial): Likewise.
14787 (windows_xfer_shared_libraries): Likewise.
14788
05804640
YQ
147892014-01-14 Yao Qi <yao@codesourcery.com>
14790
14791 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14792 target_xfer_partial_ftype.
14793
b5b08fb4
SC
147942014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14795
14796 PR python/15464
14797 PR python/16113
14798 * valops.c (value_struct_elt_bitpos): New function
14799 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14800 object to 'None' if the field name is an empty string ("").
14801 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14802 attribute to look for a field when 'name' is 'None'.
14803 (get_field_type): New function
14804
13aaf454
DE
148052014-01-13 Doug Evans <dje@google.com>
14806
14807 PR symtab/16426
14808 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14809 (try_open_dwop_file): Ditto.
14810 * gdb_bfd.c: #include "vec.h".
14811 (bfdp): New typedef.
14812 (struct gdb_bfd_data): New member included_bfds.
14813 (gdb_bfd_unref): Unref all included bfds.
14814 (gdb_bfd_record_inclusion): New function.
14815 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14816
c2cec97c
TT
148172014-01-13 Tom Tromey <tromey@redhat.com>
14818
14819 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14820
78e5999d
TT
148212014-01-13 Tom Tromey <tromey@redhat.com>
14822
14823 * defs.h (use_windows): Remove.
14824 * gdb.c (main): Update.
14825 * main.c (captured_main, gdb_main): Update.
14826 * main.h (struct captured_main_args) <use_windows>: Remove.
14827 * top.c (use_windows): Remove.
14828
f2052bbe
TT
148292014-01-13 Tom Tromey <tromey@redhat.com>
14830
14831 * defs.h (deprecated_flush_hook): Remove.
14832
fde4f8ed
JK
148332014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14834
14835 PR threads/16216
14836 * linux-thread-db.c (try_thread_db_load): Add parameter
14837 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14838 (try_thread_db_load_from_pdir_1): Move it there from here.
14839 (try_thread_db_load_from_sdir): Update caller.
14840 (try_thread_db_load_from_dir): Move it there from here.
14841
bdf61915
PP
148422014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14843
14844 * regformats/regdat.sh: Always rewrite the register file.
14845
f71e1a8d
PA
148462014-01-13 Pedro Alves <palves@redhat.com>
14847
14848 * Makefile.in (CHECK_HEADERS): New variable.
14849 (check-headers:): New rule.
14850
42c85435
TT
148512014-01-13 Tom Tromey <tromey@redhat.com>
14852
14853 * cli/cli-setshow.c (do_set_command): Update.
14854 * defs.h (deprecated_set_hook): Remove.
14855 * top.c (deprecated_set_hook): Remove.
14856
f8de5129
PA
148572014-01-13 Pedro Alves <palves@redhat.com>
14858
14859 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14860 the tracepoint if the PC is a pseudo-register.
14861
fc270c35
TT
148622014-01-13 Tom Tromey <tromey@redhat.com>
14863
14864 * defs.h (XCALLOC): Remove.
14865 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14866 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14867 * dwarf2loc.c (allocate_piece_closure): Likewise.
14868 * elfread.c (elf_symfile_segments): Likewise.
14869 (elf_symfile_segments): Likewise.
14870 * gdbtypes.c (copy_type_recursive): Likewise.
14871 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14872 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14873 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14874 XCALLOC.
14875 * mt-tdep.c (mt_gdbarch_init): Likewise.
14876 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14877 XCALLOC.
14878 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14879 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14880 * registry.c (registry_alloc_data): Likewise.
14881 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14882 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14883 * serial.c (serial_fdopen_ops): Likewise.
14884 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14885 XCALLOC.
14886 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14887 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14888 not XCALLOC.
14889
70ba0933
TT
148902014-01-13 Tom Tromey <tromey@redhat.com>
14891
14892 * defs.h (XMALLOC): Remove.
14893 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14894 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14895 * cli-out.c (struct ui_out *): Likewise.
14896 * cli/cli-dump.c (add_dump_command): Likewise.
14897 (add_dump_command): Likewise.
14898 * complaints.c (get_complaints): Likewise.
14899 (find_complaint): Likewise.
14900 * dwarf2-frame.c (execute_cfa_program): Likewise.
14901 * dwarf2read.c (abbrev_table_read_table): Likewise.
14902 * gdbarch.sh: Likewise.
14903 * gdbarch.c: Rebuild.
14904 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14905 * interps.c (interp_new): Likewise.
14906 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14907 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14908 * mi/mi-console.c (mi_console_file_new): Likewise.
14909 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14910 * mi/mi-out.c (mi_out_new): Likewise.
14911 * mi/mi-parse.c (mi_parse): Likewise.
14912 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14913 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14914 * observer.c (xalloc_observer_list_node): Likewise.
14915 * regcache.c (regcache_xmalloc_1): Likewise.
14916 * reggroups.c (reggroup_new): Likewise.
14917 (_initialize_reggroup): Likewise.
14918 * registry.c (register_data_with_cleanup): Likewise.
14919 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14920 * ser-base.c (serial_ttystate): Likewise.
14921 * ser-mingw.c (make_pipe_state): Likewise.
14922 * ser-pipe.c (pipe_open): Likewise.
14923 * serial.c (serial_open): Likewise.
14924 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14925 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14926 (tui_alloc_win_info): Likewise.
14927 (tui_add_content_elements): Likewise.
14928 * tui/tui-file.c (tui_file_new): Likewise.
14929 * tui/tui-out.c (tui_out_new): Likewise.
14930 * ui-file.c (mem_file_new): Likewise.
14931 * ui-out.c (push_level): Likewise.
14932 (make_cleanup_ui_out_end): Likewise.
14933 (append_header_to_list): Likewise.
14934 (ui_out_new): Likewise.
14935 * user-regs.c (user_reg_add_builtin): Likewise.
14936
41bf6aca
TT
149372014-01-13 Tom Tromey <tromey@redhat.com>
14938
14939 * defs.h (XZALLOC): Remove.
14940 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14941 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14942 (get_ada_tasks_inferior_data): Likewise.
14943 * auto-load.c (get_auto_load_pspace_data): Likewise.
14944 * auxv.c (get_auxv_inferior_data): Likewise.
14945 * bfd-target.c (target_bfd_reopen): Likewise.
14946 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14947 (deprecated_insert_raw_breakpoint): Likewise.
14948 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14949 * corelow.c (core_open): Likewise.
14950 * darwin-nat.c (darwin_check_new_threads): Likewise.
14951 (darwin_attach_pid): Likewise.
14952 * dummy-frame.c (dummy_frame_push): Likewise.
14953 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14954 * dwarf2loc.c (allocate_piece_closure): Likewise.
14955 * elfread.c (elf_symfile_segments): Likewise.
14956 * eval.c (ptrmath_type_p): Likewise.
14957 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14958 * gdbtypes.c (alloc_type_arch): Likewise.
14959 (alloc_type_instance): Likewise.
14960 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14961 * inf-child.c (inf_child_can_use_agent): Likewise.
14962 * inflow.c (get_inflow_inferior_data): Likewise.
14963 * infrun.c (save_infcall_suspend_state): Likewise.
14964 * jit.c (jit_reader_load): Likewise.
14965 (get_jit_objfile_data): Likewise.
14966 (get_jit_program_space_data): Likewise.
14967 (jit_object_open_impl): Likewise.
14968 (jit_symtab_open_impl): Likewise.
14969 (jit_block_open_impl): Likewise.
14970 (jit_frame_sniffer): Likewise.
14971 * linux-fork.c (add_fork): Likewise.
14972 * maint.c (make_command_stats_cleanup): Likewise.
14973 * objfiles.c (get_objfile_pspace_data): Likewise.
14974 * opencl-lang.c (struct lval_closure): Likewise.
14975 * osdata.c (osdata_start_osdata): Likewise.
14976 * progspace.c (new_address_space): Likewise.
14977 (add_program_space): Likewise.
14978 * remote-sim.c (get_sim_inferior_data): Likewise.
14979 * sh-tdep.c (sh_gdbarch_init): Likewise.
14980 * skip.c (Ignore): Likewise.
14981 (skip_delete_command): Likewise.
14982 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14983 (library_list_start_library): Likewise.
14984 (solib_aix_current_sos): Likewise.
14985 * solib-darwin.c (get_darwin_info): Likewise.
14986 (darwin_current_sos): Likewise.
14987 * solib-dsbt.c (get_dsbt_info): Likewise.
14988 * solib-ia64-hpux.c (new_so_list): Likewise.
14989 (ia64_hpux_get_solib_linkage_addr): Likewise.
14990 * solib-spu.c (append_ocl_sos): Likewise.
14991 (spu_current_sos): Likewise.
14992 * solib-svr4.c (get_svr4_info): Likewise.
14993 (svr4_keep_data_in_core): Likewise.
14994 (library_list_start_library): Likewise.
14995 (svr4_default_sos): Likewise.
14996 (svr4_read_so_list): Likewise.
14997 * solib-target.c (library_list_start_library): Likewise.
14998 (solib_target_current_sos): Likewise.
14999 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15000 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15001 * symfile.c (default_symfile_segments): Likewise.
15002 * target-descriptions.c (tdesc_data_init): Likewise.
15003 (tdesc_create_reg): Likewise.
15004 (struct tdesc_type *): Likewise.
15005 (tdesc_create_vector): Likewise.
15006 (tdesc_set_struct_size): Likewise.
15007 (struct tdesc_type *): Likewise.
15008 (tdesc_free_feature): Likewise.
15009 (tdesc_create_feature): Likewise.
15010 * windows-nat.c (windows_add_thread): Likewise.
15011 (windows_make_so): Likewise.
15012 * xml-support.c (gdb_xml_body_text): Likewise.
15013 (gdb_xml_create_parser_and_cleanup): Likewise.
15014 (xml_process_xincludes): Likewise.
15015 * xml-syscall.c (allocate_syscalls_info): Likewise.
15016 (syscall_create_syscall_desc): Likewise.
15017
5acfdbae
SDJ
150182014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15019
15020 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15021 function, with code from i386_stap_parse_special_token.
15022 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15023 (i386_stap_parse_special_token): Move code to the two functions
15024 above; simplify it.
15025
0000e5cc
PA
150262014-01-09 Pedro Alves <palves@redhat.com>
15027 Hui Zhu <hui@codesourcery.com>
15028
15029 PR gdb/16101
15030 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15031 bp_err_string. Don't mark the location shlib_disabled if the
15032 error thrown wasn't a generic or memory error. Catch errors
15033 thrown while inserting breakpoints in overlayed code. Output
15034 error message of software breakpoints.
15035 * remote.c (remote_insert_breakpoint): If this breakpoint has
15036 target-side commands but this stub doesn't support Z0 packets,
15037 throw NOT_SUPPORTED_ERROR error.
15038 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15039 * target.h (target_insert_breakpoint): Extend comment.
15040 (target_insert_hw_breakpoint): Add comment.
15041
b7ea362b
PA
150422014-01-08 Pedro Alves <palves@redhat.com>
15043
15044 * remote.c (remote_add_thread): Add threads silently if starting
15045 up.
15046 (remote_notice_new_inferior): If in all-stop, and starting up,
15047 don't call notice_new_inferior.
15048 (get_current_thread): New function, factored out from ...
15049 (add_current_inferior_and_thread): ... this. Adjust.
15050 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15051 found any thread, then select the remote's current thread as GDB's
15052 current thread too.
15053
b7bba001
JB
150542014-01-08 Joel Brobecker <brobecker@adacore.com>
15055
15056 * NEWS: Create a new section for the next release branch.
15057 Rename the section of the current branch, now that it has
15058 been cut.
15059
16dfbded
JB
150602014-01-08 Joel Brobecker <brobecker@adacore.com>
15061
15062 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15063 * version.in: Bump version to 7.7.50.DATE-cvs.
15064
22c90ac1
YQ
150652014-01-08 Yao Qi <yao@codesourcery.com>
15066
15067 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15068 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15069 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15070
d64ad97c
YQ
150712014-01-08 Yao Qi <yao@codesourcery.com>
15072
15073 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15074 return value of bfd_get_filename to symbol_file_add_from_bfd.
15075
f93ba80c
PM
150762014-01-08 Pierre Muller <muller@sourceware.org>
15077
15078 Fix PR16201.
15079 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15080 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15081 to prim_record_mininal_symbol_and_info.
15082 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15083 in call to prim_record_minimal_symbol_and_info.
15084 (read_pe_exported_syms): Set index field of section_data.
15085
a4d9ba85
AP
150862014-01-07 Andrew Pinski <apinski@cavium.com>
15087
15088 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15089 * features/aarch64.c: Regenerate.
15090
1b67eb02
AS
150912014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15092
15093 * target.c (return_null): Define.
15094 (update_current_target): Use it instead of return_zero for
15095 functions that return a pointer.
15096
5e3f4fab
EBM
150972014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15098
15099 * source.c (add_path): Fix check for duplicated paths in the previously
15100 included paths.
15101
e2616788
HK
151022014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15103
15104 * ada-lang.c: Remove duplicated include statements.
15105 * alphabsd-nat.c: Ditto.
15106 * amd64-darwin-tdep.c: Ditto.
15107 * amd64fbsd-nat.c: Ditto.
15108 * auto-load.c: Ditto.
15109 * ax-gdb.c: Ditto.
15110 * breakpoint.c: Ditto.
15111 * dbxread.c: Ditto.
15112 * fork-child.c: Ditto.
15113 * gdb_usleep.c: Ditto.
15114 * i386-darwin-tdep.c: Ditto.
15115 * i386fbsd-nat.c: Ditto.
15116 * infcmd.c: Ditto.
15117 * inferior.c: Ditto.
15118 * jv-lang.c: Ditto.
15119 * linux-nat.c: Ditto.
15120 * linux-tdep.c: Ditto.
15121 * m68kbsd-nat.c: Ditto.
15122 * m68klinux-nat.c: Ditto.
15123 * microblaze-tdep.c: Ditto.
15124 * mips-linux-tdep.c: Ditto.
15125 * mn10300-tdep.c: Ditto.
15126 * nto-tdep.c: Ditto.
15127 * opencl-lang.c: Ditto.
15128 * osdata.c: Ditto.
15129 * printcmd.c: Ditto.
15130 * regcache.c: Ditto.
15131 * remote-m32r-sdi.c: Ditto.
15132 * remote.c: Ditto.
15133 * symfile.c: Ditto.
15134 * symtab.c: Ditto.
15135 * tilegx-linux-nat.c: Ditto.
15136 * tilegx-tdep.c: Ditto.
15137 * tracepoint.c: Ditto.
15138 * valops.c: Ditto.
15139 * vaxbsd-nat.c: Ditto.
15140 * windows-nat.c: Ditto.
15141 * xtensa-tdep.c: Ditto.
15142
bd1f7788
YQ
151432014-01-07 Yao Qi <yao@codesourcery.com>
15144
15145 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15146
79301218
JB
151472014-01-07 Yao Qi <yao@codesourcery.com>
15148 Joel Brobecker <brobecker@adacore.com>
15149
15150 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15151 (pdc_write_regs): Likewise.
15152 (fetch_regs_kernel_thread): Likewise.
15153 (store_regs_kernel_thread): Likewise.
15154
151552014-01-07 Joel Brobecker <brobecker@adacore.com>
15156
15157 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15158 tagged type objects to their actual type.
15159
8e355c5d
JB
151602014-01-07 Joel Brobecker <brobecker@adacore.com>
15161
15162 * ada-valprint.c (print_field_values): Add "language" parameter.
15163 Update calls to print_field_values and print_variant_part.
15164 Pass new parameter "language" in call to val_print instead
15165 of "current_language". Replace call to ada_val_print by call
15166 to val_print.
15167 (print_variant_part): Add "language" parameter.
15168 (ada_val_print_struct_union): Update call to print_field_values.
15169
4fbf5aa5
JB
151702014-01-07 Joel Brobecker <brobecker@adacore.com>
15171
15172 * ada-valprint.c (ui_memcpy): Delete.
15173 (ada_print_floating): Update documentation. Add empty line
15174 between between function documentation and implementation.
15175 Delete variable "buffer". Use ui_file_xstrdup in place of
15176 ui_file_put. Minor adjustments following this change.
15177
71855601
JB
151782014-01-07 Joel Brobecker <brobecker@adacore.com>
15179
15180 * ada-valprint.c (ada_val_print_string): New function,
15181 extracted from ada_val_print_array.
15182 (ada_val_print_array): Replace extracted code by call
15183 to ada_val_print_string followed by a return. Move
15184 "else" branch to the function's top block.
15185
4eb27a30
JB
151862014-01-07 Joel Brobecker <brobecker@adacore.com>
15187
15188 * ada-valprint.c (ada_val_print_array): Move implementation
15189 down. Rename parameter "offset" and "val" into "offset_aligned"
15190 and "original_value" respectively. Add parameter "offset".
15191
34b27950
JB
151922014-01-07 Joel Brobecker <brobecker@adacore.com>
15193
15194 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15195 re-organizing the code. Change the "???" message printed
15196 when target type is a TYPE_CODE_UNDEF into
15197 "<ref to undefined type>".
15198
079e4591
JB
151992014-01-07 Joel Brobecker <brobecker@adacore.com>
15200
15201 * ada-valprint.c (print_record): Delete, implementation inlined...
15202 (ada_val_print_struct_union): ... here. Remove call to
15203 ada_check_typedef in inlined implementation.
15204
8004dfd1
JB
152052014-01-07 Joel Brobecker <brobecker@adacore.com>
15206
15207 * ada-valprint.c (ada_val_print_gnat_array): New function,
15208 extracted from ada_val_print_1;
15209 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15210 (ada_val_print_flt, ada_val_print_struct_union)
15211 (ada_val_print_ref): Likewise.
15212 (ada_val_print_1): Delete variables i and elttype.
15213 Replace extracted-out code by call to corresponding
15214 new functions.
15215
760a2db0
JB
152162014-01-07 Joel Brobecker <brobecker@adacore.com>
15217
15218 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15219
3a92c861
JB
152202014-01-07 Joel Brobecker <brobecker@adacore.com>
15221
15222 * ada-valprint.c (ada_val_print_1): Replace calls to
15223 ada_val_print_1 by calls to val_print.
15224
cd1630f9
JB
152252014-01-07 Joel Brobecker <brobecker@adacore.com>
15226
15227 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15228 Update calls to self accordingly. Replace calls to c_val_print
15229 by calls to val_print.
15230
bdf779a0
JB
152312014-01-07 Joel Brobecker <brobecker@adacore.com>
15232
15233 * ada-valprint.c (print_record): Delete declaration.
15234 (adjust_type_signedness, ada_val_print_1): Likewise.
15235 (ada_val_print): Move function implementation down.
15236 (print_variant_part, print_field_values, print_record):
15237 Move function implementation up.
15238
c0d48811
JB
152392014-01-07 Joel Brobecker <brobecker@adacore.com>
15240
15241 * python/py-type.c (typy_get_name): New function.
15242 (type_object_getset): Add entry for attribute "name".
15243 * NEWS: Add entry mentioning this new attribute.
15244
c26e9cbb
YQ
152452014-01-07 Yao Qi <yao@codesourcery.com>
15246
15247 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15248 statement.
15249
0cc6f43d
YQ
152502014-01-07 Yao Qi <yao@codesourcery.com>
15251
15252 * gnu-nat.c (info_port_rights): Add qualifier const to
15253 argument args.
15254
eec03155
YQ
152552014-01-07 Yao Qi <yao@codesourcery.com>
15256
15257 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15258
f04a82ef
YQ
152592014-01-07 Yao Qi <yao@codesourcery.com>
15260
15261 * gnu-nat.c (make_inf) Update declaration.
15262 (make_inf): Make it static.
15263 (inf_set_traced): Likewise.
15264 (inf_port_to_thread, inf_task_died_status): Likewise.
15265
d57dda0a
YQ
152662014-01-07 Yao Qi <yao@codesourcery.com>
15267
15268 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15269
3aa8c969
YQ
152702014-01-07 Yao Qi <yao@codesourcery.com>
15271
15272 * gnu-nat.c (_initialize_gnu_nat): Declare.
15273
94123b4f
YQ
152742014-01-07 Yao Qi <yao@codesourcery.com>
15275
15276 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15277 'enum bfd_endian'.
15278 (struct gdbarch_info) <byte_order>: Change type to
15279 'enum bfd_endian'.
15280 <byte_order_for_code>: Likewise.
15281 * gdbarch.c, gdbarch.h: Regenerated.
15282
dc81d70a
TT
152832014-01-06 Sasha Smundak <asmundak@google.com>
15284
15285 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15286
cc2f3c35
TT
152872014-01-06 Tom Tromey <tromey@redhat.com>
15288
15289 * doublest.c (convert_doublest_to_floatformat): Use const, not
15290 CONST.
15291 * somread.c (som_symtab_read): Likewise.
15292
adcf2eed
HZ
152932014-01-07 Hui Zhu <hui@codesourcery.com>
15294
15295 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15296 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15297 (gdb_bfd_fopen): Ditto.
15298 (gdb_bfd_openr): Ditto.
15299 (gdb_bfd_openw): Ditto.
15300 (gdb_bfd_openr_iovec): Ditto.
15301 (gdb_bfd_fdopenr): Ditto.
15302 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15303 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15304 with xstrdup.
15305 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15306 with xstrdup.
15307 * symfile-mem.c (symbol_file_add_from_memory): Removed
15308 gdb_bfd_stash_filename.
15309
50722198
DE
153102014-01-03 Doug Evans <dje@google.com>
15311
15312 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15313 output.
15314
2fa4b862
JB
153152014-01-01 Joel Brobecker <brobecker@adacore.com>
15316
15317 Update year range in copyright notice of all files.
15318
28498c42
JB
153192014-01-01 Joel Brobecker <brobecker@adacore.com>
15320
15321 * top.c (print_gdb_version): Set copyright year to 2014.
15322
7b6e1046
JB
153232014-01-01 Joel Brobecker <brobecker@adacore.com>
15324
15325 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15326
df96af55 15327For older changes see ChangeLog-2013.
c906108c
SS
15328\f
15329Local Variables:
15330mode: change-log
15331left-margin: 8
15332fill-column: 74
15333version-control: never
57da7796 15334coding: utf-8
c906108c 15335End:
This page took 2.253968 seconds and 4 git commands to generate.