Add add-auto-load-scripts-directory.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Add add-auto-load-scripts-directory.
4 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
5 * auto-load.c (add_auto_load_dir): New function.
6 (_initialize_auto_load): Install it.
7
8 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
9
10 Pushed by Joel Brobecker <brobecker@adacore.com>.
11 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
12
13 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
14
15 * eval.c (evaluate_subexp): Check that the thread stack temporaries
16 are not already enabled before enabling them.
17
18 2014-11-29 Yao Qi <yao@codesourcery.com>
19
20 * arm-tdep.c (arm_analyze_prologue): Move local variables
21 'framereg' and 'framesize' to inner block. Move code to
22 inner block too.
23
24 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
25
26 * eval.c: Include gdbthread.h.
27 (evaluate_subexp): Enable thread stack temporaries before
28 evaluating a complete expression and clean them up after the
29 evaluation is complete.
30 * gdbthread.h: Include common/vec.h.
31 (value_ptr): New typedef.
32 (VEC (value_ptr)): New vector type.
33 (value_vec): New typedef.
34 (struct thread_info): Add new fields stack_temporaries_enabled
35 and stack_temporaries.
36 (enable_thread_stack_temporaries)
37 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
38 (get_last_thread_stack_temporary)
39 (value_in_thread_stack_temporaries): Declare.
40 * gdbtypes.c (class_or_union_p): New function.
41 * gdbtypes.h (class_or_union_p): Declare.
42 * infcall.c (call_function_by_hand): Store return values of class
43 type as temporaries on stack.
44 * thread.c (enable_thread_stack_temporaries): New function.
45 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
46 (get_last_thread_stack_temporary): Likewise.
47 (value_in_thread_stack_temporaries): Likewise.
48 * value.c (value_force_lval): New function.
49 * value.h (value_force_lval): Declare.
50
51 2014-11-28 Pierre Muller <muller@sourceware.org>
52
53 Pushed by Joel Brobecker <brobecker@adacore.com>.
54 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
55 registers.
56
57 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
58
59 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
60 * config/sparc/linux.mh (NATDEPFILES): Likewise.
61 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
62 * m68klinux-nat.c (fetch_core_registers): Remove.
63 (linux_elf_core_fns): Remove.
64 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
65
66 2014-11-28 Joel Brobecker <brobecker@adacore.com>
67
68 * utils.c (gdb_realpath): Rework comment about handling on
69 Windows.
70
71 2014-11-28 Yao Qi <yao@codesourcery.com>
72
73 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
74 rename.
75 * gnulib/aclocal.m4: Re-generated.
76 * gnulib/config.in: Re-generated.
77 * gnulib/configure: Re-generated.
78 * gnulib/import/Makefile.am: Re-generated.
79 * gnulib/import/Makefile.in: Re-generated.
80 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
81 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
82 * import/basename-lgpl.c: New file.
83 * import/dirname-lgpl.c: New file.
84 * import/dirname.h: New file.
85 * import/m4/dirname.m4: New file.
86 * import/m4/malloc.m4: New file.
87 * import/m4/rename.m4: New file.
88 * import/m4/rmdir.m4: New file.
89 * import/m4/stdio_h.m4: New file.
90 * import/malloc.c: New file.
91 * import/rename.c: New file.
92 * import/rmdir.c: New file.
93 * import/same-inode.h: New file.
94 * import/stdio.c: New file.
95 * import/stdio.in.h: New file.
96 * import/stripslash.c: New file.
97
98 2014-11-28 Yao Qi <yao@codesourcery.com>
99
100 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
101 and realpath.
102 * config.in: Re-generated.
103 * configure: Re-generated.
104 * utils.c (gdb_realpath): Remove code calling realpath,
105 canonicalize_file_name and pathconf.
106 [!_WIN32]: Call canonicalize_file_name.
107
108 2014-11-28 Yao Qi <yao@codesourcery.com>
109
110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
111 canonicalize-lgpl.
112 * aclocal.m4: Re-generated.
113 * config.in: Re-generated.
114 * configure: Re-generated.
115 * import/Makefile.am: Re-generated.
116 * import/Makefile.in: Re-generated.
117 * import/m4/gnulib-cache.m4: Re-generated.
118 * import/m4/gnulib-comp.m4: Re-generated.
119 * import/canonicalize-lgpl.c: New file.
120 * import/extra/snippet/_Noreturn.h: New file.
121 * import/m4/canonicalize.m4: New file.
122 * import/m4/double-slash-root.m4: New file.
123 * import/m4/eealloc.m4: New file.
124 * import/m4/malloca.m4: New file.
125 * import/m4/nocrash.m4: New file.
126 * import/m4/stdlib_h.m4: New file.
127 * import/malloca.c: New file.
128 * import/malloca.h: New file.
129 * import/malloca.valgrind: New file.
130
131 2014-11-28 Yao Qi <yao@codesourcery.com>
132
133 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
134 * config.in, configure: Regenerate.
135 * symfile.c (find_separate_debug_file_by_debuglink): Remove
136 code checking HAVE_LSTAT is defined.
137
138 2014-11-28 Yao Qi <yao@codesourcery.com>
139
140 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
141 lstat.
142 * gnulib/aclocal.m4: Re-generated.
143 * gnulib/config.in: Re-generated.
144 * gnulib/configure: Re-generated.
145 * gnulib/import/Makefile.am: Re-generated.
146 * gnulib/import/Makefile.in: Re-generated.
147 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
148 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
149 * gnulib/import/lstat.c: New file.
150 * gnulib/import/m4/lstat.m4: New file.
151
152 2014-11-28 Yao Qi <yao@codesourcery.com>
153
154 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
155 * config.in, configure: Re-generate.
156 * inf-child.c (inf_child_fileio_readlink): Don't check
157 HAVE_READLINK is defined.
158
159 2014-11-28 Yao Qi <yao@codesourcery.com>
160
161 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
162 * gnulib/aclocal.m4: Re-generated.
163 * gnulib/config.in: Likewise.
164 * gnulib/configure: Likewise.
165 * gnulib/import/Makefile.am: Likewise.
166 * gnulib/import/Makefile.in: Likewise.
167 * gnulib/import/m4/gnulib-cache.m4: Likewise.
168 * gnulib/import/m4/gnulib-comp.m4: Likewise.
169 * gnulib/import/dosname.h: New file
170 * gnulib/import/m4/largefile.m4: New file.
171 * gnulib/import/m4/readlink.m4: New file.
172 * gnulib/import/m4/stat.m4: New file.
173 * gnulib/import/readlink.c: New file.
174 * gnulib/import/stat.c: New file.
175
176 2014-11-26 Mark Wielaard <mjw@redhat.com>
177
178 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
179 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
180
181 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
182
183 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
184 that there can be only one stack adjustment in the prologue
185 with tests to detect specific disallowed stack adjustments.
186
187 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
188
189 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
190 adjustments.
191
192 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
193
194 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
195 the instruction as well as reading it from memory.
196 (nios2_match_add): New.
197 (nios2_match_sub): New.
198 (nios2_match_addi): New.
199 (nios2_match_orhi): New.
200 (nios2_match_stw): New.
201 (nios2_match_ldw): New.
202 (nios2_match_rdctl): New.
203 (enum branch_condition): New.
204 (nios2_match_branch): New.
205 (nios2_match_jmpi): New.
206 (nios2_match_calli): New.
207 (nios2_match_jmpr): New.
208 (nios2_match_callr): New.
209 (nios2_match_break): New.
210 (nios2_match_trap): New.
211 (nios2_in_epilogue_p): Rewrite to use new functions.
212 (nios2_analyze_prologue): Likewise.
213 (nios2_skip_prologue): Delete unused local limit_pc.
214 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
215 (nios2_get_next_pc): Rewrite to use new functions.
216
217 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
220
221 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
222
223 Pushed by Joel Brobecker <brobecker@adacore.com>
224 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
225 elements pi_len by the size of the elements before calling
226 vm_deallocate.
227 (inf_validate_task_sc): Likewise, and properly deallocate the
228 noise array.
229
230 2014-11-23 Doug Evans <xdje42@gmail.com>
231
232 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
233 number and name if present. All callers updated.
234 (dump_fn_fieldlists): Fix indentation of args.
235
236 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
237
238 * MAINTAINERS (Write After Approval): Add myself.
239
240 2014-11-23 Joel Brobecker <brobecker@adacore.com>
241
242 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
243 to a bp_call_dummy breakpoint type.
244
245 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
246
247 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
248 registering the signal handler.
249
250 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
251
252 * event-top.h (call_stdin_event_handler_again_p): Declare.
253 * event-top.c (call_stdin_event_handler_again_p): Define.
254 (stdin_event_handler): Use it.
255 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
256 handler again if there is pending input following a
257 start sequence.
258
259 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
260
261 Pushed by Joel Brobecker <brobecker@adacore.com>
262 * linux-fork.c (checkpoint_command): Print index of new
263 checkpoint in response message.
264
265 2014-11-23 Yao Qi <yao@codesourcery.com>
266
267 * valprint.c (read_string): Move local variables 'found_nul',
268 'chunksize' and 'limit' to inner scope. Update comments.
269
270 2014-11-22 Doug Evans <xdje42@gmail.com>
271
272 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
273 function comment.
274 (search_symbols): Fix comments and whitespace.
275
276 2014-11-22 Doug Evans <xdje42@gmail.com>
277
278 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
279
280 2014-11-21 Doug Evans <dje@google.com>
281
282 * psymtab.c (psymtab_search_name): Fix whitespace.
283
284 2014-11-21 Yao Qi <yao@codesourcery.com>
285
286 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
287 errno.
288 * gnulib/import/Makefile.am: Re-generated.
289 * gnulib/import/Makefile.in: Likewise.
290 * gnulib/import/m4/gnulib-cache.m4: Likewise.
291
292 2014-11-21 Yao Qi <yao@codesourcery.com>
293
294 * gdb_wchar.h: Include wchar.h and wctype.h.
295 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
296 include wchar.h and wctype.h.
297 Don't check HAVE_WCHAR_H.
298
299 2014-11-21 Yao Qi <yao@codesourcery.com>
300
301 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
302 and wctype-h.
303 * gnulib/import/Makefile.am: Re-generated.
304 * gnulib/import/Makefile.in: Likewise.
305 * gnulib/import/m4/gnulib-cache.m4: Likewise.
306
307 2014-11-21 Yao Qi <yao@codesourcery.com>
308
309 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
310 memchr.
311 * gnulib/import/Makefile.am: Re-generated.
312 * gnulib/import/Makefile.in: Likewise.
313 * gnulib/import/m4/gnulib-cache.m4: Likewise.
314
315 2014-11-21 Yao Qi <yao@codesourcery.com>
316
317 * common/common-defs.h: Include alloca.h
318 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
319 * configure: Re-generated.
320 * defs.h: Remove code handling alloca.
321 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
322 or not.
323
324 2014-11-21 Yao Qi <yao@codesourcery.com>
325
326 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
327 alloca.
328 * gnulib/import/Makefile.am: Re-generated.
329 * gnulib/import/Makefile.in: Likewise..
330 * gnulib/import/m4/gnulib-cache.m4: Likewise.
331
332 2014-11-21 Yao Qi <yao@codesourcery.com>
333
334 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
335 alphabetical order.
336
337 2014-11-21 Joel Brobecker <brobecker@adacore.com>
338
339 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
340 flag_unsigned if HIGH_BOUND is constant and negative.
341
342 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
343
344 PR breakpoints/10737
345 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
346 modifier from "struct gdbarch" when compiling without Expat (XML)
347 support.
348 (get_syscall_by_number): Likewise.
349 (get_syscall_by_name): Likewise.
350 (get_syscall_names): Likewise.
351
352 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
353
354 PR breakpoints/10737
355 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
356 set_xml_syscall_file_name to provide gdbarch.
357 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
358 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
359 * breakpoint.c (print_it_catch_syscall): Adjust call to
360 get_syscall_by_number to provide gdbarch.
361 (print_one_catch_syscall): Likewise.
362 (print_mention_catch_syscall): Likewise.
363 (print_recreate_catch_syscall): Likewise.
364 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
365 and get_syscall_by_name to provide gdbarch.
366 (catch_syscall_completer): Adjust call to get_syscall_names to
367 provide gdbarch.
368 * gdbarch.c: Regenerate.
369 * gdbarch.h: Likewise.
370 * gdbarch.sh: Forward declare "struct syscalls_info".
371 (xml_syscall_file): New variable.
372 (syscalls_info): Likewise.
373 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
374 set_xml_syscall_file_name to provide gdbarch.
375 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
376 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
377 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
378 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
379 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
380 * xml-syscall.c: Include gdbarch.h.
381 (set_xml_syscall_file_name): Accept gdbarch parameter.
382 (get_syscall_by_number): Likewise.
383 (get_syscall_by_name): Likewise.
384 (get_syscall_names): Likewise.
385 (my_gdb_datadir): Delete global variable.
386 (struct syscalls_info) <my_gdb_datadir>: New variable.
387 (struct syscalls_info) <sysinfo>: Rename variable to
388 "syscalls_info".
389 (sysinfo): Delete global variable.
390 (have_initialized_sysinfo): Likewise.
391 (xml_syscall_file): Likewise.
392 (sysinfo_free_syscalls_desc): Rename to...
393 (syscalls_info_free_syscalls_desc): ... this.
394 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
395 code to the new layout of "struct syscalls_info".
396 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
397 "syscalls_info".
398 (syscall_create_syscall_desc): Likewise.
399 (syscall_start_syscall): Likewise.
400 (syscall_parse_xml): Likewise.
401 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
402 (init_sysinfo): Rename to...
403 (init_syscalls_info): ...this. Add gdbarch as a parameter.
404 Adjust function to deal with gdbarch.
405 (xml_get_syscall_number): Delete parameter sysinfo. Accept
406 gdbarch as a parameter. Adjust code.
407 (xml_get_syscall_name): Likewise.
408 (xml_list_of_syscalls): Likewise.
409 (set_xml_syscall_file_name): Accept gdbarch as parameter.
410 (get_syscall_by_number): Likewise.
411 (get_syscall_by_name): Likewise.
412 (get_syscall_names): Likewise.
413 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
414 (get_syscall_by_number): Likewise.
415 (get_syscall_by_name): Likewise.
416 (get_syscall_names): Likewise.
417
418 2014-11-20 Doug Evans <xdje42@gmail.com>
419
420 Split struct symtab into two: struct symtab and compunit_symtab.
421 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
422 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
423 to "struct compunit_symtab *". All callers updated.
424 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
425 "struct symtab *" argument to "struct compunit_symtab *".
426 All callers updated.
427 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
428 result to "struct compunit_symtab *". All callers updated.
429 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
430 Change result to "struct compunit_symtab *". All callers updated.
431 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
432 hange type to "struct compunit_symtab *". All uses updated.
433 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
434 Change type to "struct compunit_symtab *". All uses updated.
435 * buildsym.c (struct buildsym_compunit): New struct.
436 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
437 (buildsym_compunit): New static global.
438 (finish_block_internal): Update to fetch objfile from
439 buildsym_compunit.
440 (make_blockvector): Delete objfile argument.
441 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
442 debugformat, producer.
443 (start_buildsym_compunit): New function.
444 (free_buildsym_compunit): Renamed from free_subfiles_list.
445 All callers updated.
446 (patch_subfile_names): Rewrite to use buildsym_compunit.
447 (get_compunit_symtab): New function.
448 (get_macro_table): Delete argument comp_dir. All callers updated.
449 (start_symtab): Change result to "struct compunit_symtab *".
450 All callers updated. Create the subfile of the main source file.
451 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
452 (reset_symtab_globals): Update.
453 (end_symtab_get_static_block): Update to use buildsym_compunit.
454 (end_symtab_without_blockvector): Rewrite.
455 (end_symtab_with_blockvector): Change result to
456 "struct compunit_symtab *". All callers updated.
457 Update to use buildsym_compunit. Don't set symtab->dirname,
458 instead set it in the compunit.
459 Explicitly make sure main symtab is first in its list.
460 Set debugformat, producer, blockvector, block_line_section, and
461 macrotable in the compunit.
462 (end_symtab_from_static_block): Change result to
463 "struct compunit_symtab *". All callers updated.
464 (end_symtab, end_expandable_symtab): Ditto.
465 (set_missing_symtab): Change symtab argument to
466 "struct compunit_symtab *". All callers updated.
467 (augment_type_symtab): Ditto.
468 (record_debugformat): Update to use buildsym_compunit.
469 (record_producer): Update to use buildsym_compunit.
470 * buildsym.h (struct subfile) <dirname>: Delete.
471 <producer, debugformat>: Delete.
472 <buildsym_compunit>: New member.
473 (get_compunit_symtab): Declare.
474 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
475 from primary_symtab. Change type to "struct compunit_symtab *".
476 All uses updated.
477 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
478 All callers updated.
479 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
480 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
481 symtab. Change type to "struct compunit_symtab *". All uses updated.
482 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
483 All callers updated.
484 (dw2_find_last_source_symtab): Ditto.
485 (dw2_lookup_symbol): Ditto.
486 (recursively_find_pc_sect_compunit_symtab): Renamed from
487 recursively_find_pc_sect_symtab. Change result to
488 "struct compunit_symtab *". All callers updated.
489 (dw2_find_pc_sect_compunit_symtab): Renamed from
490 dw2_find_pc_sect_symtab. Change result to
491 "struct compunit_symtab *". All callers updated.
492 (get_compunit_symtab): Renamed from get_symtab. Change result to
493 "struct compunit_symtab *". All callers updated.
494 (recursively_compute_inclusions): Change type of immediate_parent
495 argument to "struct compunit_symtab *". All callers updated.
496 (compute_compunit_symtab_includes): Renamed from
497 compute_symtab_includes. All callers updated. Rewrite to compute
498 includes of compunit_symtabs and not symtabs.
499 (process_full_comp_unit): Update to work with struct compunit_symtab.
500 (process_full_type_unit): Ditto.
501 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
502 (dwarf_decode_lines): Remove special case handling of main subfile.
503 (macro_start_file): Delete argument comp_dir. All callers updated.
504 (dwarf_decode_macro_bytes): Ditto.
505 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
506 use struct compunit_symtab.
507 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
508 * jit.c (finalize_symtab): Build compunit_symtab.
509 * jv-lang.c (get_java_class_symtab): Change result to
510 "struct compunit_symtab *". All callers updated.
511 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
512 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
513 comp_dir. Change type to "struct compunit_symtab *".
514 All uses updated.
515 (new_macro_table): Change comp_dir argument to cust,
516 "struct compunit_symtab *". All callers updated.
517 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
518 nr_primary_symtabs. All uses updated.
519 (count_symtabs_and_blocks): Update to handle compunits.
520 (report_command_stats): Update output, "primary symtabs" renamed to
521 "compunits".
522 * mdebugread.c (new_symtab): Change result to
523 "struct compunit_symtab *". All callers updated.
524 (parse_procedure): Change type of search_symtab argument to
525 "struct compunit_symtab *". All callers updated.
526 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
527 separate loop.
528 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
529 symtabs. Change type to "struct compunit_symtab *". All uses updated.
530 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
531 All uses updated.
532 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
533 All uses updated.
534 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
535 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
536 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
537 symtab. Change type to "struct compunit_symtab *". All uses updated.
538 * psymtab.c (psymtab_to_symtab): Change result type to
539 "struct compunit_symtab *". All callers updated.
540 (find_pc_sect_compunit_symtab_from_partial): Renamed from
541 find_pc_sect_symtab_from_partial. Change result type to
542 "struct compunit_symtab *". All callers updated.
543 (lookup_symbol_aux_psymtabs): Change result type to
544 "struct compunit_symtab *". All callers updated.
545 (find_last_source_symtab_from_partial): Ditto.
546 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
547 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
548 and macro_table from compunit.
549 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
550 type to "struct compunit_symtab *". All callers updated.
551 (debug_qf_lookup_symbol): Ditto.
552 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
553 debug_qf_find_pc_sect_symtab, change result type to
554 "struct compunit_symtab *". All callers updated.
555 * symfile.c (allocate_symtab): Delete objfile argument.
556 New argument cust.
557 (allocate_compunit_symtab): New function.
558 (add_compunit_symtab_to_objfile): New function.
559 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
560 Change result type to "struct compunit_symtab *". All uses updated.
561 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
562 Change result type to "struct compunit_symtab *". All uses updated.
563 * symmisc.c (print_objfile_statistics): Compute blockvector count in
564 separate loop.
565 (dump_symtab_1): Update test for primary source symtab.
566 (maintenance_info_symtabs): Update to handle compunit symtabs.
567 (maintenance_check_symtabs): Ditto.
568 * symtab.c (set_primary_symtab): Delete.
569 (compunit_primary_filetab): New function.
570 (compunit_language): New function.
571 (iterate_over_some_symtabs): Change type of arguments "first",
572 "after_last" to "struct compunit_symtab *". All callers updated.
573 Update to loop over symtabs in each compunit.
574 (error_in_psymtab_expansion): Rename symtab argument to cust,
575 and change type to "struct compunit_symtab *". All callers updated.
576 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
577 Change result type to "struct compunit_symtab *". All callers updated.
578 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
579 Change result type to "struct compunit_symtab *". All callers updated.
580 (find_pc_sect_line): Only loop over symtabs within selected compunit
581 instead of all symtabs in the objfile.
582 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
583 <compunit_symtab> New member.
584 <block_line_section>: Moved to compunit_symtab.
585 <locations_valid>: Ditto.
586 <epilogue_unwind_valid>: Ditto.
587 <macro_table>: Ditto.
588 <dirname>: Ditto.
589 <debugformat>: Ditto.
590 <producer>: Ditto.
591 <objfile>: Ditto.
592 <call_site_htab>: Ditto.
593 <includes>: Ditto.
594 <user>: Ditto.
595 <primary>: Delete
596 (SYMTAB_COMPUNIT): New macro.
597 (SYMTAB_BLOCKVECTOR): Update definition.
598 (SYMTAB_OBJFILE): Update definition.
599 (SYMTAB_DIRNAME): Update definition.
600 (struct compunit_symtab): New type. Common members among all source
601 symtabs within a compilation unit moved here. All uses updated.
602 (COMPUNIT_OBJFILE): New macro.
603 (COMPUNIT_FILETABS): New macro.
604 (COMPUNIT_DEBUGFORMAT): New macro.
605 (COMPUNIT_PRODUCER): New macro.
606 (COMPUNIT_DIRNAME): New macro.
607 (COMPUNIT_BLOCKVECTOR): New macro.
608 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
609 (COMPUNIT_LOCATIONS_VALID): New macro.
610 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
611 (COMPUNIT_CALL_SITE_HTAB): New macro.
612 (COMPUNIT_MACRO_TABLE): New macro.
613 (ALL_COMPUNIT_FILETABS): New macro.
614 (compunit_symtab_ptr): New typedef.
615 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
616
617 2014-11-20 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
620 if the TYPE_CODE of range_type's base type does not match
621 the TYPE_CODE of encoding_type's base type.
622
623 2014-11-19 Joel Brobecker <brobecker@adacore.com>
624
625 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
626 it starts with '<'.
627
628 2014-11-19 Joel Brobecker <brobecker@adacore.com>
629
630 * ada-lang.c (ada_is_redundant_range_encoding): New function.
631 (ada_is_redundant_index_type_desc): New function.
632 (to_fixed_array_type): Ignore parallel XA type if redundant.
633
634 2014-11-19 Joel Brobecker <brobecker@adacore.com>
635
636 * ada-lang.c (constrained_packed_array_type): Set the length
637 of the return array as if both bounds where zero if that
638 returned array's index type is dynamic.
639
640 2014-11-19 Yao Qi <yao@codesourcery.com>
641
642 * config/i386/go32.mh (CC): Remove.
643
644 2014-11-18 Doug Evans <xdje42@gmail.com>
645
646 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
647 updated.
648
649 2014-11-18 Doug Evans <xdje42@gmail.com>
650
651 * buildsym.c (buildsym_objfile): New static global.
652 (buildsym_comp_dir): New static global.
653 (finish_block_internal): Delete arg objfile. All callers updated.
654 (finish_block): Delete arg objfile. All callers updated.
655 (start_subfile): Delete arg dirname. All callers updated.
656 (patch_subfile_names): Update buildsym_comp_dir.
657 (get_macro_table): Delete arg objfile. All callers updated.
658 (start_symtab): New arg objfile. All callers updated.
659 Rename arg dirname to comp_dir.
660 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
661 (end_symtab_get_static_block): Delete arg objfile. All callers
662 updated.
663 (end_symtab_without_blockvector): Ditto.
664 (end_symtab_with_blockvector): Ditto.
665 (end_symtab_from_static_block): Ditto.
666 (end_symtab): Ditto.
667 (end_expandable_symtab): Ditto.
668 (augment_type_symtab): Ditto.
669 * coffread.c (coff_start_symtab): New arg objfile. All callers
670 updated.
671
672 2014-11-18 Doug Evans <xdje42@gmail.com>
673
674 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
675 updated.
676
677 2014-11-18 Doug Evans <xdje42@gmail.com>
678
679 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
680 symtab.dirname updated to use it.
681
682 2014-11-18 Doug Evans <xdje42@gmail.com>
683
684 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
685 symtab.objfile updated to use it.
686
687 2014-11-18 Doug Evans <xdje42@gmail.com>
688
689 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
690
691 2014-11-18 Doug Evans <xdje42@gmail.com>
692
693 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
694 SYMBOL_OBJFILE.
695 * findvar.c (default_read_var_value): Ditto.
696 * jv-lang.c (add_class_symtab_symbol): Ditto.
697 * parse.c (operator_check_standard): Ditto.
698 * printcmd.c (address_info): Ditto.
699 * symtab.c (fixup_symbol_section): Ditto.
700 (skip_prologue_sal): Ditto.
701 * tracepoint.c (scope_info): Ditto.
702 * valops.c (find_function_in_inferior): Ditto.
703 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
704 * python/py-symbol.c (set_symbol): Ditto.
705
706 2014-11-18 Doug Evans <xdje42@gmail.com>
707
708 * buildsym.c (main_subfile): New static global.
709 (free_subfiles_list): New function.
710 (start_symtab): Set main_subfile.
711 (restart_symtab): Replace init of subfiles, current_subfile with
712 call to free_subfiles_list.
713 (watch_main_source_file_lossage): Use main_subfile.
714 (reset_symtab_globals): Replace init of current_subfile with call
715 to free_subfiles_list.
716 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
717 functions, split out from ...
718 (end_symtab_from_static_block): ... here. Rewrite to call them.
719
720 2014-11-18 Doug Evans <xdje42@gmail.com>
721
722 The result of symtab expansion is always a primary symtab.
723 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
724 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
725 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
726 (psymtab_to_symtab): Add comment and assert.
727 (map_matching_symbols_psymtab): Remove unnecessary test for
728 non-primary symtab.
729
730 2014-11-15 Doug Evans <xdje42@gmail.com>
731
732 PR symtab/17559
733 * symtab.c (find_pc_line_symtab): New function.
734 * symtab.h (find_pc_line_symtab): Declare.
735 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
736 find_pc_symtab.
737 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
738 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
739 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
740 * tui/tui-win.c (make_visible_with_new_height): Ditto.
741 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
742 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
743
744 2014-11-15 Doug Evans <xdje42@gmail.com>
745
746 * symtab.c (expand_symtab_containing_pc): Renamed from
747 find_pc_sect_symtab_via_partial. All callers updated.
748
749 2014-11-15 Yao Qi <yao@codesourcery.com>
750
751 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
752
753 2014-11-14 Joel Brobecker <brobecker@adacore.com>
754
755 * common/common-defs.h: Move <stdarg.h> #include ahead of
756 <stdio.h> #include.
757
758 2014-11-14 Pedro Alves <palves@redhat.com>
759
760 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
761 [!PHONY_ICONV] (gdb_iconv): New function.
762 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
763
764 2014-11-13 Doug Evans <dje@google.com>
765
766 PR symtab/17591
767 * dwarf2read.c (find_slot_in_mapped_hash): Handle
768 "(anonymous namespace)".
769
770 2014-11-13 Doug Evans <dje@google.com>
771
772 * dwarf2read.c (update_enumeration_type_from_children): Avoid
773 infinite loop.
774
775 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 * NEWS (maint set target-async): Fix typo.
778
779 2014-11-12 Pedro Alves <palves@redhat.com>
780
781 * infrun.c (enum infwait_states, infwait_state): Delete.
782
783 2014-11-12 Pedro Alves <palves@redhat.com>
784
785 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
786 Rewrite stepping over a permanent breakpoint.
787 (thread_still_needs_step_over, proceed): Don't set
788 stepping_over_breakpoint for permanent breakpoints.
789 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
790 single-step breakpoints out of the target on hardware step
791 targets.
792 (process_event_stop_test): If stepping a permanent breakpoint
793 doesn't hit the step-resume breakpoint, delete the step-resume
794 breakpoint.
795 (switch_back_to_stepped_thread): Also check if the stepped thread
796 has advanced already on hardware step targets.
797 (currently_stepping): Return true if the thread stepped a
798 breakpoint.
799
800 2014-11-12 Pedro Alves <palves@redhat.com>
801
802 Mark locations as permanent, not the whole breakpoint.
803 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
804 (mark_breakpoints_out): Don't mark permanent breakpoints as
805 uninserted.
806 (breakpoint_init_inferior): Use mark_breakpoints_out.
807 (breakpoint_here_p): Adjust.
808 (bpstat_stop_status, describe_other_breakpoints): Remove handling
809 of permanent breakpoints.
810 (make_breakpoint_permanent): Mark each location as permanent,
811 instead of marking the breakpoint.
812 (add_location_to_breakpoint): If the location is permanent, mark
813 it as such, and as inserted.
814 (init_breakpoint_sal): Don't make the breakpoint permanent here.
815 (bp_location_compare, update_global_location_list): Adjust.
816 (update_breakpoint_locations): Don't make the breakpoint permanent
817 here.
818 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
819 breakpoints.
820 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
821 (struct bp_location) <permanent>: New field.
822 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
823 reference to bp_permanent.
824
825 2014-11-12 Pedro Alves <palves@redhat.com>
826
827 * arch-utils.c (default_skip_permanent_breakpoint): New function.
828 * arch-utils.h (default_skip_permanent_breakpoint): New
829 declaration.
830 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
831 Install default_skip_permanent_breakpoint as default method.
832 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
833 (i386_gdbarch_init): Don't install it.
834 * infrun.c (resume): Assume there's always a
835 gdbarch_skip_permanent_breakpoint implementation.
836 * gdbarch.h, gdbarch.c: Regenerate.
837
838 2014-11-11 Daniel Colascione <dancol@dancol.org>
839
840 Warn about cross-PID-namespace debugging.
841 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
842 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
843 * linux-thread-db.c (check_pid_namespace_match): New function.
844 (thread_db_inferior_created): Call it.
845
846 2014-11-10 Doug Evans <xdje42@gmail.com>
847
848 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
849 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
850
851 2014-11-10 Doug Evans <xdje42@gmail.com>
852
853 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
854
855 2014-11-10 Doug Evans <xdje42@gmail.com>
856
857 PR symtab/17564
858 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
859 (lookup_static_symbol): Move definition to new location and rewrite.
860 (lookup_symbol_in_objfile): New function.
861 (lookup_symbol_global_iterator_cb): Call it.
862
863 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
864
865 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
866
867 2014-11-07 Pedro Alves <palves@redhat.com>
868
869 * infrun.c (process_event_stop_test) <subroutine check>: Don't
870 check if we did a "nexti" inside a prologue.
871 * symtab.c (in_prologue): Delete function.
872 * symtab.h (in_prologue): Delete declaration.
873
874 2014-11-06 Doug Evans <xdje42@gmail.com>
875
876 * symtab.h (lookup_global_symbol): Improve function comment.
877
878 2014-11-06 Doug Evans <xdje42@gmail.com>
879
880 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
881 All callers updated.
882 * symtab.h (lookup_global_symbol): Update decl.
883 (lookup_static_symbol): Move decl to better location.
884
885 2014-11-06 Doug Evans <xdje42@gmail.com>
886
887 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
888
889 2014-11-06 Doug Evans <xdje42@gmail.com>
890
891 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
892 All callers updated.
893 (lookup_symbol_in_all_objfiles): Renamed from
894 lookup_symbol_aux_symtabs. All callers updated.
895 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
896 All callers updated.
897 (lookup_symbol_in_objfile_symtabs): Renamed from
898 lookup_symbol_aux_objfile. All callers updated.
899
900 2014-11-06 Doug Evans <xdje42@gmail.com>
901
902 * symtab.c (lookup_symbol_in_block): Renamed from
903 lookup_symbol_aux_block. All callers updated.
904
905 2014-11-06 Doug Evans <xdje42@gmail.com>
906
907 * symtab.c (lookup_static_symbol): Renamed from
908 lookup_static_symbol_aux. All callers updated.
909 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
910 All callers updated.
911
912 2014-11-06 Doug Evans <xdje42@gmail.com>
913
914 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
915 * block.c (block_lookup_symbol): Use it.
916 * cp-support.c (make_symbol_overload_list_block): Use it.
917 * symtab.c (iterate_over_symbols): Use it.
918
919 2014-11-06 Doug Evans <xdje42@gmail.com>
920
921 * symtab.c (lookup_block_symbol): Moved to ...
922 * block.c (block_lookup_symbol): ... here and renamed.
923 All callers updated.
924 * block.h (block_lookup_symbol): Declare.
925 * symtab.h (lookup_block_symbol): Delete.
926
927 2014-11-06 Doug Evans <xdje42@gmail.com>
928
929 * ada-lang.c (ada_make_symbol_completion_list): Use
930 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
931 * symtab.c (lookup_objfile_from_block): Ditto.
932
933 2014-11-06 Doug Evans <xdje42@gmail.com>
934
935 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
936 TYPE_CODE_STRUCT.
937
938 2014-11-06 Doug Evans <xdje42@gmail.com>
939
940 * objfiles.c (get_objfile_arch): Constify.
941 * objfiles.h (get_objfile_arch): Update prototype.
942 * solib.c (solib_global_lookup): Fetch arch from objfile,
943 not target_gdbarch.
944
945 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
946
947 * nios2-tdep.c (wild_insn): Delete.
948 (profiler_insn, irqentry_insn): Delete.
949 (nios2_match_sequence): Delete.
950 (nios2_analyze_prologue): Update comments. Remove matching
951 of obsolete profiler_insn and irqentry_insn sequences.
952
953 2014-11-05 Alan Modra <amodra@gmail.com>
954
955 * charset.c (convert_between_encodings): Shrink obstack using
956 obstack_blank_fast.
957 * minsyms.c (install_minimal_symbols): Likewise.
958 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
959 to char* before doing pointer arithmetic.
960
961 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
962
963 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
964
965 2014-11-04 Pedro Alves <palves@redhat.com>
966
967 * breakpoint.c (breakpoint_thread_match): Delete function.
968 * breakpoint.h (breakpoint_thread_match): Delete declaration.
969
970 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
971
972 PR c++/17494
973 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
974 the method args also under EVAL_SKIP when evaluating method
975 calls under EVAL_SKIP.
976
977 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
978
979 * dwarf2loc.c (read_pieced_value): Do big endian
980 processing only if gdb_regnum is not -1.
981 (write_pieced_value): Ditto.
982
983 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
984
985 * arm-linux-tdep.c (arm_linux_init_abi): Use
986 info.byte_order_for_code to choose endianity of breakpoint
987 instructions snippets.
988
989 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
990
991 * arm-tdep.c (extract_arm_insn): Use
992 gdbarch_byte_order_for_code to read arm instruction.
993
994 2014-11-02 Doug Evans <xdje42@gmail.com>
995
996 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
997
998 2014-11-02 Doug Evans <xdje42@gmail.com>
999
1000 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1001 main_subfile before returning.
1002
1003 2014-10-31 Doug Evans <xdje42@gmail.com>
1004
1005 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1006 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1007
1008 2014-10-31 Doug Evans <xdje42@gmail.com>
1009
1010 * valops.c (value_cast_pointers): Fix whitespace.
1011 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1012 Ditto.
1013
1014 2014-10-30 Doug Evans <dje@google.com>
1015
1016 * NEWS: Mention ability add attributes to gdb.Objfile and
1017 gdb.Progspace objects.
1018 * python/py-objfile.c (objfile_object): New member dict.
1019 (objfpy_dealloc): Py_XDECREF dict.
1020 (objfpy_initialize): Initialize dict.
1021 (objfile_getset): Add __dict__.
1022 (objfile_object_type): Set tp_dictoffset member.
1023 * python/py-progspace.c (progspace_object): New member dict.
1024 (pspy_dealloc): Py_XDECREF dict.
1025 (pspy_initialize): Initialize dict.
1026 (pspace_getset): Add __dict__.
1027 (pspace_object_type): Set tp_dictoffset member.
1028
1029 2014-10-30 Yao Qi <yao@codesourcery.com>
1030
1031 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1032 replace '\\' with '\\\\'.
1033
1034 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1035
1036 GDB 7.8.1 released.
1037
1038 2014-10-29 Pedro Alves <palves@redhat.com>
1039
1040 PR gdb/17408
1041 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1042 instead of assuming a thread with a stepping range is always
1043 stepping.
1044
1045 2014-10-29 Pedro Alves <palves@redhat.com>
1046
1047 PR python/17372
1048 * event-top.c (change_line_handler): Call
1049 gdb_rl_callback_handler_remove instead of
1050 rl_callback_handler_remove.
1051 (callback_handler_installed): New global.
1052 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1053 (gdb_rl_callback_handler_reinstall): New functions.
1054 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1055 gdb_rl_callback_handler_install instead of
1056 rl_callback_handler_remove and rl_callback_handler_install.
1057 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1058 instead of rl_callback_handler_remove.
1059 * event-top.h (gdb_rl_callback_handler_remove)
1060 (gdb_rl_callback_handler_install)
1061 (gdb_rl_callback_handler_reinstall): New declarations.
1062 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1063 cleanup function.
1064 (fetch_inferior_event): Install it.
1065 * top.c (gdb_readline_wrapper_line) Call
1066 gdb_rl_callback_handler_remove instead of
1067 rl_callback_handler_remove.
1068 (gdb_readline_wrapper_cleanup): Don't call
1069 rl_callback_handler_install.
1070
1071 2014-10-29 Pedro Alves <palves@redhat.com>
1072
1073 * event-top.c (command_line_handler): Clear the first byte of
1074 linebuffer, when it is first allocated.
1075
1076 2014-10-29 Pedro Alves <palves@redhat.com>
1077
1078 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1079 TRY_CATCH.
1080
1081 2014-10-29 Pedro Alves <palves@redhat.com>
1082
1083 PR tui/16138
1084 PR tui/17519
1085 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1086 (tui_allowed_p): Delete function.
1087 * tui/tui.c: Include "interps.h".
1088 (tui_enable): Don't use tui_allowed_p. Error out here with
1089 detailed error messages if the TUI is the top level interpreter,
1090 or if output is not a terminal. Use newterm instead of initscr,
1091 and error out if initializing the terminal fails. Also error out if
1092 the terminal doesn't support cursor addressing.
1093 * tui/tui.h (tui_allowed_p): Delete declaration.
1094
1095 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1096
1097 * arm-tdep.c (arm_skip_stack_protector): Return early if
1098 address loaded by first "ldr" instruction does not have
1099 a corresponding minimal symbol. Update comment.
1100
1101 2014-10-29 Yao Qi <yao@codesourcery.com>
1102
1103 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1104 loaded address correctly of ldr instruction.
1105
1106 2014-10-28 Pedro Alves <palves@redhat.com>
1107
1108 PR gdb/12623
1109 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1110 field.
1111 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1112 thread's stepped_breakpoint field. Skip if reverse debugging.
1113 Add comment.
1114 (init_thread_stepping_state, handle_signal_stop): Clear the
1115 thread's stepped_breakpoint field.
1116
1117 2014-10-27 Pedro Alves <palves@redhat.com>
1118
1119 * remote.c (remote_thread_alive): New, factored out from ...
1120 (remote_thread_alive): ... this.
1121 (remote_update_thread_list): Bail out before deleting threads if
1122 the target returned an empty list, and, the current thread has a
1123 magic/fake ptid.
1124
1125 2014-10-27 Pedro Alves <palves@redhat.com>
1126
1127 * infrun.c (handle_signal_stop): Also skip handlers when a random
1128 signal arrives while handling a "stepi" or a "nexti". Set the
1129 thread's 'step_after_step_resume_breakpoint' flag.
1130
1131 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1132
1133 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1134 (arm_record_ld_st_imm_offset): Reimplement to cover all
1135 load/store cases for ARM opcode 010.
1136 (arm_record_ld_st_multiple): Reimplement to cover all
1137 load/store cases for ARM opcode 100.
1138
1139 2014-10-26 Doug Evans <xdje42@gmail.com>
1140
1141 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1142
1143 2014-10-26 Doug Evans <xdje42@gmail.com>
1144
1145 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1146 parameter "kind" to "block_index".
1147 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1148 "block_index".
1149 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1150
1151 2014-10-26 Doug Evans <xdje42@gmail.com>
1152
1153 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1154
1155 2014-10-26 Doug Evans <xdje42@gmail.com>
1156
1157 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1158 obstack_alloc.
1159
1160 2014-10-26 Doug Evans <xdje42@gmail.com>
1161
1162 * parser-defs.h (block_found): Move decl from here ...
1163 * symtab.h (block_found): ... to here.
1164
1165 2014-10-26 Doug Evans <xdje42@gmail.com>
1166
1167 * symtab.h (struct field_of_this_result): Fix typo in comment.
1168 (lookup_symbol_in_language): Move function comment here.
1169 (lookup_symbol): Improve function comment.
1170 (basic_lookup_symbol_nonlocal): Ditto.
1171 (lookup_symbol_static, lookup_symbol_global): Ditto.
1172 (lookup_symbol_aux_block): Ditto.
1173 (lookup_language_this): Add function comment.
1174 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1175 function comment.
1176 (lookup_block_symbol): Improve function comment.
1177 (lookup_struct): Fix capitalization in function comment.
1178 (lookup_transparent_type): Add function comment.
1179 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1180 Improve function comment.
1181 (lookup_objfile_from_block): Add function comment.
1182 * symtab.c (lookup_symbol_in_language): Update function comment.
1183 (lookup_symbol, lookup_language_this): Ditto.
1184 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1185 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1186 (basic_lookup_symbol_nonlocal): Ditto.
1187 (lookup_symbol_static, lookup_symbol_global): Ditto.
1188 (lookup_transparent_type, lookup_block_symbol): Ditto.
1189
1190 2014-10-25 Doug Evans <xdje42@gmail.com>
1191
1192 * symtab.c (types_info): Delete forward decl.
1193 (functions_info, variables_info, sources_info): Ditto.
1194 (_initialize_symtab): Rewrite forward decl to use
1195 initialize_file_ftype.
1196
1197 2014-10-25 Doug Evans <xdje42@gmail.com>
1198
1199 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1200
1201 2014-10-25 Doug Evans <xdje42@gmail.com>
1202
1203 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1204 of local var child_die.
1205
1206 2014-10-24 Don Breazeal <donb@codesourcery.com>
1207
1208 * infrun.c (follow_fork_inferior): Update fork message printing
1209 to use target_terminal_ours_for_output instead of
1210 target_terminal_ours, to use _() for all format strings, to print
1211 "vfork" instead of "fork" for vforks, and to add a detach message.
1212 (handle_vfork_child_exec_or_exit): Update message printing to use
1213 target_terminal_ours_for_output instead of target_terminal_ours, to
1214 use _() for all format strings, and to fix some formatting.
1215
1216 2014-10-24 Pedro Alves <palves@redhat.com>
1217
1218 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1219 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1220 * config/vax/vax.mh: Delete.
1221 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1222 obsolete configurations section.
1223 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1224 * vax-nat.c: Delete file.
1225
1226 2014-10-24 Pedro Alves <palves@redhat.com>
1227
1228 * NEWS (Removed targets): Add OS/arch column.
1229
1230 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1231
1232 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1233 on the arg type of a constructor only if it is of reference type.
1234
1235 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1236
1237 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1238 accessors and constants from nios2 opcodes update.
1239 (nios2_get_next_pc): Likewise.
1240
1241 2014-10-19 Doug Evans <xdje42@gmail.com>
1242
1243 * gdbthread.h (set_running): Fix comment.
1244 (set_executing, finish_thread_state): Fix comment.
1245
1246 2014-10-18 Doug Evans <xdje42@gmail.com>
1247
1248 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1249
1250 2014-10-17 Doug Evans <dje@google.com>
1251
1252 * NEWS: Mention new event gdb.clear_objfiles.
1253 * python/py-event.h (emit_clear_objfiles_event): Clear
1254 * python/py-events.h (events_object): New member clear_objfiles.
1255 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1256 event.
1257 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1258 emit clear_objfiles event.
1259 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1260 function.
1261 (emit_clear_objfiles_event): New function.
1262 (clear_objfiles): New event.
1263 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1264 Declare.
1265 * python/python.c (_initialize_python): Call
1266 gdbpy_initialize_clear_objfiles_event.
1267
1268 2014-10-17 Doug Evans <dje@google.com>
1269
1270 * NEWS: Mention new gdb.Objfile.progspace attribute.
1271 * python/py-objfile.c (objfpy_get_progspace): New function.
1272 (objfile_getset): New entry for "progspace".
1273
1274 2014-10-17 Pedro Alves <palves@redhat.com>
1275
1276 PR gdb/17471
1277 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1278 returns a copy of the input.
1279 (run_command_1, continue_command, step_1, jump_command)
1280 (signal_command, until_command, advance_command, finish_command)
1281 (attach_command): Adjust and install a cleanup to free the
1282 stripped args.
1283
1284 2014-10-17 Pedro Alves <palves@redhat.com>
1285
1286 PR gdb/17300
1287 * infcmd.c (continue_1): If continuing all threads in the
1288 foreground, make sure the inferior's terminal settings are put in
1289 effect.
1290
1291 2014-10-17 Pedro Alves <palves@redhat.com>
1292
1293 PR gdb/17472
1294 * annotate.c (annotate_breakpoints_invalid): Use
1295 target_terminal_our_for_output instead of target_terminal_ours.
1296 Give back the terminal to the target.
1297 (annotate_frames_invalid): Likewise.
1298
1299 2014-10-17 Pedro Alves <palves@redhat.com>
1300
1301 * target.c (enum terminal_state): New enum.
1302 (terminal_state): New global.
1303 (target_terminal_init): New function.
1304 (target_terminal_inferior): Skip if inferior already owns the
1305 terminal.
1306 (target_terminal_ours, target_terminal_ours_for_output): New
1307 functions.
1308 * target.h (target_terminal_init): Convert to function prototype.
1309 (target_terminal_ours_for_output): Convert to function prototype
1310 and tweak comment.
1311 (target_terminal_ours): Convert to function prototype and tweak
1312 comment.
1313 * windows-nat.c (do_initial_windows_stuff): Call
1314 target_terminal_init instead of child_terminal_init_with_pgrp.
1315
1316 2014-10-17 Pedro Alves <palves@redhat.com>
1317
1318 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1319 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1320 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1321 solib-osf.c.
1322 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1323 * ada-lang.h [__alpha__ && __osf__]
1324 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1325 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1326 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1327 GDB_OSABI_OSF1.
1328 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1329 files.
1330 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1331 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1332 * configure: Regenerate.
1333 * configure.ac: Remove references to osf.
1334 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1335 section. Remove all other references to osf.
1336 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1337 Remove all other references to osf.
1338 * dec-thread.c: Delete file.
1339 * defs.h (GDB_OSABI_OSF1): Delete.
1340 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1341 defined.
1342 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1343 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1344 Delete code.
1345 (unconditionally_kill_inferior)
1346 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1347 * solib-osf.c: Delete file.
1348
1349 2014-10-17 Pedro Alves <palves@redhat.com>
1350
1351 * remote.c (clear_threads_listing_context): Move higher up, out of
1352 the HAVE_LIBEXPAT guard.
1353
1354 2014-10-16 Tristan Gingold <gingold@adacore.com>
1355
1356 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1357 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1358 on amd64.
1359
1360 2014-10-15 Pedro Alves <palves@redhat.com>
1361
1362 * dec-thread.c (dec_thread_count_gdb_threads)
1363 (dec_thread_add_gdb_thread): Delete.
1364 (dec_thread_update_thread_list): Delete.
1365 (dec_thread_find_new_threads): Rename to ...
1366 (dec_thread_update_thread_list): ... this. Delete GDB-size
1367 threads that are no longer found in dec_thread_list.
1368 (resync_thread_list): Delete.
1369 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1370 resync_thread_list.
1371
1372 2014-10-15 Pedro Alves <palves@redhat.com>
1373
1374 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1375 * remote.c (remote_update_thread_list): Skip calling prune_threads
1376 if any thread listing method is supported, and instead walk over
1377 the set of remote threads listed, deleting those that are not
1378 found in GDB's thread list.
1379
1380 2014-10-15 Pedro Alves <palves@redhat.com>
1381
1382 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1383 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1384 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1385 (bsd_uthread_target): Adjust.
1386 * corelow.c (core_open): Adjust.
1387 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1388 (dec_thread_update_thread_list): New function.
1389 (init_dec_thread_ops): Adjust.
1390 * gdbthread.h (prune_threads): New declaration.
1391 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1392 (thread_db_update_thread_list): ... this. Call prune_threads.
1393 (init_thread_db_ops): Adjust.
1394 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1395 (procfs_update_thread_list): ... this. Call prune_threads.
1396 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1397 Adjust.
1398 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1399 (obsd_update_thread_list): ... this. Call prune_threads.
1400 (obsd_add_target): Adjust.
1401 * procfs.c (procfs_target): Adjust.
1402 (procfs_notice_thread): Update comment.
1403 (procfs_find_new_threads): Rename to ...
1404 (procfs_update_thread_list): ... this. Call prune_threads.
1405 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1406 comment.
1407 (ravenscar_wait): Adjust.
1408 (ravenscar_find_new_threads): Rename to ...
1409 (ravenscar_update_thread_list): ... this. Call prune_threads.
1410 (init_ravenscar_thread_ops): Adjust.
1411 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1412 (record_btrace_update_thread_list): ... this. Adjust comment.
1413 (init_record_btrace_ops): Adjust.
1414 * remote.c (remote_threads_info): Rename to ...
1415 (remote_update_thread_list): ... this. Call prune_threads.
1416 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1417 Adjust.
1418 * sol-thread.c (check_for_thread_db): Adjust.
1419 (sol_find_new_threads_callback): Rename to ...
1420 (sol_update_thread_list_callback): ... this.
1421 (sol_find_new_threads): Rename to ...
1422 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1423 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1424 * target-delegates.c: Regenerate.
1425 * target.c (target_find_new_threads): Rename to ...
1426 (target_update_thread_list): ... this.
1427 * target.h (struct target_ops): Rename to_find_new_threads field
1428 to to_update_thread_list.
1429 (target_find_new_threads): Rename to ...
1430 (target_update_thread_list): ... this.
1431 * thread.c (prune_threads): Make extern.
1432 (update_thread_list): Adjust.
1433
1434 2014-10-15 Pedro Alves <palves@redhat.com>
1435
1436 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1437 Add describing comment. Return -1 if the qL packet is not
1438 supported.
1439 (struct thread_item, thread_item_t): Move higher up in
1440 the file. Add comments.
1441 (struct threads_parsing_context): Move higher up in
1442 the file, add comments, and remote to ...
1443 (struct threads_listing_context): ... this.
1444 (remote_newthread_step): Don't add the thread to GDB's thread
1445 database here. Instead push it to the thread_listing_context
1446 list.
1447 (remote_find_new_threads): Rename to ...
1448 (remote_get_threads_with_ql): ... this. Add target_ops and
1449 targets_listing_context parameters. Pass down context.
1450 (start_thread): Adjust.
1451 (clear_threads_parsing_context): Rename to ...
1452 (clear_threads_listing_context): ... this.
1453 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1454 remote_threads_info.
1455 (remote_get_threads_with_qthreadinfo): Ditto.
1456 (remote_threads_info): Reimplement.
1457
1458 2014-10-15 Pedro Alves <palves@redhat.com>
1459
1460 * infrun.c (resume): Don't force displaced-stepping for all
1461 single-steps on software single-stepping archs.
1462
1463 2014-10-15 Pedro Alves <palves@redhat.com>
1464
1465 * breakpoint.c (single_step_breakpoints): Delete global.
1466 (insert_single_step_breakpoint): Adjust to store the breakpoint
1467 pointer in the current thread.
1468 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1469 (cancel_single_step_breakpoints): Delete functions.
1470 (breakpoint_has_location_inserted_here): Make extern.
1471 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1472 breakpoint list.
1473 * breakpoint.h (breakpoint_has_location_inserted_here): New
1474 declaration.
1475 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1476 (cancel_single_step_breakpoints): Remove declarations.
1477 * gdbthread.h (struct thread_control_state)
1478 <single_step_breakpoints>: New field.
1479 (delete_single_step_breakpoints)
1480 (thread_has_single_step_breakpoints_set)
1481 (thread_has_single_step_breakpoint_here): New declarations.
1482 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1483 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1484 (singlestep_pc): Delete globals.
1485 (infrun_thread_ptid_changed): Remove references to removed
1486 globals.
1487 (resume_cleanups): Delete the current thread's single-step
1488 breakpoints.
1489 (maybe_software_singlestep): Remove references to removed globals.
1490 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1491 delete_single_step_breakpoints.
1492 (init_wait_for_inferior): Remove references to removed globals.
1493 (delete_thread_infrun_breakpoints): Delete the thread's
1494 single-step breakpoints too.
1495 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1496 single-step breakpoints here.
1497 (delete_stopped_threads_single_step_breakpoints): New function.
1498 (adjust_pc_after_break): Adjust to use
1499 thread_has_single_step_breakpoints_set.
1500 (handle_inferior_event): Remove references to removed globals.
1501 Use delete_stopped_threads_single_step_breakpoints.
1502 (handle_signal_stop): Adjust to per-thread single-step
1503 breakpoints. Swap test order to do cheaper tests first.
1504 (switch_back_to_stepped_thread): Extend debug output. Remove
1505 references to removed globals.
1506 * record-full.c (record_full_wait_1): Adjust to per-thread
1507 single-step breakpoints.
1508 * thread.c (delete_single_step_breakpoints)
1509 (thread_has_single_step_breakpoints_set)
1510 (thread_has_single_step_breakpoint_here): New functions.
1511 (clear_thread_inferior_resources): Also delete the thread's
1512 single-step breakpoints.
1513
1514 2014-10-15 Pedro Alves <palves@redhat.com>
1515
1516 * thread.c (delete_thread_breakpoint): New function.
1517 (delete_step_resume_breakpoint)
1518 (delete_exception_resume_breakpoint): Use it.
1519 (delete_at_next_stop): New function.
1520 (clear_thread_inferior_resources): Use delete_at_next_stop.
1521
1522 2014-10-15 Pedro Alves <palves@redhat.com>
1523
1524 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1525 (breakpoint_inserted_here_p): ... here. Remove special case for
1526 software single-step breakpoints.
1527 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1528 (software_breakpoint_inserted_here_p): ... here. Remove special
1529 case for software single-step breakpoints.
1530 (bp_target_info_copy_insertion_state)
1531 (deprecated_insert_raw_breakpoint)
1532 (deprecated_remove_raw_breakpoint): Delete functions.
1533 * breakpoint.h (deprecated_insert_raw_breakpoint)
1534 (deprecated_remove_raw_breakpoint): Remove declarations.
1535
1536 2014-10-15 Pedro Alves <palves@redhat.com>
1537
1538 PR breakpoints/9649
1539 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1540 Delete array globals.
1541 (single_step_breakpoints): New global.
1542 (breakpoint_xfer_memory): Remove special handling for single-step
1543 breakpoints.
1544 (update_breakpoints_after_exec): Delete bp_single_step
1545 breakpoints.
1546 (detach_breakpoints): Remove special handling for single-step
1547 breakpoints.
1548 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1549 (bpstat_stop_status): Add comment.
1550 (bpstat_what, bptype_string, print_one_breakpoint_location)
1551 (adjust_breakpoint_address, init_bp_location): Handle
1552 bp_single_step.
1553 (new_single_step_breakpoint): New function.
1554 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1555 handling for single-step breakpoints.
1556 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1557 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1558 Rewrite.
1559 (detach_single_step_breakpoints, find_single_step_breakpoint):
1560 Delete functions.
1561 (breakpoint_has_location_inserted_here): New function.
1562 (single_step_breakpoint_inserted_here_p): Rewrite.
1563 * breakpoint.h: Remove FIXME.
1564 (enum bptype) <bp_single_step>: New enum value.
1565 (insert_single_step_breakpoint): Update comment.
1566 * infrun.c (resume_cleanups)
1567 (delete_step_thread_step_resume_breakpoint): Remove single-step
1568 breakpoints.
1569 (fetch_inferior_event): Install a cleanup that removes infrun
1570 breakpoints.
1571 (switch_back_to_stepped_thread) <expect thread advanced also>:
1572 Clear step-over info.
1573
1574 2014-10-15 Pedro Alves <palves@redhat.com>
1575
1576 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1577 (delete_thread_infrun_breakpoints): New function, with parts
1578 salvaged from delete_step_resume_breakpoint_callback.
1579 (delete_step_thread_step_resume_breakpoint): Delete.
1580 (for_each_just_stopped_thread_callback_func): New typedef.
1581 (for_each_just_stopped_thread): New function.
1582 (delete_just_stopped_threads_infrun_breakpoints): New function.
1583 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1584 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1585 ... this. Adjust.
1586 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1587
1588 2014-10-15 Pedro Alves <palves@redhat.com>
1589
1590 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1591 trying to step past a non-steppable watchpoint.
1592 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1593 field.
1594 * infrun.c (struct step_over_info): Add new field
1595 'nonsteppable_watchpoint_p' and adjust comments.
1596 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1597 Adjust.
1598 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1599 (stepping_past_nonsteppable_watchpoint): New function.
1600 (step_over_info_valid_p): Also return true if stepping past a
1601 nonsteppable watchpoint.
1602 (proceed): Adjust call to set_step_over_info. Remove reference to
1603 init_infwait_state.
1604 (init_wait_for_inferior): Remove reference to init_infwait_state.
1605 (waiton_ptid): Delete global.
1606 (struct execution_control_state)
1607 <stepped_after_stopped_by_watchpoint>: Delete field.
1608 (wait_for_inferior, fetch_inferior_event): Always pass
1609 minus_one_ptid to target_wait.
1610 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1611 field.
1612 (init_infwait_state): Delete function.
1613 (handle_inferior_event): Remove infwait_state handling.
1614 (handle_signal_stop) <watchpoints handling>: Adjust after
1615 stepped_after_stopped_by_watchpoint removal. Don't remove
1616 breakpoints here nor set infwait_state. Set the thread's
1617 stepping_over_watchpoint flag, and call keep_going instead.
1618 (keep_going): Handle stepping_over_watchpoint. Adjust
1619 set_step_over_info calls.
1620 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1621 function.
1622
1623 2014-10-15 Pedro Alves <palves@redhat.com>
1624
1625 * infrun.c (step_over_info_valid_p): New function.
1626 (resume): Use step_over_info_valid_p instead of checking the
1627 threads's trap_expected flag.
1628
1629 2014-10-15 Doug Evans <dje@google.com>
1630 Walfred Tedeschi <walfred.tedeschi@intel.com>
1631
1632 PR python/17364
1633 * python/lib/gdb/__init__.py (packages): Add "printer".
1634 * python/lib/gdb/command/bound_registers.py: Moved to ...
1635 * python/lib/gdb/printer/bound_registers.py: ... here.
1636 Add printer to global set of builtin printers. Rename printer from
1637 "bound" to "mpx_bound128".
1638 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1639 registered as global "builtin" printer.
1640 (add_builtin_pretty_printer): New function.
1641 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1642 gdb/printer/__init__.py.
1643
1644 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1645
1646 * Makefile.in (SFILES): Remove d-support.c.
1647 (COMMON_OBS): Remove d-support.o.
1648 * d-lang.h (d_parse_symbol): Remove declaration.
1649 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1650 * d-support.c: Remove file.
1651
1652 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1653
1654 * gdb/infrun.c (process_event_stop_test): Apply
1655 gdbarch_addr_bits_remove to longjmp resume address.
1656
1657 2014-10-15 Pedro Alves <palves@redhat.com>
1658
1659 * regformats/microblaze.dat: Delete file.
1660
1661 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1662
1663 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1664 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1665
1666 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1667
1668 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1669 as non-trivial.
1670
1671 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1672
1673 PR c++/13403
1674 PR c++/15154
1675 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1676 with qualified args.
1677
1678 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1681 of the case where the second operand is a pointer.
1682 <BINOP_SUB>: Likewise.
1683
1684 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1685
1686 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1687 only if it is not NULL.
1688 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1689 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1690 (struct probe_ops) <clear_semaphore>: Likewise.
1691 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1692 not NULL.
1693 (stop_tracing): Likewise, for clear_semaphore.
1694
1695 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1696
1697 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1698 using language_c, instead of current_language.
1699
1700 2014-10-13 Doug Evans <dje@google.com>
1701
1702 * python/py-objfile.c (objfpy_initialize): New function.
1703 (objfpy_new, objfile_to_objfile_object): Call it.
1704 * python/py-progspace.c (pspy_initialize): New function.
1705 (pspy_new, pspace_to_pspace_object): Call it.
1706
1707 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1708 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 Fix "save breakpoints" for "catch" command.
1711 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1712 newline.
1713
1714 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1715
1716 Fix "save breakpoints" for "disable $bpnum" command.
1717 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1718
1719 2014-10-10 Pedro Alves <palves@redhat.com>
1720
1721 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1722 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1723 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1724 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1725 and been removed.
1726 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1727 * configure.ac: Remove references to IRIX.
1728 * configure.host: Add *-*-irix* to the obsolete hosts section.
1729 Remove all other references to irix.
1730 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1731 Delete files.
1732
1733 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1734
1735 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1736 isn't valid, release the tdesc arch data and return NULL.
1737
1738 2014-10-10 Pedro Alves <palves@redhat.com>
1739
1740 * linux-tdep.c: Include observer.h.
1741 (linux_inferior_data): New global.
1742 (struct linux_info): New structure.
1743 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1744 (get_linux_inferior_data): New functions.
1745 (linux_vsyscall_range): Rename to ...
1746 (linux_vsyscall_range_raw): ... this.
1747 (linux_vsyscall_range): New function; handles caching.
1748 (_initialize_linux_tdep): Register linux_inferior_data. Install
1749 inferior_exit and inferior_appeared observers.
1750
1751 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1752 Pedro Alves <palves@redhat.com>
1753
1754 PR symtab/14466
1755 * solib-svr4.c (svr4_read_so_list): Rename to ...
1756 (svr4_current_sos_1): ... this and change the function comment.
1757 (svr4_current_sos): New function.
1758
1759 2014-10-10 Pedro Alves <palves@redhat.com>
1760
1761 * arch-utils.c (default_vsyscall_range): New function.
1762 * arch-utils.h (default_vsyscall_range): New declaration.
1763 * gdbarch.sh (vsyscall_range): New hook.
1764 * gdbarch.h, gdbarch.c: Regenerate.
1765 * linux-tdep.c (linux_vsyscall_range): New function.
1766 (linux_init_abi): Install linux_vsyscall_range as
1767 vsyscall_range gdbarch hook.
1768 * memrange.c (address_in_mem_range): New function.
1769 * memrange.h (address_in_mem_range): New declaration.
1770 * symfile-mem.c (find_vdso_size): Delete function.
1771 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1772
1773 2014-10-10 Pedro Alves <palves@redhat.com>
1774
1775 * infrun.c (normal_stop): Fix typo in comment.
1776
1777 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1778
1779 PR tdep/9390
1780 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1781 typo when using logical AND to determine instruction type.
1782
1783 2014-10-09 Yao Qi <yao@codesourcery.com>
1784
1785 * infrun.c (handle_signal_stop): Remove local variable
1786 'printed'.
1787
1788 2014-10-08 Stan Shebs <stan@codesourcery.com>
1789
1790 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1791
1792 2014-10-08 Gary Benson <gbenson@redhat.com>
1793
1794 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1795
1796 2014-10-08 Gary Benson <gbenson@redhat.com>
1797
1798 * common/common-defs.h: Include common-exceptions.h.
1799 * exceptions.h: Do not include common-exceptions.h.
1800
1801 2014-10-08 Gary Benson <gbenson@redhat.com>
1802
1803 * common/common-defs.h: Include cleanups.h.
1804 * common/common-exceptions.c: Do not include cleanups.h.
1805 * utils.h: Likewise.
1806
1807 2014-10-08 Gary Benson <gbenson@redhat.com>
1808
1809 * ada-lang.c: Do not include exceptions.h.
1810 * ada-valprint.c: Likewise.
1811 * amd64-tdep.c: Likewise.
1812 * auto-load.c: Likewise.
1813 * block.c: Likewise.
1814 * break-catch-throw.c: Likewise.
1815 * breakpoint.c: Likewise.
1816 * btrace.c: Likewise.
1817 * c-lang.c: Likewise.
1818 * cli/cli-cmds.c: Likewise.
1819 * cli/cli-interp.c: Likewise.
1820 * cli/cli-script.c: Likewise.
1821 * completer.c: Likewise.
1822 * corefile.c: Likewise.
1823 * corelow.c: Likewise.
1824 * cp-abi.c: Likewise.
1825 * cp-support.c: Likewise.
1826 * cp-valprint.c: Likewise.
1827 * darwin-nat.c: Likewise.
1828 * dwarf2-frame-tailcall.c: Likewise.
1829 * dwarf2-frame.c: Likewise.
1830 * dwarf2loc.c: Likewise.
1831 * dwarf2read.c: Likewise.
1832 * eval.c: Likewise.
1833 * event-loop.c: Likewise.
1834 * event-top.c: Likewise.
1835 * f-valprint.c: Likewise.
1836 * frame-unwind.c: Likewise.
1837 * frame.c: Likewise.
1838 * gdbtypes.c: Likewise.
1839 * gnu-v2-abi.c: Likewise.
1840 * gnu-v3-abi.c: Likewise.
1841 * guile/scm-auto-load.c: Likewise.
1842 * guile/scm-breakpoint.c: Likewise.
1843 * guile/scm-cmd.c: Likewise.
1844 * guile/scm-frame.c: Likewise.
1845 * guile/scm-lazy-string.c: Likewise.
1846 * guile/scm-param.c: Likewise.
1847 * guile/scm-symbol.c: Likewise.
1848 * guile/scm-type.c: Likewise.
1849 * hppa-hpux-tdep.c: Likewise.
1850 * i386-tdep.c: Likewise.
1851 * inf-loop.c: Likewise.
1852 * infcall.c: Likewise.
1853 * infcmd.c: Likewise.
1854 * infrun.c: Likewise.
1855 * interps.c: Likewise.
1856 * interps.h: Likewise.
1857 * jit.c: Likewise.
1858 * linespec.c: Likewise.
1859 * linux-nat.c: Likewise.
1860 * linux-thread-db.c: Likewise.
1861 * m32r-rom.c: Likewise.
1862 * main.c: Likewise.
1863 * memory-map.c: Likewise.
1864 * mi/mi-cmd-break.c: Likewise.
1865 * mi/mi-cmd-stack.c: Likewise.
1866 * mi/mi-interp.c: Likewise.
1867 * mi/mi-main.c: Likewise.
1868 * monitor.c: Likewise.
1869 * nto-procfs.c: Likewise.
1870 * objc-lang.c: Likewise.
1871 * p-valprint.c: Likewise.
1872 * parse.c: Likewise.
1873 * ppc-linux-tdep.c: Likewise.
1874 * printcmd.c: Likewise.
1875 * probe.c: Likewise.
1876 * python/py-auto-load.c: Likewise.
1877 * python/py-breakpoint.c: Likewise.
1878 * python/py-cmd.c: Likewise.
1879 * python/py-finishbreakpoint.c: Likewise.
1880 * python/py-frame.c: Likewise.
1881 * python/py-framefilter.c: Likewise.
1882 * python/py-function.c: Likewise.
1883 * python/py-gdb-readline.c: Likewise.
1884 * python/py-inferior.c: Likewise.
1885 * python/py-infthread.c: Likewise.
1886 * python/py-lazy-string.c: Likewise.
1887 * python/py-linetable.c: Likewise.
1888 * python/py-param.c: Likewise.
1889 * python/py-prettyprint.c: Likewise.
1890 * python/py-symbol.c: Likewise.
1891 * python/py-type.c: Likewise.
1892 * python/py-value.c: Likewise.
1893 * python/python-internal.h: Likewise.
1894 * python/python.c: Likewise.
1895 * record-btrace.c: Likewise.
1896 * record-full.c: Likewise.
1897 * regcache.c: Likewise.
1898 * remote-fileio.c: Likewise.
1899 * remote-mips.c: Likewise.
1900 * remote.c: Likewise.
1901 * rs6000-aix-tdep.c: Likewise.
1902 * rs6000-nat.c: Likewise.
1903 * skip.c: Likewise.
1904 * solib-darwin.c: Likewise.
1905 * solib-dsbt.c: Likewise.
1906 * solib-frv.c: Likewise.
1907 * solib-ia64-hpux.c: Likewise.
1908 * solib-spu.c: Likewise.
1909 * solib-svr4.c: Likewise.
1910 * solib.c: Likewise.
1911 * spu-tdep.c: Likewise.
1912 * stack.c: Likewise.
1913 * stap-probe.c: Likewise.
1914 * symfile-mem.c: Likewise.
1915 * symmisc.c: Likewise.
1916 * target.c: Likewise.
1917 * thread.c: Likewise.
1918 * top.c: Likewise.
1919 * tracepoint.c: Likewise.
1920 * tui/tui-interp.c: Likewise.
1921 * typeprint.c: Likewise.
1922 * utils.c: Likewise.
1923 * valarith.c: Likewise.
1924 * valops.c: Likewise.
1925 * valprint.c: Likewise.
1926 * value.c: Likewise.
1927 * varobj.c: Likewise.
1928 * windows-nat.c: Likewise.
1929 * xml-support.c: Likewise.
1930
1931 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1932
1933 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1934 name implies.
1935 (extended_mips16_next_pc): Update accordingly.
1936
1937 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1938
1939 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1940 function.
1941 (micromips_instruction_is_compact_branch): Likewise.
1942 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1943 or a compact jump, reaching a jump delay slot, or seeing a
1944 second non-prologue instruction.
1945 (micromips_scan_prologue): Also terminate scanning upon seeing a
1946 compact branch or jump, or reaching a branch or jump delay slot.
1947 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1948 or jump delay slot, or seeing a second non-prologue instruction.
1949 (mips32_instruction_has_delay_slot): Retain instruction
1950 examination code only, update arguments accordingly and move
1951 instruction fetch pieces to...
1952 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1953 (micromips_instruction_has_delay_slot): Likewise and to...
1954 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1955 (mips16_instruction_has_delay_slot): Likewise and to...
1956 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1957 (mips_single_step_through_delay): Update accordingly.
1958 (mips_adjust_breakpoint_address): Likewise.
1959
1960 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1961
1962 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1963 !mustbe32 also return 1 for 32-bit instructions.
1964 (mips16_instruction_has_delay_slot): Likewise. Add an
1965 explanatory comment.
1966
1967 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1968
1969 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1970 symbols special.
1971
1972 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1973
1974 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1975 update comments.
1976 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1977 for the breakpoint's address. Don't preinitialize `placed_size'.
1978 (insert_bp_location): Set `reqstd_address' rather than
1979 `placed_address'.
1980 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1981 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1982 address.
1983 (bkpt_remove_location): Likewise.
1984 (deprecated_insert_raw_breakpoint): Likewise.
1985 (deprecated_remove_raw_breakpoint): Likewise.
1986 (find_single_step_breakpoint): Likewise.
1987 * mem-break.c (default_memory_insert_breakpoint): Use
1988 `reqstd_address' for the breakpoint's address. Don't set
1989 `placed_address' or `placed_size' if breakpoint contents couldn't
1990 have been determined.
1991 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1992 the breakpoint's address.
1993 (remote_insert_hw_breakpoint): Likewise. Don't set
1994 `placed_address' or `placed_size' if breakpoint couldn't have been
1995 set.
1996 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1997 `reqstd_address' for the breakpoint's address.
1998 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1999 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2000 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2001 * microblaze-linux-tdep.c
2002 (microblaze_linux_memory_remove_breakpoint): Likewise.
2003 * monitor.c (monitor_insert_breakpoint): Likewise.
2004 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2005 (procfs_insert_hw_breakpoint): Likewise.
2006 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2007 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2008 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2009 * remote-mips.c (mips_insert_breakpoint): Likewise.
2010 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2011
2012 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2013
2014 * valops.c (value_assign): Check for bit field assignments
2015 before calling architecture-specific register value
2016 conversion functions.
2017
2018 2014-10-03 Pierre Muller <muller@sourceware.org>
2019
2020 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2021
2022 2014-10-02 Pedro Alves <palves@redhat.com>
2023
2024 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2025 threads_are_executing.
2026 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2027 describing comment.
2028 * gdbthread.h (threads_are_executing): Declare.
2029 (handle_signal_stop) <random signals>: Don't print about the
2030 signal here if stopping.
2031 (end_stepping_range): Don't notify observers here.
2032 (normal_stop): Update the thread list. If stopped by a random
2033 signal or a stepping range ended, notify observers.
2034 * thread.c (threads_executing): New global.
2035 (init_thread_list): Clear 'threads_executing'.
2036 (set_executing): Set or clear 'threads_executing'.
2037 (threads_are_executing): New function.
2038 (update_threads_executing): New function.
2039 (update_thread_list): Use it.
2040
2041 2014-10-02 Pedro Alves <palves@redhat.com>
2042
2043 PR breakpoints/17431
2044 * breakpoint.c (update_breakpoints_after_exec): Don't create
2045 overlay, longjmp, std terminate nor exception breakpoints here.
2046
2047 2014-10-02 Pedro Alves <palves@redhat.com>
2048
2049 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2050 Adjust comments.
2051 * inferior.c (find_inferior_for_program_space): Give preference to
2052 the current inferior.
2053 * inferior.h (find_inferior_for_program_space): Update comment.
2054 * progspace.c (switch_to_program_space_and_thread): Prefer the
2055 current inferior if it's bound to the program space requested. If
2056 the inferior found doesn't have a PID yet, don't bother looking up
2057 a thread.
2058 * progspace.h (switch_to_program_space_and_thread): Adjust
2059 comment.
2060 * thread.c (any_thread_of_process, any_live_thread_of_process):
2061 Give preference to the current thread.
2062
2063 2014-10-01 Pedro Alves <palves@redhat.com>
2064
2065 * breakpoint.c (insert_bp_location): Error out if inserting a
2066 software breakpoint at a read-only address.
2067 * target.c (memory_xfer_check_region): New function, factored out
2068 from ...
2069 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2070 ULONGEST.
2071 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2072 against the memory region attributes.
2073
2074 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2075
2076 * NEWS: Announce new exit-code field in -list-thread-groups
2077 output.
2078 * inferior.c (exit_inferior_1): Don't clear exit code.
2079 (inferior_appeared): Clear exit code.
2080 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2081 code.
2082
2083 2014-10-01 Pedro Alves <palves@redhat.com>
2084
2085 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2086 GENERATED" along with emacs/vi read-only markers.
2087 * regformats/aarch64.dat: Regenerate.
2088 * regformats/arm-with-iwmmxt.dat: Regenerate.
2089 * regformats/arm-with-neon.dat: Regenerate.
2090 * regformats/arm-with-vfpv2.dat: Regenerate.
2091 * regformats/arm-with-vfpv3.dat: Regenerate.
2092 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2093 * regformats/i386/amd64-avx.dat: Regenerate.
2094 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2095 * regformats/i386/amd64-avx512.dat: Regenerate.
2096 * regformats/i386/amd64-linux.dat: Regenerate.
2097 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2098 * regformats/i386/amd64-mpx.dat: Regenerate.
2099 * regformats/i386/amd64.dat: Regenerate.
2100 * regformats/i386/i386-avx-linux.dat: Regenerate.
2101 * regformats/i386/i386-avx.dat: Regenerate.
2102 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2103 * regformats/i386/i386-avx512.dat: Regenerate.
2104 * regformats/i386/i386-linux.dat: Regenerate.
2105 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2106 * regformats/i386/i386-mmx.dat: Regenerate.
2107 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2108 * regformats/i386/i386-mpx.dat: Regenerate.
2109 * regformats/i386/i386.dat: Regenerate.
2110 * regformats/i386/x32-avx-linux.dat: Regenerate.
2111 * regformats/i386/x32-avx.dat: Regenerate.
2112 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2113 * regformats/i386/x32-avx512.dat: Regenerate.
2114 * regformats/i386/x32-linux.dat: Regenerate.
2115 * regformats/i386/x32.dat: Regenerate.
2116 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2117 * regformats/mips-dsp-linux.dat: Regenerate.
2118 * regformats/mips-linux.dat: Regenerate.
2119 * regformats/mips64-dsp-linux.dat: Regenerate.
2120 * regformats/mips64-linux.dat: Regenerate.
2121 * regformats/nios2-linux.dat: Regenerate.
2122 * regformats/rs6000/powerpc-32.dat: Regenerate.
2123 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2124 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2125 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2126 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2127 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2128 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2129 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2130 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2131 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2132 * regformats/s390-linux32.dat: Regenerate.
2133 * regformats/s390-linux32v1.dat: Regenerate.
2134 * regformats/s390-linux32v2.dat: Regenerate.
2135 * regformats/s390-linux64.dat: Regenerate.
2136 * regformats/s390-linux64v1.dat: Regenerate.
2137 * regformats/s390-linux64v2.dat: Regenerate.
2138 * regformats/s390-te-linux64.dat: Regenerate.
2139 * regformats/s390x-linux64.dat: Regenerate.
2140 * regformats/s390x-linux64v1.dat: Regenerate.
2141 * regformats/s390x-linux64v2.dat: Regenerate.
2142 * regformats/s390x-te-linux64.dat: Regenerate.
2143 * regformats/tic6x-c62x-linux.dat: Regenerate.
2144 * regformats/tic6x-c62x.dat: Regenerate.
2145 * regformats/tic6x-c64x-linux.dat: Regenerate.
2146 * regformats/tic6x-c64x.dat: Regenerate.
2147 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2148 * regformats/tic6x-c64xp.dat: Regenerate.
2149
2150 2014-10-01 Pedro Alves <palves@redhat.com>
2151
2152 * features/Makefile: Update comments.
2153 (XMLTOC): List all xml files we build C files from.
2154 (clean-cfiles): New rule.
2155
2156 2014-10-01 Pedro Alves <palves@redhat.com>
2157
2158 * features/i386/amd64-avx512-linux.c: Regenerate.
2159 * features/i386/amd64-avx512.c: Regenerate.
2160 * features/i386/x32-avx512-linux.c: Regenerate.
2161 * features/i386/x32-avx512.c: Regenerate.
2162
2163 2014-10-01 Pedro Alves <palves@redhat.com>
2164
2165 * features/Makefile (WHICH): Remove arm-with-m,
2166 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2167
2168 2014-10-01 Pedro Alves <palves@redhat.com>
2169
2170 * features/Makefile (clean): New rule.
2171
2172 2014-10-01 Pedro Alves <palves@redhat.com>
2173
2174 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2175 (zmm14h): Add missing end quotes.
2176
2177 2014-10-01 Pedro Alves <palves@redhat.com>
2178
2179 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2180 * features/aarch64.c: Regenerate.
2181
2182 2014-09-30 Don Breazeal <donb@codesourcery.com>
2183
2184 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2185 code so as to work with follow_fork_inferior.
2186 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2187 (inf_ttrace_create_inferior): Remove reference to
2188 inf_ttrace_vfork_ppid.
2189 (inf_ttrace_attach): Ditto.
2190 (inf_ttrace_detach): Ditto.
2191 (inf_ttrace_kill): Use current_inferior instead of
2192 inf_ttrace_vfork_ppid.
2193 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2194 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2195 inferior away from the parent.
2196 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2197 target_follow_fork.
2198 (follow_fork_inferior): New function.
2199 (follow_inferior_reset_breakpoints): Make function static.
2200 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2201 * linux-nat.c (linux_child_follow_fork): Move target-independent
2202 code to infrun.c:follow_fork_inferior.
2203
2204 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2205
2206 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2207 * gdbarch.c: Regenerate.
2208 * gdbarch.h: Likewise.
2209 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2210 gdbarch method 'regset_from_core_section'.
2211 (get_core_register_section): Remove handling for the case that
2212 regset == NULL and regset_from_core_section is defined.
2213 (get_core_registers): Drop check for deleted method.
2214 * procfs.c (procfs_do_thread_registers): Adjust comment.
2215
2216 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2217
2218 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2219 (linux_nat_make_corefile_notes): Remove.
2220 (linux_target_install_ops): Do not set target method
2221 'make_corefile_notes'.
2222 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2223 Remove field.
2224 (linux_corefile_thread_callback): Instead of args->collect, call
2225 linux_collect_thread_registers.
2226 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2227 NULL unless there is a regset iterator.
2228 (linux_make_corefile_notes_1): Remove.
2229 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2230 by linux_make_corefile_notes.
2231 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2232
2233 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2234
2235 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2236 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2237 Remove.
2238 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2239
2240 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241
2242 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2243 (xtensa_iterate_over_regset_sections): New.
2244 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2245
2246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2247
2248 * vax-tdep.c (vax_regset_from_core_section): Remove.
2249 (vax_iterate_over_regset_sections): New.
2250 (vax_gdbarch_init): Adjust gdbarch initialization.
2251
2252 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2253
2254 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2255 (tilegx_regset_from_core_section): Remove.
2256 (tilegx_iterate_over_regset_sections): New.
2257 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2258
2259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2260
2261 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2262 (sparc_iterate_over_regset_sections): New.
2263 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2264 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2265 targets.
2266 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2267 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2268 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2269 target method 'make_corefile_notes'.
2270
2271 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2272
2273 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2274 'sizeof_gregset' and 'sizeof_fpregset'.
2275 * sh-tdep.c (sh_regset_from_core_section): Remove.
2276 (sh_iterate_over_regset_sections): New.
2277 (sh_gdbarch_init): Adjust gdbarch initialization.
2278 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2279 sizeof_fpregset.
2280 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2281 'sizeof_gregset'.
2282
2283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2284
2285 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2286 (score7_linux_iterate_over_regset_sections): New.
2287 (score_gdbarch_init): Adjust gdbarch initialization.
2288
2289 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2290
2291 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2292 FreeBSD targets.
2293 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2294 method 'make_corefile_notes'.
2295 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2296 (ppcfbsd_regset_from_core_section): Remove.
2297 (ppcfbsd_iterate_over_regset_sections): New.
2298 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2299 initialization.
2300 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2301 (ppcnbsd_iterate_over_regset_sections): New.
2302 (ppcnbsd_init_abi): Adjust.
2303 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2304 (ppcobsd_iterate_over_regset_sections): New.
2305 (ppcobsd_init_abi): Adjust.
2306 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2307 (rs6000_aix_iterate_over_regset_sections): New.
2308 (rs6000_aix_init_osabi): Adjust.
2309
2310 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2311
2312 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2313 (nios2_regset_from_core_section): Remove.
2314 (nios2_iterate_over_regset_sections): New.
2315 (nios2_linux_init_abi): Adjust gdbarch initialization.
2316
2317 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2318
2319 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2320 (am33_iterate_over_regset_sections): New.
2321 (am33_linux_init_osabi): Adjust gdbarch initialization.
2322
2323 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2324
2325 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2326 (mips_linux_iterate_over_regset_sections): New.
2327 (mips_linux_init_abi): Adjust gdbarch initialization.
2328 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2329 (mips64obsd_iterate_over_regset_sections): New.
2330 (mips64obsd_init_abi): Adjust.
2331 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2332 (mipsnbsd_iterate_over_regset_sections): New.
2333 (mipsnbsd_init_abi): Adjust.
2334
2335 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2336
2337 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2338 (m88k_iterate_over_regset_sections): New.
2339 (m88k_gdbarch_init): Adjust gdbarch initialization.
2340
2341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2342
2343 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2344 (ia64_linux_iterate_over_regset_sections): New.
2345 (ia64_linux_init_abi): Adjust gdbarch initialization.
2346
2347 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2348
2349 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2350 (m68kbsd_iterate_over_regset_sections): New.
2351 (m68kbsd_init_abi): Adjust gdbarch initialization.
2352 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2353 (m68k_linux_iterate_over_regset_sections): New.
2354 (m68k_linux_init_abi): Adjust gdbarch initialization.
2355
2356 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2357
2358 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2359 (m32r_linux_regset_from_core_section): Remove.
2360 (m32r_linux_iterate_over_regset_sections): New.
2361 (m32r_linux_init_abi): Adjust gdbarch initialization.
2362
2363 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2364
2365 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2366 (amd64obsd_iterate_over_regset_sections): New.
2367 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2368 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2369 Remove.
2370 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2371 regset_from_core_section initialization.
2372 * i386-tdep.c (i386_regset_from_core_section): Remove.
2373 (i386_iterate_over_regset_sections): New.
2374 (i386_gdbarch_init): Adjust gdbarch initialization.
2375 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2376 (i386_iterate_over_regset_sections): New prototype.
2377 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2378 Remove.
2379 (i386obsd_aout_iterate_over_regset_sections): New.
2380 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2381 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2382 targets.
2383 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2384 (amd64fbsd_init_abi): Call fbsd_init_abi.
2385 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2386 (i386fbsd4_init_abi): Call fbsd_init_abi.
2387 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2388 target method 'make_corefile_notes'.
2389 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2390
2391 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2392
2393 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2394 (hppa_hpux_iterate_over_regset_sections): New.
2395 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2396 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2397 (hppa_linux_iterate_over_regset_sections): New.
2398 (hppa_linux_init_abi): Adjust.
2399 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2400 (hppanbsd_iterate_over_regset_sections): New.
2401 (hppanbsd_init_abi): Adjust.
2402 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2403 (hppaobsd_iterate_over_regset_sections): New.
2404 (hppaobsd_init_abi): Adjust.
2405
2406 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2407
2408 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2409 (frv_linux_iterate_over_regset_sections): New.
2410 (frv_linux_init_abi): Adjust gdbarch initialization.
2411
2412 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2413
2414 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2415 (armbsd_iterate_over_regset_sections): New prototype.
2416 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2417 (armbsd_iterate_over_regset_sections): New.
2418 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2419 initialization.
2420
2421 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2422
2423 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2424 (alpha_linux_iterate_over_regset_sections): New.
2425 (alpha_linux_init_abi): Adjust gdbarch initialization.
2426 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2427 prototype.
2428 (alphanbsd_iterate_over_regset_sections): New prototype.
2429
2430 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2431
2432 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2433 Remove.
2434 (aarch64_linux_iterate_over_regset_sections): New.
2435 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2436
2437 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2438
2439 * fbsd-tdep.c: New file.
2440 * fbsd-tdep.h: New file.
2441 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2442 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2443 (ALLDEPFILES): Add fbsd-tdep.c.
2444
2445 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2446
2447 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2448 parameter.
2449 * gdbarch.h: Regenerate.
2450 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2451 iterator.
2452 (get_core_register_section): Add parameter 'regset' and use it, if
2453 set. Add parameter 'min_size' and verify the bfd section size
2454 against it.
2455 (get_core_registers_cb): Add parameter 'regset' and pass it to
2456 get_core_register section. For the "standard" register sections
2457 ".reg" and ".reg2", set an appropriate default for human_name.
2458 (get_core_registers): Don't abort when the gdbarch has an iterator
2459 but no regset_from_core_section. Add NULL/0 for parameters
2460 'regset'/'min_size' in calls to get_core_register_section.
2461 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2462 'regset' and use it instead of calling the
2463 regset_from_core_section gdbarch method.
2464 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2465 * i386-tdep.c (i386_supply_xstateregset)
2466 (i386_collect_xstateregset, i386_xstateregset): Moved to
2467 i386-linux-tdep.c.
2468 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2469 .reg-xstate.
2470 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2471 core file support only if the regset iterator hasn't been set.
2472 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2473 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2474 Moved from i386-tdep.c and renamed to *_linux*.
2475 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2476 each callback invocation. Allow any .reg-xstate size when reading
2477 from a core file.
2478 * amd64-tdep.c (amd64_supply_xstateregset)
2479 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2480 amd64-linux-tdep.c.
2481 (amd64_regset_from_core_section): Remove.
2482 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2483 install an amd64-specific regset_from_core_section gdbarch method.
2484 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2485 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2486 Moved from amd64-tdep.c and renamed to *_linux*.
2487 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2488 to each callback invocation. Allow any .reg-xstate size when
2489 reading from a core file.
2490 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2491 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2492 each callback invocation.
2493 (arm_linux_init_abi): No longer set the regset_from_core_section
2494 gdbarch method.
2495 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2496 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2497 each callback invocation.
2498 (ppc_linux_init_abi): No longer set the regset_from_core_section
2499 gdbarch method.
2500 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2501 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2502 (s390_regset_from_core_section): Remove.
2503 (s390_iterate_over_regset_sections): Add regset parameter to each
2504 callback invocation.
2505 (s390_gdbarch_init): No longer set the regset_from_core_section
2506 gdbarch method. Drop initialization of deleted tdep fields.
2507
2508 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2509
2510 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2511 (amd64_linux_iterate_over_regset_sections): New.
2512 (amd64_linux_init_abi_common): Don't install the regset section
2513 list, but the new iterator in gdbarch.
2514 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2515 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2516 (arm_linux_iterate_over_regset_sections): ...here. New function.
2517 (arm_linux_init_abi): Set iterator instead of section list.
2518 * corelow.c (get_core_registers_cb): New function, logic moved
2519 from...
2520 (get_core_registers): ...loop body here. Use new iterator method
2521 instead of walking through the regset section list.
2522 * gdbarch.sh: Remove 'core_regset_sections'. New method
2523 'iterate_over_regset_sections'. New typedef
2524 'iterate_over_regset_sections_cb'.
2525 * gdbarch.c: Regenerate.
2526 * gdbarch.h: Likewise.
2527 * i386-linux-tdep.c (i386_linux_regset_sections)
2528 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2529 Remove.
2530 (i386_linux_iterate_over_regset_sections): New.
2531 (i386_linux_init_abi): Don't choose a regset section list, but
2532 install new iterator in gdbarch.
2533 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2534 (linux_collect_regset_section_cb): New function, logic moved
2535 from...
2536 (linux_collect_thread_registers): ...loop body here. Use iterator
2537 method instead of walking through list.
2538 (linux_make_corefile_notes_1): Check for presence of iterator
2539 method instead of regset section list.
2540 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2541 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2542 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2543 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2544 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2545 (ppc_linux_init_abi): Don't choose from above regset section
2546 lists, but install new iterator in gdbarch.
2547 * regset.h (struct core_regset_section): Remove.
2548 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2549 have_linux_v1, have_linux_v2, and have_tdb.
2550 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2551 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2552 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2553 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2554 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2555 (s390_iterate_over_regset_sections): ...here. New function. Use
2556 new tdep fields.
2557 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2558 regset section lists, but install new iterator.
2559
2560 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2561
2562 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2563
2564 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2565
2566 * progspace.c (print_program_space): Don't prune program spaces
2567 before printing them.
2568
2569 2014-09-25 Pedro Alves <palves@redhat.com>
2570
2571 * infrun.c (user_visible_resume_ptid): Don't check
2572 singlestep_breakpoints_inserted_p.
2573
2574 2014-09-25 Pedro Alves <palves@redhat.com>
2575
2576 * breakpoint.c (should_be_inserted): Add debug output.
2577
2578 2014-09-25 Pedro Alves <palves@redhat.com>
2579
2580 * infrun.c (stepping_past_instruction_at)
2581 (clear_exit_convenience_vars): Point at infrun.h instead of
2582 inferior.h.
2583 (handle_signal_stop): Fix typo.
2584
2585 2014-09-24 Yao Qi <yao@codesourcery.com>
2586
2587 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2588 bitmask.
2589
2590 2014-09-22 Gary Benson <gbenson@redhat.com>
2591
2592 * target.c (target_stop): Updated comment.
2593
2594 2014-09-22 Gary Benson <gbenson@redhat.com>
2595
2596 * target/target.h (target_stop_ptid): Renamed as...
2597 (target_stop_and_wait): New function. Updated comment.
2598 All uses updated.
2599 (target_continue_ptid): Renamed as...
2600 (target_continue_no_signal): New function. Updated comment.
2601 All uses updated.
2602
2603 2014-09-22 Pedro Alves <palves@redhat.com>
2604
2605 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2606 and "auto" merged.
2607 * breakpoint.c (enum ugll_insert_mode): New enum.
2608 (always_inserted_mode): Now a plain boolean.
2609 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2610 (breakpoints_always_inserted_mode): Delete.
2611 (breakpoints_should_be_inserted_now): New function.
2612 (insert_breakpoints): Pass UGLL_INSERT to
2613 update_global_location_list instead of calling
2614 insert_breakpoint_locations manually.
2615 (create_solib_event_breakpoint_1): New, factored out from ...
2616 (create_solib_event_breakpoint): ... this.
2617 (create_and_insert_solib_event_breakpoint): Use
2618 create_solib_event_breakpoint_1 instead of calling
2619 insert_breakpoint_locations manually.
2620 (update_global_location_list): Change parameter type from boolean
2621 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2622 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2623 (update_global_location_list_nothrow): Change parameter type from
2624 boolean to enum ugll_insert_mode.
2625 (_initialize_breakpoint): "breakpoint always-inserted" option is
2626 now a boolean command. Update help text.
2627 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2628 (breakpoints_should_be_inserted_now): New declaration.
2629 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2630 Remove breakpoints_always_inserted_mode check.
2631 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2632 * remote.c (remote_start_remote): Likewise.
2633
2634 2014-09-22 Pedro Alves <palves@redhat.com>
2635
2636 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2637 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2638 Instead, pass UGLL_INSERT to update_global_location_list.
2639 (update_global_location_list): Change parameter type from boolean
2640 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2641 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2642 (create_solib_event_breakpoint_1): New, factored out from ...
2643 (create_solib_event_breakpoint): ... this.
2644 (create_and_insert_solib_event_breakpoint): Use
2645 create_solib_event_breakpoint_1 instead of calling
2646 insert_breakpoint_locations manually.
2647 (update_global_location_list): Handle UGLL_INSERT.
2648
2649 2014-09-22 Pedro Alves <palves@redhat.com>
2650
2651 * breakpoint.c (enum ugll_insert_mode): New enum.
2652 (update_global_location_list)
2653 (update_global_location_list_nothrow): Change parameter type from
2654 boolean to enum ugll_insert_mode. All callers adjusted.
2655
2656 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2657
2658 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2659 SystemTap support in GDB.
2660
2661 2014-09-19 Don Breazeal <donb@codesourcery.com>
2662
2663 * linux-nat.c (linux_handle_extended_wait): Call
2664 linux_ptrace_get_extended_event.
2665 (wait_lwp): Call linux_is_extended_waitstatus.
2666 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2667 and linux_is_extended_waitstatus.
2668 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2669 linux_ptrace_get_extended_event.
2670 (linux_ptrace_get_extended_event): New function.
2671 (linux_is_extended_waitstatus): New function.
2672 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2673 (linux_is_extended_waitstatus): New declarations.
2674
2675 2014-09-19 Yao Qi <yao@codesourcery.com>
2676
2677 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2678 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2679 comments. Callers update.
2680 (dwarf_decode_lines): Likewise.
2681 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2682 comments. Skip the line table if 'lowpc' is greater than
2683 'address'. Don't check
2684 dwarf2_per_objfile->has_section_at_zero.
2685
2686 2014-09-18 Doug Evans <dje@google.com>
2687
2688 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2689 * python/py-symtab.c (stpy_get_producer): New function.
2690 (symtab_object_getset): Add "producer" attribute.
2691
2692 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2693
2694 PR gdb/17384
2695 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2696 (do_captured_read_memory_integer): Remove.
2697 (safe_read_memory_integer): Use target_read_memory directly instead
2698 of catching errors in do_captured_read_memory_integer.
2699
2700 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2701
2702 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2703 not gdb/doc.
2704
2705 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2706
2707 * objc-lang.c (find_implementation_from_class): Remove dead code.
2708
2709 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2710
2711 PR cli/7233
2712 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2713 "fprintf_unfiltered (gdb_stdlog...)".
2714
2715 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2716
2717 PR breakpoints/12526
2718 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2719 val_bitsize.
2720 * breakpoint.c (watch_command_1): Use these fields to retain
2721 bitfield information.
2722 (extract_bitfield_from_watchpoint_value): New function.
2723 (watchpoint_check): Use it.
2724 (update_watchpoint): Use it. Optimize the address and length of a
2725 HW watchpoint pointing to a bitfield.
2726 * value.h (unpack_value_bitfield): New prototype.
2727 * value.c (unpack_value_bitfield): Make extern.
2728
2729 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2730
2731 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2732 x86-dregs.o.
2733 * gnu-nat.c (inf_threads): New function.
2734 * gnu-nat.h (inf_threads_ftype): New typedef.
2735 (inf_threads): New declaration.
2736 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2737 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2738 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2739 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2740 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2741 (i386_gnu_dr_get_control): New functions.
2742 (reg_addr): New structure.
2743 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2744 i386 debugging register hooks.
2745 * NEWS: Mention this.
2746
2747 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2748
2749 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2750 vector data transfer instructions.
2751 (arm_record_coproc_data_proc): Updated.
2752
2753 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2754
2755 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2756 arm_record_exreg_ld_st_insn.
2757 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2758 load/store insns.
2759
2760 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2761
2762 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2763 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2764 processing instructions.
2765
2766 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2767
2768 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2769 for advance SIMD struct ld/st insn.
2770 (thumb2_record_decode_insn_handler): Replace stub handler with
2771 thumb2_record_asimd_struct_ld_st.
2772
2773 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2774
2775 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2776 for asimd, vfp and coprocessor insns.
2777 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2778 and coprocessor insns.
2779 (thumb2_record_coproc_insn): New function.
2780 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2781 handlers.
2782 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2783 opcode 110 insns.
2784
2785 2014-09-13 Doug Evans <xdje42@gmail.com>
2786
2787 * NEWS: Mention new "queue-signal" command.
2788 * infcmd.c (queue_signal_command): New function.
2789 (_initialize_infcmd): Add new queue-signal command.
2790
2791 2014-09-13 Doug Evans <xdje42@gmail.com>
2792
2793 * linux-nat.c (wait_lwp): Add debugging printf.
2794 (linux_nat_wait_1): Ditto.
2795
2796 2014-09-12 Pedro Alves <palves@redhat.com>
2797
2798 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2799 (create_and_insert_solib_event_breakpoint): New functions.
2800 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2801 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2802 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2803 (remove_dbx_link_breakpoint): Delete function.
2804 (insert_dbx_link_bpt_in_file): Use
2805 create_and_insert_solib_event_breakpoint instead of
2806 deprecated_insert_raw_breakpoint.
2807 (procfs_wait): Don't check whether we hit __dbx_link here.
2808 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2809 here.
2810 * solib-irix.c (base_breakpoint): Delete global.
2811 (disable_break): Delete function.
2812 (enable_break): Use create_solib_event_breakpoint
2813 instead of deprecated_insert_raw_breakpoint.
2814 (irix_solib_handle_event): New function.
2815 (irix_solib_create_inferior_hook): Don't run the target or disable
2816 the mapping-complete breakpoint here.
2817 (_initialize_irix_solib): Install irix_solib_handle_event as
2818 so_ops->handle_event hook.
2819
2820 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2821 Ulrich Weigand  <uweigand@de.ibm.com>
2822
2823 PR tdep/17379
2824 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2825 instead of read_memory_unsigned_integer.
2826
2827 2014-09-12 Gary Benson <gbenson@redhat.com>
2828
2829 * nat/linux-waitpid.c: Include common-defs.h.
2830 [GDBSERVER]: Add FIXME comment.
2831 [!GDBSERVER]: Don't include defs.h or signal.h.
2832 (linux_debug) [!GDBSERVER]: Remove empty block.
2833
2834 2014-09-12 Gary Benson <gbenson@redhat.com>
2835
2836 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2837 Don't include defs.h or server.h.
2838
2839 2014-09-12 Gary Benson <gbenson@redhat.com>
2840
2841 * nat/linux-btrace.c: Include common-defs.h.
2842 Don't include defs.h, server.h or gdbthread.h.
2843 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2844
2845 2014-09-12 Gary Benson <gbenson@redhat.com>
2846
2847 * common/agent.c: Include common-defs.h.
2848 Don't include defs.h or server.h.
2849 * common/buffer.c: Likewise.
2850 * common/common-debug.c: Likewise.
2851 * common/common-utils.c: Likewise.
2852 * common/errors.c: Likewise.
2853 * common/filestuff.c: Likewise.
2854 * common/format.c: Likewise.
2855 * common/gdb_vecs.c: Likewise.
2856 * common/print-utils.c: Likewise.
2857 * common/ptid.c: Likewise.
2858 * common/rsp-low.c: Likewise.
2859 * common/signals.c: Likewise.
2860 * common/vec.c: Likewise.
2861 * common/xml-utils.c: Likewise.
2862 * nat/linux-osdata.c: Likewise.
2863 * nat/linux-procfs.c: Likewise.
2864 * nat/linux-ptrace.c: Likewise.
2865 * nat/mips-linux-watch.c: Likewise.
2866 * target/waitstatus.c: Likewise.
2867
2868 2014-09-12 Tom Tromey <tromey@redhat.com>
2869 Gary Benson <gbenson@redhat.com>
2870
2871 * common/common-regcache.h: New file.
2872 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2873 * regcache.h: Include common-regcache.h.
2874 (regcache_read_pc): Don't declare.
2875 * regcache.c (get_thread_regcache_for_ptid): New function.
2876 * nat/linux-btrace.c: Don't include regcache.h.
2877 Include common-regcache.h.
2878 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2879
2880 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2881
2882 * regcache.h (struct regset): Declare.
2883
2884 2014-09-11 Pedro Alves <palves@redhat.com>
2885
2886 PR gdb/17347
2887 * main.c: Include "infrun.h".
2888 (catch_command_errors, catch_command_errors_const): Wait for the
2889 foreground command to complete.
2890 * top.c (maybe_wait_sync_command_done): New function, factored out
2891 from ...
2892 (maybe_wait_sync_command_done): ... here.
2893 * top.h (maybe_wait_sync_command_done): New declaration.
2894
2895 2014-09-11 Tom Tromey <tromey@redhat.com>
2896 Gary Benson <gbenson@redhat.com>
2897
2898 * common/symbol.h: New file.
2899 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2900 * minsyms.c (find_minimal_symbol_address): New function.
2901 * common/agent.c: Include common/symbol.h.
2902 [!GDBSERVER]: Don't include objfiles.h.
2903 (agent_look_up_symbols): Use find_minimal_symbol_address.
2904
2905 2014-09-11 Gary Benson <gbenson@redhat.com>
2906
2907 * target/target.h (target_stop_ptid, target_continue_ptid):
2908 Declare.
2909 * target.c (target_stop_ptid, target_continue_ptid): New
2910 functions.
2911 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2912 (agent_run_command): Always use target_stop_ptid and
2913 target_continue_ptid.
2914
2915 2014-09-11 Tom Tromey <tromey@redhat.com>
2916 Gary Benson <gbenson@redhat.com>
2917
2918 * target/target.h: New file.
2919 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2920 * target.h: Include target/target.h.
2921 (target_read_memory, target_write_memory): Don't declare.
2922 * target.c (target_read_uint32): New function.
2923 * common/agent.c: Include target/target.h.
2924 [!GDBSERVER]: Don't include target.h.
2925 (helper_thread_id): Type changed to uint32_t.
2926 (agent_get_helper_thread_id): Use target_read_uint32.
2927 (agent_run_command): Always use target_read_memory and
2928 target_write_memory.
2929 (agent_capability): Type changed to uint32_t.
2930 (agent_capability_check): Use target_read_uint32.
2931
2932 2014-09-11 Gary Benson <gbenson@redhat.com>
2933
2934 * common/common-debug.h (show_debug_regs): Declare.
2935 * common/common-debug.c (show_debug_regs): Define.
2936 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2937 all uses with show_debug_regs. Replace all uses that considered
2938 debug_hw_points as a multi-value integer with straight boolean
2939 uses.
2940 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2941 with show_debug_regs.
2942 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2943 all uses with show_debug_regs.
2944 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2945 uses with show_debug_regs.
2946
2947 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2948
2949 * findvar.c (address_from_register): Handle targets requiring
2950 a special conversion routine even for plain pointer types.
2951
2952 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2953
2954 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2955 (store_register): Do not call exec_one_dummy_insn.
2956
2957 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2958
2959 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2960 dereference it first. Use value_enclosing_type instead of
2961 value_type.
2962 (ada_array_length): Likewise.
2963
2964 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2965
2966 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2967 Adjust function implementation and documentation accordingly.
2968 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2969 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2970 Update call to ada_value_ptr_subscript.
2971
2972 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2973
2974 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2975 instead of VAL's type.
2976
2977 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2978
2979 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2980
2981 2014-09-09 Doug Evans <xdje42@gmail.com>
2982
2983 PR guile/17367
2984 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2985 last parameter to pkg-config, not first.
2986 * configure.ac: Pass --with-guile provided pkg-config path to
2987 GDB_GUILE_PROGRAM_NAMES.
2988 * configure: Regenerate.
2989
2990 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2991
2992 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2993 Bertazi".
2994
2995 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2996
2997 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2998 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2999 the list of sections determining GDB_OSABI_IRIX.
3000
3001 2014-09-09 James Hogan <james.hogan@imgtec.com>
3002
3003 * MAINTAINERS (Write After Approval): Add "James Hogan".
3004
3005 2014-09-09 James Hogan <james.hogan@imgtec.com>
3006
3007 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3008
3009 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3010
3011 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3012
3013 2014-09-08 Doug Evans <xdje42@gmail.com>
3014
3015 PR 17247
3016 * guile.c: #include <signal.h>.
3017 (_initialize_guile): Block SIGCHLD while initializing Guile.
3018
3019 Replaces the following, which is reverted.
3020
3021 2014-07-26 Doug Evans <xdje42@gmail.com>
3022
3023 PR 17185
3024 * configure.ac: Add check for header gc/gc.h.
3025 Add check for function setenv.
3026 * configure: Regenerate.
3027 * config.in: Regenerate.
3028 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3029
3030 2014-09-08 Doug Evans <xdje42@gmail.com>
3031
3032 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3033 with named constant. Fix style of pointer comparison.
3034 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3035
3036 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3037
3038 PR gdb/17035
3039 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3040 decide whether we display the command on "show user".
3041 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3042 printing command name.
3043 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3044 * cli/cli-decode.c (cli_user_command_p): Create helper function
3045 to verify whether cmd_list_element is a user-defined command.
3046
3047 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 PR python/17355
3050 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3051 Fix goto out of TRY_CATCH.
3052
3053 2014-09-06 Doug Evans <xdje42@gmail.com>
3054 Tom Tromey <tromey@redhat.com>
3055
3056 PR 15276
3057 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3058 $_any_caller_matches.
3059 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3060 * python/lib/gdb/function/caller_is.py: New file.
3061
3062 2014-09-06 Doug Evans <xdje42@gmail.com>
3063
3064 * infcmd.c (program_info): Fix typo.
3065
3066 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3067
3068 PR gdb/17235
3069 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3070 'number'. New variable 'has_digit'. Rewrite code to deal with
3071 subexpressions on SDT probes.
3072
3073 2014-09-04 Pedro Alves <palves@redhat.com>
3074
3075 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3076 the input is only one character long.
3077
3078 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3079
3080 PR fortran/17237
3081 * f-valprint.c (f_val_print): Specify the correct print option to
3082 use when printing integer values.
3083
3084 2014-09-04 Gary Benson <gbenson@redhat.com>
3085
3086 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3087 Remove code to cope with LWPs wrapped as PIDs.
3088 Add assertions to ensure no wrapped LWPs are passed.
3089
3090 2014-09-04 Pedro Alves <palves@redhat.com>
3091
3092 * value.c (value_ranges_copy_adjusted): New function, factored out
3093 from ...
3094 (value_contents_copy_raw): ... here.
3095 (unpack_value_bits_as_long_1): Rename back to ...
3096 (unpack_bits_as_long): ... this. Remove 'original_value' and
3097 'result' parameters. Change return type to LONGEST.
3098 (unpack_value_bits_as_long): Delete.
3099 (unpack_value_field_as_long_1): Delete.
3100 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3101 (unpack_value_bitfield): New function.
3102 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3103 (value_fetch_lazy): Use unpack_value_bitfield.
3104 * value.h (unpack_value_bits_as_long): Delete declaration.
3105
3106 2014-09-03 Sasha Smundak <asmundak@google.com>
3107
3108 * python/py-frame.c (frapy_read_register): New function.
3109
3110 2014-09-03 James Hogan <james.hogan@imgtec.com>
3111
3112 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3113 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3114
3115 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3116
3117 PR python/16699
3118 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3119 function.
3120 (add_cmd): Set "completer_handle_brkchars" to NULL.
3121 * cli/cli-decode.h (struct cmd_list_element)
3122 <completer_handle_brkchars>: New field.
3123 * command.h (completer_ftype_void): New typedef.
3124 (set_cmd_completer_handle_brkchars): New prototype.
3125 * completer.c (set_gdb_completion_word_break_characters): New
3126 function.
3127 (complete_line_internal): Call "completer_handle_brkchars"
3128 callback from command.
3129 * completer.h: Include "command.h".
3130 (set_gdb_completion_word_break_characters): New prototype.
3131 * python/py-cmd.c (cmdpy_completer_helper): New function.
3132 (cmdpy_completer_handle_brkchars): New function.
3133 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3134 (cmdpy_init): Set completer_handle_brkchars to
3135 cmdpy_completer_handle_brkchars.
3136
3137 2014-09-03 Gary Benson <gbenson@redhat.com>
3138
3139 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3140 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3141 Loop conditions changed to equivalent form.
3142 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3143 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3144 ALL_DEBUG_ADDRESS_REGISTERS.
3145
3146 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3147
3148 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3149 description fix.
3150
3151 2014-09-02 Doug Evans <dje@google.com>
3152
3153 * typeprint.c (find_global_typedef): Fix comment.
3154
3155 2014-09-02 Gary Benson <gbenson@redhat.com>
3156
3157 * i386-nat.h: Renamed as...
3158 * x86-nat.h: New file. All type, function and variable name
3159 prefixes changed from "i386_" to "x86_". All references updated.
3160 * i386-nat.c: Renamed as...
3161 * x86-nat.c: New file. All type, function and variable name
3162 prefixes changed from "i386_" to "x86_". All references updated.
3163 * common/i386-xstate.h: Renamed as...
3164 * common/x86-xstate.h: New file. All type, function and variable
3165 name prefixes changed from "i386_" to "x86_". All references
3166 updated.
3167 * nat/i386-cpuid.h: Renamed as...
3168 * nat/x86-cpuid.h: New file. All type, function and variable name
3169 prefixes changed from "i386_" to "x86_". All references updated.
3170 * nat/i386-gcc-cpuid.h: Renamed as...
3171 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3172 name prefixes changed from "i386_" to "x86_". All references
3173 updated.
3174 * nat/i386-dregs.h: Renamed as...
3175 * nat/x86-dregs.h: New file. All type, function and variable name
3176 prefixes changed from "i386_" to "x86_". All references updated.
3177 * nat/i386-dregs.c: Renamed as...
3178 * nat/x86-dregs.c: New file. All type, function and variable name
3179 prefixes changed from "i386_" to "x86_". All references updated.
3180
3181 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3182
3183 * varobj.c (_initialize_varobj): Move to the end of file.
3184
3185 2014-08-29 Gary Benson <gbenson@redhat.com>
3186
3187 * common/common-exceptions.h: New file.
3188 * common/common-exceptions.c: Likewise.
3189 * Makefile.in (SFILES): Add common/common-exceptions.c.
3190 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3191 (COMMON_OBS): Add common-exceptions.o.
3192 (common-exceptions.o): New rule.
3193 * exceptions.h (common-exceptions.h): Include.
3194 (gdb_setjmp.h): Do not include.
3195 (return_reason): Moved to common-exceptions.h.
3196 (enum return_reason): Likewise.
3197 (RETURN_MASK): Likewise.
3198 (typedef return_mask): Likewise.
3199 (enum errors): Likewise.
3200 (struct gdb_exception): Likewise.
3201 (exceptions_state_mc_init): Likewise.
3202 (exceptions_state_mc_action_iter): Likewise.
3203 (exceptions_state_mc_action_iter_1): Likewise.
3204 (TRY_CATCH): Likewise.
3205 (throw_exception): Likewise.
3206 (throw_verror): Likewise.
3207 (throw_vquit): Likewise.
3208 (throw_error): Likewise.
3209 (throw_quit): Likewise.
3210 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3211 (enum catcher_action): Likewise.
3212 (struct catcher): Likewise.
3213 (current_catcher): Likewise.
3214 (catcher_list_size): Likewise.
3215 (exceptions_state_mc_init): Likewise.
3216 (catcher_pop): Likewise.
3217 (exceptions_state_mc): Likewise.
3218 (exceptions_state_mc_action_iter): Likewise.
3219 (exceptions_state_mc_action_iter_1): Likewise.
3220 (throw_exception): Likewise.
3221 (exception_messages): Likewise.
3222 (exception_messages_size): Likewise.
3223 (throw_it): Likewise.
3224 (throw_verror): Likewise.
3225 (throw_vquit): Likewise.
3226 (throw_error): Likewise.
3227 (throw_quit): Likewise.
3228 (prepare_to_throw_exception): New function.
3229
3230 2014-08-29 Gary Benson <gbenson@redhat.com>
3231
3232 * common/gdb_setjmp.h: New file.
3233 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3234 * configure.ac: Move sigsetjmp check...
3235 * common/common.m4: ...here.
3236 * configure: Regenerate.
3237 * cp-support.c (SIGJMP_BUF): Delete.
3238 (SIGSETJMP): Likewise.
3239 (SIGLONGJMP): Likewise.
3240 * exceptions.h (gdb_setjmp.h): Include.
3241 (setjmp.h): Do not include.
3242 (EXCEPTIONS_SIGJMP_BUF): Delete.
3243 (EXCEPTIONS_SIGSETJMP): Likewise.
3244 (EXCEPTIONS_SIGLONGJMP): Likewise.
3245 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3246 from gdb_setjmp.h.
3247 * exceptions.c: Likewise.
3248
3249 2014-08-29 Gary Benson <gbenson@redhat.com>
3250
3251 * cleanups.h: Moved to...
3252 * common/cleanups.h: New file.
3253 * cleanups.c: Moved to...
3254 * common/cleanups.c: New file. Include common-defs.h and
3255 cleanups.h. Do not include defs.h.
3256 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3257 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3258 (cleanups.o): New rule.
3259
3260 2014-08-29 Gary Benson <gbenson@redhat.com>
3261
3262 * common/errors.h (internal_warning): New declaration.
3263 (internal_vwarning): Likewise.
3264 * common/errors.c (internal_warning): New function.
3265 * utils.h (internal_warning): Don't declare.
3266 (internal_vwarning): Likewise.
3267 * utils.c (internal_warning): Removed.
3268
3269 2014-08-29 Gary Benson <gbenson@redhat.com>
3270
3271 * main.c (captured_main): Use warning during startup.
3272 Prefix startup warning messages with command name.
3273
3274 2014-08-29 Gary Benson <gbenson@redhat.com>
3275
3276 * main.c (captured_main): Handle usage errors with error.
3277
3278 2014-08-29 Gary Benson <gbenson@redhat.com>
3279
3280 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3281 exit pair with a call to error. Wrap the message with _().
3282
3283 2014-08-29 Gary Benson <gbenson@redhat.com>
3284
3285 * main.c (captured_main): Replace a fprintf/exit
3286 pair with a call to error. Wrap the message with _().
3287
3288 2014-08-29 Gary Benson <gbenson@redhat.com>
3289
3290 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3291 pairs with calls to error. Wrap the message with _().
3292
3293 2014-08-29 Gary Benson <gbenson@redhat.com>
3294
3295 * utils.c (vwarning): Protect calls to target_terminal_ours
3296 and wrap_here.
3297
3298 2014-08-29 Gary Benson <gbenson@redhat.com>
3299
3300 * exceptions.c (print_flush): Protect calls to
3301 target_terminal_ours and wrap_here.
3302
3303 2014-08-29 Gary Benson <gbenson@redhat.com>
3304
3305 * utils.h (filtered_printing_initialized): New declaration.
3306 * utils.c (abort_with_message): New function.
3307 (internal_vproblem): Use abort_with_message for first level
3308 recursive internal problems, and if gdb_stderr is not set up.
3309 Protect calls to target_terminal_ours, begin_line and query.
3310
3311 2014-08-28 Doug Evans <dje@google.com>
3312
3313 * symtab.c (in_prologue): Move definition to better spot.
3314 (skip_prologue_using_sal): Ditto.
3315
3316 2014-08-28 Doug Evans <dje@google.com>
3317
3318 * symtab.c (find_function_start_sal): Move definition to better spot.
3319
3320 2014-08-28 Yao Qi <yao@codesourcery.com>
3321
3322 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3323 found_stack_adjust in forward scan. Remove condition check
3324 on found_stack_adjust which is always true. Indent the code.
3325
3326 2014-08-28 Yao Qi <yao@codesourcery.com>
3327
3328 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3329 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3330 (dwarf_decode_lines): Remove argument
3331 want_line_info. Remove condition check on want_line_info.
3332 Callers update.
3333
3334 2014-08-27 Doug Evans <dje@google.com>
3335
3336 * dwarf2read.c (dwarf_record_line): Fix typo.
3337
3338 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3339
3340 * target.h (struct target_ops::to_terminal_save_ours): Remove
3341 declaration.
3342 (target_terminal_save_ours): Remove macro.
3343 * target-delegates.c: Regenerate.
3344 * inf-child.c (inf_child_target): Don't set the nonexistent
3345 field to_terminal_save_ours.
3346 * inferior.h (child_terminal_save_ours): Remove declaration.
3347 * terminal.h (gdb_save_tty_state): New declaration.
3348 * inflow.c (child_terminal_save_ours): Rename to ...
3349 (gdb_save_tty_state): ... this.
3350 * tui/tui.c: Include terminal.h.
3351 (tui_enable): Use gdb_save_tty_state instead of
3352 target_terminal_save_ours.
3353 (tui_disable): Likewise.
3354
3355 2014-08-25 Doug Evans <dje@google.com>
3356
3357 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3358 Pass NULL instead of 0 for context pointer.
3359
3360 2014-08-25 Yao Qi <yao@codesourcery.com>
3361
3362 * dwarf2read.c: Fix grammatical error.
3363
3364 2014-08-24 Yao Qi <yao@codesourcery.com>
3365
3366 * dwarf2read.c (scan_partial_symbols): Update comments.
3367 Rename argument 'need_pc' with 'set_addrmap'.
3368 (add_partial_namespace): Rename argument 'need_pc' with
3369 'set_addrmap'.
3370 (add_partial_module): Likewise.
3371 (add_partial_subprogram): Likewise. Update comments.
3372 (dwarf2_name): Fix typo.
3373
3374 2014-08-22 Doug Evans <dje@google.com>
3375
3376 PR 17276
3377 * dwarf2read.c (dwarf_record_line_p): New function.
3378 (dwarf_decode_lines_1): Ignore subsequent line number entries
3379 for the same line if any entry had a non-zero discriminator.
3380
3381 2014-08-22 Doug Evans <dje@google.com>
3382
3383 * buildsym.h (record_line_ftype): New typedef.
3384 (record_line): Use it.
3385 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3386 (dwarf_decode_lines_1): Call them.
3387
3388 2014-08-22 Yao Qi <yao@codesourcery.com>
3389
3390 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3391 (ctf_end): Remove code.
3392
3393 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3394
3395 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3396 (linux_make_corefile_notes): call update_thread_list, protected against
3397 exceptions.
3398
3399 2014-08-21 Pedro Alves <palves@redhat.com>
3400
3401 * infcmd.c (attach_command): Remove comment.
3402
3403 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3404
3405 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3406 unsigned LONGEST to ULONGEST.
3407
3408 2014-08-20 Pedro Alves <palves@redhat.com>
3409
3410 * Makefile.in (check-read1): New rule.
3411
3412 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3413
3414 * value.c (value_from_contents_and_address): Strip resolved_type's
3415 typedef layers before checking its TYPE_DATA_LOCATION.
3416
3417 2014-08-20 Pedro Alves <palves@redhat.com>
3418
3419 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3420
3421 2014-08-20 Yao Qi <yao@codesourcery.com>
3422
3423 * amd64-tdep.c (amd64_classify): Add a blank line after the
3424 example. Move "*/" to a new line.
3425 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3426 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3427 * dwarf2read.c (psymtab_include_file_name): Likewise.
3428
3429 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3430 Pedro Alves <palves@redhat.com>
3431
3432 PR symtab/14604
3433 PR symtab/14605
3434 * ada-lang.c (coerce_unspec_val_to_type): Use
3435 value_contents_copy_raw.
3436 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3437 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3438 * cp-valprint.c (cp_print_value_fields): Let the common printing
3439 code handle optimized out values.
3440 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3441 * d-valprint.c (dynamic_array_type): Use
3442 value_bits_any_optimized_out.
3443 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3444 check_any_valid fields.
3445 (check_pieced_value_bits): Delete and inline ...
3446 (check_pieced_synthetic_pointer): ... here.
3447 (check_pieced_value_validity): Delete.
3448 (check_pieced_value_invalid): Delete.
3449 (pieced_value_funcs): Remove check_validity and check_any_valid
3450 fields.
3451 (read_pieced_value): Use mark_value_bits_optimized_out.
3452 (write_pieced_value): Switch to use
3453 mark_value_bytes_optimized_out.
3454 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3455 of assuming the whole value is optimized out.
3456 * findvar.c (read_frame_register_value): Remove special handling
3457 of optimized out registers.
3458 (value_from_register): Use mark_value_bytes_optimized_out.
3459 * frame-unwind.c (frame_unwind_got_optimized): Use
3460 mark_value_bytes_optimized_out.
3461 * jv-valprint.c (java_value_print): Adjust.
3462 (java_print_value_fields): Let the common printing code handle
3463 optimized out values.
3464 * mips-tdep.c (mips_print_register): Remove special handling of
3465 optimized out registers.
3466 * opencl-lang.c (lval_func_check_validity): Delete.
3467 (lval_func_check_any_valid): Delete.
3468 (opencl_value_funcs): Remove check_validity and check_any_valid
3469 fields.
3470 * p-valprint.c (pascal_object_print_value_fields): Let the common
3471 printing code handle optimized out values.
3472 * stack.c (read_frame_arg): Remove special handling of optimized
3473 out values. Fetch both VAL and ENTRYVAL before comparing
3474 contents. Adjust to value_available_contents_eq rename.
3475 * valprint.c (valprint_check_validity)
3476 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3477 (val_print_array_elements): Adjust.
3478 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3479 (value_bits_any_optimized_out): New function.
3480 (value_entirely_covered_by_range_vector): New function, factored
3481 out from value_entirely_unavailable.
3482 (value_entirely_unavailable): Reimplement.
3483 (value_entirely_optimized_out): New function.
3484 (insert_into_bit_range_vector): New function, factored out from
3485 mark_value_bits_unavailable.
3486 (mark_value_bits_unavailable): Reimplement.
3487 (struct ranges_and_idx): New struct.
3488 (find_first_range_overlap_and_match): New function, factored out
3489 from value_available_contents_bits_eq.
3490 (value_available_contents_bits_eq): Rename to ...
3491 (value_contents_bits_eq): ... this. Check both unavailable
3492 contents and optimized out contents.
3493 (value_available_contents_eq): Rename to ...
3494 (value_contents_eq): ... this.
3495 (allocate_value_lazy): Remove reference to the old optimized_out
3496 boolean.
3497 (allocate_optimized_out_value): Use
3498 mark_value_bytes_optimized_out.
3499 (require_not_optimized_out): Adjust to check whether the
3500 optimized_out vec is empty.
3501 (ranges_copy_adjusted): New function, factored out from
3502 value_contents_copy_raw.
3503 (value_contents_copy_raw): Also copy the optimized out ranges.
3504 Assert the destination ranges aren't optimized out.
3505 (value_contents_copy): Update comment, remove call to
3506 require_not_optimized_out.
3507 (value_contents_equal): Adjust to check whether the optimized_out
3508 vec is empty.
3509 (set_value_optimized_out, value_optimized_out_const): Delete.
3510 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3511 New functions.
3512 (value_entirely_optimized_out, value_bits_valid): Delete.
3513 (value_copy): Take a VEC copy of the 'optimized_out' field.
3514 (value_primitive_field): Remove special handling of optimized out.
3515 (value_fetch_lazy): Assert that lazy values have no unavailable
3516 regions. Use value_bits_any_optimized_out. Remove some special
3517 handling for optimized out values.
3518 * value.h: Add intro comment about <optimized out> and
3519 <unavailable>.
3520 (struct lval_funcs): Remove check_validity and check_any_valid
3521 fields.
3522 (set_value_optimized_out, value_optimized_out_const): Remove.
3523 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3524 New declarations.
3525 (value_bits_any_optimized_out): New declaration.
3526 (value_bits_valid): Delete declaration.
3527 (value_available_contents_eq): Rename to ...
3528 (value_contents_eq): ... this, and extend comments.
3529
3530 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3531
3532 Fix -fsanitize=address on unreadable inferior strings.
3533 * valprint.c (val_print_string): Fix access before BUFFER.
3534
3535 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3536
3537 * target.c (target_struct_size): Remove.
3538 (target_struct_allocsize): Remove.
3539 (DEFAULT_ALLOCSIZE): Remove.
3540 (target_ops_p): New typedef.
3541 (DEF_VEC_P (target_ops_p)): New vector type.
3542 (target_structs): Change type to VEC (target_ops_p).
3543 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3544 (find_default_run_target): Rewrite for loop following changes to
3545 target_structs.
3546
3547 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3548
3549 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3550 Adjust code accordingly. Adjust function description comment.
3551
3552 2014-08-19 Yao Qi <yao@codesourcery.com>
3553
3554 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3555 types.
3556
3557 2014-08-19 Alan Modra <amodra@gmail.com>
3558
3559 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3560 * config.in: Regenerate.
3561 * configure: Regenerate.
3562
3563 2014-08-19 Tom Tromey <tromey@redhat.com>
3564 Gary Benson <gbenson@redhat.com>
3565
3566 * common/common-debug.h: New file.
3567 * common/common-debug.c: Likewise.
3568 * debug.c: Likewise.
3569 * Makefile.in (SFILES): Add common/common-debug.c.
3570 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3571 (COMMON_OBS): Add common-debug.o and debug.o.
3572 (common-debug.o): New rule.
3573 * common/common-defs.h: Include common-debug.h.
3574 * common/agent.c (debug_agent_printf): New function.
3575 (DEBUG_AGENT): Redefine.
3576 * nat/i386-dregs.c (debug_printf): Undefine.
3577
3578 2014-08-19 Gary Benson <gbenson@redhat.com>
3579
3580 * common/common-defs.h: Include print-utils.h.
3581 * utils.h: Do not include print-utils.h.
3582
3583 2014-08-19 Tom Tromey <tromey@redhat.com>
3584 Gary Benson <gbenson@redhat.com>
3585
3586 * common/common-types.h: New file.
3587 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3588 * common/common-defs.h: Include common-types.h.
3589 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3590 (ULONGEST): Remove.
3591
3592 2014-08-19 Tom Tromey <tromey@redhat.com>
3593 Gary Benson <gbenson@redhat.com>
3594
3595 * common/errors.h: New file.
3596 * common/errors.c: Likewise.
3597 * Makefile.in (SFILES): Add common/errors.c.
3598 (HFILES_NO_SRCDIR): Add common/errors.h.
3599 (COMMON_OBS): Add errors.o.
3600 (errors.o): New rule.
3601 * common/common-defs.h: Include errors.h.
3602 * utils.h (perror_with_name, error, verror, warning, vwarning):
3603 Don't declare.
3604 * common/common-utils.h: (malloc_failure, internal_error):
3605 Likewise.
3606
3607 2014-08-19 Gary Benson <gbenson@redhat.com>
3608
3609 * utils.c (internal_vproblem): Always print the message.
3610
3611 2014-08-18 Doug Evans <dje@google.com>
3612
3613 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3614
3615 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3616
3617 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3618 Return 0 if TYPE is dynamic.
3619 (print_range): Add handling of dynamic ranges.
3620
3621 2014-08-18 Keven Boell <keven.boell@intel.com>
3622 Joel Brobecker <brobecker@adacore.com>
3623
3624 * gdbtypes.h (struct main_type): Add field "data_location".
3625 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3626 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3627 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3628 a dynamic data location.
3629 (resolve_dynamic_type): Add DW_AT_data_location handling.
3630 (copy_recursive, copy_type): Copy the data_location information
3631 when present.
3632 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3633 * value.c (value_from_contents_and_address): Add
3634 DW_AT_data_location handling.
3635
3636 2014-08-18 Keven Boell <keven.boell@intel.com>
3637 Joel Brobecker <brobecker@adacore.com>
3638
3639 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3640 field "get_object_address".
3641 * dwarf2expr.c (execute_stack_op): Add handling for
3642 DW_OP_push_object_address.
3643 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3644 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3645 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3646 (dwarf_expr_get_obj_addr): New function.
3647 (dwarf_expr_ctx_funcs): Add get_object_address field.
3648 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3649 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3650 (dwarf2_evaluate_property): Add parameter "address". Use it.
3651 (needs_get_obj_addr): New function.
3652 (needs_frame_ctx_funcs): Add get_object_address field.
3653 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3654 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3655 (resolve_dynamic_array): Likewise.
3656
3657 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3658
3659 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3660 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3661 fixed value for records and unions for which some GNAT encodings
3662 are present.
3663
3664 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3665
3666 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3667 rewrite to avoid "else if" and "else" constructs. Should be
3668 a no-op in practice.
3669
3670 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3671
3672 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3673 of lexical block.
3674
3675 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3676
3677 PR c++/17132
3678 * eval.c: Update all calls to find_overload_match.
3679 * valarith.c: Likewise.
3680 (value_user_defined_cpp_op, value_user_defined_op): New
3681 argument NOSIDE. Update all callers.
3682 * valops.c (find_overload_match): New argument NOSIDE.
3683 * value.h (find_overload_match): Update signature.
3684
3685 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3686
3687 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3688 'items' methods instead of 'iteritems' method on dictionaries.
3689
3690 2014-08-15 Doug Evans <dje@google.com>
3691
3692 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3693 closer to use.
3694
3695 2014-08-15 Doug Evans <dje@google.com>
3696
3697 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3698
3699 2014-08-15 Doug Evans <dje@google.com>
3700
3701 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3702
3703 2014-08-15 Doug Evans <dje@google.com>
3704
3705 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3706 unused.
3707
3708 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3709
3710 * dcache.h: Include target.h, to avoid compile time warnings.
3711
3712 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3713
3714 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3715 frame_info" partial declaration.
3716 * gdbarch.h: Regenerate.
3717
3718 2014-08-15 Yao Qi <yao@codesourcery.com>
3719
3720 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3721 Add parameter 'decode_for_pst_p'. Callers update.
3722
3723 2014-08-13 Yao Qi <yao@codesourcery.com>
3724
3725 PR build/17104
3726 * configure.ac: Use local variable 'pos'.
3727 * configure: Regenerated.
3728
3729 2014-08-11 Doug Evans <dje@google.com>
3730
3731 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3732 message, it is redundant with "Reading symbols from ..." message.
3733
3734 2014-08-10 Doug Evans <xdje42@gmail.com>
3735
3736 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3737
3738 2014-08-09 Yao Qi <yao@codesourcery.com>
3739
3740 PR remote/9053
3741 * remote.c (remote_xfer_partial): Remove dead code.
3742
3743 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3744
3745 * ia64-linux-tdep.c: Include "regset.h".
3746 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3747 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3748 (ia64_linux_supply_fpregset): New function.
3749 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3750 (ia64_linux_regset_from_core_section): New function.
3751 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3752 method.
3753
3754 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3755
3756 * m68klinux-tdep.c: Include "regset.h".
3757 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3758 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3759 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3760 (m68k_linux_regset_from_core_section): New function.
3761 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3762 method.
3763
3764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3765
3766 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3767 function. Move logic to...
3768 (tilegx_linux_regmap): ... this new register map.
3769 (tilegx_linux_regset): Refer to register map, replace supply
3770 method by regcache_supply_regset, and add collect method.
3771 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3772 TILEGX_FIRST_EASY_REGNUM.
3773
3774 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3775
3776 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3777 that calls regcache_supply_regset and handles the EPC register
3778 separately. Move main logic to...
3779 (score7_linux_gregmap): ... this new register map.
3780 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3781 (score7_linux_gregset): Refer to register map. Add collect method.
3782 (score7_linux_regset_from_core_section): Replace
3783 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3784 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3785 (struct regset): Delete unused forward declaraction.
3786 (struct pt_regs): Delete structure definition.
3787 (elf_gregset_t): Delete typedef.
3788
3789 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3790
3791 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3792 (nios2_core_regset): Add collect method.
3793
3794 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3795
3796 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3797 platform-independent and don't write to read-only input buffer.
3798 (m32r_linux_collect_gregset): New function.
3799 (m32r_linux_gregset): Add collect method.
3800
3801 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3802
3803 * hppa-linux-tdep.c (greg_map): Rename to...
3804 (hppa_linux_gregmap): ... this. Also convert to
3805 regcache_map_entry format.
3806 (hppa_linux_supply_regset): Delete function.
3807 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3808 (hppa_linux_fpregmap): ... this new register map.
3809 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3810 register map, replace supply method by regcache_supply_regset, and
3811 add collect method regcache_collect_regset.
3812
3813 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3814
3815 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3816 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3817 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3818 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3819 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3820 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3821 (frv_linux_supply_gregset): Replace main logic by call to
3822 regcache_supply_regset, but keep clearing gr32-gr63.
3823 (frv_linux_supply_fpregset): Delete function.
3824 (frv_linux_gregset): Refer to appropriate register map and add
3825 regcache_collect_regset as the collect method.
3826 (frv_linux_fpregset): Likewise. Also exchange the supply method
3827 by regcache_supply_regset.
3828
3829 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3830
3831 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3832 by call to alpha_supply_int_regs.
3833 (alpha_linux_collect_gregset): New function.
3834 (alpha_linux_supply_fpregset): Replace logic by call to
3835 alpha_supply_fp_regs.
3836 (alpha_linux_collect_fpregset): New function.
3837 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3838
3839 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3840
3841 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3842 by call to regcache_collect_regset.
3843 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3844 instead of aarch64_linux_supply_gregset/_fpregset.
3845 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3846 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3847 header file instead.
3848 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3849 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3850 functions. Move logic to ...
3851 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3852 register maps.
3853 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3854 refer to new register maps, replace *_regset_from_core by
3855 regcache_supply_regset, and also use regcache_collect_regset.
3856 * aarch64-linux-tdep.h: Include "regset.h".
3857 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3858 Delete prototypes.
3859 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3860 macros, moved from C source file.
3861 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3862 variable declarations.
3863
3864 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3865
3866 * s390-linux-nat.c: Include "regset.h".
3867 (regmap_gregset): Delete macro.
3868 (s390_64_regmap_gregset): New register map for
3869 regcache_supply/_collect_regset.
3870 (s390_64_gregset): New regset.
3871 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3872 (regmap_fpregset): Delete macro.
3873 (s390_native_supply, s390_native_collect): Delete functions.
3874 (supply_gregset, fill_gregset): Replace s390-specific regmap
3875 handling by a call to regcache_supply/_collect_regset.
3876 (supply_fpregset, fill_fpregset): Call regcache_supply/
3877 _collect_regset instead of s390_native_supply/_collect.
3878 (fetch_regset, store_regset): Likewise. Also change the last
3879 parameter to a regset instead of a regmap.
3880 (s390_linux_fetch_inferior_registers)
3881 (390_linux_store_inferior_registers): Adjust last parameter in
3882 calls to fetch_regset and store_regset.
3883 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3884 (s390_gregmap): ... this. Also make static const and convert to
3885 regcache_map_entry format.
3886 (s390x_regmap_gregset): Delete.
3887 (s390_regmap_fpregset): Rename to...
3888 (s390_fpregmap): ... this. Make static const and convert to
3889 regcache_map_entry format.
3890 (s390_regmap_upper, s390_regmap_last_break)
3891 (s390x_regmap_last_break, s390_regmap_system_call)
3892 (s390_regmap_tdb): Likewise.
3893 (s390_supply_regset, s390_collect_regset): Remove functions.
3894 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3895 s390_supply_regset.
3896 (s390_gregset, s390_fpregset, s390_upper_regset)
3897 (s390_last_break_regset, s390x_last_break_regset)
3898 (s390_system_call_regset, s390_tdb_regset): Make global and
3899 replace s390_supply/_collect_regset by regcache_supply/
3900 _collect_regset.
3901 (s390x_gregset): Delete.
3902 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3903 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3904 (s390_regmap_fpregset, s390_regmap_last_break)
3905 (s390x_regmap_last_break, s390_regmap_system_call)
3906 (s390_regmap_tdb): Delete global variable declarations.
3907 (s390_gregset, s390_fpregset, s390_last_break_regset)
3908 (s390x_last_break_regset, s390_system_call_regset)
3909 (s390_tdb_regset): New global variable declarations.
3910
3911 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3912
3913 * regcache.c: Include "regset.h".
3914 (regcache_transfer_regset): New local function.
3915 (regcache_supply_regset, regcache_collect_regset): New functions.
3916 * regcache.h (struct regcache_map_entry): New structure.
3917 (REGCACHE_MAP_SKIP): New enum value.
3918 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3919
3920 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3921
3922 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3923 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3924 (ppc_linux_collect_gregset ): Likewise.
3925 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3926 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3927 (ppc_collect_vrregset): Likewise.
3928 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3929 Likewise.
3930
3931 2014-08-07 Yao Qi <yao@codesourcery.com>
3932
3933 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3934 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3935 * remote.c (remote_read_bytes): Likewise.
3936
3937 2014-08-07 Yao Qi <yao@codesourcery.com>
3938
3939 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3940
3941 2014-08-07 Yao Qi <yao@codesourcery.com>
3942
3943 PR remote/17230
3944 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3945 TARGET_XFER_OK instead of 0.
3946
3947 2014-08-07 Gary Benson <gbenson@redhat.com>
3948
3949 * common/common-defs.h: Include errno.h.
3950 * defs.h: Do not include errno.h.
3951 * ada-typeprint.c: Likewise.
3952 * c-typeprint.c: Likewise.
3953 * core-regset.c: Likewise.
3954 * corefile.c: Likewise.
3955 * corelow.c: Likewise.
3956 * event-loop.c: Likewise.
3957 * f-typeprint.c: Likewise.
3958 * gnu-nat.c: Likewise.
3959 * go32-nat.c: Likewise.
3960 * i386gnu-nat.c: Likewise.
3961 * m2-typeprint.c: Likewise.
3962 * nat/linux-btrace.c: Likewise.
3963 * p-typeprint.c: Likewise.
3964 * procfs.c: Likewise.
3965 * remote-sim.c: Likewise.
3966 * rs6000-nat.c: Likewise.
3967 * target.c: Likewise.
3968 * typeprint.c: Likewise.
3969 * ui-file.c: Likewise.
3970 * valops.c: Likewise.
3971 * valprint.c: Likewise.
3972
3973 2014-08-07 Gary Benson <gbenson@redhat.com>
3974
3975 * common/common-defs.h: Include string.h.
3976 * aarch64-tdep.c: Do not include string.h.
3977 * ada-exp.y: Likewise.
3978 * ada-lang.c: Likewise.
3979 * ada-lex.l: Likewise.
3980 * ada-typeprint.c: Likewise.
3981 * ada-valprint.c: Likewise.
3982 * aix-thread.c: Likewise.
3983 * alpha-linux-tdep.c: Likewise.
3984 * alpha-mdebug-tdep.c: Likewise.
3985 * alpha-nat.c: Likewise.
3986 * alpha-osf1-tdep.c: Likewise.
3987 * alpha-tdep.c: Likewise.
3988 * alphanbsd-tdep.c: Likewise.
3989 * amd64-dicos-tdep.c: Likewise.
3990 * amd64-linux-tdep.c: Likewise.
3991 * amd64-nat.c: Likewise.
3992 * amd64-sol2-tdep.c: Likewise.
3993 * amd64fbsd-tdep.c: Likewise.
3994 * amd64obsd-tdep.c: Likewise.
3995 * arch-utils.c: Likewise.
3996 * arm-linux-nat.c: Likewise.
3997 * arm-linux-tdep.c: Likewise.
3998 * arm-tdep.c: Likewise.
3999 * arm-wince-tdep.c: Likewise.
4000 * armbsd-tdep.c: Likewise.
4001 * armnbsd-nat.c: Likewise.
4002 * armnbsd-tdep.c: Likewise.
4003 * armobsd-tdep.c: Likewise.
4004 * avr-tdep.c: Likewise.
4005 * ax-gdb.c: Likewise.
4006 * ax-general.c: Likewise.
4007 * bcache.c: Likewise.
4008 * bfin-tdep.c: Likewise.
4009 * breakpoint.c: Likewise.
4010 * build-id.c: Likewise.
4011 * buildsym.c: Likewise.
4012 * c-exp.y: Likewise.
4013 * c-lang.c: Likewise.
4014 * c-typeprint.c: Likewise.
4015 * c-valprint.c: Likewise.
4016 * charset.c: Likewise.
4017 * cli-out.c: Likewise.
4018 * cli/cli-cmds.c: Likewise.
4019 * cli/cli-decode.c: Likewise.
4020 * cli/cli-dump.c: Likewise.
4021 * cli/cli-interp.c: Likewise.
4022 * cli/cli-logging.c: Likewise.
4023 * cli/cli-script.c: Likewise.
4024 * cli/cli-setshow.c: Likewise.
4025 * cli/cli-utils.c: Likewise.
4026 * coffread.c: Likewise.
4027 * common/agent.c: Likewise.
4028 * common/buffer.c: Likewise.
4029 * common/buffer.h: Likewise.
4030 * common/common-utils.c: Likewise.
4031 * common/filestuff.c: Likewise.
4032 * common/filestuff.c: Likewise.
4033 * common/format.c: Likewise.
4034 * common/print-utils.c: Likewise.
4035 * common/rsp-low.c: Likewise.
4036 * common/signals.c: Likewise.
4037 * common/vec.h: Likewise.
4038 * common/xml-utils.c: Likewise.
4039 * core-regset.c: Likewise.
4040 * corefile.c: Likewise.
4041 * corelow.c: Likewise.
4042 * cp-abi.c: Likewise.
4043 * cp-name-parser.y: Likewise.
4044 * cp-support.c: Likewise.
4045 * cp-valprint.c: Likewise.
4046 * cris-tdep.c: Likewise.
4047 * d-exp.y: Likewise.
4048 * darwin-nat.c: Likewise.
4049 * dbxread.c: Likewise.
4050 * dcache.c: Likewise.
4051 * demangle.c: Likewise.
4052 * dicos-tdep.c: Likewise.
4053 * disasm.c: Likewise.
4054 * doublest.c: Likewise.
4055 * dsrec.c: Likewise.
4056 * dummy-frame.c: Likewise.
4057 * dwarf2-frame.c: Likewise.
4058 * dwarf2loc.c: Likewise.
4059 * dwarf2read.c: Likewise.
4060 * elfread.c: Likewise.
4061 * environ.c: Likewise.
4062 * eval.c: Likewise.
4063 * event-loop.c: Likewise.
4064 * exceptions.c: Likewise.
4065 * exec.c: Likewise.
4066 * expprint.c: Likewise.
4067 * f-exp.y: Likewise.
4068 * f-lang.c: Likewise.
4069 * f-typeprint.c: Likewise.
4070 * f-valprint.c: Likewise.
4071 * fbsd-nat.c: Likewise.
4072 * findcmd.c: Likewise.
4073 * findvar.c: Likewise.
4074 * fork-child.c: Likewise.
4075 * frame.c: Likewise.
4076 * frv-linux-tdep.c: Likewise.
4077 * frv-tdep.c: Likewise.
4078 * gdb.c: Likewise.
4079 * gdb_bfd.c: Likewise.
4080 * gdbarch.c: Likewise.
4081 * gdbarch.sh: Likewise.
4082 * gdbtypes.c: Likewise.
4083 * gnu-nat.c: Likewise.
4084 * gnu-v2-abi.c: Likewise.
4085 * gnu-v3-abi.c: Likewise.
4086 * go-exp.y: Likewise.
4087 * go-lang.c: Likewise.
4088 * go32-nat.c: Likewise.
4089 * guile/guile.c: Likewise.
4090 * guile/scm-auto-load.c: Likewise.
4091 * hppa-hpux-tdep.c: Likewise.
4092 * hppa-linux-nat.c: Likewise.
4093 * hppanbsd-tdep.c: Likewise.
4094 * hppaobsd-tdep.c: Likewise.
4095 * i386-cygwin-tdep.c: Likewise.
4096 * i386-dicos-tdep.c: Likewise.
4097 * i386-linux-tdep.c: Likewise.
4098 * i386-nto-tdep.c: Likewise.
4099 * i386-sol2-tdep.c: Likewise.
4100 * i386-tdep.c: Likewise.
4101 * i386bsd-tdep.c: Likewise.
4102 * i386gnu-nat.c: Likewise.
4103 * i386nbsd-tdep.c: Likewise.
4104 * i386obsd-tdep.c: Likewise.
4105 * i387-tdep.c: Likewise.
4106 * ia64-libunwind-tdep.c: Likewise.
4107 * ia64-linux-nat.c: Likewise.
4108 * inf-child.c: Likewise.
4109 * inf-ptrace.c: Likewise.
4110 * inf-ttrace.c: Likewise.
4111 * infcall.c: Likewise.
4112 * infcmd.c: Likewise.
4113 * inflow.c: Likewise.
4114 * infrun.c: Likewise.
4115 * interps.c: Likewise.
4116 * iq2000-tdep.c: Likewise.
4117 * irix5-nat.c: Likewise.
4118 * jv-exp.y: Likewise.
4119 * jv-lang.c: Likewise.
4120 * jv-typeprint.c: Likewise.
4121 * jv-valprint.c: Likewise.
4122 * language.c: Likewise.
4123 * linux-fork.c: Likewise.
4124 * linux-nat.c: Likewise.
4125 * lm32-tdep.c: Likewise.
4126 * m2-exp.y: Likewise.
4127 * m2-typeprint.c: Likewise.
4128 * m32c-tdep.c: Likewise.
4129 * m32r-linux-nat.c: Likewise.
4130 * m32r-linux-tdep.c: Likewise.
4131 * m32r-rom.c: Likewise.
4132 * m32r-tdep.c: Likewise.
4133 * m68hc11-tdep.c: Likewise.
4134 * m68k-tdep.c: Likewise.
4135 * m68kbsd-tdep.c: Likewise.
4136 * m68klinux-nat.c: Likewise.
4137 * m68klinux-tdep.c: Likewise.
4138 * m88k-tdep.c: Likewise.
4139 * machoread.c: Likewise.
4140 * macrocmd.c: Likewise.
4141 * main.c: Likewise.
4142 * mdebugread.c: Likewise.
4143 * mem-break.c: Likewise.
4144 * memattr.c: Likewise.
4145 * memory-map.c: Likewise.
4146 * mep-tdep.c: Likewise.
4147 * mi/mi-cmd-break.c: Likewise.
4148 * mi/mi-cmd-disas.c: Likewise.
4149 * mi/mi-cmd-env.c: Likewise.
4150 * mi/mi-cmd-stack.c: Likewise.
4151 * mi/mi-cmd-var.c: Likewise.
4152 * mi/mi-cmds.c: Likewise.
4153 * mi/mi-console.c: Likewise.
4154 * mi/mi-getopt.c: Likewise.
4155 * mi/mi-interp.c: Likewise.
4156 * mi/mi-main.c: Likewise.
4157 * mi/mi-parse.c: Likewise.
4158 * microblaze-rom.c: Likewise.
4159 * microblaze-tdep.c: Likewise.
4160 * mingw-hdep.c: Likewise.
4161 * minidebug.c: Likewise.
4162 * minsyms.c: Likewise.
4163 * mips-irix-tdep.c: Likewise.
4164 * mips-linux-tdep.c: Likewise.
4165 * mips-tdep.c: Likewise.
4166 * mips64obsd-tdep.c: Likewise.
4167 * mipsnbsd-tdep.c: Likewise.
4168 * mipsread.c: Likewise.
4169 * mn10300-linux-tdep.c: Likewise.
4170 * mn10300-tdep.c: Likewise.
4171 * monitor.c: Likewise.
4172 * moxie-tdep.c: Likewise.
4173 * mt-tdep.c: Likewise.
4174 * nat/linux-btrace.c: Likewise.
4175 * nat/linux-osdata.c: Likewise.
4176 * nat/linux-procfs.c: Likewise.
4177 * nat/linux-ptrace.c: Likewise.
4178 * nat/linux-waitpid.c: Likewise.
4179 * nbsd-tdep.c: Likewise.
4180 * nios2-linux-tdep.c: Likewise.
4181 * nto-procfs.c: Likewise.
4182 * nto-tdep.c: Likewise.
4183 * objc-lang.c: Likewise.
4184 * objfiles.c: Likewise.
4185 * opencl-lang.c: Likewise.
4186 * osabi.c: Likewise.
4187 * osdata.c: Likewise.
4188 * p-exp.y: Likewise.
4189 * p-lang.c: Likewise.
4190 * p-typeprint.c: Likewise.
4191 * parse.c: Likewise.
4192 * posix-hdep.c: Likewise.
4193 * ppc-linux-nat.c: Likewise.
4194 * ppc-sysv-tdep.c: Likewise.
4195 * ppcfbsd-tdep.c: Likewise.
4196 * ppcnbsd-tdep.c: Likewise.
4197 * ppcobsd-tdep.c: Likewise.
4198 * printcmd.c: Likewise.
4199 * procfs.c: Likewise.
4200 * prologue-value.c: Likewise.
4201 * python/py-auto-load.c: Likewise.
4202 * python/py-gdb-readline.c: Likewise.
4203 * ravenscar-thread.c: Likewise.
4204 * regcache.c: Likewise.
4205 * registry.c: Likewise.
4206 * remote-fileio.c: Likewise.
4207 * remote-m32r-sdi.c: Likewise.
4208 * remote-mips.c: Likewise.
4209 * remote-notif.c: Likewise.
4210 * remote-sim.c: Likewise.
4211 * remote.c: Likewise.
4212 * reverse.c: Likewise.
4213 * rs6000-aix-tdep.c: Likewise.
4214 * ser-base.c: Likewise.
4215 * ser-go32.c: Likewise.
4216 * ser-mingw.c: Likewise.
4217 * ser-pipe.c: Likewise.
4218 * ser-tcp.c: Likewise.
4219 * ser-unix.c: Likewise.
4220 * serial.c: Likewise.
4221 * sh-tdep.c: Likewise.
4222 * sh64-tdep.c: Likewise.
4223 * shnbsd-tdep.c: Likewise.
4224 * skip.c: Likewise.
4225 * sol-thread.c: Likewise.
4226 * solib-dsbt.c: Likewise.
4227 * solib-frv.c: Likewise.
4228 * solib-osf.c: Likewise.
4229 * solib-som.c: Likewise.
4230 * solib-spu.c: Likewise.
4231 * solib-target.c: Likewise.
4232 * solib.c: Likewise.
4233 * somread.c: Likewise.
4234 * source.c: Likewise.
4235 * sparc-nat.c: Likewise.
4236 * sparc-sol2-tdep.c: Likewise.
4237 * sparc-tdep.c: Likewise.
4238 * sparc64-tdep.c: Likewise.
4239 * sparc64fbsd-tdep.c: Likewise.
4240 * sparc64nbsd-tdep.c: Likewise.
4241 * sparcnbsd-tdep.c: Likewise.
4242 * spu-linux-nat.c: Likewise.
4243 * spu-multiarch.c: Likewise.
4244 * spu-tdep.c: Likewise.
4245 * stabsread.c: Likewise.
4246 * stack.c: Likewise.
4247 * std-regs.c: Likewise.
4248 * symfile.c: Likewise.
4249 * symmisc.c: Likewise.
4250 * symtab.c: Likewise.
4251 * target.c: Likewise.
4252 * thread.c: Likewise.
4253 * tilegx-linux-nat.c: Likewise.
4254 * tilegx-tdep.c: Likewise.
4255 * top.c: Likewise.
4256 * tracepoint.c: Likewise.
4257 * tui/tui-command.c: Likewise.
4258 * tui/tui-data.c: Likewise.
4259 * tui/tui-disasm.c: Likewise.
4260 * tui/tui-file.c: Likewise.
4261 * tui/tui-layout.c: Likewise.
4262 * tui/tui-out.c: Likewise.
4263 * tui/tui-regs.c: Likewise.
4264 * tui/tui-source.c: Likewise.
4265 * tui/tui-stack.c: Likewise.
4266 * tui/tui-win.c: Likewise.
4267 * tui/tui-windata.c: Likewise.
4268 * tui/tui-winsource.c: Likewise.
4269 * typeprint.c: Likewise.
4270 * ui-file.c: Likewise.
4271 * ui-out.c: Likewise.
4272 * user-regs.c: Likewise.
4273 * utils.c: Likewise.
4274 * v850-tdep.c: Likewise.
4275 * valarith.c: Likewise.
4276 * valops.c: Likewise.
4277 * valprint.c: Likewise.
4278 * value.c: Likewise.
4279 * varobj.c: Likewise.
4280 * vax-tdep.c: Likewise.
4281 * vaxnbsd-tdep.c: Likewise.
4282 * vaxobsd-tdep.c: Likewise.
4283 * windows-nat.c: Likewise.
4284 * xcoffread.c: Likewise.
4285 * xml-support.c: Likewise.
4286 * xstormy16-tdep.c: Likewise.
4287 * xtensa-linux-nat.c: Likewise.
4288
4289 2014-08-07 Gary Benson <gbenson@redhat.com>
4290
4291 * common/common-defs.h: Include gdb_assert.h.
4292 * aarch64-tdep.c: Do not include gdb_assert.h.
4293 * addrmap.c: Likewise.
4294 * aix-thread.c: Likewise.
4295 * alpha-linux-tdep.c: Likewise.
4296 * alpha-mdebug-tdep.c: Likewise.
4297 * alphanbsd-tdep.c: Likewise.
4298 * amd64-nat.c: Likewise.
4299 * amd64-tdep.c: Likewise.
4300 * amd64bsd-nat.c: Likewise.
4301 * amd64fbsd-nat.c: Likewise.
4302 * amd64fbsd-tdep.c: Likewise.
4303 * amd64nbsd-nat.c: Likewise.
4304 * amd64nbsd-tdep.c: Likewise.
4305 * amd64obsd-nat.c: Likewise.
4306 * amd64obsd-tdep.c: Likewise.
4307 * arch-utils.c: Likewise.
4308 * arm-tdep.c: Likewise.
4309 * armbsd-tdep.c: Likewise.
4310 * auxv.c: Likewise.
4311 * bcache.c: Likewise.
4312 * bfin-tdep.c: Likewise.
4313 * blockframe.c: Likewise.
4314 * breakpoint.c: Likewise.
4315 * bsd-kvm.c: Likewise.
4316 * bsd-uthread.c: Likewise.
4317 * buildsym.c: Likewise.
4318 * c-exp.y: Likewise.
4319 * c-lang.c: Likewise.
4320 * charset.c: Likewise.
4321 * cleanups.c: Likewise.
4322 * cli-out.c: Likewise.
4323 * cli/cli-decode.c: Likewise.
4324 * cli/cli-dump.c: Likewise.
4325 * cli/cli-logging.c: Likewise.
4326 * cli/cli-script.c: Likewise.
4327 * cli/cli-utils.c: Likewise.
4328 * coffread.c: Likewise.
4329 * common/common-utils.c: Likewise.
4330 * common/queue.h: Likewise.
4331 * common/signals.c: Likewise.
4332 * common/vec.h: Likewise.
4333 * complaints.c: Likewise.
4334 * completer.c: Likewise.
4335 * corelow.c: Likewise.
4336 * cp-abi.c: Likewise.
4337 * cp-name-parser.y: Likewise.
4338 * cp-namespace.c: Likewise.
4339 * cp-support.c: Likewise.
4340 * cris-tdep.c: Likewise.
4341 * dbxread.c: Likewise.
4342 * dictionary.c: Likewise.
4343 * doublest.c: Likewise.
4344 * dsrec.c: Likewise.
4345 * dummy-frame.c: Likewise.
4346 * dwarf2-frame-tailcall.c: Likewise.
4347 * dwarf2-frame.c: Likewise.
4348 * dwarf2expr.c: Likewise.
4349 * dwarf2loc.c: Likewise.
4350 * dwarf2read.c: Likewise.
4351 * eval.c: Likewise.
4352 * event-loop.c: Likewise.
4353 * exceptions.c: Likewise.
4354 * expprint.c: Likewise.
4355 * f-valprint.c: Likewise.
4356 * fbsd-nat.c: Likewise.
4357 * findvar.c: Likewise.
4358 * frame-unwind.c: Likewise.
4359 * frame.c: Likewise.
4360 * frv-tdep.c: Likewise.
4361 * gcore.c: Likewise.
4362 * gdb-dlfcn.c: Likewise.
4363 * gdb_bfd.c: Likewise.
4364 * gdbarch.c: Likewise.
4365 * gdbarch.sh: Likewise.
4366 * gdbtypes.c: Likewise.
4367 * gnu-nat.c: Likewise.
4368 * gnu-v3-abi.c: Likewise.
4369 * go-lang.c: Likewise.
4370 * guile/scm-exception.c: Likewise.
4371 * guile/scm-gsmob.c: Likewise.
4372 * guile/scm-lazy-string.c: Likewise.
4373 * guile/scm-math.c: Likewise.
4374 * guile/scm-pretty-print.c: Likewise.
4375 * guile/scm-safe-call.c: Likewise.
4376 * guile/scm-utils.c: Likewise.
4377 * guile/scm-value.c: Likewise.
4378 * h8300-tdep.c: Likewise.
4379 * hppa-hpux-nat.c: Likewise.
4380 * hppa-tdep.c: Likewise.
4381 * hppanbsd-tdep.c: Likewise.
4382 * hppaobsd-tdep.c: Likewise.
4383 * i386-darwin-nat.c: Likewise.
4384 * i386-darwin-tdep.c: Likewise.
4385 * i386-nto-tdep.c: Likewise.
4386 * i386-tdep.c: Likewise.
4387 * i386bsd-nat.c: Likewise.
4388 * i386fbsd-tdep.c: Likewise.
4389 * i386gnu-nat.c: Likewise.
4390 * i386nbsd-tdep.c: Likewise.
4391 * i386obsd-tdep.c: Likewise.
4392 * i387-tdep.c: Likewise.
4393 * ia64-libunwind-tdep.c: Likewise.
4394 * ia64-tdep.c: Likewise.
4395 * inf-ptrace.c: Likewise.
4396 * inf-ttrace.c: Likewise.
4397 * infcall.c: Likewise.
4398 * infcmd.c: Likewise.
4399 * infrun.c: Likewise.
4400 * inline-frame.c: Likewise.
4401 * interps.c: Likewise.
4402 * jv-lang.c: Likewise.
4403 * jv-typeprint.c: Likewise.
4404 * linux-fork.c: Likewise.
4405 * linux-nat.c: Likewise.
4406 * linux-thread-db.c: Likewise.
4407 * m32c-tdep.c: Likewise.
4408 * m32r-linux-nat.c: Likewise.
4409 * m32r-tdep.c: Likewise.
4410 * m68k-tdep.c: Likewise.
4411 * m68kbsd-nat.c: Likewise.
4412 * m68kbsd-tdep.c: Likewise.
4413 * m88k-tdep.c: Likewise.
4414 * machoread.c: Likewise.
4415 * macroexp.c: Likewise.
4416 * macrotab.c: Likewise.
4417 * maint.c: Likewise.
4418 * mdebugread.c: Likewise.
4419 * memory-map.c: Likewise.
4420 * mep-tdep.c: Likewise.
4421 * mi/mi-common.c: Likewise.
4422 * microblaze-tdep.c: Likewise.
4423 * mingw-hdep.c: Likewise.
4424 * mips-linux-nat.c: Likewise.
4425 * mips-linux-tdep.c: Likewise.
4426 * mips-tdep.c: Likewise.
4427 * mips64obsd-tdep.c: Likewise.
4428 * mipsnbsd-tdep.c: Likewise.
4429 * mn10300-linux-tdep.c: Likewise.
4430 * mn10300-tdep.c: Likewise.
4431 * moxie-tdep.c: Likewise.
4432 * mt-tdep.c: Likewise.
4433 * nat/linux-btrace.c: Likewise.
4434 * nat/linux-osdata.c: Likewise.
4435 * nat/linux-ptrace.c: Likewise.
4436 * nat/mips-linux-watch.c: Likewise.
4437 * nios2-linux-tdep.c: Likewise.
4438 * nios2-tdep.c: Likewise.
4439 * objc-lang.c: Likewise.
4440 * objfiles.c: Likewise.
4441 * obsd-nat.c: Likewise.
4442 * opencl-lang.c: Likewise.
4443 * osabi.c: Likewise.
4444 * parse.c: Likewise.
4445 * ppc-linux-nat.c: Likewise.
4446 * ppc-sysv-tdep.c: Likewise.
4447 * ppcfbsd-nat.c: Likewise.
4448 * ppcfbsd-tdep.c: Likewise.
4449 * ppcnbsd-nat.c: Likewise.
4450 * ppcnbsd-tdep.c: Likewise.
4451 * ppcobsd-nat.c: Likewise.
4452 * ppcobsd-tdep.c: Likewise.
4453 * printcmd.c: Likewise.
4454 * procfs.c: Likewise.
4455 * prologue-value.c: Likewise.
4456 * psymtab.c: Likewise.
4457 * python/py-lazy-string.c: Likewise.
4458 * python/py-value.c: Likewise.
4459 * regcache.c: Likewise.
4460 * reggroups.c: Likewise.
4461 * registry.c: Likewise.
4462 * remote-sim.c: Likewise.
4463 * remote.c: Likewise.
4464 * rs6000-aix-tdep.c: Likewise.
4465 * rs6000-tdep.c: Likewise.
4466 * s390-linux-tdep.c: Likewise.
4467 * score-tdep.c: Likewise.
4468 * ser-base.c: Likewise.
4469 * ser-mingw.c: Likewise.
4470 * sh-tdep.c: Likewise.
4471 * sh64-tdep.c: Likewise.
4472 * solib-darwin.c: Likewise.
4473 * solib-spu.c: Likewise.
4474 * solib-svr4.c: Likewise.
4475 * source.c: Likewise.
4476 * sparc-nat.c: Likewise.
4477 * sparc-sol2-tdep.c: Likewise.
4478 * sparc-tdep.c: Likewise.
4479 * sparc64-sol2-tdep.c: Likewise.
4480 * sparc64-tdep.c: Likewise.
4481 * sparc64fbsd-tdep.c: Likewise.
4482 * sparc64nbsd-tdep.c: Likewise.
4483 * sparc64obsd-tdep.c: Likewise.
4484 * sparcnbsd-tdep.c: Likewise.
4485 * sparcobsd-tdep.c: Likewise.
4486 * spu-multiarch.c: Likewise.
4487 * spu-tdep.c: Likewise.
4488 * stabsread.c: Likewise.
4489 * stack.c: Likewise.
4490 * symfile.c: Likewise.
4491 * symtab.c: Likewise.
4492 * target-descriptions.c: Likewise.
4493 * target-memory.c: Likewise.
4494 * target.c: Likewise.
4495 * tic6x-linux-tdep.c: Likewise.
4496 * tic6x-tdep.c: Likewise.
4497 * tilegx-linux-nat.c: Likewise.
4498 * tilegx-tdep.c: Likewise.
4499 * top.c: Likewise.
4500 * tramp-frame.c: Likewise.
4501 * tui/tui-out.c: Likewise.
4502 * tui/tui-winsource.c: Likewise.
4503 * ui-out.c: Likewise.
4504 * user-regs.c: Likewise.
4505 * utils.c: Likewise.
4506 * v850-tdep.c: Likewise.
4507 * valops.c: Likewise.
4508 * value.c: Likewise.
4509 * varobj.c: Likewise.
4510 * vax-nat.c: Likewise.
4511 * xml-syscall.c: Likewise.
4512 * xml-tdesc.c: Likewise.
4513 * xstormy16-tdep.c: Likewise.
4514 * xtensa-linux-nat.c: Likewise.
4515 * xtensa-tdep.c: Likewise.
4516
4517 2014-08-07 Gary Benson <gbenson@redhat.com>
4518
4519 * common/common-defs.h: Include common-utils.h.
4520 * defs.h: Do not include common-utils.h.
4521 * common/gdb_assert.h: Likewise.
4522 * darwin-nat.h: Likewise.
4523 * nat/linux-btrace.c: Likewise.
4524 * target/waitstatus.h: Likewise.
4525
4526 2014-08-07 Gary Benson <gbenson@redhat.com>
4527
4528 * common/common-defs.h: Include ptid.h.
4529 * defs.h: Do not include ptid.h.
4530 * inferior.h: Likewise.
4531 * infrun.h: Likewise.
4532 * nat/linux-btrace.h: Likewise.
4533 * nat/linux-osdata.h: Likewise.
4534 * target/waitstatus.h: Likewise.
4535
4536 2014-08-07 Gary Benson <gbenson@redhat.com>
4537
4538 * common/common-defs.h: Include gdb_locale.h.
4539 * defs.h: Do not include gdb_locale.h.
4540
4541 2014-08-07 Gary Benson <gbenson@redhat.com>
4542
4543 * common/common-defs.h: Include gdb/signals.h.
4544 * defs.h: Do not include gdb/signals.h.
4545
4546 2014-08-07 Gary Benson <gbenson@redhat.com>
4547
4548 * common/common-defs.h: Include pathmax.h.
4549 * defs.h: Do not include pathmax.h.
4550
4551 2014-08-07 Gary Benson <gbenson@redhat.com>
4552
4553 * common/common-defs.h: Include libiberty.h.
4554 * defs.h: Do not include libiberty.h.
4555 * common/queue.h: Likewise.
4556 * cp-name-parser.y: Likewise.
4557 * mi/mi-cmd-catch.c: Likewise.
4558 * python/python.c: Likewise.
4559
4560 2014-08-07 Gary Benson <gbenson@redhat.com>
4561
4562 * common/common-defs.h: Include ansidecl.h.
4563 * defs.h: Do not include ansidecl.h.
4564 * common/buffer.h: Likewise.
4565 * common/common-utils.h: Likewise.
4566
4567 2014-08-07 Gary Benson <gbenson@redhat.com>
4568
4569 * common/common-defs.h: Include stddef.h.
4570 * defs.h: Do not include stddef.h.
4571 * common/common-utils.h: Likewise.
4572 * amd64fbsd-nat.c: Likewise.
4573 * bcache.c: Likewise.
4574 * charset.c: Likewise.
4575 * common/buffer.h: Likewise.
4576 * common/vec.h: Likewise.
4577 * i386bsd-nat.c: Likewise.
4578 * nat/linux-btrace.h: Likewise.
4579 * ppcfbsd-nat.c: Likewise.
4580 * ppcnbsd-tdep.h: Likewise.
4581 * ppcobsd-nat.c: Likewise.
4582 * ppcobsd-tdep.h: Likewise.
4583 * python/py-gdb-readline.c: Likewise.
4584
4585 2014-08-07 Gary Benson <gbenson@redhat.com>
4586
4587 * common/common-defs.h: Include stdarg.h.
4588 * defs.h: Do not include stdarg.h.
4589 * ada-lang.c: Likewise.
4590 * common/common-utils.h: Likewise.
4591 * guile/scm-string.c: Likewise.
4592 * guile/scm-utils.c: Likewise.
4593 * m32c-tdep.c: Likewise.
4594
4595 2014-08-07 Gary Benson <gbenson@redhat.com>
4596
4597 * common/common-defs.h: Include stdlib.h.
4598 * defs.h: Do not include stdlib.h.
4599 * addrmap.c: Likewise.
4600 * bcache.c: Likewise.
4601 * common/buffer.c: Likewise.
4602 * common/common-utils.c: Likewise.
4603 * cp-name-parser.y: Likewise.
4604 * go32-nat.c: Likewise.
4605 * mn10300-linux-tdep.c: Likewise.
4606 * nat/linux-osdata.c: Likewise.
4607 * tui/tui.c: Likewise.
4608 * windows-nat.c: Likewise.
4609
4610 2014-08-07 Gary Benson <gbenson@redhat.com>
4611
4612 * common/common-defs.h: Include stdio.h.
4613 * defs.h: Do not include stdio.h.
4614 * ada-lang.c: Likewise.
4615 * common/buffer.c: Likewise.
4616 * common/common-utils.c: Likewise.
4617 * cp-name-parser.y: Likewise.
4618 * gnu-nat.c: Likewise.
4619 * go32-nat.c: Likewise.
4620 * i386gnu-nat.c: Likewise.
4621 * proc-api.c: Likewise.
4622 * proc-events.c: Likewise.
4623 * proc-flags.c: Likewise.
4624 * proc-why.c: Likewise.
4625 * python/python-internal.h: Likewise.
4626 * target-memory.c: Likewise.
4627 * tui/tui-io.c: Likewise.
4628 * tui/tui.c: Likewise.
4629
4630 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4631
4632 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4633 (scan_dyntag_auxv): Same.
4634
4635 2014-08-06 Yao Qi <yao@codesourcery.com>
4636
4637 * amd64-linux-nat.c: Remove duplicated include
4638 "x86-linux-nat.h".
4639 * i386-linux-nat.c: Likewise.
4640
4641 2014-08-06 Yao Qi <yao@codesourcery.com>
4642
4643 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4644 operand" with "Special opcode" in comments.
4645
4646 2014-08-05 Gary Benson <gbenson@redhat.com>
4647
4648 * interps.c (initialize_interps): Remove prototype.
4649 (interpreter_initialized): Remove static global.
4650 (interp_add): Do not call initialize_interps.
4651 (initialize_interps): Remove function.
4652
4653 2014-08-05 Gary Benson <gbenson@redhat.com>
4654
4655 * utils.c (vwarning): Remove spurious va_end.
4656
4657 2014-08-05 Alan Modra <amodra@gmail.com>
4658
4659 * charset.c (convert_between_encodings): Cast result of obstack_base.
4660 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4661 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4662 (read_unwind_info): Use size_t for some locals.
4663 * jit.c (finalize_symtab): Likewise.
4664 * utils.c (hashtab_obstack_allocate): Likewise.
4665 * symmisc.c (print_objfile_statistics): Update format strings.
4666
4667 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4668
4669 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4670 (Changes in GDB 7.8): ... here.
4671
4672 2014-08-04 Tom Tromey <tromey@redhat.com>
4673
4674 * target.c (set_targetdebug): New function.
4675 (initialize_targets): Pass set_targetdebug when creating "set
4676 debug target".
4677
4678 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4679
4680 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4681 if detecting a variable-sized field that is not the last field.
4682 Fix struct type length computation.
4683
4684 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4685
4686 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4687 Add debug trace.
4688
4689 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4690
4691 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4692 Remove "+ 8" offset in computation of CHAIN_VMA.
4693
4694 2014-07-31 Doug Evans <dje@google.com>
4695
4696 * inflow.c (child_terminal_inferior): Add comment.
4697 (child_terminal_ours_for_output): Add comment.
4698 (child_terminal_ours): Add comment.
4699 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4700 (linux_nat_terminal_ours): Add comment.
4701
4702 2014-07-31 Gary Benson <gbenson@redhat.com>
4703
4704 * common/btrace-common.h: Do not include defs.h or server.h.
4705 * nat/mips-linux-watch.h: Likewise.
4706 * gdb-dlfcn.h: Do not include defs.h.
4707 * tracefile.h: Likewise.
4708
4709 2014-07-30 Roland McGrath <mcgrathr@google.com>
4710
4711 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4712
4713 2014-07-30 Tom Tromey <tromey@redhat.com>
4714
4715 * bsd-kvm.c (bsd_kvm_open): Constify.
4716 * corelow.c (core_open): Constify.
4717 * ctf.c (ctf_open): Constify.
4718 * dbug-rom.c (dbug_open): Constify.
4719 * exec.c (exec_open): Constify.
4720 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4721 * microblaze-rom.c (picobug_open): Constify.
4722 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4723 Constify.
4724 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4725 * record-btrace.c (record_btrace_open): Constify.
4726 * record-full.c (record_full_core_open_1, record_full_open_1)
4727 (record_full_open): Constify.
4728 * remote-m32r-sdi.c (m32r_open): Constify.
4729 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4730 (rockhopper_open, lsi_open): Constify.
4731 * remote-sim.c (gdbsim_open): Constify.
4732 * remote.c (remote_open, extended_remote_open, remote_open_1):
4733 Constify.
4734 * target.h (struct target_ops) <to_open>: Make "arg" const.
4735 * tracefile-tfile.c (tfile_open): Constify.
4736
4737 2014-07-30 Tom Tromey <tromey@redhat.com>
4738
4739 * breakpoint.c (map_breakpoint_numbers): Update.
4740 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4741 (get_number_const): New function.
4742 (get_number): Rewrite using get_number_const.
4743 (init_number_or_range): Make "string" const.
4744 (number_is_in_list): Make "list" const.
4745 * cli/cli-utils.h (get_number_const): Declare.
4746 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4747 (init_number_or_range, number_is_in_list): Update.
4748 * printcmd.c (map_display_numbers): Update.
4749 * value.c (value_from_history_ref): Constify.
4750 * value.h (value_from_history_ref): Update.
4751
4752 2014-07-30 Tom Tromey <tromey@redhat.com>
4753
4754 * corefile.c (hook_type, call_extra_exec_file_hooks)
4755 (specify_exec_file_hook): Constify.
4756 * exec.c (exec_file_attach): Make "filename" const.
4757 * gdbcore.h (deprecated_exec_file_display_hook)
4758 (specify_exec_file_hook, exec_file_attach): Constify.
4759 * main.c (captured_main): Use catch_command_errors_const.
4760
4761 2014-07-30 Tom Tromey <tromey@redhat.com>
4762
4763 * target.c (open_target): New function.
4764 (add_target_with_completer, add_deprecated_target_alias): Use
4765 set_cmd_sfunc, set_cmd_context.
4766 (debug_to_open): Remove.
4767 (setup_target_debug): Update.
4768
4769 2014-07-30 Yao Qi <yao@codesourcery.com>
4770
4771 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4772 comments.
4773 * parse.c (exp_iterate): Update comments.
4774
4775 2014-07-30 Gary Benson <gbenson@redhat.com>
4776
4777 * common/common-defs.h: New file.
4778 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4779 * defs.h: Include common-defs.h.
4780 Do not include config.h or build-gnulib/config.h.
4781
4782 2014-07-30 Gary Benson <gbenson@redhat.com>
4783
4784 * common/common-utils.h: Do not include config.h.
4785 * nat/linux-btrace.h: Likewise.
4786
4787 2014-07-30 Gary Benson <gbenson@redhat.com>
4788
4789 * btrace.c: Include defs.h.
4790 * common/ptid.c: Include defs.h or server.h as appropriate.
4791 * nat/mips-linux-watch.c: Likewise.
4792
4793 2014-07-29 Tom Tromey <tromey@redhat.com>
4794
4795 * target.c (target_is_pushed): Simplify.
4796
4797 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4798
4799 GDB 7.8 released.
4800
4801 2014-07-29 Yao Qi <yao@codesourcery.com>
4802
4803 PR gdb/17206
4804 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4805
4806 2014-07-28 Doug Evans <xdje42@gmail.com>
4807
4808 PR guile/17203
4809 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4810 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4811 parameters.
4812
4813 2014-07-28 Will Newton <will.newton@linaro.org>
4814
4815 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4816 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4817 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4818 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4819 (THUMB2_EABI_SYSCALL): Likewise.
4820 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4821 struct tramp_frame.
4822 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4823 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4824
4825 2014-07-27 Doug Evans <xdje42@gmail.com>
4826
4827 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4828
4829 2014-07-27 Doug Evans <xdje42@gmail.com>
4830
4831 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4832
4833 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4834 Doug Evans <xdje42@gmail.com>
4835
4836 PR guile/17146
4837 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4838 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4839 * configure.ac: Try to use guild to compile an scm file, if it fails
4840 then disable guile support.
4841 * configure: Regenerate.
4842 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4843 GUILE_FILE_LIST.
4844 (GUILE_COMPILED_FILES): New variable.
4845 (GUILE_FILES) Update.
4846 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4847 (stamp-guile): Compile scm files.
4848 * guile/guile.c (boot_guile_support): New function.
4849 (standard_throw_args_p): New function.
4850 (print_standard_throw_error, print_throw_error): New functions.
4851 (handle_boot_error): New function.
4852 (initialize_scheme_side): Rewrite to call boot_guile_support.
4853 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4854 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4855
4856 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4857 Doug Evans <xdje42@gmail.com>
4858
4859 PR guile/17146
4860 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4861 * guile/lib/gdb/support.scm: New file.
4862 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4863 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4864 All uses updated.
4865 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4866 All uses updated.
4867 (%assert-type): Ditto, and renamed to assert-type.
4868 (%exception-print-style): Delete.
4869
4870 2014-07-26 Doug Evans <xdje42@gmail.com>
4871
4872 PR build/17105
4873 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4874 * configure: Regenerate.
4875 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4876 PYTHON_FILES.
4877 (PYTHON_FILES): New variable.
4878 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4879 (GUILE_FILES): New variable.
4880 (stamp-python, install-python, uninstall-python): Handle empty
4881 file list.
4882 (stamp-guile, install-guile, uninstall-guile): Ditto.
4883
4884 2014-07-26 Doug Evans <xdje42@gmail.com>
4885
4886 PR guile/17177
4887 * guile/lib/gdb.scm (pretty-printers): Export.
4888 (set-pretty-printers!): Export.
4889 * guile/lib/gdb/printing.scm (gdb module): Update.
4890 (prepend-pretty-printer!, append-pretty-printer!): Update.
4891 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4892 (pretty_printer_list_var): Delete.
4893 (pretty_printer_list): New static global.
4894 (gdbscm_pretty_printers): New function.
4895 (gdbscm_set_pretty_printers_x): New function.
4896 (ppscm_find_pretty_printer_from_gdb): Update.
4897 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4898 (gdbscm_initialize_pretty_printers): Update.
4899
4900 2014-07-26 Doug Evans <xdje42@gmail.com>
4901
4902 PR 17185
4903 * configure.ac: Add check for header gc/gc.h.
4904 Add check for function setenv.
4905 * configure: Regenerate.
4906 * config.in: Regenerate.
4907 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4908
4909 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4910
4911 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4912 variation in gdbarch matching.
4913
4914 2014-07-25 Tom Tromey <tromey@redhat.com>
4915
4916 * exec.c (using_exec_ops): Remove.
4917 (exec_close_1): Update. Remove extraneous block, reindent.
4918 (add_target_sections): Use target_is_pushed.
4919
4920 2014-07-25 Pedro Alves <palves@redhat.com>
4921
4922 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4923 * monitor.c (monitor_create_inferior): Likewise.
4924 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4925 * remote-sim.c (gdbsim_create_inferior): Likewise.
4926 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4927 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4928 * windows-nat.c (do_initial_windows_stuff): Likewise.
4929
4930 2014-07-25 Pedro Alves <palves@redhat.com>
4931
4932 * NEWS: Mention signal passing and "signal" command changes.
4933 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4934 comment.
4935 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4936 call.
4937 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4938 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4939 (jump_command): Adjust clear_proceed_status call.
4940 (signal_command): Warn if other thread that are resumed have
4941 signals that will be delivered. Adjust clear_proceed_status call.
4942 (until_next_command, finish_command)
4943 (proceed_after_attach_callback, attach_command_post_wait)
4944 (attach_command): Adjust clear_proceed_status call.
4945 * infrun.c (proceed_after_vfork_done): Likewise.
4946 (proceed_after_attach_callback): Adjust comment.
4947 (clear_proceed_status_thread): Clear stop_signal if not in pass
4948 state.
4949 (clear_proceed_status_callback): Delete.
4950 (clear_proceed_status): New 'step' parameter. Only clear the
4951 proceed status of threads the command being prepared is about to
4952 resume.
4953 (proceed): If passed in an explicit signal, override stop_signal
4954 with it. Don't pass the last stop signal to the thread we're
4955 resuming.
4956 (init_wait_for_inferior): Adjust clear_proceed_status call.
4957 (switch_back_to_stepped_thread): Clear the signal if it should not
4958 be passed.
4959 * infrun.h (clear_proceed_status): New 'step' parameter.
4960 (user_visible_resume_ptid): Add comment.
4961 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4962 signal is in pass state.
4963 * remote.c (append_pending_thread_resumptions): Likewise.
4964 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4965
4966 2014-07-25 Tom Tromey <tromey@redhat.com>
4967
4968 * target.h (target_stopped_data_address)
4969 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4970 parentheses.
4971
4972 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4973
4974 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4975 comments.
4976 (avr_pointer_to_address): Likewise.
4977
4978 2014-07-24 Tom Tromey <tromey@redhat.com>
4979
4980 * monitor.c (compile_pattern): Update.
4981 * target.h (struct target_ops) <to_shortname, to_longname,
4982 to_doc>: Now const.
4983
4984 2014-07-24 Tom Tromey <tromey@redhat.com>
4985
4986 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4987 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4988 (add_info_alias, add_com): Make "doc" const.
4989 (print_doc_line): Make "str" const.
4990 (delete_cmd): Update.
4991 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4992 (print_doc_line): Update.
4993 * cli/cli-script.c (document_command): Update.
4994 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4995 (add_com, add_info, add_info_alias): Update.
4996 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4997 * python/py-cmd.c (cmdpy_destroyer): Update.
4998
4999 2014-07-24 Tom Tromey <tromey@redhat.com>
5000
5001 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5002 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5003 (help_cmd_list): Constify.
5004 (lookup_cmd): Update.
5005 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5006 const.
5007 (help_cmd_list, apropos_cmd): Update.
5008 * cli/cli-script.c (show_user): Update.
5009 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5010 * cli/cli-setshow.h (cmd_show_list): Update.
5011 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5012 (cmd_show_list): Update.
5013 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5014 * python/py-cmd.c (cmdpy_destroyer): Update.
5015
5016 2014-07-24 Tom Tromey <tromey@redhat.com>
5017
5018 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5019 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5020 const.
5021 * command.h (deprecate_cmd): Update.
5022 * maint.c (maintenance_do_deprecate): Add casts.
5023
5024 2014-07-24 Tom Tromey <tromey@redhat.com>
5025
5026 * cli/cli-decode.c (help_cmd): Make parameter "const".
5027 * cli/cli-decode.h (help_cmd): Update.
5028
5029 2014-07-24 Tom Tromey <tromey@redhat.com>
5030
5031 * stack.c (up_silently_base, down_silently_base): Make argument
5032 const.
5033
5034 2014-07-24 Tom Tromey <tromey@redhat.com>
5035
5036 * solib.c (solib_add): Make "pattern" const.
5037 * solib.h (solib_add): Update.
5038
5039 2014-07-24 Tom Tromey <tromey@redhat.com>
5040
5041 * remote.c (remote_serial_open, print_packet, putpkt)
5042 (putpkt_binary): Constify.
5043 * remote.h (putpkt): Update.
5044
5045 2014-07-24 Tom Tromey <tromey@redhat.com>
5046
5047 * monitor.c (monitor_open): Make "args" const.
5048 * monitor.h (monitor_open): Update.
5049
5050 2014-07-24 Tom Tromey <tromey@redhat.com>
5051
5052 * maint.c (match_bfd_flags): Make "string" const.
5053 (print_bfd_section_info): Remove casts.
5054 (print_objfile_section_info): Make "string" const.
5055
5056 2014-07-24 Tom Tromey <tromey@redhat.com>
5057
5058 * inf-child.c (inf_child_open_target): Make "arg" const.
5059 * inf-child.h (inf_child_open_target): Update.
5060
5061 2014-07-24 Tom Tromey <tromey@redhat.com>
5062
5063 * environ.c (unset_in_environ): Make "var" const.
5064 * environ.h (unset_in_environ): Update.
5065
5066 2014-07-24 Tom Tromey <tromey@redhat.com>
5067
5068 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5069 Make "cmd" const.
5070 (scan_filename_with_cleanup): Likewise.
5071 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5072 Make arguments const.
5073 (restore_command): Update.
5074
5075 2014-07-24 Pedro Alves <palves@redhat.com>
5076
5077 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5078
5079 2014-07-24 Tom Tromey <tromey@redhat.com>
5080 Gary Benson <gbenson@redhat.com>
5081
5082 * nat/linux-ptrace.c (additional_flags): New global.
5083 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5084 additional_flags; don't check GDBSERVER.
5085 (linux_ptrace_set_additional_flags): New function.
5086 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5087 Declare.
5088 * linux-nat.c (_initialize_linux_nat): Call
5089 linux_ptrace_set_additional_flags.
5090
5091 2014-07-24 Tom Tromey <tromey@redhat.com>
5092
5093 * make-target-delegates (munge_type, write_debugmethod): New
5094 functions.
5095 (debug_names): New global.
5096 ($TARGET_DEBUG_PRINTER): New global.
5097 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5098 name.
5099 Write debug methods. Generate init_debug_target.
5100 * target-debug.h: New file.
5101 * target-delegates.c: Rebuild.
5102 * target.c: Include target-debug.h.
5103 (debug_target): Hoist definition.
5104 (target_kill, target_get_section_table, target_memory_map)
5105 (target_flash_erase, target_flash_done, target_detach)
5106 (target_disconnect, target_wait, target_resume)
5107 (target_pass_signals, target_program_signals, target_follow_fork)
5108 (target_mourn_inferior, target_search_memory)
5109 (target_thread_address_space, target_close)
5110 (target_find_new_threads, target_core_of_thread)
5111 (target_verify_memory, target_insert_mask_watchpoint)
5112 (target_remove_mask_watchpoint): Remove targetdebug code.
5113 (debug_to_post_attach, debug_to_prepare_to_store)
5114 (debug_to_files_info, debug_to_insert_breakpoint)
5115 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5116 (debug_to_region_ok_for_hw_watchpoint)
5117 (debug_to_can_accel_watchpoint_condition)
5118 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5119 (debug_to_watchpoint_addr_within_range)
5120 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5121 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5122 (debug_to_terminal_init, debug_to_terminal_inferior)
5123 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5124 (debug_to_terminal_save_ours, debug_to_terminal_info)
5125 (debug_to_load, debug_to_post_startup_inferior)
5126 (debug_to_insert_fork_catchpoint)
5127 (debug_to_remove_fork_catchpoint)
5128 (debug_to_insert_vfork_catchpoint)
5129 (debug_to_remove_vfork_catchpoint)
5130 (debug_to_insert_exec_catchpoint)
5131 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5132 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5133 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5134 (setup_target_debug): Call init_debug_target.
5135 * target.h (TARGET_DEBUG_PRINTER): New macro.
5136 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5137 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5138
5139 2014-07-24 Gary Benson <gbenson@redhat.com>
5140
5141 * exceptions.h (throw_vfatal): Renamed to...
5142 (throw_vquit): New declaration.
5143 (throw_quit): Likewise.
5144 * exceptions.c (throw_vfatal): Renamed to...
5145 (throw_vquit): New function.
5146 (throw_quit): Likewise.
5147 (throw_error): Call throw_verror rather than throw_it.
5148 * utils.h (vfatal): Removed.
5149 (fatal): Likewise.
5150 * utils.c (vfatal): Removed.
5151 (fatal): Likewise.
5152 (internal_verror): Replaced call to fatal with call to throw_quit.
5153 (quit): Replaced calls to fatal with calls to throw_quit.
5154
5155 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5156
5157 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5158 target_read_code.
5159
5160 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5161
5162 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5163 less than zero in conditional expression.
5164
5165 2014-07-23 Tom Tromey <tromey@redhat.com>
5166
5167 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5168 ($INTRO_PART): Don't match whitespace.
5169 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5170 argument matching.
5171 ($METHOD): Add $METHOD_TRAILER.
5172 (trim): Rewrite.
5173 (scan_target_h): New sub.
5174 Change main loop not to collect state.
5175 * target-delegates.c: Rebuild.
5176
5177 2014-07-23 Gary Benson <gbenson@redhat.com>
5178
5179 * cp-support.c (gdb_demangle): Fix build on systems without
5180 sigaltstack.
5181
5182 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5183
5184 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5185 for reference entry value target data value.
5186
5187 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5188
5189 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5190 value_available_contents_eq.
5191
5192 2014-07-22 Pedro Alves <palves@redhat.com>
5193
5194 * value.c (allocate_optimized_out_value): Don't mark value as
5195 non-lazy.
5196
5197 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5198
5199 * MAINTAINERS (Write After Approval): Update my email address.
5200
5201 2014-07-20 Doug Evans <dje@google.com>
5202
5203 PR server/17147
5204 * remote.c (putpkt_binary): Add text to error message.
5205
5206 2014-07-20 Yao Qi <yao@codesourcery.com>
5207
5208 * eval.c: Remove "Chill" from comments.
5209 * gdbtypes.h: Likewise.
5210 * symtab.h: Likewise.
5211
5212 2014-07-20 Yao Qi <yao@codesourcery.com>
5213
5214 * std-operator.def: Update comments to TERNOP_SLICE.
5215
5216 2014-07-20 Yao Qi <yao@codesourcery.com>
5217
5218 * std-operator.def: Remove BINOP_RANGE.
5219 * breakpoint.c (watchpoint_exp_is_const): Update.
5220 * expprint.c (dump_subexp_body_standard): Likewise.
5221 * eval.c (init_array_element): Remove dead code.
5222 (evaluate_subexp_standard): Likewise.
5223
5224 2014-07-20 Yao Qi <yao@codesourcery.com>
5225
5226 * std-operator.def: Remove BINOP_IN.
5227 * breakpoint.c (watchpoint_exp_is_const): Update.
5228 * eval.c (evaluate_subexp_standard): Likewise.
5229 * expprint.c (dump_subexp_body_standard): Likewise.
5230
5231 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5232
5233 * microblaze-tdep.c (microblaze_register_names): Add
5234 the rshr and rslr register names.
5235 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5236 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5237 Use of tdesc_numbered_register. Use of
5238 microblaze_register_g_packet_guesses. Use of
5239 tdesc_use_registers. Use of set_gdbarch_register_type.
5240 (microblaze_register_g_packet_guesses): New.
5241 * microblaze-tdep.h (microblaze_reg_num): Add
5242 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5243 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5244 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5245 * features/microblaze-core.xml: New file.
5246 * features/microblaze-stack-protect.xml: New file.
5247 * features/microblaze-with-stack-protect.c: New file.
5248 * features/microblaze-with-stack-protect.xml: New file.
5249 * features/microblaze.xml: New file.
5250 * features/microblaze.c: New file.
5251 * features/Makefile (microblaze-with-stack-protect): Add
5252 microblaze-with-stack-protect microblaze and microblaze-expedite.
5253 * regformats/microblaze-with-stack-protect.dat: New file.
5254 * regformats/microblaze.dat: New file.
5255 * doc/gdb.texinfo (MicroBlaze Features): Added.
5256
5257 2014-07-18 Tom Tromey <tromey@redhat.com>
5258
5259 * exec.c (exec_ops): Now static.
5260 * exec.h (exec_ops): Don't declare.
5261
5262 2014-07-18 Tom Tromey <tromey@redhat.com>
5263
5264 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5265 to find_target_beneath.
5266 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5267 find_target_beneath.
5268 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5269
5270 2014-07-18 Tom Tromey <tromey@redhat.com>
5271
5272 PR gdb/17130:
5273 * utils.c (quit): Use target_supports_terminal_ours.
5274 * target.h (target_supports_terminal_ours): Declare.
5275 * target.c (target_supports_delete_record): Don't check
5276 to_delete_record against NULL.
5277 (target_supports_terminal_ours): New function.
5278
5279 2014-07-18 Tom Tromey <tromey@redhat.com>
5280
5281 PR gdb/17130:
5282 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5283 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5284 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5285 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5286 * windows-nat.c (windows_xfer_partial): Always delegate.
5287 * record-btrace.c (record_btrace_xfer_partial): Simplify
5288 delegation.
5289 (record_btrace_fetch_registers, record_btrace_store_registers)
5290 (record_btrace_prepare_to_store, record_btrace_resume)
5291 (record_btrace_wait, record_btrace_find_new_threads)
5292 (record_btrace_thread_alive): Likewise.
5293 * procfs.c (procfs_xfer_partial): Always delegate.
5294 * corelow.c (core_xfer_partial): Always delegate.
5295 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5296
5297 2014-07-18 Tom Tromey <tromey@redhat.com>
5298
5299 * exec.c (exec_make_note_section): Move earlier.
5300
5301 2014-07-17 Doug Evans <dje@google.com>
5302
5303 PR gdb/17170
5304 * maint.c (count_symtabs_and_blocks): Handle NULL
5305 current_program_space.
5306 (report_command_stats): Check global enabled flag in addition to
5307 recorded enabled flag.
5308 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5309
5310 2014-07-16 Pedro Alves <palves@redhat.com>
5311
5312 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5313
5314 2014-07-16 Tom Tromey <tromey@redhat.com>
5315
5316 * target.h (struct target_ops) <to_delete_record>: Reformat
5317 comment.
5318
5319 2014-07-16 Tom Tromey <tromey@redhat.com>
5320
5321 * target-delegates.c: Rebuild.
5322
5323 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5324
5325 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5326 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5327 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5328 (avr_pointer_to_address): Likewise.
5329 (avr_address_class_type_flags): New function.
5330 (avr_address_class_type_flags_to_name): Likewise.
5331 (avr_address_class_name_to_type_flags): Likewise.
5332 (avr_gdbarch_init): Set address_class_type_flags,
5333 address_class_type_flags_to_name and
5334 address_class_name_to_type_flags.
5335
5336 2014-07-15 Pedro Alves <palves@redhat.com>
5337
5338 * linux-nat.c (kill_callback): Save errno and work with saved
5339 copy.
5340
5341 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5342
5343 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5344
5345 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5346
5347 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5348 breakpoint support correctly.
5349
5350 2014-07-14 Pedro Alves <palves@redhat.com>
5351
5352 * utils.c (prompt_for_continue): Call target_terminal_ours.
5353
5354 2014-07-14 Pedro Alves <palves@redhat.com>
5355
5356 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5357 catch_errors. Don't re-enable stdin or notify observers where,
5358 and rethrow error.
5359 (fetch_inferior_event_wrapper): Delete.
5360
5361 2014-07-14 Pedro Alves <palves@redhat.com>
5362
5363 PR gdb/17072
5364 * top.c: Include "inf-loop.h".
5365 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5366 field.
5367 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5368 was async before.
5369 (gdb_readline_wrapper): Store whether the target is async, and
5370 make it sync.
5371
5372 2014-07-14 Pedro Alves <palves@redhat.com>
5373
5374 PR gdb/17072
5375 * top.c (gdb_readline_wrapper_line): Tweak comment.
5376 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5377 the input handler callback.
5378
5379 2014-07-14 Pedro Alves <palves@redhat.com>
5380
5381 PR gdb/17072
5382 * main.c: Include event-top.h.
5383 (handle_command_errors): New function.
5384 (catch_command_errors, catch_command_errors_const): Use it.
5385
5386 2014-07-14 Pedro Alves <palves@redhat.com>
5387
5388 * exceptions.c (catch_command_errors, catch_command_errors_const):
5389 Moved to main.c.
5390 * exceptions.h (catch_command_errors_ftype)
5391 (catch_command_errors_const_ftype): Moved to main.c.
5392 (catch_command_errors, catch_command_errors_const): Delete
5393 declarations.
5394 * main.c (catch_command_errors_ftype)
5395 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5396 (catch_command_errors, catch_command_errors_const)): Moved here
5397 from exceptions.c and make static.
5398
5399 2014-07-14 Pedro Alves <palves@redhat.com>
5400
5401 * exceptions.c (print_any_exception): Delete.
5402 (catch_exceptions_with_msg): Use exception_print instead of
5403 print_any_exception.
5404 (catch_errors): Use exception_fprintf instead of
5405 print_any_exception.
5406 (catch_command_errors, catch_command_errors_const): Use
5407 exception_print instead of print_any_exception.
5408
5409 2014-07-14 Pedro Alves <palves@redhat.com>
5410
5411 * infcall.c (run_inferior_call): Set 'sync_execution' while
5412 running the inferior call.
5413
5414 2014-07-14 Pedro Alves <palves@redhat.com>
5415
5416 * value.c (value_contents_equal): Delete function.
5417 * value.h (value_contents_equal): Delete declaration.
5418
5419 2014-07-14 Tom Tromey <tromey@redhat.com>
5420
5421 PR exp/17106:
5422 * gdbtypes.c (is_dynamic_type_internal): New function, from
5423 is_dynamic_type.
5424 (is_dynamic_type): Rewrite.
5425 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5426 (resolve_dynamic_struct): Likewise.
5427 (resolve_dynamic_type_internal): New function, from
5428 resolve_dynamic_type.
5429 (resolve_dynamic_type): Rewrite.
5430
5431 2014-07-14 Tom Tromey <tromey@redhat.com>
5432
5433 * target.c (target_require_runnable): Also check record_stratum.
5434 Update comment.
5435
5436 2014-07-11 Yao Qi <yao@codesourcery.com>
5437
5438 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5439 thumb_instruction_restores_sp return true.
5440
5441 2014-07-11 Yao Qi <yao@codesourcery.com>
5442
5443 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5444 (thumb_in_function_epilogue_p): Call
5445 thumb_instruction_restores_sp.
5446
5447 2014-07-11 Yao Qi <yao@codesourcery.com>
5448
5449 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5450 'add sp, #imm'.
5451 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5452
5453 2014-07-11 Gary Benson <gbenson@redhat.com>
5454
5455 * amd64-linux-nat.c (gdbcore.h): Remove include.
5456 (regset.h): Likewise.
5457 (nat/linux-btrace.h): Likewise.
5458 (btrace.h): Likewise.
5459 (gdb_assert.h): Likewise.
5460 (string.h): Likewise.
5461 (sys/uio.h): Likewise.
5462 (sys/debugreg.h): Likewise.
5463 (sys/syscall.h): Likewise.
5464 (sys/procfs.h): Likewise.
5465 (sys/user.h): Likewise.
5466 (asm/ptrace.h): Likewise.
5467 (i386-nat.h): Likewise.
5468 * i386-linux-nat.c (i386-nat.h): Likewise.
5469 (regset.h): Likewise.
5470 (target.h): Likewise.
5471 (linux-nat.h): Likewise.
5472 (nat/linux-btrace.h): Likewise.
5473 (btrace.h): Likewise.
5474 (gdb_assert.h): Likewise.
5475 (string.h): Likewise.
5476 (sys/uio.h): Likewise.
5477 (sys/user.h): Likewise.
5478 (sys/procfs.h): Likewise.
5479 (sys/reg.h): Likewise.
5480 (sys/debugreg.h): Likewise.
5481 (ORIG_EAX): Remove definition.
5482
5483 2014-07-11 Gary Benson <gbenson@redhat.com>
5484
5485 * i386-linux-nat.h: New file.
5486 * x86-linux-nat.h: Likewise.
5487 * x86-linux-nat.c: Likewise.
5488 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5489 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5490 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5491 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5492 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5493 (PTRACE_SETREGSET): Likewise.
5494 (arch_lwp_info): Now in x86-linux-nat.c.
5495 (have_ptrace_getregset): Now in x86-linux-nat.h.
5496 (x86_linux_dr_get): Now in x86-linux-nat.c.
5497 (x86_linux_dr_set): Likewise.
5498 (x86_linux_dr_get_addr): Likewise.
5499 (x86_linux_dr_get_control): Likewise.
5500 (x86_linux_dr_get_status): Likewise.
5501 (update_debug_registers_callback): Likewise.
5502 (x86_linux_dr_set_control): Likewise.
5503 (x86_linux_dr_set_addr): Likewise.
5504 (x86_linux_prepare_to_resume): Likewise.
5505 (x86_linux_new_thread): Likewise.
5506 (x86_linux_new_fork): Likewise.
5507 (x86_linux_get_thread_area): Likewise.
5508 (super_post_startup_inferior): Likewise.
5509 (x86_linux_child_post_startup_inferior): Likewise.
5510 (AMD64_LINUX_USER64_CS): Likewise.
5511 (AMD64_LINUX_X32_DS): Likewise.
5512 (x86_linux_read_description): Likewise.
5513 (x86_linux_enable_btrace): Likewise.
5514 (x86_linux_disable_btrace): Likewise.
5515 (x86_linux_teardown_btrace): Likewise.
5516 (x86_linux_read_btrace): Likewise.
5517 (x86_linux_create_target): Likewise.
5518 (x86_linux_add_target): Likewise.
5519 * i386-linux-nat.c (x86-linux-nat.h): New include.
5520 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5521 (PTRACE_SETREGSET): Likewise.
5522 (arch_lwp_info): Now in x86-linux-nat.c.
5523 (have_ptrace_getregset): Now in x86-linux-nat.h.
5524 (x86_linux_dr_get): Now in x86-linux-nat.c.
5525 (x86_linux_dr_set): Likewise.
5526 (x86_linux_dr_get_addr): Likewise.
5527 (x86_linux_dr_get_control): Likewise.
5528 (x86_linux_dr_get_status): Likewise.
5529 (update_debug_registers_callback): Likewise.
5530 (x86_linux_dr_set_control): Likewise.
5531 (x86_linux_dr_set_addr): Likewise.
5532 (x86_linux_prepare_to_resume): Likewise.
5533 (x86_linux_new_thread): Likewise.
5534 (x86_linux_new_fork): Likewise.
5535 (x86_linux_get_thread_area): Likewise.
5536 (super_post_startup_inferior): Likewise.
5537 (x86_linux_child_post_startup_inferior): Likewise.
5538 (AMD64_LINUX_USER64_CS): Likewise.
5539 (AMD64_LINUX_X32_DS): Likewise.
5540 (x86_linux_read_description): Likewise.
5541 (x86_linux_enable_btrace): Likewise.
5542 (x86_linux_disable_btrace): Likewise.
5543 (x86_linux_teardown_btrace): Likewise.
5544 (x86_linux_read_btrace): Likewise.
5545 (x86_linux_create_target): Likewise.
5546 (x86_linux_add_target): Likewise.
5547
5548 2014-07-11 Gary Benson <gbenson@redhat.com>
5549
5550 * amd64-linux-nat.c: Comment and whitespace changes.
5551 * i386-linux-nat.c: Comment and whitespace changes.
5552
5553 2014-07-11 Gary Benson <gbenson@redhat.com>
5554
5555 * amd64-linux-nat.c (x86_linux_create_target): New function.
5556 (x86_linux_add_target): Likewise.
5557 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5558 * i386-linux-nat.c (x86_linux_create_target): New function.
5559 (x86_linux_add_target): Likewise.
5560 (_initialize_i386_linux_nat): Delegate to the above new functions.
5561
5562 2014-07-11 Gary Benson <gbenson@redhat.com>
5563
5564 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5565 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5566 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5567 (ps_get_thread_area): Delegate to the above.
5568
5569 2014-07-11 Gary Benson <gbenson@redhat.com>
5570
5571 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5572 x86_linux_read_description. All uses updated. amd64-specific
5573 code conditionalized. Conditionalized i386-specific code added.
5574 Redundant cast removed.
5575 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5576 x86_linux_read_description. All uses updated. i386-specific
5577 code conditionalized. Conditionalized amd64-specific code added.
5578 One sizeof replaced with the actual type it is describing.
5579
5580 2014-07-11 Gary Benson <gbenson@redhat.com>
5581
5582 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5583 x86_linux_dr_get. All uses updated.
5584 (amd64_linux_dr_set): Renamed to
5585 x86_linux_dr_set. All uses updated.
5586 (amd64_linux_dr_get_addr): Renamed to
5587 x86_linux_dr_get_addr. All uses updated.
5588 (amd64_linux_dr_get_control): Renamed to
5589 x86_linux_dr_get_control. All uses updated.
5590 (amd64_linux_dr_get_status): Renamed to
5591 x86_linux_dr_get_status. All uses updated.
5592 (amd64_linux_dr_set_control): Renamed to
5593 x86_linux_dr_set_control. All uses updated.
5594 (amd64_linux_dr_set_addr): Renamed to
5595 x86_linux_dr_set_addr. All uses updated.
5596 (amd64_linux_prepare_to_resume): Renamed to
5597 x86_linux_prepare_to_resume. All uses updated.
5598 (amd64_linux_new_thread): Renamed to
5599 x86_linux_new_thread. All uses updated.
5600 (amd64_linux_new_fork): Renamed to
5601 x86_linux_new_fork. All uses updated.
5602 (amd64_linux_child_post_startup_inferior): Renamed to
5603 x86_linux_child_post_startup_inferior. All uses updated.
5604 (amd64_linux_enable_btrace): Renamed to
5605 x86_linux_enable_btrace. All uses updated.
5606 (amd64_linux_disable_btrace): Renamed to
5607 x86_linux_disable_btrace. All uses updated.
5608 (amd64_linux_teardown_btrace): Renamed to
5609 x86_linux_teardown_btrace. All uses updated.
5610 (amd64_linux_read_btrace): Renamed to
5611 x86_linux_read_btrace. All uses updated.
5612 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5613 x86_linux_dr_get. All uses updated.
5614 (i386_linux_dr_set): Renamed to
5615 x86_linux_dr_set. All uses updated.
5616 (i386_linux_dr_get_addr): Renamed to
5617 x86_linux_dr_get_addr. All uses updated.
5618 (i386_linux_dr_get_control): Renamed to
5619 x86_linux_dr_get_control. All uses updated.
5620 (i386_linux_dr_get_status): Renamed to
5621 x86_linux_dr_get_status. All uses updated.
5622 (i386_linux_dr_set_control): Renamed to
5623 x86_linux_dr_set_control. All uses updated.
5624 (i386_linux_dr_set_addr): Renamed to
5625 x86_linux_dr_set_addr. All uses updated.
5626 (i386_linux_prepare_to_resume): Renamed to
5627 x86_linux_prepare_to_resume. All uses updated.
5628 (i386_linux_new_thread): Renamed to
5629 x86_linux_new_thread. All uses updated.
5630 (i386_linux_new_fork): Renamed to
5631 x86_linux_new_fork. All uses updated.
5632 (i386_linux_child_post_startup_inferior): Renamed to
5633 x86_linux_child_post_startup_inferior. All uses updated.
5634 (i386_linux_enable_btrace): Renamed to
5635 x86_linux_enable_btrace. All uses updated.
5636 (i386_linux_disable_btrace): Renamed to
5637 x86_linux_disable_btrace. All uses updated.
5638 (i386_linux_teardown_btrace): Renamed to
5639 x86_linux_teardown_btrace. All uses updated.
5640 (i386_linux_read_btrace): Renamed to
5641 x86_linux_read_btrace. All uses updated.
5642
5643 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5644
5645 * remote.c (extended_remote_post_attach): New function.
5646 (init_extended_remote_ops): Install it as to_post_attach method.
5647
5648 2014-07-09 Pedro Alves <palves@redhat.com>
5649
5650 * infcmd.c (attach_command_post_wait): Don't call
5651 target_terminal_inferior here.
5652 (attach_command): Call it here instead.
5653
5654 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5655
5656 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5657 field.
5658 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5659 from varobj.c, with additional checks.
5660 (c_varobj_ops): Fill in is_path_expr_parent field.
5661 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5662 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5663 field.
5664 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5665 ops method.
5666 (varobj_default_is_path_expr_parent): New function.
5667 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5668 (varobj_default_is_path_expr_parent): Declare new function.
5669
5670 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5671
5672 * infcmd.c (finish_backward): Turn internal error into normal error.
5673
5674 2014-07-07 Pedro Alves <palves@redhat.com>
5675
5676 PR gdb/17096
5677 * remote.c (async_handle_remote_sigint)
5678 (async_handle_remote_sigint_twice): Call
5679 gdb_call_async_signal_handler instead of
5680 mark_async_signal_handler.
5681
5682 2014-07-07 Tom Tromey <tromey@redhat.com>
5683
5684 * target-delegates.c: Rebuild.
5685 * target.c (target_info_record): Remove.
5686 * record.c (info_record_command): Unconditionally call
5687 to_info_record.
5688 * target.h (struct target_ops) <to_info_record>: Use
5689 TARGET_DEFAULT_IGNORE.
5690 (target_info_record): Remove.
5691
5692 2014-07-07 Tom Tromey <tromey@redhat.com>
5693
5694 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5695 TARGET_DEFAULT_NORETURN.
5696 * target.c (generic_tls_error): New function.
5697 (target_translate_tls_address): Don't search target stack.
5698 * target-delegates.c: Rebuild.
5699 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5700 stack.
5701 * linux-thread-db.c (thread_db_get_thread_local_address):
5702 Unconditionally call beneath target.
5703
5704 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5705
5706 * cli/cli-logging.c (pop_output_files): Assign targerr to
5707 gdb_stdtargerr.
5708
5709 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5710
5711 * MAINTAINERS (Write After Approval): Update my email address.
5712
5713 2014-07-02 Gary Benson <gbenson@redhat.com>
5714
5715 * proc-service.c (ps_xfer_memory): Update comment.
5716 (ps_pstop): Remove unused function.
5717 (ps_pcontinue): Likewise.
5718 (ps_lstop): Likewise.
5719 (ps_lcontinue): Likewise.
5720 (ps_lgetxregsize): Likewise.
5721 (ps_lgetxregs): Likewise.
5722 (ps_lsetxregs): Likewise.
5723 (ps_plog): Likewise.
5724 (ps_ptread): Likewise.
5725 (ps_ptwrite): Likewise.
5726
5727 2014-07-01 Mark Wielaard <mjw@redhat.com>
5728
5729 * dwarf2read.c (add_array_cv_type): New function.
5730 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5731 (read_tag_volatile_type): Likewise.
5732
5733 2014-07-01 Tom Tromey <tromey@redhat.com>
5734
5735 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5736 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5737 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5738 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5739 * command.h (cmd_cfunc_ftype): Move earlier.
5740 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5741 (add_com, add_info): Use cmd_cfunc_ftype.
5742
5743 2014-06-30 Tom Tromey <tromey@redhat.com>
5744
5745 * symtab.c (operator_chars): Make parameters and return type
5746 const.
5747 (file_matches): Make "files" const.
5748 (struct search_symbols_data) <files>: Now const.
5749 (search_symbols): Make "regexp" and "files" parameters const.
5750 Update.
5751 (symtab_symbol_info): Remove cast.
5752 (rbreak_command): Update.
5753 * symtab.h (search_symbols): Update.
5754
5755 2014-06-27 Yao Qi <yao@codesourcery.com>
5756
5757 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5758 Change parameter type to 'struct thread_info *'. Caller
5759 updated.
5760 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5761 Update declaration.
5762 * dummy-frame.c (struct dummy_frame_id): New.
5763 (dummy_frame_id_eq): New function.
5764 (struct dummy_frame) <id>: Change its type to 'struct
5765 dummy_frame_id'.
5766 (dummy_frame_push): Add parameter ptid and save it in
5767 dummy_frame_id.
5768 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5769 inferior_ptid.
5770 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5771 to inferior_ptid.
5772 (lookup_dummy_frame): Change parameter type to 'struct
5773 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5774 instead of frame_id_eq.
5775 (dummy_frame_pop): Add parameter ptid. Callers updated.
5776 Update comments. Compose dummy_frame_id and pass it to
5777 lookup_dummy_frame.
5778 (dummy_frame_discard): Add parameter ptid.
5779 (dummy_frame_sniffer): Compose dummy_frame_id and call
5780 dummy_frame_id_eq instead of frame_id_eq.
5781 (fprint_dummy_frames): Print ptid.
5782 * dummy-frame.h: Remove comments.
5783 (dummy_frame_push): Add ptid in declaration.
5784 (dummy_frame_pop, dummy_frame_discard): Likewise.
5785
5786 2014-06-26 Tom Tromey <tromey@redhat.com>
5787
5788 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5789 * command.h (error_no_arg): Update.
5790
5791 2014-06-26 Tom Tromey <tromey@redhat.com>
5792
5793 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5794 (do_show_command): Make "arg" const.
5795 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5796
5797 2014-06-26 Tom Tromey <tromey@redhat.com>
5798
5799 * record-full.c (record_full_get_bookmark): Make "args" const.
5800 (record_full_goto_bookmark): Make "raw_bookmark" const.
5801 * record.c (record_goto): New function.
5802 (cmd_record_goto): Use it. Now static.
5803 * record.h (record_goto): Declare.
5804 (cmd_record_goto): Remove declaration.
5805 * target-delegates.c: Rebuild.
5806 * target.h (struct target_ops) <to_get_bookmark,
5807 to_goto_bookmark>: Make parameter const.
5808
5809 2014-06-26 Tom Tromey <tromey@redhat.com>
5810
5811 * defs.h (generic_load): Update.
5812 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5813 * monitor.c (monitor_load): Make "args" const.
5814 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5815 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5816 const.
5817 (mips_load): Make "file" const.
5818 * remote-sim.c (gdbsim_load): Make "args" const.
5819 * remote.c (remote_load): Make "name" const.
5820 * symfile.c (generic_load): Make "args" const.
5821 * target-delegates.c: Rebuild.
5822 * target.c (target_load): Make "arg" const.
5823 (debug_to_load): Make "args" const.
5824 * target.h (struct target_ops) <to_load>: Make parameter const.
5825 (target_load): Update.
5826
5827 2014-06-26 Tom Tromey <tromey@redhat.com>
5828
5829 PR symtab/16902:
5830 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5831 (dwarf2_physname, read_partial_die)
5832 (guess_partial_die_structure_name, fixup_partial_die)
5833 (guess_full_die_structure_name, anonymous_struct_prefix)
5834 (dwarf2_name): Use per-BFD obstack.
5835
5836 2014-06-26 Yao Qi <yao@codesourcery.com>
5837
5838 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5839 dummyframe and this_id into inner block below.
5840
5841 2014-06-26 Yao Qi <yao@codesourcery.com>
5842
5843 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5844 with "signal_pass[0]" in the initialization of signal_pass.
5845
5846 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5847
5848 * record-btrace.c (record_btrace_generating_corefile)
5849 (record_btrace_prepare_to_generate_core)
5850 (record_btrace_done_generating_core): New.
5851 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5852 (record_btrace_store_registers, record_btrace_prepare_to_store):
5853 Forward request when generating a core file.
5854 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5855 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5856 to_done_generating_core.
5857
5858 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5859
5860 * target.h (target_ops) <to_prepare_to_generate_core>
5861 <to_done_generating_core>: New.
5862 (target_prepare_to_generate_core, target_done_generating_core): New.
5863 * target.c (target_prepare_to_generate_core)
5864 (target_done_generating_core): New.
5865 * target-delegates.c: Regenerate.
5866 * gcore.c: (write_gcore_file): Rename to ...
5867 (write_gcore_file_1): ...this.
5868 (write_gcore_file): Call target_prepare_to_generate_core
5869 and target_done_generating_core.
5870
5871 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5872
5873 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5874 * gcore.c (write_gcore_file): Free memory returned from
5875 make_corefile_notes.
5876 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5877 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5878
5879 2014-06-24 Yao Qi <yao@codesourcery.com>
5880
5881 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5882 (arm_linux_init_abi): Set skip_trampoline_code with
5883 gdbarch_skip_trampoline_code instead of
5884 find_solib_trampoline_target.
5885
5886 2014-06-24 Yao Qi <yao@codesourcery.com>
5887
5888 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5889 arm_skip_bx_reg returns non-zero.
5890
5891 2014-06-24 Yao Qi <yao@codesourcery.com>
5892
5893 * arm-tdep.c (arm_skip_bx_reg): New function.
5894 (arm_skip_stub): Call arm_skip_bx_reg.
5895
5896 2014-06-23 Don Breazeal <donb@codesourcery.com>
5897
5898 * MAINTAINERS: Add myself as write-after-approval maintainer.
5899
5900 2014-06-23 Pedro Alves <palves@redhat.com>
5901
5902 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5903 DR_CONTROL before setting DR0..DR3.
5904 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5905 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5906 bits of DR_CONTROL related to the debug register slot being
5907 disabled. If all slots are vacant, clear local slowdown as well,
5908 and assert DR_CONTROL is 0.
5909
5910 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5911
5912 * python/lib/gdb/command/xmethods.py
5913 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5914 current progspace only if the string "progspace" matches LOCUS_RE.
5915
5916 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5917
5918 Fix --with-system-readline with readline-6.3 patch 5.
5919 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5920 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5921 types.
5922
5923 2014-06-20 Tom Tromey <tromey@redhat.com>
5924
5925 * dwarf2read.c (dw2_get_real_path): Use correct type in
5926 OBSTACK_CALLOC.
5927 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5928
5929 2014-06-20 Gary Benson <gbenson@redhat.com>
5930
5931 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5932 * common/glibc_thread_db.h: Likewise.
5933 * common/i386-cpuid.h: Likewise.
5934 * common/i386-gcc-cpuid.h: Likewise.
5935 * common/linux-btrace.h: Likewise.
5936 * common/linux-osdata.h: Likewise.
5937 * common/linux-procfs.h: Likewise.
5938 * common/linux-ptrace.h: Likewise.
5939 * common/mips-linux-watch.h: Likewise.
5940 * common/linux-btrace.c: Moved to nat.
5941 * common/linux-osdata.c: Likewise.
5942 * common/linux-procfs.c: Likewise.
5943 * common/linux-ptrace.c: Likewise.
5944 * common/mips-linux-watch.c: Likewise.
5945 * nat/gdb_thread_db.h: Moved from common.
5946 * nat/glibc_thread_db.h: Likewise.
5947 * nat/i386-cpuid.h: Likewise.
5948 * nat/i386-gcc-cpuid.h: Likewise.
5949 * nat/linux-btrace.c: Likewise.
5950 * nat/linux-btrace.h: Likewise.
5951 * nat/linux-osdata.c: Likewise.
5952 * nat/linux-osdata.h: Likewise.
5953 * nat/linux-procfs.c: Likewise.
5954 * nat/linux-procfs.h: Likewise.
5955 * nat/linux-ptrace.c: Likewise.
5956 * nat/linux-ptrace.h: Likewise.
5957 * nat/mips-linux-watch.c: Likewise.
5958 * nat/mips-linux-watch.h: Likewise.
5959 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5960 (object file files): Reordered.
5961 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5962 of glibc_thread_db.h.
5963
5964 2014-06-20 Gary Benson <gbenson@redhat.com>
5965
5966 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5967 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5968 (i386_dr_low): Likewise.
5969 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5970 (i386_dr_low_set_addr): Likewise.
5971 (i386_dr_low_get_addr): Likewise.
5972 (i386_dr_low_can_set_control): Likewise.
5973 (i386_dr_low_set_control): Likewise.
5974 (i386_dr_low_get_control): Likewise.
5975 (i386_dr_low_get_status): Likewise.
5976 (i386_get_debug_register_length): Likewise.
5977 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5978 (i386_dr_low): Likewise.
5979 * nat/i386-dregs.c (i386-low.h): Remove include.
5980 (i386-nat.h): Likewise.
5981 (nat/i386-dregs.h): New include.
5982 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5983 (i386_dr_low_set_addr): Likewise.
5984 (i386_dr_low_get_addr): Likewise.
5985 (i386_dr_low_can_set_control): Likewise.
5986 (i386_dr_low_set_control): Likewise.
5987 (i386_dr_low_get_control): Likewise.
5988 (i386_dr_low_get_status): Likewise.
5989 (i386_get_debug_register_length): Likewise.
5990 (debug_hw_points): Likewise.
5991
5992 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5993
5994 * Makefile.in (SFILES): Add d-exp.y.
5995 (YYFILES): Add d-exp.c.
5996 (YYOBJ): Add d-exp.o.
5997 (local-maintainer-clean): Delete d-exp.c.
5998 * d-exp.y: New file.
5999 * d-lang.h (d_parse): New declaration.
6000 (d_error): New declaration.
6001 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6002 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6003 PREC_ORDER operators.
6004 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6005
6006 2014-06-19 Yao Qi <yao@codesourcery.com>
6007
6008 * gdbthread.h (any_running): Remove the declaration.
6009 * thread.c (any_running): Remove.
6010
6011 2014-06-19 Yao Qi <yao@codesourcery.com>
6012
6013 * gdbthread.h (struct thread_info) <state>: Change its type to
6014 'enum thread_state'. Update comments.
6015
6016 2014-06-19 Pedro Alves <palves@redhat.com>
6017
6018 * gdbthread.h (ALL_THREADS): Delete.
6019 (ALL_NON_EXITED_THREADS): New macro.
6020 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6021 instead of ALL_THREADS.
6022 * infrun.c (find_thread_needs_step_over)
6023 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6024 instead of ALL_THREADS.
6025 * record-btrace.c (record_btrace_open)
6026 (record_btrace_stop_recording, record_btrace_close)
6027 (record_btrace_is_replaying, record_btrace_resume)
6028 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6029 * remote.c (append_pending_thread_resumptions): Likewise.
6030 * thread.c (thread_apply_all_command): Likewise.
6031
6032 2014-06-19 Gary Benson <gbenson@redhat.com>
6033
6034 * i386-nat.c (i386_stopped_by_watchpoint):
6035 Use i386_dr_stopped_by_watchpoint.
6036 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6037 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6038
6039 2014-06-19 Gary Benson <gbenson@redhat.com>
6040
6041 * nat/i386-dregs.c: New file.
6042 * Makefile.in (i386-dregs.o): New rule.
6043 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6044 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6045 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6046 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6047 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6048 * config/i386/go32.mh (NATDEPFILES): Likewise.
6049 * config/i386/linux.mh (NATDEPFILES): Likewise.
6050 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6051 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6052 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6053 * i386-nat.h (debug_hw_points): New declaration.
6054 * i386-nat.c (breakpoint.h): Remove include.
6055 (command.h): Likewise.
6056 (target.h): Likewise.
6057 (gdb_assert.h): Likewise.
6058 (debug_hw_points): Made nonstatic.
6059 (debug_printf): Now in i386-dregs.c.
6060 (TARGET_HAS_DR_LEN_8): Likewise.
6061 (DR_CONTROL_SHIFT): Likewise.
6062 (DR_CONTROL_SIZE): Likewise.
6063 (DR_RW_EXECUTE): Likewise.
6064 (DR_RW_WRITE): Likewise.
6065 (DR_RW_READ): Likewise.
6066 (DR_RW_IORW): Likewise.
6067 (DR_LEN_1): Likewise.
6068 (DR_LEN_2): Likewise.
6069 (DR_LEN_4): Likewise.
6070 (DR_LEN_8): Likewise.
6071 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6072 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6073 (DR_ENABLE_SIZE): Likewise.
6074 (DR_LOCAL_SLOWDOWN): Likewise.
6075 (DR_GLOBAL_SLOWDOWN): Likewise.
6076 (DR_CONTROL_RESERVED): Likewise.
6077 (I386_DR_CONTROL_MASK): Likewise.
6078 (I386_DR_VACANT): Likewise.
6079 (I386_DR_LOCAL_ENABLE): Likewise.
6080 (I386_DR_GLOBAL_ENABLE): Likewise.
6081 (I386_DR_DISABLE): Likewise.
6082 (I386_DR_SET_RW_LEN): Likewise.
6083 (I386_DR_GET_RW_LEN): Likewise.
6084 (I386_DR_WATCH_HIT): Likewise.
6085 (i386_wp_op_t): Likewise.
6086 (i386_show_dr): Likewise.
6087 (i386_length_and_rw_bits): Likewise.
6088 (i386_insert_aligned_watchpoint): Likewise.
6089 (i386_remove_aligned_watchpoint): Likewise.
6090 (i386_handle_nonaligned_watchpoint): Likewise.
6091 (i386_update_inferior_debug_regs): Likewise.
6092 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6093 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6094 (i386_region_ok_for_watchpoint):
6095 Use i386_dr_region_ok_for_watchpoint.
6096 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6097
6098 2014-06-19 Gary Benson <gbenson@redhat.com>
6099
6100 * i386-nat.c (i386_insert_hw_breakpoint): Use
6101 i386_insert_watchpoint.
6102 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6103
6104 2014-06-19 Gary Benson <gbenson@redhat.com>
6105
6106 * i386-nat.c (i386_dr_show): Renamed to
6107 i386_show_dr and made static. All uses updated.
6108 (i386_dr_length_and_rw_bits): Renamed to
6109 i386_length_and_rw_bits and made static.
6110 All uses updated.
6111 (i386_dr_insert_aligned_watchpoint): Renamed to
6112 i386_insert_aligned_watchpoint and made static.
6113 All uses updated.
6114 (i386_dr_remove_aligned_watchpoint): Renamed to
6115 i386_remove_aligned_watchpoint and made static.
6116 All uses updated.
6117 (i386_dr_update_inferior_debug_regs): Renamed to
6118 i386_update_inferior_debug_regs and made static.
6119 All uses updated.
6120 * nat/i386-dregs.h (i386_dr_show): Removed.
6121 (i386_dr_length_and_rw_bits): Likewise.
6122 (i386_dr_insert_aligned_watchpoint): Likewise.
6123 (i386_dr_remove_aligned_watchpoint): Likewise.
6124 (i386_dr_update_inferior_debug_regs): Likewise.
6125
6126 2014-06-19 Gary Benson <gbenson@redhat.com>
6127
6128 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6129 * configure: Regenerate.
6130 * config.in: Likewise.
6131 * main.c (signal.h): New include.
6132 (setup_alternate_signal_stack): New function.
6133 (captured_main): Call the above.
6134 * cp-support.c (signal.h): New include.
6135 (catch_demangler_crashes): New flag.
6136 (SIGJMP_BUF): New define.
6137 (SIGSETJMP): Likewise.
6138 (SIGLONGJMP): Likewise.
6139 (gdb_demangle_jmp_buf): New static global.
6140 (gdb_demangle_attempt_core_dump): Likewise.
6141 (gdb_demangle_signal_handler): New function.
6142 (gdb_demangle): If catch_demangler_crashes is set, install the
6143 above signal handler before calling bfd_demangle, and restore
6144 the original signal handler afterwards. Display the offending
6145 symbol and call demangler_warning the first time a segmentation
6146 fault is caught.
6147 (_initialize_cp_support): New maint set/show command.
6148
6149 2014-06-19 Gary Benson <gbenson@redhat.com>
6150
6151 * utils.h (resource_limit_kind): New enum.
6152 (can_dump_core): New declaration.
6153 (warn_cant_dump_core): Likewise.
6154 (dump_core): Likewise.
6155 * utils.c (dump_core): Made nonstatic. Added new
6156 parameter "limit_kind".
6157 (can_dump_core): Made nonstatic. Moved printing code to...
6158 (warn_cant_dump_core): New function.
6159 (can_dump_core_warn): Likewise.
6160 (internal_vproblem): Replace calls to can_dump_core with
6161 calls to can_dump_core_warn. Supply new argument to each.
6162
6163 2014-06-19 Gary Benson <gbenson@redhat.com>
6164
6165 * utils.h (demangler_vwarning): New declaration.
6166 (demangler_warning): Likewise.
6167 * utils.c (struct internal_problem)
6168 <user_settable_should_quit>: New field.
6169 <user_settable_should_dump_core>: Likewise
6170 (internal_error_problem): Add values for above new fields.
6171 (internal_warning_problem): Likewise.
6172 (demangler_warning_problem): New static global.
6173 (demangler_vwarning): New function.
6174 (demangler_warning): Likewise.
6175 (add_internal_problem_command): Selectively add commands.
6176 (_initialize_utils): New internal problem command.
6177 * maint.c (maintenance_demangler_warning): New function.
6178 (_initialize_maint_cmds): New command.
6179
6180 2014-06-18 Tom Tromey <tromey@redhat.com>
6181
6182 * f-valprint.c (info_common_command_for_block): Update.
6183 * symtab.h (struct general_symbol_info) <common_block>: Now
6184 const.
6185
6186 2014-06-18 Tom Tromey <tromey@redhat.com>
6187
6188 * symtab.h (struct symtab) <blockvector>: Now const.
6189 * ada-lang.c (ada_add_global_exceptions): Update.
6190 * buildsym.c (augment_type_symtab): Update.
6191 * dwarf2read.c (dw2_lookup_symbol): Update.
6192 * jit.c (finalize_symtab): Update.
6193 * jv-lang.c (add_class_symtab_symbol): Update.
6194 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6195 Update.
6196 * objfiles.c (objfile_relocate1): Update.
6197 * psymtab.c (lookup_symbol_aux_psymtabs)
6198 (maintenance_check_psymtabs): Update.
6199 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6200 Update.
6201 * spu-tdep.c (spu_catch_start): Update.
6202 * symmisc.c (dump_symtab_1): Update.
6203 * symtab.c (lookup_global_symbol_from_objfile)
6204 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6205 (basic_lookup_transparent_type_quick)
6206 (basic_lookup_transparent_type, find_pc_sect_symtab)
6207 (find_pc_sect_line, search_symbols): Update.
6208 * block.c (find_block_in_blockvector): Make "bl" const.
6209 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6210 const.
6211 (blockvector_contains_pc): Make "bv" const.
6212 (block_for_pc_sect): Update.
6213 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6214 (blockvector_contains_pc): Update.
6215 * breakpoint.c (resolve_sal_pc): Update.
6216 * inline-frame.c (block_starting_point_at): Update.
6217
6218 2014-06-18 Tom Tromey <tromey@redhat.com>
6219
6220 * completer.c (complete_line): Make "line_buffer" const.
6221 * completer.h (complete_line): Update.
6222
6223 2014-06-18 Tom Tromey <tromey@redhat.com>
6224
6225 * symtab.c (add_macro_name): Remove unneeded cast.
6226
6227 2014-06-18 Tom Tromey <tromey@redhat.com>
6228
6229 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6230 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6231
6232 2014-06-18 Tom Tromey <tromey@redhat.com>
6233
6234 * probe.c (info_probes_for_ops): Make "arg" const.
6235 * probe.h (info_probes_for_ops): Update.
6236
6237 2014-06-18 Tom Tromey <tromey@redhat.com>
6238
6239 * varobj.c (varobj_create): Update.
6240 * valops.c (value_of_this): Update.
6241 * tracepoint.c (add_local_symbols, scope_info): Update.
6242 * symtab.h (struct general_symbol_info) <block>: Now const.
6243 * symtab.c (skip_prologue_sal)
6244 (default_make_symbol_completion_list_break_on)
6245 (skip_prologue_using_sal): Update.
6246 * stack.h (iterate_over_block_locals)
6247 (iterate_over_block_local_vars): Update.
6248 * stack.c (print_frame_args): Update.
6249 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6250 parameter const.
6251 (get_selected_block): Make return type const.
6252 * python/py-frame.c (frapy_block): Update.
6253 * python/py-block.c (gdbpy_block_for_pc): Update.
6254 * p-exp.y (%union) <bval>: Now const.
6255 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6256 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6257 * m2-exp.y (%union) <bval>: Now const.
6258 * linespec.c (get_current_search_block): Make return type const.
6259 (create_sals_line_offset, find_label_symbols): Update.
6260 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6261 Update.
6262 (block_starting_point_at): Make "block" const.
6263 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6264 (check_exception_resume): Update.
6265 * guile/scm-frame.c (gdbscm_frame_block): Update.
6266 * guile/scm-block.c (gdbscm_lookup_block): Update.
6267 * frame.h (get_frame_block): Update.
6268 (get_selected_block): Make return type const.
6269 * frame.c (frame_id_inner): Update.
6270 * f-valprint.c (info_common_command_for_block)
6271 (info_common_command): Update.
6272 * dwarf2loc.c (dwarf2_find_location_expression)
6273 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6274 (locexpr_describe_location_piece): Update.
6275 * c-exp.y (%union) <bval>: Now const.
6276 * breakpoint.c (resolve_sal_pc): Update.
6277 * blockframe.c (get_frame_block):Make return type const.
6278 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6279 (block_innermost_frame): Update.
6280 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6281 (block_for_pc, block_for_pc_sect): Update.
6282 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6283 'pblock' const.
6284 (block_for_pc_sect, block_for_pc): Make return type const.
6285 * ax-gdb.c (gen_expr): Update.
6286 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6287 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6288 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6289 (ada_read_var_value): Update.
6290 * ada-exp.y (struct name_info) <block>: Now const.
6291 (%union): Likewise.
6292 (block_lookup): Constify.
6293
6294 2014-06-18 Gary Benson <gbenson@redhat.com>
6295
6296 * nat/i386-dregs.h: New file.
6297 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6298 * i386-nat.h (i386-dregs.h): New include.
6299 (DR_FIRSTADDR): Now in i386-dregs.h.
6300 (DR_LASTADDR): Likewise.
6301 (DR_NADDR): Likewise.
6302 (DR_STATUS): Likewise.
6303 (DR_CONTROL): Likewise.
6304 (i386_debug_reg_state): Likewise.
6305 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6306
6307 2014-06-18 Don Breazeal <donb@codesourcery.com>
6308
6309 * breakpoint.c (set_longjmp_breakpoint): Call
6310 momentary_breakpoint_from_master with additional argument.
6311 (set_longjmp_breakpoint_for_call_dummy): Call
6312 momentary_breakpoint_from_master with additional argument.
6313 (set_std_terminate_breakpoint): Call
6314 momentary_breakpoint_from_master with additional argument.
6315 (momentary_breakpoint_from_master): Add argument to function
6316 definition and use it to initialize structure member flag.
6317 (clone_momentary_breakpoint): Call
6318 momentary_breakpoint_from_master with additional argument.
6319 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6320 member flags set in momentary_breakpoint_from_master.
6321
6322 2014-06-18 Gary Benson <gbenson@redhat.com>
6323
6324 * i386-nat.c (i386_show_dr): Renamed to
6325 i386_dr_show and made nonstatic. All uses updated.
6326 (i386_length_and_rw_bits): Renamed to
6327 i386_dr_length_and_rw_bits and made nonstatic.
6328 All uses updated.
6329 (i386_insert_aligned_watchpoint): Renamed to
6330 i386_dr_insert_aligned_watchpoint and made nonstatic.
6331 All uses updated.
6332 (i386_remove_aligned_watchpoint): Renamed to
6333 i386_dr_remove_aligned_watchpoint and made nonstatic.
6334 All uses updated.
6335 (i386_update_inferior_debug_regs): Renamed to
6336 i386_dr_update_inferior_debug_regs and made nonstatic.
6337 All uses updated.
6338
6339 2014-06-18 Gary Benson <gbenson@redhat.com>
6340
6341 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6342 (i386_dr_low_can_set_control): Likewise.
6343 (i386_dr_low_set_addr): Likewise.
6344 (i386_dr_low_set_control): Likewise.
6345 (i386_dr_low_get_addr): Likewise.
6346 (i386_dr_low_get_status): Likewise.
6347 (i386_dr_low_get_control): Likewise.
6348 (i386_insert_aligned_watchpoint): Use new macros.
6349 (i386_update_inferior_debug_regs): Likewise.
6350 (i386_stopped_data_address): Likewise.
6351
6352 2014-06-18 Gary Benson <gbenson@redhat.com>
6353
6354 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6355 New parameter. All uses updated.
6356
6357 2014-06-18 Gary Benson <gbenson@redhat.com>
6358
6359 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6360 All uses updated.
6361
6362 2014-06-18 Gary Benson <gbenson@redhat.com>
6363
6364 * i386-nat.c (debug_printf): New macro.
6365 (i386_get_debug_register_length): Likewise.
6366 (TARGET_HAS_DR_LEN_8): Use above macro.
6367 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6368 and printf_unfiltered. Use phex to format values.
6369
6370 2014-06-18 Gary Benson <gbenson@redhat.com>
6371
6372 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6373 Make const.
6374
6375 2014-06-18 Gary Benson <gbenson@redhat.com>
6376
6377 * i386-nat.c: Comment changes.
6378
6379 2014-06-18 Gary Benson <gbenson@redhat.com>
6380
6381 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6382
6383 2014-06-18 Gary Benson <gbenson@redhat.com>
6384
6385 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6386 (i386_insert_aligned_watchpoint): Likewise.
6387 (i386_remove_aligned_watchpoint): Likewise.
6388 (i386_handle_nonaligned_watchpoint): Likewise.
6389
6390 2014-06-18 Gary Benson <gbenson@redhat.com>
6391
6392 * i386-nat.c: Whitespace changes.
6393
6394 2014-06-17 Samuel Bronson <naesten@gmail.com>
6395
6396 * MAINTAINERS: Update Roland McGrath's email address.
6397 Thanks to Sergio Durigan Junior for pointing out that he left
6398 Red Hat a while ago, and giving me a current address.
6399
6400 2014-06-17 Tom Tromey <tromey@redhat.com>
6401
6402 * utils.h (savestring): Remove declaration.
6403
6404 2014-06-17 Tom Tromey <tromey@redhat.com>
6405
6406 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6407
6408 2014-06-16 Keith Seitz <keiths@redhat.com>
6409
6410 PR mi/15863
6411 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6412 to update the varobj if inferior_ptid is null_ptid.
6413
6414 2014-06-16 Tom Tromey <tromey@redhat.com>
6415
6416 * target.h (struct target_ops) <to_info_proc>: Make parameter
6417 const.
6418 (target_info_proc): Update.
6419 * target.c (target_info_proc): Make "args" const.
6420 * procfs.c (procfs_info_proc): Update.
6421 * linux-tdep.c (linux_info_proc): Update.
6422 (linux_core_info_proc_mappings): Make "args" const.
6423 (linux_core_info_proc): Update.
6424 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6425 * gdbarch.c: Rebuild.
6426 * gdbarch.h: Rebuild.
6427 * corelow.c (core_info_proc): Update.
6428
6429 2014-06-16 Tom Tromey <tromey@redhat.com>
6430
6431 * target.h (struct target_ops) <to_disconnect>: Make parameter
6432 const.
6433 (target_disconnect): Update.
6434 * target.c (target_disconnect): Make "args" const.
6435 * target-delegates.c: Rebuild.
6436 * remote.c (remote_disconnect): Update.
6437 * record.h (record_disconnect): Update.
6438 * record.c (record_disconnect): Update.
6439 * inf-child.c (inf_child_disconnect): Update.
6440
6441 2014-06-16 Tom Tromey <tromey@redhat.com>
6442
6443 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6444 * target.c (debug_to_rcmd, default_rcmd): Update.
6445 * target-delegates.c: Rebuild.
6446 * remote.c (remote_rcmd): Update.
6447 * monitor.c (monitor_rcmd): Update.
6448
6449 2014-06-16 Pedro Alves <palves@redhat.com>
6450
6451 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6452 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6453 have OBJF_SHARED set.
6454 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6455 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6456 instead of OBJF_USERLOADED.
6457 * objfiles.h (OBJF_SHARED): Update comment.
6458 (userloaded_objfile_contains_address_p): Rename to ...
6459 (shared_objfile_contains_address_p): ... this, and update
6460 comments.
6461 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6462 new objfile.
6463 (remove_symbol_file_command): Skip objfiles that don't have
6464 OBJF_SHARED set.
6465
6466 2014-06-16 Tom Tromey <tromey@redhat.com>
6467
6468 * minsyms.h (prim_record_minimal_symbol)
6469 (prim_record_minimal_symbol_and_info): Update comments.
6470
6471 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6472
6473 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6474 or --without-guile, according to how GDB was built.
6475
6476 2014-06-13 Tom Tromey <tromey@redhat.com>
6477
6478 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6479 to help_list.
6480 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6481 to help_list.
6482 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6483 help_list.
6484 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6485 help_list.Pass all_commands, not -1, to help_list.
6486 * cli/cli-dump.c (dump_command, append_command)
6487 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6488 (binary_dump_command, binary_append_command): Pass all_commands,
6489 not -1, to help_list.
6490 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6491 -1, to help_list.
6492 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6493 -1, to help_list.
6494 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6495 help_list.
6496 * top.c (set_history): Pass all_commands, not -1, to help_list.
6497 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6498 all_commands, not -1, to help_list.
6499 * symfile.c (overlay_command): Pass all_commands, not -1, to
6500 help_list.
6501 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6502 help_list.
6503 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6504 help_list.
6505 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6506 -1, to help_list.
6507 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6508 not -1, to help_list.
6509 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6510 not -1, to help_list.
6511 * maint.c (maintenance_command, maintenance_info_command)
6512 (maintenance_print_command, maintenance_set_cmd): Pass
6513 all_commands, not -1, to help_list.
6514 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6515 help_list.
6516 * language.c (set_check): Pass all_commands, not -1, to help_list.
6517 * infcmd.c (unset_command): Pass all_commands, not -1, to
6518 help_list.
6519 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6520 help_list.
6521 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6522 help_list.
6523 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6524 help_list.
6525 * breakpoint.c (save_command): Pass all_commands, not -1, to
6526 help_list.
6527 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6528 all_commands, not -1, to help_list.
6529
6530 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6531
6532 * regcache.c (struct register_to_invalidate): New structure.
6533 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6534 functions.
6535 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6536
6537 2014-06-12 Yao Qi <yao@codesourcery.com>
6538
6539 * varobj.c (varobj_get_num_children): Call
6540 varobj_is_dynamic_p.
6541 (varobj_list_children): Likewise.
6542 (varobj_update): Likewise. Update comments.
6543
6544 2014-06-12 Yao Qi <yao@codesourcery.com>
6545
6546 * varobj.c (varobj_pretty_printed_p): Rename to ...
6547 (varobj_is_dynamic_p): ... this. New function.
6548 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6549 (varobj_is_dynamic_p): Declare.
6550 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6551 (mi_print_value_p, varobj_update_one): Likewise.
6552
6553 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6554 Yao Qi <yao@codesourcery.com>
6555
6556 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6557 (varobj_get_iterator): Wrap up code for pretty-printer by
6558 "#if HAVE_PYTHON" and "#endif".
6559 (update_dynamic_varobj_children): Likewise.
6560
6561 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6562 Yao Qi <yao@codesourcery.com>
6563
6564 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6565 gdb_python_initialized is false. Move some code from varobj.c.
6566 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6567 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6568 (struct varobj_item): Moved to varobj-iter.h".
6569 (varobj_clear_saved_item): New function.
6570 (update_dynamic_varobj_children): Move python-related code to
6571 py-varobj.c.
6572 (free_variable): Call varobj_clear_saved_item and
6573 varobj_iter_delete.
6574
6575 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6576 Yao Qi <yao@codesourcery.com>
6577
6578 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6579 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6580 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6581 (py-varobj.o): New rule.
6582 * python/py-varobj.c: New file.
6583 * python/python-internal.h (py_varobj_get_iterator): Declare.
6584 * varobj-iter.h: New file.
6585 * varobj.c: Include "varobj-iter.h"
6586 (struct varobj) <child_iter>: Change its type from "PyObject *"
6587 to "struct varobj_iter *".
6588 <saved_item>: Likewise.
6589 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6590 [HAVE_PYTHON] (varobj_get_iterator): New function.
6591 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6592 python-specific code to python/py-varobj.c.
6593 (install_visualizer): Call varobj_iter_delete instead of
6594 Py_XDECREF.
6595 * varobj.h (varobj_ensure_python_env): Declare.
6596
6597 2014-06-12 Yao Qi <yao@codesourcery.com>
6598
6599 * varobj.c (struct varobj_item): New structure.
6600 (create_child_with_value): Update declaration.
6601 (varobj_add_child): Replace arguments 'name' and 'value' with
6602 'item'. All callers updated.
6603 (install_dynamic_child): Likewise.
6604 (update_dynamic_varobj_children): Likewise.
6605 (varobj_add_child): Likewise.
6606 (create_child_with_value): Likewise.
6607
6608 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6609
6610 * NEWS: Create a new section for the next release branch.
6611 Rename the section of the current branch, now that it has
6612 been cut.
6613
6614 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6615
6616 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6617 * version.in: Bump version to 7.8.50.DATE-cvs.
6618
6619 2014-06-11 Pedro Alves <palves@redhat.com>
6620
6621 PR remote/17028
6622 * ser-mingw.c (net_windows_socket_check_pending): New function.
6623 (net_windows_select_thread): Ignore spurious wakeups. Use
6624 net_windows_socket_check_pending.
6625 (net_windows_wait_handle): Check for pending events with
6626 ioctlsocket, through net_windows_socket_check_pending, instead of
6627 checking the socket's event.
6628
6629 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6630
6631 * python/python-internal.h (gdb_PyObject_GetAttrString)
6632 (gdb_PyObject_HasAttrString): New inline function definitions.
6633 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6634 char * of the second argument to PyObject_GetAttrString.
6635
6636 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6637
6638 * serial.c (serial_write): Fix index of character to be printed
6639 in call to serial_logchar when serial debug traces are enabled.
6640
6641 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6642
6643 * gdbtypes (resolve_dynamic_range): Add function description.
6644
6645 2014-06-09 Pedro Alves <palves@redhat.com>
6646
6647 * linux-nat.c (linux_child_follow_fork): Initialize status with
6648 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6649 inner block. Only pass the signal to PTRACE_DETACH if in pass
6650 state.
6651
6652 2014-06-09 Gary Benson <gbenson@redhat.com>
6653
6654 * common/signals.c (gdb_signal_from_host): Reorder to separate
6655 the always-available ANSI-standard signals from the signals that
6656 require checking.
6657 (do_gdb_signal_to_host): Likewise.
6658 * proc-events.c (signal_table): Likewise.
6659
6660 2014-06-08 Hui Zhu <hui@codesourcery.com>
6661
6662 * common/linux-ptrace.c (linux_disable_event_reporting): New
6663 function.
6664 * common/linux-ptrace.h (linux_disable_event_reporting): New
6665 declaration.
6666 * linux-nat.c (linux_child_follow_fork): Do a single step before
6667 detach.
6668
6669 2014-06-07 Keith Seitz <keiths@redhat.com>
6670
6671 Revert:
6672 PR c++/16253
6673 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6674 from symbol_matches_domain in symtab.c. All local callers
6675 of symbol_matches_domain updated.
6676 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6677 search STRUCT_DOMAIN.
6678 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6679 independently. standard_lookup will do that automatically.
6680 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6681 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6682 (cp_lookup_symbol_in_namespace): Likewise.
6683 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6684 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6685 may return a STRUCT_DOMAIN match.
6686 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6687 * cp-support.c: Include language.h.
6688 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6689 VAR_DOMAIN.
6690 * psymtab.c (match_partial_symbol): Compare the requested
6691 domain with the symbol's domain directly.
6692 (lookup_partial_symbol): Likewise.
6693 * symtab.c (lookup_symbol_in_language): Explain when/why
6694 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6695 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6696 appropriate languages.
6697 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6698 and moved to ada-lang.c
6699 (lookup_block_symbol): Explain that this function only returns
6700 symbol matching the requested DOMAIN.
6701 Compare the requested domain with the symbol's domain directly.
6702 (iterate_over_symbols): Compare the requested domain with the
6703 symbol's domain directly.
6704 * symtab.h (symbol_matches_domain): Remove.
6705
6706 2014-06-06 Doug Evans <xdje42@gmail.com>
6707
6708 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6709 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6710 (gdbscm_guile_version_is_at_least): Declare.
6711 (gdbscm_scm_string_to_int): Declare.
6712 * guile/guile.c (gdbscm_guile_major_version): New global.
6713 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6714 (guile_datadir): New static global.
6715 (gdbscm_guile_data_directory): New function.
6716 (initialize_scheme_side): Update.
6717 (misc_guile_functions): Add guile-data-directory.
6718 (initialize_gdb_module): Fetch guile version number.
6719 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6720 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6721 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6722 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6723 comments.
6724 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6725 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6726 * guile/scm-value.c (gdbscm_value_to_string): Only call
6727 scm_port_conversion_strategy if Guile version >= 2.0.6.
6728
6729 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6730
6731 * main.c (print_gdb_help): Add -q and --silent.
6732
6733 2014-06-06 Gary Benson <gbenson@redhat.com>
6734
6735 * common/signals.c: Remove preprocessor conditionals for
6736 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6737 SIGSEGV and SIGTERM.
6738 * proc-events.c: Likewise.
6739
6740 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6741
6742 * symfile.c (symfile_free_objfile): Remove restriction to
6743 OBJF_USERLOADED.
6744 * symfile-mem.c (symbol_file_add_from_memory): Call
6745 add_target_sections_of_objfile.
6746
6747 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6748
6749 * guile/scm-value.c (gdbscm_history_append_x): Use
6750 'vlscm_get_value_smob_arg_unsafe' instead of
6751 'vlscm_scm_to_value'.
6752
6753 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6754
6755 PR mi/15806
6756 * utils.c (printchar): Don't escape at all if quoter is NUL.
6757 Update function documentation to clarify effect of parameter
6758 QUOTER.
6759 * remote.c (escape_buffer): Pass '\\' as the quoter to
6760 fputstrn_unfiltered.
6761 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6762 generate the output.
6763 (mi_solib_unloaded): Same.
6764
6765 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6766
6767 * development.sh: Delete.
6768 * Makefile.in (config.status): Adjust dependency on development.sh.
6769 * configure.ac: Adjust development.sh source call.
6770 * configure: Regenerate.
6771
6772 2014-06-04 Doug Evans <xdje42@gmail.com>
6773
6774 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6775 is_scheme_bkpt, spec.
6776 (bpscm_make_breakpoint_smob): Initialize new members.
6777 (gdbscm_create_breakpoint_x): Split into two ...
6778 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6779 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6780 (scheme_function breakpoint_functions): Update.
6781 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6782 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6783 register-breakpoint!.
6784
6785 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6786
6787 PR server/17023
6788 * mem-break.c (z_type_supported): Return zero if
6789 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6790
6791 2014-06-04 Tom Tromey <tromey@redhat.com>
6792
6793 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6794 value_from_contents_and_address_unresolved.
6795 (ada_template_to_fixed_record_type_1): Likewise.
6796 (ada_which_variant_applies): Likewise.
6797 * value.h (value_from_contents_and_address_unresolved): Declare.
6798 * value.c (value_from_contents_and_address_unresolved): New
6799 function.
6800 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6801 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6802 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6803
6804 2014-06-04 Tom Tromey <tromey@redhat.com>
6805
6806 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6807
6808 2014-06-04 Tom Tromey <tromey@redhat.com>
6809
6810 * procfs.c (procfs_attach): Make "args" const.
6811 * windows-nat.c (windows_attach): Make "args" const.
6812 * nto-procfs.c (procfs_attach): Make "args" const.
6813 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6814 * go32-nat.c (go32_attach): Make "args" const.
6815 * gnu-nat.c (gnu_attach): Make "args" const.
6816 * darwin-nat.c (darwin_attach): Make "args" const.
6817 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6818 * linux-nat.c (linux_nat_attach): Make "args" const.
6819 * remote.c (extended_remote_attach_1, extended_remote_attach):
6820 Make "args" const.
6821 * target.h (struct target_ops) <to_attach>: Make "args" const.
6822 (find_default_attach): Likewise.
6823 * utils.c (parse_pid_to_attach): Make "args" const.
6824 * utils.h (parse_pid_to_attach): Update.
6825
6826 2014-06-04 Tom Tromey <tromey@redhat.com>
6827
6828 * target-delegates.c: Rebuild.
6829 * target.c (default_thread_address_space): New function.
6830 (target_thread_address_space): Simplify.
6831 * target.h (struct target_ops) <to_thread_address_space>: Add
6832 TARGET_DEFAULT_FUNC.
6833
6834 2014-06-04 Doug Evans <xdje42@gmail.com>
6835
6836 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6837
6838 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6839
6840 * record-btrace.c: Include event-loop.h and inf-loop.h.
6841 (record_btrace_resume_exec_dir)
6842 (record_btrace_async_inferior_event_handler)
6843 (record_btrace_handle_async_inferior_event): New.
6844 (record_btrace_open): Create async event handler.
6845 (record_btrace_close): Delete async event handler.
6846 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6847 Mark async event handler.
6848 (record_btrace_execution_direction): New.
6849 (init_record_btrace_ops): Initialize to_execution_direction.
6850
6851 2014-06-03 Doug Evans <xdje42@gmail.com>
6852
6853 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6854 (gdbscm_make_parameter): Ditto.
6855
6856 2014-06-03 Doug Evans <dje@google.com>
6857
6858 * exec.c (exec_close_1): Call clear_section_table instead of
6859 resize_section_table.
6860 (clear_section_table): New function.
6861 (resize_section_table): Make static. Rename arg num_added to
6862 adjustment.
6863 * exec.h (clear_section_table): Declare.
6864 (resize_section_table): Delete.
6865 * progspace.c (release_program_space): Call clear_section_table
6866 instead of resize_section_table.
6867
6868 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6869
6870 * NEWS (Python Scripting): Add entry about the new xmethods
6871 feature.
6872
6873 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6874
6875 * python/py-xmethods.c: New file.
6876 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6877 (objfpy_dealloc): XDECREF on the new xmethods field.
6878 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6879 field.
6880 (objfpy_get_xmethods): New function.
6881 (objfile_getset): New entry 'xmethods'.
6882 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6883 (pspy_dealloc): XDECREF on the new xmethods field.
6884 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6885 field.
6886 (pspy_get_xmethods): New function.
6887 (pspace_getset): New entry 'xmethods'.
6888 * python/python-internal.h: Add declarations for new functions.
6889 * python/python.c (_initialize_python): Invoke
6890 gdbpy_initialize_xmethods.
6891 * python/lib/gdb/__init__.py (xmethods): New
6892 attribute.
6893 * python/lib/gdb/xmethod.py: New file.
6894 * python/lib/gdb/command/xmethods.py: New file.
6895
6896 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6897
6898 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6899 best match method returned by find_overload_match is an xmethod.
6900 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6901 the best matching operator returned by find_overload_match is an
6902 xmethod.
6903 * valops.c: #include "extension.h".
6904 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6905 Return void. The list of matching source methods is returned in
6906 "fn_list" and a vector of matching debug method workers is
6907 returned in "xm_worker_vec". Update all callers.
6908 (value_find_oload_method_list): Likewise.
6909 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6910 non-NULL, then the index of the best matching method in this
6911 vector is returned. Update all callers.
6912 (find_overload_match): Include xmethods while performing overload
6913 resolution.
6914
6915 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6916
6917 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6918 * extension-priv.h (struct extension_language_ops): Add the
6919 xmethod interface.
6920 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6921 get_matching_xmethod_workers, get_xmethod_argtypes,
6922 invoke_xmethod, free_xmethod_worker,
6923 free_xmethod_worker_vec): New functions.
6924 * extension.h: #include "common/vec.h".
6925 New function declarations.
6926 (struct xmethod_worker): New struct.
6927 (VEC (xmethod_worker_ptr)): New vector type.
6928 (xmethod_worker_ptr): New typedef.
6929 (xmethod_worker_vec): Likewise.
6930 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6931 builtin_type.
6932 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6933 (struct builtin_type): New field "xmethod".
6934 * valarith.c (value_ptradd): Assert that the value argument is not
6935 lval_xcallable.
6936 * valops.c (value_must_coerce_to_target): Return 0 for
6937 lval_xcallable values.
6938 * value.c (struct value): New field XM_WORKER in the field
6939 LOCATION.
6940 (value_address, value_raw_address): Return 0 for lval_xcallable
6941 values.
6942 (set_value_address): Assert that the value is not an
6943 lval_xcallable.
6944 (value_free): Free the associated xmethod worker when freeing
6945 lval_xcallable values.
6946 (set_value_component_location): Assert that the WHOLE value is not
6947 lval_xcallable.
6948 (value_of_xmethod, call_xmethod): New functions.
6949 * value.h: Declare "struct xmethod_worker".
6950 Declare new functions value_of_xmethod, call_xmethod.
6951
6952 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6953 Pedro Alves <palves@redhat.com>
6954
6955 PR breakpoints/17000
6956 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6957 New function, extracted from software_breakpoint_inserted_here_p.
6958 (software_breakpoint_inserted_here_p): Replace factored out code
6959 by call to find_non_raw_software_breakpoint_inserted_here.
6960 (bp_target_info_copy_insertion_state): New function.
6961 (bkpt_insert_location): Handle the case of a single-step
6962 breakpoint already inserted at the same address.
6963 (bkpt_remove_location): Handle the case of a single-step
6964 breakpoint still inserted at the same address.
6965 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6966 breakpoint already inserted at the same address.
6967 (deprecated_remove_raw_breakpoint): Handle the case of a
6968 non-raw breakpoint still inserted at the same address.
6969 (find_single_step_breakpoint): New function, extracted from
6970 single_step_breakpoint_inserted_here_p.
6971 (find_single_step_breakpoint): New function,
6972 factored out from single_step_breakpoint_inserted_here_p.
6973 (single_step_breakpoint_inserted_here_p): Reimplement.
6974
6975 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6976
6977 Pushed by Joel Brobecker <brobecker@adacore.com>
6978 * source.c (show_substitute_path_command): Fix display of matching
6979 substitution rules.
6980
6981 2014-06-03 Gary Benson <gbenson@redhat.com>
6982
6983 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6984
6985 2014-06-02 Doug Evans <xdje42@gmail.com>
6986
6987 Add parameter support for Guile.
6988 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6989 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6990 (scm-param.o): New rule.
6991 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6992 (gdbscm_misc_error): Declare.
6993 (gdbscm_canonicalize_command_name): Declare.
6994 (gdbscm_scm_to_host_string): Declare.
6995 (gdbscm_scm_from_host_string): Declare.
6996 (gdbscm_initialize_parameters): Declare.
6997 * guile/guile.c (initialize_gdb_module): Call
6998 gdbscm_initialize_parameters.
6999 * guile/lib/gdb.scm: Export parameter symbols.
7000 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7001 cmdscm_canonicalize_name and made public. All callers updated.
7002 * guile/scm-exception.c (gdbscm_misc_error): New function.
7003 * guile/scm-param.c: New file.
7004 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7005 (gdbscm_scm_to_host_string): New function.
7006 (gdbscm_scm_from_host_string): New function.
7007 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7008
7009 2014-06-02 Doug Evans <xdje42@gmail.com>
7010
7011 Add command support for Guile.
7012 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7013 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7014 (scm-cmd.o): New rule.
7015 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7016 (gdbscm_user_error_p): Declare.
7017 (gdbscm_parse_command_name): Declare.
7018 (gdbscm_valid_command_class_p): Declare.
7019 (gdbscm_initialize_commands): Declare.
7020 * guile/guile.c (initialize_gdb_module): Call
7021 gdbscm_initialize_commands.
7022 * guile/lib/gdb.scm: Export command symbols.
7023 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7024 (throw-user-error): New function.
7025 * guile/scm-cmd.c: New file.
7026 * guile/scm-exception.c (user_error_symbol): New static global.
7027 (gdbscm_user_error_p): New function.
7028 (gdbscm_initialize_exceptions): Set user_error_symbol.
7029 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7030
7031 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7032
7033 * top.c (command_loop): Handle comments here...
7034 (command_line_input): ... not here.
7035
7036 2014-06-02 Doug Evans <xdje42@gmail.com>
7037
7038 Add progspace support for Guile.
7039 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7040 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7041 (scm-progspace.o): New rule.
7042 * guile/guile-internal.h (pspace_smob): New typedef.
7043 (psscm_pspace_smob_pretty_printers): Declare.
7044 (psscm_pspace_smob_from_pspace): Declare.
7045 (psscm_scm_from_pspace): Declare.
7046 * guile/guile.c (initialize_gdb_module): Call
7047 gdbscm_initialize_pspaces.
7048 * guile/lib/gdb.scm: Export progspace symbols.
7049 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7050 support.
7051 (append-pretty-printer!): Ditto.
7052 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7053 Implement.
7054 * guile/scm-progspace.c: New file.
7055
7056 2014-06-03 Alan Modra <amodra@gmail.com>
7057
7058 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7059 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7060
7061 2014-06-02 Doug Evans <dje@google.com>
7062
7063 Add support for skeletonless type units.
7064 * dwarf2read.c (struct dwarf2_per_objfile): New member
7065 n_allocated_type_units.
7066 (struct dwarf2_per_objfile) <tu_stats>: New member
7067 nr_all_type_units_reallocs.
7068 (create_signatured_type_table_from_index): Initialize
7069 n_allocated_type_units
7070 (create_all_type_units): Ditto.
7071 (add_type_unit): Move up in file. New arg slot.
7072 All callers updated. Increase space for all_type_units more
7073 efficiently.
7074 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7075 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7076 (lookup_dwp_signatured_type): Ditto.
7077 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7078 All callers updated.
7079 (build_type_psymtabs_1): Leave type_unit_groups as
7080 NULL if no TUs present.
7081 (print_tu_stats): New function.
7082 (process_skeletonless_type_unit): New function.
7083 (process_dwo_file_for_skeletonless_type_units): New
7084 function.
7085 (process_skeletonless_type_units): New function.
7086 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7087 Call print tu_stats if debugging enabled.
7088
7089 2014-06-02 Pedro Alves <palves@redhat.com>
7090
7091 * breakpoint.c (build_target_command_list): Don't build a command
7092 list if we have any duplicate location that isn't a dprintf.
7093
7094 2014-06-02 Pedro Alves <palves@redhat.com>
7095
7096 * breakpoint.c (dprintf_breakpoint_hit): New function.
7097 (initialize_breakpoint_ops): Install it as dprintf's
7098 breakpoint_hit method.
7099
7100 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7101
7102 * source.c (substitute_path_rule_matches): Simplify using
7103 filename_ncmp instead of FILENAME_CMP.
7104
7105 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7106
7107 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7108
7109 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7110
7111 * configure.ac: When Guile is available, check for the
7112 availability of 'scm_new_smob'.
7113 * configure, config.h.in: Regenerate.
7114 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7115 function.
7116
7117 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7118
7119 * frame.c (struct frame_info): Add stop_string field.
7120 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7121 (get_prev_frame_always): Old content moved into
7122 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7123 TRY_CATCH, handle MEMORY_ERROR exceptions.
7124 (frame_stop_reason_string): New function definition.
7125 * frame.h (unwind_stop_reason_to_string): Extend comment to
7126 mention frame_stop_reason_string.
7127 (frame_stop_reason_string): New function declaration.
7128 * stack.c (frame_info): Switch to frame_stop_reason_string.
7129 (backtrace_command_1): Switch to frame_stop_reason_string.
7130 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7131 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7132 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7133
7134 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7135
7136 * frame.c (frame_stop_reason_string): Rename to ...
7137 (unwind_stop_reason_to_string): this.
7138 * frame.h (frame_stop_reason_string): Rename to ...
7139 (unwind_stop_reason_to_string): this.
7140 * stack.c (frame_info): Update call to frame_stop_reason_string.
7141 (backtrace_command_1): Likewise.
7142 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7143 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7144
7145 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7146
7147 * frame.c (remove_prev_frame): New function.
7148 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7149 remove_prev_frame.
7150
7151 2014-05-29 Pedro Alves <palves@redhat.com>
7152
7153 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7154 and make it const. When a single-step decays to a continue,
7155 clear 'step', not 'hw_step'. Pass whether the caller wanted
7156 to step to user_visible_resume_ptid, not what we ask the
7157 target to do.
7158
7159 2014-05-29 Pedro Alves <palves@redhat.com>
7160
7161 * infrun.c (process_event_stop_test, handle_step_into_function)
7162 (handle_step_into_function_backward): Adjust.
7163 Don't set the even thread's stop_step and call stop_waiting before
7164 calling end_stepping_range. Instead do that ...
7165 (end_stepping_range): ... here. Take an ecs pointer parameter.
7166
7167 2014-05-29 Pedro Alves <palves@redhat.com>
7168
7169 * infrun.c (stop_stepping): Rename to ...
7170 (stop_waiting): ... this.
7171 (proceed): Update comment.
7172 (process_event_stop_test, handle_inferior_event)
7173 (handle_signal_stop, handle_step_into_function)
7174 (handle_step_into_function_backward): Update.
7175
7176 2014-05-29 Pedro Alves <palves@redhat.com>
7177
7178 * infcall.c (run_inferior_call): Don't check whether the current
7179 thread is running after the proceed call.
7180
7181 2014-05-29 Pedro Alves <palves@redhat.com>
7182 Tom Tromey <tromey@redhat.com>
7183
7184 * NEWS: Mention "maint set target-async", "set mi-async", and that
7185 background execution commands are now always available.
7186 * target.h (target_async_permitted): Update comment.
7187 * target.c (target_async_permitted, target_async_permitted_1):
7188 Default to 1.
7189 (set_target_async_command): Rename to ...
7190 (maint_set_target_async_command): ... this.
7191 (show_target_async_command): Rename to ...
7192 (maint_show_target_async_command): ... this.
7193 (_initialize_target): Adjust.
7194 * infcmd.c (prepare_execution_command): Make extern.
7195 * inferior.h (prepare_execution_command): Declare.
7196 * infrun.c (set_observer_mode): Leave target async alone.
7197 * mi/mi-interp.c (mi_interpreter_init): Install
7198 mi_on_sync_execution_done as sync_execution_done observer.
7199 (mi_on_sync_execution_done): New function.
7200 (mi_execute_command_input_handler): Don't print the prompt if we
7201 just started a synchronous command with an async target.
7202 (mi_on_resume): Check sync_execution before printing prompt.
7203 * mi/mi-main.h (mi_async_p): Declare.
7204 * mi/mi-main.c: Include gdbcmd.h.
7205 (mi_async_p): New function.
7206 (mi_async, mi_async_1): New globals.
7207 (set_mi_async_command, show_mi_async_command, mi_async): New
7208 functions.
7209 (exec_continue): Call prepare_execution_command.
7210 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7211 (mi_execute_async_cli_command): Use mi_async_p.
7212 (_initialize_mi_main): Install "set mi-async". Make
7213 "target-async" a deprecated alias.
7214
7215 2014-05-29 Pedro Alves <palves@redhat.com>
7216
7217 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7218 (_initialize_cli_interp): Adjust.
7219 * event-loop.c: Include "observer.h".
7220 (start_event_loop): Notify 'command_error' observers instead of
7221 calling display_gdb_prompt. Remove FIXME comment.
7222 * event-top.c (display_gdb_prompt): Remove call into the
7223 interpreters.
7224 * inf-loop.c: Include "observer.h".
7225 (inferior_event_handler): Notify 'command_error' observers instead
7226 of calling display_gdb_prompt.
7227 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7228 observers instead of calling display_gdb_prompt.
7229 * interps.c (interp_set): Don't call display_gdb_prompt.
7230 (current_interp_display_prompt_p): Delete.
7231 * interps.h (interp_prompt_p): Delete declaration.
7232 (interp_prompt_p_ftype): Delete.
7233 (struct interp_procs) <prompt_proc_p>: Delete field.
7234 (current_interp_display_prompt_p): Delete declaration.
7235 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7236 (_initialize_mi_interp): Adjust.
7237 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7238 'command_error' observers.
7239 (tui_on_sync_execution_done, tui_on_command_error): New
7240 functions.
7241 (tui_display_prompt_p): Delete.
7242 (_initialize_tui_interp): Adjust.
7243
7244 2014-05-29 Pedro Alves <palves@redhat.com>
7245
7246 PR gdb/13860
7247 * cli/cli-interp.c: Include infrun.h and observer.h.
7248 (cli_uiout, cli_interp): New globals.
7249 (cli_on_signal_received, cli_on_end_stepping_range)
7250 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7251 functions.
7252 (cli_interpreter_init): Install them as 'end_stepping_range',
7253 'signal_received' 'signal_exited', 'exited' and 'no_history'
7254 observers.
7255 (_initialize_cli_interp): Remove cli_interp local.
7256 * infrun.c (handle_inferior_event): Call the several stop reason
7257 observers instead of printing the stop reason directly.
7258 (end_stepping_range): New function.
7259 (print_end_stepping_range_reason, print_signal_exited_reason)
7260 (print_exited_reason, print_signal_received_reason)
7261 (print_no_history_reason): Make static, and add an uiout
7262 parameter. Print to that instead of to CURRENT_UIOUT.
7263 * infrun.h (print_end_stepping_range_reason)
7264 (print_signal_exited_reason, print_exited_reason)
7265 (print_signal_received_reason print_no_history_reason): New
7266 declarations.
7267 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7268 'mi_uiout'.
7269 <cli_uiout>: New field.
7270 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7271 uiout for CLI output. Install 'signal_received',
7272 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7273 observers.
7274 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7275 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7276 (mi_on_no_history): New functions.
7277 (ui_out_free_cleanup): Delete function.
7278 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7279 instead use the one already stored in the MI interpreter data.
7280 (mi_ui_out): Adjust.
7281 * tui/tui-interp.c: Include infrun.h and observer.h.
7282 (tui_interp): New global.
7283 (tui_on_signal_received, tui_on_end_stepping_range)
7284 (tui_on_signal_exited, tui_on_exited)
7285 (tui_on_no_history): New functions.
7286 (tui_init): Install them as 'end_stepping_range',
7287 'signal_received' 'signal_exited', 'exited' and 'no_history'
7288 observers.
7289 (_initialize_tui_interp): Delete tui_interp local.
7290
7291 2014-05-29 Pedro Alves <palves@redhat.com>
7292
7293 PR gdb/15713
7294 * linux-nat.c (linux_nat_resume_callback): Rename the second
7295 parameter to 'except'. Skip LP if it points to EXCEPT.
7296 (linux_nat_resume): Don't mark the event lwp as not stopped
7297 before resuming sibling lwps. Instead ask
7298 linux_nat_resume_callback to skip the event lwp. Mark it as not
7299 stopped after actually resuming it.
7300 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7301 resuming it.
7302 (wait_lwp): Mark the lwp as stopped here.
7303 (stop_wait_callback): Mark the lwp as not stopped right after
7304 resuming it. Don't mark lwps as stopped here.
7305 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7306 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7307
7308 2014-05-29 Pedro Alves <palves@redhat.com>
7309
7310 PR PR15693
7311 * infrun.c (resume): Determine how much to resume depending on
7312 whether the caller wanted a step, not whether we can hardware step
7313 the target. Mark all threads that we intend to run as running,
7314 unless we're calling an inferior function.
7315 (normal_stop): If the thread is running an infcall, don't finish
7316 thread state.
7317 * target.c (target_resume): Don't mark threads as running here.
7318
7319 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7320
7321 * serial.c (_initialize_serial): Remove support for
7322 the "set remotebaud" and "show remotebaud" commands.
7323 * NEWS: Add entry documenting the removal of that command.
7324
7325 2014-05-28 Yao Qi <yao@codesourcery.com>
7326
7327 * charset.c: Fix typo in comments.
7328
7329 2014-05-27 Gary Benson <gbenson@redhat.com>
7330
7331 * utils.c (internal_vproblem): Prompt for a bug report.
7332
7333 2014-05-26 Andy Wingo <wingo@igalia.com>
7334
7335 * guile/scm-arch.c (arscm_mark_arch_smob):
7336 * guile/scm-block.c (bkscm_mark_block_smob)
7337 (bkscm_mark_block_syms_progress_smob):
7338 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7339 * guile/scm-exception.c (exscm_mark_exception_smob):
7340 * guile/scm-frame.c (frscm_mark_frame_smob):
7341 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7342 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7343 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7344 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7345 (ppscm_mark_pretty_printer_worker_smob):
7346 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7347 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7348 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7349 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7350 mark functions.
7351 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7352 function.
7353
7354 2014-05-26 Andy Wingo <wingo@igalia.com>
7355 Doug Evans <xdje42@gmail.com>
7356
7357 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7358 empty_base_class. All uses updated.
7359 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7360 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7361 Adapt all callers.
7362 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7363 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7364 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7365 (gdbscm_gsmob_has_property_p, add_property_name)
7366 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7367 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7368 (gdb-object-has-property?, gdb-object-properties): Remove.
7369 (gdb-object-kind): Renamed from gsmob-kind.
7370
7371 2014-05-26 Andy Wingo <wingo@igalia.com>
7372
7373 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7374 * configure: Regenerate.
7375
7376 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7377
7378 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7379
7380 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7381
7382 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7383 (replay_memory_access_read_only, replay_memory_access_read_write)
7384 (replay_memory_access_types, replay_memory_access)
7385 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7386 (cmd_set_record_btrace, cmd_show_record_btrace)
7387 (cmd_show_replay_memory_access): New.
7388 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7389 (record_btrace_remove_breakpoint): Replace
7390 record_btrace_allow_memory_access with replay_memory_access.
7391 (_initialize_record_btrace): Add commands.
7392 * NEWS: Announce it.
7393
7394 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7395
7396 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7397
7398 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7399
7400 * MAINTAINERS (Write After Approval): Move self back from
7401 paper trail.
7402
7403 2014-05-22 Pedro Alves <palves@redhat.com>
7404
7405 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7406 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7407 (disable_randomization, enum exec_direction_kind)
7408 (execution_direction, stop_registers, start_remote)
7409 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7410 (wait_for_inferior, normal_stop, get_last_target_status)
7411 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7412 (insert_step_resume_breakpoint_at_sal)
7413 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7414 (set_step_info, print_stop_event, signal_stop_state)
7415 (signal_print_state, signal_pass_state, signal_stop_update)
7416 (signal_print_update, signal_pass_update)
7417 (update_signals_program_target, clear_exit_convenience_vars)
7418 (displaced_step_dump_bytes, update_observer_mode)
7419 (signal_catch_update, gdb_signal_from_command): Move
7420 declarations ...
7421 * infrun.h: ... to this new file.
7422 * amd64-tdep.c: Include infrun.h.
7423 * annotate.c: Include infrun.h.
7424 * arch-utils.c: Include infrun.h.
7425 * arm-linux-tdep.c: Include infrun.h.
7426 * arm-tdep.c: Include infrun.h.
7427 * break-catch-sig.c: Include infrun.h.
7428 * breakpoint.c: Include infrun.h.
7429 * common/agent.c: Include infrun.h instead of inferior.h.
7430 * corelow.c: Include infrun.h.
7431 * event-top.c: Include infrun.h.
7432 * go32-nat.c: Include infrun.h.
7433 * i386-tdep.c: Include infrun.h.
7434 * inf-loop.c: Include infrun.h.
7435 * infcall.c: Include infrun.h.
7436 * infcmd.c: Include infrun.h.
7437 * infrun.c: Include infrun.h.
7438 * linux-fork.c: Include infrun.h.
7439 * linux-nat.c: Include infrun.h.
7440 * linux-thread-db.c: Include infrun.h.
7441 * monitor.c: Include infrun.h.
7442 * nto-tdep.c: Include infrun.h.
7443 * procfs.c: Include infrun.h.
7444 * record-btrace.c: Include infrun.h.
7445 * record-full.c: Include infrun.h.
7446 * remote-m32r-sdi.c: Include infrun.h.
7447 * remote-mips.c: Include infrun.h.
7448 * remote-notif.c: Include infrun.h.
7449 * remote-sim.c: Include infrun.h.
7450 * remote.c: Include infrun.h.
7451 * reverse.c: Include infrun.h.
7452 * rs6000-tdep.c: Include infrun.h.
7453 * s390-linux-tdep.c: Include infrun.h.
7454 * solib-irix.c: Include infrun.h.
7455 * solib-osf.c: Include infrun.h.
7456 * solib-svr4.c: Include infrun.h.
7457 * target.c: Include infrun.h.
7458 * top.c: Include infrun.h.
7459 * windows-nat.c: Include infrun.h.
7460 * mi/mi-interp.c: Include infrun.h.
7461 * mi/mi-main.c: Include infrun.h.
7462 * python/py-threadevent.c: Include infrun.h.
7463
7464 2014-05-22 Pedro Alves <palves@redhat.com>
7465
7466 * infrun.c (handle_inferior_event): Store the exit code for
7467 --return-child-result here, instead of ...
7468 (print_exited_reason): ... here.
7469
7470 2014-05-21 Pedro Alves <palves@redhat.com>
7471
7472 PR gdb/13860
7473 * gdbthread.h (struct thread_control_state): New field
7474 `command_interp'.
7475 * infrun.c (follow_fork): Copy the new thread control field to the
7476 child fork thread.
7477 (clear_proceed_status_thread): Clear the new thread control field.
7478 (proceed): Set the new thread control field.
7479 * interps.h (command_interp): Declare.
7480 * interps.c (command_interpreter): New global.
7481 (command_interp): New function.
7482 (interp_exec): Set `command_interpreter' while here.
7483 * cli-out.c (cli_uiout_dtor): New function.
7484 (cli_ui_out_impl): Install it.
7485 * mi/mi-interp.c: Include cli-out.h.
7486 (mi_cmd_interpreter_exec): Add comment.
7487 (restore_current_uiout_cleanup): New function.
7488 (ui_out_free_cleanup): New function.
7489 (mi_on_normal_stop): If finishing an execution command started by
7490 a CLI command, or any kind of breakpoint-like event triggered,
7491 print the stop event to the output (CLI) stream.
7492 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7493
7494 2014-05-21 Pedro Alves <palves@redhat.com>
7495
7496 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7497 current source line having changed.
7498 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7499 * infrun.c (normal_stop): Adjust call to
7500 set_current_sal_from_frame.
7501 * source.c (clear_lines_listed_range): New function.
7502 (set_current_source_symtab_and_line, identify_source_line): Clear
7503 the lines listed range.
7504 (line_info): Handle the first "info line" after the current source
7505 line having changed.
7506 * stack.c (print_stack_frame): Remove center handling.
7507 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7508 center sal.line.
7509
7510 2014-05-21 Pedro Alves <palves@redhat.com>
7511
7512 * inf-child.c (inf_child_mourn_inferior): New function.
7513 * inf-child.h (inf_child_mourn_inferior): New declaration.
7514 * darwin-nat.c (darwin_mourn_inferior): Use
7515 inf_child_mourn_inferior.
7516 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7517 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7518 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7519 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7520 * windows-nat.c (windows_mourn_inferior): Likewise.
7521
7522 2014-05-21 Doug Evans <xdje42@gmail.com>
7523
7524 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7525
7526 2014-05-21 Doug Evans <xdje42@gmail.com>
7527
7528 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7529 (gdbscm_out_of_range_error): Ditto.
7530 (gdbscm_memory_error): Ditto.
7531 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7532 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7533 (gdbscm_out_of_range_error): Update.
7534 (gdbscm_memory_error): Update.
7535 (gdbscm_scm_to_target_string_unsafe): Delete.
7536
7537 2014-05-21 Pedro Alves <palves@redhat.com>
7538
7539 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7540 globals.
7541 (inf_child_open_target): New function.
7542 (inf_child_open): Use inf_child_open_target to push the target
7543 instead of erroring out.
7544 (inf_child_disconnect, inf_child_close)
7545 (inf_child_maybe_unpush_target): New functions.
7546 (inf_child_target): Install inf_child_disconnect and
7547 inf_child_close. Store a pointer to the returned object.
7548 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7549 declarations.
7550 * target.c (auto_connect_native_target): New global.
7551 (show_default_run_target): New function.
7552 (find_default_run_target): Return NULL if automatically connecting
7553 to the native target is disabled.
7554 (_initialize_target): Install set/show auto-connect-native-target.
7555 * NEWS: Mention "set auto-connect-native-target", and "target
7556 native".
7557 * linux-nat.c (super_close): New global.
7558 (linux_nat_close): Call super_close.
7559 (linux_nat_add_target): Store a pointer to the base class's
7560 to_close method.
7561 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7562 inf_child_maybe_unpush.
7563 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7564 already pushed.
7565 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7566 the inferior. Use inf_child_maybe_unpush_target.
7567 (inf_ttrace_attach): Don't push the target if it is already
7568 pushed.
7569 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7570 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7571 after mourning the inferior. Use inf_child_maybe_unpush_target.
7572 (darwin_attach_pid): Don't push the target if it is already
7573 pushed.
7574 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7575 mourning the inferior. Use inf_child_maybe_unpush_target.
7576 (gnu_detach): Use inf_child_maybe_unpush_target.
7577 * go32-nat.c (go32_create_inferior): Don't push the target if it
7578 is already pushed.
7579 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7580 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7581 (procfs_open): Rename to ...
7582 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7583 comments. Can target_preopen before changing node. Call
7584 inf_child_open_target to push the target explicitly.
7585 (procfs_attach): Don't push the target if it is already pushed.
7586 (procfs_detach): Use inf_child_maybe_unpush_target.
7587 (procfs_create_inferior): Don't push the target if it is already
7588 pushed.
7589 (nto_native_ops): New global.
7590 (procfs_open): Reimplement.
7591 (procfs_native_open): New function.
7592 (init_procfs_targets): Install procfs_native_open as to_open of
7593 "target native". Store a pointer to the "native" target in
7594 nto_native_ops.
7595 * procfs.c (procfs_attach): Don't push the target if it is already
7596 pushed.
7597 (procfs_detach): Use inf_child_maybe_unpush_target.
7598 (procfs_mourn_inferior): Only unpush the target after mourning the
7599 inferior. Use inf_child_maybe_unpush_target.
7600 (procfs_init_inferior): Don't push the target if it is already
7601 pushed.
7602 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7603 if it is already pushed.
7604
7605 2014-05-21 Pedro Alves <palves@redhat.com>
7606
7607 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7608 and "procfs" targets are now called "native" instead.
7609
7610 2014-05-21 Pedro Alves <palves@redhat.com>
7611
7612 * go32-nat.c (go32_open): Delete.
7613 (go32_target): Don't override the to_open method.
7614
7615 2014-05-21 Pedro Alves <palves@redhat.com>
7616
7617 * nto-procfs.c (procfs_can_run): New function.
7618 (nto_procfs_ops): New global.
7619 (init_procfs_targets): New, based on procfs_target. Install
7620 "target native" in addition to "target procfs".
7621 (_initialize_procfs): Call init_procfs_targets instead of adding
7622 the target here.
7623
7624 2014-05-21 Pedro Alves <palves@redhat.com>
7625
7626 * windows-nat.c (windows_target): Don't override to_shortname,
7627 to_longname or to_doc.
7628
7629 2014-05-21 Pedro Alves <palves@redhat.com>
7630
7631 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7632 to_doc.
7633
7634 2014-05-21 Pedro Alves <palves@redhat.com>
7635
7636 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7637 to_shortname, to_longname or to_doc.
7638
7639 2014-05-21 Pedro Alves <palves@redhat.com>
7640
7641 * go32-nat.c (go32_target): Don't override to_shortname,
7642 to_longname or to_doc.
7643
7644 2014-05-21 Pedro Alves <palves@redhat.com>
7645
7646 * inf-child.c (inf_child_open): Remove mention of "child".
7647 (inf_child_target): Rename target to "native" instead of "child".
7648
7649 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7650
7651 * Makefile.in (SFILES): Delete "regset.c".
7652 (COMMON_OBS): Delete "regset.o".
7653 * regset.c: Remove.
7654 * regset.h (regset_alloc): Delete prototype.
7655
7656 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7657
7658 * sparc-linux-tdep.c (sparc32_linux_gregset)
7659 (sparc32_linux_fpregset): New static regset structures.
7660 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7661 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7662 'fpregset' fields.
7663 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7664 (sparc64_linux_fpregset): New static regset structures.
7665 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7666 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7667 New static regset structures.
7668 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7669 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7670 New static regset structures.
7671 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7672 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7673 New static regset structures.
7674 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7675 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7676 New static regset structures.
7677 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7678
7679 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7680
7681 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7682 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7683 register maps ("regmaps") from "*regset" to "*regmap". Do this
7684 for all regmap types and variables.
7685 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7686 (sparc32_linux_supply_core_gregset)
7687 (sparc32_linux_collect_core_gregset)
7688 (sparc32_linux_supply_core_fpregset)
7689 (sparc32_linux_collect_core_fpregset): Likewise.
7690 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7691 (sparc_gregmap, sparc_fpregmap): ... these.
7692 (sparc_supply_gregset, sparc_collect_gregset)
7693 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7694 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7695 (_initialize_sparc_nat): Rename regmaps.
7696 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7697 (sparc_gregmap, sparc_fpregmap): ... these.
7698 (sparc_supply_gregset, sparc_collect_gregset)
7699 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7700 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7701 Rename macros to...
7702 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7703 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7704 Likewise.
7705 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7706 Rename to...
7707 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7708 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7709 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7710 regmaps.
7711 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7712 (sparc32_bsd_fpregset): Rename to...
7713 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7714 (sparc32_bsd_fpregmap): ... these.
7715 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7716 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7717 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7718 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7719 (struct sparc_gregmap, struct sparc_fpregmap)
7720 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7721 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7722 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7723 (sparc32_supply_regset, sparc32_collect_gregset)
7724 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7725 prototypes.
7726 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7727 (sparc64_linux_ptrace_gregmap): ... this.
7728 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7729 (_initialize_sparc64_linux_nat): Rename regmaps.
7730 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7731 (sparc64_linux_core_gregmap): ... this.
7732 (sparc64_linux_supply_core_gregset)
7733 (sparc64_linux_collect_core_gregset)
7734 (sparc64_linux_supply_core_fpregset)
7735 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7736 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7737 (sparc64_sol2_fpregset): Rename to...
7738 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7739 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7740 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7741 regmaps.
7742 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7743 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7744 (sparc64_bsd_fpregset): Rename to...
7745 (struct sparc_gregmap, sparc64_sol2_gregmap)
7746 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7747 (sparc64_bsd_fpregmap): ... these.
7748 (sparc64_supply_gregset, sparc64_collect_gregset)
7749 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7750 prototypes.
7751 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7752 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7753 (sparc64fbsd_gregmap): ... this.
7754 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7755 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7756 Rename regmaps.
7757 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7758 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7759 (sparc64nbsd_collect_fpregset): Likewise.
7760 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7761 (sparc64nbsd_gregmap): ... this.
7762 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7763 regmaps.
7764 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7765 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7766 (sparc64obsd_gregmap): ... this.
7767 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7768 regmaps.
7769 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7770 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7771 (sparc32nbsd_gregmap): ... this.
7772 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7773 regmaps.
7774
7775 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7776
7777 * score-tdep.c (score7_linux_gregset): New static regset
7778 structure.
7779 (score7_linux_regset_from_core_section): Remove dynamic regset
7780 allocation.
7781 (score_gdbarch_init): Drop allocation of tdep structure.
7782 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7783
7784 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7785
7786 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7787 regset structures.
7788 (am33_regset_from_core_section): Remove dynamic regset
7789 allocations.
7790
7791 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7792
7793 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7794 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7795 structures.
7796 (mips_linux_regset_from_core_section): Remove dynamic regset
7797 allocations.
7798 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7799 'gregset64', 'fpregset', and 'fpregset64'.
7800 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7801 deleted tdep fields.
7802
7803 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7804
7805 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7806 regset structures.
7807 (amd64_regset_from_core_section): Remove dynamic regset
7808 allocations.
7809 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7810 structure.
7811 (amd64obsd_regset_from_core_section): Remove dynamic regset
7812 allocation.
7813 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7814 Likewise.
7815 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7816 x86-common regset supply function.
7817 * i386-tdep.c (i386_collect_gregset): Make static.
7818 (i386_gregset): New global regset structure.
7819 (i386_fpregset, i386_xstateregset): New static regset structures.
7820 (i386_regset_from_core_section): Remove dynamic regset
7821 allocations.
7822 (i386_gdbarch_init): Remove initialization of tdep fields
7823 'gregset', 'fpregset', and 'xstateregset'.
7824 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7825 'fpregset', and 'xstateregset'.
7826 (i386_collect_gregset): Remove prototype.
7827 (i386_gregset): New declaration.
7828 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7829 structure.
7830 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7831 allocation.
7832
7833 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7834
7835 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7836 (arm_linux_vfpregset): New static regset structures.
7837 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7838 regset structures.
7839 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7840 and 'vfpregset' fields.
7841
7842 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7843
7844 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7845 (aarch64_linux_fpregset): New static regset structures.
7846 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7847 of regset structures.
7848 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7849 'fpregset' fields.
7850
7851 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7852
7853 * regset.h (struct regset): Remove gdbarch field.
7854 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7855 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7856 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7857 Likewise.
7858 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7859 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7860 (ppc32_linux_vsxregset): Likewise.
7861 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7862 via the regcache instead of the regset.
7863 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7864 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7865 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7866 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7867 Likewise.
7868
7869 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7870
7871 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7872 Constify structures.
7873 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7874 (alphanbsd_aout_gregset): Likewise.
7875 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7876 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7877 Likewise.
7878 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7879 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7880 Likewise.
7881 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7882 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7883 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7884 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7885 * m88k-tdep.c (m88k_gregset): Likewise.
7886 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7887 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7888 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7889 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7890 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7891 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7892 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7893 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7894 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7895 Likewise.
7896 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7897 * sh-tdep.h (sh_corefile_gregset): Likewise.
7898 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7899 * vax-tdep.c (vax_gregset): Likewise.
7900
7901 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7902
7903 Fix TLS access for -static -pthread.
7904 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7905 (try_thread_db_load_1): Initialize it.
7906 (thread_db_get_thread_local_address): Call it if LM is zero.
7907 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7908 * target.h (struct target_ops) (to_get_thread_local_address): Add
7909 load_module_addr comment.
7910
7911 2014-05-21 Pedro Alves <palves@redhat.com>
7912
7913 * dcache.c (dcache_read_memory_partial): If reading the cache line
7914 fails, fallback to reading just the memory the caller wanted.
7915
7916 2014-05-20 Doug Evans <dje@google.com>
7917
7918 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7919 instead of get_current_arch.
7920
7921 2014-05-20 Pedro Alves <palves@redhat.com>
7922
7923 * NEWS: Mention that compare-sections now works with all targets.
7924
7925 * remote.c (PACKET_qCRC): New enum value.
7926 (remote_verify_memory): Don't send qCRC if the target has no
7927 execution. Use packet_support/packet_ok. If the target doesn't
7928 support the qCRC packet, fallback to a deep memory copy.
7929 (compare_sections_command): Say "target image" instead of "remote
7930 executable".
7931 (_initialize_remote): Add PACKET_qCRC to the list of config
7932 packets that have no associated command. Extend comment.
7933 * target.c (simple_verify_memory, default_verify_memory): New
7934 function.
7935 * target.h (struct target_ops) <to_verify_memory>: Default to
7936 default_verify_memory.
7937 (simple_verify_memory): New declaration.
7938 * target-delegates.c: Regenerate.
7939
7940 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7941
7942 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7943
7944 2014-05-20 Hui Zhu <hui@codesourcery.com>
7945 Yao Qi <yao@codesourcery.com>
7946
7947 PR backtrace/16558
7948 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7949 and change address of sp and pc.
7950
7951 2014-05-19 Tom Tromey <tromey@redhat.com>
7952
7953 * gdbtypes.c (rank_function): Use XNEWVEC.
7954 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7955
7956 2014-05-19 Doug Evans <dje@google.com>
7957
7958 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7959 build_type_unit_groups and moved closer to only caller. Remove
7960 arguments. All references updated. Remove outdated .gdb_index
7961 comment.
7962 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7963 build_type_psymtabs_1.
7964
7965 2014-05-19 Doug Evans <dje@google.com>
7966
7967 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7968 n_type_unit_groups, all_type_unit_groups. All uses removed.
7969 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7970 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7971 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7972 (add_type_unit_group_to_table): Delete.
7973
7974 2014-05-19 Doug Evans <dje@google.com>
7975
7976 * eval.c (evaluate_subexp_standard): Add some comments.
7977
7978 2014-05-17 Doug Evans <xdje42@gmail.com>
7979
7980 * progspace.c (remove_program_space): Delete, unused.
7981 * progspace.h (remove_program_space): Ditto.
7982
7983 2014-05-17 Doug Evans <xdje42@gmail.com>
7984
7985 * inferior.c (prune_inferiors): Fix comment.
7986 (remove_inferior_command): Call prune_program_spaces.
7987
7988 2014-05-16 Doug Evans <dje@google.com>
7989
7990 New command line option -D.
7991 * NEWS: Mention it.
7992 * main.c (set_gdb_data_directory): New function.
7993 (captured_main): Recognize -D. Flag error for --data-directory "".
7994 Call set_gdb_data_directory.
7995 (print_gdb_help): Print --data-directory, -D.
7996 * main.h (set_gdb_data_directory): Declare.
7997 * top.c (staged_gdb_datadir): New static global.
7998 (set_gdb_datadir): Call set_gdb_data_directory
7999 (show_gdb_datadir): New function.
8000 (init_main): Update init of data-directory parameter.
8001
8002 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8003
8004 Import the "dirfd" gnulib module.
8005 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8006 * gnulib/aclocal.m4: Update.
8007 * gnulib/config.in: Update.
8008 * gnulib/configure: Update.
8009 * gnulib/import/Makefile.am: Update.
8010 * gnulib/import/Makefile.in: Update.
8011 * gnulib/import/dirfd.c: New.
8012 * gnulib/import/m4/dirfd.m4: New.
8013 * gnulib/import/m4/gnulib-cache.m4: Update.
8014 * gnulib/import/m4/gnulib-comp.m4: Update.
8015
8016 2014-05-16 Pierre Muller <muller@sourceware.org>
8017 Yao Qi <yao@codesourcery.com>
8018
8019 * valprint.c (print_wchar): Move the code on checking whether
8020 W is a printable wide char to the default branch of switch
8021 statement below. Call wchar_printable instead of gdb_iswprint.
8022
8023 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8024
8025 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8026 ldr.w and ldrd instructions.
8027
8028 2014-05-15 Doug Evans <dje@google.com>
8029
8030 * dwarf2read.c (read_structure_type): Delete outdated comments.
8031
8032 2014-05-14 Tom Tromey <tromey@redhat.com>
8033
8034 * macrocmd.c (print_macro_definition): Reindent.
8035
8036 2014-05-13 Doug Evans <xdje42@gmail.com>
8037
8038 * python/py-cmd.c (cmdpy_completer): Add comment.
8039 (completers): Make const.
8040
8041 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8042
8043 * infrun.c (resume): Remove should_resume (unused). Move up
8044 declaration of resume_ptid.
8045
8046 2014-05-13 Tom Tromey <tromey@redhat.com>
8047
8048 * language.h (unop_type_check): Remove.
8049 (binop_type_check): Don't declare.
8050
8051 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8052
8053 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8054 call to regcache_raw_collect.
8055
8056 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8057
8058 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8059 mi_console->quote as the quoting character.
8060
8061 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8062
8063 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8064
8065 2014-04-29 Tom Tromey <tromey@redhat.com>
8066
8067 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8068 "show debug varobj".
8069
8070 2014-05-07 Kyle McMartin <kyle@redhat.com>
8071
8072 Pushed by Joel Brobecker <brobecker@adacore.com>.
8073 * aarch64-tdep.c (aarch64_software_single_step): New function.
8074 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8075 with aarch64_software_single_step.
8076
8077 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8078
8079 GDB 7.7.1 released.
8080
8081 2014-05-05 Keith Seitz <keiths@redhat.com>
8082
8083 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8084 variable or history value is successfully parsed.
8085
8086 2014-05-05 Yao Qi <yao@codesourcery.com>
8087 Pedro Alves <palves@redhat.com>
8088
8089 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8090 address of blocks that intersects the requested range. Trim
8091 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8092 sections.
8093 * ctf.c (ctf_xfer_partial): Likewise.
8094
8095 2014-05-05 Yao Qi <yao@codesourcery.com>
8096
8097 * printcmd.c (display_command): Remove the check to
8098 target_has_execution.
8099
8100 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8101
8102 * ppcobsd-nat.c: Include "obsd-nat.h".
8103 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8104 add_target.
8105 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8106
8107 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8108
8109 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8110 and 16-bit signed and unsigned arguments. Update comment.
8111 (stap_parse_probe_arguments): Extend code to handle such
8112 arguments. Use warning instead of complaint to notify about
8113 unrecognized bitness.
8114
8115 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8116
8117 PR breakpoints/16889
8118 * stap-probe.c (stap_parse_probe_arguments): Simplify
8119 check for non-prefixed probes (i.e., probes whose
8120 arguments do not start with "N@"). Always set the
8121 argument type to a sane value.
8122
8123 2014-05-01 David Taylor <dtaylor@emc.com>
8124
8125 * remote.c (compare_sections_command): Add -r option to compare
8126 all loadable read-only sections.
8127
8128 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8129
8130 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8131 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8132 Update all callers.
8133 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8134 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8135 Remove unused CORE_ADDR argument. Update all callers.
8136
8137 2014-04-29 Pedro Alves <palves@redhat.com>
8138
8139 * remote.c (struct packet_config) <detect>: Extend comment.
8140 (add_packet_config_cmd): Don't set the config's detect or support
8141 fields here.
8142 (init_all_packet_configs): Also initialize the config's 'detect'
8143 field.
8144 (reset_all_packet_configs_support): New function.
8145 (remote_open_1): Call reset_all_packet_configs_support instead of
8146 init_all_packet_configs.
8147 (_initialize_remote): Initialize all packet configs. Assert that
8148 all packets have an associated command, except a few known
8149 outliers.
8150
8151 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8152
8153 * dwarf2read.c (read_subrange_type): Handle dynamic
8154 DW_AT_lower_bound attributes.
8155
8156 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8157
8158 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8159 dynamic bounds before computing its upper bound.
8160 (ada_discrete_type_low_bound): Same as above with the lower bound.
8161
8162 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8163
8164 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8165 range types. Adjust the array handling implementation to
8166 take advantage of this change.
8167 (resolve_dynamic_range): New function, mostly extracted from
8168 resolve_dynamic_bounds.
8169 (resolve_dynamic_array): New function, mostly extracted from
8170 resolve_dynamic_bounds.
8171 (resolve_dynamic_bounds): Delete.
8172 (resolve_dynamic_type): Reimplement. Add handling of
8173 TYPE_CODE_RANGE types.
8174
8175 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8176
8177 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8178 handling of parallel ___XA types.
8179
8180 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8181
8182 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8183 unnecessary second call to static_unwrap_type.
8184
8185 2014-04-27 Hui Zhu <hui@codesourcery.com>
8186
8187 * stack.c (print_frame_info): Call do_gdb_disassembly with
8188 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8189
8190 2014-04-26 Doug Evans <xdje42@gmail.com>
8191
8192 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8193
8194 2014-04-25 Pedro Alves <palves@redhat.com>
8195
8196 PR server/16255
8197 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8198 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8199 and newline from built string.
8200 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8201 (linux_ptrace_attach_fail_reason): ... this.
8202 * linux-nat.c (linux_nat_attach): Adjust to use
8203 linux_ptrace_attach_fail_reason.
8204
8205 2014-04-25 Pedro Alves <palves@redhat.com>
8206
8207 * remote.c (struct remote_state): Remove multi_process_aware,
8208 non_stop_aware, cond_tracepoints, cond_breakpoints,
8209 breakpoint_commands, fast_tracepoints, static_tracepoints,
8210 install_in_trace, disconnected_tracing,
8211 enable_disable_tracepoints, string_tracing, and
8212 augmented_libraries_svr4_read fields.
8213 (remote_multi_process_p): Move further below in the file.
8214 (struct packet_config): Add comments.
8215 (update_packet_config): Delete function.
8216 (show_packet_config_cmd): Use packet_config_support.
8217 (add_packet_config_cmd): Use NULL as set callback.
8218 (packet_ok): "set remote foo-packet"-style commands no longer
8219 change config->supported -- adjust.
8220 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8221 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8222 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8223 (PACKET_QNonStop, PACKET_multiprocess_feature)
8224 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8225 (PACKET_DisconnectedTracing_feature)
8226 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8227 (set_remote_protocol_packet_cmd): Delete function.
8228 (packet_config_support, packet_support): New functions.
8229 (set_remote_protocol_Z_packet_cmd): Don't call
8230 update_packet_config.
8231 (remote_query_attached, remote_pass_signals)
8232 (remote_program_signals, remote_threads_info)
8233 (remote_threads_extra_info, remote_start_remote): Use
8234 packet_support.
8235 (remote_start_remote): Use packet_config_support and
8236 packet_support.
8237 (init_all_packet_configs): Set all packets to unknown support,
8238 instead of calling update_packet_config.
8239 (remote_check_symbols): Use packet_support.
8240 (remote_supported_packet): Unconditionally set the packet config's
8241 support status.
8242 (remote_multi_process_feature, remote_non_stop_feature)
8243 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8244 (remote_breakpoint_commands_feature)
8245 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8246 (remote_install_in_trace_feature)
8247 (remote_disconnected_tracing_feature)
8248 (remote_enable_disable_tracepoint_feature)
8249 (remote_string_tracing_feature)
8250 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8251 (remote_protocol_features): Adjust to use remote_supported_packet
8252 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8253 "ConditionalTracepoints", "ConditionalBreakpoints",
8254 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8255 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8256 "EnableDisableTracepoints", and "tracenz".
8257 (remote_query_supported): Use packet_support.
8258 (remote_open_1): Adjust.
8259 (extended_remote_attach_1): Use packet_support. Switch on the
8260 result of packet_ok instead of checking whether the packet ended
8261 up disabled.
8262 (remote_vcont_resume): Use packet_support.
8263 (remote_resume, remote_stop_ns, fetch_register_using_p)
8264 (remote_prepare_to_store, store_register_using_P)
8265 (check_binary_download, remote_write_bytes): Use packet_support.
8266 (remote_vkill): Use packet_support. Switch on the result of
8267 packet_ok instead of checking whether the packet ended up
8268 disabled.
8269 (extended_remote_supports_disable_randomization): Use
8270 packet_support.
8271 (extended_remote_run): Switch on the result of packet_ok instead
8272 of checking whether the packet ended up disabled.
8273 (remote_insert_breakpoint, remote_remove_breakpoint)
8274 (remote_insert_watchpoint, remote_remove_watchpoint)
8275 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8276 packet_support.
8277 (remote_search_memory): Use packet_config_support.
8278 (remote_get_thread_local_address, remote_get_tib_address)
8279 (remote_hostio_send_command, remote_can_execute_reverse): Use
8280 packet_support.
8281 (remote_supports_cond_tracepoints)
8282 (remote_supports_cond_breakpoints)
8283 (remote_supports_fast_tracepoints)
8284 (remote_supports_static_tracepoints)
8285 (remote_supports_install_in_trace)
8286 (remote_supports_enable_disable_tracepoint)
8287 (remote_supports_string_tracing)
8288 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8289 the packet config says the feature is enabled or disabled.
8290 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8291 (remote_get_trace_status): Use packet_support.
8292 (remote_set_disconnected_tracing): Adjust to check whether the
8293 feature is enabled with packet_support.
8294 (remote_set_trace_buffer_size, remote_use_agent)
8295 (remote_can_use_agent, remote_supports_btrace): Use
8296 packet_support.
8297 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8298 Use packet_config_support.
8299 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8300 the packet config says the feature is enabled or disabled.
8301 (set_range_stepping): Use packet_support.
8302
8303 2014-04-25 Tom Tromey <tromey@redhat.com>
8304
8305 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8306 argument.
8307
8308 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8309
8310 * NEWS: Mention support for C99 variable length arrays.
8311
8312 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8313
8314 * ada-lang.c (standard_exc): Expand introductory comment.
8315
8316 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8317 Walfred Tedeschi <walfred.tedeschi@intel.com>
8318
8319 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8320 AVX512 registers.
8321 (amd64_linux_read_description): Add code to handle AVX512 xstate
8322 mask and return respective tdesc.
8323 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8324 and features/i386/x32-avx512-linux.c.
8325 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8326 (amd64_linux_core_read_description): Add code to handle AVX512
8327 xstate mask and return respective tdesc.
8328 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8329 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8330 calculation.
8331 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8332 (tdesc_amd64_avx512_linux): New prototype.
8333 (tdesc_x32_avx512_linux): Likewise.
8334 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8335 features/i386/x32-avx512.c.
8336 (amd64_ymm_avx512_names): New register names for pseudo
8337 registers YMM16-31.
8338 (amd64_ymmh_avx512_names): New register names for raw registers
8339 YMMH16-31.
8340 (amd64_k_names): New register names for K registers.
8341 (amd64_zmmh_names): New register names for ZMM raw registers.
8342 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8343 (amd64_xmm_avx512_names): New register names for XMM16-31
8344 registers.
8345 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8346 registers.
8347 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8348 if feature is present.
8349 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8350 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8351 (AMD64_NUM_REGS): Adjust to new number of registers.
8352 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8353 registers supplied via XSTATE by AVX512 registers.
8354 (i386_linux_read_description): Add case for AVX512.
8355 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8356 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8357 (i386_linux_core_read_description): Add case for AVX512.
8358 (i386_linux_init_abi): Install supported register note section
8359 for AVX512.
8360 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8361 AVX512.
8362 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8363 registers to be number of zmm7h + 1.
8364 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8365 * i386-tdep.c: Include features/i386/i386-avx512.c.
8366 (i386_zmm_names): Add ZMM pseudo register names array.
8367 (i386_zmmh_names): Add ZMM raw register names array.
8368 (i386_k_names): Add K raw register names array.
8369 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8370 registers. AVX512 has 16 more ZMM registers than there are YMM
8371 registers.
8372 (i386_zmmh_regnum_p): Add function to look up register number of
8373 ZMM raw registers.
8374 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8375 (i386_k_regnum_p): Likewise for K raw registers.
8376 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8377 registers added by AVX512.
8378 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8379 registers added by AVX512.
8380 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8381 added by AVX512.
8382 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8383 (i386_pseudo_register_name): Add ZMM pseudo registers.
8384 (i386_zmm_type): Construct and return vector registers type for ZMM
8385 registers.
8386 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8387 ZMM0-31 pseudo registers and K registers.
8388 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8389 and YMM16-31 registers from register cache.
8390 (i386_pseudo_register_write): Add code to write K, ZMM and
8391 YMM16-31 registers.
8392 (i386_register_reggroup_p): Add code to include/exclude AVX512
8393 registers in/from respective register groups.
8394 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8395 registers if feature is present in xcr0.
8396 (i386_gdbarch_init): Add code to initialize AVX512 feature
8397 variables in tdep structure, wire in pseudo registers and call
8398 initialize_tdesc_i386_avx512.
8399 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8400 variables.
8401 (i386_regnum): Add AVX512 registers.
8402 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8403 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8404 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8405 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8406 512 bits wide.
8407 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8408 (i386_ymm_avx512_regnum_p): Likewise.
8409 (i386_k_regnum_p): Likewise.
8410 (i386_zmm_regnum_p): Likewise.
8411 (i386_zmmh_regnum_p): Likewise.
8412 * i387-tdep.c : Update year in copyright notice.
8413 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8414 XSAVE buffer.
8415 (XSAVE_YMM_AVX512_ADDR): New macro.
8416 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8417 XSAVE buffer.
8418 (XSAVE_XMM_AVX512_ADDR): New macro.
8419 (xsave_avx512_k_offset): New table for K register offsets in
8420 XSAVE buffer.
8421 (XSAVE_AVX512_K_ADDR): New macro.
8422 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8423 in XSAVE buffer.
8424 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8425 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8426 buffer.
8427 (i387_collect_xsave): Add code to collect AVX512 registers from
8428 XSAVE buffer.
8429 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8430 of XMM16-31 registers.
8431 (I387_NUM_K_REGS): New define for number of K registers.
8432 (I387_K0_REGNUM): New define for K0 register number.
8433 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8434 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8435 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8436 registers.
8437 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8438 (I387_XMM16_REGNUM): New define for XMM16 register number.
8439 (I387_YMM0_REGNUM): New define for YMM0 register number.
8440 (I387_KEND_REGNUM): New define for last K register number.
8441 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8442 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8443 number.
8444 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8445 number.
8446 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8447 size.
8448 * features/Makefile: Add AVX512 related files.
8449 * features/i386/32bit-avx512.xml: New file.
8450 * features/i386/64bit-avx512.xml: Likewise.
8451 * features/i386/amd64-avx512-linux.c: Likewise.
8452 * features/i386/amd64-avx512-linux.xml: Likewise.
8453 * features/i386/amd64-avx512.c: Likewise.
8454 * features/i386/amd64-avx512.xml: Likewise.
8455 * features/i386/i386-avx512-linux.c: Likewise.
8456 * features/i386/i386-avx512-linux.xml: Likewise.
8457 * features/i386/i386-avx512.c: Likewise.
8458 * features/i386/i386-avx512.xml: Likewise.
8459 * features/i386/x32-avx512-linux.c: Likewise.
8460 * features/i386/x32-avx512-linux.xml: Likewise.
8461 * features/i386/x32-avx512.c: Likewise.
8462 * features/i386/x32-avx512.xml: Likewise.
8463 * regformats/i386/amd64-avx512-linux.dat: New file.
8464 * regformats/i386/amd64-avx512.dat: Likewise.
8465 * regformats/i386/i386-avx512-linux.dat: Likewise.
8466 * regformats/i386/i386-avx512.dat: Likewise.
8467 * regformats/i386/x32-avx512-linux.dat: Likewise.
8468 * regformats/i386/x32-avx512.dat: Likewise.
8469 * NEWS: Add note about new support for AVX512.
8470
8471
8472 2014-04-23 Pedro Alves <palves@redhat.com>
8473
8474 * breakpoint.c (insert_bp_location): Tolerate errors if the
8475 breakpoint is set in a user-loaded objfile.
8476 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8477 location is marked shlib_disabled. If the breakpoint is set in a
8478 user-loaded objfile is a GDB-side memory breakpoint, validate it
8479 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8480 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8481 flag.
8482 * mem-break.c (memory_validate_breakpoint): New function.
8483 * objfiles.c (userloaded_objfile_contains_address_p): New
8484 function.
8485 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8486 * target.h (memory_validate_breakpoint): New declaration.
8487
8488 2014-04-23 Pedro Alves <palves@redhat.com>
8489
8490 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8491 the breakpoint is set in a shared library, only suppress
8492 errors for software breakpoints, not hardware breakpoints.
8493
8494 2014-04-22 Pedro Alves <palves@redhat.com>
8495
8496 * infrun.c (schedlock_applies): New function, factored out from
8497 find_thread_needs_step_over.
8498 (find_thread_needs_step_over): Use it.
8499 (switch_back_to_stepped_thread): Always clear trap_expected if the
8500 step over is finished. Return early if scheduler locking applies.
8501 Look for the stepping thread and a potential step-over thread with
8502 a single loop.
8503 (currently_stepping_or_nexting_callback): Delete.
8504
8505 2014-04-22 Nick Clifton <nickc@redhat.com>
8506
8507 * NEWS: Mention that ARM sim now supports tracing.
8508
8509 2014-04-22 Yao Qi <yao@codesourcery.com>
8510
8511 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8512 to ...
8513 * tracefile.c (tracefile_fetch_registers): ... it. New
8514 function.
8515 * tracefile.h (tracefile_fetch_registers): Declare.
8516 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8517 tracefile_fetch_registers.
8518
8519 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8520
8521 PR gdb/14018
8522 * windows-nat.c (thread_rec): Don't display a warning when
8523 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8524 fails for any reason, set th->suspended to -1, so that we don't
8525 try to resume such a thread. Also, don't return NULL in these
8526 cases, to avoid completely ruin the session due to "PC register is
8527 not available" error.
8528 (do_windows_fetch_inferior_registers): Check errors in
8529 GetThreadContext call.
8530 (windows_continue): Accept an additional argument KILLED; if not
8531 zero, ignore errors in the SetThreadContext call, since the
8532 inferior was killed and is shutting down.
8533 (windows_resume, get_windows_debug_event)
8534 (windows_create_inferior, windows_mourn_inferior)
8535 (windows_kill_inferior): All callers of windows_continue changed
8536 to adjust to its new calling sequence.
8537
8538 2014-04-19 Yao Qi <yao@codesourcery.com>
8539
8540 * ctf.c (ctf_open): Call post_create_inferior.
8541
8542 2014-04-19 Yao Qi <yao@codesourcery.com>
8543
8544 * ctf.c (handle_id): New static variable.
8545 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8546 value. Get the declaration of event "register" and get length
8547 of field "contents".
8548
8549 2014-04-19 Yao Qi <yao@codesourcery.com>
8550
8551 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8552
8553 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8554
8555 * valops.c (oload_method_static): Remove unnecessary argument
8556 METHOD. Update all callers.
8557
8558 2014-04-18 Pedro alves <palves@redhat.com>
8559 Tom Tromey <tromey@redhat.com>
8560
8561 PR backtrace/15558
8562 * frame.c (get_prev_frame_1): Rename to ...
8563 (get_prev_frame_always): ... this, and make extern. Adjust.
8564 (skip_artificial_frames): Use get_prev_frame_always.
8565 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8566 (get_frame_unwind_stop_reason): Adjust to rename.
8567 * frame.h (get_prev_frame_always): Declare.
8568 * inline-frame.c: Include frame.h.
8569 (inline_frame_this_id): Use get_prev_frame_always.
8570
8571 2014-04-18 Tristan Gingold <gingold@adacore.com>
8572
8573 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8574 code by using bfd_mach_o_get_base_address.
8575
8576 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8577
8578 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8579 (spu_ax_pseudo_register_collect): New function.
8580 (spu_ax_pseudo_register_push_stack): Likewise.
8581 (spu_dwarf_reg_to_regnum): Likewise.
8582 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8583
8584 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8585
8586 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8587 Replace FRAME argument with FRAME_ID.
8588 * gdbarch.c, gdbarch.h: Regenerate.
8589 * findvar.c (default_value_from_register): Add GDBARCH argument;
8590 replace FRAME by FRAME_ID. No longer call get_frame_id.
8591 (value_from_register): Update call to gdbarch_value_from_register.
8592 * value.h (default_value_from_register): Update prototype.
8593 * s390-linux-tdep.c (s390_value_from_register): Update interface
8594 and call to default_value_from_register.
8595 * spu-tdep.c (spu_value_from_register): Likewise.
8596
8597 * findvar.c (address_from_register): Remove TYPE argument.
8598 Do not call value_from_register; use gdbarch_value_from_register
8599 with null_frame_id instead.
8600 * value.h (address_from_register): Update prototype.
8601 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8602 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8603 address_from_register interface change.
8604
8605 2014-04-17 Yao Qi <yao@codesourcery.com>
8606
8607 * gdbtypes.h: Update comments to link to types and macros'
8608 definitions.
8609
8610 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8611
8612 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8613
8614 2014-04-16 Keith Seitz <keiths@redhat.com>
8615
8616 PR gdb/15827
8617 * dwarf2read.c (skip_one_die): Check that all relative-offset
8618 sibling DIEs fall within range of the current reader's buffer.
8619 (read_partial_die): Likewise.
8620
8621 2014-04-16 Keith Seitz <keiths@redhat.com>
8622
8623 PR c++/16597
8624 * cp-namespace.c (lookup_symbol_file): If the type name of
8625 `this' is NULL, return immediately.
8626
8627 2014-04-14 Keith Seitz <keiths@redhat.com>
8628
8629 PR c++/16253
8630 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8631 from symbol_matches_domain in symtab.c. All local callers
8632 of symbol_matches_domain updated.
8633 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8634 search STRUCT_DOMAIN.
8635 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8636 independently. standard_lookup will do that automatically.
8637 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8638 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8639 (cp_lookup_symbol_in_namespace): Likewise.
8640 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8641 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8642 may return a STRUCT_DOMAIN match.
8643 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8644 * cp-support.c: Include language.h.
8645 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8646 VAR_DOMAIN.
8647 * psymtab.c (match_partial_symbol): Compare the requested
8648 domain with the symbol's domain directly.
8649 (lookup_partial_symbol): Likewise.
8650 * symtab.c (lookup_symbol_in_language): Explain when/why
8651 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8652 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8653 appropriate languages.
8654 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8655 and moved to ada-lang.c
8656 (lookup_block_symbol): Explain that this function only returns
8657 symbol matching the requested DOMAIN.
8658 Compare the requested domain with the symbol's domain directly.
8659 (iterate_over_symbols): Compare the requested domain with the
8660 symbol's domain directly.
8661 * symtab.h (symbol_matches_domain): Remove.
8662
8663 2014-04-14 Tom Tromey <tromey@redhat.com>
8664
8665 PR c++/15246:
8666 * c-exp.y (type_aggregate_p): New function.
8667 (qualified_name, classify_inner_name): Use it.
8668 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8669 and TYPE_TARGET_TYPE of an enum type.
8670 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8671 an enum type.
8672 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8673 handle TYPE_DECLARED_CLASS.
8674 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8675 types.
8676 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8677 * valops.c (enum_constant_from_type): New function.
8678 (value_aggregate_elt): Use it.
8679 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8680 TYPE_CODE_ENUM.
8681
8682 2014-04-14 Tom Tromey <tromey@redhat.com>
8683
8684 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8685 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8686 const.
8687 * value.h (value_aggregate_elt): Update.
8688
8689 2014-04-14 Tom Tromey <tromey@redhat.com>
8690
8691 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8692
8693 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8694
8695 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8696 (evaluate_subexp_standard): Pass noside argument.
8697 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8698 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8699 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8700 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8701 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8702
8703 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8704
8705 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8706 points to a constant blob.
8707
8708 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8709
8710 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8711 property and store it as the high bound and flag the range accordingly.
8712 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8713 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8714 * gdbtypes.h (enum range_flags): New enum.
8715 (struct range_bounds): Add flags member.
8716
8717 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8718
8719 * c-typeprint.c (c_type_print_varspec_suffix): Added
8720 check for not yet resolved high bound. If unresolved, print
8721 "variable length" string to the console instead of random
8722 length.
8723
8724 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8725
8726 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8727 value.
8728 (ada_template_to_fixed_record_type_1): Likewise.
8729 (ada_to_fixed_type_1): Likewise.
8730 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8731 (cp_print_value): Likewise.
8732 * d-valprint.c (dynamic_array_type): Likewise.
8733 * findvar.c (address_of_variable): Likewise.
8734 * jv-valprint.c (java_value_print): Likewise.
8735 * valops.c (value_ind): Likewise.
8736 * value.c (coerce_ref): Likewise.
8737
8738 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8739
8740 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8741 value and retrieve the dynamic type size.
8742
8743 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8744
8745 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8746 passed to sizeof is dynamic evaluate the argument to compute the length.
8747
8748 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8749 Joel Brobecker <brobecker@adacore.com>
8750
8751 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8752 (dwarf2_evaluate_property): New function.
8753 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8754 * dwarf2read.c (attr_to_dynamic_prop): New function.
8755 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8756 attribute.
8757 * gdbtypes.c: Include dwarf2loc.h.
8758 (is_dynamic_type): New function.
8759 (resolve_dynamic_type): New function.
8760 (resolve_dynamic_bounds): New function.
8761 (get_type_length): New function.
8762 (check_typedef): Use get_type_length to compute type length.
8763 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8764 (TYPE_LOW_BOUND_KIND): New macro.
8765 (is_dynamic_type): New function prototype.
8766 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8767 to resolve dynamic properties of the type. Update comment.
8768 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8769
8770 2014-04-14 Richard Henderson <rth@redhat.com>
8771
8772 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8773
8774 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8775 Doug Evans <xdje42@gmail.com>
8776
8777 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8778 dereference TYPE_CODE_REF values.
8779
8780 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8781
8782 Revert the following changes due to regressions:
8783
8784 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8785 (dwarf2_evaluate_property): New function.
8786 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8787 * dwarf2read.c (attr_to_dynamic_prop): New function.
8788 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8789 attribute.
8790 * gdbtypes.c: Include dwarf2loc.h.
8791 (is_dynamic_type): New function.
8792 (resolve_dynamic_type): New function.
8793 (resolve_dynamic_bounds): New function.
8794 (get_type_length): New function.
8795 (check_typedef): Use get_type_length to compute type length.
8796 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8797 (TYPE_LOW_BOUND_KIND): New macro.
8798 (is_dynamic_type): New function prototype.
8799 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8800 to resolve dynamic properties of the type. Update comment.
8801 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8802
8803 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8804 passed to sizeof is dynamic evaluate the argument to compute the length.
8805
8806 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8807 value and retrieve the dynamic type size.
8808
8809 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8810 (ada_template_to_fixed_record_type_1): Likewise.
8811 (ada_to_fixed_type_1): Likewise.
8812 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8813 (cp_print_value): Likewise.
8814 * d-valprint.c (dynamic_array_type): Likewise.
8815 * eval.c (evaluate_subexp_with_coercion): Likewise.
8816 * findvar.c (address_of_variable): Likewise.
8817 * jv-valprint.c (java_value_print): Likewise.
8818 * valops.c (value_ind): Likewise.
8819 * value.c (coerce_ref): Likewise.
8820
8821 * c-typeprint.c (c_type_print_varspec_suffix): Added
8822 check for not yet resolved high bound. If unresolved, print
8823 "variable length" string to the console instead of random
8824 length.
8825
8826 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8827 property and store it as the high bound and flag the range accordingly.
8828 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8829 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8830 * gdbtypes.h (enum range_flags): New enum.
8831 (struct range_bounds): Add flags member.
8832
8833 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8834 points to a constant blob.
8835
8836 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8837 (evaluate_subexp_standard): Pass noside argument.
8838 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8839 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8840 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8841 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8842 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8843
8844 2014-04-11 Keith Seitz <keiths@redhat.com>
8845
8846 PR c++/16675
8847 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8848 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8849 reference types.
8850
8851 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8852
8853 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8854 (evaluate_subexp_standard): Pass noside argument.
8855 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8856 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8857 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8858 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8859 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8860
8861 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8862
8863 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8864 points to a constant blob.
8865
8866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8867
8868 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8869 property and store it as the high bound and flag the range accordingly.
8870 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8871 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8872 * gdbtypes.h (enum range_flags): New enum.
8873 (struct range_bounds): Add flags member.
8874
8875 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8876
8877 * c-typeprint.c (c_type_print_varspec_suffix): Added
8878 check for not yet resolved high bound. If unresolved, print
8879 "variable length" string to the console instead of random
8880 length.
8881
8882 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8883
8884 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8885 (ada_template_to_fixed_record_type_1): Likewise.
8886 (ada_to_fixed_type_1): Likewise.
8887 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8888 (cp_print_value): Likewise.
8889 * d-valprint.c (dynamic_array_type): Likewise.
8890 * eval.c (evaluate_subexp_with_coercion): Likewise.
8891 * findvar.c (address_of_variable): Likewise.
8892 * jv-valprint.c (java_value_print): Likewise.
8893 * valops.c (value_ind): Likewise.
8894 * value.c (coerce_ref): Likewise.
8895
8896 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8897
8898 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8899 value and retrieve the dynamic type size.
8900
8901 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8902
8903 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8904 passed to sizeof is dynamic evaluate the argument to compute the length.
8905
8906 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8907
8908 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8909 (dwarf2_evaluate_property): New function.
8910 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8911 * dwarf2read.c (attr_to_dynamic_prop): New function.
8912 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8913 attribute.
8914 * gdbtypes.c: Include dwarf2loc.h.
8915 (is_dynamic_type): New function.
8916 (resolve_dynamic_type): New function.
8917 (resolve_dynamic_bounds): New function.
8918 (get_type_length): New function.
8919 (check_typedef): Use get_type_length to compute type length.
8920 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8921 (TYPE_LOW_BOUND_KIND): New macro.
8922 (is_dynamic_type): New function prototype.
8923 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8924 to resolve dynamic properties of the type. Update comment.
8925 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8926
8927 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8928
8929 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8930 declaring high/low bounds and change uses accordingly. Call
8931 create_range_type instead of create_static_range_type.
8932 * gdbtypes.c (create_range_type): New function.
8933 (create_range_type): Convert bounds into struct bound_prop and pass
8934 them to create_range_type.
8935 * gdbtypes.h (struct bound_prop): New struct.
8936 (create_range_type): New function prototype.
8937 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8938 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8939 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8940 part of the bound.
8941 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8942
8943 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8944
8945 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8946 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8947 * ada-lang.c: All uses of create_range_type updated.
8948 * coffread.c: All uses of create_range_type updated.
8949 * dwarf2read.c: All uses of create_range_type updated.
8950 * f-exp.y: All uses of create_range_type updated.
8951 * m2-valprint.c: All uses of create_range_type updated.
8952 * mdebugread.c: All uses of create_range_type updated.
8953 * stabsread.c: All uses of create_range_type updated.
8954 * valops.c: All uses of create_range_type updated.
8955 * valprint.c: All uses of create_range_type updated.
8956
8957 2014-04-10 Pedro Alves <palves@redhat.com>
8958
8959 * breakpoint.c (single_step_breakpoints)
8960 (single_step_gdbarch): Move up in the file.
8961 (one_breakpoint_xfer_memory): New function, factored out from ...
8962 (breakpoint_xfer_memory): ... here. Also process single-step
8963 breakpoints.
8964
8965 2014-04-09 Tristan Gingold <gingold@adacore.com>
8966
8967 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8968 comments.
8969 (darwin_decode_exception_message): Free port only after use.
8970
8971 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8972
8973 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8974 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8975 when setting the size of call_length.
8976
8977 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8978
8979 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8980 dereference TYPE_CODE_REF values.
8981
8982 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8983
8984 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8985 end of warning message.
8986
8987 2014-04-03 Doug Evans <dje@google.com>
8988
8989 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8990 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8991
8992 2014-04-02 Alan Modra <amodra@gmail.com>
8993
8994 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8995 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8996 (struct symbol_file_add_from_memory_args): Add size field.
8997 (find_vdso_size): New function.
8998 (add_vsyscall_page): Attempt to find vdso size.
8999
9000 2014-04-01 Doug Evans <dje@google.com>
9001
9002 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9003
9004 2014-04-01 Tristan Gingold <gingold@adacore.com>
9005
9006 * darwin-nat.c (darwin_encode_reply): Add prototype.
9007 (darwin_decode_exception_message): Reply to unknown inferiors.
9008 (darwin_decode_message): Handle message by id. Ignore message
9009 to unknown inferior.
9010 (darwin_wait): Discard unknown messages, add debug trace.
9011
9012 2014-03-31 Doug Evans <dje@google.com>
9013
9014 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9015 comp_dir_string.
9016
9017 2014-03-31 Doug Evans <dje@google.com>
9018
9019 New option "set print symbol-loading".
9020 * NEWS: Mention it.
9021 * solib.c (solib_read_symbols): Only print symbol loading messages
9022 if requested.
9023 (solib_add): If symbol loading is in "brief" mode, notify user
9024 symbols are being loaded.
9025 (reload_shared_libraries_1): Ditto.
9026 * symfile.c (print_symbol_loading_off): New static global.
9027 (print_symbol_loading_brief): New static global.
9028 (print_symbol_loading_full): New static global.
9029 (print_symbol_loading_enums): New static global.
9030 (print_symbol_loading): New static global.
9031 (print_symbol_loading_p): New function.
9032 (symbol_file_add_with_addrs): Only print symbol loading messages
9033 if requested.
9034 (_initialize_symfile): Register "print symbol-loading" set/show
9035 command.
9036 * symfile.h (print_symbol_loading_p): Declare.
9037
9038 2014-03-30 Doug Evans <xdje42@gmail.com>
9039
9040 * infrun.c (set_last_target_status): New function.
9041 (handle_inferior_event): Call it.
9042
9043 2014-03-30 Doug Evans <xdje42@gmail.com>
9044
9045 * inferior.h (enum stop_kind): Improve comment.
9046
9047 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9048
9049 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9050 a reference, strip the reference layer before calling
9051 the lang_ops value_has_mutated callback.
9052
9053 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9054
9055 Remove some globals from our parser.
9056 * language.c (unk_lang_parser): Add "struct parser_state"
9057 argument.
9058 * language.h (struct language_defn) <la_parser>: Likewise.
9059 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9060 (initialize_expout): Add "struct parser_state" argument.
9061 Rewrite function to use the parser state.
9062 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9063 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9064 write_exp_elt_longcst, write_exp_elt_dblcst,
9065 write_exp_elt_decfloatcst, write_exp_elt_type,
9066 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9067 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9068 write_dollar_variable): Likewise.
9069 (parse_exp_in_context_1): Use parser state.
9070 (insert_type_address_space): Add "struct parser_state" argument.
9071 Use parser state.
9072 (increase_expout_size): New function.
9073 * parser-defs.h: Forward declare "struct language_defn" and
9074 "struct parser_state".
9075 (expout, expout_size, expout_ptr): Remove extern declarations.
9076 (parse_gdbarch, parse_language): Rewrite macro declarations to
9077 accept the parser state.
9078 (struct parser_state): New struct.
9079 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9080 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9081 write_exp_elt_decfloatcst, write_exp_elt_type,
9082 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9083 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9084 write_exp_msymbol, write_dollar_variable,
9085 mark_struct_expression, insert_type_address_space): Add "struct
9086 parser_state" argument.
9087 (increase_expout_size): New function.
9088 * utils.c (do_clear_parser_state): New function.
9089 (make_cleanup_clear_parser_state): Likewise.
9090 * utils.h (make_cleanup_clear_parser_state): New function
9091 prototype.
9092 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9093 Update calls to write_exp* in order to pass the parser state.
9094 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9095 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9096 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9097 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9098 * stap-probe.c (stap_parse_register_operand): Likewise.
9099 (stap_parse_single_operand): Likewise.
9100 (stap_parse_argument_1): Likewise.
9101 (stap_parse_argument): Use parser state.
9102 * stap-probe.h: Include "parser-defs.h".
9103 (struct stap_parse_info) <pstate>: New field.
9104 * c-exp.y (parse_type): Rewrite to use parser state.
9105 (yyparse): Redefine to c_parse_internal.
9106 (pstate): New global variable.
9107 (parse_number): Add "struct parser_state" argument.
9108 (write_destructor_name): Likewise.
9109 (type_exp): Update calls to write_exp* and similars in order to
9110 use parser state.
9111 (exp1, exp, variable, qualified_name, space_identifier,
9112 typename, typebase): Likewise.
9113 (write_destructor_name, parse_number, lex_one_token,
9114 classify_name, classify_inner_name, c_parse): Add "struct
9115 parser_state" argument. Update function to use parser state.
9116 * c-lang.h: Forward declare "struct parser_state".
9117 (c_parse): Add "struct parser_state" argument.
9118 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9119 (yyparse): Redefine macro to ada_parse_internal.
9120 (pstate): New variable.
9121 (write_int, write_object_renaming, write_var_or_type,
9122 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9123 type_int, type_long, type_long_long, type_float, type_double,
9124 type_long_double, type_char, type_boolean, type_system_address):
9125 Add "struct parser_state" argument.
9126 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9127 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9128 var_or_type, aggregate, aggregate_component_list,
9129 positional_list, others, component_group,
9130 component_associations): Update calls to write_exp* and similar
9131 functions in order to use parser state.
9132 (ada_parse, write_var_from_sym, write_int,
9133 write_exp_op_with_string, write_object_renaming,
9134 find_primitive_type, write_selectors, write_ambiguous_var,
9135 write_var_or_type, write_name_assoc, type_int, type_long,
9136 type_long_long, type_float, type_double, type_long_double,
9137 type_char, type_boolean, type_system_address): Add "struct
9138 parser_state" argument. Adjust function to use parser state.
9139 * ada-lang.c (parse): Likewise.
9140 * ada-lang.h: Forward declare "struct parser_state".
9141 (ada_parse): Add "struct parser_state" argument.
9142 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9143 calls to both functions.
9144 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9145 parser state.
9146 (yyparse): Redefine macro to f_parse_internal.
9147 (pstate): New variable.
9148 (parse_number): Add "struct parser_state" argument.
9149 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9150 and similars in order to use parser state.
9151 (parse_number): Adjust code to use parser state.
9152 (yylex): Likewise.
9153 (f_parse): New function.
9154 * f-lang.h: Forward declare "struct parser_state".
9155 (f_parse): Add "struct parser_state" argument.
9156 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9157 parser state.
9158 (yyparse): Redefine macro for java_parse_internal.
9159 (pstate): New variable.
9160 (push_expression_name, push_expression_name, insert_exp): Add
9161 "struct parser_state" argument.
9162 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9163 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9164 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9165 PostIncrementExpression, PostDecrementExpression,
9166 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9167 UnaryExpressionNotPlusMinus, CastExpression,
9168 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9169 RelationalExpression, EqualityExpression, AndExpression,
9170 ExclusiveOrExpression, InclusiveOrExpression,
9171 ConditionalAndExpression, ConditionalOrExpression,
9172 ConditionalExpression, Assignment, LeftHandSide): Update
9173 calls to write_exp* and similars in order to use parser state.
9174 (parse_number): Ajust code to use parser state.
9175 (yylex): Likewise.
9176 (java_parse): New function.
9177 (push_variable): Add "struct parser_state" argument. Adjust
9178 code to user parser state.
9179 (push_fieldnames, push_qualified_expression_name,
9180 push_expression_name, insert_exp): Likewise.
9181 * jv-lang.h: Forward declare "struct parser_state".
9182 (java_parse): Add "struct parser_state" argument.
9183 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9184 parser state.
9185 (yyparse): Redefine macro to m2_parse_internal.
9186 (pstate): New variable.
9187 (type_exp, exp, fblock, variable, type): Update calls to
9188 write_exp* and similars to use parser state.
9189 (yylex): Likewise.
9190 (m2_parse): New function.
9191 * m2-lang.h: Forward declare "struct parser_state".
9192 (m2_parse): Add "struct parser_state" argument.
9193 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9194 * objc-lang.h: Forward declare "struct parser_state".
9195 (end_msglist): Add "struct parser_state" argument.
9196 * p-exp.y (parse_type): Rewrite macro to use parser state.
9197 (yyparse): Redefine macro to pascal_parse_internal.
9198 (pstate): New variable.
9199 (parse_number): Add "struct parser_state" argument.
9200 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9201 write_exp* and similars in order to use parser state.
9202 (parse_number, yylex): Adjust code to use parser state.
9203 (pascal_parse): New function.
9204 * p-lang.h: Forward declare "struct parser_state".
9205 (pascal_parse): Add "struct parser_state" argument.
9206 * go-exp.y (parse_type): Rewrite macro to use parser state.
9207 (yyparse): Redefine macro to go_parse_internal.
9208 (pstate): New variable.
9209 (parse_number): Add "struct parser_state" argument.
9210 (type_exp, exp1, exp, variable, type): Update calls to
9211 write_exp* and similars in order to use parser state.
9212 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9213 to use parser state.
9214 (go_parse): Likewise.
9215 * go-lang.h: Forward declare "struct parser_state".
9216 (go_parse): Add "struct parser_state" argument.
9217
9218 2014-03-27 Doug Evans <dje@google.com>
9219
9220 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9221
9222 2014-03-27 Doug Evans <dje@google.com>
9223
9224 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9225 Remove argument abbrev_section. All callers updated.
9226
9227 2014-03-27 Doug Evans <dje@google.com>
9228
9229 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9230 addr_base, ranges_base.
9231
9232 2014-03-26 Keith Seitz <keiths@redhat.com>
9233
9234 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9235 types, not VAR_DOMAIN.
9236
9237 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9238
9239 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9240 "ra" registers.
9241 * features/nios2-linux.c: Regenerated.
9242 * features/nios2.c: Regenerated.
9243
9244 2014-03-25 Pedro Alves <palves@redhat.com>
9245
9246 * cli/cli-script.c (script_from_file): Force the interpreter to
9247 sync mode.
9248
9249 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9250
9251 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9252 small stack allocation.
9253
9254 2014-03-24 Tristan Gingold <gingold@adacore.com>
9255
9256 * darwin-nat.c (exc_server): Remove unused prototype.
9257 (darwin_dump_message): Correctly display data on x86_64.
9258 (darwin_encode_reply): Fix style.
9259 Add comments and fix indentation.
9260
9261 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9262
9263 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9264
9265 2014-03-22 Doug Evans <xdje42@gmail.com>
9266
9267 * infcmd.c: Whitespace fixes.
9268 (interrupt_command): Merge two function comments into one.
9269
9270 2014-03-22 Doug Evans <xdje42@gmail.com>
9271
9272 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9273 All uses updated.
9274
9275 2014-03-22 Yao Qi <yao@codesourcery.com>
9276
9277 * remote.c (target_read_live_memory): Remove.
9278 (memory_xfer_live_readonly_partial): Rename it to
9279 remote_xfer_live_readonly_partial. Remove argument 'object'.
9280 All callers updated. Call remote_read_bytes_1
9281 instead of target_read_live_memory.
9282 * tracepoint.c (set_traceframe_number): Remove.
9283 (make_cleanup_restore_traceframe_number): Likewise .
9284 * tracepoint.h (set_traceframe_number): Remove declaration.
9285 (make_cleanup_restore_traceframe_number): Likewise.
9286
9287 2014-03-22 Yao Qi <yao@codesourcery.com>
9288
9289 * remote.c (remote_read_bytes): Move code on reading from the
9290 remote stub to ...
9291 (remote_read_bytes_1): ... here. New function.
9292
9293 2014-03-22 Yao Qi <yao@codesourcery.com>
9294
9295 * ctf.c (ctf_xfer_partial): Check the return value of
9296 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9297 return TARGET_XFER_UNAVAILABLE.
9298 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9299 * target.c (target_read_live_memory): Move it to remote.c.
9300 (memory_xfer_live_readonly_partial): Likewise.
9301 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9302 * remote.c (target_read_live_memory): Moved from target.c.
9303 (memory_xfer_live_readonly_partial): Likewise.
9304 (remote_read_bytes): Factored out from
9305 memory_xfer_partial_1.
9306
9307 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9308
9309 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9310 NULL pointer.
9311
9312 2014-03-21 Pedro Alves <palves@redhat.com>
9313
9314 * infrun.c (normal_stop): Extend comment.
9315
9316 2014-03-21 Hui Zhu <hui@codesourcery.com>
9317 Pedro Alves <palves@redhat.com>
9318
9319 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9320 static buffer.
9321 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9322 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9323 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9324
9325 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9326
9327 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9328 `z' formatted output modifier.
9329
9330 2014-03-20 Tom Tromey <tromey@redhat.com>
9331 Sergio Durigan Junior <sergiodj@redhat.com>
9332
9333 * probe.c (parse_probes): Turn assert into an ordinary error.
9334 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9335 exceptions when parsing probes. Rearrange the code for clarity.
9336
9337 2014-03-20 Tom Tromey <tromey@redhat.com>
9338
9339 PR gdb/14135
9340 * top.c (execute_command): Only dispatch events if the command
9341 started the target.
9342
9343 2014-03-20 Tom Tromey <tromey@redhat.com>
9344
9345 PR cli/15718
9346 * infcall.c: Include event-top.h.
9347 (run_inferior_call): Call async_disable_stdin if needed.
9348
9349 2014-03-20 Pedro Alves <palves@redhat.com>
9350
9351 * infrun.c (prepare_to_proceed): Delete.
9352 (thread_still_needs_step_over): New function.
9353 (find_thread_needs_step_over): New function.
9354 (proceed): If the current thread needs a step-over, set its
9355 steping_over_breakpoint flag. Adjust to use
9356 find_thread_needs_step_over instead of prepare_to_proceed.
9357 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9358 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9359 breakpoint.
9360 (switch_back_to_stepped_thread): Step over breakpoints of all
9361 threads not the stepping thread, before switching back to the
9362 stepping thread.
9363
9364 2014-03-20 Pedro Alves <palves@redhat.com>
9365
9366 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9367 extern.
9368 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9369 * infrun.c (saved_singlestep_ptid)
9370 (stepping_past_singlestep_breakpoint): Delete.
9371 (resume): Remove stepping_past_singlestep_breakpoint handling.
9372 (proceed): Store the prev_pc of the stepping thread too.
9373 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9374 singlestep_pc.
9375 (enum infwait_states): Delete infwait_thread_hop_state.
9376 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9377 field.
9378 (handle_inferior_event): Adjust.
9379 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9380 handling and the thread-hop code. Before removing single-step
9381 breakpoints, check whether the thread hit a single-step breakpoint
9382 of another thread. If it did, the trap is not a random signal.
9383 (switch_back_to_stepped_thread): If the event thread hit a
9384 single-step breakpoint, unblock it before switching to the
9385 stepping thread. Handle the case of the stepped thread having
9386 advanced already.
9387 (keep_going): Handle the case of the current thread moving past a
9388 single-step breakpoint.
9389
9390 2014-03-20 Pedro Alves <palves@redhat.com>
9391
9392 PR breakpoints/7143
9393 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9394 are being stepped over.
9395 (breakpoint_address_match): Make extern.
9396 * breakpoint.h (breakpoint_address_match): New declaration.
9397 * inferior.h (stepping_past_instruction_at): New declaration.
9398 * infrun.c (struct step_over_info): New type.
9399 (step_over_info): New global.
9400 (set_step_over_info, clear_step_over_info)
9401 (stepping_past_instruction_at): New functions.
9402 (handle_inferior_event): Clear the step-over info when
9403 trap_expected is cleared.
9404 (resume): Remove now stale comment.
9405 (clear_proceed_status): Clear step-over info.
9406 (proceed): Adjust step-over handling to set or clear the step-over
9407 info instead of removing all breakpoints.
9408 (handle_signal_stop): When setting up a thread-hop, don't remove
9409 breakpoints here.
9410 (stop_stepping): Clear step-over info.
9411 (keep_going): Adjust step-over handling to set or clear step-over
9412 info and then always inserting breakpoints, instead of removing
9413 all breakpoints when stepping over one.
9414
9415 2014-03-20 Pedro Alves <palves@redhat.com>
9416
9417 * infrun.c (previous_inferior_ptid): Adjust comment.
9418 (deferred_step_ptid): Delete.
9419 (infrun_thread_ptid_changed, prepare_to_proceed)
9420 (init_wait_for_inferior): Adjust.
9421 (handle_signal_stop): Delete deferred_step_ptid handling.
9422
9423 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9424
9425 PR gdb/15358
9426 * defs.h (sync_quit_force_run): New declaration.
9427 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9428 * event-top.c (async_sigterm_handler): New declaration.
9429 (async_sigterm_token): New variable.
9430 (async_init_signals): Create also async_sigterm_token.
9431 (async_sigterm_handler): New function.
9432 (sync_quit_force_run): New variable.
9433 (handle_sigterm): Replace quit_force call by other calls.
9434 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9435
9436 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9437
9438 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9439 offset into SPE pseudo registers.
9440
9441 2014-03-18 Pedro Alves <palves@redhat.com>
9442
9443 PR gdb/13860
9444 * inferior.h (print_stop_event): Declare.
9445 * infrun.c (print_stop_event): New, factored out from ...
9446 (normal_stop): ... this.
9447 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9448 of bpstat_print/print_stack_frame.
9449
9450 2014-03-17 Tom Tromey <tromey@redhat.com>
9451
9452 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9453
9454 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9455
9456 * ada-lang.c (decode_constrained_packed_array): Perform a
9457 minimal coercion for reference with coerce_ref instead of
9458 ada_coerce_ref.
9459
9460 2014-03-17 Tristan Gingold <gingold@adacore.com>
9461
9462 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9463 (darwin_solib_create_inferior_hook): Emit a warning if version
9464 is unhandled.
9465
9466 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9467
9468 * python/py-value.c (get_field_flag): Cast flag_name argument to
9469 PyObject_GetAttrString to support Python 2.4.
9470
9471 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9474 (Global Maintainers): Remove Jan Kratochvil.
9475
9476 2014-03-14 Pedro Alves <palves@redhat.com>
9477
9478 * inferior.h (terminal_ours_for_output): Rename to ...
9479 (child_terminal_ours_for_output): ... this.
9480 (terminal_save_ours): Rename to ...
9481 (child_terminal_save_ours): ... this.
9482 (terminal_ours): Rename to ...
9483 (child_terminal_ours): ... this.
9484 (terminal_inferior): Rename to ...
9485 (child_terminal_inferior): ... this.
9486 (terminal_init_inferior): Rename to ...
9487 (child_terminal_init_inferior): ... this.
9488 (terminal_init_inferior_with_pgrp): Rename to ...
9489 (child_terminal_init_inferior_with_pgrp): ... this.
9490 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9491 (child_terminal_init_with_pgrp): ... this.
9492 (terminal_save_ours): Rename to ...
9493 (child_terminal_save_ours): ... this.
9494 (terminal_init_inferior): Rename to ...
9495 (child_terminal_init): ... this. Adjust.
9496 (terminal_inferior): Rename to ...
9497 (child_terminal_inferior): ... this.
9498 (terminal_ours_for_output): Rename to ...
9499 (child_terminal_ours_for_output): ... this. Adjust.
9500 (terminal_ours): Rename to ...
9501 (child_terminal_ours): ... this.
9502 (terminal_ours_1): Rename to ...
9503 (child_terminal_ours_1): ... this. Adjust.
9504 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9505 * windows-nat.c (do_initial_windows_stuff): Adjust.
9506 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9507 (gnu_terminal_init): ... this. Adjust.
9508 (gnu_target): Adjust.
9509 * inf-child.c (inf_child_target): Adjust.
9510
9511 2014-03-13 Doug Evans <xdje42@gmail.com>
9512
9513 PR guile/16612
9514 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9515 new eq?-hashtab.
9516
9517 2014-03-13 Doug Evans <xdje42@gmail.com>
9518
9519 * value.c (record_latest_value): Call release_value_or_incref
9520 instead of release_value.
9521
9522 2014-03-13 Pedro Alves <palves@redhat.com>
9523
9524 * procfs.c (procfs_target): Don't override to_shortname,
9525 to_longname or to_doc.
9526
9527 2014-03-13 Pedro Alves <palves@redhat.com>
9528
9529 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9530 Unix in user visible strings.
9531
9532 2014-03-12 Stan Shebs <stan@codesourcery.com>
9533
9534 * gdbtypes.h: Annotate comments for Doxygen, add a page
9535 block comment with some general info.
9536
9537 2014-03-12 Pedro Alves <palves@redhat.com>
9538
9539 * infcmd.c (prepare_execution_command): New function, factored out
9540 from several execution commands.
9541 (run_command_1, continue_command, step_1, jump_command)
9542 (signal_command, until_command, advance_command, finish_command)
9543 (attach_command): Use prepare_execution_command.
9544
9545 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9546
9547 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9548 (MAX_BPTS): Define.
9549 (MAX_WPTS): Define.
9550 (struct arm_linux_thread_points): Removed.
9551 (struct arm_linux_process_info): New.
9552 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9553 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9554 (arm_linux_find_breakpoints_by_tid): Removed.
9555 (struct arch_lwp_info): New.
9556 (arm_linux_find_process_pid): New functions.
9557 (arm_linux_add_process): New functions.
9558 (arm_linux_process_info_get): New functions.
9559 (arm_linux_forget_process): New function.
9560 (arm_linux_get_debug_reg_state): New function.
9561 (struct update_registers_data): New.
9562 (update_registers_callback): New function.
9563 (arm_linux_insert_hw_breakpoint1): Updated.
9564 (arm_linux_remove_hw_breakpoint1): Updated.
9565 (arm_linux_insert_hw_breakpoint): Updated.
9566 (arm_linux_remove_hw_breakpoint): Updated.
9567 (arm_linux_insert_watchpoint): Updated.
9568 (arm_linux_remove_watchpoint): Updated.
9569 (arm_linux_new_thread): Updated.
9570 (arm_linux_prepare_to_resume): New function.
9571 (arm_linux_new_fork): New function.
9572 (_initialize_arm_linux_nat): Updated.
9573
9574 2014-03-12 Pedro Alves <palves@redhat.com>
9575
9576 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9577
9578 2014-03-12 Tom Tromey <tromey@redhat.com>
9579
9580 * inf-child.c (return_zero): New function.
9581 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9582 * aix-thread.c (aix_thread_inferior_created): New function.
9583 (aix_thread_attach): Remove.
9584 (init_aix_thread_ops): Don't set to_attach.
9585 (_initialize_aix_thread): Register inferior_created observer.
9586 * corelow.c (init_core_ops): Don't set to_attach or
9587 to_create_inferior.
9588 * exec.c (init_exec_ops): Don't set to_attach or
9589 to_create_inferior.
9590 * infcmd.c (run_command_1): Use find_run_target. Make direct
9591 target calls.
9592 (attach_command): Use find_attach_target. Make direct target
9593 calls.
9594 * record-btrace.c (init_record_btrace_ops): Don't set
9595 to_create_inferior.
9596 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9597 Remove.
9598 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9599 set to_create_inferior.
9600 * target.c (complete_target_initialization): Add assertion.
9601 (target_create_inferior): Remove.
9602 (find_default_attach, find_default_create_inferior): Remove.
9603 (find_attach_target, find_run_target): New functions.
9604 (find_default_is_async_p, find_default_can_async_p)
9605 (target_supports_non_stop, target_attach): Remove.
9606 (init_dummy_target): Don't set to_create_inferior or
9607 to_supports_non_stop.
9608 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9609 TARGET_DEFAULT_FUNC.
9610 <to_create_inferior>: Add comment.
9611 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9612 TARGET_DEFAULT_RETURN.
9613 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9614 (find_attach_target, find_run_target): Declare.
9615 (target_create_inferior): Remove.
9616 (target_has_execution_1): Update comment.
9617 (target_supports_non_stop): Remove.
9618 * target-delegates.c: Rebuild.
9619
9620 2014-03-12 Pedro Alves <palves@redhat.com>
9621
9622 * inf-child.h: Update comment to not mention Unix.
9623
9624 2014-03-12 Pedro Alves <palves@redhat.com>
9625
9626 * inf-child.c: Update top comment to not mention Unix. Add
9627 generic comment describing how this target is meant to be used.
9628 (inf_child_post_attach, inf_child_post_startup_inferior)
9629 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9630 Unix in comment.
9631
9632 2014-03-12 Pedro Alves <palves@redhat.com>
9633
9634 * nto-procfs.c: Include inf-child.h.
9635 (procfs_ops): Delete global.
9636 (procfs_can_run): Delete method.
9637 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9638 target pointer instead of referencing procfs_ops.
9639 (procfs_prepare_to_store): Delete.
9640 (init_procfs_ops): Delete function.
9641 (procfs_target): New function, based on init_procfs_ops, but
9642 inherit inf_child_target.
9643 (_initialize_procfs): Use procfs_target.
9644
9645 2014-03-12 Pedro Alves <palves@redhat.com>
9646
9647 * windows-nat.c: Include inf-child.h.
9648 (windows_ops): Delete global.
9649 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9650 methods.
9651 (init_windows_ops): Delete function.
9652 (windows_target): New function, based on init_windows_ops, but
9653 inherit inf_child_target.
9654 (_initialize_windows_nat): Use windows_target. Install x86
9655 specific target methods here.
9656
9657 2014-03-10 Doug Evans <xdje42@gmail.com>
9658
9659 * guile/guile.c (call_initialize_gdb_module): New function.
9660 (initialize_guile): Replace call to scm_init_guile with call to
9661 scm_with_guile.
9662
9663 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9664
9665 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9666 in call to TYPE_CODE macro.
9667
9668 2014-03-10 Jerome Guitton <guitton@adacore.com>
9669
9670 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9671 Resolve tagged types to full view.
9672
9673 2014-03-10 Hui Zhu <hui@codesourcery.com>
9674
9675 * target.h (target_insert_breakpoint): Remove "hardware" from its
9676 comments.
9677
9678 2014-03-07 Doug Evans <dje@google.com>
9679
9680 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9681
9682 2014-03-07 Doug Evans <dje@google.com>
9683
9684 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9685 Remove unused local comp_dir_attr. Assert exactly one of
9686 stub_comp_unit_die, stub_comp_dir is non-NULL.
9687
9688 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9689
9690 * target.h (complete_target_initialization, add_target):
9691 Add comment.
9692
9693 2014-03-07 Pedro Alves <palves@redhat.com>
9694
9695 * go32-nat.c: Include inf-child.h.
9696 (go32_ops): Delete global.
9697 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9698 Delete methods.
9699 (go32_create_inferior): Push the passed in target pointer instead
9700 of referencing go32_ops.
9701 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9702 (go32_target): New function, based on init_go32_ops, but inherit
9703 inf_child_target.
9704 (_initialize_go32_nat): Use go32_target. Move parts of
9705 init_go32_ops here.
9706
9707 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9708
9709 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9710 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9711 SYMBOL_VALUE_ADDRESS.
9712 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9713
9714 2014-03-06 Yao Qi <yao@codesourcery.com>
9715
9716 * breakpoint.c (get_tracepoint_by_number): Remove argument
9717 optional_p. All callers updated. Adjust comments. Update
9718 output message.
9719 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9720
9721 2014-03-06 Yao Qi <yao@codesourcery.com>
9722
9723 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9724 early if get_number returns zero. Use 'p' instead of 'args'.
9725
9726 2014-03-06 Yao Qi <yao@codesourcery.com>
9727
9728 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9729 message.
9730
9731 2014-03-06 Yao Qi <yao@codesourcery.com>
9732
9733 PR breakpoints/16508
9734 * tracepoint.c (check_trace_running): New function.
9735 (trace_find_command): Move code to check_trace_running and
9736 call check_trace_running.
9737 (trace_find_pc_command): Likewise.
9738 (trace_find_tracepoint_command): Likewise.
9739 (trace_find_line_command): Likewise.
9740 (trace_find_range_command): Likewise.
9741 * tracepoint.h (check_trace_running): Likewise.
9742 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9743
9744 2014-03-06 Yao Qi <yao@codesourcery.com>
9745
9746 * target.h (struct target_ops) <to_traceframe_info>: Use
9747 TARGET_DEFAULT_NORETURN (tcomplain ()).
9748 * target-delegates.c: Regenerated.
9749
9750 2014-03-05 Pedro Alves <palves@redhat.com>
9751
9752 PR gdb/16575
9753 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9754 void. Update comment.
9755 (dcache_xfer_memory): Delete.
9756 (dcache_read_memory_partial): New, based on the read bits of
9757 dcache_xfer_memory.
9758 (dcache_update): Add status parameter. Use ULONGEST for len, and
9759 adjust. Discard cache lines if the reason for the update was
9760 error.
9761 * dcache.h (dcache_xfer_memory): Delete declaration.
9762 (dcache_read_memory_partial): New declaration.
9763 (dcache_update): Update prototype.
9764 * target.c (raw_memory_xfer_partial): Update the dcache here.
9765 (memory_xfer_partial_1): Don't handle dcache writes here.
9766
9767 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9768
9769 * remote-sim.c (gdbsim_load): Add const to prog.
9770
9771 2014-03-03 Tom Tromey <tromey@redhat.com>
9772
9773 * elfread.c (probe_key): Change to bfd_data.
9774 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9775 now per-BFD, not per-objfile.
9776 * stap-probe.c (stap_probe_destroy): Update comment.
9777 (handle_stap_probe): Allocate on the per-BFD obstack.
9778
9779 2014-03-03 Tom Tromey <tromey@redhat.com>
9780
9781 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9782 * breakpoint.c (create_longjmp_master_breakpoint): Use
9783 get_probe_address.
9784 (add_location_to_breakpoint, bkpt_probe_insert_location)
9785 (bkpt_probe_remove_location): Update.
9786 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9787 * elfread.c (elf_symfile_relocate_probe): Remove.
9788 (elf_probe_fns): Update.
9789 (insert_exception_resume_breakpoint): Change type of "probe"
9790 parameter to bound_probe.
9791 (check_exception_resume): Update.
9792 * objfiles.c (objfile_relocate1): Don't relocate probes.
9793 * probe.c (bound_probe_s): New typedef.
9794 (parse_probes): Use get_probe_address. Set sal's objfile.
9795 (find_probe_by_pc): Return a bound_probe.
9796 (collect_probes): Return a VEC(bound_probe_s).
9797 (compare_probes): Update.
9798 (gen_ui_out_table_header_info): Change type of "probes"
9799 parameter. Update.
9800 (info_probes_for_ops): Update.
9801 (get_probe_address): New function.
9802 (probe_safe_evaluate_at_pc): Update.
9803 * probe.h (struct probe_ops) <get_probe_address>: New field.
9804 <set_semaphore, clear_semaphore>: Add objfile parameter.
9805 (struct probe) <objfile>: Remove field.
9806 <arch>: New field.
9807 <address>: Update comment.
9808 (struct bound_probe): New.
9809 (find_probe_by_pc): Return a bound_probe.
9810 (get_probe_address): Declare.
9811 * solib-svr4.c (struct probe_and_action) <address>: New field.
9812 (hash_probe_and_action, equal_probe_and_action): Update.
9813 (register_solib_event_probe): Add address parameter.
9814 (solib_event_probe_at): Update.
9815 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9816 get_probe_address.
9817 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9818 (stap_get_probe_address): New function.
9819 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9820 (compile_probe_arg): Update.
9821 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9822 address.
9823 (handle_stap_probe): Don't relocate the probe.
9824 (stap_relocate): Remove.
9825 (stap_gen_info_probes_table_values): Update.
9826 (stap_probe_ops): Remove stap_relocate.
9827 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9828 (debug_sym_probe_fns): Update.
9829 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9830 * symtab.c (init_sal): Use memset.
9831 * symtab.h (struct symtab_and_line) <objfile>: New field.
9832 * tracepoint.c (start_tracing, stop_tracing): Update.
9833
9834 2014-03-03 Tom Tromey <tromey@redhat.com>
9835
9836 * probe.h (parse_probes, find_probe_by_pc)
9837 (find_probes_in_objfile): Fix comments.
9838
9839 2014-03-02 Doug Evans <xdje42@gmail.com>
9840
9841 * infrun.c (handle_signal_stop): Replace test for
9842 TARGET_WAITKIND_STOPPED with an assert.
9843
9844 2014-03-02 Doug Evans <xdje42@gmail.com>
9845
9846 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9847
9848 2014-03-02 Doug Evans <xdje42@gmail.com>
9849
9850 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9851
9852 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9853
9854 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9855
9856 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9857
9858 * i386obsd-nat.c: Include "obsd-nat.h".
9859 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9860 add_target.
9861 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9862
9863 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9864
9865 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9866
9867 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9868
9869 * mips64obsd-nat.c: Include "obsd-nath".
9870 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9871 add_target
9872 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9873
9874 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9875
9876 * amd64obsd-nat.c: Include "obsd-nat,h.
9877 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9878 add_target.
9879 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9880
9881 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9882
9883 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9884 (find_overload_match): Update call to find_oload_champ.
9885 (find_oload_champ_namespace_loop): Likewise
9886
9887 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9888
9889 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9890
9891 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9892 * config/sparc/obsd64.mh: New file.
9893 * sparc64obsd-nat.c: New file.
9894
9895 * obsd-nat.h: New file.
9896 * obsd-nat.c: New file.
9897 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9898 (ALLDEPFILES): Add obsd-nat.c.
9899
9900 2014-02-28 Tom Tromey <tromey@redhat.com>
9901
9902 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9903 * cli-out.h (cli_ui_out_impl): Now const.
9904 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9905 * ui-out.c (struct ui_out) <impl>: Now const.
9906 (default_ui_out_impl): Now const.
9907 (ui_out_new): Make 'impl' parameter const.
9908 * ui-out.h (ui_out_new): Update.
9909
9910 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9911
9912 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9913
9914 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9915
9916 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9917
9918 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9919
9920 Additional PR 8882 fix.
9921 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9922
9923 2014-02-27 Pedro Alves <palves@redhat.com>
9924
9925 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9926 isn't set.
9927
9928 2014-02-27 Pedro Alves <palves@redhat.com>
9929
9930 PR 12702
9931 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9932 * nat/linux-waitpid.c: Include string.h.
9933 (status_to_str): Moved here and made extern.
9934 * nat/linux-waitpid.h (status_to_str): New declaration.
9935
9936 2014-02-27 Hui Zhu <hui@codesourcery.com>
9937
9938 PR 12702
9939 * infrun.c (ptid_match): Move ...
9940 * common/ptid.c (ptid_match): ... here.
9941 * inferior.h (ptid_match): Move ...
9942 * common/ptid.h (ptid_match): ... here.
9943
9944 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9945
9946 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9947 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9948 gdb_target_obs.
9949
9950 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9951
9952 * obsd-tdep.c (obsd_auxv_parse): New function.
9953 (obsd_init_abi): Set auxv_parse.
9954
9955 * gdbarch.sh (auxv_parse): New.
9956 * gdbarch.h: Regenerated.
9957 * gdbarch.c: Regenerated.
9958 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9959
9960 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9961
9962 * guile/scm-value.c (gdbscm_history_append_x): New function.
9963 (value_functions): Add it.
9964
9965 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9966
9967 * dwarf2read.c (attr_value_as_address): New function.
9968 (dwarf2_find_base_address, read_call_site_scope): Use
9969 attr_value_as_address in place of DW_ADDR.
9970 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9971 the low and high addresses. Slight rework of the handling
9972 of the high pc being a constant form, and limit it to
9973 DWARF verson 4 or higher.
9974 (dwarf2_record_block_ranges): Likewise.
9975 (read_partial_die): Likewise.
9976 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9977
9978 2014-02-26 Tom Tromey <tromey@redhat.com>
9979
9980 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9981
9982 2014-02-26 Tom Tromey <tromey@redhat.com>
9983
9984 * elfread.c (elf_read_minimal_symbols): Return early if
9985 minimal symbols have already been read. Add "ei" parameter.
9986 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9987 * minsyms.c (prim_record_minimal_symbol_full): Update.
9988 * objfiles.h (struct objstats) <n_minsyms>: Move...
9989 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9990 * symmisc.c (print_objfile_statistics): Update.
9991
9992 2014-02-26 Tom Tromey <tromey@redhat.com>
9993
9994 * elfread.c (elf_read_minimal_symbols): New function, from
9995 elf_symfile_read.
9996 (elf_symfile_read): Call it.
9997
9998 2014-02-26 Tom Tromey <tromey@redhat.com>
9999
10000 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10001 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10002 (lookup_minimal_symbol_solib_trampoline)
10003 (lookup_minimal_symbol_by_pc_section_1)
10004 (lookup_minimal_symbol_and_objfile): Update.
10005 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10006 Don't allocate a minimal symbol if minsyms have already been read.
10007 (build_minimal_symbol_hash_tables): Update.
10008 (install_minimal_symbols): Do nothing if minsyms already read.
10009 Use the per-BFD obstack.
10010 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10011 * objfiles.c (allocate_objfile): Call
10012 terminate_minimal_symbol_table later.
10013 (have_minimal_symbols): Update.
10014 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10015 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10016 Move from struct objfile.
10017 <minsyms_read>: New field.
10018 (struct objfile) <msymbols, minimal_symbol_count,
10019 msymbol_hash, msymbol_demangled_hash>: Move.
10020 (ALL_OBJFILE_MSYMBOLS): Update.
10021 * symfile.c (read_symbols): Set minsyms_read.
10022 (reread_symbols): Update.
10023 * symmisc.c (dump_objfile, dump_msymbols): Update.
10024
10025 2014-02-26 Tom Tromey <tromey@redhat.com>
10026
10027 * minsyms.c (msymbols_sort): Remove.
10028 * minsyms.h (msymbols_sort): Remove.
10029 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10030 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10031 * elfread.c (elf_symtab_read): Don't add section offsets.
10032 * xcoffread.c (record_minimal_symbol): Don't add section offset
10033 to minimal symbol address.
10034 * somread.c (text_offset, data_offset): Remove.
10035 (som_symtab_read): Don't add section offsets to minimal symbol
10036 addresses.
10037 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10038 Don't add section offsets to minimal symbols.
10039 * coffread.c (coff_symtab_read): Don't add section offsets
10040 to minimal symbol addresses.
10041 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10042 to minimal symbol addresses.
10043 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10044 section offset to minimal symbol addresses.
10045 * mdebugread.c (parse_partial_symbols): Don't add section
10046 offset to minimal symbol addresses.
10047 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10048 offset to minimal symbol addresses.
10049
10050 2014-02-26 Tom Tromey <tromey@redhat.com>
10051
10052 * ada-lang.c (ada_main_name): Update.
10053 (ada_add_standard_exceptions): Update.
10054 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10055 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10056 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10057 * auxv.c (ld_so_xfer_auxv): Update.
10058 * avr-tdep.c (avr_scan_prologue): Update.
10059 * ax-gdb.c (gen_var_ref): Update.
10060 * blockframe.c (get_pc_function_start)
10061 (find_pc_partial_function_gnu_ifunc): Update.
10062 * breakpoint.c (create_overlay_event_breakpoint)
10063 (create_longjmp_master_breakpoint)
10064 (create_std_terminate_master_breakpoint)
10065 (create_exception_master_breakpoint): Update.
10066 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10067 * c-valprint.c (c_val_print): Update.
10068 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10069 * common/agent.c (agent_look_up_symbols): Update.
10070 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10071 * dwarf2loc.c (call_site_to_target_addr): Update.
10072 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10073 * elfread.c (elf_gnu_ifunc_record_cache)
10074 (elf_gnu_ifunc_resolve_by_got): Update.
10075 * findvar.c (default_read_var_value): Update.
10076 * frame.c (inside_main_func): Update.
10077 * frv-tdep.c (frv_frame_this_id): Update.
10078 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10079 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10080 Update.
10081 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10082 (hppa_hpux_find_dummy_bpaddr): Update.
10083 * hppa-tdep.c (hppa_symbol_address): Update.
10084 * infcmd.c (until_next_command): Update.
10085 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10086 Update.
10087 * linespec.c (minsym_found, add_minsym): Update.
10088 * linux-nat.c (get_signo): Update.
10089 * linux-thread-db.c (inferior_has_bug): Update.
10090 * m32c-tdep.c (m32c_return_value)
10091 (m32c_m16c_address_to_pointer): Update.
10092 * m32r-tdep.c (m32r_frame_this_id): Update.
10093 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10094 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10095 * maint.c (maintenance_translate_address): Update.
10096 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10097 (frob_address): New function.
10098 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10099 frob_address. Rename parameter to "pc_in".
10100 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10101 addresses.
10102 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10103 Update.
10104 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10105 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10106 * objc-lang.c (find_objc_msgsend): Update.
10107 * objfiles.c (objfile_relocate1): Update.
10108 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10109 * p-valprint.c (pascal_val_print): Update.
10110 * parse.c (write_exp_msymbol): Update.
10111 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10112 (ppc_elfv2_skip_entrypoint): Update.
10113 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10114 * printcmd.c (build_address_symbolic, msym_info)
10115 (address_info): Update.
10116 * proc-service.c (ps_pglobal_lookup): Update.
10117 * psymtab.c (find_pc_sect_psymtab_closer)
10118 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10119 Change msymbol parameter to bound_minimal_symbol.
10120 * ravenscar-thread.c (get_running_thread_id): Update.
10121 * remote.c (remote_check_symbols): Update.
10122 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10123 address.
10124 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10125 * solib-dsbt.c (lm_base): Update.
10126 * solib-frv.c (lm_base, main_got): Update.
10127 * solib-irix.c (locate_base): Update.
10128 * solib-som.c (som_solib_create_inferior_hook)
10129 (link_map_start): Update.
10130 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10131 * solib-svr4.c (elf_locate_base, enable_break): Update.
10132 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10133 (flush_ea_cache): Update.
10134 * stabsread.c (define_symbol, scan_file_globals): Update.
10135 * stack.c (find_frame_funname): Update.
10136 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10137 (debug_qf_find_pc_sect_symtab): Update.
10138 * symfile.c (simple_read_overlay_table)
10139 (simple_overlay_update): Update.
10140 * symfile.h (struct quick_symbol_functions)
10141 <find_pc_sect_symtab>: Change type of msymbol to
10142 bound_minimal_symbol.
10143 * symmisc.c (dump_msymbols): Update.
10144 * symtab.c (find_pc_sect_symtab_via_partial)
10145 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10146 (search_symbols, print_msymbol_info): Update.
10147 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10148 (MSYMBOL_VALUE_ADDRESS): Redefine.
10149 (BMSYMBOL_VALUE_ADDRESS): New macro.
10150 * tracepoint.c (scope_info): Update.
10151 * tui/tui-disasm.c (tui_find_disassembly_address)
10152 (tui_get_begin_asm_address): Update.
10153 * valops.c (find_function_in_inferior): Update.
10154 * value.c (value_static_field, value_fn_field): Update.
10155
10156 2014-02-26 Tom Tromey <tromey@redhat.com>
10157
10158 * ada-lang.c (ada_update_initial_language): Update.
10159 (ada_main_name, ada_has_this_exception_support): Update.
10160 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10161 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10162 * arm-tdep.c (arm_skip_stub): Update.
10163 * auxv.c (ld_so_xfer_auxv): Update.
10164 * avr-tdep.c (avr_scan_prologue): Update.
10165 * ax-gdb.c (gen_var_ref): Update.
10166 * breakpoint.c (struct breakpoint_objfile_data)
10167 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10168 type to bound_minimal_symbol.
10169 (create_overlay_event_breakpoint)
10170 (create_longjmp_master_breakpoint)
10171 (create_std_terminate_master_breakpoint)
10172 (create_exception_master_breakpoint): Update.
10173 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10174 * c-exp.y (classify_name): Update.
10175 * coffread.c (coff_symfile_read): Update.
10176 * common/agent.c (agent_look_up_symbols): Update.
10177 * d-lang.c (d_main_name): Update.
10178 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10179 * dec-thread.c (enable_dec_thread): Update.
10180 * dwarf2loc.c (call_site_to_target_addr): Update.
10181 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10182 * eval.c (evaluate_subexp_standard): Update.
10183 * findvar.c (struct minsym_lookup_data) <result>: Change type
10184 to bound_minimal_symbol.
10185 <objfile>: Remove.
10186 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10187 * frame.c (inside_main_func): Update.
10188 * frv-tdep.c (frv_frame_this_id): Update.
10189 * gcore.c (call_target_sbrk): Update.
10190 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10191 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10192 Update.
10193 * go-lang.c (go_main_name): Update.
10194 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10195 (hppa_hpux_find_import_stub_for_addr): Update.
10196 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10197 Update. Change return type.
10198 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10199 type.
10200 * jit.c (jit_breakpoint_re_set_internal): Update.
10201 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10202 Update.
10203 * linux-nat.c (get_signo): Update.
10204 * linux-thread-db.c (inferior_has_bug): Update
10205 * m32c-tdep.c (m32c_return_value)
10206 (m32c_m16c_address_to_pointer): Update.
10207 * m32r-tdep.c (m32r_frame_this_id): Update.
10208 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10209 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10210 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10211 lookup_minimal_symbol. Change return type.
10212 (lookup_minimal_symbol): Remove.
10213 (lookup_bound_minimal_symbol): Update.
10214 (lookup_minimal_symbol_text): Change return type.
10215 (lookup_minimal_symbol_solib_trampoline): Change return type.
10216 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10217 (lookup_minimal_symbol_solib_trampoline): Change return type.
10218 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10219 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10220 (value_nsstring, find_imps): Update.
10221 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10222 * p-lang.c (pascal_main_name): Update.
10223 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10224 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10225 * proc-service.c (ps_pglobal_lookup): Update.
10226 * ravenscar-thread.c (get_running_thread_msymbol): Change
10227 return type.
10228 (has_ravenscar_runtime, get_running_thread_id): Update.
10229 * remote.c (remote_check_symbols): Update.
10230 * sol-thread.c (ps_pglobal_lookup): Update.
10231 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10232 * solib-dsbt.c (lm_base): Update.
10233 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10234 Update.
10235 * solib-irix.c (locate_base): Update.
10236 * solib-som.c (som_solib_create_inferior_hook)
10237 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10238 Update.
10239 * solib-spu.c (spu_enable_break): Update.
10240 * solib-svr4.c (elf_locate_base, enable_break): Update.
10241 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10242 (flush_ea_cache): Update.
10243 * stabsread.c (define_symbol): Update.
10244 * symfile.c (simple_read_overlay_table): Update.
10245 * symtab.c (find_pc_sect_line): Update.
10246 * tracepoint.c (scope_info): Update.
10247 * tui-disasm.c (tui_get_begin_asm_address): Update.
10248 * value.c (value_static_field): Update.
10249
10250 2014-02-26 Tom Tromey <tromey@redhat.com>
10251
10252 * minsyms.c (prim_record_minimal_symbol_full): Use
10253 SET_MSYMBOL_VALUE_ADDRESS.
10254 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10255 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10256 SET_MSYMBOL_VALUE_ADDRESS.
10257 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10258 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10259
10260 2014-02-26 Tom Tromey <tromey@redhat.com>
10261
10262 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10263 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10264 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10265 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10266 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10267 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10268 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10269 * ada-lang.c (ada_main_name): Update.
10270 (ada_lookup_simple_minsym): Update.
10271 (ada_make_symbol_completion_list): Update.
10272 (ada_add_standard_exceptions): Update.
10273 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10274 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10275 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10276 * arm-tdep.c (skip_prologue_function): Update.
10277 (arm_skip_stack_protector, arm_skip_stub): Update.
10278 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10279 (arm_wince_skip_main_prologue): Update.
10280 * auxv.c (ld_so_xfer_auxv): Update.
10281 * avr-tdep.c (avr_scan_prologue): Update.
10282 * ax-gdb.c (gen_var_ref): Update.
10283 * block.c (call_site_for_pc): Update.
10284 * blockframe.c (get_pc_function_start): Update.
10285 (find_pc_partial_function_gnu_ifunc): Update.
10286 * breakpoint.c (create_overlay_event_breakpoint): Update.
10287 (create_longjmp_master_breakpoint): Update.
10288 (create_std_terminate_master_breakpoint): Update.
10289 (create_exception_master_breakpoint): Update.
10290 (resolve_sal_pc): Update.
10291 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10292 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10293 Update.
10294 * c-valprint.c (c_val_print): Update.
10295 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10296 * coffread.c (coff_symfile_read): Update.
10297 * common/agent.c (agent_look_up_symbols): Update.
10298 * dbxread.c (find_stab_function_addr): Update.
10299 (end_psymtab): Update.
10300 * dwarf2loc.c (call_site_to_target_addr): Update.
10301 (func_verify_no_selftailcall): Update.
10302 (tailcall_dump): Update.
10303 (call_site_find_chain_1): Update.
10304 (dwarf_expr_reg_to_entry_parameter): Update.
10305 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10306 (elf_gnu_ifunc_resolve_by_got): Update.
10307 * f-valprint.c (info_common_command): Update.
10308 * findvar.c (read_var_value): Update.
10309 * frame.c (get_prev_frame_1): Update.
10310 (inside_main_func): Update.
10311 * frv-tdep.c (frv_skip_main_prologue): Update.
10312 (frv_frame_this_id): Update.
10313 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10314 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10315 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10316 (gnuv3_skip_trampoline): Update.
10317 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10318 (hppa64_hpux_in_solib_call_trampoline): Update.
10319 (hppa_hpux_skip_trampoline_code): Update.
10320 (hppa64_hpux_search_dummy_call_sequence): Update.
10321 (hppa_hpux_find_import_stub_for_addr): Update.
10322 (hppa_hpux_find_dummy_bpaddr): Update.
10323 * hppa-tdep.c (hppa_symbol_address)
10324 (hppa_lookup_stub_minimal_symbol): Update.
10325 * i386-tdep.c (i386_skip_main_prologue): Update.
10326 (i386_pe_skip_trampoline_code): Update.
10327 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10328 * infcall.c (get_function_name): Update.
10329 * infcmd.c (until_next_command): Update.
10330 * jit.c (jit_breakpoint_re_set_internal): Update.
10331 (jit_inferior_init): Update.
10332 * linespec.c (minsym_found): Update.
10333 (add_minsym): Update.
10334 * linux-fork.c (info_checkpoints_command): Update.
10335 * linux-nat.c (get_signo): Update.
10336 * linux-thread-db.c (inferior_has_bug): Update.
10337 * m32c-tdep.c (m32c_return_value): Update.
10338 (m32c_m16c_address_to_pointer): Update.
10339 (m32c_m16c_pointer_to_address): Update.
10340 * m32r-tdep.c (m32r_frame_this_id): Update.
10341 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10342 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10343 * maint.c (maintenance_translate_address): Update.
10344 * minsyms.c (add_minsym_to_hash_table): Update.
10345 (add_minsym_to_demangled_hash_table): Update.
10346 (msymbol_objfile): Update.
10347 (lookup_minimal_symbol): Update.
10348 (iterate_over_minimal_symbols): Update.
10349 (lookup_minimal_symbol_text): Update.
10350 (lookup_minimal_symbol_by_pc_name): Update.
10351 (lookup_minimal_symbol_solib_trampoline): Update.
10352 (lookup_minimal_symbol_by_pc_section_1): Update.
10353 (lookup_minimal_symbol_and_objfile): Update.
10354 (prim_record_minimal_symbol_full): Update.
10355 (compare_minimal_symbols): Update.
10356 (compact_minimal_symbols): Update.
10357 (build_minimal_symbol_hash_tables): Update.
10358 (install_minimal_symbols): Update.
10359 (terminate_minimal_symbol_table): Update.
10360 (find_solib_trampoline_target): Update.
10361 (minimal_symbol_upper_bound): Update.
10362 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10363 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10364 (mips_skip_pic_trampoline_code): Update.
10365 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10366 * objc-lang.c (selectors_info): Update.
10367 (classes_info): Update.
10368 (find_methods): Update.
10369 (find_imps): Update.
10370 (find_objc_msgsend): Update.
10371 * objfiles.c (objfile_relocate1): Update.
10372 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10373 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10374 * p-valprint.c (pascal_val_print): Update.
10375 * parse.c (write_exp_msymbol): Update.
10376 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10377 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10378 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10379 * printcmd.c (build_address_symbolic): Update.
10380 (sym_info): Update.
10381 (address_info): Update.
10382 * proc-service.c (ps_pglobal_lookup): Update.
10383 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10384 (find_pc_sect_psymtab): Update.
10385 * python/py-framefilter.c (py_print_frame): Update.
10386 * ravenscar-thread.c (get_running_thread_id): Update.
10387 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10388 Update.
10389 * remote.c (remote_check_symbols): Update.
10390 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10391 (rs6000_skip_trampoline_code): Update.
10392 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10393 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10394 * solib-dsbt.c (lm_base): Update.
10395 * solib-frv.c (lm_base): Update.
10396 (main_got): Update.
10397 * solib-irix.c (locate_base): Update.
10398 * solib-som.c (som_solib_create_inferior_hook): Update.
10399 (som_solib_desire_dynamic_linker_symbols): Update.
10400 (link_map_start): Update.
10401 * solib-spu.c (spu_enable_break): Update.
10402 (ocl_enable_break): Update.
10403 * solib-svr4.c (elf_locate_base): Update.
10404 (enable_break): Update.
10405 * spu-tdep.c (spu_get_overlay_table): Update.
10406 (spu_catch_start): Update.
10407 (flush_ea_cache): Update.
10408 * stabsread.c (define_symbol): Update.
10409 (scan_file_globals): Update.
10410 * stack.c (find_frame_funname): Update.
10411 (frame_info): Update.
10412 * symfile.c (simple_read_overlay_table): Update.
10413 (simple_overlay_update): Update.
10414 * symmisc.c (dump_msymbols): Update.
10415 * symtab.c (fixup_section): Update.
10416 (find_pc_sect_line): Update.
10417 (skip_prologue_sal): Update.
10418 (search_symbols): Update.
10419 (print_msymbol_info): Update.
10420 (rbreak_command): Update.
10421 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10422 (completion_list_objc_symbol): Update.
10423 (default_make_symbol_completion_list_break_on): Update.
10424 * tracepoint.c (scope_info): Update.
10425 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10426 (tui_get_begin_asm_address): Update.
10427 * valops.c (find_function_in_inferior): Update.
10428 * value.c (value_static_field): Update.
10429 (value_fn_field): Update.
10430
10431 2014-02-26 Tom Tromey <tromey@redhat.com>
10432
10433 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10434 bound minimal symbols. Move code that knows about minsym
10435 table layout...
10436 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10437 function.
10438 * minsyms.h (minimal_symbol_upper_bound): Declare.
10439 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10440 minimal_symbol_upper_bound.
10441
10442 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10443
10444 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10445 Use the type's name if its basic type does not have a tag.
10446
10447 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10448
10449 * dwarf2read.c (read_subrange_type): Add comment.
10450
10451 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10452
10453 * dwarf2read.c (update_enumeration_type_from_children): New
10454 function, mostly extracted from process_structure_scope.
10455 (read_enumeration_type): Call update_enumeration_type_from_children.
10456 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10457 and flag_flag_enum fields.
10458
10459 2014-02-26 Pedro Alves <palves@redhat.com>
10460
10461 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10462 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10463 to_xfer_partial method.
10464
10465 2014-02-26 Pedro Alves <palves@redhat.com>
10466
10467 * target.c (complete_target_initialization): Don't install
10468 default_xfer_partial as to_xfer_partial hook.
10469 (nomemory): Delete.
10470 (update_current_target): Don't INHERIT nor de_fault
10471 deprecated_xfer_memory. Delete de_fault macro.
10472 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10473 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10474 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10475 field.
10476
10477 2014-02-26 Pedro Alves <palves@redhat.com>
10478
10479 * go32-nat.c (my_write_child): New function.
10480 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10481 (go32_xfer_partial): New function.
10482 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10483 Instead install a to_xfer_partial hook.
10484
10485 2014-02-26 Pedro Alves <palves@redhat.com>
10486
10487 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10488 to_xfer_partial helper. Rewrite.
10489 (procfs_xfer_partial): New function.
10490 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10491 Install a to_xfer_partial hook.
10492
10493 2014-02-26 Pedro Alves <palves@redhat.com>
10494
10495 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10496 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10497 (m32r_xfer_partial): New function.
10498 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10499 Install a to_xfer_partial hook.
10500
10501 2014-02-26 Pedro Alves <palves@redhat.com>
10502
10503 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10504 helper.
10505 (mips_xfer_partial): New function.
10506 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10507 hook. Install a to_xfer_partial hook.
10508
10509 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10510
10511 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10512 * gdbtypes.c (create_array_type_with_stride): New function,
10513 renaming create_array_type, but with an added parameter
10514 called "bit_stride".
10515 (create_array_type): Re-implement using
10516 create_array_type_with_stride.
10517 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10518 and DW_AT_bit_stride attributes.
10519
10520 2014-02-26 Pedro Alves <palves@redhat.com>
10521
10522 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10523 task-specific breakpoints.
10524
10525 2014-02-25 Pedro Alves <palves@redhat.com>
10526
10527 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10528 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10529
10530 2014-02-25 Stan Shebs <stan@codesourcery.com>
10531
10532 * defs.h: Annotate comments for Doxygen.
10533
10534 2014-02-25 Tom Tromey <tromey@redhat.com>
10535
10536 * target.h (target_ignore): Don't declare.
10537 * target.c (target_ignore): Remove.
10538
10539 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10540
10541 PR gdb/16626
10542 * auto-load.c (auto_load_objfile_script_1): Change filename to
10543 debugfile.
10544
10545 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10546
10547 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10548 documentation. Adjust prototype to match the target_ops
10549 to_xfer_partial method. Adjust implementation accordingly.
10550
10551 2014-02-25 Hui Zhu <hui@codesourcery.com>
10552
10553 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10554 to_traceframe_info.
10555
10556 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10557
10558 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10559 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10560 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10561 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10562 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10563 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10564 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10565 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10566 New constants.
10567 (rl78_register_type): Use a data pointer type for SP and
10568 new pseudo registers mentioned above. Use a 16 bit integer
10569 type for all other register pairs.
10570 (rl78_register_name, rl78_g10_register_name): Update for
10571 new pseudo registers.
10572 (rl78_pseudo_register_read): Likewise.
10573 (rl78_pseudo_register_write): Likewise.
10574 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10575 to the newly added pseudo registers.
10576
10577 2014-02-24 Doug Evans <dje@google.com>
10578
10579 * value.c (record_latest_value): Fix comment.
10580 * printcmd.c (print_command_1): Remove code to handle -1 return from
10581 record_latest_value.
10582
10583 2014-02-24 Pedro Alves <palves@redhat.com>
10584
10585 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10586 deprecated_xfer_memory hook.
10587 (procfs_xfer_partial): Call procfs_xfer_memory instead
10588 of the deprecated_xfer_memory target hook.
10589 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10590 helper.
10591
10592 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10593
10594 * windows-nat.c (windows_xfer_shared_libraries): Return
10595 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10596 requested object is TARGET_OBJECT_LIBRARIES.
10597
10598 2014-02-24 Yao Qi <yao@codesourcery.com>
10599
10600 * target.h (enum target_xfer_status)
10601 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10602 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10603 explicitly. New.
10604 * corefile.c (memory_error_message): User updated.
10605 * exec.c (section_table_read_available_memory): Likewise.
10606 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10607 * target.c (target_xfer_status_to_string): Likewise.
10608 (raw_memory_xfer_partial): Likewise.
10609 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10610 * valops.c (read_value_memory): Likewise.
10611 * exec.h: Update comments.
10612
10613 2014-02-24 Yao Qi <yao@codesourcery.com>
10614
10615 * target.c (target_xfer_status_to_string): Rename argument err
10616 to status.
10617 * target.h (target_xfer_status_to_string): Update declaration.
10618 Replace target_xfer_error_to_string with
10619 target_xfer_status_to_string in comment.
10620
10621 2014-02-24 Yao Qi <yao@codesourcery.com>
10622
10623 * mips-linux-nat.c (super_close): Update its type.
10624 (mips_linux_close): Pass 'self' to super_close.
10625
10626 2014-02-24 Yao Qi <yao@codesourcery.com>
10627
10628 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10629 * corefile.c (read_memory): Adjusted.
10630 * target.c (target_write_with_progress): Adjusted.
10631
10632 2014-02-23 Yao Qi <yao@codesourcery.com>
10633
10634 Revert two patches:
10635
10636 2013-10-25 Yao Qi <yao@codesourcery.com>
10637
10638 * remote.c (remote_traceframe_info): Return early if
10639 traceframe is not selected.
10640
10641 2013-07-19 Yao Qi <yao@codesourcery.com>
10642
10643 * target.c (update_current_target): Change the default action
10644 of 'to_traceframe_info' from tcomplain to return_zero.
10645 * target.h (struct target_ops) <to_traceframe_info>: Add more
10646 comments.
10647
10648 2014-02-23 Yao Qi <yao@codesourcery.com>
10649
10650 * valops.c (read_value_memory): Rewrite it. Call
10651 target_xfer_partial in a loop.
10652 * exec.h (section_table_available_memory): Remove declaration.
10653 Move comments to ...
10654 * exec.c (section_table_available_memory): ... here. Make it
10655 static.
10656
10657 2014-02-23 Yao Qi <yao@codesourcery.com>
10658
10659 * exec.c (section_table_read_available_memory): New function.
10660 * exec.h (section_table_read_available_memory): Declare.
10661 * ctf.c (ctf_xfer_partial): Call
10662 section_table_read_available_memory.
10663 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10664
10665 2014-02-23 Yao Qi <yao@codesourcery.com>
10666
10667 * ctf.c (ctf_xfer_partial): Move code to ...
10668 * exec.c (exec_read_partial_read_only): ... it. New function.
10669 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10670 * tracefile.c: Include "exec.h".
10671 * exec.h (exec_read_partial_read_only): Declare.
10672
10673 2014-02-23 Yao Qi <yao@codesourcery.com>
10674
10675 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10676 (tfile_has_memory): Remove.
10677 (init_tfile_ops): Don't set fields to_has_all_memory and
10678 to_has_memory of tfile_ops.
10679 * tracefile.c (tracefile_has_all_memory): New function.
10680 (tracefile_has_memory): New function.
10681 (init_tracefile_ops): Initialize fields to_has_all_memory and
10682 to_has_memory of 'ops'.
10683
10684 2014-02-23 Yao Qi <yao@codesourcery.com>
10685
10686 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10687 (ctf_thread_alive, ctf_get_trace_status): Remove.
10688 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10689 init_tracefile_ops.
10690 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10691 (tfile_has_stack, tfile_has_registers): Remove.
10692 (tfile_thread_alive): Remove.
10693 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10694 init_tracefile_ops.
10695 * tracefile.c (tracefile_has_stack): New function.
10696 (tracefile_has_registers): New function.
10697 (tracefile_thread_alive): New function.
10698 (tracefile_get_trace_status): New function.
10699 (init_tracefile_ops): New function.
10700 * tracefile.h (init_tracefile_ops): Declare.
10701
10702 2014-02-23 Yao Qi <yao@codesourcery.com>
10703
10704 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10705 (O_LARGEFILE): Likewise.
10706 (tfile_ops): Likewise.
10707 (TRACE_HEADER_SIZE): Likewise.
10708 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10709 (cur_data_size): Likewise.
10710 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10711 (tfile_close, tfile_files_info): Likewise.
10712 (tfile_get_trace_status): Likewise.
10713 (tfile_get_tracepoint_status): Likewise.
10714 (tfile_get_traceframe_address): Likewise.
10715 (tfile_trace_find, match_blocktype): Likewise.
10716 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10717 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10718 (tfile_get_trace_state_variable_value): Likewise.
10719 (tfile_has_all_memory, tfile_has_memory): Likewise.
10720 (tfile_has_stack, tfile_has_registers): Likewise.
10721 (tfile_thread_alive, build_traceframe_info): Likewise.
10722 (tfile_traceframe_info, init_tfile_ops): Likewise.
10723 (_initialize_tracepoint): Don't call init_tfile_ops
10724 and add_target_with_completer.
10725 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10726 exec.h, completer.h and filenames.h.
10727 (_initialize_tracefile_tfile): New function.
10728
10729 2014-02-23 Yao Qi <yao@codesourcery.com>
10730
10731 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10732 tracefile-tfile.o.
10733 (HFILES_NO_SRCDIR): Add tracefile.h.
10734 * ctf.c: Include "tracefile.h".
10735 * tracefile.h: New file.
10736 * tracefile.c: New file
10737 * tracefile-tfile.c: New file.
10738 * tracepoint.c: Include "tracefile.h".
10739 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10740 (stop_reason_names): Add const.
10741 (trace_file_writer_xfree): Move it to tracefile.c.
10742 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10743 (trace_save_ctf): Likewise.
10744 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10745 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10746 (tfile_write_header, tfile_write_regblock_type): Likewise.
10747 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10748 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10749 (tfile_write_raw_data, tfile_end): Likewise.
10750 (tfile_trace_file_writer_new): Likewise.
10751 (free_uploaded_tp): Make it extern.
10752 (free_uploaded_tsv): Make it extern.
10753 (_initialize_tracepoint): Move code to register command 'tsave'
10754 to tracefile.c.
10755 * tracepoint.h (stop_reason_names): Declare.
10756 (struct trace_frame_write_ops): Move it to tracefile.h.
10757 (struct trace_file_write_ops): Likewise.
10758 (struct trace_file_writer): Likewise.
10759 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10760
10761 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10762
10763 PR gdb/16594
10764 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10765 process name.
10766 (get_cores_used_by_process): New parameter num_cores, use it.
10767 (linux_xfer_osdata_processes): Pass num_cores to it.
10768 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10769 process name.
10770
10771 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10772
10773 * target.c (memory_xfer_partial): Fix length arg in call to
10774 breakpoint_xfer_memory.
10775
10776 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10777
10778 PR tdep/16397
10779 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10780 number comes after the + or - signs. Adjust length of register
10781 name to be extracted.
10782
10783 2014-02-20 Tom Tromey <tromey@redhat.com>
10784
10785 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10786 (ada_varobj_ops): Mark "extern".
10787
10788 2014-02-20 Tom Tromey <tromey@redhat.com>
10789
10790 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10791
10792 2014-02-20 Doug Evans <xdje42@gmail.com>
10793
10794 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10795 All callers updated.
10796 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10797 All callers updated.
10798 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10799 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10800
10801 2014-02-20 lin zuojian <manjian2006@gmail.com>
10802 Joel Brobecker <brobecker@adacore.com>
10803 Doug Evans <xdje42@gmail.com>
10804
10805 PR symtab/16581
10806 * dwarf2read.c (struct die_info): New member in_process.
10807 (reset_die_in_process): New function.
10808 (process_die): Set it at the start, reset when returning.
10809 (inherit_abstract_dies): Only call process_die if origin_child_die
10810 not already being processed.
10811
10812 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10813
10814 * windows-nat.c (handle_unload_dll): Add function documentation.
10815 (do_initial_windows_stuff): Add comment explaining why we wait
10816 until after inferior initialization has finished before
10817 processing all DLLs.
10818
10819 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10820
10821 * windows-nat.c (get_module_name): Delete.
10822 (windows_get_exec_module_filename): New function, mostly
10823 inspired from get_module_name.
10824 (windows_pid_to_exec_file): Replace call to get_module_name
10825 by call to windows_get_exec_module_filename.
10826
10827 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10828
10829 * windows-nat.c (handle_load_dll): Rewrite this function's
10830 introductory comment. Remove code using get_module_name
10831 to get the DLL's name.
10832
10833 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10834
10835 * windows-nat.c (get_windows_debug_event): Ignore
10836 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10837 if windows_initialization_done == 0.
10838 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10839 Adjust implementation to always load all DLLs.
10840 (do_initial_windows_stuff): Replace call to
10841 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10842
10843 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10844
10845 * windows-nat.c (_initialize_windows_nat): Deprecate the
10846 "dll-symbols" command. Turn the "add-shared-symbol-files"
10847 and "assf" aliases into commands, and deprecate them as well.
10848 * NEWS: Add entry explaining that "dll-symbols" and its two
10849 aliases are now deprecated.
10850
10851 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10852
10853 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10854 new-line in debug string. Remove trailing spaces.
10855
10856 2014-02-19 Stan Shebs <stan@codesourcery.com>
10857
10858 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10859
10860 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10861
10862 * NEWS: Add entry for the new feature
10863 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10864 and class values.
10865
10866 2014-02-19 Stan Shebs <stan@codesourcery.com>
10867
10868 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10869
10870 2014-02-19 Pedro Alves <palves@redhat.com>
10871
10872 * common/ptid.h (struct ptid): Mention that process_stratum
10873 targets should prefer ptid.lwp.
10874
10875 2014-02-19 Pedro Alves <palves@redhat.com>
10876
10877 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10878 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10879 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10880 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10881 store remote thread ids rather than ptid.tid.
10882 (_initialize_remote): Adjust.
10883
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * target.c (target_get_unwinder): Rewrite.
10887 (target_get_tailcall_unwinder): Rewrite.
10888 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10889 (record_btrace_to_get_tailcall_unwinder): New function.
10890 (init_record_btrace_ops): Update.
10891 * target.h (struct target_ops) <to_get_unwinder,
10892 to_get_tailcall_unwinder>: Now function pointers. Use
10893 TARGET_DEFAULT_RETURN.
10894
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10898 argument.
10899 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10900
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10904 directly.
10905 * target-delegates.c: Rebuild.
10906 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10907 TARGET_DEFAULT_FUNC.
10908 * target.c (default_target_decr_pc_after_break): Rename from
10909 forward_target_decr_pc_after_break. Simplify.
10910 (target_decr_pc_after_break): Rely on delegation.
10911
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10913
10914 * target.c (update_current_target): Do not INHERIT to_doc or
10915 to_magic. Do not de_fault to_open or to_close.
10916
10917 2014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * gcore.h (objfile_find_memory_regions): Declare.
10920 * gcore.c (objfile_find_memory_regions): No longer static. Add
10921 "self" argument.
10922 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10923 * exec.c: Include gcore.h.
10924 (exec_set_find_memory_regions): Remove.
10925 (exec_find_memory_regions): Remove.
10926 (exec_do_find_memory_regions): Remove.
10927 (init_exec_ops): Update.
10928 * defs.h (exec_set_find_memory_regions): Remove.
10929
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.h (struct target_ops) <to_extra_thread_info,
10934 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10935 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10936 not 0, in TARGET_DEFAULT_RETURN.
10937
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target.c (complete_target_initialization): Remove casts. Use
10941 return_zero_has_execution.
10942 (return_zero): Add "ignore" argument.
10943 (return_zero_has_execution): New function.
10944 (init_dummy_target): Remove casts. Use
10945 return_zero_has_execution.
10946
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target.c (update_current_target): Update comments. Do not
10950 INHERIT to_stratum.
10951
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10955 needed.
10956 * corelow.c (core_read_description): Delegate when needed.
10957 * remote.c (remote_read_description): Delegate when needed.
10958 * target-delegates.c: Rebuild.
10959 * target.c (target_read_description): Rewrite.
10960 * target.h (struct target_ops) <to_read_description>: Update
10961 comment. Use TARGET_DEFAULT_RETURN.
10962
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target-delegates.c: Rebuild.
10966 * target.c (update_current_target): Don't inherit or default
10967 to_can_run.
10968 (find_default_run_target): Check against delegate_can_run.
10969 * target.h (struct target_ops) <to_can_run>: Use
10970 TARGET_DEFAULT_RETURN.
10971
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * target-delegates.c: Rebuild.
10975 * target.c (target_disconnect): Unconditionally delegate.
10976 * target.h (struct target_ops) <to_disconnect>: Use
10977 TARGET_DEFAULT_NORETURN.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * record.c (record_stop): Unconditionally delegate.
10982 * target-delegates.c: Rebuild.
10983 * target.c (target_stop_recording): Unconditionally delegate.
10984 * target.h (struct target_ops) <to_stop_recording>: Use
10985 TARGET_DEFAULT_IGNORE.
10986
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (target_enable_btrace): Unconditionally delegate.
10991 * target.h (struct target_ops) <to_enable_btrace>: Use
10992 TARGET_DEFAULT_NORETURN.
10993
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target-delegates.c: Rebuild.
10997 * target.c (target_read_btrace): Unconditionally delegate.
10998 * target.h (struct target_ops) <to_read_btrace>: Use
10999 TARGET_DEFAULT_NORETURN.
11000
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (target_teardown_btrace): Unconditionally delegate.
11005 * target.h (struct target_ops) <to_teardown_btrace>: Use
11006 TARGET_DEFAULT_NORETURN.
11007
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target-delegates.c: Rebuild.
11011 * target.c (target_disable_btrace): Unconditionally delegate.
11012 * target.h (struct target_ops) <to_disable_btrace>: Use
11013 TARGET_DEFAULT_NORETURN.
11014
11015 2014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target-delegates.c: Rebuild.
11018 * target.c (default_search_memory): New function.
11019 (simple_search_memory): Update comment.
11020 (target_search_memory): Unconditionally delegate.
11021 * target.h (struct target_ops) <to_search_memory>: Use
11022 TARGET_DEFAULT_FUNC.
11023
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * auxv.c (default_auxv_parse): No longer static.
11027 (target_auxv_parse): Unconditionally delegate.
11028 * auxv.h (default_auxv_parse): Declare.
11029 * target-delegates.c: Rebuild.
11030 * target.c: Include auxv.h.
11031 * target.h (struct target_ops) <to_auxv_parse>: Use
11032 TARGET_DEFAULT_FUNC.
11033
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target-delegates.c: Rebuild.
11037 * target.c (target_memory_map): Unconditionally delegate.
11038 * target.h (struct target_ops) <to_memory_map>: Use
11039 TARGET_DEFAULT_RETURN.
11040
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target-delegates.c: Rebuild.
11044 * target.c (target_thread_alive): Unconditionally delegate.
11045 * target.h (struct target_ops) <to_thread_alive>: Use
11046 TARGET_DEFAULT_RETURN.
11047
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target-delegates.c: Rebuild.
11051 * target.c (target_save_record): Unconditionally delegate.
11052 * target.h (struct target_ops) <to_save_record>: Use
11053 TARGET_DEFAULT_NORETURN.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (target_delete_record): Unconditionally delegate.
11059 * target.h (struct target_ops) <to_delete_record>: Use
11060 TARGET_DEFAULT_NORETURN.
11061
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target-delegates.c: Rebuild.
11065 * target.c (target_record_is_replaying): Unconditionally
11066 delegate.
11067 * target.h (struct target_ops) <to_record_is_replaying>: Use
11068 TARGET_DEFAULT_RETURN.
11069
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (target_goto_record_begin): Unconditionally delegate.
11074 * target.h (struct target_ops) <to_goto_record_begin>: Use
11075 TARGET_DEFAULT_NORETURN.
11076
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (target_goto_record_end): Unconditionally delegate.
11081 * target.h (struct target_ops) <to_goto_record_end>: Use
11082 TARGET_DEFAULT_NORETURN.
11083
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target-delegates.c: Rebuild.
11087 * target.c (target_goto_record): Unconditionally delegate.
11088 * target.h (struct target_ops) <to_goto_record>: Use
11089 TARGET_DEFAULT_NORETURN.
11090
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target-delegates.c: Rebuild.
11094 * target.c (target_insn_history): Unconditionally delegate.
11095 * target.h (struct target_ops) <to_insn_history>: Use
11096 TARGET_DEFAULT_NORETURN.
11097
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target-delegates.c: Rebuild.
11101 * target.c (target_insn_history_from): Unconditionally delegate.
11102 * target.h (struct target_ops) <to_insn_history_from>: Use
11103 TARGET_DEFAULT_NORETURN.
11104
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target-delegates.c: Rebuild.
11108 * target.c (target_insn_history_range): Unconditionally delegate.
11109 * target.h (struct target_ops) <to_insn_history_range>: Use
11110 TARGET_DEFAULT_NORETURN.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target-delegates.c: Rebuild.
11115 * target.c (target_call_history): Unconditionally delegate.
11116 * target.h (struct target_ops) <to_call_history>: Use
11117 TARGET_DEFAULT_NORETURN.
11118
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target-delegates.c: Rebuild.
11122 * target.c (target_call_history_from): Unconditionally delegate.
11123 * target.h (struct target_ops) <to_call_history_from>: Use
11124 TARGET_DEFAULT_NORETURN.
11125
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (target_call_history_range): Unconditionally delegate.
11130 * target.h (struct target_ops) <to_call_history_range>: Use
11131 TARGET_DEFAULT_NORETURN.
11132
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target-delegates.c: Rebuild.
11136 * target.c (target_verify_memory): Unconditionally delegate.
11137 * target.h (struct target_ops) <to_verify_memory>: Use
11138 TARGET_DEFAULT_NORETURN.
11139
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target-delegates.c: Rebuild.
11143 * target.c (target_core_of_thread): Unconditionally delegate.
11144 * target.h (struct target_ops) <to_core_of_thread>: Use
11145 TARGET_DEFAULT_RETURN.
11146
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target-delegates.c: Rebuild.
11150 * target.c (target_flash_done): Unconditionally delegate.
11151 * target.h (struct target_ops) <to_flash_done>: Use
11152 TARGET_DEFAULT_NORETURN.
11153
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target-delegates.c: Rebuild.
11157 * target.c (target_flash_erase): Unconditionally delegate.
11158 * target.h (struct target_ops) <to_flash_erase>: Use
11159 TARGET_DEFAULT_NORETURN.
11160
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target-delegates.c: Rebuild.
11164 * target.c (target_get_section_table): Unconditionally delegate.
11165 * target.h (struct target_ops) <to_get_section_table>: Use
11166 TARGET_DEFAULT_RETURN.
11167
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target-delegates.c: Rebuild.
11171 * target.c (target_pid_to_str): Unconditionally delegate.
11172 (init_dummy_target): Don't initialize to_pid_to_str.
11173 (default_pid_to_str): Rename from dummy_pid_to_str.
11174 * target.h (struct target_ops) <to_pid_to_str>: Use
11175 TARGET_DEFAULT_FUNC.
11176
11177 2014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target-delegates.c: Rebuild.
11180 * target.c (target_find_new_threads): Unconditionally delegate.
11181 * target.h (struct target_ops) <to_find_new_threads>: Use
11182 TARGET_DEFAULT_RETURN.
11183
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.c (target_program_signals): Unconditionally delegate.
11188 * target.h (struct target_ops) <to_program_signals>: Use
11189 TARGET_DEFAULT_IGNORE.
11190
11191 2014-02-19 Tom Tromey <tromey@redhat.com>
11192
11193 * target-delegates.c: Rebuild.
11194 * target.c (target_pass_signals): Unconditionally delegate.
11195 * target.h (struct target_ops) <to_pass_signals>: Use
11196 TARGET_DEFAULT_IGNORE.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target-delegates.c: Rebuild.
11201 * target.c (default_mourn_inferior): New function.
11202 (target_mourn_inferior): Unconditionally delegate.
11203 * target.h (struct target_ops) <to_mourn_inferior>: Use
11204 TARGET_DEFAULT_FUNC.
11205
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target-delegates.c: Rebuild.
11209 * target.c (default_follow_fork): New function.
11210 (target_follow_fork): Unconditionally delegate.
11211 * target.h (struct target_ops) <to_follow_fork>: Use
11212 TARGET_DEFAULT_FUNC.
11213
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * target-delegates.c: Rebuild.
11217 * target.c (target_kill): Unconditionally delegate.
11218 * target.h (struct target_ops) <to_kill>: Use
11219 TARGET_DEFAULT_NORETURN.
11220
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * target-delegates.c: Rebuild.
11224 * target.c (target_masked_watch_num_registers): Unconditionally
11225 delegate.
11226 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11227 Use TARGET_DEFAULT_RETURN.
11228
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * target-delegates.c: Rebuild.
11232 * target.c (target_remove_mask_watchpoint): Unconditionally
11233 delegate.
11234 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11235 TARGET_DEFAULT_RETURN.
11236
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target-delegates.c: Rebuild.
11240 * target.c (target_insert_mask_watchpoint): Unconditionally
11241 delegate.
11242 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11243 TARGET_DEFAULT_RETURN.
11244
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target-delegates.c: Rebuild.
11248 * target.c (target_ranged_break_num_registers): Unconditionally
11249 delegate.
11250 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11251 Use TARGET_DEFAULT_RETURN.
11252
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (target_fetch_registers): Unconditionally delegate.
11257 * target.h (struct target_ops) <to_fetch_registers>: Use
11258 TARGET_DEFAULT_NORETURN.
11259
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target-delegates.c: Rebuild.
11263 * target.c (update_current_target): Don't inherit or default
11264 to_stop.
11265 * target.h (struct target_ops) <to_stop>: Use
11266 TARGET_DEFAULT_IGNORE.
11267
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target-delegates.c: Rebuild.
11271 * target.c (update_current_target): Don't inherit or default
11272 to_can_run_breakpoint_commands.
11273 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11274 Use TARGET_DEFAULT_RETURN.
11275
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target-delegates.c: Rebuild.
11279 * target.c (update_current_target): Don't inherit or default
11280 to_supports_evaluation_of_breakpoint_conditions.
11281 * target.h (struct target_ops)
11282 <to_supports_evaluation_of_breakpoint_conditions>: Use
11283 TARGET_DEFAULT_RETURN.
11284
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target-delegates.c: Rebuild.
11288 * target.c (update_current_target): Don't inherit or default
11289 to_augmented_libraries_svr4_read.
11290 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11291 Use TARGET_DEFAULT_RETURN.
11292
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target-delegates.c: Rebuild.
11296 * target.c (update_current_target): Don't inherit or default
11297 to_can_use_agent.
11298 * target.h (struct target_ops) <to_can_use_agent>: Use
11299 TARGET_DEFAULT_RETURN.
11300
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target-delegates.c: Rebuild.
11304 * target.c (update_current_target): Don't inherit or default
11305 to_use_agent.
11306 * target.h (struct target_ops) <to_use_agent>: Use
11307 TARGET_DEFAULT_NORETURN.
11308
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_traceframe_info.
11314 (return_null): Remove.
11315 * target.h (struct target_ops) <to_traceframe_info>: Use
11316 TARGET_DEFAULT_RETURN.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (update_current_target): Don't inherit or default
11322 to_static_tracepoint_markers_by_strid.
11323 * target.h (struct target_ops)
11324 <to_static_tracepoint_markers_by_strid>: Use
11325 TARGET_DEFAULT_NORETURN.
11326
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11331 to_static_tracepoint_marker_at.
11332 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11333 Use TARGET_DEFAULT_RETURN.
11334
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target-delegates.c: Rebuild.
11338 * target.c (update_current_target): Don't inherit or default
11339 to_set_permissions.
11340 * target.h (struct target_ops) <to_set_permissions>: Use
11341 TARGET_DEFAULT_IGNORE.
11342
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (update_current_target): Don't inherit or default
11347 to_get_tib_address.
11348 * target.h (struct target_ops) <to_get_tib_address>: Use
11349 TARGET_DEFAULT_NORETURN.
11350
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_set_trace_notes.
11356 * target.h (struct target_ops) <to_set_trace_notes>: Use
11357 TARGET_DEFAULT_RETURN.
11358
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't initialize
11363 to_set_trace_buffer_size.
11364 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11365 TARGET_DEFAULT_IGNORE.
11366
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (update_current_target): Don't inherit or default
11371 to_set_circular_trace_buffer.
11372 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11373 TARGET_DEFAULT_IGNORE.
11374
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_set_disconnected_tracing.
11380 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11381 TARGET_DEFAULT_IGNORE.
11382
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't inherit or default
11387 to_get_min_fast_tracepoint_insn_len.
11388 (return_minus_one): Remove.
11389 * target.h (struct target_ops)
11390 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11391
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target-delegates.c: Rebuild.
11395 * target.c (update_current_target): Don't inherit or default
11396 to_get_raw_trace_data.
11397 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11398 TARGET_DEFAULT_NORETURN.
11399
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target-delegates.c: Rebuild.
11403 * target.c (update_current_target): Don't inherit or default
11404 to_upload_trace_state_variables.
11405 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11406 Use TARGET_DEFAULT_RETURN.
11407
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target-delegates.c: Rebuild.
11411 * target.c (update_current_target): Don't inherit or default
11412 to_upload_tracepoints.
11413 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11414 TARGET_DEFAULT_RETURN.
11415
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_save_trace_data.
11421 * target.h (struct target_ops) <to_save_trace_data>: Use
11422 TARGET_DEFAULT_NORETURN.
11423
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_get_trace_state_variable_value.
11429 * target.h (struct target_ops)
11430 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11436 to_trace_find.
11437 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11438
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_trace_stop.
11444 * target.h (struct target_ops) <to_trace_stop>: Use
11445 TARGET_DEFAULT_NORETURN.
11446
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_get_tracepoint_status.
11452 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11453 TARGET_DEFAULT_NORETURN.
11454
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11459 to_get_trace_status.
11460 * target.h (struct target_ops) <to_get_trace_status>: Use
11461 TARGET_DEFAULT_RETURN.
11462
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_trace_start.
11468 * target.h (struct target_ops) <to_trace_start>: Use
11469 TARGET_DEFAULT_NORETURN.
11470
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_trace_set_readonly_regions.
11476 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11477 Use TARGET_DEFAULT_NORETURN.
11478
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_disable_tracepoint.
11484 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11485 TARGET_DEFAULT_NORETURN.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_enable_tracepoint.
11492 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11493 TARGET_DEFAULT_NORETURN.
11494
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_download_trace_state_variable.
11500 * target.h (struct target_ops) <to_download_trace_state_variable>:
11501 Use TARGET_DEFAULT_NORETURN.
11502
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_can_download_tracepoint.
11508 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11509 TARGET_DEFAULT_RETURN.
11510
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_download_tracepoint.
11516 * target.h (struct target_ops) <to_download_tracepoint>: Use
11517 TARGET_DEFAULT_NORETURN.
11518
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_trace_init.
11524 * target.h (struct target_ops) <to_trace_init>: Use
11525 TARGET_DEFAULT_RETURN.
11526
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_supports_string_tracing.
11532 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11533 TARGET_DEFAULT_RETURN.
11534
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_supports_enable_disable_tracepoint.
11540 * target.h (struct target_ops)
11541 <to_supports_enable_disable_tracepoint>: Use
11542 TARGET_DEFAULT_RETURN.
11543
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_supports_multi_process.
11549 * target.h (struct target_ops) <to_supports_multi_process>: Use
11550 TARGET_DEFAULT_RETURN.
11551
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_get_ada_task_ptid.
11557 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11558 TARGET_DEFAULT_FUNC.
11559
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11564 to_thread_architecture.
11565 * target.h (struct target_ops) <to_thread_architecture>: Use
11566 TARGET_DEFAULT_FUNC.
11567
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_execution_direction.
11573 * target.h (struct target_ops) <to_execution_direction>: Use
11574 TARGET_DEFAULT_FUNC.
11575
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_can_execute_reverse.
11581 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11582 TARGET_DEFAULT_RETURN.
11583 (target_can_execute_reverse): Unconditionally delegate.
11584
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_goto_bookmark.
11590 (dummy_goto_bookmark): Remove.
11591 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11592 * target.h (struct target_ops) <to_goto_bookmark>: Use
11593 TARGET_DEFAULT_NORETURN.
11594
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_get_bookmark.
11600 (dummy_get_bookmark): Remove.
11601 (init_dummy_target): Don't inherit or default to_get_bookmark.
11602 * target.h (struct target_ops) <to_get_bookmark>: Use
11603 TARGET_DEFAULT_NORETURN
11604
11605 2014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11609 to_make_corefile_notes.
11610 (init_dummy_target): Don't initialize to_make_corefile_notes.
11611 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11612 TARGET_DEFAULT_FUNC.
11613
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target-delegates.c: Rebuild.
11617 * target.c (update_current_target): Don't inherit or default
11618 to_find_memory_regions.
11619 (init_dummy_target): Don't initialize to_find_memory_regions.
11620 * target.h (struct target_ops) <to_find_memory_regions>: Use
11621 TARGET_DEFAULT_FUNC.
11622
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11627 to_log_command.
11628 * target.h (struct target_ops) <to_log_command>: Use
11629 TARGET_DEFAULT_IGNORE.
11630 (target_log_command): Unconditionally delegate.
11631
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_pid_to_exec_file.
11637 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11638 TARGET_DEFAULT_RETURN.
11639
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_thread_name.
11645 (target_thread_name): Unconditionally delegate.
11646 * target.h (struct target_ops) <to_thread_name>: Use
11647 TARGET_DEFAULT_RETURN.
11648
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target-delegates.c: Rebuild.
11652 * target.c (update_current_target): Don't inherit or default
11653 to_extra_thread_info.
11654 * target.h (struct target_ops) <to_extra_thread_info>: Use
11655 TARGET_DEFAULT_RETURN.
11656
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11661 to_has_exited.
11662 * target.h (struct target_ops) <to_has_exited>: Use
11663 TARGET_DEFAULT_RETURN..
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_set_syscall_catchpoint.
11670 (return_one): Remove.
11671 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11672 TARGET_DEFAULT_RETURN.
11673
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target-delegates.c: Rebuild.
11677 * target.c (update_current_target): Don't inherit or default
11678 to_insert_exec_catchpoint.
11679 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11680 TARGET_DEFAULT_RETURN.
11681
11682 2014-01-08 Tom Tromey <tromey@redhat.com>
11683
11684 * target-delegates.c: Rebuild.
11685 * target.c (update_current_target): Don't inherit or default
11686 to_insert_exec_catchpoint.
11687 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11688 TARGET_DEFAULT_RETURN.
11689
11690 2014-02-19 Tom Tromey <tromey@redhat.com>
11691
11692 * target-delegates.c: Rebuild.
11693 * target.c (update_current_target): Don't inherit or default
11694 to_remove_vfork_catchpoint.
11695 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11696 TARGET_DEFAULT_RETURN.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11702 to_insert_vfork_catchpoint.
11703 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11704 TARGET_DEFAULT_RETURN.
11705
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't inherit or default
11710 to_remove_fork_catchpoint.
11711 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11712 TARGET_DEFAULT_RETURN.
11713
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * target-delegates.c: Rebuild.
11717 * target.c (update_current_target): Don't inherit or default
11718 to_insert_fork_catchpoint.
11719 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11720 TARGET_DEFAULT_RETURN.
11721
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target-delegates.c: Rebuild.
11725 * target.c (update_current_target): Don't inherit or default
11726 to_post_startup_inferior.
11727 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11728 TARGET_DEFAULT_IGNORE.
11729
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target-delegates.c: Rebuild.
11733 * target.c (update_current_target): Don't inherit or default
11734 to_load.
11735 * target.h (struct target_ops) <to_load>: Use
11736 TARGET_DEFAULT_NORETURN.
11737
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11739
11740 * target-delegates.c: Rebuild.
11741 * target.c (update_current_target): Don't inherit or default
11742 to_terminal_info.
11743 * target.h (struct target_ops) <to_terminal_info>: Use
11744 TARGET_DEFAULT_FUNC.
11745
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11747
11748 * target-delegates.c: Rebuild.
11749 * target.c (update_current_target): Don't inherit or default
11750 to_terminal_save_ours.
11751 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11752 TARGET_DEFAULT_IGNORE.
11753
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_terminal_ours.
11759 * target.h (struct target_ops) <to_terminal_ours>: Use
11760 TARGET_DEFAULT_IGNORE.
11761
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_terminal_ours_for_output.
11767 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11768 TARGET_DEFAULT_IGNORE.
11769
11770 2014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_terminal_inferior.
11775 * target.h (struct target_ops) <to_terminal_inferior>: Use
11776 TARGET_DEFAULT_IGNORE.
11777
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_terminal_init.
11783 * target.h (struct target_ops) <to_terminal_init>: Use
11784 TARGET_DEFAULT_IGNORE.
11785
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't inherit or default
11790 to_can_accel_watchpoint_condition.
11791 * target.h (struct target_ops)
11792 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11793
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_region_ok_for_hw_watchpoint.
11799 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11800 Use TARGET_DEFAULT_FUNC.
11801
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_watchpoint_addr_within_range.
11807 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11808 Use TARGET_DEFAULT_FUNC.
11809
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_remove_watchpoint.
11815 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11816 TARGET_DEFAULT_NORETURN.
11817
11818 2014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target-delegates.c: Rebuild.
11821 * target.c (update_current_target): Don't inherit or default
11822 to_insert_watchpoint.
11823 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11824 TARGET_DEFAULT_RETURN.
11825
11826 2014-02-19 Tom Tromey <tromey@redhat.com>
11827
11828 * target-delegates.c: Rebuild.
11829 * target.c (update_current_target): Don't inherit or default
11830 to_remove_hw_breakpoint.
11831 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11832 TARGET_DEFAULT_RETURN.
11833
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * target-delegates.c: Rebuild.
11837 * target.c (update_current_target): Don't inherit or default
11838 to_insert_hw_breakpoint.
11839 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11840 TARGET_DEFAULT_RETURN.
11841
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11843
11844 * target-delegates.c: Rebuild.
11845 * target.c (update_current_target): Don't inherit or default
11846 to_can_use_hw_breakpoint.
11847 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11848 TARGET_DEFAULT_RETURN.
11849
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target-delegates.c: Rebuild.
11853 * target.c (update_current_target): Don't inherit or default
11854 to_files_info.
11855 * target.h (struct target_ops) <to_files_info>: Use
11856 TARGET_DEFAULT_IGNORE.
11857
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_store.
11863 * target.h (struct target_ops) <to_store>: Use
11864 TARGET_DEFAULT_NORETURN.
11865
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_post_attach.
11871 * target.h (struct target_ops) <to_post_attach>: Use
11872 TARGET_DEFAULT_IGNORE.
11873
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11878 to_rcmd.
11879 (default_rcmd): New function.
11880 (do_monitor_command): Unconditionally delegate.
11881 * target.h (struct target_ops) <to_rmcd>: Use
11882 TARGET_DEFAULT_FUNC.
11883
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11885
11886 * target-delegates.c: Rebuild.
11887 * target.c (init_dummy_target): Don't initialize to_attach.
11888 (target_attach): Unconditionally delegate.
11889 * target.h (struct target_ops) <to_attach>: Use
11890 TARGET_DEFAULT_FUNC.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target-delegates.c: Rebuild.
11895 * target.c (target_detach): Unconditionally delegate.
11896 (init_dummy_target): Don't initialize to_detach.
11897 * target.h (struct target_ops) <to_detach>: Use
11898 TARGET_DEFAULT_IGNORE.
11899
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11903 Add argument.
11904 (target_augmented_libraries_svr4_read): Add argument.
11905 * target.c (update_current_target): Update.
11906 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11907 argument.
11908
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target.h (struct target_ops) <to_call_history_range>: Add
11912 argument.
11913 * target.c (target_call_history_range): Add argument.
11914 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11915 argument.
11916 (record_btrace_call_history_from): Update.
11917
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * target.h (struct target_ops) <to_call_history_from>: Add
11921 argument.
11922 * target.c (target_call_history_from): Add argument.
11923 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11924 argument.
11925
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (struct target_ops) <to_call_history>: Add argument.
11929 * target.c (target_call_history): Add argument.
11930 * record-btrace.c (record_btrace_call_history): Add 'self'
11931 argument.
11932
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target.h (struct target_ops) <to_insn_history_range>: Add
11936 argument.
11937 * target.c (target_insn_history_range): Add argument.
11938 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11939 argument.
11940 (record_btrace_insn_history_from): Update.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops) <to_insn_history_from>: Add
11945 argument.
11946 * target.c (target_insn_history_from): Add argument.
11947 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11948 argument.
11949
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_insn_history>: Add argument.
11953 * target.c (target_insn_history): Add argument.
11954 * record-btrace.c (record_btrace_insn_history): Add 'self'
11955 argument.
11956
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target.h (struct target_ops) <to_goto_record>: Add argument.
11960 * target.c (target_goto_record): Add argument.
11961 * record-full.c (record_full_goto): Add 'self' argument.
11962 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11963
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11967 * target.c (target_goto_record_end): Add argument.
11968 * record-full.c (record_full_goto_end): Add 'self' argument.
11969 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11970
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11972
11973 * target.h (struct target_ops) <to_goto_record_begin>: Add
11974 argument.
11975 * target.c (target_goto_record_begin): Add argument.
11976 * record-full.c (record_full_goto_begin): Add 'self' argument.
11977 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11978 argument.
11979
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * target.h (struct target_ops) <to_record_is_replaying>: Add
11983 argument.
11984 * target.c (target_record_is_replaying): Add argument.
11985 * record-full.c (record_full_is_replaying): Add 'self' argument.
11986 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11987 argument.
11988 (record_btrace_xfer_partial, record_btrace_store_registers)
11989 (record_btrace_prepare_to_store, record_btrace_resume)
11990 (record_btrace_wait, record_btrace_decr_pc_after_break)
11991 (record_btrace_find_new_threads, record_btrace_thread_alive):
11992 Update.
11993
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11995
11996 * target.h (struct target_ops) <to_delete_record>: Add argument.
11997 * target.c (target_delete_record): Add argument.
11998 * record-full.c (record_full_delete): Add 'self' argument.
11999
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target.h (struct target_ops) <to_save_record>: Add argument.
12003 * target.c (target_save_record): Add argument.
12004 * record-full.c (record_full_save): Add 'self' argument.
12005 (record_full_save): Add 'self' argument.
12006
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target.h (struct target_ops) <to_info_record>: Add argument.
12010 * target.c (target_info_record): Add argument.
12011 * record.c (info_record_command): Add argument.
12012 * record-full.c (record_full_info): Add 'self' argument.
12013 * record-btrace.c (record_btrace_info): Add 'self' argument.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12018 * target.c (target_stop_recording): Add argument.
12019 * record.c (record_stop): Add argument.
12020 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12021 argument.
12022
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12026 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12027 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12028 argument.
12029 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12030 (_initialize_amd64_linux_nat): Use it.
12031 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12032 (_initialize_i386_linux_nat): Use it.
12033
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12037 * target.c (target_teardown_btrace): Add argument.
12038 * remote.c (remote_teardown_btrace): Add 'self' argument.
12039 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12040 argument.
12041 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12042 argument.
12043
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12047 * target.c (target_disable_btrace): Add argument.
12048 * remote.c (remote_disable_btrace): Add 'self' argument.
12049 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12050 argument.
12051 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12052 argument.
12053
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12057 * target.c (target_enable_btrace): Add argument.
12058 * remote.c (remote_enable_btrace): Add 'self' argument.
12059 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12060 argument.
12061 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12062 argument.
12063
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12067 (target_can_use_agent): Add argument.
12068 * target.c (update_current_target): Update.
12069 * remote.c (remote_can_use_agent): Add 'self' argument.
12070 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12071
12072 2014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target.h (struct target_ops) <to_use_agent>: Add argument.
12075 (target_use_agent): Add argument.
12076 * target.c (update_current_target): Update.
12077 * remote.c (remote_use_agent): Add 'self' argument.
12078 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12079
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12083 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12084 (target_traceframe_info): Add argument.
12085 * target.c (update_current_target): Update.
12086 * remote.c (remote_traceframe_info): Add 'self' argument.
12087 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12088
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target.h (target_static_tracepoint_markers_by_strid): Add
12092 argument.
12093 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12094 'self' argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (struct target_ops)
12097 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12098 * linux-nat.c (struct target_ops)
12099 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12100
12101 2014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12104 Add argument.
12105 (target_static_tracepoint_marker_at): Add argument.
12106 * target.c (update_current_target): Update.
12107 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12108 argument.
12109
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12113 (target_set_permissions): Add argument.
12114 * target.c (update_current_target): Update.
12115 * remote.c (remote_set_permissions): Add 'self' argument.
12116 (remote_start_remote): Update.
12117
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12121 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12122 (target_get_tib_address): Add argument.
12123 * target.c (update_current_target): Update.
12124 * remote.c (remote_get_tib_address): Add 'self' argument.
12125
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12129 (target_set_trace_notes): Add argument.
12130 * target.c (update_current_target): Update.
12131 * remote.c (remote_set_trace_notes): Add 'self' argument.
12132
12133 2014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12136 argument.
12137 (target_set_trace_buffer_size): Add argument.
12138 * target.c (update_current_target): Update.
12139 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12140
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12144 argument.
12145 (target_set_circular_trace_buffer): Add argument.
12146 * target.c (update_current_target): Update.
12147 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12148 argument.
12149
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12153 argument.
12154 (target_set_disconnected_tracing): Add argument.
12155 * target.c (update_current_target): Update.
12156 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12157
12158 2014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target.h (struct target_ops)
12161 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12162 (target_get_min_fast_tracepoint_insn_len): Add argument.
12163 * target.c (update_current_target): Update.
12164 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12165 argument.
12166
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12168
12169 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12170 argument.
12171 (target_get_raw_trace_data): Add argument.
12172 * target.c (update_current_target): Update.
12173 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12174
12175 2014-02-19 Tom Tromey <tromey@redhat.com>
12176
12177 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12178 Add argument.
12179 (target_upload_trace_state_variables): Add argument.
12180 * target.c (update_current_target): Update.
12181 * remote.c (remote_upload_trace_state_variables): Add 'self'
12182 argument.
12183 (remote_start_remote): Update.
12184
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12188 argument.
12189 (target_upload_tracepoints): Add argument.
12190 * target.c (update_current_target): Update.
12191 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12192 (remote_start_remote): Update.
12193
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12195
12196 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12197 (target_save_trace_data): Add argument.
12198 * target.c (update_current_target): Update.
12199 * remote.c (remote_save_trace_data): Add 'self' argument.
12200
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12204 argument.
12205 * target.h (struct target_ops)
12206 <to_get_trace_state_variable_value>: Add argument.
12207 (target_get_trace_state_variable_value): Add argument.
12208 * target.c (update_current_target): Update.
12209 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12210 argument.
12211 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12212
12213 2014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12216 * target.h (struct target_ops) <to_trace_find>: Add argument.
12217 (target_trace_find): Add argument.
12218 * target.c (update_current_target): Update.
12219 * remote.c (remote_trace_find): Add 'self' argument.
12220 * ctf.c (ctf_trace_find): Add 'self' argument.
12221
12222 2014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12225 (target_trace_stop): Add argument.
12226 * target.c (update_current_target): Update.
12227 * remote.c (remote_trace_stop): Add 'self' argument.
12228
12229 2014-02-19 Tom Tromey <tromey@redhat.com>
12230
12231 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12232 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12233 argument.
12234 (target_get_tracepoint_status): Add argument.
12235 * target.c (update_current_target): Update.
12236 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12237
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12241 * target.h (struct target_ops) <to_get_trace_status>: Add
12242 argument.
12243 (target_get_trace_status): Add argument.
12244 * target.c (update_current_target): Update.
12245 * remote.c (remote_get_trace_status): Add 'self' argument.
12246 (remote_start_remote, remote_can_download_tracepoint): Update.
12247 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12248
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target.h (struct target_ops) <to_trace_start>: Add argument.
12252 (target_trace_start): Add argument.
12253 * target.c (update_current_target): Update.
12254 * remote.c (remote_trace_start): Add 'self' argument.
12255
12256 2014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12259 Add argument.
12260 (target_trace_set_readonly_regions): Add argument.
12261 * target.c (update_current_target): Update.
12262 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12263 argument.
12264
12265 2014-02-19 Tom Tromey <tromey@redhat.com>
12266
12267 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12268 argument.
12269 (target_disable_tracepoint): Add argument.
12270 * target.c (update_current_target): Update.
12271 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12272
12273 2014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12276 argument.
12277 (target_enable_tracepoint): Add argument.
12278 * target.c (update_current_target): Update.
12279 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12280
12281 2014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target.h (struct target_ops) <to_download_trace_state_variable>:
12284 Add argument.
12285 (target_download_trace_state_variable): Add argument.
12286 * target.c (update_current_target): Update.
12287 * remote.c (remote_download_trace_state_variable): Add 'self'
12288 argument.
12289
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12293 argument.
12294 (target_can_download_tracepoint): Add argument.
12295 * target.c (update_current_target): Update.
12296 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12297
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target.h (struct target_ops) <to_download_tracepoint>: Add
12301 argument.
12302 (target_download_tracepoint): Add argument.
12303 * target.c (update_current_target): Update.
12304 * remote.c (remote_download_tracepoint): Add 'self' argument.
12305
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * target.h (struct target_ops) <to_trace_init>: Add argument.
12309 (target_trace_init): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_trace_init): Add 'self' argument.
12312
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12316 * target.c (target_fileio_readlink): Add argument.
12317 * remote.c (remote_hostio_readlink): Add 'self' argument.
12318 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12319
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12323 * target.c (target_fileio_unlink): Add argument.
12324 * remote.c (remote_hostio_unlink): Add 'self' argument.
12325 (remote_file_delete): Update.
12326 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12327
12328 2014-02-19 Tom Tromey <tromey@redhat.com>
12329
12330 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12331 * target.c (target_fileio_close): Add argument.
12332 * remote.c (remote_hostio_close): Add 'self' argument.
12333 (remote_hostio_close_cleanup): Update.
12334 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12335 Update.
12336 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12337
12338 2014-02-19 Tom Tromey <tromey@redhat.com>
12339
12340 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12341 * target.c (target_fileio_pread): Add argument.
12342 * remote.c (remote_hostio_pread): Add 'self' argument.
12343 (remote_bfd_iovec_pread, remote_file_get): Update.
12344 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12345
12346 2014-02-19 Tom Tromey <tromey@redhat.com>
12347
12348 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12349 * target.c (target_fileio_pwrite): Add argument.
12350 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12351 (remote_file_put): Update.
12352 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12353
12354 2014-02-19 Tom Tromey <tromey@redhat.com>
12355
12356 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12357 * target.c (target_fileio_open): Add argument.
12358 * remote.c (remote_hostio_open): Add 'self' argument.
12359 (remote_bfd_iovec_open): Add 'self' argument.
12360 (remote_file_put): Add 'self' argument.
12361 (remote_file_get): Add 'self' argument.
12362 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12363
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12367 Add argument.
12368 (target_can_run_breakpoint_commands): Add argument.
12369 * target.c (update_current_target): Update.
12370 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12371 argument.
12372 (remote_insert_breakpoint): Add 'self' argument.
12373 (remote_insert_hw_breakpoint): Add 'self' argument.
12374 (remote_can_run_breakpoint_commands): Add 'self' argument.
12375
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12377
12378 * target.h (struct target_ops)
12379 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12380 (target_supports_evaluation_of_breakpoint_conditions): Add
12381 argument.
12382 * target.c (update_current_target): Update.
12383 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12384 argument.
12385 (remote_insert_breakpoint): Add 'self' argument.
12386 (remote_insert_hw_breakpoint): Add 'self' argument.
12387 (remote_supports_cond_breakpoints): Add 'self' argument.
12388
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12392 argument.
12393 (target_supports_string_tracing): Add argument.
12394 * target.c (update_current_target): Update.
12395 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12396
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops)
12400 <to_supports_disable_randomization>: Add argument.
12401 * target.c (find_default_supports_disable_randomization): Add
12402 argument.
12403 (target_supports_disable_randomization): Add argument.
12404 (find_default_supports_disable_randomization): Add 'self'
12405 argument.
12406 * remote.c (extended_remote_supports_disable_randomization): Add
12407 'self' argument.
12408 (remote_supports_disable_randomization): Add 'self' argument.
12409 (extended_remote_create_inferior): Update.
12410 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12411 'self' argument.
12412
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target.h (struct target_ops)
12416 <to_supports_enable_disable_tracepoint>: Add argument.
12417 (target_supports_enable_disable_tracepoint): Add argument.
12418 * target.c (update_current_target): Update.
12419 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12420 argument.
12421
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12423
12424 * target.h (struct target_ops) <to_supports_multi_process>: Add
12425 argument.
12426 (target_supports_multi_process): Add argument.
12427 * target.c (update_current_target): Update.
12428 * remote.c (remote_supports_multi_process): Add 'self' argument.
12429 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12430 argument.
12431 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12432 argument.
12433
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target.h (struct target_ops) <to_execution_direction>: Add
12437 argument.
12438 (target_execution_direction): Add argument.
12439 * target.c (default_execution_direction): Add 'self' argument.
12440 * record-full.c (record_full_execution_direction): Add 'self'
12441 argument.
12442
12443 2014-02-19 Tom Tromey <tromey@redhat.com>
12444
12445 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12446 argument.
12447 (target_can_execute_reverse): Add argument.
12448 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12449 * record-full.c (record_full_can_execute_reverse): Add 'self'
12450 argument.
12451 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12452 argument.
12453
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12457 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12458 argument.
12459 (target_get_ada_task_ptid): Add argument.
12460 * target.c (update_current_target): Update.
12461 (default_get_ada_task_ptid): Add 'self' argument.
12462 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12463 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12464 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12465 argument.
12466 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12467 argument.
12468 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12469 argument.
12470 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12471 argument.
12472 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12473 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12474 argument.
12475
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12479 (target_goto_bookmark): Add argument.
12480 * target.c (dummy_goto_bookmark): Add 'self' argument.
12481 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12482
12483 2014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12486 (target_get_bookmark): Add argument.
12487 * target.c (dummy_get_bookmark): Add 'self' argument.
12488 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12489
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12493 argument.
12494 (target_make_corefile_notes): Add argument.
12495 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12496 * procfs.c (procfs_make_note_section): Add 'self' argument.
12497 (procfs_make_note_section): Add 'self' argument.
12498 (procfs_make_note_section): Add 'self' argument.
12499 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12500 argument.
12501 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12502 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12503 * exec.c (exec_make_note_section): Add 'self' argument.
12504 (exec_make_note_section): Add 'self' argument.
12505
12506 2014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target.h (struct target_ops) <to_find_memory_regions>: Add
12509 argument.
12510 (target_find_memory_regions): Add argument.
12511 * target.c (dummy_find_memory_regions): Add 'self' argument.
12512 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12513 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12514 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12515 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12516 * exec. (exec_do_find_memory_regions): New global.
12517 (exec_set_find_memory_regions): Rewrite.
12518 (exec_find_memory_regions): New function.
12519 (init_exec_ops): Use exec_find_memory_regions.
12520
12521 2014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * target.h (struct target_ops) <to_supports_non_stop>: Add
12524 argument.
12525 * target.c (find_default_supports_non_stop): Add argument.
12526 (target_supports_non_stop): Add argument.
12527 (find_default_supports_non_stop): Add 'self' argument.
12528 * remote.c (remote_supports_non_stop): Add 'self' argument.
12529 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12530
12531 2014-02-19 Tom Tromey <tromey@redhat.com>
12532
12533 * target.h (struct target_ops) <to_log_command>: Add argument.
12534 (target_log_command): Add argument.
12535 * serial.h (serial_log_command): Add 'self' argument.
12536 * serial.c (serial_log_command): Add 'self' argument.
12537
12538 2014-02-19 Tom Tromey <tromey@redhat.com>
12539
12540 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12541 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12542 argument.
12543 (target_pid_to_exec_file): Add argument.
12544 * target.c (debug_to_pid_to_exec_file): Add argument.
12545 (update_current_target): Update.
12546 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12547 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12548 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12549 (linux_handle_extended_wait): Update.
12550 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12551 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12552 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12553 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12554
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12556
12557 * target.h (struct target_ops) <to_rcmd>: Add argument.
12558 (target_rcmd): Add argument.
12559 * target.c (debug_to_rcmd): Add argument.
12560 (update_current_target, do_monitor_command): Update.
12561 * remote.c (remote_rcmd): Add 'self' argument.
12562 * monitor.c (monitor_rcmd): Add 'self' argument.
12563
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * windows-nat.c (windows_stop): Add 'self' argument.
12567 * target.h (struct target_ops) <to_stop>: Add argument.
12568 * target.c (target_stop): Add argument.
12569 (debug_to_stop): Add argument.
12570 (update_current_target): Update.
12571 * remote.c (remote_stop): Add 'self' argument.
12572 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12573 (gdbsim_cntrl_c): Update.
12574 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12575 * procfs.c (procfs_stop): Add 'self' argument.
12576 * nto-procfs.c (procfs_stop): Add 'self' argument.
12577 * monitor.c (monitor_stop): Add 'self' argument.
12578 (monitor_open): Update.
12579 * linux-nat.c (linux_nat_stop): Add argument.
12580 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12581 * gnu-nat.c (gnu_stop): Add 'self' argument.
12582 * darwin-nat.c (darwin_stop): Add 'self' argument.
12583
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_thread_name>: Add argument.
12587 * target.c (target_thread_name): Add argument.
12588 (update_current_target): Update.
12589 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12590
12591 2014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target.h (struct target_ops) <to_extra_thread_info>: Add
12594 argument.
12595 (target_extra_thread_info): Add argument.
12596 * target.c (update_current_target): Update.
12597 * remote.c (remote_threads_extra_info): Add 'self' argument.
12598 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12599 argument.
12600 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12601 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12602 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12603 argument.
12604 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12605 argument.
12606 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12607 argument.
12608 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12609 argument.
12610
12611 2014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target.h (struct target_ops) <to_program_signals>: Add argument.
12614 * target.c (target_program_signals): Add argument.
12615 * remote.c (remote_program_signals): Add 'self' argument.
12616
12617 2014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12620 * target.c (target_pass_signals): Add argument.
12621 * remote.c (remote_pass_signals): Add 'self' argument.
12622 (remote_start_remote): Update.
12623 * procfs.c (procfs_pass_signals): Add 'self' argument.
12624 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12625 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12626 (linux_nat_create_inferior, linux_nat_attach): Update.
12627
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * windows-nat.c (windows_can_run): Add 'self' argument.
12631 * target.h (struct target_ops) <to_can_run>: Add argument.
12632 (target_can_run): Add argument.
12633 * target.c (debug_to_can_run): Add argument.
12634 (update_current_target): Update.
12635 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12636 * inf-child.c (inf_child_can_run): Add 'self' argument.
12637 * go32-nat.c (go32_can_run): Add 'self' argument.
12638
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_has_exited>: Add argument.
12642 (target_has_exited): Add argument.
12643 * target.c (debug_to_has_exited): Add argument.
12644 (update_current_target): Update.
12645
12646 2014-02-19 Tom Tromey <tromey@redhat.com>
12647
12648 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12649 argument.
12650 (target_set_syscall_catchpoint): Add argument.
12651 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12652 argument.
12653 * target.c (update_current_target): Update.
12654
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12656
12657 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12658 argument.
12659 (target_remove_exec_catchpoint): Add argument.
12660 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12661 (update_current_target): Update.
12662 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12663 argument.
12664
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12668 argument.
12669 (target_insert_exec_catchpoint): Add argument.
12670 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12671 (update_current_target): Update.
12672 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12673 argument.
12674
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12678 argument.
12679 (target_remove_vfork_catchpoint): Add argument.
12680 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12681 (update_current_target): Update.
12682 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12683 argument.
12684
12685 2014-02-19 Tom Tromey <tromey@redhat.com>
12686
12687 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12688 argument.
12689 (target_insert_vfork_catchpoint): Add argument.
12690 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12691 (update_current_target): Update.
12692 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12693 argument.
12694
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12698 argument.
12699 (target_remove_fork_catchpoint): Add argument.
12700 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12701 (update_current_target): Update.
12702 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12703 argument.
12704
12705 2014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12708 argument.
12709 (target_insert_fork_catchpoint): Add argument.
12710 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12711 (update_current_target): Update.
12712 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12713 argument.
12714
12715 2014-02-19 Tom Tromey <tromey@redhat.com>
12716
12717 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12718 argument.
12719 (target_post_startup_inferior): Add argument.
12720 * target.c (debug_to_post_startup_inferior): Add argument.
12721 (update_current_target): Update.
12722 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12723 argument.
12724 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12725 argument.
12726 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12727 argument.
12728 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12729 argument.
12730 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12731 'self' argument.
12732 (super_post_startup_inferior): Likewise.
12733 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12734 'self' argument.
12735 (super_post_startup_inferior): Likewise.
12736 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12737 Add 'self' argument.
12738 (super_post_startup_inferior): Likewise.
12739
12740 2014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * target.h (struct target_ops) <to_load>: Add argument.
12743 * target.c (target_load): Add argument.
12744 (debug_to_load): Add argument.
12745 (update_current_target): Update.
12746 * remote.c (remote_load): Add 'self' argument.
12747 * remote-sim.c (gdbsim_load): Add 'self' argument.
12748 * remote-mips.c (mips_load): Add 'self' argument.
12749 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12750 * monitor.c (monitor_load): Add 'self' argument.
12751 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12752
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12756 (target_terminal_info): Add argument.
12757 * target.c (debug_to_terminal_info): Add argument.
12758 (default_terminal_info): Likewise.
12759 * inflow.c (child_terminal_info): Add 'self' argument.
12760 * inferior.h (child_terminal_info): Add 'self' argument.
12761 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12762
12763 2014-02-19 Tom Tromey <tromey@redhat.com>
12764
12765 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12766 argument.
12767 (target_terminal_save_ours): Add argument.
12768 * target.c (debug_to_terminal_save_ours): Add argument.
12769 (update_current_target): Update.
12770 * inflow.c (terminal_save_ours): Add 'self' argument.
12771 * inferior.h (terminal_save_ours): Add 'self' argument.
12772
12773 2014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12776 (target_terminal_ours): Add argument.
12777 * target.c (debug_to_terminal_ours): Add argument.
12778 (update_current_target): Update.
12779 * remote.c (remote_terminal_ours): Add 'self' argument.
12780 (remote_close): Update.
12781 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12782 * inflow.c (terminal_ours): Add 'self' argument.
12783 * inferior.h (terminal_ours): Add 'self' argument.
12784 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12785
12786 2014-02-19 Pedro Alves <palves@redhat.com>
12787 Tom Tromey <tromey@redhat.com>
12788
12789 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12790 argument.
12791 (target_terminal_ours_for_output): Add argument.
12792 * target.c (debug_to_terminal_ours_for_output): Add argument.
12793 (update_current_target): Update.
12794 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12795 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12796 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12797
12798 2014-02-19 Tom Tromey <tromey@redhat.com>
12799
12800 * target.h (struct target_ops) <to_terminal_inferior>: Add
12801 argument.
12802 * target.c (target_terminal_inferior): Add argument.
12803 (update_current_target): Update.
12804 * remote.c (remote_terminal_inferior): Add 'self' argument.
12805 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12806 * inflow.c (terminal_inferior): Add 'self' argument.
12807 * inferior.h (terminal_inferior): Add 'self' argument.
12808 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12809 (go32_terminal_inferior): Add 'self' argument.
12810
12811 2014-02-19 Tom Tromey <tromey@redhat.com>
12812
12813 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12814 (target_terminal_init): Add argument.
12815 * target.c (debug_to_terminal_init): Add argument.
12816 (update_current_target): Update.
12817 * inflow.c (terminal_init_inferior): Add 'self' argument.
12818 * inferior.h (terminal_init_inferior): Add 'self' argument.
12819 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12820 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12821
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops)
12825 <to_can_accel_watchpoint_condition>: Add argument.
12826 (target_can_accel_watchpoint_condition): Add argument.
12827 * target.c (debug_to_can_accel_watchpoint_condition): Add
12828 argument.
12829 (update_current_target): Update.
12830 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12831 'self' argument.
12832
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12836 Add argument.
12837 (target_region_ok_for_hw_watchpoint): Add argument.
12838 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12839 (default_region_ok_for_hw_watchpoint): Add argument.
12840 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12841 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12842 argument.
12843 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12844 argument.
12845 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12846 argument.
12847 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12848 'self' argument.
12849 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12850 'self' argument.
12851 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12852 'self' argument.
12853 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12854 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12855 'self' argument.
12856 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12857 Add 'self' argument.
12858
12859 2014-02-19 Tom Tromey <tromey@redhat.com>
12860
12861 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12862 argument.
12863 (target_insert_watchpoint): Add argument.
12864 * target.c (debug_to_insert_watchpoint): Add argument.
12865 (update_current_target): Update.
12866 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12867 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12868 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12869 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12870 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12871 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12872 argument.
12873 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12874 (procfs_insert_hw_watchpoint): Add 'self' argument.
12875 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12876 argument.
12877 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12878 argument.
12879 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12880 argument.
12881 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12882 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12883 argument.
12884 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12885 'self' argument.
12886
12887 2014-02-19 Tom Tromey <tromey@redhat.com>
12888
12889 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12890 argument.
12891 (target_remove_watchpoint): Add argument.
12892 * target.c (debug_to_remove_watchpoint): Add argument.
12893 (update_current_target): Update.
12894 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12895 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12896 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12897 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12898 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12899 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12900 argument.
12901 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12902 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12903 argument.
12904 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12905 argument.
12906 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12907 argument.
12908 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12909 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12910 argument.
12911 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12912 'self' argument.
12913
12914 2014-02-19 Tom Tromey <tromey@redhat.com>
12915
12916 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12917 argument.
12918 (target_remove_hw_breakpoint): Add argument.
12919 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12920 (update_current_target): Update.
12921 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12922 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12923 argument.
12924 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12925 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12926 argument.
12927 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12928 'self' argument.
12929
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12933 argument.
12934 (target_insert_hw_breakpoint): Add argument.
12935 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12936 (update_current_target): Update.
12937 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12938 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12939 argument.
12940 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12941 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12942 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12943 argument.
12944 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12945 'self' argument.
12946
12947 2014-02-19 Tom Tromey <tromey@redhat.com>
12948
12949 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12950 argument.
12951 (target_can_use_hardware_watchpoint): Add argument.
12952 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12953 (update_current_target): Update.
12954 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12955 argument.
12956 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12957 argument.
12958 * remote.c (remote_check_watch_resources): Add 'self' argument.
12959 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12960 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12961 argument.
12962 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12963 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12964 argument.
12965 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12966 argument.
12967 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12968 argument.
12969 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12970 argument.
12971 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12972 argument.
12973 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12974 argument.
12975 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12976 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12977 argument.
12978 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12979 'self' argument.
12980
12981 2014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * target.h (struct target_ops) <to_post_attach>: Add argument.
12984 (target_post_attach): Add argument.
12985 * target.c (debug_to_post_attach): Add argument.
12986 (update_current_target): Update.
12987 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12988 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12989 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12990 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12991 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12992
12993 2014-02-19 Tom Tromey <tromey@redhat.com>
12994
12995 * windows-nat.c (windows_close): Add 'self' argument.
12996 * tracepoint.c (tfile_close): Add 'self' argument.
12997 * target.h (struct target_ops) <to_close>: Add argument.
12998 * target.c (target_close): Add argument.
12999 (update_current_target): Update.
13000 * remote.c (remote_close): Add 'self' argument.
13001 * remote-sim.c (gdbsim_close): Add 'self' argument.
13002 * remote-mips.c (mips_close): Add 'self' argument.
13003 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13004 * record-full.c (record_full_close): Add 'self' argument.
13005 * record-btrace.c (record_btrace_close): Add 'self' argument.
13006 * monitor.h (monitor_close): Add 'self' argument.
13007 * monitor.c (monitor_close): Add 'self' argument.
13008 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13009 * linux-nat.c (linux_nat_close): Add argument.
13010 * go32-nat.c (go32_close): Add 'self' argument.
13011 * exec.c (exec_close_1): Add 'self' argument.
13012 * ctf.c (ctf_close): Add 'self' argument.
13013 * corelow.c (core_close): Add 'self' argument.
13014 (core_close_cleanup): Update.
13015 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13016 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13017
13018 2014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * remote.c (remote_load): New function.
13021 (init_remote_ops): Use it.
13022
13023 2014-02-19 Tom Tromey <tromey@redhat.com>
13024
13025 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13026 argument.
13027 * common/linux-btrace.h (linux_supports_btrace): Update.
13028 * remote.c (remote_supports_btrace): Add "self" argument.
13029 * target-delegates.c: Rebuild.
13030 * target.c (target_supports_btrace): Remove.
13031 * target.h (struct target_ops) <to_supports_btrace>: Add
13032 target_ops argument.
13033 (target_supports_btrace): New define.
13034
13035 2014-02-19 Tom Tromey <tromey@redhat.com>
13036
13037 * record-full.c (record_full_beneath_to_resume_ops)
13038 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13039 (record_full_beneath_to_wait)
13040 (record_full_beneath_to_store_registers_ops)
13041 (record_full_beneath_to_store_registers)
13042 (record_full_beneath_to_xfer_partial_ops)
13043 (record_full_beneath_to_xfer_partial)
13044 (record_full_beneath_to_insert_breakpoint_ops)
13045 (record_full_beneath_to_insert_breakpoint)
13046 (record_full_beneath_to_remove_breakpoint_ops)
13047 (record_full_beneath_to_remove_breakpoint)
13048 (record_full_beneath_to_stopped_by_watchpoint)
13049 (record_full_beneath_to_stopped_data_address)
13050 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13051 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13052 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13053 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13054 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13055 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13056 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13057 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13058 (record_full_resume, record_full_wait_1)
13059 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13060 (record_full_store_registers, record_full_xfer_partial)
13061 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13062 (record_full_async, record_full_core_xfer_partial): Use target
13063 delegation.
13064 * target-delegates.c: Rebuild.
13065 * target.c (current_xfer_partial): Remove.
13066 (update_current_target): Do not INHERIT or de_fault
13067 to_insert_breakpoint, to_remove_breakpoint,
13068 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13069 to_is_async_p, to_async. Do not set to_xfer_partial field.
13070 (default_xfer_partial): Simplify.
13071 (current_xfer_partial): Remove.
13072 (target_wait, target_resume): Simplify.
13073 (find_default_can_async_p, find_default_is_async_p): Update.
13074 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13075 to_xfer_partial, to_stopped_by_watchpoint,
13076 to_stopped_data_address.
13077 (target_store_registers): Simplify.
13078 (forward_target_remove_breakpoint)
13079 (forward_target_insert_breakpoint): Remove.
13080 (target_remove_breakpoint, target_insert_breakpoint)
13081 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13082 * target.h (struct target_ops) <to_resume, to_wait,
13083 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13084 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13085 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13086 markup.
13087 (forward_target_remove_breakpoint)
13088 (forward_target_insert_breakpoint): Remove.
13089 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13090 directly.
13091 (record_btrace_insert_breakpoint): Delegate directly.
13092
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 PR build/7701:
13096 * target-delegates.c: New file.
13097 * target.c: Include target-delegates.c.
13098 (init_dummy_target): Call install_dummy_methods.
13099 (complete_target_initialization): Call install_delegators.
13100 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13101 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13102 * make-target-delegates: New file.
13103
13104 2014-02-19 Tom Tromey <tromey@redhat.com>
13105
13106 * record.c (find_record_target): Use find_target_at.
13107 * target.c (find_target_at): New function.
13108 * target.h (find_target_at): Declare.
13109
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13111
13112 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13113 Add 'ops' argument.
13114 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13115 'ops' argument.
13116 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13117 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13118 'ops' argument.
13119 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13120 argument.
13121 * linux-nat.c (save_sigtrap): Update.
13122 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13123 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13124 (linux_nat_close): Update.
13125 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13126 argument.
13127 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13128 argument.
13129 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13130 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13131 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13132 (tmp_to_async): Add 'ops' argument.
13133 (record_full_stopped_by_watchpoint, record_full_async)
13134 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13135 argument.
13136 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13137 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13138 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13139 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13140 (remote_is_async_p, remote_async): Add 'ops' argument.
13141 (remote_stopped_data_address): Update.
13142 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13143 * target.c (update_current_target)
13144 (find_default_can_async_p, find_default_is_async_p): Update.
13145 (init_dummy_target): Update.
13146 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13147 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13148 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13149 (target_can_async_p, target_is_async_p, target_async)
13150 (target_stopped_by_watchpoint): Update.
13151
13152 2014-02-19 Yao Qi <yao@codesourcery.com>
13153
13154 PR gdb/16220
13155 * gdbarch.sh: Remove startup_gdbarch.
13156 * gdbarch.c: Regenerated.
13157 * gdbarch.h: Likewise.
13158
13159 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13160
13161 * rl78-tdep.c (rl78_g10_register_name): New function.
13162 (rl78_return_value): Add g10 support.
13163 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13164 g10.
13165
13166 2014-02-17 Doug Evans <xdje42@gmail.com>
13167
13168 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13169 (SUBDIR_GUILE_SRCS): Ditto.
13170 (scm-gsmob.o): Ditto.
13171
13172 2014-02-17 Yao Qi <yao@codesourcery.com>
13173
13174 * gnu-nat.c (ILL_RPC): Declare defined function.
13175
13176 2014-02-17 Yao Qi <yao@codesourcery.com>
13177
13178 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13179 mach_msg_type_number_t.
13180 (gnu_write_inferior): Likewise.
13181
13182 2014-02-17 Yao Qi <yao@codesourcery.com>
13183
13184 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13185 in format string.
13186 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13187 (inf_validate_procs, inf_signal): Likewise.
13188 (S_exception_raise_request): Likewise.
13189 (do_mach_notify_dead_name): Likewise.
13190 (steal_exc_port): Likewise.
13191 (gnu_read_inferior): Change 'copy_count''s type to
13192 mach_msg_type_number_t.
13193 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13194 format string.
13195
13196 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13197
13198 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13199 flag. Adjust all users; in particular...
13200 (gnu_wait): ..., don't decrement its value in here...
13201 (gnu_create_inferior): ..., and instead set the flag in here,
13202 around the startup_inferior call, and call that one with
13203 START_INFERIOR_TRAPS_EXPECTED.
13204
13205 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13206 (ILL_RPC): ... new macro.
13207 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13208 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13209 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13210 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13211 functions with ILL_RPC macro.
13212 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13213 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13214 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13215 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13216 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13217 (S_proc_getlogin_reply, S_proc_getsid_reply)
13218 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13219 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13220 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13221 (S_proc_getnports_reply, S_proc_is_important_reply)
13222 (S_proc_get_code_reply): New stub functions, generated with
13223 ILL_RPC macro.
13224
13225 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13226 collected the type check structures.
13227
13228 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13229
13230 2014-02-14 Doug Evans <dje@google.com>
13231
13232 * target.c (target_write_partial): Fix result type.
13233
13234 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13235
13236 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13237 the proper offsets to access fpregset_t.
13238
13239 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13240
13241 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13242 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13243 * h8300-tdep.c (setmachinelist): Remove global.
13244 * hppa-tdep.c (hppa_sigtramp): Remove global.
13245 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13246 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13247 * ravenscar-thread.c (update_target_observer): Remove global.
13248 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13249
13250 2014-02-12 Tom Tromey <tromey@redhat.com>
13251
13252 * common/rsp-low.c: Update comments.
13253 * common/rsp-low.h: Update comments.
13254
13255 2014-02-12 Tom Tromey <tromey@redhat.com>
13256
13257 * common/rsp-low.c (convert_ascii_to_int): Remove.
13258 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13259
13260 2014-02-12 Tom Tromey <tromey@redhat.com>
13261
13262 * common/rsp-low.h (unhexify): Don't declare.
13263 * common/rsp-low.c (unhexify): Remove.
13264
13265 2014-02-12 Tom Tromey <tromey@redhat.com>
13266
13267 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13268 * common/rsp-low.c (convert_int_to_ascii): Remove.
13269
13270 2014-02-12 Tom Tromey <tromey@redhat.com>
13271
13272 * common/rsp-low.h (hexify): Don't declare.
13273 * common/rsp-low.c (hexify): Remove.
13274
13275 2014-02-12 Tom Tromey <tromey@redhat.com>
13276
13277 * common/rsp-low.c (hexify): Never take strlen of argument.
13278
13279 2014-02-12 Tom Tromey <tromey@redhat.com>
13280
13281 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13282 * remote.c (extended_remote_run, remote_rcmd)
13283 (remote_download_trace_state_variable, remote_save_trace_data)
13284 (remote_set_trace_notes): Update.
13285 * tracepoint.c (encode_source_string, tfile_write_status)
13286 (tfile_write_uploaded_tsv): Update.
13287
13288 2014-02-12 Tom Tromey <tromey@redhat.com>
13289
13290 * tracepoint.c: Include rsp-low.h.
13291 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13292 * remote.c: Include rsp-low.h.
13293 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13294 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13295 (remote_unescape_input): Move to common/rsp-low.c.
13296 * common/rsp-low.h: New file.
13297 * common/rsp-low.c: New file.
13298 * Makefile.in (SFILES): Add common/rsp-low.c.
13299 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13300 (COMMON_OBS): Add rsp-low.o.
13301 (rsp-low.o): New target.
13302
13303 2014-02-12 Tom Tromey <tromey@redhat.com>
13304
13305 * utils.h: Include print-utils.h.
13306 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13307 (int_string, core_addr_to_string, core_addr_to_string_nz)
13308 (hex_string, hex_string_custom): Don't declare.
13309 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13310 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13311 (hex_string_custom, int_string, core_addr_to_string)
13312 (core_addr_to_string_nz, host_address_to_string): Move to
13313 common/print-utils.c.
13314 * common/print-utils.h: New file.
13315 * common/print-utils.c: New file
13316 * Makefile.in (SFILES): Add common/print-utils.c.
13317 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13318 (COMMON_OBS): Add print-utils.o.
13319 (print-utils.o): New target.
13320
13321 2014-02-12 Tom Tromey <tromey@redhat.com>
13322
13323 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13324
13325 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13326
13327 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13328
13329 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13330
13331 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13332 if a PT_IO ptrace request returns sucessfully but indicates that 0
13333 bytes were transferred.
13334
13335 2014-02-12 Pedro Alves <palves@redhat.com>
13336 Kevin Buettner <kevinb@redhat.com>
13337
13338 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13339 TYPE_INSTANCE_FLAG_CODE_SPACE.
13340
13341 2014-02-12 Pedro Alves <palves@redhat.com>
13342
13343 * h8300-tdep.c (pseudo_from_raw_register)
13344 (raw_from_pseudo_register): New functions.
13345 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13346 them.
13347
13348 2014-02-12 Pedro Alves <palves@redhat.com>
13349
13350 * h8300-tdep.c (h8300_register_sim_regno): New function.
13351 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13352 gdbarch_register_sim_regno hook.
13353
13354 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13355
13356 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13357
13358 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13359
13360 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13361
13362 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13363
13364 * obsd-tdep.h (obsd_init_abi): New prototype.
13365 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13366 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13367 (obsd_init_abi): New functions.
13368 * i386obsd-tdep.c: Include "obsd-tdep.h".
13369 (i386obsd_init_abi): Call obsd_init_abi.
13370 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13371 (amd64obsd_init_abi): Call obsd_init_abi.
13372 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13373 obsd-tdep.c to gdb_target_obs.
13374
13375 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13376
13377 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13378 double float arguments to 16-byte in the argument slots.
13379
13380 2014-02-11 Doug Evans <xdje42@gmail.com>
13381
13382 * configure.ac: Don't crash if pkg-config is not found and guile
13383 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13384 in guile checks.
13385 * configure: Regenerate.
13386
13387 2014-02-11 Yao Qi <yao@codesourcery.com>
13388
13389 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13390 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13391 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13392 * gnu-nat.c (gnu_xfer_memory): Likewise.
13393 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13394 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13395 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13396 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13397
13398 2014-02-11 Yao Qi <yao@codesourcery.com>
13399
13400 * target.h (enum target_xfer_error): Rename to ...
13401 (enum target_xfer_status): ... it. New. All users updated.
13402 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13403 New.
13404 (TARGET_XFER_STATUS_ERROR_P): New macro.
13405 (target_xfer_error_to_string): Remove declaration.
13406 (target_xfer_status_to_string): Declare.
13407 (target_xfer_partial_ftype): Adjust it.
13408 (struct target_ops) <to_xfer_partial>: Return
13409 target_xfer_status. Add argument xfered_len. Update
13410 comments.
13411 * target.c (target_xfer_error_to_string): Rename to ...
13412 (target_xfer_status_to_string): ... it. New. All callers
13413 updated.
13414 (target_read_live_memory): Likewise. Call target_xfer_partial
13415 instead of target_read.
13416 (memory_xfer_live_readonly_partial): Return
13417 target_xfer_status. Add argument xfered_len.
13418 (raw_memory_xfer_partial): Likewise.
13419 (memory_xfer_partial_1): Likewise.
13420 (memory_xfer_partial): Likewise.
13421 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13422 properly. Update debug message.
13423 (default_xfer_partial, current_xfer_partial): Likewise.
13424 (target_write_partial): Likewise.
13425 (target_read_partial): Likewise. All callers updated.
13426 (read_whatever_is_readable): Likewise.
13427 (target_write_with_progress): Likewise.
13428 (target_read_alloc_1): Likewise.
13429
13430 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13431 * auxv.c (procfs_xfer_auxv): Likewise.
13432 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13433 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13434 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13435 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13436 * corefile.c (read_memory): Adjust.
13437 * corelow.c (core_xfer_partial): Likewise.
13438 * ctf.c (ctf_xfer_partial): Likewise.
13439 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13440 updated.
13441 (darwin_xfer_partial): Likewise.
13442 * exec.c (section_table_xfer_memory_partial): Likewise. All
13443 callers updated.
13444 (exec_xfer_partial): Likewise.
13445 * exec.h (section_table_xfer_memory_partial): Update
13446 declaration.
13447 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13448 negative.
13449 (gnu_xfer_partial): Likewise.
13450 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13451 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13452 (ia64_hpux_xfer_solib_got): Likewise.
13453 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13454 type of 'partial_len' to ULONGEST.
13455 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13456 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13457 (linux_nat_xfer_partial): Likewise.
13458 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13459 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13460 * monitor.c (monitor_xfer_memory): Likewise.
13461 (monitor_xfer_partial): Likewise.
13462 * procfs.c (procfs_xfer_partial): Likewise.
13463 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13464 * record-full.c (record_full_xfer_partial): Likewise.
13465 (record_full_core_xfer_partial): Likewise.
13466 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13467 (gdbsim_xfer_partial): Likewise.
13468 * remote.c (remote_write_bytes_aux): Likewise. All callers
13469 updated.
13470 (remote_write_bytes, remote_read_bytes): Likewise. All
13471 callers updated.
13472 (remote_flash_erase): Likewise. All callers updated.
13473 (remote_write_qxfer): Likewise. All callers updated.
13474 (remote_read_qxfer): Likewise. All callers updated.
13475 (remote_xfer_partial): Likewise.
13476 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13477 (rs6000_xfer_shared_libraries): Likewise.
13478 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13479 (sol_thread_xfer_partial): Likewise.
13480 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13481 (sparc_xfer_partial): Likewise.
13482 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13483 updated.
13484 (spu_xfer_partial): Likewise.
13485 * spu-multiarch.c (spu_xfer_partial): Likewise.
13486 * tracepoint.c (tfile_xfer_partial): Likewise.
13487 * windows-nat.c (windows_xfer_memory): Likewise.
13488 (windows_xfer_shared_libraries): Likewise.
13489 (windows_xfer_partial): Likewise.
13490 * valprint.c: Replace 'target_xfer_error' with
13491 'target_xfer_status' in comments.
13492
13493 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13494
13495 Checked in by Joel Brobecker <brobecker@adacore.com>.
13496 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13497
13498 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13499
13500 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13501 function parameters.
13502
13503 2014-02-10 Will Newton <will.newton@linaro.org>
13504
13505 * elfread.c (elf_rel_plt_read): Look for a .got section if
13506 looking up .got.plt fails.
13507 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13508 on address passed to elf_gnu_ifunc_record_cache.
13509 (elf_gnu_ifunc_resolve_addr): Likewise.
13510 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13511
13512 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13513
13514 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13515 (X_RETTURN): New macro.
13516 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13517
13518 * sparc64-tdep.c (sparc64_init_abi): Hook
13519 sparc_in_function_epilogue_p.
13520
13521 2014-02-10 Gary Benson <gbenson@redhat.com>
13522
13523 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13524 Rename name_matcher to symbol_matcher.
13525
13526 2014-02-10 Gary Benson <gbenson@redhat.com>
13527
13528 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13529 Use expand_symtabs_file_matcher_ftype and
13530 expand_symtabs_symbol_matcher_ftype.
13531
13532 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13533
13534 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13535 (struct ada_symbol_cache): New.
13536 (ada_free_symbol_cache): Forward declare.
13537 (struct ada_pspace_data): New.
13538 (ada_pspace_data_handle): New static global.
13539 (get_ada_pspace_data, ada_pspace_data_cleanup)
13540 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13541 (cache_space, cache): Delete, now folded inside struct
13542 ada_pspace_data.
13543 (ada_get_symbol_cache): New function.
13544 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13545 implementation.
13546 (_initialize_ada_language): Remove initialization of cache_space.
13547 Move call to observer_attach_inferior_exit up, grouping it
13548 with the other observer registrations inside this function.
13549 Rename command to be more general. Add call to
13550 register_program_space_data_with_cleanup.
13551
13552 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13553
13554 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13555 ada_new_objfile_observer.
13556 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13557 (_initialize_tasks): Update uses of ada_new_objfile_observer
13558 and ada_tasks_normal_stop_observer.
13559
13560 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13561
13562 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13563 returned by the 'Length attribute to integer.
13564
13565 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13566
13567 * ada-lang.c (_initialize_ada_language): Initialize
13568 cache_space obstack.
13569
13570 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13571
13572 * ada-lang.c (HASH_SIZE): New macro.
13573 (struct cache_entry): New type.
13574 (cache_space, cache): New static globals.
13575 (ada_clear_symbol_cache, find_entry): New functions.
13576 (lookup_cached_symbol, cache_symbol): Implement.
13577 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13578 (_initialize_ada_language): Attach ada_new_objfile_observer
13579 and ada_free_objfile_observer.
13580
13581 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13582
13583 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13584 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13585 struct block * parameter.
13586 (ada_lookup_symbol_list_worker): Constify local variable "block".
13587 Remove cast which is no longer necessary.
13588
13589 2014-02-10 Doug Evans <xdje42@gmail.com>
13590
13591 Add Guile as an extension language.
13592 * NEWS: Mention Guile scripting.
13593 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13594 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13595 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13596 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13597 (CLIBS): Add GUILE_LIBS.
13598 (install-guile): New rule.
13599 (guile.o): New rule.
13600 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13601 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13602 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13603 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13604 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13605 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13606 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13607 * configure.ac: New option --with-guile.
13608 * configure: Regenerate.
13609 * config.in: Regenerate.
13610 * auto-load.c: Remove #include "python/python.h". Add #include
13611 "gdb/section-scripts.h".
13612 (source_section_scripts): Handle Guile scripts.
13613 (_initialize_auto_load): Add name of Guile objfile script to
13614 scripts-directory help text.
13615 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13616 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13617 (struct breakpoint): New member scm_bp_object.
13618 * defs.h (enum command_control_type): New value guile_control.
13619 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13620 "extension.h".
13621 (show_user): Update comment.
13622 (_initialize_cli_cmds): Update help text for "show user". Update help
13623 text for max-user-call-depth.
13624 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13625 "extension.h".
13626 (multi_line_command_p): Add guile_control.
13627 (print_command_lines): Handle guile_control.
13628 (execute_control_command, recurse_read_control_structure): Ditto.
13629 (process_next_line): Recognize "guile" commands.
13630 * disasm.c (gdb_disassemble_info): Make non-static.
13631 * disasm.h: #include "dis-asm.h".
13632 (struct gdbarch): Add forward decl.
13633 (gdb_disassemble_info): Declare.
13634 * extension.c: #include "guile/guile.h".
13635 (extension_languages): Add guile.
13636 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13637 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13638 * gdbtypes.c (get_unsigned_type_max): New function.
13639 (get_signed_type_minmax): New function.
13640 * gdbtypes.h (get_unsigned_type_max): Declare.
13641 (get_signed_type_minmax): Declare.
13642 * guile/README: New file.
13643 * guile/guile-internal.h: New file.
13644 * guile/guile.c: New file.
13645 * guile/guile.h: New file.
13646 * guile/scm-arch.c: New file.
13647 * guile/scm-auto-load.c: New file.
13648 * guile/scm-block.c: New file.
13649 * guile/scm-breakpoint.c: New file.
13650 * guile/scm-disasm.c: New file.
13651 * guile/scm-exception.c: New file.
13652 * guile/scm-frame.c: New file.
13653 * guile/scm-gsmob.c: New file.
13654 * guile/scm-iterator.c: New file.
13655 * guile/scm-lazy-string.c: New file.
13656 * guile/scm-math.c: New file.
13657 * guile/scm-objfile.c: New file.
13658 * guile/scm-ports.c: New file.
13659 * guile/scm-pretty-print.c: New file.
13660 * guile/scm-safe-call.c: New file.
13661 * guile/scm-string.c: New file.
13662 * guile/scm-symbol.c: New file.
13663 * guile/scm-symtab.c: New file.
13664 * guile/scm-type.c: New file.
13665 * guile/scm-utils.c: New file.
13666 * guile/scm-value.c: New file.
13667 * guile/lib/gdb.scm: New file.
13668 * guile/lib/gdb/boot.scm: New file.
13669 * guile/lib/gdb/experimental.scm: New file.
13670 * guile/lib/gdb/init.scm: New file.
13671 * guile/lib/gdb/iterator.scm: New file.
13672 * guile/lib/gdb/printing.scm: New file.
13673 * guile/lib/gdb/types.scm: New file.
13674 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13675 (VPATH): Add $(GUILE_SRCDIR).
13676 (GUILE_DIR): New variable.
13677 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13678 (all): Add stamp-guile dependency.
13679 (stamp-guile): New rule.
13680 (clean-guile, install-guile, uninstall-guile): New rules.
13681 (install-only): Add install-guile dependency.
13682 (uninstall): Add uninstall-guile dependency.
13683 (clean): Add clean-guile dependency.
13684
13685 2014-02-09 Doug Evans <xdje42@gmail.com>
13686
13687 Revert this patch (which I approved, mea culpa).
13688
13689 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13690
13691 * Makefile.in (all-lib): Remove.
13692 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13693
13694 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13695
13696 Fix Python stack corruption.
13697 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13698 gdb_py_longest.
13699
13700 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13701
13702 * Makefile.in (all-lib): Remove.
13703 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13704
13705 2014-02-07 Doug Evans <dje@google.com>
13706
13707 * extension-priv.h (extension_language_script_ops): Add comment.
13708 (extension_language_ops): Add comment.
13709 (active_ext_lang_state): Fix typo in comment.
13710
13711 2014-02-07 Pedro Alves <palves@redhat.com>
13712
13713 PR breakpoints/16292
13714 * infrun.c (handle_signal_stop) <signal arrives while stepping
13715 over a breakpoint>: Switch back to the stepping thread.
13716
13717 2014-02-07 Yao Qi <yao@codesourcery.com>
13718
13719 * target.c (target_xfer_partial): Return zero if LEN is zero.
13720
13721 2014-02-07 Yao Qi <yao@codesourcery.com>
13722
13723 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13724 (ld_so_xfer_auxv): Likewise.
13725 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13726 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13727 * corelow.c (core_xfer_partial): Likewise.
13728 * ctf.c (ctf_xfer_partial): Likewise.
13729 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13730 (darwin_xfer_partial): Likewise.
13731 * exec.c (exec_xfer_partial): Likewise.
13732 * gnu-nat.c (gnu_xfer_partial): Likewise.
13733 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13734 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13735 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13736 * linux-nat.c (linux_xfer_siginfo): Likewise.
13737 (linux_proc_xfer_spu): Likewise.
13738 * procfs.c (procfs_xfer_partial): Likewise.
13739 * record-full.c (record_full_xfer_partial): Likewise.
13740 (record_full_core_xfer_partial): Likewise.
13741 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13742 * remote.c (remote_write_qxfer): Likewise.
13743 (remote_write_qxfer, remote_read_qxfer): Likewise.
13744 (remote_xfer_partial): Likewise.
13745 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13746 (rs6000_xfer_shared_libraries): Likewise.
13747 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13748 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13749 (spu_xfer_partial): Likewise.
13750 * target.c (memory_xfer_partial_1): Likewise.
13751 * tracepoint.c (tfile_xfer_partial): Likewise.
13752 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13753 (windows_xfer_partial): Likewise.
13754
13755 2014-02-07 Yao Qi <yao@codesourcery.com>
13756
13757 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13758 comments.
13759 (core_xfer_shared_libraries_aix): Likewise.
13760 * gdbarch.c, gdbarch.h: Regenerated.
13761 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13762 ULONGEST. Change 'len_avail' type to ULONGEST.
13763 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13764 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13765 declaration.
13766 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13767
13768 2014-02-07 Yao Qi <yao@codesourcery.com>
13769
13770 * corefile.c (memory_error): Get 'exception' from ERR and pass
13771 'exception' to throw_error.
13772
13773 2014-02-06 Doug Evans <xdje42@gmail.com>
13774
13775 * configure.ac (libpython checking): Remove all but python.o from
13776 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13777 * configure: Regenerate.
13778
13779 * Makefile.in (SFILES): Add extension.c.
13780 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13781 (COMMON_OBS): Add extension.o.
13782 * extension.h: New file.
13783 * extension-priv.h: New file.
13784 * extension.c: New file.
13785
13786 * python/python-internal.h: #include "extension.h".
13787 (gdbpy_auto_load_enabled): Declare.
13788 (gdbpy_apply_val_pretty_printer): Declare.
13789 (gdbpy_apply_frame_filter): Declare.
13790 (gdbpy_preserve_values): Declare.
13791 (gdbpy_breakpoint_cond_says_stop): Declare.
13792 (gdbpy_breakpoint_has_cond): Declare.
13793 (void source_python_script_for_objfile): Delete.
13794 * python/python.c: #include "extension-priv.h".
13795 Delete inclusion of "observer.h".
13796 (extension_language_python): Moved here and renamed from
13797 script_language_python in py-auto-load.c.
13798 Redefined to be of type extension_language_defn.
13799 (python_extension_script_ops): New global.
13800 (python_extension_ops): New global.
13801 (struct python_env): New member previous_active.
13802 (restore_python_env): Call restore_active_ext_lang.
13803 (ensure_python_env): Call set_active_ext_lang.
13804 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13805 New arg extlang.
13806 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13807 New arg extlang.
13808 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13809 New arg extlang.
13810 (gdbpy_eval_from_control_command): Renamed from
13811 eval_python_from_control_command, made static. New arg extlang.
13812 (gdbpy_source_script) Renamed from source_python_script, made static.
13813 New arg extlang.
13814 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13815 result to int. New arg extlang.
13816 (gdbpy_source_objfile_script): Renamed from
13817 source_python_script_for_objfile, made static. New arg extlang.
13818 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13819 static. New args extlang, extlang_printers. Change result type to
13820 "void".
13821 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13822 static. New arg extlang. Rename arg printers to extlang_printers
13823 and change type to ext_lang_type_printers *.
13824 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13825 static. Replace argument arg with extlang, extlang_printers.
13826 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13827 (!HAVE_PYTHON, source_python_script): Delete.
13828 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13829 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13830 (!HAVE_PYTHON, start_type_printers): Delete.
13831 (!HAVE_PYTHON, apply_type_printers): Delete.
13832 (!HAVE_PYTHON, free_type_printers): Delete.
13833 (_initialize_python): Delete call to observer_attach_before_prompt.
13834 (finalize_python): Set/restore active extension language.
13835 (gdbpy_finish_initialization) Renamed from
13836 finish_python_initialization, made static. New arg extlang.
13837 (gdbpy_initialized): New function.
13838 * python/python.h: #include "extension.h". Delete #include
13839 "value.h", "mi/mi-cmds.h".
13840 (extension_language_python): Declare.
13841 (GDBPY_AUTO_FILE_NAME): Delete.
13842 (enum py_bt_status): Moved to extension.h and renamed to
13843 ext_lang_bt_status.
13844 (enum frame_filter_flags): Moved to extension.h.
13845 (enum py_frame_args): Moved to extension.h and renamed to
13846 ext_lang_frame_args.
13847 (finish_python_initialization): Delete.
13848 (eval_python_from_control_command): Delete.
13849 (source_python_script): Delete.
13850 (apply_val_pretty_printer): Delete.
13851 (apply_frame_filter): Delete.
13852 (preserve_python_values): Delete.
13853 (gdbpy_script_language_defn): Delete.
13854 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13855 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13856
13857 * auto-load.c: #include "extension.h".
13858 (GDB_AUTO_FILE_NAME): Delete.
13859 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13860 (script_language_gdb): Delete, moved to extension.c and renamed to
13861 extension_language_gdb.
13862 (source_gdb_script_for_objfile): Delete.
13863 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13864 (loaded_script): Change type of language member to
13865 struct extension_language_defn *.
13866 (init_loaded_scripts_info): Initialize
13867 unsupported_script_warning_printed.
13868 (maybe_add_script): Make static. Change type of language arg to
13869 struct extension_language_defn *.
13870 (clear_section_scripts): Reset unsupported_script_warning_printed.
13871 (auto_load_objfile_script_1): Rewrite to use extension language API.
13872 (auto_load_objfile_script): Make public. Remove support-compiled-in
13873 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13874 (source_section_scripts): Rewrite to use extension language API.
13875 (load_auto_scripts_for_objfile): Rewrite to use
13876 auto_load_scripts_for_objfile.
13877 (collect_matching_scripts_data): Change type of language member to
13878 struct extension_language_defn *.
13879 (auto_load_info_scripts): Change type of language arg to
13880 struct extension_language_defn *.
13881 (unsupported_script_warning_print): New function.
13882 (script_not_found_warning_print): Make static.
13883 (_initialize_auto_load): Rewrite construction of scripts-directory
13884 help.
13885 * auto-load.h (struct objfile): Add forward decl.
13886 (struct script_language): Delete.
13887 (struct auto_load_pspace_info): Add forward decl.
13888 (struct extension_language_defn): Add forward decl.
13889 (maybe_add_script): Delete.
13890 (auto_load_objfile_script): Declare.
13891 (script_not_found_warning_print): Delete.
13892 (auto_load_info_scripts): Update prototype.
13893 (auto_load_gdb_scripts_enabled): Declare.
13894 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13895 auto_load_python_scripts_enabled and made public.
13896 (script_language_python): Delete, moved to python.c.
13897 (gdbpy_script_language_defn): Delete.
13898 (info_auto_load_python_scripts): Update to use
13899 extension_language_python.
13900
13901 * breakpoint.c (condition_command): Replace call to
13902 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13903 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13904 with call to breakpoint_ext_lang_cond_says_stop.
13905 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13906 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13907 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13908 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13909 New arg slang.
13910 (local_setattro): Print name of extension language with existing
13911 stop condition.
13912
13913 * valprint.c (val_print, value_print): Update to call
13914 apply_ext_lang_val_pretty_printer.
13915 * cp-valprint.c (cp_print_value): Update call to
13916 apply_ext_lang_val_pretty_printer.
13917 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13918 (gdbpy_apply_val_pretty_printer): Renamed from
13919 apply_val_pretty_printer. New arg extlang.
13920 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13921
13922 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13923 extension language API.
13924 * cli/cli-script.c (execute_control_command): Update to call
13925 eval_ext_lang_from_control_command.
13926
13927 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13928 enum ext_lang_bt_status values. Update call to
13929 apply_ext_lang_frame_filter.
13930 (mi_cmd_stack_list_locals): Ditto.
13931 (mi_cmd_stack_list_args): Ditto.
13932 (mi_cmd_stack_list_variables): Ditto.
13933 * mi/mi-main.c: Delete #include "python/python-internal.h".
13934 Add #include "extension.h".
13935 (mi_cmd_list_features): Replace reference to python internal variable
13936 gdb_python_initialized with call to ext_lang_initialized_p.
13937
13938 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13939 Update to use enum ext_lang_frame_args. Update to call
13940 apply_ext_lang_frame_filter.
13941 * python/py-framefilter.c (extract_sym): Update to use enum
13942 ext_lang_bt_status.
13943 (extract_value, py_print_type, py_print_value): Ditto.
13944 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13945 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13946 (py_print_frame): Ditto.
13947 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13948 New arg extlang. Update to use enum ext_lang_bt_status.
13949
13950 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13951 finish_python_initialization. Replace with call to
13952 finish_ext_lang_initialization.
13953
13954 * typeprint.c (do_free_global_table): Update to call
13955 free_ext_lang_type_printers.
13956 (create_global_typedef_table): Update to call
13957 start_ext_lang_type_printers.
13958 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13959 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13960 (type_print_options): Change type of global_printers from "void *"
13961 to "struct ext_lang_type_printers *".
13962
13963 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13964 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13965 (gdbpy_preserve_values): Renamed from preserve_python_values.
13966 New arg extlang.
13967 (!HAVE_PYTHON, preserve_python_values): Delete.
13968
13969 * utils.c (quit_flag): Delete, moved to extension.c.
13970 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13971 extension.c.
13972
13973 * eval.c: Delete #include "python/python.h".
13974 * main.c: Delete #include "python/python.h".
13975
13976 * defs.h: Update comment.
13977
13978 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13979
13980 GDB 7.7 released.
13981
13982 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13983
13984 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13985 defined.
13986
13987 2014-02-05 Yao Qi <yao@codesourcery.com>
13988
13989 * remote.c (remote_pass_signals): Remove local 'buf' and use
13990 rs->buf.
13991 (remote_program_signals): Likewise.
13992
13993 2014-02-05 Yao Qi <yao@codesourcery.com>
13994
13995 * ctf.c: Include "inferior.h" and "gdbthread.h".
13996 (CTF_PID): A new macro.
13997 (ctf_open): Call inferior_appeared and add_thread_silent.
13998 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13999 (ctf_thread_alive): New function.
14000 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14001
14002 2014-02-05 Yao Qi <yao@codesourcery.com>
14003
14004 Revert this patch:
14005
14006 2013-05-24 Yao Qi <yao@codesourcery.com>
14007
14008 * tracepoint.c (TFILE_PID): Remove.
14009 (tfile_open): Don't add thread and inferior.
14010 (tfile_close): Don't set 'inferior_ptid'. Don't call
14011 exit_inferior_silent.
14012 (tfile_thread_alive): Remove.
14013 (init_tfile_ops): Don't set field 'to_thread_alive' of
14014 tfile_ops.
14015
14016 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14017
14018 * remote.c (remote_start_remote): Call remote_check_symbols even
14019 if only symbol-file (not file) has been given.
14020
14021 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14022
14023 * gdbarch.sh (skip_entrypoint): New callback.
14024 * gdbarch.c, gdbarch.h: Regenerate.
14025 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14026 * infrun.c (fill_in_stop_func): Likewise.
14027 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14028 (ppc_elfv2_elf_make_msymbol_special): New function.
14029 (ppc_elfv2_skip_entrypoint): Likewise.
14030 (ppc_linux_init_abi): Install them for ELFv2.
14031
14032 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14033
14034 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14035 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14036 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14037 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14038 structures returned in GPRs.
14039
14040 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14041
14042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14043 offset to the stack parameter list for the ELFv2 ABI.
14044
14045 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14046
14047 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14048 set_gdbarch_convert_from_func_ptr_addr and
14049 set_gdbarch_elf_make_msymbol_special for ELFv1.
14050 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14051 function descriptors on ELFv1.
14052 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14053 set up r12 at function entry.
14054
14055 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14056
14057 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14058 (struct gdbarch_tdep): New member elf_abi.
14059
14060 * rs6000-tdep.c: Include "elf/ppc64.h".
14061 (rs6000_gdbarch_init): Detect ELF ABI version.
14062
14063 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14064
14065 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14066 within a register pair holding a DFP 128-bit value on little-endian.
14067 (ppc64_sysv_abi_return_value_base): Likewise.
14068 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14069 (dfp_pseudo_register_write): Likewise.
14070
14071 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14072
14073 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14074 offset on little-endian when passing _Decimal32.
14075 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14076
14077 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14078
14079 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14080 of the overlapped FP register within the VSX register on little-
14081 endian platforms.
14082 (efpr_pseudo_register_write): Likewise.
14083
14084 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14085
14086 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14087 offset on little-endian when passing small structures.
14088
14089 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14090
14091 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14092 (struct ppc64_sysv_argpos): New data structure.
14093 (ppc64_sysv_abi_push_float): Remove.
14094 (ppc64_sysv_abi_push_val): New function.
14095 (ppc64_sysv_abi_push_integer): Likewise.
14096 (ppc64_sysv_abi_push_freg): Likewise.
14097 (ppc64_sysv_abi_push_vreg): Likewise.
14098 (ppc64_sysv_abi_push_param): Likewise.
14099 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14100 (ppc64_sysv_abi_return_value_base): New function.
14101 (ppc64_sysv_abi_return_value): Refactor to use it.
14102
14103 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14104
14105 * NEWS: Document new target powerpc64le-*-linux*.
14106
14107 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14108
14109 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14110 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14111 core dumps.
14112 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14113 register set used in ELF core dumps. Add floating-point register set.
14114
14115 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14116
14117 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14118 dwarf2_to_gdb[] table using symbolic constants. Adjust
14119 penultimate entry from number representing the PC register
14120 to symbolic constant representing the MDR register. Add
14121 constant for the PC register to the end of the table.
14122
14123 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14124
14125 * bsd-kvm.c: Include <sys/param.h>
14126
14127 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14128
14129 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14130
14131 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14132
14133 * ada-lang.h (clear_ada_sym_cache): Delete.
14134
14135 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14136
14137 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14138
14139 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14140
14141 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14142 the sigreturn register save area only if the syscall is
14143 sigreturn.
14144
14145 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14146
14147 * valops.c (value_slice): Minor reformatting.
14148
14149 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14150
14151 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14152
14153 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14154
14155 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14156 New static globals.
14157 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14158 (ada_ignore_descriptive_types_p): New static global.
14159 (find_parallel_type_by_descriptive_type): Return immediately
14160 if ada_ignore_descriptive_types_p is set.
14161 (_initialize_ada_language): Register new commands "maintenance
14162 set ada", "maintenance show ada", "maintenance set ada
14163 ignore-descriptive-types" and "maintenance show ada
14164 ignore-descriptive-types".
14165 * NEWS: Add entry for new "maint ada set/show
14166 ignore-descriptive-types" commands.
14167
14168 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14169
14170 * record-btrace.c (record_btrace_close): Call btrace_teardown
14171 for all threads.
14172
14173 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14174
14175 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14176 "ui-out.h".
14177
14178 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14179
14180 * ada-typeprint (type_is_full_subrange_of_target_type):
14181 New function.
14182 (print_range): Add parameter bounds_prefered_p. If not set,
14183 try printing range types using the name of their base type.
14184 (print_range_type): Add parameter bounds_prefered_p.
14185 Use it in call to print_range.
14186 (print_array_type, ada_print_type): Update calls to print_range
14187 and print_range_type.
14188
14189 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14190
14191 * ada-typeprint.c (print_array_type, print_choices, print_range)
14192 (print_range_bound, print_dynamic_range_bound, print_range_type):
14193 Remove declaration.
14194
14195 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14196
14197 * ada-typeprint.c (print_range): Add missing empty line
14198 after local declaration.
14199
14200 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14201
14202 * ada-valprint.c (print_optional_low_bound): Get index_type's
14203 target type for as long as it is a TYPE_CODE_RANGE.
14204
14205 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14206
14207 * procfs.c (procfs_make_note_section): Remove assertion and
14208 associated comment.
14209
14210 2014-01-24 Yao Qi <yao@codesourcery.com>
14211
14212 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14213 * corelow.c (get_core_siginfo): Likewise.
14214
14215 2014-01-24 Yao Qi <yao@codesourcery.com>
14216
14217 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14218 ULONGEST. Don't check 'len' is negative.
14219 (remote_write_bytes): Change type of 'len' to ULONGEST.
14220
14221 2014-01-23 Tom Tromey <tromey@redhat.com>
14222
14223 PR python/16485:
14224 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14225 Handle exception from frame.block.
14226 (FrameVars.fetch_frame_locals): Likewise.
14227
14228 2014-01-23 Tom Tromey <tromey@redhat.com>
14229
14230 PR python/16487:
14231 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14232 on a NULL pointer. Move "goto error" to correct place.
14233
14234 2014-01-23 Tom Tromey <tromey@redhat.com>
14235
14236 PR python/16491:
14237 * python/py-framefilter.c (apply_frame_filter): Call
14238 ensure_python_env after computing gdbarch.
14239
14240 2014-01-23 Yao Qi <yao@codesourcery.com>
14241
14242 * target.c (raw_memory_xfer_partial): Change argument type
14243 from void * to gdb_byte *.
14244 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14245
14246 2014-01-22 Doug Evans <dje@google.com>
14247
14248 New gdbserver option --debug-format=timestamp.
14249 * NEWS: Mention it.
14250
14251 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14252
14253 * syscalls/s390x-linux.xml: New file.
14254 * syscalls/s390-linux.xml: New file.
14255 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14256 (XML_SYSCALL_FILENAME_S390X): Likewise.
14257 (op_svc): New enum value for SVC opcode.
14258 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14259 (s390_linux_get_syscall_number): New function.
14260 (s390_gdbarch_init): Register '*get_syscall_number' and the
14261 syscall xml file name.
14262 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14263 "s390-linux.xml" and "s390x-linux.xml".
14264 * NEWS: Announce new feature.
14265
14266 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14267
14268 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14269
14270 2014-01-22 Pedro Alves <palves@redhat.com>
14271
14272 * xtensa-config.c: Include defs.h.
14273
14274 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14275
14276 * common/common-utils.h: Add "ARI:" comment beside __func__
14277 reference.
14278
14279 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14280
14281 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14282 documentation a bit.
14283
14284 2014-01-21 Roland McGrath <mcgrathr@google.com>
14285
14286 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14287 * configure: Regenerate.
14288 * aclocal.m4: Regenerate.
14289 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14290 New substituted variables.
14291 (install-strip): New target.
14292 (INSTALL_SCRIPT): New substituted variable.
14293 (FLAGS_TO_PASS): Add it.
14294 (install-only): Use $(INSTALL_SCRIPT) rather than
14295 $(INSTALL_PROGRAM) for gcore.
14296
14297 2014-01-20 Tom Tromey <tromey@redhat.com>
14298
14299 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14300 together.
14301
14302 2014-01-20 Tom Tromey <tromey@redhat.com>
14303
14304 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14305 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14306 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14307 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14308 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14309 (struct cmd_list_element) <flags>: Remove.
14310 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14311 doc_allocated>: New fields.
14312 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14313 bitfields.
14314 * maint.c (maintenance_do_deprecate): Update.
14315 * top.c (execute_command): Update.
14316
14317 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14318
14319 * xtensa-linux-nat.c: Include asm/ptrace.h.
14320
14321 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14322
14323 * Makefile.in (SFILES): Add d-support.c.
14324 (COMMON_OBS): Add d-support.o.
14325 * d-lang.h (d_parse_symbol): Add comment, now defined in
14326 d-support.c.
14327 * d-lang.c (parse_call_convention)
14328 (parse_attributes, parse_function_types)
14329 (parse_function_args, parse_type, parse_identifier)
14330 (call_convention_p, d_parse_symbol): Move functions to ...
14331 * d-support.c: ... New file.
14332
14333 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14334
14335 * d-lang.h (d_parse_symbol): Add declaration.
14336 * d-lang.c (extract_identifiers)
14337 (extract_type_info): Remove functions.
14338 (parse_call_convention, parse_attributes)
14339 (parse_function_types, parse_function_args)
14340 (parse_type, parse_identifier, call_convention_p)
14341 (d_parse_symbol): New functions.
14342 (d_demangle): Use d_parse_symbol to demangle D symbols.
14343
14344 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14345
14346 * d-lang.h (struct builtin_d_type): New data type.
14347 (builtin_d_type): Add declaration.
14348 * d-lang.c (d_language_arch_info, build_d_types)
14349 (builtin_d_type): New functions.
14350 (enum d_primitive_types): New data type.
14351 (d_language_defn): Change c_language_arch_info to
14352 d_language_arch_info.
14353 (d_type_data): New static variable.
14354 (_initialize_d_language): Initialize d_type_data.
14355
14356 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14357
14358 * d-lang.h (d_main_name): Add declaration.
14359 * d-lang.c (d_main_name): New function.
14360 * symtab.c (find_main_name): Add call to d_main_name.
14361
14362 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14363
14364 * d-lang.c (d_language_defn): Change macro_expansion_c to
14365 macro_expansion_no.
14366
14367 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14368
14369 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14370
14371 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14372
14373 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14374 gdb_exception" declaration.
14375 * remote.c (getpkt_or_notif_sane): Likewise.
14376
14377 2014-01-17 Doug Evans <dje@google.com>
14378
14379 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14380 function, contents of dirnames_to_char_ptr_vec_append moved here.
14381 (delim_string_to_char_ptr_vec): New function.
14382 (dirnames_to_char_ptr_vec_append): Rewrite.
14383 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14384
14385 2014-01-17 Doug Evans <dje@google.com>
14386
14387 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14388 and moved here ...
14389 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14390 #include "common-utils.h".
14391 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14392 * common/vec.h (VEC_ASSERT_PASS): Update.
14393 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14394 (MACH_CHECK_ERROR): Update.
14395
14396 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14397
14398 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14399 comments.
14400 * gdbarch.h: Regenerate.
14401
14402 2014-01-16 Tom Tromey <tromey@redhat.com>
14403
14404 * value.c (struct value) <regnum>: Move earlier.
14405
14406 2014-01-16 Tom Tromey <tromey@redhat.com>
14407
14408 * remote.c (extended_remote_create_inferior): Rename from
14409 extended_remote_create_inferior_1. Add "ops" argument. Remove
14410 old implementation.
14411
14412 2014-01-16 Pedro Alves <palves@redhat.com>
14413
14414 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14415 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14416 the backchain.
14417
14418 2014-01-16 Doug Evans <dje@google.com>
14419
14420 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14421
14422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14423
14424 * btrace.h (btrace_thread_flag): New.
14425 (struct btrace_thread_info) <flags>: New.
14426 * record-btrace.c (record_btrace_resume_thread)
14427 (record_btrace_find_thread_to_move, btrace_step_no_history)
14428 (btrace_step_stopped, record_btrace_start_replaying)
14429 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14430 (record_btrace_find_resume_thread): New.
14431 (record_btrace_resume, record_btrace_wait): Extend.
14432 (record_btrace_can_execute_reverse): New.
14433 (record_btrace_open): Fail in non-stop mode.
14434 (record_btrace_set_replay): Split into this, ...
14435 (record_btrace_stop_replaying): ... this, ...
14436 (record_btrace_clear_histories): ... and this.
14437 (init_record_btrace_ops): Init to_can_execute_reverse.
14438 * NEWS: Announce it.
14439
14440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14441
14442 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14443 (forward_target_decr_pc_after_break)
14444 (target_decr_pc_after_break): New.
14445 * target.c (forward_target_decr_pc_after_break)
14446 (target_decr_pc_after_break): New.
14447 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14448 instead of gdbarch_decr_pc_after_break.
14449 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14450 instead of gdbarch_decr_pc_after_break.
14451 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14452 instead of gdbarch_decr_pc_after_break.
14453 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14454 instead of gdbarch_decr_pc_after_break.
14455 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14456 instead of gdbarch_decr_pc_after_break.
14457 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14458 instead of gdbarch_decr_pc_after_break.
14459
14460 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14461
14462 * btrace.c: Include regcache.h.
14463 (btrace_add_pc): New.
14464 (btrace_enable): Call btrace_add_pc.
14465 (btrace_is_empty): New.
14466 * btrace.h (btrace_is_empty): New.
14467 * record-btrace.c (require_btrace, record_btrace_info): Call
14468 btrace_is_empty.
14469
14470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14471
14472 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14473 Support delta reads.
14474 (linux_disable_btrace): Change return type.
14475 * common/linux-btrace.h (linux_read_btrace): Change parameters
14476 and return type to allow error reporting. Update users.
14477 (linux_disable_btrace): Change return type. Update users.
14478 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14479 New.
14480 (btrace_error): New.
14481 (btrace_block) <begin>: Comment on BEGIN == 0.
14482 * btrace.c (btrace_compute_ftrace): Start from the end of
14483 the current trace.
14484 (btrace_stitch_trace, btrace_clear_history): New.
14485 (btrace_fetch): Read delta trace, return if replaying.
14486 (btrace_clear): Move clear history code to btrace_clear_history.
14487 (parse_xml_btrace): Throw an error if parsing failed.
14488 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14489 and return type to allow error reporting.
14490 (target_read_btrace): Change parameters and return type to allow
14491 error reporting.
14492 * target.c (target_read_btrace): Update.
14493 * remote.c (remote_read_btrace): Support delta reads. Pass
14494 errors on.
14495 * NEWS: Announce it.
14496
14497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14498
14499 * record.h (record_btrace_frame_unwind)
14500 (record_btrace_tailcall_frame_unwind): New declarations.
14501 * dwarf2-frame: Include record.h
14502 (dwarf2_frame_cfa): Throw an error for btrace frames.
14503 * record-btrace.c: Include hashtab.h.
14504 (btrace_get_bfun_name): New.
14505 (btrace_call_history): Call btrace_get_bfun_name.
14506 (struct btrace_frame_cache): New.
14507 (bfcache): New.
14508 (bfcache_hash, bfcache_eq, bfcache_new): New.
14509 (btrace_get_frame_function): New.
14510 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14511 (record_btrace_frame_this_id): Compute own id.
14512 (record_btrace_frame_prev_register): Provide PC, throw_error
14513 for all other registers.
14514 (record_btrace_frame_sniffer): Detect btrace frames.
14515 (record_btrace_tailcall_frame_sniffer): New.
14516 (record_btrace_frame_dealloc_cache): New.
14517 (record_btrace_frame_unwind): Add new functions.
14518 (record_btrace_tailcall_frame_unwind): New.
14519 (_initialize_record_btrace): Allocate cache.
14520 * btrace.c (btrace_clear): Call reinit_frame_cache.
14521 * NEWS: Announce it.
14522
14523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14524
14525 * record-btrace.c (record_btrace_set_replay)
14526 (record_btrace_goto_begin, record_btrace_goto_end)
14527 (record_btrace_goto): New.
14528 (init_record_btrace_ops): Initialize them.
14529 * NEWS: Announce it.
14530
14531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14532
14533 * record-btrace.c (record_btrace_find_new_threads)
14534 (record_btrace_thread_alive): New.
14535 (init_record_btrace_ops): Initialize to_find_new_threads and
14536 to_thread_alive.
14537
14538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14539
14540 * record-btrace.c (record_btrace_resume): New.
14541 (record_btrace_wait): New.
14542 (init_record_btrace_ops): Initialize to_wait and to_resume.
14543
14544 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14545
14546 * record-btrace.c (record_btrace_xfer_partial)
14547 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14548 (record_btrace_allow_memory_access): New.
14549 (init_record_btrace_ops): Initialize new methods.
14550 * target.c (raw_memory_xfer_partial): Bail out if target reports
14551 that this memory is not available.
14552
14553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14554
14555 * target.h (target_ops) <to_insert_breakpoint>
14556 <to_remove_breakpoint>: Add target_ops parameter.
14557 (forward_target_insert_breakpoint): New.
14558 (forward_target_remove_breakpoint): New.
14559 (memory_remove_breakpoint, memory_insert_breakpoint):
14560 Add target_ops parameter.
14561 * target.c (target_insert_breakpoint): Split into this and ...
14562 (forward_target_insert_breakpoint): ... this.
14563 (target_remove_breakpoint): Split into this and ...
14564 (forward_target_remove_breakpoint): ... this.
14565 (debug_to_insert_breakpoint): Add target_ops parameter.
14566 Call forward_target_insert_breakpoint.
14567 (debug_to_remove_breakpoint): Add target_ops parameter.
14568 Call forward_target_remove_breakpoint.
14569 (update_current_target): Do not inherit or default to_insert_breakpoint
14570 and to_remove_breakpoint.
14571 * corelow.c (ignore): Add target_ops parameter.
14572 * exec.c (ignore): Add target_ops parameter.
14573 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14574 Add target_ops parameter.
14575 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14576 Add target_ops parameter.
14577 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14578 Add target_ops parameter.
14579 * record-full.c (record_full_beneath_to_insert_breakpoint)
14580 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14581 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14582 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14583 (record_full_core_remove_breakpoint): Add target_ops parameter.
14584 Update users.
14585 (record_full_beneath_to_insert_breakpoint_ops)
14586 (record_full_beneath_to_remove_breakpoint_ops)
14587 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14588 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14589 tmp_to_remove_breakpoint_ops,
14590 record_full_beneath_to_insert_breakpoint_ops, and
14591 record_full_beneath_to_remove_breakpoint_ops.
14592 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14593 (m32r_remove_breakpoint): Add target_ops parameter.
14594 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14595 Add target_ops parameter.
14596 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14597 Add target_ops parameter.
14598
14599 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14600 Markus Metzger <markus.t.metzger@intel.com>
14601
14602 * record-btrace.c: Include frame-unwind.h.
14603 (record_btrace_frame_unwind_stop_reason)
14604 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14605 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14606 New.
14607 (init_record_btrace_ops): Install it.
14608
14609 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14610
14611 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14612 get_prev_frame_1.
14613
14614 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14615
14616 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14617 earlier.
14618
14619 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14620
14621 * frame-unwind.c: Include target.h.
14622 (frame_unwind_try_unwinder): New function with code from ...
14623 (frame_unwind_find_by_frame): ... here. New variable
14624 unwinder_from_target, call also target_get_unwinder)
14625 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14626 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14627 * target.h (struct target_ops): New fields to_get_unwinder and
14628 to_get_tailcall_unwinder.
14629 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14630
14631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14632
14633 * record-btrace.c (record_btrace_fetch_registers)
14634 (record_btrace_store_registers)
14635 (record_btrace_to_prepare_to_store): New.
14636 (init_record_btrace_ops): Add the above.
14637
14638 2014-01-16 Tom Tromey <tromey@redhat.com>
14639
14640 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14641 * target.h (struct target_ops) <to_prepare_to_store>: Add
14642 argument.
14643 (target_prepare_to_store): Add argument.
14644 * target.c (debug_to_prepare_to_store): Add argument.
14645 (update_current_target): Update.
14646 * remote.c (remote_prepare_to_store): Add 'self' argument.
14647 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14648 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14649 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14650 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14651 argument.
14652 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14653 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14654 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14655 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14656 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14657
14658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14659
14660 * btrace.h (replay) <replay>: New.
14661 (btrace_is_replaying): New.
14662 * btrace.c (btrace_clear): Free replay iterator.
14663 (btrace_is_replaying): New.
14664 * record-btrace.c (record_btrace_is_replaying): New.
14665 (record_btrace_info): Print insn number if replaying.
14666 (record_btrace_insn_history): Start at replay position.
14667 (record_btrace_call_history): Start at replay position.
14668 (init_record_btrace_ops): Init to_record_is_replaying.
14669
14670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14671
14672 * record-btrace.c (record_btrace_insn_history_range): Include
14673 end.
14674 (record_btrace_insn_history_from): Adjust range.
14675 (record_btrace_call_history_range): Include
14676 end.
14677 (record_btrace_call_history_from): Adjust range.
14678 * NEWS: Announce changes.
14679
14680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14681
14682 * record.h (enum record_print_flag)
14683 <record_print_indent_calls>: New.
14684 * record.c (get_call_history_modifiers): Recognize /c modifier.
14685 (_initialize_record): Document /c modifier.
14686 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14687 Reorder fields. Optionally indent the function name. Update
14688 all users.
14689 * NEWS: Announce changes.
14690
14691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14692
14693 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14694
14695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14696
14697 * btrace.c (ftrace_new_function): Start counting at one.
14698 * record-btrace.c (record_btrace_info): Adjust number of calls
14699 and insns.
14700 * NEWS: Announce it.
14701
14702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14703
14704 * record-btrace.c (btrace_call_history_insn_range): Print
14705 insn range as [begin, end].
14706
14707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14708
14709 * btrace.h (struct btrace_func_link): New.
14710 (enum btrace_function_flag): New.
14711 (struct btrace_inst): Rename to ...
14712 (struct btrace_insn): ...this. Update all users.
14713 (struct btrace_func) <ibegin, iend>: Remove.
14714 (struct btrace_func_link): New.
14715 (struct btrace_func): Rename to ...
14716 (struct btrace_function): ...this. Update all users.
14717 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14718 (number, level, flags>: New.
14719 (struct btrace_insn_iterator): Rename to ...
14720 (struct btrace_insn_history): ...this.
14721 Update all users.
14722 (struct btrace_insn_iterator, btrace_call_iterator): New.
14723 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14724 (struct btrace_target_info) <begin, end, level>
14725 <insn_history, call_history>: New.
14726 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14727 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14728 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14729 (btrace_call_number, btrace_call_begin, btrace_call_end)
14730 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14731 (btrace_find_function_by_number, btrace_set_insn_history)
14732 (btrace_set_call_history): New.
14733 * btrace.c (btrace_init_insn_iterator)
14734 (btrace_init_func_iterator, compute_itrace): Remove.
14735 (ftrace_print_function_name, ftrace_print_filename)
14736 (ftrace_skip_file): Change
14737 parameter to const.
14738 (ftrace_init_func): Remove.
14739 (ftrace_debug): Use new btrace_function fields.
14740 (ftrace_function_switched): Also consider gaining and
14741 losing symbol information).
14742 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14743 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14744 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14745 New.
14746 (ftrace_new_function): Move. Remove debug print.
14747 (ftrace_update_lines, ftrace_update_insns): New.
14748 (ftrace_update_function): Check for call, ret, and jump.
14749 (compute_ftrace): Renamed to ...
14750 (btrace_compute_ftrace): ...this. Rewritten to compute call
14751 stack.
14752 (btrace_fetch, btrace_clear): Updated.
14753 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14754 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14755 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14756 (btrace_call_number, btrace_call_begin, btrace_call_end)
14757 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14758 (btrace_find_function_by_number, btrace_set_insn_history)
14759 (btrace_set_call_history): New.
14760 * record-btrace.c (require_btrace): Use new btrace thread
14761 info fields.
14762 (record_btrace_info, btrace_insn_history)
14763 (record_btrace_insn_history, record_btrace_insn_history_range):
14764 Use new btrace thread info fields and new iterator.
14765 (btrace_func_history_src_line): Rename to ...
14766 (btrace_call_history_src_line): ...this. Use new btrace
14767 thread info fields.
14768 (btrace_func_history): Rename to ...
14769 (btrace_call_history): ...this. Use new btrace thread info
14770 fields and new iterator.
14771 (record_btrace_call_history, record_btrace_call_history_range):
14772 Use new btrace thread info fields and new iterator.
14773
14774 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14775
14776 * frame.h (frame_id_build_unavailable_stack_special): New.
14777 * frame.c (frame_id_build_unavailable_stack_special): New.
14778
14779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14780
14781 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14782 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14783 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14784 to gdbarch.
14785 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14786 (i386_insn_is_jump, i386_jmp_p): New.
14787 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14788 insn_is_jump to gdbarch.
14789 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14790 * gdbarch.h: Regenerated.
14791 * gdbarch.c: Regenerated.
14792 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14793 (default_insn_is_jump): New.
14794 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14795 (default_insn_is_jump): New.
14796
14797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14798
14799 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14800 Change to ...
14801 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14802 (btrace_read_type) <btrace_read_new>: Change to ...
14803 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14804
14805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14806
14807 * common/linux-btrace.c (linux_read_btrace): Free trace from
14808 previous iteration.
14809
14810 2014-01-15 Doug Evans <dje@google.com>
14811
14812 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14813 uint32_t.
14814
14815 2014-01-15 Tom Tromey <tromey@redhat.com>
14816
14817 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14818 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14819 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14820 (set_objfile_main_name): New function.
14821 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14822 language_of_main>: New fields.
14823 (set_objfile_main_name): Declare.
14824 * symtab.c (find_main_name): Loop over objfiles to find the main
14825 name and language.
14826 (set_main_name): Now static.
14827 (get_main_info): Add comment.
14828 * symtab.h (set_main_name): Don't declare.
14829
14830 2014-01-15 Tom Tromey <tromey@redhat.com>
14831
14832 * symtab.c (main_progspace_key): New global.
14833 (struct main_info): New.
14834 (name_of_main, language_of_main): Remove.
14835 (get_main_info, main_info_cleanup): New function.
14836 (set_main_name, main_name, main_language): Use get_main_info.
14837 (_initialize_symtab): Initialize main_progspace_key.
14838
14839 2014-01-15 Tom Tromey <tromey@redhat.com>
14840
14841 * dbxread.c (process_one_symbol): Update.
14842 * dwarf2read.c (read_partial_die): Update.
14843 * symfile.c (set_initial_language): Call main_language.
14844 * symtab.c (language_of_main): Now static.
14845 (set_main_name): Add 'lang' parameter.
14846 (find_main_name): Update.
14847 (main_language): New function.
14848 (symtab_observer_executable_changed): Update.
14849 * symtab.h (set_main_name): Update.
14850 (language_of_main): Remove.
14851 (main_language): Declare.
14852
14853 2014-01-15 Tom Tromey <tromey@redhat.com>
14854
14855 * symfile.c (init_entry_point_info): Use new "initialized" field.
14856 Update.
14857 * objfiles.h (struct entry_point) <initialized>: New field.
14858 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14859 (struct objfile) <ei>: ...here. Remove.
14860 * objfiles.c (entry_point_address_query): Update.
14861
14862 2014-01-15 Tom Tromey <tromey@redhat.com>
14863
14864 * objfiles.c (entry_point_address_query): Relocate entry point
14865 address.
14866 (objfile_relocate1): Do not relocate entry point address.
14867 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14868 <the_bfd_section_index>: New field.
14869 * symfile.c (init_entry_point_info): Find the entry point's
14870 section.
14871
14872 2014-01-15 Tom Tromey <tromey@redhat.com>
14873
14874 * solib-frv.c (enable_break): Use entry_point_address_query.
14875
14876 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14877
14878 * NEWS: Add note on improved process record-replay on
14879 arm*-linux* targets.
14880
14881 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14882
14883 * arm-tdep.c (enum arm_record_result): New enum.
14884 (arm_record_unsupported_insn): New function.
14885 (arm_record_coproc_data_proc): Removed.
14886 (thumb2_record_ld_st_multiple): New function.
14887 (thumb2_record_ld_st_dual_ex_tbb): New function.
14888 (thumb2_record_data_proc_sreg_mimm): New function.
14889 (thumb2_record_ps_dest_generic): New function.
14890 (thumb2_record_branch_misc_cntrl): New function.
14891 (thumb2_record_str_single_data): New function.
14892 (thumb2_record_ld_mem_hints): New function.
14893 (thumb2_record_ld_word): New function.
14894 (thumb2_record_lmul_lmla_div): New function.
14895 (thumb2_record_decode_insn_handler): New function.
14896 (decode_insn): Add thumb32 instruction handlers.
14897
14898 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14899
14900 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14901 (struct arm_linux_record_tdep): Declare.
14902 (arm_canonicalize_syscall): New function.
14903 (arm_all_but_pc_registers_record): New function.
14904 (arm_linux_syscall_record): New function.
14905 (arm_linux_init_abi): Add syscall recording constructs.
14906 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14907 decoding. (arm_record_coproc_data_proc): Update arm syscall
14908 decoding.
14909 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14910 <arm_syscall_record>: New field.
14911 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14912 gdb_target_obs.
14913
14914 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14915
14916 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14917 register for push instruction recording.
14918
14919 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14920
14921 * arm-tdep.c (thumb_record_misc): Update to correct logical
14922 error while recording ldm, ldmia and pop instructions.
14923
14924 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14925
14926 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14927
14928 2014-01-15 Pedro Alves <palves@redhat.com>
14929
14930 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14931 (go32_resume, go32_fetch_registers, store_register)
14932 (go32_store_registers, go32_prepare_to_store)
14933 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14934 (go32_create_inferior, go32_can_run, go32_terminal_init)
14935 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14936 declarations.
14937
14938 2014-01-15 Tom Tromey <tromey@redhat.com>
14939
14940 * target.h (async_callback_ftype): New typedef.
14941 (struct target_ops) <to_async>: Use it.
14942
14943 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14944
14945 * python/py-value.c (get_field_type): Remove unnecessary curly
14946 braces for single-statement if block.
14947
14948 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14949
14950 * python/py-type.c (convert_field): Add missing empty line
14951 after declarations.
14952
14953 2014-01-14 Doug Evans <dje@google.com>
14954
14955 * symfile.h (expand_symtabs_matching): Renamed from
14956 expand_partial_symbol_names. Update prototype.
14957 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14958 * symfile.c (expand_symtabs_matching): Renamed from
14959 expand_partial_symbol_names. New args file_matcher, kind.
14960 Rename arg fun to symbol_matcher.
14961 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14962 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14963 ada_expand_partial_symbol_name.
14964 (ada_make_symbol_completion_list): Update to call
14965 expand_symtabs_matching.
14966 (ada_add_global_exceptions): Call expand_symtabs_matching.
14967 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14968 call map_symbol_filenames.
14969 * symtab.c (sources_info): Update to call map_symbol_filenames.
14970 (search_symbols): Call expand_symtabs_matching.
14971 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14972 (default_make_symbol_completion_list_break_on): Update to call
14973 expand_symtabs_matching.
14974 (make_source_files_completion_list): Update to call
14975 map_symbol_filenames.
14976
14977 2014-01-14 Doug Evans <dje@google.com>
14978
14979 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14980 (expand_symtabs_symbol_matcher_ftype): New typedef.
14981 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14982 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14983 * symfile.c (expand_partial_symbol_names): Update to use
14984 expand_symtabs_symbol_matcher_ftype.
14985 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14986 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14987 Arg name_matcher renamed to symbol_matcher.
14988 * psymtab.c (recursively_search_psymtabs): Update to use
14989 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14990 sym_matcher.
14991 (expand_symtabs_matching_via_partial): Update to use
14992 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14993 Arg name_matcher renamed to symbol_matcher.
14994
14995 2014-01-14 Doug Evans <dje@google.com>
14996
14997 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14998 (map_partial_symbol_filenames): Ditto.
14999 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15000 (map_partial_symbol_filenames): Ditto.
15001 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15002 (map_partial_symbol_filenames): Ditto.
15003 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15004 (map_partial_symbol_filenames): Ditto.
15005 * symtab.c: Delete #include "psymtab.h".
15006
15007 2014-01-14 Pedro Alves <palves@redhat.com>
15008 Tom Tromey <tromey@redhat.com>
15009
15010 * infrun.c (use_displaced_stepping): Use find_record_target
15011 instead of RECORD_IS_USED.
15012 (adjust_pc_after_break): Use record_full_is_used instead of
15013 RECORD_IS_USED.
15014 * record-btrace.c (record_btrace_open): Call record_preopen
15015 instead of checking RECORD_IS_USED.
15016 * record-full.c (record_full_shortname)
15017 (record_full_core_shortname): New globals.
15018 (record_full_is_used): New function.
15019 (find_full_open): Call record_preopen instead of checking
15020 RECORD_IS_USED.
15021 (init_record_full_ops): Set the target's shortname to
15022 record_full_shortname.
15023 (init_record_full_core_ops): Set the target's shortname to
15024 record_full_core_shortname.
15025 * record-full.h (record_full_is_used): Declare.
15026 * record.c (find_record_target): Make extern.
15027 (record_preopen): New function.
15028 * record.h (RECORD_IS_USED): Delete macro.
15029 (find_record_target, record_preopen): Declare functions.
15030
15031 2014-01-14 Yao Qi <yao@codesourcery.com>
15032
15033 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15034 'len''s type to ULONGEST.
15035 (core_xfer_shared_libraries_aix): Likewise.
15036 * gdbarch.c, gdbarch.h: Regenerated.
15037 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15038 Change type of 'len' to ULONGEST.
15039 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15040 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15041
15042 2014-01-14 Yao Qi <yao@codesourcery.com>
15043
15044 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15045 type of 'len' to ULONGEST.
15046 (linux_xfer_osdata_processgroups): Likewise.
15047 (linux_xfer_osdata_threads): Likewise.
15048 (linux_xfer_osdata_fds): Likewise.
15049 (linux_xfer_osdata_isockets): Likewise.
15050 (linux_xfer_osdata_shm): Likewise.
15051 (linux_xfer_osdata_sem): Likewise.
15052 (linux_xfer_osdata_msg): Likewise.
15053 (linux_common_xfer_osdata): Likewise.
15054 (struct osdata_type) <getter>: Likewise.
15055 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15056 the declaration.
15057
15058 2014-01-14 Yao Qi <yao@codesourcery.com>
15059
15060 * target.h (target_xfer_partial_ftype): Update.
15061 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15062 ULONGEST.
15063 * aix-thread.c (aix_thread_xfer_partial): Change type of
15064 argument 'len' to ULONGEST.
15065 * auxv.c (procfs_xfer_auxv): Likewise.
15066 (ld_so_xfer_auxv): Likewise.
15067 (memory_xfer_auxv): Likewise.
15068 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15069 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15070 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15071 * corelow.c (core_xfer_partial): Likewise.
15072 * ctf.c (ctf_xfer_partial): Likewise.
15073 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15074 '%u'.
15075 (darwin_read_dyld_info): Likewise.
15076 (darwin_xfer_partial): Likewise.
15077 * exec.c (section_table_xfer_memory_partial): Likewise.
15078 (exec_xfer_partial): Likewise.
15079 * exec.h (section_table_xfer_memory_partial): Update
15080 declaration.
15081 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15082 instead of plongest.
15083 (gnu_xfer_partial): Likewise.
15084 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15085 (ia64_hpux_xfer_solib_got): Likewise.
15086 (ia64_hpux_xfer_partial): Likewise.
15087 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15088 * inf-ptrace.c (inf_ptrace_xfer_partial):
15089 * inf-ttrace.c (inf_ttrace_xfer_partial):
15090 * linux-nat.c (linux_xfer_siginfo): Likewise.
15091 (linux_nat_xfer_partial): Likewise.
15092 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15093 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15094 * monitor.c (monitor_xfer_memory): Likewise.
15095 (monitor_xfer_partial): Likewise.
15096 * procfs.c (procfs_xfer_partial): Likewise.
15097 * record-full.c (record_full_xfer_partial): Likewise.
15098 (record_full_core_xfer_partial): Likewise.
15099 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15100 instead of plongest.
15101 (gdbsim_xfer_partial): Likewise.
15102 * remote.c (remote_xfer_partial): Likewise.
15103 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15104 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15105 declaration.
15106 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15107 (rs6000_xfer_shared_libraries): Likewise.
15108 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15109 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15110 (sparc_xfer_partial): Likewise.
15111 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15112 (spu_xfer_partial): Likewise.
15113 * spu-multiarch.c (spu_xfer_partial): Likewise.
15114 * target.c (target_read_live_memory): Likewise.
15115 (memory_xfer_live_readonly_partial): Likewise.
15116 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15117 (target_xfer_partial, default_xfer_partial): Likewise.
15118 (current_xfer_partial): Likewise.
15119 * tracepoint.c (tfile_xfer_partial): Likewise.
15120 * windows-nat.c (windows_xfer_memory): Likewise. Call
15121 pulongest instead of plongest.
15122 (windows_xfer_partial): Likewise.
15123 (windows_xfer_shared_libraries): Likewise.
15124
15125 2014-01-14 Yao Qi <yao@codesourcery.com>
15126
15127 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15128 target_xfer_partial_ftype.
15129
15130 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15131
15132 PR python/15464
15133 PR python/16113
15134 * valops.c (value_struct_elt_bitpos): New function
15135 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15136 object to 'None' if the field name is an empty string ("").
15137 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15138 attribute to look for a field when 'name' is 'None'.
15139 (get_field_type): New function
15140
15141 2014-01-13 Doug Evans <dje@google.com>
15142
15143 PR symtab/16426
15144 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15145 (try_open_dwop_file): Ditto.
15146 * gdb_bfd.c: #include "vec.h".
15147 (bfdp): New typedef.
15148 (struct gdb_bfd_data): New member included_bfds.
15149 (gdb_bfd_unref): Unref all included bfds.
15150 (gdb_bfd_record_inclusion): New function.
15151 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15152
15153 2014-01-13 Tom Tromey <tromey@redhat.com>
15154
15155 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15156
15157 2014-01-13 Tom Tromey <tromey@redhat.com>
15158
15159 * defs.h (use_windows): Remove.
15160 * gdb.c (main): Update.
15161 * main.c (captured_main, gdb_main): Update.
15162 * main.h (struct captured_main_args) <use_windows>: Remove.
15163 * top.c (use_windows): Remove.
15164
15165 2014-01-13 Tom Tromey <tromey@redhat.com>
15166
15167 * defs.h (deprecated_flush_hook): Remove.
15168
15169 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15170
15171 PR threads/16216
15172 * linux-thread-db.c (try_thread_db_load): Add parameter
15173 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15174 (try_thread_db_load_from_pdir_1): Move it there from here.
15175 (try_thread_db_load_from_sdir): Update caller.
15176 (try_thread_db_load_from_dir): Move it there from here.
15177
15178 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15179
15180 * regformats/regdat.sh: Always rewrite the register file.
15181
15182 2014-01-13 Pedro Alves <palves@redhat.com>
15183
15184 * Makefile.in (CHECK_HEADERS): New variable.
15185 (check-headers:): New rule.
15186
15187 2014-01-13 Tom Tromey <tromey@redhat.com>
15188
15189 * cli/cli-setshow.c (do_set_command): Update.
15190 * defs.h (deprecated_set_hook): Remove.
15191 * top.c (deprecated_set_hook): Remove.
15192
15193 2014-01-13 Pedro Alves <palves@redhat.com>
15194
15195 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15196 the tracepoint if the PC is a pseudo-register.
15197
15198 2014-01-13 Tom Tromey <tromey@redhat.com>
15199
15200 * defs.h (XCALLOC): Remove.
15201 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15202 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15203 * dwarf2loc.c (allocate_piece_closure): Likewise.
15204 * elfread.c (elf_symfile_segments): Likewise.
15205 (elf_symfile_segments): Likewise.
15206 * gdbtypes.c (copy_type_recursive): Likewise.
15207 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15208 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15209 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15210 XCALLOC.
15211 * mt-tdep.c (mt_gdbarch_init): Likewise.
15212 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15213 XCALLOC.
15214 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15215 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15216 * registry.c (registry_alloc_data): Likewise.
15217 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15218 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15219 * serial.c (serial_fdopen_ops): Likewise.
15220 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15221 XCALLOC.
15222 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15223 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15224 not XCALLOC.
15225
15226 2014-01-13 Tom Tromey <tromey@redhat.com>
15227
15228 * defs.h (XMALLOC): Remove.
15229 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15230 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15231 * cli-out.c (struct ui_out *): Likewise.
15232 * cli/cli-dump.c (add_dump_command): Likewise.
15233 (add_dump_command): Likewise.
15234 * complaints.c (get_complaints): Likewise.
15235 (find_complaint): Likewise.
15236 * dwarf2-frame.c (execute_cfa_program): Likewise.
15237 * dwarf2read.c (abbrev_table_read_table): Likewise.
15238 * gdbarch.sh: Likewise.
15239 * gdbarch.c: Rebuild.
15240 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15241 * interps.c (interp_new): Likewise.
15242 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15243 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15244 * mi/mi-console.c (mi_console_file_new): Likewise.
15245 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15246 * mi/mi-out.c (mi_out_new): Likewise.
15247 * mi/mi-parse.c (mi_parse): Likewise.
15248 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15249 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15250 * observer.c (xalloc_observer_list_node): Likewise.
15251 * regcache.c (regcache_xmalloc_1): Likewise.
15252 * reggroups.c (reggroup_new): Likewise.
15253 (_initialize_reggroup): Likewise.
15254 * registry.c (register_data_with_cleanup): Likewise.
15255 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15256 * ser-base.c (serial_ttystate): Likewise.
15257 * ser-mingw.c (make_pipe_state): Likewise.
15258 * ser-pipe.c (pipe_open): Likewise.
15259 * serial.c (serial_open): Likewise.
15260 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15261 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15262 (tui_alloc_win_info): Likewise.
15263 (tui_add_content_elements): Likewise.
15264 * tui/tui-file.c (tui_file_new): Likewise.
15265 * tui/tui-out.c (tui_out_new): Likewise.
15266 * ui-file.c (mem_file_new): Likewise.
15267 * ui-out.c (push_level): Likewise.
15268 (make_cleanup_ui_out_end): Likewise.
15269 (append_header_to_list): Likewise.
15270 (ui_out_new): Likewise.
15271 * user-regs.c (user_reg_add_builtin): Likewise.
15272
15273 2014-01-13 Tom Tromey <tromey@redhat.com>
15274
15275 * defs.h (XZALLOC): Remove.
15276 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15277 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15278 (get_ada_tasks_inferior_data): Likewise.
15279 * auto-load.c (get_auto_load_pspace_data): Likewise.
15280 * auxv.c (get_auxv_inferior_data): Likewise.
15281 * bfd-target.c (target_bfd_reopen): Likewise.
15282 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15283 (deprecated_insert_raw_breakpoint): Likewise.
15284 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15285 * corelow.c (core_open): Likewise.
15286 * darwin-nat.c (darwin_check_new_threads): Likewise.
15287 (darwin_attach_pid): Likewise.
15288 * dummy-frame.c (dummy_frame_push): Likewise.
15289 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15290 * dwarf2loc.c (allocate_piece_closure): Likewise.
15291 * elfread.c (elf_symfile_segments): Likewise.
15292 * eval.c (ptrmath_type_p): Likewise.
15293 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15294 * gdbtypes.c (alloc_type_arch): Likewise.
15295 (alloc_type_instance): Likewise.
15296 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15297 * inf-child.c (inf_child_can_use_agent): Likewise.
15298 * inflow.c (get_inflow_inferior_data): Likewise.
15299 * infrun.c (save_infcall_suspend_state): Likewise.
15300 * jit.c (jit_reader_load): Likewise.
15301 (get_jit_objfile_data): Likewise.
15302 (get_jit_program_space_data): Likewise.
15303 (jit_object_open_impl): Likewise.
15304 (jit_symtab_open_impl): Likewise.
15305 (jit_block_open_impl): Likewise.
15306 (jit_frame_sniffer): Likewise.
15307 * linux-fork.c (add_fork): Likewise.
15308 * maint.c (make_command_stats_cleanup): Likewise.
15309 * objfiles.c (get_objfile_pspace_data): Likewise.
15310 * opencl-lang.c (struct lval_closure): Likewise.
15311 * osdata.c (osdata_start_osdata): Likewise.
15312 * progspace.c (new_address_space): Likewise.
15313 (add_program_space): Likewise.
15314 * remote-sim.c (get_sim_inferior_data): Likewise.
15315 * sh-tdep.c (sh_gdbarch_init): Likewise.
15316 * skip.c (Ignore): Likewise.
15317 (skip_delete_command): Likewise.
15318 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15319 (library_list_start_library): Likewise.
15320 (solib_aix_current_sos): Likewise.
15321 * solib-darwin.c (get_darwin_info): Likewise.
15322 (darwin_current_sos): Likewise.
15323 * solib-dsbt.c (get_dsbt_info): Likewise.
15324 * solib-ia64-hpux.c (new_so_list): Likewise.
15325 (ia64_hpux_get_solib_linkage_addr): Likewise.
15326 * solib-spu.c (append_ocl_sos): Likewise.
15327 (spu_current_sos): Likewise.
15328 * solib-svr4.c (get_svr4_info): Likewise.
15329 (svr4_keep_data_in_core): Likewise.
15330 (library_list_start_library): Likewise.
15331 (svr4_default_sos): Likewise.
15332 (svr4_read_so_list): Likewise.
15333 * solib-target.c (library_list_start_library): Likewise.
15334 (solib_target_current_sos): Likewise.
15335 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15336 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15337 * symfile.c (default_symfile_segments): Likewise.
15338 * target-descriptions.c (tdesc_data_init): Likewise.
15339 (tdesc_create_reg): Likewise.
15340 (struct tdesc_type *): Likewise.
15341 (tdesc_create_vector): Likewise.
15342 (tdesc_set_struct_size): Likewise.
15343 (struct tdesc_type *): Likewise.
15344 (tdesc_free_feature): Likewise.
15345 (tdesc_create_feature): Likewise.
15346 * windows-nat.c (windows_add_thread): Likewise.
15347 (windows_make_so): Likewise.
15348 * xml-support.c (gdb_xml_body_text): Likewise.
15349 (gdb_xml_create_parser_and_cleanup): Likewise.
15350 (xml_process_xincludes): Likewise.
15351 * xml-syscall.c (allocate_syscalls_info): Likewise.
15352 (syscall_create_syscall_desc): Likewise.
15353
15354 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15355
15356 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15357 function, with code from i386_stap_parse_special_token.
15358 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15359 (i386_stap_parse_special_token): Move code to the two functions
15360 above; simplify it.
15361
15362 2014-01-09 Pedro Alves <palves@redhat.com>
15363 Hui Zhu <hui@codesourcery.com>
15364
15365 PR gdb/16101
15366 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15367 bp_err_string. Don't mark the location shlib_disabled if the
15368 error thrown wasn't a generic or memory error. Catch errors
15369 thrown while inserting breakpoints in overlayed code. Output
15370 error message of software breakpoints.
15371 * remote.c (remote_insert_breakpoint): If this breakpoint has
15372 target-side commands but this stub doesn't support Z0 packets,
15373 throw NOT_SUPPORTED_ERROR error.
15374 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15375 * target.h (target_insert_breakpoint): Extend comment.
15376 (target_insert_hw_breakpoint): Add comment.
15377
15378 2014-01-08 Pedro Alves <palves@redhat.com>
15379
15380 * remote.c (remote_add_thread): Add threads silently if starting
15381 up.
15382 (remote_notice_new_inferior): If in all-stop, and starting up,
15383 don't call notice_new_inferior.
15384 (get_current_thread): New function, factored out from ...
15385 (add_current_inferior_and_thread): ... this. Adjust.
15386 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15387 found any thread, then select the remote's current thread as GDB's
15388 current thread too.
15389
15390 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15391
15392 * NEWS: Create a new section for the next release branch.
15393 Rename the section of the current branch, now that it has
15394 been cut.
15395
15396 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15397
15398 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15399 * version.in: Bump version to 7.7.50.DATE-cvs.
15400
15401 2014-01-08 Yao Qi <yao@codesourcery.com>
15402
15403 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15404 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15405 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15406
15407 2014-01-08 Yao Qi <yao@codesourcery.com>
15408
15409 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15410 return value of bfd_get_filename to symbol_file_add_from_bfd.
15411
15412 2014-01-08 Pierre Muller <muller@sourceware.org>
15413
15414 Fix PR16201.
15415 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15416 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15417 to prim_record_mininal_symbol_and_info.
15418 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15419 in call to prim_record_minimal_symbol_and_info.
15420 (read_pe_exported_syms): Set index field of section_data.
15421
15422 2014-01-07 Andrew Pinski <apinski@cavium.com>
15423
15424 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15425 * features/aarch64.c: Regenerate.
15426
15427 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15428
15429 * target.c (return_null): Define.
15430 (update_current_target): Use it instead of return_zero for
15431 functions that return a pointer.
15432
15433 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15434
15435 * source.c (add_path): Fix check for duplicated paths in the previously
15436 included paths.
15437
15438 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15439
15440 * ada-lang.c: Remove duplicated include statements.
15441 * alphabsd-nat.c: Ditto.
15442 * amd64-darwin-tdep.c: Ditto.
15443 * amd64fbsd-nat.c: Ditto.
15444 * auto-load.c: Ditto.
15445 * ax-gdb.c: Ditto.
15446 * breakpoint.c: Ditto.
15447 * dbxread.c: Ditto.
15448 * fork-child.c: Ditto.
15449 * gdb_usleep.c: Ditto.
15450 * i386-darwin-tdep.c: Ditto.
15451 * i386fbsd-nat.c: Ditto.
15452 * infcmd.c: Ditto.
15453 * inferior.c: Ditto.
15454 * jv-lang.c: Ditto.
15455 * linux-nat.c: Ditto.
15456 * linux-tdep.c: Ditto.
15457 * m68kbsd-nat.c: Ditto.
15458 * m68klinux-nat.c: Ditto.
15459 * microblaze-tdep.c: Ditto.
15460 * mips-linux-tdep.c: Ditto.
15461 * mn10300-tdep.c: Ditto.
15462 * nto-tdep.c: Ditto.
15463 * opencl-lang.c: Ditto.
15464 * osdata.c: Ditto.
15465 * printcmd.c: Ditto.
15466 * regcache.c: Ditto.
15467 * remote-m32r-sdi.c: Ditto.
15468 * remote.c: Ditto.
15469 * symfile.c: Ditto.
15470 * symtab.c: Ditto.
15471 * tilegx-linux-nat.c: Ditto.
15472 * tilegx-tdep.c: Ditto.
15473 * tracepoint.c: Ditto.
15474 * valops.c: Ditto.
15475 * vaxbsd-nat.c: Ditto.
15476 * windows-nat.c: Ditto.
15477 * xtensa-tdep.c: Ditto.
15478
15479 2014-01-07 Yao Qi <yao@codesourcery.com>
15480
15481 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15482
15483 2014-01-07 Yao Qi <yao@codesourcery.com>
15484 Joel Brobecker <brobecker@adacore.com>
15485
15486 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15487 (pdc_write_regs): Likewise.
15488 (fetch_regs_kernel_thread): Likewise.
15489 (store_regs_kernel_thread): Likewise.
15490
15491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15492
15493 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15494 tagged type objects to their actual type.
15495
15496 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15497
15498 * ada-valprint.c (print_field_values): Add "language" parameter.
15499 Update calls to print_field_values and print_variant_part.
15500 Pass new parameter "language" in call to val_print instead
15501 of "current_language". Replace call to ada_val_print by call
15502 to val_print.
15503 (print_variant_part): Add "language" parameter.
15504 (ada_val_print_struct_union): Update call to print_field_values.
15505
15506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15507
15508 * ada-valprint.c (ui_memcpy): Delete.
15509 (ada_print_floating): Update documentation. Add empty line
15510 between between function documentation and implementation.
15511 Delete variable "buffer". Use ui_file_xstrdup in place of
15512 ui_file_put. Minor adjustments following this change.
15513
15514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15515
15516 * ada-valprint.c (ada_val_print_string): New function,
15517 extracted from ada_val_print_array.
15518 (ada_val_print_array): Replace extracted code by call
15519 to ada_val_print_string followed by a return. Move
15520 "else" branch to the function's top block.
15521
15522 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15523
15524 * ada-valprint.c (ada_val_print_array): Move implementation
15525 down. Rename parameter "offset" and "val" into "offset_aligned"
15526 and "original_value" respectively. Add parameter "offset".
15527
15528 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15529
15530 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15531 re-organizing the code. Change the "???" message printed
15532 when target type is a TYPE_CODE_UNDEF into
15533 "<ref to undefined type>".
15534
15535 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15536
15537 * ada-valprint.c (print_record): Delete, implementation inlined...
15538 (ada_val_print_struct_union): ... here. Remove call to
15539 ada_check_typedef in inlined implementation.
15540
15541 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15542
15543 * ada-valprint.c (ada_val_print_gnat_array): New function,
15544 extracted from ada_val_print_1;
15545 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15546 (ada_val_print_flt, ada_val_print_struct_union)
15547 (ada_val_print_ref): Likewise.
15548 (ada_val_print_1): Delete variables i and elttype.
15549 Replace extracted-out code by call to corresponding
15550 new functions.
15551
15552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15553
15554 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15555
15556 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15557
15558 * ada-valprint.c (ada_val_print_1): Replace calls to
15559 ada_val_print_1 by calls to val_print.
15560
15561 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15562
15563 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15564 Update calls to self accordingly. Replace calls to c_val_print
15565 by calls to val_print.
15566
15567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15568
15569 * ada-valprint.c (print_record): Delete declaration.
15570 (adjust_type_signedness, ada_val_print_1): Likewise.
15571 (ada_val_print): Move function implementation down.
15572 (print_variant_part, print_field_values, print_record):
15573 Move function implementation up.
15574
15575 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15576
15577 * python/py-type.c (typy_get_name): New function.
15578 (type_object_getset): Add entry for attribute "name".
15579 * NEWS: Add entry mentioning this new attribute.
15580
15581 2014-01-07 Yao Qi <yao@codesourcery.com>
15582
15583 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15584 statement.
15585
15586 2014-01-07 Yao Qi <yao@codesourcery.com>
15587
15588 * gnu-nat.c (info_port_rights): Add qualifier const to
15589 argument args.
15590
15591 2014-01-07 Yao Qi <yao@codesourcery.com>
15592
15593 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15594
15595 2014-01-07 Yao Qi <yao@codesourcery.com>
15596
15597 * gnu-nat.c (make_inf) Update declaration.
15598 (make_inf): Make it static.
15599 (inf_set_traced): Likewise.
15600 (inf_port_to_thread, inf_task_died_status): Likewise.
15601
15602 2014-01-07 Yao Qi <yao@codesourcery.com>
15603
15604 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15605
15606 2014-01-07 Yao Qi <yao@codesourcery.com>
15607
15608 * gnu-nat.c (_initialize_gnu_nat): Declare.
15609
15610 2014-01-07 Yao Qi <yao@codesourcery.com>
15611
15612 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15613 'enum bfd_endian'.
15614 (struct gdbarch_info) <byte_order>: Change type to
15615 'enum bfd_endian'.
15616 <byte_order_for_code>: Likewise.
15617 * gdbarch.c, gdbarch.h: Regenerated.
15618
15619 2014-01-06 Sasha Smundak <asmundak@google.com>
15620
15621 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15622
15623 2014-01-06 Tom Tromey <tromey@redhat.com>
15624
15625 * doublest.c (convert_doublest_to_floatformat): Use const, not
15626 CONST.
15627 * somread.c (som_symtab_read): Likewise.
15628
15629 2014-01-07 Hui Zhu <hui@codesourcery.com>
15630
15631 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15632 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15633 (gdb_bfd_fopen): Ditto.
15634 (gdb_bfd_openr): Ditto.
15635 (gdb_bfd_openw): Ditto.
15636 (gdb_bfd_openr_iovec): Ditto.
15637 (gdb_bfd_fdopenr): Ditto.
15638 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15639 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15640 with xstrdup.
15641 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15642 with xstrdup.
15643 * symfile-mem.c (symbol_file_add_from_memory): Removed
15644 gdb_bfd_stash_filename.
15645
15646 2014-01-03 Doug Evans <dje@google.com>
15647
15648 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15649 output.
15650
15651 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15652
15653 Update year range in copyright notice of all files.
15654
15655 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15656
15657 * top.c (print_gdb_version): Set copyright year to 2014.
15658
15659 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15660
15661 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15662
15663 For older changes see ChangeLog-2013.
15664 \f
15665 Local Variables:
15666 mode: change-log
15667 left-margin: 8
15668 fill-column: 74
15669 version-control: never
15670 coding: utf-8
15671 End:
This page took 0.350707 seconds and 4 git commands to generate.