revert previous patch so that I can re-commit with correct author
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
007baf27
DE
12014-12-02 Doug Evans <dje@google.com>
2
3 * python/py-infthread.c: Whitespace fixes.
4
d5552aab
AA
52014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
6
7 * features/Makefile (s390-te-linux64-expedite): Replace
8 non-existant r14 and r15 by r14l and r15l, respectively.
9 * regformats/s390-te-linux64.dat: Regenerate.
10
30b5e341
SM
112014-12-01 Simon Marchi <simon.marchi@ericsson.com>
12
13 * objfiles.c (allocate_objfile): Remove duplicate comment.
14
ac3d87c0
UW
152014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
16
17 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
18 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
19 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
20 (supply_gregset, supply_fpregset): Remove.
21 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
22 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
23 and sizeof_gregset.
24
f10c5b19
JK
252014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
26
27 Add add-auto-load-scripts-directory.
28 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
29 * auto-load.c (add_auto_load_dir): New function.
30 (_initialize_auto_load): Install it.
31
f0d4ba1f
MG
322014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
33
34 Pushed by Joel Brobecker <brobecker@adacore.com>.
35 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
36
18ac6ffc
SC
372014-11-29 Siva Chandra Reddy <sivachandra@google.com>
38
39 * eval.c (evaluate_subexp): Check that the thread stack temporaries
40 are not already enabled before enabling them.
41
4072f920
YQ
422014-11-29 Yao Qi <yao@codesourcery.com>
43
44 * arm-tdep.c (arm_analyze_prologue): Move local variables
45 'framereg' and 'framesize' to inner block. Move code to
46 inner block too.
47
6c659fc2
SC
482014-11-28 Siva Chandra Reddy <sivachandra@google.com>
49
50 * eval.c: Include gdbthread.h.
51 (evaluate_subexp): Enable thread stack temporaries before
52 evaluating a complete expression and clean them up after the
53 evaluation is complete.
54 * gdbthread.h: Include common/vec.h.
55 (value_ptr): New typedef.
56 (VEC (value_ptr)): New vector type.
57 (value_vec): New typedef.
58 (struct thread_info): Add new fields stack_temporaries_enabled
59 and stack_temporaries.
60 (enable_thread_stack_temporaries)
61 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
62 (get_last_thread_stack_temporary)
63 (value_in_thread_stack_temporaries): Declare.
64 * gdbtypes.c (class_or_union_p): New function.
65 * gdbtypes.h (class_or_union_p): Declare.
66 * infcall.c (call_function_by_hand): Store return values of class
67 type as temporaries on stack.
68 * thread.c (enable_thread_stack_temporaries): New function.
69 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
70 (get_last_thread_stack_temporary): Likewise.
71 (value_in_thread_stack_temporaries): Likewise.
72 * value.c (value_force_lval): New function.
73 * value.h (value_force_lval): Declare.
74
f7ca3fcf
PM
752014-11-28 Pierre Muller <muller@sourceware.org>
76
77 Pushed by Joel Brobecker <brobecker@adacore.com>.
78 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
79 registers.
80
b2859a9a
UW
812014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
82
83 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
84 * config/sparc/linux.mh (NATDEPFILES): Likewise.
85 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
86 * m68klinux-nat.c (fetch_core_registers): Remove.
87 (linux_elf_core_fns): Remove.
88 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
89
0fa9473f
JB
902014-11-28 Joel Brobecker <brobecker@adacore.com>
91
92 * utils.c (gdb_realpath): Rework comment about handling on
93 Windows.
94
6a29c58e
YQ
952014-11-28 Yao Qi <yao@codesourcery.com>
96
97 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
98 rename.
99 * gnulib/aclocal.m4: Re-generated.
100 * gnulib/config.in: Re-generated.
101 * gnulib/configure: Re-generated.
102 * gnulib/import/Makefile.am: Re-generated.
103 * gnulib/import/Makefile.in: Re-generated.
104 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
105 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
106 * import/basename-lgpl.c: New file.
107 * import/dirname-lgpl.c: New file.
108 * import/dirname.h: New file.
109 * import/m4/dirname.m4: New file.
110 * import/m4/malloc.m4: New file.
111 * import/m4/rename.m4: New file.
112 * import/m4/rmdir.m4: New file.
113 * import/m4/stdio_h.m4: New file.
114 * import/malloc.c: New file.
115 * import/rename.c: New file.
116 * import/rmdir.c: New file.
117 * import/same-inode.h: New file.
118 * import/stdio.c: New file.
119 * import/stdio.in.h: New file.
120 * import/stripslash.c: New file.
121
abbffc89
YQ
1222014-11-28 Yao Qi <yao@codesourcery.com>
123
124 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
125 and realpath.
126 * config.in: Re-generated.
127 * configure: Re-generated.
128 * utils.c (gdb_realpath): Remove code calling realpath,
129 canonicalize_file_name and pathconf.
130 [!_WIN32]: Call canonicalize_file_name.
131
98399780
YQ
1322014-11-28 Yao Qi <yao@codesourcery.com>
133
134 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
135 canonicalize-lgpl.
136 * aclocal.m4: Re-generated.
137 * config.in: Re-generated.
138 * configure: Re-generated.
139 * import/Makefile.am: Re-generated.
140 * import/Makefile.in: Re-generated.
141 * import/m4/gnulib-cache.m4: Re-generated.
142 * import/m4/gnulib-comp.m4: Re-generated.
143 * import/canonicalize-lgpl.c: New file.
144 * import/extra/snippet/_Noreturn.h: New file.
145 * import/m4/canonicalize.m4: New file.
146 * import/m4/double-slash-root.m4: New file.
147 * import/m4/eealloc.m4: New file.
148 * import/m4/malloca.m4: New file.
149 * import/m4/nocrash.m4: New file.
150 * import/m4/stdlib_h.m4: New file.
151 * import/malloca.c: New file.
152 * import/malloca.h: New file.
153 * import/malloca.valgrind: New file.
154
3332aaf2
YQ
1552014-11-28 Yao Qi <yao@codesourcery.com>
156
157 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
158 * config.in, configure: Regenerate.
159 * symfile.c (find_separate_debug_file_by_debuglink): Remove
160 code checking HAVE_LSTAT is defined.
161
f45c62c4
YQ
1622014-11-28 Yao Qi <yao@codesourcery.com>
163
164 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
165 lstat.
166 * gnulib/aclocal.m4: Re-generated.
167 * gnulib/config.in: Re-generated.
168 * gnulib/configure: Re-generated.
169 * gnulib/import/Makefile.am: Re-generated.
170 * gnulib/import/Makefile.in: Re-generated.
171 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
172 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
173 * gnulib/import/lstat.c: New file.
174 * gnulib/import/m4/lstat.m4: New file.
175
bdca27a2
YQ
1762014-11-28 Yao Qi <yao@codesourcery.com>
177
178 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
179 * config.in, configure: Re-generate.
180 * inf-child.c (inf_child_fileio_readlink): Don't check
181 HAVE_READLINK is defined.
182
2196f55f
YQ
1832014-11-28 Yao Qi <yao@codesourcery.com>
184
185 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
186 * gnulib/aclocal.m4: Re-generated.
187 * gnulib/config.in: Likewise.
188 * gnulib/configure: Likewise.
189 * gnulib/import/Makefile.am: Likewise.
190 * gnulib/import/Makefile.in: Likewise.
191 * gnulib/import/m4/gnulib-cache.m4: Likewise.
192 * gnulib/import/m4/gnulib-comp.m4: Likewise.
193 * gnulib/import/dosname.h: New file
194 * gnulib/import/m4/largefile.m4: New file.
195 * gnulib/import/m4/readlink.m4: New file.
196 * gnulib/import/m4/stat.m4: New file.
197 * gnulib/import/readlink.c: New file.
198 * gnulib/import/stat.c: New file.
199
7014e923 2002014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
201
202 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
203 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
204
aa489395
SL
2052014-11-25 Sandra Loosemore <sandra@codesourcery.com>
206
207 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
208 that there can be only one stack adjustment in the prologue
209 with tests to detect specific disallowed stack adjustments.
210
7f1659b5
SL
2112014-11-25 Sandra Loosemore <sandra@codesourcery.com>
212
213 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
214 adjustments.
215
d53c26c7
SL
2162014-11-25 Sandra Loosemore <sandra@codesourcery.com>
217
218 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
219 the instruction as well as reading it from memory.
220 (nios2_match_add): New.
221 (nios2_match_sub): New.
222 (nios2_match_addi): New.
223 (nios2_match_orhi): New.
224 (nios2_match_stw): New.
225 (nios2_match_ldw): New.
226 (nios2_match_rdctl): New.
227 (enum branch_condition): New.
228 (nios2_match_branch): New.
229 (nios2_match_jmpi): New.
230 (nios2_match_calli): New.
231 (nios2_match_jmpr): New.
232 (nios2_match_callr): New.
233 (nios2_match_break): New.
234 (nios2_match_trap): New.
235 (nios2_in_epilogue_p): Rewrite to use new functions.
236 (nios2_analyze_prologue): Likewise.
237 (nios2_skip_prologue): Delete unused local limit_pc.
238 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
239 (nios2_get_next_pc): Rewrite to use new functions.
240
cac9b138
JK
2412014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
242
243 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
244
a441dfbc
ST
2452014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
246
247 Pushed by Joel Brobecker <brobecker@adacore.com>
248 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
249 elements pi_len by the size of the elements before calling
250 vm_deallocate.
251 (inf_validate_task_sc): Likewise, and properly deallocate the
252 noise array.
253
4c9e8482
DE
2542014-11-23 Doug Evans <xdje42@gmail.com>
255
256 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
257 number and name if present. All callers updated.
258 (dump_fn_fieldlists): Fix indentation of args.
259
15ee0bbd
PP
2602014-11-23 Patrick Palka <patrick@parcs.ath.cx>
261
262 * MAINTAINERS (Write After Approval): Add myself.
263
e8af5d7a
JB
2642014-11-23 Joel Brobecker <brobecker@adacore.com>
265
266 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
267 to a bp_call_dummy breakpoint type.
268
a344fc09
PP
2692014-11-23 Patrick Palka <patrick@parcs.ath.cx>
270
271 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
272 registering the signal handler.
273
d64e57fa
PP
2742014-11-23 Patrick Palka <patrick@parcs.ath.cx>
275
276 * event-top.h (call_stdin_event_handler_again_p): Declare.
277 * event-top.c (call_stdin_event_handler_again_p): Define.
278 (stdin_event_handler): Use it.
279 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
280 handler again if there is pending input following a
281 start sequence.
282
6f9d33d8
PP
2832014-11-23 Patrick Palka <patrick@parcs.ath.cx>
284
285 Pushed by Joel Brobecker <brobecker@adacore.com>
286 * linux-fork.c (checkpoint_command): Print index of new
287 checkpoint in response message.
288
88db67ef
YQ
2892014-11-23 Yao Qi <yao@codesourcery.com>
290
291 * valprint.c (read_string): Move local variables 'found_nul',
292 'chunksize' and 'limit' to inner scope. Update comments.
293
01465b56
DE
2942014-11-22 Doug Evans <xdje42@gmail.com>
295
296 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
297 function comment.
298 (search_symbols): Fix comments and whitespace.
299
07a1c2c3
DE
3002014-11-22 Doug Evans <xdje42@gmail.com>
301
302 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
303
b2a919a8
DE
3042014-11-21 Doug Evans <dje@google.com>
305
306 * psymtab.c (psymtab_search_name): Fix whitespace.
307
278289d5
YQ
3082014-11-21 Yao Qi <yao@codesourcery.com>
309
310 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
311 errno.
312 * gnulib/import/Makefile.am: Re-generated.
313 * gnulib/import/Makefile.in: Likewise.
314 * gnulib/import/m4/gnulib-cache.m4: Likewise.
315
e01e2baa
YQ
3162014-11-21 Yao Qi <yao@codesourcery.com>
317
318 * gdb_wchar.h: Include wchar.h and wctype.h.
319 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
320 include wchar.h and wctype.h.
321 Don't check HAVE_WCHAR_H.
322
f0c00af8
YQ
3232014-11-21 Yao Qi <yao@codesourcery.com>
324
325 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
326 and wctype-h.
327 * gnulib/import/Makefile.am: Re-generated.
328 * gnulib/import/Makefile.in: Likewise.
329 * gnulib/import/m4/gnulib-cache.m4: Likewise.
330
0cae13bb
YQ
3312014-11-21 Yao Qi <yao@codesourcery.com>
332
333 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
334 memchr.
335 * gnulib/import/Makefile.am: Re-generated.
336 * gnulib/import/Makefile.in: Likewise.
337 * gnulib/import/m4/gnulib-cache.m4: Likewise.
338
9c232dda
YQ
3392014-11-21 Yao Qi <yao@codesourcery.com>
340
341 * common/common-defs.h: Include alloca.h
342 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
343 * configure: Re-generated.
344 * defs.h: Remove code handling alloca.
345 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
346 or not.
347
00d7f58f
YQ
3482014-11-21 Yao Qi <yao@codesourcery.com>
349
350 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
351 alloca.
352 * gnulib/import/Makefile.am: Re-generated.
353 * gnulib/import/Makefile.in: Likewise..
354 * gnulib/import/m4/gnulib-cache.m4: Likewise.
355
6068ad5d
YQ
3562014-11-21 Yao Qi <yao@codesourcery.com>
357
358 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
359 alphabetical order.
360
45e44d27
JB
3612014-11-21 Joel Brobecker <brobecker@adacore.com>
362
363 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
364 flag_unsigned if HIGH_BOUND is constant and negative.
365
7e7cbeb3
SDJ
3662014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
367
368 PR breakpoints/10737
369 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
370 modifier from "struct gdbarch" when compiling without Expat (XML)
371 support.
372 (get_syscall_by_number): Likewise.
373 (get_syscall_by_name): Likewise.
374 (get_syscall_names): Likewise.
375
458c8db8
SDJ
3762014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
377
378 PR breakpoints/10737
379 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
380 set_xml_syscall_file_name to provide gdbarch.
381 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
382 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
383 * breakpoint.c (print_it_catch_syscall): Adjust call to
384 get_syscall_by_number to provide gdbarch.
385 (print_one_catch_syscall): Likewise.
386 (print_mention_catch_syscall): Likewise.
387 (print_recreate_catch_syscall): Likewise.
388 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
389 and get_syscall_by_name to provide gdbarch.
390 (catch_syscall_completer): Adjust call to get_syscall_names to
391 provide gdbarch.
392 * gdbarch.c: Regenerate.
393 * gdbarch.h: Likewise.
394 * gdbarch.sh: Forward declare "struct syscalls_info".
395 (xml_syscall_file): New variable.
396 (syscalls_info): Likewise.
397 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
398 set_xml_syscall_file_name to provide gdbarch.
399 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
400 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
401 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
402 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
403 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
404 * xml-syscall.c: Include gdbarch.h.
405 (set_xml_syscall_file_name): Accept gdbarch parameter.
406 (get_syscall_by_number): Likewise.
407 (get_syscall_by_name): Likewise.
408 (get_syscall_names): Likewise.
409 (my_gdb_datadir): Delete global variable.
410 (struct syscalls_info) <my_gdb_datadir>: New variable.
411 (struct syscalls_info) <sysinfo>: Rename variable to
412 "syscalls_info".
413 (sysinfo): Delete global variable.
414 (have_initialized_sysinfo): Likewise.
415 (xml_syscall_file): Likewise.
416 (sysinfo_free_syscalls_desc): Rename to...
417 (syscalls_info_free_syscalls_desc): ... this.
418 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
419 code to the new layout of "struct syscalls_info".
420 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
421 "syscalls_info".
422 (syscall_create_syscall_desc): Likewise.
423 (syscall_start_syscall): Likewise.
424 (syscall_parse_xml): Likewise.
425 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
426 (init_sysinfo): Rename to...
427 (init_syscalls_info): ...this. Add gdbarch as a parameter.
428 Adjust function to deal with gdbarch.
429 (xml_get_syscall_number): Delete parameter sysinfo. Accept
430 gdbarch as a parameter. Adjust code.
431 (xml_get_syscall_name): Likewise.
432 (xml_list_of_syscalls): Likewise.
433 (set_xml_syscall_file_name): Accept gdbarch as parameter.
434 (get_syscall_by_number): Likewise.
435 (get_syscall_by_name): Likewise.
436 (get_syscall_names): Likewise.
437 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
438 (get_syscall_by_number): Likewise.
439 (get_syscall_by_name): Likewise.
440 (get_syscall_names): Likewise.
441
43f3e411
DE
4422014-11-20 Doug Evans <xdje42@gmail.com>
443
444 Split struct symtab into two: struct symtab and compunit_symtab.
445 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
446 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
447 to "struct compunit_symtab *". All callers updated.
448 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
449 "struct symtab *" argument to "struct compunit_symtab *".
450 All callers updated.
451 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
452 result to "struct compunit_symtab *". All callers updated.
453 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
454 Change result to "struct compunit_symtab *". All callers updated.
455 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
456 hange type to "struct compunit_symtab *". All uses updated.
457 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
458 Change type to "struct compunit_symtab *". All uses updated.
459 * buildsym.c (struct buildsym_compunit): New struct.
460 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
461 (buildsym_compunit): New static global.
462 (finish_block_internal): Update to fetch objfile from
463 buildsym_compunit.
464 (make_blockvector): Delete objfile argument.
465 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
466 debugformat, producer.
467 (start_buildsym_compunit): New function.
468 (free_buildsym_compunit): Renamed from free_subfiles_list.
469 All callers updated.
470 (patch_subfile_names): Rewrite to use buildsym_compunit.
471 (get_compunit_symtab): New function.
472 (get_macro_table): Delete argument comp_dir. All callers updated.
473 (start_symtab): Change result to "struct compunit_symtab *".
474 All callers updated. Create the subfile of the main source file.
475 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
476 (reset_symtab_globals): Update.
477 (end_symtab_get_static_block): Update to use buildsym_compunit.
478 (end_symtab_without_blockvector): Rewrite.
479 (end_symtab_with_blockvector): Change result to
480 "struct compunit_symtab *". All callers updated.
481 Update to use buildsym_compunit. Don't set symtab->dirname,
482 instead set it in the compunit.
483 Explicitly make sure main symtab is first in its list.
484 Set debugformat, producer, blockvector, block_line_section, and
485 macrotable in the compunit.
486 (end_symtab_from_static_block): Change result to
487 "struct compunit_symtab *". All callers updated.
488 (end_symtab, end_expandable_symtab): Ditto.
489 (set_missing_symtab): Change symtab argument to
490 "struct compunit_symtab *". All callers updated.
491 (augment_type_symtab): Ditto.
492 (record_debugformat): Update to use buildsym_compunit.
493 (record_producer): Update to use buildsym_compunit.
494 * buildsym.h (struct subfile) <dirname>: Delete.
495 <producer, debugformat>: Delete.
496 <buildsym_compunit>: New member.
497 (get_compunit_symtab): Declare.
498 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
499 from primary_symtab. Change type to "struct compunit_symtab *".
500 All uses updated.
501 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
502 All callers updated.
503 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
504 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
505 symtab. Change type to "struct compunit_symtab *". All uses updated.
506 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
507 All callers updated.
508 (dw2_find_last_source_symtab): Ditto.
509 (dw2_lookup_symbol): Ditto.
510 (recursively_find_pc_sect_compunit_symtab): Renamed from
511 recursively_find_pc_sect_symtab. Change result to
512 "struct compunit_symtab *". All callers updated.
513 (dw2_find_pc_sect_compunit_symtab): Renamed from
514 dw2_find_pc_sect_symtab. Change result to
515 "struct compunit_symtab *". All callers updated.
516 (get_compunit_symtab): Renamed from get_symtab. Change result to
517 "struct compunit_symtab *". All callers updated.
518 (recursively_compute_inclusions): Change type of immediate_parent
519 argument to "struct compunit_symtab *". All callers updated.
520 (compute_compunit_symtab_includes): Renamed from
521 compute_symtab_includes. All callers updated. Rewrite to compute
522 includes of compunit_symtabs and not symtabs.
523 (process_full_comp_unit): Update to work with struct compunit_symtab.
524 (process_full_type_unit): Ditto.
525 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
526 (dwarf_decode_lines): Remove special case handling of main subfile.
527 (macro_start_file): Delete argument comp_dir. All callers updated.
528 (dwarf_decode_macro_bytes): Ditto.
529 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
530 use struct compunit_symtab.
531 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
532 * jit.c (finalize_symtab): Build compunit_symtab.
533 * jv-lang.c (get_java_class_symtab): Change result to
534 "struct compunit_symtab *". All callers updated.
535 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
536 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
537 comp_dir. Change type to "struct compunit_symtab *".
538 All uses updated.
539 (new_macro_table): Change comp_dir argument to cust,
540 "struct compunit_symtab *". All callers updated.
541 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
542 nr_primary_symtabs. All uses updated.
543 (count_symtabs_and_blocks): Update to handle compunits.
544 (report_command_stats): Update output, "primary symtabs" renamed to
545 "compunits".
546 * mdebugread.c (new_symtab): Change result to
547 "struct compunit_symtab *". All callers updated.
548 (parse_procedure): Change type of search_symtab argument to
549 "struct compunit_symtab *". All callers updated.
550 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
551 separate loop.
552 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
553 symtabs. Change type to "struct compunit_symtab *". All uses updated.
554 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
555 All uses updated.
556 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
557 All uses updated.
558 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
559 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
560 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
561 symtab. Change type to "struct compunit_symtab *". All uses updated.
562 * psymtab.c (psymtab_to_symtab): Change result type to
563 "struct compunit_symtab *". All callers updated.
564 (find_pc_sect_compunit_symtab_from_partial): Renamed from
565 find_pc_sect_symtab_from_partial. Change result type to
566 "struct compunit_symtab *". All callers updated.
567 (lookup_symbol_aux_psymtabs): Change result type to
568 "struct compunit_symtab *". All callers updated.
569 (find_last_source_symtab_from_partial): Ditto.
570 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
571 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
572 and macro_table from compunit.
573 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
574 type to "struct compunit_symtab *". All callers updated.
575 (debug_qf_lookup_symbol): Ditto.
576 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
577 debug_qf_find_pc_sect_symtab, change result type to
578 "struct compunit_symtab *". All callers updated.
579 * symfile.c (allocate_symtab): Delete objfile argument.
580 New argument cust.
581 (allocate_compunit_symtab): New function.
582 (add_compunit_symtab_to_objfile): New function.
583 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
584 Change result type to "struct compunit_symtab *". All uses updated.
585 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
586 Change result type to "struct compunit_symtab *". All uses updated.
587 * symmisc.c (print_objfile_statistics): Compute blockvector count in
588 separate loop.
589 (dump_symtab_1): Update test for primary source symtab.
590 (maintenance_info_symtabs): Update to handle compunit symtabs.
591 (maintenance_check_symtabs): Ditto.
592 * symtab.c (set_primary_symtab): Delete.
593 (compunit_primary_filetab): New function.
594 (compunit_language): New function.
595 (iterate_over_some_symtabs): Change type of arguments "first",
596 "after_last" to "struct compunit_symtab *". All callers updated.
597 Update to loop over symtabs in each compunit.
598 (error_in_psymtab_expansion): Rename symtab argument to cust,
599 and change type to "struct compunit_symtab *". All callers updated.
600 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
601 Change result type to "struct compunit_symtab *". All callers updated.
602 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
603 Change result type to "struct compunit_symtab *". All callers updated.
604 (find_pc_sect_line): Only loop over symtabs within selected compunit
605 instead of all symtabs in the objfile.
606 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
607 <compunit_symtab> New member.
608 <block_line_section>: Moved to compunit_symtab.
609 <locations_valid>: Ditto.
610 <epilogue_unwind_valid>: Ditto.
611 <macro_table>: Ditto.
612 <dirname>: Ditto.
613 <debugformat>: Ditto.
614 <producer>: Ditto.
615 <objfile>: Ditto.
616 <call_site_htab>: Ditto.
617 <includes>: Ditto.
618 <user>: Ditto.
619 <primary>: Delete
620 (SYMTAB_COMPUNIT): New macro.
621 (SYMTAB_BLOCKVECTOR): Update definition.
622 (SYMTAB_OBJFILE): Update definition.
623 (SYMTAB_DIRNAME): Update definition.
624 (struct compunit_symtab): New type. Common members among all source
625 symtabs within a compilation unit moved here. All uses updated.
626 (COMPUNIT_OBJFILE): New macro.
627 (COMPUNIT_FILETABS): New macro.
628 (COMPUNIT_DEBUGFORMAT): New macro.
629 (COMPUNIT_PRODUCER): New macro.
630 (COMPUNIT_DIRNAME): New macro.
631 (COMPUNIT_BLOCKVECTOR): New macro.
632 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
633 (COMPUNIT_LOCATIONS_VALID): New macro.
634 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
635 (COMPUNIT_CALL_SITE_HTAB): New macro.
636 (COMPUNIT_MACRO_TABLE): New macro.
637 (ALL_COMPUNIT_FILETABS): New macro.
638 (compunit_symtab_ptr): New typedef.
639 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
640
005e2509
JB
6412014-11-20 Joel Brobecker <brobecker@adacore.com>
642
643 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
644 if the TYPE_CODE of range_type's base type does not match
645 the TYPE_CODE of encoding_type's base type.
646
2b0f535a
JB
6472014-11-19 Joel Brobecker <brobecker@adacore.com>
648
649 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
650 it starts with '<'.
651
8908fca5
JB
6522014-11-19 Joel Brobecker <brobecker@adacore.com>
653
654 * ada-lang.c (ada_is_redundant_range_encoding): New function.
655 (ada_is_redundant_index_type_desc): New function.
656 (to_fixed_array_type): Ignore parallel XA type if redundant.
657
4a46959e
JB
6582014-11-19 Joel Brobecker <brobecker@adacore.com>
659
660 * ada-lang.c (constrained_packed_array_type): Set the length
661 of the return array as if both bounds where zero if that
662 returned array's index type is dynamic.
663
2acf986b
YQ
6642014-11-19 Yao Qi <yao@codesourcery.com>
665
666 * config/i386/go32.mh (CC): Remove.
667
439247b6
DE
6682014-11-18 Doug Evans <xdje42@gmail.com>
669
670 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
671 updated.
672
4d663531
DE
6732014-11-18 Doug Evans <xdje42@gmail.com>
674
675 * buildsym.c (buildsym_objfile): New static global.
676 (buildsym_comp_dir): New static global.
677 (finish_block_internal): Delete arg objfile. All callers updated.
678 (finish_block): Delete arg objfile. All callers updated.
679 (start_subfile): Delete arg dirname. All callers updated.
680 (patch_subfile_names): Update buildsym_comp_dir.
681 (get_macro_table): Delete arg objfile. All callers updated.
682 (start_symtab): New arg objfile. All callers updated.
683 Rename arg dirname to comp_dir.
684 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
685 (end_symtab_get_static_block): Delete arg objfile. All callers
686 updated.
687 (end_symtab_without_blockvector): Ditto.
688 (end_symtab_with_blockvector): Ditto.
689 (end_symtab_from_static_block): Ditto.
690 (end_symtab): Ditto.
691 (end_expandable_symtab): Ditto.
692 (augment_type_symtab): Ditto.
693 * coffread.c (coff_start_symtab): New arg objfile. All callers
694 updated.
695
8435453b
DE
6962014-11-18 Doug Evans <xdje42@gmail.com>
697
698 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
699 updated.
700
ee6f8984
DE
7012014-11-18 Doug Evans <xdje42@gmail.com>
702
703 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
704 symtab.dirname updated to use it.
705
eb822aa6
DE
7062014-11-18 Doug Evans <xdje42@gmail.com>
707
708 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
709 symtab.objfile updated to use it.
710
98387a29
DE
7112014-11-18 Doug Evans <xdje42@gmail.com>
712
713 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
714
aff08958
DE
7152014-11-18 Doug Evans <xdje42@gmail.com>
716
717 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
718 SYMBOL_OBJFILE.
719 * findvar.c (default_read_var_value): Ditto.
720 * jv-lang.c (add_class_symtab_symbol): Ditto.
721 * parse.c (operator_check_standard): Ditto.
722 * printcmd.c (address_info): Ditto.
723 * symtab.c (fixup_symbol_section): Ditto.
724 (skip_prologue_sal): Ditto.
725 * tracepoint.c (scope_info): Ditto.
726 * valops.c (find_function_in_inferior): Ditto.
727 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
728 * python/py-symbol.c (set_symbol): Ditto.
729
7bab9b58
DE
7302014-11-18 Doug Evans <xdje42@gmail.com>
731
732 * buildsym.c (main_subfile): New static global.
733 (free_subfiles_list): New function.
734 (start_symtab): Set main_subfile.
735 (restart_symtab): Replace init of subfiles, current_subfile with
736 call to free_subfiles_list.
737 (watch_main_source_file_lossage): Use main_subfile.
738 (reset_symtab_globals): Replace init of current_subfile with call
739 to free_subfiles_list.
740 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
741 functions, split out from ...
742 (end_symtab_from_static_block): ... here. Rewrite to call them.
743
f194fefb
DE
7442014-11-18 Doug Evans <xdje42@gmail.com>
745
746 The result of symtab expansion is always a primary symtab.
747 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
748 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
749 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
750 (psymtab_to_symtab): Add comment and assert.
751 (map_matching_symbols_psymtab): Remove unnecessary test for
752 non-primary symtab.
753
34248c3a
DE
7542014-11-15 Doug Evans <xdje42@gmail.com>
755
756 PR symtab/17559
757 * symtab.c (find_pc_line_symtab): New function.
758 * symtab.h (find_pc_line_symtab): Declare.
759 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
760 find_pc_symtab.
761 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
762 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
763 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
764 * tui/tui-win.c (make_visible_with_new_height): Ditto.
765 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
766 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
767
2097ae25
DE
7682014-11-15 Doug Evans <xdje42@gmail.com>
769
770 * symtab.c (expand_symtab_containing_pc): Renamed from
771 find_pc_sect_symtab_via_partial. All callers updated.
772
1ada499f
YQ
7732014-11-15 Yao Qi <yao@codesourcery.com>
774
775 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
776
355e2102
JB
7772014-11-14 Joel Brobecker <brobecker@adacore.com>
778
779 * common/common-defs.h: Move <stdarg.h> #include ahead of
780 <stdio.h> #include.
781
83030110
PA
7822014-11-14 Pedro Alves <palves@redhat.com>
783
784 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
785 [!PHONY_ICONV] (gdb_iconv): New function.
786 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
787
a8719064
DE
7882014-11-13 Doug Evans <dje@google.com>
789
790 PR symtab/17591
791 * dwarf2read.c (find_slot_in_mapped_hash): Handle
792 "(anonymous namespace)".
793
60f7655a
DE
7942014-11-13 Doug Evans <dje@google.com>
795
796 * dwarf2read.c (update_enumeration_type_from_children): Avoid
797 infinite loop.
798
5784b3ca
JK
7992014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
800
801 * NEWS (maint set target-async): Fix typo.
802
6218dc4b
PA
8032014-11-12 Pedro Alves <palves@redhat.com>
804
805 * infrun.c (enum infwait_states, infwait_state): Delete.
806
af48d08f
PA
8072014-11-12 Pedro Alves <palves@redhat.com>
808
809 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
810 Rewrite stepping over a permanent breakpoint.
811 (thread_still_needs_step_over, proceed): Don't set
812 stepping_over_breakpoint for permanent breakpoints.
813 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
814 single-step breakpoints out of the target on hardware step
815 targets.
816 (process_event_stop_test): If stepping a permanent breakpoint
817 doesn't hit the step-resume breakpoint, delete the step-resume
818 breakpoint.
819 (switch_back_to_stepped_thread): Also check if the stepped thread
820 has advanced already on hardware step targets.
821 (currently_stepping): Return true if the thread stepped a
822 breakpoint.
823
1a853c52
PA
8242014-11-12 Pedro Alves <palves@redhat.com>
825
826 Mark locations as permanent, not the whole breakpoint.
827 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
828 (mark_breakpoints_out): Don't mark permanent breakpoints as
829 uninserted.
830 (breakpoint_init_inferior): Use mark_breakpoints_out.
831 (breakpoint_here_p): Adjust.
832 (bpstat_stop_status, describe_other_breakpoints): Remove handling
833 of permanent breakpoints.
834 (make_breakpoint_permanent): Mark each location as permanent,
835 instead of marking the breakpoint.
836 (add_location_to_breakpoint): If the location is permanent, mark
837 it as such, and as inserted.
838 (init_breakpoint_sal): Don't make the breakpoint permanent here.
839 (bp_location_compare, update_global_location_list): Adjust.
840 (update_breakpoint_locations): Don't make the breakpoint permanent
841 here.
842 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
843 breakpoints.
844 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
845 (struct bp_location) <permanent>: New field.
846 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
847 reference to bp_permanent.
848
ae9bb220
PA
8492014-11-12 Pedro Alves <palves@redhat.com>
850
851 * arch-utils.c (default_skip_permanent_breakpoint): New function.
852 * arch-utils.h (default_skip_permanent_breakpoint): New
853 declaration.
854 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
855 Install default_skip_permanent_breakpoint as default method.
856 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
857 (i386_gdbarch_init): Don't install it.
858 * infrun.c (resume): Assume there's always a
859 gdbarch_skip_permanent_breakpoint implementation.
860 * gdbarch.h, gdbarch.c: Regenerate.
861
015de688
DC
8622014-11-11 Daniel Colascione <dancol@dancol.org>
863
864 Warn about cross-PID-namespace debugging.
865 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
866 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
867 * linux-thread-db.c (check_pid_namespace_match): New function.
868 (thread_db_inferior_created): Call it.
869
26a84859
DE
8702014-11-10 Doug Evans <xdje42@gmail.com>
871
872 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
873 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
874
712a2e6d
DE
8752014-11-10 Doug Evans <xdje42@gmail.com>
876
877 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
878
af3768e9
DE
8792014-11-10 Doug Evans <xdje42@gmail.com>
880
881 PR symtab/17564
882 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
883 (lookup_static_symbol): Move definition to new location and rewrite.
884 (lookup_symbol_in_objfile): New function.
885 (lookup_symbol_global_iterator_cb): Call it.
886
b1f28d99
UW
8872014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
888
889 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
890
b7a084be
PA
8912014-11-07 Pedro Alves <palves@redhat.com>
892
893 * infrun.c (process_event_stop_test) <subroutine check>: Don't
894 check if we did a "nexti" inside a prologue.
895 * symtab.c (in_prologue): Delete function.
896 * symtab.h (in_prologue): Delete declaration.
897
67be31e5
DE
8982014-11-06 Doug Evans <xdje42@gmail.com>
899
900 * symtab.h (lookup_global_symbol): Improve function comment.
901
08724ab7
DE
9022014-11-06 Doug Evans <xdje42@gmail.com>
903
904 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
905 All callers updated.
906 * symtab.h (lookup_global_symbol): Update decl.
907 (lookup_static_symbol): Move decl to better location.
908
d9060ba6
DE
9092014-11-06 Doug Evans <xdje42@gmail.com>
910
911 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
912
74016e12
DE
9132014-11-06 Doug Evans <xdje42@gmail.com>
914
915 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
916 All callers updated.
917 (lookup_symbol_in_all_objfiles): Renamed from
918 lookup_symbol_aux_symtabs. All callers updated.
919 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
920 All callers updated.
921 (lookup_symbol_in_objfile_symtabs): Renamed from
922 lookup_symbol_aux_objfile. All callers updated.
923
d1a2d36d
DE
9242014-11-06 Doug Evans <xdje42@gmail.com>
925
926 * symtab.c (lookup_symbol_in_block): Renamed from
927 lookup_symbol_aux_block. All callers updated.
928
24d864bb
DE
9292014-11-06 Doug Evans <xdje42@gmail.com>
930
931 * symtab.c (lookup_static_symbol): Renamed from
932 lookup_static_symbol_aux. All callers updated.
933 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
934 All callers updated.
935
358d6ab3
DE
9362014-11-06 Doug Evans <xdje42@gmail.com>
937
938 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
939 * block.c (block_lookup_symbol): Use it.
940 * cp-support.c (make_symbol_overload_list_block): Use it.
941 * symtab.c (iterate_over_symbols): Use it.
942
16b2eaa1
DE
9432014-11-06 Doug Evans <xdje42@gmail.com>
944
945 * symtab.c (lookup_block_symbol): Moved to ...
946 * block.c (block_lookup_symbol): ... here and renamed.
947 All callers updated.
948 * block.h (block_lookup_symbol): Declare.
949 * symtab.h (lookup_block_symbol): Delete.
950
2dd2cd1c
DE
9512014-11-06 Doug Evans <xdje42@gmail.com>
952
953 * ada-lang.c (ada_make_symbol_completion_list): Use
954 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
955 * symtab.c (lookup_objfile_from_block): Ditto.
956
d4c58915
DE
9572014-11-06 Doug Evans <xdje42@gmail.com>
958
959 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
960 TYPE_CODE_STRUCT.
961
9c1877ea
DE
9622014-11-06 Doug Evans <xdje42@gmail.com>
963
964 * objfiles.c (get_objfile_arch): Constify.
965 * objfiles.h (get_objfile_arch): Update prototype.
966 * solib.c (solib_global_lookup): Fetch arch from objfile,
967 not target_gdbarch.
968
426a4079
SL
9692014-11-06 Sandra Loosemore <sandra@codesourcery.com>
970
971 * nios2-tdep.c (wild_insn): Delete.
972 (profiler_insn, irqentry_insn): Delete.
973 (nios2_match_sequence): Delete.
974 (nios2_analyze_prologue): Update comments. Remove matching
975 of obsolete profiler_insn and irqentry_insn sequences.
976
ee11262d
AM
9772014-11-05 Alan Modra <amodra@gmail.com>
978
979 * charset.c (convert_between_encodings): Shrink obstack using
980 obstack_blank_fast.
981 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
982 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
983 to char* before doing pointer arithmetic.
ee11262d 984
c87e6d00
SM
9852014-11-04 Simon Marchi <simon.marchi@ericsson.com>
986
987 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
988
441ef17f
PA
9892014-11-04 Pedro Alves <palves@redhat.com>
990
991 * breakpoint.c (breakpoint_thread_match): Delete function.
992 * breakpoint.h (breakpoint_thread_match): Delete declaration.
993
e0f52461
SC
9942014-11-03 Siva Chandra Reddy <sivachandra@google.com>
995
996 PR c++/17494
997 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
998 the method args also under EVAL_SKIP when evaluating method
999 calls under EVAL_SKIP.
1000
a0b4d890
YQ
10012014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1002
1003 * dwarf2loc.c (read_pieced_value): Do big endian
1004 processing only if gdb_regnum is not -1.
1005 (write_pieced_value): Ditto.
1006
10072014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1008
1009 * arm-linux-tdep.c (arm_linux_init_abi): Use
1010 info.byte_order_for_code to choose endianity of breakpoint
1011 instructions snippets.
1012
10132014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1014
1015 * arm-tdep.c (extract_arm_insn): Use
1016 gdbarch_byte_order_for_code to read arm instruction.
1017
e82149ff
DE
10182014-11-02 Doug Evans <xdje42@gmail.com>
1019
1020 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1021
d7ee84f1
DE
10222014-11-02 Doug Evans <xdje42@gmail.com>
1023
1024 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1025 main_subfile before returning.
1026
4f072d17
DE
10272014-10-31 Doug Evans <xdje42@gmail.com>
1028
1029 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1030 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1031
8301c89e
DE
10322014-10-31 Doug Evans <xdje42@gmail.com>
1033
1034 * valops.c (value_cast_pointers): Fix whitespace.
1035 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1036 Ditto.
1037
02be9a71
DE
10382014-10-30 Doug Evans <dje@google.com>
1039
1040 * NEWS: Mention ability add attributes to gdb.Objfile and
1041 gdb.Progspace objects.
1042 * python/py-objfile.c (objfile_object): New member dict.
1043 (objfpy_dealloc): Py_XDECREF dict.
1044 (objfpy_initialize): Initialize dict.
1045 (objfile_getset): Add __dict__.
1046 (objfile_object_type): Set tp_dictoffset member.
1047 * python/py-progspace.c (progspace_object): New member dict.
1048 (pspy_dealloc): Py_XDECREF dict.
1049 (pspy_initialize): Initialize dict.
1050 (pspace_getset): Add __dict__.
1051 (pspace_object_type): Set tp_dictoffset member.
1052
6427bef6
YQ
10532014-10-30 Yao Qi <yao@codesourcery.com>
1054
1055 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1056 replace '\\' with '\\\\'.
1057
f60325be
JB
10582014-10-29 Joel Brobecker <brobecker@adacore.com>
1059
1060 GDB 7.8.1 released.
1061
ab917dfb
PA
10622014-10-29 Pedro Alves <palves@redhat.com>
1063
1064 PR gdb/17408
1065 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1066 instead of assuming a thread with a stepping range is always
1067 stepping.
1068
d3d4baed
PA
10692014-10-29 Pedro Alves <palves@redhat.com>
1070
1071 PR python/17372
1072 * event-top.c (change_line_handler): Call
1073 gdb_rl_callback_handler_remove instead of
1074 rl_callback_handler_remove.
1075 (callback_handler_installed): New global.
1076 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1077 (gdb_rl_callback_handler_reinstall): New functions.
1078 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1079 gdb_rl_callback_handler_install instead of
1080 rl_callback_handler_remove and rl_callback_handler_install.
1081 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1082 instead of rl_callback_handler_remove.
1083 * event-top.h (gdb_rl_callback_handler_remove)
1084 (gdb_rl_callback_handler_install)
1085 (gdb_rl_callback_handler_reinstall): New declarations.
1086 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1087 cleanup function.
1088 (fetch_inferior_event): Install it.
1089 * top.c (gdb_readline_wrapper_line) Call
1090 gdb_rl_callback_handler_remove instead of
1091 rl_callback_handler_remove.
1092 (gdb_readline_wrapper_cleanup): Don't call
1093 rl_callback_handler_install.
1094
6e5d7f39
PA
10952014-10-29 Pedro Alves <palves@redhat.com>
1096
1097 * event-top.c (command_line_handler): Clear the first byte of
1098 linebuffer, when it is first allocated.
1099
551cb6a5
PA
11002014-10-29 Pedro Alves <palves@redhat.com>
1101
1102 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1103 TRY_CATCH.
1104
1e1e619b
PA
11052014-10-29 Pedro Alves <palves@redhat.com>
1106
1107 PR tui/16138
1108 PR tui/17519
1109 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1110 (tui_allowed_p): Delete function.
1111 * tui/tui.c: Include "interps.h".
1112 (tui_enable): Don't use tui_allowed_p. Error out here with
1113 detailed error messages if the TUI is the top level interpreter,
1114 or if output is not a terminal. Use newterm instead of initscr,
1115 and error out if initializing the terminal fails. Also error out if
1116 the terminal doesn't support cursor addressing.
1117 * tui/tui.h (tui_allowed_p): Delete declaration.
1118
6041179a
JB
11192014-10-29 Joel Brobecker <brobecker@adacore.com>
1120
1121 * arm-tdep.c (arm_skip_stack_protector): Return early if
1122 address loaded by first "ldr" instruction does not have
1123 a corresponding minimal symbol. Update comment.
1124
6ae274b7
YQ
11252014-10-29 Yao Qi <yao@codesourcery.com>
1126
1127 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1128 loaded address correctly of ldr instruction.
1129
7f5ef605
PA
11302014-10-28 Pedro Alves <palves@redhat.com>
1131
1132 PR gdb/12623
1133 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1134 field.
1135 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1136 thread's stepped_breakpoint field. Skip if reverse debugging.
1137 Add comment.
1138 (init_thread_stepping_state, handle_signal_stop): Clear the
1139 thread's stepped_breakpoint field.
1140
7d1a114c
PA
11412014-10-27 Pedro Alves <palves@redhat.com>
1142
1143 * remote.c (remote_thread_alive): New, factored out from ...
1144 (remote_thread_alive): ... this.
1145 (remote_update_thread_list): Bail out before deleting threads if
1146 the target returned an empty list, and, the current thread has a
1147 magic/fake ptid.
1148
e5f8a7cc
PA
11492014-10-27 Pedro Alves <palves@redhat.com>
1150
1151 * infrun.c (handle_signal_stop): Also skip handlers when a random
1152 signal arrives while handling a "stepi" or a "nexti". Set the
1153 thread's 'step_after_step_resume_breakpoint' flag.
1154
71e396f9
LM
11552014-10-27 Luis Machado <lgustavo@codesourcery.com>
1156
1157 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1158 (arm_record_ld_st_imm_offset): Reimplement to cover all
1159 load/store cases for ARM opcode 010.
1160 (arm_record_ld_st_multiple): Reimplement to cover all
1161 load/store cases for ARM opcode 100.
1162
3aee438b
DE
11632014-10-26 Doug Evans <xdje42@gmail.com>
1164
1165 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1166
f88cb4b6
DE
11672014-10-26 Doug Evans <xdje42@gmail.com>
1168
1169 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1170 parameter "kind" to "block_index".
1171 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1172 "block_index".
1173 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1174
a023a30f
DE
11752014-10-26 Doug Evans <xdje42@gmail.com>
1176
1177 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1178
4c35218e
DE
11792014-10-26 Doug Evans <xdje42@gmail.com>
1180
1181 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1182 obstack_alloc.
1183
f08e8df3
DE
11842014-10-26 Doug Evans <xdje42@gmail.com>
1185
1186 * parser-defs.h (block_found): Move decl from here ...
1187 * symtab.h (block_found): ... to here.
1188
cf901d3b
DE
11892014-10-26 Doug Evans <xdje42@gmail.com>
1190
1191 * symtab.h (struct field_of_this_result): Fix typo in comment.
1192 (lookup_symbol_in_language): Move function comment here.
1193 (lookup_symbol): Improve function comment.
1194 (basic_lookup_symbol_nonlocal): Ditto.
1195 (lookup_symbol_static, lookup_symbol_global): Ditto.
1196 (lookup_symbol_aux_block): Ditto.
1197 (lookup_language_this): Add function comment.
1198 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1199 function comment.
1200 (lookup_block_symbol): Improve function comment.
1201 (lookup_struct): Fix capitalization in function comment.
1202 (lookup_transparent_type): Add function comment.
1203 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1204 Improve function comment.
1205 (lookup_objfile_from_block): Add function comment.
1206 * symtab.c (lookup_symbol_in_language): Update function comment.
1207 (lookup_symbol, lookup_language_this): Ditto.
1208 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1209 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1210 (basic_lookup_symbol_nonlocal): Ditto.
1211 (lookup_symbol_static, lookup_symbol_global): Ditto.
1212 (lookup_transparent_type, lookup_block_symbol): Ditto.
1213
ff6c39cf
DE
12142014-10-25 Doug Evans <xdje42@gmail.com>
1215
1216 * symtab.c (types_info): Delete forward decl.
1217 (functions_info, variables_info, sources_info): Ditto.
1218 (_initialize_symtab): Rewrite forward decl to use
1219 initialize_file_ftype.
1220
ec201f0c
DE
12212014-10-25 Doug Evans <xdje42@gmail.com>
1222
1223 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1224
ca040673
DE
12252014-10-25 Doug Evans <xdje42@gmail.com>
1226
1227 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1228 of local var child_die.
1229
6f259a23
DB
12302014-10-24 Don Breazeal <donb@codesourcery.com>
1231
1232 * infrun.c (follow_fork_inferior): Update fork message printing
1233 to use target_terminal_ours_for_output instead of
1234 target_terminal_ours, to use _() for all format strings, to print
1235 "vfork" instead of "fork" for vforks, and to add a detach message.
1236 (handle_vfork_child_exec_or_exit): Update message printing to use
1237 target_terminal_ours_for_output instead of target_terminal_ours, to
1238 use _() for all format strings, and to fix some formatting.
1239
09dd9a69
PA
12402014-10-24 Pedro Alves <palves@redhat.com>
1241
1242 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1243 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1244 * config/vax/vax.mh: Delete.
1245 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1246 obsolete configurations section.
1247 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1248 * vax-nat.c: Delete file.
1249
5ab806de
PA
12502014-10-24 Pedro Alves <palves@redhat.com>
1251
1252 * NEWS (Removed targets): Add OS/arch column.
1253
3433cfa5
SC
12542014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1255
1256 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1257 on the arg type of a constructor only if it is of reference type.
1258
96ba4233
SL
12592014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1260
1261 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1262 accessors and constants from nios2 opcodes update.
1263 (nios2_get_next_pc): Likewise.
1264
28153fd3
DE
12652014-10-19 Doug Evans <xdje42@gmail.com>
1266
1267 * gdbthread.h (set_running): Fix comment.
1268 (set_executing, finish_thread_state): Fix comment.
1269
fc9b8e47
DE
12702014-10-18 Doug Evans <xdje42@gmail.com>
1271
1272 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1273
4ffbba72
DE
12742014-10-17 Doug Evans <dje@google.com>
1275
1276 * NEWS: Mention new event gdb.clear_objfiles.
1277 * python/py-event.h (emit_clear_objfiles_event): Clear
1278 * python/py-events.h (events_object): New member clear_objfiles.
1279 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1280 event.
1281 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1282 emit clear_objfiles event.
1283 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1284 function.
1285 (emit_clear_objfiles_event): New function.
1286 (clear_objfiles): New event.
1287 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1288 Declare.
1289 * python/python.c (_initialize_python): Call
1290 gdbpy_initialize_clear_objfiles_event.
1291
d096d8c1
DE
12922014-10-17 Doug Evans <dje@google.com>
1293
1294 * NEWS: Mention new gdb.Objfile.progspace attribute.
1295 * python/py-objfile.c (objfpy_get_progspace): New function.
1296 (objfile_getset): New entry for "progspace".
1297
6c4486e6
PA
12982014-10-17 Pedro Alves <palves@redhat.com>
1299
1300 PR gdb/17471
1301 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1302 returns a copy of the input.
1303 (run_command_1, continue_command, step_1, jump_command)
1304 (signal_command, until_command, advance_command, finish_command)
1305 (attach_command): Adjust and install a cleanup to free the
1306 stripped args.
1307
0ff33695
PA
13082014-10-17 Pedro Alves <palves@redhat.com>
1309
1310 PR gdb/17300
1311 * infcmd.c (continue_1): If continuing all threads in the
1312 foreground, make sure the inferior's terminal settings are put in
1313 effect.
1314
6fdebc3d
PA
13152014-10-17 Pedro Alves <palves@redhat.com>
1316
1317 PR gdb/17472
1318 * annotate.c (annotate_breakpoints_invalid): Use
1319 target_terminal_our_for_output instead of target_terminal_ours.
1320 Give back the terminal to the target.
1321 (annotate_frames_invalid): Likewise.
1322
5842f62a
PA
13232014-10-17 Pedro Alves <palves@redhat.com>
1324
1325 * target.c (enum terminal_state): New enum.
1326 (terminal_state): New global.
1327 (target_terminal_init): New function.
1328 (target_terminal_inferior): Skip if inferior already owns the
1329 terminal.
1330 (target_terminal_ours, target_terminal_ours_for_output): New
1331 functions.
1332 * target.h (target_terminal_init): Convert to function prototype.
1333 (target_terminal_ours_for_output): Convert to function prototype
1334 and tweak comment.
1335 (target_terminal_ours): Convert to function prototype and tweak
1336 comment.
1337 * windows-nat.c (do_initial_windows_stuff): Call
1338 target_terminal_init instead of child_terminal_init_with_pgrp.
1339
32a8097b
PA
13402014-10-17 Pedro Alves <palves@redhat.com>
1341
1342 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1343 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1344 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1345 solib-osf.c.
1346 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1347 * ada-lang.h [__alpha__ && __osf__]
1348 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1349 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1350 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1351 GDB_OSABI_OSF1.
1352 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1353 files.
1354 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1355 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1356 * configure: Regenerate.
1357 * configure.ac: Remove references to osf.
1358 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1359 section. Remove all other references to osf.
1360 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1361 Remove all other references to osf.
1362 * dec-thread.c: Delete file.
1363 * defs.h (GDB_OSABI_OSF1): Delete.
1364 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1365 defined.
1366 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1367 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1368 Delete code.
1369 (unconditionally_kill_inferior)
1370 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1371 * solib-osf.c: Delete file.
1372
80134cf5
PA
13732014-10-17 Pedro Alves <palves@redhat.com>
1374
1375 * remote.c (clear_threads_listing_context): Move higher up, out of
1376 the HAVE_LIBEXPAT guard.
1377
89c7137f
TG
13782014-10-16 Tristan Gingold <gingold@adacore.com>
1379
1380 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1381 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1382 on amd64.
1383
44ee4a52
PA
13842014-10-15 Pedro Alves <palves@redhat.com>
1385
1386 * dec-thread.c (dec_thread_count_gdb_threads)
1387 (dec_thread_add_gdb_thread): Delete.
1388 (dec_thread_update_thread_list): Delete.
1389 (dec_thread_find_new_threads): Rename to ...
1390 (dec_thread_update_thread_list): ... this. Delete GDB-size
1391 threads that are no longer found in dec_thread_list.
1392 (resync_thread_list): Delete.
1393 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1394 resync_thread_list.
1395
ab970af1
PA
13962014-10-15 Pedro Alves <palves@redhat.com>
1397
1398 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1399 * remote.c (remote_update_thread_list): Skip calling prune_threads
1400 if any thread listing method is supported, and instead walk over
1401 the set of remote threads listed, deleting those that are not
1402 found in GDB's thread list.
1403
e8032dde
PA
14042014-10-15 Pedro Alves <palves@redhat.com>
1405
1406 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1407 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1408 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1409 (bsd_uthread_target): Adjust.
1410 * corelow.c (core_open): Adjust.
1411 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1412 (dec_thread_update_thread_list): New function.
1413 (init_dec_thread_ops): Adjust.
1414 * gdbthread.h (prune_threads): New declaration.
1415 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1416 (thread_db_update_thread_list): ... this. Call prune_threads.
1417 (init_thread_db_ops): Adjust.
1418 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1419 (procfs_update_thread_list): ... this. Call prune_threads.
1420 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1421 Adjust.
1422 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1423 (obsd_update_thread_list): ... this. Call prune_threads.
1424 (obsd_add_target): Adjust.
1425 * procfs.c (procfs_target): Adjust.
1426 (procfs_notice_thread): Update comment.
1427 (procfs_find_new_threads): Rename to ...
1428 (procfs_update_thread_list): ... this. Call prune_threads.
1429 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1430 comment.
1431 (ravenscar_wait): Adjust.
1432 (ravenscar_find_new_threads): Rename to ...
1433 (ravenscar_update_thread_list): ... this. Call prune_threads.
1434 (init_ravenscar_thread_ops): Adjust.
1435 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1436 (record_btrace_update_thread_list): ... this. Adjust comment.
1437 (init_record_btrace_ops): Adjust.
1438 * remote.c (remote_threads_info): Rename to ...
1439 (remote_update_thread_list): ... this. Call prune_threads.
1440 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1441 Adjust.
1442 * sol-thread.c (check_for_thread_db): Adjust.
1443 (sol_find_new_threads_callback): Rename to ...
1444 (sol_update_thread_list_callback): ... this.
1445 (sol_find_new_threads): Rename to ...
1446 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1447 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1448 * target-delegates.c: Regenerate.
1449 * target.c (target_find_new_threads): Rename to ...
1450 (target_update_thread_list): ... this.
1451 * target.h (struct target_ops): Rename to_find_new_threads field
1452 to to_update_thread_list.
1453 (target_find_new_threads): Rename to ...
1454 (target_update_thread_list): ... this.
1455 * thread.c (prune_threads): Make extern.
1456 (update_thread_list): Adjust.
1457
6dc54d91
PA
14582014-10-15 Pedro Alves <palves@redhat.com>
1459
1460 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1461 Add describing comment. Return -1 if the qL packet is not
1462 supported.
1463 (struct thread_item, thread_item_t): Move higher up in
1464 the file. Add comments.
1465 (struct threads_parsing_context): Move higher up in
1466 the file, add comments, and remote to ...
1467 (struct threads_listing_context): ... this.
1468 (remote_newthread_step): Don't add the thread to GDB's thread
1469 database here. Instead push it to the thread_listing_context
1470 list.
1471 (remote_find_new_threads): Rename to ...
1472 (remote_get_threads_with_ql): ... this. Add target_ops and
1473 targets_listing_context parameters. Pass down context.
1474 (start_thread): Adjust.
1475 (clear_threads_parsing_context): Rename to ...
1476 (clear_threads_listing_context): ... this.
1477 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1478 remote_threads_info.
1479 (remote_get_threads_with_qthreadinfo): Ditto.
1480 (remote_threads_info): Reimplement.
1481
36728e82
PA
14822014-10-15 Pedro Alves <palves@redhat.com>
1483
1484 * infrun.c (resume): Don't force displaced-stepping for all
1485 single-steps on software single-stepping archs.
1486
34b7e8a6
PA
14872014-10-15 Pedro Alves <palves@redhat.com>
1488
1489 * breakpoint.c (single_step_breakpoints): Delete global.
1490 (insert_single_step_breakpoint): Adjust to store the breakpoint
1491 pointer in the current thread.
1492 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1493 (cancel_single_step_breakpoints): Delete functions.
1494 (breakpoint_has_location_inserted_here): Make extern.
1495 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1496 breakpoint list.
1497 * breakpoint.h (breakpoint_has_location_inserted_here): New
1498 declaration.
1499 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1500 (cancel_single_step_breakpoints): Remove declarations.
1501 * gdbthread.h (struct thread_control_state)
1502 <single_step_breakpoints>: New field.
1503 (delete_single_step_breakpoints)
1504 (thread_has_single_step_breakpoints_set)
1505 (thread_has_single_step_breakpoint_here): New declarations.
1506 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1507 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1508 (singlestep_pc): Delete globals.
1509 (infrun_thread_ptid_changed): Remove references to removed
1510 globals.
1511 (resume_cleanups): Delete the current thread's single-step
1512 breakpoints.
1513 (maybe_software_singlestep): Remove references to removed globals.
1514 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1515 delete_single_step_breakpoints.
1516 (init_wait_for_inferior): Remove references to removed globals.
1517 (delete_thread_infrun_breakpoints): Delete the thread's
1518 single-step breakpoints too.
1519 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1520 single-step breakpoints here.
1521 (delete_stopped_threads_single_step_breakpoints): New function.
1522 (adjust_pc_after_break): Adjust to use
1523 thread_has_single_step_breakpoints_set.
1524 (handle_inferior_event): Remove references to removed globals.
1525 Use delete_stopped_threads_single_step_breakpoints.
1526 (handle_signal_stop): Adjust to per-thread single-step
1527 breakpoints. Swap test order to do cheaper tests first.
1528 (switch_back_to_stepped_thread): Extend debug output. Remove
1529 references to removed globals.
1530 * record-full.c (record_full_wait_1): Adjust to per-thread
1531 single-step breakpoints.
1532 * thread.c (delete_single_step_breakpoints)
1533 (thread_has_single_step_breakpoints_set)
1534 (thread_has_single_step_breakpoint_here): New functions.
1535 (clear_thread_inferior_resources): Also delete the thread's
1536 single-step breakpoints.
1537
5b834a0a
PA
15382014-10-15 Pedro Alves <palves@redhat.com>
1539
1540 * thread.c (delete_thread_breakpoint): New function.
1541 (delete_step_resume_breakpoint)
1542 (delete_exception_resume_breakpoint): Use it.
1543 (delete_at_next_stop): New function.
1544 (clear_thread_inferior_resources): Use delete_at_next_stop.
1545
a1fd2fa5
PA
15462014-10-15 Pedro Alves <palves@redhat.com>
1547
1548 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1549 (breakpoint_inserted_here_p): ... here. Remove special case for
1550 software single-step breakpoints.
1551 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1552 (software_breakpoint_inserted_here_p): ... here. Remove special
1553 case for software single-step breakpoints.
1554 (bp_target_info_copy_insertion_state)
1555 (deprecated_insert_raw_breakpoint)
1556 (deprecated_remove_raw_breakpoint): Delete functions.
1557 * breakpoint.h (deprecated_insert_raw_breakpoint)
1558 (deprecated_remove_raw_breakpoint): Remove declarations.
1559
7c16b83e
PA
15602014-10-15 Pedro Alves <palves@redhat.com>
1561
1562 PR breakpoints/9649
1563 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1564 Delete array globals.
1565 (single_step_breakpoints): New global.
1566 (breakpoint_xfer_memory): Remove special handling for single-step
1567 breakpoints.
1568 (update_breakpoints_after_exec): Delete bp_single_step
1569 breakpoints.
1570 (detach_breakpoints): Remove special handling for single-step
1571 breakpoints.
1572 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1573 (bpstat_stop_status): Add comment.
1574 (bpstat_what, bptype_string, print_one_breakpoint_location)
1575 (adjust_breakpoint_address, init_bp_location): Handle
1576 bp_single_step.
1577 (new_single_step_breakpoint): New function.
1578 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1579 handling for single-step breakpoints.
1580 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1581 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1582 Rewrite.
1583 (detach_single_step_breakpoints, find_single_step_breakpoint):
1584 Delete functions.
1585 (breakpoint_has_location_inserted_here): New function.
1586 (single_step_breakpoint_inserted_here_p): Rewrite.
1587 * breakpoint.h: Remove FIXME.
1588 (enum bptype) <bp_single_step>: New enum value.
1589 (insert_single_step_breakpoint): Update comment.
1590 * infrun.c (resume_cleanups)
1591 (delete_step_thread_step_resume_breakpoint): Remove single-step
1592 breakpoints.
1593 (fetch_inferior_event): Install a cleanup that removes infrun
1594 breakpoints.
1595 (switch_back_to_stepped_thread) <expect thread advanced also>:
1596 Clear step-over info.
1597
0cbcdb96
PA
15982014-10-15 Pedro Alves <palves@redhat.com>
1599
1600 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1601 (delete_thread_infrun_breakpoints): New function, with parts
1602 salvaged from delete_step_resume_breakpoint_callback.
1603 (delete_step_thread_step_resume_breakpoint): Delete.
1604 (for_each_just_stopped_thread_callback_func): New typedef.
1605 (for_each_just_stopped_thread): New function.
1606 (delete_just_stopped_threads_infrun_breakpoints): New function.
1607 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1608 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1609 ... this. Adjust.
1610 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1611
963f9c80
PA
16122014-10-15 Pedro Alves <palves@redhat.com>
1613
1614 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1615 trying to step past a non-steppable watchpoint.
1616 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1617 field.
1618 * infrun.c (struct step_over_info): Add new field
1619 'nonsteppable_watchpoint_p' and adjust comments.
1620 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1621 Adjust.
1622 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1623 (stepping_past_nonsteppable_watchpoint): New function.
1624 (step_over_info_valid_p): Also return true if stepping past a
1625 nonsteppable watchpoint.
1626 (proceed): Adjust call to set_step_over_info. Remove reference to
1627 init_infwait_state.
1628 (init_wait_for_inferior): Remove reference to init_infwait_state.
1629 (waiton_ptid): Delete global.
1630 (struct execution_control_state)
1631 <stepped_after_stopped_by_watchpoint>: Delete field.
1632 (wait_for_inferior, fetch_inferior_event): Always pass
1633 minus_one_ptid to target_wait.
1634 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1635 field.
1636 (init_infwait_state): Delete function.
1637 (handle_inferior_event): Remove infwait_state handling.
1638 (handle_signal_stop) <watchpoints handling>: Adjust after
1639 stepped_after_stopped_by_watchpoint removal. Don't remove
1640 breakpoints here nor set infwait_state. Set the thread's
1641 stepping_over_watchpoint flag, and call keep_going instead.
1642 (keep_going): Handle stepping_over_watchpoint. Adjust
1643 set_step_over_info calls.
1644 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1645 function.
1646
6cc83d2a
PA
16472014-10-15 Pedro Alves <palves@redhat.com>
1648
1649 * infrun.c (step_over_info_valid_p): New function.
1650 (resume): Use step_over_info_valid_p instead of checking the
1651 threads's trap_expected flag.
1652
6979730b
DE
16532014-10-15 Doug Evans <dje@google.com>
1654 Walfred Tedeschi <walfred.tedeschi@intel.com>
1655
1656 PR python/17364
1657 * python/lib/gdb/__init__.py (packages): Add "printer".
1658 * python/lib/gdb/command/bound_registers.py: Moved to ...
1659 * python/lib/gdb/printer/bound_registers.py: ... here.
1660 Add printer to global set of builtin printers. Rename printer from
1661 "bound" to "mpx_bound128".
1662 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1663 registered as global "builtin" printer.
1664 (add_builtin_pretty_printer): New function.
1665 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1666 gdb/printer/__init__.py.
1667
35a49624
IB
16682014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1669
1670 * Makefile.in (SFILES): Remove d-support.c.
1671 (COMMON_OBS): Remove d-support.o.
1672 * d-lang.h (d_parse_symbol): Remove declaration.
1673 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1674 * d-support.c: Remove file.
1675
8fa0c4f8
AA
16762014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1677
1678 * gdb/infrun.c (process_event_stop_test): Apply
1679 gdbarch_addr_bits_remove to longjmp resume address.
1680
3666da81
PA
16812014-10-15 Pedro Alves <palves@redhat.com>
1682
1683 * regformats/microblaze.dat: Delete file.
1684
449aa9df
AKA
16852014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1686
1687 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1688 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1689
ebb8ece2
SC
16902014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1691
1692 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1693 as non-trivial.
1694
82c48ac7
SC
16952014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1696
1697 PR c++/13403
1698 PR c++/15154
1699 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1700 with qualified args.
1701
c40cc657
JB
17022014-10-14 Joel Brobecker <brobecker@adacore.com>
1703
1704 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1705 of the case where the second operand is a pointer.
1706 <BINOP_SUB>: Likewise.
1707
0ea5cda8
SDJ
17082014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1709
1710 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1711 only if it is not NULL.
1712 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1713 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1714 (struct probe_ops) <clear_semaphore>: Likewise.
1715 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1716 not NULL.
1717 (stop_tracing): Likewise, for clear_semaphore.
1718
f7088df3
SDJ
17192014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1720
1721 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1722 using language_c, instead of current_language.
1723
4e1bbde0
DE
17242014-10-13 Doug Evans <dje@google.com>
1725
6ff5a0f6 1726 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1727 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1728 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1729 (pspy_new, pspace_to_pspace_object): Call it.
1730
c780cc2f
JK
17312014-10-13 Miroslav Franc <mfranc@redhat.com>
1732 Jan Kratochvil <jan.kratochvil@redhat.com>
1733
1734 Fix "save breakpoints" for "catch" command.
1735 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1736 newline.
1737
99894e11
JK
17382014-10-12 Miroslav Franc <mfranc@redhat.com>
1739
1740 Fix "save breakpoints" for "disable $bpnum" command.
1741 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1742
3831839c
PA
17432014-10-10 Pedro Alves <palves@redhat.com>
1744
1745 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1746 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1747 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1748 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1749 and been removed.
1750 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1751 * configure.ac: Remove references to IRIX.
1752 * configure.host: Add *-*-irix* to the obsolete hosts section.
1753 Remove all other references to irix.
1754 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1755 Delete files.
1756
cc3afae2
AKA
17572014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1758
1759 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1760 isn't valid, release the tdesc arch data and return NULL.
1761
cdfa0b0a
PA
17622014-10-10 Pedro Alves <palves@redhat.com>
1763
1764 * linux-tdep.c: Include observer.h.
1765 (linux_inferior_data): New global.
1766 (struct linux_info): New structure.
1767 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1768 (get_linux_inferior_data): New functions.
1769 (linux_vsyscall_range): Rename to ...
1770 (linux_vsyscall_range_raw): ... this.
1771 (linux_vsyscall_range): New function; handles caching.
1772 (_initialize_linux_tdep): Register linux_inferior_data. Install
1773 inferior_exit and inferior_appeared observers.
1774
8b9a549d
PA
17752014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 Pedro Alves <palves@redhat.com>
1777
1778 PR symtab/14466
1779 * solib-svr4.c (svr4_read_so_list): Rename to ...
1780 (svr4_current_sos_1): ... this and change the function comment.
1781 (svr4_current_sos): New function.
1782
3437254d
PA
17832014-10-10 Pedro Alves <palves@redhat.com>
1784
1785 * arch-utils.c (default_vsyscall_range): New function.
1786 * arch-utils.h (default_vsyscall_range): New declaration.
1787 * gdbarch.sh (vsyscall_range): New hook.
1788 * gdbarch.h, gdbarch.c: Regenerate.
1789 * linux-tdep.c (linux_vsyscall_range): New function.
1790 (linux_init_abi): Install linux_vsyscall_range as
1791 vsyscall_range gdbarch hook.
1792 * memrange.c (address_in_mem_range): New function.
1793 * memrange.h (address_in_mem_range): New declaration.
1794 * symfile-mem.c (find_vdso_size): Delete function.
1795 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1796
31cc0b80
PA
17972014-10-10 Pedro Alves <palves@redhat.com>
1798
1799 * infrun.c (normal_stop): Fix typo in comment.
1800
3e3286a2
SDJ
18012014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1802
1803 PR tdep/9390
1804 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1805 typo when using logical AND to determine instruction type.
1806
fcbdedf8
YQ
18072014-10-09 Yao Qi <yao@codesourcery.com>
1808
1809 * infrun.c (handle_signal_stop): Remove local variable
1810 'printed'.
1811
db984616
SS
18122014-10-08 Stan Shebs <stan@codesourcery.com>
1813
1814 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1815
3ba37e6c
GB
18162014-10-08 Gary Benson <gbenson@redhat.com>
1817
1818 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1819
a442d071
GB
18202014-10-08 Gary Benson <gbenson@redhat.com>
1821
1822 * common/common-defs.h: Include common-exceptions.h.
1823 * exceptions.h: Do not include common-exceptions.h.
1824
6f1947e8
GB
18252014-10-08 Gary Benson <gbenson@redhat.com>
1826
1827 * common/common-defs.h: Include cleanups.h.
1828 * common/common-exceptions.c: Do not include cleanups.h.
1829 * utils.h: Likewise.
1830
c765fdb9
GB
18312014-10-08 Gary Benson <gbenson@redhat.com>
1832
1833 * ada-lang.c: Do not include exceptions.h.
1834 * ada-valprint.c: Likewise.
1835 * amd64-tdep.c: Likewise.
1836 * auto-load.c: Likewise.
1837 * block.c: Likewise.
1838 * break-catch-throw.c: Likewise.
1839 * breakpoint.c: Likewise.
1840 * btrace.c: Likewise.
1841 * c-lang.c: Likewise.
1842 * cli/cli-cmds.c: Likewise.
1843 * cli/cli-interp.c: Likewise.
1844 * cli/cli-script.c: Likewise.
1845 * completer.c: Likewise.
1846 * corefile.c: Likewise.
1847 * corelow.c: Likewise.
1848 * cp-abi.c: Likewise.
1849 * cp-support.c: Likewise.
1850 * cp-valprint.c: Likewise.
1851 * darwin-nat.c: Likewise.
1852 * dwarf2-frame-tailcall.c: Likewise.
1853 * dwarf2-frame.c: Likewise.
1854 * dwarf2loc.c: Likewise.
1855 * dwarf2read.c: Likewise.
1856 * eval.c: Likewise.
1857 * event-loop.c: Likewise.
1858 * event-top.c: Likewise.
1859 * f-valprint.c: Likewise.
1860 * frame-unwind.c: Likewise.
1861 * frame.c: Likewise.
1862 * gdbtypes.c: Likewise.
1863 * gnu-v2-abi.c: Likewise.
1864 * gnu-v3-abi.c: Likewise.
1865 * guile/scm-auto-load.c: Likewise.
1866 * guile/scm-breakpoint.c: Likewise.
1867 * guile/scm-cmd.c: Likewise.
1868 * guile/scm-frame.c: Likewise.
1869 * guile/scm-lazy-string.c: Likewise.
1870 * guile/scm-param.c: Likewise.
1871 * guile/scm-symbol.c: Likewise.
1872 * guile/scm-type.c: Likewise.
1873 * hppa-hpux-tdep.c: Likewise.
1874 * i386-tdep.c: Likewise.
1875 * inf-loop.c: Likewise.
1876 * infcall.c: Likewise.
1877 * infcmd.c: Likewise.
1878 * infrun.c: Likewise.
1879 * interps.c: Likewise.
1880 * interps.h: Likewise.
1881 * jit.c: Likewise.
1882 * linespec.c: Likewise.
1883 * linux-nat.c: Likewise.
1884 * linux-thread-db.c: Likewise.
1885 * m32r-rom.c: Likewise.
1886 * main.c: Likewise.
1887 * memory-map.c: Likewise.
1888 * mi/mi-cmd-break.c: Likewise.
1889 * mi/mi-cmd-stack.c: Likewise.
1890 * mi/mi-interp.c: Likewise.
1891 * mi/mi-main.c: Likewise.
1892 * monitor.c: Likewise.
1893 * nto-procfs.c: Likewise.
1894 * objc-lang.c: Likewise.
1895 * p-valprint.c: Likewise.
1896 * parse.c: Likewise.
1897 * ppc-linux-tdep.c: Likewise.
1898 * printcmd.c: Likewise.
1899 * probe.c: Likewise.
1900 * python/py-auto-load.c: Likewise.
1901 * python/py-breakpoint.c: Likewise.
1902 * python/py-cmd.c: Likewise.
1903 * python/py-finishbreakpoint.c: Likewise.
1904 * python/py-frame.c: Likewise.
1905 * python/py-framefilter.c: Likewise.
1906 * python/py-function.c: Likewise.
1907 * python/py-gdb-readline.c: Likewise.
1908 * python/py-inferior.c: Likewise.
1909 * python/py-infthread.c: Likewise.
1910 * python/py-lazy-string.c: Likewise.
1911 * python/py-linetable.c: Likewise.
1912 * python/py-param.c: Likewise.
1913 * python/py-prettyprint.c: Likewise.
1914 * python/py-symbol.c: Likewise.
1915 * python/py-type.c: Likewise.
1916 * python/py-value.c: Likewise.
1917 * python/python-internal.h: Likewise.
1918 * python/python.c: Likewise.
1919 * record-btrace.c: Likewise.
1920 * record-full.c: Likewise.
1921 * regcache.c: Likewise.
1922 * remote-fileio.c: Likewise.
1923 * remote-mips.c: Likewise.
1924 * remote.c: Likewise.
1925 * rs6000-aix-tdep.c: Likewise.
1926 * rs6000-nat.c: Likewise.
1927 * skip.c: Likewise.
1928 * solib-darwin.c: Likewise.
1929 * solib-dsbt.c: Likewise.
1930 * solib-frv.c: Likewise.
1931 * solib-ia64-hpux.c: Likewise.
1932 * solib-spu.c: Likewise.
1933 * solib-svr4.c: Likewise.
1934 * solib.c: Likewise.
1935 * spu-tdep.c: Likewise.
1936 * stack.c: Likewise.
1937 * stap-probe.c: Likewise.
1938 * symfile-mem.c: Likewise.
1939 * symmisc.c: Likewise.
1940 * target.c: Likewise.
1941 * thread.c: Likewise.
1942 * top.c: Likewise.
1943 * tracepoint.c: Likewise.
1944 * tui/tui-interp.c: Likewise.
1945 * typeprint.c: Likewise.
1946 * utils.c: Likewise.
1947 * valarith.c: Likewise.
1948 * valops.c: Likewise.
1949 * valprint.c: Likewise.
1950 * value.c: Likewise.
1951 * varobj.c: Likewise.
1952 * windows-nat.c: Likewise.
1953 * xml-support.c: Likewise.
1954
484933d1
MR
19552014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1956
1957 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1958 name implies.
1959 (extended_mips16_next_pc): Update accordingly.
1960
ab50adb6
MR
19612014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1962
1963 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1964 function.
1965 (micromips_instruction_is_compact_branch): Likewise.
1966 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1967 or a compact jump, reaching a jump delay slot, or seeing a
1968 second non-prologue instruction.
1969 (micromips_scan_prologue): Also terminate scanning upon seeing a
1970 compact branch or jump, or reaching a branch or jump delay slot.
1971 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1972 or jump delay slot, or seeing a second non-prologue instruction.
1973 (mips32_instruction_has_delay_slot): Retain instruction
1974 examination code only, update arguments accordingly and move
1975 instruction fetch pieces to...
1976 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1977 (micromips_instruction_has_delay_slot): Likewise and to...
1978 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1979 (mips16_instruction_has_delay_slot): Likewise and to...
1980 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1981 (mips_single_step_through_delay): Update accordingly.
1982 (mips_adjust_breakpoint_address): Likewise.
1983
ae790652
MR
19842014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1985
1986 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1987 !mustbe32 also return 1 for 32-bit instructions.
1988 (mips16_instruction_has_delay_slot): Likewise. Add an
1989 explanatory comment.
1990
9b807e7b
MR
19912014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1992
1993 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1994 symbols special.
1995
0d5ed153
MR
19962014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1997
1998 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1999 update comments.
2000 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2001 for the breakpoint's address. Don't preinitialize `placed_size'.
2002 (insert_bp_location): Set `reqstd_address' rather than
2003 `placed_address'.
2004 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2005 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2006 address.
2007 (bkpt_remove_location): Likewise.
2008 (deprecated_insert_raw_breakpoint): Likewise.
2009 (deprecated_remove_raw_breakpoint): Likewise.
2010 (find_single_step_breakpoint): Likewise.
2011 * mem-break.c (default_memory_insert_breakpoint): Use
2012 `reqstd_address' for the breakpoint's address. Don't set
2013 `placed_address' or `placed_size' if breakpoint contents couldn't
2014 have been determined.
2015 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2016 the breakpoint's address.
2017 (remote_insert_hw_breakpoint): Likewise. Don't set
2018 `placed_address' or `placed_size' if breakpoint couldn't have been
2019 set.
2020 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2021 `reqstd_address' for the breakpoint's address.
2022 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2023 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2024 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2025 * microblaze-linux-tdep.c
2026 (microblaze_linux_memory_remove_breakpoint): Likewise.
2027 * monitor.c (monitor_insert_breakpoint): Likewise.
2028 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2029 (procfs_insert_hw_breakpoint): Likewise.
2030 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2031 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2032 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2033 * remote-mips.c (mips_insert_breakpoint): Likewise.
2034 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2035
3e871532
LM
20362014-10-03 Luis Machado <lgustavo@codesourcery.com>
2037
2038 * valops.c (value_assign): Check for bit field assignments
2039 before calling architecture-specific register value
2040 conversion functions.
2041
ec48dc8b
PM
20422014-10-03 Pierre Muller <muller@sourceware.org>
2043
2044 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2045
b57bacec
PA
20462014-10-02 Pedro Alves <palves@redhat.com>
2047
2048 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2049 threads_are_executing.
2050 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2051 describing comment.
2052 * gdbthread.h (threads_are_executing): Declare.
2053 (handle_signal_stop) <random signals>: Don't print about the
2054 signal here if stopping.
2055 (end_stepping_range): Don't notify observers here.
2056 (normal_stop): Update the thread list. If stopped by a random
2057 signal or a stepping range ended, notify observers.
2058 * thread.c (threads_executing): New global.
2059 (init_thread_list): Clear 'threads_executing'.
2060 (set_executing): Set or clear 'threads_executing'.
2061 (threads_are_executing): New function.
2062 (update_threads_executing): New function.
2063 (update_thread_list): Use it.
2064
13fd3ff3
PA
20652014-10-02 Pedro Alves <palves@redhat.com>
2066
2067 PR breakpoints/17431
2068 * breakpoint.c (update_breakpoints_after_exec): Don't create
2069 overlay, longjmp, std terminate nor exception breakpoints here.
2070
32990ada
PA
20712014-10-02 Pedro Alves <palves@redhat.com>
2072
2073 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2074 Adjust comments.
2075 * inferior.c (find_inferior_for_program_space): Give preference to
2076 the current inferior.
2077 * inferior.h (find_inferior_for_program_space): Update comment.
2078 * progspace.c (switch_to_program_space_and_thread): Prefer the
2079 current inferior if it's bound to the program space requested. If
2080 the inferior found doesn't have a PID yet, don't bother looking up
2081 a thread.
2082 * progspace.h (switch_to_program_space_and_thread): Adjust
2083 comment.
2084 * thread.c (any_thread_of_process, any_live_thread_of_process):
2085 Give preference to the current thread.
2086
0fec99e8
PA
20872014-10-01 Pedro Alves <palves@redhat.com>
2088
2089 * breakpoint.c (insert_bp_location): Error out if inserting a
2090 software breakpoint at a read-only address.
2091 * target.c (memory_xfer_check_region): New function, factored out
2092 from ...
2093 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2094 ULONGEST.
2095 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2096 against the memory region attributes.
2097
2ddf4301
SM
20982014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2099
2100 * NEWS: Announce new exit-code field in -list-thread-groups
2101 output.
2102 * inferior.c (exit_inferior_1): Don't clear exit code.
2103 (inferior_appeared): Clear exit code.
2104 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2105 code.
2106
5fdeec1d
PA
21072014-10-01 Pedro Alves <palves@redhat.com>
2108
2109 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2110 GENERATED" along with emacs/vi read-only markers.
2111 * regformats/aarch64.dat: Regenerate.
2112 * regformats/arm-with-iwmmxt.dat: Regenerate.
2113 * regformats/arm-with-neon.dat: Regenerate.
2114 * regformats/arm-with-vfpv2.dat: Regenerate.
2115 * regformats/arm-with-vfpv3.dat: Regenerate.
2116 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2117 * regformats/i386/amd64-avx.dat: Regenerate.
2118 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2119 * regformats/i386/amd64-avx512.dat: Regenerate.
2120 * regformats/i386/amd64-linux.dat: Regenerate.
2121 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2122 * regformats/i386/amd64-mpx.dat: Regenerate.
2123 * regformats/i386/amd64.dat: Regenerate.
2124 * regformats/i386/i386-avx-linux.dat: Regenerate.
2125 * regformats/i386/i386-avx.dat: Regenerate.
2126 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2127 * regformats/i386/i386-avx512.dat: Regenerate.
2128 * regformats/i386/i386-linux.dat: Regenerate.
2129 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2130 * regformats/i386/i386-mmx.dat: Regenerate.
2131 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2132 * regformats/i386/i386-mpx.dat: Regenerate.
2133 * regformats/i386/i386.dat: Regenerate.
2134 * regformats/i386/x32-avx-linux.dat: Regenerate.
2135 * regformats/i386/x32-avx.dat: Regenerate.
2136 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2137 * regformats/i386/x32-avx512.dat: Regenerate.
2138 * regformats/i386/x32-linux.dat: Regenerate.
2139 * regformats/i386/x32.dat: Regenerate.
2140 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2141 * regformats/mips-dsp-linux.dat: Regenerate.
2142 * regformats/mips-linux.dat: Regenerate.
2143 * regformats/mips64-dsp-linux.dat: Regenerate.
2144 * regformats/mips64-linux.dat: Regenerate.
2145 * regformats/nios2-linux.dat: Regenerate.
2146 * regformats/rs6000/powerpc-32.dat: Regenerate.
2147 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2148 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2149 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2150 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2151 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2152 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2153 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2154 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2155 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2156 * regformats/s390-linux32.dat: Regenerate.
2157 * regformats/s390-linux32v1.dat: Regenerate.
2158 * regformats/s390-linux32v2.dat: Regenerate.
2159 * regformats/s390-linux64.dat: Regenerate.
2160 * regformats/s390-linux64v1.dat: Regenerate.
2161 * regformats/s390-linux64v2.dat: Regenerate.
2162 * regformats/s390-te-linux64.dat: Regenerate.
2163 * regformats/s390x-linux64.dat: Regenerate.
2164 * regformats/s390x-linux64v1.dat: Regenerate.
2165 * regformats/s390x-linux64v2.dat: Regenerate.
2166 * regformats/s390x-te-linux64.dat: Regenerate.
2167 * regformats/tic6x-c62x-linux.dat: Regenerate.
2168 * regformats/tic6x-c62x.dat: Regenerate.
2169 * regformats/tic6x-c64x-linux.dat: Regenerate.
2170 * regformats/tic6x-c64x.dat: Regenerate.
2171 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2172 * regformats/tic6x-c64xp.dat: Regenerate.
2173
db74e4ba
PA
21742014-10-01 Pedro Alves <palves@redhat.com>
2175
2176 * features/Makefile: Update comments.
2177 (XMLTOC): List all xml files we build C files from.
2178 (clean-cfiles): New rule.
2179
d63f2f84
PA
21802014-10-01 Pedro Alves <palves@redhat.com>
2181
2182 * features/i386/amd64-avx512-linux.c: Regenerate.
2183 * features/i386/amd64-avx512.c: Regenerate.
2184 * features/i386/x32-avx512-linux.c: Regenerate.
2185 * features/i386/x32-avx512.c: Regenerate.
2186
20ad026d
PA
21872014-10-01 Pedro Alves <palves@redhat.com>
2188
2189 * features/Makefile (WHICH): Remove arm-with-m,
2190 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2191
acc9fe45
PA
21922014-10-01 Pedro Alves <palves@redhat.com>
2193
2194 * features/Makefile (clean): New rule.
2195
e001e535
PA
21962014-10-01 Pedro Alves <palves@redhat.com>
2197
2198 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2199 (zmm14h): Add missing end quotes.
2200
bdc14417
PA
22012014-10-01 Pedro Alves <palves@redhat.com>
2202
2203 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2204 * features/aarch64.c: Regenerate.
2205
d83ad864
DB
22062014-09-30 Don Breazeal <donb@codesourcery.com>
2207
2208 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2209 code so as to work with follow_fork_inferior.
2210 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2211 (inf_ttrace_create_inferior): Remove reference to
2212 inf_ttrace_vfork_ppid.
2213 (inf_ttrace_attach): Ditto.
2214 (inf_ttrace_detach): Ditto.
2215 (inf_ttrace_kill): Use current_inferior instead of
2216 inf_ttrace_vfork_ppid.
2217 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2218 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2219 inferior away from the parent.
2220 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2221 target_follow_fork.
2222 (follow_fork_inferior): New function.
2223 (follow_inferior_reset_breakpoints): Make function static.
2224 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2225 * linux-nat.c (linux_child_follow_fork): Move target-independent
2226 code to infrun.c:follow_fork_inferior.
2227
29082443
AA
22282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2229
2230 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2231 * gdbarch.c: Regenerate.
2232 * gdbarch.h: Likewise.
2233 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2234 gdbarch method 'regset_from_core_section'.
2235 (get_core_register_section): Remove handling for the case that
2236 regset == NULL and regset_from_core_section is defined.
2237 (get_core_registers): Drop check for deleted method.
2238 * procfs.c (procfs_do_thread_registers): Adjust comment.
2239
f968fe80
AA
22402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241
2242 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2243 (linux_nat_make_corefile_notes): Remove.
2244 (linux_target_install_ops): Do not set target method
2245 'make_corefile_notes'.
2246 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2247 Remove field.
2248 (linux_corefile_thread_callback): Instead of args->collect, call
2249 linux_collect_thread_registers.
2250 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2251 NULL unless there is a regset iterator.
2252 (linux_make_corefile_notes_1): Remove.
2253 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2254 by linux_make_corefile_notes.
2255 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2256
174ad59a
AA
22572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2258
2259 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2260 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2261 Remove.
2262 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2263
97094034
AA
22642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2265
2266 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2267 (xtensa_iterate_over_regset_sections): New.
2268 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2269
f73d3ce7
AA
22702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2271
2272 * vax-tdep.c (vax_regset_from_core_section): Remove.
2273 (vax_iterate_over_regset_sections): New.
2274 (vax_gdbarch_init): Adjust gdbarch initialization.
2275
cb24567a
AA
22762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2277
2278 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2279 (tilegx_regset_from_core_section): Remove.
2280 (tilegx_iterate_over_regset_sections): New.
2281 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2282
e5139de8
AA
22832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2284
2285 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2286 (sparc_iterate_over_regset_sections): New.
2287 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2288 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2289 targets.
2290 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2291 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2292 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2293 target method 'make_corefile_notes'.
2294
c6d41a6f
AA
22952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2296
2297 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2298 'sizeof_gregset' and 'sizeof_fpregset'.
2299 * sh-tdep.c (sh_regset_from_core_section): Remove.
2300 (sh_iterate_over_regset_sections): New.
2301 (sh_gdbarch_init): Adjust gdbarch initialization.
2302 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2303 sizeof_fpregset.
2304 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2305 'sizeof_gregset'.
2306
9845a0b5
AA
23072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2308
2309 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2310 (score7_linux_iterate_over_regset_sections): New.
2311 (score_gdbarch_init): Adjust gdbarch initialization.
2312
23ea9aeb
AA
23132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2314
2315 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2316 FreeBSD targets.
2317 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2318 method 'make_corefile_notes'.
2319 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2320 (ppcfbsd_regset_from_core_section): Remove.
2321 (ppcfbsd_iterate_over_regset_sections): New.
2322 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2323 initialization.
2324 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2325 (ppcnbsd_iterate_over_regset_sections): New.
2326 (ppcnbsd_init_abi): Adjust.
2327 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2328 (ppcobsd_iterate_over_regset_sections): New.
2329 (ppcobsd_init_abi): Adjust.
2330 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2331 (rs6000_aix_iterate_over_regset_sections): New.
2332 (rs6000_aix_init_osabi): Adjust.
2333
c5b8d704
AA
23342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2335
2336 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2337 (nios2_regset_from_core_section): Remove.
2338 (nios2_iterate_over_regset_sections): New.
2339 (nios2_linux_init_abi): Adjust gdbarch initialization.
2340
3636e608
AA
23412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2342
2343 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2344 (am33_iterate_over_regset_sections): New.
2345 (am33_linux_init_osabi): Adjust gdbarch initialization.
2346
d4036235
AA
23472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2348
2349 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2350 (mips_linux_iterate_over_regset_sections): New.
2351 (mips_linux_init_abi): Adjust gdbarch initialization.
2352 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2353 (mips64obsd_iterate_over_regset_sections): New.
2354 (mips64obsd_init_abi): Adjust.
2355 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2356 (mipsnbsd_iterate_over_regset_sections): New.
2357 (mipsnbsd_init_abi): Adjust.
2358
b61ddd6e
AA
23592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2360
2361 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2362 (m88k_iterate_over_regset_sections): New.
2363 (m88k_gdbarch_init): Adjust gdbarch initialization.
2364
55a2906a
AA
23652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2366
2367 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2368 (ia64_linux_iterate_over_regset_sections): New.
2369 (ia64_linux_init_abi): Adjust gdbarch initialization.
2370
022c98ab
AA
23712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2372
2373 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2374 (m68kbsd_iterate_over_regset_sections): New.
2375 (m68kbsd_init_abi): Adjust gdbarch initialization.
2376 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2377 (m68k_linux_iterate_over_regset_sections): New.
2378 (m68k_linux_init_abi): Adjust gdbarch initialization.
2379
5fac247f
AA
23802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2381
2382 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2383 (m32r_linux_regset_from_core_section): Remove.
2384 (m32r_linux_iterate_over_regset_sections): New.
2385 (m32r_linux_init_abi): Adjust gdbarch initialization.
2386
490496c3
AA
23872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2388
2389 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2390 (amd64obsd_iterate_over_regset_sections): New.
2391 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2392 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2393 Remove.
2394 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2395 regset_from_core_section initialization.
2396 * i386-tdep.c (i386_regset_from_core_section): Remove.
2397 (i386_iterate_over_regset_sections): New.
2398 (i386_gdbarch_init): Adjust gdbarch initialization.
2399 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2400 (i386_iterate_over_regset_sections): New prototype.
2401 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2402 Remove.
2403 (i386obsd_aout_iterate_over_regset_sections): New.
2404 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2405 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2406 targets.
2407 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2408 (amd64fbsd_init_abi): Call fbsd_init_abi.
2409 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2410 (i386fbsd4_init_abi): Call fbsd_init_abi.
2411 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2412 target method 'make_corefile_notes'.
2413 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2414
50c5eb53
AA
24152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2416
2417 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2418 (hppa_hpux_iterate_over_regset_sections): New.
2419 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2420 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2421 (hppa_linux_iterate_over_regset_sections): New.
2422 (hppa_linux_init_abi): Adjust.
2423 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2424 (hppanbsd_iterate_over_regset_sections): New.
2425 (hppanbsd_init_abi): Adjust.
2426 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2427 (hppaobsd_iterate_over_regset_sections): New.
2428 (hppaobsd_init_abi): Adjust.
2429
66afae4f
AA
24302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2431
2432 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2433 (frv_linux_iterate_over_regset_sections): New.
2434 (frv_linux_init_abi): Adjust gdbarch initialization.
2435
ed09174e
AA
24362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2437
2438 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2439 (armbsd_iterate_over_regset_sections): New prototype.
2440 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2441 (armbsd_iterate_over_regset_sections): New.
2442 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2443 initialization.
2444
dff2166e
AA
24452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2446
2447 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2448 (alpha_linux_iterate_over_regset_sections): New.
2449 (alpha_linux_init_abi): Adjust gdbarch initialization.
2450 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2451 prototype.
2452 (alphanbsd_iterate_over_regset_sections): New prototype.
2453
4108500a
AA
24542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2455
2456 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2457 Remove.
2458 (aarch64_linux_iterate_over_regset_sections): New.
2459 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2460
a904c024
AA
24612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2462
2463 * fbsd-tdep.c: New file.
2464 * fbsd-tdep.h: New file.
2465 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2466 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2467 (ALLDEPFILES): Add fbsd-tdep.c.
2468
8f0435f7
AA
24692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2470
2471 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2472 parameter.
2473 * gdbarch.h: Regenerate.
2474 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2475 iterator.
2476 (get_core_register_section): Add parameter 'regset' and use it, if
2477 set. Add parameter 'min_size' and verify the bfd section size
2478 against it.
2479 (get_core_registers_cb): Add parameter 'regset' and pass it to
2480 get_core_register section. For the "standard" register sections
2481 ".reg" and ".reg2", set an appropriate default for human_name.
2482 (get_core_registers): Don't abort when the gdbarch has an iterator
2483 but no regset_from_core_section. Add NULL/0 for parameters
2484 'regset'/'min_size' in calls to get_core_register_section.
2485 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2486 'regset' and use it instead of calling the
2487 regset_from_core_section gdbarch method.
2488 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2489 * i386-tdep.c (i386_supply_xstateregset)
2490 (i386_collect_xstateregset, i386_xstateregset): Moved to
2491 i386-linux-tdep.c.
2492 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2493 .reg-xstate.
2494 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2495 core file support only if the regset iterator hasn't been set.
2496 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2497 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2498 Moved from i386-tdep.c and renamed to *_linux*.
2499 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2500 each callback invocation. Allow any .reg-xstate size when reading
2501 from a core file.
2502 * amd64-tdep.c (amd64_supply_xstateregset)
2503 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2504 amd64-linux-tdep.c.
2505 (amd64_regset_from_core_section): Remove.
2506 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2507 install an amd64-specific regset_from_core_section gdbarch method.
2508 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2509 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2510 Moved from amd64-tdep.c and renamed to *_linux*.
2511 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2512 to each callback invocation. Allow any .reg-xstate size when
2513 reading from a core file.
2514 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2515 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2516 each callback invocation.
2517 (arm_linux_init_abi): No longer set the regset_from_core_section
2518 gdbarch method.
2519 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2520 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2521 each callback invocation.
2522 (ppc_linux_init_abi): No longer set the regset_from_core_section
2523 gdbarch method.
2524 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2525 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2526 (s390_regset_from_core_section): Remove.
2527 (s390_iterate_over_regset_sections): Add regset parameter to each
2528 callback invocation.
2529 (s390_gdbarch_init): No longer set the regset_from_core_section
2530 gdbarch method. Drop initialization of deleted tdep fields.
2531
5aa82d05
AA
25322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2533
2534 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2535 (amd64_linux_iterate_over_regset_sections): New.
2536 (amd64_linux_init_abi_common): Don't install the regset section
2537 list, but the new iterator in gdbarch.
2538 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2539 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2540 (arm_linux_iterate_over_regset_sections): ...here. New function.
2541 (arm_linux_init_abi): Set iterator instead of section list.
2542 * corelow.c (get_core_registers_cb): New function, logic moved
2543 from...
2544 (get_core_registers): ...loop body here. Use new iterator method
2545 instead of walking through the regset section list.
2546 * gdbarch.sh: Remove 'core_regset_sections'. New method
2547 'iterate_over_regset_sections'. New typedef
2548 'iterate_over_regset_sections_cb'.
2549 * gdbarch.c: Regenerate.
2550 * gdbarch.h: Likewise.
2551 * i386-linux-tdep.c (i386_linux_regset_sections)
2552 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2553 Remove.
2554 (i386_linux_iterate_over_regset_sections): New.
2555 (i386_linux_init_abi): Don't choose a regset section list, but
2556 install new iterator in gdbarch.
2557 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2558 (linux_collect_regset_section_cb): New function, logic moved
2559 from...
2560 (linux_collect_thread_registers): ...loop body here. Use iterator
2561 method instead of walking through list.
2562 (linux_make_corefile_notes_1): Check for presence of iterator
2563 method instead of regset section list.
2564 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2565 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2566 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2567 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2568 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2569 (ppc_linux_init_abi): Don't choose from above regset section
2570 lists, but install new iterator in gdbarch.
2571 * regset.h (struct core_regset_section): Remove.
2572 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2573 have_linux_v1, have_linux_v2, and have_tdb.
2574 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2575 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2576 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2577 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2578 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2579 (s390_iterate_over_regset_sections): ...here. New function. Use
2580 new tdep fields.
2581 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2582 regset section lists, but install new iterator.
2583
2eca4a8d
JK
25842014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2585
2586 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2587
a73c2b56
SM
25882014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2589
2590 * progspace.c (print_program_space): Don't prune program spaces
2591 before printing them.
2592
03d46957
PA
25932014-09-25 Pedro Alves <palves@redhat.com>
2594
2595 * infrun.c (user_visible_resume_ptid): Don't check
2596 singlestep_breakpoints_inserted_p.
2597
e558d7c1
PA
25982014-09-25 Pedro Alves <palves@redhat.com>
2599
2600 * breakpoint.c (should_be_inserted): Add debug output.
2601
7f89fd65
PA
26022014-09-25 Pedro Alves <palves@redhat.com>
2603
2604 * infrun.c (stepping_past_instruction_at)
2605 (clear_exit_convenience_vars): Point at infrun.h instead of
2606 inferior.h.
2607 (handle_signal_stop): Fix typo.
2608
b7576e5c
YQ
26092014-09-24 Yao Qi <yao@codesourcery.com>
2610
2611 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2612 bitmask.
2613
9a6cf368
GB
26142014-09-22 Gary Benson <gbenson@redhat.com>
2615
2616 * target.c (target_stop): Updated comment.
2617
03f4463b
GB
26182014-09-22 Gary Benson <gbenson@redhat.com>
2619
2620 * target/target.h (target_stop_ptid): Renamed as...
2621 (target_stop_and_wait): New function. Updated comment.
2622 All uses updated.
2623 (target_continue_ptid): Renamed as...
2624 (target_continue_no_signal): New function. Updated comment.
2625 All uses updated.
2626
a25a5a45
PA
26272014-09-22 Pedro Alves <palves@redhat.com>
2628
2629 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2630 and "auto" merged.
2631 * breakpoint.c (enum ugll_insert_mode): New enum.
2632 (always_inserted_mode): Now a plain boolean.
2633 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2634 (breakpoints_always_inserted_mode): Delete.
2635 (breakpoints_should_be_inserted_now): New function.
2636 (insert_breakpoints): Pass UGLL_INSERT to
2637 update_global_location_list instead of calling
2638 insert_breakpoint_locations manually.
2639 (create_solib_event_breakpoint_1): New, factored out from ...
2640 (create_solib_event_breakpoint): ... this.
2641 (create_and_insert_solib_event_breakpoint): Use
2642 create_solib_event_breakpoint_1 instead of calling
2643 insert_breakpoint_locations manually.
2644 (update_global_location_list): Change parameter type from boolean
2645 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2646 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2647 (update_global_location_list_nothrow): Change parameter type from
2648 boolean to enum ugll_insert_mode.
2649 (_initialize_breakpoint): "breakpoint always-inserted" option is
2650 now a boolean command. Update help text.
2651 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2652 (breakpoints_should_be_inserted_now): New declaration.
2653 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2654 Remove breakpoints_always_inserted_mode check.
2655 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2656 * remote.c (remote_start_remote): Likewise.
2657
04086b45
PA
26582014-09-22 Pedro Alves <palves@redhat.com>
2659
2660 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2661 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2662 Instead, pass UGLL_INSERT to update_global_location_list.
2663 (update_global_location_list): Change parameter type from boolean
2664 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2665 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2666 (create_solib_event_breakpoint_1): New, factored out from ...
2667 (create_solib_event_breakpoint): ... this.
2668 (create_and_insert_solib_event_breakpoint): Use
2669 create_solib_event_breakpoint_1 instead of calling
2670 insert_breakpoint_locations manually.
2671 (update_global_location_list): Handle UGLL_INSERT.
2672
44702360
PA
26732014-09-22 Pedro Alves <palves@redhat.com>
2674
2675 * breakpoint.c (enum ugll_insert_mode): New enum.
2676 (update_global_location_list)
2677 (update_global_location_list_nothrow): Change parameter type from
2678 boolean to enum ugll_insert_mode. All callers adjusted.
2679
93c6145a
JB
26802014-09-19 Joel Brobecker <brobecker@adacore.com>
2681
2682 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2683 SystemTap support in GDB.
2684
89a5711c
DB
26852014-09-19 Don Breazeal <donb@codesourcery.com>
2686
2687 * linux-nat.c (linux_handle_extended_wait): Call
2688 linux_ptrace_get_extended_event.
2689 (wait_lwp): Call linux_is_extended_waitstatus.
2690 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2691 and linux_is_extended_waitstatus.
2692 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2693 linux_ptrace_get_extended_event.
2694 (linux_ptrace_get_extended_event): New function.
2695 (linux_is_extended_waitstatus): New function.
2696 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2697 (linux_is_extended_waitstatus): New declarations.
2698
c3b7b696
YQ
26992014-09-19 Yao Qi <yao@codesourcery.com>
2700
2701 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2702 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2703 comments. Callers update.
2704 (dwarf_decode_lines): Likewise.
2705 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2706 comments. Skip the line table if 'lowpc' is greater than
2707 'address'. Don't check
2708 dwarf2_per_objfile->has_section_at_zero.
2709
2b4fd423
DE
27102014-09-18 Doug Evans <dje@google.com>
2711
2712 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2713 * python/py-symtab.c (stpy_get_producer): New function.
2714 (symtab_object_getset): Add "producer" attribute.
2715
5e43d467
UW
27162014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2717
2718 PR gdb/17384
2719 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2720 (do_captured_read_memory_integer): Remove.
2721 (safe_read_memory_integer): Use target_read_memory directly instead
2722 of catching errors in do_captured_read_memory_integer.
2723
04e79979
MR
27242014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2725
2726 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2727 not gdb/doc.
2728
76aeec5b
SDJ
27292014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2730
2731 * objc-lang.c (find_implementation_from_class): Remove dead code.
2732
2f693f9d
SDJ
27332014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2734
2735 PR cli/7233
2736 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2737 "fprintf_unfiltered (gdb_stdlog...)".
2738
bb9d5f81
PP
27392014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2740
2741 PR breakpoints/12526
2742 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2743 val_bitsize.
2744 * breakpoint.c (watch_command_1): Use these fields to retain
2745 bitfield information.
2746 (extract_bitfield_from_watchpoint_value): New function.
2747 (watchpoint_check): Use it.
2748 (update_watchpoint): Use it. Optimize the address and length of a
2749 HW watchpoint pointing to a bitfield.
2750 * value.h (unpack_value_bitfield): New prototype.
2751 * value.c (unpack_value_bitfield): Make extern.
2752
05db5edd
ST
27532014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2754
2755 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2756 x86-dregs.o.
2757 * gnu-nat.c (inf_threads): New function.
2758 * gnu-nat.h (inf_threads_ftype): New typedef.
2759 (inf_threads): New declaration.
2760 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2761 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2762 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2763 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2764 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2765 (i386_gnu_dr_get_control): New functions.
2766 (reg_addr): New structure.
2767 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2768 i386 debugging register hooks.
2769 * NEWS: Mention this.
2770
5a578da5
OJ
27712014-08-13 Omair Javaid <omair.javaid@linaro.org>
2772
2773 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2774 vector data transfer instructions.
2775 (arm_record_coproc_data_proc): Updated.
2776
f20f80dd
OJ
27772014-08-13 Omair Javaid <omair.javaid@linaro.org>
2778
2779 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2780 arm_record_exreg_ld_st_insn.
2781 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2782 load/store insns.
2783
851f26ae
OJ
27842014-08-13 Omair Javaid <omair.javaid@linaro.org>
2785
2786 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2787 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2788 processing instructions.
2789
1e1b6563
OJ
27902014-08-13 Omair Javaid <omair.javaid@linaro.org>
2791
2792 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2793 for advance SIMD struct ld/st insn.
2794 (thumb2_record_decode_insn_handler): Replace stub handler with
2795 thumb2_record_asimd_struct_ld_st.
2796
60cc5e93
OJ
27972014-08-13 Omair Javaid <omair.javaid@linaro.org>
2798
2799 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2800 for asimd, vfp and coprocessor insns.
2801 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2802 and coprocessor insns.
2803 (thumb2_record_coproc_insn): New function.
2804 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2805 handlers.
2806 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2807 opcode 110 insns.
2808
81219e53
DE
28092014-09-13 Doug Evans <xdje42@gmail.com>
2810
2811 * NEWS: Mention new "queue-signal" command.
2812 * infcmd.c (queue_signal_command): New function.
2813 (_initialize_infcmd): Add new queue-signal command.
2814
d36bf488
DE
28152014-09-13 Doug Evans <xdje42@gmail.com>
2816
2817 * linux-nat.c (wait_lwp): Add debugging printf.
2818 (linux_nat_wait_1): Ditto.
2819
f37f681c
PA
28202014-09-12 Pedro Alves <palves@redhat.com>
2821
2822 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2823 (create_and_insert_solib_event_breakpoint): New functions.
2824 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2825 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2826 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2827 (remove_dbx_link_breakpoint): Delete function.
2828 (insert_dbx_link_bpt_in_file): Use
2829 create_and_insert_solib_event_breakpoint instead of
2830 deprecated_insert_raw_breakpoint.
2831 (procfs_wait): Don't check whether we hit __dbx_link here.
2832 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2833 here.
2834 * solib-irix.c (base_breakpoint): Delete global.
2835 (disable_break): Delete function.
2836 (enable_break): Use create_solib_event_breakpoint
2837 instead of deprecated_insert_raw_breakpoint.
2838 (irix_solib_handle_event): New function.
2839 (irix_solib_create_inferior_hook): Don't run the target or disable
2840 the mapping-complete breakpoint here.
2841 (_initialize_irix_solib): Install irix_solib_handle_event as
2842 so_ops->handle_event hook.
2843
9d9bf2df
EBM
28442014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2845 Ulrich Weigand  <uweigand@de.ibm.com>
2846
2847 PR tdep/17379
2848 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2849 instead of read_memory_unsigned_integer.
2850
b006a80e
GB
28512014-09-12 Gary Benson <gbenson@redhat.com>
2852
2853 * nat/linux-waitpid.c: Include common-defs.h.
2854 [GDBSERVER]: Add FIXME comment.
2855 [!GDBSERVER]: Don't include defs.h or signal.h.
2856 (linux_debug) [!GDBSERVER]: Remove empty block.
2857
296b1496
GB
28582014-09-12 Gary Benson <gbenson@redhat.com>
2859
2860 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2861 Don't include defs.h or server.h.
2862
53f81362
GB
28632014-09-12 Gary Benson <gbenson@redhat.com>
2864
2865 * nat/linux-btrace.c: Include common-defs.h.
2866 Don't include defs.h, server.h or gdbthread.h.
2867 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2868
727605ca
GB
28692014-09-12 Gary Benson <gbenson@redhat.com>
2870
2871 * common/agent.c: Include common-defs.h.
2872 Don't include defs.h or server.h.
2873 * common/buffer.c: Likewise.
2874 * common/common-debug.c: Likewise.
2875 * common/common-utils.c: Likewise.
2876 * common/errors.c: Likewise.
2877 * common/filestuff.c: Likewise.
2878 * common/format.c: Likewise.
2879 * common/gdb_vecs.c: Likewise.
2880 * common/print-utils.c: Likewise.
2881 * common/ptid.c: Likewise.
2882 * common/rsp-low.c: Likewise.
2883 * common/signals.c: Likewise.
2884 * common/vec.c: Likewise.
2885 * common/xml-utils.c: Likewise.
2886 * nat/linux-osdata.c: Likewise.
2887 * nat/linux-procfs.c: Likewise.
2888 * nat/linux-ptrace.c: Likewise.
2889 * nat/mips-linux-watch.c: Likewise.
2890 * target/waitstatus.c: Likewise.
2891
361c8ade
GB
28922014-09-12 Tom Tromey <tromey@redhat.com>
2893 Gary Benson <gbenson@redhat.com>
2894
2895 * common/common-regcache.h: New file.
2896 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2897 * regcache.h: Include common-regcache.h.
2898 (regcache_read_pc): Don't declare.
2899 * regcache.c (get_thread_regcache_for_ptid): New function.
2900 * nat/linux-btrace.c: Don't include regcache.h.
2901 Include common-regcache.h.
2902 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2903
a01cbb49
TS
29042014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2905
2906 * regcache.h (struct regset): Declare.
2907
98880d46
PA
29082014-09-11 Pedro Alves <palves@redhat.com>
2909
2910 PR gdb/17347
2911 * main.c: Include "infrun.h".
2912 (catch_command_errors, catch_command_errors_const): Wait for the
2913 foreground command to complete.
2914 * top.c (maybe_wait_sync_command_done): New function, factored out
2915 from ...
2916 (maybe_wait_sync_command_done): ... here.
2917 * top.h (maybe_wait_sync_command_done): New declaration.
2918
bd9269f7
GB
29192014-09-11 Tom Tromey <tromey@redhat.com>
2920 Gary Benson <gbenson@redhat.com>
2921
2922 * common/symbol.h: New file.
2923 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2924 * minsyms.c (find_minimal_symbol_address): New function.
2925 * common/agent.c: Include common/symbol.h.
2926 [!GDBSERVER]: Don't include objfiles.h.
2927 (agent_look_up_symbols): Use find_minimal_symbol_address.
2928
f8c1d06b
GB
29292014-09-11 Gary Benson <gbenson@redhat.com>
2930
2931 * target/target.h (target_stop_ptid, target_continue_ptid):
2932 Declare.
2933 * target.c (target_stop_ptid, target_continue_ptid): New
2934 functions.
2935 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2936 (agent_run_command): Always use target_stop_ptid and
2937 target_continue_ptid.
2938
721ec300
GB
29392014-09-11 Tom Tromey <tromey@redhat.com>
2940 Gary Benson <gbenson@redhat.com>
2941
2942 * target/target.h: New file.
2943 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2944 * target.h: Include target/target.h.
2945 (target_read_memory, target_write_memory): Don't declare.
2946 * target.c (target_read_uint32): New function.
2947 * common/agent.c: Include target/target.h.
2948 [!GDBSERVER]: Don't include target.h.
2949 (helper_thread_id): Type changed to uint32_t.
2950 (agent_get_helper_thread_id): Use target_read_uint32.
2951 (agent_run_command): Always use target_read_memory and
2952 target_write_memory.
2953 (agent_capability): Type changed to uint32_t.
2954 (agent_capability_check): Use target_read_uint32.
2955
c5e92cca
GB
29562014-09-11 Gary Benson <gbenson@redhat.com>
2957
2958 * common/common-debug.h (show_debug_regs): Declare.
2959 * common/common-debug.c (show_debug_regs): Define.
2960 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2961 all uses with show_debug_regs. Replace all uses that considered
2962 debug_hw_points as a multi-value integer with straight boolean
2963 uses.
2964 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2965 with show_debug_regs.
2966 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2967 all uses with show_debug_regs.
2968 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2969 uses with show_debug_regs.
2970
eeef931a
UW
29712014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2972
2973 * findvar.c (address_from_register): Handle targets requiring
2974 a special conversion routine even for plain pointer types.
2975
8efa9855
UW
29762014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2977
2978 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2979 (store_register): Do not call exec_one_dummy_insn.
2980
eb479039
JB
29812014-09-10 Joel Brobecker <brobecker@adacore.com>
2982
2983 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2984 dereference it first. Use value_enclosing_type instead of
2985 value_type.
2986 (ada_array_length): Likewise.
2987
deede10c
JB
29882014-09-10 Joel Brobecker <brobecker@adacore.com>
2989
2990 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2991 Adjust function implementation and documentation accordingly.
2992 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2993 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2994 Update call to ada_value_ptr_subscript.
2995
7828a5f5
JB
29962014-09-10 Joel Brobecker <brobecker@adacore.com>
2997
2998 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2999 instead of VAL's type.
3000
35782f14
JB
30012014-09-10 Joel Brobecker <brobecker@adacore.com>
3002
3003 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3004
d342a0da
DE
30052014-09-09 Doug Evans <xdje42@gmail.com>
3006
3007 PR guile/17367
3008 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3009 last parameter to pkg-config, not first.
3010 * configure.ac: Pass --with-guile provided pkg-config path to
3011 GDB_GUILE_PROGRAM_NAMES.
3012 * configure: Regenerate.
3013
b4a3d263
GKB
30142014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3015
3016 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3017 Bertazi".
3018
6e466374
MR
30192014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3020
3021 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3022 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3023 the list of sections determining GDB_OSABI_IRIX.
3024
a1ada89a
JH
30252014-09-09 James Hogan <james.hogan@imgtec.com>
3026
3027 * MAINTAINERS (Write After Approval): Add "James Hogan".
3028
86db008d
JH
30292014-09-09 James Hogan <james.hogan@imgtec.com>
3030
3031 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3032
72fde3df
JB
30332014-09-09 Joel Brobecker <brobecker@adacore.com>
3034
3035 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3036
92d8d229
DE
30372014-09-08 Doug Evans <xdje42@gmail.com>
3038
3039 PR 17247
3040 * guile.c: #include <signal.h>.
3041 (_initialize_guile): Block SIGCHLD while initializing Guile.
3042
3043 Replaces the following, which is reverted.
3044
3045 2014-07-26 Doug Evans <xdje42@gmail.com>
3046
3047 PR 17185
3048 * configure.ac: Add check for header gc/gc.h.
3049 Add check for function setenv.
3050 * configure: Regenerate.
3051 * config.in: Regenerate.
3052 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3053
d81412aa
DE
30542014-09-08 Doug Evans <xdje42@gmail.com>
3055
3056 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3057 with named constant. Fix style of pointer comparison.
3058 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3059
a9f116cb
GKB
30602014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3061
3062 PR gdb/17035
3063 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3064 decide whether we display the command on "show user".
3065 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3066 printing command name.
3067 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3068 * cli/cli-decode.c (cli_user_command_p): Create helper function
3069 to verify whether cmd_list_element is a user-defined command.
3070
c75bd3a2
JK
30712014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3072
3073 PR python/17355
3074 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3075 Fix goto out of TRY_CATCH.
3076
faa42425 30772014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3078 Tom Tromey <tromey@redhat.com>
faa42425
DE
3079
3080 PR 15276
3081 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3082 $_any_caller_matches.
3083 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3084 * python/lib/gdb/function/caller_is.py: New file.
3085
0d41ba00
DE
30862014-09-06 Doug Evans <xdje42@gmail.com>
3087
3088 * infcmd.c (program_info): Fix typo.
3089
474ca4f6
SDJ
30902014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3091
3092 PR gdb/17235
3093 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3094 'number'. New variable 'has_digit'. Rewrite code to deal with
3095 subexpressions on SDT probes.
3096
ebf13736
PA
30972014-09-04 Pedro Alves <palves@redhat.com>
3098
3099 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3100 the input is only one character long.
3101
eb0b0463
SDJ
31022014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3103
3104 PR fortran/17237
3105 * f-valprint.c (f_val_print): Specify the correct print option to
3106 use when printing integer values.
3107
5ee44bfa
GB
31082014-09-04 Gary Benson <gbenson@redhat.com>
3109
3110 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3111 Remove code to cope with LWPs wrapped as PIDs.
3112 Add assertions to ensure no wrapped LWPs are passed.
3113
4875ffdb
PA
31142014-09-04 Pedro Alves <palves@redhat.com>
3115
3116 * value.c (value_ranges_copy_adjusted): New function, factored out
3117 from ...
3118 (value_contents_copy_raw): ... here.
3119 (unpack_value_bits_as_long_1): Rename back to ...
3120 (unpack_bits_as_long): ... this. Remove 'original_value' and
3121 'result' parameters. Change return type to LONGEST.
3122 (unpack_value_bits_as_long): Delete.
3123 (unpack_value_field_as_long_1): Delete.
3124 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3125 (unpack_value_bitfield): New function.
3126 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3127 (value_fetch_lazy): Use unpack_value_bitfield.
3128 * value.h (unpack_value_bits_as_long): Delete declaration.
3129
5f3b99cf
SS
31302014-09-03 Sasha Smundak <asmundak@google.com>
3131
3132 * python/py-frame.c (frapy_read_register): New function.
3133
ac740bc7
JH
31342014-09-03 James Hogan <james.hogan@imgtec.com>
3135
3136 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3137 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3138
7d793aa9
SDJ
31392014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3140
3141 PR python/16699
3142 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3143 function.
3144 (add_cmd): Set "completer_handle_brkchars" to NULL.
3145 * cli/cli-decode.h (struct cmd_list_element)
3146 <completer_handle_brkchars>: New field.
3147 * command.h (completer_ftype_void): New typedef.
3148 (set_cmd_completer_handle_brkchars): New prototype.
3149 * completer.c (set_gdb_completion_word_break_characters): New
3150 function.
3151 (complete_line_internal): Call "completer_handle_brkchars"
3152 callback from command.
3153 * completer.h: Include "command.h".
3154 (set_gdb_completion_word_break_characters): New prototype.
3155 * python/py-cmd.c (cmdpy_completer_helper): New function.
3156 (cmdpy_completer_handle_brkchars): New function.
3157 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3158 (cmdpy_init): Set completer_handle_brkchars to
3159 cmdpy_completer_handle_brkchars.
3160
97ea6506
GB
31612014-09-03 Gary Benson <gbenson@redhat.com>
3162
3163 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3164 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3165 Loop conditions changed to equivalent form.
3166 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3167 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3168 ALL_DEBUG_ADDRESS_REGISTERS.
3169
d1437815
JB
31702014-09-03 Joel Brobecker <brobecker@adacore.com>
3171
3172 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3173 description fix.
3174
9b94fcf1
DE
31752014-09-02 Doug Evans <dje@google.com>
3176
3177 * typeprint.c (find_global_typedef): Fix comment.
3178
df7e5265
GB
31792014-09-02 Gary Benson <gbenson@redhat.com>
3180
3181 * i386-nat.h: Renamed as...
3182 * x86-nat.h: New file. All type, function and variable name
3183 prefixes changed from "i386_" to "x86_". All references updated.
3184 * i386-nat.c: Renamed as...
3185 * x86-nat.c: New file. All type, function and variable name
3186 prefixes changed from "i386_" to "x86_". All references updated.
3187 * common/i386-xstate.h: Renamed as...
3188 * common/x86-xstate.h: New file. All type, function and variable
3189 name prefixes changed from "i386_" to "x86_". All references
3190 updated.
3191 * nat/i386-cpuid.h: Renamed as...
3192 * nat/x86-cpuid.h: New file. All type, function and variable name
3193 prefixes changed from "i386_" to "x86_". All references updated.
3194 * nat/i386-gcc-cpuid.h: Renamed as...
3195 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3196 name prefixes changed from "i386_" to "x86_". All references
3197 updated.
3198 * nat/i386-dregs.h: Renamed as...
3199 * nat/x86-dregs.h: New file. All type, function and variable name
3200 prefixes changed from "i386_" to "x86_". All references updated.
3201 * nat/i386-dregs.c: Renamed as...
3202 * nat/x86-dregs.c: New file. All type, function and variable name
3203 prefixes changed from "i386_" to "x86_". All references updated.
3204
1c3569d4
MR
32052014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3206
3207 * varobj.c (_initialize_varobj): Move to the end of file.
3208
ff55e1b5
GB
32092014-08-29 Gary Benson <gbenson@redhat.com>
3210
3211 * common/common-exceptions.h: New file.
3212 * common/common-exceptions.c: Likewise.
3213 * Makefile.in (SFILES): Add common/common-exceptions.c.
3214 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3215 (COMMON_OBS): Add common-exceptions.o.
3216 (common-exceptions.o): New rule.
3217 * exceptions.h (common-exceptions.h): Include.
3218 (gdb_setjmp.h): Do not include.
3219 (return_reason): Moved to common-exceptions.h.
3220 (enum return_reason): Likewise.
3221 (RETURN_MASK): Likewise.
3222 (typedef return_mask): Likewise.
3223 (enum errors): Likewise.
3224 (struct gdb_exception): Likewise.
3225 (exceptions_state_mc_init): Likewise.
3226 (exceptions_state_mc_action_iter): Likewise.
3227 (exceptions_state_mc_action_iter_1): Likewise.
3228 (TRY_CATCH): Likewise.
3229 (throw_exception): Likewise.
3230 (throw_verror): Likewise.
3231 (throw_vquit): Likewise.
3232 (throw_error): Likewise.
3233 (throw_quit): Likewise.
3234 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3235 (enum catcher_action): Likewise.
3236 (struct catcher): Likewise.
3237 (current_catcher): Likewise.
3238 (catcher_list_size): Likewise.
3239 (exceptions_state_mc_init): Likewise.
3240 (catcher_pop): Likewise.
3241 (exceptions_state_mc): Likewise.
3242 (exceptions_state_mc_action_iter): Likewise.
3243 (exceptions_state_mc_action_iter_1): Likewise.
3244 (throw_exception): Likewise.
3245 (exception_messages): Likewise.
3246 (exception_messages_size): Likewise.
3247 (throw_it): Likewise.
3248 (throw_verror): Likewise.
3249 (throw_vquit): Likewise.
3250 (throw_error): Likewise.
3251 (throw_quit): Likewise.
3252 (prepare_to_throw_exception): New function.
3253
e9bcb658
GB
32542014-08-29 Gary Benson <gbenson@redhat.com>
3255
3256 * common/gdb_setjmp.h: New file.
3257 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3258 * configure.ac: Move sigsetjmp check...
3259 * common/common.m4: ...here.
3260 * configure: Regenerate.
3261 * cp-support.c (SIGJMP_BUF): Delete.
3262 (SIGSETJMP): Likewise.
3263 (SIGLONGJMP): Likewise.
3264 * exceptions.h (gdb_setjmp.h): Include.
3265 (setjmp.h): Do not include.
3266 (EXCEPTIONS_SIGJMP_BUF): Delete.
3267 (EXCEPTIONS_SIGSETJMP): Likewise.
3268 (EXCEPTIONS_SIGLONGJMP): Likewise.
3269 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3270 from gdb_setjmp.h.
3271 * exceptions.c: Likewise.
3272
e3180625
GB
32732014-08-29 Gary Benson <gbenson@redhat.com>
3274
3275 * cleanups.h: Moved to...
3276 * common/cleanups.h: New file.
3277 * cleanups.c: Moved to...
3278 * common/cleanups.c: New file. Include common-defs.h and
3279 cleanups.h. Do not include defs.h.
3280 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3281 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3282 (cleanups.o): New rule.
3283
e3d6ba5d
GB
32842014-08-29 Gary Benson <gbenson@redhat.com>
3285
3286 * common/errors.h (internal_warning): New declaration.
3287 (internal_vwarning): Likewise.
3288 * common/errors.c (internal_warning): New function.
3289 * utils.h (internal_warning): Don't declare.
3290 (internal_vwarning): Likewise.
3291 * utils.c (internal_warning): Removed.
3292
075c7033
GB
32932014-08-29 Gary Benson <gbenson@redhat.com>
3294
3295 * main.c (captured_main): Use warning during startup.
3296 Prefix startup warning messages with command name.
3297
91b35fd0
GB
32982014-08-29 Gary Benson <gbenson@redhat.com>
3299
3300 * main.c (captured_main): Handle usage errors with error.
3301
b1ec390e
GB
33022014-08-29 Gary Benson <gbenson@redhat.com>
3303
3304 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3305 exit pair with a call to error. Wrap the message with _().
3306
fd0ef3dd
GB
33072014-08-29 Gary Benson <gbenson@redhat.com>
3308
3309 * main.c (captured_main): Replace a fprintf/exit
3310 pair with a call to error. Wrap the message with _().
3311
e0e6bcab
GB
33122014-08-29 Gary Benson <gbenson@redhat.com>
3313
3314 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3315 pairs with calls to error. Wrap the message with _().
3316
0d2f5c07
GB
33172014-08-29 Gary Benson <gbenson@redhat.com>
3318
3319 * utils.c (vwarning): Protect calls to target_terminal_ours
3320 and wrap_here.
3321
5df43998
GB
33222014-08-29 Gary Benson <gbenson@redhat.com>
3323
3324 * exceptions.c (print_flush): Protect calls to
3325 target_terminal_ours and wrap_here.
3326
2437fd32
GB
33272014-08-29 Gary Benson <gbenson@redhat.com>
3328
3329 * utils.h (filtered_printing_initialized): New declaration.
3330 * utils.c (abort_with_message): New function.
3331 (internal_vproblem): Use abort_with_message for first level
3332 recursive internal problems, and if gdb_stderr is not set up.
3333 Protect calls to target_terminal_ours, begin_line and query.
3334
f1f58506
DE
33352014-08-28 Doug Evans <dje@google.com>
3336
3337 * symtab.c (in_prologue): Move definition to better spot.
3338 (skip_prologue_using_sal): Ditto.
3339
aab2f208
DE
33402014-08-28 Doug Evans <dje@google.com>
3341
3342 * symtab.c (find_function_start_sal): Move definition to better spot.
3343
6b65d1b6
YQ
33442014-08-28 Yao Qi <yao@codesourcery.com>
3345
3346 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3347 found_stack_adjust in forward scan. Remove condition check
3348 on found_stack_adjust which is always true. Indent the code.
3349
a1b34d15
YQ
33502014-08-28 Yao Qi <yao@codesourcery.com>
3351
3352 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3353 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3354 (dwarf_decode_lines): Remove argument
3355 want_line_info. Remove condition check on want_line_info.
3356 Callers update.
3357
d5962de5
DE
33582014-08-27 Doug Evans <dje@google.com>
3359
3360 * dwarf2read.c (dwarf_record_line): Fix typo.
3361
9b139002
SDJ
33622014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3363
3364 * target.h (struct target_ops::to_terminal_save_ours): Remove
3365 declaration.
3366 (target_terminal_save_ours): Remove macro.
3367 * target-delegates.c: Regenerate.
3368 * inf-child.c (inf_child_target): Don't set the nonexistent
3369 field to_terminal_save_ours.
3370 * inferior.h (child_terminal_save_ours): Remove declaration.
3371 * terminal.h (gdb_save_tty_state): New declaration.
3372 * inflow.c (child_terminal_save_ours): Rename to ...
3373 (gdb_save_tty_state): ... this.
3374 * tui/tui.c: Include terminal.h.
3375 (tui_enable): Use gdb_save_tty_state instead of
3376 target_terminal_save_ours.
3377 (tui_disable): Likewise.
3378
9debeba0
DE
33792014-08-25 Doug Evans <dje@google.com>
3380
3381 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3382 Pass NULL instead of 0 for context pointer.
3383
428fc5fc
YQ
33842014-08-25 Yao Qi <yao@codesourcery.com>
3385
3386 * dwarf2read.c: Fix grammatical error.
3387
cdc07690
YQ
33882014-08-24 Yao Qi <yao@codesourcery.com>
3389
3390 * dwarf2read.c (scan_partial_symbols): Update comments.
3391 Rename argument 'need_pc' with 'set_addrmap'.
3392 (add_partial_namespace): Rename argument 'need_pc' with
3393 'set_addrmap'.
3394 (add_partial_module): Likewise.
3395 (add_partial_subprogram): Likewise. Update comments.
3396 (dwarf2_name): Fix typo.
3397
a05a36a5
DE
33982014-08-22 Doug Evans <dje@google.com>
3399
3400 PR 17276
3401 * dwarf2read.c (dwarf_record_line_p): New function.
3402 (dwarf_decode_lines_1): Ignore subsequent line number entries
3403 for the same line if any entry had a non-zero discriminator.
3404
252a6764
DE
34052014-08-22 Doug Evans <dje@google.com>
3406
3407 * buildsym.h (record_line_ftype): New typedef.
3408 (record_line): Use it.
3409 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3410 (dwarf_decode_lines_1): Call them.
3411
510db052
YQ
34122014-08-22 Yao Qi <yao@codesourcery.com>
3413
3414 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3415 (ctf_end): Remove code.
3416
22fd09ae
JK
34172014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3418
3419 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3420 (linux_make_corefile_notes): call update_thread_list, protected against
3421 exceptions.
3422
656e8868
PA
34232014-08-21 Pedro Alves <palves@redhat.com>
3424
3425 * infcmd.c (attach_command): Remove comment.
3426
de589d04
WN
34272014-08-21 Bin Cheng <bin.cheng@arm.com>
3428
3429 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3430 unsigned LONGEST to ULONGEST.
3431
2a31c623
PA
34322014-08-20 Pedro Alves <palves@redhat.com>
3433
3434 * Makefile.in (check-read1): New rule.
3435
d36430db
JB
34362014-08-20 Joel Brobecker <brobecker@adacore.com>
3437
3438 * value.c (value_from_contents_and_address): Strip resolved_type's
3439 typedef layers before checking its TYPE_DATA_LOCATION.
3440
000339af
PA
34412014-08-20 Pedro Alves <palves@redhat.com>
3442
3443 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3444
5f52445b
YQ
34452014-08-20 Yao Qi <yao@codesourcery.com>
3446
3447 * amd64-tdep.c (amd64_classify): Add a blank line after the
3448 example. Move "*/" to a new line.
3449 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3450 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3451 * dwarf2read.c (psymtab_include_file_name): Likewise.
3452
9a0dc9e3
PA
34532014-08-19 Andrew Burgess <aburgess@broadcom.com>
3454 Pedro Alves <palves@redhat.com>
3455
3456 PR symtab/14604
3457 PR symtab/14605
3458 * ada-lang.c (coerce_unspec_val_to_type): Use
3459 value_contents_copy_raw.
3460 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3461 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3462 * cp-valprint.c (cp_print_value_fields): Let the common printing
3463 code handle optimized out values.
3464 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3465 * d-valprint.c (dynamic_array_type): Use
3466 value_bits_any_optimized_out.
3467 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3468 check_any_valid fields.
3469 (check_pieced_value_bits): Delete and inline ...
3470 (check_pieced_synthetic_pointer): ... here.
3471 (check_pieced_value_validity): Delete.
3472 (check_pieced_value_invalid): Delete.
3473 (pieced_value_funcs): Remove check_validity and check_any_valid
3474 fields.
3475 (read_pieced_value): Use mark_value_bits_optimized_out.
3476 (write_pieced_value): Switch to use
3477 mark_value_bytes_optimized_out.
3478 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3479 of assuming the whole value is optimized out.
3480 * findvar.c (read_frame_register_value): Remove special handling
3481 of optimized out registers.
3482 (value_from_register): Use mark_value_bytes_optimized_out.
3483 * frame-unwind.c (frame_unwind_got_optimized): Use
3484 mark_value_bytes_optimized_out.
3485 * jv-valprint.c (java_value_print): Adjust.
3486 (java_print_value_fields): Let the common printing code handle
3487 optimized out values.
3488 * mips-tdep.c (mips_print_register): Remove special handling of
3489 optimized out registers.
3490 * opencl-lang.c (lval_func_check_validity): Delete.
3491 (lval_func_check_any_valid): Delete.
3492 (opencl_value_funcs): Remove check_validity and check_any_valid
3493 fields.
3494 * p-valprint.c (pascal_object_print_value_fields): Let the common
3495 printing code handle optimized out values.
3496 * stack.c (read_frame_arg): Remove special handling of optimized
3497 out values. Fetch both VAL and ENTRYVAL before comparing
3498 contents. Adjust to value_available_contents_eq rename.
3499 * valprint.c (valprint_check_validity)
3500 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3501 (val_print_array_elements): Adjust.
3502 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3503 (value_bits_any_optimized_out): New function.
3504 (value_entirely_covered_by_range_vector): New function, factored
3505 out from value_entirely_unavailable.
3506 (value_entirely_unavailable): Reimplement.
3507 (value_entirely_optimized_out): New function.
3508 (insert_into_bit_range_vector): New function, factored out from
3509 mark_value_bits_unavailable.
3510 (mark_value_bits_unavailable): Reimplement.
3511 (struct ranges_and_idx): New struct.
3512 (find_first_range_overlap_and_match): New function, factored out
3513 from value_available_contents_bits_eq.
3514 (value_available_contents_bits_eq): Rename to ...
3515 (value_contents_bits_eq): ... this. Check both unavailable
3516 contents and optimized out contents.
3517 (value_available_contents_eq): Rename to ...
3518 (value_contents_eq): ... this.
3519 (allocate_value_lazy): Remove reference to the old optimized_out
3520 boolean.
3521 (allocate_optimized_out_value): Use
3522 mark_value_bytes_optimized_out.
3523 (require_not_optimized_out): Adjust to check whether the
3524 optimized_out vec is empty.
3525 (ranges_copy_adjusted): New function, factored out from
3526 value_contents_copy_raw.
3527 (value_contents_copy_raw): Also copy the optimized out ranges.
3528 Assert the destination ranges aren't optimized out.
3529 (value_contents_copy): Update comment, remove call to
3530 require_not_optimized_out.
3531 (value_contents_equal): Adjust to check whether the optimized_out
3532 vec is empty.
3533 (set_value_optimized_out, value_optimized_out_const): Delete.
3534 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3535 New functions.
3536 (value_entirely_optimized_out, value_bits_valid): Delete.
3537 (value_copy): Take a VEC copy of the 'optimized_out' field.
3538 (value_primitive_field): Remove special handling of optimized out.
3539 (value_fetch_lazy): Assert that lazy values have no unavailable
3540 regions. Use value_bits_any_optimized_out. Remove some special
3541 handling for optimized out values.
3542 * value.h: Add intro comment about <optimized out> and
3543 <unavailable>.
3544 (struct lval_funcs): Remove check_validity and check_any_valid
3545 fields.
3546 (set_value_optimized_out, value_optimized_out_const): Remove.
3547 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3548 New declarations.
3549 (value_bits_any_optimized_out): New declaration.
3550 (value_bits_valid): Delete declaration.
3551 (value_available_contents_eq): Rename to ...
3552 (value_contents_eq): ... this, and extend comments.
3553
6694c411
JK
35542014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3555
3556 Fix -fsanitize=address on unreadable inferior strings.
3557 * valprint.c (val_print_string): Fix access before BUFFER.
3558
89a1c21a
SM
35592014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3560
3561 * target.c (target_struct_size): Remove.
3562 (target_struct_allocsize): Remove.
3563 (DEFAULT_ALLOCSIZE): Remove.
3564 (target_ops_p): New typedef.
3565 (DEF_VEC_P (target_ops_p)): New vector type.
3566 (target_structs): Change type to VEC (target_ops_p).
3567 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3568 (find_default_run_target): Rewrite for loop following changes to
3569 target_structs.
3570
cb417230
JB
35712014-08-19 Joel Brobecker <brobecker@adacore.com>
3572
3573 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3574 Adjust code accordingly. Adjust function description comment.
3575
817e0957
YQ
35762014-08-19 Yao Qi <yao@codesourcery.com>
3577
3578 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3579 types.
3580
2974be62
AM
35812014-08-19 Alan Modra <amodra@gmail.com>
3582
3583 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3584 * config.in: Regenerate.
3585 * configure: Regenerate.
3586
34abf635
GB
35872014-08-19 Tom Tromey <tromey@redhat.com>
3588 Gary Benson <gbenson@redhat.com>
3589
3590 * common/common-debug.h: New file.
3591 * common/common-debug.c: Likewise.
3592 * debug.c: Likewise.
3593 * Makefile.in (SFILES): Add common/common-debug.c.
3594 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3595 (COMMON_OBS): Add common-debug.o and debug.o.
3596 (common-debug.o): New rule.
3597 * common/common-defs.h: Include common-debug.h.
3598 * common/agent.c (debug_agent_printf): New function.
3599 (DEBUG_AGENT): Redefine.
3600 * nat/i386-dregs.c (debug_printf): Undefine.
3601
f6e94d78
GB
36022014-08-19 Gary Benson <gbenson@redhat.com>
3603
3604 * common/common-defs.h: Include print-utils.h.
3605 * utils.h: Do not include print-utils.h.
3606
9239eeab
GB
36072014-08-19 Tom Tromey <tromey@redhat.com>
3608 Gary Benson <gbenson@redhat.com>
3609
3610 * common/common-types.h: New file.
3611 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3612 * common/common-defs.h: Include common-types.h.
3613 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3614 (ULONGEST): Remove.
3615
ef87c8bb
GB
36162014-08-19 Tom Tromey <tromey@redhat.com>
3617 Gary Benson <gbenson@redhat.com>
3618
3619 * common/errors.h: New file.
3620 * common/errors.c: Likewise.
3621 * Makefile.in (SFILES): Add common/errors.c.
3622 (HFILES_NO_SRCDIR): Add common/errors.h.
3623 (COMMON_OBS): Add errors.o.
3624 (errors.o): New rule.
3625 * common/common-defs.h: Include errors.h.
3626 * utils.h (perror_with_name, error, verror, warning, vwarning):
3627 Don't declare.
3628 * common/common-utils.h: (malloc_failure, internal_error):
3629 Likewise.
3630
196a707b
GB
36312014-08-19 Gary Benson <gbenson@redhat.com>
3632
3633 * utils.c (internal_vproblem): Always print the message.
3634
ded4fc8f
DE
36352014-08-18 Doug Evans <dje@google.com>
3636
3637 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3638
950c97d8
JB
36392014-08-18 Joel Brobecker <brobecker@adacore.com>
3640
3641 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3642 Return 0 if TYPE is dynamic.
3643 (print_range): Add handling of dynamic ranges.
3644
3cdcd0ce
JB
36452014-08-18 Keven Boell <keven.boell@intel.com>
3646 Joel Brobecker <brobecker@adacore.com>
3647
3648 * gdbtypes.h (struct main_type): Add field "data_location".
3649 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3650 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3651 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3652 a dynamic data location.
3653 (resolve_dynamic_type): Add DW_AT_data_location handling.
3654 (copy_recursive, copy_type): Copy the data_location information
3655 when present.
3656 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3657 * value.c (value_from_contents_and_address): Add
3658 DW_AT_data_location handling.
3659
08412b07
JB
36602014-08-18 Keven Boell <keven.boell@intel.com>
3661 Joel Brobecker <brobecker@adacore.com>
3662
3663 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3664 field "get_object_address".
3665 * dwarf2expr.c (execute_stack_op): Add handling for
3666 DW_OP_push_object_address.
3667 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3668 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3669 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3670 (dwarf_expr_get_obj_addr): New function.
3671 (dwarf_expr_ctx_funcs): Add get_object_address field.
3672 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3673 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3674 (dwarf2_evaluate_property): Add parameter "address". Use it.
3675 (needs_get_obj_addr): New function.
3676 (needs_frame_ctx_funcs): Add get_object_address field.
3677 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3678 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3679 (resolve_dynamic_array): Likewise.
3680
84754697
JB
36812014-08-18 Joel Brobecker <brobecker@adacore.com>
3682
3683 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3684 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3685 fixed value for records and unions for which some GNAT encodings
3686 are present.
3687
da5c522f
JB
36882014-08-18 Joel Brobecker <brobecker@adacore.com>
3689
3690 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3691 rewrite to avoid "else if" and "else" constructs. Should be
3692 a no-op in practice.
3693
0d72a7c3
JB
36942014-08-18 Joel Brobecker <brobecker@adacore.com>
3695
3696 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3697 of lexical block.
3698
e66d4446
SC
36992014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3700
3701 PR c++/17132
3702 * eval.c: Update all calls to find_overload_match.
3703 * valarith.c: Likewise.
3704 (value_user_defined_cpp_op, value_user_defined_op): New
3705 argument NOSIDE. Update all callers.
3706 * valops.c (find_overload_match): New argument NOSIDE.
3707 * value.h (find_overload_match): Update signature.
3708
940df408
SC
37092014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3710
3711 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3712 'items' methods instead of 'iteritems' method on dictionaries.
3713
699ca60a
DE
37142014-08-15 Doug Evans <dje@google.com>
3715
3716 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3717 closer to use.
3718
37780ee5
DE
37192014-08-15 Doug Evans <dje@google.com>
3720
3721 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3722
0ad93d4f
DE
37232014-08-15 Doug Evans <dje@google.com>
3724
3725 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3726
20d8c372
DE
37272014-08-15 Doug Evans <dje@google.com>
3728
3729 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3730 unused.
3731
cb039ba4
EZ
37322014-08-15 Eli Zaretskii <eliz@gnu.org>
3733
3734 * dcache.h: Include target.h, to avoid compile time warnings.
3735
eb7a547a
JB
37362014-08-15 Joel Brobecker <brobecker@adacore.com>
3737
3738 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3739 frame_info" partial declaration.
3740 * gdbarch.h: Regenerate.
3741
783cecc8
YQ
37422014-08-15 Yao Qi <yao@codesourcery.com>
3743
3744 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3745 Add parameter 'decode_for_pst_p'. Callers update.
3746
65c749e7
YQ
37472014-08-13 Yao Qi <yao@codesourcery.com>
3748
3749 PR build/17104
3750 * configure.ac: Use local variable 'pos'.
3751 * configure: Regenerated.
3752
d769e349
DE
37532014-08-11 Doug Evans <dje@google.com>
3754
3755 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3756 message, it is redundant with "Reading symbols from ..." message.
3757
24f1235e
DE
37582014-08-10 Doug Evans <xdje42@gmail.com>
3759
3760 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3761
dcd2e6ef
YQ
37622014-08-09 Yao Qi <yao@codesourcery.com>
3763
3764 PR remote/9053
3765 * remote.c (remote_xfer_partial): Remove dead code.
3766
070bdf0b
AA
37672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3768
3769 * ia64-linux-tdep.c: Include "regset.h".
3770 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3771 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3772 (ia64_linux_supply_fpregset): New function.
3773 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3774 (ia64_linux_regset_from_core_section): New function.
3775 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3776 method.
3777
08f9f542
AA
37782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3779
3780 * m68klinux-tdep.c: Include "regset.h".
3781 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3782 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3783 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3784 (m68k_linux_regset_from_core_section): New function.
3785 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3786 method.
3787
8f1cee41
AA
37882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3789
3790 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3791 function. Move logic to...
3792 (tilegx_linux_regmap): ... this new register map.
3793 (tilegx_linux_regset): Refer to register map, replace supply
3794 method by regcache_supply_regset, and add collect method.
3795 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3796 TILEGX_FIRST_EASY_REGNUM.
3797
c5741217
AA
37982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3799
3800 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3801 that calls regcache_supply_regset and handles the EPC register
3802 separately. Move main logic to...
3803 (score7_linux_gregmap): ... this new register map.
3804 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3805 (score7_linux_gregset): Refer to register map. Add collect method.
3806 (score7_linux_regset_from_core_section): Replace
3807 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3808 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3809 (struct regset): Delete unused forward declaraction.
3810 (struct pt_regs): Delete structure definition.
3811 (elf_gregset_t): Delete typedef.
3812
81580573
AA
38132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3814
3815 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3816 (nios2_core_regset): Add collect method.
3817
ba199d7d
AA
38182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3819
3820 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3821 platform-independent and don't write to read-only input buffer.
3822 (m32r_linux_collect_gregset): New function.
3823 (m32r_linux_gregset): Add collect method.
3824
0006a9da
AA
38252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3826
3827 * hppa-linux-tdep.c (greg_map): Rename to...
3828 (hppa_linux_gregmap): ... this. Also convert to
3829 regcache_map_entry format.
3830 (hppa_linux_supply_regset): Delete function.
3831 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3832 (hppa_linux_fpregmap): ... this new register map.
3833 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3834 register map, replace supply method by regcache_supply_regset, and
3835 add collect method regcache_collect_regset.
3836
901e1b23
AA
38372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3838
3839 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3840 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3841 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3842 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3843 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3844 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3845 (frv_linux_supply_gregset): Replace main logic by call to
3846 regcache_supply_regset, but keep clearing gr32-gr63.
3847 (frv_linux_supply_fpregset): Delete function.
3848 (frv_linux_gregset): Refer to appropriate register map and add
3849 regcache_collect_regset as the collect method.
3850 (frv_linux_fpregset): Likewise. Also exchange the supply method
3851 by regcache_supply_regset.
3852
1d6e7555
AA
38532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3854
3855 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3856 by call to alpha_supply_int_regs.
3857 (alpha_linux_collect_gregset): New function.
3858 (alpha_linux_supply_fpregset): Replace logic by call to
3859 alpha_supply_fp_regs.
3860 (alpha_linux_collect_fpregset): New function.
3861 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3862
d4d793bf
AA
38632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3864
3865 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3866 by call to regcache_collect_regset.
3867 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3868 instead of aarch64_linux_supply_gregset/_fpregset.
3869 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3870 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3871 header file instead.
3872 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3873 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3874 functions. Move logic to ...
3875 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3876 register maps.
3877 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3878 refer to new register maps, replace *_regset_from_core by
3879 regcache_supply_regset, and also use regcache_collect_regset.
3880 * aarch64-linux-tdep.h: Include "regset.h".
3881 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3882 Delete prototypes.
3883 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3884 macros, moved from C source file.
3885 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3886 variable declarations.
3887
99b7da5d
AA
38882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3889
3890 * s390-linux-nat.c: Include "regset.h".
3891 (regmap_gregset): Delete macro.
3892 (s390_64_regmap_gregset): New register map for
3893 regcache_supply/_collect_regset.
3894 (s390_64_gregset): New regset.
3895 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3896 (regmap_fpregset): Delete macro.
3897 (s390_native_supply, s390_native_collect): Delete functions.
3898 (supply_gregset, fill_gregset): Replace s390-specific regmap
3899 handling by a call to regcache_supply/_collect_regset.
3900 (supply_fpregset, fill_fpregset): Call regcache_supply/
3901 _collect_regset instead of s390_native_supply/_collect.
3902 (fetch_regset, store_regset): Likewise. Also change the last
3903 parameter to a regset instead of a regmap.
3904 (s390_linux_fetch_inferior_registers)
3905 (390_linux_store_inferior_registers): Adjust last parameter in
3906 calls to fetch_regset and store_regset.
3907 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3908 (s390_gregmap): ... this. Also make static const and convert to
3909 regcache_map_entry format.
3910 (s390x_regmap_gregset): Delete.
3911 (s390_regmap_fpregset): Rename to...
3912 (s390_fpregmap): ... this. Make static const and convert to
3913 regcache_map_entry format.
3914 (s390_regmap_upper, s390_regmap_last_break)
3915 (s390x_regmap_last_break, s390_regmap_system_call)
3916 (s390_regmap_tdb): Likewise.
3917 (s390_supply_regset, s390_collect_regset): Remove functions.
3918 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3919 s390_supply_regset.
3920 (s390_gregset, s390_fpregset, s390_upper_regset)
3921 (s390_last_break_regset, s390x_last_break_regset)
3922 (s390_system_call_regset, s390_tdb_regset): Make global and
3923 replace s390_supply/_collect_regset by regcache_supply/
3924 _collect_regset.
3925 (s390x_gregset): Delete.
3926 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3927 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3928 (s390_regmap_fpregset, s390_regmap_last_break)
3929 (s390x_regmap_last_break, s390_regmap_system_call)
3930 (s390_regmap_tdb): Delete global variable declarations.
3931 (s390_gregset, s390_fpregset, s390_last_break_regset)
3932 (s390x_last_break_regset, s390_system_call_regset)
3933 (s390_tdb_regset): New global variable declarations.
3934
0b309272
AA
39352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3936
3937 * regcache.c: Include "regset.h".
3938 (regcache_transfer_regset): New local function.
3939 (regcache_supply_regset, regcache_collect_regset): New functions.
3940 * regcache.h (struct regcache_map_entry): New structure.
3941 (REGCACHE_MAP_SKIP): New enum value.
3942 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3943
7fefa8d7
AA
39442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3945
3946 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3947 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3948 (ppc_linux_collect_gregset ): Likewise.
3949 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3950 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3951 (ppc_collect_vrregset): Likewise.
3952 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3953 Likewise.
3954
96c4f946
YQ
39552014-08-07 Yao Qi <yao@codesourcery.com>
3956
3957 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3958 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3959 * remote.c (remote_read_bytes): Likewise.
3960
fffbe6a8
YQ
39612014-08-07 Yao Qi <yao@codesourcery.com>
3962
3963 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3964
5ee8a82c
YQ
39652014-08-07 Yao Qi <yao@codesourcery.com>
3966
3967 PR remote/17230
3968 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3969 TARGET_XFER_OK instead of 0.
3970
bb974a24
GB
39712014-08-07 Gary Benson <gbenson@redhat.com>
3972
3973 * common/common-defs.h: Include errno.h.
3974 * defs.h: Do not include errno.h.
3975 * ada-typeprint.c: Likewise.
3976 * c-typeprint.c: Likewise.
3977 * core-regset.c: Likewise.
3978 * corefile.c: Likewise.
3979 * corelow.c: Likewise.
3980 * event-loop.c: Likewise.
3981 * f-typeprint.c: Likewise.
3982 * gnu-nat.c: Likewise.
3983 * go32-nat.c: Likewise.
3984 * i386gnu-nat.c: Likewise.
3985 * m2-typeprint.c: Likewise.
3986 * nat/linux-btrace.c: Likewise.
3987 * p-typeprint.c: Likewise.
3988 * procfs.c: Likewise.
3989 * remote-sim.c: Likewise.
3990 * rs6000-nat.c: Likewise.
3991 * target.c: Likewise.
3992 * typeprint.c: Likewise.
3993 * ui-file.c: Likewise.
3994 * valops.c: Likewise.
3995 * valprint.c: Likewise.
3996
6d3d12eb
GB
39972014-08-07 Gary Benson <gbenson@redhat.com>
3998
3999 * common/common-defs.h: Include string.h.
4000 * aarch64-tdep.c: Do not include string.h.
4001 * ada-exp.y: Likewise.
4002 * ada-lang.c: Likewise.
4003 * ada-lex.l: Likewise.
4004 * ada-typeprint.c: Likewise.
4005 * ada-valprint.c: Likewise.
4006 * aix-thread.c: Likewise.
4007 * alpha-linux-tdep.c: Likewise.
4008 * alpha-mdebug-tdep.c: Likewise.
4009 * alpha-nat.c: Likewise.
4010 * alpha-osf1-tdep.c: Likewise.
4011 * alpha-tdep.c: Likewise.
4012 * alphanbsd-tdep.c: Likewise.
4013 * amd64-dicos-tdep.c: Likewise.
4014 * amd64-linux-tdep.c: Likewise.
4015 * amd64-nat.c: Likewise.
4016 * amd64-sol2-tdep.c: Likewise.
4017 * amd64fbsd-tdep.c: Likewise.
4018 * amd64obsd-tdep.c: Likewise.
4019 * arch-utils.c: Likewise.
4020 * arm-linux-nat.c: Likewise.
4021 * arm-linux-tdep.c: Likewise.
4022 * arm-tdep.c: Likewise.
4023 * arm-wince-tdep.c: Likewise.
4024 * armbsd-tdep.c: Likewise.
4025 * armnbsd-nat.c: Likewise.
4026 * armnbsd-tdep.c: Likewise.
4027 * armobsd-tdep.c: Likewise.
4028 * avr-tdep.c: Likewise.
4029 * ax-gdb.c: Likewise.
4030 * ax-general.c: Likewise.
4031 * bcache.c: Likewise.
4032 * bfin-tdep.c: Likewise.
4033 * breakpoint.c: Likewise.
4034 * build-id.c: Likewise.
4035 * buildsym.c: Likewise.
4036 * c-exp.y: Likewise.
4037 * c-lang.c: Likewise.
4038 * c-typeprint.c: Likewise.
4039 * c-valprint.c: Likewise.
4040 * charset.c: Likewise.
4041 * cli-out.c: Likewise.
4042 * cli/cli-cmds.c: Likewise.
4043 * cli/cli-decode.c: Likewise.
4044 * cli/cli-dump.c: Likewise.
4045 * cli/cli-interp.c: Likewise.
4046 * cli/cli-logging.c: Likewise.
4047 * cli/cli-script.c: Likewise.
4048 * cli/cli-setshow.c: Likewise.
4049 * cli/cli-utils.c: Likewise.
4050 * coffread.c: Likewise.
4051 * common/agent.c: Likewise.
4052 * common/buffer.c: Likewise.
4053 * common/buffer.h: Likewise.
4054 * common/common-utils.c: Likewise.
4055 * common/filestuff.c: Likewise.
4056 * common/filestuff.c: Likewise.
4057 * common/format.c: Likewise.
4058 * common/print-utils.c: Likewise.
4059 * common/rsp-low.c: Likewise.
4060 * common/signals.c: Likewise.
4061 * common/vec.h: Likewise.
4062 * common/xml-utils.c: Likewise.
4063 * core-regset.c: Likewise.
4064 * corefile.c: Likewise.
4065 * corelow.c: Likewise.
4066 * cp-abi.c: Likewise.
4067 * cp-name-parser.y: Likewise.
4068 * cp-support.c: Likewise.
4069 * cp-valprint.c: Likewise.
4070 * cris-tdep.c: Likewise.
4071 * d-exp.y: Likewise.
4072 * darwin-nat.c: Likewise.
4073 * dbxread.c: Likewise.
4074 * dcache.c: Likewise.
4075 * demangle.c: Likewise.
4076 * dicos-tdep.c: Likewise.
4077 * disasm.c: Likewise.
4078 * doublest.c: Likewise.
4079 * dsrec.c: Likewise.
4080 * dummy-frame.c: Likewise.
4081 * dwarf2-frame.c: Likewise.
4082 * dwarf2loc.c: Likewise.
4083 * dwarf2read.c: Likewise.
4084 * elfread.c: Likewise.
4085 * environ.c: Likewise.
4086 * eval.c: Likewise.
4087 * event-loop.c: Likewise.
4088 * exceptions.c: Likewise.
4089 * exec.c: Likewise.
4090 * expprint.c: Likewise.
4091 * f-exp.y: Likewise.
4092 * f-lang.c: Likewise.
4093 * f-typeprint.c: Likewise.
4094 * f-valprint.c: Likewise.
4095 * fbsd-nat.c: Likewise.
4096 * findcmd.c: Likewise.
4097 * findvar.c: Likewise.
4098 * fork-child.c: Likewise.
4099 * frame.c: Likewise.
4100 * frv-linux-tdep.c: Likewise.
4101 * frv-tdep.c: Likewise.
4102 * gdb.c: Likewise.
4103 * gdb_bfd.c: Likewise.
4104 * gdbarch.c: Likewise.
4105 * gdbarch.sh: Likewise.
4106 * gdbtypes.c: Likewise.
4107 * gnu-nat.c: Likewise.
4108 * gnu-v2-abi.c: Likewise.
4109 * gnu-v3-abi.c: Likewise.
4110 * go-exp.y: Likewise.
4111 * go-lang.c: Likewise.
4112 * go32-nat.c: Likewise.
4113 * guile/guile.c: Likewise.
4114 * guile/scm-auto-load.c: Likewise.
4115 * hppa-hpux-tdep.c: Likewise.
4116 * hppa-linux-nat.c: Likewise.
4117 * hppanbsd-tdep.c: Likewise.
4118 * hppaobsd-tdep.c: Likewise.
4119 * i386-cygwin-tdep.c: Likewise.
4120 * i386-dicos-tdep.c: Likewise.
4121 * i386-linux-tdep.c: Likewise.
4122 * i386-nto-tdep.c: Likewise.
4123 * i386-sol2-tdep.c: Likewise.
4124 * i386-tdep.c: Likewise.
4125 * i386bsd-tdep.c: Likewise.
4126 * i386gnu-nat.c: Likewise.
4127 * i386nbsd-tdep.c: Likewise.
4128 * i386obsd-tdep.c: Likewise.
4129 * i387-tdep.c: Likewise.
4130 * ia64-libunwind-tdep.c: Likewise.
4131 * ia64-linux-nat.c: Likewise.
4132 * inf-child.c: Likewise.
4133 * inf-ptrace.c: Likewise.
4134 * inf-ttrace.c: Likewise.
4135 * infcall.c: Likewise.
4136 * infcmd.c: Likewise.
4137 * inflow.c: Likewise.
4138 * infrun.c: Likewise.
4139 * interps.c: Likewise.
4140 * iq2000-tdep.c: Likewise.
4141 * irix5-nat.c: Likewise.
4142 * jv-exp.y: Likewise.
4143 * jv-lang.c: Likewise.
4144 * jv-typeprint.c: Likewise.
4145 * jv-valprint.c: Likewise.
4146 * language.c: Likewise.
4147 * linux-fork.c: Likewise.
4148 * linux-nat.c: Likewise.
4149 * lm32-tdep.c: Likewise.
4150 * m2-exp.y: Likewise.
4151 * m2-typeprint.c: Likewise.
4152 * m32c-tdep.c: Likewise.
4153 * m32r-linux-nat.c: Likewise.
4154 * m32r-linux-tdep.c: Likewise.
4155 * m32r-rom.c: Likewise.
4156 * m32r-tdep.c: Likewise.
4157 * m68hc11-tdep.c: Likewise.
4158 * m68k-tdep.c: Likewise.
4159 * m68kbsd-tdep.c: Likewise.
4160 * m68klinux-nat.c: Likewise.
4161 * m68klinux-tdep.c: Likewise.
4162 * m88k-tdep.c: Likewise.
4163 * machoread.c: Likewise.
4164 * macrocmd.c: Likewise.
4165 * main.c: Likewise.
4166 * mdebugread.c: Likewise.
4167 * mem-break.c: Likewise.
4168 * memattr.c: Likewise.
4169 * memory-map.c: Likewise.
4170 * mep-tdep.c: Likewise.
4171 * mi/mi-cmd-break.c: Likewise.
4172 * mi/mi-cmd-disas.c: Likewise.
4173 * mi/mi-cmd-env.c: Likewise.
4174 * mi/mi-cmd-stack.c: Likewise.
4175 * mi/mi-cmd-var.c: Likewise.
4176 * mi/mi-cmds.c: Likewise.
4177 * mi/mi-console.c: Likewise.
4178 * mi/mi-getopt.c: Likewise.
4179 * mi/mi-interp.c: Likewise.
4180 * mi/mi-main.c: Likewise.
4181 * mi/mi-parse.c: Likewise.
4182 * microblaze-rom.c: Likewise.
4183 * microblaze-tdep.c: Likewise.
4184 * mingw-hdep.c: Likewise.
4185 * minidebug.c: Likewise.
4186 * minsyms.c: Likewise.
4187 * mips-irix-tdep.c: Likewise.
4188 * mips-linux-tdep.c: Likewise.
4189 * mips-tdep.c: Likewise.
4190 * mips64obsd-tdep.c: Likewise.
4191 * mipsnbsd-tdep.c: Likewise.
4192 * mipsread.c: Likewise.
4193 * mn10300-linux-tdep.c: Likewise.
4194 * mn10300-tdep.c: Likewise.
4195 * monitor.c: Likewise.
4196 * moxie-tdep.c: Likewise.
4197 * mt-tdep.c: Likewise.
4198 * nat/linux-btrace.c: Likewise.
4199 * nat/linux-osdata.c: Likewise.
4200 * nat/linux-procfs.c: Likewise.
4201 * nat/linux-ptrace.c: Likewise.
4202 * nat/linux-waitpid.c: Likewise.
4203 * nbsd-tdep.c: Likewise.
4204 * nios2-linux-tdep.c: Likewise.
4205 * nto-procfs.c: Likewise.
4206 * nto-tdep.c: Likewise.
4207 * objc-lang.c: Likewise.
4208 * objfiles.c: Likewise.
4209 * opencl-lang.c: Likewise.
4210 * osabi.c: Likewise.
4211 * osdata.c: Likewise.
4212 * p-exp.y: Likewise.
4213 * p-lang.c: Likewise.
4214 * p-typeprint.c: Likewise.
4215 * parse.c: Likewise.
4216 * posix-hdep.c: Likewise.
4217 * ppc-linux-nat.c: Likewise.
4218 * ppc-sysv-tdep.c: Likewise.
4219 * ppcfbsd-tdep.c: Likewise.
4220 * ppcnbsd-tdep.c: Likewise.
4221 * ppcobsd-tdep.c: Likewise.
4222 * printcmd.c: Likewise.
4223 * procfs.c: Likewise.
4224 * prologue-value.c: Likewise.
4225 * python/py-auto-load.c: Likewise.
4226 * python/py-gdb-readline.c: Likewise.
4227 * ravenscar-thread.c: Likewise.
4228 * regcache.c: Likewise.
4229 * registry.c: Likewise.
4230 * remote-fileio.c: Likewise.
4231 * remote-m32r-sdi.c: Likewise.
4232 * remote-mips.c: Likewise.
4233 * remote-notif.c: Likewise.
4234 * remote-sim.c: Likewise.
4235 * remote.c: Likewise.
4236 * reverse.c: Likewise.
4237 * rs6000-aix-tdep.c: Likewise.
4238 * ser-base.c: Likewise.
4239 * ser-go32.c: Likewise.
4240 * ser-mingw.c: Likewise.
4241 * ser-pipe.c: Likewise.
4242 * ser-tcp.c: Likewise.
4243 * ser-unix.c: Likewise.
4244 * serial.c: Likewise.
4245 * sh-tdep.c: Likewise.
4246 * sh64-tdep.c: Likewise.
4247 * shnbsd-tdep.c: Likewise.
4248 * skip.c: Likewise.
4249 * sol-thread.c: Likewise.
4250 * solib-dsbt.c: Likewise.
4251 * solib-frv.c: Likewise.
4252 * solib-osf.c: Likewise.
4253 * solib-som.c: Likewise.
4254 * solib-spu.c: Likewise.
4255 * solib-target.c: Likewise.
4256 * solib.c: Likewise.
4257 * somread.c: Likewise.
4258 * source.c: Likewise.
4259 * sparc-nat.c: Likewise.
4260 * sparc-sol2-tdep.c: Likewise.
4261 * sparc-tdep.c: Likewise.
4262 * sparc64-tdep.c: Likewise.
4263 * sparc64fbsd-tdep.c: Likewise.
4264 * sparc64nbsd-tdep.c: Likewise.
4265 * sparcnbsd-tdep.c: Likewise.
4266 * spu-linux-nat.c: Likewise.
4267 * spu-multiarch.c: Likewise.
4268 * spu-tdep.c: Likewise.
4269 * stabsread.c: Likewise.
4270 * stack.c: Likewise.
4271 * std-regs.c: Likewise.
4272 * symfile.c: Likewise.
4273 * symmisc.c: Likewise.
4274 * symtab.c: Likewise.
4275 * target.c: Likewise.
4276 * thread.c: Likewise.
4277 * tilegx-linux-nat.c: Likewise.
4278 * tilegx-tdep.c: Likewise.
4279 * top.c: Likewise.
4280 * tracepoint.c: Likewise.
4281 * tui/tui-command.c: Likewise.
4282 * tui/tui-data.c: Likewise.
4283 * tui/tui-disasm.c: Likewise.
4284 * tui/tui-file.c: Likewise.
4285 * tui/tui-layout.c: Likewise.
4286 * tui/tui-out.c: Likewise.
4287 * tui/tui-regs.c: Likewise.
4288 * tui/tui-source.c: Likewise.
4289 * tui/tui-stack.c: Likewise.
4290 * tui/tui-win.c: Likewise.
4291 * tui/tui-windata.c: Likewise.
4292 * tui/tui-winsource.c: Likewise.
4293 * typeprint.c: Likewise.
4294 * ui-file.c: Likewise.
4295 * ui-out.c: Likewise.
4296 * user-regs.c: Likewise.
4297 * utils.c: Likewise.
4298 * v850-tdep.c: Likewise.
4299 * valarith.c: Likewise.
4300 * valops.c: Likewise.
4301 * valprint.c: Likewise.
4302 * value.c: Likewise.
4303 * varobj.c: Likewise.
4304 * vax-tdep.c: Likewise.
4305 * vaxnbsd-tdep.c: Likewise.
4306 * vaxobsd-tdep.c: Likewise.
4307 * windows-nat.c: Likewise.
4308 * xcoffread.c: Likewise.
4309 * xml-support.c: Likewise.
4310 * xstormy16-tdep.c: Likewise.
4311 * xtensa-linux-nat.c: Likewise.
4312
dccbb609
GB
43132014-08-07 Gary Benson <gbenson@redhat.com>
4314
4315 * common/common-defs.h: Include gdb_assert.h.
4316 * aarch64-tdep.c: Do not include gdb_assert.h.
4317 * addrmap.c: Likewise.
4318 * aix-thread.c: Likewise.
4319 * alpha-linux-tdep.c: Likewise.
4320 * alpha-mdebug-tdep.c: Likewise.
4321 * alphanbsd-tdep.c: Likewise.
4322 * amd64-nat.c: Likewise.
4323 * amd64-tdep.c: Likewise.
4324 * amd64bsd-nat.c: Likewise.
4325 * amd64fbsd-nat.c: Likewise.
4326 * amd64fbsd-tdep.c: Likewise.
4327 * amd64nbsd-nat.c: Likewise.
4328 * amd64nbsd-tdep.c: Likewise.
4329 * amd64obsd-nat.c: Likewise.
4330 * amd64obsd-tdep.c: Likewise.
4331 * arch-utils.c: Likewise.
4332 * arm-tdep.c: Likewise.
4333 * armbsd-tdep.c: Likewise.
4334 * auxv.c: Likewise.
4335 * bcache.c: Likewise.
4336 * bfin-tdep.c: Likewise.
4337 * blockframe.c: Likewise.
4338 * breakpoint.c: Likewise.
4339 * bsd-kvm.c: Likewise.
4340 * bsd-uthread.c: Likewise.
4341 * buildsym.c: Likewise.
4342 * c-exp.y: Likewise.
4343 * c-lang.c: Likewise.
4344 * charset.c: Likewise.
4345 * cleanups.c: Likewise.
4346 * cli-out.c: Likewise.
4347 * cli/cli-decode.c: Likewise.
4348 * cli/cli-dump.c: Likewise.
4349 * cli/cli-logging.c: Likewise.
4350 * cli/cli-script.c: Likewise.
4351 * cli/cli-utils.c: Likewise.
4352 * coffread.c: Likewise.
4353 * common/common-utils.c: Likewise.
4354 * common/queue.h: Likewise.
4355 * common/signals.c: Likewise.
4356 * common/vec.h: Likewise.
4357 * complaints.c: Likewise.
4358 * completer.c: Likewise.
4359 * corelow.c: Likewise.
4360 * cp-abi.c: Likewise.
4361 * cp-name-parser.y: Likewise.
4362 * cp-namespace.c: Likewise.
4363 * cp-support.c: Likewise.
4364 * cris-tdep.c: Likewise.
4365 * dbxread.c: Likewise.
4366 * dictionary.c: Likewise.
4367 * doublest.c: Likewise.
4368 * dsrec.c: Likewise.
4369 * dummy-frame.c: Likewise.
4370 * dwarf2-frame-tailcall.c: Likewise.
4371 * dwarf2-frame.c: Likewise.
4372 * dwarf2expr.c: Likewise.
4373 * dwarf2loc.c: Likewise.
4374 * dwarf2read.c: Likewise.
4375 * eval.c: Likewise.
4376 * event-loop.c: Likewise.
4377 * exceptions.c: Likewise.
4378 * expprint.c: Likewise.
4379 * f-valprint.c: Likewise.
4380 * fbsd-nat.c: Likewise.
4381 * findvar.c: Likewise.
4382 * frame-unwind.c: Likewise.
4383 * frame.c: Likewise.
4384 * frv-tdep.c: Likewise.
4385 * gcore.c: Likewise.
4386 * gdb-dlfcn.c: Likewise.
4387 * gdb_bfd.c: Likewise.
4388 * gdbarch.c: Likewise.
4389 * gdbarch.sh: Likewise.
4390 * gdbtypes.c: Likewise.
4391 * gnu-nat.c: Likewise.
4392 * gnu-v3-abi.c: Likewise.
4393 * go-lang.c: Likewise.
4394 * guile/scm-exception.c: Likewise.
4395 * guile/scm-gsmob.c: Likewise.
4396 * guile/scm-lazy-string.c: Likewise.
4397 * guile/scm-math.c: Likewise.
4398 * guile/scm-pretty-print.c: Likewise.
4399 * guile/scm-safe-call.c: Likewise.
4400 * guile/scm-utils.c: Likewise.
4401 * guile/scm-value.c: Likewise.
4402 * h8300-tdep.c: Likewise.
4403 * hppa-hpux-nat.c: Likewise.
4404 * hppa-tdep.c: Likewise.
4405 * hppanbsd-tdep.c: Likewise.
4406 * hppaobsd-tdep.c: Likewise.
4407 * i386-darwin-nat.c: Likewise.
4408 * i386-darwin-tdep.c: Likewise.
4409 * i386-nto-tdep.c: Likewise.
4410 * i386-tdep.c: Likewise.
4411 * i386bsd-nat.c: Likewise.
4412 * i386fbsd-tdep.c: Likewise.
4413 * i386gnu-nat.c: Likewise.
4414 * i386nbsd-tdep.c: Likewise.
4415 * i386obsd-tdep.c: Likewise.
4416 * i387-tdep.c: Likewise.
4417 * ia64-libunwind-tdep.c: Likewise.
4418 * ia64-tdep.c: Likewise.
4419 * inf-ptrace.c: Likewise.
4420 * inf-ttrace.c: Likewise.
4421 * infcall.c: Likewise.
4422 * infcmd.c: Likewise.
4423 * infrun.c: Likewise.
4424 * inline-frame.c: Likewise.
4425 * interps.c: Likewise.
4426 * jv-lang.c: Likewise.
4427 * jv-typeprint.c: Likewise.
4428 * linux-fork.c: Likewise.
4429 * linux-nat.c: Likewise.
4430 * linux-thread-db.c: Likewise.
4431 * m32c-tdep.c: Likewise.
4432 * m32r-linux-nat.c: Likewise.
4433 * m32r-tdep.c: Likewise.
4434 * m68k-tdep.c: Likewise.
4435 * m68kbsd-nat.c: Likewise.
4436 * m68kbsd-tdep.c: Likewise.
4437 * m88k-tdep.c: Likewise.
4438 * machoread.c: Likewise.
4439 * macroexp.c: Likewise.
4440 * macrotab.c: Likewise.
4441 * maint.c: Likewise.
4442 * mdebugread.c: Likewise.
4443 * memory-map.c: Likewise.
4444 * mep-tdep.c: Likewise.
4445 * mi/mi-common.c: Likewise.
4446 * microblaze-tdep.c: Likewise.
4447 * mingw-hdep.c: Likewise.
4448 * mips-linux-nat.c: Likewise.
4449 * mips-linux-tdep.c: Likewise.
4450 * mips-tdep.c: Likewise.
4451 * mips64obsd-tdep.c: Likewise.
4452 * mipsnbsd-tdep.c: Likewise.
4453 * mn10300-linux-tdep.c: Likewise.
4454 * mn10300-tdep.c: Likewise.
4455 * moxie-tdep.c: Likewise.
4456 * mt-tdep.c: Likewise.
4457 * nat/linux-btrace.c: Likewise.
4458 * nat/linux-osdata.c: Likewise.
4459 * nat/linux-ptrace.c: Likewise.
4460 * nat/mips-linux-watch.c: Likewise.
4461 * nios2-linux-tdep.c: Likewise.
4462 * nios2-tdep.c: Likewise.
4463 * objc-lang.c: Likewise.
4464 * objfiles.c: Likewise.
4465 * obsd-nat.c: Likewise.
4466 * opencl-lang.c: Likewise.
4467 * osabi.c: Likewise.
4468 * parse.c: Likewise.
4469 * ppc-linux-nat.c: Likewise.
4470 * ppc-sysv-tdep.c: Likewise.
4471 * ppcfbsd-nat.c: Likewise.
4472 * ppcfbsd-tdep.c: Likewise.
4473 * ppcnbsd-nat.c: Likewise.
4474 * ppcnbsd-tdep.c: Likewise.
4475 * ppcobsd-nat.c: Likewise.
4476 * ppcobsd-tdep.c: Likewise.
4477 * printcmd.c: Likewise.
4478 * procfs.c: Likewise.
4479 * prologue-value.c: Likewise.
4480 * psymtab.c: Likewise.
4481 * python/py-lazy-string.c: Likewise.
4482 * python/py-value.c: Likewise.
4483 * regcache.c: Likewise.
4484 * reggroups.c: Likewise.
4485 * registry.c: Likewise.
4486 * remote-sim.c: Likewise.
4487 * remote.c: Likewise.
4488 * rs6000-aix-tdep.c: Likewise.
4489 * rs6000-tdep.c: Likewise.
4490 * s390-linux-tdep.c: Likewise.
4491 * score-tdep.c: Likewise.
4492 * ser-base.c: Likewise.
4493 * ser-mingw.c: Likewise.
4494 * sh-tdep.c: Likewise.
4495 * sh64-tdep.c: Likewise.
4496 * solib-darwin.c: Likewise.
4497 * solib-spu.c: Likewise.
4498 * solib-svr4.c: Likewise.
4499 * source.c: Likewise.
4500 * sparc-nat.c: Likewise.
4501 * sparc-sol2-tdep.c: Likewise.
4502 * sparc-tdep.c: Likewise.
4503 * sparc64-sol2-tdep.c: Likewise.
4504 * sparc64-tdep.c: Likewise.
4505 * sparc64fbsd-tdep.c: Likewise.
4506 * sparc64nbsd-tdep.c: Likewise.
4507 * sparc64obsd-tdep.c: Likewise.
4508 * sparcnbsd-tdep.c: Likewise.
4509 * sparcobsd-tdep.c: Likewise.
4510 * spu-multiarch.c: Likewise.
4511 * spu-tdep.c: Likewise.
4512 * stabsread.c: Likewise.
4513 * stack.c: Likewise.
4514 * symfile.c: Likewise.
4515 * symtab.c: Likewise.
4516 * target-descriptions.c: Likewise.
4517 * target-memory.c: Likewise.
4518 * target.c: Likewise.
4519 * tic6x-linux-tdep.c: Likewise.
4520 * tic6x-tdep.c: Likewise.
4521 * tilegx-linux-nat.c: Likewise.
4522 * tilegx-tdep.c: Likewise.
4523 * top.c: Likewise.
4524 * tramp-frame.c: Likewise.
4525 * tui/tui-out.c: Likewise.
4526 * tui/tui-winsource.c: Likewise.
4527 * ui-out.c: Likewise.
4528 * user-regs.c: Likewise.
4529 * utils.c: Likewise.
4530 * v850-tdep.c: Likewise.
4531 * valops.c: Likewise.
4532 * value.c: Likewise.
4533 * varobj.c: Likewise.
4534 * vax-nat.c: Likewise.
4535 * xml-syscall.c: Likewise.
4536 * xml-tdesc.c: Likewise.
4537 * xstormy16-tdep.c: Likewise.
4538 * xtensa-linux-nat.c: Likewise.
4539 * xtensa-tdep.c: Likewise.
4540
e76df0d0
GB
45412014-08-07 Gary Benson <gbenson@redhat.com>
4542
4543 * common/common-defs.h: Include common-utils.h.
4544 * defs.h: Do not include common-utils.h.
4545 * common/gdb_assert.h: Likewise.
4546 * darwin-nat.h: Likewise.
4547 * nat/linux-btrace.c: Likewise.
4548 * target/waitstatus.h: Likewise.
4549
4cb9c816
GB
45502014-08-07 Gary Benson <gbenson@redhat.com>
4551
4552 * common/common-defs.h: Include ptid.h.
4553 * defs.h: Do not include ptid.h.
4554 * inferior.h: Likewise.
4555 * infrun.h: Likewise.
4556 * nat/linux-btrace.h: Likewise.
4557 * nat/linux-osdata.h: Likewise.
4558 * target/waitstatus.h: Likewise.
4559
3995eeee
GB
45602014-08-07 Gary Benson <gbenson@redhat.com>
4561
4562 * common/common-defs.h: Include gdb_locale.h.
4563 * defs.h: Do not include gdb_locale.h.
4564
cb9f1a9b
GB
45652014-08-07 Gary Benson <gbenson@redhat.com>
4566
4567 * common/common-defs.h: Include gdb/signals.h.
4568 * defs.h: Do not include gdb/signals.h.
4569
a5fceff8
GB
45702014-08-07 Gary Benson <gbenson@redhat.com>
4571
4572 * common/common-defs.h: Include pathmax.h.
4573 * defs.h: Do not include pathmax.h.
4574
b9391142
GB
45752014-08-07 Gary Benson <gbenson@redhat.com>
4576
4577 * common/common-defs.h: Include libiberty.h.
4578 * defs.h: Do not include libiberty.h.
4579 * common/queue.h: Likewise.
4580 * cp-name-parser.y: Likewise.
4581 * mi/mi-cmd-catch.c: Likewise.
4582 * python/python.c: Likewise.
4583
0e443c87
GB
45842014-08-07 Gary Benson <gbenson@redhat.com>
4585
4586 * common/common-defs.h: Include ansidecl.h.
4587 * defs.h: Do not include ansidecl.h.
4588 * common/buffer.h: Likewise.
4589 * common/common-utils.h: Likewise.
4590
8ebb3f56
GB
45912014-08-07 Gary Benson <gbenson@redhat.com>
4592
4593 * common/common-defs.h: Include stddef.h.
4594 * defs.h: Do not include stddef.h.
4595 * common/common-utils.h: Likewise.
4596 * amd64fbsd-nat.c: Likewise.
4597 * bcache.c: Likewise.
4598 * charset.c: Likewise.
4599 * common/buffer.h: Likewise.
4600 * common/vec.h: Likewise.
4601 * i386bsd-nat.c: Likewise.
4602 * nat/linux-btrace.h: Likewise.
4603 * ppcfbsd-nat.c: Likewise.
4604 * ppcnbsd-tdep.h: Likewise.
4605 * ppcobsd-nat.c: Likewise.
4606 * ppcobsd-tdep.h: Likewise.
4607 * python/py-gdb-readline.c: Likewise.
4608
8980bdf6
GB
46092014-08-07 Gary Benson <gbenson@redhat.com>
4610
4611 * common/common-defs.h: Include stdarg.h.
4612 * defs.h: Do not include stdarg.h.
4613 * ada-lang.c: Likewise.
4614 * common/common-utils.h: Likewise.
4615 * guile/scm-string.c: Likewise.
4616 * guile/scm-utils.c: Likewise.
4617 * m32c-tdep.c: Likewise.
4618
d7096f71
GB
46192014-08-07 Gary Benson <gbenson@redhat.com>
4620
4621 * common/common-defs.h: Include stdlib.h.
4622 * defs.h: Do not include stdlib.h.
4623 * addrmap.c: Likewise.
4624 * bcache.c: Likewise.
4625 * common/buffer.c: Likewise.
4626 * common/common-utils.c: Likewise.
4627 * cp-name-parser.y: Likewise.
4628 * go32-nat.c: Likewise.
4629 * mn10300-linux-tdep.c: Likewise.
4630 * nat/linux-osdata.c: Likewise.
4631 * tui/tui.c: Likewise.
4632 * windows-nat.c: Likewise.
4633
d02f550d
GB
46342014-08-07 Gary Benson <gbenson@redhat.com>
4635
4636 * common/common-defs.h: Include stdio.h.
4637 * defs.h: Do not include stdio.h.
4638 * ada-lang.c: Likewise.
4639 * common/buffer.c: Likewise.
4640 * common/common-utils.c: Likewise.
4641 * cp-name-parser.y: Likewise.
4642 * gnu-nat.c: Likewise.
4643 * go32-nat.c: Likewise.
4644 * i386gnu-nat.c: Likewise.
4645 * proc-api.c: Likewise.
4646 * proc-events.c: Likewise.
4647 * proc-flags.c: Likewise.
4648 * proc-why.c: Likewise.
4649 * python/python-internal.h: Likewise.
4650 * target-memory.c: Likewise.
4651 * tui/tui-io.c: Likewise.
4652 * tui/tui.c: Likewise.
4653
b6d7a4bf
SM
46542014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4655
4656 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4657 (scan_dyntag_auxv): Same.
4658
af19829b
YQ
46592014-08-06 Yao Qi <yao@codesourcery.com>
4660
4661 * amd64-linux-nat.c: Remove duplicated include
4662 "x86-linux-nat.h".
4663 * i386-linux-nat.c: Likewise.
4664
8e07a239
YQ
46652014-08-06 Yao Qi <yao@codesourcery.com>
4666
4667 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4668 operand" with "Special opcode" in comments.
4669
7bfe8241
GB
46702014-08-05 Gary Benson <gbenson@redhat.com>
4671
4672 * interps.c (initialize_interps): Remove prototype.
4673 (interpreter_initialized): Remove static global.
4674 (interp_add): Do not call initialize_interps.
4675 (initialize_interps): Remove function.
4676
d6c95504
GB
46772014-08-05 Gary Benson <gbenson@redhat.com>
4678
4679 * utils.c (vwarning): Remove spurious va_end.
4680
241fd515
AM
46812014-08-05 Alan Modra <amodra@gmail.com>
4682
4683 * charset.c (convert_between_encodings): Cast result of obstack_base.
4684 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4685 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4686 (read_unwind_info): Use size_t for some locals.
4687 * jit.c (finalize_symtab): Likewise.
4688 * utils.c (hashtab_obstack_allocate): Likewise.
4689 * symmisc.c (print_objfile_statistics): Update format strings.
4690
dc304a94
JK
46912014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4692
4693 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4694 (Changes in GDB 7.8): ... here.
4695
3cecbbbe
TT
46962014-08-04 Tom Tromey <tromey@redhat.com>
4697
4698 * target.c (set_targetdebug): New function.
4699 (initialize_targets): Pass set_targetdebug when creating "set
4700 debug target".
4701
6908c509
JB
47022014-08-01 Joel Brobecker <brobecker@adacore.com>
4703
4704 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4705 if detecting a variable-sized field that is not the last field.
4706 Fix struct type length computation.
4707
53e8f97d
JB
47082014-08-01 Joel Brobecker <brobecker@adacore.com>
4709
4710 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4711 Add debug trace.
4712
e068c55d
JB
47132014-08-01 Joel Brobecker <brobecker@adacore.com>
4714
4715 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4716 Remove "+ 8" offset in computation of CHAIN_VMA.
4717
4d4ca2a1
DE
47182014-07-31 Doug Evans <dje@google.com>
4719
4720 * inflow.c (child_terminal_inferior): Add comment.
4721 (child_terminal_ours_for_output): Add comment.
4722 (child_terminal_ours): Add comment.
4723 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4724 (linux_nat_terminal_ours): Add comment.
4725
462f517e
GB
47262014-07-31 Gary Benson <gbenson@redhat.com>
4727
4728 * common/btrace-common.h: Do not include defs.h or server.h.
4729 * nat/mips-linux-watch.h: Likewise.
4730 * gdb-dlfcn.h: Do not include defs.h.
4731 * tracefile.h: Likewise.
4732
74228e77
RM
47332014-07-30 Roland McGrath <mcgrathr@google.com>
4734
4735 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4736
014f9477
TT
47372014-07-30 Tom Tromey <tromey@redhat.com>
4738
4739 * bsd-kvm.c (bsd_kvm_open): Constify.
4740 * corelow.c (core_open): Constify.
4741 * ctf.c (ctf_open): Constify.
4742 * dbug-rom.c (dbug_open): Constify.
4743 * exec.c (exec_open): Constify.
4744 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4745 * microblaze-rom.c (picobug_open): Constify.
4746 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4747 Constify.
4748 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4749 * record-btrace.c (record_btrace_open): Constify.
4750 * record-full.c (record_full_core_open_1, record_full_open_1)
4751 (record_full_open): Constify.
4752 * remote-m32r-sdi.c (m32r_open): Constify.
4753 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4754 (rockhopper_open, lsi_open): Constify.
4755 * remote-sim.c (gdbsim_open): Constify.
4756 * remote.c (remote_open, extended_remote_open, remote_open_1):
4757 Constify.
4758 * target.h (struct target_ops) <to_open>: Make "arg" const.
4759 * tracefile-tfile.c (tfile_open): Constify.
4760
e799154c
TT
47612014-07-30 Tom Tromey <tromey@redhat.com>
4762
4763 * breakpoint.c (map_breakpoint_numbers): Update.
4764 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4765 (get_number_const): New function.
4766 (get_number): Rewrite using get_number_const.
4767 (init_number_or_range): Make "string" const.
4768 (number_is_in_list): Make "list" const.
4769 * cli/cli-utils.h (get_number_const): Declare.
4770 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4771 (init_number_or_range, number_is_in_list): Update.
4772 * printcmd.c (map_display_numbers): Update.
4773 * value.c (value_from_history_ref): Constify.
4774 * value.h (value_from_history_ref): Update.
4775
5f08566b
TT
47762014-07-30 Tom Tromey <tromey@redhat.com>
4777
4778 * corefile.c (hook_type, call_extra_exec_file_hooks)
4779 (specify_exec_file_hook): Constify.
4780 * exec.c (exec_file_attach): Make "filename" const.
4781 * gdbcore.h (deprecated_exec_file_display_hook)
4782 (specify_exec_file_hook, exec_file_attach): Constify.
4783 * main.c (captured_main): Use catch_command_errors_const.
4784
8981c758
TT
47852014-07-30 Tom Tromey <tromey@redhat.com>
4786
4787 * target.c (open_target): New function.
4788 (add_target_with_completer, add_deprecated_target_alias): Use
4789 set_cmd_sfunc, set_cmd_context.
4790 (debug_to_open): Remove.
4791 (setup_target_debug): Update.
4792
a1c7835a
YQ
47932014-07-30 Yao Qi <yao@codesourcery.com>
4794
4795 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4796 comments.
4797 * parse.c (exp_iterate): Update comments.
4798
976411d6
GB
47992014-07-30 Gary Benson <gbenson@redhat.com>
4800
4801 * common/common-defs.h: New file.
4802 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4803 * defs.h: Include common-defs.h.
4804 Do not include config.h or build-gnulib/config.h.
4805
5d4848a4
GB
48062014-07-30 Gary Benson <gbenson@redhat.com>
4807
4808 * common/common-utils.h: Do not include config.h.
4809 * nat/linux-btrace.h: Likewise.
4810
d41f6d8e
GB
48112014-07-30 Gary Benson <gbenson@redhat.com>
4812
4813 * btrace.c: Include defs.h.
4814 * common/ptid.c: Include defs.h or server.h as appropriate.
4815 * nat/mips-linux-watch.c: Likewise.
4816
84202f9c
TT
48172014-07-29 Tom Tromey <tromey@redhat.com>
4818
4819 * target.c (target_is_pushed): Simplify.
4820
2530441c
JB
48212014-07-29 Joel Brobecker <brobecker@adacore.com>
4822
4823 GDB 7.8 released.
4824
7e09a223
YQ
48252014-07-29 Yao Qi <yao@codesourcery.com>
4826
4827 PR gdb/17206
4828 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4829
7ebdbe92
DE
48302014-07-28 Doug Evans <xdje42@gmail.com>
4831
4832 PR guile/17203
4833 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4834 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4835 parameters.
4836
f347ffc9
WN
48372014-07-28 Will Newton <will.newton@linaro.org>
4838
4839 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4840 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4841 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4842 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4843 (THUMB2_EABI_SYSCALL): Likewise.
4844 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4845 struct tramp_frame.
4846 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4847 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4848
37c5f1f7
DE
48492014-07-27 Doug Evans <xdje42@gmail.com>
4850
4851 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4852
0c3abbc7
DE
48532014-07-27 Doug Evans <xdje42@gmail.com>
4854
4855 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4856
e76c5d17
DE
48572014-07-26 Ludovic Courtès <ludo@gnu.org>
4858 Doug Evans <xdje42@gmail.com>
4859
4860 PR guile/17146
4861 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4862 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4863 * configure.ac: Try to use guild to compile an scm file, if it fails
4864 then disable guile support.
4865 * configure: Regenerate.
4866 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4867 GUILE_FILE_LIST.
4868 (GUILE_COMPILED_FILES): New variable.
4869 (GUILE_FILES) Update.
4870 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4871 (stamp-guile): Compile scm files.
4872 * guile/guile.c (boot_guile_support): New function.
4873 (standard_throw_args_p): New function.
4874 (print_standard_throw_error, print_throw_error): New functions.
4875 (handle_boot_error): New function.
4876 (initialize_scheme_side): Rewrite to call boot_guile_support.
4877 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4878 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4879
186fcde0
DE
48802014-07-26 Ludovic Courtès <ludo@gnu.org>
4881 Doug Evans <xdje42@gmail.com>
4882
4883 PR guile/17146
4884 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4885 * guile/lib/gdb/support.scm: New file.
4886 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4887 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4888 All uses updated.
4889 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4890 All uses updated.
4891 (%assert-type): Ditto, and renamed to assert-type.
4892 (%exception-print-style): Delete.
4893
4df42755
DE
48942014-07-26 Doug Evans <xdje42@gmail.com>
4895
4896 PR build/17105
4897 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4898 * configure: Regenerate.
4899 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4900 PYTHON_FILES.
4901 (PYTHON_FILES): New variable.
4902 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4903 (GUILE_FILES): New variable.
4904 (stamp-python, install-python, uninstall-python): Handle empty
4905 file list.
4906 (stamp-guile, install-guile, uninstall-guile): Ditto.
4907
ee7333ae
DE
49082014-07-26 Doug Evans <xdje42@gmail.com>
4909
4910 PR guile/17177
4911 * guile/lib/gdb.scm (pretty-printers): Export.
4912 (set-pretty-printers!): Export.
4913 * guile/lib/gdb/printing.scm (gdb module): Update.
4914 (prepend-pretty-printer!, append-pretty-printer!): Update.
4915 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4916 (pretty_printer_list_var): Delete.
4917 (pretty_printer_list): New static global.
4918 (gdbscm_pretty_printers): New function.
4919 (gdbscm_set_pretty_printers_x): New function.
4920 (ppscm_find_pretty_printer_from_gdb): Update.
4921 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4922 (gdbscm_initialize_pretty_printers): Update.
4923
74edf516
DE
49242014-07-26 Doug Evans <xdje42@gmail.com>
4925
4926 PR 17185
4927 * configure.ac: Add check for header gc/gc.h.
4928 Add check for function setenv.
4929 * configure: Regenerate.
4930 * config.in: Regenerate.
4931 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4932
d54398a7
MR
49332014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4934
4935 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4936 variation in gdbarch matching.
4937
ab16fce8
TT
49382014-07-25 Tom Tromey <tromey@redhat.com>
4939
4940 * exec.c (using_exec_ops): Remove.
4941 (exec_close_1): Update. Remove extraneous block, reindent.
4942 (add_target_sections): Use target_is_pushed.
4943
88056fbb
PA
49442014-07-25 Pedro Alves <palves@redhat.com>
4945
4946 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4947 * monitor.c (monitor_create_inferior): Likewise.
4948 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4949 * remote-sim.c (gdbsim_create_inferior): Likewise.
4950 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4951 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4952 * windows-nat.c (do_initial_windows_stuff): Likewise.
4953
70509625
PA
49542014-07-25 Pedro Alves <palves@redhat.com>
4955
4956 * NEWS: Mention signal passing and "signal" command changes.
4957 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4958 comment.
4959 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4960 call.
4961 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4962 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4963 (jump_command): Adjust clear_proceed_status call.
4964 (signal_command): Warn if other thread that are resumed have
4965 signals that will be delivered. Adjust clear_proceed_status call.
4966 (until_next_command, finish_command)
4967 (proceed_after_attach_callback, attach_command_post_wait)
4968 (attach_command): Adjust clear_proceed_status call.
4969 * infrun.c (proceed_after_vfork_done): Likewise.
4970 (proceed_after_attach_callback): Adjust comment.
4971 (clear_proceed_status_thread): Clear stop_signal if not in pass
4972 state.
4973 (clear_proceed_status_callback): Delete.
4974 (clear_proceed_status): New 'step' parameter. Only clear the
4975 proceed status of threads the command being prepared is about to
4976 resume.
4977 (proceed): If passed in an explicit signal, override stop_signal
4978 with it. Don't pass the last stop signal to the thread we're
4979 resuming.
4980 (init_wait_for_inferior): Adjust clear_proceed_status call.
4981 (switch_back_to_stepped_thread): Clear the signal if it should not
4982 be passed.
4983 * infrun.h (clear_proceed_status): New 'step' parameter.
4984 (user_visible_resume_ptid): Add comment.
4985 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4986 signal is in pass state.
4987 * remote.c (append_pending_thread_resumptions): Likewise.
4988 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4989
d8be2939
TT
49902014-07-25 Tom Tromey <tromey@redhat.com>
4991
4992 * target.h (target_stopped_data_address)
4993 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4994 parentheses.
4995
7d0d9d2b
PL
49962014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4997
4998 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4999 comments.
5000 (avr_pointer_to_address): Likewise.
5001
e9e7f724
TT
50022014-07-24 Tom Tromey <tromey@redhat.com>
5003
5004 * monitor.c (compile_pattern): Update.
5005 * target.h (struct target_ops) <to_shortname, to_longname,
5006 to_doc>: Now const.
5007
1947513d
TT
50082014-07-24 Tom Tromey <tromey@redhat.com>
5009
5010 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5011 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5012 (add_info_alias, add_com): Make "doc" const.
5013 (print_doc_line): Make "str" const.
5014 (delete_cmd): Update.
5015 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5016 (print_doc_line): Update.
5017 * cli/cli-script.c (document_command): Update.
5018 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5019 (add_com, add_info, add_info_alias): Update.
5020 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5021 * python/py-cmd.c (cmdpy_destroyer): Update.
5022
64e61d29
TT
50232014-07-24 Tom Tromey <tromey@redhat.com>
5024
5025 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5026 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5027 (help_cmd_list): Constify.
5028 (lookup_cmd): Update.
5029 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5030 const.
5031 (help_cmd_list, apropos_cmd): Update.
5032 * cli/cli-script.c (show_user): Update.
5033 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5034 * cli/cli-setshow.h (cmd_show_list): Update.
5035 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5036 (cmd_show_list): Update.
5037 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5038 * python/py-cmd.c (cmdpy_destroyer): Update.
5039
429e55ea
TT
50402014-07-24 Tom Tromey <tromey@redhat.com>
5041
5042 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5043 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5044 const.
5045 * command.h (deprecate_cmd): Update.
5046 * maint.c (maintenance_do_deprecate): Add casts.
5047
64669f3b
TT
50482014-07-24 Tom Tromey <tromey@redhat.com>
5049
5050 * cli/cli-decode.c (help_cmd): Make parameter "const".
5051 * cli/cli-decode.h (help_cmd): Update.
5052
d3d3328b
TT
50532014-07-24 Tom Tromey <tromey@redhat.com>
5054
5055 * stack.c (up_silently_base, down_silently_base): Make argument
5056 const.
5057
414842dc
TT
50582014-07-24 Tom Tromey <tromey@redhat.com>
5059
5060 * solib.c (solib_add): Make "pattern" const.
5061 * solib.h (solib_add): Update.
5062
baa336ce
TT
50632014-07-24 Tom Tromey <tromey@redhat.com>
5064
5065 * remote.c (remote_serial_open, print_packet, putpkt)
5066 (putpkt_binary): Constify.
5067 * remote.h (putpkt): Update.
5068
5a19e2d0
TT
50692014-07-24 Tom Tromey <tromey@redhat.com>
5070
5071 * monitor.c (monitor_open): Make "args" const.
5072 * monitor.h (monitor_open): Update.
5073
fc4baa5e
TT
50742014-07-24 Tom Tromey <tromey@redhat.com>
5075
5076 * maint.c (match_bfd_flags): Make "string" const.
5077 (print_bfd_section_info): Remove casts.
5078 (print_objfile_section_info): Make "string" const.
5079
0d5f0dbe
TT
50802014-07-24 Tom Tromey <tromey@redhat.com>
5081
5082 * inf-child.c (inf_child_open_target): Make "arg" const.
5083 * inf-child.h (inf_child_open_target): Update.
5084
41c77899
TT
50852014-07-24 Tom Tromey <tromey@redhat.com>
5086
5087 * environ.c (unset_in_environ): Make "var" const.
5088 * environ.h (unset_in_environ): Update.
5089
93db0d79
TT
50902014-07-24 Tom Tromey <tromey@redhat.com>
5091
5092 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5093 Make "cmd" const.
5094 (scan_filename_with_cleanup): Likewise.
5095 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5096 Make arguments const.
5097 (restore_command): Update.
5098
36d6eb95
PA
50992014-07-24 Pedro Alves <palves@redhat.com>
5100
5101 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5102
8009206a
TT
51032014-07-24 Tom Tromey <tromey@redhat.com>
5104 Gary Benson <gbenson@redhat.com>
5105
5106 * nat/linux-ptrace.c (additional_flags): New global.
5107 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5108 additional_flags; don't check GDBSERVER.
5109 (linux_ptrace_set_additional_flags): New function.
5110 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5111 Declare.
5112 * linux-nat.c (_initialize_linux_nat): Call
5113 linux_ptrace_set_additional_flags.
5114
a7068b60
TT
51152014-07-24 Tom Tromey <tromey@redhat.com>
5116
5117 * make-target-delegates (munge_type, write_debugmethod): New
5118 functions.
5119 (debug_names): New global.
5120 ($TARGET_DEBUG_PRINTER): New global.
5121 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5122 name.
5123 Write debug methods. Generate init_debug_target.
5124 * target-debug.h: New file.
5125 * target-delegates.c: Rebuild.
5126 * target.c: Include target-debug.h.
5127 (debug_target): Hoist definition.
5128 (target_kill, target_get_section_table, target_memory_map)
5129 (target_flash_erase, target_flash_done, target_detach)
5130 (target_disconnect, target_wait, target_resume)
5131 (target_pass_signals, target_program_signals, target_follow_fork)
5132 (target_mourn_inferior, target_search_memory)
5133 (target_thread_address_space, target_close)
5134 (target_find_new_threads, target_core_of_thread)
5135 (target_verify_memory, target_insert_mask_watchpoint)
5136 (target_remove_mask_watchpoint): Remove targetdebug code.
5137 (debug_to_post_attach, debug_to_prepare_to_store)
5138 (debug_to_files_info, debug_to_insert_breakpoint)
5139 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5140 (debug_to_region_ok_for_hw_watchpoint)
5141 (debug_to_can_accel_watchpoint_condition)
5142 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5143 (debug_to_watchpoint_addr_within_range)
5144 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5145 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5146 (debug_to_terminal_init, debug_to_terminal_inferior)
5147 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5148 (debug_to_terminal_save_ours, debug_to_terminal_info)
5149 (debug_to_load, debug_to_post_startup_inferior)
5150 (debug_to_insert_fork_catchpoint)
5151 (debug_to_remove_fork_catchpoint)
5152 (debug_to_insert_vfork_catchpoint)
5153 (debug_to_remove_vfork_catchpoint)
5154 (debug_to_insert_exec_catchpoint)
5155 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5156 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5157 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5158 (setup_target_debug): Call init_debug_target.
5159 * target.h (TARGET_DEBUG_PRINTER): New macro.
5160 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5161 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5162
2c51604d
GB
51632014-07-24 Gary Benson <gbenson@redhat.com>
5164
5165 * exceptions.h (throw_vfatal): Renamed to...
5166 (throw_vquit): New declaration.
5167 (throw_quit): Likewise.
5168 * exceptions.c (throw_vfatal): Renamed to...
5169 (throw_vquit): New function.
5170 (throw_quit): Likewise.
5171 (throw_error): Call throw_verror rather than throw_it.
5172 * utils.h (vfatal): Removed.
5173 (fatal): Likewise.
5174 * utils.c (vfatal): Removed.
5175 (fatal): Likewise.
5176 (internal_verror): Replaced call to fatal with call to throw_quit.
5177 (quit): Replaced calls to fatal with calls to throw_quit.
5178
34211963
ME
51792014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5180
5181 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5182 target_read_code.
5183
a52b4d3e
ME
51842014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5185
5186 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5187 less than zero in conditional expression.
5188
a8bdc56b
TT
51892014-07-23 Tom Tromey <tromey@redhat.com>
5190
5191 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5192 ($INTRO_PART): Don't match whitespace.
5193 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5194 argument matching.
5195 ($METHOD): Add $METHOD_TRAILER.
5196 (trim): Rewrite.
5197 (scan_target_h): New sub.
5198 Change main loop not to collect state.
5199 * target-delegates.c: Rebuild.
5200
91b52240
GB
52012014-07-23 Gary Benson <gbenson@redhat.com>
5202
5203 * cp-support.c (gdb_demangle): Fix build on systems without
5204 sigaltstack.
5205
45326f6f
JK
52062014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5207
5208 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5209 for reference entry value target data value.
5210
e214cf6c
JK
52112014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5212
5213 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5214 value_available_contents_eq.
5215
bddbbedd
PA
52162014-07-22 Pedro Alves <palves@redhat.com>
5217
5218 * value.c (allocate_optimized_out_value): Don't mark value as
5219 non-lazy.
5220
45c71484
JW
52212014-07-22 Jiong Wang <jiong.wang@arm.com>
5222
5223 * MAINTAINERS (Write After Approval): Update my email address.
5224
9597b22a
DE
52252014-07-20 Doug Evans <dje@google.com>
5226
5227 PR server/17147
5228 * remote.c (putpkt_binary): Add text to error message.
5229
91101fe5
YQ
52302014-07-20 Yao Qi <yao@codesourcery.com>
5231
5232 * eval.c: Remove "Chill" from comments.
5233 * gdbtypes.h: Likewise.
5234 * symtab.h: Likewise.
5235
c9402c95
YQ
52362014-07-20 Yao Qi <yao@codesourcery.com>
5237
5238 * std-operator.def: Update comments to TERNOP_SLICE.
5239
ae8fddda
YQ
52402014-07-20 Yao Qi <yao@codesourcery.com>
5241
5242 * std-operator.def: Remove BINOP_RANGE.
5243 * breakpoint.c (watchpoint_exp_is_const): Update.
5244 * expprint.c (dump_subexp_body_standard): Likewise.
5245 * eval.c (init_array_element): Remove dead code.
5246 (evaluate_subexp_standard): Likewise.
5247
9c816640
YQ
52482014-07-20 Yao Qi <yao@codesourcery.com>
5249
5250 * std-operator.def: Remove BINOP_IN.
5251 * breakpoint.c (watchpoint_exp_is_const): Update.
5252 * eval.c (evaluate_subexp_standard): Likewise.
5253 * expprint.c (dump_subexp_body_standard): Likewise.
5254
164224e9
ME
52552014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5256
5257 * microblaze-tdep.c (microblaze_register_names): Add
5258 the rshr and rslr register names.
5259 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5260 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5261 Use of tdesc_numbered_register. Use of
5262 microblaze_register_g_packet_guesses. Use of
5263 tdesc_use_registers. Use of set_gdbarch_register_type.
5264 (microblaze_register_g_packet_guesses): New.
5265 * microblaze-tdep.h (microblaze_reg_num): Add
5266 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5267 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5268 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5269 * features/microblaze-core.xml: New file.
5270 * features/microblaze-stack-protect.xml: New file.
5271 * features/microblaze-with-stack-protect.c: New file.
5272 * features/microblaze-with-stack-protect.xml: New file.
5273 * features/microblaze.xml: New file.
5274 * features/microblaze.c: New file.
5275 * features/Makefile (microblaze-with-stack-protect): Add
5276 microblaze-with-stack-protect microblaze and microblaze-expedite.
5277 * regformats/microblaze-with-stack-protect.dat: New file.
5278 * regformats/microblaze.dat: New file.
5279 * doc/gdb.texinfo (MicroBlaze Features): Added.
5280
e8b2341c
TT
52812014-07-18 Tom Tromey <tromey@redhat.com>
5282
5283 * exec.c (exec_ops): Now static.
5284 * exec.h (exec_ops): Don't declare.
5285
44e89118
TT
52862014-07-18 Tom Tromey <tromey@redhat.com>
5287
5288 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5289 to find_target_beneath.
5290 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5291 find_target_beneath.
5292 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5293
b0ed115f
TT
52942014-07-18 Tom Tromey <tromey@redhat.com>
5295
5296 PR gdb/17130:
5297 * utils.c (quit): Use target_supports_terminal_ours.
5298 * target.h (target_supports_terminal_ours): Declare.
5299 * target.c (target_supports_delete_record): Don't check
5300 to_delete_record against NULL.
5301 (target_supports_terminal_ours): New function.
5302
e75fdfca
TT
53032014-07-18 Tom Tromey <tromey@redhat.com>
5304
5305 PR gdb/17130:
5306 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5307 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5308 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5309 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5310 * windows-nat.c (windows_xfer_partial): Always delegate.
5311 * record-btrace.c (record_btrace_xfer_partial): Simplify
5312 delegation.
5313 (record_btrace_fetch_registers, record_btrace_store_registers)
5314 (record_btrace_prepare_to_store, record_btrace_resume)
5315 (record_btrace_wait, record_btrace_find_new_threads)
5316 (record_btrace_thread_alive): Likewise.
5317 * procfs.c (procfs_xfer_partial): Always delegate.
5318 * corelow.c (core_xfer_partial): Always delegate.
5319 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5320
83814951
TT
53212014-07-18 Tom Tromey <tromey@redhat.com>
5322
5323 * exec.c (exec_make_note_section): Move earlier.
5324
b8b8facf
DE
53252014-07-17 Doug Evans <dje@google.com>
5326
74b49205 5327 PR gdb/17170
b8b8facf
DE
5328 * maint.c (count_symtabs_and_blocks): Handle NULL
5329 current_program_space.
5330 (report_command_stats): Check global enabled flag in addition to
5331 recorded enabled flag.
5332 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5333
69ff6be5
PA
53342014-07-16 Pedro Alves <palves@redhat.com>
5335
5336 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5337
252db1b5
TT
53382014-07-16 Tom Tromey <tromey@redhat.com>
5339
5340 * target.h (struct target_ops) <to_delete_record>: Reformat
5341 comment.
5342
a432721e
TT
53432014-07-16 Tom Tromey <tromey@redhat.com>
5344
5345 * target-delegates.c: Rebuild.
5346
487d9753
PL
53472014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5348
5349 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5350 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5351 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5352 (avr_pointer_to_address): Likewise.
5353 (avr_address_class_type_flags): New function.
5354 (avr_address_class_type_flags_to_name): Likewise.
5355 (avr_address_class_name_to_type_flags): Likewise.
5356 (avr_gdbarch_init): Set address_class_type_flags,
5357 address_class_type_flags_to_name and
5358 address_class_name_to_type_flags.
5359
57745c90
PA
53602014-07-15 Pedro Alves <palves@redhat.com>
5361
5362 * linux-nat.c (kill_callback): Save errno and work with saved
5363 copy.
5364
2d40be18
SM
53652014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5366
5367 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5368
572f6555
EBM
53692014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5370
5371 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5372 breakpoint support correctly.
5373
cc1c52ad
PA
53742014-07-14 Pedro Alves <palves@redhat.com>
5375
5376 * utils.c (prompt_for_continue): Call target_terminal_ours.
5377
1e973570
PA
53782014-07-14 Pedro Alves <palves@redhat.com>
5379
5380 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5381 catch_errors. Don't re-enable stdin or notify observers where,
5382 and rethrow error.
5383 (fetch_inferior_event_wrapper): Delete.
5384
93d6eb10
PA
53852014-07-14 Pedro Alves <palves@redhat.com>
5386
5387 PR gdb/17072
5388 * top.c: Include "inf-loop.h".
5389 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5390 field.
5391 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5392 was async before.
5393 (gdb_readline_wrapper): Store whether the target is async, and
5394 make it sync.
5395
0017922d
PA
53962014-07-14 Pedro Alves <palves@redhat.com>
5397
5398 PR gdb/17072
5399 * top.c (gdb_readline_wrapper_line): Tweak comment.
5400 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5401 the input handler callback.
5402
94696ad3
PA
54032014-07-14 Pedro Alves <palves@redhat.com>
5404
5405 PR gdb/17072
5406 * main.c: Include event-top.h.
5407 (handle_command_errors): New function.
5408 (catch_command_errors, catch_command_errors_const): Use it.
5409
9d1e69a2
PA
54102014-07-14 Pedro Alves <palves@redhat.com>
5411
5412 * exceptions.c (catch_command_errors, catch_command_errors_const):
5413 Moved to main.c.
5414 * exceptions.h (catch_command_errors_ftype)
5415 (catch_command_errors_const_ftype): Moved to main.c.
5416 (catch_command_errors, catch_command_errors_const): Delete
5417 declarations.
5418 * main.c (catch_command_errors_ftype)
5419 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5420 (catch_command_errors, catch_command_errors_const)): Moved here
5421 from exceptions.c and make static.
5422
feefc97b
PA
54232014-07-14 Pedro Alves <palves@redhat.com>
5424
5425 * exceptions.c (print_any_exception): Delete.
5426 (catch_exceptions_with_msg): Use exception_print instead of
5427 print_any_exception.
5428 (catch_errors): Use exception_fprintf instead of
5429 print_any_exception.
5430 (catch_command_errors, catch_command_errors_const): Use
5431 exception_print instead of print_any_exception.
5432
c933f875
PA
54332014-07-14 Pedro Alves <palves@redhat.com>
5434
5435 * infcall.c (run_inferior_call): Set 'sync_execution' while
5436 running the inferior call.
5437
feb6f816
PA
54382014-07-14 Pedro Alves <palves@redhat.com>
5439
5440 * value.c (value_contents_equal): Delete function.
5441 * value.h (value_contents_equal): Delete declaration.
5442
d98b7a16
TT
54432014-07-14 Tom Tromey <tromey@redhat.com>
5444
5445 PR exp/17106:
5446 * gdbtypes.c (is_dynamic_type_internal): New function, from
5447 is_dynamic_type.
5448 (is_dynamic_type): Rewrite.
5449 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5450 (resolve_dynamic_struct): Likewise.
5451 (resolve_dynamic_type_internal): New function, from
5452 resolve_dynamic_type.
5453 (resolve_dynamic_type): Rewrite.
5454
548740d6
TT
54552014-07-14 Tom Tromey <tromey@redhat.com>
5456
5457 * target.c (target_require_runnable): Also check record_stratum.
5458 Update comment.
5459
808f7ab1
YQ
54602014-07-11 Yao Qi <yao@codesourcery.com>
5461
5462 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5463 thumb_instruction_restores_sp return true.
5464
540314bd
YQ
54652014-07-11 Yao Qi <yao@codesourcery.com>
5466
5467 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5468 (thumb_in_function_epilogue_p): Call
5469 thumb_instruction_restores_sp.
5470
1db01f22
YQ
54712014-07-11 Yao Qi <yao@codesourcery.com>
5472
5473 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5474 'add sp, #imm'.
5475 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5476
3116063b
GB
54772014-07-11 Gary Benson <gbenson@redhat.com>
5478
5479 * amd64-linux-nat.c (gdbcore.h): Remove include.
5480 (regset.h): Likewise.
5481 (nat/linux-btrace.h): Likewise.
5482 (btrace.h): Likewise.
5483 (gdb_assert.h): Likewise.
5484 (string.h): Likewise.
5485 (sys/uio.h): Likewise.
5486 (sys/debugreg.h): Likewise.
5487 (sys/syscall.h): Likewise.
5488 (sys/procfs.h): Likewise.
5489 (sys/user.h): Likewise.
5490 (asm/ptrace.h): Likewise.
5491 (i386-nat.h): Likewise.
5492 * i386-linux-nat.c (i386-nat.h): Likewise.
5493 (regset.h): Likewise.
5494 (target.h): Likewise.
5495 (linux-nat.h): Likewise.
5496 (nat/linux-btrace.h): Likewise.
5497 (btrace.h): Likewise.
5498 (gdb_assert.h): Likewise.
5499 (string.h): Likewise.
5500 (sys/uio.h): Likewise.
5501 (sys/user.h): Likewise.
5502 (sys/procfs.h): Likewise.
5503 (sys/reg.h): Likewise.
5504 (sys/debugreg.h): Likewise.
5505 (ORIG_EAX): Remove definition.
5506
040baaf6
GB
55072014-07-11 Gary Benson <gbenson@redhat.com>
5508
5509 * i386-linux-nat.h: New file.
5510 * x86-linux-nat.h: Likewise.
5511 * x86-linux-nat.c: Likewise.
5512 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5513 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5514 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5515 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5516 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5517 (PTRACE_SETREGSET): Likewise.
5518 (arch_lwp_info): Now in x86-linux-nat.c.
5519 (have_ptrace_getregset): Now in x86-linux-nat.h.
5520 (x86_linux_dr_get): Now in x86-linux-nat.c.
5521 (x86_linux_dr_set): Likewise.
5522 (x86_linux_dr_get_addr): Likewise.
5523 (x86_linux_dr_get_control): Likewise.
5524 (x86_linux_dr_get_status): Likewise.
5525 (update_debug_registers_callback): Likewise.
5526 (x86_linux_dr_set_control): Likewise.
5527 (x86_linux_dr_set_addr): Likewise.
5528 (x86_linux_prepare_to_resume): Likewise.
5529 (x86_linux_new_thread): Likewise.
5530 (x86_linux_new_fork): Likewise.
5531 (x86_linux_get_thread_area): Likewise.
5532 (super_post_startup_inferior): Likewise.
5533 (x86_linux_child_post_startup_inferior): Likewise.
5534 (AMD64_LINUX_USER64_CS): Likewise.
5535 (AMD64_LINUX_X32_DS): Likewise.
5536 (x86_linux_read_description): Likewise.
5537 (x86_linux_enable_btrace): Likewise.
5538 (x86_linux_disable_btrace): Likewise.
5539 (x86_linux_teardown_btrace): Likewise.
5540 (x86_linux_read_btrace): Likewise.
5541 (x86_linux_create_target): Likewise.
5542 (x86_linux_add_target): Likewise.
5543 * i386-linux-nat.c (x86-linux-nat.h): New include.
5544 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5545 (PTRACE_SETREGSET): Likewise.
5546 (arch_lwp_info): Now in x86-linux-nat.c.
5547 (have_ptrace_getregset): Now in x86-linux-nat.h.
5548 (x86_linux_dr_get): Now in x86-linux-nat.c.
5549 (x86_linux_dr_set): Likewise.
5550 (x86_linux_dr_get_addr): Likewise.
5551 (x86_linux_dr_get_control): Likewise.
5552 (x86_linux_dr_get_status): Likewise.
5553 (update_debug_registers_callback): Likewise.
5554 (x86_linux_dr_set_control): Likewise.
5555 (x86_linux_dr_set_addr): Likewise.
5556 (x86_linux_prepare_to_resume): Likewise.
5557 (x86_linux_new_thread): Likewise.
5558 (x86_linux_new_fork): Likewise.
5559 (x86_linux_get_thread_area): Likewise.
5560 (super_post_startup_inferior): Likewise.
5561 (x86_linux_child_post_startup_inferior): Likewise.
5562 (AMD64_LINUX_USER64_CS): Likewise.
5563 (AMD64_LINUX_X32_DS): Likewise.
5564 (x86_linux_read_description): Likewise.
5565 (x86_linux_enable_btrace): Likewise.
5566 (x86_linux_disable_btrace): Likewise.
5567 (x86_linux_teardown_btrace): Likewise.
5568 (x86_linux_read_btrace): Likewise.
5569 (x86_linux_create_target): Likewise.
5570 (x86_linux_add_target): Likewise.
5571
1aa7e42c
GB
55722014-07-11 Gary Benson <gbenson@redhat.com>
5573
5574 * amd64-linux-nat.c: Comment and whitespace changes.
5575 * i386-linux-nat.c: Comment and whitespace changes.
5576
c1e246a0
GB
55772014-07-11 Gary Benson <gbenson@redhat.com>
5578
5579 * amd64-linux-nat.c (x86_linux_create_target): New function.
5580 (x86_linux_add_target): Likewise.
5581 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5582 * i386-linux-nat.c (x86_linux_create_target): New function.
5583 (x86_linux_add_target): Likewise.
5584 (_initialize_i386_linux_nat): Delegate to the above new functions.
5585
8c420b8d
GB
55862014-07-11 Gary Benson <gbenson@redhat.com>
5587
5588 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5589 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5590 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5591 (ps_get_thread_area): Delegate to the above.
5592
cb1da100
GB
55932014-07-11 Gary Benson <gbenson@redhat.com>
5594
5595 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5596 x86_linux_read_description. All uses updated. amd64-specific
5597 code conditionalized. Conditionalized i386-specific code added.
5598 Redundant cast removed.
5599 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5600 x86_linux_read_description. All uses updated. i386-specific
5601 code conditionalized. Conditionalized amd64-specific code added.
5602 One sizeof replaced with the actual type it is describing.
5603
2acf3cd0
GB
56042014-07-11 Gary Benson <gbenson@redhat.com>
5605
5606 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5607 x86_linux_dr_get. All uses updated.
5608 (amd64_linux_dr_set): Renamed to
5609 x86_linux_dr_set. All uses updated.
5610 (amd64_linux_dr_get_addr): Renamed to
5611 x86_linux_dr_get_addr. All uses updated.
5612 (amd64_linux_dr_get_control): Renamed to
5613 x86_linux_dr_get_control. All uses updated.
5614 (amd64_linux_dr_get_status): Renamed to
5615 x86_linux_dr_get_status. All uses updated.
5616 (amd64_linux_dr_set_control): Renamed to
5617 x86_linux_dr_set_control. All uses updated.
5618 (amd64_linux_dr_set_addr): Renamed to
5619 x86_linux_dr_set_addr. All uses updated.
5620 (amd64_linux_prepare_to_resume): Renamed to
5621 x86_linux_prepare_to_resume. All uses updated.
5622 (amd64_linux_new_thread): Renamed to
5623 x86_linux_new_thread. All uses updated.
5624 (amd64_linux_new_fork): Renamed to
5625 x86_linux_new_fork. All uses updated.
5626 (amd64_linux_child_post_startup_inferior): Renamed to
5627 x86_linux_child_post_startup_inferior. All uses updated.
5628 (amd64_linux_enable_btrace): Renamed to
5629 x86_linux_enable_btrace. All uses updated.
5630 (amd64_linux_disable_btrace): Renamed to
5631 x86_linux_disable_btrace. All uses updated.
5632 (amd64_linux_teardown_btrace): Renamed to
5633 x86_linux_teardown_btrace. All uses updated.
5634 (amd64_linux_read_btrace): Renamed to
5635 x86_linux_read_btrace. All uses updated.
5636 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5637 x86_linux_dr_get. All uses updated.
5638 (i386_linux_dr_set): Renamed to
5639 x86_linux_dr_set. All uses updated.
5640 (i386_linux_dr_get_addr): Renamed to
5641 x86_linux_dr_get_addr. All uses updated.
5642 (i386_linux_dr_get_control): Renamed to
5643 x86_linux_dr_get_control. All uses updated.
5644 (i386_linux_dr_get_status): Renamed to
5645 x86_linux_dr_get_status. All uses updated.
5646 (i386_linux_dr_set_control): Renamed to
5647 x86_linux_dr_set_control. All uses updated.
5648 (i386_linux_dr_set_addr): Renamed to
5649 x86_linux_dr_set_addr. All uses updated.
5650 (i386_linux_prepare_to_resume): Renamed to
5651 x86_linux_prepare_to_resume. All uses updated.
5652 (i386_linux_new_thread): Renamed to
5653 x86_linux_new_thread. All uses updated.
5654 (i386_linux_new_fork): Renamed to
5655 x86_linux_new_fork. All uses updated.
5656 (i386_linux_child_post_startup_inferior): Renamed to
5657 x86_linux_child_post_startup_inferior. All uses updated.
5658 (i386_linux_enable_btrace): Renamed to
5659 x86_linux_enable_btrace. All uses updated.
5660 (i386_linux_disable_btrace): Renamed to
5661 x86_linux_disable_btrace. All uses updated.
5662 (i386_linux_teardown_btrace): Renamed to
5663 x86_linux_teardown_btrace. All uses updated.
5664 (i386_linux_read_btrace): Renamed to
5665 x86_linux_read_btrace. All uses updated.
5666
b9c1d481
AS
56672014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5668
5669 * remote.c (extended_remote_post_attach): New function.
5670 (init_extended_remote_ops): Install it as to_post_attach method.
5671
7180e04a
PA
56722014-07-09 Pedro Alves <palves@redhat.com>
5673
5674 * infcmd.c (attach_command_post_wait): Don't call
5675 target_terminal_inferior here.
5676 (attach_command): Call it here instead.
5677
9a9a7608
AB
56782014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5681 field.
5682 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5683 from varobj.c, with additional checks.
5684 (c_varobj_ops): Fill in is_path_expr_parent field.
5685 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5686 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5687 field.
5688 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5689 ops method.
5690 (varobj_default_is_path_expr_parent): New function.
5691 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5692 (varobj_default_is_path_expr_parent): Declare new function.
5693
1f267ae3
MM
56942014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5695
5696 * infcmd.c (finish_backward): Turn internal error into normal error.
5697
b2ee242b
PA
56982014-07-07 Pedro Alves <palves@redhat.com>
5699
8a869bca 5700 PR gdb/17096
b2ee242b
PA
5701 * remote.c (async_handle_remote_sigint)
5702 (async_handle_remote_sigint_twice): Call
5703 gdb_call_async_signal_handler instead of
5704 mark_async_signal_handler.
5705
38e229b2
TT
57062014-07-07 Tom Tromey <tromey@redhat.com>
5707
5708 * target-delegates.c: Rebuild.
5709 * target.c (target_info_record): Remove.
5710 * record.c (info_record_command): Unconditionally call
5711 to_info_record.
5712 * target.h (struct target_ops) <to_info_record>: Use
5713 TARGET_DEFAULT_IGNORE.
5714 (target_info_record): Remove.
5715
f0f9ff95
TT
57162014-07-07 Tom Tromey <tromey@redhat.com>
5717
5718 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5719 TARGET_DEFAULT_NORETURN.
5720 * target.c (generic_tls_error): New function.
5721 (target_translate_tls_address): Don't search target stack.
5722 * target-delegates.c: Rebuild.
5723 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5724 stack.
5725 * linux-thread-db.c (thread_db_get_thread_local_address):
5726 Unconditionally call beneath target.
5727
4a5be5ee
MK
57282014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5729
5730 * cli/cli-logging.c (pop_output_files): Assign targerr to
5731 gdb_stdtargerr.
5732
92c3b204
AB
57332014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5734
5735 * MAINTAINERS (Write After Approval): Update my email address.
5736
9b11e3a7
GB
57372014-07-02 Gary Benson <gbenson@redhat.com>
5738
5739 * proc-service.c (ps_xfer_memory): Update comment.
5740 (ps_pstop): Remove unused function.
5741 (ps_pcontinue): Likewise.
5742 (ps_lstop): Likewise.
5743 (ps_lcontinue): Likewise.
5744 (ps_lgetxregsize): Likewise.
5745 (ps_lgetxregs): Likewise.
5746 (ps_lsetxregs): Likewise.
5747 (ps_plog): Likewise.
5748 (ps_ptread): Likewise.
5749 (ps_ptwrite): Likewise.
5750
cf363f18
MW
57512014-07-01 Mark Wielaard <mjw@redhat.com>
5752
5753 * dwarf2read.c (add_array_cv_type): New function.
5754 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5755 (read_tag_volatile_type): Likewise.
5756
82ae6c8d
TT
57572014-07-01 Tom Tromey <tromey@redhat.com>
5758
5759 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5760 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5761 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5762 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5763 * command.h (cmd_cfunc_ftype): Move earlier.
5764 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5765 (add_com, add_info): Use cmd_cfunc_ftype.
5766
96142726
TT
57672014-06-30 Tom Tromey <tromey@redhat.com>
5768
5769 * symtab.c (operator_chars): Make parameters and return type
5770 const.
5771 (file_matches): Make "files" const.
5772 (struct search_symbols_data) <files>: Now const.
5773 (search_symbols): Make "regexp" and "files" parameters const.
5774 Update.
5775 (symtab_symbol_info): Remove cast.
5776 (rbreak_command): Update.
5777 * symtab.h (search_symbols): Update.
5778
b67a2c6f
YQ
57792014-06-27 Yao Qi <yao@codesourcery.com>
5780
5781 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5782 Change parameter type to 'struct thread_info *'. Caller
5783 updated.
5784 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5785 Update declaration.
5786 * dummy-frame.c (struct dummy_frame_id): New.
5787 (dummy_frame_id_eq): New function.
5788 (struct dummy_frame) <id>: Change its type to 'struct
5789 dummy_frame_id'.
5790 (dummy_frame_push): Add parameter ptid and save it in
5791 dummy_frame_id.
5792 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5793 inferior_ptid.
5794 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5795 to inferior_ptid.
5796 (lookup_dummy_frame): Change parameter type to 'struct
5797 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5798 instead of frame_id_eq.
5799 (dummy_frame_pop): Add parameter ptid. Callers updated.
5800 Update comments. Compose dummy_frame_id and pass it to
5801 lookup_dummy_frame.
5802 (dummy_frame_discard): Add parameter ptid.
5803 (dummy_frame_sniffer): Compose dummy_frame_id and call
5804 dummy_frame_id_eq instead of frame_id_eq.
5805 (fprint_dummy_frames): Print ptid.
5806 * dummy-frame.h: Remove comments.
5807 (dummy_frame_push): Add ptid in declaration.
5808 (dummy_frame_pop, dummy_frame_discard): Likewise.
5809
5b10184c
TT
58102014-06-26 Tom Tromey <tromey@redhat.com>
5811
5812 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5813 * command.h (error_no_arg): Update.
5814
06900326
TT
58152014-06-26 Tom Tromey <tromey@redhat.com>
5816
5817 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5818 (do_show_command): Make "arg" const.
5819 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5820
c2bcbb1d
TT
58212014-06-26 Tom Tromey <tromey@redhat.com>
5822
5823 * record-full.c (record_full_get_bookmark): Make "args" const.
5824 (record_full_goto_bookmark): Make "raw_bookmark" const.
5825 * record.c (record_goto): New function.
5826 (cmd_record_goto): Use it. Now static.
5827 * record.h (record_goto): Declare.
5828 (cmd_record_goto): Remove declaration.
5829 * target-delegates.c: Rebuild.
5830 * target.h (struct target_ops) <to_get_bookmark,
5831 to_goto_bookmark>: Make parameter const.
5832
9cbe5fff
TT
58332014-06-26 Tom Tromey <tromey@redhat.com>
5834
5835 * defs.h (generic_load): Update.
5836 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5837 * monitor.c (monitor_load): Make "args" const.
5838 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5839 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5840 const.
5841 (mips_load): Make "file" const.
5842 * remote-sim.c (gdbsim_load): Make "args" const.
5843 * remote.c (remote_load): Make "name" const.
5844 * symfile.c (generic_load): Make "args" const.
5845 * target-delegates.c: Rebuild.
5846 * target.c (target_load): Make "arg" const.
5847 (debug_to_load): Make "args" const.
5848 * target.h (struct target_ops) <to_load>: Make parameter const.
5849 (target_load): Update.
5850
34a68019
TT
58512014-06-26 Tom Tromey <tromey@redhat.com>
5852
5853 PR symtab/16902:
5854 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5855 (dwarf2_physname, read_partial_die)
5856 (guess_partial_die_structure_name, fixup_partial_die)
5857 (guess_full_die_structure_name, anonymous_struct_prefix)
5858 (dwarf2_name): Use per-BFD obstack.
5859
efc889c1
YQ
58602014-06-26 Yao Qi <yao@codesourcery.com>
5861
5862 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5863 dummyframe and this_id into inner block below.
5864
4395285e
YQ
58652014-06-26 Yao Qi <yao@codesourcery.com>
5866
5867 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5868 with "signal_pass[0]" in the initialization of signal_pass.
5869
aef92902
MM
58702014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5871
5872 * record-btrace.c (record_btrace_generating_corefile)
5873 (record_btrace_prepare_to_generate_core)
5874 (record_btrace_done_generating_core): New.
5875 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5876 (record_btrace_store_registers, record_btrace_prepare_to_store):
5877 Forward request when generating a core file.
5878 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5879 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5880 to_done_generating_core.
5881
5fff78c4
MM
58822014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5883
5884 * target.h (target_ops) <to_prepare_to_generate_core>
5885 <to_done_generating_core>: New.
5886 (target_prepare_to_generate_core, target_done_generating_core): New.
5887 * target.c (target_prepare_to_generate_core)
5888 (target_done_generating_core): New.
5889 * target-delegates.c: Regenerate.
5890 * gcore.c: (write_gcore_file): Rename to ...
5891 (write_gcore_file_1): ...this.
5892 (write_gcore_file): Call target_prepare_to_generate_core
5893 and target_done_generating_core.
5894
1d1f1ccb
MM
58952014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5896
5897 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5898 * gcore.c (write_gcore_file): Free memory returned from
5899 make_corefile_notes.
5900 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5901 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5902
3343ef86
YQ
59032014-06-24 Yao Qi <yao@codesourcery.com>
5904
5905 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5906 (arm_linux_init_abi): Set skip_trampoline_code with
5907 gdbarch_skip_trampoline_code instead of
5908 find_solib_trampoline_target.
5909
18d18ac8
YQ
59102014-06-24 Yao Qi <yao@codesourcery.com>
5911
5912 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5913 arm_skip_bx_reg returns non-zero.
5914
80d8d390
YQ
59152014-06-24 Yao Qi <yao@codesourcery.com>
5916
5917 * arm-tdep.c (arm_skip_bx_reg): New function.
5918 (arm_skip_stub): Call arm_skip_bx_reg.
5919
6a18a01c
DB
59202014-06-23 Don Breazeal <donb@codesourcery.com>
5921
5922 * MAINTAINERS: Add myself as write-after-approval maintainer.
5923
8e9db26e
PA
59242014-06-23 Pedro Alves <palves@redhat.com>
5925
5926 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5927 DR_CONTROL before setting DR0..DR3.
5928 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5929 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5930 bits of DR_CONTROL related to the debug register slot being
5931 disabled. If all slots are vacant, clear local slowdown as well,
5932 and assert DR_CONTROL is 0.
5933
70afc5b7
SC
59342014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5935
5936 * python/lib/gdb/command/xmethods.py
5937 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5938 current progspace only if the string "progspace" matches LOCUS_RE.
5939
840ed64d
JK
59402014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5941
5942 Fix --with-system-readline with readline-6.3 patch 5.
5943 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5944 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5945 types.
5946
26f2dc30
TT
59472014-06-20 Tom Tromey <tromey@redhat.com>
5948
5949 * dwarf2read.c (dw2_get_real_path): Use correct type in
5950 OBSTACK_CALLOC.
5951 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5952
125f8a3d
GB
59532014-06-20 Gary Benson <gbenson@redhat.com>
5954
5955 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5956 * common/glibc_thread_db.h: Likewise.
5957 * common/i386-cpuid.h: Likewise.
5958 * common/i386-gcc-cpuid.h: Likewise.
5959 * common/linux-btrace.h: Likewise.
5960 * common/linux-osdata.h: Likewise.
5961 * common/linux-procfs.h: Likewise.
5962 * common/linux-ptrace.h: Likewise.
5963 * common/mips-linux-watch.h: Likewise.
5964 * common/linux-btrace.c: Moved to nat.
5965 * common/linux-osdata.c: Likewise.
5966 * common/linux-procfs.c: Likewise.
5967 * common/linux-ptrace.c: Likewise.
5968 * common/mips-linux-watch.c: Likewise.
5969 * nat/gdb_thread_db.h: Moved from common.
5970 * nat/glibc_thread_db.h: Likewise.
5971 * nat/i386-cpuid.h: Likewise.
5972 * nat/i386-gcc-cpuid.h: Likewise.
5973 * nat/linux-btrace.c: Likewise.
5974 * nat/linux-btrace.h: Likewise.
5975 * nat/linux-osdata.c: Likewise.
5976 * nat/linux-osdata.h: Likewise.
5977 * nat/linux-procfs.c: Likewise.
5978 * nat/linux-procfs.h: Likewise.
5979 * nat/linux-ptrace.c: Likewise.
5980 * nat/linux-ptrace.h: Likewise.
5981 * nat/mips-linux-watch.c: Likewise.
5982 * nat/mips-linux-watch.h: Likewise.
5983 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5984 (object file files): Reordered.
5985 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5986 of glibc_thread_db.h.
5987
42995dbd
GB
59882014-06-20 Gary Benson <gbenson@redhat.com>
5989
5990 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5991 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5992 (i386_dr_low): Likewise.
5993 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5994 (i386_dr_low_set_addr): Likewise.
5995 (i386_dr_low_get_addr): Likewise.
5996 (i386_dr_low_can_set_control): Likewise.
5997 (i386_dr_low_set_control): Likewise.
5998 (i386_dr_low_get_control): Likewise.
5999 (i386_dr_low_get_status): Likewise.
6000 (i386_get_debug_register_length): Likewise.
6001 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6002 (i386_dr_low): Likewise.
6003 * nat/i386-dregs.c (i386-low.h): Remove include.
6004 (i386-nat.h): Likewise.
6005 (nat/i386-dregs.h): New include.
6006 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6007 (i386_dr_low_set_addr): Likewise.
6008 (i386_dr_low_get_addr): Likewise.
6009 (i386_dr_low_can_set_control): Likewise.
6010 (i386_dr_low_set_control): Likewise.
6011 (i386_dr_low_get_control): Likewise.
6012 (i386_dr_low_get_status): Likewise.
6013 (i386_get_debug_register_length): Likewise.
6014 (debug_hw_points): Likewise.
6015
3ed9baed
IB
60162014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6017
6018 * Makefile.in (SFILES): Add d-exp.y.
6019 (YYFILES): Add d-exp.c.
6020 (YYOBJ): Add d-exp.o.
6021 (local-maintainer-clean): Delete d-exp.c.
6022 * d-exp.y: New file.
6023 * d-lang.h (d_parse): New declaration.
6024 (d_error): New declaration.
6025 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6026 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6027 PREC_ORDER operators.
6028 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6029
78c164b0
YQ
60302014-06-19 Yao Qi <yao@codesourcery.com>
6031
6032 * gdbthread.h (any_running): Remove the declaration.
6033 * thread.c (any_running): Remove.
6034
f6e29b6e
YQ
60352014-06-19 Yao Qi <yao@codesourcery.com>
6036
6037 * gdbthread.h (struct thread_info) <state>: Change its type to
6038 'enum thread_state'. Update comments.
6039
034f788c
PA
60402014-06-19 Pedro Alves <palves@redhat.com>
6041
6042 * gdbthread.h (ALL_THREADS): Delete.
6043 (ALL_NON_EXITED_THREADS): New macro.
6044 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6045 instead of ALL_THREADS.
6046 * infrun.c (find_thread_needs_step_over)
6047 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6048 instead of ALL_THREADS.
6049 * record-btrace.c (record_btrace_open)
6050 (record_btrace_stop_recording, record_btrace_close)
6051 (record_btrace_is_replaying, record_btrace_resume)
6052 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6053 * remote.c (append_pending_thread_resumptions): Likewise.
6054 * thread.c (thread_apply_all_command): Likewise.
6055
46e33252
GB
60562014-06-19 Gary Benson <gbenson@redhat.com>
6057
6058 * i386-nat.c (i386_stopped_by_watchpoint):
6059 Use i386_dr_stopped_by_watchpoint.
6060 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6061 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6062
3a8ee006
GB
60632014-06-19 Gary Benson <gbenson@redhat.com>
6064
6065 * nat/i386-dregs.c: New file.
6066 * Makefile.in (i386-dregs.o): New rule.
6067 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6068 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6069 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6070 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6071 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6072 * config/i386/go32.mh (NATDEPFILES): Likewise.
6073 * config/i386/linux.mh (NATDEPFILES): Likewise.
6074 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6075 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6076 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6077 * i386-nat.h (debug_hw_points): New declaration.
6078 * i386-nat.c (breakpoint.h): Remove include.
6079 (command.h): Likewise.
6080 (target.h): Likewise.
6081 (gdb_assert.h): Likewise.
6082 (debug_hw_points): Made nonstatic.
6083 (debug_printf): Now in i386-dregs.c.
6084 (TARGET_HAS_DR_LEN_8): Likewise.
6085 (DR_CONTROL_SHIFT): Likewise.
6086 (DR_CONTROL_SIZE): Likewise.
6087 (DR_RW_EXECUTE): Likewise.
6088 (DR_RW_WRITE): Likewise.
6089 (DR_RW_READ): Likewise.
6090 (DR_RW_IORW): Likewise.
6091 (DR_LEN_1): Likewise.
6092 (DR_LEN_2): Likewise.
6093 (DR_LEN_4): Likewise.
6094 (DR_LEN_8): Likewise.
6095 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6096 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6097 (DR_ENABLE_SIZE): Likewise.
6098 (DR_LOCAL_SLOWDOWN): Likewise.
6099 (DR_GLOBAL_SLOWDOWN): Likewise.
6100 (DR_CONTROL_RESERVED): Likewise.
6101 (I386_DR_CONTROL_MASK): Likewise.
6102 (I386_DR_VACANT): Likewise.
6103 (I386_DR_LOCAL_ENABLE): Likewise.
6104 (I386_DR_GLOBAL_ENABLE): Likewise.
6105 (I386_DR_DISABLE): Likewise.
6106 (I386_DR_SET_RW_LEN): Likewise.
6107 (I386_DR_GET_RW_LEN): Likewise.
6108 (I386_DR_WATCH_HIT): Likewise.
6109 (i386_wp_op_t): Likewise.
6110 (i386_show_dr): Likewise.
6111 (i386_length_and_rw_bits): Likewise.
6112 (i386_insert_aligned_watchpoint): Likewise.
6113 (i386_remove_aligned_watchpoint): Likewise.
6114 (i386_handle_nonaligned_watchpoint): Likewise.
6115 (i386_update_inferior_debug_regs): Likewise.
6116 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6117 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6118 (i386_region_ok_for_watchpoint):
6119 Use i386_dr_region_ok_for_watchpoint.
6120 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6121
322a8e06
GB
61222014-06-19 Gary Benson <gbenson@redhat.com>
6123
6124 * i386-nat.c (i386_insert_hw_breakpoint): Use
6125 i386_insert_watchpoint.
6126 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6127
8f26655c
GB
61282014-06-19 Gary Benson <gbenson@redhat.com>
6129
6130 * i386-nat.c (i386_dr_show): Renamed to
6131 i386_show_dr and made static. All uses updated.
6132 (i386_dr_length_and_rw_bits): Renamed to
6133 i386_length_and_rw_bits and made static.
6134 All uses updated.
6135 (i386_dr_insert_aligned_watchpoint): Renamed to
6136 i386_insert_aligned_watchpoint and made static.
6137 All uses updated.
6138 (i386_dr_remove_aligned_watchpoint): Renamed to
6139 i386_remove_aligned_watchpoint and made static.
6140 All uses updated.
6141 (i386_dr_update_inferior_debug_regs): Renamed to
6142 i386_update_inferior_debug_regs and made static.
6143 All uses updated.
6144 * nat/i386-dregs.h (i386_dr_show): Removed.
6145 (i386_dr_length_and_rw_bits): Likewise.
6146 (i386_dr_insert_aligned_watchpoint): Likewise.
6147 (i386_dr_remove_aligned_watchpoint): Likewise.
6148 (i386_dr_update_inferior_debug_regs): Likewise.
6149
992c7d70
GB
61502014-06-19 Gary Benson <gbenson@redhat.com>
6151
6152 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6153 * configure: Regenerate.
6154 * config.in: Likewise.
6155 * main.c (signal.h): New include.
6156 (setup_alternate_signal_stack): New function.
6157 (captured_main): Call the above.
6158 * cp-support.c (signal.h): New include.
6159 (catch_demangler_crashes): New flag.
6160 (SIGJMP_BUF): New define.
6161 (SIGSETJMP): Likewise.
6162 (SIGLONGJMP): Likewise.
6163 (gdb_demangle_jmp_buf): New static global.
6164 (gdb_demangle_attempt_core_dump): Likewise.
6165 (gdb_demangle_signal_handler): New function.
6166 (gdb_demangle): If catch_demangler_crashes is set, install the
6167 above signal handler before calling bfd_demangle, and restore
6168 the original signal handler afterwards. Display the offending
6169 symbol and call demangler_warning the first time a segmentation
6170 fault is caught.
6171 (_initialize_cp_support): New maint set/show command.
6172
eae7090b
GB
61732014-06-19 Gary Benson <gbenson@redhat.com>
6174
6175 * utils.h (resource_limit_kind): New enum.
6176 (can_dump_core): New declaration.
6177 (warn_cant_dump_core): Likewise.
6178 (dump_core): Likewise.
6179 * utils.c (dump_core): Made nonstatic. Added new
6180 parameter "limit_kind".
6181 (can_dump_core): Made nonstatic. Moved printing code to...
6182 (warn_cant_dump_core): New function.
6183 (can_dump_core_warn): Likewise.
6184 (internal_vproblem): Replace calls to can_dump_core with
6185 calls to can_dump_core_warn. Supply new argument to each.
6186
57fcfb1b
GB
61872014-06-19 Gary Benson <gbenson@redhat.com>
6188
6189 * utils.h (demangler_vwarning): New declaration.
6190 (demangler_warning): Likewise.
6191 * utils.c (struct internal_problem)
6192 <user_settable_should_quit>: New field.
6193 <user_settable_should_dump_core>: Likewise
6194 (internal_error_problem): Add values for above new fields.
6195 (internal_warning_problem): Likewise.
6196 (demangler_warning_problem): New static global.
6197 (demangler_vwarning): New function.
6198 (demangler_warning): Likewise.
6199 (add_internal_problem_command): Selectively add commands.
6200 (_initialize_utils): New internal problem command.
6201 * maint.c (maintenance_demangler_warning): New function.
6202 (_initialize_maint_cmds): New command.
6203
17a40b44
TT
62042014-06-18 Tom Tromey <tromey@redhat.com>
6205
6206 * f-valprint.c (info_common_command_for_block): Update.
6207 * symtab.h (struct general_symbol_info) <common_block>: Now
6208 const.
6209
346d1dfe
TT
62102014-06-18 Tom Tromey <tromey@redhat.com>
6211
6212 * symtab.h (struct symtab) <blockvector>: Now const.
6213 * ada-lang.c (ada_add_global_exceptions): Update.
6214 * buildsym.c (augment_type_symtab): Update.
6215 * dwarf2read.c (dw2_lookup_symbol): Update.
6216 * jit.c (finalize_symtab): Update.
6217 * jv-lang.c (add_class_symtab_symbol): Update.
6218 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6219 Update.
6220 * objfiles.c (objfile_relocate1): Update.
6221 * psymtab.c (lookup_symbol_aux_psymtabs)
6222 (maintenance_check_psymtabs): Update.
6223 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6224 Update.
6225 * spu-tdep.c (spu_catch_start): Update.
6226 * symmisc.c (dump_symtab_1): Update.
6227 * symtab.c (lookup_global_symbol_from_objfile)
6228 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6229 (basic_lookup_transparent_type_quick)
6230 (basic_lookup_transparent_type, find_pc_sect_symtab)
6231 (find_pc_sect_line, search_symbols): Update.
6232 * block.c (find_block_in_blockvector): Make "bl" const.
6233 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6234 const.
6235 (blockvector_contains_pc): Make "bv" const.
6236 (block_for_pc_sect): Update.
6237 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6238 (blockvector_contains_pc): Update.
6239 * breakpoint.c (resolve_sal_pc): Update.
6240 * inline-frame.c (block_starting_point_at): Update.
6241
1834676b
TT
62422014-06-18 Tom Tromey <tromey@redhat.com>
6243
6244 * completer.c (complete_line): Make "line_buffer" const.
6245 * completer.h (complete_line): Update.
6246
ac1a991b
TT
62472014-06-18 Tom Tromey <tromey@redhat.com>
6248
6249 * symtab.c (add_macro_name): Remove unneeded cast.
6250
5bc98e52
TT
62512014-06-18 Tom Tromey <tromey@redhat.com>
6252
6253 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6254 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6255
8236def8
TT
62562014-06-18 Tom Tromey <tromey@redhat.com>
6257
6258 * probe.c (info_probes_for_ops): Make "arg" const.
6259 * probe.h (info_probes_for_ops): Update.
6260
3977b71f
TT
62612014-06-18 Tom Tromey <tromey@redhat.com>
6262
6263 * varobj.c (varobj_create): Update.
6264 * valops.c (value_of_this): Update.
6265 * tracepoint.c (add_local_symbols, scope_info): Update.
6266 * symtab.h (struct general_symbol_info) <block>: Now const.
6267 * symtab.c (skip_prologue_sal)
6268 (default_make_symbol_completion_list_break_on)
6269 (skip_prologue_using_sal): Update.
6270 * stack.h (iterate_over_block_locals)
6271 (iterate_over_block_local_vars): Update.
6272 * stack.c (print_frame_args): Update.
6273 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6274 parameter const.
6275 (get_selected_block): Make return type const.
6276 * python/py-frame.c (frapy_block): Update.
6277 * python/py-block.c (gdbpy_block_for_pc): Update.
6278 * p-exp.y (%union) <bval>: Now const.
6279 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6280 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6281 * m2-exp.y (%union) <bval>: Now const.
6282 * linespec.c (get_current_search_block): Make return type const.
6283 (create_sals_line_offset, find_label_symbols): Update.
6284 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6285 Update.
6286 (block_starting_point_at): Make "block" const.
6287 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6288 (check_exception_resume): Update.
6289 * guile/scm-frame.c (gdbscm_frame_block): Update.
6290 * guile/scm-block.c (gdbscm_lookup_block): Update.
6291 * frame.h (get_frame_block): Update.
6292 (get_selected_block): Make return type const.
6293 * frame.c (frame_id_inner): Update.
6294 * f-valprint.c (info_common_command_for_block)
6295 (info_common_command): Update.
6296 * dwarf2loc.c (dwarf2_find_location_expression)
6297 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6298 (locexpr_describe_location_piece): Update.
6299 * c-exp.y (%union) <bval>: Now const.
6300 * breakpoint.c (resolve_sal_pc): Update.
6301 * blockframe.c (get_frame_block):Make return type const.
6302 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6303 (block_innermost_frame): Update.
6304 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6305 (block_for_pc, block_for_pc_sect): Update.
6306 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6307 'pblock' const.
6308 (block_for_pc_sect, block_for_pc): Make return type const.
6309 * ax-gdb.c (gen_expr): Update.
6310 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6311 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6312 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6313 (ada_read_var_value): Update.
6314 * ada-exp.y (struct name_info) <block>: Now const.
6315 (%union): Likewise.
6316 (block_lookup): Constify.
6317
b9228891
GB
63182014-06-18 Gary Benson <gbenson@redhat.com>
6319
6320 * nat/i386-dregs.h: New file.
6321 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6322 * i386-nat.h (i386-dregs.h): New include.
6323 (DR_FIRSTADDR): Now in i386-dregs.h.
6324 (DR_LASTADDR): Likewise.
6325 (DR_NADDR): Likewise.
6326 (DR_STATUS): Likewise.
6327 (DR_CONTROL): Likewise.
6328 (i386_debug_reg_state): Likewise.
6329 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6330
a1aa2221
LM
63312014-06-18 Don Breazeal <donb@codesourcery.com>
6332
6333 * breakpoint.c (set_longjmp_breakpoint): Call
6334 momentary_breakpoint_from_master with additional argument.
6335 (set_longjmp_breakpoint_for_call_dummy): Call
6336 momentary_breakpoint_from_master with additional argument.
6337 (set_std_terminate_breakpoint): Call
6338 momentary_breakpoint_from_master with additional argument.
6339 (momentary_breakpoint_from_master): Add argument to function
6340 definition and use it to initialize structure member flag.
74228e77 6341 (clone_momentary_breakpoint): Call
a1aa2221
LM
6342 momentary_breakpoint_from_master with additional argument.
6343 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6344 member flags set in momentary_breakpoint_from_master.
6345
4be83cc2
GB
63462014-06-18 Gary Benson <gbenson@redhat.com>
6347
6348 * i386-nat.c (i386_show_dr): Renamed to
6349 i386_dr_show and made nonstatic. All uses updated.
6350 (i386_length_and_rw_bits): Renamed to
6351 i386_dr_length_and_rw_bits and made nonstatic.
6352 All uses updated.
6353 (i386_insert_aligned_watchpoint): Renamed to
6354 i386_dr_insert_aligned_watchpoint and made nonstatic.
6355 All uses updated.
6356 (i386_remove_aligned_watchpoint): Renamed to
6357 i386_dr_remove_aligned_watchpoint and made nonstatic.
6358 All uses updated.
6359 (i386_update_inferior_debug_regs): Renamed to
6360 i386_dr_update_inferior_debug_regs and made nonstatic.
6361 All uses updated.
6362
131aa0d4
GB
63632014-06-18 Gary Benson <gbenson@redhat.com>
6364
6365 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6366 (i386_dr_low_can_set_control): Likewise.
6367 (i386_dr_low_set_addr): Likewise.
6368 (i386_dr_low_set_control): Likewise.
6369 (i386_dr_low_get_addr): Likewise.
6370 (i386_dr_low_get_status): Likewise.
6371 (i386_dr_low_get_control): Likewise.
6372 (i386_insert_aligned_watchpoint): Use new macros.
6373 (i386_update_inferior_debug_regs): Likewise.
6374 (i386_stopped_data_address): Likewise.
6375
d9305f7f
GB
63762014-06-18 Gary Benson <gbenson@redhat.com>
6377
6378 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6379 New parameter. All uses updated.
6380
ea008da4
GB
63812014-06-18 Gary Benson <gbenson@redhat.com>
6382
6383 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6384 All uses updated.
6385
1b6d4134
GB
63862014-06-18 Gary Benson <gbenson@redhat.com>
6387
6388 * i386-nat.c (debug_printf): New macro.
6389 (i386_get_debug_register_length): Likewise.
6390 (TARGET_HAS_DR_LEN_8): Use above macro.
6391 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6392 and printf_unfiltered. Use phex to format values.
6393
9b4550ef
GB
63942014-06-18 Gary Benson <gbenson@redhat.com>
6395
6396 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6397 Make const.
6398
6e62758f
GB
63992014-06-18 Gary Benson <gbenson@redhat.com>
6400
6401 * i386-nat.c: Comment changes.
6402
51c79e94
GB
64032014-06-18 Gary Benson <gbenson@redhat.com>
6404
6405 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6406
3e11889a
GB
64072014-06-18 Gary Benson <gbenson@redhat.com>
6408
6409 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6410 (i386_insert_aligned_watchpoint): Likewise.
6411 (i386_remove_aligned_watchpoint): Likewise.
6412 (i386_handle_nonaligned_watchpoint): Likewise.
6413
fc6e2f03
GB
64142014-06-18 Gary Benson <gbenson@redhat.com>
6415
6416 * i386-nat.c: Whitespace changes.
6417
2afe7d50
SB
64182014-06-17 Samuel Bronson <naesten@gmail.com>
6419
6420 * MAINTAINERS: Update Roland McGrath's email address.
6421 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6422 Red Hat a while ago, and giving me a current address.
2afe7d50 6423
3bca49ee
TT
64242014-06-17 Tom Tromey <tromey@redhat.com>
6425
6426 * utils.h (savestring): Remove declaration.
6427
6e366df1
TT
64282014-06-17 Tom Tromey <tromey@redhat.com>
6429
6430 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6431
6be47f0c
KS
64322014-06-16 Keith Seitz <keiths@redhat.com>
6433
6434 PR mi/15863
6435 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6436 to update the varobj if inferior_ptid is null_ptid.
6437
7bc112c1
TT
64382014-06-16 Tom Tromey <tromey@redhat.com>
6439
6440 * target.h (struct target_ops) <to_info_proc>: Make parameter
6441 const.
6442 (target_info_proc): Update.
6443 * target.c (target_info_proc): Make "args" const.
6444 * procfs.c (procfs_info_proc): Update.
6445 * linux-tdep.c (linux_info_proc): Update.
6446 (linux_core_info_proc_mappings): Make "args" const.
6447 (linux_core_info_proc): Update.
6448 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6449 * gdbarch.c: Rebuild.
6450 * gdbarch.h: Rebuild.
6451 * corelow.c (core_info_proc): Update.
6452
fee354ee
TT
64532014-06-16 Tom Tromey <tromey@redhat.com>
6454
6455 * target.h (struct target_ops) <to_disconnect>: Make parameter
6456 const.
6457 (target_disconnect): Update.
6458 * target.c (target_disconnect): Make "args" const.
6459 * target-delegates.c: Rebuild.
6460 * remote.c (remote_disconnect): Update.
6461 * record.h (record_disconnect): Update.
6462 * record.c (record_disconnect): Update.
6463 * inf-child.c (inf_child_disconnect): Update.
6464
a30bf1f1
TT
64652014-06-16 Tom Tromey <tromey@redhat.com>
6466
6467 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6468 * target.c (debug_to_rcmd, default_rcmd): Update.
6469 * target-delegates.c: Rebuild.
6470 * remote.c (remote_rcmd): Update.
6471 * monitor.c (monitor_rcmd): Update.
6472
d03de421
PA
64732014-06-16 Pedro Alves <palves@redhat.com>
6474
6475 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6476 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6477 have OBJF_SHARED set.
6478 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6479 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6480 instead of OBJF_USERLOADED.
6481 * objfiles.h (OBJF_SHARED): Update comment.
6482 (userloaded_objfile_contains_address_p): Rename to ...
6483 (shared_objfile_contains_address_p): ... this, and update
6484 comments.
6485 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6486 new objfile.
6487 (remove_symbol_file_command): Skip objfiles that don't have
6488 OBJF_SHARED set.
6489
99f4262f
TT
64902014-06-16 Tom Tromey <tromey@redhat.com>
6491
6492 * minsyms.h (prim_record_minimal_symbol)
6493 (prim_record_minimal_symbol_and_info): Update comments.
6494
97d66cc6
EZ
64952014-06-14 Eli Zaretskii <eliz@gnu.org>
6496
6497 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6498 or --without-guile, according to how GDB was built.
6499
635c7e8a
TT
65002014-06-13 Tom Tromey <tromey@redhat.com>
6501
6502 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6503 to help_list.
6504 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6505 to help_list.
6506 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6507 help_list.
6508 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6509 help_list.Pass all_commands, not -1, to help_list.
6510 * cli/cli-dump.c (dump_command, append_command)
6511 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6512 (binary_dump_command, binary_append_command): Pass all_commands,
6513 not -1, to help_list.
6514 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6515 -1, to help_list.
6516 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6517 -1, to help_list.
6518 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6519 help_list.
6520 * top.c (set_history): Pass all_commands, not -1, to help_list.
6521 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6522 all_commands, not -1, to help_list.
6523 * symfile.c (overlay_command): Pass all_commands, not -1, to
6524 help_list.
6525 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6526 help_list.
6527 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6528 help_list.
6529 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6530 -1, to help_list.
6531 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6532 not -1, to help_list.
6533 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6534 not -1, to help_list.
6535 * maint.c (maintenance_command, maintenance_info_command)
6536 (maintenance_print_command, maintenance_set_cmd): Pass
6537 all_commands, not -1, to help_list.
6538 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6539 help_list.
6540 * language.c (set_check): Pass all_commands, not -1, to help_list.
6541 * infcmd.c (unset_command): Pass all_commands, not -1, to
6542 help_list.
6543 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6544 help_list.
6545 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6546 help_list.
6547 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6548 help_list.
6549 * breakpoint.c (save_command): Pass all_commands, not -1, to
6550 help_list.
6551 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6552 all_commands, not -1, to help_list.
6553
b94ade42
PL
65542014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6555
6556 * regcache.c (struct register_to_invalidate): New structure.
6557 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6558 functions.
6559 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6560
31f628ae
YQ
65612014-06-12 Yao Qi <yao@codesourcery.com>
6562
6563 * varobj.c (varobj_get_num_children): Call
6564 varobj_is_dynamic_p.
6565 (varobj_list_children): Likewise.
6566 (varobj_update): Likewise. Update comments.
6567
cde5ef40
YQ
65682014-06-12 Yao Qi <yao@codesourcery.com>
6569
6570 * varobj.c (varobj_pretty_printed_p): Rename to ...
6571 (varobj_is_dynamic_p): ... this. New function.
6572 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6573 (varobj_is_dynamic_p): Declare.
6574 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6575 (mi_print_value_p, varobj_update_one): Likewise.
6576
576ea091
YQ
65772014-06-12 Pedro Alves <pedro@codesourcery.com>
6578 Yao Qi <yao@codesourcery.com>
6579
6580 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6581 (varobj_get_iterator): Wrap up code for pretty-printer by
6582 "#if HAVE_PYTHON" and "#endif".
6583 (update_dynamic_varobj_children): Likewise.
6584
827f100c
YQ
65852014-06-12 Pedro Alves <pedro@codesourcery.com>
6586 Yao Qi <yao@codesourcery.com>
6587
6588 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6589 gdb_python_initialized is false. Move some code from varobj.c.
6590 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6591 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6592 (struct varobj_item): Moved to varobj-iter.h".
6593 (varobj_clear_saved_item): New function.
6594 (update_dynamic_varobj_children): Move python-related code to
6595 py-varobj.c.
6596 (free_variable): Call varobj_clear_saved_item and
6597 varobj_iter_delete.
6598
e5250216
YQ
65992014-06-12 Pedro Alves <pedro@codesourcery.com>
6600 Yao Qi <yao@codesourcery.com>
6601
6602 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6603 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6604 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6605 (py-varobj.o): New rule.
6606 * python/py-varobj.c: New file.
6607 * python/python-internal.h (py_varobj_get_iterator): Declare.
6608 * varobj-iter.h: New file.
6609 * varobj.c: Include "varobj-iter.h"
6610 (struct varobj) <child_iter>: Change its type from "PyObject *"
6611 to "struct varobj_iter *".
6612 <saved_item>: Likewise.
6613 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6614 [HAVE_PYTHON] (varobj_get_iterator): New function.
6615 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6616 python-specific code to python/py-varobj.c.
6617 (install_visualizer): Call varobj_iter_delete instead of
6618 Py_XDECREF.
6619 * varobj.h (varobj_ensure_python_env): Declare.
6620
5a2e0d6e
YQ
66212014-06-12 Yao Qi <yao@codesourcery.com>
6622
6623 * varobj.c (struct varobj_item): New structure.
6624 (create_child_with_value): Update declaration.
6625 (varobj_add_child): Replace arguments 'name' and 'value' with
6626 'item'. All callers updated.
6627 (install_dynamic_child): Likewise.
6628 (update_dynamic_varobj_children): Likewise.
6629 (varobj_add_child): Likewise.
6630 (create_child_with_value): Likewise.
6631
919b9a93
JB
66322014-06-11 Joel Brobecker <brobecker@adacore.com>
6633
6634 * NEWS: Create a new section for the next release branch.
6635 Rename the section of the current branch, now that it has
6636 been cut.
6637
71a55bdf
JB
66382014-06-11 Joel Brobecker <brobecker@adacore.com>
6639
6640 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6641 * version.in: Bump version to 7.8.50.DATE-cvs.
6642
364fe1f7
PA
66432014-06-11 Pedro Alves <palves@redhat.com>
6644
6645 PR remote/17028
6646 * ser-mingw.c (net_windows_socket_check_pending): New function.
6647 (net_windows_select_thread): Ignore spurious wakeups. Use
6648 net_windows_socket_check_pending.
6649 (net_windows_wait_handle): Check for pending events with
6650 ioctlsocket, through net_windows_socket_check_pending, instead of
6651 checking the socket's event.
6652
5a6c7709
SC
66532014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6654
6655 * python/python-internal.h (gdb_PyObject_GetAttrString)
6656 (gdb_PyObject_HasAttrString): New inline function definitions.
6657 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6658 char * of the second argument to PyObject_GetAttrString.
74228e77 6659
0e58ee40
JB
66602014-06-10 Joel Brobecker <brobecker@adacore.com>
6661
6662 * serial.c (serial_write): Fix index of character to be printed
6663 in call to serial_logchar when serial debug traces are enabled.
6664
d190df30
JB
66652014-06-10 Joel Brobecker <brobecker@adacore.com>
6666
6667 * gdbtypes (resolve_dynamic_range): Add function description.
6668
b4b01d36
PA
66692014-06-09 Pedro Alves <palves@redhat.com>
6670
6671 * linux-nat.c (linux_child_follow_fork): Initialize status with
6672 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6673 inner block. Only pass the signal to PTRACE_DETACH if in pass
6674 state.
6675
3657956b
GB
66762014-06-09 Gary Benson <gbenson@redhat.com>
6677
6678 * common/signals.c (gdb_signal_from_host): Reorder to separate
6679 the always-available ANSI-standard signals from the signals that
6680 require checking.
6681 (do_gdb_signal_to_host): Likewise.
6682 * proc-events.c (signal_table): Likewise.
6683
c077881a
HZ
66842014-06-08 Hui Zhu <hui@codesourcery.com>
6685
6686 * common/linux-ptrace.c (linux_disable_event_reporting): New
6687 function.
6688 * common/linux-ptrace.h (linux_disable_event_reporting): New
6689 declaration.
6690 * linux-nat.c (linux_child_follow_fork): Do a single step before
6691 detach.
6692
4186eb54
KS
66932014-06-07 Keith Seitz <keiths@redhat.com>
6694
6695 Revert:
6696 PR c++/16253
6697 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6698 from symbol_matches_domain in symtab.c. All local callers
6699 of symbol_matches_domain updated.
6700 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6701 search STRUCT_DOMAIN.
6702 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6703 independently. standard_lookup will do that automatically.
6704 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6705 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6706 (cp_lookup_symbol_in_namespace): Likewise.
6707 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6708 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6709 may return a STRUCT_DOMAIN match.
6710 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6711 * cp-support.c: Include language.h.
6712 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6713 VAR_DOMAIN.
6714 * psymtab.c (match_partial_symbol): Compare the requested
6715 domain with the symbol's domain directly.
6716 (lookup_partial_symbol): Likewise.
6717 * symtab.c (lookup_symbol_in_language): Explain when/why
6718 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6719 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6720 appropriate languages.
6721 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6722 and moved to ada-lang.c
6723 (lookup_block_symbol): Explain that this function only returns
6724 symbol matching the requested DOMAIN.
6725 Compare the requested domain with the symbol's domain directly.
6726 (iterate_over_symbols): Compare the requested domain with the
6727 symbol's domain directly.
6728 * symtab.h (symbol_matches_domain): Remove.
6729
25326a28 67302014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6731
6732 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6733 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6734 (gdbscm_guile_version_is_at_least): Declare.
6735 (gdbscm_scm_string_to_int): Declare.
6736 * guile/guile.c (gdbscm_guile_major_version): New global.
6737 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6738 (guile_datadir): New static global.
6739 (gdbscm_guile_data_directory): New function.
6740 (initialize_scheme_side): Update.
6741 (misc_guile_functions): Add guile-data-directory.
6742 (initialize_gdb_module): Fetch guile version number.
6743 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6744 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6745 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6746 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6747 comments.
6748 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6749 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6750 * guile/scm-value.c (gdbscm_value_to_string): Only call
6751 scm_port_conversion_strategy if Guile version >= 2.0.6.
6752
0a770bb2 67532014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6754
6755 * main.c (print_gdb_help): Add -q and --silent.
6756
73ba372c
GB
67572014-06-06 Gary Benson <gbenson@redhat.com>
6758
6759 * common/signals.c: Remove preprocessor conditionals for
6760 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6761 SIGSEGV and SIGTERM.
6762 * proc-events.c: Likewise.
6763
c33b2f12
MM
67642014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6765
6766 * symfile.c (symfile_free_objfile): Remove restriction to
6767 OBJF_USERLOADED.
6768 * symfile-mem.c (symbol_file_add_from_memory): Call
6769 add_target_sections_of_objfile.
6770
fb934770
LC
67712014-06-05 Ludovic Courtès <ludo@gnu.org>
6772
6773 * guile/scm-value.c (gdbscm_history_append_x): Use
6774 'vlscm_get_value_smob_arg_unsafe' instead of
6775 'vlscm_scm_to_value'.
6776
6ef284bd
SM
67772014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6778
6779 PR mi/15806
6780 * utils.c (printchar): Don't escape at all if quoter is NUL.
6781 Update function documentation to clarify effect of parameter
6782 QUOTER.
6783 * remote.c (escape_buffer): Pass '\\' as the quoter to
6784 fputstrn_unfiltered.
6785 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6786 generate the output.
6787 (mi_solib_unloaded): Same.
6788
270c9937
JB
67892014-06-05 Joel Brobecker <brobecker@adacore.com>
6790
6791 * development.sh: Delete.
6792 * Makefile.in (config.status): Adjust dependency on development.sh.
6793 * configure.ac: Adjust development.sh source call.
6794 * configure: Regenerate.
6795
16f691fb
DE
67962014-06-04 Doug Evans <xdje42@gmail.com>
6797
6798 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6799 is_scheme_bkpt, spec.
6800 (bpscm_make_breakpoint_smob): Initialize new members.
6801 (gdbscm_create_breakpoint_x): Split into two ...
6802 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6803 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6804 (scheme_function breakpoint_functions): Update.
6805 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6806 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6807 register-breakpoint!.
6808
ef7cab6b
JB
68092014-06-04 Joel Brobecker <brobecker@adacorer.com>
6810
6811 PR server/17023
6812 * mem-break.c (z_type_supported): Return zero if
6813 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6814
012370f6
TT
68152014-06-04 Tom Tromey <tromey@redhat.com>
6816
6817 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6818 value_from_contents_and_address_unresolved.
6819 (ada_template_to_fixed_record_type_1): Likewise.
6820 (ada_which_variant_applies): Likewise.
6821 * value.h (value_from_contents_and_address_unresolved): Declare.
6822 * value.c (value_from_contents_and_address_unresolved): New
6823 function.
6824 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6825 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6826 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6827
92e2a17f
TT
68282014-06-04 Tom Tromey <tromey@redhat.com>
6829
6830 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6831
c0939df1
TT
68322014-06-04 Tom Tromey <tromey@redhat.com>
6833
6834 * procfs.c (procfs_attach): Make "args" const.
6835 * windows-nat.c (windows_attach): Make "args" const.
6836 * nto-procfs.c (procfs_attach): Make "args" const.
6837 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6838 * go32-nat.c (go32_attach): Make "args" const.
6839 * gnu-nat.c (gnu_attach): Make "args" const.
6840 * darwin-nat.c (darwin_attach): Make "args" const.
6841 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6842 * linux-nat.c (linux_nat_attach): Make "args" const.
6843 * remote.c (extended_remote_attach_1, extended_remote_attach):
6844 Make "args" const.
6845 * target.h (struct target_ops) <to_attach>: Make "args" const.
6846 (find_default_attach): Likewise.
6847 * utils.c (parse_pid_to_attach): Make "args" const.
6848 * utils.h (parse_pid_to_attach): Update.
6849
8eaff7cd
TT
68502014-06-04 Tom Tromey <tromey@redhat.com>
6851
6852 * target-delegates.c: Rebuild.
6853 * target.c (default_thread_address_space): New function.
6854 (target_thread_address_space): Simplify.
6855 * target.h (struct target_ops) <to_thread_address_space>: Add
6856 TARGET_DEFAULT_FUNC.
6857
1913f160
DE
68582014-06-04 Doug Evans <xdje42@gmail.com>
6859
6860 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6861
70ad5bff
MM
68622014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6863
6864 * record-btrace.c: Include event-loop.h and inf-loop.h.
6865 (record_btrace_resume_exec_dir)
6866 (record_btrace_async_inferior_event_handler)
6867 (record_btrace_handle_async_inferior_event): New.
6868 (record_btrace_open): Create async event handler.
6869 (record_btrace_close): Delete async event handler.
6870 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6871 Mark async event handler.
6872 (record_btrace_execution_direction): New.
6873 (init_record_btrace_ops): Initialize to_execution_direction.
6874
b6210538
DE
68752014-06-03 Doug Evans <xdje42@gmail.com>
6876
6877 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6878 (gdbscm_make_parameter): Ditto.
6879
a5b1fd27
DE
68802014-06-03 Doug Evans <dje@google.com>
6881
6882 * exec.c (exec_close_1): Call clear_section_table instead of
6883 resize_section_table.
6884 (clear_section_table): New function.
6885 (resize_section_table): Make static. Rename arg num_added to
6886 adjustment.
6887 * exec.h (clear_section_table): Declare.
6888 (resize_section_table): Delete.
6889 * progspace.c (release_program_space): Call clear_section_table
6890 instead of resize_section_table.
6891
0c6e92a5
SC
68922014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6893
6894 * NEWS (Python Scripting): Add entry about the new xmethods
6895 feature.
6896
883964a7
SC
68972014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6898
6899 * python/py-xmethods.c: New file.
6900 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6901 (objfpy_dealloc): XDECREF on the new xmethods field.
6902 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6903 field.
6904 (objfpy_get_xmethods): New function.
6905 (objfile_getset): New entry 'xmethods'.
6906 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6907 (pspy_dealloc): XDECREF on the new xmethods field.
6908 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6909 field.
6910 (pspy_get_xmethods): New function.
6911 (pspace_getset): New entry 'xmethods'.
6912 * python/python-internal.h: Add declarations for new functions.
6913 * python/python.c (_initialize_python): Invoke
6914 gdbpy_initialize_xmethods.
6915 * python/lib/gdb/__init__.py (xmethods): New
6916 attribute.
6917 * python/lib/gdb/xmethod.py: New file.
6918 * python/lib/gdb/command/xmethods.py: New file.
6919
58992dc5
SC
69202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6921
6922 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6923 best match method returned by find_overload_match is an xmethod.
6924 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6925 the best matching operator returned by find_overload_match is an
6926 xmethod.
6927 * valops.c: #include "extension.h".
6928 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6929 Return void. The list of matching source methods is returned in
6930 "fn_list" and a vector of matching debug method workers is
6931 returned in "xm_worker_vec". Update all callers.
6932 (value_find_oload_method_list): Likewise.
6933 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6934 non-NULL, then the index of the best matching method in this
6935 vector is returned. Update all callers.
6936 (find_overload_match): Include xmethods while performing overload
6937 resolution.
6938
e81e7f5e
SC
69392014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6940
6941 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6942 * extension-priv.h (struct extension_language_ops): Add the
6943 xmethod interface.
6944 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6945 get_matching_xmethod_workers, get_xmethod_argtypes,
6946 invoke_xmethod, free_xmethod_worker,
6947 free_xmethod_worker_vec): New functions.
6948 * extension.h: #include "common/vec.h".
6949 New function declarations.
6950 (struct xmethod_worker): New struct.
6951 (VEC (xmethod_worker_ptr)): New vector type.
6952 (xmethod_worker_ptr): New typedef.
6953 (xmethod_worker_vec): Likewise.
6954 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6955 builtin_type.
6956 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6957 (struct builtin_type): New field "xmethod".
6958 * valarith.c (value_ptradd): Assert that the value argument is not
6959 lval_xcallable.
6960 * valops.c (value_must_coerce_to_target): Return 0 for
6961 lval_xcallable values.
6962 * value.c (struct value): New field XM_WORKER in the field
6963 LOCATION.
6964 (value_address, value_raw_address): Return 0 for lval_xcallable
6965 values.
6966 (set_value_address): Assert that the value is not an
6967 lval_xcallable.
6968 (value_free): Free the associated xmethod worker when freeing
6969 lval_xcallable values.
6970 (set_value_component_location): Assert that the WHOLE value is not
6971 lval_xcallable.
6972 (value_of_xmethod, call_xmethod): New functions.
6973 * value.h: Declare "struct xmethod_worker".
6974 Declare new functions value_of_xmethod, call_xmethod.
6975
ef370185
JB
69762014-06-03 Joel Brobecker <brobecker@adacore.com>
6977 Pedro Alves <palves@redhat.com>
6978
6979 PR breakpoints/17000
6980 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6981 New function, extracted from software_breakpoint_inserted_here_p.
6982 (software_breakpoint_inserted_here_p): Replace factored out code
6983 by call to find_non_raw_software_breakpoint_inserted_here.
6984 (bp_target_info_copy_insertion_state): New function.
6985 (bkpt_insert_location): Handle the case of a single-step
6986 breakpoint already inserted at the same address.
6987 (bkpt_remove_location): Handle the case of a single-step
6988 breakpoint still inserted at the same address.
6989 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6990 breakpoint already inserted at the same address.
6991 (deprecated_remove_raw_breakpoint): Handle the case of a
6992 non-raw breakpoint still inserted at the same address.
6993 (find_single_step_breakpoint): New function, extracted from
6994 single_step_breakpoint_inserted_here_p.
6995 (find_single_step_breakpoint): New function,
6996 factored out from single_step_breakpoint_inserted_here_p.
6997 (single_step_breakpoint_inserted_here_p): Reimplement.
6998
1e2ccb61
BM
69992014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7000
7001 Pushed by Joel Brobecker <brobecker@adacore.com>
7002 * source.c (show_substitute_path_command): Fix display of matching
7003 substitution rules.
7004
d3448d85
GB
70052014-06-03 Gary Benson <gbenson@redhat.com>
7006
7007 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7008
06eb1586
DE
70092014-06-02 Doug Evans <xdje42@gmail.com>
7010
7011 Add parameter support for Guile.
7012 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7013 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7014 (scm-param.o): New rule.
7015 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7016 (gdbscm_misc_error): Declare.
7017 (gdbscm_canonicalize_command_name): Declare.
7018 (gdbscm_scm_to_host_string): Declare.
7019 (gdbscm_scm_from_host_string): Declare.
7020 (gdbscm_initialize_parameters): Declare.
7021 * guile/guile.c (initialize_gdb_module): Call
7022 gdbscm_initialize_parameters.
7023 * guile/lib/gdb.scm: Export parameter symbols.
7024 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7025 cmdscm_canonicalize_name and made public. All callers updated.
7026 * guile/scm-exception.c (gdbscm_misc_error): New function.
7027 * guile/scm-param.c: New file.
7028 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7029 (gdbscm_scm_to_host_string): New function.
7030 (gdbscm_scm_from_host_string): New function.
7031 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7032
e698b8c4
DE
70332014-06-02 Doug Evans <xdje42@gmail.com>
7034
7035 Add command support for Guile.
7036 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7037 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7038 (scm-cmd.o): New rule.
7039 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7040 (gdbscm_user_error_p): Declare.
7041 (gdbscm_parse_command_name): Declare.
7042 (gdbscm_valid_command_class_p): Declare.
7043 (gdbscm_initialize_commands): Declare.
7044 * guile/guile.c (initialize_gdb_module): Call
7045 gdbscm_initialize_commands.
7046 * guile/lib/gdb.scm: Export command symbols.
7047 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7048 (throw-user-error): New function.
7049 * guile/scm-cmd.c: New file.
7050 * guile/scm-exception.c (user_error_symbol): New static global.
7051 (gdbscm_user_error_p): New function.
7052 (gdbscm_initialize_exceptions): Set user_error_symbol.
7053 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7054
fb1f94b0
PM
70552014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7056
7057 * top.c (command_loop): Handle comments here...
7058 (command_line_input): ... not here.
7059
ded03782
DE
70602014-06-02 Doug Evans <xdje42@gmail.com>
7061
7062 Add progspace support for Guile.
7063 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7064 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7065 (scm-progspace.o): New rule.
7066 * guile/guile-internal.h (pspace_smob): New typedef.
7067 (psscm_pspace_smob_pretty_printers): Declare.
7068 (psscm_pspace_smob_from_pspace): Declare.
7069 (psscm_scm_from_pspace): Declare.
7070 * guile/guile.c (initialize_gdb_module): Call
7071 gdbscm_initialize_pspaces.
7072 * guile/lib/gdb.scm: Export progspace symbols.
7073 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7074 support.
7075 (append-pretty-printer!): Ditto.
7076 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7077 Implement.
7078 * guile/scm-progspace.c: New file.
7079
397998fc
AM
70802014-06-03 Alan Modra <amodra@gmail.com>
7081
7082 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7083 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7084
6aa5f3a6
DE
70852014-06-02 Doug Evans <dje@google.com>
7086
7087 Add support for skeletonless type units.
7088 * dwarf2read.c (struct dwarf2_per_objfile): New member
7089 n_allocated_type_units.
7090 (struct dwarf2_per_objfile) <tu_stats>: New member
7091 nr_all_type_units_reallocs.
7092 (create_signatured_type_table_from_index): Initialize
7093 n_allocated_type_units
7094 (create_all_type_units): Ditto.
7095 (add_type_unit): Move up in file. New arg slot.
7096 All callers updated. Increase space for all_type_units more
7097 efficiently.
7098 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7099 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7100 (lookup_dwp_signatured_type): Ditto.
7101 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7102 All callers updated.
7103 (build_type_psymtabs_1): Leave type_unit_groups as
7104 NULL if no TUs present.
7105 (print_tu_stats): New function.
7106 (process_skeletonless_type_unit): New function.
7107 (process_dwo_file_for_skeletonless_type_units): New
7108 function.
7109 (process_skeletonless_type_units): New function.
7110 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7111 Call print tu_stats if debugging enabled.
7112
41fac0cf
PA
71132014-06-02 Pedro Alves <palves@redhat.com>
7114
7115 * breakpoint.c (build_target_command_list): Don't build a command
7116 list if we have any duplicate location that isn't a dprintf.
7117
cd1608cc
PA
71182014-06-02 Pedro Alves <palves@redhat.com>
7119
7120 * breakpoint.c (dprintf_breakpoint_hit): New function.
7121 (initialize_breakpoint_ops): Install it as dprintf's
7122 breakpoint_hit method.
7123
486ef3b9
JB
71242014-06-02 Joel Brobecker <brobecker@adacore.com>
7125
7126 * source.c (substitute_path_rule_matches): Simplify using
7127 filename_ncmp instead of FILENAME_CMP.
7128
230cd560
JB
71292014-06-02 Joel Brobecker <brobecker@adacore.com>
7130
7131 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7132
16954d5d
LC
71332014-06-01 Ludovic Courtès <ludo@gnu.org>
7134
7135 * configure.ac: When Guile is available, check for the
7136 availability of 'scm_new_smob'.
7137 * configure, config.h.in: Regenerate.
7138 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7139 function.
7140
53e8a631
AB
71412014-05-30 Andrew Burgess <aburgess@broadcom.com>
7142
7143 * frame.c (struct frame_info): Add stop_string field.
7144 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7145 (get_prev_frame_always): Old content moved into
7146 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7147 TRY_CATCH, handle MEMORY_ERROR exceptions.
7148 (frame_stop_reason_string): New function definition.
7149 * frame.h (unwind_stop_reason_to_string): Extend comment to
7150 mention frame_stop_reason_string.
7151 (frame_stop_reason_string): New function declaration.
7152 * stack.c (frame_info): Switch to frame_stop_reason_string.
7153 (backtrace_command_1): Switch to frame_stop_reason_string.
7154 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7155 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7156 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7157
70e38b8e
AB
71582014-05-30 Andrew Burgess <aburgess@broadcom.com>
7159
7160 * frame.c (frame_stop_reason_string): Rename to ...
7161 (unwind_stop_reason_to_string): this.
7162 * frame.h (frame_stop_reason_string): Rename to ...
7163 (unwind_stop_reason_to_string): this.
7164 * stack.c (frame_info): Update call to frame_stop_reason_string.
7165 (backtrace_command_1): Likewise.
7166 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7167 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7168
938f0e2f
AB
71692014-05-30 Andrew Burgess <aburgess@broadcom.com>
7170
7171 * frame.c (remove_prev_frame): New function.
7172 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7173 remove_prev_frame.
7174
a09dd441
PA
71752014-05-29 Pedro Alves <palves@redhat.com>
7176
7177 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7178 and make it const. When a single-step decays to a continue,
7179 clear 'step', not 'hw_step'. Pass whether the caller wanted
7180 to step to user_visible_resume_ptid, not what we ask the
7181 target to do.
7182
bdc36728
PA
71832014-05-29 Pedro Alves <palves@redhat.com>
7184
7185 * infrun.c (process_event_stop_test, handle_step_into_function)
7186 (handle_step_into_function_backward): Adjust.
7187 Don't set the even thread's stop_step and call stop_waiting before
7188 calling end_stepping_range. Instead do that ...
7189 (end_stepping_range): ... here. Take an ecs pointer parameter.
7190
22bcd14b
PA
71912014-05-29 Pedro Alves <palves@redhat.com>
7192
7193 * infrun.c (stop_stepping): Rename to ...
7194 (stop_waiting): ... this.
7195 (proceed): Update comment.
7196 (process_event_stop_test, handle_inferior_event)
7197 (handle_signal_stop, handle_step_into_function)
7198 (handle_step_into_function_backward): Update.
7199
4ae57c05
PA
72002014-05-29 Pedro Alves <palves@redhat.com>
7201
7202 * infcall.c (run_inferior_call): Don't check whether the current
7203 thread is running after the proceed call.
7204
329ea579
PA
72052014-05-29 Pedro Alves <palves@redhat.com>
7206 Tom Tromey <tromey@redhat.com>
7207
7208 * NEWS: Mention "maint set target-async", "set mi-async", and that
7209 background execution commands are now always available.
7210 * target.h (target_async_permitted): Update comment.
7211 * target.c (target_async_permitted, target_async_permitted_1):
7212 Default to 1.
7213 (set_target_async_command): Rename to ...
7214 (maint_set_target_async_command): ... this.
7215 (show_target_async_command): Rename to ...
7216 (maint_show_target_async_command): ... this.
7217 (_initialize_target): Adjust.
7218 * infcmd.c (prepare_execution_command): Make extern.
7219 * inferior.h (prepare_execution_command): Declare.
7220 * infrun.c (set_observer_mode): Leave target async alone.
7221 * mi/mi-interp.c (mi_interpreter_init): Install
7222 mi_on_sync_execution_done as sync_execution_done observer.
7223 (mi_on_sync_execution_done): New function.
7224 (mi_execute_command_input_handler): Don't print the prompt if we
7225 just started a synchronous command with an async target.
7226 (mi_on_resume): Check sync_execution before printing prompt.
7227 * mi/mi-main.h (mi_async_p): Declare.
7228 * mi/mi-main.c: Include gdbcmd.h.
7229 (mi_async_p): New function.
7230 (mi_async, mi_async_1): New globals.
7231 (set_mi_async_command, show_mi_async_command, mi_async): New
7232 functions.
7233 (exec_continue): Call prepare_execution_command.
7234 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7235 (mi_execute_async_cli_command): Use mi_async_p.
7236 (_initialize_mi_main): Install "set mi-async". Make
7237 "target-async" a deprecated alias.
7238
92bcb5f9
PA
72392014-05-29 Pedro Alves <palves@redhat.com>
7240
7241 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7242 (_initialize_cli_interp): Adjust.
7243 * event-loop.c: Include "observer.h".
7244 (start_event_loop): Notify 'command_error' observers instead of
7245 calling display_gdb_prompt. Remove FIXME comment.
7246 * event-top.c (display_gdb_prompt): Remove call into the
7247 interpreters.
7248 * inf-loop.c: Include "observer.h".
7249 (inferior_event_handler): Notify 'command_error' observers instead
7250 of calling display_gdb_prompt.
7251 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7252 observers instead of calling display_gdb_prompt.
7253 * interps.c (interp_set): Don't call display_gdb_prompt.
7254 (current_interp_display_prompt_p): Delete.
7255 * interps.h (interp_prompt_p): Delete declaration.
7256 (interp_prompt_p_ftype): Delete.
7257 (struct interp_procs) <prompt_proc_p>: Delete field.
7258 (current_interp_display_prompt_p): Delete declaration.
7259 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7260 (_initialize_mi_interp): Adjust.
7261 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7262 'command_error' observers.
7263 (tui_on_sync_execution_done, tui_on_command_error): New
7264 functions.
7265 (tui_display_prompt_p): Delete.
7266 (_initialize_tui_interp): Adjust.
7267
fd664c91
PA
72682014-05-29 Pedro Alves <palves@redhat.com>
7269
7270 PR gdb/13860
7271 * cli/cli-interp.c: Include infrun.h and observer.h.
7272 (cli_uiout, cli_interp): New globals.
7273 (cli_on_signal_received, cli_on_end_stepping_range)
7274 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7275 functions.
7276 (cli_interpreter_init): Install them as 'end_stepping_range',
7277 'signal_received' 'signal_exited', 'exited' and 'no_history'
7278 observers.
7279 (_initialize_cli_interp): Remove cli_interp local.
7280 * infrun.c (handle_inferior_event): Call the several stop reason
7281 observers instead of printing the stop reason directly.
7282 (end_stepping_range): New function.
7283 (print_end_stepping_range_reason, print_signal_exited_reason)
7284 (print_exited_reason, print_signal_received_reason)
7285 (print_no_history_reason): Make static, and add an uiout
7286 parameter. Print to that instead of to CURRENT_UIOUT.
7287 * infrun.h (print_end_stepping_range_reason)
7288 (print_signal_exited_reason, print_exited_reason)
7289 (print_signal_received_reason print_no_history_reason): New
7290 declarations.
7291 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7292 'mi_uiout'.
7293 <cli_uiout>: New field.
7294 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7295 uiout for CLI output. Install 'signal_received',
7296 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7297 observers.
7298 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7299 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7300 (mi_on_no_history): New functions.
7301 (ui_out_free_cleanup): Delete function.
7302 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7303 instead use the one already stored in the MI interpreter data.
7304 (mi_ui_out): Adjust.
7305 * tui/tui-interp.c: Include infrun.h and observer.h.
7306 (tui_interp): New global.
7307 (tui_on_signal_received, tui_on_end_stepping_range)
7308 (tui_on_signal_exited, tui_on_exited)
7309 (tui_on_no_history): New functions.
7310 (tui_init): Install them as 'end_stepping_range',
7311 'signal_received' 'signal_exited', 'exited' and 'no_history'
7312 observers.
7313 (_initialize_tui_interp): Delete tui_interp local.
7314
8817a6f2
PA
73152014-05-29 Pedro Alves <palves@redhat.com>
7316
7317 PR gdb/15713
7318 * linux-nat.c (linux_nat_resume_callback): Rename the second
7319 parameter to 'except'. Skip LP if it points to EXCEPT.
7320 (linux_nat_resume): Don't mark the event lwp as not stopped
7321 before resuming sibling lwps. Instead ask
7322 linux_nat_resume_callback to skip the event lwp. Mark it as not
7323 stopped after actually resuming it.
7324 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7325 resuming it.
7326 (wait_lwp): Mark the lwp as stopped here.
7327 (stop_wait_callback): Mark the lwp as not stopped right after
7328 resuming it. Don't mark lwps as stopped here.
7329 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7330 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7331
251bde03
PA
73322014-05-29 Pedro Alves <palves@redhat.com>
7333
7334 PR PR15693
7335 * infrun.c (resume): Determine how much to resume depending on
7336 whether the caller wanted a step, not whether we can hardware step
7337 the target. Mark all threads that we intend to run as running,
7338 unless we're calling an inferior function.
7339 (normal_stop): If the thread is running an infcall, don't finish
7340 thread state.
7341 * target.c (target_resume): Don't mark threads as running here.
7342
7f3c0343
JB
73432014-05-28 Joel Brobecker <brobecker@adacore.com>
7344
7345 * serial.c (_initialize_serial): Remove support for
7346 the "set remotebaud" and "show remotebaud" commands.
7347 * NEWS: Add entry documenting the removal of that command.
7348
ee34b3f9
YQ
73492014-05-28 Yao Qi <yao@codesourcery.com>
7350
7351 * charset.c: Fix typo in comments.
7352
add6c04d
GB
73532014-05-27 Gary Benson <gbenson@redhat.com>
7354
7355 * utils.c (internal_vproblem): Prompt for a bug report.
7356
92c48fc5
AW
73572014-05-26 Andy Wingo <wingo@igalia.com>
7358
7359 * guile/scm-arch.c (arscm_mark_arch_smob):
7360 * guile/scm-block.c (bkscm_mark_block_smob)
7361 (bkscm_mark_block_syms_progress_smob):
7362 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7363 * guile/scm-exception.c (exscm_mark_exception_smob):
7364 * guile/scm-frame.c (frscm_mark_frame_smob):
7365 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7366 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7367 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7368 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7369 (ppscm_mark_pretty_printer_worker_smob):
7370 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7371 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7372 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7373 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7374 mark functions.
7375 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7376 function.
7377
b2715b27
AW
73782014-05-26 Andy Wingo <wingo@igalia.com>
7379 Doug Evans <xdje42@gmail.com>
7380
7381 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7382 empty_base_class. All uses updated.
7383 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7384 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7385 Adapt all callers.
7386 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7387 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7388 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7389 (gdbscm_gsmob_has_property_p, add_property_name)
7390 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7391 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7392 (gdb-object-has-property?, gdb-object-properties): Remove.
7393 (gdb-object-kind): Renamed from gsmob-kind.
7394
214ab2da
AW
73952014-05-26 Andy Wingo <wingo@igalia.com>
7396
7397 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7398 * configure: Regenerate.
7399
589fdceb
MM
74002014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7401
7402 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7403
67b5c0c1
MM
74042014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7405
7406 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7407 (replay_memory_access_read_only, replay_memory_access_read_write)
7408 (replay_memory_access_types, replay_memory_access)
7409 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7410 (cmd_set_record_btrace, cmd_show_record_btrace)
7411 (cmd_show_replay_memory_access): New.
7412 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7413 (record_btrace_remove_breakpoint): Replace
7414 record_btrace_allow_memory_access with replay_memory_access.
7415 (_initialize_record_btrace): Add commands.
7416 * NEWS: Announce it.
7417
036cd381
RR
74182014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7419
7420 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7421
c77c1e42
RR
74222014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7423
7424 * MAINTAINERS (Write After Approval): Move self back from
7425 paper trail.
7426
45741a9c
PA
74272014-05-22 Pedro Alves <palves@redhat.com>
7428
7429 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7430 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7431 (disable_randomization, enum exec_direction_kind)
7432 (execution_direction, stop_registers, start_remote)
7433 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7434 (wait_for_inferior, normal_stop, get_last_target_status)
7435 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7436 (insert_step_resume_breakpoint_at_sal)
7437 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7438 (set_step_info, print_stop_event, signal_stop_state)
7439 (signal_print_state, signal_pass_state, signal_stop_update)
7440 (signal_print_update, signal_pass_update)
7441 (update_signals_program_target, clear_exit_convenience_vars)
7442 (displaced_step_dump_bytes, update_observer_mode)
7443 (signal_catch_update, gdb_signal_from_command): Move
7444 declarations ...
7445 * infrun.h: ... to this new file.
7446 * amd64-tdep.c: Include infrun.h.
7447 * annotate.c: Include infrun.h.
7448 * arch-utils.c: Include infrun.h.
7449 * arm-linux-tdep.c: Include infrun.h.
7450 * arm-tdep.c: Include infrun.h.
7451 * break-catch-sig.c: Include infrun.h.
7452 * breakpoint.c: Include infrun.h.
7453 * common/agent.c: Include infrun.h instead of inferior.h.
7454 * corelow.c: Include infrun.h.
7455 * event-top.c: Include infrun.h.
7456 * go32-nat.c: Include infrun.h.
7457 * i386-tdep.c: Include infrun.h.
7458 * inf-loop.c: Include infrun.h.
7459 * infcall.c: Include infrun.h.
7460 * infcmd.c: Include infrun.h.
7461 * infrun.c: Include infrun.h.
7462 * linux-fork.c: Include infrun.h.
7463 * linux-nat.c: Include infrun.h.
7464 * linux-thread-db.c: Include infrun.h.
7465 * monitor.c: Include infrun.h.
7466 * nto-tdep.c: Include infrun.h.
7467 * procfs.c: Include infrun.h.
7468 * record-btrace.c: Include infrun.h.
7469 * record-full.c: Include infrun.h.
7470 * remote-m32r-sdi.c: Include infrun.h.
7471 * remote-mips.c: Include infrun.h.
7472 * remote-notif.c: Include infrun.h.
7473 * remote-sim.c: Include infrun.h.
7474 * remote.c: Include infrun.h.
7475 * reverse.c: Include infrun.h.
7476 * rs6000-tdep.c: Include infrun.h.
7477 * s390-linux-tdep.c: Include infrun.h.
7478 * solib-irix.c: Include infrun.h.
7479 * solib-osf.c: Include infrun.h.
7480 * solib-svr4.c: Include infrun.h.
7481 * target.c: Include infrun.h.
7482 * top.c: Include infrun.h.
7483 * windows-nat.c: Include infrun.h.
7484 * mi/mi-interp.c: Include infrun.h.
7485 * mi/mi-main.c: Include infrun.h.
7486 * python/py-threadevent.c: Include infrun.h.
7487
98eb56a4
PA
74882014-05-22 Pedro Alves <palves@redhat.com>
7489
7490 * infrun.c (handle_inferior_event): Store the exit code for
7491 --return-child-result here, instead of ...
7492 (print_exited_reason): ... here.
7493
17b2616c
PA
74942014-05-21 Pedro Alves <palves@redhat.com>
7495
7496 PR gdb/13860
7497 * gdbthread.h (struct thread_control_state): New field
7498 `command_interp'.
7499 * infrun.c (follow_fork): Copy the new thread control field to the
7500 child fork thread.
7501 (clear_proceed_status_thread): Clear the new thread control field.
7502 (proceed): Set the new thread control field.
7503 * interps.h (command_interp): Declare.
7504 * interps.c (command_interpreter): New global.
7505 (command_interp): New function.
7506 (interp_exec): Set `command_interpreter' while here.
7507 * cli-out.c (cli_uiout_dtor): New function.
7508 (cli_ui_out_impl): Install it.
7509 * mi/mi-interp.c: Include cli-out.h.
7510 (mi_cmd_interpreter_exec): Add comment.
7511 (restore_current_uiout_cleanup): New function.
7512 (ui_out_free_cleanup): New function.
7513 (mi_on_normal_stop): If finishing an execution command started by
7514 a CLI command, or any kind of breakpoint-like event triggered,
7515 print the stop event to the output (CLI) stream.
7516 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7517
5166082f
PA
75182014-05-21 Pedro Alves <palves@redhat.com>
7519
7520 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7521 current source line having changed.
7522 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7523 * infrun.c (normal_stop): Adjust call to
7524 set_current_sal_from_frame.
7525 * source.c (clear_lines_listed_range): New function.
7526 (set_current_source_symtab_and_line, identify_source_line): Clear
7527 the lines listed range.
7528 (line_info): Handle the first "info line" after the current source
7529 line having changed.
7530 * stack.c (print_stack_frame): Remove center handling.
7531 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7532 center sal.line.
7533
c1ee2fb3
PA
75342014-05-21 Pedro Alves <palves@redhat.com>
7535
7536 * inf-child.c (inf_child_mourn_inferior): New function.
7537 * inf-child.h (inf_child_mourn_inferior): New declaration.
7538 * darwin-nat.c (darwin_mourn_inferior): Use
7539 inf_child_mourn_inferior.
7540 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7541 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7542 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7543 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7544 * windows-nat.c (windows_mourn_inferior): Likewise.
7545
5c6d4fb2
DE
75462014-05-21 Doug Evans <xdje42@gmail.com>
7547
250748cb 7548 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7549
4a2722c5
DE
75502014-05-21 Doug Evans <xdje42@gmail.com>
7551
17292b30 7552 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7553 (gdbscm_out_of_range_error): Ditto.
7554 (gdbscm_memory_error): Ditto.
250748cb
DE
7555 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7556 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7557 (gdbscm_out_of_range_error): Update.
7558 (gdbscm_memory_error): Update.
7559 (gdbscm_scm_to_target_string_unsafe): Delete.
7560
6a3cb8e8
PA
75612014-05-21 Pedro Alves <palves@redhat.com>
7562
7563 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7564 globals.
7565 (inf_child_open_target): New function.
7566 (inf_child_open): Use inf_child_open_target to push the target
7567 instead of erroring out.
7568 (inf_child_disconnect, inf_child_close)
7569 (inf_child_maybe_unpush_target): New functions.
7570 (inf_child_target): Install inf_child_disconnect and
7571 inf_child_close. Store a pointer to the returned object.
7572 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7573 declarations.
7574 * target.c (auto_connect_native_target): New global.
7575 (show_default_run_target): New function.
7576 (find_default_run_target): Return NULL if automatically connecting
7577 to the native target is disabled.
7578 (_initialize_target): Install set/show auto-connect-native-target.
7579 * NEWS: Mention "set auto-connect-native-target", and "target
7580 native".
7581 * linux-nat.c (super_close): New global.
7582 (linux_nat_close): Call super_close.
7583 (linux_nat_add_target): Store a pointer to the base class's
7584 to_close method.
7585 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7586 inf_child_maybe_unpush.
7587 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7588 already pushed.
7589 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7590 the inferior. Use inf_child_maybe_unpush_target.
7591 (inf_ttrace_attach): Don't push the target if it is already
7592 pushed.
7593 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7594 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7595 after mourning the inferior. Use inf_child_maybe_unpush_target.
7596 (darwin_attach_pid): Don't push the target if it is already
7597 pushed.
7598 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7599 mourning the inferior. Use inf_child_maybe_unpush_target.
7600 (gnu_detach): Use inf_child_maybe_unpush_target.
7601 * go32-nat.c (go32_create_inferior): Don't push the target if it
7602 is already pushed.
7603 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7604 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7605 (procfs_open): Rename to ...
7606 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7607 comments. Can target_preopen before changing node. Call
7608 inf_child_open_target to push the target explicitly.
7609 (procfs_attach): Don't push the target if it is already pushed.
7610 (procfs_detach): Use inf_child_maybe_unpush_target.
7611 (procfs_create_inferior): Don't push the target if it is already
7612 pushed.
7613 (nto_native_ops): New global.
7614 (procfs_open): Reimplement.
7615 (procfs_native_open): New function.
7616 (init_procfs_targets): Install procfs_native_open as to_open of
7617 "target native". Store a pointer to the "native" target in
7618 nto_native_ops.
7619 * procfs.c (procfs_attach): Don't push the target if it is already
7620 pushed.
7621 (procfs_detach): Use inf_child_maybe_unpush_target.
7622 (procfs_mourn_inferior): Only unpush the target after mourning the
7623 inferior. Use inf_child_maybe_unpush_target.
7624 (procfs_init_inferior): Don't push the target if it is already
7625 pushed.
7626 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7627 if it is already pushed.
7628
930ee1b1
PA
76292014-05-21 Pedro Alves <palves@redhat.com>
7630
7631 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7632 and "procfs" targets are now called "native" instead.
7633
1f5d1b13
PA
76342014-05-21 Pedro Alves <palves@redhat.com>
7635
7636 * go32-nat.c (go32_open): Delete.
7637 (go32_target): Don't override the to_open method.
7638
132f8e03
PA
76392014-05-21 Pedro Alves <palves@redhat.com>
7640
7641 * nto-procfs.c (procfs_can_run): New function.
7642 (nto_procfs_ops): New global.
7643 (init_procfs_targets): New, based on procfs_target. Install
7644 "target native" in addition to "target procfs".
7645 (_initialize_procfs): Call init_procfs_targets instead of adding
7646 the target here.
7647
03c136c3
PA
76482014-05-21 Pedro Alves <palves@redhat.com>
7649
7650 * windows-nat.c (windows_target): Don't override to_shortname,
7651 to_longname or to_doc.
7652
a635d0f3
PA
76532014-05-21 Pedro Alves <palves@redhat.com>
7654
7655 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7656 to_doc.
7657
4f9b5133
PA
76582014-05-21 Pedro Alves <palves@redhat.com>
7659
7660 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7661 to_shortname, to_longname or to_doc.
7662
bc85afde
PA
76632014-05-21 Pedro Alves <palves@redhat.com>
7664
7665 * go32-nat.c (go32_target): Don't override to_shortname,
7666 to_longname or to_doc.
7667
4ebfc96e
PA
76682014-05-21 Pedro Alves <palves@redhat.com>
7669
7670 * inf-child.c (inf_child_open): Remove mention of "child".
7671 (inf_child_target): Rename target to "native" instead of "child".
7672
2648dfed
AA
76732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7674
7675 * Makefile.in (SFILES): Delete "regset.c".
7676 (COMMON_OBS): Delete "regset.o".
7677 * regset.c: Remove.
7678 * regset.h (regset_alloc): Delete prototype.
7679
b13feb94
AA
76802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7681
7682 * sparc-linux-tdep.c (sparc32_linux_gregset)
7683 (sparc32_linux_fpregset): New static regset structures.
7684 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7685 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7686 'fpregset' fields.
7687 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7688 (sparc64_linux_fpregset): New static regset structures.
7689 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7690 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7691 New static regset structures.
7692 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7693 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7694 New static regset structures.
7695 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7696 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7697 New static regset structures.
7698 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7699 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7700 New static regset structures.
7701 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7702
b4fd25c9
AA
77032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7704
7705 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7706 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7707 register maps ("regmaps") from "*regset" to "*regmap". Do this
7708 for all regmap types and variables.
7709 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7710 (sparc32_linux_supply_core_gregset)
7711 (sparc32_linux_collect_core_gregset)
7712 (sparc32_linux_supply_core_fpregset)
7713 (sparc32_linux_collect_core_fpregset): Likewise.
7714 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7715 (sparc_gregmap, sparc_fpregmap): ... these.
7716 (sparc_supply_gregset, sparc_collect_gregset)
7717 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7718 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7719 (_initialize_sparc_nat): Rename regmaps.
7720 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7721 (sparc_gregmap, sparc_fpregmap): ... these.
7722 (sparc_supply_gregset, sparc_collect_gregset)
7723 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7724 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7725 Rename macros to...
7726 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7727 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7728 Likewise.
7729 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7730 Rename to...
7731 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7732 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7733 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7734 regmaps.
7735 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7736 (sparc32_bsd_fpregset): Rename to...
7737 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7738 (sparc32_bsd_fpregmap): ... these.
7739 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7740 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7741 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7742 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7743 (struct sparc_gregmap, struct sparc_fpregmap)
7744 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7745 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7746 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7747 (sparc32_supply_regset, sparc32_collect_gregset)
7748 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7749 prototypes.
7750 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7751 (sparc64_linux_ptrace_gregmap): ... this.
7752 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7753 (_initialize_sparc64_linux_nat): Rename regmaps.
7754 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7755 (sparc64_linux_core_gregmap): ... this.
7756 (sparc64_linux_supply_core_gregset)
7757 (sparc64_linux_collect_core_gregset)
7758 (sparc64_linux_supply_core_fpregset)
7759 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7760 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7761 (sparc64_sol2_fpregset): Rename to...
7762 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7763 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7764 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7765 regmaps.
7766 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7767 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7768 (sparc64_bsd_fpregset): Rename to...
7769 (struct sparc_gregmap, sparc64_sol2_gregmap)
7770 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7771 (sparc64_bsd_fpregmap): ... these.
7772 (sparc64_supply_gregset, sparc64_collect_gregset)
7773 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7774 prototypes.
7775 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7776 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7777 (sparc64fbsd_gregmap): ... this.
7778 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7779 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7780 Rename regmaps.
7781 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7782 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7783 (sparc64nbsd_collect_fpregset): Likewise.
7784 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7785 (sparc64nbsd_gregmap): ... this.
7786 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7787 regmaps.
7788 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7789 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7790 (sparc64obsd_gregmap): ... this.
7791 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7792 regmaps.
7793 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7794 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7795 (sparc32nbsd_gregmap): ... this.
7796 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7797 regmaps.
7798
8fea3224
AA
77992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7800
7801 * score-tdep.c (score7_linux_gregset): New static regset
7802 structure.
7803 (score7_linux_regset_from_core_section): Remove dynamic regset
7804 allocation.
7805 (score_gdbarch_init): Drop allocation of tdep structure.
7806 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7807
24534243
AA
78082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7809
7810 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7811 regset structures.
7812 (am33_regset_from_core_section): Remove dynamic regset
7813 allocations.
7814
b7195f27
AA
78152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7816
7817 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7818 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7819 structures.
7820 (mips_linux_regset_from_core_section): Remove dynamic regset
7821 allocations.
7822 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7823 'gregset64', 'fpregset', and 'fpregset64'.
7824 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7825 deleted tdep fields.
7826
ecc37a5a
AA
78272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7828
7829 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7830 regset structures.
7831 (amd64_regset_from_core_section): Remove dynamic regset
7832 allocations.
7833 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7834 structure.
7835 (amd64obsd_regset_from_core_section): Remove dynamic regset
7836 allocation.
7837 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7838 Likewise.
7839 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7840 x86-common regset supply function.
7841 * i386-tdep.c (i386_collect_gregset): Make static.
7842 (i386_gregset): New global regset structure.
7843 (i386_fpregset, i386_xstateregset): New static regset structures.
7844 (i386_regset_from_core_section): Remove dynamic regset
7845 allocations.
7846 (i386_gdbarch_init): Remove initialization of tdep fields
7847 'gregset', 'fpregset', and 'xstateregset'.
7848 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7849 'fpregset', and 'xstateregset'.
7850 (i386_collect_gregset): Remove prototype.
7851 (i386_gregset): New declaration.
7852 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7853 structure.
7854 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7855 allocation.
7856
b7611c43
AA
78572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7858
7859 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7860 (arm_linux_vfpregset): New static regset structures.
7861 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7862 regset structures.
7863 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7864 and 'vfpregset' fields.
7865
a069a2bd
AA
78662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7867
7868 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7869 (aarch64_linux_fpregset): New static regset structures.
7870 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7871 of regset structures.
7872 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7873 'fpregset' fields.
7874
09424cff
AA
78752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7876
7877 * regset.h (struct regset): Remove gdbarch field.
7878 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7879 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7880 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7881 Likewise.
7882 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7883 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7884 (ppc32_linux_vsxregset): Likewise.
7885 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7886 via the regcache instead of the regset.
7887 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7888 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7889 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7890 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7891 Likewise.
7892
3ca7dae4
AA
78932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7894
7895 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7896 Constify structures.
7897 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7898 (alphanbsd_aout_gregset): Likewise.
7899 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7900 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7901 Likewise.
7902 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7903 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7904 Likewise.
7905 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7906 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7907 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7908 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7909 * m88k-tdep.c (m88k_gregset): Likewise.
7910 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7911 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7912 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7913 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7914 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7915 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7916 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7917 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7918 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7919 Likewise.
7920 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7921 * sh-tdep.h (sh_corefile_gregset): Likewise.
7922 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7923 * vax-tdep.c (vax_gregset): Likewise.
7924
5876f503
JK
79252014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7926
7927 Fix TLS access for -static -pthread.
7928 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7929 (try_thread_db_load_1): Initialize it.
7930 (thread_db_get_thread_local_address): Call it if LM is zero.
7931 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7932 * target.h (struct target_ops) (to_get_thread_local_address): Add
7933 load_module_addr comment.
7934
0256a6ac
PA
79352014-05-21 Pedro Alves <palves@redhat.com>
7936
7937 * dcache.c (dcache_read_memory_partial): If reading the cache line
7938 fails, fallback to reading just the memory the caller wanted.
7939
227533ac
DE
79402014-05-20 Doug Evans <dje@google.com>
7941
7942 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7943 instead of get_current_arch.
7944
936d2992
PA
79452014-05-20 Pedro Alves <palves@redhat.com>
7946
7947 * NEWS: Mention that compare-sections now works with all targets.
7948
7949 * remote.c (PACKET_qCRC): New enum value.
7950 (remote_verify_memory): Don't send qCRC if the target has no
7951 execution. Use packet_support/packet_ok. If the target doesn't
7952 support the qCRC packet, fallback to a deep memory copy.
7953 (compare_sections_command): Say "target image" instead of "remote
7954 executable".
7955 (_initialize_remote): Add PACKET_qCRC to the list of config
7956 packets that have no associated command. Extend comment.
7957 * target.c (simple_verify_memory, default_verify_memory): New
7958 function.
7959 * target.h (struct target_ops) <to_verify_memory>: Default to
7960 default_verify_memory.
7961 (simple_verify_memory): New declaration.
7962 * target-delegates.c: Regenerate.
7963
e59fa00f
MM
79642014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7965
7966 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7967
f2205de0
HZ
79682014-05-20 Hui Zhu <hui@codesourcery.com>
7969 Yao Qi <yao@codesourcery.com>
7970
7971 PR backtrace/16558
7972 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7973 and change address of sp and pc.
7974
c4e54771
TT
79752014-05-19 Tom Tromey <tromey@redhat.com>
7976
7977 * gdbtypes.c (rank_function): Use XNEWVEC.
7978 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7979
73051182
DE
79802014-05-19 Doug Evans <dje@google.com>
7981
7982 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7983 build_type_unit_groups and moved closer to only caller. Remove
7984 arguments. All references updated. Remove outdated .gdb_index
7985 comment.
7986 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7987 build_type_psymtabs_1.
7988
8832e7e3
DE
79892014-05-19 Doug Evans <dje@google.com>
7990
7991 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7992 n_type_unit_groups, all_type_unit_groups. All uses removed.
7993 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7994 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7995 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7996 (add_type_unit_group_to_table): Delete.
7997
cd8ae15e
DE
79982014-05-19 Doug Evans <dje@google.com>
7999
8000 * eval.c (evaluate_subexp_standard): Add some comments.
8001
08f4850b
DE
80022014-05-17 Doug Evans <xdje42@gmail.com>
8003
8004 * progspace.c (remove_program_space): Delete, unused.
8005 * progspace.h (remove_program_space): Ditto.
8006
bed8455c
DE
80072014-05-17 Doug Evans <xdje42@gmail.com>
8008
8009 * inferior.c (prune_inferiors): Fix comment.
8010 (remove_inferior_command): Call prune_program_spaces.
8011
8d551b02
DE
80122014-05-16 Doug Evans <dje@google.com>
8013
8014 New command line option -D.
8015 * NEWS: Mention it.
8016 * main.c (set_gdb_data_directory): New function.
8017 (captured_main): Recognize -D. Flag error for --data-directory "".
8018 Call set_gdb_data_directory.
8019 (print_gdb_help): Print --data-directory, -D.
8020 * main.h (set_gdb_data_directory): Declare.
8021 * top.c (staged_gdb_datadir): New static global.
8022 (set_gdb_datadir): Call set_gdb_data_directory
8023 (show_gdb_datadir): New function.
8024 (init_main): Update init of data-directory parameter.
8025
18848e28
GF
80262014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8027
8028 Import the "dirfd" gnulib module.
8029 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8030 * gnulib/aclocal.m4: Update.
8031 * gnulib/config.in: Update.
8032 * gnulib/configure: Update.
8033 * gnulib/import/Makefile.am: Update.
8034 * gnulib/import/Makefile.in: Update.
8035 * gnulib/import/dirfd.c: New.
8036 * gnulib/import/m4/dirfd.m4: New.
8037 * gnulib/import/m4/gnulib-cache.m4: Update.
8038 * gnulib/import/m4/gnulib-comp.m4: Update.
8039
95c64f92
YQ
80402014-05-16 Pierre Muller <muller@sourceware.org>
8041 Yao Qi <yao@codesourcery.com>
8042
8043 * valprint.c (print_wchar): Move the code on checking whether
8044 W is a printable wide char to the default branch of switch
8045 statement below. Call wchar_printable instead of gdb_iswprint.
8046
cac395ea
TM
80472014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8048
19679eca 8049 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8050 ldr.w and ldrd instructions.
8051
83655187
DE
80522014-05-15 Doug Evans <dje@google.com>
8053
8054 * dwarf2read.c (read_structure_type): Delete outdated comments.
8055
dd756689
TT
80562014-05-14 Tom Tromey <tromey@redhat.com>
8057
8058 * macrocmd.c (print_macro_definition): Reindent.
8059
75ddda77
DE
80602014-05-13 Doug Evans <xdje42@gmail.com>
8061
8062 * python/py-cmd.c (cmdpy_completer): Add comment.
8063 (completers): Make const.
8064
b0f16a3e
SM
80652014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8066
8067 * infrun.c (resume): Remove should_resume (unused). Move up
8068 declaration of resume_ptid.
8069
033c3379
TT
80702014-05-13 Tom Tromey <tromey@redhat.com>
8071
8072 * language.h (unop_type_check): Remove.
8073 (binop_type_check): Don't declare.
8074
9b44a3a5
AA
80752014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8076
8077 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8078 call to regcache_raw_collect.
8079
303a33fa
SM
80802014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8081
8082 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8083 mi_console->quote as the quoting character.
8084
196100a0
SM
80852014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8086
8087 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8088
f989a1c8
TT
80892014-04-29 Tom Tromey <tromey@redhat.com>
8090
8091 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8092 "show debug varobj".
8093
9404b58f
KM
80942014-05-07 Kyle McMartin <kyle@redhat.com>
8095
8096 Pushed by Joel Brobecker <brobecker@adacore.com>.
8097 * aarch64-tdep.c (aarch64_software_single_step): New function.
8098 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8099 with aarch64_software_single_step.
8100
5e49ba57
JB
81012014-05-05 Joel Brobecker <brobecker@adacore.com>
8102
8103 GDB 7.7.1 released.
8104
c888a17d
KS
81052014-05-05 Keith Seitz <keiths@redhat.com>
8106
8107 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8108 variable or history value is successfully parsed.
8109
290a839c
YQ
81102014-05-05 Yao Qi <yao@codesourcery.com>
8111 Pedro Alves <palves@redhat.com>
8112
8113 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8114 address of blocks that intersects the requested range. Trim
8115 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8116 sections.
8117 * ctf.c (ctf_xfer_partial): Likewise.
8118
91256dc2
YQ
81192014-05-05 Yao Qi <yao@codesourcery.com>
8120
8121 * printcmd.c (display_command): Remove the check to
8122 target_has_execution.
8123
07284463
MK
81242014-05-03 Mark Kettenis <kettenis@gnu.org>
8125
8126 * ppcobsd-nat.c: Include "obsd-nat.h".
8127 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8128 add_target.
8129 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8130
30a1e6cc
SDJ
81312014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8132
8133 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8134 and 16-bit signed and unsigned arguments. Update comment.
8135 (stap_parse_probe_arguments): Extend code to handle such
8136 arguments. Use warning instead of complaint to notify about
8137 unrecognized bitness.
8138
f33da99a
SDJ
81392014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8140
8141 PR breakpoints/16889
8142 * stap-probe.c (stap_parse_probe_arguments): Simplify
8143 check for non-prefixed probes (i.e., probes whose
8144 arguments do not start with "N@"). Always set the
8145 argument type to a sane value.
8146
95cf3b38
DT
81472014-05-01 David Taylor <dtaylor@emc.com>
8148
8149 * remote.c (compare_sections_command): Add -r option to compare
8150 all loadable read-only sections.
8151
1cfdf534
SC
81522014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8153
8154 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8155 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8156 Update all callers.
8157 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8158 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8159 Remove unused CORE_ADDR argument. Update all callers.
8160
ca4f7f8b
PA
81612014-04-29 Pedro Alves <palves@redhat.com>
8162
8163 * remote.c (struct packet_config) <detect>: Extend comment.
8164 (add_packet_config_cmd): Don't set the config's detect or support
8165 fields here.
8166 (init_all_packet_configs): Also initialize the config's 'detect'
8167 field.
8168 (reset_all_packet_configs_support): New function.
8169 (remote_open_1): Call reset_all_packet_configs_support instead of
8170 init_all_packet_configs.
8171 (_initialize_remote): Initialize all packet configs. Assert that
8172 all packets have an associated command, except a few known
8173 outliers.
8174
11c1ba78
JB
81752014-04-28 Joel Brobecker <brobecker@adacore.com>
8176
8177 * dwarf2read.c (read_subrange_type): Handle dynamic
8178 DW_AT_lower_bound attributes.
8179
8739bc53
JB
81802014-04-28 Joel Brobecker <brobecker@adacore.com>
8181
8182 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8183 dynamic bounds before computing its upper bound.
8184 (ada_discrete_type_low_bound): Same as above with the lower bound.
8185
6f8a3220
JB
81862014-04-28 Joel Brobecker <brobecker@adacore.com>
8187
8188 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8189 range types. Adjust the array handling implementation to
8190 take advantage of this change.
8191 (resolve_dynamic_range): New function, mostly extracted from
8192 resolve_dynamic_bounds.
8193 (resolve_dynamic_array): New function, mostly extracted from
8194 resolve_dynamic_bounds.
8195 (resolve_dynamic_bounds): Delete.
8196 (resolve_dynamic_type): Reimplement. Add handling of
8197 TYPE_CODE_RANGE types.
8198
4d072ce4
JB
81992014-04-28 Joel Brobecker <brobecker@adacore.com>
8200
8201 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8202 handling of parallel ___XA types.
8203
52865325
JB
82042014-04-28 Joel Brobecker <brobecker@adacore.com>
8205
8206 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8207 unnecessary second call to static_unwrap_type.
8208
433e77fa
HZ
82092014-04-27 Hui Zhu <hui@codesourcery.com>
8210
8211 * stack.c (print_frame_info): Call do_gdb_disassembly with
8212 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8213
b51a69ee
DE
82142014-04-26 Doug Evans <xdje42@gmail.com>
8215
8216 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8217
7ae1a6a6
PA
82182014-04-25 Pedro Alves <palves@redhat.com>
8219
8220 PR server/16255
8221 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8222 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8223 and newline from built string.
8224 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8225 (linux_ptrace_attach_fail_reason): ... this.
8226 * linux-nat.c (linux_nat_attach): Adjust to use
8227 linux_ptrace_attach_fail_reason.
8228
4082afcc
PA
82292014-04-25 Pedro Alves <palves@redhat.com>
8230
8231 * remote.c (struct remote_state): Remove multi_process_aware,
8232 non_stop_aware, cond_tracepoints, cond_breakpoints,
8233 breakpoint_commands, fast_tracepoints, static_tracepoints,
8234 install_in_trace, disconnected_tracing,
8235 enable_disable_tracepoints, string_tracing, and
8236 augmented_libraries_svr4_read fields.
8237 (remote_multi_process_p): Move further below in the file.
8238 (struct packet_config): Add comments.
8239 (update_packet_config): Delete function.
8240 (show_packet_config_cmd): Use packet_config_support.
8241 (add_packet_config_cmd): Use NULL as set callback.
8242 (packet_ok): "set remote foo-packet"-style commands no longer
8243 change config->supported -- adjust.
8244 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8245 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8246 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8247 (PACKET_QNonStop, PACKET_multiprocess_feature)
8248 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8249 (PACKET_DisconnectedTracing_feature)
8250 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8251 (set_remote_protocol_packet_cmd): Delete function.
8252 (packet_config_support, packet_support): New functions.
8253 (set_remote_protocol_Z_packet_cmd): Don't call
8254 update_packet_config.
8255 (remote_query_attached, remote_pass_signals)
8256 (remote_program_signals, remote_threads_info)
8257 (remote_threads_extra_info, remote_start_remote): Use
8258 packet_support.
8259 (remote_start_remote): Use packet_config_support and
8260 packet_support.
8261 (init_all_packet_configs): Set all packets to unknown support,
8262 instead of calling update_packet_config.
8263 (remote_check_symbols): Use packet_support.
8264 (remote_supported_packet): Unconditionally set the packet config's
8265 support status.
8266 (remote_multi_process_feature, remote_non_stop_feature)
8267 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8268 (remote_breakpoint_commands_feature)
8269 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8270 (remote_install_in_trace_feature)
8271 (remote_disconnected_tracing_feature)
8272 (remote_enable_disable_tracepoint_feature)
8273 (remote_string_tracing_feature)
8274 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8275 (remote_protocol_features): Adjust to use remote_supported_packet
8276 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8277 "ConditionalTracepoints", "ConditionalBreakpoints",
8278 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8279 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8280 "EnableDisableTracepoints", and "tracenz".
8281 (remote_query_supported): Use packet_support.
8282 (remote_open_1): Adjust.
8283 (extended_remote_attach_1): Use packet_support. Switch on the
8284 result of packet_ok instead of checking whether the packet ended
8285 up disabled.
8286 (remote_vcont_resume): Use packet_support.
8287 (remote_resume, remote_stop_ns, fetch_register_using_p)
8288 (remote_prepare_to_store, store_register_using_P)
8289 (check_binary_download, remote_write_bytes): Use packet_support.
8290 (remote_vkill): Use packet_support. Switch on the result of
8291 packet_ok instead of checking whether the packet ended up
8292 disabled.
8293 (extended_remote_supports_disable_randomization): Use
8294 packet_support.
8295 (extended_remote_run): Switch on the result of packet_ok instead
8296 of checking whether the packet ended up disabled.
8297 (remote_insert_breakpoint, remote_remove_breakpoint)
8298 (remote_insert_watchpoint, remote_remove_watchpoint)
8299 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8300 packet_support.
8301 (remote_search_memory): Use packet_config_support.
8302 (remote_get_thread_local_address, remote_get_tib_address)
8303 (remote_hostio_send_command, remote_can_execute_reverse): Use
8304 packet_support.
8305 (remote_supports_cond_tracepoints)
8306 (remote_supports_cond_breakpoints)
8307 (remote_supports_fast_tracepoints)
8308 (remote_supports_static_tracepoints)
8309 (remote_supports_install_in_trace)
8310 (remote_supports_enable_disable_tracepoint)
8311 (remote_supports_string_tracing)
8312 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8313 the packet config says the feature is enabled or disabled.
8314 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8315 (remote_get_trace_status): Use packet_support.
8316 (remote_set_disconnected_tracing): Adjust to check whether the
8317 feature is enabled with packet_support.
8318 (remote_set_trace_buffer_size, remote_use_agent)
8319 (remote_can_use_agent, remote_supports_btrace): Use
8320 packet_support.
8321 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8322 Use packet_config_support.
8323 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8324 the packet config says the feature is enabled or disabled.
8325 (set_range_stepping): Use packet_support.
8326
bdb52a22
TT
83272014-04-25 Tom Tromey <tromey@redhat.com>
8328
8329 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8330 argument.
8331
e9475ead
SA
83322014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8333
8334 * NEWS: Mention support for C99 variable length arrays.
8335
82eacd52
JB
83362014-04-24 Joel Brobecker <brobecker@adacore.com>
8337
8338 * ada-lang.c (standard_exc): Expand introductory comment.
8339
01f9f808
MS
83402014-04-24 Michael Sturm <michael.sturm@mintel.com>
8341 Walfred Tedeschi <walfred.tedeschi@intel.com>
8342
8343 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8344 AVX512 registers.
8345 (amd64_linux_read_description): Add code to handle AVX512 xstate
8346 mask and return respective tdesc.
8347 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8348 and features/i386/x32-avx512-linux.c.
8349 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8350 (amd64_linux_core_read_description): Add code to handle AVX512
8351 xstate mask and return respective tdesc.
8352 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8353 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8354 calculation.
8355 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8356 (tdesc_amd64_avx512_linux): New prototype.
8357 (tdesc_x32_avx512_linux): Likewise.
8358 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8359 features/i386/x32-avx512.c.
8360 (amd64_ymm_avx512_names): New register names for pseudo
8361 registers YMM16-31.
8362 (amd64_ymmh_avx512_names): New register names for raw registers
8363 YMMH16-31.
8364 (amd64_k_names): New register names for K registers.
8365 (amd64_zmmh_names): New register names for ZMM raw registers.
8366 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8367 (amd64_xmm_avx512_names): New register names for XMM16-31
8368 registers.
8369 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8370 registers.
8371 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8372 if feature is present.
8373 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8374 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8375 (AMD64_NUM_REGS): Adjust to new number of registers.
8376 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8377 registers supplied via XSTATE by AVX512 registers.
8378 (i386_linux_read_description): Add case for AVX512.
8379 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8380 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8381 (i386_linux_core_read_description): Add case for AVX512.
8382 (i386_linux_init_abi): Install supported register note section
8383 for AVX512.
8384 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8385 AVX512.
8386 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8387 registers to be number of zmm7h + 1.
8388 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8389 * i386-tdep.c: Include features/i386/i386-avx512.c.
8390 (i386_zmm_names): Add ZMM pseudo register names array.
8391 (i386_zmmh_names): Add ZMM raw register names array.
8392 (i386_k_names): Add K raw register names array.
8393 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8394 registers. AVX512 has 16 more ZMM registers than there are YMM
8395 registers.
8396 (i386_zmmh_regnum_p): Add function to look up register number of
8397 ZMM raw registers.
8398 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8399 (i386_k_regnum_p): Likewise for K raw registers.
8400 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8401 registers added by AVX512.
8402 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8403 registers added by AVX512.
8404 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8405 added by AVX512.
8406 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8407 (i386_pseudo_register_name): Add ZMM pseudo registers.
8408 (i386_zmm_type): Construct and return vector registers type for ZMM
8409 registers.
8410 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8411 ZMM0-31 pseudo registers and K registers.
8412 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8413 and YMM16-31 registers from register cache.
8414 (i386_pseudo_register_write): Add code to write K, ZMM and
8415 YMM16-31 registers.
8416 (i386_register_reggroup_p): Add code to include/exclude AVX512
8417 registers in/from respective register groups.
8418 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8419 registers if feature is present in xcr0.
8420 (i386_gdbarch_init): Add code to initialize AVX512 feature
8421 variables in tdep structure, wire in pseudo registers and call
8422 initialize_tdesc_i386_avx512.
8423 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8424 variables.
8425 (i386_regnum): Add AVX512 registers.
8426 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8427 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8428 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8429 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8430 512 bits wide.
8431 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8432 (i386_ymm_avx512_regnum_p): Likewise.
8433 (i386_k_regnum_p): Likewise.
8434 (i386_zmm_regnum_p): Likewise.
8435 (i386_zmmh_regnum_p): Likewise.
8436 * i387-tdep.c : Update year in copyright notice.
8437 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8438 XSAVE buffer.
8439 (XSAVE_YMM_AVX512_ADDR): New macro.
8440 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8441 XSAVE buffer.
8442 (XSAVE_XMM_AVX512_ADDR): New macro.
8443 (xsave_avx512_k_offset): New table for K register offsets in
8444 XSAVE buffer.
8445 (XSAVE_AVX512_K_ADDR): New macro.
8446 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8447 in XSAVE buffer.
8448 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8449 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8450 buffer.
8451 (i387_collect_xsave): Add code to collect AVX512 registers from
8452 XSAVE buffer.
8453 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8454 of XMM16-31 registers.
8455 (I387_NUM_K_REGS): New define for number of K registers.
8456 (I387_K0_REGNUM): New define for K0 register number.
8457 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8458 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8459 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8460 registers.
8461 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8462 (I387_XMM16_REGNUM): New define for XMM16 register number.
8463 (I387_YMM0_REGNUM): New define for YMM0 register number.
8464 (I387_KEND_REGNUM): New define for last K register number.
8465 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8466 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8467 number.
8468 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8469 number.
8470 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8471 size.
8472 * features/Makefile: Add AVX512 related files.
8473 * features/i386/32bit-avx512.xml: New file.
8474 * features/i386/64bit-avx512.xml: Likewise.
8475 * features/i386/amd64-avx512-linux.c: Likewise.
8476 * features/i386/amd64-avx512-linux.xml: Likewise.
8477 * features/i386/amd64-avx512.c: Likewise.
8478 * features/i386/amd64-avx512.xml: Likewise.
8479 * features/i386/i386-avx512-linux.c: Likewise.
8480 * features/i386/i386-avx512-linux.xml: Likewise.
8481 * features/i386/i386-avx512.c: Likewise.
8482 * features/i386/i386-avx512.xml: Likewise.
8483 * features/i386/x32-avx512-linux.c: Likewise.
8484 * features/i386/x32-avx512-linux.xml: Likewise.
8485 * features/i386/x32-avx512.c: Likewise.
8486 * features/i386/x32-avx512.xml: Likewise.
8487 * regformats/i386/amd64-avx512-linux.dat: New file.
8488 * regformats/i386/amd64-avx512.dat: Likewise.
8489 * regformats/i386/i386-avx512-linux.dat: Likewise.
8490 * regformats/i386/i386-avx512.dat: Likewise.
8491 * regformats/i386/x32-avx512-linux.dat: Likewise.
8492 * regformats/i386/x32-avx512.dat: Likewise.
8493 * NEWS: Add note about new support for AVX512.
8494
8495
08351840
PA
84962014-04-23 Pedro Alves <palves@redhat.com>
8497
8498 * breakpoint.c (insert_bp_location): Tolerate errors if the
8499 breakpoint is set in a user-loaded objfile.
8500 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8501 location is marked shlib_disabled. If the breakpoint is set in a
8502 user-loaded objfile is a GDB-side memory breakpoint, validate it
8503 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8504 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8505 flag.
8506 * mem-break.c (memory_validate_breakpoint): New function.
8507 * objfiles.c (userloaded_objfile_contains_address_p): New
8508 function.
8509 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8510 * target.h (memory_validate_breakpoint): New declaration.
8511
076855f9
PA
85122014-04-23 Pedro Alves <palves@redhat.com>
8513
8514 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8515 the breakpoint is set in a shared library, only suppress
8516 errors for software breakpoints, not hardware breakpoints.
8517
483805cf
PA
85182014-04-22 Pedro Alves <palves@redhat.com>
8519
8520 * infrun.c (schedlock_applies): New function, factored out from
8521 find_thread_needs_step_over.
8522 (find_thread_needs_step_over): Use it.
8523 (switch_back_to_stepped_thread): Always clear trap_expected if the
8524 step over is finished. Return early if scheduler locking applies.
8525 Look for the stepping thread and a potential step-over thread with
8526 a single loop.
8527 (currently_stepping_or_nexting_callback): Delete.
8528
a75fef0e
NC
85292014-04-22 Nick Clifton <nickc@redhat.com>
8530
8531 * NEWS: Mention that ARM sim now supports tracing.
8532
48b6e87e
YQ
85332014-04-22 Yao Qi <yao@codesourcery.com>
8534
8535 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8536 to ...
8537 * tracefile.c (tracefile_fetch_registers): ... it. New
8538 function.
8539 * tracefile.h (tracefile_fetch_registers): Declare.
8540 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8541 tracefile_fetch_registers.
8542
17617f2d
EZ
85432014-04-19 Eli Zaretskii <eliz@gnu.org>
8544
8545 PR gdb/14018
8546 * windows-nat.c (thread_rec): Don't display a warning when
8547 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8548 fails for any reason, set th->suspended to -1, so that we don't
8549 try to resume such a thread. Also, don't return NULL in these
8550 cases, to avoid completely ruin the session due to "PC register is
8551 not available" error.
8552 (do_windows_fetch_inferior_registers): Check errors in
8553 GetThreadContext call.
8554 (windows_continue): Accept an additional argument KILLED; if not
8555 zero, ignore errors in the SetThreadContext call, since the
8556 inferior was killed and is shutting down.
8557 (windows_resume, get_windows_debug_event)
8558 (windows_create_inferior, windows_mourn_inferior)
8559 (windows_kill_inferior): All callers of windows_continue changed
8560 to adjust to its new calling sequence.
8561
5723a6fd
YQ
85622014-04-19 Yao Qi <yao@codesourcery.com>
8563
8564 * ctf.c (ctf_open): Call post_create_inferior.
8565
614d5099
YQ
85662014-04-19 Yao Qi <yao@codesourcery.com>
8567
8568 * ctf.c (handle_id): New static variable.
8569 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8570 value. Get the declaration of event "register" and get length
8571 of field "contents".
8572
dac3e710
YQ
85732014-04-19 Yao Qi <yao@codesourcery.com>
8574
8575 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8576
2bca57ba
SC
85772014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8578
8579 * valops.c (oload_method_static): Remove unnecessary argument
8580 METHOD. Update all callers.
8581
51d48146
PA
85822014-04-18 Pedro alves <palves@redhat.com>
8583 Tom Tromey <tromey@redhat.com>
8584
8585 PR backtrace/15558
8586 * frame.c (get_prev_frame_1): Rename to ...
8587 (get_prev_frame_always): ... this, and make extern. Adjust.
8588 (skip_artificial_frames): Use get_prev_frame_always.
8589 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8590 (get_frame_unwind_stop_reason): Adjust to rename.
8591 * frame.h (get_prev_frame_always): Declare.
8592 * inline-frame.c: Include frame.h.
8593 (inline_frame_this_id): Use get_prev_frame_always.
8594
1bdad2e0
TG
85952014-04-18 Tristan Gingold <gingold@adacore.com>
8596
8597 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8598 code by using bfd_mach_o_get_base_address.
8599
7ce16bd4
UW
86002014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8601
8602 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8603 (spu_ax_pseudo_register_collect): New function.
8604 (spu_ax_pseudo_register_push_stack): Likewise.
8605 (spu_dwarf_reg_to_regnum): Likewise.
8606 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8607
2ed3c037
UW
86082014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8609
8610 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8611 Replace FRAME argument with FRAME_ID.
8612 * gdbarch.c, gdbarch.h: Regenerate.
8613 * findvar.c (default_value_from_register): Add GDBARCH argument;
8614 replace FRAME by FRAME_ID. No longer call get_frame_id.
8615 (value_from_register): Update call to gdbarch_value_from_register.
8616 * value.h (default_value_from_register): Update prototype.
8617 * s390-linux-tdep.c (s390_value_from_register): Update interface
8618 and call to default_value_from_register.
8619 * spu-tdep.c (spu_value_from_register): Likewise.
8620
8621 * findvar.c (address_from_register): Remove TYPE argument.
8622 Do not call value_from_register; use gdbarch_value_from_register
8623 with null_frame_id instead.
8624 * value.h (address_from_register): Update prototype.
8625 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8626 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8627 address_from_register interface change.
8628
71e50e83
YQ
86292014-04-17 Yao Qi <yao@codesourcery.com>
8630
8631 * gdbtypes.h: Update comments to link to types and macros'
8632 definitions.
8633
7a23c549
SC
86342014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8635
8636 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8637
22869d73
KS
86382014-04-16 Keith Seitz <keiths@redhat.com>
8639
8640 PR gdb/15827
8641 * dwarf2read.c (skip_one_die): Check that all relative-offset
8642 sibling DIEs fall within range of the current reader's buffer.
8643 (read_partial_die): Likewise.
8644
c4f87ca6
KS
86452014-04-16 Keith Seitz <keiths@redhat.com>
8646
8647 PR c++/16597
8648 * cp-namespace.c (lookup_symbol_file): If the type name of
8649 `this' is NULL, return immediately.
8650
b50c8614
KS
86512014-04-14 Keith Seitz <keiths@redhat.com>
8652
8653 PR c++/16253
8654 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8655 from symbol_matches_domain in symtab.c. All local callers
8656 of symbol_matches_domain updated.
8657 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8658 search STRUCT_DOMAIN.
8659 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8660 independently. standard_lookup will do that automatically.
8661 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8662 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8663 (cp_lookup_symbol_in_namespace): Likewise.
8664 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8665 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8666 may return a STRUCT_DOMAIN match.
8667 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8668 * cp-support.c: Include language.h.
8669 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8670 VAR_DOMAIN.
8671 * psymtab.c (match_partial_symbol): Compare the requested
8672 domain with the symbol's domain directly.
8673 (lookup_partial_symbol): Likewise.
8674 * symtab.c (lookup_symbol_in_language): Explain when/why
8675 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8676 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8677 appropriate languages.
8678 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8679 and moved to ada-lang.c
8680 (lookup_block_symbol): Explain that this function only returns
8681 symbol matching the requested DOMAIN.
8682 Compare the requested domain with the symbol's domain directly.
8683 (iterate_over_symbols): Compare the requested domain with the
8684 symbol's domain directly.
8685 * symtab.h (symbol_matches_domain): Remove.
8686
3d567982
TT
86872014-04-14 Tom Tromey <tromey@redhat.com>
8688
8689 PR c++/15246:
8690 * c-exp.y (type_aggregate_p): New function.
8691 (qualified_name, classify_inner_name): Use it.
8692 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8693 and TYPE_TARGET_TYPE of an enum type.
8694 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8695 an enum type.
8696 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8697 handle TYPE_DECLARED_CLASS.
8698 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8699 types.
8700 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8701 * valops.c (enum_constant_from_type): New function.
8702 (value_aggregate_elt): Use it.
8703 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8704 TYPE_CODE_ENUM.
8705
c848d642
TT
87062014-04-14 Tom Tromey <tromey@redhat.com>
8707
8708 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8709 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8710 const.
8711 * value.h (value_aggregate_elt): Update.
8712
0626fc76
TT
87132014-04-14 Tom Tromey <tromey@redhat.com>
8714
8715 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8716
5ecaaa66
SA
87172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8718
8719 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8720 (evaluate_subexp_standard): Pass noside argument.
8721 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8722 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8723 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8724 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8725 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8726
1612e0c0
SA
87272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8728
8729 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8730 points to a constant blob.
8731
c451ebe5
SA
87322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8733
8734 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8735 property and store it as the high bound and flag the range accordingly.
8736 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8737 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8738 * gdbtypes.h (enum range_flags): New enum.
8739 (struct range_bounds): Add flags member.
8740
1d42e4c4
SA
87412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8742
8743 * c-typeprint.c (c_type_print_varspec_suffix): Added
8744 check for not yet resolved high bound. If unresolved, print
8745 "variable length" string to the console instead of random
8746 length.
8747
9f1f738a
SA
87482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8749
8750 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8751 value.
8752 (ada_template_to_fixed_record_type_1): Likewise.
8753 (ada_to_fixed_type_1): Likewise.
8754 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8755 (cp_print_value): Likewise.
8756 * d-valprint.c (dynamic_array_type): Likewise.
8757 * findvar.c (address_of_variable): Likewise.
8758 * jv-valprint.c (java_value_print): Likewise.
8759 * valops.c (value_ind): Likewise.
8760 * value.c (coerce_ref): Likewise.
8761
3c8452d4
SA
87622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8763
8764 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8765 value and retrieve the dynamic type size.
8766
4ad88275
SA
87672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8768
8769 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8770 passed to sizeof is dynamic evaluate the argument to compute the length.
8771
80180f79
SA
87722014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8773 Joel Brobecker <brobecker@adacore.com>
8774
8775 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8776 (dwarf2_evaluate_property): New function.
8777 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8778 * dwarf2read.c (attr_to_dynamic_prop): New function.
8779 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8780 attribute.
8781 * gdbtypes.c: Include dwarf2loc.h.
8782 (is_dynamic_type): New function.
8783 (resolve_dynamic_type): New function.
8784 (resolve_dynamic_bounds): New function.
8785 (get_type_length): New function.
8786 (check_typedef): Use get_type_length to compute type length.
8787 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8788 (TYPE_LOW_BOUND_KIND): New macro.
8789 (is_dynamic_type): New function prototype.
8790 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8791 to resolve dynamic properties of the type. Update comment.
8792 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8793
a1556843
RH
87942014-04-14 Richard Henderson <rth@redhat.com>
8795
8796 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8797
0be03e84
DE
87982014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8799 Doug Evans <xdje42@gmail.com>
8800
8801 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8802 dereference TYPE_CODE_REF values.
8803
6b662e19
JB
88042014-04-11 Joel Brobecker <brobecker@adacore.com>
8805
8806 Revert the following changes due to regressions:
8807
8808 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8809 (dwarf2_evaluate_property): New function.
8810 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8811 * dwarf2read.c (attr_to_dynamic_prop): New function.
8812 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8813 attribute.
8814 * gdbtypes.c: Include dwarf2loc.h.
8815 (is_dynamic_type): New function.
8816 (resolve_dynamic_type): New function.
8817 (resolve_dynamic_bounds): New function.
8818 (get_type_length): New function.
8819 (check_typedef): Use get_type_length to compute type length.
8820 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8821 (TYPE_LOW_BOUND_KIND): New macro.
8822 (is_dynamic_type): New function prototype.
8823 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8824 to resolve dynamic properties of the type. Update comment.
8825 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8826
8827 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8828 passed to sizeof is dynamic evaluate the argument to compute the length.
8829
8830 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8831 value and retrieve the dynamic type size.
8832
8833 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8834 (ada_template_to_fixed_record_type_1): Likewise.
8835 (ada_to_fixed_type_1): Likewise.
8836 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8837 (cp_print_value): Likewise.
8838 * d-valprint.c (dynamic_array_type): Likewise.
8839 * eval.c (evaluate_subexp_with_coercion): Likewise.
8840 * findvar.c (address_of_variable): Likewise.
8841 * jv-valprint.c (java_value_print): Likewise.
8842 * valops.c (value_ind): Likewise.
8843 * value.c (coerce_ref): Likewise.
8844
8845 * c-typeprint.c (c_type_print_varspec_suffix): Added
8846 check for not yet resolved high bound. If unresolved, print
8847 "variable length" string to the console instead of random
8848 length.
8849
8850 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8851 property and store it as the high bound and flag the range accordingly.
8852 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8853 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8854 * gdbtypes.h (enum range_flags): New enum.
8855 (struct range_bounds): Add flags member.
8856
8857 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8858 points to a constant blob.
8859
8860 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8861 (evaluate_subexp_standard): Pass noside argument.
8862 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8863 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8864 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8865 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8866 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8867
245a5f0b
KS
88682014-04-11 Keith Seitz <keiths@redhat.com>
8869
8870 PR c++/16675
8871 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8872 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8873 reference types.
8874
3bce8237
SA
88752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8876
8877 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8878 (evaluate_subexp_standard): Pass noside argument.
8879 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8880 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8881 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8882 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8883 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8884
92b09522
SA
88852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8886
8887 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8888 points to a constant blob.
8889
e1969afb
SA
88902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8891
8892 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8893 property and store it as the high bound and flag the range accordingly.
8894 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8895 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8896 * gdbtypes.h (enum range_flags): New enum.
8897 (struct range_bounds): Add flags member.
8898
b86138fb
SA
88992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8900
8901 * c-typeprint.c (c_type_print_varspec_suffix): Added
8902 check for not yet resolved high bound. If unresolved, print
8903 "variable length" string to the console instead of random
8904 length.
8905
bcd629a4
SA
89062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8907
8908 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8909 (ada_template_to_fixed_record_type_1): Likewise.
8910 (ada_to_fixed_type_1): Likewise.
8911 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8912 (cp_print_value): Likewise.
8913 * d-valprint.c (dynamic_array_type): Likewise.
8914 * eval.c (evaluate_subexp_with_coercion): Likewise.
8915 * findvar.c (address_of_variable): Likewise.
8916 * jv-valprint.c (java_value_print): Likewise.
8917 * valops.c (value_ind): Likewise.
8918 * value.c (coerce_ref): Likewise.
8919
04b19544
SA
89202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8921
8922 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8923 value and retrieve the dynamic type size.
8924
26cb189f
SA
89252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8926
8927 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8928 passed to sizeof is dynamic evaluate the argument to compute the length.
8929
37c1ab67
SA
89302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8931
8932 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8933 (dwarf2_evaluate_property): New function.
8934 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8935 * dwarf2read.c (attr_to_dynamic_prop): New function.
8936 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8937 attribute.
8938 * gdbtypes.c: Include dwarf2loc.h.
8939 (is_dynamic_type): New function.
8940 (resolve_dynamic_type): New function.
8941 (resolve_dynamic_bounds): New function.
8942 (get_type_length): New function.
8943 (check_typedef): Use get_type_length to compute type length.
8944 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8945 (TYPE_LOW_BOUND_KIND): New macro.
8946 (is_dynamic_type): New function prototype.
8947 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8948 to resolve dynamic properties of the type. Update comment.
8949 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8950
729efb13
SA
89512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8952
8953 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8954 declaring high/low bounds and change uses accordingly. Call
8955 create_range_type instead of create_static_range_type.
8956 * gdbtypes.c (create_range_type): New function.
8957 (create_range_type): Convert bounds into struct bound_prop and pass
8958 them to create_range_type.
8959 * gdbtypes.h (struct bound_prop): New struct.
8960 (create_range_type): New function prototype.
8961 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8962 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8963 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8964 part of the bound.
8965 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8966
0c9c3474
SA
89672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8968
8969 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8970 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8971 * ada-lang.c: All uses of create_range_type updated.
8972 * coffread.c: All uses of create_range_type updated.
8973 * dwarf2read.c: All uses of create_range_type updated.
8974 * f-exp.y: All uses of create_range_type updated.
8975 * m2-valprint.c: All uses of create_range_type updated.
8976 * mdebugread.c: All uses of create_range_type updated.
8977 * stabsread.c: All uses of create_range_type updated.
8978 * valops.c: All uses of create_range_type updated.
8979 * valprint.c: All uses of create_range_type updated.
8980
9d497a19
PA
89812014-04-10 Pedro Alves <palves@redhat.com>
8982
8983 * breakpoint.c (single_step_breakpoints)
8984 (single_step_gdbarch): Move up in the file.
8985 (one_breakpoint_xfer_memory): New function, factored out from ...
8986 (breakpoint_xfer_memory): ... here. Also process single-step
8987 breakpoints.
8988
15a9128a
TG
89892014-04-09 Tristan Gingold <gingold@adacore.com>
8990
8991 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8992 comments.
8993 (darwin_decode_exception_message): Free port only after use.
8994
9c97a070
PL
89952014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8996
8997 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8998 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8999 when setting the size of call_length.
9000
7af389b8
SC
90012014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9002
9003 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9004 dereference TYPE_CODE_REF values.
9005
86ad98c3
JB
90062014-04-07 Joel Brobecker <brobecker@adacore.com>
9007
9008 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9009 end of warning message.
9010
b0aeadb3
DE
90112014-04-03 Doug Evans <dje@google.com>
9012
9013 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9014 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9015
5979d6b6
AM
90162014-04-02 Alan Modra <amodra@gmail.com>
9017
9018 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9019 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9020 (struct symbol_file_add_from_memory_args): Add size field.
9021 (find_vdso_size): New function.
9022 (add_vsyscall_page): Attempt to find vdso size.
9023
0d60c288
DE
90242014-04-01 Doug Evans <dje@google.com>
9025
9026 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9027
a41f2563
TG
90282014-04-01 Tristan Gingold <gingold@adacore.com>
9029
9030 * darwin-nat.c (darwin_encode_reply): Add prototype.
9031 (darwin_decode_exception_message): Reply to unknown inferiors.
9032 (darwin_decode_message): Handle message by id. Ignore message
9033 to unknown inferior.
9034 (darwin_wait): Discard unknown messages, add debug trace.
9035
11a865c8
DE
90362014-03-31 Doug Evans <dje@google.com>
9037
9038 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9039 comp_dir_string.
9040
770e7fc7
DE
90412014-03-31 Doug Evans <dje@google.com>
9042
9043 New option "set print symbol-loading".
9044 * NEWS: Mention it.
9045 * solib.c (solib_read_symbols): Only print symbol loading messages
9046 if requested.
9047 (solib_add): If symbol loading is in "brief" mode, notify user
9048 symbols are being loaded.
9049 (reload_shared_libraries_1): Ditto.
9050 * symfile.c (print_symbol_loading_off): New static global.
9051 (print_symbol_loading_brief): New static global.
9052 (print_symbol_loading_full): New static global.
9053 (print_symbol_loading_enums): New static global.
9054 (print_symbol_loading): New static global.
9055 (print_symbol_loading_p): New function.
9056 (symbol_file_add_with_addrs): Only print symbol loading messages
9057 if requested.
9058 (_initialize_symfile): Register "print symbol-loading" set/show
9059 command.
9060 * symfile.h (print_symbol_loading_p): Declare.
9061
c32c64b7
DE
90622014-03-30 Doug Evans <xdje42@gmail.com>
9063
9064 * infrun.c (set_last_target_status): New function.
9065 (handle_inferior_event): Call it.
9066
7c0bc051
DE
90672014-03-30 Doug Evans <xdje42@gmail.com>
9068
9069 * inferior.h (enum stop_kind): Improve comment.
9070
8776cfe9
JB
90712014-03-28 Joel Brobecker <brobecker@adacore.com>
9072
9073 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9074 a reference, strip the reference layer before calling
9075 the lang_ops value_has_mutated callback.
9076
410a0ff2
SDJ
90772014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9078
9079 Remove some globals from our parser.
9080 * language.c (unk_lang_parser): Add "struct parser_state"
9081 argument.
9082 * language.h (struct language_defn) <la_parser>: Likewise.
9083 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9084 (initialize_expout): Add "struct parser_state" argument.
9085 Rewrite function to use the parser state.
9086 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9087 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9088 write_exp_elt_longcst, write_exp_elt_dblcst,
9089 write_exp_elt_decfloatcst, write_exp_elt_type,
9090 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9091 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9092 write_dollar_variable): Likewise.
9093 (parse_exp_in_context_1): Use parser state.
9094 (insert_type_address_space): Add "struct parser_state" argument.
9095 Use parser state.
9096 (increase_expout_size): New function.
9097 * parser-defs.h: Forward declare "struct language_defn" and
9098 "struct parser_state".
9099 (expout, expout_size, expout_ptr): Remove extern declarations.
9100 (parse_gdbarch, parse_language): Rewrite macro declarations to
9101 accept the parser state.
9102 (struct parser_state): New struct.
9103 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9104 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9105 write_exp_elt_decfloatcst, write_exp_elt_type,
9106 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9107 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9108 write_exp_msymbol, write_dollar_variable,
9109 mark_struct_expression, insert_type_address_space): Add "struct
9110 parser_state" argument.
9111 (increase_expout_size): New function.
9112 * utils.c (do_clear_parser_state): New function.
9113 (make_cleanup_clear_parser_state): Likewise.
9114 * utils.h (make_cleanup_clear_parser_state): New function
9115 prototype.
9116 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9117 Update calls to write_exp* in order to pass the parser state.
9118 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9119 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9120 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9121 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9122 * stap-probe.c (stap_parse_register_operand): Likewise.
9123 (stap_parse_single_operand): Likewise.
9124 (stap_parse_argument_1): Likewise.
9125 (stap_parse_argument): Use parser state.
9126 * stap-probe.h: Include "parser-defs.h".
9127 (struct stap_parse_info) <pstate>: New field.
9128 * c-exp.y (parse_type): Rewrite to use parser state.
9129 (yyparse): Redefine to c_parse_internal.
9130 (pstate): New global variable.
9131 (parse_number): Add "struct parser_state" argument.
9132 (write_destructor_name): Likewise.
9133 (type_exp): Update calls to write_exp* and similars in order to
9134 use parser state.
9135 (exp1, exp, variable, qualified_name, space_identifier,
9136 typename, typebase): Likewise.
9137 (write_destructor_name, parse_number, lex_one_token,
9138 classify_name, classify_inner_name, c_parse): Add "struct
9139 parser_state" argument. Update function to use parser state.
9140 * c-lang.h: Forward declare "struct parser_state".
9141 (c_parse): Add "struct parser_state" argument.
9142 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9143 (yyparse): Redefine macro to ada_parse_internal.
9144 (pstate): New variable.
9145 (write_int, write_object_renaming, write_var_or_type,
9146 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9147 type_int, type_long, type_long_long, type_float, type_double,
9148 type_long_double, type_char, type_boolean, type_system_address):
9149 Add "struct parser_state" argument.
9150 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9151 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9152 var_or_type, aggregate, aggregate_component_list,
9153 positional_list, others, component_group,
9154 component_associations): Update calls to write_exp* and similar
9155 functions in order to use parser state.
9156 (ada_parse, write_var_from_sym, write_int,
9157 write_exp_op_with_string, write_object_renaming,
9158 find_primitive_type, write_selectors, write_ambiguous_var,
9159 write_var_or_type, write_name_assoc, type_int, type_long,
9160 type_long_long, type_float, type_double, type_long_double,
9161 type_char, type_boolean, type_system_address): Add "struct
9162 parser_state" argument. Adjust function to use parser state.
9163 * ada-lang.c (parse): Likewise.
9164 * ada-lang.h: Forward declare "struct parser_state".
9165 (ada_parse): Add "struct parser_state" argument.
9166 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9167 calls to both functions.
9168 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9169 parser state.
9170 (yyparse): Redefine macro to f_parse_internal.
9171 (pstate): New variable.
9172 (parse_number): Add "struct parser_state" argument.
9173 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9174 and similars in order to use parser state.
9175 (parse_number): Adjust code to use parser state.
9176 (yylex): Likewise.
9177 (f_parse): New function.
9178 * f-lang.h: Forward declare "struct parser_state".
9179 (f_parse): Add "struct parser_state" argument.
9180 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9181 parser state.
9182 (yyparse): Redefine macro for java_parse_internal.
9183 (pstate): New variable.
9184 (push_expression_name, push_expression_name, insert_exp): Add
9185 "struct parser_state" argument.
9186 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9187 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9188 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9189 PostIncrementExpression, PostDecrementExpression,
9190 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9191 UnaryExpressionNotPlusMinus, CastExpression,
9192 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9193 RelationalExpression, EqualityExpression, AndExpression,
9194 ExclusiveOrExpression, InclusiveOrExpression,
9195 ConditionalAndExpression, ConditionalOrExpression,
9196 ConditionalExpression, Assignment, LeftHandSide): Update
9197 calls to write_exp* and similars in order to use parser state.
9198 (parse_number): Ajust code to use parser state.
9199 (yylex): Likewise.
9200 (java_parse): New function.
9201 (push_variable): Add "struct parser_state" argument. Adjust
9202 code to user parser state.
9203 (push_fieldnames, push_qualified_expression_name,
9204 push_expression_name, insert_exp): Likewise.
9205 * jv-lang.h: Forward declare "struct parser_state".
9206 (java_parse): Add "struct parser_state" argument.
9207 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9208 parser state.
9209 (yyparse): Redefine macro to m2_parse_internal.
9210 (pstate): New variable.
9211 (type_exp, exp, fblock, variable, type): Update calls to
9212 write_exp* and similars to use parser state.
9213 (yylex): Likewise.
9214 (m2_parse): New function.
9215 * m2-lang.h: Forward declare "struct parser_state".
9216 (m2_parse): Add "struct parser_state" argument.
9217 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9218 * objc-lang.h: Forward declare "struct parser_state".
9219 (end_msglist): Add "struct parser_state" argument.
9220 * p-exp.y (parse_type): Rewrite macro to use parser state.
9221 (yyparse): Redefine macro to pascal_parse_internal.
9222 (pstate): New variable.
9223 (parse_number): Add "struct parser_state" argument.
9224 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9225 write_exp* and similars in order to use parser state.
9226 (parse_number, yylex): Adjust code to use parser state.
9227 (pascal_parse): New function.
9228 * p-lang.h: Forward declare "struct parser_state".
9229 (pascal_parse): Add "struct parser_state" argument.
9230 * go-exp.y (parse_type): Rewrite macro to use parser state.
9231 (yyparse): Redefine macro to go_parse_internal.
9232 (pstate): New variable.
9233 (parse_number): Add "struct parser_state" argument.
9234 (type_exp, exp1, exp, variable, type): Update calls to
9235 write_exp* and similars in order to use parser state.
9236 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9237 to use parser state.
9238 (go_parse): Likewise.
9239 * go-lang.h: Forward declare "struct parser_state".
9240 (go_parse): Add "struct parser_state" argument.
9241
342587c4
DE
92422014-03-27 Doug Evans <dje@google.com>
9243
9244 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9245
33e80786
DE
92462014-03-27 Doug Evans <dje@google.com>
9247
9248 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9249 Remove argument abbrev_section. All callers updated.
9250
1dbab08b
DE
92512014-03-27 Doug Evans <dje@google.com>
9252
9253 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9254 addr_base, ranges_base.
9255
318d3177
KS
92562014-03-26 Keith Seitz <keiths@redhat.com>
9257
9258 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9259 types, not VAR_DOMAIN.
9260
1e54db15
SL
92612014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9262
9263 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9264 "ra" registers.
9265 * features/nios2-linux.c: Regenerated.
9266 * features/nios2.c: Regenerated.
9267
d3839ede
PA
92682014-03-25 Pedro Alves <palves@redhat.com>
9269
9270 * cli/cli-script.c (script_from_file): Force the interpreter to
9271 sync mode.
9272
7588d2ec
PL
92732014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9274
9275 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9276 small stack allocation.
9277
a6290449
TG
92782014-03-24 Tristan Gingold <gingold@adacore.com>
9279
9280 * darwin-nat.c (exc_server): Remove unused prototype.
9281 (darwin_dump_message): Correctly display data on x86_64.
9282 (darwin_encode_reply): Fix style.
9283 Add comments and fix indentation.
9284
31ae9d24 92852014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9286
9287 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9288
6339bfc4
DE
92892014-03-22 Doug Evans <xdje42@gmail.com>
9290
9291 * infcmd.c: Whitespace fixes.
9292 (interrupt_command): Merge two function comments into one.
9293
0a07590b
DE
92942014-03-22 Doug Evans <xdje42@gmail.com>
9295
9296 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9297 All uses updated.
9298
b55fbac4
YQ
92992014-03-22 Yao Qi <yao@codesourcery.com>
9300
9301 * remote.c (target_read_live_memory): Remove.
9302 (memory_xfer_live_readonly_partial): Rename it to
9303 remote_xfer_live_readonly_partial. Remove argument 'object'.
9304 All callers updated. Call remote_read_bytes_1
9305 instead of target_read_live_memory.
9306 * tracepoint.c (set_traceframe_number): Remove.
9307 (make_cleanup_restore_traceframe_number): Likewise .
9308 * tracepoint.h (set_traceframe_number): Remove declaration.
9309 (make_cleanup_restore_traceframe_number): Likewise.
9310
9217e74e
YQ
93112014-03-22 Yao Qi <yao@codesourcery.com>
9312
9313 * remote.c (remote_read_bytes): Move code on reading from the
9314 remote stub to ...
9315 (remote_read_bytes_1): ... here. New function.
9316
8acf9577
YQ
93172014-03-22 Yao Qi <yao@codesourcery.com>
9318
9319 * ctf.c (ctf_xfer_partial): Check the return value of
9320 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9321 return TARGET_XFER_UNAVAILABLE.
9322 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9323 * target.c (target_read_live_memory): Move it to remote.c.
9324 (memory_xfer_live_readonly_partial): Likewise.
9325 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9326 * remote.c (target_read_live_memory): Moved from target.c.
9327 (memory_xfer_live_readonly_partial): Likewise.
9328 (remote_read_bytes): Factored out from
9329 memory_xfer_partial_1.
9330
feef67ab
DE
93312014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9332
9333 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9334 NULL pointer.
9335
b65dc60b
PA
93362014-03-21 Pedro Alves <palves@redhat.com>
9337
9338 * infrun.c (normal_stop): Extend comment.
9339
b4ab256d
HZ
93402014-03-21 Hui Zhu <hui@codesourcery.com>
9341 Pedro Alves <palves@redhat.com>
9342
9343 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9344 static buffer.
9345 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9346 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9347 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9348
deba7593
MR
93492014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9350
9351 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9352 `z' formatted output modifier.
9353
1bff71c3
SDJ
93542014-03-20 Tom Tromey <tromey@redhat.com>
9355 Sergio Durigan Junior <sergiodj@redhat.com>
9356
9357 * probe.c (parse_probes): Turn assert into an ordinary error.
9358 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9359 exceptions when parsing probes. Rearrange the code for clarity.
9360
90e28950
TT
93612014-03-20 Tom Tromey <tromey@redhat.com>
9362
9363 PR gdb/14135
9364 * top.c (execute_command): Only dispatch events if the command
9365 started the target.
9366
beb460e8
PA
93672014-03-20 Tom Tromey <tromey@redhat.com>
9368
9369 PR cli/15718
9370 * infcall.c: Include event-top.h.
9371 (run_inferior_call): Call async_disable_stdin if needed.
9372
99619bea
PA
93732014-03-20 Pedro Alves <palves@redhat.com>
9374
9375 * infrun.c (prepare_to_proceed): Delete.
9376 (thread_still_needs_step_over): New function.
9377 (find_thread_needs_step_over): New function.
9378 (proceed): If the current thread needs a step-over, set its
9379 steping_over_breakpoint flag. Adjust to use
9380 find_thread_needs_step_over instead of prepare_to_proceed.
9381 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9382 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9383 breakpoint.
9384 (switch_back_to_stepped_thread): Step over breakpoints of all
9385 threads not the stepping thread, before switching back to the
9386 stepping thread.
9387
2adfaa28
PA
93882014-03-20 Pedro Alves <palves@redhat.com>
9389
9390 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9391 extern.
9392 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9393 * infrun.c (saved_singlestep_ptid)
9394 (stepping_past_singlestep_breakpoint): Delete.
9395 (resume): Remove stepping_past_singlestep_breakpoint handling.
9396 (proceed): Store the prev_pc of the stepping thread too.
9397 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9398 singlestep_pc.
9399 (enum infwait_states): Delete infwait_thread_hop_state.
9400 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9401 field.
9402 (handle_inferior_event): Adjust.
9403 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9404 handling and the thread-hop code. Before removing single-step
9405 breakpoints, check whether the thread hit a single-step breakpoint
9406 of another thread. If it did, the trap is not a random signal.
9407 (switch_back_to_stepped_thread): If the event thread hit a
9408 single-step breakpoint, unblock it before switching to the
9409 stepping thread. Handle the case of the stepped thread having
9410 advanced already.
9411 (keep_going): Handle the case of the current thread moving past a
9412 single-step breakpoint.
9413
31e77af2
PA
94142014-03-20 Pedro Alves <palves@redhat.com>
9415
9416 PR breakpoints/7143
9417 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9418 are being stepped over.
9419 (breakpoint_address_match): Make extern.
9420 * breakpoint.h (breakpoint_address_match): New declaration.
9421 * inferior.h (stepping_past_instruction_at): New declaration.
9422 * infrun.c (struct step_over_info): New type.
9423 (step_over_info): New global.
9424 (set_step_over_info, clear_step_over_info)
9425 (stepping_past_instruction_at): New functions.
9426 (handle_inferior_event): Clear the step-over info when
9427 trap_expected is cleared.
9428 (resume): Remove now stale comment.
9429 (clear_proceed_status): Clear step-over info.
9430 (proceed): Adjust step-over handling to set or clear the step-over
9431 info instead of removing all breakpoints.
9432 (handle_signal_stop): When setting up a thread-hop, don't remove
9433 breakpoints here.
9434 (stop_stepping): Clear step-over info.
9435 (keep_going): Adjust step-over handling to set or clear step-over
9436 info and then always inserting breakpoints, instead of removing
9437 all breakpoints when stepping over one.
9438
b9f437de
PA
94392014-03-20 Pedro Alves <palves@redhat.com>
9440
9441 * infrun.c (previous_inferior_ptid): Adjust comment.
9442 (deferred_step_ptid): Delete.
9443 (infrun_thread_ptid_changed, prepare_to_proceed)
9444 (init_wait_for_inferior): Adjust.
9445 (handle_signal_stop): Delete deferred_step_ptid handling.
9446
06c868a8
JK
94472014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9448
9449 PR gdb/15358
9450 * defs.h (sync_quit_force_run): New declaration.
9451 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9452 * event-top.c (async_sigterm_handler): New declaration.
9453 (async_sigterm_token): New variable.
9454 (async_init_signals): Create also async_sigterm_token.
9455 (async_sigterm_handler): New function.
9456 (sync_quit_force_run): New variable.
9457 (handle_sigterm): Replace quit_force call by other calls.
9458 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9459
dea80df0
MR
94602014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9461
9462 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9463 offset into SPE pseudo registers.
9464
0c7e1a46
PA
94652014-03-18 Pedro Alves <palves@redhat.com>
9466
9467 PR gdb/13860
9468 * inferior.h (print_stop_event): Declare.
9469 * infrun.c (print_stop_event): New, factored out from ...
9470 (normal_stop): ... this.
9471 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9472 of bpstat_print/print_stack_frame.
9473
9c1fcd01
TT
94742014-03-17 Tom Tromey <tromey@redhat.com>
9475
9476 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9477
11aa919a
PMR
94782014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9479
9480 * ada-lang.c (decode_constrained_packed_array): Perform a
9481 minimal coercion for reference with coerce_ref instead of
9482 ada_coerce_ref.
9483
d4ccb5e0
TG
94842014-03-17 Tristan Gingold <gingold@adacore.com>
9485
9486 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9487 (darwin_solib_create_inferior_hook): Emit a warning if version
9488 is unhandled.
9489
49840f2a
UW
94902014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9491
9492 * python/py-value.c (get_field_flag): Cast flag_name argument to
9493 PyObject_GetAttrString to support Python 2.4.
9494
ed4123e5
JK
94952014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9496
9497 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9498 (Global Maintainers): Remove Jan Kratochvil.
9499
d6b64346
PA
95002014-03-14 Pedro Alves <palves@redhat.com>
9501
9502 * inferior.h (terminal_ours_for_output): Rename to ...
9503 (child_terminal_ours_for_output): ... this.
9504 (terminal_save_ours): Rename to ...
9505 (child_terminal_save_ours): ... this.
9506 (terminal_ours): Rename to ...
9507 (child_terminal_ours): ... this.
9508 (terminal_inferior): Rename to ...
9509 (child_terminal_inferior): ... this.
9510 (terminal_init_inferior): Rename to ...
9511 (child_terminal_init_inferior): ... this.
9512 (terminal_init_inferior_with_pgrp): Rename to ...
9513 (child_terminal_init_inferior_with_pgrp): ... this.
9514 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9515 (child_terminal_init_with_pgrp): ... this.
9516 (terminal_save_ours): Rename to ...
9517 (child_terminal_save_ours): ... this.
9518 (terminal_init_inferior): Rename to ...
9519 (child_terminal_init): ... this. Adjust.
9520 (terminal_inferior): Rename to ...
9521 (child_terminal_inferior): ... this.
9522 (terminal_ours_for_output): Rename to ...
9523 (child_terminal_ours_for_output): ... this. Adjust.
9524 (terminal_ours): Rename to ...
9525 (child_terminal_ours): ... this.
9526 (terminal_ours_1): Rename to ...
9527 (child_terminal_ours_1): ... this. Adjust.
9528 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9529 * windows-nat.c (do_initial_windows_stuff): Adjust.
9530 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9531 (gnu_terminal_init): ... this. Adjust.
9532 (gnu_target): Adjust.
9533 * inf-child.c (inf_child_target): Adjust.
9534
5a1e8c7a
DE
95352014-03-13 Doug Evans <xdje42@gmail.com>
9536
9537 PR guile/16612
9538 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9539 new eq?-hashtab.
9540
350e1a76
DE
95412014-03-13 Doug Evans <xdje42@gmail.com>
9542
9543 * value.c (record_latest_value): Call release_value_or_incref
9544 instead of release_value.
9545
a69900ae
PA
95462014-03-13 Pedro Alves <palves@redhat.com>
9547
9548 * procfs.c (procfs_target): Don't override to_shortname,
9549 to_longname or to_doc.
9550
5db9f0bd
PA
95512014-03-13 Pedro Alves <palves@redhat.com>
9552
9553 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9554 Unix in user visible strings.
9555
5e3a2c38
SS
95562014-03-12 Stan Shebs <stan@codesourcery.com>
9557
9558 * gdbtypes.h: Annotate comments for Doxygen, add a page
9559 block comment with some general info.
9560
8bc2fe48
PA
95612014-03-12 Pedro Alves <palves@redhat.com>
9562
9563 * infcmd.c (prepare_execution_command): New function, factored out
9564 from several execution commands.
9565 (run_command_1, continue_command, step_1, jump_command)
9566 (signal_command, until_command, advance_command, finish_command)
9567 (attach_command): Use prepare_execution_command.
9568
638c5f49
OJ
95692014-03-12 Omair Javaid <omair.javaid@linaro.org>
9570
9571 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9572 (MAX_BPTS): Define.
9573 (MAX_WPTS): Define.
9574 (struct arm_linux_thread_points): Removed.
9575 (struct arm_linux_process_info): New.
9576 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9577 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9578 (arm_linux_find_breakpoints_by_tid): Removed.
9579 (struct arch_lwp_info): New.
9580 (arm_linux_find_process_pid): New functions.
9581 (arm_linux_add_process): New functions.
9582 (arm_linux_process_info_get): New functions.
9583 (arm_linux_forget_process): New function.
9584 (arm_linux_get_debug_reg_state): New function.
9585 (struct update_registers_data): New.
9586 (update_registers_callback): New function.
9587 (arm_linux_insert_hw_breakpoint1): Updated.
9588 (arm_linux_remove_hw_breakpoint1): Updated.
9589 (arm_linux_insert_hw_breakpoint): Updated.
9590 (arm_linux_remove_hw_breakpoint): Updated.
9591 (arm_linux_insert_watchpoint): Updated.
9592 (arm_linux_remove_watchpoint): Updated.
9593 (arm_linux_new_thread): Updated.
9594 (arm_linux_prepare_to_resume): New function.
9595 (arm_linux_new_fork): New function.
9596 (_initialize_arm_linux_nat): Updated.
9597
6d03af93
PA
95982014-03-12 Pedro Alves <palves@redhat.com>
9599
9600 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9601
b3ccfe11
TT
96022014-03-12 Tom Tromey <tromey@redhat.com>
9603
9604 * inf-child.c (return_zero): New function.
9605 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9606 * aix-thread.c (aix_thread_inferior_created): New function.
9607 (aix_thread_attach): Remove.
9608 (init_aix_thread_ops): Don't set to_attach.
9609 (_initialize_aix_thread): Register inferior_created observer.
9610 * corelow.c (init_core_ops): Don't set to_attach or
9611 to_create_inferior.
9612 * exec.c (init_exec_ops): Don't set to_attach or
9613 to_create_inferior.
9614 * infcmd.c (run_command_1): Use find_run_target. Make direct
9615 target calls.
9616 (attach_command): Use find_attach_target. Make direct target
9617 calls.
9618 * record-btrace.c (init_record_btrace_ops): Don't set
9619 to_create_inferior.
9620 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9621 Remove.
9622 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9623 set to_create_inferior.
9624 * target.c (complete_target_initialization): Add assertion.
9625 (target_create_inferior): Remove.
9626 (find_default_attach, find_default_create_inferior): Remove.
9627 (find_attach_target, find_run_target): New functions.
9628 (find_default_is_async_p, find_default_can_async_p)
9629 (target_supports_non_stop, target_attach): Remove.
9630 (init_dummy_target): Don't set to_create_inferior or
9631 to_supports_non_stop.
9632 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9633 TARGET_DEFAULT_FUNC.
9634 <to_create_inferior>: Add comment.
9635 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9636 TARGET_DEFAULT_RETURN.
9637 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9638 (find_attach_target, find_run_target): Declare.
9639 (target_create_inferior): Remove.
9640 (target_has_execution_1): Update comment.
9641 (target_supports_non_stop): Remove.
9642 * target-delegates.c: Rebuild.
9643
91f83b02
PA
96442014-03-12 Pedro Alves <palves@redhat.com>
9645
9646 * inf-child.h: Update comment to not mention Unix.
9647
f1aea813
PA
96482014-03-12 Pedro Alves <palves@redhat.com>
9649
9650 * inf-child.c: Update top comment to not mention Unix. Add
9651 generic comment describing how this target is meant to be used.
9652 (inf_child_post_attach, inf_child_post_startup_inferior)
9653 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9654 Unix in comment.
9655
ee8e9165
PA
96562014-03-12 Pedro Alves <palves@redhat.com>
9657
9658 * nto-procfs.c: Include inf-child.h.
9659 (procfs_ops): Delete global.
9660 (procfs_can_run): Delete method.
9661 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9662 target pointer instead of referencing procfs_ops.
9663 (procfs_prepare_to_store): Delete.
9664 (init_procfs_ops): Delete function.
9665 (procfs_target): New function, based on init_procfs_ops, but
9666 inherit inf_child_target.
9667 (_initialize_procfs): Use procfs_target.
9668
51a9c8c5
PA
96692014-03-12 Pedro Alves <palves@redhat.com>
9670
9671 * windows-nat.c: Include inf-child.h.
9672 (windows_ops): Delete global.
9673 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9674 methods.
9675 (init_windows_ops): Delete function.
9676 (windows_target): New function, based on init_windows_ops, but
9677 inherit inf_child_target.
9678 (_initialize_windows_nat): Use windows_target. Install x86
9679 specific target methods here.
9680
c1966e26
DE
96812014-03-10 Doug Evans <xdje42@gmail.com>
9682
9683 * guile/guile.c (call_initialize_gdb_module): New function.
9684 (initialize_guile): Replace call to scm_init_guile with call to
9685 scm_with_guile.
9686
023db19c
JB
96872014-03-10 Joel Brobecker <brobecker@adacore.com>
9688
9689 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9690 in call to TYPE_CODE macro.
9691
5ec18f2b
JG
96922014-03-10 Jerome Guitton <guitton@adacore.com>
9693
8668be63
JB
9694 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9695 Resolve tagged types to full view.
5ec18f2b 9696
7d03f2eb
HZ
96972014-03-10 Hui Zhu <hui@codesourcery.com>
9698
9699 * target.h (target_insert_breakpoint): Remove "hardware" from its
9700 comments.
9701
c5164cbc
DE
97022014-03-07 Doug Evans <dje@google.com>
9703
9704 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9705
c4a3fee2
DE
97062014-03-07 Doug Evans <dje@google.com>
9707
9708 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9709 Remove unused local comp_dir_attr. Assert exactly one of
9710 stub_comp_unit_die, stub_comp_dir is non-NULL.
9711
3156469c
JB
97122014-03-07 Joel Brobecker <brobecker@adacore.com>
9713
9714 * target.h (complete_target_initialization, add_target):
9715 Add comment.
9716
c1a7b7c6
PA
97172014-03-07 Pedro Alves <palves@redhat.com>
9718
9719 * go32-nat.c: Include inf-child.h.
9720 (go32_ops): Delete global.
9721 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9722 Delete methods.
9723 (go32_create_inferior): Push the passed in target pointer instead
9724 of referencing go32_ops.
9725 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9726 (go32_target): New function, based on init_go32_ops, but inherit
9727 inf_child_target.
9728 (_initialize_go32_nat): Use go32_target. Move parts of
9729 init_go32_ops here.
9730
d3c1a85f
JB
97312014-03-06 Joel Brobecker <brobecker@adacore.com>
9732
9733 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9734 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9735 SYMBOL_VALUE_ADDRESS.
9736 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9737
5fa1d40e
YQ
97382014-03-06 Yao Qi <yao@codesourcery.com>
9739
9740 * breakpoint.c (get_tracepoint_by_number): Remove argument
9741 optional_p. All callers updated. Adjust comments. Update
9742 output message.
9743 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9744
0c13193f
YQ
97452014-03-06 Yao Qi <yao@codesourcery.com>
9746
9747 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9748 early if get_number returns zero. Use 'p' instead of 'args'.
9749
2217da06
YQ
97502014-03-06 Yao Qi <yao@codesourcery.com>
9751
9752 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9753 message.
9754
cc3da688
YQ
97552014-03-06 Yao Qi <yao@codesourcery.com>
9756
9757 PR breakpoints/16508
9758 * tracepoint.c (check_trace_running): New function.
9759 (trace_find_command): Move code to check_trace_running and
9760 call check_trace_running.
9761 (trace_find_pc_command): Likewise.
9762 (trace_find_tracepoint_command): Likewise.
9763 (trace_find_line_command): Likewise.
9764 (trace_find_range_command): Likewise.
9765 * tracepoint.h (check_trace_running): Likewise.
9766 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9767
6a5f844b
YQ
97682014-03-06 Yao Qi <yao@codesourcery.com>
9769
9770 * target.h (struct target_ops) <to_traceframe_info>: Use
9771 TARGET_DEFAULT_NORETURN (tcomplain ()).
9772 * target-delegates.c: Regenerated.
9773
0f26cec1
PA
97742014-03-05 Pedro Alves <palves@redhat.com>
9775
9776 PR gdb/16575
9777 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9778 void. Update comment.
9779 (dcache_xfer_memory): Delete.
9780 (dcache_read_memory_partial): New, based on the read bits of
9781 dcache_xfer_memory.
9782 (dcache_update): Add status parameter. Use ULONGEST for len, and
9783 adjust. Discard cache lines if the reason for the update was
9784 error.
9785 * dcache.h (dcache_xfer_memory): Delete declaration.
9786 (dcache_read_memory_partial): New declaration.
9787 (dcache_update): Update prototype.
9788 * target.c (raw_memory_xfer_partial): Update the dcache here.
9789 (memory_xfer_partial_1): Don't handle dcache writes here.
9790
b2b255bd
MF
97912014-03-05 Mike Frysinger <vapier@gentoo.org>
9792
9793 * remote-sim.c (gdbsim_load): Add const to prog.
9794
5d9cf8a4
TT
97952014-03-03 Tom Tromey <tromey@redhat.com>
9796
9797 * elfread.c (probe_key): Change to bfd_data.
9798 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9799 now per-BFD, not per-objfile.
9800 * stap-probe.c (stap_probe_destroy): Update comment.
9801 (handle_stap_probe): Allocate on the per-BFD obstack.
9802
729662a5
TT
98032014-03-03 Tom Tromey <tromey@redhat.com>
9804
9805 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9806 * breakpoint.c (create_longjmp_master_breakpoint): Use
9807 get_probe_address.
9808 (add_location_to_breakpoint, bkpt_probe_insert_location)
9809 (bkpt_probe_remove_location): Update.
9810 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9811 * elfread.c (elf_symfile_relocate_probe): Remove.
9812 (elf_probe_fns): Update.
9813 (insert_exception_resume_breakpoint): Change type of "probe"
9814 parameter to bound_probe.
9815 (check_exception_resume): Update.
9816 * objfiles.c (objfile_relocate1): Don't relocate probes.
9817 * probe.c (bound_probe_s): New typedef.
9818 (parse_probes): Use get_probe_address. Set sal's objfile.
9819 (find_probe_by_pc): Return a bound_probe.
9820 (collect_probes): Return a VEC(bound_probe_s).
9821 (compare_probes): Update.
9822 (gen_ui_out_table_header_info): Change type of "probes"
9823 parameter. Update.
9824 (info_probes_for_ops): Update.
9825 (get_probe_address): New function.
9826 (probe_safe_evaluate_at_pc): Update.
9827 * probe.h (struct probe_ops) <get_probe_address>: New field.
9828 <set_semaphore, clear_semaphore>: Add objfile parameter.
9829 (struct probe) <objfile>: Remove field.
9830 <arch>: New field.
9831 <address>: Update comment.
9832 (struct bound_probe): New.
9833 (find_probe_by_pc): Return a bound_probe.
9834 (get_probe_address): Declare.
9835 * solib-svr4.c (struct probe_and_action) <address>: New field.
9836 (hash_probe_and_action, equal_probe_and_action): Update.
9837 (register_solib_event_probe): Add address parameter.
9838 (solib_event_probe_at): Update.
9839 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9840 get_probe_address.
9841 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9842 (stap_get_probe_address): New function.
9843 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9844 (compile_probe_arg): Update.
9845 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9846 address.
9847 (handle_stap_probe): Don't relocate the probe.
9848 (stap_relocate): Remove.
9849 (stap_gen_info_probes_table_values): Update.
9850 (stap_probe_ops): Remove stap_relocate.
9851 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9852 (debug_sym_probe_fns): Update.
9853 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9854 * symtab.c (init_sal): Use memset.
9855 * symtab.h (struct symtab_and_line) <objfile>: New field.
9856 * tracepoint.c (start_tracing, stop_tracing): Update.
9857
ff887920
TT
98582014-03-03 Tom Tromey <tromey@redhat.com>
9859
9860 * probe.h (parse_probes, find_probe_by_pc)
9861 (find_probes_in_objfile): Fix comments.
9862
f0407826
DE
98632014-03-02 Doug Evans <xdje42@gmail.com>
9864
9865 * infrun.c (handle_signal_stop): Replace test for
9866 TARGET_WAITKIND_STOPPED with an assert.
9867
35e6a711
DE
98682014-03-02 Doug Evans <xdje42@gmail.com>
9869
9870 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9871
667f9d0b
DE
98722014-03-02 Doug Evans <xdje42@gmail.com>
9873
9874 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9875
dc92ace0
MK
98762014-03-01 Mark Kettenis <kettenis@gnu.org>
9877
9878 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9879
a900370f
MK
98802014-03-01 Mark Kettenis <kettenis@gnu.org>
9881
9882 * i386obsd-nat.c: Include "obsd-nat.h".
9883 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9884 add_target.
9885 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9886
b72a7981
MK
98872014-03-01 Mark Kettenis <kettenis@gnu.org>
9888
9889 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9890
96c70aba
MK
98912014-03-01 Mark Kettenis <kettenis@gnu.org>
9892
9893 * mips64obsd-nat.c: Include "obsd-nath".
9894 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9895 add_target
9896 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9897
874a80af
MK
98982014-03-01 Mark Kettenis <kettenis@gnu.org>
9899
8fd408f1
MK
9900 * amd64obsd-nat.c: Include "obsd-nat,h.
9901 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9902 add_target.
874a80af
MK
9903 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9904
9cf95373
SC
99052014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9906
9907 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9908 (find_overload_match): Update call to find_oload_champ.
9909 (find_oload_champ_namespace_loop): Likewise
9910
863e4da4
MK
99112014-02-28 Mark Kettenis <kettenis@gnu.org>
9912
025cac40
MK
9913 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9914
1ed586ce
MK
9915 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9916 * config/sparc/obsd64.mh: New file.
9917 * sparc64obsd-nat.c: New file.
9918
863e4da4
MK
9919 * obsd-nat.h: New file.
9920 * obsd-nat.c: New file.
9921 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9922 (ALLDEPFILES): Add obsd-nat.c.
9923
89de4da4
TT
99242014-02-28 Tom Tromey <tromey@redhat.com>
9925
9926 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9927 * cli-out.h (cli_ui_out_impl): Now const.
9928 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9929 * ui-out.c (struct ui_out) <impl>: Now const.
9930 (default_ui_out_impl): Now const.
9931 (ui_out_new): Make 'impl' parameter const.
9932 * ui-out.h (ui_out_new): Update.
9933
c725e7b6
MK
99342014-02-27 Mark Kettenis <kettenis@gnu.org>
9935
9936 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9937
670b46b3
MK
99382014-02-27 Mark Kettenis <kettenis@gnu.org>
9939
9940 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9941
c91550fc
JK
99422014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9943
9944 Additional PR 8882 fix.
9945 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9946
2fa0369e
PA
99472014-02-27 Pedro Alves <palves@redhat.com>
9948
9949 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9950 isn't set.
9951
d632a097
PA
99522014-02-27 Pedro Alves <palves@redhat.com>
9953
9954 PR 12702
9955 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9956 * nat/linux-waitpid.c: Include string.h.
9957 (status_to_str): Moved here and made extern.
9958 * nat/linux-waitpid.h (status_to_str): New declaration.
9959
2ebd5a35
HZ
99602014-02-27 Hui Zhu <hui@codesourcery.com>
9961
9962 PR 12702
9963 * infrun.c (ptid_match): Move ...
9964 * common/ptid.c (ptid_match): ... here.
9965 * inferior.h (ptid_match): Move ...
9966 * common/ptid.h (ptid_match): ... here.
9967
3cdd631f
MK
99682014-02-27 Mark Kettenis <kettenis@gnu.org>
9969
9970 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9971 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9972 gdb_target_obs.
9973
bee30a64
MK
99742014-02-27 Mark Kettenis <kettenis@gnu.org>
9975
9976 * obsd-tdep.c (obsd_auxv_parse): New function.
9977 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9978
9979 * gdbarch.sh (auxv_parse): New.
9980 * gdbarch.h: Regenerated.
9981 * gdbarch.c: Regenerated.
9982 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9983
7a5a839f
LC
99842014-02-26 Ludovic Courtès <ludo@gnu.org>
9985
9986 * guile/scm-value.c (gdbscm_history_append_x): New function.
9987 (value_functions): Add it.
9988
31aa7e4e
JB
99892014-02-27 Joel Brobecker <brobecker@adacore.com>
9990
9991 * dwarf2read.c (attr_value_as_address): New function.
9992 (dwarf2_find_base_address, read_call_site_scope): Use
9993 attr_value_as_address in place of DW_ADDR.
9994 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9995 the low and high addresses. Slight rework of the handling
9996 of the high pc being a constant form, and limit it to
9997 DWARF verson 4 or higher.
9998 (dwarf2_record_block_ranges): Likewise.
9999 (read_partial_die): Likewise.
10000 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10001
9b333ba3
TT
100022014-02-26 Tom Tromey <tromey@redhat.com>
10003
10004 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10005
5f6cac40
TT
100062014-02-26 Tom Tromey <tromey@redhat.com>
10007
10008 * elfread.c (elf_read_minimal_symbols): Return early if
10009 minimal symbols have already been read. Add "ei" parameter.
10010 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10011 * minsyms.c (prim_record_minimal_symbol_full): Update.
10012 * objfiles.h (struct objstats) <n_minsyms>: Move...
10013 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10014 * symmisc.c (print_objfile_statistics): Update.
10015
2750ef27
TT
100162014-02-26 Tom Tromey <tromey@redhat.com>
10017
10018 * elfread.c (elf_read_minimal_symbols): New function, from
10019 elf_symfile_read.
10020 (elf_symfile_read): Call it.
10021
34643a32
TT
100222014-02-26 Tom Tromey <tromey@redhat.com>
10023
10024 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10025 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10026 (lookup_minimal_symbol_solib_trampoline)
10027 (lookup_minimal_symbol_by_pc_section_1)
10028 (lookup_minimal_symbol_and_objfile): Update.
10029 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10030 Don't allocate a minimal symbol if minsyms have already been read.
10031 (build_minimal_symbol_hash_tables): Update.
10032 (install_minimal_symbols): Do nothing if minsyms already read.
10033 Use the per-BFD obstack.
10034 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10035 * objfiles.c (allocate_objfile): Call
10036 terminate_minimal_symbol_table later.
10037 (have_minimal_symbols): Update.
10038 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10039 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10040 Move from struct objfile.
10041 <minsyms_read>: New field.
10042 (struct objfile) <msymbols, minimal_symbol_count,
10043 msymbol_hash, msymbol_demangled_hash>: Move.
10044 (ALL_OBJFILE_MSYMBOLS): Update.
10045 * symfile.c (read_symbols): Set minsyms_read.
10046 (reread_symbols): Update.
10047 * symmisc.c (dump_objfile, dump_msymbols): Update.
10048
2273f0ac
TT
100492014-02-26 Tom Tromey <tromey@redhat.com>
10050
10051 * minsyms.c (msymbols_sort): Remove.
10052 * minsyms.h (msymbols_sort): Remove.
10053 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10054 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10055 * elfread.c (elf_symtab_read): Don't add section offsets.
10056 * xcoffread.c (record_minimal_symbol): Don't add section offset
10057 to minimal symbol address.
10058 * somread.c (text_offset, data_offset): Remove.
10059 (som_symtab_read): Don't add section offsets to minimal symbol
10060 addresses.
10061 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10062 Don't add section offsets to minimal symbols.
10063 * coffread.c (coff_symtab_read): Don't add section offsets
10064 to minimal symbol addresses.
10065 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10066 to minimal symbol addresses.
10067 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10068 section offset to minimal symbol addresses.
10069 * mdebugread.c (parse_partial_symbols): Don't add section
10070 offset to minimal symbol addresses.
10071 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10072 offset to minimal symbol addresses.
10073
77e371c0
TT
100742014-02-26 Tom Tromey <tromey@redhat.com>
10075
10076 * ada-lang.c (ada_main_name): Update.
10077 (ada_add_standard_exceptions): Update.
10078 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10079 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10080 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10081 * auxv.c (ld_so_xfer_auxv): Update.
10082 * avr-tdep.c (avr_scan_prologue): Update.
10083 * ax-gdb.c (gen_var_ref): Update.
10084 * blockframe.c (get_pc_function_start)
10085 (find_pc_partial_function_gnu_ifunc): Update.
10086 * breakpoint.c (create_overlay_event_breakpoint)
10087 (create_longjmp_master_breakpoint)
10088 (create_std_terminate_master_breakpoint)
10089 (create_exception_master_breakpoint): Update.
10090 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10091 * c-valprint.c (c_val_print): Update.
10092 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10093 * common/agent.c (agent_look_up_symbols): Update.
10094 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10095 * dwarf2loc.c (call_site_to_target_addr): Update.
10096 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10097 * elfread.c (elf_gnu_ifunc_record_cache)
10098 (elf_gnu_ifunc_resolve_by_got): Update.
10099 * findvar.c (default_read_var_value): Update.
10100 * frame.c (inside_main_func): Update.
10101 * frv-tdep.c (frv_frame_this_id): Update.
10102 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10103 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10104 Update.
10105 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10106 (hppa_hpux_find_dummy_bpaddr): Update.
10107 * hppa-tdep.c (hppa_symbol_address): Update.
10108 * infcmd.c (until_next_command): Update.
10109 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10110 Update.
10111 * linespec.c (minsym_found, add_minsym): Update.
10112 * linux-nat.c (get_signo): Update.
10113 * linux-thread-db.c (inferior_has_bug): Update.
10114 * m32c-tdep.c (m32c_return_value)
10115 (m32c_m16c_address_to_pointer): Update.
10116 * m32r-tdep.c (m32r_frame_this_id): Update.
10117 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10118 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10119 * maint.c (maintenance_translate_address): Update.
10120 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10121 (frob_address): New function.
10122 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10123 frob_address. Rename parameter to "pc_in".
10124 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10125 addresses.
10126 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10127 Update.
10128 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10129 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10130 * objc-lang.c (find_objc_msgsend): Update.
10131 * objfiles.c (objfile_relocate1): Update.
10132 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10133 * p-valprint.c (pascal_val_print): Update.
10134 * parse.c (write_exp_msymbol): Update.
10135 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10136 (ppc_elfv2_skip_entrypoint): Update.
10137 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10138 * printcmd.c (build_address_symbolic, msym_info)
10139 (address_info): Update.
10140 * proc-service.c (ps_pglobal_lookup): Update.
10141 * psymtab.c (find_pc_sect_psymtab_closer)
10142 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10143 Change msymbol parameter to bound_minimal_symbol.
10144 * ravenscar-thread.c (get_running_thread_id): Update.
10145 * remote.c (remote_check_symbols): Update.
10146 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10147 address.
10148 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10149 * solib-dsbt.c (lm_base): Update.
10150 * solib-frv.c (lm_base, main_got): Update.
10151 * solib-irix.c (locate_base): Update.
10152 * solib-som.c (som_solib_create_inferior_hook)
10153 (link_map_start): Update.
10154 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10155 * solib-svr4.c (elf_locate_base, enable_break): Update.
10156 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10157 (flush_ea_cache): Update.
10158 * stabsread.c (define_symbol, scan_file_globals): Update.
10159 * stack.c (find_frame_funname): Update.
10160 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10161 (debug_qf_find_pc_sect_symtab): Update.
10162 * symfile.c (simple_read_overlay_table)
10163 (simple_overlay_update): Update.
10164 * symfile.h (struct quick_symbol_functions)
10165 <find_pc_sect_symtab>: Change type of msymbol to
10166 bound_minimal_symbol.
10167 * symmisc.c (dump_msymbols): Update.
10168 * symtab.c (find_pc_sect_symtab_via_partial)
10169 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10170 (search_symbols, print_msymbol_info): Update.
10171 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10172 (MSYMBOL_VALUE_ADDRESS): Redefine.
10173 (BMSYMBOL_VALUE_ADDRESS): New macro.
10174 * tracepoint.c (scope_info): Update.
10175 * tui/tui-disasm.c (tui_find_disassembly_address)
10176 (tui_get_begin_asm_address): Update.
10177 * valops.c (find_function_in_inferior): Update.
10178 * value.c (value_static_field, value_fn_field): Update.
10179
3b7344d5
TT
101802014-02-26 Tom Tromey <tromey@redhat.com>
10181
10182 * ada-lang.c (ada_update_initial_language): Update.
10183 (ada_main_name, ada_has_this_exception_support): Update.
10184 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10185 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10186 * arm-tdep.c (arm_skip_stub): Update.
10187 * auxv.c (ld_so_xfer_auxv): Update.
10188 * avr-tdep.c (avr_scan_prologue): Update.
10189 * ax-gdb.c (gen_var_ref): Update.
10190 * breakpoint.c (struct breakpoint_objfile_data)
10191 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10192 type to bound_minimal_symbol.
10193 (create_overlay_event_breakpoint)
10194 (create_longjmp_master_breakpoint)
10195 (create_std_terminate_master_breakpoint)
10196 (create_exception_master_breakpoint): Update.
10197 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10198 * c-exp.y (classify_name): Update.
10199 * coffread.c (coff_symfile_read): Update.
10200 * common/agent.c (agent_look_up_symbols): Update.
10201 * d-lang.c (d_main_name): Update.
10202 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10203 * dec-thread.c (enable_dec_thread): Update.
10204 * dwarf2loc.c (call_site_to_target_addr): Update.
10205 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10206 * eval.c (evaluate_subexp_standard): Update.
10207 * findvar.c (struct minsym_lookup_data) <result>: Change type
10208 to bound_minimal_symbol.
10209 <objfile>: Remove.
10210 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10211 * frame.c (inside_main_func): Update.
10212 * frv-tdep.c (frv_frame_this_id): Update.
10213 * gcore.c (call_target_sbrk): Update.
10214 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10215 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10216 Update.
10217 * go-lang.c (go_main_name): Update.
10218 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10219 (hppa_hpux_find_import_stub_for_addr): Update.
10220 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10221 Update. Change return type.
10222 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10223 type.
10224 * jit.c (jit_breakpoint_re_set_internal): Update.
10225 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10226 Update.
10227 * linux-nat.c (get_signo): Update.
10228 * linux-thread-db.c (inferior_has_bug): Update
10229 * m32c-tdep.c (m32c_return_value)
10230 (m32c_m16c_address_to_pointer): Update.
10231 * m32r-tdep.c (m32r_frame_this_id): Update.
10232 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10233 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10234 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10235 lookup_minimal_symbol. Change return type.
10236 (lookup_minimal_symbol): Remove.
10237 (lookup_bound_minimal_symbol): Update.
10238 (lookup_minimal_symbol_text): Change return type.
10239 (lookup_minimal_symbol_solib_trampoline): Change return type.
10240 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10241 (lookup_minimal_symbol_solib_trampoline): Change return type.
10242 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10243 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10244 (value_nsstring, find_imps): Update.
10245 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10246 * p-lang.c (pascal_main_name): Update.
10247 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10248 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10249 * proc-service.c (ps_pglobal_lookup): Update.
10250 * ravenscar-thread.c (get_running_thread_msymbol): Change
10251 return type.
10252 (has_ravenscar_runtime, get_running_thread_id): Update.
10253 * remote.c (remote_check_symbols): Update.
10254 * sol-thread.c (ps_pglobal_lookup): Update.
10255 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10256 * solib-dsbt.c (lm_base): Update.
10257 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10258 Update.
10259 * solib-irix.c (locate_base): Update.
10260 * solib-som.c (som_solib_create_inferior_hook)
10261 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10262 Update.
10263 * solib-spu.c (spu_enable_break): Update.
10264 * solib-svr4.c (elf_locate_base, enable_break): Update.
10265 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10266 (flush_ea_cache): Update.
10267 * stabsread.c (define_symbol): Update.
10268 * symfile.c (simple_read_overlay_table): Update.
10269 * symtab.c (find_pc_sect_line): Update.
10270 * tracepoint.c (scope_info): Update.
10271 * tui-disasm.c (tui_get_begin_asm_address): Update.
10272 * value.c (value_static_field): Update.
10273
40c1a007
TT
102742014-02-26 Tom Tromey <tromey@redhat.com>
10275
10276 * minsyms.c (prim_record_minimal_symbol_full): Use
10277 SET_MSYMBOL_VALUE_ADDRESS.
10278 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10279 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10280 SET_MSYMBOL_VALUE_ADDRESS.
10281 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10282 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10283
efd66ac6
TT
102842014-02-26 Tom Tromey <tromey@redhat.com>
10285
10286 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10287 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10288 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10289 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10290 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10291 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10292 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10293 * ada-lang.c (ada_main_name): Update.
10294 (ada_lookup_simple_minsym): Update.
10295 (ada_make_symbol_completion_list): Update.
10296 (ada_add_standard_exceptions): Update.
10297 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10298 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10299 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10300 * arm-tdep.c (skip_prologue_function): Update.
10301 (arm_skip_stack_protector, arm_skip_stub): Update.
10302 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10303 (arm_wince_skip_main_prologue): Update.
10304 * auxv.c (ld_so_xfer_auxv): Update.
10305 * avr-tdep.c (avr_scan_prologue): Update.
10306 * ax-gdb.c (gen_var_ref): Update.
10307 * block.c (call_site_for_pc): Update.
10308 * blockframe.c (get_pc_function_start): Update.
10309 (find_pc_partial_function_gnu_ifunc): Update.
10310 * breakpoint.c (create_overlay_event_breakpoint): Update.
10311 (create_longjmp_master_breakpoint): Update.
10312 (create_std_terminate_master_breakpoint): Update.
10313 (create_exception_master_breakpoint): Update.
10314 (resolve_sal_pc): Update.
10315 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10316 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10317 Update.
10318 * c-valprint.c (c_val_print): Update.
10319 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10320 * coffread.c (coff_symfile_read): Update.
10321 * common/agent.c (agent_look_up_symbols): Update.
10322 * dbxread.c (find_stab_function_addr): Update.
10323 (end_psymtab): Update.
10324 * dwarf2loc.c (call_site_to_target_addr): Update.
10325 (func_verify_no_selftailcall): Update.
10326 (tailcall_dump): Update.
10327 (call_site_find_chain_1): Update.
10328 (dwarf_expr_reg_to_entry_parameter): Update.
10329 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10330 (elf_gnu_ifunc_resolve_by_got): Update.
10331 * f-valprint.c (info_common_command): Update.
10332 * findvar.c (read_var_value): Update.
10333 * frame.c (get_prev_frame_1): Update.
10334 (inside_main_func): Update.
10335 * frv-tdep.c (frv_skip_main_prologue): Update.
10336 (frv_frame_this_id): Update.
10337 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10338 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10339 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10340 (gnuv3_skip_trampoline): Update.
10341 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10342 (hppa64_hpux_in_solib_call_trampoline): Update.
10343 (hppa_hpux_skip_trampoline_code): Update.
10344 (hppa64_hpux_search_dummy_call_sequence): Update.
10345 (hppa_hpux_find_import_stub_for_addr): Update.
10346 (hppa_hpux_find_dummy_bpaddr): Update.
10347 * hppa-tdep.c (hppa_symbol_address)
10348 (hppa_lookup_stub_minimal_symbol): Update.
10349 * i386-tdep.c (i386_skip_main_prologue): Update.
10350 (i386_pe_skip_trampoline_code): Update.
10351 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10352 * infcall.c (get_function_name): Update.
10353 * infcmd.c (until_next_command): Update.
10354 * jit.c (jit_breakpoint_re_set_internal): Update.
10355 (jit_inferior_init): Update.
10356 * linespec.c (minsym_found): Update.
10357 (add_minsym): Update.
10358 * linux-fork.c (info_checkpoints_command): Update.
10359 * linux-nat.c (get_signo): Update.
10360 * linux-thread-db.c (inferior_has_bug): Update.
10361 * m32c-tdep.c (m32c_return_value): Update.
10362 (m32c_m16c_address_to_pointer): Update.
10363 (m32c_m16c_pointer_to_address): Update.
10364 * m32r-tdep.c (m32r_frame_this_id): Update.
10365 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10366 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10367 * maint.c (maintenance_translate_address): Update.
10368 * minsyms.c (add_minsym_to_hash_table): Update.
10369 (add_minsym_to_demangled_hash_table): Update.
10370 (msymbol_objfile): Update.
10371 (lookup_minimal_symbol): Update.
10372 (iterate_over_minimal_symbols): Update.
10373 (lookup_minimal_symbol_text): Update.
10374 (lookup_minimal_symbol_by_pc_name): Update.
10375 (lookup_minimal_symbol_solib_trampoline): Update.
10376 (lookup_minimal_symbol_by_pc_section_1): Update.
10377 (lookup_minimal_symbol_and_objfile): Update.
10378 (prim_record_minimal_symbol_full): Update.
10379 (compare_minimal_symbols): Update.
10380 (compact_minimal_symbols): Update.
10381 (build_minimal_symbol_hash_tables): Update.
10382 (install_minimal_symbols): Update.
10383 (terminate_minimal_symbol_table): Update.
10384 (find_solib_trampoline_target): Update.
10385 (minimal_symbol_upper_bound): Update.
10386 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10387 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10388 (mips_skip_pic_trampoline_code): Update.
10389 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10390 * objc-lang.c (selectors_info): Update.
10391 (classes_info): Update.
10392 (find_methods): Update.
10393 (find_imps): Update.
10394 (find_objc_msgsend): Update.
10395 * objfiles.c (objfile_relocate1): Update.
10396 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10397 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10398 * p-valprint.c (pascal_val_print): Update.
10399 * parse.c (write_exp_msymbol): Update.
10400 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10401 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10402 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10403 * printcmd.c (build_address_symbolic): Update.
10404 (sym_info): Update.
10405 (address_info): Update.
10406 * proc-service.c (ps_pglobal_lookup): Update.
10407 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10408 (find_pc_sect_psymtab): Update.
10409 * python/py-framefilter.c (py_print_frame): Update.
10410 * ravenscar-thread.c (get_running_thread_id): Update.
10411 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10412 Update.
10413 * remote.c (remote_check_symbols): Update.
10414 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10415 (rs6000_skip_trampoline_code): Update.
10416 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10417 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10418 * solib-dsbt.c (lm_base): Update.
10419 * solib-frv.c (lm_base): Update.
10420 (main_got): Update.
10421 * solib-irix.c (locate_base): Update.
10422 * solib-som.c (som_solib_create_inferior_hook): Update.
10423 (som_solib_desire_dynamic_linker_symbols): Update.
10424 (link_map_start): Update.
10425 * solib-spu.c (spu_enable_break): Update.
10426 (ocl_enable_break): Update.
10427 * solib-svr4.c (elf_locate_base): Update.
10428 (enable_break): Update.
10429 * spu-tdep.c (spu_get_overlay_table): Update.
10430 (spu_catch_start): Update.
10431 (flush_ea_cache): Update.
10432 * stabsread.c (define_symbol): Update.
10433 (scan_file_globals): Update.
10434 * stack.c (find_frame_funname): Update.
10435 (frame_info): Update.
10436 * symfile.c (simple_read_overlay_table): Update.
10437 (simple_overlay_update): Update.
10438 * symmisc.c (dump_msymbols): Update.
10439 * symtab.c (fixup_section): Update.
10440 (find_pc_sect_line): Update.
10441 (skip_prologue_sal): Update.
10442 (search_symbols): Update.
10443 (print_msymbol_info): Update.
10444 (rbreak_command): Update.
10445 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10446 (completion_list_objc_symbol): Update.
10447 (default_make_symbol_completion_list_break_on): Update.
10448 * tracepoint.c (scope_info): Update.
10449 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10450 (tui_get_begin_asm_address): Update.
10451 * valops.c (find_function_in_inferior): Update.
10452 * value.c (value_static_field): Update.
10453 (value_fn_field): Update.
10454
50e65b17
TT
104552014-02-26 Tom Tromey <tromey@redhat.com>
10456
10457 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10458 bound minimal symbols. Move code that knows about minsym
10459 table layout...
10460 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10461 function.
10462 * minsyms.h (minimal_symbol_upper_bound): Declare.
10463 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10464 minimal_symbol_upper_bound.
10465
1b588015
JB
104662014-02-27 Joel Brobecker <brobecker@adacore.com>
10467
10468 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10469 Use the type's name if its basic type does not have a tag.
10470
dbb9c2b1
JB
104712014-02-27 Joel Brobecker <brobecker@adacore.com>
10472
10473 * dwarf2read.c (read_subrange_type): Add comment.
10474
55426c9d
JB
104752014-02-27 Joel Brobecker <brobecker@adacore.com>
10476
10477 * dwarf2read.c (update_enumeration_type_from_children): New
10478 function, mostly extracted from process_structure_scope.
10479 (read_enumeration_type): Call update_enumeration_type_from_children.
10480 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10481 and flag_flag_enum fields.
10482
f2fce0ca
PA
104832014-02-26 Pedro Alves <palves@redhat.com>
10484
10485 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10486 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10487 to_xfer_partial method.
10488
7a44e40e
PA
104892014-02-26 Pedro Alves <palves@redhat.com>
10490
10491 * target.c (complete_target_initialization): Don't install
10492 default_xfer_partial as to_xfer_partial hook.
10493 (nomemory): Delete.
10494 (update_current_target): Don't INHERIT nor de_fault
10495 deprecated_xfer_memory. Delete de_fault macro.
10496 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10497 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10498 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10499 field.
10500
bd265cd0
PA
105012014-02-26 Pedro Alves <palves@redhat.com>
10502
10503 * go32-nat.c (my_write_child): New function.
10504 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10505 (go32_xfer_partial): New function.
10506 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10507 Instead install a to_xfer_partial hook.
10508
9d46c4e5
PA
105092014-02-26 Pedro Alves <palves@redhat.com>
10510
10511 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10512 to_xfer_partial helper. Rewrite.
10513 (procfs_xfer_partial): New function.
10514 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10515 Install a to_xfer_partial hook.
10516
a1583b1f
PA
105172014-02-26 Pedro Alves <palves@redhat.com>
10518
10519 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10520 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10521 (m32r_xfer_partial): New function.
10522 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10523 Install a to_xfer_partial hook.
10524
6df1b29f
PA
105252014-02-26 Pedro Alves <palves@redhat.com>
10526
10527 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10528 helper.
10529 (mips_xfer_partial): New function.
10530 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10531 hook. Install a to_xfer_partial hook.
10532
dc53a7ad
JB
105332014-02-26 Joel Brobecker <brobecker@adacore.com>
10534
10535 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10536 * gdbtypes.c (create_array_type_with_stride): New function,
10537 renaming create_array_type, but with an added parameter
10538 called "bit_stride".
10539 (create_array_type): Re-implement using
10540 create_array_type_with_stride.
10541 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10542 and DW_AT_bit_stride attributes.
10543
12ab52e9
PA
105442014-02-26 Pedro Alves <palves@redhat.com>
10545
10546 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10547 task-specific breakpoints.
10548
d16461ae
PA
105492014-02-25 Pedro Alves <palves@redhat.com>
10550
10551 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10552 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10553
a8b16220
SS
105542014-02-25 Stan Shebs <stan@codesourcery.com>
10555
10556 * defs.h: Annotate comments for Doxygen.
10557
b9e795ee
TT
105582014-02-25 Tom Tromey <tromey@redhat.com>
10559
10560 * target.h (target_ignore): Don't declare.
10561 * target.c (target_ignore): Remove.
10562
849c862e
JK
105632014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10564
10565 PR gdb/16626
10566 * auto-load.c (auto_load_objfile_script_1): Change filename to
10567 debugfile.
10568
475109d8
JB
105692014-02-25 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10572 documentation. Adjust prototype to match the target_ops
10573 to_xfer_partial method. Adjust implementation accordingly.
10574
e186c3bd
HZ
105752014-02-25 Hui Zhu <hui@codesourcery.com>
10576
10577 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10578 to_traceframe_info.
10579
6d451942
KB
105802014-02-25 Kevin Buettner <kevinb@redhat.com>
10581
041ab8b4 10582 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10583 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10584 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10585 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10586 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10587 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10588 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10589 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10590 New constants.
10591 (rl78_register_type): Use a data pointer type for SP and
10592 new pseudo registers mentioned above. Use a 16 bit integer
10593 type for all other register pairs.
10594 (rl78_register_name, rl78_g10_register_name): Update for
10595 new pseudo registers.
10596 (rl78_pseudo_register_read): Likewise.
10597 (rl78_pseudo_register_write): Likewise.
10598 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10599 to the newly added pseudo registers.
10600
eddf0bae
DE
106012014-02-24 Doug Evans <dje@google.com>
10602
10603 * value.c (record_latest_value): Fix comment.
10604 * printcmd.c (print_command_1): Remove code to handle -1 return from
10605 record_latest_value.
10606
e96027e0
PA
106072014-02-24 Pedro Alves <palves@redhat.com>
10608
10609 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10610 deprecated_xfer_memory hook.
10611 (procfs_xfer_partial): Call procfs_xfer_memory instead
10612 of the deprecated_xfer_memory target hook.
10613 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10614 helper.
10615
0837c976
YZ
106162014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10617
10618 * windows-nat.c (windows_xfer_shared_libraries): Return
10619 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10620 requested object is TARGET_OBJECT_LIBRARIES.
10621
bc113b4e
YQ
106222014-02-24 Yao Qi <yao@codesourcery.com>
10623
10624 * target.h (enum target_xfer_status)
10625 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10626 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10627 explicitly. New.
10628 * corefile.c (memory_error_message): User updated.
10629 * exec.c (section_table_read_available_memory): Likewise.
10630 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10631 * target.c (target_xfer_status_to_string): Likewise.
10632 (raw_memory_xfer_partial): Likewise.
10633 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10634 * valops.c (read_value_memory): Likewise.
10635 * exec.h: Update comments.
10636
01cb8804
YQ
106372014-02-24 Yao Qi <yao@codesourcery.com>
10638
10639 * target.c (target_xfer_status_to_string): Rename argument err
10640 to status.
10641 * target.h (target_xfer_status_to_string): Update declaration.
10642 Replace target_xfer_error_to_string with
10643 target_xfer_status_to_string in comment.
10644
93063aa6
YQ
106452014-02-24 Yao Qi <yao@codesourcery.com>
10646
10647 * mips-linux-nat.c (super_close): Update its type.
10648 (mips_linux_close): Pass 'self' to super_close.
10649
5c328c05
YQ
106502014-02-24 Yao Qi <yao@codesourcery.com>
10651
10652 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10653 * corefile.c (read_memory): Adjusted.
10654 * target.c (target_write_with_progress): Adjusted.
10655
f73023dd
YQ
106562014-02-23 Yao Qi <yao@codesourcery.com>
10657
10658 Revert two patches:
10659
10660 2013-10-25 Yao Qi <yao@codesourcery.com>
10661
10662 * remote.c (remote_traceframe_info): Return early if
10663 traceframe is not selected.
10664
10665 2013-07-19 Yao Qi <yao@codesourcery.com>
10666
10667 * target.c (update_current_target): Change the default action
10668 of 'to_traceframe_info' from tcomplain to return_zero.
10669 * target.h (struct target_ops) <to_traceframe_info>: Add more
10670 comments.
10671
5a2eb0ef
YQ
106722014-02-23 Yao Qi <yao@codesourcery.com>
10673
10674 * valops.c (read_value_memory): Rewrite it. Call
10675 target_xfer_partial in a loop.
10676 * exec.h (section_table_available_memory): Remove declaration.
10677 Move comments to ...
10678 * exec.c (section_table_available_memory): ... here. Make it
10679 static.
10680
1ee79381
YQ
106812014-02-23 Yao Qi <yao@codesourcery.com>
10682
10683 * exec.c (section_table_read_available_memory): New function.
10684 * exec.h (section_table_read_available_memory): Declare.
10685 * ctf.c (ctf_xfer_partial): Call
10686 section_table_read_available_memory.
10687 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10688
1ca49d37
YQ
106892014-02-23 Yao Qi <yao@codesourcery.com>
10690
10691 * ctf.c (ctf_xfer_partial): Move code to ...
10692 * exec.c (exec_read_partial_read_only): ... it. New function.
10693 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10694 * tracefile.c: Include "exec.h".
10695 * exec.h (exec_read_partial_read_only): Declare.
10696
a283690e
YQ
106972014-02-23 Yao Qi <yao@codesourcery.com>
10698
10699 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10700 (tfile_has_memory): Remove.
10701 (init_tfile_ops): Don't set fields to_has_all_memory and
10702 to_has_memory of tfile_ops.
10703 * tracefile.c (tracefile_has_all_memory): New function.
10704 (tracefile_has_memory): New function.
10705 (init_tracefile_ops): Initialize fields to_has_all_memory and
10706 to_has_memory of 'ops'.
10707
12e03cd0
YQ
107082014-02-23 Yao Qi <yao@codesourcery.com>
10709
10710 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10711 (ctf_thread_alive, ctf_get_trace_status): Remove.
10712 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10713 init_tracefile_ops.
10714 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10715 (tfile_has_stack, tfile_has_registers): Remove.
10716 (tfile_thread_alive): Remove.
10717 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10718 init_tracefile_ops.
10719 * tracefile.c (tracefile_has_stack): New function.
10720 (tracefile_has_registers): New function.
10721 (tracefile_thread_alive): New function.
10722 (tracefile_get_trace_status): New function.
10723 (init_tracefile_ops): New function.
10724 * tracefile.h (init_tracefile_ops): Declare.
10725
11395323
YQ
107262014-02-23 Yao Qi <yao@codesourcery.com>
10727
10728 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10729 (O_LARGEFILE): Likewise.
10730 (tfile_ops): Likewise.
10731 (TRACE_HEADER_SIZE): Likewise.
10732 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10733 (cur_data_size): Likewise.
10734 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10735 (tfile_close, tfile_files_info): Likewise.
10736 (tfile_get_trace_status): Likewise.
10737 (tfile_get_tracepoint_status): Likewise.
10738 (tfile_get_traceframe_address): Likewise.
10739 (tfile_trace_find, match_blocktype): Likewise.
10740 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10741 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10742 (tfile_get_trace_state_variable_value): Likewise.
10743 (tfile_has_all_memory, tfile_has_memory): Likewise.
10744 (tfile_has_stack, tfile_has_registers): Likewise.
10745 (tfile_thread_alive, build_traceframe_info): Likewise.
10746 (tfile_traceframe_info, init_tfile_ops): Likewise.
10747 (_initialize_tracepoint): Don't call init_tfile_ops
10748 and add_target_with_completer.
10749 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10750 exec.h, completer.h and filenames.h.
10751 (_initialize_tracefile_tfile): New function.
10752
7951c4eb
YQ
107532014-02-23 Yao Qi <yao@codesourcery.com>
10754
10755 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10756 tracefile-tfile.o.
10757 (HFILES_NO_SRCDIR): Add tracefile.h.
10758 * ctf.c: Include "tracefile.h".
10759 * tracefile.h: New file.
10760 * tracefile.c: New file
10761 * tracefile-tfile.c: New file.
10762 * tracepoint.c: Include "tracefile.h".
10763 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10764 (stop_reason_names): Add const.
10765 (trace_file_writer_xfree): Move it to tracefile.c.
10766 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10767 (trace_save_ctf): Likewise.
10768 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10769 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10770 (tfile_write_header, tfile_write_regblock_type): Likewise.
10771 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10772 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10773 (tfile_write_raw_data, tfile_end): Likewise.
10774 (tfile_trace_file_writer_new): Likewise.
10775 (free_uploaded_tp): Make it extern.
10776 (free_uploaded_tsv): Make it extern.
10777 (_initialize_tracepoint): Move code to register command 'tsave'
10778 to tracefile.c.
10779 * tracepoint.h (stop_reason_names): Declare.
10780 (struct trace_frame_write_ops): Move it to tracefile.h.
10781 (struct trace_file_write_ops): Likewise.
10782 (struct trace_file_writer): Likewise.
10783 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10784
184cd072
JK
107852014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 PR gdb/16594
10788 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10789 process name.
10790 (get_cores_used_by_process): New parameter num_cores, use it.
10791 (linux_xfer_osdata_processes): Pass num_cores to it.
10792 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10793 process name.
10794
c63528fc
AK
107952014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10796
10797 * target.c (memory_xfer_partial): Fix length arg in call to
10798 breakpoint_xfer_memory.
10799
d7b30f67
SDJ
108002014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10801
10802 PR tdep/16397
10803 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10804 number comes after the + or - signs. Adjust length of register
10805 name to be extracted.
10806
8838afaf
TT
108072014-02-20 Tom Tromey <tromey@redhat.com>
10808
10809 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10810 (ada_varobj_ops): Mark "extern".
10811
05227d14
TT
108122014-02-20 Tom Tromey <tromey@redhat.com>
10813
10814 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10815
1254eefc
DE
108162014-02-20 Doug Evans <xdje42@gmail.com>
10817
10818 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10819 All callers updated.
10820 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10821 All callers updated.
10822 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10823 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10824
adde2bff
DE
108252014-02-20 lin zuojian <manjian2006@gmail.com>
10826 Joel Brobecker <brobecker@adacore.com>
10827 Doug Evans <xdje42@gmail.com>
10828
10829 PR symtab/16581
10830 * dwarf2read.c (struct die_info): New member in_process.
10831 (reset_die_in_process): New function.
10832 (process_die): Set it at the start, reset when returning.
10833 (inherit_abstract_dies): Only call process_die if origin_child_die
10834 not already being processed.
10835
3be75f87
JB
108362014-02-20 Joel Brobecker <brobecker@adacore.com>
10837
10838 * windows-nat.c (handle_unload_dll): Add function documentation.
10839 (do_initial_windows_stuff): Add comment explaining why we wait
10840 until after inferior initialization has finished before
10841 processing all DLLs.
10842
47f7ffdb
JB
108432014-02-20 Joel Brobecker <brobecker@adacore.com>
10844
10845 * windows-nat.c (get_module_name): Delete.
10846 (windows_get_exec_module_filename): New function, mostly
10847 inspired from get_module_name.
10848 (windows_pid_to_exec_file): Replace call to get_module_name
10849 by call to windows_get_exec_module_filename.
10850
1cd9feab
JB
108512014-02-20 Joel Brobecker <brobecker@adacore.com>
10852
10853 * windows-nat.c (handle_load_dll): Rewrite this function's
10854 introductory comment. Remove code using get_module_name
10855 to get the DLL's name.
10856
ea39ad35
JB
108572014-02-20 Joel Brobecker <brobecker@adacore.com>
10858
10859 * windows-nat.c (get_windows_debug_event): Ignore
10860 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10861 if windows_initialization_done == 0.
10862 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10863 Adjust implementation to always load all DLLs.
10864 (do_initial_windows_stuff): Replace call to
10865 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10866
95060284
JB
108672014-02-20 Joel Brobecker <brobecker@adacore.com>
10868
10869 * windows-nat.c (_initialize_windows_nat): Deprecate the
10870 "dll-symbols" command. Turn the "add-shared-symbol-files"
10871 and "assf" aliases into commands, and deprecate them as well.
10872 * NEWS: Add entry explaining that "dll-symbols" and its two
10873 aliases are now deprecated.
10874
8d4fdb12
JB
108752014-02-20 Joel Brobecker <brobecker@adacore.com>
10876
10877 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10878 new-line in debug string. Remove trailing spaces.
10879
1b281443
SS
108802014-02-19 Stan Shebs <stan@codesourcery.com>
10881
10882 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10883
f7bd0f78
SC
108842014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10885
10886 * NEWS: Add entry for the new feature
10887 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10888 and class values.
10889
399ebc3d
SS
108902014-02-19 Stan Shebs <stan@codesourcery.com>
10891
10892 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10893
c658158d
PA
108942014-02-19 Pedro Alves <palves@redhat.com>
10895
10896 * common/ptid.h (struct ptid): Mention that process_stratum
10897 targets should prefer ptid.lwp.
10898
ba348170
PA
108992014-02-19 Pedro Alves <palves@redhat.com>
10900
10901 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10902 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10903 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10904 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10905 store remote thread ids rather than ptid.tid.
10906 (_initialize_remote): Adjust.
10907
ac01945b
TT
109082014-02-19 Tom Tromey <tromey@redhat.com>
10909
10910 * target.c (target_get_unwinder): Rewrite.
10911 (target_get_tailcall_unwinder): Rewrite.
10912 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10913 (record_btrace_to_get_tailcall_unwinder): New function.
10914 (init_record_btrace_ops): Update.
10915 * target.h (struct target_ops) <to_get_unwinder,
10916 to_get_tailcall_unwinder>: Now function pointers. Use
10917 TARGET_DEFAULT_RETURN.
10918
8476dc92
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10922 argument.
10923 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10924
c0eca49f
TT
109252014-02-19 Tom Tromey <tromey@redhat.com>
10926
10927 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10928 directly.
10929 * target-delegates.c: Rebuild.
10930 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10931 TARGET_DEFAULT_FUNC.
10932 * target.c (default_target_decr_pc_after_break): Rename from
10933 forward_target_decr_pc_after_break. Simplify.
10934 (target_decr_pc_after_break): Rely on delegation.
10935
596b6b39
TT
109362014-02-19 Tom Tromey <tromey@redhat.com>
10937
10938 * target.c (update_current_target): Do not INHERIT to_doc or
10939 to_magic. Do not de_fault to_open or to_close.
10940
b427c1bc
TT
109412014-02-19 Tom Tromey <tromey@redhat.com>
10942
10943 * gcore.h (objfile_find_memory_regions): Declare.
10944 * gcore.c (objfile_find_memory_regions): No longer static. Add
10945 "self" argument.
10946 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10947 * exec.c: Include gcore.h.
10948 (exec_set_find_memory_regions): Remove.
10949 (exec_find_memory_regions): Remove.
10950 (exec_do_find_memory_regions): Remove.
10951 (init_exec_ops): Update.
10952 * defs.h (exec_set_find_memory_regions): Remove.
10953
9b144037
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.h (struct target_ops) <to_extra_thread_info,
10958 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10959 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10960 not 0, in TARGET_DEFAULT_RETURN.
10961
555bbdeb
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target.c (complete_target_initialization): Remove casts. Use
10965 return_zero_has_execution.
10966 (return_zero): Add "ignore" argument.
10967 (return_zero_has_execution): New function.
10968 (init_dummy_target): Remove casts. Use
10969 return_zero_has_execution.
10970
be4ddd36
TT
109712014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target.c (update_current_target): Update comments. Do not
10974 INHERIT to_stratum.
10975
2117c711
TT
109762014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10979 needed.
10980 * corelow.c (core_read_description): Delegate when needed.
10981 * remote.c (remote_read_description): Delegate when needed.
10982 * target-delegates.c: Rebuild.
10983 * target.c (target_read_description): Rewrite.
10984 * target.h (struct target_ops) <to_read_description>: Update
10985 comment. Use TARGET_DEFAULT_RETURN.
10986
e88ef65c
TT
109872014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (update_current_target): Don't inherit or default
10991 to_can_run.
10992 (find_default_run_target): Check against delegate_can_run.
10993 * target.h (struct target_ops) <to_can_run>: Use
10994 TARGET_DEFAULT_RETURN.
10995
86a0854a
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target-delegates.c: Rebuild.
10999 * target.c (target_disconnect): Unconditionally delegate.
11000 * target.h (struct target_ops) <to_disconnect>: Use
11001 TARGET_DEFAULT_NORETURN.
11002
ee97f592
TT
110032014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * record.c (record_stop): Unconditionally delegate.
11006 * target-delegates.c: Rebuild.
11007 * target.c (target_stop_recording): Unconditionally delegate.
11008 * target.h (struct target_ops) <to_stop_recording>: Use
11009 TARGET_DEFAULT_IGNORE.
11010
6dc7fcf4
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target-delegates.c: Rebuild.
11014 * target.c (target_enable_btrace): Unconditionally delegate.
11015 * target.h (struct target_ops) <to_enable_btrace>: Use
11016 TARGET_DEFAULT_NORETURN.
11017
eb5b20d4
TT
110182014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target-delegates.c: Rebuild.
11021 * target.c (target_read_btrace): Unconditionally delegate.
11022 * target.h (struct target_ops) <to_read_btrace>: Use
11023 TARGET_DEFAULT_NORETURN.
11024
9ace480d
TT
110252014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target-delegates.c: Rebuild.
11028 * target.c (target_teardown_btrace): Unconditionally delegate.
11029 * target.h (struct target_ops) <to_teardown_btrace>: Use
11030 TARGET_DEFAULT_NORETURN.
11031
8dc292d3
TT
110322014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target-delegates.c: Rebuild.
11035 * target.c (target_disable_btrace): Unconditionally delegate.
11036 * target.h (struct target_ops) <to_disable_btrace>: Use
11037 TARGET_DEFAULT_NORETURN.
11038
58a5184e
TT
110392014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target-delegates.c: Rebuild.
11042 * target.c (default_search_memory): New function.
11043 (simple_search_memory): Update comment.
11044 (target_search_memory): Unconditionally delegate.
11045 * target.h (struct target_ops) <to_search_memory>: Use
11046 TARGET_DEFAULT_FUNC.
11047
8de71aab
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * auxv.c (default_auxv_parse): No longer static.
11051 (target_auxv_parse): Unconditionally delegate.
11052 * auxv.h (default_auxv_parse): Declare.
11053 * target-delegates.c: Rebuild.
11054 * target.c: Include auxv.h.
11055 * target.h (struct target_ops) <to_auxv_parse>: Use
11056 TARGET_DEFAULT_FUNC.
11057
6b2c5a57
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target-delegates.c: Rebuild.
11061 * target.c (target_memory_map): Unconditionally delegate.
11062 * target.h (struct target_ops) <to_memory_map>: Use
11063 TARGET_DEFAULT_RETURN.
11064
cbffc065
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (target_thread_alive): Unconditionally delegate.
11069 * target.h (struct target_ops) <to_thread_alive>: Use
11070 TARGET_DEFAULT_RETURN.
11071
f09e2107
TT
110722014-02-19 Tom Tromey <tromey@redhat.com>
11073
11074 * target-delegates.c: Rebuild.
11075 * target.c (target_save_record): Unconditionally delegate.
11076 * target.h (struct target_ops) <to_save_record>: Use
11077 TARGET_DEFAULT_NORETURN.
11078
07366925
TT
110792014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target-delegates.c: Rebuild.
11082 * target.c (target_delete_record): Unconditionally delegate.
11083 * target.h (struct target_ops) <to_delete_record>: Use
11084 TARGET_DEFAULT_NORETURN.
11085
dd2e9d25
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (target_record_is_replaying): Unconditionally
11090 delegate.
11091 * target.h (struct target_ops) <to_record_is_replaying>: Use
11092 TARGET_DEFAULT_RETURN.
11093
671e76cc
TT
110942014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_goto_record_begin): Unconditionally delegate.
11098 * target.h (struct target_ops) <to_goto_record_begin>: Use
11099 TARGET_DEFAULT_NORETURN.
11100
e9179bb3
TT
111012014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (target_goto_record_end): Unconditionally delegate.
11105 * target.h (struct target_ops) <to_goto_record_end>: Use
11106 TARGET_DEFAULT_NORETURN.
11107
05969c84
TT
111082014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * target-delegates.c: Rebuild.
11111 * target.c (target_goto_record): Unconditionally delegate.
11112 * target.h (struct target_ops) <to_goto_record>: Use
11113 TARGET_DEFAULT_NORETURN.
11114
3679abfa
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target-delegates.c: Rebuild.
11118 * target.c (target_insn_history): Unconditionally delegate.
11119 * target.h (struct target_ops) <to_insn_history>: Use
11120 TARGET_DEFAULT_NORETURN.
11121
8444ab58
TT
111222014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target-delegates.c: Rebuild.
11125 * target.c (target_insn_history_from): Unconditionally delegate.
11126 * target.h (struct target_ops) <to_insn_history_from>: Use
11127 TARGET_DEFAULT_NORETURN.
11128
c29302cc
TT
111292014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_insn_history_range): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_insn_history_range>: Use
11134 TARGET_DEFAULT_NORETURN.
11135
170049d4
TT
111362014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (target_call_history): Unconditionally delegate.
11140 * target.h (struct target_ops) <to_call_history>: Use
11141 TARGET_DEFAULT_NORETURN.
11142
16fc27d6
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_call_history_from): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_call_history_from>: Use
11148 TARGET_DEFAULT_NORETURN.
11149
115d9817
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_call_history_range): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_call_history_range>: Use
11155 TARGET_DEFAULT_NORETURN.
11156
eb276a6b
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_verify_memory): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_verify_memory>: Use
11162 TARGET_DEFAULT_NORETURN.
11163
9e538d0d
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_core_of_thread): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_core_of_thread>: Use
11169 TARGET_DEFAULT_RETURN.
11170
f6fb2925
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_flash_done): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_flash_done>: Use
11176 TARGET_DEFAULT_NORETURN.
11177
e8a6c6ac
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_flash_erase): Unconditionally delegate.
11182 * target.h (struct target_ops) <to_flash_erase>: Use
11183 TARGET_DEFAULT_NORETURN.
11184
7e35c012
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target-delegates.c: Rebuild.
11188 * target.c (target_get_section_table): Unconditionally delegate.
11189 * target.h (struct target_ops) <to_get_section_table>: Use
11190 TARGET_DEFAULT_RETURN.
11191
770234d3
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target-delegates.c: Rebuild.
11195 * target.c (target_pid_to_str): Unconditionally delegate.
11196 (init_dummy_target): Don't initialize to_pid_to_str.
11197 (default_pid_to_str): Rename from dummy_pid_to_str.
11198 * target.h (struct target_ops) <to_pid_to_str>: Use
11199 TARGET_DEFAULT_FUNC.
11200
09b0dc2b
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target-delegates.c: Rebuild.
11204 * target.c (target_find_new_threads): Unconditionally delegate.
11205 * target.h (struct target_ops) <to_find_new_threads>: Use
11206 TARGET_DEFAULT_RETURN.
11207
7d4f8efa
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (target_program_signals): Unconditionally delegate.
11212 * target.h (struct target_ops) <to_program_signals>: Use
11213 TARGET_DEFAULT_IGNORE.
11214
035cad7f
TT
112152014-02-19 Tom Tromey <tromey@redhat.com>
11216
11217 * target-delegates.c: Rebuild.
11218 * target.c (target_pass_signals): Unconditionally delegate.
11219 * target.h (struct target_ops) <to_pass_signals>: Use
11220 TARGET_DEFAULT_IGNORE.
11221
8d657035
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target-delegates.c: Rebuild.
11225 * target.c (default_mourn_inferior): New function.
11226 (target_mourn_inferior): Unconditionally delegate.
11227 * target.h (struct target_ops) <to_mourn_inferior>: Use
11228 TARGET_DEFAULT_FUNC.
11229
098dba18
TT
112302014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (default_follow_fork): New function.
11234 (target_follow_fork): Unconditionally delegate.
11235 * target.h (struct target_ops) <to_follow_fork>: Use
11236 TARGET_DEFAULT_FUNC.
11237
423a4807
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target-delegates.c: Rebuild.
11241 * target.c (target_kill): Unconditionally delegate.
11242 * target.h (struct target_ops) <to_kill>: Use
11243 TARGET_DEFAULT_NORETURN.
11244
6c7e5e5c
TT
112452014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target-delegates.c: Rebuild.
11248 * target.c (target_masked_watch_num_registers): Unconditionally
11249 delegate.
11250 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11251 Use TARGET_DEFAULT_RETURN.
11252
8b1c364c
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (target_remove_mask_watchpoint): Unconditionally
11257 delegate.
11258 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11259 TARGET_DEFAULT_RETURN.
11260
cd4ae029
TT
112612014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target-delegates.c: Rebuild.
11264 * target.c (target_insert_mask_watchpoint): Unconditionally
11265 delegate.
11266 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11267 TARGET_DEFAULT_RETURN.
11268
a134316b
TT
112692014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (target_ranged_break_num_registers): Unconditionally
11273 delegate.
11274 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11275 Use TARGET_DEFAULT_RETURN.
11276
ad5989bd
TT
112772014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target-delegates.c: Rebuild.
11280 * target.c (target_fetch_registers): Unconditionally delegate.
11281 * target.h (struct target_ops) <to_fetch_registers>: Use
11282 TARGET_DEFAULT_NORETURN.
11283
46ee7e8d
TT
112842014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target-delegates.c: Rebuild.
11287 * target.c (update_current_target): Don't inherit or default
11288 to_stop.
11289 * target.h (struct target_ops) <to_stop>: Use
11290 TARGET_DEFAULT_IGNORE.
11291
843f59ed
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target-delegates.c: Rebuild.
11295 * target.c (update_current_target): Don't inherit or default
11296 to_can_run_breakpoint_commands.
11297 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11298 Use TARGET_DEFAULT_RETURN.
11299
ccfde2a0
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11304 to_supports_evaluation_of_breakpoint_conditions.
11305 * target.h (struct target_ops)
11306 <to_supports_evaluation_of_breakpoint_conditions>: Use
11307 TARGET_DEFAULT_RETURN.
11308
0de91722
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target-delegates.c: Rebuild.
11312 * target.c (update_current_target): Don't inherit or default
11313 to_augmented_libraries_svr4_read.
11314 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11315 Use TARGET_DEFAULT_RETURN.
11316
9a7d8b48
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target-delegates.c: Rebuild.
11320 * target.c (update_current_target): Don't inherit or default
11321 to_can_use_agent.
11322 * target.h (struct target_ops) <to_can_use_agent>: Use
11323 TARGET_DEFAULT_RETURN.
11324
d9db5b21
TT
113252014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target-delegates.c: Rebuild.
11328 * target.c (update_current_target): Don't inherit or default
11329 to_use_agent.
11330 * target.h (struct target_ops) <to_use_agent>: Use
11331 TARGET_DEFAULT_NORETURN.
11332
92155eeb
TT
113332014-02-19 Tom Tromey <tromey@redhat.com>
11334
11335 * target-delegates.c: Rebuild.
11336 * target.c (update_current_target): Don't inherit or default
11337 to_traceframe_info.
11338 (return_null): Remove.
11339 * target.h (struct target_ops) <to_traceframe_info>: Use
11340 TARGET_DEFAULT_RETURN.
11341
d6522a22
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_static_tracepoint_markers_by_strid.
11347 * target.h (struct target_ops)
11348 <to_static_tracepoint_markers_by_strid>: Use
11349 TARGET_DEFAULT_NORETURN.
11350
4c3e4425
TT
113512014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_static_tracepoint_marker_at.
11356 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11357 Use TARGET_DEFAULT_RETURN.
11358
dcd6917f
TT
113592014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_set_permissions.
11364 * target.h (struct target_ops) <to_set_permissions>: Use
11365 TARGET_DEFAULT_IGNORE.
11366
22bcceee
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (update_current_target): Don't inherit or default
11371 to_get_tib_address.
11372 * target.h (struct target_ops) <to_get_tib_address>: Use
11373 TARGET_DEFAULT_NORETURN.
11374
8586ccaa
TT
113752014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_set_trace_notes.
11380 * target.h (struct target_ops) <to_set_trace_notes>: Use
11381 TARGET_DEFAULT_RETURN.
11382
91df8d1d
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't initialize
11387 to_set_trace_buffer_size.
11388 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11389 TARGET_DEFAULT_IGNORE.
11390
8d526939
TT
113912014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_set_circular_trace_buffer.
11396 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11397 TARGET_DEFAULT_IGNORE.
11398
0bcfeddf
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_set_disconnected_tracing.
11404 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11405 TARGET_DEFAULT_IGNORE.
11406
9249843f
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_get_min_fast_tracepoint_insn_len.
11412 (return_minus_one): Remove.
11413 * target.h (struct target_ops)
11414 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11415
ace92e7d
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_get_raw_trace_data.
11421 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11422 TARGET_DEFAULT_NORETURN.
11423
08120467
TT
114242014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_upload_trace_state_variables.
11429 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11430 Use TARGET_DEFAULT_RETURN.
11431
1e949b00
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11436 to_upload_tracepoints.
11437 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11438 TARGET_DEFAULT_RETURN.
11439
a2e6c147
TT
114402014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (update_current_target): Don't inherit or default
11444 to_save_trace_data.
11445 * target.h (struct target_ops) <to_save_trace_data>: Use
11446 TARGET_DEFAULT_NORETURN.
11447
959bcd0b
TT
114482014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_get_trace_state_variable_value.
11453 * target.h (struct target_ops)
11454 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11455
afc94e66
TT
114562014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_trace_find.
11461 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11462
e51c07ea
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_trace_stop.
11468 * target.h (struct target_ops) <to_trace_stop>: Use
11469 TARGET_DEFAULT_NORETURN.
11470
6fea14cd
TT
114712014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_get_tracepoint_status.
11476 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11477 TARGET_DEFAULT_NORETURN.
11478
4072d4ff
TT
114792014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_get_trace_status.
11484 * target.h (struct target_ops) <to_get_trace_status>: Use
11485 TARGET_DEFAULT_RETURN.
11486
25da2e80
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_trace_start.
11492 * target.h (struct target_ops) <to_trace_start>: Use
11493 TARGET_DEFAULT_NORETURN.
11494
86dd181d
TT
114952014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_trace_set_readonly_regions.
11500 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11501 Use TARGET_DEFAULT_NORETURN.
11502
05c41993
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_disable_tracepoint.
11508 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11509 TARGET_DEFAULT_NORETURN.
11510
151f70f1
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_enable_tracepoint.
11516 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11517 TARGET_DEFAULT_NORETURN.
11518
94eb98b9
TT
115192014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_download_trace_state_variable.
11524 * target.h (struct target_ops) <to_download_trace_state_variable>:
11525 Use TARGET_DEFAULT_NORETURN.
11526
719acc4a
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_can_download_tracepoint.
11532 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11533 TARGET_DEFAULT_RETURN.
11534
9a980a22
TT
115352014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_download_tracepoint.
11540 * target.h (struct target_ops) <to_download_tracepoint>: Use
11541 TARGET_DEFAULT_NORETURN.
11542
5536135b
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_trace_init.
11548 * target.h (struct target_ops) <to_trace_init>: Use
11549 TARGET_DEFAULT_RETURN.
11550
9409d39e
TT
115512014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_supports_string_tracing.
11556 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11557 TARGET_DEFAULT_RETURN.
11558
aab1b22d
TT
115592014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_supports_enable_disable_tracepoint.
11564 * target.h (struct target_ops)
11565 <to_supports_enable_disable_tracepoint>: Use
11566 TARGET_DEFAULT_RETURN.
11567
a7304748
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_supports_multi_process.
11573 * target.h (struct target_ops) <to_supports_multi_process>: Use
11574 TARGET_DEFAULT_RETURN.
11575
4229b31d
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_get_ada_task_ptid.
11581 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11582 TARGET_DEFAULT_FUNC.
11583
43eba180
TT
115842014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_thread_architecture.
11589 * target.h (struct target_ops) <to_thread_architecture>: Use
11590 TARGET_DEFAULT_FUNC.
11591
fe31bf5b
TT
115922014-02-19 Tom Tromey <tromey@redhat.com>
11593
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11596 to_execution_direction.
11597 * target.h (struct target_ops) <to_execution_direction>: Use
11598 TARGET_DEFAULT_FUNC.
11599
53e1cfc7
TT
116002014-02-19 Tom Tromey <tromey@redhat.com>
11601
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_can_execute_reverse.
11605 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11606 TARGET_DEFAULT_RETURN.
11607 (target_can_execute_reverse): Unconditionally delegate.
11608
9bb9d61d
TT
116092014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11613 to_goto_bookmark.
11614 (dummy_goto_bookmark): Remove.
11615 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11616 * target.h (struct target_ops) <to_goto_bookmark>: Use
11617 TARGET_DEFAULT_NORETURN.
11618
3dbafbbb
TT
116192014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_get_bookmark.
11624 (dummy_get_bookmark): Remove.
11625 (init_dummy_target): Don't inherit or default to_get_bookmark.
11626 * target.h (struct target_ops) <to_get_bookmark>: Use
11627 TARGET_DEFAULT_NORETURN
11628
16f796b1
TT
116292014-02-19 Tom Tromey <tromey@redhat.com>
11630
11631 * target-delegates.c: Rebuild.
11632 * target.c (update_current_target): Don't inherit or default
11633 to_make_corefile_notes.
11634 (init_dummy_target): Don't initialize to_make_corefile_notes.
11635 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11636 TARGET_DEFAULT_FUNC.
11637
0b5a2719
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target-delegates.c: Rebuild.
11641 * target.c (update_current_target): Don't inherit or default
11642 to_find_memory_regions.
11643 (init_dummy_target): Don't initialize to_find_memory_regions.
11644 * target.h (struct target_ops) <to_find_memory_regions>: Use
11645 TARGET_DEFAULT_FUNC.
11646
d9cb0195
TT
116472014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * target-delegates.c: Rebuild.
11650 * target.c (update_current_target): Don't inherit or default
11651 to_log_command.
11652 * target.h (struct target_ops) <to_log_command>: Use
11653 TARGET_DEFAULT_IGNORE.
11654 (target_log_command): Unconditionally delegate.
11655
830ca330
TT
116562014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_pid_to_exec_file.
11661 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11662 TARGET_DEFAULT_RETURN.
11663
825828fc
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11668 to_thread_name.
11669 (target_thread_name): Unconditionally delegate.
11670 * target.h (struct target_ops) <to_thread_name>: Use
11671 TARGET_DEFAULT_RETURN.
11672
4a7e6dda
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_extra_thread_info.
11678 * target.h (struct target_ops) <to_extra_thread_info>: Use
11679 TARGET_DEFAULT_RETURN.
11680
0db88c1d
TT
116812014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_has_exited.
11686 * target.h (struct target_ops) <to_has_exited>: Use
11687 TARGET_DEFAULT_RETURN..
11688
6a9fa051
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_set_syscall_catchpoint.
11694 (return_one): Remove.
11695 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11696 TARGET_DEFAULT_RETURN.
11697
62f64d7a
TT
116982014-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_exec_catchpoint.
11703 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11704 TARGET_DEFAULT_RETURN.
11705
cda0f38c
TT
117062014-01-08 Tom Tromey <tromey@redhat.com>
11707
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't inherit or default
11710 to_insert_exec_catchpoint.
11711 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11712 TARGET_DEFAULT_RETURN.
11713
95c3375e
TT
117142014-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_remove_vfork_catchpoint.
11719 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11720 TARGET_DEFAULT_RETURN.
11721
7e18a8dc
TT
117222014-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_insert_vfork_catchpoint.
11727 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11728 TARGET_DEFAULT_RETURN.
11729
e1a21fb7
TT
117302014-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_remove_fork_catchpoint.
11735 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11736 TARGET_DEFAULT_RETURN.
11737
5958ebeb
TT
117382014-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_insert_fork_catchpoint.
11743 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11744 TARGET_DEFAULT_RETURN.
11745
340ba4bf
TT
117462014-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_post_startup_inferior.
11751 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11752 TARGET_DEFAULT_IGNORE.
11753
7634da87
TT
117542014-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_load.
11759 * target.h (struct target_ops) <to_load>: Use
11760 TARGET_DEFAULT_NORETURN.
11761
e19e919f
TT
117622014-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_info.
11767 * target.h (struct target_ops) <to_terminal_info>: Use
11768 TARGET_DEFAULT_FUNC.
11769
c6ea8f79
TT
117702014-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_save_ours.
11775 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11776 TARGET_DEFAULT_IGNORE.
11777
e4a733f1
TT
117782014-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_ours.
11783 * target.h (struct target_ops) <to_terminal_ours>: Use
11784 TARGET_DEFAULT_IGNORE.
11785
74fcbef9
TT
117862014-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_terminal_ours_for_output.
11791 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11792 TARGET_DEFAULT_IGNORE.
11793
ddeaacc9
TT
117942014-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_terminal_inferior.
11799 * target.h (struct target_ops) <to_terminal_inferior>: Use
11800 TARGET_DEFAULT_IGNORE.
11801
0343661d
TT
118022014-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_terminal_init.
11807 * target.h (struct target_ops) <to_terminal_init>: Use
11808 TARGET_DEFAULT_IGNORE.
11809
77cdffe9
TT
118102014-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_can_accel_watchpoint_condition.
11815 * target.h (struct target_ops)
11816 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11817
d03655e4
TT
118182014-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_region_ok_for_hw_watchpoint.
11823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11824 Use TARGET_DEFAULT_FUNC.
11825
65f160a9
TT
118262014-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_watchpoint_addr_within_range.
11831 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11832 Use TARGET_DEFAULT_FUNC.
11833
61dd109f
TT
118342014-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_remove_watchpoint.
11839 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11840 TARGET_DEFAULT_NORETURN.
11841
016facd4
TT
118422014-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_insert_watchpoint.
11847 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11848 TARGET_DEFAULT_RETURN.
11849
418dabac
TT
118502014-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_remove_hw_breakpoint.
11855 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11856 TARGET_DEFAULT_RETURN.
11857
61b371f9
TT
118582014-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_insert_hw_breakpoint.
11863 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11864 TARGET_DEFAULT_RETURN.
11865
52b51d06
TT
118662014-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_can_use_hw_breakpoint.
11871 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11872 TARGET_DEFAULT_RETURN.
11873
f86e59b2
TT
118742014-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_files_info.
11879 * target.h (struct target_ops) <to_files_info>: Use
11880 TARGET_DEFAULT_IGNORE.
11881
6c628163
TT
118822014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11886 to_store.
11887 * target.h (struct target_ops) <to_store>: Use
11888 TARGET_DEFAULT_NORETURN.
11889
bebd3233
TT
118902014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * target-delegates.c: Rebuild.
11893 * target.c (update_current_target): Don't inherit or default
11894 to_post_attach.
11895 * target.h (struct target_ops) <to_post_attach>: Use
11896 TARGET_DEFAULT_IGNORE.
11897
a53f3625
TT
118982014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target-delegates.c: Rebuild.
11901 * target.c (update_current_target): Don't inherit or default
11902 to_rcmd.
11903 (default_rcmd): New function.
11904 (do_monitor_command): Unconditionally delegate.
11905 * target.h (struct target_ops) <to_rmcd>: Use
11906 TARGET_DEFAULT_FUNC.
11907
e9a29200
TT
119082014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (init_dummy_target): Don't initialize to_attach.
11912 (target_attach): Unconditionally delegate.
11913 * target.h (struct target_ops) <to_attach>: Use
11914 TARGET_DEFAULT_FUNC.
11915
09da0d0a
TT
119162014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (target_detach): Unconditionally delegate.
11920 (init_dummy_target): Don't initialize to_detach.
11921 * target.h (struct target_ops) <to_detach>: Use
11922 TARGET_DEFAULT_IGNORE.
11923
5436ff03
TT
119242014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11927 Add argument.
11928 (target_augmented_libraries_svr4_read): Add argument.
11929 * target.c (update_current_target): Update.
11930 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11931 argument.
11932
f0d960ea
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target.h (struct target_ops) <to_call_history_range>: Add
11936 argument.
11937 * target.c (target_call_history_range): Add argument.
11938 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11939 argument.
11940 (record_btrace_call_history_from): Update.
11941
ec0aea04
TT
119422014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops) <to_call_history_from>: Add
11945 argument.
11946 * target.c (target_call_history_from): Add argument.
11947 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11948 argument.
11949
5df2fcba
TT
119502014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_call_history>: Add argument.
11953 * target.c (target_call_history): Add argument.
11954 * record-btrace.c (record_btrace_call_history): Add 'self'
11955 argument.
11956
4e99c6b7
TT
119572014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target.h (struct target_ops) <to_insn_history_range>: Add
11960 argument.
11961 * target.c (target_insn_history_range): Add argument.
11962 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11963 argument.
11964 (record_btrace_insn_history_from): Update.
11965
9abc3ff3
TT
119662014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target.h (struct target_ops) <to_insn_history_from>: Add
11969 argument.
11970 * target.c (target_insn_history_from): Add argument.
11971 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11972 argument.
11973
7a6c5609
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_insn_history>: Add argument.
11977 * target.c (target_insn_history): Add argument.
11978 * record-btrace.c (record_btrace_insn_history): Add 'self'
11979 argument.
11980
606183ac
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target.h (struct target_ops) <to_goto_record>: Add argument.
11984 * target.c (target_goto_record): Add argument.
11985 * record-full.c (record_full_goto): Add 'self' argument.
11986 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11987
307a1b91
TT
119882014-02-19 Tom Tromey <tromey@redhat.com>
11989
11990 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11991 * target.c (target_goto_record_end): Add argument.
11992 * record-full.c (record_full_goto_end): Add 'self' argument.
11993 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11994
08475817
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target.h (struct target_ops) <to_goto_record_begin>: Add
11998 argument.
11999 * target.c (target_goto_record_begin): Add argument.
12000 * record-full.c (record_full_goto_begin): Add 'self' argument.
12001 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12002 argument.
12003
1c63c994
TT
120042014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target.h (struct target_ops) <to_record_is_replaying>: Add
12007 argument.
12008 * target.c (target_record_is_replaying): Add argument.
12009 * record-full.c (record_full_is_replaying): Add 'self' argument.
12010 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12011 argument.
12012 (record_btrace_xfer_partial, record_btrace_store_registers)
12013 (record_btrace_prepare_to_store, record_btrace_resume)
12014 (record_btrace_wait, record_btrace_decr_pc_after_break)
12015 (record_btrace_find_new_threads, record_btrace_thread_alive):
12016 Update.
12017
d1b55219
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * target.h (struct target_ops) <to_delete_record>: Add argument.
12021 * target.c (target_delete_record): Add argument.
12022 * record-full.c (record_full_delete): Add 'self' argument.
12023
1390f529
TT
120242014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (struct target_ops) <to_save_record>: Add argument.
12027 * target.c (target_save_record): Add argument.
12028 * record-full.c (record_full_save): Add 'self' argument.
12029 (record_full_save): Add 'self' argument.
12030
630d6a4a
TT
120312014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target.h (struct target_ops) <to_info_record>: Add argument.
12034 * target.c (target_info_record): Add argument.
12035 * record.c (info_record_command): Add argument.
12036 * record-full.c (record_full_info): Add 'self' argument.
12037 * record-btrace.c (record_btrace_info): Add 'self' argument.
12038
c6cd7c02
TT
120392014-02-19 Tom Tromey <tromey@redhat.com>
12040
12041 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12042 * target.c (target_stop_recording): Add argument.
12043 * record.c (record_stop): Add argument.
12044 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12045 argument.
12046
39c49f83
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12050 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12051 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12052 argument.
12053 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12054 (_initialize_amd64_linux_nat): Use it.
12055 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12056 (_initialize_i386_linux_nat): Use it.
12057
1777056d
TT
120582014-02-19 Tom Tromey <tromey@redhat.com>
12059
12060 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12061 * target.c (target_teardown_btrace): Add argument.
12062 * remote.c (remote_teardown_btrace): Add 'self' argument.
12063 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12064 argument.
12065 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12066 argument.
12067
25e95349
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12071 * target.c (target_disable_btrace): Add argument.
12072 * remote.c (remote_disable_btrace): Add 'self' argument.
12073 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12074 argument.
12075 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12076 argument.
12077
e3c49f88
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12081 * target.c (target_enable_btrace): Add argument.
12082 * remote.c (remote_enable_btrace): Add 'self' argument.
12083 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12084 argument.
12085 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12086 argument.
12087
fe38f897
TT
120882014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12091 (target_can_use_agent): Add argument.
12092 * target.c (update_current_target): Update.
12093 * remote.c (remote_can_use_agent): Add 'self' argument.
12094 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12095
2c152180
TT
120962014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target.h (struct target_ops) <to_use_agent>: Add argument.
12099 (target_use_agent): Add argument.
12100 * target.c (update_current_target): Update.
12101 * remote.c (remote_use_agent): Add 'self' argument.
12102 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12103
a893e81f
TT
121042014-02-19 Tom Tromey <tromey@redhat.com>
12105
12106 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12107 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12108 (target_traceframe_info): Add argument.
12109 * target.c (update_current_target): Update.
12110 * remote.c (remote_traceframe_info): Add 'self' argument.
12111 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12112
c686c57f
TT
121132014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target.h (target_static_tracepoint_markers_by_strid): Add
12116 argument.
12117 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12118 'self' argument.
12119 * target.c (update_current_target): Update.
12120 * remote.c (struct target_ops)
12121 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12122 * linux-nat.c (struct target_ops)
12123 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12124
61fc905d
TT
121252014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12128 Add argument.
12129 (target_static_tracepoint_marker_at): Add argument.
12130 * target.c (update_current_target): Update.
12131 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12132 argument.
12133
c378d69d
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12137 (target_set_permissions): Add argument.
12138 * target.c (update_current_target): Update.
12139 * remote.c (remote_set_permissions): Add 'self' argument.
12140 (remote_start_remote): Update.
12141
bd7ae0f5
TT
121422014-02-19 Tom Tromey <tromey@redhat.com>
12143
12144 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12145 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12146 (target_get_tib_address): Add argument.
12147 * target.c (update_current_target): Update.
12148 * remote.c (remote_get_tib_address): Add 'self' argument.
12149
d9e68a2c
TT
121502014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12153 (target_set_trace_notes): Add argument.
12154 * target.c (update_current_target): Update.
12155 * remote.c (remote_set_trace_notes): Add 'self' argument.
12156
4da384be
TT
121572014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12160 argument.
12161 (target_set_trace_buffer_size): Add argument.
12162 * target.c (update_current_target): Update.
12163 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12164
736d5b1f
TT
121652014-02-19 Tom Tromey <tromey@redhat.com>
12166
12167 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12168 argument.
12169 (target_set_circular_trace_buffer): Add argument.
12170 * target.c (update_current_target): Update.
12171 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12172 argument.
12173
37b25738
TT
121742014-02-19 Tom Tromey <tromey@redhat.com>
12175
12176 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12177 argument.
12178 (target_set_disconnected_tracing): Add argument.
12179 * target.c (update_current_target): Update.
12180 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12181
0e67620a
TT
121822014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target.h (struct target_ops)
12185 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12186 (target_get_min_fast_tracepoint_insn_len): Add argument.
12187 * target.c (update_current_target): Update.
12188 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12189 argument.
12190
88ee6f45
TT
121912014-02-19 Tom Tromey <tromey@redhat.com>
12192
12193 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12194 argument.
12195 (target_get_raw_trace_data): Add argument.
12196 * target.c (update_current_target): Update.
12197 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12198
181e3713
TT
121992014-02-19 Tom Tromey <tromey@redhat.com>
12200
12201 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12202 Add argument.
12203 (target_upload_trace_state_variables): Add argument.
12204 * target.c (update_current_target): Update.
12205 * remote.c (remote_upload_trace_state_variables): Add 'self'
12206 argument.
12207 (remote_start_remote): Update.
12208
ab6617cc
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12212 argument.
12213 (target_upload_tracepoints): Add argument.
12214 * target.c (update_current_target): Update.
12215 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12216 (remote_start_remote): Update.
12217
dc3decaf
TT
122182014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12221 (target_save_trace_data): Add argument.
12222 * target.c (update_current_target): Update.
12223 * remote.c (remote_save_trace_data): Add 'self' argument.
12224
4011015b
TT
122252014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12228 argument.
12229 * target.h (struct target_ops)
12230 <to_get_trace_state_variable_value>: Add argument.
12231 (target_get_trace_state_variable_value): Add argument.
12232 * target.c (update_current_target): Update.
12233 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12234 argument.
12235 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12236
bd4c6793
TT
122372014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12240 * target.h (struct target_ops) <to_trace_find>: Add argument.
12241 (target_trace_find): Add argument.
12242 * target.c (update_current_target): Update.
12243 * remote.c (remote_trace_find): Add 'self' argument.
12244 * ctf.c (ctf_trace_find): Add 'self' argument.
12245
74499f1b
TT
122462014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12249 (target_trace_stop): Add argument.
12250 * target.c (update_current_target): Update.
12251 * remote.c (remote_trace_stop): Add 'self' argument.
12252
db90e85c
TT
122532014-02-19 Tom Tromey <tromey@redhat.com>
12254
12255 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12256 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12257 argument.
12258 (target_get_tracepoint_status): Add argument.
12259 * target.c (update_current_target): Update.
12260 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12261
8bd200f1
TT
122622014-02-19 Tom Tromey <tromey@redhat.com>
12263
12264 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12265 * target.h (struct target_ops) <to_get_trace_status>: Add
12266 argument.
12267 (target_get_trace_status): Add argument.
12268 * target.c (update_current_target): Update.
12269 * remote.c (remote_get_trace_status): Add 'self' argument.
12270 (remote_start_remote, remote_can_download_tracepoint): Update.
12271 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12272
e2d1aae3
TT
122732014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_trace_start>: Add argument.
12276 (target_trace_start): Add argument.
12277 * target.c (update_current_target): Update.
12278 * remote.c (remote_trace_start): Add 'self' argument.
12279
583f9a86
TT
122802014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12283 Add argument.
12284 (target_trace_set_readonly_regions): Add argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12287 argument.
12288
780b049c
TT
122892014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12292 argument.
12293 (target_disable_tracepoint): Add argument.
12294 * target.c (update_current_target): Update.
12295 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12296
46670d57
TT
122972014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12300 argument.
12301 (target_enable_tracepoint): Add argument.
12302 * target.c (update_current_target): Update.
12303 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12304
559d2b81
TT
123052014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target.h (struct target_ops) <to_download_trace_state_variable>:
12308 Add argument.
12309 (target_download_trace_state_variable): Add argument.
12310 * target.c (update_current_target): Update.
12311 * remote.c (remote_download_trace_state_variable): Add 'self'
12312 argument.
12313
a52a8357
TT
123142014-02-19 Tom Tromey <tromey@redhat.com>
12315
12316 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12317 argument.
12318 (target_can_download_tracepoint): Add argument.
12319 * target.c (update_current_target): Update.
12320 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12321
548f7808
TT
123222014-02-19 Tom Tromey <tromey@redhat.com>
12323
12324 * target.h (struct target_ops) <to_download_tracepoint>: Add
12325 argument.
12326 (target_download_tracepoint): Add argument.
12327 * target.c (update_current_target): Update.
12328 * remote.c (remote_download_tracepoint): Add 'self' argument.
12329
ecae04e1
TT
123302014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * target.h (struct target_ops) <to_trace_init>: Add argument.
12333 (target_trace_init): Add argument.
12334 * target.c (update_current_target): Update.
12335 * remote.c (remote_trace_init): Add 'self' argument.
12336
fab5aa7c
TT
123372014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12340 * target.c (target_fileio_readlink): Add argument.
12341 * remote.c (remote_hostio_readlink): Add 'self' argument.
12342 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12343
dbbca37d
TT
123442014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12347 * target.c (target_fileio_unlink): Add argument.
12348 * remote.c (remote_hostio_unlink): Add 'self' argument.
12349 (remote_file_delete): Update.
12350 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12351
df39ea25
TT
123522014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12355 * target.c (target_fileio_close): Add argument.
12356 * remote.c (remote_hostio_close): Add 'self' argument.
12357 (remote_hostio_close_cleanup): Update.
12358 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12359 Update.
12360 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12361
a3be983c
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12365 * target.c (target_fileio_pread): Add argument.
12366 * remote.c (remote_hostio_pread): Add 'self' argument.
12367 (remote_bfd_iovec_pread, remote_file_get): Update.
12368 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12369
0d866f62
TT
123702014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12373 * target.c (target_fileio_pwrite): Add argument.
12374 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12375 (remote_file_put): Update.
12376 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12377
cd897586
TT
123782014-02-19 Tom Tromey <tromey@redhat.com>
12379
12380 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12381 * target.c (target_fileio_open): Add argument.
12382 * remote.c (remote_hostio_open): Add 'self' argument.
12383 (remote_bfd_iovec_open): Add 'self' argument.
12384 (remote_file_put): Add 'self' argument.
12385 (remote_file_get): Add 'self' argument.
12386 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12387
78eff0ec
TT
123882014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12391 Add argument.
12392 (target_can_run_breakpoint_commands): Add argument.
12393 * target.c (update_current_target): Update.
12394 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12395 argument.
12396 (remote_insert_breakpoint): Add 'self' argument.
12397 (remote_insert_hw_breakpoint): Add 'self' argument.
12398 (remote_can_run_breakpoint_commands): Add 'self' argument.
12399
efcc2da7
TT
124002014-02-19 Tom Tromey <tromey@redhat.com>
12401
12402 * target.h (struct target_ops)
12403 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12404 (target_supports_evaluation_of_breakpoint_conditions): Add
12405 argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12408 argument.
12409 (remote_insert_breakpoint): Add 'self' argument.
12410 (remote_insert_hw_breakpoint): Add 'self' argument.
12411 (remote_supports_cond_breakpoints): Add 'self' argument.
12412
6de37a3a
TT
124132014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12416 argument.
12417 (target_supports_string_tracing): Add argument.
12418 * target.c (update_current_target): Update.
12419 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12420
2bfc0540
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops)
12424 <to_supports_disable_randomization>: Add argument.
12425 * target.c (find_default_supports_disable_randomization): Add
12426 argument.
12427 (target_supports_disable_randomization): Add argument.
12428 (find_default_supports_disable_randomization): Add 'self'
12429 argument.
12430 * remote.c (extended_remote_supports_disable_randomization): Add
12431 'self' argument.
12432 (remote_supports_disable_randomization): Add 'self' argument.
12433 (extended_remote_create_inferior): Update.
12434 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12435 'self' argument.
12436
7d178d6a
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target.h (struct target_ops)
12440 <to_supports_enable_disable_tracepoint>: Add argument.
12441 (target_supports_enable_disable_tracepoint): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12444 argument.
12445
86ce2668
TT
124462014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * target.h (struct target_ops) <to_supports_multi_process>: Add
12449 argument.
12450 (target_supports_multi_process): Add argument.
12451 * target.c (update_current_target): Update.
12452 * remote.c (remote_supports_multi_process): Add 'self' argument.
12453 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12454 argument.
12455 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12456 argument.
12457
4c612759
TT
124582014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target.h (struct target_ops) <to_execution_direction>: Add
12461 argument.
12462 (target_execution_direction): Add argument.
12463 * target.c (default_execution_direction): Add 'self' argument.
12464 * record-full.c (record_full_execution_direction): Add 'self'
12465 argument.
12466
19db3e69
TT
124672014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12470 argument.
12471 (target_can_execute_reverse): Add argument.
12472 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12473 * record-full.c (record_full_can_execute_reverse): Add 'self'
12474 argument.
12475 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12476 argument.
12477
1e6b91a4
TT
124782014-02-19 Tom Tromey <tromey@redhat.com>
12479
12480 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12481 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12482 argument.
12483 (target_get_ada_task_ptid): Add argument.
12484 * target.c (update_current_target): Update.
12485 (default_get_ada_task_ptid): Add 'self' argument.
12486 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12487 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12488 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12489 argument.
12490 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12491 argument.
12492 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12493 argument.
12494 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12495 argument.
12496 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12497 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12498 argument.
12499
3c80fb48
TT
125002014-02-19 Tom Tromey <tromey@redhat.com>
12501
12502 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12503 (target_goto_bookmark): Add argument.
12504 * target.c (dummy_goto_bookmark): Add 'self' argument.
12505 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12506
dd0e2830
TT
125072014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12510 (target_get_bookmark): Add argument.
12511 * target.c (dummy_get_bookmark): Add 'self' argument.
12512 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12513
fc6691b2
TT
125142014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12517 argument.
12518 (target_make_corefile_notes): Add argument.
12519 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12520 * procfs.c (procfs_make_note_section): Add 'self' argument.
12521 (procfs_make_note_section): Add 'self' argument.
12522 (procfs_make_note_section): Add 'self' argument.
12523 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12524 argument.
12525 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12526 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12527 * exec.c (exec_make_note_section): Add 'self' argument.
12528 (exec_make_note_section): Add 'self' argument.
12529
2e73927c
TT
125302014-02-19 Tom Tromey <tromey@redhat.com>
12531
12532 * target.h (struct target_ops) <to_find_memory_regions>: Add
12533 argument.
12534 (target_find_memory_regions): Add argument.
12535 * target.c (dummy_find_memory_regions): Add 'self' argument.
12536 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12537 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12538 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12539 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12540 * exec. (exec_do_find_memory_regions): New global.
12541 (exec_set_find_memory_regions): Rewrite.
12542 (exec_find_memory_regions): New function.
12543 (init_exec_ops): Use exec_find_memory_regions.
12544
2a9a2795
TT
125452014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * target.h (struct target_ops) <to_supports_non_stop>: Add
12548 argument.
12549 * target.c (find_default_supports_non_stop): Add argument.
12550 (target_supports_non_stop): Add argument.
12551 (find_default_supports_non_stop): Add 'self' argument.
12552 * remote.c (remote_supports_non_stop): Add 'self' argument.
12553 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12554
4ab76ea3
TT
125552014-02-19 Tom Tromey <tromey@redhat.com>
12556
12557 * target.h (struct target_ops) <to_log_command>: Add argument.
12558 (target_log_command): Add argument.
12559 * serial.h (serial_log_command): Add 'self' argument.
12560 * serial.c (serial_log_command): Add 'self' argument.
12561
8dd27370
TT
125622014-02-19 Tom Tromey <tromey@redhat.com>
12563
12564 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12565 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12566 argument.
12567 (target_pid_to_exec_file): Add argument.
12568 * target.c (debug_to_pid_to_exec_file): Add argument.
12569 (update_current_target): Update.
12570 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12571 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12572 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12573 (linux_handle_extended_wait): Update.
12574 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12575 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12576 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12577 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12578
1aac633b
TT
125792014-02-19 Tom Tromey <tromey@redhat.com>
12580
12581 * target.h (struct target_ops) <to_rcmd>: Add argument.
12582 (target_rcmd): Add argument.
12583 * target.c (debug_to_rcmd): Add argument.
12584 (update_current_target, do_monitor_command): Update.
12585 * remote.c (remote_rcmd): Add 'self' argument.
12586 * monitor.c (monitor_rcmd): Add 'self' argument.
12587
1eab8a48
TT
125882014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * windows-nat.c (windows_stop): Add 'self' argument.
12591 * target.h (struct target_ops) <to_stop>: Add argument.
12592 * target.c (target_stop): Add argument.
12593 (debug_to_stop): Add argument.
12594 (update_current_target): Update.
12595 * remote.c (remote_stop): Add 'self' argument.
12596 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12597 (gdbsim_cntrl_c): Update.
12598 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12599 * procfs.c (procfs_stop): Add 'self' argument.
12600 * nto-procfs.c (procfs_stop): Add 'self' argument.
12601 * monitor.c (monitor_stop): Add 'self' argument.
12602 (monitor_open): Update.
12603 * linux-nat.c (linux_nat_stop): Add argument.
12604 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12605 * gnu-nat.c (gnu_stop): Add 'self' argument.
12606 * darwin-nat.c (darwin_stop): Add 'self' argument.
12607
503a628d
TT
126082014-02-19 Tom Tromey <tromey@redhat.com>
12609
12610 * target.h (struct target_ops) <to_thread_name>: Add argument.
12611 * target.c (target_thread_name): Add argument.
12612 (update_current_target): Update.
12613 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12614
c15906d8
TT
126152014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target.h (struct target_ops) <to_extra_thread_info>: Add
12618 argument.
12619 (target_extra_thread_info): Add argument.
12620 * target.c (update_current_target): Update.
12621 * remote.c (remote_threads_extra_info): Add 'self' argument.
12622 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12623 argument.
12624 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12625 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12626 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12627 argument.
12628 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12629 argument.
12630 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12631 argument.
12632 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12633 argument.
12634
daf5e9b6
TT
126352014-02-19 Tom Tromey <tromey@redhat.com>
12636
12637 * target.h (struct target_ops) <to_program_signals>: Add argument.
12638 * target.c (target_program_signals): Add argument.
12639 * remote.c (remote_program_signals): Add 'self' argument.
12640
94bedb42
TT
126412014-02-19 Tom Tromey <tromey@redhat.com>
12642
12643 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12644 * target.c (target_pass_signals): Add argument.
12645 * remote.c (remote_pass_signals): Add 'self' argument.
12646 (remote_start_remote): Update.
12647 * procfs.c (procfs_pass_signals): Add 'self' argument.
12648 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12649 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12650 (linux_nat_create_inferior, linux_nat_attach): Update.
12651
da82bd6b
TT
126522014-02-19 Tom Tromey <tromey@redhat.com>
12653
12654 * windows-nat.c (windows_can_run): Add 'self' argument.
12655 * target.h (struct target_ops) <to_can_run>: Add argument.
12656 (target_can_run): Add argument.
12657 * target.c (debug_to_can_run): Add argument.
12658 (update_current_target): Update.
12659 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12660 * inf-child.c (inf_child_can_run): Add 'self' argument.
12661 * go32-nat.c (go32_can_run): Add 'self' argument.
12662
d796e1d6
TT
126632014-02-19 Tom Tromey <tromey@redhat.com>
12664
12665 * target.h (struct target_ops) <to_has_exited>: Add argument.
12666 (target_has_exited): Add argument.
12667 * target.c (debug_to_has_exited): Add argument.
12668 (update_current_target): Update.
12669
ff214e67
TT
126702014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12673 argument.
12674 (target_set_syscall_catchpoint): Add argument.
12675 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12676 argument.
12677 * target.c (update_current_target): Update.
12678
758e29d2
TT
126792014-02-19 Tom Tromey <tromey@redhat.com>
12680
12681 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12682 argument.
12683 (target_remove_exec_catchpoint): Add argument.
12684 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12685 (update_current_target): Update.
12686 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12687 argument.
12688
ba025e51
TT
126892014-02-19 Tom Tromey <tromey@redhat.com>
12690
12691 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12692 argument.
12693 (target_insert_exec_catchpoint): Add argument.
12694 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12695 (update_current_target): Update.
12696 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12697 argument.
12698
e98cf0cd
TT
126992014-02-19 Tom Tromey <tromey@redhat.com>
12700
12701 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12702 argument.
12703 (target_remove_vfork_catchpoint): Add argument.
12704 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12705 (update_current_target): Update.
12706 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12707 argument.
12708
3ecc7da0
TT
127092014-02-19 Tom Tromey <tromey@redhat.com>
12710
12711 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12712 argument.
12713 (target_insert_vfork_catchpoint): Add argument.
12714 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12715 (update_current_target): Update.
12716 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12717 argument.
12718
973fc227
TT
127192014-02-19 Tom Tromey <tromey@redhat.com>
12720
12721 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12722 argument.
12723 (target_remove_fork_catchpoint): Add argument.
12724 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12725 (update_current_target): Update.
12726 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12727 argument.
12728
a863b201
TT
127292014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12732 argument.
12733 (target_insert_fork_catchpoint): Add argument.
12734 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12735 (update_current_target): Update.
12736 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12737 argument.
12738
2e97a79e
TT
127392014-02-19 Tom Tromey <tromey@redhat.com>
12740
12741 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12742 argument.
12743 (target_post_startup_inferior): Add argument.
12744 * target.c (debug_to_post_startup_inferior): Add argument.
12745 (update_current_target): Update.
12746 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12747 argument.
12748 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12749 argument.
12750 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12751 argument.
12752 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12753 argument.
12754 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12755 'self' argument.
12756 (super_post_startup_inferior): Likewise.
12757 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12758 'self' argument.
12759 (super_post_startup_inferior): Likewise.
12760 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12761 Add 'self' argument.
12762 (super_post_startup_inferior): Likewise.
12763
71a9f134
TT
127642014-02-19 Tom Tromey <tromey@redhat.com>
12765
12766 * target.h (struct target_ops) <to_load>: Add argument.
12767 * target.c (target_load): Add argument.
12768 (debug_to_load): Add argument.
12769 (update_current_target): Update.
12770 * remote.c (remote_load): Add 'self' argument.
12771 * remote-sim.c (gdbsim_load): Add 'self' argument.
12772 * remote-mips.c (mips_load): Add 'self' argument.
12773 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12774 * monitor.c (monitor_load): Add 'self' argument.
12775 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12776
0a4f40a2
TT
127772014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12780 (target_terminal_info): Add argument.
12781 * target.c (debug_to_terminal_info): Add argument.
12782 (default_terminal_info): Likewise.
12783 * inflow.c (child_terminal_info): Add 'self' argument.
12784 * inferior.h (child_terminal_info): Add 'self' argument.
12785 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12786
ae3bd431
TT
127872014-02-19 Tom Tromey <tromey@redhat.com>
12788
12789 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12790 argument.
12791 (target_terminal_save_ours): Add argument.
12792 * target.c (debug_to_terminal_save_ours): Add argument.
12793 (update_current_target): Update.
12794 * inflow.c (terminal_save_ours): Add 'self' argument.
12795 * inferior.h (terminal_save_ours): Add 'self' argument.
12796
e3594fd1
TT
127972014-02-19 Tom Tromey <tromey@redhat.com>
12798
12799 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12800 (target_terminal_ours): Add argument.
12801 * target.c (debug_to_terminal_ours): Add argument.
12802 (update_current_target): Update.
12803 * remote.c (remote_terminal_ours): Add 'self' argument.
12804 (remote_close): Update.
12805 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12806 * inflow.c (terminal_ours): Add 'self' argument.
12807 * inferior.h (terminal_ours): Add 'self' argument.
12808 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12809
2e1e1a19
TT
128102014-02-19 Pedro Alves <palves@redhat.com>
12811 Tom Tromey <tromey@redhat.com>
12812
12813 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12814 argument.
12815 (target_terminal_ours_for_output): Add argument.
12816 * target.c (debug_to_terminal_ours_for_output): Add argument.
12817 (update_current_target): Update.
12818 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12819 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12820 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12821
d2f640d4
TT
128222014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_terminal_inferior>: Add
12825 argument.
12826 * target.c (target_terminal_inferior): Add argument.
12827 (update_current_target): Update.
12828 * remote.c (remote_terminal_inferior): Add 'self' argument.
12829 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12830 * inflow.c (terminal_inferior): Add 'self' argument.
12831 * inferior.h (terminal_inferior): Add 'self' argument.
12832 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12833 (go32_terminal_inferior): Add 'self' argument.
12834
c42bf286
TT
128352014-02-19 Tom Tromey <tromey@redhat.com>
12836
12837 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12838 (target_terminal_init): Add argument.
12839 * target.c (debug_to_terminal_init): Add argument.
12840 (update_current_target): Update.
12841 * inflow.c (terminal_init_inferior): Add 'self' argument.
12842 * inferior.h (terminal_init_inferior): Add 'self' argument.
12843 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12844 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12845
c3a5ff89
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops)
12849 <to_can_accel_watchpoint_condition>: Add argument.
12850 (target_can_accel_watchpoint_condition): Add argument.
12851 * target.c (debug_to_can_accel_watchpoint_condition): Add
12852 argument.
12853 (update_current_target): Update.
12854 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12855 'self' argument.
12856
31568a15
TT
128572014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12860 Add argument.
12861 (target_region_ok_for_hw_watchpoint): Add argument.
12862 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12863 (default_region_ok_for_hw_watchpoint): Add argument.
12864 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12865 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12866 argument.
12867 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12868 argument.
12869 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12870 argument.
12871 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12872 'self' argument.
12873 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12874 'self' argument.
12875 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12876 'self' argument.
12877 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12878 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12879 'self' argument.
12880 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12881 Add 'self' argument.
12882
7bb99c53
TT
128832014-02-19 Tom Tromey <tromey@redhat.com>
12884
12885 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12886 argument.
12887 (target_insert_watchpoint): Add argument.
12888 * target.c (debug_to_insert_watchpoint): Add argument.
12889 (update_current_target): Update.
12890 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12891 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12892 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12893 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12894 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12895 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12896 argument.
12897 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12898 (procfs_insert_hw_watchpoint): Add 'self' argument.
12899 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12900 argument.
12901 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12902 argument.
12903 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12904 argument.
12905 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12906 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12907 argument.
12908 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12909 'self' argument.
12910
11b5219a
TT
129112014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12914 argument.
12915 (target_remove_watchpoint): Add argument.
12916 * target.c (debug_to_remove_watchpoint): Add argument.
12917 (update_current_target): Update.
12918 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12919 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12920 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12921 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12922 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12923 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12924 argument.
12925 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12926 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12927 argument.
12928 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12929 argument.
12930 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12931 argument.
12932 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12933 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12934 argument.
12935 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12936 'self' argument.
12937
a64dc96c
TT
129382014-02-19 Tom Tromey <tromey@redhat.com>
12939
12940 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12941 argument.
12942 (target_remove_hw_breakpoint): Add argument.
12943 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12944 (update_current_target): Update.
12945 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12946 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12947 argument.
12948 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12949 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12950 argument.
12951 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12952 'self' argument.
12953
23a26771
TT
129542014-02-19 Tom Tromey <tromey@redhat.com>
12955
12956 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12957 argument.
12958 (target_insert_hw_breakpoint): Add argument.
12959 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12960 (update_current_target): Update.
12961 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12962 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12963 argument.
12964 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12965 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12966 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12967 argument.
12968 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12969 'self' argument.
12970
5461485a
TT
129712014-02-19 Tom Tromey <tromey@redhat.com>
12972
12973 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12974 argument.
12975 (target_can_use_hardware_watchpoint): Add argument.
12976 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12977 (update_current_target): Update.
12978 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12979 argument.
12980 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12981 argument.
12982 * remote.c (remote_check_watch_resources): Add 'self' argument.
12983 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12984 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12985 argument.
12986 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12987 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12988 argument.
12989 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12990 argument.
12991 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12992 argument.
12993 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12994 argument.
12995 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12996 argument.
12997 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12998 argument.
12999 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13000 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13001 argument.
13002 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13003 'self' argument.
13004
f045800c
TT
130052014-02-19 Tom Tromey <tromey@redhat.com>
13006
13007 * target.h (struct target_ops) <to_post_attach>: Add argument.
13008 (target_post_attach): Add argument.
13009 * target.c (debug_to_post_attach): Add argument.
13010 (update_current_target): Update.
13011 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13012 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13013 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13014 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13015 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13016
de90e03d
TT
130172014-02-19 Tom Tromey <tromey@redhat.com>
13018
13019 * windows-nat.c (windows_close): Add 'self' argument.
13020 * tracepoint.c (tfile_close): Add 'self' argument.
13021 * target.h (struct target_ops) <to_close>: Add argument.
13022 * target.c (target_close): Add argument.
13023 (update_current_target): Update.
13024 * remote.c (remote_close): Add 'self' argument.
13025 * remote-sim.c (gdbsim_close): Add 'self' argument.
13026 * remote-mips.c (mips_close): Add 'self' argument.
13027 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13028 * record-full.c (record_full_close): Add 'self' argument.
13029 * record-btrace.c (record_btrace_close): Add 'self' argument.
13030 * monitor.h (monitor_close): Add 'self' argument.
13031 * monitor.c (monitor_close): Add 'self' argument.
13032 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13033 * linux-nat.c (linux_nat_close): Add argument.
13034 * go32-nat.c (go32_close): Add 'self' argument.
13035 * exec.c (exec_close_1): Add 'self' argument.
13036 * ctf.c (ctf_close): Add 'self' argument.
13037 * corelow.c (core_close): Add 'self' argument.
13038 (core_close_cleanup): Update.
13039 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13040 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13041
9dd130a0
TT
130422014-02-19 Tom Tromey <tromey@redhat.com>
13043
13044 * remote.c (remote_load): New function.
13045 (init_remote_ops): Use it.
13046
46917d26
TT
130472014-02-19 Tom Tromey <tromey@redhat.com>
13048
13049 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13050 argument.
13051 * common/linux-btrace.h (linux_supports_btrace): Update.
13052 * remote.c (remote_supports_btrace): Add "self" argument.
13053 * target-delegates.c: Rebuild.
13054 * target.c (target_supports_btrace): Remove.
13055 * target.h (struct target_ops) <to_supports_btrace>: Add
13056 target_ops argument.
13057 (target_supports_btrace): New define.
13058
6b84065d
TT
130592014-02-19 Tom Tromey <tromey@redhat.com>
13060
13061 * record-full.c (record_full_beneath_to_resume_ops)
13062 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13063 (record_full_beneath_to_wait)
13064 (record_full_beneath_to_store_registers_ops)
13065 (record_full_beneath_to_store_registers)
13066 (record_full_beneath_to_xfer_partial_ops)
13067 (record_full_beneath_to_xfer_partial)
13068 (record_full_beneath_to_insert_breakpoint_ops)
13069 (record_full_beneath_to_insert_breakpoint)
13070 (record_full_beneath_to_remove_breakpoint_ops)
13071 (record_full_beneath_to_remove_breakpoint)
13072 (record_full_beneath_to_stopped_by_watchpoint)
13073 (record_full_beneath_to_stopped_data_address)
13074 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13075 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13076 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13077 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13078 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13079 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13080 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13081 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13082 (record_full_resume, record_full_wait_1)
13083 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13084 (record_full_store_registers, record_full_xfer_partial)
13085 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13086 (record_full_async, record_full_core_xfer_partial): Use target
13087 delegation.
13088 * target-delegates.c: Rebuild.
13089 * target.c (current_xfer_partial): Remove.
13090 (update_current_target): Do not INHERIT or de_fault
13091 to_insert_breakpoint, to_remove_breakpoint,
13092 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13093 to_is_async_p, to_async. Do not set to_xfer_partial field.
13094 (default_xfer_partial): Simplify.
13095 (current_xfer_partial): Remove.
13096 (target_wait, target_resume): Simplify.
13097 (find_default_can_async_p, find_default_is_async_p): Update.
13098 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13099 to_xfer_partial, to_stopped_by_watchpoint,
13100 to_stopped_data_address.
13101 (target_store_registers): Simplify.
13102 (forward_target_remove_breakpoint)
13103 (forward_target_insert_breakpoint): Remove.
13104 (target_remove_breakpoint, target_insert_breakpoint)
13105 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13106 * target.h (struct target_ops) <to_resume, to_wait,
13107 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13108 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13109 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13110 markup.
13111 (forward_target_remove_breakpoint)
13112 (forward_target_insert_breakpoint): Remove.
13113 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13114 directly.
13115 (record_btrace_insert_breakpoint): Delegate directly.
13116
1101cb7b
TT
131172014-02-19 Tom Tromey <tromey@redhat.com>
13118
13119 PR build/7701:
13120 * target-delegates.c: New file.
13121 * target.c: Include target-delegates.c.
13122 (init_dummy_target): Call install_dummy_methods.
13123 (complete_target_initialization): Call install_delegators.
13124 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13125 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13126 * make-target-delegates: New file.
13127
8b06beed
TT
131282014-02-19 Tom Tromey <tromey@redhat.com>
13129
13130 * record.c (find_record_target): Use find_target_at.
13131 * target.c (find_target_at): New function.
13132 * target.h (find_target_at): Declare.
13133
6a109b6b
TT
131342014-02-19 Tom Tromey <tromey@redhat.com>
13135
13136 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13137 Add 'ops' argument.
13138 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13139 'ops' argument.
13140 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13141 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13142 'ops' argument.
13143 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13144 argument.
13145 * linux-nat.c (save_sigtrap): Update.
13146 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13147 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13148 (linux_nat_close): Update.
13149 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13150 argument.
13151 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13152 argument.
13153 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13154 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13155 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13156 (tmp_to_async): Add 'ops' argument.
13157 (record_full_stopped_by_watchpoint, record_full_async)
13158 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13159 argument.
13160 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13161 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13162 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13163 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13164 (remote_is_async_p, remote_async): Add 'ops' argument.
13165 (remote_stopped_data_address): Update.
13166 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13167 * target.c (update_current_target)
13168 (find_default_can_async_p, find_default_is_async_p): Update.
13169 (init_dummy_target): Update.
13170 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13171 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13172 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13173 (target_can_async_p, target_is_async_p, target_async)
13174 (target_stopped_by_watchpoint): Update.
13175
e095146b
YQ
131762014-02-19 Yao Qi <yao@codesourcery.com>
13177
13178 PR gdb/16220
13179 * gdbarch.sh: Remove startup_gdbarch.
13180 * gdbarch.c: Regenerated.
13181 * gdbarch.h: Likewise.
13182
bc3c6b36
KB
131832014-02-17 Kevin Buettner <kevinb@redhat.com>
13184
13185 * rl78-tdep.c (rl78_g10_register_name): New function.
13186 (rl78_return_value): Add g10 support.
13187 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13188 g10.
13189
98dc0167 131902014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13191
13192 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13193 (SUBDIR_GUILE_SRCS): Ditto.
13194 (scm-gsmob.o): Ditto.
13195
842c05cd
YQ
131962014-02-17 Yao Qi <yao@codesourcery.com>
13197
13198 * gnu-nat.c (ILL_RPC): Declare defined function.
13199
25c0bd04
YQ
132002014-02-17 Yao Qi <yao@codesourcery.com>
13201
13202 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13203 mach_msg_type_number_t.
13204 (gnu_write_inferior): Likewise.
13205
a9a758e3
YQ
132062014-02-17 Yao Qi <yao@codesourcery.com>
13207
13208 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13209 in format string.
13210 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13211 (inf_validate_procs, inf_signal): Likewise.
13212 (S_exception_raise_request): Likewise.
13213 (do_mach_notify_dead_name): Likewise.
13214 (steal_exc_port): Likewise.
13215 (gnu_read_inferior): Change 'copy_count''s type to
13216 mach_msg_type_number_t.
13217 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13218 format string.
13219
bae8023e
TS
132202014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13221
c82f56d9
TS
13222 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13223 flag. Adjust all users; in particular...
13224 (gnu_wait): ..., don't decrement its value in here...
13225 (gnu_create_inferior): ..., and instead set the flag in here,
13226 around the startup_inferior call, and call that one with
13227 START_INFERIOR_TRAPS_EXPECTED.
13228
3398af6a
TS
13229 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13230 (ILL_RPC): ... new macro.
13231 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13232 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13233 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13234 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13235 functions with ILL_RPC macro.
13236 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13237 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13238 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13239 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13240 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13241 (S_proc_getlogin_reply, S_proc_getsid_reply)
13242 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13243 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13244 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13245 (S_proc_getnports_reply, S_proc_is_important_reply)
13246 (S_proc_get_code_reply): New stub functions, generated with
13247 ILL_RPC macro.
13248
d47642c9
TS
13249 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13250 collected the type check structures.
13251
bae8023e
TS
13252 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13253
8a55ffb0
DE
132542014-02-14 Doug Evans <dje@google.com>
13255
13256 * target.c (target_write_partial): Fix result type.
13257
c2853f3d
JM
132582014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13259
13260 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13261 the proper offsets to access fpregset_t.
13262
ac61d2db
SA
132632014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13264
13265 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13266 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13267 * h8300-tdep.c (setmachinelist): Remove global.
13268 * hppa-tdep.c (hppa_sigtramp): Remove global.
13269 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13270 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13271 * ravenscar-thread.c (update_target_observer): Remove global.
13272 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13273
9d2d0b8b
TT
132742014-02-12 Tom Tromey <tromey@redhat.com>
13275
13276 * common/rsp-low.c: Update comments.
13277 * common/rsp-low.h: Update comments.
13278
a7191e8b
TT
132792014-02-12 Tom Tromey <tromey@redhat.com>
13280
13281 * common/rsp-low.c (convert_ascii_to_int): Remove.
13282 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13283
ff0e980e
TT
132842014-02-12 Tom Tromey <tromey@redhat.com>
13285
13286 * common/rsp-low.h (unhexify): Don't declare.
13287 * common/rsp-low.c (unhexify): Remove.
13288
e9371aff
TT
132892014-02-12 Tom Tromey <tromey@redhat.com>
13290
13291 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13292 * common/rsp-low.c (convert_int_to_ascii): Remove.
13293
971dc0b8
TT
132942014-02-12 Tom Tromey <tromey@redhat.com>
13295
13296 * common/rsp-low.h (hexify): Don't declare.
13297 * common/rsp-low.c (hexify): Remove.
13298
0a822afb
TT
132992014-02-12 Tom Tromey <tromey@redhat.com>
13300
13301 * common/rsp-low.c (hexify): Never take strlen of argument.
13302
9f1b45b0
TT
133032014-02-12 Tom Tromey <tromey@redhat.com>
13304
13305 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13306 * remote.c (extended_remote_run, remote_rcmd)
13307 (remote_download_trace_state_variable, remote_save_trace_data)
13308 (remote_set_trace_notes): Update.
13309 * tracepoint.c (encode_source_string, tfile_write_status)
13310 (tfile_write_uploaded_tsv): Update.
13311
9c3d6531
TT
133122014-02-12 Tom Tromey <tromey@redhat.com>
13313
13314 * tracepoint.c: Include rsp-low.h.
13315 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13316 * remote.c: Include rsp-low.h.
13317 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13318 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13319 (remote_unescape_input): Move to common/rsp-low.c.
13320 * common/rsp-low.h: New file.
13321 * common/rsp-low.c: New file.
13322 * Makefile.in (SFILES): Add common/rsp-low.c.
13323 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13324 (COMMON_OBS): Add rsp-low.o.
13325 (rsp-low.o): New target.
13326
01fd3ea5
TT
133272014-02-12 Tom Tromey <tromey@redhat.com>
13328
13329 * utils.h: Include print-utils.h.
13330 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13331 (int_string, core_addr_to_string, core_addr_to_string_nz)
13332 (hex_string, hex_string_custom): Don't declare.
13333 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13334 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13335 (hex_string_custom, int_string, core_addr_to_string)
13336 (core_addr_to_string_nz, host_address_to_string): Move to
13337 common/print-utils.c.
13338 * common/print-utils.h: New file.
13339 * common/print-utils.c: New file
13340 * Makefile.in (SFILES): Add common/print-utils.c.
13341 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13342 (COMMON_OBS): Add print-utils.o.
13343 (print-utils.o): New target.
13344
9fb50108
TT
133452014-02-12 Tom Tromey <tromey@redhat.com>
13346
13347 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13348
0548b5db
MK
133492014-02-12 Mark Kettenis <kettenis@gnu.org>
13350
13351 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13352
493443a4
MK
133532014-02-12 Mark Kettenis <kettenis@gnu.org>
13354
13355 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13356 if a PT_IO ptrace request returns sucessfully but indicates that 0
13357 bytes were transferred.
13358
706d0883
PA
133592014-02-12 Pedro Alves <palves@redhat.com>
13360 Kevin Buettner <kevinb@redhat.com>
13361
13362 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13363 TYPE_INSTANCE_FLAG_CODE_SPACE.
13364
5caa2f0b
PA
133652014-02-12 Pedro Alves <palves@redhat.com>
13366
13367 * h8300-tdep.c (pseudo_from_raw_register)
13368 (raw_from_pseudo_register): New functions.
13369 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13370 them.
13371
76fd5f74
PA
133722014-02-12 Pedro Alves <palves@redhat.com>
13373
13374 * h8300-tdep.c (h8300_register_sim_regno): New function.
13375 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13376 gdbarch_register_sim_regno hook.
13377
8f008406
SA
133782014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13379
13380 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13381
195abc10
SA
133822014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13383
13384 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13385
93ffa5b9
MK
133862014-02-12 Mark Kettenis <kettenis@gnu.org>
13387
13388 * obsd-tdep.h (obsd_init_abi): New prototype.
13389 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13390 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13391 (obsd_init_abi): New functions.
13392 * i386obsd-tdep.c: Include "obsd-tdep.h".
13393 (i386obsd_init_abi): Call obsd_init_abi.
13394 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13395 (amd64obsd_init_abi): Call obsd_init_abi.
13396 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13397 obsd-tdep.c to gdb_target_obs.
13398
49caec94
JM
133992014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13400
13401 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13402 double float arguments to 16-byte in the argument slots.
13403
e1402065
DE
134042014-02-11 Doug Evans <xdje42@gmail.com>
13405
13406 * configure.ac: Don't crash if pkg-config is not found and guile
13407 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13408 in guile checks.
13409 * configure: Regenerate.
13410
edcc890f
YQ
134112014-02-11 Yao Qi <yao@codesourcery.com>
13412
13413 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13414 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13415 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13416 * gnu-nat.c (gnu_xfer_memory): Likewise.
13417 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13418 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13419 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13420 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13421
9b409511
YQ
134222014-02-11 Yao Qi <yao@codesourcery.com>
13423
13424 * target.h (enum target_xfer_error): Rename to ...
13425 (enum target_xfer_status): ... it. New. All users updated.
13426 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13427 New.
13428 (TARGET_XFER_STATUS_ERROR_P): New macro.
13429 (target_xfer_error_to_string): Remove declaration.
13430 (target_xfer_status_to_string): Declare.
13431 (target_xfer_partial_ftype): Adjust it.
13432 (struct target_ops) <to_xfer_partial>: Return
13433 target_xfer_status. Add argument xfered_len. Update
13434 comments.
13435 * target.c (target_xfer_error_to_string): Rename to ...
13436 (target_xfer_status_to_string): ... it. New. All callers
13437 updated.
13438 (target_read_live_memory): Likewise. Call target_xfer_partial
13439 instead of target_read.
13440 (memory_xfer_live_readonly_partial): Return
13441 target_xfer_status. Add argument xfered_len.
13442 (raw_memory_xfer_partial): Likewise.
13443 (memory_xfer_partial_1): Likewise.
13444 (memory_xfer_partial): Likewise.
13445 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13446 properly. Update debug message.
13447 (default_xfer_partial, current_xfer_partial): Likewise.
13448 (target_write_partial): Likewise.
13449 (target_read_partial): Likewise. All callers updated.
13450 (read_whatever_is_readable): Likewise.
13451 (target_write_with_progress): Likewise.
13452 (target_read_alloc_1): Likewise.
13453
13454 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13455 * auxv.c (procfs_xfer_auxv): Likewise.
13456 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13457 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13458 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13459 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13460 * corefile.c (read_memory): Adjust.
13461 * corelow.c (core_xfer_partial): Likewise.
13462 * ctf.c (ctf_xfer_partial): Likewise.
13463 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13464 updated.
13465 (darwin_xfer_partial): Likewise.
13466 * exec.c (section_table_xfer_memory_partial): Likewise. All
13467 callers updated.
13468 (exec_xfer_partial): Likewise.
13469 * exec.h (section_table_xfer_memory_partial): Update
13470 declaration.
13471 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13472 negative.
13473 (gnu_xfer_partial): Likewise.
13474 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13475 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13476 (ia64_hpux_xfer_solib_got): Likewise.
13477 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13478 type of 'partial_len' to ULONGEST.
13479 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13480 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13481 (linux_nat_xfer_partial): Likewise.
13482 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13483 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13484 * monitor.c (monitor_xfer_memory): Likewise.
13485 (monitor_xfer_partial): Likewise.
13486 * procfs.c (procfs_xfer_partial): Likewise.
13487 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13488 * record-full.c (record_full_xfer_partial): Likewise.
13489 (record_full_core_xfer_partial): Likewise.
13490 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13491 (gdbsim_xfer_partial): Likewise.
13492 * remote.c (remote_write_bytes_aux): Likewise. All callers
13493 updated.
13494 (remote_write_bytes, remote_read_bytes): Likewise. All
13495 callers updated.
13496 (remote_flash_erase): Likewise. All callers updated.
13497 (remote_write_qxfer): Likewise. All callers updated.
13498 (remote_read_qxfer): Likewise. All callers updated.
13499 (remote_xfer_partial): Likewise.
13500 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13501 (rs6000_xfer_shared_libraries): Likewise.
13502 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13503 (sol_thread_xfer_partial): Likewise.
13504 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13505 (sparc_xfer_partial): Likewise.
13506 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13507 updated.
13508 (spu_xfer_partial): Likewise.
13509 * spu-multiarch.c (spu_xfer_partial): Likewise.
13510 * tracepoint.c (tfile_xfer_partial): Likewise.
13511 * windows-nat.c (windows_xfer_memory): Likewise.
13512 (windows_xfer_shared_libraries): Likewise.
13513 (windows_xfer_partial): Likewise.
13514 * valprint.c: Replace 'target_xfer_error' with
13515 'target_xfer_status' in comments.
13516
a8e63083
JB
135172014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13518
13519 Checked in by Joel Brobecker <brobecker@adacore.com>.
13520 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13521
e86b67d3
JB
135222014-02-11 Joel Brobecker <brobecker@adacore.com>
13523
13524 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13525 function parameters.
13526
4b7d1f7f
WN
135272014-02-10 Will Newton <will.newton@linaro.org>
13528
13529 * elfread.c (elf_rel_plt_read): Look for a .got section if
13530 looking up .got.plt fails.
13531 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13532 on address passed to elf_gnu_ifunc_record_cache.
13533 (elf_gnu_ifunc_resolve_addr): Likewise.
13534 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13535
961842b2
JM
135362014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13537
13538 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13539 (X_RETTURN): New macro.
13540 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13541
13542 * sparc64-tdep.c (sparc64_init_abi): Hook
13543 sparc_in_function_epilogue_p.
13544
3f03e7b1
GB
135452014-02-10 Gary Benson <gbenson@redhat.com>
13546
13547 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13548 Rename name_matcher to symbol_matcher.
13549
96f861ef
GB
135502014-02-10 Gary Benson <gbenson@redhat.com>
13551
13552 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13553 Use expand_symtabs_file_matcher_ftype and
13554 expand_symtabs_symbol_matcher_ftype.
13555
ee01b665
JB
135562014-02-10 Joel Brobecker <brobecker@adacore.com>
13557
13558 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13559 (struct ada_symbol_cache): New.
13560 (ada_free_symbol_cache): Forward declare.
13561 (struct ada_pspace_data): New.
13562 (ada_pspace_data_handle): New static global.
13563 (get_ada_pspace_data, ada_pspace_data_cleanup)
13564 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13565 (cache_space, cache): Delete, now folded inside struct
13566 ada_pspace_data.
13567 (ada_get_symbol_cache): New function.
13568 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13569 implementation.
13570 (_initialize_ada_language): Remove initialization of cache_space.
13571 Move call to observer_attach_inferior_exit up, grouping it
13572 with the other observer registrations inside this function.
13573 Rename command to be more general. Add call to
13574 register_program_space_data_with_cleanup.
13575
143adbbf
JB
135762014-02-10 Joel Brobecker <brobecker@adacore.com>
13577
13578 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13579 ada_new_objfile_observer.
13580 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13581 (_initialize_tasks): Update uses of ada_new_objfile_observer
13582 and ada_tasks_normal_stop_observer.
13583
aa4fb036
JB
135842014-02-10 Joel Brobecker <brobecker@adacore.com>
13585
13586 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13587 returned by the 'Length attribute to integer.
13588
9dee8cc6
JB
135892014-02-10 Joel Brobecker <brobecker@adacore.com>
13590
13591 * ada-lang.c (_initialize_ada_language): Initialize
13592 cache_space obstack.
13593
3d9434b5
JB
135942014-02-10 Joel Brobecker <brobecker@adacore.com>
13595
13596 * ada-lang.c (HASH_SIZE): New macro.
13597 (struct cache_entry): New type.
13598 (cache_space, cache): New static globals.
13599 (ada_clear_symbol_cache, find_entry): New functions.
13600 (lookup_cached_symbol, cache_symbol): Implement.
13601 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13602 (_initialize_ada_language): Attach ada_new_objfile_observer
13603 and ada_free_objfile_observer.
13604
f0c5f9b2
JB
136052014-02-10 Joel Brobecker <brobecker@adacore.com>
13606
13607 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13608 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13609 struct block * parameter.
13610 (ada_lookup_symbol_list_worker): Constify local variable "block".
13611 Remove cast which is no longer necessary.
13612
ed3ef339
DE
136132014-02-10 Doug Evans <xdje42@gmail.com>
13614
13615 Add Guile as an extension language.
13616 * NEWS: Mention Guile scripting.
13617 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13618 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13619 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13620 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13621 (CLIBS): Add GUILE_LIBS.
13622 (install-guile): New rule.
13623 (guile.o): New rule.
13624 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13625 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13626 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13627 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13628 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13629 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13630 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13631 * configure.ac: New option --with-guile.
13632 * configure: Regenerate.
13633 * config.in: Regenerate.
13634 * auto-load.c: Remove #include "python/python.h". Add #include
13635 "gdb/section-scripts.h".
13636 (source_section_scripts): Handle Guile scripts.
13637 (_initialize_auto_load): Add name of Guile objfile script to
13638 scripts-directory help text.
13639 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13640 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13641 (struct breakpoint): New member scm_bp_object.
13642 * defs.h (enum command_control_type): New value guile_control.
13643 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13644 "extension.h".
13645 (show_user): Update comment.
13646 (_initialize_cli_cmds): Update help text for "show user". Update help
13647 text for max-user-call-depth.
13648 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13649 "extension.h".
13650 (multi_line_command_p): Add guile_control.
13651 (print_command_lines): Handle guile_control.
13652 (execute_control_command, recurse_read_control_structure): Ditto.
13653 (process_next_line): Recognize "guile" commands.
13654 * disasm.c (gdb_disassemble_info): Make non-static.
13655 * disasm.h: #include "dis-asm.h".
13656 (struct gdbarch): Add forward decl.
13657 (gdb_disassemble_info): Declare.
13658 * extension.c: #include "guile/guile.h".
13659 (extension_languages): Add guile.
13660 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13661 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13662 * gdbtypes.c (get_unsigned_type_max): New function.
13663 (get_signed_type_minmax): New function.
13664 * gdbtypes.h (get_unsigned_type_max): Declare.
13665 (get_signed_type_minmax): Declare.
13666 * guile/README: New file.
13667 * guile/guile-internal.h: New file.
13668 * guile/guile.c: New file.
13669 * guile/guile.h: New file.
13670 * guile/scm-arch.c: New file.
13671 * guile/scm-auto-load.c: New file.
13672 * guile/scm-block.c: New file.
13673 * guile/scm-breakpoint.c: New file.
13674 * guile/scm-disasm.c: New file.
13675 * guile/scm-exception.c: New file.
13676 * guile/scm-frame.c: New file.
13677 * guile/scm-gsmob.c: New file.
13678 * guile/scm-iterator.c: New file.
13679 * guile/scm-lazy-string.c: New file.
13680 * guile/scm-math.c: New file.
13681 * guile/scm-objfile.c: New file.
13682 * guile/scm-ports.c: New file.
13683 * guile/scm-pretty-print.c: New file.
13684 * guile/scm-safe-call.c: New file.
13685 * guile/scm-string.c: New file.
13686 * guile/scm-symbol.c: New file.
13687 * guile/scm-symtab.c: New file.
13688 * guile/scm-type.c: New file.
13689 * guile/scm-utils.c: New file.
13690 * guile/scm-value.c: New file.
13691 * guile/lib/gdb.scm: New file.
13692 * guile/lib/gdb/boot.scm: New file.
13693 * guile/lib/gdb/experimental.scm: New file.
13694 * guile/lib/gdb/init.scm: New file.
13695 * guile/lib/gdb/iterator.scm: New file.
13696 * guile/lib/gdb/printing.scm: New file.
13697 * guile/lib/gdb/types.scm: New file.
13698 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13699 (VPATH): Add $(GUILE_SRCDIR).
13700 (GUILE_DIR): New variable.
13701 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13702 (all): Add stamp-guile dependency.
13703 (stamp-guile): New rule.
13704 (clean-guile, install-guile, uninstall-guile): New rules.
13705 (install-only): Add install-guile dependency.
13706 (uninstall): Add uninstall-guile dependency.
13707 (clean): Add clean-guile dependency.
13708
ac020ec5
DE
137092014-02-09 Doug Evans <xdje42@gmail.com>
13710
13711 Revert this patch (which I approved, mea culpa).
13712
13713 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13714
13715 * Makefile.in (all-lib): Remove.
13716 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13717
2a081c59
JK
137182014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13719
13720 Fix Python stack corruption.
13721 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13722 gdb_py_longest.
13723
0a6bd22d
MK
137242014-02-08 Mark Kettenis <kettenis@gnu.org>
13725
13726 * Makefile.in (all-lib): Remove.
13727 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13728
1a860409
DE
137292014-02-07 Doug Evans <dje@google.com>
13730
13731 * extension-priv.h (extension_language_script_ops): Add comment.
13732 (extension_language_ops): Add comment.
caf5a491 13733 (active_ext_lang_state): Fix typo in comment.
1a860409 13734
d137e6dc
PA
137352014-02-07 Pedro Alves <palves@redhat.com>
13736
0dcb32c3 13737 PR breakpoints/16292
d137e6dc
PA
13738 * infrun.c (handle_signal_stop) <signal arrives while stepping
13739 over a breakpoint>: Switch back to the stepping thread.
13740
ce6d0892
YQ
137412014-02-07 Yao Qi <yao@codesourcery.com>
13742
13743 * target.c (target_xfer_partial): Return zero if LEN is zero.
13744
2ed4b548
YQ
137452014-02-07 Yao Qi <yao@codesourcery.com>
13746
13747 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13748 (ld_so_xfer_auxv): Likewise.
13749 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13750 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13751 * corelow.c (core_xfer_partial): Likewise.
13752 * ctf.c (ctf_xfer_partial): Likewise.
13753 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13754 (darwin_xfer_partial): Likewise.
13755 * exec.c (exec_xfer_partial): Likewise.
13756 * gnu-nat.c (gnu_xfer_partial): Likewise.
13757 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13758 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13759 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13760 * linux-nat.c (linux_xfer_siginfo): Likewise.
13761 (linux_proc_xfer_spu): Likewise.
13762 * procfs.c (procfs_xfer_partial): Likewise.
13763 * record-full.c (record_full_xfer_partial): Likewise.
13764 (record_full_core_xfer_partial): Likewise.
13765 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13766 * remote.c (remote_write_qxfer): Likewise.
13767 (remote_write_qxfer, remote_read_qxfer): Likewise.
13768 (remote_xfer_partial): Likewise.
13769 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13770 (rs6000_xfer_shared_libraries): Likewise.
13771 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13772 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13773 (spu_xfer_partial): Likewise.
13774 * target.c (memory_xfer_partial_1): Likewise.
13775 * tracepoint.c (tfile_xfer_partial): Likewise.
13776 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13777 (windows_xfer_partial): Likewise.
13778
c09f20e4
YQ
137792014-02-07 Yao Qi <yao@codesourcery.com>
13780
13781 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13782 comments.
13783 (core_xfer_shared_libraries_aix): Likewise.
13784 * gdbarch.c, gdbarch.h: Regenerated.
13785 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13786 ULONGEST. Change 'len_avail' type to ULONGEST.
13787 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13788 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13789 declaration.
13790 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13791
8635b3bf
YQ
137922014-02-07 Yao Qi <yao@codesourcery.com>
13793
13794 * corefile.c (memory_error): Get 'exception' from ERR and pass
13795 'exception' to throw_error.
13796
6dddc817
DE
137972014-02-06 Doug Evans <xdje42@gmail.com>
13798
13799 * configure.ac (libpython checking): Remove all but python.o from
13800 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13801 * configure: Regenerate.
13802
13803 * Makefile.in (SFILES): Add extension.c.
13804 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13805 (COMMON_OBS): Add extension.o.
13806 * extension.h: New file.
13807 * extension-priv.h: New file.
13808 * extension.c: New file.
13809
13810 * python/python-internal.h: #include "extension.h".
13811 (gdbpy_auto_load_enabled): Declare.
13812 (gdbpy_apply_val_pretty_printer): Declare.
13813 (gdbpy_apply_frame_filter): Declare.
13814 (gdbpy_preserve_values): Declare.
13815 (gdbpy_breakpoint_cond_says_stop): Declare.
13816 (gdbpy_breakpoint_has_cond): Declare.
13817 (void source_python_script_for_objfile): Delete.
13818 * python/python.c: #include "extension-priv.h".
13819 Delete inclusion of "observer.h".
13820 (extension_language_python): Moved here and renamed from
13821 script_language_python in py-auto-load.c.
13822 Redefined to be of type extension_language_defn.
13823 (python_extension_script_ops): New global.
13824 (python_extension_ops): New global.
13825 (struct python_env): New member previous_active.
13826 (restore_python_env): Call restore_active_ext_lang.
13827 (ensure_python_env): Call set_active_ext_lang.
13828 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13829 New arg extlang.
13830 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13831 New arg extlang.
13832 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13833 New arg extlang.
13834 (gdbpy_eval_from_control_command): Renamed from
13835 eval_python_from_control_command, made static. New arg extlang.
13836 (gdbpy_source_script) Renamed from source_python_script, made static.
13837 New arg extlang.
13838 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13839 result to int. New arg extlang.
13840 (gdbpy_source_objfile_script): Renamed from
13841 source_python_script_for_objfile, made static. New arg extlang.
13842 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13843 static. New args extlang, extlang_printers. Change result type to
13844 "void".
13845 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13846 static. New arg extlang. Rename arg printers to extlang_printers
13847 and change type to ext_lang_type_printers *.
13848 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13849 static. Replace argument arg with extlang, extlang_printers.
13850 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13851 (!HAVE_PYTHON, source_python_script): Delete.
13852 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13853 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13854 (!HAVE_PYTHON, start_type_printers): Delete.
13855 (!HAVE_PYTHON, apply_type_printers): Delete.
13856 (!HAVE_PYTHON, free_type_printers): Delete.
13857 (_initialize_python): Delete call to observer_attach_before_prompt.
13858 (finalize_python): Set/restore active extension language.
13859 (gdbpy_finish_initialization) Renamed from
13860 finish_python_initialization, made static. New arg extlang.
13861 (gdbpy_initialized): New function.
13862 * python/python.h: #include "extension.h". Delete #include
13863 "value.h", "mi/mi-cmds.h".
13864 (extension_language_python): Declare.
13865 (GDBPY_AUTO_FILE_NAME): Delete.
13866 (enum py_bt_status): Moved to extension.h and renamed to
13867 ext_lang_bt_status.
13868 (enum frame_filter_flags): Moved to extension.h.
13869 (enum py_frame_args): Moved to extension.h and renamed to
13870 ext_lang_frame_args.
13871 (finish_python_initialization): Delete.
13872 (eval_python_from_control_command): Delete.
13873 (source_python_script): Delete.
13874 (apply_val_pretty_printer): Delete.
13875 (apply_frame_filter): Delete.
13876 (preserve_python_values): Delete.
13877 (gdbpy_script_language_defn): Delete.
13878 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13879 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13880
13881 * auto-load.c: #include "extension.h".
13882 (GDB_AUTO_FILE_NAME): Delete.
13883 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13884 (script_language_gdb): Delete, moved to extension.c and renamed to
13885 extension_language_gdb.
13886 (source_gdb_script_for_objfile): Delete.
13887 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13888 (loaded_script): Change type of language member to
13889 struct extension_language_defn *.
13890 (init_loaded_scripts_info): Initialize
13891 unsupported_script_warning_printed.
13892 (maybe_add_script): Make static. Change type of language arg to
13893 struct extension_language_defn *.
13894 (clear_section_scripts): Reset unsupported_script_warning_printed.
13895 (auto_load_objfile_script_1): Rewrite to use extension language API.
13896 (auto_load_objfile_script): Make public. Remove support-compiled-in
13897 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13898 (source_section_scripts): Rewrite to use extension language API.
13899 (load_auto_scripts_for_objfile): Rewrite to use
13900 auto_load_scripts_for_objfile.
13901 (collect_matching_scripts_data): Change type of language member to
13902 struct extension_language_defn *.
13903 (auto_load_info_scripts): Change type of language arg to
13904 struct extension_language_defn *.
13905 (unsupported_script_warning_print): New function.
13906 (script_not_found_warning_print): Make static.
13907 (_initialize_auto_load): Rewrite construction of scripts-directory
13908 help.
13909 * auto-load.h (struct objfile): Add forward decl.
13910 (struct script_language): Delete.
13911 (struct auto_load_pspace_info): Add forward decl.
13912 (struct extension_language_defn): Add forward decl.
13913 (maybe_add_script): Delete.
13914 (auto_load_objfile_script): Declare.
13915 (script_not_found_warning_print): Delete.
13916 (auto_load_info_scripts): Update prototype.
13917 (auto_load_gdb_scripts_enabled): Declare.
13918 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13919 auto_load_python_scripts_enabled and made public.
13920 (script_language_python): Delete, moved to python.c.
13921 (gdbpy_script_language_defn): Delete.
13922 (info_auto_load_python_scripts): Update to use
13923 extension_language_python.
13924
13925 * breakpoint.c (condition_command): Replace call to
13926 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13927 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13928 with call to breakpoint_ext_lang_cond_says_stop.
13929 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13930 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13931 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13932 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13933 New arg slang.
13934 (local_setattro): Print name of extension language with existing
13935 stop condition.
13936
13937 * valprint.c (val_print, value_print): Update to call
13938 apply_ext_lang_val_pretty_printer.
13939 * cp-valprint.c (cp_print_value): Update call to
13940 apply_ext_lang_val_pretty_printer.
13941 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13942 (gdbpy_apply_val_pretty_printer): Renamed from
13943 apply_val_pretty_printer. New arg extlang.
13944 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13945
13946 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13947 extension language API.
13948 * cli/cli-script.c (execute_control_command): Update to call
13949 eval_ext_lang_from_control_command.
13950
13951 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13952 enum ext_lang_bt_status values. Update call to
13953 apply_ext_lang_frame_filter.
13954 (mi_cmd_stack_list_locals): Ditto.
13955 (mi_cmd_stack_list_args): Ditto.
13956 (mi_cmd_stack_list_variables): Ditto.
13957 * mi/mi-main.c: Delete #include "python/python-internal.h".
13958 Add #include "extension.h".
13959 (mi_cmd_list_features): Replace reference to python internal variable
13960 gdb_python_initialized with call to ext_lang_initialized_p.
13961
13962 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13963 Update to use enum ext_lang_frame_args. Update to call
13964 apply_ext_lang_frame_filter.
13965 * python/py-framefilter.c (extract_sym): Update to use enum
13966 ext_lang_bt_status.
13967 (extract_value, py_print_type, py_print_value): Ditto.
13968 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13969 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13970 (py_print_frame): Ditto.
13971 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13972 New arg extlang. Update to use enum ext_lang_bt_status.
13973
13974 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13975 finish_python_initialization. Replace with call to
13976 finish_ext_lang_initialization.
13977
13978 * typeprint.c (do_free_global_table): Update to call
13979 free_ext_lang_type_printers.
13980 (create_global_typedef_table): Update to call
13981 start_ext_lang_type_printers.
13982 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13983 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13984 (type_print_options): Change type of global_printers from "void *"
13985 to "struct ext_lang_type_printers *".
13986
13987 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13988 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13989 (gdbpy_preserve_values): Renamed from preserve_python_values.
13990 New arg extlang.
13991 (!HAVE_PYTHON, preserve_python_values): Delete.
13992
13993 * utils.c (quit_flag): Delete, moved to extension.c.
13994 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13995 extension.c.
13996
13997 * eval.c: Delete #include "python/python.h".
13998 * main.c: Delete #include "python/python.h".
13999
14000 * defs.h: Update comment.
14001
6af79985
JB
140022014-02-06 Joel Brobecker <brobecker@adacore.com>
14003
14004 GDB 7.7 released.
14005
12c5175d
MK
140062014-02-05 Mark Kettenis <kettenis@gnu.org>
14007
14008 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14009 defined.
14010
8dc5b319
YQ
140112014-02-05 Yao Qi <yao@codesourcery.com>
14012
14013 * remote.c (remote_pass_signals): Remove local 'buf' and use
14014 rs->buf.
14015 (remote_program_signals): Likewise.
14016
de7b2893
YQ
140172014-02-05 Yao Qi <yao@codesourcery.com>
14018
14019 * ctf.c: Include "inferior.h" and "gdbthread.h".
14020 (CTF_PID): A new macro.
14021 (ctf_open): Call inferior_appeared and add_thread_silent.
14022 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14023 (ctf_thread_alive): New function.
14024 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14025
66d032ac
YQ
140262014-02-05 Yao Qi <yao@codesourcery.com>
14027
14028 Revert this patch:
14029
14030 2013-05-24 Yao Qi <yao@codesourcery.com>
14031
14032 * tracepoint.c (TFILE_PID): Remove.
14033 (tfile_open): Don't add thread and inferior.
14034 (tfile_close): Don't set 'inferior_ptid'. Don't call
14035 exit_inferior_silent.
14036 (tfile_thread_alive): Remove.
14037 (init_tfile_ops): Don't set field 'to_thread_alive' of
14038 tfile_ops.
14039
f4ccffad
CE
140402014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14041
14042 * remote.c (remote_start_remote): Call remote_check_symbols even
14043 if only symbol-file (not file) has been given.
14044
591a12a1
UW
140452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14046
14047 * gdbarch.sh (skip_entrypoint): New callback.
14048 * gdbarch.c, gdbarch.h: Regenerate.
14049 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14050 * infrun.c (fill_in_stop_func): Likewise.
14051 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14052 (ppc_elfv2_elf_make_msymbol_special): New function.
14053 (ppc_elfv2_skip_entrypoint): Likewise.
14054 (ppc_linux_init_abi): Install them for ELFv2.
14055
cc0e89c5
UW
140562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14057
14058 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14059 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14060 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14061 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14062 structures returned in GPRs.
14063
52f548e4
UW
140642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14065
14066 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14067 offset to the stack parameter list for the ELFv2 ABI.
14068
d4094b6a
UW
140692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14070
14071 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14072 set_gdbarch_convert_from_func_ptr_addr and
14073 set_gdbarch_elf_make_msymbol_special for ELFv1.
14074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14075 function descriptors on ELFv1.
14076 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14077 set up r12 at function entry.
14078
cd453cd0
UW
140792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14080
14081 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14082 (struct gdbarch_tdep): New member elf_abi.
14083
14084 * rs6000-tdep.c: Include "elf/ppc64.h".
14085 (rs6000_gdbarch_init): Detect ELF ABI version.
14086
0ff3e01f
UW
140872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14088
14089 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14090 within a register pair holding a DFP 128-bit value on little-endian.
14091 (ppc64_sysv_abi_return_value_base): Likewise.
14092 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14093 (dfp_pseudo_register_write): Likewise.
14094
5b757e5d
UW
140952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14096
14097 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14098 offset on little-endian when passing _Decimal32.
14099 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14100
084ee545
UW
141012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14102
14103 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14104 of the overlapped FP register within the VSX register on little-
14105 endian platforms.
14106 (efpr_pseudo_register_write): Likewise.
14107
d63167af
UW
141082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14109
14110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14111 offset on little-endian when passing small structures.
14112
e765b44c
UW
141132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14114
14115 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14116 (struct ppc64_sysv_argpos): New data structure.
14117 (ppc64_sysv_abi_push_float): Remove.
14118 (ppc64_sysv_abi_push_val): New function.
14119 (ppc64_sysv_abi_push_integer): Likewise.
14120 (ppc64_sysv_abi_push_freg): Likewise.
14121 (ppc64_sysv_abi_push_vreg): Likewise.
14122 (ppc64_sysv_abi_push_param): Likewise.
14123 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14124 (ppc64_sysv_abi_return_value_base): New function.
14125 (ppc64_sysv_abi_return_value): Refactor to use it.
14126
36c24d95
UW
141272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14128
14129 * NEWS: Document new target powerpc64le-*-linux*.
14130
26fd9228
MK
141312014-02-04 Mark Kettenis <kettenis@gnu.org>
14132
14133 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14134 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14135 core dumps.
14136 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14137 register set used in ELF core dumps. Add floating-point register set.
14138
c5bb7362
KB
141392014-02-03 Kevin Buettner <kevinb@redhat.com>
14140
74228e77 14141 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14142 dwarf2_to_gdb[] table using symbolic constants. Adjust
14143 penultimate entry from number representing the PC register
14144 to symbolic constant representing the MDR register. Add
14145 constant for the PC register to the end of the table.
14146
af09351e
MK
141472014-02-03 Mark Kettenis <kettenis@gnu.org>
14148
14149 * bsd-kvm.c: Include <sys/param.h>
14150
8507e05d
MK
141512014-02-03 Mark Kettenis <kettenis@gnu.org>
14152
14153 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14154
ae56bfb8
JB
141552014-01-31 Joel Brobecker <brobecker@adacore.com>
14156
14157 * ada-lang.h (clear_ada_sym_cache): Delete.
14158
718ee4dc
UW
141592014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14160
14161 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14162
401e27fd
JM
141632014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14164
14165 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14166 the sigreturn register save area only if the syscall is
14167 sigreturn.
14168
a7c88acd
JB
141692014-01-29 Joel Brobecker <brobecker@adacore.com>
14170
14171 * valops.c (value_slice): Minor reformatting.
14172
fa0079ea
UW
141732014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14174
14175 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14176
c6044dd1
JB
141772014-01-28 Joel Brobecker <brobecker@adacore.com>
14178
14179 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14180 New static globals.
14181 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14182 (ada_ignore_descriptive_types_p): New static global.
14183 (find_parallel_type_by_descriptive_type): Return immediately
14184 if ada_ignore_descriptive_types_p is set.
14185 (_initialize_ada_language): Register new commands "maintenance
14186 set ada", "maintenance show ada", "maintenance set ada
14187 ignore-descriptive-types" and "maintenance show ada
14188 ignore-descriptive-types".
14189 * NEWS: Add entry for new "maint ada set/show
14190 ignore-descriptive-types" commands.
14191
568e808b
MM
141922014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14193
14194 * record-btrace.c (record_btrace_close): Call btrace_teardown
14195 for all threads.
14196
467d141b
JB
141972014-01-27 Joel Brobecker <brobecker@adacore.com>
14198
14199 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14200 "ui-out.h".
14201
fb151210
JB
142022014-01-27 Joel Brobecker <brobecker@adacore.com>
14203
14204 * ada-typeprint (type_is_full_subrange_of_target_type):
14205 New function.
14206 (print_range): Add parameter bounds_prefered_p. If not set,
14207 try printing range types using the name of their base type.
14208 (print_range_type): Add parameter bounds_prefered_p.
14209 Use it in call to print_range.
14210 (print_array_type, ada_print_type): Update calls to print_range
14211 and print_range_type.
14212
aba02109
JB
142132014-01-27 Joel Brobecker <brobecker@adacore.com>
14214
14215 * ada-typeprint.c (print_array_type, print_choices, print_range)
14216 (print_range_bound, print_dynamic_range_bound, print_range_type):
14217 Remove declaration.
14218
e62e21fd
JB
142192014-01-27 Joel Brobecker <brobecker@adacore.com>
14220
14221 * ada-typeprint.c (print_range): Add missing empty line
14222 after local declaration.
14223
859cf5d1
JB
142242014-01-27 Joel Brobecker <brobecker@adacore.com>
14225
14226 * ada-valprint.c (print_optional_low_bound): Get index_type's
14227 target type for as long as it is a TYPE_CODE_RANGE.
14228
25790f6f
JB
142292014-01-27 Joel Brobecker <brobecker@adacore.com>
14230
14231 * procfs.c (procfs_make_note_section): Remove assertion and
14232 associated comment.
14233
6b6aa828
YQ
142342014-01-24 Yao Qi <yao@codesourcery.com>
14235
14236 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14237 * corelow.c (get_core_siginfo): Likewise.
14238
5d6df423
YQ
142392014-01-24 Yao Qi <yao@codesourcery.com>
14240
14241 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14242 ULONGEST. Don't check 'len' is negative.
14243 (remote_write_bytes): Change type of 'len' to ULONGEST.
14244
83b645b8
TT
142452014-01-23 Tom Tromey <tromey@redhat.com>
14246
14247 PR python/16485:
14248 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14249 Handle exception from frame.block.
14250 (FrameVars.fetch_frame_locals): Likewise.
14251
0740f8d8
TT
142522014-01-23 Tom Tromey <tromey@redhat.com>
14253
14254 PR python/16487:
14255 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14256 on a NULL pointer. Move "goto error" to correct place.
14257
21909fa1
TT
142582014-01-23 Tom Tromey <tromey@redhat.com>
14259
14260 PR python/16491:
14261 * python/py-framefilter.c (apply_frame_filter): Call
14262 ensure_python_env after computing gdbarch.
14263
17fde6d0
YQ
142642014-01-23 Yao Qi <yao@codesourcery.com>
14265
14266 * target.c (raw_memory_xfer_partial): Change argument type
14267 from void * to gdb_byte *.
14268 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14269
87ce2a04
DE
142702014-01-22 Doug Evans <dje@google.com>
14271
14272 New gdbserver option --debug-format=timestamp.
14273 * NEWS: Mention it.
14274
237b092b
AA
142752014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14276
14277 * syscalls/s390x-linux.xml: New file.
14278 * syscalls/s390-linux.xml: New file.
14279 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14280 (XML_SYSCALL_FILENAME_S390X): Likewise.
14281 (op_svc): New enum value for SVC opcode.
14282 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14283 (s390_linux_get_syscall_number): New function.
14284 (s390_gdbarch_init): Register '*get_syscall_number' and the
14285 syscall xml file name.
14286 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14287 "s390-linux.xml" and "s390x-linux.xml".
14288 * NEWS: Announce new feature.
14289
54bff650
BS
142902014-01-22 Baruch Siach <baruch@tkos.co.il>
14291
14292 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14293
14e361d7
PA
142942014-01-22 Pedro Alves <palves@redhat.com>
14295
14296 * xtensa-config.c: Include defs.h.
14297
46bbb3ed
JB
142982014-01-22 Joel Brobecker <brobecker@adacore.com>
14299
14300 * common/common-utils.h: Add "ARI:" comment beside __func__
14301 reference.
14302
3a80edfc
JB
143032014-01-22 Joel Brobecker <brobecker@adacore.com>
14304
14305 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14306 documentation a bit.
14307
4869db5e
RM
143082014-01-21 Roland McGrath <mcgrathr@google.com>
14309
14310 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14311 * configure: Regenerate.
14312 * aclocal.m4: Regenerate.
14313 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14314 New substituted variables.
14315 (install-strip): New target.
14316 (INSTALL_SCRIPT): New substituted variable.
14317 (FLAGS_TO_PASS): Add it.
14318 (install-only): Use $(INSTALL_SCRIPT) rather than
14319 $(INSTALL_PROGRAM) for gcore.
14320
9ea4267d
TT
143212014-01-20 Tom Tromey <tromey@redhat.com>
14322
14323 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14324 together.
14325
1f2bdf09
TT
143262014-01-20 Tom Tromey <tromey@redhat.com>
14327
14328 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14329 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14330 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14331 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14332 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14333 (struct cmd_list_element) <flags>: Remove.
14334 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14335 doc_allocated>: New fields.
14336 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14337 bitfields.
14338 * maint.c (maintenance_do_deprecate): Update.
14339 * top.c (execute_command): Update.
14340
e671835b
BS
143412014-01-20 Baruch Siach <baruch@tkos.co.il>
14342
14343 * xtensa-linux-nat.c: Include asm/ptrace.h.
14344
50367cd2
IB
143452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14346
14347 * Makefile.in (SFILES): Add d-support.c.
14348 (COMMON_OBS): Add d-support.o.
14349 * d-lang.h (d_parse_symbol): Add comment, now defined in
14350 d-support.c.
14351 * d-lang.c (parse_call_convention)
14352 (parse_attributes, parse_function_types)
14353 (parse_function_args, parse_type, parse_identifier)
14354 (call_convention_p, d_parse_symbol): Move functions to ...
14355 * d-support.c: ... New file.
14356
ec9f644a
IB
143572014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14358
14359 * d-lang.h (d_parse_symbol): Add declaration.
14360 * d-lang.c (extract_identifiers)
14361 (extract_type_info): Remove functions.
14362 (parse_call_convention, parse_attributes)
14363 (parse_function_types, parse_function_args)
14364 (parse_type, parse_identifier, call_convention_p)
14365 (d_parse_symbol): New functions.
14366 (d_demangle): Use d_parse_symbol to demangle D symbols.
14367
94b1b47e
IB
143682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14369
14370 * d-lang.h (struct builtin_d_type): New data type.
14371 (builtin_d_type): Add declaration.
14372 * d-lang.c (d_language_arch_info, build_d_types)
14373 (builtin_d_type): New functions.
14374 (enum d_primitive_types): New data type.
14375 (d_language_defn): Change c_language_arch_info to
14376 d_language_arch_info.
14377 (d_type_data): New static variable.
14378 (_initialize_d_language): Initialize d_type_data.
14379
63778547
IB
143802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14381
14382 * d-lang.h (d_main_name): Add declaration.
14383 * d-lang.c (d_main_name): New function.
14384 * symtab.c (find_main_name): Add call to d_main_name.
14385
3271ba66
IB
143862014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14387
14388 * d-lang.c (d_language_defn): Change macro_expansion_c to
14389 macro_expansion_no.
14390
d36b3012
IB
143912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14392
14393 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14394
c90a6fb7
SDJ
143952014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14396
14397 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14398 gdb_exception" declaration.
14399 * remote.c (getpkt_or_notif_sane): Likewise.
14400
749234e5
DE
144012014-01-17 Doug Evans <dje@google.com>
14402
14403 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14404 function, contents of dirnames_to_char_ptr_vec_append moved here.
14405 (delim_string_to_char_ptr_vec): New function.
14406 (dirnames_to_char_ptr_vec_append): Rewrite.
14407 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14408
df049a58
DE
144092014-01-17 Doug Evans <dje@google.com>
14410
14411 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14412 and moved here ...
14413 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14414 #include "common-utils.h".
14415 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14416 * common/vec.h (VEC_ASSERT_PASS): Update.
14417 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14418 (MACH_CHECK_ERROR): Update.
14419
69f97648
SM
144202014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14421
14422 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14423 comments.
14424 * gdbarch.h: Regenerate.
14425
98b1cfdc
TT
144262014-01-16 Tom Tromey <tromey@redhat.com>
14427
14428 * value.c (struct value) <regnum>: Move earlier.
14429
77a19445
TT
144302014-01-16 Tom Tromey <tromey@redhat.com>
14431
14432 * remote.c (extended_remote_create_inferior): Rename from
14433 extended_remote_create_inferior_1. Add "ops" argument. Remove
14434 old implementation.
14435
62261490
PA
144362014-01-16 Pedro Alves <palves@redhat.com>
14437
14438 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14439 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14440 the backchain.
14441
4d65956b
DE
144422014-01-16 Doug Evans <dje@google.com>
14443
14444 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14445
52834460
MM
144462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14447
14448 * btrace.h (btrace_thread_flag): New.
14449 (struct btrace_thread_info) <flags>: New.
14450 * record-btrace.c (record_btrace_resume_thread)
14451 (record_btrace_find_thread_to_move, btrace_step_no_history)
14452 (btrace_step_stopped, record_btrace_start_replaying)
14453 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14454 (record_btrace_find_resume_thread): New.
14455 (record_btrace_resume, record_btrace_wait): Extend.
14456 (record_btrace_can_execute_reverse): New.
14457 (record_btrace_open): Fail in non-stop mode.
14458 (record_btrace_set_replay): Split into this, ...
14459 (record_btrace_stop_replaying): ... this, ...
14460 (record_btrace_clear_histories): ... and this.
14461 (init_record_btrace_ops): Init to_can_execute_reverse.
14462 * NEWS: Announce it.
14463
118e6252
MM
144642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14465
14466 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14467 (forward_target_decr_pc_after_break)
14468 (target_decr_pc_after_break): New.
14469 * target.c (forward_target_decr_pc_after_break)
14470 (target_decr_pc_after_break): New.
14471 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14472 instead of gdbarch_decr_pc_after_break.
14473 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14474 instead of gdbarch_decr_pc_after_break.
14475 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14476 instead of gdbarch_decr_pc_after_break.
14477 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14478 instead of gdbarch_decr_pc_after_break.
14479 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14480 instead of gdbarch_decr_pc_after_break.
14481 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14482 instead of gdbarch_decr_pc_after_break.
14483
6e07b1d2
MM
144842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14485
14486 * btrace.c: Include regcache.h.
14487 (btrace_add_pc): New.
14488 (btrace_enable): Call btrace_add_pc.
14489 (btrace_is_empty): New.
14490 * btrace.h (btrace_is_empty): New.
14491 * record-btrace.c (require_btrace, record_btrace_info): Call
14492 btrace_is_empty.
14493
969c39fb
MM
144942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14495
14496 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14497 Support delta reads.
14498 (linux_disable_btrace): Change return type.
14499 * common/linux-btrace.h (linux_read_btrace): Change parameters
14500 and return type to allow error reporting. Update users.
14501 (linux_disable_btrace): Change return type. Update users.
14502 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14503 New.
14504 (btrace_error): New.
14505 (btrace_block) <begin>: Comment on BEGIN == 0.
14506 * btrace.c (btrace_compute_ftrace): Start from the end of
14507 the current trace.
14508 (btrace_stitch_trace, btrace_clear_history): New.
14509 (btrace_fetch): Read delta trace, return if replaying.
14510 (btrace_clear): Move clear history code to btrace_clear_history.
14511 (parse_xml_btrace): Throw an error if parsing failed.
14512 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14513 and return type to allow error reporting.
14514 (target_read_btrace): Change parameters and return type to allow
14515 error reporting.
14516 * target.c (target_read_btrace): Update.
14517 * remote.c (remote_read_btrace): Support delta reads. Pass
14518 errors on.
14519 * NEWS: Announce it.
14520
0b722aec
MM
145212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14522
14523 * record.h (record_btrace_frame_unwind)
14524 (record_btrace_tailcall_frame_unwind): New declarations.
14525 * dwarf2-frame: Include record.h
14526 (dwarf2_frame_cfa): Throw an error for btrace frames.
14527 * record-btrace.c: Include hashtab.h.
14528 (btrace_get_bfun_name): New.
14529 (btrace_call_history): Call btrace_get_bfun_name.
14530 (struct btrace_frame_cache): New.
14531 (bfcache): New.
14532 (bfcache_hash, bfcache_eq, bfcache_new): New.
14533 (btrace_get_frame_function): New.
14534 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14535 (record_btrace_frame_this_id): Compute own id.
14536 (record_btrace_frame_prev_register): Provide PC, throw_error
14537 for all other registers.
14538 (record_btrace_frame_sniffer): Detect btrace frames.
14539 (record_btrace_tailcall_frame_sniffer): New.
14540 (record_btrace_frame_dealloc_cache): New.
14541 (record_btrace_frame_unwind): Add new functions.
14542 (record_btrace_tailcall_frame_unwind): New.
14543 (_initialize_record_btrace): Allocate cache.
14544 * btrace.c (btrace_clear): Call reinit_frame_cache.
14545 * NEWS: Announce it.
14546
066ce621
MM
145472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14548
14549 * record-btrace.c (record_btrace_set_replay)
14550 (record_btrace_goto_begin, record_btrace_goto_end)
14551 (record_btrace_goto): New.
14552 (init_record_btrace_ops): Initialize them.
14553 * NEWS: Announce it.
14554
e2887aa3
MM
145552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14556
14557 * record-btrace.c (record_btrace_find_new_threads)
14558 (record_btrace_thread_alive): New.
14559 (init_record_btrace_ops): Initialize to_find_new_threads and
14560 to_thread_alive.
14561
b2f4cfde
MM
145622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14563
14564 * record-btrace.c (record_btrace_resume): New.
14565 (record_btrace_wait): New.
14566 (init_record_btrace_ops): Initialize to_wait and to_resume.
14567
633785ff
MM
145682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14569
14570 * record-btrace.c (record_btrace_xfer_partial)
14571 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14572 (record_btrace_allow_memory_access): New.
14573 (init_record_btrace_ops): Initialize new methods.
14574 * target.c (raw_memory_xfer_partial): Bail out if target reports
14575 that this memory is not available.
14576
3db08215
MM
145772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14578
14579 * target.h (target_ops) <to_insert_breakpoint>
14580 <to_remove_breakpoint>: Add target_ops parameter.
14581 (forward_target_insert_breakpoint): New.
14582 (forward_target_remove_breakpoint): New.
14583 (memory_remove_breakpoint, memory_insert_breakpoint):
14584 Add target_ops parameter.
14585 * target.c (target_insert_breakpoint): Split into this and ...
14586 (forward_target_insert_breakpoint): ... this.
14587 (target_remove_breakpoint): Split into this and ...
14588 (forward_target_remove_breakpoint): ... this.
14589 (debug_to_insert_breakpoint): Add target_ops parameter.
14590 Call forward_target_insert_breakpoint.
14591 (debug_to_remove_breakpoint): Add target_ops parameter.
14592 Call forward_target_remove_breakpoint.
14593 (update_current_target): Do not inherit or default to_insert_breakpoint
14594 and to_remove_breakpoint.
14595 * corelow.c (ignore): Add target_ops parameter.
14596 * exec.c (ignore): Add target_ops parameter.
14597 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14598 Add target_ops parameter.
14599 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14600 Add target_ops parameter.
14601 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14602 Add target_ops parameter.
14603 * record-full.c (record_full_beneath_to_insert_breakpoint)
14604 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14605 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14606 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14607 (record_full_core_remove_breakpoint): Add target_ops parameter.
14608 Update users.
14609 (record_full_beneath_to_insert_breakpoint_ops)
14610 (record_full_beneath_to_remove_breakpoint_ops)
14611 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14612 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14613 tmp_to_remove_breakpoint_ops,
14614 record_full_beneath_to_insert_breakpoint_ops, and
14615 record_full_beneath_to_remove_breakpoint_ops.
14616 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14617 (m32r_remove_breakpoint): Add target_ops parameter.
14618 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14619 Add target_ops parameter.
14620 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14621 Add target_ops parameter.
14622
cecac1ab
MM
146232014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14624 Markus Metzger <markus.t.metzger@intel.com>
14625
14626 * record-btrace.c: Include frame-unwind.h.
14627 (record_btrace_frame_unwind_stop_reason)
14628 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14629 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14630 New.
14631 (init_record_btrace_ops): Install it.
14632
824344ca
MM
146332014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14634
14635 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14636 get_prev_frame_1.
14637
32261e52
MM
146382014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14639
14640 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14641 earlier.
14642
ea001bdc
MM
146432014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14644
14645 * frame-unwind.c: Include target.h.
14646 (frame_unwind_try_unwinder): New function with code from ...
14647 (frame_unwind_find_by_frame): ... here. New variable
14648 unwinder_from_target, call also target_get_unwinder)
14649 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14650 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14651 * target.h (struct target_ops): New fields to_get_unwinder and
14652 to_get_tailcall_unwinder.
14653 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14654
1f3ef581
MM
146552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14656
14657 * record-btrace.c (record_btrace_fetch_registers)
14658 (record_btrace_store_registers)
14659 (record_btrace_to_prepare_to_store): New.
14660 (init_record_btrace_ops): Add the above.
14661
f32dbf8c
MM
146622014-01-16 Tom Tromey <tromey@redhat.com>
14663
14664 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14665 * target.h (struct target_ops) <to_prepare_to_store>: Add
14666 argument.
14667 (target_prepare_to_store): Add argument.
14668 * target.c (debug_to_prepare_to_store): Add argument.
14669 (update_current_target): Update.
14670 * remote.c (remote_prepare_to_store): Add 'self' argument.
14671 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14672 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14673 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14674 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14675 argument.
14676 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14677 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14678 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14679 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14680 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14681
07bbe694
MM
146822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14683
14684 * btrace.h (replay) <replay>: New.
14685 (btrace_is_replaying): New.
14686 * btrace.c (btrace_clear): Free replay iterator.
14687 (btrace_is_replaying): New.
14688 * record-btrace.c (record_btrace_is_replaying): New.
14689 (record_btrace_info): Print insn number if replaying.
14690 (record_btrace_insn_history): Start at replay position.
14691 (record_btrace_call_history): Start at replay position.
14692 (init_record_btrace_ops): Init to_record_is_replaying.
14693
0688d04e
MM
146942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14695
14696 * record-btrace.c (record_btrace_insn_history_range): Include
14697 end.
14698 (record_btrace_insn_history_from): Adjust range.
14699 (record_btrace_call_history_range): Include
14700 end.
14701 (record_btrace_call_history_from): Adjust range.
14702 * NEWS: Announce changes.
14703
8710b709
MM
147042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14705
14706 * record.h (enum record_print_flag)
14707 <record_print_indent_calls>: New.
14708 * record.c (get_call_history_modifiers): Recognize /c modifier.
14709 (_initialize_record): Document /c modifier.
14710 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14711 Reorder fields. Optionally indent the function name. Update
14712 all users.
14713 * NEWS: Announce changes.
14714
d0fa7535
MM
147152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14716
14717 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14718
5de9129b
MM
147192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14720
14721 * btrace.c (ftrace_new_function): Start counting at one.
14722 * record-btrace.c (record_btrace_info): Adjust number of calls
14723 and insns.
14724 * NEWS: Announce it.
14725
7acbe133
MM
147262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14727
14728 * record-btrace.c (btrace_call_history_insn_range): Print
14729 insn range as [begin, end].
14730
23a7fe75
MM
147312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14732
14733 * btrace.h (struct btrace_func_link): New.
14734 (enum btrace_function_flag): New.
14735 (struct btrace_inst): Rename to ...
14736 (struct btrace_insn): ...this. Update all users.
14737 (struct btrace_func) <ibegin, iend>: Remove.
14738 (struct btrace_func_link): New.
14739 (struct btrace_func): Rename to ...
14740 (struct btrace_function): ...this. Update all users.
14741 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14742 (number, level, flags>: New.
14743 (struct btrace_insn_iterator): Rename to ...
14744 (struct btrace_insn_history): ...this.
14745 Update all users.
14746 (struct btrace_insn_iterator, btrace_call_iterator): New.
14747 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14748 (struct btrace_target_info) <begin, end, level>
14749 <insn_history, call_history>: New.
14750 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14751 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14752 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14753 (btrace_call_number, btrace_call_begin, btrace_call_end)
14754 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14755 (btrace_find_function_by_number, btrace_set_insn_history)
14756 (btrace_set_call_history): New.
14757 * btrace.c (btrace_init_insn_iterator)
14758 (btrace_init_func_iterator, compute_itrace): Remove.
14759 (ftrace_print_function_name, ftrace_print_filename)
14760 (ftrace_skip_file): Change
14761 parameter to const.
14762 (ftrace_init_func): Remove.
14763 (ftrace_debug): Use new btrace_function fields.
14764 (ftrace_function_switched): Also consider gaining and
14765 losing symbol information).
14766 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14767 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14768 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14769 New.
14770 (ftrace_new_function): Move. Remove debug print.
14771 (ftrace_update_lines, ftrace_update_insns): New.
14772 (ftrace_update_function): Check for call, ret, and jump.
14773 (compute_ftrace): Renamed to ...
14774 (btrace_compute_ftrace): ...this. Rewritten to compute call
14775 stack.
14776 (btrace_fetch, btrace_clear): Updated.
14777 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14778 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14779 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14780 (btrace_call_number, btrace_call_begin, btrace_call_end)
14781 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14782 (btrace_find_function_by_number, btrace_set_insn_history)
14783 (btrace_set_call_history): New.
14784 * record-btrace.c (require_btrace): Use new btrace thread
14785 info fields.
14786 (record_btrace_info, btrace_insn_history)
14787 (record_btrace_insn_history, record_btrace_insn_history_range):
14788 Use new btrace thread info fields and new iterator.
14789 (btrace_func_history_src_line): Rename to ...
14790 (btrace_call_history_src_line): ...this. Use new btrace
14791 thread info fields.
14792 (btrace_func_history): Rename to ...
14793 (btrace_call_history): ...this. Use new btrace thread info
14794 fields and new iterator.
14795 (record_btrace_call_history, record_btrace_call_history_range):
14796 Use new btrace thread info fields and new iterator.
14797
8372a7cb
MM
147982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14799
14800 * frame.h (frame_id_build_unavailable_stack_special): New.
14801 * frame.c (frame_id_build_unavailable_stack_special): New.
14802
c2170eef
MM
148032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14804
14805 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14806 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14807 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14808 to gdbarch.
14809 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14810 (i386_insn_is_jump, i386_jmp_p): New.
14811 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14812 insn_is_jump to gdbarch.
14813 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14814 * gdbarch.h: Regenerated.
14815 * gdbarch.c: Regenerated.
14816 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14817 (default_insn_is_jump): New.
14818 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14819 (default_insn_is_jump): New.
14820
864089d2
MM
148212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14822
14823 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14824 Change to ...
14825 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14826 (btrace_read_type) <btrace_read_new>: Change to ...
14827 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14828
ed9edfb5
MM
148292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14830
14831 * common/linux-btrace.c (linux_read_btrace): Free trace from
14832 previous iteration.
14833
fbcbc3fd
DE
148342014-01-15 Doug Evans <dje@google.com>
14835
14836 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14837 uint32_t.
14838
3d548a53
TT
148392014-01-15 Tom Tromey <tromey@redhat.com>
14840
14841 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14842 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14843 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14844 (set_objfile_main_name): New function.
14845 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14846 language_of_main>: New fields.
14847 (set_objfile_main_name): Declare.
14848 * symtab.c (find_main_name): Loop over objfiles to find the main
14849 name and language.
14850 (set_main_name): Now static.
14851 (get_main_info): Add comment.
14852 * symtab.h (set_main_name): Don't declare.
14853
32ac0d11
TT
148542014-01-15 Tom Tromey <tromey@redhat.com>
14855
14856 * symtab.c (main_progspace_key): New global.
14857 (struct main_info): New.
14858 (name_of_main, language_of_main): Remove.
14859 (get_main_info, main_info_cleanup): New function.
14860 (set_main_name, main_name, main_language): Use get_main_info.
14861 (_initialize_symtab): Initialize main_progspace_key.
14862
9e6c82ad
TT
148632014-01-15 Tom Tromey <tromey@redhat.com>
14864
14865 * dbxread.c (process_one_symbol): Update.
14866 * dwarf2read.c (read_partial_die): Update.
14867 * symfile.c (set_initial_language): Call main_language.
14868 * symtab.c (language_of_main): Now static.
14869 (set_main_name): Add 'lang' parameter.
14870 (find_main_name): Update.
14871 (main_language): New function.
14872 (symtab_observer_executable_changed): Update.
14873 * symtab.h (set_main_name): Update.
14874 (language_of_main): Remove.
14875 (main_language): Declare.
14876
6ef55de7
TT
148772014-01-15 Tom Tromey <tromey@redhat.com>
14878
14879 * symfile.c (init_entry_point_info): Use new "initialized" field.
14880 Update.
14881 * objfiles.h (struct entry_point) <initialized>: New field.
14882 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14883 (struct objfile) <ei>: ...here. Remove.
14884 * objfiles.c (entry_point_address_query): Update.
14885
53eddfa6
TT
148862014-01-15 Tom Tromey <tromey@redhat.com>
14887
14888 * objfiles.c (entry_point_address_query): Relocate entry point
14889 address.
14890 (objfile_relocate1): Do not relocate entry point address.
14891 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14892 <the_bfd_section_index>: New field.
14893 * symfile.c (init_entry_point_info): Find the entry point's
14894 section.
14895
d56e56aa
TT
148962014-01-15 Tom Tromey <tromey@redhat.com>
14897
14898 * solib-frv.c (enable_break): Use entry_point_address_query.
14899
33a97bbe
OJ
149002014-01-15 Omair Javaid <omair.javaid@linaro.org>
14901
14902 * NEWS: Add note on improved process record-replay on
14903 arm*-linux* targets.
14904
c6ec2b30
OJ
149052014-01-15 Omair Javaid <omair.javaid@linaro.org>
14906
14907 * arm-tdep.c (enum arm_record_result): New enum.
14908 (arm_record_unsupported_insn): New function.
14909 (arm_record_coproc_data_proc): Removed.
14910 (thumb2_record_ld_st_multiple): New function.
14911 (thumb2_record_ld_st_dual_ex_tbb): New function.
14912 (thumb2_record_data_proc_sreg_mimm): New function.
14913 (thumb2_record_ps_dest_generic): New function.
14914 (thumb2_record_branch_misc_cntrl): New function.
14915 (thumb2_record_str_single_data): New function.
14916 (thumb2_record_ld_mem_hints): New function.
14917 (thumb2_record_ld_word): New function.
14918 (thumb2_record_lmul_lmla_div): New function.
14919 (thumb2_record_decode_insn_handler): New function.
14920 (decode_insn): Add thumb32 instruction handlers.
14921
97dfe206
OJ
149222014-01-15 Omair Javaid <omair.javaid@linaro.org>
14923
14924 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14925 (struct arm_linux_record_tdep): Declare.
14926 (arm_canonicalize_syscall): New function.
14927 (arm_all_but_pc_registers_record): New function.
14928 (arm_linux_syscall_record): New function.
14929 (arm_linux_init_abi): Add syscall recording constructs.
14930 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14931 decoding. (arm_record_coproc_data_proc): Update arm syscall
14932 decoding.
14933 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14934 <arm_syscall_record>: New field.
14935 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14936 gdb_target_obs.
14937
9904a494
OJ
149382014-01-15 Omair Javaid <omair.javaid@linaro.org>
14939
14940 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14941 register for push instruction recording.
14942
f969241e
OJ
149432014-01-15 Omair Javaid <omair.javaid@linaro.org>
14944
14945 * arm-tdep.c (thumb_record_misc): Update to correct logical
14946 error while recording ldm, ldmia and pop instructions.
14947
bfbbec00
OJ
149482014-01-15 Omair Javaid <omair.javaid@linaro.org>
14949
14950 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14951
e40adcc9
PA
149522014-01-15 Pedro Alves <palves@redhat.com>
14953
14954 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14955 (go32_resume, go32_fetch_registers, store_register)
14956 (go32_store_registers, go32_prepare_to_store)
14957 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14958 (go32_create_inferior, go32_can_run, go32_terminal_init)
14959 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14960 declarations.
14961
b0a16e66
TT
149622014-01-15 Tom Tromey <tromey@redhat.com>
14963
14964 * target.h (async_callback_ftype): New typedef.
14965 (struct target_ops) <to_async>: Use it.
14966
bf7105a4
JB
149672014-01-15 Joel Brobecker <brobecker@adacore.com>
14968
14969 * python/py-value.c (get_field_type): Remove unnecessary curly
14970 braces for single-statement if block.
14971
a8f35c2e
JB
149722014-01-15 Joel Brobecker <brobecker@adacore.com>
14973
14974 * python/py-type.c (convert_field): Add missing empty line
14975 after declarations.
14976
bb4142cf
DE
149772014-01-14 Doug Evans <dje@google.com>
14978
14979 * symfile.h (expand_symtabs_matching): Renamed from
14980 expand_partial_symbol_names. Update prototype.
14981 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14982 * symfile.c (expand_symtabs_matching): Renamed from
14983 expand_partial_symbol_names. New args file_matcher, kind.
14984 Rename arg fun to symbol_matcher.
14985 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14986 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14987 ada_expand_partial_symbol_name.
14988 (ada_make_symbol_completion_list): Update to call
14989 expand_symtabs_matching.
14990 (ada_add_global_exceptions): Call expand_symtabs_matching.
14991 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14992 call map_symbol_filenames.
14993 * symtab.c (sources_info): Update to call map_symbol_filenames.
14994 (search_symbols): Call expand_symtabs_matching.
14995 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14996 (default_make_symbol_completion_list_break_on): Update to call
14997 expand_symtabs_matching.
14998 (make_source_files_completion_list): Update to call
14999 map_symbol_filenames.
15000
206f2a57
DE
150012014-01-14 Doug Evans <dje@google.com>
15002
15003 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15004 (expand_symtabs_symbol_matcher_ftype): New typedef.
15005 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15006 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15007 * symfile.c (expand_partial_symbol_names): Update to use
15008 expand_symtabs_symbol_matcher_ftype.
15009 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15010 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15011 Arg name_matcher renamed to symbol_matcher.
15012 * psymtab.c (recursively_search_psymtabs): Update to use
15013 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15014 sym_matcher.
15015 (expand_symtabs_matching_via_partial): Update to use
15016 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15017 Arg name_matcher renamed to symbol_matcher.
15018
540c2971
DE
150192014-01-14 Doug Evans <dje@google.com>
15020
15021 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15022 (map_partial_symbol_filenames): Ditto.
15023 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15024 (map_partial_symbol_filenames): Ditto.
15025 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15026 (map_partial_symbol_filenames): Ditto.
15027 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15028 (map_partial_symbol_filenames): Ditto.
15029 * symtab.c: Delete #include "psymtab.h".
15030
8213266a
PA
150312014-01-14 Pedro Alves <palves@redhat.com>
15032 Tom Tromey <tromey@redhat.com>
15033
15034 * infrun.c (use_displaced_stepping): Use find_record_target
15035 instead of RECORD_IS_USED.
15036 (adjust_pc_after_break): Use record_full_is_used instead of
15037 RECORD_IS_USED.
15038 * record-btrace.c (record_btrace_open): Call record_preopen
15039 instead of checking RECORD_IS_USED.
15040 * record-full.c (record_full_shortname)
15041 (record_full_core_shortname): New globals.
15042 (record_full_is_used): New function.
15043 (find_full_open): Call record_preopen instead of checking
15044 RECORD_IS_USED.
15045 (init_record_full_ops): Set the target's shortname to
15046 record_full_shortname.
15047 (init_record_full_core_ops): Set the target's shortname to
15048 record_full_core_shortname.
15049 * record-full.h (record_full_is_used): Declare.
15050 * record.c (find_record_target): Make extern.
15051 (record_preopen): New function.
15052 * record.h (RECORD_IS_USED): Delete macro.
15053 (find_record_target, record_preopen): Declare functions.
15054
7ec1862d
YQ
150552014-01-14 Yao Qi <yao@codesourcery.com>
15056
15057 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15058 'len''s type to ULONGEST.
15059 (core_xfer_shared_libraries_aix): Likewise.
15060 * gdbarch.c, gdbarch.h: Regenerated.
15061 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15062 Change type of 'len' to ULONGEST.
15063 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15064 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15065
dea80a27
YQ
150662014-01-14 Yao Qi <yao@codesourcery.com>
15067
15068 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15069 type of 'len' to ULONGEST.
15070 (linux_xfer_osdata_processgroups): Likewise.
15071 (linux_xfer_osdata_threads): Likewise.
15072 (linux_xfer_osdata_fds): Likewise.
15073 (linux_xfer_osdata_isockets): Likewise.
15074 (linux_xfer_osdata_shm): Likewise.
15075 (linux_xfer_osdata_sem): Likewise.
15076 (linux_xfer_osdata_msg): Likewise.
15077 (linux_common_xfer_osdata): Likewise.
15078 (struct osdata_type) <getter>: Likewise.
15079 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15080 the declaration.
15081
b55e14c7
YQ
150822014-01-14 Yao Qi <yao@codesourcery.com>
15083
15084 * target.h (target_xfer_partial_ftype): Update.
15085 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15086 ULONGEST.
15087 * aix-thread.c (aix_thread_xfer_partial): Change type of
15088 argument 'len' to ULONGEST.
15089 * auxv.c (procfs_xfer_auxv): Likewise.
15090 (ld_so_xfer_auxv): Likewise.
15091 (memory_xfer_auxv): Likewise.
15092 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15093 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15094 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15095 * corelow.c (core_xfer_partial): Likewise.
15096 * ctf.c (ctf_xfer_partial): Likewise.
15097 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15098 '%u'.
15099 (darwin_read_dyld_info): Likewise.
15100 (darwin_xfer_partial): Likewise.
15101 * exec.c (section_table_xfer_memory_partial): Likewise.
15102 (exec_xfer_partial): Likewise.
15103 * exec.h (section_table_xfer_memory_partial): Update
15104 declaration.
15105 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15106 instead of plongest.
15107 (gnu_xfer_partial): Likewise.
15108 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15109 (ia64_hpux_xfer_solib_got): Likewise.
15110 (ia64_hpux_xfer_partial): Likewise.
15111 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15112 * inf-ptrace.c (inf_ptrace_xfer_partial):
15113 * inf-ttrace.c (inf_ttrace_xfer_partial):
15114 * linux-nat.c (linux_xfer_siginfo): Likewise.
15115 (linux_nat_xfer_partial): Likewise.
15116 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15117 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15118 * monitor.c (monitor_xfer_memory): Likewise.
15119 (monitor_xfer_partial): Likewise.
15120 * procfs.c (procfs_xfer_partial): Likewise.
15121 * record-full.c (record_full_xfer_partial): Likewise.
15122 (record_full_core_xfer_partial): Likewise.
15123 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15124 instead of plongest.
15125 (gdbsim_xfer_partial): Likewise.
15126 * remote.c (remote_xfer_partial): Likewise.
15127 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15128 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15129 declaration.
15130 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15131 (rs6000_xfer_shared_libraries): Likewise.
15132 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15133 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15134 (sparc_xfer_partial): Likewise.
15135 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15136 (spu_xfer_partial): Likewise.
15137 * spu-multiarch.c (spu_xfer_partial): Likewise.
15138 * target.c (target_read_live_memory): Likewise.
15139 (memory_xfer_live_readonly_partial): Likewise.
15140 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15141 (target_xfer_partial, default_xfer_partial): Likewise.
15142 (current_xfer_partial): Likewise.
15143 * tracepoint.c (tfile_xfer_partial): Likewise.
15144 * windows-nat.c (windows_xfer_memory): Likewise. Call
15145 pulongest instead of plongest.
15146 (windows_xfer_partial): Likewise.
15147 (windows_xfer_shared_libraries): Likewise.
15148
05804640
YQ
151492014-01-14 Yao Qi <yao@codesourcery.com>
15150
15151 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15152 target_xfer_partial_ftype.
15153
b5b08fb4
SC
151542014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15155
15156 PR python/15464
15157 PR python/16113
15158 * valops.c (value_struct_elt_bitpos): New function
15159 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15160 object to 'None' if the field name is an empty string ("").
15161 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15162 attribute to look for a field when 'name' is 'None'.
15163 (get_field_type): New function
15164
13aaf454
DE
151652014-01-13 Doug Evans <dje@google.com>
15166
15167 PR symtab/16426
15168 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15169 (try_open_dwop_file): Ditto.
15170 * gdb_bfd.c: #include "vec.h".
15171 (bfdp): New typedef.
15172 (struct gdb_bfd_data): New member included_bfds.
15173 (gdb_bfd_unref): Unref all included bfds.
15174 (gdb_bfd_record_inclusion): New function.
15175 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15176
c2cec97c
TT
151772014-01-13 Tom Tromey <tromey@redhat.com>
15178
15179 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15180
78e5999d
TT
151812014-01-13 Tom Tromey <tromey@redhat.com>
15182
15183 * defs.h (use_windows): Remove.
15184 * gdb.c (main): Update.
15185 * main.c (captured_main, gdb_main): Update.
15186 * main.h (struct captured_main_args) <use_windows>: Remove.
15187 * top.c (use_windows): Remove.
15188
f2052bbe
TT
151892014-01-13 Tom Tromey <tromey@redhat.com>
15190
15191 * defs.h (deprecated_flush_hook): Remove.
15192
fde4f8ed
JK
151932014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15194
15195 PR threads/16216
15196 * linux-thread-db.c (try_thread_db_load): Add parameter
15197 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15198 (try_thread_db_load_from_pdir_1): Move it there from here.
15199 (try_thread_db_load_from_sdir): Update caller.
15200 (try_thread_db_load_from_dir): Move it there from here.
15201
bdf61915
PP
152022014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15203
15204 * regformats/regdat.sh: Always rewrite the register file.
15205
f71e1a8d
PA
152062014-01-13 Pedro Alves <palves@redhat.com>
15207
15208 * Makefile.in (CHECK_HEADERS): New variable.
15209 (check-headers:): New rule.
15210
42c85435
TT
152112014-01-13 Tom Tromey <tromey@redhat.com>
15212
15213 * cli/cli-setshow.c (do_set_command): Update.
15214 * defs.h (deprecated_set_hook): Remove.
15215 * top.c (deprecated_set_hook): Remove.
15216
f8de5129
PA
152172014-01-13 Pedro Alves <palves@redhat.com>
15218
15219 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15220 the tracepoint if the PC is a pseudo-register.
15221
fc270c35
TT
152222014-01-13 Tom Tromey <tromey@redhat.com>
15223
15224 * defs.h (XCALLOC): Remove.
15225 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15226 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15227 * dwarf2loc.c (allocate_piece_closure): Likewise.
15228 * elfread.c (elf_symfile_segments): Likewise.
15229 (elf_symfile_segments): Likewise.
15230 * gdbtypes.c (copy_type_recursive): Likewise.
15231 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15232 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15233 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15234 XCALLOC.
15235 * mt-tdep.c (mt_gdbarch_init): Likewise.
15236 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15237 XCALLOC.
15238 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15239 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15240 * registry.c (registry_alloc_data): Likewise.
15241 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15242 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15243 * serial.c (serial_fdopen_ops): Likewise.
15244 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15245 XCALLOC.
15246 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15247 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15248 not XCALLOC.
15249
70ba0933
TT
152502014-01-13 Tom Tromey <tromey@redhat.com>
15251
15252 * defs.h (XMALLOC): Remove.
15253 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15254 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15255 * cli-out.c (struct ui_out *): Likewise.
15256 * cli/cli-dump.c (add_dump_command): Likewise.
15257 (add_dump_command): Likewise.
15258 * complaints.c (get_complaints): Likewise.
15259 (find_complaint): Likewise.
15260 * dwarf2-frame.c (execute_cfa_program): Likewise.
15261 * dwarf2read.c (abbrev_table_read_table): Likewise.
15262 * gdbarch.sh: Likewise.
15263 * gdbarch.c: Rebuild.
15264 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15265 * interps.c (interp_new): Likewise.
15266 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15267 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15268 * mi/mi-console.c (mi_console_file_new): Likewise.
15269 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15270 * mi/mi-out.c (mi_out_new): Likewise.
15271 * mi/mi-parse.c (mi_parse): Likewise.
15272 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15273 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15274 * observer.c (xalloc_observer_list_node): Likewise.
15275 * regcache.c (regcache_xmalloc_1): Likewise.
15276 * reggroups.c (reggroup_new): Likewise.
15277 (_initialize_reggroup): Likewise.
15278 * registry.c (register_data_with_cleanup): Likewise.
15279 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15280 * ser-base.c (serial_ttystate): Likewise.
15281 * ser-mingw.c (make_pipe_state): Likewise.
15282 * ser-pipe.c (pipe_open): Likewise.
15283 * serial.c (serial_open): Likewise.
15284 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15285 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15286 (tui_alloc_win_info): Likewise.
15287 (tui_add_content_elements): Likewise.
15288 * tui/tui-file.c (tui_file_new): Likewise.
15289 * tui/tui-out.c (tui_out_new): Likewise.
15290 * ui-file.c (mem_file_new): Likewise.
15291 * ui-out.c (push_level): Likewise.
15292 (make_cleanup_ui_out_end): Likewise.
15293 (append_header_to_list): Likewise.
15294 (ui_out_new): Likewise.
15295 * user-regs.c (user_reg_add_builtin): Likewise.
15296
41bf6aca
TT
152972014-01-13 Tom Tromey <tromey@redhat.com>
15298
15299 * defs.h (XZALLOC): Remove.
15300 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15301 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15302 (get_ada_tasks_inferior_data): Likewise.
15303 * auto-load.c (get_auto_load_pspace_data): Likewise.
15304 * auxv.c (get_auxv_inferior_data): Likewise.
15305 * bfd-target.c (target_bfd_reopen): Likewise.
15306 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15307 (deprecated_insert_raw_breakpoint): Likewise.
15308 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15309 * corelow.c (core_open): Likewise.
15310 * darwin-nat.c (darwin_check_new_threads): Likewise.
15311 (darwin_attach_pid): Likewise.
15312 * dummy-frame.c (dummy_frame_push): Likewise.
15313 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15314 * dwarf2loc.c (allocate_piece_closure): Likewise.
15315 * elfread.c (elf_symfile_segments): Likewise.
15316 * eval.c (ptrmath_type_p): Likewise.
15317 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15318 * gdbtypes.c (alloc_type_arch): Likewise.
15319 (alloc_type_instance): Likewise.
15320 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15321 * inf-child.c (inf_child_can_use_agent): Likewise.
15322 * inflow.c (get_inflow_inferior_data): Likewise.
15323 * infrun.c (save_infcall_suspend_state): Likewise.
15324 * jit.c (jit_reader_load): Likewise.
15325 (get_jit_objfile_data): Likewise.
15326 (get_jit_program_space_data): Likewise.
15327 (jit_object_open_impl): Likewise.
15328 (jit_symtab_open_impl): Likewise.
15329 (jit_block_open_impl): Likewise.
15330 (jit_frame_sniffer): Likewise.
15331 * linux-fork.c (add_fork): Likewise.
15332 * maint.c (make_command_stats_cleanup): Likewise.
15333 * objfiles.c (get_objfile_pspace_data): Likewise.
15334 * opencl-lang.c (struct lval_closure): Likewise.
15335 * osdata.c (osdata_start_osdata): Likewise.
15336 * progspace.c (new_address_space): Likewise.
15337 (add_program_space): Likewise.
15338 * remote-sim.c (get_sim_inferior_data): Likewise.
15339 * sh-tdep.c (sh_gdbarch_init): Likewise.
15340 * skip.c (Ignore): Likewise.
15341 (skip_delete_command): Likewise.
15342 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15343 (library_list_start_library): Likewise.
15344 (solib_aix_current_sos): Likewise.
15345 * solib-darwin.c (get_darwin_info): Likewise.
15346 (darwin_current_sos): Likewise.
15347 * solib-dsbt.c (get_dsbt_info): Likewise.
15348 * solib-ia64-hpux.c (new_so_list): Likewise.
15349 (ia64_hpux_get_solib_linkage_addr): Likewise.
15350 * solib-spu.c (append_ocl_sos): Likewise.
15351 (spu_current_sos): Likewise.
15352 * solib-svr4.c (get_svr4_info): Likewise.
15353 (svr4_keep_data_in_core): Likewise.
15354 (library_list_start_library): Likewise.
15355 (svr4_default_sos): Likewise.
15356 (svr4_read_so_list): Likewise.
15357 * solib-target.c (library_list_start_library): Likewise.
15358 (solib_target_current_sos): Likewise.
15359 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15360 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15361 * symfile.c (default_symfile_segments): Likewise.
15362 * target-descriptions.c (tdesc_data_init): Likewise.
15363 (tdesc_create_reg): Likewise.
15364 (struct tdesc_type *): Likewise.
15365 (tdesc_create_vector): Likewise.
15366 (tdesc_set_struct_size): Likewise.
15367 (struct tdesc_type *): Likewise.
15368 (tdesc_free_feature): Likewise.
15369 (tdesc_create_feature): Likewise.
15370 * windows-nat.c (windows_add_thread): Likewise.
15371 (windows_make_so): Likewise.
15372 * xml-support.c (gdb_xml_body_text): Likewise.
15373 (gdb_xml_create_parser_and_cleanup): Likewise.
15374 (xml_process_xincludes): Likewise.
15375 * xml-syscall.c (allocate_syscalls_info): Likewise.
15376 (syscall_create_syscall_desc): Likewise.
15377
5acfdbae
SDJ
153782014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15379
15380 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15381 function, with code from i386_stap_parse_special_token.
15382 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15383 (i386_stap_parse_special_token): Move code to the two functions
15384 above; simplify it.
15385
0000e5cc
PA
153862014-01-09 Pedro Alves <palves@redhat.com>
15387 Hui Zhu <hui@codesourcery.com>
15388
15389 PR gdb/16101
15390 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15391 bp_err_string. Don't mark the location shlib_disabled if the
15392 error thrown wasn't a generic or memory error. Catch errors
15393 thrown while inserting breakpoints in overlayed code. Output
15394 error message of software breakpoints.
15395 * remote.c (remote_insert_breakpoint): If this breakpoint has
15396 target-side commands but this stub doesn't support Z0 packets,
15397 throw NOT_SUPPORTED_ERROR error.
15398 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15399 * target.h (target_insert_breakpoint): Extend comment.
15400 (target_insert_hw_breakpoint): Add comment.
15401
b7ea362b
PA
154022014-01-08 Pedro Alves <palves@redhat.com>
15403
15404 * remote.c (remote_add_thread): Add threads silently if starting
15405 up.
15406 (remote_notice_new_inferior): If in all-stop, and starting up,
15407 don't call notice_new_inferior.
15408 (get_current_thread): New function, factored out from ...
15409 (add_current_inferior_and_thread): ... this. Adjust.
15410 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15411 found any thread, then select the remote's current thread as GDB's
15412 current thread too.
15413
b7bba001
JB
154142014-01-08 Joel Brobecker <brobecker@adacore.com>
15415
15416 * NEWS: Create a new section for the next release branch.
15417 Rename the section of the current branch, now that it has
15418 been cut.
15419
16dfbded
JB
154202014-01-08 Joel Brobecker <brobecker@adacore.com>
15421
15422 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15423 * version.in: Bump version to 7.7.50.DATE-cvs.
15424
22c90ac1
YQ
154252014-01-08 Yao Qi <yao@codesourcery.com>
15426
15427 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15428 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15429 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15430
d64ad97c
YQ
154312014-01-08 Yao Qi <yao@codesourcery.com>
15432
15433 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15434 return value of bfd_get_filename to symbol_file_add_from_bfd.
15435
f93ba80c
PM
154362014-01-08 Pierre Muller <muller@sourceware.org>
15437
15438 Fix PR16201.
15439 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15440 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15441 to prim_record_mininal_symbol_and_info.
15442 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15443 in call to prim_record_minimal_symbol_and_info.
15444 (read_pe_exported_syms): Set index field of section_data.
15445
a4d9ba85
AP
154462014-01-07 Andrew Pinski <apinski@cavium.com>
15447
15448 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15449 * features/aarch64.c: Regenerate.
15450
1b67eb02
AS
154512014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15452
15453 * target.c (return_null): Define.
15454 (update_current_target): Use it instead of return_zero for
15455 functions that return a pointer.
15456
5e3f4fab
EBM
154572014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15458
15459 * source.c (add_path): Fix check for duplicated paths in the previously
15460 included paths.
15461
e2616788
HK
154622014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15463
15464 * ada-lang.c: Remove duplicated include statements.
15465 * alphabsd-nat.c: Ditto.
15466 * amd64-darwin-tdep.c: Ditto.
15467 * amd64fbsd-nat.c: Ditto.
15468 * auto-load.c: Ditto.
15469 * ax-gdb.c: Ditto.
15470 * breakpoint.c: Ditto.
15471 * dbxread.c: Ditto.
15472 * fork-child.c: Ditto.
15473 * gdb_usleep.c: Ditto.
15474 * i386-darwin-tdep.c: Ditto.
15475 * i386fbsd-nat.c: Ditto.
15476 * infcmd.c: Ditto.
15477 * inferior.c: Ditto.
15478 * jv-lang.c: Ditto.
15479 * linux-nat.c: Ditto.
15480 * linux-tdep.c: Ditto.
15481 * m68kbsd-nat.c: Ditto.
15482 * m68klinux-nat.c: Ditto.
15483 * microblaze-tdep.c: Ditto.
15484 * mips-linux-tdep.c: Ditto.
15485 * mn10300-tdep.c: Ditto.
15486 * nto-tdep.c: Ditto.
15487 * opencl-lang.c: Ditto.
15488 * osdata.c: Ditto.
15489 * printcmd.c: Ditto.
15490 * regcache.c: Ditto.
15491 * remote-m32r-sdi.c: Ditto.
15492 * remote.c: Ditto.
15493 * symfile.c: Ditto.
15494 * symtab.c: Ditto.
15495 * tilegx-linux-nat.c: Ditto.
15496 * tilegx-tdep.c: Ditto.
15497 * tracepoint.c: Ditto.
15498 * valops.c: Ditto.
15499 * vaxbsd-nat.c: Ditto.
15500 * windows-nat.c: Ditto.
15501 * xtensa-tdep.c: Ditto.
15502
bd1f7788
YQ
155032014-01-07 Yao Qi <yao@codesourcery.com>
15504
15505 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15506
79301218
JB
155072014-01-07 Yao Qi <yao@codesourcery.com>
15508 Joel Brobecker <brobecker@adacore.com>
15509
15510 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15511 (pdc_write_regs): Likewise.
15512 (fetch_regs_kernel_thread): Likewise.
15513 (store_regs_kernel_thread): Likewise.
15514
155152014-01-07 Joel Brobecker <brobecker@adacore.com>
15516
15517 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15518 tagged type objects to their actual type.
15519
8e355c5d
JB
155202014-01-07 Joel Brobecker <brobecker@adacore.com>
15521
15522 * ada-valprint.c (print_field_values): Add "language" parameter.
15523 Update calls to print_field_values and print_variant_part.
15524 Pass new parameter "language" in call to val_print instead
15525 of "current_language". Replace call to ada_val_print by call
15526 to val_print.
15527 (print_variant_part): Add "language" parameter.
15528 (ada_val_print_struct_union): Update call to print_field_values.
15529
4fbf5aa5
JB
155302014-01-07 Joel Brobecker <brobecker@adacore.com>
15531
15532 * ada-valprint.c (ui_memcpy): Delete.
15533 (ada_print_floating): Update documentation. Add empty line
15534 between between function documentation and implementation.
15535 Delete variable "buffer". Use ui_file_xstrdup in place of
15536 ui_file_put. Minor adjustments following this change.
15537
71855601
JB
155382014-01-07 Joel Brobecker <brobecker@adacore.com>
15539
15540 * ada-valprint.c (ada_val_print_string): New function,
15541 extracted from ada_val_print_array.
15542 (ada_val_print_array): Replace extracted code by call
15543 to ada_val_print_string followed by a return. Move
15544 "else" branch to the function's top block.
15545
4eb27a30
JB
155462014-01-07 Joel Brobecker <brobecker@adacore.com>
15547
15548 * ada-valprint.c (ada_val_print_array): Move implementation
15549 down. Rename parameter "offset" and "val" into "offset_aligned"
15550 and "original_value" respectively. Add parameter "offset".
15551
34b27950
JB
155522014-01-07 Joel Brobecker <brobecker@adacore.com>
15553
15554 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15555 re-organizing the code. Change the "???" message printed
15556 when target type is a TYPE_CODE_UNDEF into
15557 "<ref to undefined type>".
15558
079e4591
JB
155592014-01-07 Joel Brobecker <brobecker@adacore.com>
15560
15561 * ada-valprint.c (print_record): Delete, implementation inlined...
15562 (ada_val_print_struct_union): ... here. Remove call to
15563 ada_check_typedef in inlined implementation.
15564
8004dfd1
JB
155652014-01-07 Joel Brobecker <brobecker@adacore.com>
15566
15567 * ada-valprint.c (ada_val_print_gnat_array): New function,
15568 extracted from ada_val_print_1;
15569 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15570 (ada_val_print_flt, ada_val_print_struct_union)
15571 (ada_val_print_ref): Likewise.
15572 (ada_val_print_1): Delete variables i and elttype.
15573 Replace extracted-out code by call to corresponding
15574 new functions.
15575
760a2db0
JB
155762014-01-07 Joel Brobecker <brobecker@adacore.com>
15577
15578 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15579
3a92c861
JB
155802014-01-07 Joel Brobecker <brobecker@adacore.com>
15581
15582 * ada-valprint.c (ada_val_print_1): Replace calls to
15583 ada_val_print_1 by calls to val_print.
15584
cd1630f9
JB
155852014-01-07 Joel Brobecker <brobecker@adacore.com>
15586
15587 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15588 Update calls to self accordingly. Replace calls to c_val_print
15589 by calls to val_print.
15590
bdf779a0
JB
155912014-01-07 Joel Brobecker <brobecker@adacore.com>
15592
15593 * ada-valprint.c (print_record): Delete declaration.
15594 (adjust_type_signedness, ada_val_print_1): Likewise.
15595 (ada_val_print): Move function implementation down.
15596 (print_variant_part, print_field_values, print_record):
15597 Move function implementation up.
15598
c0d48811
JB
155992014-01-07 Joel Brobecker <brobecker@adacore.com>
15600
15601 * python/py-type.c (typy_get_name): New function.
15602 (type_object_getset): Add entry for attribute "name".
15603 * NEWS: Add entry mentioning this new attribute.
15604
c26e9cbb
YQ
156052014-01-07 Yao Qi <yao@codesourcery.com>
15606
15607 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15608 statement.
15609
0cc6f43d
YQ
156102014-01-07 Yao Qi <yao@codesourcery.com>
15611
15612 * gnu-nat.c (info_port_rights): Add qualifier const to
15613 argument args.
15614
eec03155
YQ
156152014-01-07 Yao Qi <yao@codesourcery.com>
15616
15617 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15618
f04a82ef
YQ
156192014-01-07 Yao Qi <yao@codesourcery.com>
15620
15621 * gnu-nat.c (make_inf) Update declaration.
15622 (make_inf): Make it static.
15623 (inf_set_traced): Likewise.
15624 (inf_port_to_thread, inf_task_died_status): Likewise.
15625
d57dda0a
YQ
156262014-01-07 Yao Qi <yao@codesourcery.com>
15627
15628 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15629
3aa8c969
YQ
156302014-01-07 Yao Qi <yao@codesourcery.com>
15631
15632 * gnu-nat.c (_initialize_gnu_nat): Declare.
15633
94123b4f
YQ
156342014-01-07 Yao Qi <yao@codesourcery.com>
15635
15636 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15637 'enum bfd_endian'.
15638 (struct gdbarch_info) <byte_order>: Change type to
15639 'enum bfd_endian'.
15640 <byte_order_for_code>: Likewise.
15641 * gdbarch.c, gdbarch.h: Regenerated.
15642
dc81d70a
TT
156432014-01-06 Sasha Smundak <asmundak@google.com>
15644
15645 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15646
cc2f3c35
TT
156472014-01-06 Tom Tromey <tromey@redhat.com>
15648
15649 * doublest.c (convert_doublest_to_floatformat): Use const, not
15650 CONST.
15651 * somread.c (som_symtab_read): Likewise.
15652
adcf2eed
HZ
156532014-01-07 Hui Zhu <hui@codesourcery.com>
15654
15655 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15656 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15657 (gdb_bfd_fopen): Ditto.
15658 (gdb_bfd_openr): Ditto.
15659 (gdb_bfd_openw): Ditto.
15660 (gdb_bfd_openr_iovec): Ditto.
15661 (gdb_bfd_fdopenr): Ditto.
15662 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15663 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15664 with xstrdup.
15665 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15666 with xstrdup.
15667 * symfile-mem.c (symbol_file_add_from_memory): Removed
15668 gdb_bfd_stash_filename.
15669
50722198
DE
156702014-01-03 Doug Evans <dje@google.com>
15671
15672 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15673 output.
15674
2fa4b862
JB
156752014-01-01 Joel Brobecker <brobecker@adacore.com>
15676
15677 Update year range in copyright notice of all files.
15678
28498c42
JB
156792014-01-01 Joel Brobecker <brobecker@adacore.com>
15680
15681 * top.c (print_gdb_version): Set copyright year to 2014.
15682
7b6e1046
JB
156832014-01-01 Joel Brobecker <brobecker@adacore.com>
15684
15685 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15686
df96af55 15687For older changes see ChangeLog-2013.
c906108c
SS
15688\f
15689Local Variables:
15690mode: change-log
15691left-margin: 8
15692fill-column: 74
15693version-control: never
57da7796 15694coding: utf-8
c906108c 15695End:
This page took 2.316148 seconds and 4 git commands to generate.