frame.c: Fix the check for FID_STACK_INVALID in frame_id_eq()
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f0d4ba1f
MG
12014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
2
3 Pushed by Joel Brobecker <brobecker@adacore.com>.
4 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
5
18ac6ffc
SC
62014-11-29 Siva Chandra Reddy <sivachandra@google.com>
7
8 * eval.c (evaluate_subexp): Check that the thread stack temporaries
9 are not already enabled before enabling them.
10
4072f920
YQ
112014-11-29 Yao Qi <yao@codesourcery.com>
12
13 * arm-tdep.c (arm_analyze_prologue): Move local variables
14 'framereg' and 'framesize' to inner block. Move code to
15 inner block too.
16
6c659fc2
SC
172014-11-28 Siva Chandra Reddy <sivachandra@google.com>
18
19 * eval.c: Include gdbthread.h.
20 (evaluate_subexp): Enable thread stack temporaries before
21 evaluating a complete expression and clean them up after the
22 evaluation is complete.
23 * gdbthread.h: Include common/vec.h.
24 (value_ptr): New typedef.
25 (VEC (value_ptr)): New vector type.
26 (value_vec): New typedef.
27 (struct thread_info): Add new fields stack_temporaries_enabled
28 and stack_temporaries.
29 (enable_thread_stack_temporaries)
30 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
31 (get_last_thread_stack_temporary)
32 (value_in_thread_stack_temporaries): Declare.
33 * gdbtypes.c (class_or_union_p): New function.
34 * gdbtypes.h (class_or_union_p): Declare.
35 * infcall.c (call_function_by_hand): Store return values of class
36 type as temporaries on stack.
37 * thread.c (enable_thread_stack_temporaries): New function.
38 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
39 (get_last_thread_stack_temporary): Likewise.
40 (value_in_thread_stack_temporaries): Likewise.
41 * value.c (value_force_lval): New function.
42 * value.h (value_force_lval): Declare.
43
f7ca3fcf
PM
442014-11-28 Pierre Muller <muller@sourceware.org>
45
46 Pushed by Joel Brobecker <brobecker@adacore.com>.
47 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
48 registers.
49
b2859a9a
UW
502014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
51
52 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
53 * config/sparc/linux.mh (NATDEPFILES): Likewise.
54 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
55 * m68klinux-nat.c (fetch_core_registers): Remove.
56 (linux_elf_core_fns): Remove.
57 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
58
0fa9473f
JB
592014-11-28 Joel Brobecker <brobecker@adacore.com>
60
61 * utils.c (gdb_realpath): Rework comment about handling on
62 Windows.
63
6a29c58e
YQ
642014-11-28 Yao Qi <yao@codesourcery.com>
65
66 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
67 rename.
68 * gnulib/aclocal.m4: Re-generated.
69 * gnulib/config.in: Re-generated.
70 * gnulib/configure: Re-generated.
71 * gnulib/import/Makefile.am: Re-generated.
72 * gnulib/import/Makefile.in: Re-generated.
73 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
74 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
75 * import/basename-lgpl.c: New file.
76 * import/dirname-lgpl.c: New file.
77 * import/dirname.h: New file.
78 * import/m4/dirname.m4: New file.
79 * import/m4/malloc.m4: New file.
80 * import/m4/rename.m4: New file.
81 * import/m4/rmdir.m4: New file.
82 * import/m4/stdio_h.m4: New file.
83 * import/malloc.c: New file.
84 * import/rename.c: New file.
85 * import/rmdir.c: New file.
86 * import/same-inode.h: New file.
87 * import/stdio.c: New file.
88 * import/stdio.in.h: New file.
89 * import/stripslash.c: New file.
90
abbffc89
YQ
912014-11-28 Yao Qi <yao@codesourcery.com>
92
93 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
94 and realpath.
95 * config.in: Re-generated.
96 * configure: Re-generated.
97 * utils.c (gdb_realpath): Remove code calling realpath,
98 canonicalize_file_name and pathconf.
99 [!_WIN32]: Call canonicalize_file_name.
100
98399780
YQ
1012014-11-28 Yao Qi <yao@codesourcery.com>
102
103 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
104 canonicalize-lgpl.
105 * aclocal.m4: Re-generated.
106 * config.in: Re-generated.
107 * configure: Re-generated.
108 * import/Makefile.am: Re-generated.
109 * import/Makefile.in: Re-generated.
110 * import/m4/gnulib-cache.m4: Re-generated.
111 * import/m4/gnulib-comp.m4: Re-generated.
112 * import/canonicalize-lgpl.c: New file.
113 * import/extra/snippet/_Noreturn.h: New file.
114 * import/m4/canonicalize.m4: New file.
115 * import/m4/double-slash-root.m4: New file.
116 * import/m4/eealloc.m4: New file.
117 * import/m4/malloca.m4: New file.
118 * import/m4/nocrash.m4: New file.
119 * import/m4/stdlib_h.m4: New file.
120 * import/malloca.c: New file.
121 * import/malloca.h: New file.
122 * import/malloca.valgrind: New file.
123
3332aaf2
YQ
1242014-11-28 Yao Qi <yao@codesourcery.com>
125
126 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
127 * config.in, configure: Regenerate.
128 * symfile.c (find_separate_debug_file_by_debuglink): Remove
129 code checking HAVE_LSTAT is defined.
130
f45c62c4
YQ
1312014-11-28 Yao Qi <yao@codesourcery.com>
132
133 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
134 lstat.
135 * gnulib/aclocal.m4: Re-generated.
136 * gnulib/config.in: Re-generated.
137 * gnulib/configure: Re-generated.
138 * gnulib/import/Makefile.am: Re-generated.
139 * gnulib/import/Makefile.in: Re-generated.
140 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
141 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
142 * gnulib/import/lstat.c: New file.
143 * gnulib/import/m4/lstat.m4: New file.
144
bdca27a2
YQ
1452014-11-28 Yao Qi <yao@codesourcery.com>
146
147 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
148 * config.in, configure: Re-generate.
149 * inf-child.c (inf_child_fileio_readlink): Don't check
150 HAVE_READLINK is defined.
151
2196f55f
YQ
1522014-11-28 Yao Qi <yao@codesourcery.com>
153
154 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
155 * gnulib/aclocal.m4: Re-generated.
156 * gnulib/config.in: Likewise.
157 * gnulib/configure: Likewise.
158 * gnulib/import/Makefile.am: Likewise.
159 * gnulib/import/Makefile.in: Likewise.
160 * gnulib/import/m4/gnulib-cache.m4: Likewise.
161 * gnulib/import/m4/gnulib-comp.m4: Likewise.
162 * gnulib/import/dosname.h: New file
163 * gnulib/import/m4/largefile.m4: New file.
164 * gnulib/import/m4/readlink.m4: New file.
165 * gnulib/import/m4/stat.m4: New file.
166 * gnulib/import/readlink.c: New file.
167 * gnulib/import/stat.c: New file.
168
7014e923 1692014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
170
171 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
172 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
173
aa489395
SL
1742014-11-25 Sandra Loosemore <sandra@codesourcery.com>
175
176 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
177 that there can be only one stack adjustment in the prologue
178 with tests to detect specific disallowed stack adjustments.
179
7f1659b5
SL
1802014-11-25 Sandra Loosemore <sandra@codesourcery.com>
181
182 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
183 adjustments.
184
d53c26c7
SL
1852014-11-25 Sandra Loosemore <sandra@codesourcery.com>
186
187 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
188 the instruction as well as reading it from memory.
189 (nios2_match_add): New.
190 (nios2_match_sub): New.
191 (nios2_match_addi): New.
192 (nios2_match_orhi): New.
193 (nios2_match_stw): New.
194 (nios2_match_ldw): New.
195 (nios2_match_rdctl): New.
196 (enum branch_condition): New.
197 (nios2_match_branch): New.
198 (nios2_match_jmpi): New.
199 (nios2_match_calli): New.
200 (nios2_match_jmpr): New.
201 (nios2_match_callr): New.
202 (nios2_match_break): New.
203 (nios2_match_trap): New.
204 (nios2_in_epilogue_p): Rewrite to use new functions.
205 (nios2_analyze_prologue): Likewise.
206 (nios2_skip_prologue): Delete unused local limit_pc.
207 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
208 (nios2_get_next_pc): Rewrite to use new functions.
209
cac9b138
JK
2102014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
211
212 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
213
a441dfbc
ST
2142014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
215
216 Pushed by Joel Brobecker <brobecker@adacore.com>
217 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
218 elements pi_len by the size of the elements before calling
219 vm_deallocate.
220 (inf_validate_task_sc): Likewise, and properly deallocate the
221 noise array.
222
4c9e8482
DE
2232014-11-23 Doug Evans <xdje42@gmail.com>
224
225 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
226 number and name if present. All callers updated.
227 (dump_fn_fieldlists): Fix indentation of args.
228
15ee0bbd
PP
2292014-11-23 Patrick Palka <patrick@parcs.ath.cx>
230
231 * MAINTAINERS (Write After Approval): Add myself.
232
e8af5d7a
JB
2332014-11-23 Joel Brobecker <brobecker@adacore.com>
234
235 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
236 to a bp_call_dummy breakpoint type.
237
a344fc09
PP
2382014-11-23 Patrick Palka <patrick@parcs.ath.cx>
239
240 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
241 registering the signal handler.
242
d64e57fa
PP
2432014-11-23 Patrick Palka <patrick@parcs.ath.cx>
244
245 * event-top.h (call_stdin_event_handler_again_p): Declare.
246 * event-top.c (call_stdin_event_handler_again_p): Define.
247 (stdin_event_handler): Use it.
248 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
249 handler again if there is pending input following a
250 start sequence.
251
6f9d33d8
PP
2522014-11-23 Patrick Palka <patrick@parcs.ath.cx>
253
254 Pushed by Joel Brobecker <brobecker@adacore.com>
255 * linux-fork.c (checkpoint_command): Print index of new
256 checkpoint in response message.
257
88db67ef
YQ
2582014-11-23 Yao Qi <yao@codesourcery.com>
259
260 * valprint.c (read_string): Move local variables 'found_nul',
261 'chunksize' and 'limit' to inner scope. Update comments.
262
01465b56
DE
2632014-11-22 Doug Evans <xdje42@gmail.com>
264
265 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
266 function comment.
267 (search_symbols): Fix comments and whitespace.
268
07a1c2c3
DE
2692014-11-22 Doug Evans <xdje42@gmail.com>
270
271 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
272
b2a919a8
DE
2732014-11-21 Doug Evans <dje@google.com>
274
275 * psymtab.c (psymtab_search_name): Fix whitespace.
276
278289d5
YQ
2772014-11-21 Yao Qi <yao@codesourcery.com>
278
279 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
280 errno.
281 * gnulib/import/Makefile.am: Re-generated.
282 * gnulib/import/Makefile.in: Likewise.
283 * gnulib/import/m4/gnulib-cache.m4: Likewise.
284
e01e2baa
YQ
2852014-11-21 Yao Qi <yao@codesourcery.com>
286
287 * gdb_wchar.h: Include wchar.h and wctype.h.
288 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
289 include wchar.h and wctype.h.
290 Don't check HAVE_WCHAR_H.
291
f0c00af8
YQ
2922014-11-21 Yao Qi <yao@codesourcery.com>
293
294 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
295 and wctype-h.
296 * gnulib/import/Makefile.am: Re-generated.
297 * gnulib/import/Makefile.in: Likewise.
298 * gnulib/import/m4/gnulib-cache.m4: Likewise.
299
0cae13bb
YQ
3002014-11-21 Yao Qi <yao@codesourcery.com>
301
302 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
303 memchr.
304 * gnulib/import/Makefile.am: Re-generated.
305 * gnulib/import/Makefile.in: Likewise.
306 * gnulib/import/m4/gnulib-cache.m4: Likewise.
307
9c232dda
YQ
3082014-11-21 Yao Qi <yao@codesourcery.com>
309
310 * common/common-defs.h: Include alloca.h
311 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
312 * configure: Re-generated.
313 * defs.h: Remove code handling alloca.
314 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
315 or not.
316
00d7f58f
YQ
3172014-11-21 Yao Qi <yao@codesourcery.com>
318
319 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
320 alloca.
321 * gnulib/import/Makefile.am: Re-generated.
322 * gnulib/import/Makefile.in: Likewise..
323 * gnulib/import/m4/gnulib-cache.m4: Likewise.
324
6068ad5d
YQ
3252014-11-21 Yao Qi <yao@codesourcery.com>
326
327 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
328 alphabetical order.
329
45e44d27
JB
3302014-11-21 Joel Brobecker <brobecker@adacore.com>
331
332 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
333 flag_unsigned if HIGH_BOUND is constant and negative.
334
7e7cbeb3
SDJ
3352014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
336
337 PR breakpoints/10737
338 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
339 modifier from "struct gdbarch" when compiling without Expat (XML)
340 support.
341 (get_syscall_by_number): Likewise.
342 (get_syscall_by_name): Likewise.
343 (get_syscall_names): Likewise.
344
458c8db8
SDJ
3452014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
346
347 PR breakpoints/10737
348 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
349 set_xml_syscall_file_name to provide gdbarch.
350 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
351 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
352 * breakpoint.c (print_it_catch_syscall): Adjust call to
353 get_syscall_by_number to provide gdbarch.
354 (print_one_catch_syscall): Likewise.
355 (print_mention_catch_syscall): Likewise.
356 (print_recreate_catch_syscall): Likewise.
357 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
358 and get_syscall_by_name to provide gdbarch.
359 (catch_syscall_completer): Adjust call to get_syscall_names to
360 provide gdbarch.
361 * gdbarch.c: Regenerate.
362 * gdbarch.h: Likewise.
363 * gdbarch.sh: Forward declare "struct syscalls_info".
364 (xml_syscall_file): New variable.
365 (syscalls_info): Likewise.
366 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
367 set_xml_syscall_file_name to provide gdbarch.
368 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
369 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
370 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
371 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
372 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
373 * xml-syscall.c: Include gdbarch.h.
374 (set_xml_syscall_file_name): Accept gdbarch parameter.
375 (get_syscall_by_number): Likewise.
376 (get_syscall_by_name): Likewise.
377 (get_syscall_names): Likewise.
378 (my_gdb_datadir): Delete global variable.
379 (struct syscalls_info) <my_gdb_datadir>: New variable.
380 (struct syscalls_info) <sysinfo>: Rename variable to
381 "syscalls_info".
382 (sysinfo): Delete global variable.
383 (have_initialized_sysinfo): Likewise.
384 (xml_syscall_file): Likewise.
385 (sysinfo_free_syscalls_desc): Rename to...
386 (syscalls_info_free_syscalls_desc): ... this.
387 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
388 code to the new layout of "struct syscalls_info".
389 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
390 "syscalls_info".
391 (syscall_create_syscall_desc): Likewise.
392 (syscall_start_syscall): Likewise.
393 (syscall_parse_xml): Likewise.
394 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
395 (init_sysinfo): Rename to...
396 (init_syscalls_info): ...this. Add gdbarch as a parameter.
397 Adjust function to deal with gdbarch.
398 (xml_get_syscall_number): Delete parameter sysinfo. Accept
399 gdbarch as a parameter. Adjust code.
400 (xml_get_syscall_name): Likewise.
401 (xml_list_of_syscalls): Likewise.
402 (set_xml_syscall_file_name): Accept gdbarch as parameter.
403 (get_syscall_by_number): Likewise.
404 (get_syscall_by_name): Likewise.
405 (get_syscall_names): Likewise.
406 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
407 (get_syscall_by_number): Likewise.
408 (get_syscall_by_name): Likewise.
409 (get_syscall_names): Likewise.
410
43f3e411
DE
4112014-11-20 Doug Evans <xdje42@gmail.com>
412
413 Split struct symtab into two: struct symtab and compunit_symtab.
414 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
415 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
416 to "struct compunit_symtab *". All callers updated.
417 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
418 "struct symtab *" argument to "struct compunit_symtab *".
419 All callers updated.
420 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
421 result to "struct compunit_symtab *". All callers updated.
422 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
423 Change result to "struct compunit_symtab *". All callers updated.
424 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
425 hange type to "struct compunit_symtab *". All uses updated.
426 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
427 Change type to "struct compunit_symtab *". All uses updated.
428 * buildsym.c (struct buildsym_compunit): New struct.
429 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
430 (buildsym_compunit): New static global.
431 (finish_block_internal): Update to fetch objfile from
432 buildsym_compunit.
433 (make_blockvector): Delete objfile argument.
434 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
435 debugformat, producer.
436 (start_buildsym_compunit): New function.
437 (free_buildsym_compunit): Renamed from free_subfiles_list.
438 All callers updated.
439 (patch_subfile_names): Rewrite to use buildsym_compunit.
440 (get_compunit_symtab): New function.
441 (get_macro_table): Delete argument comp_dir. All callers updated.
442 (start_symtab): Change result to "struct compunit_symtab *".
443 All callers updated. Create the subfile of the main source file.
444 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
445 (reset_symtab_globals): Update.
446 (end_symtab_get_static_block): Update to use buildsym_compunit.
447 (end_symtab_without_blockvector): Rewrite.
448 (end_symtab_with_blockvector): Change result to
449 "struct compunit_symtab *". All callers updated.
450 Update to use buildsym_compunit. Don't set symtab->dirname,
451 instead set it in the compunit.
452 Explicitly make sure main symtab is first in its list.
453 Set debugformat, producer, blockvector, block_line_section, and
454 macrotable in the compunit.
455 (end_symtab_from_static_block): Change result to
456 "struct compunit_symtab *". All callers updated.
457 (end_symtab, end_expandable_symtab): Ditto.
458 (set_missing_symtab): Change symtab argument to
459 "struct compunit_symtab *". All callers updated.
460 (augment_type_symtab): Ditto.
461 (record_debugformat): Update to use buildsym_compunit.
462 (record_producer): Update to use buildsym_compunit.
463 * buildsym.h (struct subfile) <dirname>: Delete.
464 <producer, debugformat>: Delete.
465 <buildsym_compunit>: New member.
466 (get_compunit_symtab): Declare.
467 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
468 from primary_symtab. Change type to "struct compunit_symtab *".
469 All uses updated.
470 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
471 All callers updated.
472 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
473 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
474 symtab. Change type to "struct compunit_symtab *". All uses updated.
475 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
476 All callers updated.
477 (dw2_find_last_source_symtab): Ditto.
478 (dw2_lookup_symbol): Ditto.
479 (recursively_find_pc_sect_compunit_symtab): Renamed from
480 recursively_find_pc_sect_symtab. Change result to
481 "struct compunit_symtab *". All callers updated.
482 (dw2_find_pc_sect_compunit_symtab): Renamed from
483 dw2_find_pc_sect_symtab. Change result to
484 "struct compunit_symtab *". All callers updated.
485 (get_compunit_symtab): Renamed from get_symtab. Change result to
486 "struct compunit_symtab *". All callers updated.
487 (recursively_compute_inclusions): Change type of immediate_parent
488 argument to "struct compunit_symtab *". All callers updated.
489 (compute_compunit_symtab_includes): Renamed from
490 compute_symtab_includes. All callers updated. Rewrite to compute
491 includes of compunit_symtabs and not symtabs.
492 (process_full_comp_unit): Update to work with struct compunit_symtab.
493 (process_full_type_unit): Ditto.
494 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
495 (dwarf_decode_lines): Remove special case handling of main subfile.
496 (macro_start_file): Delete argument comp_dir. All callers updated.
497 (dwarf_decode_macro_bytes): Ditto.
498 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
499 use struct compunit_symtab.
500 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
501 * jit.c (finalize_symtab): Build compunit_symtab.
502 * jv-lang.c (get_java_class_symtab): Change result to
503 "struct compunit_symtab *". All callers updated.
504 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
505 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
506 comp_dir. Change type to "struct compunit_symtab *".
507 All uses updated.
508 (new_macro_table): Change comp_dir argument to cust,
509 "struct compunit_symtab *". All callers updated.
510 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
511 nr_primary_symtabs. All uses updated.
512 (count_symtabs_and_blocks): Update to handle compunits.
513 (report_command_stats): Update output, "primary symtabs" renamed to
514 "compunits".
515 * mdebugread.c (new_symtab): Change result to
516 "struct compunit_symtab *". All callers updated.
517 (parse_procedure): Change type of search_symtab argument to
518 "struct compunit_symtab *". All callers updated.
519 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
520 separate loop.
521 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
522 symtabs. Change type to "struct compunit_symtab *". All uses updated.
523 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
524 All uses updated.
525 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
526 All uses updated.
527 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
528 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
529 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
530 symtab. Change type to "struct compunit_symtab *". All uses updated.
531 * psymtab.c (psymtab_to_symtab): Change result type to
532 "struct compunit_symtab *". All callers updated.
533 (find_pc_sect_compunit_symtab_from_partial): Renamed from
534 find_pc_sect_symtab_from_partial. Change result type to
535 "struct compunit_symtab *". All callers updated.
536 (lookup_symbol_aux_psymtabs): Change result type to
537 "struct compunit_symtab *". All callers updated.
538 (find_last_source_symtab_from_partial): Ditto.
539 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
540 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
541 and macro_table from compunit.
542 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
543 type to "struct compunit_symtab *". All callers updated.
544 (debug_qf_lookup_symbol): Ditto.
545 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
546 debug_qf_find_pc_sect_symtab, change result type to
547 "struct compunit_symtab *". All callers updated.
548 * symfile.c (allocate_symtab): Delete objfile argument.
549 New argument cust.
550 (allocate_compunit_symtab): New function.
551 (add_compunit_symtab_to_objfile): New function.
552 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
553 Change result type to "struct compunit_symtab *". All uses updated.
554 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
555 Change result type to "struct compunit_symtab *". All uses updated.
556 * symmisc.c (print_objfile_statistics): Compute blockvector count in
557 separate loop.
558 (dump_symtab_1): Update test for primary source symtab.
559 (maintenance_info_symtabs): Update to handle compunit symtabs.
560 (maintenance_check_symtabs): Ditto.
561 * symtab.c (set_primary_symtab): Delete.
562 (compunit_primary_filetab): New function.
563 (compunit_language): New function.
564 (iterate_over_some_symtabs): Change type of arguments "first",
565 "after_last" to "struct compunit_symtab *". All callers updated.
566 Update to loop over symtabs in each compunit.
567 (error_in_psymtab_expansion): Rename symtab argument to cust,
568 and change type to "struct compunit_symtab *". All callers updated.
569 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
570 Change result type to "struct compunit_symtab *". All callers updated.
571 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
572 Change result type to "struct compunit_symtab *". All callers updated.
573 (find_pc_sect_line): Only loop over symtabs within selected compunit
574 instead of all symtabs in the objfile.
575 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
576 <compunit_symtab> New member.
577 <block_line_section>: Moved to compunit_symtab.
578 <locations_valid>: Ditto.
579 <epilogue_unwind_valid>: Ditto.
580 <macro_table>: Ditto.
581 <dirname>: Ditto.
582 <debugformat>: Ditto.
583 <producer>: Ditto.
584 <objfile>: Ditto.
585 <call_site_htab>: Ditto.
586 <includes>: Ditto.
587 <user>: Ditto.
588 <primary>: Delete
589 (SYMTAB_COMPUNIT): New macro.
590 (SYMTAB_BLOCKVECTOR): Update definition.
591 (SYMTAB_OBJFILE): Update definition.
592 (SYMTAB_DIRNAME): Update definition.
593 (struct compunit_symtab): New type. Common members among all source
594 symtabs within a compilation unit moved here. All uses updated.
595 (COMPUNIT_OBJFILE): New macro.
596 (COMPUNIT_FILETABS): New macro.
597 (COMPUNIT_DEBUGFORMAT): New macro.
598 (COMPUNIT_PRODUCER): New macro.
599 (COMPUNIT_DIRNAME): New macro.
600 (COMPUNIT_BLOCKVECTOR): New macro.
601 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
602 (COMPUNIT_LOCATIONS_VALID): New macro.
603 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
604 (COMPUNIT_CALL_SITE_HTAB): New macro.
605 (COMPUNIT_MACRO_TABLE): New macro.
606 (ALL_COMPUNIT_FILETABS): New macro.
607 (compunit_symtab_ptr): New typedef.
608 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
609
005e2509
JB
6102014-11-20 Joel Brobecker <brobecker@adacore.com>
611
612 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
613 if the TYPE_CODE of range_type's base type does not match
614 the TYPE_CODE of encoding_type's base type.
615
2b0f535a
JB
6162014-11-19 Joel Brobecker <brobecker@adacore.com>
617
618 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
619 it starts with '<'.
620
8908fca5
JB
6212014-11-19 Joel Brobecker <brobecker@adacore.com>
622
623 * ada-lang.c (ada_is_redundant_range_encoding): New function.
624 (ada_is_redundant_index_type_desc): New function.
625 (to_fixed_array_type): Ignore parallel XA type if redundant.
626
4a46959e
JB
6272014-11-19 Joel Brobecker <brobecker@adacore.com>
628
629 * ada-lang.c (constrained_packed_array_type): Set the length
630 of the return array as if both bounds where zero if that
631 returned array's index type is dynamic.
632
2acf986b
YQ
6332014-11-19 Yao Qi <yao@codesourcery.com>
634
635 * config/i386/go32.mh (CC): Remove.
636
439247b6
DE
6372014-11-18 Doug Evans <xdje42@gmail.com>
638
639 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
640 updated.
641
4d663531
DE
6422014-11-18 Doug Evans <xdje42@gmail.com>
643
644 * buildsym.c (buildsym_objfile): New static global.
645 (buildsym_comp_dir): New static global.
646 (finish_block_internal): Delete arg objfile. All callers updated.
647 (finish_block): Delete arg objfile. All callers updated.
648 (start_subfile): Delete arg dirname. All callers updated.
649 (patch_subfile_names): Update buildsym_comp_dir.
650 (get_macro_table): Delete arg objfile. All callers updated.
651 (start_symtab): New arg objfile. All callers updated.
652 Rename arg dirname to comp_dir.
653 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
654 (end_symtab_get_static_block): Delete arg objfile. All callers
655 updated.
656 (end_symtab_without_blockvector): Ditto.
657 (end_symtab_with_blockvector): Ditto.
658 (end_symtab_from_static_block): Ditto.
659 (end_symtab): Ditto.
660 (end_expandable_symtab): Ditto.
661 (augment_type_symtab): Ditto.
662 * coffread.c (coff_start_symtab): New arg objfile. All callers
663 updated.
664
8435453b
DE
6652014-11-18 Doug Evans <xdje42@gmail.com>
666
667 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
668 updated.
669
ee6f8984
DE
6702014-11-18 Doug Evans <xdje42@gmail.com>
671
672 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
673 symtab.dirname updated to use it.
674
eb822aa6
DE
6752014-11-18 Doug Evans <xdje42@gmail.com>
676
677 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
678 symtab.objfile updated to use it.
679
98387a29
DE
6802014-11-18 Doug Evans <xdje42@gmail.com>
681
682 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
683
aff08958
DE
6842014-11-18 Doug Evans <xdje42@gmail.com>
685
686 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
687 SYMBOL_OBJFILE.
688 * findvar.c (default_read_var_value): Ditto.
689 * jv-lang.c (add_class_symtab_symbol): Ditto.
690 * parse.c (operator_check_standard): Ditto.
691 * printcmd.c (address_info): Ditto.
692 * symtab.c (fixup_symbol_section): Ditto.
693 (skip_prologue_sal): Ditto.
694 * tracepoint.c (scope_info): Ditto.
695 * valops.c (find_function_in_inferior): Ditto.
696 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
697 * python/py-symbol.c (set_symbol): Ditto.
698
7bab9b58
DE
6992014-11-18 Doug Evans <xdje42@gmail.com>
700
701 * buildsym.c (main_subfile): New static global.
702 (free_subfiles_list): New function.
703 (start_symtab): Set main_subfile.
704 (restart_symtab): Replace init of subfiles, current_subfile with
705 call to free_subfiles_list.
706 (watch_main_source_file_lossage): Use main_subfile.
707 (reset_symtab_globals): Replace init of current_subfile with call
708 to free_subfiles_list.
709 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
710 functions, split out from ...
711 (end_symtab_from_static_block): ... here. Rewrite to call them.
712
f194fefb
DE
7132014-11-18 Doug Evans <xdje42@gmail.com>
714
715 The result of symtab expansion is always a primary symtab.
716 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
717 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
718 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
719 (psymtab_to_symtab): Add comment and assert.
720 (map_matching_symbols_psymtab): Remove unnecessary test for
721 non-primary symtab.
722
34248c3a
DE
7232014-11-15 Doug Evans <xdje42@gmail.com>
724
725 PR symtab/17559
726 * symtab.c (find_pc_line_symtab): New function.
727 * symtab.h (find_pc_line_symtab): Declare.
728 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
729 find_pc_symtab.
730 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
731 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
732 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
733 * tui/tui-win.c (make_visible_with_new_height): Ditto.
734 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
735 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
736
2097ae25
DE
7372014-11-15 Doug Evans <xdje42@gmail.com>
738
739 * symtab.c (expand_symtab_containing_pc): Renamed from
740 find_pc_sect_symtab_via_partial. All callers updated.
741
1ada499f
YQ
7422014-11-15 Yao Qi <yao@codesourcery.com>
743
744 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
745
355e2102
JB
7462014-11-14 Joel Brobecker <brobecker@adacore.com>
747
748 * common/common-defs.h: Move <stdarg.h> #include ahead of
749 <stdio.h> #include.
750
83030110
PA
7512014-11-14 Pedro Alves <palves@redhat.com>
752
753 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
754 [!PHONY_ICONV] (gdb_iconv): New function.
755 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
756
a8719064
DE
7572014-11-13 Doug Evans <dje@google.com>
758
759 PR symtab/17591
760 * dwarf2read.c (find_slot_in_mapped_hash): Handle
761 "(anonymous namespace)".
762
60f7655a
DE
7632014-11-13 Doug Evans <dje@google.com>
764
765 * dwarf2read.c (update_enumeration_type_from_children): Avoid
766 infinite loop.
767
5784b3ca
JK
7682014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 * NEWS (maint set target-async): Fix typo.
771
6218dc4b
PA
7722014-11-12 Pedro Alves <palves@redhat.com>
773
774 * infrun.c (enum infwait_states, infwait_state): Delete.
775
af48d08f
PA
7762014-11-12 Pedro Alves <palves@redhat.com>
777
778 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
779 Rewrite stepping over a permanent breakpoint.
780 (thread_still_needs_step_over, proceed): Don't set
781 stepping_over_breakpoint for permanent breakpoints.
782 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
783 single-step breakpoints out of the target on hardware step
784 targets.
785 (process_event_stop_test): If stepping a permanent breakpoint
786 doesn't hit the step-resume breakpoint, delete the step-resume
787 breakpoint.
788 (switch_back_to_stepped_thread): Also check if the stepped thread
789 has advanced already on hardware step targets.
790 (currently_stepping): Return true if the thread stepped a
791 breakpoint.
792
1a853c52
PA
7932014-11-12 Pedro Alves <palves@redhat.com>
794
795 Mark locations as permanent, not the whole breakpoint.
796 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
797 (mark_breakpoints_out): Don't mark permanent breakpoints as
798 uninserted.
799 (breakpoint_init_inferior): Use mark_breakpoints_out.
800 (breakpoint_here_p): Adjust.
801 (bpstat_stop_status, describe_other_breakpoints): Remove handling
802 of permanent breakpoints.
803 (make_breakpoint_permanent): Mark each location as permanent,
804 instead of marking the breakpoint.
805 (add_location_to_breakpoint): If the location is permanent, mark
806 it as such, and as inserted.
807 (init_breakpoint_sal): Don't make the breakpoint permanent here.
808 (bp_location_compare, update_global_location_list): Adjust.
809 (update_breakpoint_locations): Don't make the breakpoint permanent
810 here.
811 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
812 breakpoints.
813 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
814 (struct bp_location) <permanent>: New field.
815 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
816 reference to bp_permanent.
817
ae9bb220
PA
8182014-11-12 Pedro Alves <palves@redhat.com>
819
820 * arch-utils.c (default_skip_permanent_breakpoint): New function.
821 * arch-utils.h (default_skip_permanent_breakpoint): New
822 declaration.
823 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
824 Install default_skip_permanent_breakpoint as default method.
825 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
826 (i386_gdbarch_init): Don't install it.
827 * infrun.c (resume): Assume there's always a
828 gdbarch_skip_permanent_breakpoint implementation.
829 * gdbarch.h, gdbarch.c: Regenerate.
830
015de688
DC
8312014-11-11 Daniel Colascione <dancol@dancol.org>
832
833 Warn about cross-PID-namespace debugging.
834 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
835 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
836 * linux-thread-db.c (check_pid_namespace_match): New function.
837 (thread_db_inferior_created): Call it.
838
26a84859
DE
8392014-11-10 Doug Evans <xdje42@gmail.com>
840
841 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
842 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
843
712a2e6d
DE
8442014-11-10 Doug Evans <xdje42@gmail.com>
845
846 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
847
af3768e9
DE
8482014-11-10 Doug Evans <xdje42@gmail.com>
849
850 PR symtab/17564
851 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
852 (lookup_static_symbol): Move definition to new location and rewrite.
853 (lookup_symbol_in_objfile): New function.
854 (lookup_symbol_global_iterator_cb): Call it.
855
b1f28d99
UW
8562014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
857
858 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
859
b7a084be
PA
8602014-11-07 Pedro Alves <palves@redhat.com>
861
862 * infrun.c (process_event_stop_test) <subroutine check>: Don't
863 check if we did a "nexti" inside a prologue.
864 * symtab.c (in_prologue): Delete function.
865 * symtab.h (in_prologue): Delete declaration.
866
67be31e5
DE
8672014-11-06 Doug Evans <xdje42@gmail.com>
868
869 * symtab.h (lookup_global_symbol): Improve function comment.
870
08724ab7
DE
8712014-11-06 Doug Evans <xdje42@gmail.com>
872
873 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
874 All callers updated.
875 * symtab.h (lookup_global_symbol): Update decl.
876 (lookup_static_symbol): Move decl to better location.
877
d9060ba6
DE
8782014-11-06 Doug Evans <xdje42@gmail.com>
879
880 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
881
74016e12
DE
8822014-11-06 Doug Evans <xdje42@gmail.com>
883
884 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
885 All callers updated.
886 (lookup_symbol_in_all_objfiles): Renamed from
887 lookup_symbol_aux_symtabs. All callers updated.
888 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
889 All callers updated.
890 (lookup_symbol_in_objfile_symtabs): Renamed from
891 lookup_symbol_aux_objfile. All callers updated.
892
d1a2d36d
DE
8932014-11-06 Doug Evans <xdje42@gmail.com>
894
895 * symtab.c (lookup_symbol_in_block): Renamed from
896 lookup_symbol_aux_block. All callers updated.
897
24d864bb
DE
8982014-11-06 Doug Evans <xdje42@gmail.com>
899
900 * symtab.c (lookup_static_symbol): Renamed from
901 lookup_static_symbol_aux. All callers updated.
902 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
903 All callers updated.
904
358d6ab3
DE
9052014-11-06 Doug Evans <xdje42@gmail.com>
906
907 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
908 * block.c (block_lookup_symbol): Use it.
909 * cp-support.c (make_symbol_overload_list_block): Use it.
910 * symtab.c (iterate_over_symbols): Use it.
911
16b2eaa1
DE
9122014-11-06 Doug Evans <xdje42@gmail.com>
913
914 * symtab.c (lookup_block_symbol): Moved to ...
915 * block.c (block_lookup_symbol): ... here and renamed.
916 All callers updated.
917 * block.h (block_lookup_symbol): Declare.
918 * symtab.h (lookup_block_symbol): Delete.
919
2dd2cd1c
DE
9202014-11-06 Doug Evans <xdje42@gmail.com>
921
922 * ada-lang.c (ada_make_symbol_completion_list): Use
923 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
924 * symtab.c (lookup_objfile_from_block): Ditto.
925
d4c58915
DE
9262014-11-06 Doug Evans <xdje42@gmail.com>
927
928 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
929 TYPE_CODE_STRUCT.
930
9c1877ea
DE
9312014-11-06 Doug Evans <xdje42@gmail.com>
932
933 * objfiles.c (get_objfile_arch): Constify.
934 * objfiles.h (get_objfile_arch): Update prototype.
935 * solib.c (solib_global_lookup): Fetch arch from objfile,
936 not target_gdbarch.
937
426a4079
SL
9382014-11-06 Sandra Loosemore <sandra@codesourcery.com>
939
940 * nios2-tdep.c (wild_insn): Delete.
941 (profiler_insn, irqentry_insn): Delete.
942 (nios2_match_sequence): Delete.
943 (nios2_analyze_prologue): Update comments. Remove matching
944 of obsolete profiler_insn and irqentry_insn sequences.
945
ee11262d
AM
9462014-11-05 Alan Modra <amodra@gmail.com>
947
948 * charset.c (convert_between_encodings): Shrink obstack using
949 obstack_blank_fast.
950 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
951 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
952 to char* before doing pointer arithmetic.
ee11262d 953
c87e6d00
SM
9542014-11-04 Simon Marchi <simon.marchi@ericsson.com>
955
956 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
957
441ef17f
PA
9582014-11-04 Pedro Alves <palves@redhat.com>
959
960 * breakpoint.c (breakpoint_thread_match): Delete function.
961 * breakpoint.h (breakpoint_thread_match): Delete declaration.
962
e0f52461
SC
9632014-11-03 Siva Chandra Reddy <sivachandra@google.com>
964
965 PR c++/17494
966 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
967 the method args also under EVAL_SKIP when evaluating method
968 calls under EVAL_SKIP.
969
a0b4d890
YQ
9702014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
971
972 * dwarf2loc.c (read_pieced_value): Do big endian
973 processing only if gdb_regnum is not -1.
974 (write_pieced_value): Ditto.
975
9762014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
977
978 * arm-linux-tdep.c (arm_linux_init_abi): Use
979 info.byte_order_for_code to choose endianity of breakpoint
980 instructions snippets.
981
9822014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
983
984 * arm-tdep.c (extract_arm_insn): Use
985 gdbarch_byte_order_for_code to read arm instruction.
986
e82149ff
DE
9872014-11-02 Doug Evans <xdje42@gmail.com>
988
989 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
990
d7ee84f1
DE
9912014-11-02 Doug Evans <xdje42@gmail.com>
992
993 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
994 main_subfile before returning.
995
4f072d17
DE
9962014-10-31 Doug Evans <xdje42@gmail.com>
997
998 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
999 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1000
8301c89e
DE
10012014-10-31 Doug Evans <xdje42@gmail.com>
1002
1003 * valops.c (value_cast_pointers): Fix whitespace.
1004 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1005 Ditto.
1006
02be9a71
DE
10072014-10-30 Doug Evans <dje@google.com>
1008
1009 * NEWS: Mention ability add attributes to gdb.Objfile and
1010 gdb.Progspace objects.
1011 * python/py-objfile.c (objfile_object): New member dict.
1012 (objfpy_dealloc): Py_XDECREF dict.
1013 (objfpy_initialize): Initialize dict.
1014 (objfile_getset): Add __dict__.
1015 (objfile_object_type): Set tp_dictoffset member.
1016 * python/py-progspace.c (progspace_object): New member dict.
1017 (pspy_dealloc): Py_XDECREF dict.
1018 (pspy_initialize): Initialize dict.
1019 (pspace_getset): Add __dict__.
1020 (pspace_object_type): Set tp_dictoffset member.
1021
6427bef6
YQ
10222014-10-30 Yao Qi <yao@codesourcery.com>
1023
1024 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1025 replace '\\' with '\\\\'.
1026
f60325be
JB
10272014-10-29 Joel Brobecker <brobecker@adacore.com>
1028
1029 GDB 7.8.1 released.
1030
ab917dfb
PA
10312014-10-29 Pedro Alves <palves@redhat.com>
1032
1033 PR gdb/17408
1034 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1035 instead of assuming a thread with a stepping range is always
1036 stepping.
1037
d3d4baed
PA
10382014-10-29 Pedro Alves <palves@redhat.com>
1039
1040 PR python/17372
1041 * event-top.c (change_line_handler): Call
1042 gdb_rl_callback_handler_remove instead of
1043 rl_callback_handler_remove.
1044 (callback_handler_installed): New global.
1045 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1046 (gdb_rl_callback_handler_reinstall): New functions.
1047 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1048 gdb_rl_callback_handler_install instead of
1049 rl_callback_handler_remove and rl_callback_handler_install.
1050 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1051 instead of rl_callback_handler_remove.
1052 * event-top.h (gdb_rl_callback_handler_remove)
1053 (gdb_rl_callback_handler_install)
1054 (gdb_rl_callback_handler_reinstall): New declarations.
1055 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1056 cleanup function.
1057 (fetch_inferior_event): Install it.
1058 * top.c (gdb_readline_wrapper_line) Call
1059 gdb_rl_callback_handler_remove instead of
1060 rl_callback_handler_remove.
1061 (gdb_readline_wrapper_cleanup): Don't call
1062 rl_callback_handler_install.
1063
6e5d7f39
PA
10642014-10-29 Pedro Alves <palves@redhat.com>
1065
1066 * event-top.c (command_line_handler): Clear the first byte of
1067 linebuffer, when it is first allocated.
1068
551cb6a5
PA
10692014-10-29 Pedro Alves <palves@redhat.com>
1070
1071 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1072 TRY_CATCH.
1073
1e1e619b
PA
10742014-10-29 Pedro Alves <palves@redhat.com>
1075
1076 PR tui/16138
1077 PR tui/17519
1078 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1079 (tui_allowed_p): Delete function.
1080 * tui/tui.c: Include "interps.h".
1081 (tui_enable): Don't use tui_allowed_p. Error out here with
1082 detailed error messages if the TUI is the top level interpreter,
1083 or if output is not a terminal. Use newterm instead of initscr,
1084 and error out if initializing the terminal fails. Also error out if
1085 the terminal doesn't support cursor addressing.
1086 * tui/tui.h (tui_allowed_p): Delete declaration.
1087
6041179a
JB
10882014-10-29 Joel Brobecker <brobecker@adacore.com>
1089
1090 * arm-tdep.c (arm_skip_stack_protector): Return early if
1091 address loaded by first "ldr" instruction does not have
1092 a corresponding minimal symbol. Update comment.
1093
6ae274b7
YQ
10942014-10-29 Yao Qi <yao@codesourcery.com>
1095
1096 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1097 loaded address correctly of ldr instruction.
1098
7f5ef605
PA
10992014-10-28 Pedro Alves <palves@redhat.com>
1100
1101 PR gdb/12623
1102 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1103 field.
1104 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1105 thread's stepped_breakpoint field. Skip if reverse debugging.
1106 Add comment.
1107 (init_thread_stepping_state, handle_signal_stop): Clear the
1108 thread's stepped_breakpoint field.
1109
7d1a114c
PA
11102014-10-27 Pedro Alves <palves@redhat.com>
1111
1112 * remote.c (remote_thread_alive): New, factored out from ...
1113 (remote_thread_alive): ... this.
1114 (remote_update_thread_list): Bail out before deleting threads if
1115 the target returned an empty list, and, the current thread has a
1116 magic/fake ptid.
1117
e5f8a7cc
PA
11182014-10-27 Pedro Alves <palves@redhat.com>
1119
1120 * infrun.c (handle_signal_stop): Also skip handlers when a random
1121 signal arrives while handling a "stepi" or a "nexti". Set the
1122 thread's 'step_after_step_resume_breakpoint' flag.
1123
71e396f9
LM
11242014-10-27 Luis Machado <lgustavo@codesourcery.com>
1125
1126 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1127 (arm_record_ld_st_imm_offset): Reimplement to cover all
1128 load/store cases for ARM opcode 010.
1129 (arm_record_ld_st_multiple): Reimplement to cover all
1130 load/store cases for ARM opcode 100.
1131
3aee438b
DE
11322014-10-26 Doug Evans <xdje42@gmail.com>
1133
1134 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1135
f88cb4b6
DE
11362014-10-26 Doug Evans <xdje42@gmail.com>
1137
1138 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1139 parameter "kind" to "block_index".
1140 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1141 "block_index".
1142 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1143
a023a30f
DE
11442014-10-26 Doug Evans <xdje42@gmail.com>
1145
1146 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1147
4c35218e
DE
11482014-10-26 Doug Evans <xdje42@gmail.com>
1149
1150 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1151 obstack_alloc.
1152
f08e8df3
DE
11532014-10-26 Doug Evans <xdje42@gmail.com>
1154
1155 * parser-defs.h (block_found): Move decl from here ...
1156 * symtab.h (block_found): ... to here.
1157
cf901d3b
DE
11582014-10-26 Doug Evans <xdje42@gmail.com>
1159
1160 * symtab.h (struct field_of_this_result): Fix typo in comment.
1161 (lookup_symbol_in_language): Move function comment here.
1162 (lookup_symbol): Improve function comment.
1163 (basic_lookup_symbol_nonlocal): Ditto.
1164 (lookup_symbol_static, lookup_symbol_global): Ditto.
1165 (lookup_symbol_aux_block): Ditto.
1166 (lookup_language_this): Add function comment.
1167 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1168 function comment.
1169 (lookup_block_symbol): Improve function comment.
1170 (lookup_struct): Fix capitalization in function comment.
1171 (lookup_transparent_type): Add function comment.
1172 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1173 Improve function comment.
1174 (lookup_objfile_from_block): Add function comment.
1175 * symtab.c (lookup_symbol_in_language): Update function comment.
1176 (lookup_symbol, lookup_language_this): Ditto.
1177 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1178 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1179 (basic_lookup_symbol_nonlocal): Ditto.
1180 (lookup_symbol_static, lookup_symbol_global): Ditto.
1181 (lookup_transparent_type, lookup_block_symbol): Ditto.
1182
ff6c39cf
DE
11832014-10-25 Doug Evans <xdje42@gmail.com>
1184
1185 * symtab.c (types_info): Delete forward decl.
1186 (functions_info, variables_info, sources_info): Ditto.
1187 (_initialize_symtab): Rewrite forward decl to use
1188 initialize_file_ftype.
1189
ec201f0c
DE
11902014-10-25 Doug Evans <xdje42@gmail.com>
1191
1192 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1193
ca040673
DE
11942014-10-25 Doug Evans <xdje42@gmail.com>
1195
1196 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1197 of local var child_die.
1198
6f259a23
DB
11992014-10-24 Don Breazeal <donb@codesourcery.com>
1200
1201 * infrun.c (follow_fork_inferior): Update fork message printing
1202 to use target_terminal_ours_for_output instead of
1203 target_terminal_ours, to use _() for all format strings, to print
1204 "vfork" instead of "fork" for vforks, and to add a detach message.
1205 (handle_vfork_child_exec_or_exit): Update message printing to use
1206 target_terminal_ours_for_output instead of target_terminal_ours, to
1207 use _() for all format strings, and to fix some formatting.
1208
09dd9a69
PA
12092014-10-24 Pedro Alves <palves@redhat.com>
1210
1211 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1212 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1213 * config/vax/vax.mh: Delete.
1214 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1215 obsolete configurations section.
1216 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1217 * vax-nat.c: Delete file.
1218
5ab806de
PA
12192014-10-24 Pedro Alves <palves@redhat.com>
1220
1221 * NEWS (Removed targets): Add OS/arch column.
1222
3433cfa5
SC
12232014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1224
1225 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1226 on the arg type of a constructor only if it is of reference type.
1227
96ba4233
SL
12282014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1229
1230 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1231 accessors and constants from nios2 opcodes update.
1232 (nios2_get_next_pc): Likewise.
1233
28153fd3
DE
12342014-10-19 Doug Evans <xdje42@gmail.com>
1235
1236 * gdbthread.h (set_running): Fix comment.
1237 (set_executing, finish_thread_state): Fix comment.
1238
fc9b8e47
DE
12392014-10-18 Doug Evans <xdje42@gmail.com>
1240
1241 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1242
4ffbba72
DE
12432014-10-17 Doug Evans <dje@google.com>
1244
1245 * NEWS: Mention new event gdb.clear_objfiles.
1246 * python/py-event.h (emit_clear_objfiles_event): Clear
1247 * python/py-events.h (events_object): New member clear_objfiles.
1248 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1249 event.
1250 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1251 emit clear_objfiles event.
1252 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1253 function.
1254 (emit_clear_objfiles_event): New function.
1255 (clear_objfiles): New event.
1256 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1257 Declare.
1258 * python/python.c (_initialize_python): Call
1259 gdbpy_initialize_clear_objfiles_event.
1260
d096d8c1
DE
12612014-10-17 Doug Evans <dje@google.com>
1262
1263 * NEWS: Mention new gdb.Objfile.progspace attribute.
1264 * python/py-objfile.c (objfpy_get_progspace): New function.
1265 (objfile_getset): New entry for "progspace".
1266
6c4486e6
PA
12672014-10-17 Pedro Alves <palves@redhat.com>
1268
1269 PR gdb/17471
1270 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1271 returns a copy of the input.
1272 (run_command_1, continue_command, step_1, jump_command)
1273 (signal_command, until_command, advance_command, finish_command)
1274 (attach_command): Adjust and install a cleanup to free the
1275 stripped args.
1276
0ff33695
PA
12772014-10-17 Pedro Alves <palves@redhat.com>
1278
1279 PR gdb/17300
1280 * infcmd.c (continue_1): If continuing all threads in the
1281 foreground, make sure the inferior's terminal settings are put in
1282 effect.
1283
6fdebc3d
PA
12842014-10-17 Pedro Alves <palves@redhat.com>
1285
1286 PR gdb/17472
1287 * annotate.c (annotate_breakpoints_invalid): Use
1288 target_terminal_our_for_output instead of target_terminal_ours.
1289 Give back the terminal to the target.
1290 (annotate_frames_invalid): Likewise.
1291
5842f62a
PA
12922014-10-17 Pedro Alves <palves@redhat.com>
1293
1294 * target.c (enum terminal_state): New enum.
1295 (terminal_state): New global.
1296 (target_terminal_init): New function.
1297 (target_terminal_inferior): Skip if inferior already owns the
1298 terminal.
1299 (target_terminal_ours, target_terminal_ours_for_output): New
1300 functions.
1301 * target.h (target_terminal_init): Convert to function prototype.
1302 (target_terminal_ours_for_output): Convert to function prototype
1303 and tweak comment.
1304 (target_terminal_ours): Convert to function prototype and tweak
1305 comment.
1306 * windows-nat.c (do_initial_windows_stuff): Call
1307 target_terminal_init instead of child_terminal_init_with_pgrp.
1308
32a8097b
PA
13092014-10-17 Pedro Alves <palves@redhat.com>
1310
1311 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1312 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1313 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1314 solib-osf.c.
1315 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1316 * ada-lang.h [__alpha__ && __osf__]
1317 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1318 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1319 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1320 GDB_OSABI_OSF1.
1321 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1322 files.
1323 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1324 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1325 * configure: Regenerate.
1326 * configure.ac: Remove references to osf.
1327 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1328 section. Remove all other references to osf.
1329 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1330 Remove all other references to osf.
1331 * dec-thread.c: Delete file.
1332 * defs.h (GDB_OSABI_OSF1): Delete.
1333 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1334 defined.
1335 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1336 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1337 Delete code.
1338 (unconditionally_kill_inferior)
1339 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1340 * solib-osf.c: Delete file.
1341
80134cf5
PA
13422014-10-17 Pedro Alves <palves@redhat.com>
1343
1344 * remote.c (clear_threads_listing_context): Move higher up, out of
1345 the HAVE_LIBEXPAT guard.
1346
89c7137f
TG
13472014-10-16 Tristan Gingold <gingold@adacore.com>
1348
1349 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1350 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1351 on amd64.
1352
44ee4a52
PA
13532014-10-15 Pedro Alves <palves@redhat.com>
1354
1355 * dec-thread.c (dec_thread_count_gdb_threads)
1356 (dec_thread_add_gdb_thread): Delete.
1357 (dec_thread_update_thread_list): Delete.
1358 (dec_thread_find_new_threads): Rename to ...
1359 (dec_thread_update_thread_list): ... this. Delete GDB-size
1360 threads that are no longer found in dec_thread_list.
1361 (resync_thread_list): Delete.
1362 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1363 resync_thread_list.
1364
ab970af1
PA
13652014-10-15 Pedro Alves <palves@redhat.com>
1366
1367 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1368 * remote.c (remote_update_thread_list): Skip calling prune_threads
1369 if any thread listing method is supported, and instead walk over
1370 the set of remote threads listed, deleting those that are not
1371 found in GDB's thread list.
1372
e8032dde
PA
13732014-10-15 Pedro Alves <palves@redhat.com>
1374
1375 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1376 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1377 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1378 (bsd_uthread_target): Adjust.
1379 * corelow.c (core_open): Adjust.
1380 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1381 (dec_thread_update_thread_list): New function.
1382 (init_dec_thread_ops): Adjust.
1383 * gdbthread.h (prune_threads): New declaration.
1384 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1385 (thread_db_update_thread_list): ... this. Call prune_threads.
1386 (init_thread_db_ops): Adjust.
1387 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1388 (procfs_update_thread_list): ... this. Call prune_threads.
1389 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1390 Adjust.
1391 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1392 (obsd_update_thread_list): ... this. Call prune_threads.
1393 (obsd_add_target): Adjust.
1394 * procfs.c (procfs_target): Adjust.
1395 (procfs_notice_thread): Update comment.
1396 (procfs_find_new_threads): Rename to ...
1397 (procfs_update_thread_list): ... this. Call prune_threads.
1398 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1399 comment.
1400 (ravenscar_wait): Adjust.
1401 (ravenscar_find_new_threads): Rename to ...
1402 (ravenscar_update_thread_list): ... this. Call prune_threads.
1403 (init_ravenscar_thread_ops): Adjust.
1404 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1405 (record_btrace_update_thread_list): ... this. Adjust comment.
1406 (init_record_btrace_ops): Adjust.
1407 * remote.c (remote_threads_info): Rename to ...
1408 (remote_update_thread_list): ... this. Call prune_threads.
1409 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1410 Adjust.
1411 * sol-thread.c (check_for_thread_db): Adjust.
1412 (sol_find_new_threads_callback): Rename to ...
1413 (sol_update_thread_list_callback): ... this.
1414 (sol_find_new_threads): Rename to ...
1415 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1416 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1417 * target-delegates.c: Regenerate.
1418 * target.c (target_find_new_threads): Rename to ...
1419 (target_update_thread_list): ... this.
1420 * target.h (struct target_ops): Rename to_find_new_threads field
1421 to to_update_thread_list.
1422 (target_find_new_threads): Rename to ...
1423 (target_update_thread_list): ... this.
1424 * thread.c (prune_threads): Make extern.
1425 (update_thread_list): Adjust.
1426
6dc54d91
PA
14272014-10-15 Pedro Alves <palves@redhat.com>
1428
1429 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1430 Add describing comment. Return -1 if the qL packet is not
1431 supported.
1432 (struct thread_item, thread_item_t): Move higher up in
1433 the file. Add comments.
1434 (struct threads_parsing_context): Move higher up in
1435 the file, add comments, and remote to ...
1436 (struct threads_listing_context): ... this.
1437 (remote_newthread_step): Don't add the thread to GDB's thread
1438 database here. Instead push it to the thread_listing_context
1439 list.
1440 (remote_find_new_threads): Rename to ...
1441 (remote_get_threads_with_ql): ... this. Add target_ops and
1442 targets_listing_context parameters. Pass down context.
1443 (start_thread): Adjust.
1444 (clear_threads_parsing_context): Rename to ...
1445 (clear_threads_listing_context): ... this.
1446 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1447 remote_threads_info.
1448 (remote_get_threads_with_qthreadinfo): Ditto.
1449 (remote_threads_info): Reimplement.
1450
36728e82
PA
14512014-10-15 Pedro Alves <palves@redhat.com>
1452
1453 * infrun.c (resume): Don't force displaced-stepping for all
1454 single-steps on software single-stepping archs.
1455
34b7e8a6
PA
14562014-10-15 Pedro Alves <palves@redhat.com>
1457
1458 * breakpoint.c (single_step_breakpoints): Delete global.
1459 (insert_single_step_breakpoint): Adjust to store the breakpoint
1460 pointer in the current thread.
1461 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1462 (cancel_single_step_breakpoints): Delete functions.
1463 (breakpoint_has_location_inserted_here): Make extern.
1464 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1465 breakpoint list.
1466 * breakpoint.h (breakpoint_has_location_inserted_here): New
1467 declaration.
1468 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1469 (cancel_single_step_breakpoints): Remove declarations.
1470 * gdbthread.h (struct thread_control_state)
1471 <single_step_breakpoints>: New field.
1472 (delete_single_step_breakpoints)
1473 (thread_has_single_step_breakpoints_set)
1474 (thread_has_single_step_breakpoint_here): New declarations.
1475 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1476 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1477 (singlestep_pc): Delete globals.
1478 (infrun_thread_ptid_changed): Remove references to removed
1479 globals.
1480 (resume_cleanups): Delete the current thread's single-step
1481 breakpoints.
1482 (maybe_software_singlestep): Remove references to removed globals.
1483 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1484 delete_single_step_breakpoints.
1485 (init_wait_for_inferior): Remove references to removed globals.
1486 (delete_thread_infrun_breakpoints): Delete the thread's
1487 single-step breakpoints too.
1488 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1489 single-step breakpoints here.
1490 (delete_stopped_threads_single_step_breakpoints): New function.
1491 (adjust_pc_after_break): Adjust to use
1492 thread_has_single_step_breakpoints_set.
1493 (handle_inferior_event): Remove references to removed globals.
1494 Use delete_stopped_threads_single_step_breakpoints.
1495 (handle_signal_stop): Adjust to per-thread single-step
1496 breakpoints. Swap test order to do cheaper tests first.
1497 (switch_back_to_stepped_thread): Extend debug output. Remove
1498 references to removed globals.
1499 * record-full.c (record_full_wait_1): Adjust to per-thread
1500 single-step breakpoints.
1501 * thread.c (delete_single_step_breakpoints)
1502 (thread_has_single_step_breakpoints_set)
1503 (thread_has_single_step_breakpoint_here): New functions.
1504 (clear_thread_inferior_resources): Also delete the thread's
1505 single-step breakpoints.
1506
5b834a0a
PA
15072014-10-15 Pedro Alves <palves@redhat.com>
1508
1509 * thread.c (delete_thread_breakpoint): New function.
1510 (delete_step_resume_breakpoint)
1511 (delete_exception_resume_breakpoint): Use it.
1512 (delete_at_next_stop): New function.
1513 (clear_thread_inferior_resources): Use delete_at_next_stop.
1514
a1fd2fa5
PA
15152014-10-15 Pedro Alves <palves@redhat.com>
1516
1517 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1518 (breakpoint_inserted_here_p): ... here. Remove special case for
1519 software single-step breakpoints.
1520 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1521 (software_breakpoint_inserted_here_p): ... here. Remove special
1522 case for software single-step breakpoints.
1523 (bp_target_info_copy_insertion_state)
1524 (deprecated_insert_raw_breakpoint)
1525 (deprecated_remove_raw_breakpoint): Delete functions.
1526 * breakpoint.h (deprecated_insert_raw_breakpoint)
1527 (deprecated_remove_raw_breakpoint): Remove declarations.
1528
7c16b83e
PA
15292014-10-15 Pedro Alves <palves@redhat.com>
1530
1531 PR breakpoints/9649
1532 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1533 Delete array globals.
1534 (single_step_breakpoints): New global.
1535 (breakpoint_xfer_memory): Remove special handling for single-step
1536 breakpoints.
1537 (update_breakpoints_after_exec): Delete bp_single_step
1538 breakpoints.
1539 (detach_breakpoints): Remove special handling for single-step
1540 breakpoints.
1541 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1542 (bpstat_stop_status): Add comment.
1543 (bpstat_what, bptype_string, print_one_breakpoint_location)
1544 (adjust_breakpoint_address, init_bp_location): Handle
1545 bp_single_step.
1546 (new_single_step_breakpoint): New function.
1547 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1548 handling for single-step breakpoints.
1549 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1550 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1551 Rewrite.
1552 (detach_single_step_breakpoints, find_single_step_breakpoint):
1553 Delete functions.
1554 (breakpoint_has_location_inserted_here): New function.
1555 (single_step_breakpoint_inserted_here_p): Rewrite.
1556 * breakpoint.h: Remove FIXME.
1557 (enum bptype) <bp_single_step>: New enum value.
1558 (insert_single_step_breakpoint): Update comment.
1559 * infrun.c (resume_cleanups)
1560 (delete_step_thread_step_resume_breakpoint): Remove single-step
1561 breakpoints.
1562 (fetch_inferior_event): Install a cleanup that removes infrun
1563 breakpoints.
1564 (switch_back_to_stepped_thread) <expect thread advanced also>:
1565 Clear step-over info.
1566
0cbcdb96
PA
15672014-10-15 Pedro Alves <palves@redhat.com>
1568
1569 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1570 (delete_thread_infrun_breakpoints): New function, with parts
1571 salvaged from delete_step_resume_breakpoint_callback.
1572 (delete_step_thread_step_resume_breakpoint): Delete.
1573 (for_each_just_stopped_thread_callback_func): New typedef.
1574 (for_each_just_stopped_thread): New function.
1575 (delete_just_stopped_threads_infrun_breakpoints): New function.
1576 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1577 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1578 ... this. Adjust.
1579 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1580
963f9c80
PA
15812014-10-15 Pedro Alves <palves@redhat.com>
1582
1583 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1584 trying to step past a non-steppable watchpoint.
1585 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1586 field.
1587 * infrun.c (struct step_over_info): Add new field
1588 'nonsteppable_watchpoint_p' and adjust comments.
1589 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1590 Adjust.
1591 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1592 (stepping_past_nonsteppable_watchpoint): New function.
1593 (step_over_info_valid_p): Also return true if stepping past a
1594 nonsteppable watchpoint.
1595 (proceed): Adjust call to set_step_over_info. Remove reference to
1596 init_infwait_state.
1597 (init_wait_for_inferior): Remove reference to init_infwait_state.
1598 (waiton_ptid): Delete global.
1599 (struct execution_control_state)
1600 <stepped_after_stopped_by_watchpoint>: Delete field.
1601 (wait_for_inferior, fetch_inferior_event): Always pass
1602 minus_one_ptid to target_wait.
1603 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1604 field.
1605 (init_infwait_state): Delete function.
1606 (handle_inferior_event): Remove infwait_state handling.
1607 (handle_signal_stop) <watchpoints handling>: Adjust after
1608 stepped_after_stopped_by_watchpoint removal. Don't remove
1609 breakpoints here nor set infwait_state. Set the thread's
1610 stepping_over_watchpoint flag, and call keep_going instead.
1611 (keep_going): Handle stepping_over_watchpoint. Adjust
1612 set_step_over_info calls.
1613 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1614 function.
1615
6cc83d2a
PA
16162014-10-15 Pedro Alves <palves@redhat.com>
1617
1618 * infrun.c (step_over_info_valid_p): New function.
1619 (resume): Use step_over_info_valid_p instead of checking the
1620 threads's trap_expected flag.
1621
6979730b
DE
16222014-10-15 Doug Evans <dje@google.com>
1623 Walfred Tedeschi <walfred.tedeschi@intel.com>
1624
1625 PR python/17364
1626 * python/lib/gdb/__init__.py (packages): Add "printer".
1627 * python/lib/gdb/command/bound_registers.py: Moved to ...
1628 * python/lib/gdb/printer/bound_registers.py: ... here.
1629 Add printer to global set of builtin printers. Rename printer from
1630 "bound" to "mpx_bound128".
1631 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1632 registered as global "builtin" printer.
1633 (add_builtin_pretty_printer): New function.
1634 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1635 gdb/printer/__init__.py.
1636
35a49624
IB
16372014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1638
1639 * Makefile.in (SFILES): Remove d-support.c.
1640 (COMMON_OBS): Remove d-support.o.
1641 * d-lang.h (d_parse_symbol): Remove declaration.
1642 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1643 * d-support.c: Remove file.
1644
8fa0c4f8
AA
16452014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1646
1647 * gdb/infrun.c (process_event_stop_test): Apply
1648 gdbarch_addr_bits_remove to longjmp resume address.
1649
3666da81
PA
16502014-10-15 Pedro Alves <palves@redhat.com>
1651
1652 * regformats/microblaze.dat: Delete file.
1653
449aa9df
AKA
16542014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1655
1656 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1657 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1658
ebb8ece2
SC
16592014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1660
1661 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1662 as non-trivial.
1663
82c48ac7
SC
16642014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1665
1666 PR c++/13403
1667 PR c++/15154
1668 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1669 with qualified args.
1670
c40cc657
JB
16712014-10-14 Joel Brobecker <brobecker@adacore.com>
1672
1673 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1674 of the case where the second operand is a pointer.
1675 <BINOP_SUB>: Likewise.
1676
0ea5cda8
SDJ
16772014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1678
1679 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1680 only if it is not NULL.
1681 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1682 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1683 (struct probe_ops) <clear_semaphore>: Likewise.
1684 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1685 not NULL.
1686 (stop_tracing): Likewise, for clear_semaphore.
1687
f7088df3
SDJ
16882014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1689
1690 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1691 using language_c, instead of current_language.
1692
4e1bbde0
DE
16932014-10-13 Doug Evans <dje@google.com>
1694
6ff5a0f6 1695 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1696 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1697 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1698 (pspy_new, pspace_to_pspace_object): Call it.
1699
c780cc2f
JK
17002014-10-13 Miroslav Franc <mfranc@redhat.com>
1701 Jan Kratochvil <jan.kratochvil@redhat.com>
1702
1703 Fix "save breakpoints" for "catch" command.
1704 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1705 newline.
1706
99894e11
JK
17072014-10-12 Miroslav Franc <mfranc@redhat.com>
1708
1709 Fix "save breakpoints" for "disable $bpnum" command.
1710 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1711
3831839c
PA
17122014-10-10 Pedro Alves <palves@redhat.com>
1713
1714 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1715 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1716 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1717 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1718 and been removed.
1719 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1720 * configure.ac: Remove references to IRIX.
1721 * configure.host: Add *-*-irix* to the obsolete hosts section.
1722 Remove all other references to irix.
1723 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1724 Delete files.
1725
cc3afae2
AKA
17262014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1727
1728 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1729 isn't valid, release the tdesc arch data and return NULL.
1730
cdfa0b0a
PA
17312014-10-10 Pedro Alves <palves@redhat.com>
1732
1733 * linux-tdep.c: Include observer.h.
1734 (linux_inferior_data): New global.
1735 (struct linux_info): New structure.
1736 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1737 (get_linux_inferior_data): New functions.
1738 (linux_vsyscall_range): Rename to ...
1739 (linux_vsyscall_range_raw): ... this.
1740 (linux_vsyscall_range): New function; handles caching.
1741 (_initialize_linux_tdep): Register linux_inferior_data. Install
1742 inferior_exit and inferior_appeared observers.
1743
8b9a549d
PA
17442014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1745 Pedro Alves <palves@redhat.com>
1746
1747 PR symtab/14466
1748 * solib-svr4.c (svr4_read_so_list): Rename to ...
1749 (svr4_current_sos_1): ... this and change the function comment.
1750 (svr4_current_sos): New function.
1751
3437254d
PA
17522014-10-10 Pedro Alves <palves@redhat.com>
1753
1754 * arch-utils.c (default_vsyscall_range): New function.
1755 * arch-utils.h (default_vsyscall_range): New declaration.
1756 * gdbarch.sh (vsyscall_range): New hook.
1757 * gdbarch.h, gdbarch.c: Regenerate.
1758 * linux-tdep.c (linux_vsyscall_range): New function.
1759 (linux_init_abi): Install linux_vsyscall_range as
1760 vsyscall_range gdbarch hook.
1761 * memrange.c (address_in_mem_range): New function.
1762 * memrange.h (address_in_mem_range): New declaration.
1763 * symfile-mem.c (find_vdso_size): Delete function.
1764 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1765
31cc0b80
PA
17662014-10-10 Pedro Alves <palves@redhat.com>
1767
1768 * infrun.c (normal_stop): Fix typo in comment.
1769
3e3286a2
SDJ
17702014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1771
1772 PR tdep/9390
1773 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1774 typo when using logical AND to determine instruction type.
1775
fcbdedf8
YQ
17762014-10-09 Yao Qi <yao@codesourcery.com>
1777
1778 * infrun.c (handle_signal_stop): Remove local variable
1779 'printed'.
1780
db984616
SS
17812014-10-08 Stan Shebs <stan@codesourcery.com>
1782
1783 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1784
3ba37e6c
GB
17852014-10-08 Gary Benson <gbenson@redhat.com>
1786
1787 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1788
a442d071
GB
17892014-10-08 Gary Benson <gbenson@redhat.com>
1790
1791 * common/common-defs.h: Include common-exceptions.h.
1792 * exceptions.h: Do not include common-exceptions.h.
1793
6f1947e8
GB
17942014-10-08 Gary Benson <gbenson@redhat.com>
1795
1796 * common/common-defs.h: Include cleanups.h.
1797 * common/common-exceptions.c: Do not include cleanups.h.
1798 * utils.h: Likewise.
1799
c765fdb9
GB
18002014-10-08 Gary Benson <gbenson@redhat.com>
1801
1802 * ada-lang.c: Do not include exceptions.h.
1803 * ada-valprint.c: Likewise.
1804 * amd64-tdep.c: Likewise.
1805 * auto-load.c: Likewise.
1806 * block.c: Likewise.
1807 * break-catch-throw.c: Likewise.
1808 * breakpoint.c: Likewise.
1809 * btrace.c: Likewise.
1810 * c-lang.c: Likewise.
1811 * cli/cli-cmds.c: Likewise.
1812 * cli/cli-interp.c: Likewise.
1813 * cli/cli-script.c: Likewise.
1814 * completer.c: Likewise.
1815 * corefile.c: Likewise.
1816 * corelow.c: Likewise.
1817 * cp-abi.c: Likewise.
1818 * cp-support.c: Likewise.
1819 * cp-valprint.c: Likewise.
1820 * darwin-nat.c: Likewise.
1821 * dwarf2-frame-tailcall.c: Likewise.
1822 * dwarf2-frame.c: Likewise.
1823 * dwarf2loc.c: Likewise.
1824 * dwarf2read.c: Likewise.
1825 * eval.c: Likewise.
1826 * event-loop.c: Likewise.
1827 * event-top.c: Likewise.
1828 * f-valprint.c: Likewise.
1829 * frame-unwind.c: Likewise.
1830 * frame.c: Likewise.
1831 * gdbtypes.c: Likewise.
1832 * gnu-v2-abi.c: Likewise.
1833 * gnu-v3-abi.c: Likewise.
1834 * guile/scm-auto-load.c: Likewise.
1835 * guile/scm-breakpoint.c: Likewise.
1836 * guile/scm-cmd.c: Likewise.
1837 * guile/scm-frame.c: Likewise.
1838 * guile/scm-lazy-string.c: Likewise.
1839 * guile/scm-param.c: Likewise.
1840 * guile/scm-symbol.c: Likewise.
1841 * guile/scm-type.c: Likewise.
1842 * hppa-hpux-tdep.c: Likewise.
1843 * i386-tdep.c: Likewise.
1844 * inf-loop.c: Likewise.
1845 * infcall.c: Likewise.
1846 * infcmd.c: Likewise.
1847 * infrun.c: Likewise.
1848 * interps.c: Likewise.
1849 * interps.h: Likewise.
1850 * jit.c: Likewise.
1851 * linespec.c: Likewise.
1852 * linux-nat.c: Likewise.
1853 * linux-thread-db.c: Likewise.
1854 * m32r-rom.c: Likewise.
1855 * main.c: Likewise.
1856 * memory-map.c: Likewise.
1857 * mi/mi-cmd-break.c: Likewise.
1858 * mi/mi-cmd-stack.c: Likewise.
1859 * mi/mi-interp.c: Likewise.
1860 * mi/mi-main.c: Likewise.
1861 * monitor.c: Likewise.
1862 * nto-procfs.c: Likewise.
1863 * objc-lang.c: Likewise.
1864 * p-valprint.c: Likewise.
1865 * parse.c: Likewise.
1866 * ppc-linux-tdep.c: Likewise.
1867 * printcmd.c: Likewise.
1868 * probe.c: Likewise.
1869 * python/py-auto-load.c: Likewise.
1870 * python/py-breakpoint.c: Likewise.
1871 * python/py-cmd.c: Likewise.
1872 * python/py-finishbreakpoint.c: Likewise.
1873 * python/py-frame.c: Likewise.
1874 * python/py-framefilter.c: Likewise.
1875 * python/py-function.c: Likewise.
1876 * python/py-gdb-readline.c: Likewise.
1877 * python/py-inferior.c: Likewise.
1878 * python/py-infthread.c: Likewise.
1879 * python/py-lazy-string.c: Likewise.
1880 * python/py-linetable.c: Likewise.
1881 * python/py-param.c: Likewise.
1882 * python/py-prettyprint.c: Likewise.
1883 * python/py-symbol.c: Likewise.
1884 * python/py-type.c: Likewise.
1885 * python/py-value.c: Likewise.
1886 * python/python-internal.h: Likewise.
1887 * python/python.c: Likewise.
1888 * record-btrace.c: Likewise.
1889 * record-full.c: Likewise.
1890 * regcache.c: Likewise.
1891 * remote-fileio.c: Likewise.
1892 * remote-mips.c: Likewise.
1893 * remote.c: Likewise.
1894 * rs6000-aix-tdep.c: Likewise.
1895 * rs6000-nat.c: Likewise.
1896 * skip.c: Likewise.
1897 * solib-darwin.c: Likewise.
1898 * solib-dsbt.c: Likewise.
1899 * solib-frv.c: Likewise.
1900 * solib-ia64-hpux.c: Likewise.
1901 * solib-spu.c: Likewise.
1902 * solib-svr4.c: Likewise.
1903 * solib.c: Likewise.
1904 * spu-tdep.c: Likewise.
1905 * stack.c: Likewise.
1906 * stap-probe.c: Likewise.
1907 * symfile-mem.c: Likewise.
1908 * symmisc.c: Likewise.
1909 * target.c: Likewise.
1910 * thread.c: Likewise.
1911 * top.c: Likewise.
1912 * tracepoint.c: Likewise.
1913 * tui/tui-interp.c: Likewise.
1914 * typeprint.c: Likewise.
1915 * utils.c: Likewise.
1916 * valarith.c: Likewise.
1917 * valops.c: Likewise.
1918 * valprint.c: Likewise.
1919 * value.c: Likewise.
1920 * varobj.c: Likewise.
1921 * windows-nat.c: Likewise.
1922 * xml-support.c: Likewise.
1923
484933d1
MR
19242014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1925
1926 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1927 name implies.
1928 (extended_mips16_next_pc): Update accordingly.
1929
ab50adb6
MR
19302014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1931
1932 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1933 function.
1934 (micromips_instruction_is_compact_branch): Likewise.
1935 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1936 or a compact jump, reaching a jump delay slot, or seeing a
1937 second non-prologue instruction.
1938 (micromips_scan_prologue): Also terminate scanning upon seeing a
1939 compact branch or jump, or reaching a branch or jump delay slot.
1940 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1941 or jump delay slot, or seeing a second non-prologue instruction.
1942 (mips32_instruction_has_delay_slot): Retain instruction
1943 examination code only, update arguments accordingly and move
1944 instruction fetch pieces to...
1945 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1946 (micromips_instruction_has_delay_slot): Likewise and to...
1947 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1948 (mips16_instruction_has_delay_slot): Likewise and to...
1949 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1950 (mips_single_step_through_delay): Update accordingly.
1951 (mips_adjust_breakpoint_address): Likewise.
1952
ae790652
MR
19532014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1954
1955 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1956 !mustbe32 also return 1 for 32-bit instructions.
1957 (mips16_instruction_has_delay_slot): Likewise. Add an
1958 explanatory comment.
1959
9b807e7b
MR
19602014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1961
1962 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1963 symbols special.
1964
0d5ed153
MR
19652014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1966
1967 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1968 update comments.
1969 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1970 for the breakpoint's address. Don't preinitialize `placed_size'.
1971 (insert_bp_location): Set `reqstd_address' rather than
1972 `placed_address'.
1973 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1974 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1975 address.
1976 (bkpt_remove_location): Likewise.
1977 (deprecated_insert_raw_breakpoint): Likewise.
1978 (deprecated_remove_raw_breakpoint): Likewise.
1979 (find_single_step_breakpoint): Likewise.
1980 * mem-break.c (default_memory_insert_breakpoint): Use
1981 `reqstd_address' for the breakpoint's address. Don't set
1982 `placed_address' or `placed_size' if breakpoint contents couldn't
1983 have been determined.
1984 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1985 the breakpoint's address.
1986 (remote_insert_hw_breakpoint): Likewise. Don't set
1987 `placed_address' or `placed_size' if breakpoint couldn't have been
1988 set.
1989 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1990 `reqstd_address' for the breakpoint's address.
1991 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1992 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1993 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1994 * microblaze-linux-tdep.c
1995 (microblaze_linux_memory_remove_breakpoint): Likewise.
1996 * monitor.c (monitor_insert_breakpoint): Likewise.
1997 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1998 (procfs_insert_hw_breakpoint): Likewise.
1999 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2000 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2001 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2002 * remote-mips.c (mips_insert_breakpoint): Likewise.
2003 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2004
3e871532
LM
20052014-10-03 Luis Machado <lgustavo@codesourcery.com>
2006
2007 * valops.c (value_assign): Check for bit field assignments
2008 before calling architecture-specific register value
2009 conversion functions.
2010
ec48dc8b
PM
20112014-10-03 Pierre Muller <muller@sourceware.org>
2012
2013 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2014
b57bacec
PA
20152014-10-02 Pedro Alves <palves@redhat.com>
2016
2017 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2018 threads_are_executing.
2019 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2020 describing comment.
2021 * gdbthread.h (threads_are_executing): Declare.
2022 (handle_signal_stop) <random signals>: Don't print about the
2023 signal here if stopping.
2024 (end_stepping_range): Don't notify observers here.
2025 (normal_stop): Update the thread list. If stopped by a random
2026 signal or a stepping range ended, notify observers.
2027 * thread.c (threads_executing): New global.
2028 (init_thread_list): Clear 'threads_executing'.
2029 (set_executing): Set or clear 'threads_executing'.
2030 (threads_are_executing): New function.
2031 (update_threads_executing): New function.
2032 (update_thread_list): Use it.
2033
13fd3ff3
PA
20342014-10-02 Pedro Alves <palves@redhat.com>
2035
2036 PR breakpoints/17431
2037 * breakpoint.c (update_breakpoints_after_exec): Don't create
2038 overlay, longjmp, std terminate nor exception breakpoints here.
2039
32990ada
PA
20402014-10-02 Pedro Alves <palves@redhat.com>
2041
2042 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2043 Adjust comments.
2044 * inferior.c (find_inferior_for_program_space): Give preference to
2045 the current inferior.
2046 * inferior.h (find_inferior_for_program_space): Update comment.
2047 * progspace.c (switch_to_program_space_and_thread): Prefer the
2048 current inferior if it's bound to the program space requested. If
2049 the inferior found doesn't have a PID yet, don't bother looking up
2050 a thread.
2051 * progspace.h (switch_to_program_space_and_thread): Adjust
2052 comment.
2053 * thread.c (any_thread_of_process, any_live_thread_of_process):
2054 Give preference to the current thread.
2055
0fec99e8
PA
20562014-10-01 Pedro Alves <palves@redhat.com>
2057
2058 * breakpoint.c (insert_bp_location): Error out if inserting a
2059 software breakpoint at a read-only address.
2060 * target.c (memory_xfer_check_region): New function, factored out
2061 from ...
2062 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2063 ULONGEST.
2064 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2065 against the memory region attributes.
2066
2ddf4301
SM
20672014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2068
2069 * NEWS: Announce new exit-code field in -list-thread-groups
2070 output.
2071 * inferior.c (exit_inferior_1): Don't clear exit code.
2072 (inferior_appeared): Clear exit code.
2073 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2074 code.
2075
5fdeec1d
PA
20762014-10-01 Pedro Alves <palves@redhat.com>
2077
2078 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2079 GENERATED" along with emacs/vi read-only markers.
2080 * regformats/aarch64.dat: Regenerate.
2081 * regformats/arm-with-iwmmxt.dat: Regenerate.
2082 * regformats/arm-with-neon.dat: Regenerate.
2083 * regformats/arm-with-vfpv2.dat: Regenerate.
2084 * regformats/arm-with-vfpv3.dat: Regenerate.
2085 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2086 * regformats/i386/amd64-avx.dat: Regenerate.
2087 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2088 * regformats/i386/amd64-avx512.dat: Regenerate.
2089 * regformats/i386/amd64-linux.dat: Regenerate.
2090 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2091 * regformats/i386/amd64-mpx.dat: Regenerate.
2092 * regformats/i386/amd64.dat: Regenerate.
2093 * regformats/i386/i386-avx-linux.dat: Regenerate.
2094 * regformats/i386/i386-avx.dat: Regenerate.
2095 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2096 * regformats/i386/i386-avx512.dat: Regenerate.
2097 * regformats/i386/i386-linux.dat: Regenerate.
2098 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2099 * regformats/i386/i386-mmx.dat: Regenerate.
2100 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2101 * regformats/i386/i386-mpx.dat: Regenerate.
2102 * regformats/i386/i386.dat: Regenerate.
2103 * regformats/i386/x32-avx-linux.dat: Regenerate.
2104 * regformats/i386/x32-avx.dat: Regenerate.
2105 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2106 * regformats/i386/x32-avx512.dat: Regenerate.
2107 * regformats/i386/x32-linux.dat: Regenerate.
2108 * regformats/i386/x32.dat: Regenerate.
2109 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2110 * regformats/mips-dsp-linux.dat: Regenerate.
2111 * regformats/mips-linux.dat: Regenerate.
2112 * regformats/mips64-dsp-linux.dat: Regenerate.
2113 * regformats/mips64-linux.dat: Regenerate.
2114 * regformats/nios2-linux.dat: Regenerate.
2115 * regformats/rs6000/powerpc-32.dat: Regenerate.
2116 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2117 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2118 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2119 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2120 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2121 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2122 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2123 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2124 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2125 * regformats/s390-linux32.dat: Regenerate.
2126 * regformats/s390-linux32v1.dat: Regenerate.
2127 * regformats/s390-linux32v2.dat: Regenerate.
2128 * regformats/s390-linux64.dat: Regenerate.
2129 * regformats/s390-linux64v1.dat: Regenerate.
2130 * regformats/s390-linux64v2.dat: Regenerate.
2131 * regformats/s390-te-linux64.dat: Regenerate.
2132 * regformats/s390x-linux64.dat: Regenerate.
2133 * regformats/s390x-linux64v1.dat: Regenerate.
2134 * regformats/s390x-linux64v2.dat: Regenerate.
2135 * regformats/s390x-te-linux64.dat: Regenerate.
2136 * regformats/tic6x-c62x-linux.dat: Regenerate.
2137 * regformats/tic6x-c62x.dat: Regenerate.
2138 * regformats/tic6x-c64x-linux.dat: Regenerate.
2139 * regformats/tic6x-c64x.dat: Regenerate.
2140 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2141 * regformats/tic6x-c64xp.dat: Regenerate.
2142
db74e4ba
PA
21432014-10-01 Pedro Alves <palves@redhat.com>
2144
2145 * features/Makefile: Update comments.
2146 (XMLTOC): List all xml files we build C files from.
2147 (clean-cfiles): New rule.
2148
d63f2f84
PA
21492014-10-01 Pedro Alves <palves@redhat.com>
2150
2151 * features/i386/amd64-avx512-linux.c: Regenerate.
2152 * features/i386/amd64-avx512.c: Regenerate.
2153 * features/i386/x32-avx512-linux.c: Regenerate.
2154 * features/i386/x32-avx512.c: Regenerate.
2155
20ad026d
PA
21562014-10-01 Pedro Alves <palves@redhat.com>
2157
2158 * features/Makefile (WHICH): Remove arm-with-m,
2159 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2160
acc9fe45
PA
21612014-10-01 Pedro Alves <palves@redhat.com>
2162
2163 * features/Makefile (clean): New rule.
2164
e001e535
PA
21652014-10-01 Pedro Alves <palves@redhat.com>
2166
2167 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2168 (zmm14h): Add missing end quotes.
2169
bdc14417
PA
21702014-10-01 Pedro Alves <palves@redhat.com>
2171
2172 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2173 * features/aarch64.c: Regenerate.
2174
d83ad864
DB
21752014-09-30 Don Breazeal <donb@codesourcery.com>
2176
2177 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2178 code so as to work with follow_fork_inferior.
2179 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2180 (inf_ttrace_create_inferior): Remove reference to
2181 inf_ttrace_vfork_ppid.
2182 (inf_ttrace_attach): Ditto.
2183 (inf_ttrace_detach): Ditto.
2184 (inf_ttrace_kill): Use current_inferior instead of
2185 inf_ttrace_vfork_ppid.
2186 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2187 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2188 inferior away from the parent.
2189 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2190 target_follow_fork.
2191 (follow_fork_inferior): New function.
2192 (follow_inferior_reset_breakpoints): Make function static.
2193 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2194 * linux-nat.c (linux_child_follow_fork): Move target-independent
2195 code to infrun.c:follow_fork_inferior.
2196
29082443
AA
21972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2198
2199 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2200 * gdbarch.c: Regenerate.
2201 * gdbarch.h: Likewise.
2202 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2203 gdbarch method 'regset_from_core_section'.
2204 (get_core_register_section): Remove handling for the case that
2205 regset == NULL and regset_from_core_section is defined.
2206 (get_core_registers): Drop check for deleted method.
2207 * procfs.c (procfs_do_thread_registers): Adjust comment.
2208
f968fe80
AA
22092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2210
2211 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2212 (linux_nat_make_corefile_notes): Remove.
2213 (linux_target_install_ops): Do not set target method
2214 'make_corefile_notes'.
2215 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2216 Remove field.
2217 (linux_corefile_thread_callback): Instead of args->collect, call
2218 linux_collect_thread_registers.
2219 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2220 NULL unless there is a regset iterator.
2221 (linux_make_corefile_notes_1): Remove.
2222 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2223 by linux_make_corefile_notes.
2224 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2225
174ad59a
AA
22262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2227
2228 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2229 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2230 Remove.
2231 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2232
97094034
AA
22332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2234
2235 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2236 (xtensa_iterate_over_regset_sections): New.
2237 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2238
f73d3ce7
AA
22392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2240
2241 * vax-tdep.c (vax_regset_from_core_section): Remove.
2242 (vax_iterate_over_regset_sections): New.
2243 (vax_gdbarch_init): Adjust gdbarch initialization.
2244
cb24567a
AA
22452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2246
2247 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2248 (tilegx_regset_from_core_section): Remove.
2249 (tilegx_iterate_over_regset_sections): New.
2250 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2251
e5139de8
AA
22522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2253
2254 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2255 (sparc_iterate_over_regset_sections): New.
2256 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2257 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2258 targets.
2259 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2260 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2261 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2262 target method 'make_corefile_notes'.
2263
c6d41a6f
AA
22642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2265
2266 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2267 'sizeof_gregset' and 'sizeof_fpregset'.
2268 * sh-tdep.c (sh_regset_from_core_section): Remove.
2269 (sh_iterate_over_regset_sections): New.
2270 (sh_gdbarch_init): Adjust gdbarch initialization.
2271 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2272 sizeof_fpregset.
2273 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2274 'sizeof_gregset'.
2275
9845a0b5
AA
22762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2277
2278 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2279 (score7_linux_iterate_over_regset_sections): New.
2280 (score_gdbarch_init): Adjust gdbarch initialization.
2281
23ea9aeb
AA
22822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2283
2284 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2285 FreeBSD targets.
2286 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2287 method 'make_corefile_notes'.
2288 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2289 (ppcfbsd_regset_from_core_section): Remove.
2290 (ppcfbsd_iterate_over_regset_sections): New.
2291 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2292 initialization.
2293 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2294 (ppcnbsd_iterate_over_regset_sections): New.
2295 (ppcnbsd_init_abi): Adjust.
2296 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2297 (ppcobsd_iterate_over_regset_sections): New.
2298 (ppcobsd_init_abi): Adjust.
2299 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2300 (rs6000_aix_iterate_over_regset_sections): New.
2301 (rs6000_aix_init_osabi): Adjust.
2302
c5b8d704
AA
23032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2304
2305 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2306 (nios2_regset_from_core_section): Remove.
2307 (nios2_iterate_over_regset_sections): New.
2308 (nios2_linux_init_abi): Adjust gdbarch initialization.
2309
3636e608
AA
23102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2311
2312 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2313 (am33_iterate_over_regset_sections): New.
2314 (am33_linux_init_osabi): Adjust gdbarch initialization.
2315
d4036235
AA
23162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2317
2318 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2319 (mips_linux_iterate_over_regset_sections): New.
2320 (mips_linux_init_abi): Adjust gdbarch initialization.
2321 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2322 (mips64obsd_iterate_over_regset_sections): New.
2323 (mips64obsd_init_abi): Adjust.
2324 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2325 (mipsnbsd_iterate_over_regset_sections): New.
2326 (mipsnbsd_init_abi): Adjust.
2327
b61ddd6e
AA
23282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2329
2330 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2331 (m88k_iterate_over_regset_sections): New.
2332 (m88k_gdbarch_init): Adjust gdbarch initialization.
2333
55a2906a
AA
23342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2335
2336 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2337 (ia64_linux_iterate_over_regset_sections): New.
2338 (ia64_linux_init_abi): Adjust gdbarch initialization.
2339
022c98ab
AA
23402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2341
2342 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2343 (m68kbsd_iterate_over_regset_sections): New.
2344 (m68kbsd_init_abi): Adjust gdbarch initialization.
2345 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2346 (m68k_linux_iterate_over_regset_sections): New.
2347 (m68k_linux_init_abi): Adjust gdbarch initialization.
2348
5fac247f
AA
23492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2350
2351 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2352 (m32r_linux_regset_from_core_section): Remove.
2353 (m32r_linux_iterate_over_regset_sections): New.
2354 (m32r_linux_init_abi): Adjust gdbarch initialization.
2355
490496c3
AA
23562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2357
2358 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2359 (amd64obsd_iterate_over_regset_sections): New.
2360 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2361 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2362 Remove.
2363 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2364 regset_from_core_section initialization.
2365 * i386-tdep.c (i386_regset_from_core_section): Remove.
2366 (i386_iterate_over_regset_sections): New.
2367 (i386_gdbarch_init): Adjust gdbarch initialization.
2368 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2369 (i386_iterate_over_regset_sections): New prototype.
2370 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2371 Remove.
2372 (i386obsd_aout_iterate_over_regset_sections): New.
2373 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2374 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2375 targets.
2376 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2377 (amd64fbsd_init_abi): Call fbsd_init_abi.
2378 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2379 (i386fbsd4_init_abi): Call fbsd_init_abi.
2380 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2381 target method 'make_corefile_notes'.
2382 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2383
50c5eb53
AA
23842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2385
2386 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2387 (hppa_hpux_iterate_over_regset_sections): New.
2388 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2389 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2390 (hppa_linux_iterate_over_regset_sections): New.
2391 (hppa_linux_init_abi): Adjust.
2392 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2393 (hppanbsd_iterate_over_regset_sections): New.
2394 (hppanbsd_init_abi): Adjust.
2395 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2396 (hppaobsd_iterate_over_regset_sections): New.
2397 (hppaobsd_init_abi): Adjust.
2398
66afae4f
AA
23992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2400
2401 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2402 (frv_linux_iterate_over_regset_sections): New.
2403 (frv_linux_init_abi): Adjust gdbarch initialization.
2404
ed09174e
AA
24052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2406
2407 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2408 (armbsd_iterate_over_regset_sections): New prototype.
2409 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2410 (armbsd_iterate_over_regset_sections): New.
2411 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2412 initialization.
2413
dff2166e
AA
24142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2415
2416 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2417 (alpha_linux_iterate_over_regset_sections): New.
2418 (alpha_linux_init_abi): Adjust gdbarch initialization.
2419 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2420 prototype.
2421 (alphanbsd_iterate_over_regset_sections): New prototype.
2422
4108500a
AA
24232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2424
2425 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2426 Remove.
2427 (aarch64_linux_iterate_over_regset_sections): New.
2428 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2429
a904c024
AA
24302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2431
2432 * fbsd-tdep.c: New file.
2433 * fbsd-tdep.h: New file.
2434 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2435 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2436 (ALLDEPFILES): Add fbsd-tdep.c.
2437
8f0435f7
AA
24382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2439
2440 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2441 parameter.
2442 * gdbarch.h: Regenerate.
2443 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2444 iterator.
2445 (get_core_register_section): Add parameter 'regset' and use it, if
2446 set. Add parameter 'min_size' and verify the bfd section size
2447 against it.
2448 (get_core_registers_cb): Add parameter 'regset' and pass it to
2449 get_core_register section. For the "standard" register sections
2450 ".reg" and ".reg2", set an appropriate default for human_name.
2451 (get_core_registers): Don't abort when the gdbarch has an iterator
2452 but no regset_from_core_section. Add NULL/0 for parameters
2453 'regset'/'min_size' in calls to get_core_register_section.
2454 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2455 'regset' and use it instead of calling the
2456 regset_from_core_section gdbarch method.
2457 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2458 * i386-tdep.c (i386_supply_xstateregset)
2459 (i386_collect_xstateregset, i386_xstateregset): Moved to
2460 i386-linux-tdep.c.
2461 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2462 .reg-xstate.
2463 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2464 core file support only if the regset iterator hasn't been set.
2465 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2466 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2467 Moved from i386-tdep.c and renamed to *_linux*.
2468 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2469 each callback invocation. Allow any .reg-xstate size when reading
2470 from a core file.
2471 * amd64-tdep.c (amd64_supply_xstateregset)
2472 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2473 amd64-linux-tdep.c.
2474 (amd64_regset_from_core_section): Remove.
2475 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2476 install an amd64-specific regset_from_core_section gdbarch method.
2477 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2478 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2479 Moved from amd64-tdep.c and renamed to *_linux*.
2480 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2481 to each callback invocation. Allow any .reg-xstate size when
2482 reading from a core file.
2483 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2484 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2485 each callback invocation.
2486 (arm_linux_init_abi): No longer set the regset_from_core_section
2487 gdbarch method.
2488 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2489 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2490 each callback invocation.
2491 (ppc_linux_init_abi): No longer set the regset_from_core_section
2492 gdbarch method.
2493 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2494 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2495 (s390_regset_from_core_section): Remove.
2496 (s390_iterate_over_regset_sections): Add regset parameter to each
2497 callback invocation.
2498 (s390_gdbarch_init): No longer set the regset_from_core_section
2499 gdbarch method. Drop initialization of deleted tdep fields.
2500
5aa82d05
AA
25012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2502
2503 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2504 (amd64_linux_iterate_over_regset_sections): New.
2505 (amd64_linux_init_abi_common): Don't install the regset section
2506 list, but the new iterator in gdbarch.
2507 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2508 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2509 (arm_linux_iterate_over_regset_sections): ...here. New function.
2510 (arm_linux_init_abi): Set iterator instead of section list.
2511 * corelow.c (get_core_registers_cb): New function, logic moved
2512 from...
2513 (get_core_registers): ...loop body here. Use new iterator method
2514 instead of walking through the regset section list.
2515 * gdbarch.sh: Remove 'core_regset_sections'. New method
2516 'iterate_over_regset_sections'. New typedef
2517 'iterate_over_regset_sections_cb'.
2518 * gdbarch.c: Regenerate.
2519 * gdbarch.h: Likewise.
2520 * i386-linux-tdep.c (i386_linux_regset_sections)
2521 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2522 Remove.
2523 (i386_linux_iterate_over_regset_sections): New.
2524 (i386_linux_init_abi): Don't choose a regset section list, but
2525 install new iterator in gdbarch.
2526 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2527 (linux_collect_regset_section_cb): New function, logic moved
2528 from...
2529 (linux_collect_thread_registers): ...loop body here. Use iterator
2530 method instead of walking through list.
2531 (linux_make_corefile_notes_1): Check for presence of iterator
2532 method instead of regset section list.
2533 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2534 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2535 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2536 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2537 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2538 (ppc_linux_init_abi): Don't choose from above regset section
2539 lists, but install new iterator in gdbarch.
2540 * regset.h (struct core_regset_section): Remove.
2541 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2542 have_linux_v1, have_linux_v2, and have_tdb.
2543 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2544 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2545 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2546 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2547 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2548 (s390_iterate_over_regset_sections): ...here. New function. Use
2549 new tdep fields.
2550 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2551 regset section lists, but install new iterator.
2552
2eca4a8d
JK
25532014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2554
2555 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2556
a73c2b56
SM
25572014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2558
2559 * progspace.c (print_program_space): Don't prune program spaces
2560 before printing them.
2561
03d46957
PA
25622014-09-25 Pedro Alves <palves@redhat.com>
2563
2564 * infrun.c (user_visible_resume_ptid): Don't check
2565 singlestep_breakpoints_inserted_p.
2566
e558d7c1
PA
25672014-09-25 Pedro Alves <palves@redhat.com>
2568
2569 * breakpoint.c (should_be_inserted): Add debug output.
2570
7f89fd65
PA
25712014-09-25 Pedro Alves <palves@redhat.com>
2572
2573 * infrun.c (stepping_past_instruction_at)
2574 (clear_exit_convenience_vars): Point at infrun.h instead of
2575 inferior.h.
2576 (handle_signal_stop): Fix typo.
2577
b7576e5c
YQ
25782014-09-24 Yao Qi <yao@codesourcery.com>
2579
2580 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2581 bitmask.
2582
9a6cf368
GB
25832014-09-22 Gary Benson <gbenson@redhat.com>
2584
2585 * target.c (target_stop): Updated comment.
2586
03f4463b
GB
25872014-09-22 Gary Benson <gbenson@redhat.com>
2588
2589 * target/target.h (target_stop_ptid): Renamed as...
2590 (target_stop_and_wait): New function. Updated comment.
2591 All uses updated.
2592 (target_continue_ptid): Renamed as...
2593 (target_continue_no_signal): New function. Updated comment.
2594 All uses updated.
2595
a25a5a45
PA
25962014-09-22 Pedro Alves <palves@redhat.com>
2597
2598 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2599 and "auto" merged.
2600 * breakpoint.c (enum ugll_insert_mode): New enum.
2601 (always_inserted_mode): Now a plain boolean.
2602 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2603 (breakpoints_always_inserted_mode): Delete.
2604 (breakpoints_should_be_inserted_now): New function.
2605 (insert_breakpoints): Pass UGLL_INSERT to
2606 update_global_location_list instead of calling
2607 insert_breakpoint_locations manually.
2608 (create_solib_event_breakpoint_1): New, factored out from ...
2609 (create_solib_event_breakpoint): ... this.
2610 (create_and_insert_solib_event_breakpoint): Use
2611 create_solib_event_breakpoint_1 instead of calling
2612 insert_breakpoint_locations manually.
2613 (update_global_location_list): Change parameter type from boolean
2614 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2615 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2616 (update_global_location_list_nothrow): Change parameter type from
2617 boolean to enum ugll_insert_mode.
2618 (_initialize_breakpoint): "breakpoint always-inserted" option is
2619 now a boolean command. Update help text.
2620 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2621 (breakpoints_should_be_inserted_now): New declaration.
2622 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2623 Remove breakpoints_always_inserted_mode check.
2624 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2625 * remote.c (remote_start_remote): Likewise.
2626
04086b45
PA
26272014-09-22 Pedro Alves <palves@redhat.com>
2628
2629 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2630 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2631 Instead, pass UGLL_INSERT to update_global_location_list.
2632 (update_global_location_list): Change parameter type from boolean
2633 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2634 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2635 (create_solib_event_breakpoint_1): New, factored out from ...
2636 (create_solib_event_breakpoint): ... this.
2637 (create_and_insert_solib_event_breakpoint): Use
2638 create_solib_event_breakpoint_1 instead of calling
2639 insert_breakpoint_locations manually.
2640 (update_global_location_list): Handle UGLL_INSERT.
2641
44702360
PA
26422014-09-22 Pedro Alves <palves@redhat.com>
2643
2644 * breakpoint.c (enum ugll_insert_mode): New enum.
2645 (update_global_location_list)
2646 (update_global_location_list_nothrow): Change parameter type from
2647 boolean to enum ugll_insert_mode. All callers adjusted.
2648
93c6145a
JB
26492014-09-19 Joel Brobecker <brobecker@adacore.com>
2650
2651 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2652 SystemTap support in GDB.
2653
89a5711c
DB
26542014-09-19 Don Breazeal <donb@codesourcery.com>
2655
2656 * linux-nat.c (linux_handle_extended_wait): Call
2657 linux_ptrace_get_extended_event.
2658 (wait_lwp): Call linux_is_extended_waitstatus.
2659 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2660 and linux_is_extended_waitstatus.
2661 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2662 linux_ptrace_get_extended_event.
2663 (linux_ptrace_get_extended_event): New function.
2664 (linux_is_extended_waitstatus): New function.
2665 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2666 (linux_is_extended_waitstatus): New declarations.
2667
c3b7b696
YQ
26682014-09-19 Yao Qi <yao@codesourcery.com>
2669
2670 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2671 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2672 comments. Callers update.
2673 (dwarf_decode_lines): Likewise.
2674 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2675 comments. Skip the line table if 'lowpc' is greater than
2676 'address'. Don't check
2677 dwarf2_per_objfile->has_section_at_zero.
2678
2b4fd423
DE
26792014-09-18 Doug Evans <dje@google.com>
2680
2681 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2682 * python/py-symtab.c (stpy_get_producer): New function.
2683 (symtab_object_getset): Add "producer" attribute.
2684
5e43d467
UW
26852014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2686
2687 PR gdb/17384
2688 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2689 (do_captured_read_memory_integer): Remove.
2690 (safe_read_memory_integer): Use target_read_memory directly instead
2691 of catching errors in do_captured_read_memory_integer.
2692
04e79979
MR
26932014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2694
2695 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2696 not gdb/doc.
2697
76aeec5b
SDJ
26982014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2699
2700 * objc-lang.c (find_implementation_from_class): Remove dead code.
2701
2f693f9d
SDJ
27022014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2703
2704 PR cli/7233
2705 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2706 "fprintf_unfiltered (gdb_stdlog...)".
2707
bb9d5f81
PP
27082014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2709
2710 PR breakpoints/12526
2711 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2712 val_bitsize.
2713 * breakpoint.c (watch_command_1): Use these fields to retain
2714 bitfield information.
2715 (extract_bitfield_from_watchpoint_value): New function.
2716 (watchpoint_check): Use it.
2717 (update_watchpoint): Use it. Optimize the address and length of a
2718 HW watchpoint pointing to a bitfield.
2719 * value.h (unpack_value_bitfield): New prototype.
2720 * value.c (unpack_value_bitfield): Make extern.
2721
05db5edd
ST
27222014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2723
2724 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2725 x86-dregs.o.
2726 * gnu-nat.c (inf_threads): New function.
2727 * gnu-nat.h (inf_threads_ftype): New typedef.
2728 (inf_threads): New declaration.
2729 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2730 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2731 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2732 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2733 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2734 (i386_gnu_dr_get_control): New functions.
2735 (reg_addr): New structure.
2736 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2737 i386 debugging register hooks.
2738 * NEWS: Mention this.
2739
5a578da5
OJ
27402014-08-13 Omair Javaid <omair.javaid@linaro.org>
2741
2742 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2743 vector data transfer instructions.
2744 (arm_record_coproc_data_proc): Updated.
2745
f20f80dd
OJ
27462014-08-13 Omair Javaid <omair.javaid@linaro.org>
2747
2748 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2749 arm_record_exreg_ld_st_insn.
2750 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2751 load/store insns.
2752
851f26ae
OJ
27532014-08-13 Omair Javaid <omair.javaid@linaro.org>
2754
2755 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2756 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2757 processing instructions.
2758
1e1b6563
OJ
27592014-08-13 Omair Javaid <omair.javaid@linaro.org>
2760
2761 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2762 for advance SIMD struct ld/st insn.
2763 (thumb2_record_decode_insn_handler): Replace stub handler with
2764 thumb2_record_asimd_struct_ld_st.
2765
60cc5e93
OJ
27662014-08-13 Omair Javaid <omair.javaid@linaro.org>
2767
2768 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2769 for asimd, vfp and coprocessor insns.
2770 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2771 and coprocessor insns.
2772 (thumb2_record_coproc_insn): New function.
2773 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2774 handlers.
2775 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2776 opcode 110 insns.
2777
81219e53
DE
27782014-09-13 Doug Evans <xdje42@gmail.com>
2779
2780 * NEWS: Mention new "queue-signal" command.
2781 * infcmd.c (queue_signal_command): New function.
2782 (_initialize_infcmd): Add new queue-signal command.
2783
d36bf488
DE
27842014-09-13 Doug Evans <xdje42@gmail.com>
2785
2786 * linux-nat.c (wait_lwp): Add debugging printf.
2787 (linux_nat_wait_1): Ditto.
2788
f37f681c
PA
27892014-09-12 Pedro Alves <palves@redhat.com>
2790
2791 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2792 (create_and_insert_solib_event_breakpoint): New functions.
2793 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2794 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2795 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2796 (remove_dbx_link_breakpoint): Delete function.
2797 (insert_dbx_link_bpt_in_file): Use
2798 create_and_insert_solib_event_breakpoint instead of
2799 deprecated_insert_raw_breakpoint.
2800 (procfs_wait): Don't check whether we hit __dbx_link here.
2801 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2802 here.
2803 * solib-irix.c (base_breakpoint): Delete global.
2804 (disable_break): Delete function.
2805 (enable_break): Use create_solib_event_breakpoint
2806 instead of deprecated_insert_raw_breakpoint.
2807 (irix_solib_handle_event): New function.
2808 (irix_solib_create_inferior_hook): Don't run the target or disable
2809 the mapping-complete breakpoint here.
2810 (_initialize_irix_solib): Install irix_solib_handle_event as
2811 so_ops->handle_event hook.
2812
9d9bf2df
EBM
28132014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2814 Ulrich Weigand  <uweigand@de.ibm.com>
2815
2816 PR tdep/17379
2817 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2818 instead of read_memory_unsigned_integer.
2819
b006a80e
GB
28202014-09-12 Gary Benson <gbenson@redhat.com>
2821
2822 * nat/linux-waitpid.c: Include common-defs.h.
2823 [GDBSERVER]: Add FIXME comment.
2824 [!GDBSERVER]: Don't include defs.h or signal.h.
2825 (linux_debug) [!GDBSERVER]: Remove empty block.
2826
296b1496
GB
28272014-09-12 Gary Benson <gbenson@redhat.com>
2828
2829 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2830 Don't include defs.h or server.h.
2831
53f81362
GB
28322014-09-12 Gary Benson <gbenson@redhat.com>
2833
2834 * nat/linux-btrace.c: Include common-defs.h.
2835 Don't include defs.h, server.h or gdbthread.h.
2836 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2837
727605ca
GB
28382014-09-12 Gary Benson <gbenson@redhat.com>
2839
2840 * common/agent.c: Include common-defs.h.
2841 Don't include defs.h or server.h.
2842 * common/buffer.c: Likewise.
2843 * common/common-debug.c: Likewise.
2844 * common/common-utils.c: Likewise.
2845 * common/errors.c: Likewise.
2846 * common/filestuff.c: Likewise.
2847 * common/format.c: Likewise.
2848 * common/gdb_vecs.c: Likewise.
2849 * common/print-utils.c: Likewise.
2850 * common/ptid.c: Likewise.
2851 * common/rsp-low.c: Likewise.
2852 * common/signals.c: Likewise.
2853 * common/vec.c: Likewise.
2854 * common/xml-utils.c: Likewise.
2855 * nat/linux-osdata.c: Likewise.
2856 * nat/linux-procfs.c: Likewise.
2857 * nat/linux-ptrace.c: Likewise.
2858 * nat/mips-linux-watch.c: Likewise.
2859 * target/waitstatus.c: Likewise.
2860
361c8ade
GB
28612014-09-12 Tom Tromey <tromey@redhat.com>
2862 Gary Benson <gbenson@redhat.com>
2863
2864 * common/common-regcache.h: New file.
2865 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2866 * regcache.h: Include common-regcache.h.
2867 (regcache_read_pc): Don't declare.
2868 * regcache.c (get_thread_regcache_for_ptid): New function.
2869 * nat/linux-btrace.c: Don't include regcache.h.
2870 Include common-regcache.h.
2871 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2872
a01cbb49
TS
28732014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2874
2875 * regcache.h (struct regset): Declare.
2876
98880d46
PA
28772014-09-11 Pedro Alves <palves@redhat.com>
2878
2879 PR gdb/17347
2880 * main.c: Include "infrun.h".
2881 (catch_command_errors, catch_command_errors_const): Wait for the
2882 foreground command to complete.
2883 * top.c (maybe_wait_sync_command_done): New function, factored out
2884 from ...
2885 (maybe_wait_sync_command_done): ... here.
2886 * top.h (maybe_wait_sync_command_done): New declaration.
2887
bd9269f7
GB
28882014-09-11 Tom Tromey <tromey@redhat.com>
2889 Gary Benson <gbenson@redhat.com>
2890
2891 * common/symbol.h: New file.
2892 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2893 * minsyms.c (find_minimal_symbol_address): New function.
2894 * common/agent.c: Include common/symbol.h.
2895 [!GDBSERVER]: Don't include objfiles.h.
2896 (agent_look_up_symbols): Use find_minimal_symbol_address.
2897
f8c1d06b
GB
28982014-09-11 Gary Benson <gbenson@redhat.com>
2899
2900 * target/target.h (target_stop_ptid, target_continue_ptid):
2901 Declare.
2902 * target.c (target_stop_ptid, target_continue_ptid): New
2903 functions.
2904 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2905 (agent_run_command): Always use target_stop_ptid and
2906 target_continue_ptid.
2907
721ec300
GB
29082014-09-11 Tom Tromey <tromey@redhat.com>
2909 Gary Benson <gbenson@redhat.com>
2910
2911 * target/target.h: New file.
2912 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2913 * target.h: Include target/target.h.
2914 (target_read_memory, target_write_memory): Don't declare.
2915 * target.c (target_read_uint32): New function.
2916 * common/agent.c: Include target/target.h.
2917 [!GDBSERVER]: Don't include target.h.
2918 (helper_thread_id): Type changed to uint32_t.
2919 (agent_get_helper_thread_id): Use target_read_uint32.
2920 (agent_run_command): Always use target_read_memory and
2921 target_write_memory.
2922 (agent_capability): Type changed to uint32_t.
2923 (agent_capability_check): Use target_read_uint32.
2924
c5e92cca
GB
29252014-09-11 Gary Benson <gbenson@redhat.com>
2926
2927 * common/common-debug.h (show_debug_regs): Declare.
2928 * common/common-debug.c (show_debug_regs): Define.
2929 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2930 all uses with show_debug_regs. Replace all uses that considered
2931 debug_hw_points as a multi-value integer with straight boolean
2932 uses.
2933 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2934 with show_debug_regs.
2935 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2936 all uses with show_debug_regs.
2937 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2938 uses with show_debug_regs.
2939
eeef931a
UW
29402014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2941
2942 * findvar.c (address_from_register): Handle targets requiring
2943 a special conversion routine even for plain pointer types.
2944
8efa9855
UW
29452014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2946
2947 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2948 (store_register): Do not call exec_one_dummy_insn.
2949
eb479039
JB
29502014-09-10 Joel Brobecker <brobecker@adacore.com>
2951
2952 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2953 dereference it first. Use value_enclosing_type instead of
2954 value_type.
2955 (ada_array_length): Likewise.
2956
deede10c
JB
29572014-09-10 Joel Brobecker <brobecker@adacore.com>
2958
2959 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2960 Adjust function implementation and documentation accordingly.
2961 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2962 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2963 Update call to ada_value_ptr_subscript.
2964
7828a5f5
JB
29652014-09-10 Joel Brobecker <brobecker@adacore.com>
2966
2967 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2968 instead of VAL's type.
2969
35782f14
JB
29702014-09-10 Joel Brobecker <brobecker@adacore.com>
2971
2972 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2973
d342a0da
DE
29742014-09-09 Doug Evans <xdje42@gmail.com>
2975
2976 PR guile/17367
2977 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2978 last parameter to pkg-config, not first.
2979 * configure.ac: Pass --with-guile provided pkg-config path to
2980 GDB_GUILE_PROGRAM_NAMES.
2981 * configure: Regenerate.
2982
b4a3d263
GKB
29832014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2984
2985 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2986 Bertazi".
2987
6e466374
MR
29882014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2989
2990 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2991 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2992 the list of sections determining GDB_OSABI_IRIX.
2993
a1ada89a
JH
29942014-09-09 James Hogan <james.hogan@imgtec.com>
2995
2996 * MAINTAINERS (Write After Approval): Add "James Hogan".
2997
86db008d
JH
29982014-09-09 James Hogan <james.hogan@imgtec.com>
2999
3000 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3001
72fde3df
JB
30022014-09-09 Joel Brobecker <brobecker@adacore.com>
3003
3004 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3005
92d8d229
DE
30062014-09-08 Doug Evans <xdje42@gmail.com>
3007
3008 PR 17247
3009 * guile.c: #include <signal.h>.
3010 (_initialize_guile): Block SIGCHLD while initializing Guile.
3011
3012 Replaces the following, which is reverted.
3013
3014 2014-07-26 Doug Evans <xdje42@gmail.com>
3015
3016 PR 17185
3017 * configure.ac: Add check for header gc/gc.h.
3018 Add check for function setenv.
3019 * configure: Regenerate.
3020 * config.in: Regenerate.
3021 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3022
d81412aa
DE
30232014-09-08 Doug Evans <xdje42@gmail.com>
3024
3025 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3026 with named constant. Fix style of pointer comparison.
3027 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3028
a9f116cb
GKB
30292014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3030
3031 PR gdb/17035
3032 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3033 decide whether we display the command on "show user".
3034 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3035 printing command name.
3036 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3037 * cli/cli-decode.c (cli_user_command_p): Create helper function
3038 to verify whether cmd_list_element is a user-defined command.
3039
c75bd3a2
JK
30402014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 PR python/17355
3043 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3044 Fix goto out of TRY_CATCH.
3045
faa42425 30462014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3047 Tom Tromey <tromey@redhat.com>
faa42425
DE
3048
3049 PR 15276
3050 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3051 $_any_caller_matches.
3052 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3053 * python/lib/gdb/function/caller_is.py: New file.
3054
0d41ba00
DE
30552014-09-06 Doug Evans <xdje42@gmail.com>
3056
3057 * infcmd.c (program_info): Fix typo.
3058
474ca4f6
SDJ
30592014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3060
3061 PR gdb/17235
3062 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3063 'number'. New variable 'has_digit'. Rewrite code to deal with
3064 subexpressions on SDT probes.
3065
ebf13736
PA
30662014-09-04 Pedro Alves <palves@redhat.com>
3067
3068 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3069 the input is only one character long.
3070
eb0b0463
SDJ
30712014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3072
3073 PR fortran/17237
3074 * f-valprint.c (f_val_print): Specify the correct print option to
3075 use when printing integer values.
3076
5ee44bfa
GB
30772014-09-04 Gary Benson <gbenson@redhat.com>
3078
3079 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3080 Remove code to cope with LWPs wrapped as PIDs.
3081 Add assertions to ensure no wrapped LWPs are passed.
3082
4875ffdb
PA
30832014-09-04 Pedro Alves <palves@redhat.com>
3084
3085 * value.c (value_ranges_copy_adjusted): New function, factored out
3086 from ...
3087 (value_contents_copy_raw): ... here.
3088 (unpack_value_bits_as_long_1): Rename back to ...
3089 (unpack_bits_as_long): ... this. Remove 'original_value' and
3090 'result' parameters. Change return type to LONGEST.
3091 (unpack_value_bits_as_long): Delete.
3092 (unpack_value_field_as_long_1): Delete.
3093 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3094 (unpack_value_bitfield): New function.
3095 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3096 (value_fetch_lazy): Use unpack_value_bitfield.
3097 * value.h (unpack_value_bits_as_long): Delete declaration.
3098
5f3b99cf
SS
30992014-09-03 Sasha Smundak <asmundak@google.com>
3100
3101 * python/py-frame.c (frapy_read_register): New function.
3102
ac740bc7
JH
31032014-09-03 James Hogan <james.hogan@imgtec.com>
3104
3105 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3106 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3107
7d793aa9
SDJ
31082014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3109
3110 PR python/16699
3111 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3112 function.
3113 (add_cmd): Set "completer_handle_brkchars" to NULL.
3114 * cli/cli-decode.h (struct cmd_list_element)
3115 <completer_handle_brkchars>: New field.
3116 * command.h (completer_ftype_void): New typedef.
3117 (set_cmd_completer_handle_brkchars): New prototype.
3118 * completer.c (set_gdb_completion_word_break_characters): New
3119 function.
3120 (complete_line_internal): Call "completer_handle_brkchars"
3121 callback from command.
3122 * completer.h: Include "command.h".
3123 (set_gdb_completion_word_break_characters): New prototype.
3124 * python/py-cmd.c (cmdpy_completer_helper): New function.
3125 (cmdpy_completer_handle_brkchars): New function.
3126 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3127 (cmdpy_init): Set completer_handle_brkchars to
3128 cmdpy_completer_handle_brkchars.
3129
97ea6506
GB
31302014-09-03 Gary Benson <gbenson@redhat.com>
3131
3132 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3133 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3134 Loop conditions changed to equivalent form.
3135 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3136 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3137 ALL_DEBUG_ADDRESS_REGISTERS.
3138
d1437815
JB
31392014-09-03 Joel Brobecker <brobecker@adacore.com>
3140
3141 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3142 description fix.
3143
9b94fcf1
DE
31442014-09-02 Doug Evans <dje@google.com>
3145
3146 * typeprint.c (find_global_typedef): Fix comment.
3147
df7e5265
GB
31482014-09-02 Gary Benson <gbenson@redhat.com>
3149
3150 * i386-nat.h: Renamed as...
3151 * x86-nat.h: New file. All type, function and variable name
3152 prefixes changed from "i386_" to "x86_". All references updated.
3153 * i386-nat.c: Renamed as...
3154 * x86-nat.c: New file. All type, function and variable name
3155 prefixes changed from "i386_" to "x86_". All references updated.
3156 * common/i386-xstate.h: Renamed as...
3157 * common/x86-xstate.h: New file. All type, function and variable
3158 name prefixes changed from "i386_" to "x86_". All references
3159 updated.
3160 * nat/i386-cpuid.h: Renamed as...
3161 * nat/x86-cpuid.h: New file. All type, function and variable name
3162 prefixes changed from "i386_" to "x86_". All references updated.
3163 * nat/i386-gcc-cpuid.h: Renamed as...
3164 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3165 name prefixes changed from "i386_" to "x86_". All references
3166 updated.
3167 * nat/i386-dregs.h: Renamed as...
3168 * nat/x86-dregs.h: New file. All type, function and variable name
3169 prefixes changed from "i386_" to "x86_". All references updated.
3170 * nat/i386-dregs.c: Renamed as...
3171 * nat/x86-dregs.c: New file. All type, function and variable name
3172 prefixes changed from "i386_" to "x86_". All references updated.
3173
1c3569d4
MR
31742014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3175
3176 * varobj.c (_initialize_varobj): Move to the end of file.
3177
ff55e1b5
GB
31782014-08-29 Gary Benson <gbenson@redhat.com>
3179
3180 * common/common-exceptions.h: New file.
3181 * common/common-exceptions.c: Likewise.
3182 * Makefile.in (SFILES): Add common/common-exceptions.c.
3183 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3184 (COMMON_OBS): Add common-exceptions.o.
3185 (common-exceptions.o): New rule.
3186 * exceptions.h (common-exceptions.h): Include.
3187 (gdb_setjmp.h): Do not include.
3188 (return_reason): Moved to common-exceptions.h.
3189 (enum return_reason): Likewise.
3190 (RETURN_MASK): Likewise.
3191 (typedef return_mask): Likewise.
3192 (enum errors): Likewise.
3193 (struct gdb_exception): Likewise.
3194 (exceptions_state_mc_init): Likewise.
3195 (exceptions_state_mc_action_iter): Likewise.
3196 (exceptions_state_mc_action_iter_1): Likewise.
3197 (TRY_CATCH): Likewise.
3198 (throw_exception): Likewise.
3199 (throw_verror): Likewise.
3200 (throw_vquit): Likewise.
3201 (throw_error): Likewise.
3202 (throw_quit): Likewise.
3203 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3204 (enum catcher_action): Likewise.
3205 (struct catcher): Likewise.
3206 (current_catcher): Likewise.
3207 (catcher_list_size): Likewise.
3208 (exceptions_state_mc_init): Likewise.
3209 (catcher_pop): Likewise.
3210 (exceptions_state_mc): Likewise.
3211 (exceptions_state_mc_action_iter): Likewise.
3212 (exceptions_state_mc_action_iter_1): Likewise.
3213 (throw_exception): Likewise.
3214 (exception_messages): Likewise.
3215 (exception_messages_size): Likewise.
3216 (throw_it): Likewise.
3217 (throw_verror): Likewise.
3218 (throw_vquit): Likewise.
3219 (throw_error): Likewise.
3220 (throw_quit): Likewise.
3221 (prepare_to_throw_exception): New function.
3222
e9bcb658
GB
32232014-08-29 Gary Benson <gbenson@redhat.com>
3224
3225 * common/gdb_setjmp.h: New file.
3226 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3227 * configure.ac: Move sigsetjmp check...
3228 * common/common.m4: ...here.
3229 * configure: Regenerate.
3230 * cp-support.c (SIGJMP_BUF): Delete.
3231 (SIGSETJMP): Likewise.
3232 (SIGLONGJMP): Likewise.
3233 * exceptions.h (gdb_setjmp.h): Include.
3234 (setjmp.h): Do not include.
3235 (EXCEPTIONS_SIGJMP_BUF): Delete.
3236 (EXCEPTIONS_SIGSETJMP): Likewise.
3237 (EXCEPTIONS_SIGLONGJMP): Likewise.
3238 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3239 from gdb_setjmp.h.
3240 * exceptions.c: Likewise.
3241
e3180625
GB
32422014-08-29 Gary Benson <gbenson@redhat.com>
3243
3244 * cleanups.h: Moved to...
3245 * common/cleanups.h: New file.
3246 * cleanups.c: Moved to...
3247 * common/cleanups.c: New file. Include common-defs.h and
3248 cleanups.h. Do not include defs.h.
3249 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3250 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3251 (cleanups.o): New rule.
3252
e3d6ba5d
GB
32532014-08-29 Gary Benson <gbenson@redhat.com>
3254
3255 * common/errors.h (internal_warning): New declaration.
3256 (internal_vwarning): Likewise.
3257 * common/errors.c (internal_warning): New function.
3258 * utils.h (internal_warning): Don't declare.
3259 (internal_vwarning): Likewise.
3260 * utils.c (internal_warning): Removed.
3261
075c7033
GB
32622014-08-29 Gary Benson <gbenson@redhat.com>
3263
3264 * main.c (captured_main): Use warning during startup.
3265 Prefix startup warning messages with command name.
3266
91b35fd0
GB
32672014-08-29 Gary Benson <gbenson@redhat.com>
3268
3269 * main.c (captured_main): Handle usage errors with error.
3270
b1ec390e
GB
32712014-08-29 Gary Benson <gbenson@redhat.com>
3272
3273 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3274 exit pair with a call to error. Wrap the message with _().
3275
fd0ef3dd
GB
32762014-08-29 Gary Benson <gbenson@redhat.com>
3277
3278 * main.c (captured_main): Replace a fprintf/exit
3279 pair with a call to error. Wrap the message with _().
3280
e0e6bcab
GB
32812014-08-29 Gary Benson <gbenson@redhat.com>
3282
3283 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3284 pairs with calls to error. Wrap the message with _().
3285
0d2f5c07
GB
32862014-08-29 Gary Benson <gbenson@redhat.com>
3287
3288 * utils.c (vwarning): Protect calls to target_terminal_ours
3289 and wrap_here.
3290
5df43998
GB
32912014-08-29 Gary Benson <gbenson@redhat.com>
3292
3293 * exceptions.c (print_flush): Protect calls to
3294 target_terminal_ours and wrap_here.
3295
2437fd32
GB
32962014-08-29 Gary Benson <gbenson@redhat.com>
3297
3298 * utils.h (filtered_printing_initialized): New declaration.
3299 * utils.c (abort_with_message): New function.
3300 (internal_vproblem): Use abort_with_message for first level
3301 recursive internal problems, and if gdb_stderr is not set up.
3302 Protect calls to target_terminal_ours, begin_line and query.
3303
f1f58506
DE
33042014-08-28 Doug Evans <dje@google.com>
3305
3306 * symtab.c (in_prologue): Move definition to better spot.
3307 (skip_prologue_using_sal): Ditto.
3308
aab2f208
DE
33092014-08-28 Doug Evans <dje@google.com>
3310
3311 * symtab.c (find_function_start_sal): Move definition to better spot.
3312
6b65d1b6
YQ
33132014-08-28 Yao Qi <yao@codesourcery.com>
3314
3315 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3316 found_stack_adjust in forward scan. Remove condition check
3317 on found_stack_adjust which is always true. Indent the code.
3318
a1b34d15
YQ
33192014-08-28 Yao Qi <yao@codesourcery.com>
3320
3321 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3322 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3323 (dwarf_decode_lines): Remove argument
3324 want_line_info. Remove condition check on want_line_info.
3325 Callers update.
3326
d5962de5
DE
33272014-08-27 Doug Evans <dje@google.com>
3328
3329 * dwarf2read.c (dwarf_record_line): Fix typo.
3330
9b139002
SDJ
33312014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3332
3333 * target.h (struct target_ops::to_terminal_save_ours): Remove
3334 declaration.
3335 (target_terminal_save_ours): Remove macro.
3336 * target-delegates.c: Regenerate.
3337 * inf-child.c (inf_child_target): Don't set the nonexistent
3338 field to_terminal_save_ours.
3339 * inferior.h (child_terminal_save_ours): Remove declaration.
3340 * terminal.h (gdb_save_tty_state): New declaration.
3341 * inflow.c (child_terminal_save_ours): Rename to ...
3342 (gdb_save_tty_state): ... this.
3343 * tui/tui.c: Include terminal.h.
3344 (tui_enable): Use gdb_save_tty_state instead of
3345 target_terminal_save_ours.
3346 (tui_disable): Likewise.
3347
9debeba0
DE
33482014-08-25 Doug Evans <dje@google.com>
3349
3350 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3351 Pass NULL instead of 0 for context pointer.
3352
428fc5fc
YQ
33532014-08-25 Yao Qi <yao@codesourcery.com>
3354
3355 * dwarf2read.c: Fix grammatical error.
3356
cdc07690
YQ
33572014-08-24 Yao Qi <yao@codesourcery.com>
3358
3359 * dwarf2read.c (scan_partial_symbols): Update comments.
3360 Rename argument 'need_pc' with 'set_addrmap'.
3361 (add_partial_namespace): Rename argument 'need_pc' with
3362 'set_addrmap'.
3363 (add_partial_module): Likewise.
3364 (add_partial_subprogram): Likewise. Update comments.
3365 (dwarf2_name): Fix typo.
3366
a05a36a5
DE
33672014-08-22 Doug Evans <dje@google.com>
3368
3369 PR 17276
3370 * dwarf2read.c (dwarf_record_line_p): New function.
3371 (dwarf_decode_lines_1): Ignore subsequent line number entries
3372 for the same line if any entry had a non-zero discriminator.
3373
252a6764
DE
33742014-08-22 Doug Evans <dje@google.com>
3375
3376 * buildsym.h (record_line_ftype): New typedef.
3377 (record_line): Use it.
3378 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3379 (dwarf_decode_lines_1): Call them.
3380
510db052
YQ
33812014-08-22 Yao Qi <yao@codesourcery.com>
3382
3383 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3384 (ctf_end): Remove code.
3385
22fd09ae
JK
33862014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3387
3388 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3389 (linux_make_corefile_notes): call update_thread_list, protected against
3390 exceptions.
3391
656e8868
PA
33922014-08-21 Pedro Alves <palves@redhat.com>
3393
3394 * infcmd.c (attach_command): Remove comment.
3395
de589d04
WN
33962014-08-21 Bin Cheng <bin.cheng@arm.com>
3397
3398 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3399 unsigned LONGEST to ULONGEST.
3400
2a31c623
PA
34012014-08-20 Pedro Alves <palves@redhat.com>
3402
3403 * Makefile.in (check-read1): New rule.
3404
d36430db
JB
34052014-08-20 Joel Brobecker <brobecker@adacore.com>
3406
3407 * value.c (value_from_contents_and_address): Strip resolved_type's
3408 typedef layers before checking its TYPE_DATA_LOCATION.
3409
000339af
PA
34102014-08-20 Pedro Alves <palves@redhat.com>
3411
3412 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3413
5f52445b
YQ
34142014-08-20 Yao Qi <yao@codesourcery.com>
3415
3416 * amd64-tdep.c (amd64_classify): Add a blank line after the
3417 example. Move "*/" to a new line.
3418 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3419 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3420 * dwarf2read.c (psymtab_include_file_name): Likewise.
3421
9a0dc9e3
PA
34222014-08-19 Andrew Burgess <aburgess@broadcom.com>
3423 Pedro Alves <palves@redhat.com>
3424
3425 PR symtab/14604
3426 PR symtab/14605
3427 * ada-lang.c (coerce_unspec_val_to_type): Use
3428 value_contents_copy_raw.
3429 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3430 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3431 * cp-valprint.c (cp_print_value_fields): Let the common printing
3432 code handle optimized out values.
3433 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3434 * d-valprint.c (dynamic_array_type): Use
3435 value_bits_any_optimized_out.
3436 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3437 check_any_valid fields.
3438 (check_pieced_value_bits): Delete and inline ...
3439 (check_pieced_synthetic_pointer): ... here.
3440 (check_pieced_value_validity): Delete.
3441 (check_pieced_value_invalid): Delete.
3442 (pieced_value_funcs): Remove check_validity and check_any_valid
3443 fields.
3444 (read_pieced_value): Use mark_value_bits_optimized_out.
3445 (write_pieced_value): Switch to use
3446 mark_value_bytes_optimized_out.
3447 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3448 of assuming the whole value is optimized out.
3449 * findvar.c (read_frame_register_value): Remove special handling
3450 of optimized out registers.
3451 (value_from_register): Use mark_value_bytes_optimized_out.
3452 * frame-unwind.c (frame_unwind_got_optimized): Use
3453 mark_value_bytes_optimized_out.
3454 * jv-valprint.c (java_value_print): Adjust.
3455 (java_print_value_fields): Let the common printing code handle
3456 optimized out values.
3457 * mips-tdep.c (mips_print_register): Remove special handling of
3458 optimized out registers.
3459 * opencl-lang.c (lval_func_check_validity): Delete.
3460 (lval_func_check_any_valid): Delete.
3461 (opencl_value_funcs): Remove check_validity and check_any_valid
3462 fields.
3463 * p-valprint.c (pascal_object_print_value_fields): Let the common
3464 printing code handle optimized out values.
3465 * stack.c (read_frame_arg): Remove special handling of optimized
3466 out values. Fetch both VAL and ENTRYVAL before comparing
3467 contents. Adjust to value_available_contents_eq rename.
3468 * valprint.c (valprint_check_validity)
3469 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3470 (val_print_array_elements): Adjust.
3471 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3472 (value_bits_any_optimized_out): New function.
3473 (value_entirely_covered_by_range_vector): New function, factored
3474 out from value_entirely_unavailable.
3475 (value_entirely_unavailable): Reimplement.
3476 (value_entirely_optimized_out): New function.
3477 (insert_into_bit_range_vector): New function, factored out from
3478 mark_value_bits_unavailable.
3479 (mark_value_bits_unavailable): Reimplement.
3480 (struct ranges_and_idx): New struct.
3481 (find_first_range_overlap_and_match): New function, factored out
3482 from value_available_contents_bits_eq.
3483 (value_available_contents_bits_eq): Rename to ...
3484 (value_contents_bits_eq): ... this. Check both unavailable
3485 contents and optimized out contents.
3486 (value_available_contents_eq): Rename to ...
3487 (value_contents_eq): ... this.
3488 (allocate_value_lazy): Remove reference to the old optimized_out
3489 boolean.
3490 (allocate_optimized_out_value): Use
3491 mark_value_bytes_optimized_out.
3492 (require_not_optimized_out): Adjust to check whether the
3493 optimized_out vec is empty.
3494 (ranges_copy_adjusted): New function, factored out from
3495 value_contents_copy_raw.
3496 (value_contents_copy_raw): Also copy the optimized out ranges.
3497 Assert the destination ranges aren't optimized out.
3498 (value_contents_copy): Update comment, remove call to
3499 require_not_optimized_out.
3500 (value_contents_equal): Adjust to check whether the optimized_out
3501 vec is empty.
3502 (set_value_optimized_out, value_optimized_out_const): Delete.
3503 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3504 New functions.
3505 (value_entirely_optimized_out, value_bits_valid): Delete.
3506 (value_copy): Take a VEC copy of the 'optimized_out' field.
3507 (value_primitive_field): Remove special handling of optimized out.
3508 (value_fetch_lazy): Assert that lazy values have no unavailable
3509 regions. Use value_bits_any_optimized_out. Remove some special
3510 handling for optimized out values.
3511 * value.h: Add intro comment about <optimized out> and
3512 <unavailable>.
3513 (struct lval_funcs): Remove check_validity and check_any_valid
3514 fields.
3515 (set_value_optimized_out, value_optimized_out_const): Remove.
3516 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3517 New declarations.
3518 (value_bits_any_optimized_out): New declaration.
3519 (value_bits_valid): Delete declaration.
3520 (value_available_contents_eq): Rename to ...
3521 (value_contents_eq): ... this, and extend comments.
3522
6694c411
JK
35232014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3524
3525 Fix -fsanitize=address on unreadable inferior strings.
3526 * valprint.c (val_print_string): Fix access before BUFFER.
3527
89a1c21a
SM
35282014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3529
3530 * target.c (target_struct_size): Remove.
3531 (target_struct_allocsize): Remove.
3532 (DEFAULT_ALLOCSIZE): Remove.
3533 (target_ops_p): New typedef.
3534 (DEF_VEC_P (target_ops_p)): New vector type.
3535 (target_structs): Change type to VEC (target_ops_p).
3536 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3537 (find_default_run_target): Rewrite for loop following changes to
3538 target_structs.
3539
cb417230
JB
35402014-08-19 Joel Brobecker <brobecker@adacore.com>
3541
3542 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3543 Adjust code accordingly. Adjust function description comment.
3544
817e0957
YQ
35452014-08-19 Yao Qi <yao@codesourcery.com>
3546
3547 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3548 types.
3549
2974be62
AM
35502014-08-19 Alan Modra <amodra@gmail.com>
3551
3552 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3553 * config.in: Regenerate.
3554 * configure: Regenerate.
3555
34abf635
GB
35562014-08-19 Tom Tromey <tromey@redhat.com>
3557 Gary Benson <gbenson@redhat.com>
3558
3559 * common/common-debug.h: New file.
3560 * common/common-debug.c: Likewise.
3561 * debug.c: Likewise.
3562 * Makefile.in (SFILES): Add common/common-debug.c.
3563 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3564 (COMMON_OBS): Add common-debug.o and debug.o.
3565 (common-debug.o): New rule.
3566 * common/common-defs.h: Include common-debug.h.
3567 * common/agent.c (debug_agent_printf): New function.
3568 (DEBUG_AGENT): Redefine.
3569 * nat/i386-dregs.c (debug_printf): Undefine.
3570
f6e94d78
GB
35712014-08-19 Gary Benson <gbenson@redhat.com>
3572
3573 * common/common-defs.h: Include print-utils.h.
3574 * utils.h: Do not include print-utils.h.
3575
9239eeab
GB
35762014-08-19 Tom Tromey <tromey@redhat.com>
3577 Gary Benson <gbenson@redhat.com>
3578
3579 * common/common-types.h: New file.
3580 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3581 * common/common-defs.h: Include common-types.h.
3582 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3583 (ULONGEST): Remove.
3584
ef87c8bb
GB
35852014-08-19 Tom Tromey <tromey@redhat.com>
3586 Gary Benson <gbenson@redhat.com>
3587
3588 * common/errors.h: New file.
3589 * common/errors.c: Likewise.
3590 * Makefile.in (SFILES): Add common/errors.c.
3591 (HFILES_NO_SRCDIR): Add common/errors.h.
3592 (COMMON_OBS): Add errors.o.
3593 (errors.o): New rule.
3594 * common/common-defs.h: Include errors.h.
3595 * utils.h (perror_with_name, error, verror, warning, vwarning):
3596 Don't declare.
3597 * common/common-utils.h: (malloc_failure, internal_error):
3598 Likewise.
3599
196a707b
GB
36002014-08-19 Gary Benson <gbenson@redhat.com>
3601
3602 * utils.c (internal_vproblem): Always print the message.
3603
ded4fc8f
DE
36042014-08-18 Doug Evans <dje@google.com>
3605
3606 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3607
950c97d8
JB
36082014-08-18 Joel Brobecker <brobecker@adacore.com>
3609
3610 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3611 Return 0 if TYPE is dynamic.
3612 (print_range): Add handling of dynamic ranges.
3613
3cdcd0ce
JB
36142014-08-18 Keven Boell <keven.boell@intel.com>
3615 Joel Brobecker <brobecker@adacore.com>
3616
3617 * gdbtypes.h (struct main_type): Add field "data_location".
3618 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3619 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3620 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3621 a dynamic data location.
3622 (resolve_dynamic_type): Add DW_AT_data_location handling.
3623 (copy_recursive, copy_type): Copy the data_location information
3624 when present.
3625 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3626 * value.c (value_from_contents_and_address): Add
3627 DW_AT_data_location handling.
3628
08412b07
JB
36292014-08-18 Keven Boell <keven.boell@intel.com>
3630 Joel Brobecker <brobecker@adacore.com>
3631
3632 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3633 field "get_object_address".
3634 * dwarf2expr.c (execute_stack_op): Add handling for
3635 DW_OP_push_object_address.
3636 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3637 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3638 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3639 (dwarf_expr_get_obj_addr): New function.
3640 (dwarf_expr_ctx_funcs): Add get_object_address field.
3641 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3642 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3643 (dwarf2_evaluate_property): Add parameter "address". Use it.
3644 (needs_get_obj_addr): New function.
3645 (needs_frame_ctx_funcs): Add get_object_address field.
3646 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3647 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3648 (resolve_dynamic_array): Likewise.
3649
84754697
JB
36502014-08-18 Joel Brobecker <brobecker@adacore.com>
3651
3652 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3653 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3654 fixed value for records and unions for which some GNAT encodings
3655 are present.
3656
da5c522f
JB
36572014-08-18 Joel Brobecker <brobecker@adacore.com>
3658
3659 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3660 rewrite to avoid "else if" and "else" constructs. Should be
3661 a no-op in practice.
3662
0d72a7c3
JB
36632014-08-18 Joel Brobecker <brobecker@adacore.com>
3664
3665 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3666 of lexical block.
3667
e66d4446
SC
36682014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3669
3670 PR c++/17132
3671 * eval.c: Update all calls to find_overload_match.
3672 * valarith.c: Likewise.
3673 (value_user_defined_cpp_op, value_user_defined_op): New
3674 argument NOSIDE. Update all callers.
3675 * valops.c (find_overload_match): New argument NOSIDE.
3676 * value.h (find_overload_match): Update signature.
3677
940df408
SC
36782014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3679
3680 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3681 'items' methods instead of 'iteritems' method on dictionaries.
3682
699ca60a
DE
36832014-08-15 Doug Evans <dje@google.com>
3684
3685 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3686 closer to use.
3687
37780ee5
DE
36882014-08-15 Doug Evans <dje@google.com>
3689
3690 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3691
0ad93d4f
DE
36922014-08-15 Doug Evans <dje@google.com>
3693
3694 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3695
20d8c372
DE
36962014-08-15 Doug Evans <dje@google.com>
3697
3698 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3699 unused.
3700
cb039ba4
EZ
37012014-08-15 Eli Zaretskii <eliz@gnu.org>
3702
3703 * dcache.h: Include target.h, to avoid compile time warnings.
3704
eb7a547a
JB
37052014-08-15 Joel Brobecker <brobecker@adacore.com>
3706
3707 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3708 frame_info" partial declaration.
3709 * gdbarch.h: Regenerate.
3710
783cecc8
YQ
37112014-08-15 Yao Qi <yao@codesourcery.com>
3712
3713 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3714 Add parameter 'decode_for_pst_p'. Callers update.
3715
65c749e7
YQ
37162014-08-13 Yao Qi <yao@codesourcery.com>
3717
3718 PR build/17104
3719 * configure.ac: Use local variable 'pos'.
3720 * configure: Regenerated.
3721
d769e349
DE
37222014-08-11 Doug Evans <dje@google.com>
3723
3724 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3725 message, it is redundant with "Reading symbols from ..." message.
3726
24f1235e
DE
37272014-08-10 Doug Evans <xdje42@gmail.com>
3728
3729 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3730
dcd2e6ef
YQ
37312014-08-09 Yao Qi <yao@codesourcery.com>
3732
3733 PR remote/9053
3734 * remote.c (remote_xfer_partial): Remove dead code.
3735
070bdf0b
AA
37362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3737
3738 * ia64-linux-tdep.c: Include "regset.h".
3739 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3740 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3741 (ia64_linux_supply_fpregset): New function.
3742 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3743 (ia64_linux_regset_from_core_section): New function.
3744 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3745 method.
3746
08f9f542
AA
37472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3748
3749 * m68klinux-tdep.c: Include "regset.h".
3750 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3751 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3752 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3753 (m68k_linux_regset_from_core_section): New function.
3754 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3755 method.
3756
8f1cee41
AA
37572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3758
3759 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3760 function. Move logic to...
3761 (tilegx_linux_regmap): ... this new register map.
3762 (tilegx_linux_regset): Refer to register map, replace supply
3763 method by regcache_supply_regset, and add collect method.
3764 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3765 TILEGX_FIRST_EASY_REGNUM.
3766
c5741217
AA
37672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3768
3769 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3770 that calls regcache_supply_regset and handles the EPC register
3771 separately. Move main logic to...
3772 (score7_linux_gregmap): ... this new register map.
3773 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3774 (score7_linux_gregset): Refer to register map. Add collect method.
3775 (score7_linux_regset_from_core_section): Replace
3776 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3777 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3778 (struct regset): Delete unused forward declaraction.
3779 (struct pt_regs): Delete structure definition.
3780 (elf_gregset_t): Delete typedef.
3781
81580573
AA
37822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3783
3784 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3785 (nios2_core_regset): Add collect method.
3786
ba199d7d
AA
37872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3788
3789 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3790 platform-independent and don't write to read-only input buffer.
3791 (m32r_linux_collect_gregset): New function.
3792 (m32r_linux_gregset): Add collect method.
3793
0006a9da
AA
37942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3795
3796 * hppa-linux-tdep.c (greg_map): Rename to...
3797 (hppa_linux_gregmap): ... this. Also convert to
3798 regcache_map_entry format.
3799 (hppa_linux_supply_regset): Delete function.
3800 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3801 (hppa_linux_fpregmap): ... this new register map.
3802 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3803 register map, replace supply method by regcache_supply_regset, and
3804 add collect method regcache_collect_regset.
3805
901e1b23
AA
38062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3807
3808 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3809 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3810 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3811 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3812 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3813 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3814 (frv_linux_supply_gregset): Replace main logic by call to
3815 regcache_supply_regset, but keep clearing gr32-gr63.
3816 (frv_linux_supply_fpregset): Delete function.
3817 (frv_linux_gregset): Refer to appropriate register map and add
3818 regcache_collect_regset as the collect method.
3819 (frv_linux_fpregset): Likewise. Also exchange the supply method
3820 by regcache_supply_regset.
3821
1d6e7555
AA
38222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3823
3824 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3825 by call to alpha_supply_int_regs.
3826 (alpha_linux_collect_gregset): New function.
3827 (alpha_linux_supply_fpregset): Replace logic by call to
3828 alpha_supply_fp_regs.
3829 (alpha_linux_collect_fpregset): New function.
3830 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3831
d4d793bf
AA
38322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3833
3834 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3835 by call to regcache_collect_regset.
3836 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3837 instead of aarch64_linux_supply_gregset/_fpregset.
3838 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3839 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3840 header file instead.
3841 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3842 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3843 functions. Move logic to ...
3844 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3845 register maps.
3846 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3847 refer to new register maps, replace *_regset_from_core by
3848 regcache_supply_regset, and also use regcache_collect_regset.
3849 * aarch64-linux-tdep.h: Include "regset.h".
3850 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3851 Delete prototypes.
3852 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3853 macros, moved from C source file.
3854 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3855 variable declarations.
3856
99b7da5d
AA
38572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3858
3859 * s390-linux-nat.c: Include "regset.h".
3860 (regmap_gregset): Delete macro.
3861 (s390_64_regmap_gregset): New register map for
3862 regcache_supply/_collect_regset.
3863 (s390_64_gregset): New regset.
3864 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3865 (regmap_fpregset): Delete macro.
3866 (s390_native_supply, s390_native_collect): Delete functions.
3867 (supply_gregset, fill_gregset): Replace s390-specific regmap
3868 handling by a call to regcache_supply/_collect_regset.
3869 (supply_fpregset, fill_fpregset): Call regcache_supply/
3870 _collect_regset instead of s390_native_supply/_collect.
3871 (fetch_regset, store_regset): Likewise. Also change the last
3872 parameter to a regset instead of a regmap.
3873 (s390_linux_fetch_inferior_registers)
3874 (390_linux_store_inferior_registers): Adjust last parameter in
3875 calls to fetch_regset and store_regset.
3876 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3877 (s390_gregmap): ... this. Also make static const and convert to
3878 regcache_map_entry format.
3879 (s390x_regmap_gregset): Delete.
3880 (s390_regmap_fpregset): Rename to...
3881 (s390_fpregmap): ... this. Make static const and convert to
3882 regcache_map_entry format.
3883 (s390_regmap_upper, s390_regmap_last_break)
3884 (s390x_regmap_last_break, s390_regmap_system_call)
3885 (s390_regmap_tdb): Likewise.
3886 (s390_supply_regset, s390_collect_regset): Remove functions.
3887 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3888 s390_supply_regset.
3889 (s390_gregset, s390_fpregset, s390_upper_regset)
3890 (s390_last_break_regset, s390x_last_break_regset)
3891 (s390_system_call_regset, s390_tdb_regset): Make global and
3892 replace s390_supply/_collect_regset by regcache_supply/
3893 _collect_regset.
3894 (s390x_gregset): Delete.
3895 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3896 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3897 (s390_regmap_fpregset, s390_regmap_last_break)
3898 (s390x_regmap_last_break, s390_regmap_system_call)
3899 (s390_regmap_tdb): Delete global variable declarations.
3900 (s390_gregset, s390_fpregset, s390_last_break_regset)
3901 (s390x_last_break_regset, s390_system_call_regset)
3902 (s390_tdb_regset): New global variable declarations.
3903
0b309272
AA
39042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3905
3906 * regcache.c: Include "regset.h".
3907 (regcache_transfer_regset): New local function.
3908 (regcache_supply_regset, regcache_collect_regset): New functions.
3909 * regcache.h (struct regcache_map_entry): New structure.
3910 (REGCACHE_MAP_SKIP): New enum value.
3911 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3912
7fefa8d7
AA
39132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3914
3915 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3916 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3917 (ppc_linux_collect_gregset ): Likewise.
3918 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3919 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3920 (ppc_collect_vrregset): Likewise.
3921 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3922 Likewise.
3923
96c4f946
YQ
39242014-08-07 Yao Qi <yao@codesourcery.com>
3925
3926 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3927 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3928 * remote.c (remote_read_bytes): Likewise.
3929
fffbe6a8
YQ
39302014-08-07 Yao Qi <yao@codesourcery.com>
3931
3932 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3933
5ee8a82c
YQ
39342014-08-07 Yao Qi <yao@codesourcery.com>
3935
3936 PR remote/17230
3937 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3938 TARGET_XFER_OK instead of 0.
3939
bb974a24
GB
39402014-08-07 Gary Benson <gbenson@redhat.com>
3941
3942 * common/common-defs.h: Include errno.h.
3943 * defs.h: Do not include errno.h.
3944 * ada-typeprint.c: Likewise.
3945 * c-typeprint.c: Likewise.
3946 * core-regset.c: Likewise.
3947 * corefile.c: Likewise.
3948 * corelow.c: Likewise.
3949 * event-loop.c: Likewise.
3950 * f-typeprint.c: Likewise.
3951 * gnu-nat.c: Likewise.
3952 * go32-nat.c: Likewise.
3953 * i386gnu-nat.c: Likewise.
3954 * m2-typeprint.c: Likewise.
3955 * nat/linux-btrace.c: Likewise.
3956 * p-typeprint.c: Likewise.
3957 * procfs.c: Likewise.
3958 * remote-sim.c: Likewise.
3959 * rs6000-nat.c: Likewise.
3960 * target.c: Likewise.
3961 * typeprint.c: Likewise.
3962 * ui-file.c: Likewise.
3963 * valops.c: Likewise.
3964 * valprint.c: Likewise.
3965
6d3d12eb
GB
39662014-08-07 Gary Benson <gbenson@redhat.com>
3967
3968 * common/common-defs.h: Include string.h.
3969 * aarch64-tdep.c: Do not include string.h.
3970 * ada-exp.y: Likewise.
3971 * ada-lang.c: Likewise.
3972 * ada-lex.l: Likewise.
3973 * ada-typeprint.c: Likewise.
3974 * ada-valprint.c: Likewise.
3975 * aix-thread.c: Likewise.
3976 * alpha-linux-tdep.c: Likewise.
3977 * alpha-mdebug-tdep.c: Likewise.
3978 * alpha-nat.c: Likewise.
3979 * alpha-osf1-tdep.c: Likewise.
3980 * alpha-tdep.c: Likewise.
3981 * alphanbsd-tdep.c: Likewise.
3982 * amd64-dicos-tdep.c: Likewise.
3983 * amd64-linux-tdep.c: Likewise.
3984 * amd64-nat.c: Likewise.
3985 * amd64-sol2-tdep.c: Likewise.
3986 * amd64fbsd-tdep.c: Likewise.
3987 * amd64obsd-tdep.c: Likewise.
3988 * arch-utils.c: Likewise.
3989 * arm-linux-nat.c: Likewise.
3990 * arm-linux-tdep.c: Likewise.
3991 * arm-tdep.c: Likewise.
3992 * arm-wince-tdep.c: Likewise.
3993 * armbsd-tdep.c: Likewise.
3994 * armnbsd-nat.c: Likewise.
3995 * armnbsd-tdep.c: Likewise.
3996 * armobsd-tdep.c: Likewise.
3997 * avr-tdep.c: Likewise.
3998 * ax-gdb.c: Likewise.
3999 * ax-general.c: Likewise.
4000 * bcache.c: Likewise.
4001 * bfin-tdep.c: Likewise.
4002 * breakpoint.c: Likewise.
4003 * build-id.c: Likewise.
4004 * buildsym.c: Likewise.
4005 * c-exp.y: Likewise.
4006 * c-lang.c: Likewise.
4007 * c-typeprint.c: Likewise.
4008 * c-valprint.c: Likewise.
4009 * charset.c: Likewise.
4010 * cli-out.c: Likewise.
4011 * cli/cli-cmds.c: Likewise.
4012 * cli/cli-decode.c: Likewise.
4013 * cli/cli-dump.c: Likewise.
4014 * cli/cli-interp.c: Likewise.
4015 * cli/cli-logging.c: Likewise.
4016 * cli/cli-script.c: Likewise.
4017 * cli/cli-setshow.c: Likewise.
4018 * cli/cli-utils.c: Likewise.
4019 * coffread.c: Likewise.
4020 * common/agent.c: Likewise.
4021 * common/buffer.c: Likewise.
4022 * common/buffer.h: Likewise.
4023 * common/common-utils.c: Likewise.
4024 * common/filestuff.c: Likewise.
4025 * common/filestuff.c: Likewise.
4026 * common/format.c: Likewise.
4027 * common/print-utils.c: Likewise.
4028 * common/rsp-low.c: Likewise.
4029 * common/signals.c: Likewise.
4030 * common/vec.h: Likewise.
4031 * common/xml-utils.c: Likewise.
4032 * core-regset.c: Likewise.
4033 * corefile.c: Likewise.
4034 * corelow.c: Likewise.
4035 * cp-abi.c: Likewise.
4036 * cp-name-parser.y: Likewise.
4037 * cp-support.c: Likewise.
4038 * cp-valprint.c: Likewise.
4039 * cris-tdep.c: Likewise.
4040 * d-exp.y: Likewise.
4041 * darwin-nat.c: Likewise.
4042 * dbxread.c: Likewise.
4043 * dcache.c: Likewise.
4044 * demangle.c: Likewise.
4045 * dicos-tdep.c: Likewise.
4046 * disasm.c: Likewise.
4047 * doublest.c: Likewise.
4048 * dsrec.c: Likewise.
4049 * dummy-frame.c: Likewise.
4050 * dwarf2-frame.c: Likewise.
4051 * dwarf2loc.c: Likewise.
4052 * dwarf2read.c: Likewise.
4053 * elfread.c: Likewise.
4054 * environ.c: Likewise.
4055 * eval.c: Likewise.
4056 * event-loop.c: Likewise.
4057 * exceptions.c: Likewise.
4058 * exec.c: Likewise.
4059 * expprint.c: Likewise.
4060 * f-exp.y: Likewise.
4061 * f-lang.c: Likewise.
4062 * f-typeprint.c: Likewise.
4063 * f-valprint.c: Likewise.
4064 * fbsd-nat.c: Likewise.
4065 * findcmd.c: Likewise.
4066 * findvar.c: Likewise.
4067 * fork-child.c: Likewise.
4068 * frame.c: Likewise.
4069 * frv-linux-tdep.c: Likewise.
4070 * frv-tdep.c: Likewise.
4071 * gdb.c: Likewise.
4072 * gdb_bfd.c: Likewise.
4073 * gdbarch.c: Likewise.
4074 * gdbarch.sh: Likewise.
4075 * gdbtypes.c: Likewise.
4076 * gnu-nat.c: Likewise.
4077 * gnu-v2-abi.c: Likewise.
4078 * gnu-v3-abi.c: Likewise.
4079 * go-exp.y: Likewise.
4080 * go-lang.c: Likewise.
4081 * go32-nat.c: Likewise.
4082 * guile/guile.c: Likewise.
4083 * guile/scm-auto-load.c: Likewise.
4084 * hppa-hpux-tdep.c: Likewise.
4085 * hppa-linux-nat.c: Likewise.
4086 * hppanbsd-tdep.c: Likewise.
4087 * hppaobsd-tdep.c: Likewise.
4088 * i386-cygwin-tdep.c: Likewise.
4089 * i386-dicos-tdep.c: Likewise.
4090 * i386-linux-tdep.c: Likewise.
4091 * i386-nto-tdep.c: Likewise.
4092 * i386-sol2-tdep.c: Likewise.
4093 * i386-tdep.c: Likewise.
4094 * i386bsd-tdep.c: Likewise.
4095 * i386gnu-nat.c: Likewise.
4096 * i386nbsd-tdep.c: Likewise.
4097 * i386obsd-tdep.c: Likewise.
4098 * i387-tdep.c: Likewise.
4099 * ia64-libunwind-tdep.c: Likewise.
4100 * ia64-linux-nat.c: Likewise.
4101 * inf-child.c: Likewise.
4102 * inf-ptrace.c: Likewise.
4103 * inf-ttrace.c: Likewise.
4104 * infcall.c: Likewise.
4105 * infcmd.c: Likewise.
4106 * inflow.c: Likewise.
4107 * infrun.c: Likewise.
4108 * interps.c: Likewise.
4109 * iq2000-tdep.c: Likewise.
4110 * irix5-nat.c: Likewise.
4111 * jv-exp.y: Likewise.
4112 * jv-lang.c: Likewise.
4113 * jv-typeprint.c: Likewise.
4114 * jv-valprint.c: Likewise.
4115 * language.c: Likewise.
4116 * linux-fork.c: Likewise.
4117 * linux-nat.c: Likewise.
4118 * lm32-tdep.c: Likewise.
4119 * m2-exp.y: Likewise.
4120 * m2-typeprint.c: Likewise.
4121 * m32c-tdep.c: Likewise.
4122 * m32r-linux-nat.c: Likewise.
4123 * m32r-linux-tdep.c: Likewise.
4124 * m32r-rom.c: Likewise.
4125 * m32r-tdep.c: Likewise.
4126 * m68hc11-tdep.c: Likewise.
4127 * m68k-tdep.c: Likewise.
4128 * m68kbsd-tdep.c: Likewise.
4129 * m68klinux-nat.c: Likewise.
4130 * m68klinux-tdep.c: Likewise.
4131 * m88k-tdep.c: Likewise.
4132 * machoread.c: Likewise.
4133 * macrocmd.c: Likewise.
4134 * main.c: Likewise.
4135 * mdebugread.c: Likewise.
4136 * mem-break.c: Likewise.
4137 * memattr.c: Likewise.
4138 * memory-map.c: Likewise.
4139 * mep-tdep.c: Likewise.
4140 * mi/mi-cmd-break.c: Likewise.
4141 * mi/mi-cmd-disas.c: Likewise.
4142 * mi/mi-cmd-env.c: Likewise.
4143 * mi/mi-cmd-stack.c: Likewise.
4144 * mi/mi-cmd-var.c: Likewise.
4145 * mi/mi-cmds.c: Likewise.
4146 * mi/mi-console.c: Likewise.
4147 * mi/mi-getopt.c: Likewise.
4148 * mi/mi-interp.c: Likewise.
4149 * mi/mi-main.c: Likewise.
4150 * mi/mi-parse.c: Likewise.
4151 * microblaze-rom.c: Likewise.
4152 * microblaze-tdep.c: Likewise.
4153 * mingw-hdep.c: Likewise.
4154 * minidebug.c: Likewise.
4155 * minsyms.c: Likewise.
4156 * mips-irix-tdep.c: Likewise.
4157 * mips-linux-tdep.c: Likewise.
4158 * mips-tdep.c: Likewise.
4159 * mips64obsd-tdep.c: Likewise.
4160 * mipsnbsd-tdep.c: Likewise.
4161 * mipsread.c: Likewise.
4162 * mn10300-linux-tdep.c: Likewise.
4163 * mn10300-tdep.c: Likewise.
4164 * monitor.c: Likewise.
4165 * moxie-tdep.c: Likewise.
4166 * mt-tdep.c: Likewise.
4167 * nat/linux-btrace.c: Likewise.
4168 * nat/linux-osdata.c: Likewise.
4169 * nat/linux-procfs.c: Likewise.
4170 * nat/linux-ptrace.c: Likewise.
4171 * nat/linux-waitpid.c: Likewise.
4172 * nbsd-tdep.c: Likewise.
4173 * nios2-linux-tdep.c: Likewise.
4174 * nto-procfs.c: Likewise.
4175 * nto-tdep.c: Likewise.
4176 * objc-lang.c: Likewise.
4177 * objfiles.c: Likewise.
4178 * opencl-lang.c: Likewise.
4179 * osabi.c: Likewise.
4180 * osdata.c: Likewise.
4181 * p-exp.y: Likewise.
4182 * p-lang.c: Likewise.
4183 * p-typeprint.c: Likewise.
4184 * parse.c: Likewise.
4185 * posix-hdep.c: Likewise.
4186 * ppc-linux-nat.c: Likewise.
4187 * ppc-sysv-tdep.c: Likewise.
4188 * ppcfbsd-tdep.c: Likewise.
4189 * ppcnbsd-tdep.c: Likewise.
4190 * ppcobsd-tdep.c: Likewise.
4191 * printcmd.c: Likewise.
4192 * procfs.c: Likewise.
4193 * prologue-value.c: Likewise.
4194 * python/py-auto-load.c: Likewise.
4195 * python/py-gdb-readline.c: Likewise.
4196 * ravenscar-thread.c: Likewise.
4197 * regcache.c: Likewise.
4198 * registry.c: Likewise.
4199 * remote-fileio.c: Likewise.
4200 * remote-m32r-sdi.c: Likewise.
4201 * remote-mips.c: Likewise.
4202 * remote-notif.c: Likewise.
4203 * remote-sim.c: Likewise.
4204 * remote.c: Likewise.
4205 * reverse.c: Likewise.
4206 * rs6000-aix-tdep.c: Likewise.
4207 * ser-base.c: Likewise.
4208 * ser-go32.c: Likewise.
4209 * ser-mingw.c: Likewise.
4210 * ser-pipe.c: Likewise.
4211 * ser-tcp.c: Likewise.
4212 * ser-unix.c: Likewise.
4213 * serial.c: Likewise.
4214 * sh-tdep.c: Likewise.
4215 * sh64-tdep.c: Likewise.
4216 * shnbsd-tdep.c: Likewise.
4217 * skip.c: Likewise.
4218 * sol-thread.c: Likewise.
4219 * solib-dsbt.c: Likewise.
4220 * solib-frv.c: Likewise.
4221 * solib-osf.c: Likewise.
4222 * solib-som.c: Likewise.
4223 * solib-spu.c: Likewise.
4224 * solib-target.c: Likewise.
4225 * solib.c: Likewise.
4226 * somread.c: Likewise.
4227 * source.c: Likewise.
4228 * sparc-nat.c: Likewise.
4229 * sparc-sol2-tdep.c: Likewise.
4230 * sparc-tdep.c: Likewise.
4231 * sparc64-tdep.c: Likewise.
4232 * sparc64fbsd-tdep.c: Likewise.
4233 * sparc64nbsd-tdep.c: Likewise.
4234 * sparcnbsd-tdep.c: Likewise.
4235 * spu-linux-nat.c: Likewise.
4236 * spu-multiarch.c: Likewise.
4237 * spu-tdep.c: Likewise.
4238 * stabsread.c: Likewise.
4239 * stack.c: Likewise.
4240 * std-regs.c: Likewise.
4241 * symfile.c: Likewise.
4242 * symmisc.c: Likewise.
4243 * symtab.c: Likewise.
4244 * target.c: Likewise.
4245 * thread.c: Likewise.
4246 * tilegx-linux-nat.c: Likewise.
4247 * tilegx-tdep.c: Likewise.
4248 * top.c: Likewise.
4249 * tracepoint.c: Likewise.
4250 * tui/tui-command.c: Likewise.
4251 * tui/tui-data.c: Likewise.
4252 * tui/tui-disasm.c: Likewise.
4253 * tui/tui-file.c: Likewise.
4254 * tui/tui-layout.c: Likewise.
4255 * tui/tui-out.c: Likewise.
4256 * tui/tui-regs.c: Likewise.
4257 * tui/tui-source.c: Likewise.
4258 * tui/tui-stack.c: Likewise.
4259 * tui/tui-win.c: Likewise.
4260 * tui/tui-windata.c: Likewise.
4261 * tui/tui-winsource.c: Likewise.
4262 * typeprint.c: Likewise.
4263 * ui-file.c: Likewise.
4264 * ui-out.c: Likewise.
4265 * user-regs.c: Likewise.
4266 * utils.c: Likewise.
4267 * v850-tdep.c: Likewise.
4268 * valarith.c: Likewise.
4269 * valops.c: Likewise.
4270 * valprint.c: Likewise.
4271 * value.c: Likewise.
4272 * varobj.c: Likewise.
4273 * vax-tdep.c: Likewise.
4274 * vaxnbsd-tdep.c: Likewise.
4275 * vaxobsd-tdep.c: Likewise.
4276 * windows-nat.c: Likewise.
4277 * xcoffread.c: Likewise.
4278 * xml-support.c: Likewise.
4279 * xstormy16-tdep.c: Likewise.
4280 * xtensa-linux-nat.c: Likewise.
4281
dccbb609
GB
42822014-08-07 Gary Benson <gbenson@redhat.com>
4283
4284 * common/common-defs.h: Include gdb_assert.h.
4285 * aarch64-tdep.c: Do not include gdb_assert.h.
4286 * addrmap.c: Likewise.
4287 * aix-thread.c: Likewise.
4288 * alpha-linux-tdep.c: Likewise.
4289 * alpha-mdebug-tdep.c: Likewise.
4290 * alphanbsd-tdep.c: Likewise.
4291 * amd64-nat.c: Likewise.
4292 * amd64-tdep.c: Likewise.
4293 * amd64bsd-nat.c: Likewise.
4294 * amd64fbsd-nat.c: Likewise.
4295 * amd64fbsd-tdep.c: Likewise.
4296 * amd64nbsd-nat.c: Likewise.
4297 * amd64nbsd-tdep.c: Likewise.
4298 * amd64obsd-nat.c: Likewise.
4299 * amd64obsd-tdep.c: Likewise.
4300 * arch-utils.c: Likewise.
4301 * arm-tdep.c: Likewise.
4302 * armbsd-tdep.c: Likewise.
4303 * auxv.c: Likewise.
4304 * bcache.c: Likewise.
4305 * bfin-tdep.c: Likewise.
4306 * blockframe.c: Likewise.
4307 * breakpoint.c: Likewise.
4308 * bsd-kvm.c: Likewise.
4309 * bsd-uthread.c: Likewise.
4310 * buildsym.c: Likewise.
4311 * c-exp.y: Likewise.
4312 * c-lang.c: Likewise.
4313 * charset.c: Likewise.
4314 * cleanups.c: Likewise.
4315 * cli-out.c: Likewise.
4316 * cli/cli-decode.c: Likewise.
4317 * cli/cli-dump.c: Likewise.
4318 * cli/cli-logging.c: Likewise.
4319 * cli/cli-script.c: Likewise.
4320 * cli/cli-utils.c: Likewise.
4321 * coffread.c: Likewise.
4322 * common/common-utils.c: Likewise.
4323 * common/queue.h: Likewise.
4324 * common/signals.c: Likewise.
4325 * common/vec.h: Likewise.
4326 * complaints.c: Likewise.
4327 * completer.c: Likewise.
4328 * corelow.c: Likewise.
4329 * cp-abi.c: Likewise.
4330 * cp-name-parser.y: Likewise.
4331 * cp-namespace.c: Likewise.
4332 * cp-support.c: Likewise.
4333 * cris-tdep.c: Likewise.
4334 * dbxread.c: Likewise.
4335 * dictionary.c: Likewise.
4336 * doublest.c: Likewise.
4337 * dsrec.c: Likewise.
4338 * dummy-frame.c: Likewise.
4339 * dwarf2-frame-tailcall.c: Likewise.
4340 * dwarf2-frame.c: Likewise.
4341 * dwarf2expr.c: Likewise.
4342 * dwarf2loc.c: Likewise.
4343 * dwarf2read.c: Likewise.
4344 * eval.c: Likewise.
4345 * event-loop.c: Likewise.
4346 * exceptions.c: Likewise.
4347 * expprint.c: Likewise.
4348 * f-valprint.c: Likewise.
4349 * fbsd-nat.c: Likewise.
4350 * findvar.c: Likewise.
4351 * frame-unwind.c: Likewise.
4352 * frame.c: Likewise.
4353 * frv-tdep.c: Likewise.
4354 * gcore.c: Likewise.
4355 * gdb-dlfcn.c: Likewise.
4356 * gdb_bfd.c: Likewise.
4357 * gdbarch.c: Likewise.
4358 * gdbarch.sh: Likewise.
4359 * gdbtypes.c: Likewise.
4360 * gnu-nat.c: Likewise.
4361 * gnu-v3-abi.c: Likewise.
4362 * go-lang.c: Likewise.
4363 * guile/scm-exception.c: Likewise.
4364 * guile/scm-gsmob.c: Likewise.
4365 * guile/scm-lazy-string.c: Likewise.
4366 * guile/scm-math.c: Likewise.
4367 * guile/scm-pretty-print.c: Likewise.
4368 * guile/scm-safe-call.c: Likewise.
4369 * guile/scm-utils.c: Likewise.
4370 * guile/scm-value.c: Likewise.
4371 * h8300-tdep.c: Likewise.
4372 * hppa-hpux-nat.c: Likewise.
4373 * hppa-tdep.c: Likewise.
4374 * hppanbsd-tdep.c: Likewise.
4375 * hppaobsd-tdep.c: Likewise.
4376 * i386-darwin-nat.c: Likewise.
4377 * i386-darwin-tdep.c: Likewise.
4378 * i386-nto-tdep.c: Likewise.
4379 * i386-tdep.c: Likewise.
4380 * i386bsd-nat.c: Likewise.
4381 * i386fbsd-tdep.c: Likewise.
4382 * i386gnu-nat.c: Likewise.
4383 * i386nbsd-tdep.c: Likewise.
4384 * i386obsd-tdep.c: Likewise.
4385 * i387-tdep.c: Likewise.
4386 * ia64-libunwind-tdep.c: Likewise.
4387 * ia64-tdep.c: Likewise.
4388 * inf-ptrace.c: Likewise.
4389 * inf-ttrace.c: Likewise.
4390 * infcall.c: Likewise.
4391 * infcmd.c: Likewise.
4392 * infrun.c: Likewise.
4393 * inline-frame.c: Likewise.
4394 * interps.c: Likewise.
4395 * jv-lang.c: Likewise.
4396 * jv-typeprint.c: Likewise.
4397 * linux-fork.c: Likewise.
4398 * linux-nat.c: Likewise.
4399 * linux-thread-db.c: Likewise.
4400 * m32c-tdep.c: Likewise.
4401 * m32r-linux-nat.c: Likewise.
4402 * m32r-tdep.c: Likewise.
4403 * m68k-tdep.c: Likewise.
4404 * m68kbsd-nat.c: Likewise.
4405 * m68kbsd-tdep.c: Likewise.
4406 * m88k-tdep.c: Likewise.
4407 * machoread.c: Likewise.
4408 * macroexp.c: Likewise.
4409 * macrotab.c: Likewise.
4410 * maint.c: Likewise.
4411 * mdebugread.c: Likewise.
4412 * memory-map.c: Likewise.
4413 * mep-tdep.c: Likewise.
4414 * mi/mi-common.c: Likewise.
4415 * microblaze-tdep.c: Likewise.
4416 * mingw-hdep.c: Likewise.
4417 * mips-linux-nat.c: Likewise.
4418 * mips-linux-tdep.c: Likewise.
4419 * mips-tdep.c: Likewise.
4420 * mips64obsd-tdep.c: Likewise.
4421 * mipsnbsd-tdep.c: Likewise.
4422 * mn10300-linux-tdep.c: Likewise.
4423 * mn10300-tdep.c: Likewise.
4424 * moxie-tdep.c: Likewise.
4425 * mt-tdep.c: Likewise.
4426 * nat/linux-btrace.c: Likewise.
4427 * nat/linux-osdata.c: Likewise.
4428 * nat/linux-ptrace.c: Likewise.
4429 * nat/mips-linux-watch.c: Likewise.
4430 * nios2-linux-tdep.c: Likewise.
4431 * nios2-tdep.c: Likewise.
4432 * objc-lang.c: Likewise.
4433 * objfiles.c: Likewise.
4434 * obsd-nat.c: Likewise.
4435 * opencl-lang.c: Likewise.
4436 * osabi.c: Likewise.
4437 * parse.c: Likewise.
4438 * ppc-linux-nat.c: Likewise.
4439 * ppc-sysv-tdep.c: Likewise.
4440 * ppcfbsd-nat.c: Likewise.
4441 * ppcfbsd-tdep.c: Likewise.
4442 * ppcnbsd-nat.c: Likewise.
4443 * ppcnbsd-tdep.c: Likewise.
4444 * ppcobsd-nat.c: Likewise.
4445 * ppcobsd-tdep.c: Likewise.
4446 * printcmd.c: Likewise.
4447 * procfs.c: Likewise.
4448 * prologue-value.c: Likewise.
4449 * psymtab.c: Likewise.
4450 * python/py-lazy-string.c: Likewise.
4451 * python/py-value.c: Likewise.
4452 * regcache.c: Likewise.
4453 * reggroups.c: Likewise.
4454 * registry.c: Likewise.
4455 * remote-sim.c: Likewise.
4456 * remote.c: Likewise.
4457 * rs6000-aix-tdep.c: Likewise.
4458 * rs6000-tdep.c: Likewise.
4459 * s390-linux-tdep.c: Likewise.
4460 * score-tdep.c: Likewise.
4461 * ser-base.c: Likewise.
4462 * ser-mingw.c: Likewise.
4463 * sh-tdep.c: Likewise.
4464 * sh64-tdep.c: Likewise.
4465 * solib-darwin.c: Likewise.
4466 * solib-spu.c: Likewise.
4467 * solib-svr4.c: Likewise.
4468 * source.c: Likewise.
4469 * sparc-nat.c: Likewise.
4470 * sparc-sol2-tdep.c: Likewise.
4471 * sparc-tdep.c: Likewise.
4472 * sparc64-sol2-tdep.c: Likewise.
4473 * sparc64-tdep.c: Likewise.
4474 * sparc64fbsd-tdep.c: Likewise.
4475 * sparc64nbsd-tdep.c: Likewise.
4476 * sparc64obsd-tdep.c: Likewise.
4477 * sparcnbsd-tdep.c: Likewise.
4478 * sparcobsd-tdep.c: Likewise.
4479 * spu-multiarch.c: Likewise.
4480 * spu-tdep.c: Likewise.
4481 * stabsread.c: Likewise.
4482 * stack.c: Likewise.
4483 * symfile.c: Likewise.
4484 * symtab.c: Likewise.
4485 * target-descriptions.c: Likewise.
4486 * target-memory.c: Likewise.
4487 * target.c: Likewise.
4488 * tic6x-linux-tdep.c: Likewise.
4489 * tic6x-tdep.c: Likewise.
4490 * tilegx-linux-nat.c: Likewise.
4491 * tilegx-tdep.c: Likewise.
4492 * top.c: Likewise.
4493 * tramp-frame.c: Likewise.
4494 * tui/tui-out.c: Likewise.
4495 * tui/tui-winsource.c: Likewise.
4496 * ui-out.c: Likewise.
4497 * user-regs.c: Likewise.
4498 * utils.c: Likewise.
4499 * v850-tdep.c: Likewise.
4500 * valops.c: Likewise.
4501 * value.c: Likewise.
4502 * varobj.c: Likewise.
4503 * vax-nat.c: Likewise.
4504 * xml-syscall.c: Likewise.
4505 * xml-tdesc.c: Likewise.
4506 * xstormy16-tdep.c: Likewise.
4507 * xtensa-linux-nat.c: Likewise.
4508 * xtensa-tdep.c: Likewise.
4509
e76df0d0
GB
45102014-08-07 Gary Benson <gbenson@redhat.com>
4511
4512 * common/common-defs.h: Include common-utils.h.
4513 * defs.h: Do not include common-utils.h.
4514 * common/gdb_assert.h: Likewise.
4515 * darwin-nat.h: Likewise.
4516 * nat/linux-btrace.c: Likewise.
4517 * target/waitstatus.h: Likewise.
4518
4cb9c816
GB
45192014-08-07 Gary Benson <gbenson@redhat.com>
4520
4521 * common/common-defs.h: Include ptid.h.
4522 * defs.h: Do not include ptid.h.
4523 * inferior.h: Likewise.
4524 * infrun.h: Likewise.
4525 * nat/linux-btrace.h: Likewise.
4526 * nat/linux-osdata.h: Likewise.
4527 * target/waitstatus.h: Likewise.
4528
3995eeee
GB
45292014-08-07 Gary Benson <gbenson@redhat.com>
4530
4531 * common/common-defs.h: Include gdb_locale.h.
4532 * defs.h: Do not include gdb_locale.h.
4533
cb9f1a9b
GB
45342014-08-07 Gary Benson <gbenson@redhat.com>
4535
4536 * common/common-defs.h: Include gdb/signals.h.
4537 * defs.h: Do not include gdb/signals.h.
4538
a5fceff8
GB
45392014-08-07 Gary Benson <gbenson@redhat.com>
4540
4541 * common/common-defs.h: Include pathmax.h.
4542 * defs.h: Do not include pathmax.h.
4543
b9391142
GB
45442014-08-07 Gary Benson <gbenson@redhat.com>
4545
4546 * common/common-defs.h: Include libiberty.h.
4547 * defs.h: Do not include libiberty.h.
4548 * common/queue.h: Likewise.
4549 * cp-name-parser.y: Likewise.
4550 * mi/mi-cmd-catch.c: Likewise.
4551 * python/python.c: Likewise.
4552
0e443c87
GB
45532014-08-07 Gary Benson <gbenson@redhat.com>
4554
4555 * common/common-defs.h: Include ansidecl.h.
4556 * defs.h: Do not include ansidecl.h.
4557 * common/buffer.h: Likewise.
4558 * common/common-utils.h: Likewise.
4559
8ebb3f56
GB
45602014-08-07 Gary Benson <gbenson@redhat.com>
4561
4562 * common/common-defs.h: Include stddef.h.
4563 * defs.h: Do not include stddef.h.
4564 * common/common-utils.h: Likewise.
4565 * amd64fbsd-nat.c: Likewise.
4566 * bcache.c: Likewise.
4567 * charset.c: Likewise.
4568 * common/buffer.h: Likewise.
4569 * common/vec.h: Likewise.
4570 * i386bsd-nat.c: Likewise.
4571 * nat/linux-btrace.h: Likewise.
4572 * ppcfbsd-nat.c: Likewise.
4573 * ppcnbsd-tdep.h: Likewise.
4574 * ppcobsd-nat.c: Likewise.
4575 * ppcobsd-tdep.h: Likewise.
4576 * python/py-gdb-readline.c: Likewise.
4577
8980bdf6
GB
45782014-08-07 Gary Benson <gbenson@redhat.com>
4579
4580 * common/common-defs.h: Include stdarg.h.
4581 * defs.h: Do not include stdarg.h.
4582 * ada-lang.c: Likewise.
4583 * common/common-utils.h: Likewise.
4584 * guile/scm-string.c: Likewise.
4585 * guile/scm-utils.c: Likewise.
4586 * m32c-tdep.c: Likewise.
4587
d7096f71
GB
45882014-08-07 Gary Benson <gbenson@redhat.com>
4589
4590 * common/common-defs.h: Include stdlib.h.
4591 * defs.h: Do not include stdlib.h.
4592 * addrmap.c: Likewise.
4593 * bcache.c: Likewise.
4594 * common/buffer.c: Likewise.
4595 * common/common-utils.c: Likewise.
4596 * cp-name-parser.y: Likewise.
4597 * go32-nat.c: Likewise.
4598 * mn10300-linux-tdep.c: Likewise.
4599 * nat/linux-osdata.c: Likewise.
4600 * tui/tui.c: Likewise.
4601 * windows-nat.c: Likewise.
4602
d02f550d
GB
46032014-08-07 Gary Benson <gbenson@redhat.com>
4604
4605 * common/common-defs.h: Include stdio.h.
4606 * defs.h: Do not include stdio.h.
4607 * ada-lang.c: Likewise.
4608 * common/buffer.c: Likewise.
4609 * common/common-utils.c: Likewise.
4610 * cp-name-parser.y: Likewise.
4611 * gnu-nat.c: Likewise.
4612 * go32-nat.c: Likewise.
4613 * i386gnu-nat.c: Likewise.
4614 * proc-api.c: Likewise.
4615 * proc-events.c: Likewise.
4616 * proc-flags.c: Likewise.
4617 * proc-why.c: Likewise.
4618 * python/python-internal.h: Likewise.
4619 * target-memory.c: Likewise.
4620 * tui/tui-io.c: Likewise.
4621 * tui/tui.c: Likewise.
4622
b6d7a4bf
SM
46232014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4624
4625 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4626 (scan_dyntag_auxv): Same.
4627
af19829b
YQ
46282014-08-06 Yao Qi <yao@codesourcery.com>
4629
4630 * amd64-linux-nat.c: Remove duplicated include
4631 "x86-linux-nat.h".
4632 * i386-linux-nat.c: Likewise.
4633
8e07a239
YQ
46342014-08-06 Yao Qi <yao@codesourcery.com>
4635
4636 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4637 operand" with "Special opcode" in comments.
4638
7bfe8241
GB
46392014-08-05 Gary Benson <gbenson@redhat.com>
4640
4641 * interps.c (initialize_interps): Remove prototype.
4642 (interpreter_initialized): Remove static global.
4643 (interp_add): Do not call initialize_interps.
4644 (initialize_interps): Remove function.
4645
d6c95504
GB
46462014-08-05 Gary Benson <gbenson@redhat.com>
4647
4648 * utils.c (vwarning): Remove spurious va_end.
4649
241fd515
AM
46502014-08-05 Alan Modra <amodra@gmail.com>
4651
4652 * charset.c (convert_between_encodings): Cast result of obstack_base.
4653 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4654 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4655 (read_unwind_info): Use size_t for some locals.
4656 * jit.c (finalize_symtab): Likewise.
4657 * utils.c (hashtab_obstack_allocate): Likewise.
4658 * symmisc.c (print_objfile_statistics): Update format strings.
4659
dc304a94
JK
46602014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4661
4662 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4663 (Changes in GDB 7.8): ... here.
4664
3cecbbbe
TT
46652014-08-04 Tom Tromey <tromey@redhat.com>
4666
4667 * target.c (set_targetdebug): New function.
4668 (initialize_targets): Pass set_targetdebug when creating "set
4669 debug target".
4670
6908c509
JB
46712014-08-01 Joel Brobecker <brobecker@adacore.com>
4672
4673 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4674 if detecting a variable-sized field that is not the last field.
4675 Fix struct type length computation.
4676
53e8f97d
JB
46772014-08-01 Joel Brobecker <brobecker@adacore.com>
4678
4679 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4680 Add debug trace.
4681
e068c55d
JB
46822014-08-01 Joel Brobecker <brobecker@adacore.com>
4683
4684 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4685 Remove "+ 8" offset in computation of CHAIN_VMA.
4686
4d4ca2a1
DE
46872014-07-31 Doug Evans <dje@google.com>
4688
4689 * inflow.c (child_terminal_inferior): Add comment.
4690 (child_terminal_ours_for_output): Add comment.
4691 (child_terminal_ours): Add comment.
4692 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4693 (linux_nat_terminal_ours): Add comment.
4694
462f517e
GB
46952014-07-31 Gary Benson <gbenson@redhat.com>
4696
4697 * common/btrace-common.h: Do not include defs.h or server.h.
4698 * nat/mips-linux-watch.h: Likewise.
4699 * gdb-dlfcn.h: Do not include defs.h.
4700 * tracefile.h: Likewise.
4701
74228e77
RM
47022014-07-30 Roland McGrath <mcgrathr@google.com>
4703
4704 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4705
014f9477
TT
47062014-07-30 Tom Tromey <tromey@redhat.com>
4707
4708 * bsd-kvm.c (bsd_kvm_open): Constify.
4709 * corelow.c (core_open): Constify.
4710 * ctf.c (ctf_open): Constify.
4711 * dbug-rom.c (dbug_open): Constify.
4712 * exec.c (exec_open): Constify.
4713 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4714 * microblaze-rom.c (picobug_open): Constify.
4715 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4716 Constify.
4717 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4718 * record-btrace.c (record_btrace_open): Constify.
4719 * record-full.c (record_full_core_open_1, record_full_open_1)
4720 (record_full_open): Constify.
4721 * remote-m32r-sdi.c (m32r_open): Constify.
4722 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4723 (rockhopper_open, lsi_open): Constify.
4724 * remote-sim.c (gdbsim_open): Constify.
4725 * remote.c (remote_open, extended_remote_open, remote_open_1):
4726 Constify.
4727 * target.h (struct target_ops) <to_open>: Make "arg" const.
4728 * tracefile-tfile.c (tfile_open): Constify.
4729
e799154c
TT
47302014-07-30 Tom Tromey <tromey@redhat.com>
4731
4732 * breakpoint.c (map_breakpoint_numbers): Update.
4733 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4734 (get_number_const): New function.
4735 (get_number): Rewrite using get_number_const.
4736 (init_number_or_range): Make "string" const.
4737 (number_is_in_list): Make "list" const.
4738 * cli/cli-utils.h (get_number_const): Declare.
4739 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4740 (init_number_or_range, number_is_in_list): Update.
4741 * printcmd.c (map_display_numbers): Update.
4742 * value.c (value_from_history_ref): Constify.
4743 * value.h (value_from_history_ref): Update.
4744
5f08566b
TT
47452014-07-30 Tom Tromey <tromey@redhat.com>
4746
4747 * corefile.c (hook_type, call_extra_exec_file_hooks)
4748 (specify_exec_file_hook): Constify.
4749 * exec.c (exec_file_attach): Make "filename" const.
4750 * gdbcore.h (deprecated_exec_file_display_hook)
4751 (specify_exec_file_hook, exec_file_attach): Constify.
4752 * main.c (captured_main): Use catch_command_errors_const.
4753
8981c758
TT
47542014-07-30 Tom Tromey <tromey@redhat.com>
4755
4756 * target.c (open_target): New function.
4757 (add_target_with_completer, add_deprecated_target_alias): Use
4758 set_cmd_sfunc, set_cmd_context.
4759 (debug_to_open): Remove.
4760 (setup_target_debug): Update.
4761
a1c7835a
YQ
47622014-07-30 Yao Qi <yao@codesourcery.com>
4763
4764 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4765 comments.
4766 * parse.c (exp_iterate): Update comments.
4767
976411d6
GB
47682014-07-30 Gary Benson <gbenson@redhat.com>
4769
4770 * common/common-defs.h: New file.
4771 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4772 * defs.h: Include common-defs.h.
4773 Do not include config.h or build-gnulib/config.h.
4774
5d4848a4
GB
47752014-07-30 Gary Benson <gbenson@redhat.com>
4776
4777 * common/common-utils.h: Do not include config.h.
4778 * nat/linux-btrace.h: Likewise.
4779
d41f6d8e
GB
47802014-07-30 Gary Benson <gbenson@redhat.com>
4781
4782 * btrace.c: Include defs.h.
4783 * common/ptid.c: Include defs.h or server.h as appropriate.
4784 * nat/mips-linux-watch.c: Likewise.
4785
84202f9c
TT
47862014-07-29 Tom Tromey <tromey@redhat.com>
4787
4788 * target.c (target_is_pushed): Simplify.
4789
2530441c
JB
47902014-07-29 Joel Brobecker <brobecker@adacore.com>
4791
4792 GDB 7.8 released.
4793
7e09a223
YQ
47942014-07-29 Yao Qi <yao@codesourcery.com>
4795
4796 PR gdb/17206
4797 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4798
7ebdbe92
DE
47992014-07-28 Doug Evans <xdje42@gmail.com>
4800
4801 PR guile/17203
4802 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4803 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4804 parameters.
4805
f347ffc9
WN
48062014-07-28 Will Newton <will.newton@linaro.org>
4807
4808 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4809 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4810 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4811 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4812 (THUMB2_EABI_SYSCALL): Likewise.
4813 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4814 struct tramp_frame.
4815 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4816 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4817
37c5f1f7
DE
48182014-07-27 Doug Evans <xdje42@gmail.com>
4819
4820 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4821
0c3abbc7
DE
48222014-07-27 Doug Evans <xdje42@gmail.com>
4823
4824 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4825
e76c5d17
DE
48262014-07-26 Ludovic Courtès <ludo@gnu.org>
4827 Doug Evans <xdje42@gmail.com>
4828
4829 PR guile/17146
4830 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4831 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4832 * configure.ac: Try to use guild to compile an scm file, if it fails
4833 then disable guile support.
4834 * configure: Regenerate.
4835 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4836 GUILE_FILE_LIST.
4837 (GUILE_COMPILED_FILES): New variable.
4838 (GUILE_FILES) Update.
4839 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4840 (stamp-guile): Compile scm files.
4841 * guile/guile.c (boot_guile_support): New function.
4842 (standard_throw_args_p): New function.
4843 (print_standard_throw_error, print_throw_error): New functions.
4844 (handle_boot_error): New function.
4845 (initialize_scheme_side): Rewrite to call boot_guile_support.
4846 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4847 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4848
186fcde0
DE
48492014-07-26 Ludovic Courtès <ludo@gnu.org>
4850 Doug Evans <xdje42@gmail.com>
4851
4852 PR guile/17146
4853 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4854 * guile/lib/gdb/support.scm: New file.
4855 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4856 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4857 All uses updated.
4858 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4859 All uses updated.
4860 (%assert-type): Ditto, and renamed to assert-type.
4861 (%exception-print-style): Delete.
4862
4df42755
DE
48632014-07-26 Doug Evans <xdje42@gmail.com>
4864
4865 PR build/17105
4866 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4867 * configure: Regenerate.
4868 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4869 PYTHON_FILES.
4870 (PYTHON_FILES): New variable.
4871 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4872 (GUILE_FILES): New variable.
4873 (stamp-python, install-python, uninstall-python): Handle empty
4874 file list.
4875 (stamp-guile, install-guile, uninstall-guile): Ditto.
4876
ee7333ae
DE
48772014-07-26 Doug Evans <xdje42@gmail.com>
4878
4879 PR guile/17177
4880 * guile/lib/gdb.scm (pretty-printers): Export.
4881 (set-pretty-printers!): Export.
4882 * guile/lib/gdb/printing.scm (gdb module): Update.
4883 (prepend-pretty-printer!, append-pretty-printer!): Update.
4884 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4885 (pretty_printer_list_var): Delete.
4886 (pretty_printer_list): New static global.
4887 (gdbscm_pretty_printers): New function.
4888 (gdbscm_set_pretty_printers_x): New function.
4889 (ppscm_find_pretty_printer_from_gdb): Update.
4890 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4891 (gdbscm_initialize_pretty_printers): Update.
4892
74edf516
DE
48932014-07-26 Doug Evans <xdje42@gmail.com>
4894
4895 PR 17185
4896 * configure.ac: Add check for header gc/gc.h.
4897 Add check for function setenv.
4898 * configure: Regenerate.
4899 * config.in: Regenerate.
4900 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4901
d54398a7
MR
49022014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4903
4904 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4905 variation in gdbarch matching.
4906
ab16fce8
TT
49072014-07-25 Tom Tromey <tromey@redhat.com>
4908
4909 * exec.c (using_exec_ops): Remove.
4910 (exec_close_1): Update. Remove extraneous block, reindent.
4911 (add_target_sections): Use target_is_pushed.
4912
88056fbb
PA
49132014-07-25 Pedro Alves <palves@redhat.com>
4914
4915 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4916 * monitor.c (monitor_create_inferior): Likewise.
4917 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4918 * remote-sim.c (gdbsim_create_inferior): Likewise.
4919 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4920 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4921 * windows-nat.c (do_initial_windows_stuff): Likewise.
4922
70509625
PA
49232014-07-25 Pedro Alves <palves@redhat.com>
4924
4925 * NEWS: Mention signal passing and "signal" command changes.
4926 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4927 comment.
4928 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4929 call.
4930 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4931 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4932 (jump_command): Adjust clear_proceed_status call.
4933 (signal_command): Warn if other thread that are resumed have
4934 signals that will be delivered. Adjust clear_proceed_status call.
4935 (until_next_command, finish_command)
4936 (proceed_after_attach_callback, attach_command_post_wait)
4937 (attach_command): Adjust clear_proceed_status call.
4938 * infrun.c (proceed_after_vfork_done): Likewise.
4939 (proceed_after_attach_callback): Adjust comment.
4940 (clear_proceed_status_thread): Clear stop_signal if not in pass
4941 state.
4942 (clear_proceed_status_callback): Delete.
4943 (clear_proceed_status): New 'step' parameter. Only clear the
4944 proceed status of threads the command being prepared is about to
4945 resume.
4946 (proceed): If passed in an explicit signal, override stop_signal
4947 with it. Don't pass the last stop signal to the thread we're
4948 resuming.
4949 (init_wait_for_inferior): Adjust clear_proceed_status call.
4950 (switch_back_to_stepped_thread): Clear the signal if it should not
4951 be passed.
4952 * infrun.h (clear_proceed_status): New 'step' parameter.
4953 (user_visible_resume_ptid): Add comment.
4954 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4955 signal is in pass state.
4956 * remote.c (append_pending_thread_resumptions): Likewise.
4957 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4958
d8be2939
TT
49592014-07-25 Tom Tromey <tromey@redhat.com>
4960
4961 * target.h (target_stopped_data_address)
4962 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4963 parentheses.
4964
7d0d9d2b
PL
49652014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4966
4967 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4968 comments.
4969 (avr_pointer_to_address): Likewise.
4970
e9e7f724
TT
49712014-07-24 Tom Tromey <tromey@redhat.com>
4972
4973 * monitor.c (compile_pattern): Update.
4974 * target.h (struct target_ops) <to_shortname, to_longname,
4975 to_doc>: Now const.
4976
1947513d
TT
49772014-07-24 Tom Tromey <tromey@redhat.com>
4978
4979 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4980 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4981 (add_info_alias, add_com): Make "doc" const.
4982 (print_doc_line): Make "str" const.
4983 (delete_cmd): Update.
4984 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4985 (print_doc_line): Update.
4986 * cli/cli-script.c (document_command): Update.
4987 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4988 (add_com, add_info, add_info_alias): Update.
4989 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4990 * python/py-cmd.c (cmdpy_destroyer): Update.
4991
64e61d29
TT
49922014-07-24 Tom Tromey <tromey@redhat.com>
4993
4994 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4995 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4996 (help_cmd_list): Constify.
4997 (lookup_cmd): Update.
4998 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4999 const.
5000 (help_cmd_list, apropos_cmd): Update.
5001 * cli/cli-script.c (show_user): Update.
5002 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5003 * cli/cli-setshow.h (cmd_show_list): Update.
5004 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5005 (cmd_show_list): Update.
5006 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5007 * python/py-cmd.c (cmdpy_destroyer): Update.
5008
429e55ea
TT
50092014-07-24 Tom Tromey <tromey@redhat.com>
5010
5011 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5012 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5013 const.
5014 * command.h (deprecate_cmd): Update.
5015 * maint.c (maintenance_do_deprecate): Add casts.
5016
64669f3b
TT
50172014-07-24 Tom Tromey <tromey@redhat.com>
5018
5019 * cli/cli-decode.c (help_cmd): Make parameter "const".
5020 * cli/cli-decode.h (help_cmd): Update.
5021
d3d3328b
TT
50222014-07-24 Tom Tromey <tromey@redhat.com>
5023
5024 * stack.c (up_silently_base, down_silently_base): Make argument
5025 const.
5026
414842dc
TT
50272014-07-24 Tom Tromey <tromey@redhat.com>
5028
5029 * solib.c (solib_add): Make "pattern" const.
5030 * solib.h (solib_add): Update.
5031
baa336ce
TT
50322014-07-24 Tom Tromey <tromey@redhat.com>
5033
5034 * remote.c (remote_serial_open, print_packet, putpkt)
5035 (putpkt_binary): Constify.
5036 * remote.h (putpkt): Update.
5037
5a19e2d0
TT
50382014-07-24 Tom Tromey <tromey@redhat.com>
5039
5040 * monitor.c (monitor_open): Make "args" const.
5041 * monitor.h (monitor_open): Update.
5042
fc4baa5e
TT
50432014-07-24 Tom Tromey <tromey@redhat.com>
5044
5045 * maint.c (match_bfd_flags): Make "string" const.
5046 (print_bfd_section_info): Remove casts.
5047 (print_objfile_section_info): Make "string" const.
5048
0d5f0dbe
TT
50492014-07-24 Tom Tromey <tromey@redhat.com>
5050
5051 * inf-child.c (inf_child_open_target): Make "arg" const.
5052 * inf-child.h (inf_child_open_target): Update.
5053
41c77899
TT
50542014-07-24 Tom Tromey <tromey@redhat.com>
5055
5056 * environ.c (unset_in_environ): Make "var" const.
5057 * environ.h (unset_in_environ): Update.
5058
93db0d79
TT
50592014-07-24 Tom Tromey <tromey@redhat.com>
5060
5061 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5062 Make "cmd" const.
5063 (scan_filename_with_cleanup): Likewise.
5064 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5065 Make arguments const.
5066 (restore_command): Update.
5067
36d6eb95
PA
50682014-07-24 Pedro Alves <palves@redhat.com>
5069
5070 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5071
8009206a
TT
50722014-07-24 Tom Tromey <tromey@redhat.com>
5073 Gary Benson <gbenson@redhat.com>
5074
5075 * nat/linux-ptrace.c (additional_flags): New global.
5076 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5077 additional_flags; don't check GDBSERVER.
5078 (linux_ptrace_set_additional_flags): New function.
5079 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5080 Declare.
5081 * linux-nat.c (_initialize_linux_nat): Call
5082 linux_ptrace_set_additional_flags.
5083
a7068b60
TT
50842014-07-24 Tom Tromey <tromey@redhat.com>
5085
5086 * make-target-delegates (munge_type, write_debugmethod): New
5087 functions.
5088 (debug_names): New global.
5089 ($TARGET_DEBUG_PRINTER): New global.
5090 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5091 name.
5092 Write debug methods. Generate init_debug_target.
5093 * target-debug.h: New file.
5094 * target-delegates.c: Rebuild.
5095 * target.c: Include target-debug.h.
5096 (debug_target): Hoist definition.
5097 (target_kill, target_get_section_table, target_memory_map)
5098 (target_flash_erase, target_flash_done, target_detach)
5099 (target_disconnect, target_wait, target_resume)
5100 (target_pass_signals, target_program_signals, target_follow_fork)
5101 (target_mourn_inferior, target_search_memory)
5102 (target_thread_address_space, target_close)
5103 (target_find_new_threads, target_core_of_thread)
5104 (target_verify_memory, target_insert_mask_watchpoint)
5105 (target_remove_mask_watchpoint): Remove targetdebug code.
5106 (debug_to_post_attach, debug_to_prepare_to_store)
5107 (debug_to_files_info, debug_to_insert_breakpoint)
5108 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5109 (debug_to_region_ok_for_hw_watchpoint)
5110 (debug_to_can_accel_watchpoint_condition)
5111 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5112 (debug_to_watchpoint_addr_within_range)
5113 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5114 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5115 (debug_to_terminal_init, debug_to_terminal_inferior)
5116 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5117 (debug_to_terminal_save_ours, debug_to_terminal_info)
5118 (debug_to_load, debug_to_post_startup_inferior)
5119 (debug_to_insert_fork_catchpoint)
5120 (debug_to_remove_fork_catchpoint)
5121 (debug_to_insert_vfork_catchpoint)
5122 (debug_to_remove_vfork_catchpoint)
5123 (debug_to_insert_exec_catchpoint)
5124 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5125 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5126 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5127 (setup_target_debug): Call init_debug_target.
5128 * target.h (TARGET_DEBUG_PRINTER): New macro.
5129 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5130 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5131
2c51604d
GB
51322014-07-24 Gary Benson <gbenson@redhat.com>
5133
5134 * exceptions.h (throw_vfatal): Renamed to...
5135 (throw_vquit): New declaration.
5136 (throw_quit): Likewise.
5137 * exceptions.c (throw_vfatal): Renamed to...
5138 (throw_vquit): New function.
5139 (throw_quit): Likewise.
5140 (throw_error): Call throw_verror rather than throw_it.
5141 * utils.h (vfatal): Removed.
5142 (fatal): Likewise.
5143 * utils.c (vfatal): Removed.
5144 (fatal): Likewise.
5145 (internal_verror): Replaced call to fatal with call to throw_quit.
5146 (quit): Replaced calls to fatal with calls to throw_quit.
5147
34211963
ME
51482014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5149
5150 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5151 target_read_code.
5152
a52b4d3e
ME
51532014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5154
5155 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5156 less than zero in conditional expression.
5157
a8bdc56b
TT
51582014-07-23 Tom Tromey <tromey@redhat.com>
5159
5160 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5161 ($INTRO_PART): Don't match whitespace.
5162 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5163 argument matching.
5164 ($METHOD): Add $METHOD_TRAILER.
5165 (trim): Rewrite.
5166 (scan_target_h): New sub.
5167 Change main loop not to collect state.
5168 * target-delegates.c: Rebuild.
5169
91b52240
GB
51702014-07-23 Gary Benson <gbenson@redhat.com>
5171
5172 * cp-support.c (gdb_demangle): Fix build on systems without
5173 sigaltstack.
5174
45326f6f
JK
51752014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5176
5177 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5178 for reference entry value target data value.
5179
e214cf6c
JK
51802014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5181
5182 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5183 value_available_contents_eq.
5184
bddbbedd
PA
51852014-07-22 Pedro Alves <palves@redhat.com>
5186
5187 * value.c (allocate_optimized_out_value): Don't mark value as
5188 non-lazy.
5189
45c71484
JW
51902014-07-22 Jiong Wang <jiong.wang@arm.com>
5191
5192 * MAINTAINERS (Write After Approval): Update my email address.
5193
9597b22a
DE
51942014-07-20 Doug Evans <dje@google.com>
5195
5196 PR server/17147
5197 * remote.c (putpkt_binary): Add text to error message.
5198
91101fe5
YQ
51992014-07-20 Yao Qi <yao@codesourcery.com>
5200
5201 * eval.c: Remove "Chill" from comments.
5202 * gdbtypes.h: Likewise.
5203 * symtab.h: Likewise.
5204
c9402c95
YQ
52052014-07-20 Yao Qi <yao@codesourcery.com>
5206
5207 * std-operator.def: Update comments to TERNOP_SLICE.
5208
ae8fddda
YQ
52092014-07-20 Yao Qi <yao@codesourcery.com>
5210
5211 * std-operator.def: Remove BINOP_RANGE.
5212 * breakpoint.c (watchpoint_exp_is_const): Update.
5213 * expprint.c (dump_subexp_body_standard): Likewise.
5214 * eval.c (init_array_element): Remove dead code.
5215 (evaluate_subexp_standard): Likewise.
5216
9c816640
YQ
52172014-07-20 Yao Qi <yao@codesourcery.com>
5218
5219 * std-operator.def: Remove BINOP_IN.
5220 * breakpoint.c (watchpoint_exp_is_const): Update.
5221 * eval.c (evaluate_subexp_standard): Likewise.
5222 * expprint.c (dump_subexp_body_standard): Likewise.
5223
164224e9
ME
52242014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5225
5226 * microblaze-tdep.c (microblaze_register_names): Add
5227 the rshr and rslr register names.
5228 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5229 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5230 Use of tdesc_numbered_register. Use of
5231 microblaze_register_g_packet_guesses. Use of
5232 tdesc_use_registers. Use of set_gdbarch_register_type.
5233 (microblaze_register_g_packet_guesses): New.
5234 * microblaze-tdep.h (microblaze_reg_num): Add
5235 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5236 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5237 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5238 * features/microblaze-core.xml: New file.
5239 * features/microblaze-stack-protect.xml: New file.
5240 * features/microblaze-with-stack-protect.c: New file.
5241 * features/microblaze-with-stack-protect.xml: New file.
5242 * features/microblaze.xml: New file.
5243 * features/microblaze.c: New file.
5244 * features/Makefile (microblaze-with-stack-protect): Add
5245 microblaze-with-stack-protect microblaze and microblaze-expedite.
5246 * regformats/microblaze-with-stack-protect.dat: New file.
5247 * regformats/microblaze.dat: New file.
5248 * doc/gdb.texinfo (MicroBlaze Features): Added.
5249
e8b2341c
TT
52502014-07-18 Tom Tromey <tromey@redhat.com>
5251
5252 * exec.c (exec_ops): Now static.
5253 * exec.h (exec_ops): Don't declare.
5254
44e89118
TT
52552014-07-18 Tom Tromey <tromey@redhat.com>
5256
5257 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5258 to find_target_beneath.
5259 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5260 find_target_beneath.
5261 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5262
b0ed115f
TT
52632014-07-18 Tom Tromey <tromey@redhat.com>
5264
5265 PR gdb/17130:
5266 * utils.c (quit): Use target_supports_terminal_ours.
5267 * target.h (target_supports_terminal_ours): Declare.
5268 * target.c (target_supports_delete_record): Don't check
5269 to_delete_record against NULL.
5270 (target_supports_terminal_ours): New function.
5271
e75fdfca
TT
52722014-07-18 Tom Tromey <tromey@redhat.com>
5273
5274 PR gdb/17130:
5275 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5276 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5277 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5278 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5279 * windows-nat.c (windows_xfer_partial): Always delegate.
5280 * record-btrace.c (record_btrace_xfer_partial): Simplify
5281 delegation.
5282 (record_btrace_fetch_registers, record_btrace_store_registers)
5283 (record_btrace_prepare_to_store, record_btrace_resume)
5284 (record_btrace_wait, record_btrace_find_new_threads)
5285 (record_btrace_thread_alive): Likewise.
5286 * procfs.c (procfs_xfer_partial): Always delegate.
5287 * corelow.c (core_xfer_partial): Always delegate.
5288 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5289
83814951
TT
52902014-07-18 Tom Tromey <tromey@redhat.com>
5291
5292 * exec.c (exec_make_note_section): Move earlier.
5293
b8b8facf
DE
52942014-07-17 Doug Evans <dje@google.com>
5295
74b49205 5296 PR gdb/17170
b8b8facf
DE
5297 * maint.c (count_symtabs_and_blocks): Handle NULL
5298 current_program_space.
5299 (report_command_stats): Check global enabled flag in addition to
5300 recorded enabled flag.
5301 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5302
69ff6be5
PA
53032014-07-16 Pedro Alves <palves@redhat.com>
5304
5305 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5306
252db1b5
TT
53072014-07-16 Tom Tromey <tromey@redhat.com>
5308
5309 * target.h (struct target_ops) <to_delete_record>: Reformat
5310 comment.
5311
a432721e
TT
53122014-07-16 Tom Tromey <tromey@redhat.com>
5313
5314 * target-delegates.c: Rebuild.
5315
487d9753
PL
53162014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5317
5318 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5319 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5320 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5321 (avr_pointer_to_address): Likewise.
5322 (avr_address_class_type_flags): New function.
5323 (avr_address_class_type_flags_to_name): Likewise.
5324 (avr_address_class_name_to_type_flags): Likewise.
5325 (avr_gdbarch_init): Set address_class_type_flags,
5326 address_class_type_flags_to_name and
5327 address_class_name_to_type_flags.
5328
57745c90
PA
53292014-07-15 Pedro Alves <palves@redhat.com>
5330
5331 * linux-nat.c (kill_callback): Save errno and work with saved
5332 copy.
5333
2d40be18
SM
53342014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5335
5336 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5337
572f6555
EBM
53382014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5339
5340 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5341 breakpoint support correctly.
5342
cc1c52ad
PA
53432014-07-14 Pedro Alves <palves@redhat.com>
5344
5345 * utils.c (prompt_for_continue): Call target_terminal_ours.
5346
1e973570
PA
53472014-07-14 Pedro Alves <palves@redhat.com>
5348
5349 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5350 catch_errors. Don't re-enable stdin or notify observers where,
5351 and rethrow error.
5352 (fetch_inferior_event_wrapper): Delete.
5353
93d6eb10
PA
53542014-07-14 Pedro Alves <palves@redhat.com>
5355
5356 PR gdb/17072
5357 * top.c: Include "inf-loop.h".
5358 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5359 field.
5360 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5361 was async before.
5362 (gdb_readline_wrapper): Store whether the target is async, and
5363 make it sync.
5364
0017922d
PA
53652014-07-14 Pedro Alves <palves@redhat.com>
5366
5367 PR gdb/17072
5368 * top.c (gdb_readline_wrapper_line): Tweak comment.
5369 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5370 the input handler callback.
5371
94696ad3
PA
53722014-07-14 Pedro Alves <palves@redhat.com>
5373
5374 PR gdb/17072
5375 * main.c: Include event-top.h.
5376 (handle_command_errors): New function.
5377 (catch_command_errors, catch_command_errors_const): Use it.
5378
9d1e69a2
PA
53792014-07-14 Pedro Alves <palves@redhat.com>
5380
5381 * exceptions.c (catch_command_errors, catch_command_errors_const):
5382 Moved to main.c.
5383 * exceptions.h (catch_command_errors_ftype)
5384 (catch_command_errors_const_ftype): Moved to main.c.
5385 (catch_command_errors, catch_command_errors_const): Delete
5386 declarations.
5387 * main.c (catch_command_errors_ftype)
5388 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5389 (catch_command_errors, catch_command_errors_const)): Moved here
5390 from exceptions.c and make static.
5391
feefc97b
PA
53922014-07-14 Pedro Alves <palves@redhat.com>
5393
5394 * exceptions.c (print_any_exception): Delete.
5395 (catch_exceptions_with_msg): Use exception_print instead of
5396 print_any_exception.
5397 (catch_errors): Use exception_fprintf instead of
5398 print_any_exception.
5399 (catch_command_errors, catch_command_errors_const): Use
5400 exception_print instead of print_any_exception.
5401
c933f875
PA
54022014-07-14 Pedro Alves <palves@redhat.com>
5403
5404 * infcall.c (run_inferior_call): Set 'sync_execution' while
5405 running the inferior call.
5406
feb6f816
PA
54072014-07-14 Pedro Alves <palves@redhat.com>
5408
5409 * value.c (value_contents_equal): Delete function.
5410 * value.h (value_contents_equal): Delete declaration.
5411
d98b7a16
TT
54122014-07-14 Tom Tromey <tromey@redhat.com>
5413
5414 PR exp/17106:
5415 * gdbtypes.c (is_dynamic_type_internal): New function, from
5416 is_dynamic_type.
5417 (is_dynamic_type): Rewrite.
5418 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5419 (resolve_dynamic_struct): Likewise.
5420 (resolve_dynamic_type_internal): New function, from
5421 resolve_dynamic_type.
5422 (resolve_dynamic_type): Rewrite.
5423
548740d6
TT
54242014-07-14 Tom Tromey <tromey@redhat.com>
5425
5426 * target.c (target_require_runnable): Also check record_stratum.
5427 Update comment.
5428
808f7ab1
YQ
54292014-07-11 Yao Qi <yao@codesourcery.com>
5430
5431 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5432 thumb_instruction_restores_sp return true.
5433
540314bd
YQ
54342014-07-11 Yao Qi <yao@codesourcery.com>
5435
5436 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5437 (thumb_in_function_epilogue_p): Call
5438 thumb_instruction_restores_sp.
5439
1db01f22
YQ
54402014-07-11 Yao Qi <yao@codesourcery.com>
5441
5442 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5443 'add sp, #imm'.
5444 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5445
3116063b
GB
54462014-07-11 Gary Benson <gbenson@redhat.com>
5447
5448 * amd64-linux-nat.c (gdbcore.h): Remove include.
5449 (regset.h): Likewise.
5450 (nat/linux-btrace.h): Likewise.
5451 (btrace.h): Likewise.
5452 (gdb_assert.h): Likewise.
5453 (string.h): Likewise.
5454 (sys/uio.h): Likewise.
5455 (sys/debugreg.h): Likewise.
5456 (sys/syscall.h): Likewise.
5457 (sys/procfs.h): Likewise.
5458 (sys/user.h): Likewise.
5459 (asm/ptrace.h): Likewise.
5460 (i386-nat.h): Likewise.
5461 * i386-linux-nat.c (i386-nat.h): Likewise.
5462 (regset.h): Likewise.
5463 (target.h): Likewise.
5464 (linux-nat.h): Likewise.
5465 (nat/linux-btrace.h): Likewise.
5466 (btrace.h): Likewise.
5467 (gdb_assert.h): Likewise.
5468 (string.h): Likewise.
5469 (sys/uio.h): Likewise.
5470 (sys/user.h): Likewise.
5471 (sys/procfs.h): Likewise.
5472 (sys/reg.h): Likewise.
5473 (sys/debugreg.h): Likewise.
5474 (ORIG_EAX): Remove definition.
5475
040baaf6
GB
54762014-07-11 Gary Benson <gbenson@redhat.com>
5477
5478 * i386-linux-nat.h: New file.
5479 * x86-linux-nat.h: Likewise.
5480 * x86-linux-nat.c: Likewise.
5481 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5482 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5483 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5484 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5485 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5486 (PTRACE_SETREGSET): Likewise.
5487 (arch_lwp_info): Now in x86-linux-nat.c.
5488 (have_ptrace_getregset): Now in x86-linux-nat.h.
5489 (x86_linux_dr_get): Now in x86-linux-nat.c.
5490 (x86_linux_dr_set): Likewise.
5491 (x86_linux_dr_get_addr): Likewise.
5492 (x86_linux_dr_get_control): Likewise.
5493 (x86_linux_dr_get_status): Likewise.
5494 (update_debug_registers_callback): Likewise.
5495 (x86_linux_dr_set_control): Likewise.
5496 (x86_linux_dr_set_addr): Likewise.
5497 (x86_linux_prepare_to_resume): Likewise.
5498 (x86_linux_new_thread): Likewise.
5499 (x86_linux_new_fork): Likewise.
5500 (x86_linux_get_thread_area): Likewise.
5501 (super_post_startup_inferior): Likewise.
5502 (x86_linux_child_post_startup_inferior): Likewise.
5503 (AMD64_LINUX_USER64_CS): Likewise.
5504 (AMD64_LINUX_X32_DS): Likewise.
5505 (x86_linux_read_description): Likewise.
5506 (x86_linux_enable_btrace): Likewise.
5507 (x86_linux_disable_btrace): Likewise.
5508 (x86_linux_teardown_btrace): Likewise.
5509 (x86_linux_read_btrace): Likewise.
5510 (x86_linux_create_target): Likewise.
5511 (x86_linux_add_target): Likewise.
5512 * i386-linux-nat.c (x86-linux-nat.h): New include.
5513 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5514 (PTRACE_SETREGSET): Likewise.
5515 (arch_lwp_info): Now in x86-linux-nat.c.
5516 (have_ptrace_getregset): Now in x86-linux-nat.h.
5517 (x86_linux_dr_get): Now in x86-linux-nat.c.
5518 (x86_linux_dr_set): Likewise.
5519 (x86_linux_dr_get_addr): Likewise.
5520 (x86_linux_dr_get_control): Likewise.
5521 (x86_linux_dr_get_status): Likewise.
5522 (update_debug_registers_callback): Likewise.
5523 (x86_linux_dr_set_control): Likewise.
5524 (x86_linux_dr_set_addr): Likewise.
5525 (x86_linux_prepare_to_resume): Likewise.
5526 (x86_linux_new_thread): Likewise.
5527 (x86_linux_new_fork): Likewise.
5528 (x86_linux_get_thread_area): Likewise.
5529 (super_post_startup_inferior): Likewise.
5530 (x86_linux_child_post_startup_inferior): Likewise.
5531 (AMD64_LINUX_USER64_CS): Likewise.
5532 (AMD64_LINUX_X32_DS): Likewise.
5533 (x86_linux_read_description): Likewise.
5534 (x86_linux_enable_btrace): Likewise.
5535 (x86_linux_disable_btrace): Likewise.
5536 (x86_linux_teardown_btrace): Likewise.
5537 (x86_linux_read_btrace): Likewise.
5538 (x86_linux_create_target): Likewise.
5539 (x86_linux_add_target): Likewise.
5540
1aa7e42c
GB
55412014-07-11 Gary Benson <gbenson@redhat.com>
5542
5543 * amd64-linux-nat.c: Comment and whitespace changes.
5544 * i386-linux-nat.c: Comment and whitespace changes.
5545
c1e246a0
GB
55462014-07-11 Gary Benson <gbenson@redhat.com>
5547
5548 * amd64-linux-nat.c (x86_linux_create_target): New function.
5549 (x86_linux_add_target): Likewise.
5550 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5551 * i386-linux-nat.c (x86_linux_create_target): New function.
5552 (x86_linux_add_target): Likewise.
5553 (_initialize_i386_linux_nat): Delegate to the above new functions.
5554
8c420b8d
GB
55552014-07-11 Gary Benson <gbenson@redhat.com>
5556
5557 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5558 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5559 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5560 (ps_get_thread_area): Delegate to the above.
5561
cb1da100
GB
55622014-07-11 Gary Benson <gbenson@redhat.com>
5563
5564 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5565 x86_linux_read_description. All uses updated. amd64-specific
5566 code conditionalized. Conditionalized i386-specific code added.
5567 Redundant cast removed.
5568 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5569 x86_linux_read_description. All uses updated. i386-specific
5570 code conditionalized. Conditionalized amd64-specific code added.
5571 One sizeof replaced with the actual type it is describing.
5572
2acf3cd0
GB
55732014-07-11 Gary Benson <gbenson@redhat.com>
5574
5575 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5576 x86_linux_dr_get. All uses updated.
5577 (amd64_linux_dr_set): Renamed to
5578 x86_linux_dr_set. All uses updated.
5579 (amd64_linux_dr_get_addr): Renamed to
5580 x86_linux_dr_get_addr. All uses updated.
5581 (amd64_linux_dr_get_control): Renamed to
5582 x86_linux_dr_get_control. All uses updated.
5583 (amd64_linux_dr_get_status): Renamed to
5584 x86_linux_dr_get_status. All uses updated.
5585 (amd64_linux_dr_set_control): Renamed to
5586 x86_linux_dr_set_control. All uses updated.
5587 (amd64_linux_dr_set_addr): Renamed to
5588 x86_linux_dr_set_addr. All uses updated.
5589 (amd64_linux_prepare_to_resume): Renamed to
5590 x86_linux_prepare_to_resume. All uses updated.
5591 (amd64_linux_new_thread): Renamed to
5592 x86_linux_new_thread. All uses updated.
5593 (amd64_linux_new_fork): Renamed to
5594 x86_linux_new_fork. All uses updated.
5595 (amd64_linux_child_post_startup_inferior): Renamed to
5596 x86_linux_child_post_startup_inferior. All uses updated.
5597 (amd64_linux_enable_btrace): Renamed to
5598 x86_linux_enable_btrace. All uses updated.
5599 (amd64_linux_disable_btrace): Renamed to
5600 x86_linux_disable_btrace. All uses updated.
5601 (amd64_linux_teardown_btrace): Renamed to
5602 x86_linux_teardown_btrace. All uses updated.
5603 (amd64_linux_read_btrace): Renamed to
5604 x86_linux_read_btrace. All uses updated.
5605 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5606 x86_linux_dr_get. All uses updated.
5607 (i386_linux_dr_set): Renamed to
5608 x86_linux_dr_set. All uses updated.
5609 (i386_linux_dr_get_addr): Renamed to
5610 x86_linux_dr_get_addr. All uses updated.
5611 (i386_linux_dr_get_control): Renamed to
5612 x86_linux_dr_get_control. All uses updated.
5613 (i386_linux_dr_get_status): Renamed to
5614 x86_linux_dr_get_status. All uses updated.
5615 (i386_linux_dr_set_control): Renamed to
5616 x86_linux_dr_set_control. All uses updated.
5617 (i386_linux_dr_set_addr): Renamed to
5618 x86_linux_dr_set_addr. All uses updated.
5619 (i386_linux_prepare_to_resume): Renamed to
5620 x86_linux_prepare_to_resume. All uses updated.
5621 (i386_linux_new_thread): Renamed to
5622 x86_linux_new_thread. All uses updated.
5623 (i386_linux_new_fork): Renamed to
5624 x86_linux_new_fork. All uses updated.
5625 (i386_linux_child_post_startup_inferior): Renamed to
5626 x86_linux_child_post_startup_inferior. All uses updated.
5627 (i386_linux_enable_btrace): Renamed to
5628 x86_linux_enable_btrace. All uses updated.
5629 (i386_linux_disable_btrace): Renamed to
5630 x86_linux_disable_btrace. All uses updated.
5631 (i386_linux_teardown_btrace): Renamed to
5632 x86_linux_teardown_btrace. All uses updated.
5633 (i386_linux_read_btrace): Renamed to
5634 x86_linux_read_btrace. All uses updated.
5635
b9c1d481
AS
56362014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5637
5638 * remote.c (extended_remote_post_attach): New function.
5639 (init_extended_remote_ops): Install it as to_post_attach method.
5640
7180e04a
PA
56412014-07-09 Pedro Alves <palves@redhat.com>
5642
5643 * infcmd.c (attach_command_post_wait): Don't call
5644 target_terminal_inferior here.
5645 (attach_command): Call it here instead.
5646
9a9a7608
AB
56472014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5648
5649 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5650 field.
5651 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5652 from varobj.c, with additional checks.
5653 (c_varobj_ops): Fill in is_path_expr_parent field.
5654 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5655 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5656 field.
5657 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5658 ops method.
5659 (varobj_default_is_path_expr_parent): New function.
5660 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5661 (varobj_default_is_path_expr_parent): Declare new function.
5662
1f267ae3
MM
56632014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5664
5665 * infcmd.c (finish_backward): Turn internal error into normal error.
5666
b2ee242b
PA
56672014-07-07 Pedro Alves <palves@redhat.com>
5668
8a869bca 5669 PR gdb/17096
b2ee242b
PA
5670 * remote.c (async_handle_remote_sigint)
5671 (async_handle_remote_sigint_twice): Call
5672 gdb_call_async_signal_handler instead of
5673 mark_async_signal_handler.
5674
38e229b2
TT
56752014-07-07 Tom Tromey <tromey@redhat.com>
5676
5677 * target-delegates.c: Rebuild.
5678 * target.c (target_info_record): Remove.
5679 * record.c (info_record_command): Unconditionally call
5680 to_info_record.
5681 * target.h (struct target_ops) <to_info_record>: Use
5682 TARGET_DEFAULT_IGNORE.
5683 (target_info_record): Remove.
5684
f0f9ff95
TT
56852014-07-07 Tom Tromey <tromey@redhat.com>
5686
5687 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5688 TARGET_DEFAULT_NORETURN.
5689 * target.c (generic_tls_error): New function.
5690 (target_translate_tls_address): Don't search target stack.
5691 * target-delegates.c: Rebuild.
5692 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5693 stack.
5694 * linux-thread-db.c (thread_db_get_thread_local_address):
5695 Unconditionally call beneath target.
5696
4a5be5ee
MK
56972014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5698
5699 * cli/cli-logging.c (pop_output_files): Assign targerr to
5700 gdb_stdtargerr.
5701
92c3b204
AB
57022014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * MAINTAINERS (Write After Approval): Update my email address.
5705
9b11e3a7
GB
57062014-07-02 Gary Benson <gbenson@redhat.com>
5707
5708 * proc-service.c (ps_xfer_memory): Update comment.
5709 (ps_pstop): Remove unused function.
5710 (ps_pcontinue): Likewise.
5711 (ps_lstop): Likewise.
5712 (ps_lcontinue): Likewise.
5713 (ps_lgetxregsize): Likewise.
5714 (ps_lgetxregs): Likewise.
5715 (ps_lsetxregs): Likewise.
5716 (ps_plog): Likewise.
5717 (ps_ptread): Likewise.
5718 (ps_ptwrite): Likewise.
5719
cf363f18
MW
57202014-07-01 Mark Wielaard <mjw@redhat.com>
5721
5722 * dwarf2read.c (add_array_cv_type): New function.
5723 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5724 (read_tag_volatile_type): Likewise.
5725
82ae6c8d
TT
57262014-07-01 Tom Tromey <tromey@redhat.com>
5727
5728 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5729 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5730 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5731 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5732 * command.h (cmd_cfunc_ftype): Move earlier.
5733 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5734 (add_com, add_info): Use cmd_cfunc_ftype.
5735
96142726
TT
57362014-06-30 Tom Tromey <tromey@redhat.com>
5737
5738 * symtab.c (operator_chars): Make parameters and return type
5739 const.
5740 (file_matches): Make "files" const.
5741 (struct search_symbols_data) <files>: Now const.
5742 (search_symbols): Make "regexp" and "files" parameters const.
5743 Update.
5744 (symtab_symbol_info): Remove cast.
5745 (rbreak_command): Update.
5746 * symtab.h (search_symbols): Update.
5747
b67a2c6f
YQ
57482014-06-27 Yao Qi <yao@codesourcery.com>
5749
5750 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5751 Change parameter type to 'struct thread_info *'. Caller
5752 updated.
5753 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5754 Update declaration.
5755 * dummy-frame.c (struct dummy_frame_id): New.
5756 (dummy_frame_id_eq): New function.
5757 (struct dummy_frame) <id>: Change its type to 'struct
5758 dummy_frame_id'.
5759 (dummy_frame_push): Add parameter ptid and save it in
5760 dummy_frame_id.
5761 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5762 inferior_ptid.
5763 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5764 to inferior_ptid.
5765 (lookup_dummy_frame): Change parameter type to 'struct
5766 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5767 instead of frame_id_eq.
5768 (dummy_frame_pop): Add parameter ptid. Callers updated.
5769 Update comments. Compose dummy_frame_id and pass it to
5770 lookup_dummy_frame.
5771 (dummy_frame_discard): Add parameter ptid.
5772 (dummy_frame_sniffer): Compose dummy_frame_id and call
5773 dummy_frame_id_eq instead of frame_id_eq.
5774 (fprint_dummy_frames): Print ptid.
5775 * dummy-frame.h: Remove comments.
5776 (dummy_frame_push): Add ptid in declaration.
5777 (dummy_frame_pop, dummy_frame_discard): Likewise.
5778
5b10184c
TT
57792014-06-26 Tom Tromey <tromey@redhat.com>
5780
5781 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5782 * command.h (error_no_arg): Update.
5783
06900326
TT
57842014-06-26 Tom Tromey <tromey@redhat.com>
5785
5786 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5787 (do_show_command): Make "arg" const.
5788 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5789
c2bcbb1d
TT
57902014-06-26 Tom Tromey <tromey@redhat.com>
5791
5792 * record-full.c (record_full_get_bookmark): Make "args" const.
5793 (record_full_goto_bookmark): Make "raw_bookmark" const.
5794 * record.c (record_goto): New function.
5795 (cmd_record_goto): Use it. Now static.
5796 * record.h (record_goto): Declare.
5797 (cmd_record_goto): Remove declaration.
5798 * target-delegates.c: Rebuild.
5799 * target.h (struct target_ops) <to_get_bookmark,
5800 to_goto_bookmark>: Make parameter const.
5801
9cbe5fff
TT
58022014-06-26 Tom Tromey <tromey@redhat.com>
5803
5804 * defs.h (generic_load): Update.
5805 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5806 * monitor.c (monitor_load): Make "args" const.
5807 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5808 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5809 const.
5810 (mips_load): Make "file" const.
5811 * remote-sim.c (gdbsim_load): Make "args" const.
5812 * remote.c (remote_load): Make "name" const.
5813 * symfile.c (generic_load): Make "args" const.
5814 * target-delegates.c: Rebuild.
5815 * target.c (target_load): Make "arg" const.
5816 (debug_to_load): Make "args" const.
5817 * target.h (struct target_ops) <to_load>: Make parameter const.
5818 (target_load): Update.
5819
34a68019
TT
58202014-06-26 Tom Tromey <tromey@redhat.com>
5821
5822 PR symtab/16902:
5823 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5824 (dwarf2_physname, read_partial_die)
5825 (guess_partial_die_structure_name, fixup_partial_die)
5826 (guess_full_die_structure_name, anonymous_struct_prefix)
5827 (dwarf2_name): Use per-BFD obstack.
5828
efc889c1
YQ
58292014-06-26 Yao Qi <yao@codesourcery.com>
5830
5831 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5832 dummyframe and this_id into inner block below.
5833
4395285e
YQ
58342014-06-26 Yao Qi <yao@codesourcery.com>
5835
5836 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5837 with "signal_pass[0]" in the initialization of signal_pass.
5838
aef92902
MM
58392014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5840
5841 * record-btrace.c (record_btrace_generating_corefile)
5842 (record_btrace_prepare_to_generate_core)
5843 (record_btrace_done_generating_core): New.
5844 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5845 (record_btrace_store_registers, record_btrace_prepare_to_store):
5846 Forward request when generating a core file.
5847 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5848 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5849 to_done_generating_core.
5850
5fff78c4
MM
58512014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5852
5853 * target.h (target_ops) <to_prepare_to_generate_core>
5854 <to_done_generating_core>: New.
5855 (target_prepare_to_generate_core, target_done_generating_core): New.
5856 * target.c (target_prepare_to_generate_core)
5857 (target_done_generating_core): New.
5858 * target-delegates.c: Regenerate.
5859 * gcore.c: (write_gcore_file): Rename to ...
5860 (write_gcore_file_1): ...this.
5861 (write_gcore_file): Call target_prepare_to_generate_core
5862 and target_done_generating_core.
5863
1d1f1ccb
MM
58642014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5865
5866 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5867 * gcore.c (write_gcore_file): Free memory returned from
5868 make_corefile_notes.
5869 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5870 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5871
3343ef86
YQ
58722014-06-24 Yao Qi <yao@codesourcery.com>
5873
5874 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5875 (arm_linux_init_abi): Set skip_trampoline_code with
5876 gdbarch_skip_trampoline_code instead of
5877 find_solib_trampoline_target.
5878
18d18ac8
YQ
58792014-06-24 Yao Qi <yao@codesourcery.com>
5880
5881 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5882 arm_skip_bx_reg returns non-zero.
5883
80d8d390
YQ
58842014-06-24 Yao Qi <yao@codesourcery.com>
5885
5886 * arm-tdep.c (arm_skip_bx_reg): New function.
5887 (arm_skip_stub): Call arm_skip_bx_reg.
5888
6a18a01c
DB
58892014-06-23 Don Breazeal <donb@codesourcery.com>
5890
5891 * MAINTAINERS: Add myself as write-after-approval maintainer.
5892
8e9db26e
PA
58932014-06-23 Pedro Alves <palves@redhat.com>
5894
5895 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5896 DR_CONTROL before setting DR0..DR3.
5897 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5898 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5899 bits of DR_CONTROL related to the debug register slot being
5900 disabled. If all slots are vacant, clear local slowdown as well,
5901 and assert DR_CONTROL is 0.
5902
70afc5b7
SC
59032014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5904
5905 * python/lib/gdb/command/xmethods.py
5906 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5907 current progspace only if the string "progspace" matches LOCUS_RE.
5908
840ed64d
JK
59092014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5910
5911 Fix --with-system-readline with readline-6.3 patch 5.
5912 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5913 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5914 types.
5915
26f2dc30
TT
59162014-06-20 Tom Tromey <tromey@redhat.com>
5917
5918 * dwarf2read.c (dw2_get_real_path): Use correct type in
5919 OBSTACK_CALLOC.
5920 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5921
125f8a3d
GB
59222014-06-20 Gary Benson <gbenson@redhat.com>
5923
5924 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5925 * common/glibc_thread_db.h: Likewise.
5926 * common/i386-cpuid.h: Likewise.
5927 * common/i386-gcc-cpuid.h: Likewise.
5928 * common/linux-btrace.h: Likewise.
5929 * common/linux-osdata.h: Likewise.
5930 * common/linux-procfs.h: Likewise.
5931 * common/linux-ptrace.h: Likewise.
5932 * common/mips-linux-watch.h: Likewise.
5933 * common/linux-btrace.c: Moved to nat.
5934 * common/linux-osdata.c: Likewise.
5935 * common/linux-procfs.c: Likewise.
5936 * common/linux-ptrace.c: Likewise.
5937 * common/mips-linux-watch.c: Likewise.
5938 * nat/gdb_thread_db.h: Moved from common.
5939 * nat/glibc_thread_db.h: Likewise.
5940 * nat/i386-cpuid.h: Likewise.
5941 * nat/i386-gcc-cpuid.h: Likewise.
5942 * nat/linux-btrace.c: Likewise.
5943 * nat/linux-btrace.h: Likewise.
5944 * nat/linux-osdata.c: Likewise.
5945 * nat/linux-osdata.h: Likewise.
5946 * nat/linux-procfs.c: Likewise.
5947 * nat/linux-procfs.h: Likewise.
5948 * nat/linux-ptrace.c: Likewise.
5949 * nat/linux-ptrace.h: Likewise.
5950 * nat/mips-linux-watch.c: Likewise.
5951 * nat/mips-linux-watch.h: Likewise.
5952 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5953 (object file files): Reordered.
5954 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5955 of glibc_thread_db.h.
5956
42995dbd
GB
59572014-06-20 Gary Benson <gbenson@redhat.com>
5958
5959 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5960 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5961 (i386_dr_low): Likewise.
5962 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5963 (i386_dr_low_set_addr): Likewise.
5964 (i386_dr_low_get_addr): Likewise.
5965 (i386_dr_low_can_set_control): Likewise.
5966 (i386_dr_low_set_control): Likewise.
5967 (i386_dr_low_get_control): Likewise.
5968 (i386_dr_low_get_status): Likewise.
5969 (i386_get_debug_register_length): Likewise.
5970 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5971 (i386_dr_low): Likewise.
5972 * nat/i386-dregs.c (i386-low.h): Remove include.
5973 (i386-nat.h): Likewise.
5974 (nat/i386-dregs.h): New include.
5975 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5976 (i386_dr_low_set_addr): Likewise.
5977 (i386_dr_low_get_addr): Likewise.
5978 (i386_dr_low_can_set_control): Likewise.
5979 (i386_dr_low_set_control): Likewise.
5980 (i386_dr_low_get_control): Likewise.
5981 (i386_dr_low_get_status): Likewise.
5982 (i386_get_debug_register_length): Likewise.
5983 (debug_hw_points): Likewise.
5984
3ed9baed
IB
59852014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5986
5987 * Makefile.in (SFILES): Add d-exp.y.
5988 (YYFILES): Add d-exp.c.
5989 (YYOBJ): Add d-exp.o.
5990 (local-maintainer-clean): Delete d-exp.c.
5991 * d-exp.y: New file.
5992 * d-lang.h (d_parse): New declaration.
5993 (d_error): New declaration.
5994 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5995 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5996 PREC_ORDER operators.
5997 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5998
78c164b0
YQ
59992014-06-19 Yao Qi <yao@codesourcery.com>
6000
6001 * gdbthread.h (any_running): Remove the declaration.
6002 * thread.c (any_running): Remove.
6003
f6e29b6e
YQ
60042014-06-19 Yao Qi <yao@codesourcery.com>
6005
6006 * gdbthread.h (struct thread_info) <state>: Change its type to
6007 'enum thread_state'. Update comments.
6008
034f788c
PA
60092014-06-19 Pedro Alves <palves@redhat.com>
6010
6011 * gdbthread.h (ALL_THREADS): Delete.
6012 (ALL_NON_EXITED_THREADS): New macro.
6013 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6014 instead of ALL_THREADS.
6015 * infrun.c (find_thread_needs_step_over)
6016 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6017 instead of ALL_THREADS.
6018 * record-btrace.c (record_btrace_open)
6019 (record_btrace_stop_recording, record_btrace_close)
6020 (record_btrace_is_replaying, record_btrace_resume)
6021 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6022 * remote.c (append_pending_thread_resumptions): Likewise.
6023 * thread.c (thread_apply_all_command): Likewise.
6024
46e33252
GB
60252014-06-19 Gary Benson <gbenson@redhat.com>
6026
6027 * i386-nat.c (i386_stopped_by_watchpoint):
6028 Use i386_dr_stopped_by_watchpoint.
6029 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6030 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6031
3a8ee006
GB
60322014-06-19 Gary Benson <gbenson@redhat.com>
6033
6034 * nat/i386-dregs.c: New file.
6035 * Makefile.in (i386-dregs.o): New rule.
6036 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6037 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6038 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6039 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6040 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6041 * config/i386/go32.mh (NATDEPFILES): Likewise.
6042 * config/i386/linux.mh (NATDEPFILES): Likewise.
6043 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6044 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6045 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6046 * i386-nat.h (debug_hw_points): New declaration.
6047 * i386-nat.c (breakpoint.h): Remove include.
6048 (command.h): Likewise.
6049 (target.h): Likewise.
6050 (gdb_assert.h): Likewise.
6051 (debug_hw_points): Made nonstatic.
6052 (debug_printf): Now in i386-dregs.c.
6053 (TARGET_HAS_DR_LEN_8): Likewise.
6054 (DR_CONTROL_SHIFT): Likewise.
6055 (DR_CONTROL_SIZE): Likewise.
6056 (DR_RW_EXECUTE): Likewise.
6057 (DR_RW_WRITE): Likewise.
6058 (DR_RW_READ): Likewise.
6059 (DR_RW_IORW): Likewise.
6060 (DR_LEN_1): Likewise.
6061 (DR_LEN_2): Likewise.
6062 (DR_LEN_4): Likewise.
6063 (DR_LEN_8): Likewise.
6064 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6065 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6066 (DR_ENABLE_SIZE): Likewise.
6067 (DR_LOCAL_SLOWDOWN): Likewise.
6068 (DR_GLOBAL_SLOWDOWN): Likewise.
6069 (DR_CONTROL_RESERVED): Likewise.
6070 (I386_DR_CONTROL_MASK): Likewise.
6071 (I386_DR_VACANT): Likewise.
6072 (I386_DR_LOCAL_ENABLE): Likewise.
6073 (I386_DR_GLOBAL_ENABLE): Likewise.
6074 (I386_DR_DISABLE): Likewise.
6075 (I386_DR_SET_RW_LEN): Likewise.
6076 (I386_DR_GET_RW_LEN): Likewise.
6077 (I386_DR_WATCH_HIT): Likewise.
6078 (i386_wp_op_t): Likewise.
6079 (i386_show_dr): Likewise.
6080 (i386_length_and_rw_bits): Likewise.
6081 (i386_insert_aligned_watchpoint): Likewise.
6082 (i386_remove_aligned_watchpoint): Likewise.
6083 (i386_handle_nonaligned_watchpoint): Likewise.
6084 (i386_update_inferior_debug_regs): Likewise.
6085 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6086 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6087 (i386_region_ok_for_watchpoint):
6088 Use i386_dr_region_ok_for_watchpoint.
6089 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6090
322a8e06
GB
60912014-06-19 Gary Benson <gbenson@redhat.com>
6092
6093 * i386-nat.c (i386_insert_hw_breakpoint): Use
6094 i386_insert_watchpoint.
6095 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6096
8f26655c
GB
60972014-06-19 Gary Benson <gbenson@redhat.com>
6098
6099 * i386-nat.c (i386_dr_show): Renamed to
6100 i386_show_dr and made static. All uses updated.
6101 (i386_dr_length_and_rw_bits): Renamed to
6102 i386_length_and_rw_bits and made static.
6103 All uses updated.
6104 (i386_dr_insert_aligned_watchpoint): Renamed to
6105 i386_insert_aligned_watchpoint and made static.
6106 All uses updated.
6107 (i386_dr_remove_aligned_watchpoint): Renamed to
6108 i386_remove_aligned_watchpoint and made static.
6109 All uses updated.
6110 (i386_dr_update_inferior_debug_regs): Renamed to
6111 i386_update_inferior_debug_regs and made static.
6112 All uses updated.
6113 * nat/i386-dregs.h (i386_dr_show): Removed.
6114 (i386_dr_length_and_rw_bits): Likewise.
6115 (i386_dr_insert_aligned_watchpoint): Likewise.
6116 (i386_dr_remove_aligned_watchpoint): Likewise.
6117 (i386_dr_update_inferior_debug_regs): Likewise.
6118
992c7d70
GB
61192014-06-19 Gary Benson <gbenson@redhat.com>
6120
6121 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6122 * configure: Regenerate.
6123 * config.in: Likewise.
6124 * main.c (signal.h): New include.
6125 (setup_alternate_signal_stack): New function.
6126 (captured_main): Call the above.
6127 * cp-support.c (signal.h): New include.
6128 (catch_demangler_crashes): New flag.
6129 (SIGJMP_BUF): New define.
6130 (SIGSETJMP): Likewise.
6131 (SIGLONGJMP): Likewise.
6132 (gdb_demangle_jmp_buf): New static global.
6133 (gdb_demangle_attempt_core_dump): Likewise.
6134 (gdb_demangle_signal_handler): New function.
6135 (gdb_demangle): If catch_demangler_crashes is set, install the
6136 above signal handler before calling bfd_demangle, and restore
6137 the original signal handler afterwards. Display the offending
6138 symbol and call demangler_warning the first time a segmentation
6139 fault is caught.
6140 (_initialize_cp_support): New maint set/show command.
6141
eae7090b
GB
61422014-06-19 Gary Benson <gbenson@redhat.com>
6143
6144 * utils.h (resource_limit_kind): New enum.
6145 (can_dump_core): New declaration.
6146 (warn_cant_dump_core): Likewise.
6147 (dump_core): Likewise.
6148 * utils.c (dump_core): Made nonstatic. Added new
6149 parameter "limit_kind".
6150 (can_dump_core): Made nonstatic. Moved printing code to...
6151 (warn_cant_dump_core): New function.
6152 (can_dump_core_warn): Likewise.
6153 (internal_vproblem): Replace calls to can_dump_core with
6154 calls to can_dump_core_warn. Supply new argument to each.
6155
57fcfb1b
GB
61562014-06-19 Gary Benson <gbenson@redhat.com>
6157
6158 * utils.h (demangler_vwarning): New declaration.
6159 (demangler_warning): Likewise.
6160 * utils.c (struct internal_problem)
6161 <user_settable_should_quit>: New field.
6162 <user_settable_should_dump_core>: Likewise
6163 (internal_error_problem): Add values for above new fields.
6164 (internal_warning_problem): Likewise.
6165 (demangler_warning_problem): New static global.
6166 (demangler_vwarning): New function.
6167 (demangler_warning): Likewise.
6168 (add_internal_problem_command): Selectively add commands.
6169 (_initialize_utils): New internal problem command.
6170 * maint.c (maintenance_demangler_warning): New function.
6171 (_initialize_maint_cmds): New command.
6172
17a40b44
TT
61732014-06-18 Tom Tromey <tromey@redhat.com>
6174
6175 * f-valprint.c (info_common_command_for_block): Update.
6176 * symtab.h (struct general_symbol_info) <common_block>: Now
6177 const.
6178
346d1dfe
TT
61792014-06-18 Tom Tromey <tromey@redhat.com>
6180
6181 * symtab.h (struct symtab) <blockvector>: Now const.
6182 * ada-lang.c (ada_add_global_exceptions): Update.
6183 * buildsym.c (augment_type_symtab): Update.
6184 * dwarf2read.c (dw2_lookup_symbol): Update.
6185 * jit.c (finalize_symtab): Update.
6186 * jv-lang.c (add_class_symtab_symbol): Update.
6187 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6188 Update.
6189 * objfiles.c (objfile_relocate1): Update.
6190 * psymtab.c (lookup_symbol_aux_psymtabs)
6191 (maintenance_check_psymtabs): Update.
6192 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6193 Update.
6194 * spu-tdep.c (spu_catch_start): Update.
6195 * symmisc.c (dump_symtab_1): Update.
6196 * symtab.c (lookup_global_symbol_from_objfile)
6197 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6198 (basic_lookup_transparent_type_quick)
6199 (basic_lookup_transparent_type, find_pc_sect_symtab)
6200 (find_pc_sect_line, search_symbols): Update.
6201 * block.c (find_block_in_blockvector): Make "bl" const.
6202 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6203 const.
6204 (blockvector_contains_pc): Make "bv" const.
6205 (block_for_pc_sect): Update.
6206 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6207 (blockvector_contains_pc): Update.
6208 * breakpoint.c (resolve_sal_pc): Update.
6209 * inline-frame.c (block_starting_point_at): Update.
6210
1834676b
TT
62112014-06-18 Tom Tromey <tromey@redhat.com>
6212
6213 * completer.c (complete_line): Make "line_buffer" const.
6214 * completer.h (complete_line): Update.
6215
ac1a991b
TT
62162014-06-18 Tom Tromey <tromey@redhat.com>
6217
6218 * symtab.c (add_macro_name): Remove unneeded cast.
6219
5bc98e52
TT
62202014-06-18 Tom Tromey <tromey@redhat.com>
6221
6222 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6223 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6224
8236def8
TT
62252014-06-18 Tom Tromey <tromey@redhat.com>
6226
6227 * probe.c (info_probes_for_ops): Make "arg" const.
6228 * probe.h (info_probes_for_ops): Update.
6229
3977b71f
TT
62302014-06-18 Tom Tromey <tromey@redhat.com>
6231
6232 * varobj.c (varobj_create): Update.
6233 * valops.c (value_of_this): Update.
6234 * tracepoint.c (add_local_symbols, scope_info): Update.
6235 * symtab.h (struct general_symbol_info) <block>: Now const.
6236 * symtab.c (skip_prologue_sal)
6237 (default_make_symbol_completion_list_break_on)
6238 (skip_prologue_using_sal): Update.
6239 * stack.h (iterate_over_block_locals)
6240 (iterate_over_block_local_vars): Update.
6241 * stack.c (print_frame_args): Update.
6242 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6243 parameter const.
6244 (get_selected_block): Make return type const.
6245 * python/py-frame.c (frapy_block): Update.
6246 * python/py-block.c (gdbpy_block_for_pc): Update.
6247 * p-exp.y (%union) <bval>: Now const.
6248 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6249 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6250 * m2-exp.y (%union) <bval>: Now const.
6251 * linespec.c (get_current_search_block): Make return type const.
6252 (create_sals_line_offset, find_label_symbols): Update.
6253 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6254 Update.
6255 (block_starting_point_at): Make "block" const.
6256 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6257 (check_exception_resume): Update.
6258 * guile/scm-frame.c (gdbscm_frame_block): Update.
6259 * guile/scm-block.c (gdbscm_lookup_block): Update.
6260 * frame.h (get_frame_block): Update.
6261 (get_selected_block): Make return type const.
6262 * frame.c (frame_id_inner): Update.
6263 * f-valprint.c (info_common_command_for_block)
6264 (info_common_command): Update.
6265 * dwarf2loc.c (dwarf2_find_location_expression)
6266 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6267 (locexpr_describe_location_piece): Update.
6268 * c-exp.y (%union) <bval>: Now const.
6269 * breakpoint.c (resolve_sal_pc): Update.
6270 * blockframe.c (get_frame_block):Make return type const.
6271 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6272 (block_innermost_frame): Update.
6273 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6274 (block_for_pc, block_for_pc_sect): Update.
6275 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6276 'pblock' const.
6277 (block_for_pc_sect, block_for_pc): Make return type const.
6278 * ax-gdb.c (gen_expr): Update.
6279 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6280 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6281 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6282 (ada_read_var_value): Update.
6283 * ada-exp.y (struct name_info) <block>: Now const.
6284 (%union): Likewise.
6285 (block_lookup): Constify.
6286
b9228891
GB
62872014-06-18 Gary Benson <gbenson@redhat.com>
6288
6289 * nat/i386-dregs.h: New file.
6290 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6291 * i386-nat.h (i386-dregs.h): New include.
6292 (DR_FIRSTADDR): Now in i386-dregs.h.
6293 (DR_LASTADDR): Likewise.
6294 (DR_NADDR): Likewise.
6295 (DR_STATUS): Likewise.
6296 (DR_CONTROL): Likewise.
6297 (i386_debug_reg_state): Likewise.
6298 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6299
a1aa2221
LM
63002014-06-18 Don Breazeal <donb@codesourcery.com>
6301
6302 * breakpoint.c (set_longjmp_breakpoint): Call
6303 momentary_breakpoint_from_master with additional argument.
6304 (set_longjmp_breakpoint_for_call_dummy): Call
6305 momentary_breakpoint_from_master with additional argument.
6306 (set_std_terminate_breakpoint): Call
6307 momentary_breakpoint_from_master with additional argument.
6308 (momentary_breakpoint_from_master): Add argument to function
6309 definition and use it to initialize structure member flag.
74228e77 6310 (clone_momentary_breakpoint): Call
a1aa2221
LM
6311 momentary_breakpoint_from_master with additional argument.
6312 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6313 member flags set in momentary_breakpoint_from_master.
6314
4be83cc2
GB
63152014-06-18 Gary Benson <gbenson@redhat.com>
6316
6317 * i386-nat.c (i386_show_dr): Renamed to
6318 i386_dr_show and made nonstatic. All uses updated.
6319 (i386_length_and_rw_bits): Renamed to
6320 i386_dr_length_and_rw_bits and made nonstatic.
6321 All uses updated.
6322 (i386_insert_aligned_watchpoint): Renamed to
6323 i386_dr_insert_aligned_watchpoint and made nonstatic.
6324 All uses updated.
6325 (i386_remove_aligned_watchpoint): Renamed to
6326 i386_dr_remove_aligned_watchpoint and made nonstatic.
6327 All uses updated.
6328 (i386_update_inferior_debug_regs): Renamed to
6329 i386_dr_update_inferior_debug_regs and made nonstatic.
6330 All uses updated.
6331
131aa0d4
GB
63322014-06-18 Gary Benson <gbenson@redhat.com>
6333
6334 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6335 (i386_dr_low_can_set_control): Likewise.
6336 (i386_dr_low_set_addr): Likewise.
6337 (i386_dr_low_set_control): Likewise.
6338 (i386_dr_low_get_addr): Likewise.
6339 (i386_dr_low_get_status): Likewise.
6340 (i386_dr_low_get_control): Likewise.
6341 (i386_insert_aligned_watchpoint): Use new macros.
6342 (i386_update_inferior_debug_regs): Likewise.
6343 (i386_stopped_data_address): Likewise.
6344
d9305f7f
GB
63452014-06-18 Gary Benson <gbenson@redhat.com>
6346
6347 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6348 New parameter. All uses updated.
6349
ea008da4
GB
63502014-06-18 Gary Benson <gbenson@redhat.com>
6351
6352 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6353 All uses updated.
6354
1b6d4134
GB
63552014-06-18 Gary Benson <gbenson@redhat.com>
6356
6357 * i386-nat.c (debug_printf): New macro.
6358 (i386_get_debug_register_length): Likewise.
6359 (TARGET_HAS_DR_LEN_8): Use above macro.
6360 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6361 and printf_unfiltered. Use phex to format values.
6362
9b4550ef
GB
63632014-06-18 Gary Benson <gbenson@redhat.com>
6364
6365 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6366 Make const.
6367
6e62758f
GB
63682014-06-18 Gary Benson <gbenson@redhat.com>
6369
6370 * i386-nat.c: Comment changes.
6371
51c79e94
GB
63722014-06-18 Gary Benson <gbenson@redhat.com>
6373
6374 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6375
3e11889a
GB
63762014-06-18 Gary Benson <gbenson@redhat.com>
6377
6378 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6379 (i386_insert_aligned_watchpoint): Likewise.
6380 (i386_remove_aligned_watchpoint): Likewise.
6381 (i386_handle_nonaligned_watchpoint): Likewise.
6382
fc6e2f03
GB
63832014-06-18 Gary Benson <gbenson@redhat.com>
6384
6385 * i386-nat.c: Whitespace changes.
6386
2afe7d50
SB
63872014-06-17 Samuel Bronson <naesten@gmail.com>
6388
6389 * MAINTAINERS: Update Roland McGrath's email address.
6390 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6391 Red Hat a while ago, and giving me a current address.
2afe7d50 6392
3bca49ee
TT
63932014-06-17 Tom Tromey <tromey@redhat.com>
6394
6395 * utils.h (savestring): Remove declaration.
6396
6e366df1
TT
63972014-06-17 Tom Tromey <tromey@redhat.com>
6398
6399 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6400
6be47f0c
KS
64012014-06-16 Keith Seitz <keiths@redhat.com>
6402
6403 PR mi/15863
6404 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6405 to update the varobj if inferior_ptid is null_ptid.
6406
7bc112c1
TT
64072014-06-16 Tom Tromey <tromey@redhat.com>
6408
6409 * target.h (struct target_ops) <to_info_proc>: Make parameter
6410 const.
6411 (target_info_proc): Update.
6412 * target.c (target_info_proc): Make "args" const.
6413 * procfs.c (procfs_info_proc): Update.
6414 * linux-tdep.c (linux_info_proc): Update.
6415 (linux_core_info_proc_mappings): Make "args" const.
6416 (linux_core_info_proc): Update.
6417 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6418 * gdbarch.c: Rebuild.
6419 * gdbarch.h: Rebuild.
6420 * corelow.c (core_info_proc): Update.
6421
fee354ee
TT
64222014-06-16 Tom Tromey <tromey@redhat.com>
6423
6424 * target.h (struct target_ops) <to_disconnect>: Make parameter
6425 const.
6426 (target_disconnect): Update.
6427 * target.c (target_disconnect): Make "args" const.
6428 * target-delegates.c: Rebuild.
6429 * remote.c (remote_disconnect): Update.
6430 * record.h (record_disconnect): Update.
6431 * record.c (record_disconnect): Update.
6432 * inf-child.c (inf_child_disconnect): Update.
6433
a30bf1f1
TT
64342014-06-16 Tom Tromey <tromey@redhat.com>
6435
6436 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6437 * target.c (debug_to_rcmd, default_rcmd): Update.
6438 * target-delegates.c: Rebuild.
6439 * remote.c (remote_rcmd): Update.
6440 * monitor.c (monitor_rcmd): Update.
6441
d03de421
PA
64422014-06-16 Pedro Alves <palves@redhat.com>
6443
6444 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6445 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6446 have OBJF_SHARED set.
6447 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6448 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6449 instead of OBJF_USERLOADED.
6450 * objfiles.h (OBJF_SHARED): Update comment.
6451 (userloaded_objfile_contains_address_p): Rename to ...
6452 (shared_objfile_contains_address_p): ... this, and update
6453 comments.
6454 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6455 new objfile.
6456 (remove_symbol_file_command): Skip objfiles that don't have
6457 OBJF_SHARED set.
6458
99f4262f
TT
64592014-06-16 Tom Tromey <tromey@redhat.com>
6460
6461 * minsyms.h (prim_record_minimal_symbol)
6462 (prim_record_minimal_symbol_and_info): Update comments.
6463
97d66cc6
EZ
64642014-06-14 Eli Zaretskii <eliz@gnu.org>
6465
6466 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6467 or --without-guile, according to how GDB was built.
6468
635c7e8a
TT
64692014-06-13 Tom Tromey <tromey@redhat.com>
6470
6471 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6472 to help_list.
6473 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6474 to help_list.
6475 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6476 help_list.
6477 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6478 help_list.Pass all_commands, not -1, to help_list.
6479 * cli/cli-dump.c (dump_command, append_command)
6480 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6481 (binary_dump_command, binary_append_command): Pass all_commands,
6482 not -1, to help_list.
6483 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6484 -1, to help_list.
6485 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6486 -1, to help_list.
6487 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6488 help_list.
6489 * top.c (set_history): Pass all_commands, not -1, to help_list.
6490 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6491 all_commands, not -1, to help_list.
6492 * symfile.c (overlay_command): Pass all_commands, not -1, to
6493 help_list.
6494 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6495 help_list.
6496 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6497 help_list.
6498 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6499 -1, to help_list.
6500 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6501 not -1, to help_list.
6502 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6503 not -1, to help_list.
6504 * maint.c (maintenance_command, maintenance_info_command)
6505 (maintenance_print_command, maintenance_set_cmd): Pass
6506 all_commands, not -1, to help_list.
6507 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6508 help_list.
6509 * language.c (set_check): Pass all_commands, not -1, to help_list.
6510 * infcmd.c (unset_command): Pass all_commands, not -1, to
6511 help_list.
6512 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6513 help_list.
6514 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6515 help_list.
6516 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6517 help_list.
6518 * breakpoint.c (save_command): Pass all_commands, not -1, to
6519 help_list.
6520 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6521 all_commands, not -1, to help_list.
6522
b94ade42
PL
65232014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6524
6525 * regcache.c (struct register_to_invalidate): New structure.
6526 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6527 functions.
6528 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6529
31f628ae
YQ
65302014-06-12 Yao Qi <yao@codesourcery.com>
6531
6532 * varobj.c (varobj_get_num_children): Call
6533 varobj_is_dynamic_p.
6534 (varobj_list_children): Likewise.
6535 (varobj_update): Likewise. Update comments.
6536
cde5ef40
YQ
65372014-06-12 Yao Qi <yao@codesourcery.com>
6538
6539 * varobj.c (varobj_pretty_printed_p): Rename to ...
6540 (varobj_is_dynamic_p): ... this. New function.
6541 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6542 (varobj_is_dynamic_p): Declare.
6543 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6544 (mi_print_value_p, varobj_update_one): Likewise.
6545
576ea091
YQ
65462014-06-12 Pedro Alves <pedro@codesourcery.com>
6547 Yao Qi <yao@codesourcery.com>
6548
6549 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6550 (varobj_get_iterator): Wrap up code for pretty-printer by
6551 "#if HAVE_PYTHON" and "#endif".
6552 (update_dynamic_varobj_children): Likewise.
6553
827f100c
YQ
65542014-06-12 Pedro Alves <pedro@codesourcery.com>
6555 Yao Qi <yao@codesourcery.com>
6556
6557 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6558 gdb_python_initialized is false. Move some code from varobj.c.
6559 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6560 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6561 (struct varobj_item): Moved to varobj-iter.h".
6562 (varobj_clear_saved_item): New function.
6563 (update_dynamic_varobj_children): Move python-related code to
6564 py-varobj.c.
6565 (free_variable): Call varobj_clear_saved_item and
6566 varobj_iter_delete.
6567
e5250216
YQ
65682014-06-12 Pedro Alves <pedro@codesourcery.com>
6569 Yao Qi <yao@codesourcery.com>
6570
6571 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6572 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6573 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6574 (py-varobj.o): New rule.
6575 * python/py-varobj.c: New file.
6576 * python/python-internal.h (py_varobj_get_iterator): Declare.
6577 * varobj-iter.h: New file.
6578 * varobj.c: Include "varobj-iter.h"
6579 (struct varobj) <child_iter>: Change its type from "PyObject *"
6580 to "struct varobj_iter *".
6581 <saved_item>: Likewise.
6582 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6583 [HAVE_PYTHON] (varobj_get_iterator): New function.
6584 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6585 python-specific code to python/py-varobj.c.
6586 (install_visualizer): Call varobj_iter_delete instead of
6587 Py_XDECREF.
6588 * varobj.h (varobj_ensure_python_env): Declare.
6589
5a2e0d6e
YQ
65902014-06-12 Yao Qi <yao@codesourcery.com>
6591
6592 * varobj.c (struct varobj_item): New structure.
6593 (create_child_with_value): Update declaration.
6594 (varobj_add_child): Replace arguments 'name' and 'value' with
6595 'item'. All callers updated.
6596 (install_dynamic_child): Likewise.
6597 (update_dynamic_varobj_children): Likewise.
6598 (varobj_add_child): Likewise.
6599 (create_child_with_value): Likewise.
6600
919b9a93
JB
66012014-06-11 Joel Brobecker <brobecker@adacore.com>
6602
6603 * NEWS: Create a new section for the next release branch.
6604 Rename the section of the current branch, now that it has
6605 been cut.
6606
71a55bdf
JB
66072014-06-11 Joel Brobecker <brobecker@adacore.com>
6608
6609 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6610 * version.in: Bump version to 7.8.50.DATE-cvs.
6611
364fe1f7
PA
66122014-06-11 Pedro Alves <palves@redhat.com>
6613
6614 PR remote/17028
6615 * ser-mingw.c (net_windows_socket_check_pending): New function.
6616 (net_windows_select_thread): Ignore spurious wakeups. Use
6617 net_windows_socket_check_pending.
6618 (net_windows_wait_handle): Check for pending events with
6619 ioctlsocket, through net_windows_socket_check_pending, instead of
6620 checking the socket's event.
6621
5a6c7709
SC
66222014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6623
6624 * python/python-internal.h (gdb_PyObject_GetAttrString)
6625 (gdb_PyObject_HasAttrString): New inline function definitions.
6626 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6627 char * of the second argument to PyObject_GetAttrString.
74228e77 6628
0e58ee40
JB
66292014-06-10 Joel Brobecker <brobecker@adacore.com>
6630
6631 * serial.c (serial_write): Fix index of character to be printed
6632 in call to serial_logchar when serial debug traces are enabled.
6633
d190df30
JB
66342014-06-10 Joel Brobecker <brobecker@adacore.com>
6635
6636 * gdbtypes (resolve_dynamic_range): Add function description.
6637
b4b01d36
PA
66382014-06-09 Pedro Alves <palves@redhat.com>
6639
6640 * linux-nat.c (linux_child_follow_fork): Initialize status with
6641 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6642 inner block. Only pass the signal to PTRACE_DETACH if in pass
6643 state.
6644
3657956b
GB
66452014-06-09 Gary Benson <gbenson@redhat.com>
6646
6647 * common/signals.c (gdb_signal_from_host): Reorder to separate
6648 the always-available ANSI-standard signals from the signals that
6649 require checking.
6650 (do_gdb_signal_to_host): Likewise.
6651 * proc-events.c (signal_table): Likewise.
6652
c077881a
HZ
66532014-06-08 Hui Zhu <hui@codesourcery.com>
6654
6655 * common/linux-ptrace.c (linux_disable_event_reporting): New
6656 function.
6657 * common/linux-ptrace.h (linux_disable_event_reporting): New
6658 declaration.
6659 * linux-nat.c (linux_child_follow_fork): Do a single step before
6660 detach.
6661
4186eb54
KS
66622014-06-07 Keith Seitz <keiths@redhat.com>
6663
6664 Revert:
6665 PR c++/16253
6666 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6667 from symbol_matches_domain in symtab.c. All local callers
6668 of symbol_matches_domain updated.
6669 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6670 search STRUCT_DOMAIN.
6671 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6672 independently. standard_lookup will do that automatically.
6673 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6674 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6675 (cp_lookup_symbol_in_namespace): Likewise.
6676 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6677 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6678 may return a STRUCT_DOMAIN match.
6679 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6680 * cp-support.c: Include language.h.
6681 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6682 VAR_DOMAIN.
6683 * psymtab.c (match_partial_symbol): Compare the requested
6684 domain with the symbol's domain directly.
6685 (lookup_partial_symbol): Likewise.
6686 * symtab.c (lookup_symbol_in_language): Explain when/why
6687 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6688 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6689 appropriate languages.
6690 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6691 and moved to ada-lang.c
6692 (lookup_block_symbol): Explain that this function only returns
6693 symbol matching the requested DOMAIN.
6694 Compare the requested domain with the symbol's domain directly.
6695 (iterate_over_symbols): Compare the requested domain with the
6696 symbol's domain directly.
6697 * symtab.h (symbol_matches_domain): Remove.
6698
25326a28 66992014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6700
6701 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6702 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6703 (gdbscm_guile_version_is_at_least): Declare.
6704 (gdbscm_scm_string_to_int): Declare.
6705 * guile/guile.c (gdbscm_guile_major_version): New global.
6706 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6707 (guile_datadir): New static global.
6708 (gdbscm_guile_data_directory): New function.
6709 (initialize_scheme_side): Update.
6710 (misc_guile_functions): Add guile-data-directory.
6711 (initialize_gdb_module): Fetch guile version number.
6712 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6713 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6714 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6715 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6716 comments.
6717 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6718 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6719 * guile/scm-value.c (gdbscm_value_to_string): Only call
6720 scm_port_conversion_strategy if Guile version >= 2.0.6.
6721
0a770bb2 67222014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6723
6724 * main.c (print_gdb_help): Add -q and --silent.
6725
73ba372c
GB
67262014-06-06 Gary Benson <gbenson@redhat.com>
6727
6728 * common/signals.c: Remove preprocessor conditionals for
6729 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6730 SIGSEGV and SIGTERM.
6731 * proc-events.c: Likewise.
6732
c33b2f12
MM
67332014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6734
6735 * symfile.c (symfile_free_objfile): Remove restriction to
6736 OBJF_USERLOADED.
6737 * symfile-mem.c (symbol_file_add_from_memory): Call
6738 add_target_sections_of_objfile.
6739
fb934770
LC
67402014-06-05 Ludovic Courtès <ludo@gnu.org>
6741
6742 * guile/scm-value.c (gdbscm_history_append_x): Use
6743 'vlscm_get_value_smob_arg_unsafe' instead of
6744 'vlscm_scm_to_value'.
6745
6ef284bd
SM
67462014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6747
6748 PR mi/15806
6749 * utils.c (printchar): Don't escape at all if quoter is NUL.
6750 Update function documentation to clarify effect of parameter
6751 QUOTER.
6752 * remote.c (escape_buffer): Pass '\\' as the quoter to
6753 fputstrn_unfiltered.
6754 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6755 generate the output.
6756 (mi_solib_unloaded): Same.
6757
270c9937
JB
67582014-06-05 Joel Brobecker <brobecker@adacore.com>
6759
6760 * development.sh: Delete.
6761 * Makefile.in (config.status): Adjust dependency on development.sh.
6762 * configure.ac: Adjust development.sh source call.
6763 * configure: Regenerate.
6764
16f691fb
DE
67652014-06-04 Doug Evans <xdje42@gmail.com>
6766
6767 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6768 is_scheme_bkpt, spec.
6769 (bpscm_make_breakpoint_smob): Initialize new members.
6770 (gdbscm_create_breakpoint_x): Split into two ...
6771 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6772 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6773 (scheme_function breakpoint_functions): Update.
6774 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6775 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6776 register-breakpoint!.
6777
ef7cab6b
JB
67782014-06-04 Joel Brobecker <brobecker@adacorer.com>
6779
6780 PR server/17023
6781 * mem-break.c (z_type_supported): Return zero if
6782 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6783
012370f6
TT
67842014-06-04 Tom Tromey <tromey@redhat.com>
6785
6786 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6787 value_from_contents_and_address_unresolved.
6788 (ada_template_to_fixed_record_type_1): Likewise.
6789 (ada_which_variant_applies): Likewise.
6790 * value.h (value_from_contents_and_address_unresolved): Declare.
6791 * value.c (value_from_contents_and_address_unresolved): New
6792 function.
6793 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6794 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6795 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6796
92e2a17f
TT
67972014-06-04 Tom Tromey <tromey@redhat.com>
6798
6799 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6800
c0939df1
TT
68012014-06-04 Tom Tromey <tromey@redhat.com>
6802
6803 * procfs.c (procfs_attach): Make "args" const.
6804 * windows-nat.c (windows_attach): Make "args" const.
6805 * nto-procfs.c (procfs_attach): Make "args" const.
6806 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6807 * go32-nat.c (go32_attach): Make "args" const.
6808 * gnu-nat.c (gnu_attach): Make "args" const.
6809 * darwin-nat.c (darwin_attach): Make "args" const.
6810 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6811 * linux-nat.c (linux_nat_attach): Make "args" const.
6812 * remote.c (extended_remote_attach_1, extended_remote_attach):
6813 Make "args" const.
6814 * target.h (struct target_ops) <to_attach>: Make "args" const.
6815 (find_default_attach): Likewise.
6816 * utils.c (parse_pid_to_attach): Make "args" const.
6817 * utils.h (parse_pid_to_attach): Update.
6818
8eaff7cd
TT
68192014-06-04 Tom Tromey <tromey@redhat.com>
6820
6821 * target-delegates.c: Rebuild.
6822 * target.c (default_thread_address_space): New function.
6823 (target_thread_address_space): Simplify.
6824 * target.h (struct target_ops) <to_thread_address_space>: Add
6825 TARGET_DEFAULT_FUNC.
6826
1913f160
DE
68272014-06-04 Doug Evans <xdje42@gmail.com>
6828
6829 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6830
70ad5bff
MM
68312014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6832
6833 * record-btrace.c: Include event-loop.h and inf-loop.h.
6834 (record_btrace_resume_exec_dir)
6835 (record_btrace_async_inferior_event_handler)
6836 (record_btrace_handle_async_inferior_event): New.
6837 (record_btrace_open): Create async event handler.
6838 (record_btrace_close): Delete async event handler.
6839 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6840 Mark async event handler.
6841 (record_btrace_execution_direction): New.
6842 (init_record_btrace_ops): Initialize to_execution_direction.
6843
b6210538
DE
68442014-06-03 Doug Evans <xdje42@gmail.com>
6845
6846 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6847 (gdbscm_make_parameter): Ditto.
6848
a5b1fd27
DE
68492014-06-03 Doug Evans <dje@google.com>
6850
6851 * exec.c (exec_close_1): Call clear_section_table instead of
6852 resize_section_table.
6853 (clear_section_table): New function.
6854 (resize_section_table): Make static. Rename arg num_added to
6855 adjustment.
6856 * exec.h (clear_section_table): Declare.
6857 (resize_section_table): Delete.
6858 * progspace.c (release_program_space): Call clear_section_table
6859 instead of resize_section_table.
6860
0c6e92a5
SC
68612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6862
6863 * NEWS (Python Scripting): Add entry about the new xmethods
6864 feature.
6865
883964a7
SC
68662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6867
6868 * python/py-xmethods.c: New file.
6869 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6870 (objfpy_dealloc): XDECREF on the new xmethods field.
6871 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6872 field.
6873 (objfpy_get_xmethods): New function.
6874 (objfile_getset): New entry 'xmethods'.
6875 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6876 (pspy_dealloc): XDECREF on the new xmethods field.
6877 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6878 field.
6879 (pspy_get_xmethods): New function.
6880 (pspace_getset): New entry 'xmethods'.
6881 * python/python-internal.h: Add declarations for new functions.
6882 * python/python.c (_initialize_python): Invoke
6883 gdbpy_initialize_xmethods.
6884 * python/lib/gdb/__init__.py (xmethods): New
6885 attribute.
6886 * python/lib/gdb/xmethod.py: New file.
6887 * python/lib/gdb/command/xmethods.py: New file.
6888
58992dc5
SC
68892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6890
6891 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6892 best match method returned by find_overload_match is an xmethod.
6893 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6894 the best matching operator returned by find_overload_match is an
6895 xmethod.
6896 * valops.c: #include "extension.h".
6897 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6898 Return void. The list of matching source methods is returned in
6899 "fn_list" and a vector of matching debug method workers is
6900 returned in "xm_worker_vec". Update all callers.
6901 (value_find_oload_method_list): Likewise.
6902 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6903 non-NULL, then the index of the best matching method in this
6904 vector is returned. Update all callers.
6905 (find_overload_match): Include xmethods while performing overload
6906 resolution.
6907
e81e7f5e
SC
69082014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6909
6910 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6911 * extension-priv.h (struct extension_language_ops): Add the
6912 xmethod interface.
6913 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6914 get_matching_xmethod_workers, get_xmethod_argtypes,
6915 invoke_xmethod, free_xmethod_worker,
6916 free_xmethod_worker_vec): New functions.
6917 * extension.h: #include "common/vec.h".
6918 New function declarations.
6919 (struct xmethod_worker): New struct.
6920 (VEC (xmethod_worker_ptr)): New vector type.
6921 (xmethod_worker_ptr): New typedef.
6922 (xmethod_worker_vec): Likewise.
6923 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6924 builtin_type.
6925 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6926 (struct builtin_type): New field "xmethod".
6927 * valarith.c (value_ptradd): Assert that the value argument is not
6928 lval_xcallable.
6929 * valops.c (value_must_coerce_to_target): Return 0 for
6930 lval_xcallable values.
6931 * value.c (struct value): New field XM_WORKER in the field
6932 LOCATION.
6933 (value_address, value_raw_address): Return 0 for lval_xcallable
6934 values.
6935 (set_value_address): Assert that the value is not an
6936 lval_xcallable.
6937 (value_free): Free the associated xmethod worker when freeing
6938 lval_xcallable values.
6939 (set_value_component_location): Assert that the WHOLE value is not
6940 lval_xcallable.
6941 (value_of_xmethod, call_xmethod): New functions.
6942 * value.h: Declare "struct xmethod_worker".
6943 Declare new functions value_of_xmethod, call_xmethod.
6944
ef370185
JB
69452014-06-03 Joel Brobecker <brobecker@adacore.com>
6946 Pedro Alves <palves@redhat.com>
6947
6948 PR breakpoints/17000
6949 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6950 New function, extracted from software_breakpoint_inserted_here_p.
6951 (software_breakpoint_inserted_here_p): Replace factored out code
6952 by call to find_non_raw_software_breakpoint_inserted_here.
6953 (bp_target_info_copy_insertion_state): New function.
6954 (bkpt_insert_location): Handle the case of a single-step
6955 breakpoint already inserted at the same address.
6956 (bkpt_remove_location): Handle the case of a single-step
6957 breakpoint still inserted at the same address.
6958 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6959 breakpoint already inserted at the same address.
6960 (deprecated_remove_raw_breakpoint): Handle the case of a
6961 non-raw breakpoint still inserted at the same address.
6962 (find_single_step_breakpoint): New function, extracted from
6963 single_step_breakpoint_inserted_here_p.
6964 (find_single_step_breakpoint): New function,
6965 factored out from single_step_breakpoint_inserted_here_p.
6966 (single_step_breakpoint_inserted_here_p): Reimplement.
6967
1e2ccb61
BM
69682014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6969
6970 Pushed by Joel Brobecker <brobecker@adacore.com>
6971 * source.c (show_substitute_path_command): Fix display of matching
6972 substitution rules.
6973
d3448d85
GB
69742014-06-03 Gary Benson <gbenson@redhat.com>
6975
6976 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6977
06eb1586
DE
69782014-06-02 Doug Evans <xdje42@gmail.com>
6979
6980 Add parameter support for Guile.
6981 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6982 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6983 (scm-param.o): New rule.
6984 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6985 (gdbscm_misc_error): Declare.
6986 (gdbscm_canonicalize_command_name): Declare.
6987 (gdbscm_scm_to_host_string): Declare.
6988 (gdbscm_scm_from_host_string): Declare.
6989 (gdbscm_initialize_parameters): Declare.
6990 * guile/guile.c (initialize_gdb_module): Call
6991 gdbscm_initialize_parameters.
6992 * guile/lib/gdb.scm: Export parameter symbols.
6993 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6994 cmdscm_canonicalize_name and made public. All callers updated.
6995 * guile/scm-exception.c (gdbscm_misc_error): New function.
6996 * guile/scm-param.c: New file.
6997 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6998 (gdbscm_scm_to_host_string): New function.
6999 (gdbscm_scm_from_host_string): New function.
7000 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7001
e698b8c4
DE
70022014-06-02 Doug Evans <xdje42@gmail.com>
7003
7004 Add command support for Guile.
7005 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7006 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7007 (scm-cmd.o): New rule.
7008 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7009 (gdbscm_user_error_p): Declare.
7010 (gdbscm_parse_command_name): Declare.
7011 (gdbscm_valid_command_class_p): Declare.
7012 (gdbscm_initialize_commands): Declare.
7013 * guile/guile.c (initialize_gdb_module): Call
7014 gdbscm_initialize_commands.
7015 * guile/lib/gdb.scm: Export command symbols.
7016 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7017 (throw-user-error): New function.
7018 * guile/scm-cmd.c: New file.
7019 * guile/scm-exception.c (user_error_symbol): New static global.
7020 (gdbscm_user_error_p): New function.
7021 (gdbscm_initialize_exceptions): Set user_error_symbol.
7022 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7023
fb1f94b0
PM
70242014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7025
7026 * top.c (command_loop): Handle comments here...
7027 (command_line_input): ... not here.
7028
ded03782
DE
70292014-06-02 Doug Evans <xdje42@gmail.com>
7030
7031 Add progspace support for Guile.
7032 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7033 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7034 (scm-progspace.o): New rule.
7035 * guile/guile-internal.h (pspace_smob): New typedef.
7036 (psscm_pspace_smob_pretty_printers): Declare.
7037 (psscm_pspace_smob_from_pspace): Declare.
7038 (psscm_scm_from_pspace): Declare.
7039 * guile/guile.c (initialize_gdb_module): Call
7040 gdbscm_initialize_pspaces.
7041 * guile/lib/gdb.scm: Export progspace symbols.
7042 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7043 support.
7044 (append-pretty-printer!): Ditto.
7045 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7046 Implement.
7047 * guile/scm-progspace.c: New file.
7048
397998fc
AM
70492014-06-03 Alan Modra <amodra@gmail.com>
7050
7051 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7052 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7053
6aa5f3a6
DE
70542014-06-02 Doug Evans <dje@google.com>
7055
7056 Add support for skeletonless type units.
7057 * dwarf2read.c (struct dwarf2_per_objfile): New member
7058 n_allocated_type_units.
7059 (struct dwarf2_per_objfile) <tu_stats>: New member
7060 nr_all_type_units_reallocs.
7061 (create_signatured_type_table_from_index): Initialize
7062 n_allocated_type_units
7063 (create_all_type_units): Ditto.
7064 (add_type_unit): Move up in file. New arg slot.
7065 All callers updated. Increase space for all_type_units more
7066 efficiently.
7067 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7068 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7069 (lookup_dwp_signatured_type): Ditto.
7070 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7071 All callers updated.
7072 (build_type_psymtabs_1): Leave type_unit_groups as
7073 NULL if no TUs present.
7074 (print_tu_stats): New function.
7075 (process_skeletonless_type_unit): New function.
7076 (process_dwo_file_for_skeletonless_type_units): New
7077 function.
7078 (process_skeletonless_type_units): New function.
7079 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7080 Call print tu_stats if debugging enabled.
7081
41fac0cf
PA
70822014-06-02 Pedro Alves <palves@redhat.com>
7083
7084 * breakpoint.c (build_target_command_list): Don't build a command
7085 list if we have any duplicate location that isn't a dprintf.
7086
cd1608cc
PA
70872014-06-02 Pedro Alves <palves@redhat.com>
7088
7089 * breakpoint.c (dprintf_breakpoint_hit): New function.
7090 (initialize_breakpoint_ops): Install it as dprintf's
7091 breakpoint_hit method.
7092
486ef3b9
JB
70932014-06-02 Joel Brobecker <brobecker@adacore.com>
7094
7095 * source.c (substitute_path_rule_matches): Simplify using
7096 filename_ncmp instead of FILENAME_CMP.
7097
230cd560
JB
70982014-06-02 Joel Brobecker <brobecker@adacore.com>
7099
7100 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7101
16954d5d
LC
71022014-06-01 Ludovic Courtès <ludo@gnu.org>
7103
7104 * configure.ac: When Guile is available, check for the
7105 availability of 'scm_new_smob'.
7106 * configure, config.h.in: Regenerate.
7107 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7108 function.
7109
53e8a631
AB
71102014-05-30 Andrew Burgess <aburgess@broadcom.com>
7111
7112 * frame.c (struct frame_info): Add stop_string field.
7113 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7114 (get_prev_frame_always): Old content moved into
7115 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7116 TRY_CATCH, handle MEMORY_ERROR exceptions.
7117 (frame_stop_reason_string): New function definition.
7118 * frame.h (unwind_stop_reason_to_string): Extend comment to
7119 mention frame_stop_reason_string.
7120 (frame_stop_reason_string): New function declaration.
7121 * stack.c (frame_info): Switch to frame_stop_reason_string.
7122 (backtrace_command_1): Switch to frame_stop_reason_string.
7123 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7124 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7125 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7126
70e38b8e
AB
71272014-05-30 Andrew Burgess <aburgess@broadcom.com>
7128
7129 * frame.c (frame_stop_reason_string): Rename to ...
7130 (unwind_stop_reason_to_string): this.
7131 * frame.h (frame_stop_reason_string): Rename to ...
7132 (unwind_stop_reason_to_string): this.
7133 * stack.c (frame_info): Update call to frame_stop_reason_string.
7134 (backtrace_command_1): Likewise.
7135 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7136 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7137
938f0e2f
AB
71382014-05-30 Andrew Burgess <aburgess@broadcom.com>
7139
7140 * frame.c (remove_prev_frame): New function.
7141 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7142 remove_prev_frame.
7143
a09dd441
PA
71442014-05-29 Pedro Alves <palves@redhat.com>
7145
7146 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7147 and make it const. When a single-step decays to a continue,
7148 clear 'step', not 'hw_step'. Pass whether the caller wanted
7149 to step to user_visible_resume_ptid, not what we ask the
7150 target to do.
7151
bdc36728
PA
71522014-05-29 Pedro Alves <palves@redhat.com>
7153
7154 * infrun.c (process_event_stop_test, handle_step_into_function)
7155 (handle_step_into_function_backward): Adjust.
7156 Don't set the even thread's stop_step and call stop_waiting before
7157 calling end_stepping_range. Instead do that ...
7158 (end_stepping_range): ... here. Take an ecs pointer parameter.
7159
22bcd14b
PA
71602014-05-29 Pedro Alves <palves@redhat.com>
7161
7162 * infrun.c (stop_stepping): Rename to ...
7163 (stop_waiting): ... this.
7164 (proceed): Update comment.
7165 (process_event_stop_test, handle_inferior_event)
7166 (handle_signal_stop, handle_step_into_function)
7167 (handle_step_into_function_backward): Update.
7168
4ae57c05
PA
71692014-05-29 Pedro Alves <palves@redhat.com>
7170
7171 * infcall.c (run_inferior_call): Don't check whether the current
7172 thread is running after the proceed call.
7173
329ea579
PA
71742014-05-29 Pedro Alves <palves@redhat.com>
7175 Tom Tromey <tromey@redhat.com>
7176
7177 * NEWS: Mention "maint set target-async", "set mi-async", and that
7178 background execution commands are now always available.
7179 * target.h (target_async_permitted): Update comment.
7180 * target.c (target_async_permitted, target_async_permitted_1):
7181 Default to 1.
7182 (set_target_async_command): Rename to ...
7183 (maint_set_target_async_command): ... this.
7184 (show_target_async_command): Rename to ...
7185 (maint_show_target_async_command): ... this.
7186 (_initialize_target): Adjust.
7187 * infcmd.c (prepare_execution_command): Make extern.
7188 * inferior.h (prepare_execution_command): Declare.
7189 * infrun.c (set_observer_mode): Leave target async alone.
7190 * mi/mi-interp.c (mi_interpreter_init): Install
7191 mi_on_sync_execution_done as sync_execution_done observer.
7192 (mi_on_sync_execution_done): New function.
7193 (mi_execute_command_input_handler): Don't print the prompt if we
7194 just started a synchronous command with an async target.
7195 (mi_on_resume): Check sync_execution before printing prompt.
7196 * mi/mi-main.h (mi_async_p): Declare.
7197 * mi/mi-main.c: Include gdbcmd.h.
7198 (mi_async_p): New function.
7199 (mi_async, mi_async_1): New globals.
7200 (set_mi_async_command, show_mi_async_command, mi_async): New
7201 functions.
7202 (exec_continue): Call prepare_execution_command.
7203 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7204 (mi_execute_async_cli_command): Use mi_async_p.
7205 (_initialize_mi_main): Install "set mi-async". Make
7206 "target-async" a deprecated alias.
7207
92bcb5f9
PA
72082014-05-29 Pedro Alves <palves@redhat.com>
7209
7210 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7211 (_initialize_cli_interp): Adjust.
7212 * event-loop.c: Include "observer.h".
7213 (start_event_loop): Notify 'command_error' observers instead of
7214 calling display_gdb_prompt. Remove FIXME comment.
7215 * event-top.c (display_gdb_prompt): Remove call into the
7216 interpreters.
7217 * inf-loop.c: Include "observer.h".
7218 (inferior_event_handler): Notify 'command_error' observers instead
7219 of calling display_gdb_prompt.
7220 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7221 observers instead of calling display_gdb_prompt.
7222 * interps.c (interp_set): Don't call display_gdb_prompt.
7223 (current_interp_display_prompt_p): Delete.
7224 * interps.h (interp_prompt_p): Delete declaration.
7225 (interp_prompt_p_ftype): Delete.
7226 (struct interp_procs) <prompt_proc_p>: Delete field.
7227 (current_interp_display_prompt_p): Delete declaration.
7228 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7229 (_initialize_mi_interp): Adjust.
7230 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7231 'command_error' observers.
7232 (tui_on_sync_execution_done, tui_on_command_error): New
7233 functions.
7234 (tui_display_prompt_p): Delete.
7235 (_initialize_tui_interp): Adjust.
7236
fd664c91
PA
72372014-05-29 Pedro Alves <palves@redhat.com>
7238
7239 PR gdb/13860
7240 * cli/cli-interp.c: Include infrun.h and observer.h.
7241 (cli_uiout, cli_interp): New globals.
7242 (cli_on_signal_received, cli_on_end_stepping_range)
7243 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7244 functions.
7245 (cli_interpreter_init): Install them as 'end_stepping_range',
7246 'signal_received' 'signal_exited', 'exited' and 'no_history'
7247 observers.
7248 (_initialize_cli_interp): Remove cli_interp local.
7249 * infrun.c (handle_inferior_event): Call the several stop reason
7250 observers instead of printing the stop reason directly.
7251 (end_stepping_range): New function.
7252 (print_end_stepping_range_reason, print_signal_exited_reason)
7253 (print_exited_reason, print_signal_received_reason)
7254 (print_no_history_reason): Make static, and add an uiout
7255 parameter. Print to that instead of to CURRENT_UIOUT.
7256 * infrun.h (print_end_stepping_range_reason)
7257 (print_signal_exited_reason, print_exited_reason)
7258 (print_signal_received_reason print_no_history_reason): New
7259 declarations.
7260 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7261 'mi_uiout'.
7262 <cli_uiout>: New field.
7263 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7264 uiout for CLI output. Install 'signal_received',
7265 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7266 observers.
7267 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7268 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7269 (mi_on_no_history): New functions.
7270 (ui_out_free_cleanup): Delete function.
7271 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7272 instead use the one already stored in the MI interpreter data.
7273 (mi_ui_out): Adjust.
7274 * tui/tui-interp.c: Include infrun.h and observer.h.
7275 (tui_interp): New global.
7276 (tui_on_signal_received, tui_on_end_stepping_range)
7277 (tui_on_signal_exited, tui_on_exited)
7278 (tui_on_no_history): New functions.
7279 (tui_init): Install them as 'end_stepping_range',
7280 'signal_received' 'signal_exited', 'exited' and 'no_history'
7281 observers.
7282 (_initialize_tui_interp): Delete tui_interp local.
7283
8817a6f2
PA
72842014-05-29 Pedro Alves <palves@redhat.com>
7285
7286 PR gdb/15713
7287 * linux-nat.c (linux_nat_resume_callback): Rename the second
7288 parameter to 'except'. Skip LP if it points to EXCEPT.
7289 (linux_nat_resume): Don't mark the event lwp as not stopped
7290 before resuming sibling lwps. Instead ask
7291 linux_nat_resume_callback to skip the event lwp. Mark it as not
7292 stopped after actually resuming it.
7293 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7294 resuming it.
7295 (wait_lwp): Mark the lwp as stopped here.
7296 (stop_wait_callback): Mark the lwp as not stopped right after
7297 resuming it. Don't mark lwps as stopped here.
7298 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7299 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7300
251bde03
PA
73012014-05-29 Pedro Alves <palves@redhat.com>
7302
7303 PR PR15693
7304 * infrun.c (resume): Determine how much to resume depending on
7305 whether the caller wanted a step, not whether we can hardware step
7306 the target. Mark all threads that we intend to run as running,
7307 unless we're calling an inferior function.
7308 (normal_stop): If the thread is running an infcall, don't finish
7309 thread state.
7310 * target.c (target_resume): Don't mark threads as running here.
7311
7f3c0343
JB
73122014-05-28 Joel Brobecker <brobecker@adacore.com>
7313
7314 * serial.c (_initialize_serial): Remove support for
7315 the "set remotebaud" and "show remotebaud" commands.
7316 * NEWS: Add entry documenting the removal of that command.
7317
ee34b3f9
YQ
73182014-05-28 Yao Qi <yao@codesourcery.com>
7319
7320 * charset.c: Fix typo in comments.
7321
add6c04d
GB
73222014-05-27 Gary Benson <gbenson@redhat.com>
7323
7324 * utils.c (internal_vproblem): Prompt for a bug report.
7325
92c48fc5
AW
73262014-05-26 Andy Wingo <wingo@igalia.com>
7327
7328 * guile/scm-arch.c (arscm_mark_arch_smob):
7329 * guile/scm-block.c (bkscm_mark_block_smob)
7330 (bkscm_mark_block_syms_progress_smob):
7331 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7332 * guile/scm-exception.c (exscm_mark_exception_smob):
7333 * guile/scm-frame.c (frscm_mark_frame_smob):
7334 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7335 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7336 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7337 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7338 (ppscm_mark_pretty_printer_worker_smob):
7339 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7340 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7341 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7342 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7343 mark functions.
7344 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7345 function.
7346
b2715b27
AW
73472014-05-26 Andy Wingo <wingo@igalia.com>
7348 Doug Evans <xdje42@gmail.com>
7349
7350 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7351 empty_base_class. All uses updated.
7352 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7353 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7354 Adapt all callers.
7355 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7356 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7357 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7358 (gdbscm_gsmob_has_property_p, add_property_name)
7359 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7360 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7361 (gdb-object-has-property?, gdb-object-properties): Remove.
7362 (gdb-object-kind): Renamed from gsmob-kind.
7363
214ab2da
AW
73642014-05-26 Andy Wingo <wingo@igalia.com>
7365
7366 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7367 * configure: Regenerate.
7368
589fdceb
MM
73692014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7370
7371 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7372
67b5c0c1
MM
73732014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7374
7375 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7376 (replay_memory_access_read_only, replay_memory_access_read_write)
7377 (replay_memory_access_types, replay_memory_access)
7378 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7379 (cmd_set_record_btrace, cmd_show_record_btrace)
7380 (cmd_show_replay_memory_access): New.
7381 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7382 (record_btrace_remove_breakpoint): Replace
7383 record_btrace_allow_memory_access with replay_memory_access.
7384 (_initialize_record_btrace): Add commands.
7385 * NEWS: Announce it.
7386
036cd381
RR
73872014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7388
7389 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7390
c77c1e42
RR
73912014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7392
7393 * MAINTAINERS (Write After Approval): Move self back from
7394 paper trail.
7395
45741a9c
PA
73962014-05-22 Pedro Alves <palves@redhat.com>
7397
7398 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7399 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7400 (disable_randomization, enum exec_direction_kind)
7401 (execution_direction, stop_registers, start_remote)
7402 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7403 (wait_for_inferior, normal_stop, get_last_target_status)
7404 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7405 (insert_step_resume_breakpoint_at_sal)
7406 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7407 (set_step_info, print_stop_event, signal_stop_state)
7408 (signal_print_state, signal_pass_state, signal_stop_update)
7409 (signal_print_update, signal_pass_update)
7410 (update_signals_program_target, clear_exit_convenience_vars)
7411 (displaced_step_dump_bytes, update_observer_mode)
7412 (signal_catch_update, gdb_signal_from_command): Move
7413 declarations ...
7414 * infrun.h: ... to this new file.
7415 * amd64-tdep.c: Include infrun.h.
7416 * annotate.c: Include infrun.h.
7417 * arch-utils.c: Include infrun.h.
7418 * arm-linux-tdep.c: Include infrun.h.
7419 * arm-tdep.c: Include infrun.h.
7420 * break-catch-sig.c: Include infrun.h.
7421 * breakpoint.c: Include infrun.h.
7422 * common/agent.c: Include infrun.h instead of inferior.h.
7423 * corelow.c: Include infrun.h.
7424 * event-top.c: Include infrun.h.
7425 * go32-nat.c: Include infrun.h.
7426 * i386-tdep.c: Include infrun.h.
7427 * inf-loop.c: Include infrun.h.
7428 * infcall.c: Include infrun.h.
7429 * infcmd.c: Include infrun.h.
7430 * infrun.c: Include infrun.h.
7431 * linux-fork.c: Include infrun.h.
7432 * linux-nat.c: Include infrun.h.
7433 * linux-thread-db.c: Include infrun.h.
7434 * monitor.c: Include infrun.h.
7435 * nto-tdep.c: Include infrun.h.
7436 * procfs.c: Include infrun.h.
7437 * record-btrace.c: Include infrun.h.
7438 * record-full.c: Include infrun.h.
7439 * remote-m32r-sdi.c: Include infrun.h.
7440 * remote-mips.c: Include infrun.h.
7441 * remote-notif.c: Include infrun.h.
7442 * remote-sim.c: Include infrun.h.
7443 * remote.c: Include infrun.h.
7444 * reverse.c: Include infrun.h.
7445 * rs6000-tdep.c: Include infrun.h.
7446 * s390-linux-tdep.c: Include infrun.h.
7447 * solib-irix.c: Include infrun.h.
7448 * solib-osf.c: Include infrun.h.
7449 * solib-svr4.c: Include infrun.h.
7450 * target.c: Include infrun.h.
7451 * top.c: Include infrun.h.
7452 * windows-nat.c: Include infrun.h.
7453 * mi/mi-interp.c: Include infrun.h.
7454 * mi/mi-main.c: Include infrun.h.
7455 * python/py-threadevent.c: Include infrun.h.
7456
98eb56a4
PA
74572014-05-22 Pedro Alves <palves@redhat.com>
7458
7459 * infrun.c (handle_inferior_event): Store the exit code for
7460 --return-child-result here, instead of ...
7461 (print_exited_reason): ... here.
7462
17b2616c
PA
74632014-05-21 Pedro Alves <palves@redhat.com>
7464
7465 PR gdb/13860
7466 * gdbthread.h (struct thread_control_state): New field
7467 `command_interp'.
7468 * infrun.c (follow_fork): Copy the new thread control field to the
7469 child fork thread.
7470 (clear_proceed_status_thread): Clear the new thread control field.
7471 (proceed): Set the new thread control field.
7472 * interps.h (command_interp): Declare.
7473 * interps.c (command_interpreter): New global.
7474 (command_interp): New function.
7475 (interp_exec): Set `command_interpreter' while here.
7476 * cli-out.c (cli_uiout_dtor): New function.
7477 (cli_ui_out_impl): Install it.
7478 * mi/mi-interp.c: Include cli-out.h.
7479 (mi_cmd_interpreter_exec): Add comment.
7480 (restore_current_uiout_cleanup): New function.
7481 (ui_out_free_cleanup): New function.
7482 (mi_on_normal_stop): If finishing an execution command started by
7483 a CLI command, or any kind of breakpoint-like event triggered,
7484 print the stop event to the output (CLI) stream.
7485 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7486
5166082f
PA
74872014-05-21 Pedro Alves <palves@redhat.com>
7488
7489 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7490 current source line having changed.
7491 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7492 * infrun.c (normal_stop): Adjust call to
7493 set_current_sal_from_frame.
7494 * source.c (clear_lines_listed_range): New function.
7495 (set_current_source_symtab_and_line, identify_source_line): Clear
7496 the lines listed range.
7497 (line_info): Handle the first "info line" after the current source
7498 line having changed.
7499 * stack.c (print_stack_frame): Remove center handling.
7500 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7501 center sal.line.
7502
c1ee2fb3
PA
75032014-05-21 Pedro Alves <palves@redhat.com>
7504
7505 * inf-child.c (inf_child_mourn_inferior): New function.
7506 * inf-child.h (inf_child_mourn_inferior): New declaration.
7507 * darwin-nat.c (darwin_mourn_inferior): Use
7508 inf_child_mourn_inferior.
7509 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7510 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7511 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7512 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7513 * windows-nat.c (windows_mourn_inferior): Likewise.
7514
5c6d4fb2
DE
75152014-05-21 Doug Evans <xdje42@gmail.com>
7516
250748cb 7517 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7518
4a2722c5
DE
75192014-05-21 Doug Evans <xdje42@gmail.com>
7520
17292b30 7521 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7522 (gdbscm_out_of_range_error): Ditto.
7523 (gdbscm_memory_error): Ditto.
250748cb
DE
7524 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7525 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7526 (gdbscm_out_of_range_error): Update.
7527 (gdbscm_memory_error): Update.
7528 (gdbscm_scm_to_target_string_unsafe): Delete.
7529
6a3cb8e8
PA
75302014-05-21 Pedro Alves <palves@redhat.com>
7531
7532 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7533 globals.
7534 (inf_child_open_target): New function.
7535 (inf_child_open): Use inf_child_open_target to push the target
7536 instead of erroring out.
7537 (inf_child_disconnect, inf_child_close)
7538 (inf_child_maybe_unpush_target): New functions.
7539 (inf_child_target): Install inf_child_disconnect and
7540 inf_child_close. Store a pointer to the returned object.
7541 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7542 declarations.
7543 * target.c (auto_connect_native_target): New global.
7544 (show_default_run_target): New function.
7545 (find_default_run_target): Return NULL if automatically connecting
7546 to the native target is disabled.
7547 (_initialize_target): Install set/show auto-connect-native-target.
7548 * NEWS: Mention "set auto-connect-native-target", and "target
7549 native".
7550 * linux-nat.c (super_close): New global.
7551 (linux_nat_close): Call super_close.
7552 (linux_nat_add_target): Store a pointer to the base class's
7553 to_close method.
7554 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7555 inf_child_maybe_unpush.
7556 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7557 already pushed.
7558 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7559 the inferior. Use inf_child_maybe_unpush_target.
7560 (inf_ttrace_attach): Don't push the target if it is already
7561 pushed.
7562 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7563 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7564 after mourning the inferior. Use inf_child_maybe_unpush_target.
7565 (darwin_attach_pid): Don't push the target if it is already
7566 pushed.
7567 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7568 mourning the inferior. Use inf_child_maybe_unpush_target.
7569 (gnu_detach): Use inf_child_maybe_unpush_target.
7570 * go32-nat.c (go32_create_inferior): Don't push the target if it
7571 is already pushed.
7572 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7573 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7574 (procfs_open): Rename to ...
7575 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7576 comments. Can target_preopen before changing node. Call
7577 inf_child_open_target to push the target explicitly.
7578 (procfs_attach): Don't push the target if it is already pushed.
7579 (procfs_detach): Use inf_child_maybe_unpush_target.
7580 (procfs_create_inferior): Don't push the target if it is already
7581 pushed.
7582 (nto_native_ops): New global.
7583 (procfs_open): Reimplement.
7584 (procfs_native_open): New function.
7585 (init_procfs_targets): Install procfs_native_open as to_open of
7586 "target native". Store a pointer to the "native" target in
7587 nto_native_ops.
7588 * procfs.c (procfs_attach): Don't push the target if it is already
7589 pushed.
7590 (procfs_detach): Use inf_child_maybe_unpush_target.
7591 (procfs_mourn_inferior): Only unpush the target after mourning the
7592 inferior. Use inf_child_maybe_unpush_target.
7593 (procfs_init_inferior): Don't push the target if it is already
7594 pushed.
7595 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7596 if it is already pushed.
7597
930ee1b1
PA
75982014-05-21 Pedro Alves <palves@redhat.com>
7599
7600 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7601 and "procfs" targets are now called "native" instead.
7602
1f5d1b13
PA
76032014-05-21 Pedro Alves <palves@redhat.com>
7604
7605 * go32-nat.c (go32_open): Delete.
7606 (go32_target): Don't override the to_open method.
7607
132f8e03
PA
76082014-05-21 Pedro Alves <palves@redhat.com>
7609
7610 * nto-procfs.c (procfs_can_run): New function.
7611 (nto_procfs_ops): New global.
7612 (init_procfs_targets): New, based on procfs_target. Install
7613 "target native" in addition to "target procfs".
7614 (_initialize_procfs): Call init_procfs_targets instead of adding
7615 the target here.
7616
03c136c3
PA
76172014-05-21 Pedro Alves <palves@redhat.com>
7618
7619 * windows-nat.c (windows_target): Don't override to_shortname,
7620 to_longname or to_doc.
7621
a635d0f3
PA
76222014-05-21 Pedro Alves <palves@redhat.com>
7623
7624 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7625 to_doc.
7626
4f9b5133
PA
76272014-05-21 Pedro Alves <palves@redhat.com>
7628
7629 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7630 to_shortname, to_longname or to_doc.
7631
bc85afde
PA
76322014-05-21 Pedro Alves <palves@redhat.com>
7633
7634 * go32-nat.c (go32_target): Don't override to_shortname,
7635 to_longname or to_doc.
7636
4ebfc96e
PA
76372014-05-21 Pedro Alves <palves@redhat.com>
7638
7639 * inf-child.c (inf_child_open): Remove mention of "child".
7640 (inf_child_target): Rename target to "native" instead of "child".
7641
2648dfed
AA
76422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7643
7644 * Makefile.in (SFILES): Delete "regset.c".
7645 (COMMON_OBS): Delete "regset.o".
7646 * regset.c: Remove.
7647 * regset.h (regset_alloc): Delete prototype.
7648
b13feb94
AA
76492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7650
7651 * sparc-linux-tdep.c (sparc32_linux_gregset)
7652 (sparc32_linux_fpregset): New static regset structures.
7653 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7654 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7655 'fpregset' fields.
7656 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7657 (sparc64_linux_fpregset): New static regset structures.
7658 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7659 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7660 New static regset structures.
7661 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7662 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7663 New static regset structures.
7664 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7665 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7666 New static regset structures.
7667 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7668 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7669 New static regset structures.
7670 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7671
b4fd25c9
AA
76722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7673
7674 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7675 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7676 register maps ("regmaps") from "*regset" to "*regmap". Do this
7677 for all regmap types and variables.
7678 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7679 (sparc32_linux_supply_core_gregset)
7680 (sparc32_linux_collect_core_gregset)
7681 (sparc32_linux_supply_core_fpregset)
7682 (sparc32_linux_collect_core_fpregset): Likewise.
7683 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7684 (sparc_gregmap, sparc_fpregmap): ... these.
7685 (sparc_supply_gregset, sparc_collect_gregset)
7686 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7687 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7688 (_initialize_sparc_nat): Rename regmaps.
7689 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7690 (sparc_gregmap, sparc_fpregmap): ... these.
7691 (sparc_supply_gregset, sparc_collect_gregset)
7692 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7693 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7694 Rename macros to...
7695 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7696 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7697 Likewise.
7698 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7699 Rename to...
7700 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7701 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7702 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7703 regmaps.
7704 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7705 (sparc32_bsd_fpregset): Rename to...
7706 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7707 (sparc32_bsd_fpregmap): ... these.
7708 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7709 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7710 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7711 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7712 (struct sparc_gregmap, struct sparc_fpregmap)
7713 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7714 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7715 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7716 (sparc32_supply_regset, sparc32_collect_gregset)
7717 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7718 prototypes.
7719 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7720 (sparc64_linux_ptrace_gregmap): ... this.
7721 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7722 (_initialize_sparc64_linux_nat): Rename regmaps.
7723 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7724 (sparc64_linux_core_gregmap): ... this.
7725 (sparc64_linux_supply_core_gregset)
7726 (sparc64_linux_collect_core_gregset)
7727 (sparc64_linux_supply_core_fpregset)
7728 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7729 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7730 (sparc64_sol2_fpregset): Rename to...
7731 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7732 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7733 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7734 regmaps.
7735 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7736 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7737 (sparc64_bsd_fpregset): Rename to...
7738 (struct sparc_gregmap, sparc64_sol2_gregmap)
7739 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7740 (sparc64_bsd_fpregmap): ... these.
7741 (sparc64_supply_gregset, sparc64_collect_gregset)
7742 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7743 prototypes.
7744 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7745 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7746 (sparc64fbsd_gregmap): ... this.
7747 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7748 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7749 Rename regmaps.
7750 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7751 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7752 (sparc64nbsd_collect_fpregset): Likewise.
7753 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7754 (sparc64nbsd_gregmap): ... this.
7755 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7756 regmaps.
7757 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7758 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7759 (sparc64obsd_gregmap): ... this.
7760 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7761 regmaps.
7762 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7763 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7764 (sparc32nbsd_gregmap): ... this.
7765 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7766 regmaps.
7767
8fea3224
AA
77682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7769
7770 * score-tdep.c (score7_linux_gregset): New static regset
7771 structure.
7772 (score7_linux_regset_from_core_section): Remove dynamic regset
7773 allocation.
7774 (score_gdbarch_init): Drop allocation of tdep structure.
7775 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7776
24534243
AA
77772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7778
7779 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7780 regset structures.
7781 (am33_regset_from_core_section): Remove dynamic regset
7782 allocations.
7783
b7195f27
AA
77842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7785
7786 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7787 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7788 structures.
7789 (mips_linux_regset_from_core_section): Remove dynamic regset
7790 allocations.
7791 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7792 'gregset64', 'fpregset', and 'fpregset64'.
7793 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7794 deleted tdep fields.
7795
ecc37a5a
AA
77962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7797
7798 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7799 regset structures.
7800 (amd64_regset_from_core_section): Remove dynamic regset
7801 allocations.
7802 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7803 structure.
7804 (amd64obsd_regset_from_core_section): Remove dynamic regset
7805 allocation.
7806 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7807 Likewise.
7808 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7809 x86-common regset supply function.
7810 * i386-tdep.c (i386_collect_gregset): Make static.
7811 (i386_gregset): New global regset structure.
7812 (i386_fpregset, i386_xstateregset): New static regset structures.
7813 (i386_regset_from_core_section): Remove dynamic regset
7814 allocations.
7815 (i386_gdbarch_init): Remove initialization of tdep fields
7816 'gregset', 'fpregset', and 'xstateregset'.
7817 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7818 'fpregset', and 'xstateregset'.
7819 (i386_collect_gregset): Remove prototype.
7820 (i386_gregset): New declaration.
7821 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7822 structure.
7823 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7824 allocation.
7825
b7611c43
AA
78262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7827
7828 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7829 (arm_linux_vfpregset): New static regset structures.
7830 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7831 regset structures.
7832 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7833 and 'vfpregset' fields.
7834
a069a2bd
AA
78352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7836
7837 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7838 (aarch64_linux_fpregset): New static regset structures.
7839 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7840 of regset structures.
7841 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7842 'fpregset' fields.
7843
09424cff
AA
78442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7845
7846 * regset.h (struct regset): Remove gdbarch field.
7847 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7848 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7849 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7850 Likewise.
7851 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7852 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7853 (ppc32_linux_vsxregset): Likewise.
7854 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7855 via the regcache instead of the regset.
7856 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7857 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7858 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7859 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7860 Likewise.
7861
3ca7dae4
AA
78622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7863
7864 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7865 Constify structures.
7866 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7867 (alphanbsd_aout_gregset): Likewise.
7868 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7869 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7870 Likewise.
7871 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7872 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7873 Likewise.
7874 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7875 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7876 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7877 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7878 * m88k-tdep.c (m88k_gregset): Likewise.
7879 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7880 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7881 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7882 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7883 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7884 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7885 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7886 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7887 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7888 Likewise.
7889 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7890 * sh-tdep.h (sh_corefile_gregset): Likewise.
7891 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7892 * vax-tdep.c (vax_gregset): Likewise.
7893
5876f503
JK
78942014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7895
7896 Fix TLS access for -static -pthread.
7897 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7898 (try_thread_db_load_1): Initialize it.
7899 (thread_db_get_thread_local_address): Call it if LM is zero.
7900 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7901 * target.h (struct target_ops) (to_get_thread_local_address): Add
7902 load_module_addr comment.
7903
0256a6ac
PA
79042014-05-21 Pedro Alves <palves@redhat.com>
7905
7906 * dcache.c (dcache_read_memory_partial): If reading the cache line
7907 fails, fallback to reading just the memory the caller wanted.
7908
227533ac
DE
79092014-05-20 Doug Evans <dje@google.com>
7910
7911 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7912 instead of get_current_arch.
7913
936d2992
PA
79142014-05-20 Pedro Alves <palves@redhat.com>
7915
7916 * NEWS: Mention that compare-sections now works with all targets.
7917
7918 * remote.c (PACKET_qCRC): New enum value.
7919 (remote_verify_memory): Don't send qCRC if the target has no
7920 execution. Use packet_support/packet_ok. If the target doesn't
7921 support the qCRC packet, fallback to a deep memory copy.
7922 (compare_sections_command): Say "target image" instead of "remote
7923 executable".
7924 (_initialize_remote): Add PACKET_qCRC to the list of config
7925 packets that have no associated command. Extend comment.
7926 * target.c (simple_verify_memory, default_verify_memory): New
7927 function.
7928 * target.h (struct target_ops) <to_verify_memory>: Default to
7929 default_verify_memory.
7930 (simple_verify_memory): New declaration.
7931 * target-delegates.c: Regenerate.
7932
e59fa00f
MM
79332014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7934
7935 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7936
f2205de0
HZ
79372014-05-20 Hui Zhu <hui@codesourcery.com>
7938 Yao Qi <yao@codesourcery.com>
7939
7940 PR backtrace/16558
7941 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7942 and change address of sp and pc.
7943
c4e54771
TT
79442014-05-19 Tom Tromey <tromey@redhat.com>
7945
7946 * gdbtypes.c (rank_function): Use XNEWVEC.
7947 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7948
73051182
DE
79492014-05-19 Doug Evans <dje@google.com>
7950
7951 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7952 build_type_unit_groups and moved closer to only caller. Remove
7953 arguments. All references updated. Remove outdated .gdb_index
7954 comment.
7955 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7956 build_type_psymtabs_1.
7957
8832e7e3
DE
79582014-05-19 Doug Evans <dje@google.com>
7959
7960 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7961 n_type_unit_groups, all_type_unit_groups. All uses removed.
7962 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7963 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7964 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7965 (add_type_unit_group_to_table): Delete.
7966
cd8ae15e
DE
79672014-05-19 Doug Evans <dje@google.com>
7968
7969 * eval.c (evaluate_subexp_standard): Add some comments.
7970
08f4850b
DE
79712014-05-17 Doug Evans <xdje42@gmail.com>
7972
7973 * progspace.c (remove_program_space): Delete, unused.
7974 * progspace.h (remove_program_space): Ditto.
7975
bed8455c
DE
79762014-05-17 Doug Evans <xdje42@gmail.com>
7977
7978 * inferior.c (prune_inferiors): Fix comment.
7979 (remove_inferior_command): Call prune_program_spaces.
7980
8d551b02
DE
79812014-05-16 Doug Evans <dje@google.com>
7982
7983 New command line option -D.
7984 * NEWS: Mention it.
7985 * main.c (set_gdb_data_directory): New function.
7986 (captured_main): Recognize -D. Flag error for --data-directory "".
7987 Call set_gdb_data_directory.
7988 (print_gdb_help): Print --data-directory, -D.
7989 * main.h (set_gdb_data_directory): Declare.
7990 * top.c (staged_gdb_datadir): New static global.
7991 (set_gdb_datadir): Call set_gdb_data_directory
7992 (show_gdb_datadir): New function.
7993 (init_main): Update init of data-directory parameter.
7994
18848e28
GF
79952014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7996
7997 Import the "dirfd" gnulib module.
7998 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7999 * gnulib/aclocal.m4: Update.
8000 * gnulib/config.in: Update.
8001 * gnulib/configure: Update.
8002 * gnulib/import/Makefile.am: Update.
8003 * gnulib/import/Makefile.in: Update.
8004 * gnulib/import/dirfd.c: New.
8005 * gnulib/import/m4/dirfd.m4: New.
8006 * gnulib/import/m4/gnulib-cache.m4: Update.
8007 * gnulib/import/m4/gnulib-comp.m4: Update.
8008
95c64f92
YQ
80092014-05-16 Pierre Muller <muller@sourceware.org>
8010 Yao Qi <yao@codesourcery.com>
8011
8012 * valprint.c (print_wchar): Move the code on checking whether
8013 W is a printable wide char to the default branch of switch
8014 statement below. Call wchar_printable instead of gdb_iswprint.
8015
cac395ea
TM
80162014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8017
19679eca 8018 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8019 ldr.w and ldrd instructions.
8020
83655187
DE
80212014-05-15 Doug Evans <dje@google.com>
8022
8023 * dwarf2read.c (read_structure_type): Delete outdated comments.
8024
dd756689
TT
80252014-05-14 Tom Tromey <tromey@redhat.com>
8026
8027 * macrocmd.c (print_macro_definition): Reindent.
8028
75ddda77
DE
80292014-05-13 Doug Evans <xdje42@gmail.com>
8030
8031 * python/py-cmd.c (cmdpy_completer): Add comment.
8032 (completers): Make const.
8033
b0f16a3e
SM
80342014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8035
8036 * infrun.c (resume): Remove should_resume (unused). Move up
8037 declaration of resume_ptid.
8038
033c3379
TT
80392014-05-13 Tom Tromey <tromey@redhat.com>
8040
8041 * language.h (unop_type_check): Remove.
8042 (binop_type_check): Don't declare.
8043
9b44a3a5
AA
80442014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8045
8046 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8047 call to regcache_raw_collect.
8048
303a33fa
SM
80492014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8050
8051 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8052 mi_console->quote as the quoting character.
8053
196100a0
SM
80542014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8055
8056 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8057
f989a1c8
TT
80582014-04-29 Tom Tromey <tromey@redhat.com>
8059
8060 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8061 "show debug varobj".
8062
9404b58f
KM
80632014-05-07 Kyle McMartin <kyle@redhat.com>
8064
8065 Pushed by Joel Brobecker <brobecker@adacore.com>.
8066 * aarch64-tdep.c (aarch64_software_single_step): New function.
8067 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8068 with aarch64_software_single_step.
8069
5e49ba57
JB
80702014-05-05 Joel Brobecker <brobecker@adacore.com>
8071
8072 GDB 7.7.1 released.
8073
c888a17d
KS
80742014-05-05 Keith Seitz <keiths@redhat.com>
8075
8076 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8077 variable or history value is successfully parsed.
8078
290a839c
YQ
80792014-05-05 Yao Qi <yao@codesourcery.com>
8080 Pedro Alves <palves@redhat.com>
8081
8082 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8083 address of blocks that intersects the requested range. Trim
8084 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8085 sections.
8086 * ctf.c (ctf_xfer_partial): Likewise.
8087
91256dc2
YQ
80882014-05-05 Yao Qi <yao@codesourcery.com>
8089
8090 * printcmd.c (display_command): Remove the check to
8091 target_has_execution.
8092
07284463
MK
80932014-05-03 Mark Kettenis <kettenis@gnu.org>
8094
8095 * ppcobsd-nat.c: Include "obsd-nat.h".
8096 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8097 add_target.
8098 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8099
30a1e6cc
SDJ
81002014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8101
8102 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8103 and 16-bit signed and unsigned arguments. Update comment.
8104 (stap_parse_probe_arguments): Extend code to handle such
8105 arguments. Use warning instead of complaint to notify about
8106 unrecognized bitness.
8107
f33da99a
SDJ
81082014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8109
8110 PR breakpoints/16889
8111 * stap-probe.c (stap_parse_probe_arguments): Simplify
8112 check for non-prefixed probes (i.e., probes whose
8113 arguments do not start with "N@"). Always set the
8114 argument type to a sane value.
8115
95cf3b38
DT
81162014-05-01 David Taylor <dtaylor@emc.com>
8117
8118 * remote.c (compare_sections_command): Add -r option to compare
8119 all loadable read-only sections.
8120
1cfdf534
SC
81212014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8122
8123 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8124 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8125 Update all callers.
8126 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8127 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8128 Remove unused CORE_ADDR argument. Update all callers.
8129
ca4f7f8b
PA
81302014-04-29 Pedro Alves <palves@redhat.com>
8131
8132 * remote.c (struct packet_config) <detect>: Extend comment.
8133 (add_packet_config_cmd): Don't set the config's detect or support
8134 fields here.
8135 (init_all_packet_configs): Also initialize the config's 'detect'
8136 field.
8137 (reset_all_packet_configs_support): New function.
8138 (remote_open_1): Call reset_all_packet_configs_support instead of
8139 init_all_packet_configs.
8140 (_initialize_remote): Initialize all packet configs. Assert that
8141 all packets have an associated command, except a few known
8142 outliers.
8143
11c1ba78
JB
81442014-04-28 Joel Brobecker <brobecker@adacore.com>
8145
8146 * dwarf2read.c (read_subrange_type): Handle dynamic
8147 DW_AT_lower_bound attributes.
8148
8739bc53
JB
81492014-04-28 Joel Brobecker <brobecker@adacore.com>
8150
8151 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8152 dynamic bounds before computing its upper bound.
8153 (ada_discrete_type_low_bound): Same as above with the lower bound.
8154
6f8a3220
JB
81552014-04-28 Joel Brobecker <brobecker@adacore.com>
8156
8157 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8158 range types. Adjust the array handling implementation to
8159 take advantage of this change.
8160 (resolve_dynamic_range): New function, mostly extracted from
8161 resolve_dynamic_bounds.
8162 (resolve_dynamic_array): New function, mostly extracted from
8163 resolve_dynamic_bounds.
8164 (resolve_dynamic_bounds): Delete.
8165 (resolve_dynamic_type): Reimplement. Add handling of
8166 TYPE_CODE_RANGE types.
8167
4d072ce4
JB
81682014-04-28 Joel Brobecker <brobecker@adacore.com>
8169
8170 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8171 handling of parallel ___XA types.
8172
52865325
JB
81732014-04-28 Joel Brobecker <brobecker@adacore.com>
8174
8175 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8176 unnecessary second call to static_unwrap_type.
8177
433e77fa
HZ
81782014-04-27 Hui Zhu <hui@codesourcery.com>
8179
8180 * stack.c (print_frame_info): Call do_gdb_disassembly with
8181 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8182
b51a69ee
DE
81832014-04-26 Doug Evans <xdje42@gmail.com>
8184
8185 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8186
7ae1a6a6
PA
81872014-04-25 Pedro Alves <palves@redhat.com>
8188
8189 PR server/16255
8190 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8191 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8192 and newline from built string.
8193 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8194 (linux_ptrace_attach_fail_reason): ... this.
8195 * linux-nat.c (linux_nat_attach): Adjust to use
8196 linux_ptrace_attach_fail_reason.
8197
4082afcc
PA
81982014-04-25 Pedro Alves <palves@redhat.com>
8199
8200 * remote.c (struct remote_state): Remove multi_process_aware,
8201 non_stop_aware, cond_tracepoints, cond_breakpoints,
8202 breakpoint_commands, fast_tracepoints, static_tracepoints,
8203 install_in_trace, disconnected_tracing,
8204 enable_disable_tracepoints, string_tracing, and
8205 augmented_libraries_svr4_read fields.
8206 (remote_multi_process_p): Move further below in the file.
8207 (struct packet_config): Add comments.
8208 (update_packet_config): Delete function.
8209 (show_packet_config_cmd): Use packet_config_support.
8210 (add_packet_config_cmd): Use NULL as set callback.
8211 (packet_ok): "set remote foo-packet"-style commands no longer
8212 change config->supported -- adjust.
8213 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8214 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8215 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8216 (PACKET_QNonStop, PACKET_multiprocess_feature)
8217 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8218 (PACKET_DisconnectedTracing_feature)
8219 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8220 (set_remote_protocol_packet_cmd): Delete function.
8221 (packet_config_support, packet_support): New functions.
8222 (set_remote_protocol_Z_packet_cmd): Don't call
8223 update_packet_config.
8224 (remote_query_attached, remote_pass_signals)
8225 (remote_program_signals, remote_threads_info)
8226 (remote_threads_extra_info, remote_start_remote): Use
8227 packet_support.
8228 (remote_start_remote): Use packet_config_support and
8229 packet_support.
8230 (init_all_packet_configs): Set all packets to unknown support,
8231 instead of calling update_packet_config.
8232 (remote_check_symbols): Use packet_support.
8233 (remote_supported_packet): Unconditionally set the packet config's
8234 support status.
8235 (remote_multi_process_feature, remote_non_stop_feature)
8236 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8237 (remote_breakpoint_commands_feature)
8238 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8239 (remote_install_in_trace_feature)
8240 (remote_disconnected_tracing_feature)
8241 (remote_enable_disable_tracepoint_feature)
8242 (remote_string_tracing_feature)
8243 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8244 (remote_protocol_features): Adjust to use remote_supported_packet
8245 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8246 "ConditionalTracepoints", "ConditionalBreakpoints",
8247 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8248 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8249 "EnableDisableTracepoints", and "tracenz".
8250 (remote_query_supported): Use packet_support.
8251 (remote_open_1): Adjust.
8252 (extended_remote_attach_1): Use packet_support. Switch on the
8253 result of packet_ok instead of checking whether the packet ended
8254 up disabled.
8255 (remote_vcont_resume): Use packet_support.
8256 (remote_resume, remote_stop_ns, fetch_register_using_p)
8257 (remote_prepare_to_store, store_register_using_P)
8258 (check_binary_download, remote_write_bytes): Use packet_support.
8259 (remote_vkill): Use packet_support. Switch on the result of
8260 packet_ok instead of checking whether the packet ended up
8261 disabled.
8262 (extended_remote_supports_disable_randomization): Use
8263 packet_support.
8264 (extended_remote_run): Switch on the result of packet_ok instead
8265 of checking whether the packet ended up disabled.
8266 (remote_insert_breakpoint, remote_remove_breakpoint)
8267 (remote_insert_watchpoint, remote_remove_watchpoint)
8268 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8269 packet_support.
8270 (remote_search_memory): Use packet_config_support.
8271 (remote_get_thread_local_address, remote_get_tib_address)
8272 (remote_hostio_send_command, remote_can_execute_reverse): Use
8273 packet_support.
8274 (remote_supports_cond_tracepoints)
8275 (remote_supports_cond_breakpoints)
8276 (remote_supports_fast_tracepoints)
8277 (remote_supports_static_tracepoints)
8278 (remote_supports_install_in_trace)
8279 (remote_supports_enable_disable_tracepoint)
8280 (remote_supports_string_tracing)
8281 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8282 the packet config says the feature is enabled or disabled.
8283 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8284 (remote_get_trace_status): Use packet_support.
8285 (remote_set_disconnected_tracing): Adjust to check whether the
8286 feature is enabled with packet_support.
8287 (remote_set_trace_buffer_size, remote_use_agent)
8288 (remote_can_use_agent, remote_supports_btrace): Use
8289 packet_support.
8290 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8291 Use packet_config_support.
8292 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8293 the packet config says the feature is enabled or disabled.
8294 (set_range_stepping): Use packet_support.
8295
bdb52a22
TT
82962014-04-25 Tom Tromey <tromey@redhat.com>
8297
8298 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8299 argument.
8300
e9475ead
SA
83012014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8302
8303 * NEWS: Mention support for C99 variable length arrays.
8304
82eacd52
JB
83052014-04-24 Joel Brobecker <brobecker@adacore.com>
8306
8307 * ada-lang.c (standard_exc): Expand introductory comment.
8308
01f9f808
MS
83092014-04-24 Michael Sturm <michael.sturm@mintel.com>
8310 Walfred Tedeschi <walfred.tedeschi@intel.com>
8311
8312 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8313 AVX512 registers.
8314 (amd64_linux_read_description): Add code to handle AVX512 xstate
8315 mask and return respective tdesc.
8316 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8317 and features/i386/x32-avx512-linux.c.
8318 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8319 (amd64_linux_core_read_description): Add code to handle AVX512
8320 xstate mask and return respective tdesc.
8321 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8322 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8323 calculation.
8324 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8325 (tdesc_amd64_avx512_linux): New prototype.
8326 (tdesc_x32_avx512_linux): Likewise.
8327 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8328 features/i386/x32-avx512.c.
8329 (amd64_ymm_avx512_names): New register names for pseudo
8330 registers YMM16-31.
8331 (amd64_ymmh_avx512_names): New register names for raw registers
8332 YMMH16-31.
8333 (amd64_k_names): New register names for K registers.
8334 (amd64_zmmh_names): New register names for ZMM raw registers.
8335 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8336 (amd64_xmm_avx512_names): New register names for XMM16-31
8337 registers.
8338 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8339 registers.
8340 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8341 if feature is present.
8342 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8343 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8344 (AMD64_NUM_REGS): Adjust to new number of registers.
8345 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8346 registers supplied via XSTATE by AVX512 registers.
8347 (i386_linux_read_description): Add case for AVX512.
8348 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8349 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8350 (i386_linux_core_read_description): Add case for AVX512.
8351 (i386_linux_init_abi): Install supported register note section
8352 for AVX512.
8353 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8354 AVX512.
8355 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8356 registers to be number of zmm7h + 1.
8357 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8358 * i386-tdep.c: Include features/i386/i386-avx512.c.
8359 (i386_zmm_names): Add ZMM pseudo register names array.
8360 (i386_zmmh_names): Add ZMM raw register names array.
8361 (i386_k_names): Add K raw register names array.
8362 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8363 registers. AVX512 has 16 more ZMM registers than there are YMM
8364 registers.
8365 (i386_zmmh_regnum_p): Add function to look up register number of
8366 ZMM raw registers.
8367 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8368 (i386_k_regnum_p): Likewise for K raw registers.
8369 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8370 registers added by AVX512.
8371 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8372 registers added by AVX512.
8373 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8374 added by AVX512.
8375 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8376 (i386_pseudo_register_name): Add ZMM pseudo registers.
8377 (i386_zmm_type): Construct and return vector registers type for ZMM
8378 registers.
8379 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8380 ZMM0-31 pseudo registers and K registers.
8381 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8382 and YMM16-31 registers from register cache.
8383 (i386_pseudo_register_write): Add code to write K, ZMM and
8384 YMM16-31 registers.
8385 (i386_register_reggroup_p): Add code to include/exclude AVX512
8386 registers in/from respective register groups.
8387 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8388 registers if feature is present in xcr0.
8389 (i386_gdbarch_init): Add code to initialize AVX512 feature
8390 variables in tdep structure, wire in pseudo registers and call
8391 initialize_tdesc_i386_avx512.
8392 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8393 variables.
8394 (i386_regnum): Add AVX512 registers.
8395 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8396 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8397 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8398 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8399 512 bits wide.
8400 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8401 (i386_ymm_avx512_regnum_p): Likewise.
8402 (i386_k_regnum_p): Likewise.
8403 (i386_zmm_regnum_p): Likewise.
8404 (i386_zmmh_regnum_p): Likewise.
8405 * i387-tdep.c : Update year in copyright notice.
8406 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8407 XSAVE buffer.
8408 (XSAVE_YMM_AVX512_ADDR): New macro.
8409 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8410 XSAVE buffer.
8411 (XSAVE_XMM_AVX512_ADDR): New macro.
8412 (xsave_avx512_k_offset): New table for K register offsets in
8413 XSAVE buffer.
8414 (XSAVE_AVX512_K_ADDR): New macro.
8415 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8416 in XSAVE buffer.
8417 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8418 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8419 buffer.
8420 (i387_collect_xsave): Add code to collect AVX512 registers from
8421 XSAVE buffer.
8422 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8423 of XMM16-31 registers.
8424 (I387_NUM_K_REGS): New define for number of K registers.
8425 (I387_K0_REGNUM): New define for K0 register number.
8426 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8427 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8428 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8429 registers.
8430 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8431 (I387_XMM16_REGNUM): New define for XMM16 register number.
8432 (I387_YMM0_REGNUM): New define for YMM0 register number.
8433 (I387_KEND_REGNUM): New define for last K register number.
8434 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8435 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8436 number.
8437 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8438 number.
8439 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8440 size.
8441 * features/Makefile: Add AVX512 related files.
8442 * features/i386/32bit-avx512.xml: New file.
8443 * features/i386/64bit-avx512.xml: Likewise.
8444 * features/i386/amd64-avx512-linux.c: Likewise.
8445 * features/i386/amd64-avx512-linux.xml: Likewise.
8446 * features/i386/amd64-avx512.c: Likewise.
8447 * features/i386/amd64-avx512.xml: Likewise.
8448 * features/i386/i386-avx512-linux.c: Likewise.
8449 * features/i386/i386-avx512-linux.xml: Likewise.
8450 * features/i386/i386-avx512.c: Likewise.
8451 * features/i386/i386-avx512.xml: Likewise.
8452 * features/i386/x32-avx512-linux.c: Likewise.
8453 * features/i386/x32-avx512-linux.xml: Likewise.
8454 * features/i386/x32-avx512.c: Likewise.
8455 * features/i386/x32-avx512.xml: Likewise.
8456 * regformats/i386/amd64-avx512-linux.dat: New file.
8457 * regformats/i386/amd64-avx512.dat: Likewise.
8458 * regformats/i386/i386-avx512-linux.dat: Likewise.
8459 * regformats/i386/i386-avx512.dat: Likewise.
8460 * regformats/i386/x32-avx512-linux.dat: Likewise.
8461 * regformats/i386/x32-avx512.dat: Likewise.
8462 * NEWS: Add note about new support for AVX512.
8463
8464
08351840
PA
84652014-04-23 Pedro Alves <palves@redhat.com>
8466
8467 * breakpoint.c (insert_bp_location): Tolerate errors if the
8468 breakpoint is set in a user-loaded objfile.
8469 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8470 location is marked shlib_disabled. If the breakpoint is set in a
8471 user-loaded objfile is a GDB-side memory breakpoint, validate it
8472 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8473 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8474 flag.
8475 * mem-break.c (memory_validate_breakpoint): New function.
8476 * objfiles.c (userloaded_objfile_contains_address_p): New
8477 function.
8478 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8479 * target.h (memory_validate_breakpoint): New declaration.
8480
076855f9
PA
84812014-04-23 Pedro Alves <palves@redhat.com>
8482
8483 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8484 the breakpoint is set in a shared library, only suppress
8485 errors for software breakpoints, not hardware breakpoints.
8486
483805cf
PA
84872014-04-22 Pedro Alves <palves@redhat.com>
8488
8489 * infrun.c (schedlock_applies): New function, factored out from
8490 find_thread_needs_step_over.
8491 (find_thread_needs_step_over): Use it.
8492 (switch_back_to_stepped_thread): Always clear trap_expected if the
8493 step over is finished. Return early if scheduler locking applies.
8494 Look for the stepping thread and a potential step-over thread with
8495 a single loop.
8496 (currently_stepping_or_nexting_callback): Delete.
8497
a75fef0e
NC
84982014-04-22 Nick Clifton <nickc@redhat.com>
8499
8500 * NEWS: Mention that ARM sim now supports tracing.
8501
48b6e87e
YQ
85022014-04-22 Yao Qi <yao@codesourcery.com>
8503
8504 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8505 to ...
8506 * tracefile.c (tracefile_fetch_registers): ... it. New
8507 function.
8508 * tracefile.h (tracefile_fetch_registers): Declare.
8509 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8510 tracefile_fetch_registers.
8511
17617f2d
EZ
85122014-04-19 Eli Zaretskii <eliz@gnu.org>
8513
8514 PR gdb/14018
8515 * windows-nat.c (thread_rec): Don't display a warning when
8516 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8517 fails for any reason, set th->suspended to -1, so that we don't
8518 try to resume such a thread. Also, don't return NULL in these
8519 cases, to avoid completely ruin the session due to "PC register is
8520 not available" error.
8521 (do_windows_fetch_inferior_registers): Check errors in
8522 GetThreadContext call.
8523 (windows_continue): Accept an additional argument KILLED; if not
8524 zero, ignore errors in the SetThreadContext call, since the
8525 inferior was killed and is shutting down.
8526 (windows_resume, get_windows_debug_event)
8527 (windows_create_inferior, windows_mourn_inferior)
8528 (windows_kill_inferior): All callers of windows_continue changed
8529 to adjust to its new calling sequence.
8530
5723a6fd
YQ
85312014-04-19 Yao Qi <yao@codesourcery.com>
8532
8533 * ctf.c (ctf_open): Call post_create_inferior.
8534
614d5099
YQ
85352014-04-19 Yao Qi <yao@codesourcery.com>
8536
8537 * ctf.c (handle_id): New static variable.
8538 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8539 value. Get the declaration of event "register" and get length
8540 of field "contents".
8541
dac3e710
YQ
85422014-04-19 Yao Qi <yao@codesourcery.com>
8543
8544 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8545
2bca57ba
SC
85462014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8547
8548 * valops.c (oload_method_static): Remove unnecessary argument
8549 METHOD. Update all callers.
8550
51d48146
PA
85512014-04-18 Pedro alves <palves@redhat.com>
8552 Tom Tromey <tromey@redhat.com>
8553
8554 PR backtrace/15558
8555 * frame.c (get_prev_frame_1): Rename to ...
8556 (get_prev_frame_always): ... this, and make extern. Adjust.
8557 (skip_artificial_frames): Use get_prev_frame_always.
8558 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8559 (get_frame_unwind_stop_reason): Adjust to rename.
8560 * frame.h (get_prev_frame_always): Declare.
8561 * inline-frame.c: Include frame.h.
8562 (inline_frame_this_id): Use get_prev_frame_always.
8563
1bdad2e0
TG
85642014-04-18 Tristan Gingold <gingold@adacore.com>
8565
8566 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8567 code by using bfd_mach_o_get_base_address.
8568
7ce16bd4
UW
85692014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8570
8571 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8572 (spu_ax_pseudo_register_collect): New function.
8573 (spu_ax_pseudo_register_push_stack): Likewise.
8574 (spu_dwarf_reg_to_regnum): Likewise.
8575 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8576
2ed3c037
UW
85772014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8578
8579 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8580 Replace FRAME argument with FRAME_ID.
8581 * gdbarch.c, gdbarch.h: Regenerate.
8582 * findvar.c (default_value_from_register): Add GDBARCH argument;
8583 replace FRAME by FRAME_ID. No longer call get_frame_id.
8584 (value_from_register): Update call to gdbarch_value_from_register.
8585 * value.h (default_value_from_register): Update prototype.
8586 * s390-linux-tdep.c (s390_value_from_register): Update interface
8587 and call to default_value_from_register.
8588 * spu-tdep.c (spu_value_from_register): Likewise.
8589
8590 * findvar.c (address_from_register): Remove TYPE argument.
8591 Do not call value_from_register; use gdbarch_value_from_register
8592 with null_frame_id instead.
8593 * value.h (address_from_register): Update prototype.
8594 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8595 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8596 address_from_register interface change.
8597
71e50e83
YQ
85982014-04-17 Yao Qi <yao@codesourcery.com>
8599
8600 * gdbtypes.h: Update comments to link to types and macros'
8601 definitions.
8602
7a23c549
SC
86032014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8604
8605 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8606
22869d73
KS
86072014-04-16 Keith Seitz <keiths@redhat.com>
8608
8609 PR gdb/15827
8610 * dwarf2read.c (skip_one_die): Check that all relative-offset
8611 sibling DIEs fall within range of the current reader's buffer.
8612 (read_partial_die): Likewise.
8613
c4f87ca6
KS
86142014-04-16 Keith Seitz <keiths@redhat.com>
8615
8616 PR c++/16597
8617 * cp-namespace.c (lookup_symbol_file): If the type name of
8618 `this' is NULL, return immediately.
8619
b50c8614
KS
86202014-04-14 Keith Seitz <keiths@redhat.com>
8621
8622 PR c++/16253
8623 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8624 from symbol_matches_domain in symtab.c. All local callers
8625 of symbol_matches_domain updated.
8626 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8627 search STRUCT_DOMAIN.
8628 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8629 independently. standard_lookup will do that automatically.
8630 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8631 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8632 (cp_lookup_symbol_in_namespace): Likewise.
8633 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8634 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8635 may return a STRUCT_DOMAIN match.
8636 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8637 * cp-support.c: Include language.h.
8638 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8639 VAR_DOMAIN.
8640 * psymtab.c (match_partial_symbol): Compare the requested
8641 domain with the symbol's domain directly.
8642 (lookup_partial_symbol): Likewise.
8643 * symtab.c (lookup_symbol_in_language): Explain when/why
8644 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8645 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8646 appropriate languages.
8647 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8648 and moved to ada-lang.c
8649 (lookup_block_symbol): Explain that this function only returns
8650 symbol matching the requested DOMAIN.
8651 Compare the requested domain with the symbol's domain directly.
8652 (iterate_over_symbols): Compare the requested domain with the
8653 symbol's domain directly.
8654 * symtab.h (symbol_matches_domain): Remove.
8655
3d567982
TT
86562014-04-14 Tom Tromey <tromey@redhat.com>
8657
8658 PR c++/15246:
8659 * c-exp.y (type_aggregate_p): New function.
8660 (qualified_name, classify_inner_name): Use it.
8661 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8662 and TYPE_TARGET_TYPE of an enum type.
8663 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8664 an enum type.
8665 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8666 handle TYPE_DECLARED_CLASS.
8667 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8668 types.
8669 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8670 * valops.c (enum_constant_from_type): New function.
8671 (value_aggregate_elt): Use it.
8672 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8673 TYPE_CODE_ENUM.
8674
c848d642
TT
86752014-04-14 Tom Tromey <tromey@redhat.com>
8676
8677 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8678 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8679 const.
8680 * value.h (value_aggregate_elt): Update.
8681
0626fc76
TT
86822014-04-14 Tom Tromey <tromey@redhat.com>
8683
8684 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8685
5ecaaa66
SA
86862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8687
8688 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8689 (evaluate_subexp_standard): Pass noside argument.
8690 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8691 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8692 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8693 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8694 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8695
1612e0c0
SA
86962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8697
8698 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8699 points to a constant blob.
8700
c451ebe5
SA
87012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8702
8703 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8704 property and store it as the high bound and flag the range accordingly.
8705 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8706 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8707 * gdbtypes.h (enum range_flags): New enum.
8708 (struct range_bounds): Add flags member.
8709
1d42e4c4
SA
87102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8711
8712 * c-typeprint.c (c_type_print_varspec_suffix): Added
8713 check for not yet resolved high bound. If unresolved, print
8714 "variable length" string to the console instead of random
8715 length.
8716
9f1f738a
SA
87172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8718
8719 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8720 value.
8721 (ada_template_to_fixed_record_type_1): Likewise.
8722 (ada_to_fixed_type_1): Likewise.
8723 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8724 (cp_print_value): Likewise.
8725 * d-valprint.c (dynamic_array_type): Likewise.
8726 * findvar.c (address_of_variable): Likewise.
8727 * jv-valprint.c (java_value_print): Likewise.
8728 * valops.c (value_ind): Likewise.
8729 * value.c (coerce_ref): Likewise.
8730
3c8452d4
SA
87312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8732
8733 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8734 value and retrieve the dynamic type size.
8735
4ad88275
SA
87362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8737
8738 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8739 passed to sizeof is dynamic evaluate the argument to compute the length.
8740
80180f79
SA
87412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8742 Joel Brobecker <brobecker@adacore.com>
8743
8744 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8745 (dwarf2_evaluate_property): New function.
8746 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8747 * dwarf2read.c (attr_to_dynamic_prop): New function.
8748 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8749 attribute.
8750 * gdbtypes.c: Include dwarf2loc.h.
8751 (is_dynamic_type): New function.
8752 (resolve_dynamic_type): New function.
8753 (resolve_dynamic_bounds): New function.
8754 (get_type_length): New function.
8755 (check_typedef): Use get_type_length to compute type length.
8756 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8757 (TYPE_LOW_BOUND_KIND): New macro.
8758 (is_dynamic_type): New function prototype.
8759 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8760 to resolve dynamic properties of the type. Update comment.
8761 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8762
a1556843
RH
87632014-04-14 Richard Henderson <rth@redhat.com>
8764
8765 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8766
0be03e84
DE
87672014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8768 Doug Evans <xdje42@gmail.com>
8769
8770 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8771 dereference TYPE_CODE_REF values.
8772
6b662e19
JB
87732014-04-11 Joel Brobecker <brobecker@adacore.com>
8774
8775 Revert the following changes due to regressions:
8776
8777 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8778 (dwarf2_evaluate_property): New function.
8779 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8780 * dwarf2read.c (attr_to_dynamic_prop): New function.
8781 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8782 attribute.
8783 * gdbtypes.c: Include dwarf2loc.h.
8784 (is_dynamic_type): New function.
8785 (resolve_dynamic_type): New function.
8786 (resolve_dynamic_bounds): New function.
8787 (get_type_length): New function.
8788 (check_typedef): Use get_type_length to compute type length.
8789 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8790 (TYPE_LOW_BOUND_KIND): New macro.
8791 (is_dynamic_type): New function prototype.
8792 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8793 to resolve dynamic properties of the type. Update comment.
8794 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8795
8796 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8797 passed to sizeof is dynamic evaluate the argument to compute the length.
8798
8799 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8800 value and retrieve the dynamic type size.
8801
8802 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8803 (ada_template_to_fixed_record_type_1): Likewise.
8804 (ada_to_fixed_type_1): Likewise.
8805 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8806 (cp_print_value): Likewise.
8807 * d-valprint.c (dynamic_array_type): Likewise.
8808 * eval.c (evaluate_subexp_with_coercion): Likewise.
8809 * findvar.c (address_of_variable): Likewise.
8810 * jv-valprint.c (java_value_print): Likewise.
8811 * valops.c (value_ind): Likewise.
8812 * value.c (coerce_ref): Likewise.
8813
8814 * c-typeprint.c (c_type_print_varspec_suffix): Added
8815 check for not yet resolved high bound. If unresolved, print
8816 "variable length" string to the console instead of random
8817 length.
8818
8819 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8820 property and store it as the high bound and flag the range accordingly.
8821 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8822 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8823 * gdbtypes.h (enum range_flags): New enum.
8824 (struct range_bounds): Add flags member.
8825
8826 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8827 points to a constant blob.
8828
8829 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8830 (evaluate_subexp_standard): Pass noside argument.
8831 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8832 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8833 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8834 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8835 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8836
245a5f0b
KS
88372014-04-11 Keith Seitz <keiths@redhat.com>
8838
8839 PR c++/16675
8840 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8841 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8842 reference types.
8843
3bce8237
SA
88442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8845
8846 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8847 (evaluate_subexp_standard): Pass noside argument.
8848 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8849 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8850 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8851 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8852 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8853
92b09522
SA
88542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8855
8856 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8857 points to a constant blob.
8858
e1969afb
SA
88592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8860
8861 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8862 property and store it as the high bound and flag the range accordingly.
8863 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8864 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8865 * gdbtypes.h (enum range_flags): New enum.
8866 (struct range_bounds): Add flags member.
8867
b86138fb
SA
88682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8869
8870 * c-typeprint.c (c_type_print_varspec_suffix): Added
8871 check for not yet resolved high bound. If unresolved, print
8872 "variable length" string to the console instead of random
8873 length.
8874
bcd629a4
SA
88752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8876
8877 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8878 (ada_template_to_fixed_record_type_1): Likewise.
8879 (ada_to_fixed_type_1): Likewise.
8880 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8881 (cp_print_value): Likewise.
8882 * d-valprint.c (dynamic_array_type): Likewise.
8883 * eval.c (evaluate_subexp_with_coercion): Likewise.
8884 * findvar.c (address_of_variable): Likewise.
8885 * jv-valprint.c (java_value_print): Likewise.
8886 * valops.c (value_ind): Likewise.
8887 * value.c (coerce_ref): Likewise.
8888
04b19544
SA
88892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8890
8891 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8892 value and retrieve the dynamic type size.
8893
26cb189f
SA
88942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8895
8896 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8897 passed to sizeof is dynamic evaluate the argument to compute the length.
8898
37c1ab67
SA
88992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8900
8901 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8902 (dwarf2_evaluate_property): New function.
8903 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8904 * dwarf2read.c (attr_to_dynamic_prop): New function.
8905 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8906 attribute.
8907 * gdbtypes.c: Include dwarf2loc.h.
8908 (is_dynamic_type): New function.
8909 (resolve_dynamic_type): New function.
8910 (resolve_dynamic_bounds): New function.
8911 (get_type_length): New function.
8912 (check_typedef): Use get_type_length to compute type length.
8913 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8914 (TYPE_LOW_BOUND_KIND): New macro.
8915 (is_dynamic_type): New function prototype.
8916 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8917 to resolve dynamic properties of the type. Update comment.
8918 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8919
729efb13
SA
89202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8921
8922 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8923 declaring high/low bounds and change uses accordingly. Call
8924 create_range_type instead of create_static_range_type.
8925 * gdbtypes.c (create_range_type): New function.
8926 (create_range_type): Convert bounds into struct bound_prop and pass
8927 them to create_range_type.
8928 * gdbtypes.h (struct bound_prop): New struct.
8929 (create_range_type): New function prototype.
8930 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8931 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8932 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8933 part of the bound.
8934 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8935
0c9c3474
SA
89362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8937
8938 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8939 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8940 * ada-lang.c: All uses of create_range_type updated.
8941 * coffread.c: All uses of create_range_type updated.
8942 * dwarf2read.c: All uses of create_range_type updated.
8943 * f-exp.y: All uses of create_range_type updated.
8944 * m2-valprint.c: All uses of create_range_type updated.
8945 * mdebugread.c: All uses of create_range_type updated.
8946 * stabsread.c: All uses of create_range_type updated.
8947 * valops.c: All uses of create_range_type updated.
8948 * valprint.c: All uses of create_range_type updated.
8949
9d497a19
PA
89502014-04-10 Pedro Alves <palves@redhat.com>
8951
8952 * breakpoint.c (single_step_breakpoints)
8953 (single_step_gdbarch): Move up in the file.
8954 (one_breakpoint_xfer_memory): New function, factored out from ...
8955 (breakpoint_xfer_memory): ... here. Also process single-step
8956 breakpoints.
8957
15a9128a
TG
89582014-04-09 Tristan Gingold <gingold@adacore.com>
8959
8960 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8961 comments.
8962 (darwin_decode_exception_message): Free port only after use.
8963
9c97a070
PL
89642014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8965
8966 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8967 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8968 when setting the size of call_length.
8969
7af389b8
SC
89702014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8971
8972 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8973 dereference TYPE_CODE_REF values.
8974
86ad98c3
JB
89752014-04-07 Joel Brobecker <brobecker@adacore.com>
8976
8977 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8978 end of warning message.
8979
b0aeadb3
DE
89802014-04-03 Doug Evans <dje@google.com>
8981
8982 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8983 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8984
5979d6b6
AM
89852014-04-02 Alan Modra <amodra@gmail.com>
8986
8987 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8988 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8989 (struct symbol_file_add_from_memory_args): Add size field.
8990 (find_vdso_size): New function.
8991 (add_vsyscall_page): Attempt to find vdso size.
8992
0d60c288
DE
89932014-04-01 Doug Evans <dje@google.com>
8994
8995 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8996
a41f2563
TG
89972014-04-01 Tristan Gingold <gingold@adacore.com>
8998
8999 * darwin-nat.c (darwin_encode_reply): Add prototype.
9000 (darwin_decode_exception_message): Reply to unknown inferiors.
9001 (darwin_decode_message): Handle message by id. Ignore message
9002 to unknown inferior.
9003 (darwin_wait): Discard unknown messages, add debug trace.
9004
11a865c8
DE
90052014-03-31 Doug Evans <dje@google.com>
9006
9007 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9008 comp_dir_string.
9009
770e7fc7
DE
90102014-03-31 Doug Evans <dje@google.com>
9011
9012 New option "set print symbol-loading".
9013 * NEWS: Mention it.
9014 * solib.c (solib_read_symbols): Only print symbol loading messages
9015 if requested.
9016 (solib_add): If symbol loading is in "brief" mode, notify user
9017 symbols are being loaded.
9018 (reload_shared_libraries_1): Ditto.
9019 * symfile.c (print_symbol_loading_off): New static global.
9020 (print_symbol_loading_brief): New static global.
9021 (print_symbol_loading_full): New static global.
9022 (print_symbol_loading_enums): New static global.
9023 (print_symbol_loading): New static global.
9024 (print_symbol_loading_p): New function.
9025 (symbol_file_add_with_addrs): Only print symbol loading messages
9026 if requested.
9027 (_initialize_symfile): Register "print symbol-loading" set/show
9028 command.
9029 * symfile.h (print_symbol_loading_p): Declare.
9030
c32c64b7
DE
90312014-03-30 Doug Evans <xdje42@gmail.com>
9032
9033 * infrun.c (set_last_target_status): New function.
9034 (handle_inferior_event): Call it.
9035
7c0bc051
DE
90362014-03-30 Doug Evans <xdje42@gmail.com>
9037
9038 * inferior.h (enum stop_kind): Improve comment.
9039
8776cfe9
JB
90402014-03-28 Joel Brobecker <brobecker@adacore.com>
9041
9042 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9043 a reference, strip the reference layer before calling
9044 the lang_ops value_has_mutated callback.
9045
410a0ff2
SDJ
90462014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9047
9048 Remove some globals from our parser.
9049 * language.c (unk_lang_parser): Add "struct parser_state"
9050 argument.
9051 * language.h (struct language_defn) <la_parser>: Likewise.
9052 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9053 (initialize_expout): Add "struct parser_state" argument.
9054 Rewrite function to use the parser state.
9055 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9056 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9057 write_exp_elt_longcst, write_exp_elt_dblcst,
9058 write_exp_elt_decfloatcst, write_exp_elt_type,
9059 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9060 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9061 write_dollar_variable): Likewise.
9062 (parse_exp_in_context_1): Use parser state.
9063 (insert_type_address_space): Add "struct parser_state" argument.
9064 Use parser state.
9065 (increase_expout_size): New function.
9066 * parser-defs.h: Forward declare "struct language_defn" and
9067 "struct parser_state".
9068 (expout, expout_size, expout_ptr): Remove extern declarations.
9069 (parse_gdbarch, parse_language): Rewrite macro declarations to
9070 accept the parser state.
9071 (struct parser_state): New struct.
9072 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9073 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9074 write_exp_elt_decfloatcst, write_exp_elt_type,
9075 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9076 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9077 write_exp_msymbol, write_dollar_variable,
9078 mark_struct_expression, insert_type_address_space): Add "struct
9079 parser_state" argument.
9080 (increase_expout_size): New function.
9081 * utils.c (do_clear_parser_state): New function.
9082 (make_cleanup_clear_parser_state): Likewise.
9083 * utils.h (make_cleanup_clear_parser_state): New function
9084 prototype.
9085 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9086 Update calls to write_exp* in order to pass the parser state.
9087 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9088 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9089 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9090 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9091 * stap-probe.c (stap_parse_register_operand): Likewise.
9092 (stap_parse_single_operand): Likewise.
9093 (stap_parse_argument_1): Likewise.
9094 (stap_parse_argument): Use parser state.
9095 * stap-probe.h: Include "parser-defs.h".
9096 (struct stap_parse_info) <pstate>: New field.
9097 * c-exp.y (parse_type): Rewrite to use parser state.
9098 (yyparse): Redefine to c_parse_internal.
9099 (pstate): New global variable.
9100 (parse_number): Add "struct parser_state" argument.
9101 (write_destructor_name): Likewise.
9102 (type_exp): Update calls to write_exp* and similars in order to
9103 use parser state.
9104 (exp1, exp, variable, qualified_name, space_identifier,
9105 typename, typebase): Likewise.
9106 (write_destructor_name, parse_number, lex_one_token,
9107 classify_name, classify_inner_name, c_parse): Add "struct
9108 parser_state" argument. Update function to use parser state.
9109 * c-lang.h: Forward declare "struct parser_state".
9110 (c_parse): Add "struct parser_state" argument.
9111 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9112 (yyparse): Redefine macro to ada_parse_internal.
9113 (pstate): New variable.
9114 (write_int, write_object_renaming, write_var_or_type,
9115 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9116 type_int, type_long, type_long_long, type_float, type_double,
9117 type_long_double, type_char, type_boolean, type_system_address):
9118 Add "struct parser_state" argument.
9119 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9120 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9121 var_or_type, aggregate, aggregate_component_list,
9122 positional_list, others, component_group,
9123 component_associations): Update calls to write_exp* and similar
9124 functions in order to use parser state.
9125 (ada_parse, write_var_from_sym, write_int,
9126 write_exp_op_with_string, write_object_renaming,
9127 find_primitive_type, write_selectors, write_ambiguous_var,
9128 write_var_or_type, write_name_assoc, type_int, type_long,
9129 type_long_long, type_float, type_double, type_long_double,
9130 type_char, type_boolean, type_system_address): Add "struct
9131 parser_state" argument. Adjust function to use parser state.
9132 * ada-lang.c (parse): Likewise.
9133 * ada-lang.h: Forward declare "struct parser_state".
9134 (ada_parse): Add "struct parser_state" argument.
9135 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9136 calls to both functions.
9137 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9138 parser state.
9139 (yyparse): Redefine macro to f_parse_internal.
9140 (pstate): New variable.
9141 (parse_number): Add "struct parser_state" argument.
9142 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9143 and similars in order to use parser state.
9144 (parse_number): Adjust code to use parser state.
9145 (yylex): Likewise.
9146 (f_parse): New function.
9147 * f-lang.h: Forward declare "struct parser_state".
9148 (f_parse): Add "struct parser_state" argument.
9149 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9150 parser state.
9151 (yyparse): Redefine macro for java_parse_internal.
9152 (pstate): New variable.
9153 (push_expression_name, push_expression_name, insert_exp): Add
9154 "struct parser_state" argument.
9155 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9156 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9157 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9158 PostIncrementExpression, PostDecrementExpression,
9159 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9160 UnaryExpressionNotPlusMinus, CastExpression,
9161 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9162 RelationalExpression, EqualityExpression, AndExpression,
9163 ExclusiveOrExpression, InclusiveOrExpression,
9164 ConditionalAndExpression, ConditionalOrExpression,
9165 ConditionalExpression, Assignment, LeftHandSide): Update
9166 calls to write_exp* and similars in order to use parser state.
9167 (parse_number): Ajust code to use parser state.
9168 (yylex): Likewise.
9169 (java_parse): New function.
9170 (push_variable): Add "struct parser_state" argument. Adjust
9171 code to user parser state.
9172 (push_fieldnames, push_qualified_expression_name,
9173 push_expression_name, insert_exp): Likewise.
9174 * jv-lang.h: Forward declare "struct parser_state".
9175 (java_parse): Add "struct parser_state" argument.
9176 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9177 parser state.
9178 (yyparse): Redefine macro to m2_parse_internal.
9179 (pstate): New variable.
9180 (type_exp, exp, fblock, variable, type): Update calls to
9181 write_exp* and similars to use parser state.
9182 (yylex): Likewise.
9183 (m2_parse): New function.
9184 * m2-lang.h: Forward declare "struct parser_state".
9185 (m2_parse): Add "struct parser_state" argument.
9186 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9187 * objc-lang.h: Forward declare "struct parser_state".
9188 (end_msglist): Add "struct parser_state" argument.
9189 * p-exp.y (parse_type): Rewrite macro to use parser state.
9190 (yyparse): Redefine macro to pascal_parse_internal.
9191 (pstate): New variable.
9192 (parse_number): Add "struct parser_state" argument.
9193 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9194 write_exp* and similars in order to use parser state.
9195 (parse_number, yylex): Adjust code to use parser state.
9196 (pascal_parse): New function.
9197 * p-lang.h: Forward declare "struct parser_state".
9198 (pascal_parse): Add "struct parser_state" argument.
9199 * go-exp.y (parse_type): Rewrite macro to use parser state.
9200 (yyparse): Redefine macro to go_parse_internal.
9201 (pstate): New variable.
9202 (parse_number): Add "struct parser_state" argument.
9203 (type_exp, exp1, exp, variable, type): Update calls to
9204 write_exp* and similars in order to use parser state.
9205 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9206 to use parser state.
9207 (go_parse): Likewise.
9208 * go-lang.h: Forward declare "struct parser_state".
9209 (go_parse): Add "struct parser_state" argument.
9210
342587c4
DE
92112014-03-27 Doug Evans <dje@google.com>
9212
9213 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9214
33e80786
DE
92152014-03-27 Doug Evans <dje@google.com>
9216
9217 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9218 Remove argument abbrev_section. All callers updated.
9219
1dbab08b
DE
92202014-03-27 Doug Evans <dje@google.com>
9221
9222 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9223 addr_base, ranges_base.
9224
318d3177
KS
92252014-03-26 Keith Seitz <keiths@redhat.com>
9226
9227 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9228 types, not VAR_DOMAIN.
9229
1e54db15
SL
92302014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9231
9232 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9233 "ra" registers.
9234 * features/nios2-linux.c: Regenerated.
9235 * features/nios2.c: Regenerated.
9236
d3839ede
PA
92372014-03-25 Pedro Alves <palves@redhat.com>
9238
9239 * cli/cli-script.c (script_from_file): Force the interpreter to
9240 sync mode.
9241
7588d2ec
PL
92422014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9243
9244 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9245 small stack allocation.
9246
a6290449
TG
92472014-03-24 Tristan Gingold <gingold@adacore.com>
9248
9249 * darwin-nat.c (exc_server): Remove unused prototype.
9250 (darwin_dump_message): Correctly display data on x86_64.
9251 (darwin_encode_reply): Fix style.
9252 Add comments and fix indentation.
9253
31ae9d24 92542014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9255
9256 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9257
6339bfc4
DE
92582014-03-22 Doug Evans <xdje42@gmail.com>
9259
9260 * infcmd.c: Whitespace fixes.
9261 (interrupt_command): Merge two function comments into one.
9262
0a07590b
DE
92632014-03-22 Doug Evans <xdje42@gmail.com>
9264
9265 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9266 All uses updated.
9267
b55fbac4
YQ
92682014-03-22 Yao Qi <yao@codesourcery.com>
9269
9270 * remote.c (target_read_live_memory): Remove.
9271 (memory_xfer_live_readonly_partial): Rename it to
9272 remote_xfer_live_readonly_partial. Remove argument 'object'.
9273 All callers updated. Call remote_read_bytes_1
9274 instead of target_read_live_memory.
9275 * tracepoint.c (set_traceframe_number): Remove.
9276 (make_cleanup_restore_traceframe_number): Likewise .
9277 * tracepoint.h (set_traceframe_number): Remove declaration.
9278 (make_cleanup_restore_traceframe_number): Likewise.
9279
9217e74e
YQ
92802014-03-22 Yao Qi <yao@codesourcery.com>
9281
9282 * remote.c (remote_read_bytes): Move code on reading from the
9283 remote stub to ...
9284 (remote_read_bytes_1): ... here. New function.
9285
8acf9577
YQ
92862014-03-22 Yao Qi <yao@codesourcery.com>
9287
9288 * ctf.c (ctf_xfer_partial): Check the return value of
9289 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9290 return TARGET_XFER_UNAVAILABLE.
9291 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9292 * target.c (target_read_live_memory): Move it to remote.c.
9293 (memory_xfer_live_readonly_partial): Likewise.
9294 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9295 * remote.c (target_read_live_memory): Moved from target.c.
9296 (memory_xfer_live_readonly_partial): Likewise.
9297 (remote_read_bytes): Factored out from
9298 memory_xfer_partial_1.
9299
feef67ab
DE
93002014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9301
9302 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9303 NULL pointer.
9304
b65dc60b
PA
93052014-03-21 Pedro Alves <palves@redhat.com>
9306
9307 * infrun.c (normal_stop): Extend comment.
9308
b4ab256d
HZ
93092014-03-21 Hui Zhu <hui@codesourcery.com>
9310 Pedro Alves <palves@redhat.com>
9311
9312 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9313 static buffer.
9314 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9315 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9316 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9317
deba7593
MR
93182014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9319
9320 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9321 `z' formatted output modifier.
9322
1bff71c3
SDJ
93232014-03-20 Tom Tromey <tromey@redhat.com>
9324 Sergio Durigan Junior <sergiodj@redhat.com>
9325
9326 * probe.c (parse_probes): Turn assert into an ordinary error.
9327 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9328 exceptions when parsing probes. Rearrange the code for clarity.
9329
90e28950
TT
93302014-03-20 Tom Tromey <tromey@redhat.com>
9331
9332 PR gdb/14135
9333 * top.c (execute_command): Only dispatch events if the command
9334 started the target.
9335
beb460e8
PA
93362014-03-20 Tom Tromey <tromey@redhat.com>
9337
9338 PR cli/15718
9339 * infcall.c: Include event-top.h.
9340 (run_inferior_call): Call async_disable_stdin if needed.
9341
99619bea
PA
93422014-03-20 Pedro Alves <palves@redhat.com>
9343
9344 * infrun.c (prepare_to_proceed): Delete.
9345 (thread_still_needs_step_over): New function.
9346 (find_thread_needs_step_over): New function.
9347 (proceed): If the current thread needs a step-over, set its
9348 steping_over_breakpoint flag. Adjust to use
9349 find_thread_needs_step_over instead of prepare_to_proceed.
9350 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9351 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9352 breakpoint.
9353 (switch_back_to_stepped_thread): Step over breakpoints of all
9354 threads not the stepping thread, before switching back to the
9355 stepping thread.
9356
2adfaa28
PA
93572014-03-20 Pedro Alves <palves@redhat.com>
9358
9359 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9360 extern.
9361 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9362 * infrun.c (saved_singlestep_ptid)
9363 (stepping_past_singlestep_breakpoint): Delete.
9364 (resume): Remove stepping_past_singlestep_breakpoint handling.
9365 (proceed): Store the prev_pc of the stepping thread too.
9366 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9367 singlestep_pc.
9368 (enum infwait_states): Delete infwait_thread_hop_state.
9369 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9370 field.
9371 (handle_inferior_event): Adjust.
9372 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9373 handling and the thread-hop code. Before removing single-step
9374 breakpoints, check whether the thread hit a single-step breakpoint
9375 of another thread. If it did, the trap is not a random signal.
9376 (switch_back_to_stepped_thread): If the event thread hit a
9377 single-step breakpoint, unblock it before switching to the
9378 stepping thread. Handle the case of the stepped thread having
9379 advanced already.
9380 (keep_going): Handle the case of the current thread moving past a
9381 single-step breakpoint.
9382
31e77af2
PA
93832014-03-20 Pedro Alves <palves@redhat.com>
9384
9385 PR breakpoints/7143
9386 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9387 are being stepped over.
9388 (breakpoint_address_match): Make extern.
9389 * breakpoint.h (breakpoint_address_match): New declaration.
9390 * inferior.h (stepping_past_instruction_at): New declaration.
9391 * infrun.c (struct step_over_info): New type.
9392 (step_over_info): New global.
9393 (set_step_over_info, clear_step_over_info)
9394 (stepping_past_instruction_at): New functions.
9395 (handle_inferior_event): Clear the step-over info when
9396 trap_expected is cleared.
9397 (resume): Remove now stale comment.
9398 (clear_proceed_status): Clear step-over info.
9399 (proceed): Adjust step-over handling to set or clear the step-over
9400 info instead of removing all breakpoints.
9401 (handle_signal_stop): When setting up a thread-hop, don't remove
9402 breakpoints here.
9403 (stop_stepping): Clear step-over info.
9404 (keep_going): Adjust step-over handling to set or clear step-over
9405 info and then always inserting breakpoints, instead of removing
9406 all breakpoints when stepping over one.
9407
b9f437de
PA
94082014-03-20 Pedro Alves <palves@redhat.com>
9409
9410 * infrun.c (previous_inferior_ptid): Adjust comment.
9411 (deferred_step_ptid): Delete.
9412 (infrun_thread_ptid_changed, prepare_to_proceed)
9413 (init_wait_for_inferior): Adjust.
9414 (handle_signal_stop): Delete deferred_step_ptid handling.
9415
06c868a8
JK
94162014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9417
9418 PR gdb/15358
9419 * defs.h (sync_quit_force_run): New declaration.
9420 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9421 * event-top.c (async_sigterm_handler): New declaration.
9422 (async_sigterm_token): New variable.
9423 (async_init_signals): Create also async_sigterm_token.
9424 (async_sigterm_handler): New function.
9425 (sync_quit_force_run): New variable.
9426 (handle_sigterm): Replace quit_force call by other calls.
9427 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9428
dea80df0
MR
94292014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9430
9431 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9432 offset into SPE pseudo registers.
9433
0c7e1a46
PA
94342014-03-18 Pedro Alves <palves@redhat.com>
9435
9436 PR gdb/13860
9437 * inferior.h (print_stop_event): Declare.
9438 * infrun.c (print_stop_event): New, factored out from ...
9439 (normal_stop): ... this.
9440 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9441 of bpstat_print/print_stack_frame.
9442
9c1fcd01
TT
94432014-03-17 Tom Tromey <tromey@redhat.com>
9444
9445 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9446
11aa919a
PMR
94472014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9448
9449 * ada-lang.c (decode_constrained_packed_array): Perform a
9450 minimal coercion for reference with coerce_ref instead of
9451 ada_coerce_ref.
9452
d4ccb5e0
TG
94532014-03-17 Tristan Gingold <gingold@adacore.com>
9454
9455 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9456 (darwin_solib_create_inferior_hook): Emit a warning if version
9457 is unhandled.
9458
49840f2a
UW
94592014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9460
9461 * python/py-value.c (get_field_flag): Cast flag_name argument to
9462 PyObject_GetAttrString to support Python 2.4.
9463
ed4123e5
JK
94642014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9467 (Global Maintainers): Remove Jan Kratochvil.
9468
d6b64346
PA
94692014-03-14 Pedro Alves <palves@redhat.com>
9470
9471 * inferior.h (terminal_ours_for_output): Rename to ...
9472 (child_terminal_ours_for_output): ... this.
9473 (terminal_save_ours): Rename to ...
9474 (child_terminal_save_ours): ... this.
9475 (terminal_ours): Rename to ...
9476 (child_terminal_ours): ... this.
9477 (terminal_inferior): Rename to ...
9478 (child_terminal_inferior): ... this.
9479 (terminal_init_inferior): Rename to ...
9480 (child_terminal_init_inferior): ... this.
9481 (terminal_init_inferior_with_pgrp): Rename to ...
9482 (child_terminal_init_inferior_with_pgrp): ... this.
9483 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9484 (child_terminal_init_with_pgrp): ... this.
9485 (terminal_save_ours): Rename to ...
9486 (child_terminal_save_ours): ... this.
9487 (terminal_init_inferior): Rename to ...
9488 (child_terminal_init): ... this. Adjust.
9489 (terminal_inferior): Rename to ...
9490 (child_terminal_inferior): ... this.
9491 (terminal_ours_for_output): Rename to ...
9492 (child_terminal_ours_for_output): ... this. Adjust.
9493 (terminal_ours): Rename to ...
9494 (child_terminal_ours): ... this.
9495 (terminal_ours_1): Rename to ...
9496 (child_terminal_ours_1): ... this. Adjust.
9497 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9498 * windows-nat.c (do_initial_windows_stuff): Adjust.
9499 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9500 (gnu_terminal_init): ... this. Adjust.
9501 (gnu_target): Adjust.
9502 * inf-child.c (inf_child_target): Adjust.
9503
5a1e8c7a
DE
95042014-03-13 Doug Evans <xdje42@gmail.com>
9505
9506 PR guile/16612
9507 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9508 new eq?-hashtab.
9509
350e1a76
DE
95102014-03-13 Doug Evans <xdje42@gmail.com>
9511
9512 * value.c (record_latest_value): Call release_value_or_incref
9513 instead of release_value.
9514
a69900ae
PA
95152014-03-13 Pedro Alves <palves@redhat.com>
9516
9517 * procfs.c (procfs_target): Don't override to_shortname,
9518 to_longname or to_doc.
9519
5db9f0bd
PA
95202014-03-13 Pedro Alves <palves@redhat.com>
9521
9522 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9523 Unix in user visible strings.
9524
5e3a2c38
SS
95252014-03-12 Stan Shebs <stan@codesourcery.com>
9526
9527 * gdbtypes.h: Annotate comments for Doxygen, add a page
9528 block comment with some general info.
9529
8bc2fe48
PA
95302014-03-12 Pedro Alves <palves@redhat.com>
9531
9532 * infcmd.c (prepare_execution_command): New function, factored out
9533 from several execution commands.
9534 (run_command_1, continue_command, step_1, jump_command)
9535 (signal_command, until_command, advance_command, finish_command)
9536 (attach_command): Use prepare_execution_command.
9537
638c5f49
OJ
95382014-03-12 Omair Javaid <omair.javaid@linaro.org>
9539
9540 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9541 (MAX_BPTS): Define.
9542 (MAX_WPTS): Define.
9543 (struct arm_linux_thread_points): Removed.
9544 (struct arm_linux_process_info): New.
9545 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9546 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9547 (arm_linux_find_breakpoints_by_tid): Removed.
9548 (struct arch_lwp_info): New.
9549 (arm_linux_find_process_pid): New functions.
9550 (arm_linux_add_process): New functions.
9551 (arm_linux_process_info_get): New functions.
9552 (arm_linux_forget_process): New function.
9553 (arm_linux_get_debug_reg_state): New function.
9554 (struct update_registers_data): New.
9555 (update_registers_callback): New function.
9556 (arm_linux_insert_hw_breakpoint1): Updated.
9557 (arm_linux_remove_hw_breakpoint1): Updated.
9558 (arm_linux_insert_hw_breakpoint): Updated.
9559 (arm_linux_remove_hw_breakpoint): Updated.
9560 (arm_linux_insert_watchpoint): Updated.
9561 (arm_linux_remove_watchpoint): Updated.
9562 (arm_linux_new_thread): Updated.
9563 (arm_linux_prepare_to_resume): New function.
9564 (arm_linux_new_fork): New function.
9565 (_initialize_arm_linux_nat): Updated.
9566
6d03af93
PA
95672014-03-12 Pedro Alves <palves@redhat.com>
9568
9569 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9570
b3ccfe11
TT
95712014-03-12 Tom Tromey <tromey@redhat.com>
9572
9573 * inf-child.c (return_zero): New function.
9574 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9575 * aix-thread.c (aix_thread_inferior_created): New function.
9576 (aix_thread_attach): Remove.
9577 (init_aix_thread_ops): Don't set to_attach.
9578 (_initialize_aix_thread): Register inferior_created observer.
9579 * corelow.c (init_core_ops): Don't set to_attach or
9580 to_create_inferior.
9581 * exec.c (init_exec_ops): Don't set to_attach or
9582 to_create_inferior.
9583 * infcmd.c (run_command_1): Use find_run_target. Make direct
9584 target calls.
9585 (attach_command): Use find_attach_target. Make direct target
9586 calls.
9587 * record-btrace.c (init_record_btrace_ops): Don't set
9588 to_create_inferior.
9589 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9590 Remove.
9591 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9592 set to_create_inferior.
9593 * target.c (complete_target_initialization): Add assertion.
9594 (target_create_inferior): Remove.
9595 (find_default_attach, find_default_create_inferior): Remove.
9596 (find_attach_target, find_run_target): New functions.
9597 (find_default_is_async_p, find_default_can_async_p)
9598 (target_supports_non_stop, target_attach): Remove.
9599 (init_dummy_target): Don't set to_create_inferior or
9600 to_supports_non_stop.
9601 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9602 TARGET_DEFAULT_FUNC.
9603 <to_create_inferior>: Add comment.
9604 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9605 TARGET_DEFAULT_RETURN.
9606 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9607 (find_attach_target, find_run_target): Declare.
9608 (target_create_inferior): Remove.
9609 (target_has_execution_1): Update comment.
9610 (target_supports_non_stop): Remove.
9611 * target-delegates.c: Rebuild.
9612
91f83b02
PA
96132014-03-12 Pedro Alves <palves@redhat.com>
9614
9615 * inf-child.h: Update comment to not mention Unix.
9616
f1aea813
PA
96172014-03-12 Pedro Alves <palves@redhat.com>
9618
9619 * inf-child.c: Update top comment to not mention Unix. Add
9620 generic comment describing how this target is meant to be used.
9621 (inf_child_post_attach, inf_child_post_startup_inferior)
9622 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9623 Unix in comment.
9624
ee8e9165
PA
96252014-03-12 Pedro Alves <palves@redhat.com>
9626
9627 * nto-procfs.c: Include inf-child.h.
9628 (procfs_ops): Delete global.
9629 (procfs_can_run): Delete method.
9630 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9631 target pointer instead of referencing procfs_ops.
9632 (procfs_prepare_to_store): Delete.
9633 (init_procfs_ops): Delete function.
9634 (procfs_target): New function, based on init_procfs_ops, but
9635 inherit inf_child_target.
9636 (_initialize_procfs): Use procfs_target.
9637
51a9c8c5
PA
96382014-03-12 Pedro Alves <palves@redhat.com>
9639
9640 * windows-nat.c: Include inf-child.h.
9641 (windows_ops): Delete global.
9642 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9643 methods.
9644 (init_windows_ops): Delete function.
9645 (windows_target): New function, based on init_windows_ops, but
9646 inherit inf_child_target.
9647 (_initialize_windows_nat): Use windows_target. Install x86
9648 specific target methods here.
9649
c1966e26
DE
96502014-03-10 Doug Evans <xdje42@gmail.com>
9651
9652 * guile/guile.c (call_initialize_gdb_module): New function.
9653 (initialize_guile): Replace call to scm_init_guile with call to
9654 scm_with_guile.
9655
023db19c
JB
96562014-03-10 Joel Brobecker <brobecker@adacore.com>
9657
9658 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9659 in call to TYPE_CODE macro.
9660
5ec18f2b
JG
96612014-03-10 Jerome Guitton <guitton@adacore.com>
9662
8668be63
JB
9663 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9664 Resolve tagged types to full view.
5ec18f2b 9665
7d03f2eb
HZ
96662014-03-10 Hui Zhu <hui@codesourcery.com>
9667
9668 * target.h (target_insert_breakpoint): Remove "hardware" from its
9669 comments.
9670
c5164cbc
DE
96712014-03-07 Doug Evans <dje@google.com>
9672
9673 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9674
c4a3fee2
DE
96752014-03-07 Doug Evans <dje@google.com>
9676
9677 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9678 Remove unused local comp_dir_attr. Assert exactly one of
9679 stub_comp_unit_die, stub_comp_dir is non-NULL.
9680
3156469c
JB
96812014-03-07 Joel Brobecker <brobecker@adacore.com>
9682
9683 * target.h (complete_target_initialization, add_target):
9684 Add comment.
9685
c1a7b7c6
PA
96862014-03-07 Pedro Alves <palves@redhat.com>
9687
9688 * go32-nat.c: Include inf-child.h.
9689 (go32_ops): Delete global.
9690 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9691 Delete methods.
9692 (go32_create_inferior): Push the passed in target pointer instead
9693 of referencing go32_ops.
9694 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9695 (go32_target): New function, based on init_go32_ops, but inherit
9696 inf_child_target.
9697 (_initialize_go32_nat): Use go32_target. Move parts of
9698 init_go32_ops here.
9699
d3c1a85f
JB
97002014-03-06 Joel Brobecker <brobecker@adacore.com>
9701
9702 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9703 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9704 SYMBOL_VALUE_ADDRESS.
9705 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9706
5fa1d40e
YQ
97072014-03-06 Yao Qi <yao@codesourcery.com>
9708
9709 * breakpoint.c (get_tracepoint_by_number): Remove argument
9710 optional_p. All callers updated. Adjust comments. Update
9711 output message.
9712 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9713
0c13193f
YQ
97142014-03-06 Yao Qi <yao@codesourcery.com>
9715
9716 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9717 early if get_number returns zero. Use 'p' instead of 'args'.
9718
2217da06
YQ
97192014-03-06 Yao Qi <yao@codesourcery.com>
9720
9721 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9722 message.
9723
cc3da688
YQ
97242014-03-06 Yao Qi <yao@codesourcery.com>
9725
9726 PR breakpoints/16508
9727 * tracepoint.c (check_trace_running): New function.
9728 (trace_find_command): Move code to check_trace_running and
9729 call check_trace_running.
9730 (trace_find_pc_command): Likewise.
9731 (trace_find_tracepoint_command): Likewise.
9732 (trace_find_line_command): Likewise.
9733 (trace_find_range_command): Likewise.
9734 * tracepoint.h (check_trace_running): Likewise.
9735 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9736
6a5f844b
YQ
97372014-03-06 Yao Qi <yao@codesourcery.com>
9738
9739 * target.h (struct target_ops) <to_traceframe_info>: Use
9740 TARGET_DEFAULT_NORETURN (tcomplain ()).
9741 * target-delegates.c: Regenerated.
9742
0f26cec1
PA
97432014-03-05 Pedro Alves <palves@redhat.com>
9744
9745 PR gdb/16575
9746 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9747 void. Update comment.
9748 (dcache_xfer_memory): Delete.
9749 (dcache_read_memory_partial): New, based on the read bits of
9750 dcache_xfer_memory.
9751 (dcache_update): Add status parameter. Use ULONGEST for len, and
9752 adjust. Discard cache lines if the reason for the update was
9753 error.
9754 * dcache.h (dcache_xfer_memory): Delete declaration.
9755 (dcache_read_memory_partial): New declaration.
9756 (dcache_update): Update prototype.
9757 * target.c (raw_memory_xfer_partial): Update the dcache here.
9758 (memory_xfer_partial_1): Don't handle dcache writes here.
9759
b2b255bd
MF
97602014-03-05 Mike Frysinger <vapier@gentoo.org>
9761
9762 * remote-sim.c (gdbsim_load): Add const to prog.
9763
5d9cf8a4
TT
97642014-03-03 Tom Tromey <tromey@redhat.com>
9765
9766 * elfread.c (probe_key): Change to bfd_data.
9767 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9768 now per-BFD, not per-objfile.
9769 * stap-probe.c (stap_probe_destroy): Update comment.
9770 (handle_stap_probe): Allocate on the per-BFD obstack.
9771
729662a5
TT
97722014-03-03 Tom Tromey <tromey@redhat.com>
9773
9774 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9775 * breakpoint.c (create_longjmp_master_breakpoint): Use
9776 get_probe_address.
9777 (add_location_to_breakpoint, bkpt_probe_insert_location)
9778 (bkpt_probe_remove_location): Update.
9779 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9780 * elfread.c (elf_symfile_relocate_probe): Remove.
9781 (elf_probe_fns): Update.
9782 (insert_exception_resume_breakpoint): Change type of "probe"
9783 parameter to bound_probe.
9784 (check_exception_resume): Update.
9785 * objfiles.c (objfile_relocate1): Don't relocate probes.
9786 * probe.c (bound_probe_s): New typedef.
9787 (parse_probes): Use get_probe_address. Set sal's objfile.
9788 (find_probe_by_pc): Return a bound_probe.
9789 (collect_probes): Return a VEC(bound_probe_s).
9790 (compare_probes): Update.
9791 (gen_ui_out_table_header_info): Change type of "probes"
9792 parameter. Update.
9793 (info_probes_for_ops): Update.
9794 (get_probe_address): New function.
9795 (probe_safe_evaluate_at_pc): Update.
9796 * probe.h (struct probe_ops) <get_probe_address>: New field.
9797 <set_semaphore, clear_semaphore>: Add objfile parameter.
9798 (struct probe) <objfile>: Remove field.
9799 <arch>: New field.
9800 <address>: Update comment.
9801 (struct bound_probe): New.
9802 (find_probe_by_pc): Return a bound_probe.
9803 (get_probe_address): Declare.
9804 * solib-svr4.c (struct probe_and_action) <address>: New field.
9805 (hash_probe_and_action, equal_probe_and_action): Update.
9806 (register_solib_event_probe): Add address parameter.
9807 (solib_event_probe_at): Update.
9808 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9809 get_probe_address.
9810 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9811 (stap_get_probe_address): New function.
9812 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9813 (compile_probe_arg): Update.
9814 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9815 address.
9816 (handle_stap_probe): Don't relocate the probe.
9817 (stap_relocate): Remove.
9818 (stap_gen_info_probes_table_values): Update.
9819 (stap_probe_ops): Remove stap_relocate.
9820 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9821 (debug_sym_probe_fns): Update.
9822 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9823 * symtab.c (init_sal): Use memset.
9824 * symtab.h (struct symtab_and_line) <objfile>: New field.
9825 * tracepoint.c (start_tracing, stop_tracing): Update.
9826
ff887920
TT
98272014-03-03 Tom Tromey <tromey@redhat.com>
9828
9829 * probe.h (parse_probes, find_probe_by_pc)
9830 (find_probes_in_objfile): Fix comments.
9831
f0407826
DE
98322014-03-02 Doug Evans <xdje42@gmail.com>
9833
9834 * infrun.c (handle_signal_stop): Replace test for
9835 TARGET_WAITKIND_STOPPED with an assert.
9836
35e6a711
DE
98372014-03-02 Doug Evans <xdje42@gmail.com>
9838
9839 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9840
667f9d0b
DE
98412014-03-02 Doug Evans <xdje42@gmail.com>
9842
9843 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9844
dc92ace0
MK
98452014-03-01 Mark Kettenis <kettenis@gnu.org>
9846
9847 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9848
a900370f
MK
98492014-03-01 Mark Kettenis <kettenis@gnu.org>
9850
9851 * i386obsd-nat.c: Include "obsd-nat.h".
9852 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9853 add_target.
9854 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9855
b72a7981
MK
98562014-03-01 Mark Kettenis <kettenis@gnu.org>
9857
9858 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9859
96c70aba
MK
98602014-03-01 Mark Kettenis <kettenis@gnu.org>
9861
9862 * mips64obsd-nat.c: Include "obsd-nath".
9863 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9864 add_target
9865 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9866
874a80af
MK
98672014-03-01 Mark Kettenis <kettenis@gnu.org>
9868
8fd408f1
MK
9869 * amd64obsd-nat.c: Include "obsd-nat,h.
9870 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9871 add_target.
874a80af
MK
9872 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9873
9cf95373
SC
98742014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9875
9876 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9877 (find_overload_match): Update call to find_oload_champ.
9878 (find_oload_champ_namespace_loop): Likewise
9879
863e4da4
MK
98802014-02-28 Mark Kettenis <kettenis@gnu.org>
9881
025cac40
MK
9882 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9883
1ed586ce
MK
9884 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9885 * config/sparc/obsd64.mh: New file.
9886 * sparc64obsd-nat.c: New file.
9887
863e4da4
MK
9888 * obsd-nat.h: New file.
9889 * obsd-nat.c: New file.
9890 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9891 (ALLDEPFILES): Add obsd-nat.c.
9892
89de4da4
TT
98932014-02-28 Tom Tromey <tromey@redhat.com>
9894
9895 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9896 * cli-out.h (cli_ui_out_impl): Now const.
9897 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9898 * ui-out.c (struct ui_out) <impl>: Now const.
9899 (default_ui_out_impl): Now const.
9900 (ui_out_new): Make 'impl' parameter const.
9901 * ui-out.h (ui_out_new): Update.
9902
c725e7b6
MK
99032014-02-27 Mark Kettenis <kettenis@gnu.org>
9904
9905 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9906
670b46b3
MK
99072014-02-27 Mark Kettenis <kettenis@gnu.org>
9908
9909 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9910
c91550fc
JK
99112014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9912
9913 Additional PR 8882 fix.
9914 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9915
2fa0369e
PA
99162014-02-27 Pedro Alves <palves@redhat.com>
9917
9918 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9919 isn't set.
9920
d632a097
PA
99212014-02-27 Pedro Alves <palves@redhat.com>
9922
9923 PR 12702
9924 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9925 * nat/linux-waitpid.c: Include string.h.
9926 (status_to_str): Moved here and made extern.
9927 * nat/linux-waitpid.h (status_to_str): New declaration.
9928
2ebd5a35
HZ
99292014-02-27 Hui Zhu <hui@codesourcery.com>
9930
9931 PR 12702
9932 * infrun.c (ptid_match): Move ...
9933 * common/ptid.c (ptid_match): ... here.
9934 * inferior.h (ptid_match): Move ...
9935 * common/ptid.h (ptid_match): ... here.
9936
3cdd631f
MK
99372014-02-27 Mark Kettenis <kettenis@gnu.org>
9938
9939 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9940 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9941 gdb_target_obs.
9942
bee30a64
MK
99432014-02-27 Mark Kettenis <kettenis@gnu.org>
9944
9945 * obsd-tdep.c (obsd_auxv_parse): New function.
9946 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9947
9948 * gdbarch.sh (auxv_parse): New.
9949 * gdbarch.h: Regenerated.
9950 * gdbarch.c: Regenerated.
9951 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9952
7a5a839f
LC
99532014-02-26 Ludovic Courtès <ludo@gnu.org>
9954
9955 * guile/scm-value.c (gdbscm_history_append_x): New function.
9956 (value_functions): Add it.
9957
31aa7e4e
JB
99582014-02-27 Joel Brobecker <brobecker@adacore.com>
9959
9960 * dwarf2read.c (attr_value_as_address): New function.
9961 (dwarf2_find_base_address, read_call_site_scope): Use
9962 attr_value_as_address in place of DW_ADDR.
9963 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9964 the low and high addresses. Slight rework of the handling
9965 of the high pc being a constant form, and limit it to
9966 DWARF verson 4 or higher.
9967 (dwarf2_record_block_ranges): Likewise.
9968 (read_partial_die): Likewise.
9969 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9970
9b333ba3
TT
99712014-02-26 Tom Tromey <tromey@redhat.com>
9972
9973 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9974
5f6cac40
TT
99752014-02-26 Tom Tromey <tromey@redhat.com>
9976
9977 * elfread.c (elf_read_minimal_symbols): Return early if
9978 minimal symbols have already been read. Add "ei" parameter.
9979 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9980 * minsyms.c (prim_record_minimal_symbol_full): Update.
9981 * objfiles.h (struct objstats) <n_minsyms>: Move...
9982 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9983 * symmisc.c (print_objfile_statistics): Update.
9984
2750ef27
TT
99852014-02-26 Tom Tromey <tromey@redhat.com>
9986
9987 * elfread.c (elf_read_minimal_symbols): New function, from
9988 elf_symfile_read.
9989 (elf_symfile_read): Call it.
9990
34643a32
TT
99912014-02-26 Tom Tromey <tromey@redhat.com>
9992
9993 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9994 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9995 (lookup_minimal_symbol_solib_trampoline)
9996 (lookup_minimal_symbol_by_pc_section_1)
9997 (lookup_minimal_symbol_and_objfile): Update.
9998 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9999 Don't allocate a minimal symbol if minsyms have already been read.
10000 (build_minimal_symbol_hash_tables): Update.
10001 (install_minimal_symbols): Do nothing if minsyms already read.
10002 Use the per-BFD obstack.
10003 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10004 * objfiles.c (allocate_objfile): Call
10005 terminate_minimal_symbol_table later.
10006 (have_minimal_symbols): Update.
10007 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10008 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10009 Move from struct objfile.
10010 <minsyms_read>: New field.
10011 (struct objfile) <msymbols, minimal_symbol_count,
10012 msymbol_hash, msymbol_demangled_hash>: Move.
10013 (ALL_OBJFILE_MSYMBOLS): Update.
10014 * symfile.c (read_symbols): Set minsyms_read.
10015 (reread_symbols): Update.
10016 * symmisc.c (dump_objfile, dump_msymbols): Update.
10017
2273f0ac
TT
100182014-02-26 Tom Tromey <tromey@redhat.com>
10019
10020 * minsyms.c (msymbols_sort): Remove.
10021 * minsyms.h (msymbols_sort): Remove.
10022 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10023 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10024 * elfread.c (elf_symtab_read): Don't add section offsets.
10025 * xcoffread.c (record_minimal_symbol): Don't add section offset
10026 to minimal symbol address.
10027 * somread.c (text_offset, data_offset): Remove.
10028 (som_symtab_read): Don't add section offsets to minimal symbol
10029 addresses.
10030 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10031 Don't add section offsets to minimal symbols.
10032 * coffread.c (coff_symtab_read): Don't add section offsets
10033 to minimal symbol addresses.
10034 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10035 to minimal symbol addresses.
10036 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10037 section offset to minimal symbol addresses.
10038 * mdebugread.c (parse_partial_symbols): Don't add section
10039 offset to minimal symbol addresses.
10040 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10041 offset to minimal symbol addresses.
10042
77e371c0
TT
100432014-02-26 Tom Tromey <tromey@redhat.com>
10044
10045 * ada-lang.c (ada_main_name): Update.
10046 (ada_add_standard_exceptions): Update.
10047 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10048 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10049 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10050 * auxv.c (ld_so_xfer_auxv): Update.
10051 * avr-tdep.c (avr_scan_prologue): Update.
10052 * ax-gdb.c (gen_var_ref): Update.
10053 * blockframe.c (get_pc_function_start)
10054 (find_pc_partial_function_gnu_ifunc): Update.
10055 * breakpoint.c (create_overlay_event_breakpoint)
10056 (create_longjmp_master_breakpoint)
10057 (create_std_terminate_master_breakpoint)
10058 (create_exception_master_breakpoint): Update.
10059 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10060 * c-valprint.c (c_val_print): Update.
10061 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10062 * common/agent.c (agent_look_up_symbols): Update.
10063 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10064 * dwarf2loc.c (call_site_to_target_addr): Update.
10065 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10066 * elfread.c (elf_gnu_ifunc_record_cache)
10067 (elf_gnu_ifunc_resolve_by_got): Update.
10068 * findvar.c (default_read_var_value): Update.
10069 * frame.c (inside_main_func): Update.
10070 * frv-tdep.c (frv_frame_this_id): Update.
10071 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10072 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10073 Update.
10074 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10075 (hppa_hpux_find_dummy_bpaddr): Update.
10076 * hppa-tdep.c (hppa_symbol_address): Update.
10077 * infcmd.c (until_next_command): Update.
10078 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10079 Update.
10080 * linespec.c (minsym_found, add_minsym): Update.
10081 * linux-nat.c (get_signo): Update.
10082 * linux-thread-db.c (inferior_has_bug): Update.
10083 * m32c-tdep.c (m32c_return_value)
10084 (m32c_m16c_address_to_pointer): Update.
10085 * m32r-tdep.c (m32r_frame_this_id): Update.
10086 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10087 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10088 * maint.c (maintenance_translate_address): Update.
10089 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10090 (frob_address): New function.
10091 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10092 frob_address. Rename parameter to "pc_in".
10093 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10094 addresses.
10095 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10096 Update.
10097 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10098 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10099 * objc-lang.c (find_objc_msgsend): Update.
10100 * objfiles.c (objfile_relocate1): Update.
10101 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10102 * p-valprint.c (pascal_val_print): Update.
10103 * parse.c (write_exp_msymbol): Update.
10104 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10105 (ppc_elfv2_skip_entrypoint): Update.
10106 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10107 * printcmd.c (build_address_symbolic, msym_info)
10108 (address_info): Update.
10109 * proc-service.c (ps_pglobal_lookup): Update.
10110 * psymtab.c (find_pc_sect_psymtab_closer)
10111 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10112 Change msymbol parameter to bound_minimal_symbol.
10113 * ravenscar-thread.c (get_running_thread_id): Update.
10114 * remote.c (remote_check_symbols): Update.
10115 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10116 address.
10117 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10118 * solib-dsbt.c (lm_base): Update.
10119 * solib-frv.c (lm_base, main_got): Update.
10120 * solib-irix.c (locate_base): Update.
10121 * solib-som.c (som_solib_create_inferior_hook)
10122 (link_map_start): Update.
10123 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10124 * solib-svr4.c (elf_locate_base, enable_break): Update.
10125 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10126 (flush_ea_cache): Update.
10127 * stabsread.c (define_symbol, scan_file_globals): Update.
10128 * stack.c (find_frame_funname): Update.
10129 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10130 (debug_qf_find_pc_sect_symtab): Update.
10131 * symfile.c (simple_read_overlay_table)
10132 (simple_overlay_update): Update.
10133 * symfile.h (struct quick_symbol_functions)
10134 <find_pc_sect_symtab>: Change type of msymbol to
10135 bound_minimal_symbol.
10136 * symmisc.c (dump_msymbols): Update.
10137 * symtab.c (find_pc_sect_symtab_via_partial)
10138 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10139 (search_symbols, print_msymbol_info): Update.
10140 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10141 (MSYMBOL_VALUE_ADDRESS): Redefine.
10142 (BMSYMBOL_VALUE_ADDRESS): New macro.
10143 * tracepoint.c (scope_info): Update.
10144 * tui/tui-disasm.c (tui_find_disassembly_address)
10145 (tui_get_begin_asm_address): Update.
10146 * valops.c (find_function_in_inferior): Update.
10147 * value.c (value_static_field, value_fn_field): Update.
10148
3b7344d5
TT
101492014-02-26 Tom Tromey <tromey@redhat.com>
10150
10151 * ada-lang.c (ada_update_initial_language): Update.
10152 (ada_main_name, ada_has_this_exception_support): Update.
10153 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10154 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10155 * arm-tdep.c (arm_skip_stub): Update.
10156 * auxv.c (ld_so_xfer_auxv): Update.
10157 * avr-tdep.c (avr_scan_prologue): Update.
10158 * ax-gdb.c (gen_var_ref): Update.
10159 * breakpoint.c (struct breakpoint_objfile_data)
10160 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10161 type to bound_minimal_symbol.
10162 (create_overlay_event_breakpoint)
10163 (create_longjmp_master_breakpoint)
10164 (create_std_terminate_master_breakpoint)
10165 (create_exception_master_breakpoint): Update.
10166 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10167 * c-exp.y (classify_name): Update.
10168 * coffread.c (coff_symfile_read): Update.
10169 * common/agent.c (agent_look_up_symbols): Update.
10170 * d-lang.c (d_main_name): Update.
10171 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10172 * dec-thread.c (enable_dec_thread): Update.
10173 * dwarf2loc.c (call_site_to_target_addr): Update.
10174 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10175 * eval.c (evaluate_subexp_standard): Update.
10176 * findvar.c (struct minsym_lookup_data) <result>: Change type
10177 to bound_minimal_symbol.
10178 <objfile>: Remove.
10179 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10180 * frame.c (inside_main_func): Update.
10181 * frv-tdep.c (frv_frame_this_id): Update.
10182 * gcore.c (call_target_sbrk): Update.
10183 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10184 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10185 Update.
10186 * go-lang.c (go_main_name): Update.
10187 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10188 (hppa_hpux_find_import_stub_for_addr): Update.
10189 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10190 Update. Change return type.
10191 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10192 type.
10193 * jit.c (jit_breakpoint_re_set_internal): Update.
10194 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10195 Update.
10196 * linux-nat.c (get_signo): Update.
10197 * linux-thread-db.c (inferior_has_bug): Update
10198 * m32c-tdep.c (m32c_return_value)
10199 (m32c_m16c_address_to_pointer): Update.
10200 * m32r-tdep.c (m32r_frame_this_id): Update.
10201 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10202 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10203 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10204 lookup_minimal_symbol. Change return type.
10205 (lookup_minimal_symbol): Remove.
10206 (lookup_bound_minimal_symbol): Update.
10207 (lookup_minimal_symbol_text): Change return type.
10208 (lookup_minimal_symbol_solib_trampoline): Change return type.
10209 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10210 (lookup_minimal_symbol_solib_trampoline): Change return type.
10211 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10212 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10213 (value_nsstring, find_imps): Update.
10214 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10215 * p-lang.c (pascal_main_name): Update.
10216 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10217 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10218 * proc-service.c (ps_pglobal_lookup): Update.
10219 * ravenscar-thread.c (get_running_thread_msymbol): Change
10220 return type.
10221 (has_ravenscar_runtime, get_running_thread_id): Update.
10222 * remote.c (remote_check_symbols): Update.
10223 * sol-thread.c (ps_pglobal_lookup): Update.
10224 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10225 * solib-dsbt.c (lm_base): Update.
10226 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10227 Update.
10228 * solib-irix.c (locate_base): Update.
10229 * solib-som.c (som_solib_create_inferior_hook)
10230 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10231 Update.
10232 * solib-spu.c (spu_enable_break): Update.
10233 * solib-svr4.c (elf_locate_base, enable_break): Update.
10234 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10235 (flush_ea_cache): Update.
10236 * stabsread.c (define_symbol): Update.
10237 * symfile.c (simple_read_overlay_table): Update.
10238 * symtab.c (find_pc_sect_line): Update.
10239 * tracepoint.c (scope_info): Update.
10240 * tui-disasm.c (tui_get_begin_asm_address): Update.
10241 * value.c (value_static_field): Update.
10242
40c1a007
TT
102432014-02-26 Tom Tromey <tromey@redhat.com>
10244
10245 * minsyms.c (prim_record_minimal_symbol_full): Use
10246 SET_MSYMBOL_VALUE_ADDRESS.
10247 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10248 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10249 SET_MSYMBOL_VALUE_ADDRESS.
10250 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10251 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10252
efd66ac6
TT
102532014-02-26 Tom Tromey <tromey@redhat.com>
10254
10255 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10256 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10257 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10258 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10259 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10260 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10261 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10262 * ada-lang.c (ada_main_name): Update.
10263 (ada_lookup_simple_minsym): Update.
10264 (ada_make_symbol_completion_list): Update.
10265 (ada_add_standard_exceptions): Update.
10266 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10267 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10268 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10269 * arm-tdep.c (skip_prologue_function): Update.
10270 (arm_skip_stack_protector, arm_skip_stub): Update.
10271 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10272 (arm_wince_skip_main_prologue): Update.
10273 * auxv.c (ld_so_xfer_auxv): Update.
10274 * avr-tdep.c (avr_scan_prologue): Update.
10275 * ax-gdb.c (gen_var_ref): Update.
10276 * block.c (call_site_for_pc): Update.
10277 * blockframe.c (get_pc_function_start): Update.
10278 (find_pc_partial_function_gnu_ifunc): Update.
10279 * breakpoint.c (create_overlay_event_breakpoint): Update.
10280 (create_longjmp_master_breakpoint): Update.
10281 (create_std_terminate_master_breakpoint): Update.
10282 (create_exception_master_breakpoint): Update.
10283 (resolve_sal_pc): Update.
10284 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10285 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10286 Update.
10287 * c-valprint.c (c_val_print): Update.
10288 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10289 * coffread.c (coff_symfile_read): Update.
10290 * common/agent.c (agent_look_up_symbols): Update.
10291 * dbxread.c (find_stab_function_addr): Update.
10292 (end_psymtab): Update.
10293 * dwarf2loc.c (call_site_to_target_addr): Update.
10294 (func_verify_no_selftailcall): Update.
10295 (tailcall_dump): Update.
10296 (call_site_find_chain_1): Update.
10297 (dwarf_expr_reg_to_entry_parameter): Update.
10298 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10299 (elf_gnu_ifunc_resolve_by_got): Update.
10300 * f-valprint.c (info_common_command): Update.
10301 * findvar.c (read_var_value): Update.
10302 * frame.c (get_prev_frame_1): Update.
10303 (inside_main_func): Update.
10304 * frv-tdep.c (frv_skip_main_prologue): Update.
10305 (frv_frame_this_id): Update.
10306 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10307 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10308 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10309 (gnuv3_skip_trampoline): Update.
10310 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10311 (hppa64_hpux_in_solib_call_trampoline): Update.
10312 (hppa_hpux_skip_trampoline_code): Update.
10313 (hppa64_hpux_search_dummy_call_sequence): Update.
10314 (hppa_hpux_find_import_stub_for_addr): Update.
10315 (hppa_hpux_find_dummy_bpaddr): Update.
10316 * hppa-tdep.c (hppa_symbol_address)
10317 (hppa_lookup_stub_minimal_symbol): Update.
10318 * i386-tdep.c (i386_skip_main_prologue): Update.
10319 (i386_pe_skip_trampoline_code): Update.
10320 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10321 * infcall.c (get_function_name): Update.
10322 * infcmd.c (until_next_command): Update.
10323 * jit.c (jit_breakpoint_re_set_internal): Update.
10324 (jit_inferior_init): Update.
10325 * linespec.c (minsym_found): Update.
10326 (add_minsym): Update.
10327 * linux-fork.c (info_checkpoints_command): Update.
10328 * linux-nat.c (get_signo): Update.
10329 * linux-thread-db.c (inferior_has_bug): Update.
10330 * m32c-tdep.c (m32c_return_value): Update.
10331 (m32c_m16c_address_to_pointer): Update.
10332 (m32c_m16c_pointer_to_address): Update.
10333 * m32r-tdep.c (m32r_frame_this_id): Update.
10334 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10335 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10336 * maint.c (maintenance_translate_address): Update.
10337 * minsyms.c (add_minsym_to_hash_table): Update.
10338 (add_minsym_to_demangled_hash_table): Update.
10339 (msymbol_objfile): Update.
10340 (lookup_minimal_symbol): Update.
10341 (iterate_over_minimal_symbols): Update.
10342 (lookup_minimal_symbol_text): Update.
10343 (lookup_minimal_symbol_by_pc_name): Update.
10344 (lookup_minimal_symbol_solib_trampoline): Update.
10345 (lookup_minimal_symbol_by_pc_section_1): Update.
10346 (lookup_minimal_symbol_and_objfile): Update.
10347 (prim_record_minimal_symbol_full): Update.
10348 (compare_minimal_symbols): Update.
10349 (compact_minimal_symbols): Update.
10350 (build_minimal_symbol_hash_tables): Update.
10351 (install_minimal_symbols): Update.
10352 (terminate_minimal_symbol_table): Update.
10353 (find_solib_trampoline_target): Update.
10354 (minimal_symbol_upper_bound): Update.
10355 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10356 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10357 (mips_skip_pic_trampoline_code): Update.
10358 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10359 * objc-lang.c (selectors_info): Update.
10360 (classes_info): Update.
10361 (find_methods): Update.
10362 (find_imps): Update.
10363 (find_objc_msgsend): Update.
10364 * objfiles.c (objfile_relocate1): Update.
10365 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10366 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10367 * p-valprint.c (pascal_val_print): Update.
10368 * parse.c (write_exp_msymbol): Update.
10369 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10370 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10371 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10372 * printcmd.c (build_address_symbolic): Update.
10373 (sym_info): Update.
10374 (address_info): Update.
10375 * proc-service.c (ps_pglobal_lookup): Update.
10376 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10377 (find_pc_sect_psymtab): Update.
10378 * python/py-framefilter.c (py_print_frame): Update.
10379 * ravenscar-thread.c (get_running_thread_id): Update.
10380 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10381 Update.
10382 * remote.c (remote_check_symbols): Update.
10383 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10384 (rs6000_skip_trampoline_code): Update.
10385 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10386 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10387 * solib-dsbt.c (lm_base): Update.
10388 * solib-frv.c (lm_base): Update.
10389 (main_got): Update.
10390 * solib-irix.c (locate_base): Update.
10391 * solib-som.c (som_solib_create_inferior_hook): Update.
10392 (som_solib_desire_dynamic_linker_symbols): Update.
10393 (link_map_start): Update.
10394 * solib-spu.c (spu_enable_break): Update.
10395 (ocl_enable_break): Update.
10396 * solib-svr4.c (elf_locate_base): Update.
10397 (enable_break): Update.
10398 * spu-tdep.c (spu_get_overlay_table): Update.
10399 (spu_catch_start): Update.
10400 (flush_ea_cache): Update.
10401 * stabsread.c (define_symbol): Update.
10402 (scan_file_globals): Update.
10403 * stack.c (find_frame_funname): Update.
10404 (frame_info): Update.
10405 * symfile.c (simple_read_overlay_table): Update.
10406 (simple_overlay_update): Update.
10407 * symmisc.c (dump_msymbols): Update.
10408 * symtab.c (fixup_section): Update.
10409 (find_pc_sect_line): Update.
10410 (skip_prologue_sal): Update.
10411 (search_symbols): Update.
10412 (print_msymbol_info): Update.
10413 (rbreak_command): Update.
10414 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10415 (completion_list_objc_symbol): Update.
10416 (default_make_symbol_completion_list_break_on): Update.
10417 * tracepoint.c (scope_info): Update.
10418 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10419 (tui_get_begin_asm_address): Update.
10420 * valops.c (find_function_in_inferior): Update.
10421 * value.c (value_static_field): Update.
10422 (value_fn_field): Update.
10423
50e65b17
TT
104242014-02-26 Tom Tromey <tromey@redhat.com>
10425
10426 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10427 bound minimal symbols. Move code that knows about minsym
10428 table layout...
10429 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10430 function.
10431 * minsyms.h (minimal_symbol_upper_bound): Declare.
10432 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10433 minimal_symbol_upper_bound.
10434
1b588015
JB
104352014-02-27 Joel Brobecker <brobecker@adacore.com>
10436
10437 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10438 Use the type's name if its basic type does not have a tag.
10439
dbb9c2b1
JB
104402014-02-27 Joel Brobecker <brobecker@adacore.com>
10441
10442 * dwarf2read.c (read_subrange_type): Add comment.
10443
55426c9d
JB
104442014-02-27 Joel Brobecker <brobecker@adacore.com>
10445
10446 * dwarf2read.c (update_enumeration_type_from_children): New
10447 function, mostly extracted from process_structure_scope.
10448 (read_enumeration_type): Call update_enumeration_type_from_children.
10449 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10450 and flag_flag_enum fields.
10451
f2fce0ca
PA
104522014-02-26 Pedro Alves <palves@redhat.com>
10453
10454 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10455 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10456 to_xfer_partial method.
10457
7a44e40e
PA
104582014-02-26 Pedro Alves <palves@redhat.com>
10459
10460 * target.c (complete_target_initialization): Don't install
10461 default_xfer_partial as to_xfer_partial hook.
10462 (nomemory): Delete.
10463 (update_current_target): Don't INHERIT nor de_fault
10464 deprecated_xfer_memory. Delete de_fault macro.
10465 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10466 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10467 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10468 field.
10469
bd265cd0
PA
104702014-02-26 Pedro Alves <palves@redhat.com>
10471
10472 * go32-nat.c (my_write_child): New function.
10473 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10474 (go32_xfer_partial): New function.
10475 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10476 Instead install a to_xfer_partial hook.
10477
9d46c4e5
PA
104782014-02-26 Pedro Alves <palves@redhat.com>
10479
10480 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10481 to_xfer_partial helper. Rewrite.
10482 (procfs_xfer_partial): New function.
10483 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10484 Install a to_xfer_partial hook.
10485
a1583b1f
PA
104862014-02-26 Pedro Alves <palves@redhat.com>
10487
10488 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10489 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10490 (m32r_xfer_partial): New function.
10491 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10492 Install a to_xfer_partial hook.
10493
6df1b29f
PA
104942014-02-26 Pedro Alves <palves@redhat.com>
10495
10496 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10497 helper.
10498 (mips_xfer_partial): New function.
10499 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10500 hook. Install a to_xfer_partial hook.
10501
dc53a7ad
JB
105022014-02-26 Joel Brobecker <brobecker@adacore.com>
10503
10504 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10505 * gdbtypes.c (create_array_type_with_stride): New function,
10506 renaming create_array_type, but with an added parameter
10507 called "bit_stride".
10508 (create_array_type): Re-implement using
10509 create_array_type_with_stride.
10510 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10511 and DW_AT_bit_stride attributes.
10512
12ab52e9
PA
105132014-02-26 Pedro Alves <palves@redhat.com>
10514
10515 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10516 task-specific breakpoints.
10517
d16461ae
PA
105182014-02-25 Pedro Alves <palves@redhat.com>
10519
10520 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10521 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10522
a8b16220
SS
105232014-02-25 Stan Shebs <stan@codesourcery.com>
10524
10525 * defs.h: Annotate comments for Doxygen.
10526
b9e795ee
TT
105272014-02-25 Tom Tromey <tromey@redhat.com>
10528
10529 * target.h (target_ignore): Don't declare.
10530 * target.c (target_ignore): Remove.
10531
849c862e
JK
105322014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10533
10534 PR gdb/16626
10535 * auto-load.c (auto_load_objfile_script_1): Change filename to
10536 debugfile.
10537
475109d8
JB
105382014-02-25 Joel Brobecker <brobecker@adacore.com>
10539
10540 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10541 documentation. Adjust prototype to match the target_ops
10542 to_xfer_partial method. Adjust implementation accordingly.
10543
e186c3bd
HZ
105442014-02-25 Hui Zhu <hui@codesourcery.com>
10545
10546 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10547 to_traceframe_info.
10548
6d451942
KB
105492014-02-25 Kevin Buettner <kevinb@redhat.com>
10550
041ab8b4 10551 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10552 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10553 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10554 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10555 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10556 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10557 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10558 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10559 New constants.
10560 (rl78_register_type): Use a data pointer type for SP and
10561 new pseudo registers mentioned above. Use a 16 bit integer
10562 type for all other register pairs.
10563 (rl78_register_name, rl78_g10_register_name): Update for
10564 new pseudo registers.
10565 (rl78_pseudo_register_read): Likewise.
10566 (rl78_pseudo_register_write): Likewise.
10567 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10568 to the newly added pseudo registers.
10569
eddf0bae
DE
105702014-02-24 Doug Evans <dje@google.com>
10571
10572 * value.c (record_latest_value): Fix comment.
10573 * printcmd.c (print_command_1): Remove code to handle -1 return from
10574 record_latest_value.
10575
e96027e0
PA
105762014-02-24 Pedro Alves <palves@redhat.com>
10577
10578 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10579 deprecated_xfer_memory hook.
10580 (procfs_xfer_partial): Call procfs_xfer_memory instead
10581 of the deprecated_xfer_memory target hook.
10582 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10583 helper.
10584
0837c976
YZ
105852014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10586
10587 * windows-nat.c (windows_xfer_shared_libraries): Return
10588 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10589 requested object is TARGET_OBJECT_LIBRARIES.
10590
bc113b4e
YQ
105912014-02-24 Yao Qi <yao@codesourcery.com>
10592
10593 * target.h (enum target_xfer_status)
10594 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10595 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10596 explicitly. New.
10597 * corefile.c (memory_error_message): User updated.
10598 * exec.c (section_table_read_available_memory): Likewise.
10599 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10600 * target.c (target_xfer_status_to_string): Likewise.
10601 (raw_memory_xfer_partial): Likewise.
10602 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10603 * valops.c (read_value_memory): Likewise.
10604 * exec.h: Update comments.
10605
01cb8804
YQ
106062014-02-24 Yao Qi <yao@codesourcery.com>
10607
10608 * target.c (target_xfer_status_to_string): Rename argument err
10609 to status.
10610 * target.h (target_xfer_status_to_string): Update declaration.
10611 Replace target_xfer_error_to_string with
10612 target_xfer_status_to_string in comment.
10613
93063aa6
YQ
106142014-02-24 Yao Qi <yao@codesourcery.com>
10615
10616 * mips-linux-nat.c (super_close): Update its type.
10617 (mips_linux_close): Pass 'self' to super_close.
10618
5c328c05
YQ
106192014-02-24 Yao Qi <yao@codesourcery.com>
10620
10621 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10622 * corefile.c (read_memory): Adjusted.
10623 * target.c (target_write_with_progress): Adjusted.
10624
f73023dd
YQ
106252014-02-23 Yao Qi <yao@codesourcery.com>
10626
10627 Revert two patches:
10628
10629 2013-10-25 Yao Qi <yao@codesourcery.com>
10630
10631 * remote.c (remote_traceframe_info): Return early if
10632 traceframe is not selected.
10633
10634 2013-07-19 Yao Qi <yao@codesourcery.com>
10635
10636 * target.c (update_current_target): Change the default action
10637 of 'to_traceframe_info' from tcomplain to return_zero.
10638 * target.h (struct target_ops) <to_traceframe_info>: Add more
10639 comments.
10640
5a2eb0ef
YQ
106412014-02-23 Yao Qi <yao@codesourcery.com>
10642
10643 * valops.c (read_value_memory): Rewrite it. Call
10644 target_xfer_partial in a loop.
10645 * exec.h (section_table_available_memory): Remove declaration.
10646 Move comments to ...
10647 * exec.c (section_table_available_memory): ... here. Make it
10648 static.
10649
1ee79381
YQ
106502014-02-23 Yao Qi <yao@codesourcery.com>
10651
10652 * exec.c (section_table_read_available_memory): New function.
10653 * exec.h (section_table_read_available_memory): Declare.
10654 * ctf.c (ctf_xfer_partial): Call
10655 section_table_read_available_memory.
10656 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10657
1ca49d37
YQ
106582014-02-23 Yao Qi <yao@codesourcery.com>
10659
10660 * ctf.c (ctf_xfer_partial): Move code to ...
10661 * exec.c (exec_read_partial_read_only): ... it. New function.
10662 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10663 * tracefile.c: Include "exec.h".
10664 * exec.h (exec_read_partial_read_only): Declare.
10665
a283690e
YQ
106662014-02-23 Yao Qi <yao@codesourcery.com>
10667
10668 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10669 (tfile_has_memory): Remove.
10670 (init_tfile_ops): Don't set fields to_has_all_memory and
10671 to_has_memory of tfile_ops.
10672 * tracefile.c (tracefile_has_all_memory): New function.
10673 (tracefile_has_memory): New function.
10674 (init_tracefile_ops): Initialize fields to_has_all_memory and
10675 to_has_memory of 'ops'.
10676
12e03cd0
YQ
106772014-02-23 Yao Qi <yao@codesourcery.com>
10678
10679 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10680 (ctf_thread_alive, ctf_get_trace_status): Remove.
10681 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10682 init_tracefile_ops.
10683 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10684 (tfile_has_stack, tfile_has_registers): Remove.
10685 (tfile_thread_alive): Remove.
10686 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10687 init_tracefile_ops.
10688 * tracefile.c (tracefile_has_stack): New function.
10689 (tracefile_has_registers): New function.
10690 (tracefile_thread_alive): New function.
10691 (tracefile_get_trace_status): New function.
10692 (init_tracefile_ops): New function.
10693 * tracefile.h (init_tracefile_ops): Declare.
10694
11395323
YQ
106952014-02-23 Yao Qi <yao@codesourcery.com>
10696
10697 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10698 (O_LARGEFILE): Likewise.
10699 (tfile_ops): Likewise.
10700 (TRACE_HEADER_SIZE): Likewise.
10701 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10702 (cur_data_size): Likewise.
10703 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10704 (tfile_close, tfile_files_info): Likewise.
10705 (tfile_get_trace_status): Likewise.
10706 (tfile_get_tracepoint_status): Likewise.
10707 (tfile_get_traceframe_address): Likewise.
10708 (tfile_trace_find, match_blocktype): Likewise.
10709 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10710 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10711 (tfile_get_trace_state_variable_value): Likewise.
10712 (tfile_has_all_memory, tfile_has_memory): Likewise.
10713 (tfile_has_stack, tfile_has_registers): Likewise.
10714 (tfile_thread_alive, build_traceframe_info): Likewise.
10715 (tfile_traceframe_info, init_tfile_ops): Likewise.
10716 (_initialize_tracepoint): Don't call init_tfile_ops
10717 and add_target_with_completer.
10718 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10719 exec.h, completer.h and filenames.h.
10720 (_initialize_tracefile_tfile): New function.
10721
7951c4eb
YQ
107222014-02-23 Yao Qi <yao@codesourcery.com>
10723
10724 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10725 tracefile-tfile.o.
10726 (HFILES_NO_SRCDIR): Add tracefile.h.
10727 * ctf.c: Include "tracefile.h".
10728 * tracefile.h: New file.
10729 * tracefile.c: New file
10730 * tracefile-tfile.c: New file.
10731 * tracepoint.c: Include "tracefile.h".
10732 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10733 (stop_reason_names): Add const.
10734 (trace_file_writer_xfree): Move it to tracefile.c.
10735 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10736 (trace_save_ctf): Likewise.
10737 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10738 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10739 (tfile_write_header, tfile_write_regblock_type): Likewise.
10740 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10741 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10742 (tfile_write_raw_data, tfile_end): Likewise.
10743 (tfile_trace_file_writer_new): Likewise.
10744 (free_uploaded_tp): Make it extern.
10745 (free_uploaded_tsv): Make it extern.
10746 (_initialize_tracepoint): Move code to register command 'tsave'
10747 to tracefile.c.
10748 * tracepoint.h (stop_reason_names): Declare.
10749 (struct trace_frame_write_ops): Move it to tracefile.h.
10750 (struct trace_file_write_ops): Likewise.
10751 (struct trace_file_writer): Likewise.
10752 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10753
184cd072
JK
107542014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10755
10756 PR gdb/16594
10757 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10758 process name.
10759 (get_cores_used_by_process): New parameter num_cores, use it.
10760 (linux_xfer_osdata_processes): Pass num_cores to it.
10761 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10762 process name.
10763
c63528fc
AK
107642014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10765
10766 * target.c (memory_xfer_partial): Fix length arg in call to
10767 breakpoint_xfer_memory.
10768
d7b30f67
SDJ
107692014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10770
10771 PR tdep/16397
10772 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10773 number comes after the + or - signs. Adjust length of register
10774 name to be extracted.
10775
8838afaf
TT
107762014-02-20 Tom Tromey <tromey@redhat.com>
10777
10778 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10779 (ada_varobj_ops): Mark "extern".
10780
05227d14
TT
107812014-02-20 Tom Tromey <tromey@redhat.com>
10782
10783 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10784
1254eefc
DE
107852014-02-20 Doug Evans <xdje42@gmail.com>
10786
10787 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10788 All callers updated.
10789 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10790 All callers updated.
10791 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10792 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10793
adde2bff
DE
107942014-02-20 lin zuojian <manjian2006@gmail.com>
10795 Joel Brobecker <brobecker@adacore.com>
10796 Doug Evans <xdje42@gmail.com>
10797
10798 PR symtab/16581
10799 * dwarf2read.c (struct die_info): New member in_process.
10800 (reset_die_in_process): New function.
10801 (process_die): Set it at the start, reset when returning.
10802 (inherit_abstract_dies): Only call process_die if origin_child_die
10803 not already being processed.
10804
3be75f87
JB
108052014-02-20 Joel Brobecker <brobecker@adacore.com>
10806
10807 * windows-nat.c (handle_unload_dll): Add function documentation.
10808 (do_initial_windows_stuff): Add comment explaining why we wait
10809 until after inferior initialization has finished before
10810 processing all DLLs.
10811
47f7ffdb
JB
108122014-02-20 Joel Brobecker <brobecker@adacore.com>
10813
10814 * windows-nat.c (get_module_name): Delete.
10815 (windows_get_exec_module_filename): New function, mostly
10816 inspired from get_module_name.
10817 (windows_pid_to_exec_file): Replace call to get_module_name
10818 by call to windows_get_exec_module_filename.
10819
1cd9feab
JB
108202014-02-20 Joel Brobecker <brobecker@adacore.com>
10821
10822 * windows-nat.c (handle_load_dll): Rewrite this function's
10823 introductory comment. Remove code using get_module_name
10824 to get the DLL's name.
10825
ea39ad35
JB
108262014-02-20 Joel Brobecker <brobecker@adacore.com>
10827
10828 * windows-nat.c (get_windows_debug_event): Ignore
10829 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10830 if windows_initialization_done == 0.
10831 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10832 Adjust implementation to always load all DLLs.
10833 (do_initial_windows_stuff): Replace call to
10834 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10835
95060284
JB
108362014-02-20 Joel Brobecker <brobecker@adacore.com>
10837
10838 * windows-nat.c (_initialize_windows_nat): Deprecate the
10839 "dll-symbols" command. Turn the "add-shared-symbol-files"
10840 and "assf" aliases into commands, and deprecate them as well.
10841 * NEWS: Add entry explaining that "dll-symbols" and its two
10842 aliases are now deprecated.
10843
8d4fdb12
JB
108442014-02-20 Joel Brobecker <brobecker@adacore.com>
10845
10846 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10847 new-line in debug string. Remove trailing spaces.
10848
1b281443
SS
108492014-02-19 Stan Shebs <stan@codesourcery.com>
10850
10851 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10852
f7bd0f78
SC
108532014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10854
10855 * NEWS: Add entry for the new feature
10856 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10857 and class values.
10858
399ebc3d
SS
108592014-02-19 Stan Shebs <stan@codesourcery.com>
10860
10861 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10862
c658158d
PA
108632014-02-19 Pedro Alves <palves@redhat.com>
10864
10865 * common/ptid.h (struct ptid): Mention that process_stratum
10866 targets should prefer ptid.lwp.
10867
ba348170
PA
108682014-02-19 Pedro Alves <palves@redhat.com>
10869
10870 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10871 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10872 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10873 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10874 store remote thread ids rather than ptid.tid.
10875 (_initialize_remote): Adjust.
10876
ac01945b
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.c (target_get_unwinder): Rewrite.
10880 (target_get_tailcall_unwinder): Rewrite.
10881 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10882 (record_btrace_to_get_tailcall_unwinder): New function.
10883 (init_record_btrace_ops): Update.
10884 * target.h (struct target_ops) <to_get_unwinder,
10885 to_get_tailcall_unwinder>: Now function pointers. Use
10886 TARGET_DEFAULT_RETURN.
10887
8476dc92
TT
108882014-02-19 Tom Tromey <tromey@redhat.com>
10889
10890 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10891 argument.
10892 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10893
c0eca49f
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10897 directly.
10898 * target-delegates.c: Rebuild.
10899 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10900 TARGET_DEFAULT_FUNC.
10901 * target.c (default_target_decr_pc_after_break): Rename from
10902 forward_target_decr_pc_after_break. Simplify.
10903 (target_decr_pc_after_break): Rely on delegation.
10904
596b6b39
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.c (update_current_target): Do not INHERIT to_doc or
10908 to_magic. Do not de_fault to_open or to_close.
10909
b427c1bc
TT
109102014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * gcore.h (objfile_find_memory_regions): Declare.
10913 * gcore.c (objfile_find_memory_regions): No longer static. Add
10914 "self" argument.
10915 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10916 * exec.c: Include gcore.h.
10917 (exec_set_find_memory_regions): Remove.
10918 (exec_find_memory_regions): Remove.
10919 (exec_do_find_memory_regions): Remove.
10920 (init_exec_ops): Update.
10921 * defs.h (exec_set_find_memory_regions): Remove.
10922
9b144037
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target-delegates.c: Rebuild.
10926 * target.h (struct target_ops) <to_extra_thread_info,
10927 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10928 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10929 not 0, in TARGET_DEFAULT_RETURN.
10930
555bbdeb
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target.c (complete_target_initialization): Remove casts. Use
10934 return_zero_has_execution.
10935 (return_zero): Add "ignore" argument.
10936 (return_zero_has_execution): New function.
10937 (init_dummy_target): Remove casts. Use
10938 return_zero_has_execution.
10939
be4ddd36
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.c (update_current_target): Update comments. Do not
10943 INHERIT to_stratum.
10944
2117c711
TT
109452014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10948 needed.
10949 * corelow.c (core_read_description): Delegate when needed.
10950 * remote.c (remote_read_description): Delegate when needed.
10951 * target-delegates.c: Rebuild.
10952 * target.c (target_read_description): Rewrite.
10953 * target.h (struct target_ops) <to_read_description>: Update
10954 comment. Use TARGET_DEFAULT_RETURN.
10955
e88ef65c
TT
109562014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * target-delegates.c: Rebuild.
10959 * target.c (update_current_target): Don't inherit or default
10960 to_can_run.
10961 (find_default_run_target): Check against delegate_can_run.
10962 * target.h (struct target_ops) <to_can_run>: Use
10963 TARGET_DEFAULT_RETURN.
10964
86a0854a
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_disconnect): Unconditionally delegate.
10969 * target.h (struct target_ops) <to_disconnect>: Use
10970 TARGET_DEFAULT_NORETURN.
10971
ee97f592
TT
109722014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * record.c (record_stop): Unconditionally delegate.
10975 * target-delegates.c: Rebuild.
10976 * target.c (target_stop_recording): Unconditionally delegate.
10977 * target.h (struct target_ops) <to_stop_recording>: Use
10978 TARGET_DEFAULT_IGNORE.
10979
6dc7fcf4
TT
109802014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * target-delegates.c: Rebuild.
10983 * target.c (target_enable_btrace): Unconditionally delegate.
10984 * target.h (struct target_ops) <to_enable_btrace>: Use
10985 TARGET_DEFAULT_NORETURN.
10986
eb5b20d4
TT
109872014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (target_read_btrace): Unconditionally delegate.
10991 * target.h (struct target_ops) <to_read_btrace>: Use
10992 TARGET_DEFAULT_NORETURN.
10993
9ace480d
TT
109942014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target-delegates.c: Rebuild.
10997 * target.c (target_teardown_btrace): Unconditionally delegate.
10998 * target.h (struct target_ops) <to_teardown_btrace>: Use
10999 TARGET_DEFAULT_NORETURN.
11000
8dc292d3
TT
110012014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (target_disable_btrace): Unconditionally delegate.
11005 * target.h (struct target_ops) <to_disable_btrace>: Use
11006 TARGET_DEFAULT_NORETURN.
11007
58a5184e
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target-delegates.c: Rebuild.
11011 * target.c (default_search_memory): New function.
11012 (simple_search_memory): Update comment.
11013 (target_search_memory): Unconditionally delegate.
11014 * target.h (struct target_ops) <to_search_memory>: Use
11015 TARGET_DEFAULT_FUNC.
11016
8de71aab
TT
110172014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * auxv.c (default_auxv_parse): No longer static.
11020 (target_auxv_parse): Unconditionally delegate.
11021 * auxv.h (default_auxv_parse): Declare.
11022 * target-delegates.c: Rebuild.
11023 * target.c: Include auxv.h.
11024 * target.h (struct target_ops) <to_auxv_parse>: Use
11025 TARGET_DEFAULT_FUNC.
11026
6b2c5a57
TT
110272014-02-19 Tom Tromey <tromey@redhat.com>
11028
11029 * target-delegates.c: Rebuild.
11030 * target.c (target_memory_map): Unconditionally delegate.
11031 * target.h (struct target_ops) <to_memory_map>: Use
11032 TARGET_DEFAULT_RETURN.
11033
cbffc065
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * target-delegates.c: Rebuild.
11037 * target.c (target_thread_alive): Unconditionally delegate.
11038 * target.h (struct target_ops) <to_thread_alive>: Use
11039 TARGET_DEFAULT_RETURN.
11040
f09e2107
TT
110412014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target-delegates.c: Rebuild.
11044 * target.c (target_save_record): Unconditionally delegate.
11045 * target.h (struct target_ops) <to_save_record>: Use
11046 TARGET_DEFAULT_NORETURN.
11047
07366925
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target-delegates.c: Rebuild.
11051 * target.c (target_delete_record): Unconditionally delegate.
11052 * target.h (struct target_ops) <to_delete_record>: Use
11053 TARGET_DEFAULT_NORETURN.
11054
dd2e9d25
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (target_record_is_replaying): Unconditionally
11059 delegate.
11060 * target.h (struct target_ops) <to_record_is_replaying>: Use
11061 TARGET_DEFAULT_RETURN.
11062
671e76cc
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target-delegates.c: Rebuild.
11066 * target.c (target_goto_record_begin): Unconditionally delegate.
11067 * target.h (struct target_ops) <to_goto_record_begin>: Use
11068 TARGET_DEFAULT_NORETURN.
11069
e9179bb3
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (target_goto_record_end): Unconditionally delegate.
11074 * target.h (struct target_ops) <to_goto_record_end>: Use
11075 TARGET_DEFAULT_NORETURN.
11076
05969c84
TT
110772014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (target_goto_record): Unconditionally delegate.
11081 * target.h (struct target_ops) <to_goto_record>: Use
11082 TARGET_DEFAULT_NORETURN.
11083
3679abfa
TT
110842014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target-delegates.c: Rebuild.
11087 * target.c (target_insn_history): Unconditionally delegate.
11088 * target.h (struct target_ops) <to_insn_history>: Use
11089 TARGET_DEFAULT_NORETURN.
11090
8444ab58
TT
110912014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target-delegates.c: Rebuild.
11094 * target.c (target_insn_history_from): Unconditionally delegate.
11095 * target.h (struct target_ops) <to_insn_history_from>: Use
11096 TARGET_DEFAULT_NORETURN.
11097
c29302cc
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target-delegates.c: Rebuild.
11101 * target.c (target_insn_history_range): Unconditionally delegate.
11102 * target.h (struct target_ops) <to_insn_history_range>: Use
11103 TARGET_DEFAULT_NORETURN.
11104
170049d4
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target-delegates.c: Rebuild.
11108 * target.c (target_call_history): Unconditionally delegate.
11109 * target.h (struct target_ops) <to_call_history>: Use
11110 TARGET_DEFAULT_NORETURN.
11111
16fc27d6
TT
111122014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target-delegates.c: Rebuild.
11115 * target.c (target_call_history_from): Unconditionally delegate.
11116 * target.h (struct target_ops) <to_call_history_from>: Use
11117 TARGET_DEFAULT_NORETURN.
11118
115d9817
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target-delegates.c: Rebuild.
11122 * target.c (target_call_history_range): Unconditionally delegate.
11123 * target.h (struct target_ops) <to_call_history_range>: Use
11124 TARGET_DEFAULT_NORETURN.
11125
eb276a6b
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (target_verify_memory): Unconditionally delegate.
11130 * target.h (struct target_ops) <to_verify_memory>: Use
11131 TARGET_DEFAULT_NORETURN.
11132
9e538d0d
TT
111332014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target-delegates.c: Rebuild.
11136 * target.c (target_core_of_thread): Unconditionally delegate.
11137 * target.h (struct target_ops) <to_core_of_thread>: Use
11138 TARGET_DEFAULT_RETURN.
11139
f6fb2925
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target-delegates.c: Rebuild.
11143 * target.c (target_flash_done): Unconditionally delegate.
11144 * target.h (struct target_ops) <to_flash_done>: Use
11145 TARGET_DEFAULT_NORETURN.
11146
e8a6c6ac
TT
111472014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target-delegates.c: Rebuild.
11150 * target.c (target_flash_erase): Unconditionally delegate.
11151 * target.h (struct target_ops) <to_flash_erase>: Use
11152 TARGET_DEFAULT_NORETURN.
11153
7e35c012
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target-delegates.c: Rebuild.
11157 * target.c (target_get_section_table): Unconditionally delegate.
11158 * target.h (struct target_ops) <to_get_section_table>: Use
11159 TARGET_DEFAULT_RETURN.
11160
770234d3
TT
111612014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target-delegates.c: Rebuild.
11164 * target.c (target_pid_to_str): Unconditionally delegate.
11165 (init_dummy_target): Don't initialize to_pid_to_str.
11166 (default_pid_to_str): Rename from dummy_pid_to_str.
11167 * target.h (struct target_ops) <to_pid_to_str>: Use
11168 TARGET_DEFAULT_FUNC.
11169
09b0dc2b
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target-delegates.c: Rebuild.
11173 * target.c (target_find_new_threads): Unconditionally delegate.
11174 * target.h (struct target_ops) <to_find_new_threads>: Use
11175 TARGET_DEFAULT_RETURN.
11176
7d4f8efa
TT
111772014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target-delegates.c: Rebuild.
11180 * target.c (target_program_signals): Unconditionally delegate.
11181 * target.h (struct target_ops) <to_program_signals>: Use
11182 TARGET_DEFAULT_IGNORE.
11183
035cad7f
TT
111842014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.c (target_pass_signals): Unconditionally delegate.
11188 * target.h (struct target_ops) <to_pass_signals>: Use
11189 TARGET_DEFAULT_IGNORE.
11190
8d657035
TT
111912014-02-19 Tom Tromey <tromey@redhat.com>
11192
11193 * target-delegates.c: Rebuild.
11194 * target.c (default_mourn_inferior): New function.
11195 (target_mourn_inferior): Unconditionally delegate.
11196 * target.h (struct target_ops) <to_mourn_inferior>: Use
11197 TARGET_DEFAULT_FUNC.
11198
098dba18
TT
111992014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target-delegates.c: Rebuild.
11202 * target.c (default_follow_fork): New function.
11203 (target_follow_fork): Unconditionally delegate.
11204 * target.h (struct target_ops) <to_follow_fork>: Use
11205 TARGET_DEFAULT_FUNC.
11206
423a4807
TT
112072014-02-19 Tom Tromey <tromey@redhat.com>
11208
11209 * target-delegates.c: Rebuild.
11210 * target.c (target_kill): Unconditionally delegate.
11211 * target.h (struct target_ops) <to_kill>: Use
11212 TARGET_DEFAULT_NORETURN.
11213
6c7e5e5c
TT
112142014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * target-delegates.c: Rebuild.
11217 * target.c (target_masked_watch_num_registers): Unconditionally
11218 delegate.
11219 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11220 Use TARGET_DEFAULT_RETURN.
11221
8b1c364c
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target-delegates.c: Rebuild.
11225 * target.c (target_remove_mask_watchpoint): Unconditionally
11226 delegate.
11227 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11228 TARGET_DEFAULT_RETURN.
11229
cd4ae029
TT
112302014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (target_insert_mask_watchpoint): Unconditionally
11234 delegate.
11235 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11236 TARGET_DEFAULT_RETURN.
11237
a134316b
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target-delegates.c: Rebuild.
11241 * target.c (target_ranged_break_num_registers): Unconditionally
11242 delegate.
11243 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11244 Use TARGET_DEFAULT_RETURN.
11245
ad5989bd
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (target_fetch_registers): Unconditionally delegate.
11250 * target.h (struct target_ops) <to_fetch_registers>: Use
11251 TARGET_DEFAULT_NORETURN.
11252
46ee7e8d
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11257 to_stop.
11258 * target.h (struct target_ops) <to_stop>: Use
11259 TARGET_DEFAULT_IGNORE.
11260
843f59ed
TT
112612014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target-delegates.c: Rebuild.
11264 * target.c (update_current_target): Don't inherit or default
11265 to_can_run_breakpoint_commands.
11266 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11267 Use TARGET_DEFAULT_RETURN.
11268
ccfde2a0
TT
112692014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (update_current_target): Don't inherit or default
11273 to_supports_evaluation_of_breakpoint_conditions.
11274 * target.h (struct target_ops)
11275 <to_supports_evaluation_of_breakpoint_conditions>: Use
11276 TARGET_DEFAULT_RETURN.
11277
0de91722
TT
112782014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_augmented_libraries_svr4_read.
11283 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11284 Use TARGET_DEFAULT_RETURN.
11285
9a7d8b48
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_can_use_agent.
11291 * target.h (struct target_ops) <to_can_use_agent>: Use
11292 TARGET_DEFAULT_RETURN.
11293
d9db5b21
TT
112942014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target-delegates.c: Rebuild.
11297 * target.c (update_current_target): Don't inherit or default
11298 to_use_agent.
11299 * target.h (struct target_ops) <to_use_agent>: Use
11300 TARGET_DEFAULT_NORETURN.
11301
92155eeb
TT
113022014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target-delegates.c: Rebuild.
11305 * target.c (update_current_target): Don't inherit or default
11306 to_traceframe_info.
11307 (return_null): Remove.
11308 * target.h (struct target_ops) <to_traceframe_info>: Use
11309 TARGET_DEFAULT_RETURN.
11310
d6522a22
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target-delegates.c: Rebuild.
11314 * target.c (update_current_target): Don't inherit or default
11315 to_static_tracepoint_markers_by_strid.
11316 * target.h (struct target_ops)
11317 <to_static_tracepoint_markers_by_strid>: Use
11318 TARGET_DEFAULT_NORETURN.
11319
4c3e4425
TT
113202014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target-delegates.c: Rebuild.
11323 * target.c (update_current_target): Don't inherit or default
11324 to_static_tracepoint_marker_at.
11325 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11326 Use TARGET_DEFAULT_RETURN.
11327
dcd6917f
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11332 to_set_permissions.
11333 * target.h (struct target_ops) <to_set_permissions>: Use
11334 TARGET_DEFAULT_IGNORE.
11335
22bcceee
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11340 to_get_tib_address.
11341 * target.h (struct target_ops) <to_get_tib_address>: Use
11342 TARGET_DEFAULT_NORETURN.
11343
8586ccaa
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11348 to_set_trace_notes.
11349 * target.h (struct target_ops) <to_set_trace_notes>: Use
11350 TARGET_DEFAULT_RETURN.
11351
91df8d1d
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't initialize
11356 to_set_trace_buffer_size.
11357 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11358 TARGET_DEFAULT_IGNORE.
11359
8d526939
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_set_circular_trace_buffer.
11365 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11366 TARGET_DEFAULT_IGNORE.
11367
0bcfeddf
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_set_disconnected_tracing.
11373 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11374 TARGET_DEFAULT_IGNORE.
11375
9249843f
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (update_current_target): Don't inherit or default
11380 to_get_min_fast_tracepoint_insn_len.
11381 (return_minus_one): Remove.
11382 * target.h (struct target_ops)
11383 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11384
ace92e7d
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_get_raw_trace_data.
11390 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11391 TARGET_DEFAULT_NORETURN.
11392
08120467
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_upload_trace_state_variables.
11398 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11399 Use TARGET_DEFAULT_RETURN.
11400
1e949b00
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target-delegates.c: Rebuild.
11404 * target.c (update_current_target): Don't inherit or default
11405 to_upload_tracepoints.
11406 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11407 TARGET_DEFAULT_RETURN.
11408
a2e6c147
TT
114092014-02-19 Tom Tromey <tromey@redhat.com>
11410
11411 * target-delegates.c: Rebuild.
11412 * target.c (update_current_target): Don't inherit or default
11413 to_save_trace_data.
11414 * target.h (struct target_ops) <to_save_trace_data>: Use
11415 TARGET_DEFAULT_NORETURN.
11416
959bcd0b
TT
114172014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target-delegates.c: Rebuild.
11420 * target.c (update_current_target): Don't inherit or default
11421 to_get_trace_state_variable_value.
11422 * target.h (struct target_ops)
11423 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11424
afc94e66
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (update_current_target): Don't inherit or default
11429 to_trace_find.
11430 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11431
e51c07ea
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_trace_stop.
11437 * target.h (struct target_ops) <to_trace_stop>: Use
11438 TARGET_DEFAULT_NORETURN.
11439
6fea14cd
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_get_tracepoint_status.
11445 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11446 TARGET_DEFAULT_NORETURN.
11447
4072d4ff
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_status.
11453 * target.h (struct target_ops) <to_get_trace_status>: Use
11454 TARGET_DEFAULT_RETURN.
11455
25da2e80
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_start.
11461 * target.h (struct target_ops) <to_trace_start>: Use
11462 TARGET_DEFAULT_NORETURN.
11463
86dd181d
TT
114642014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_trace_set_readonly_regions.
11469 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11470 Use TARGET_DEFAULT_NORETURN.
11471
05c41993
TT
114722014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11476 to_disable_tracepoint.
11477 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11478 TARGET_DEFAULT_NORETURN.
11479
151f70f1
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11484 to_enable_tracepoint.
11485 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11486 TARGET_DEFAULT_NORETURN.
11487
94eb98b9
TT
114882014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_download_trace_state_variable.
11493 * target.h (struct target_ops) <to_download_trace_state_variable>:
11494 Use TARGET_DEFAULT_NORETURN.
11495
719acc4a
TT
114962014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_can_download_tracepoint.
11501 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11502 TARGET_DEFAULT_RETURN.
11503
9a980a22
TT
115042014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_download_tracepoint.
11509 * target.h (struct target_ops) <to_download_tracepoint>: Use
11510 TARGET_DEFAULT_NORETURN.
11511
5536135b
TT
115122014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_trace_init.
11517 * target.h (struct target_ops) <to_trace_init>: Use
11518 TARGET_DEFAULT_RETURN.
11519
9409d39e
TT
115202014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_supports_string_tracing.
11525 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11526 TARGET_DEFAULT_RETURN.
11527
aab1b22d
TT
115282014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_supports_enable_disable_tracepoint.
11533 * target.h (struct target_ops)
11534 <to_supports_enable_disable_tracepoint>: Use
11535 TARGET_DEFAULT_RETURN.
11536
a7304748
TT
115372014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_supports_multi_process.
11542 * target.h (struct target_ops) <to_supports_multi_process>: Use
11543 TARGET_DEFAULT_RETURN.
11544
4229b31d
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_get_ada_task_ptid.
11550 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11551 TARGET_DEFAULT_FUNC.
11552
43eba180
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_thread_architecture.
11558 * target.h (struct target_ops) <to_thread_architecture>: Use
11559 TARGET_DEFAULT_FUNC.
11560
fe31bf5b
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_execution_direction.
11566 * target.h (struct target_ops) <to_execution_direction>: Use
11567 TARGET_DEFAULT_FUNC.
11568
53e1cfc7
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_can_execute_reverse.
11574 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11575 TARGET_DEFAULT_RETURN.
11576 (target_can_execute_reverse): Unconditionally delegate.
11577
9bb9d61d
TT
115782014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target-delegates.c: Rebuild.
11581 * target.c (update_current_target): Don't inherit or default
11582 to_goto_bookmark.
11583 (dummy_goto_bookmark): Remove.
11584 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11585 * target.h (struct target_ops) <to_goto_bookmark>: Use
11586 TARGET_DEFAULT_NORETURN.
11587
3dbafbbb
TT
115882014-02-19 Tom Tromey <tromey@redhat.com>
11589
11590 * target-delegates.c: Rebuild.
11591 * target.c (update_current_target): Don't inherit or default
11592 to_get_bookmark.
11593 (dummy_get_bookmark): Remove.
11594 (init_dummy_target): Don't inherit or default to_get_bookmark.
11595 * target.h (struct target_ops) <to_get_bookmark>: Use
11596 TARGET_DEFAULT_NORETURN
11597
16f796b1
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target-delegates.c: Rebuild.
11601 * target.c (update_current_target): Don't inherit or default
11602 to_make_corefile_notes.
11603 (init_dummy_target): Don't initialize to_make_corefile_notes.
11604 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11605 TARGET_DEFAULT_FUNC.
11606
0b5a2719
TT
116072014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * target-delegates.c: Rebuild.
11610 * target.c (update_current_target): Don't inherit or default
11611 to_find_memory_regions.
11612 (init_dummy_target): Don't initialize to_find_memory_regions.
11613 * target.h (struct target_ops) <to_find_memory_regions>: Use
11614 TARGET_DEFAULT_FUNC.
11615
d9cb0195
TT
116162014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11620 to_log_command.
11621 * target.h (struct target_ops) <to_log_command>: Use
11622 TARGET_DEFAULT_IGNORE.
11623 (target_log_command): Unconditionally delegate.
11624
830ca330
TT
116252014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target-delegates.c: Rebuild.
11628 * target.c (update_current_target): Don't inherit or default
11629 to_pid_to_exec_file.
11630 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11631 TARGET_DEFAULT_RETURN.
11632
825828fc
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11637 to_thread_name.
11638 (target_thread_name): Unconditionally delegate.
11639 * target.h (struct target_ops) <to_thread_name>: Use
11640 TARGET_DEFAULT_RETURN.
11641
4a7e6dda
TT
116422014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_extra_thread_info.
11647 * target.h (struct target_ops) <to_extra_thread_info>: Use
11648 TARGET_DEFAULT_RETURN.
11649
0db88c1d
TT
116502014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_has_exited.
11655 * target.h (struct target_ops) <to_has_exited>: Use
11656 TARGET_DEFAULT_RETURN..
11657
6a9fa051
TT
116582014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target-delegates.c: Rebuild.
11661 * target.c (update_current_target): Don't inherit or default
11662 to_set_syscall_catchpoint.
11663 (return_one): Remove.
11664 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11665 TARGET_DEFAULT_RETURN.
11666
62f64d7a
TT
116672014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_insert_exec_catchpoint.
11672 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11673 TARGET_DEFAULT_RETURN.
11674
cda0f38c
TT
116752014-01-08 Tom Tromey <tromey@redhat.com>
11676
11677 * target-delegates.c: Rebuild.
11678 * target.c (update_current_target): Don't inherit or default
11679 to_insert_exec_catchpoint.
11680 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11681 TARGET_DEFAULT_RETURN.
11682
95c3375e
TT
116832014-02-19 Tom Tromey <tromey@redhat.com>
11684
11685 * target-delegates.c: Rebuild.
11686 * target.c (update_current_target): Don't inherit or default
11687 to_remove_vfork_catchpoint.
11688 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11689 TARGET_DEFAULT_RETURN.
11690
7e18a8dc
TT
116912014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * target-delegates.c: Rebuild.
11694 * target.c (update_current_target): Don't inherit or default
11695 to_insert_vfork_catchpoint.
11696 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11697 TARGET_DEFAULT_RETURN.
11698
e1a21fb7
TT
116992014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target-delegates.c: Rebuild.
11702 * target.c (update_current_target): Don't inherit or default
11703 to_remove_fork_catchpoint.
11704 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11705 TARGET_DEFAULT_RETURN.
11706
5958ebeb
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target-delegates.c: Rebuild.
11710 * target.c (update_current_target): Don't inherit or default
11711 to_insert_fork_catchpoint.
11712 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11713 TARGET_DEFAULT_RETURN.
11714
340ba4bf
TT
117152014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (update_current_target): Don't inherit or default
11719 to_post_startup_inferior.
11720 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11721 TARGET_DEFAULT_IGNORE.
11722
7634da87
TT
117232014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_load.
11728 * target.h (struct target_ops) <to_load>: Use
11729 TARGET_DEFAULT_NORETURN.
11730
e19e919f
TT
117312014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target-delegates.c: Rebuild.
11734 * target.c (update_current_target): Don't inherit or default
11735 to_terminal_info.
11736 * target.h (struct target_ops) <to_terminal_info>: Use
11737 TARGET_DEFAULT_FUNC.
11738
c6ea8f79
TT
117392014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * target-delegates.c: Rebuild.
11742 * target.c (update_current_target): Don't inherit or default
11743 to_terminal_save_ours.
11744 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11745 TARGET_DEFAULT_IGNORE.
11746
e4a733f1
TT
117472014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target-delegates.c: Rebuild.
11750 * target.c (update_current_target): Don't inherit or default
11751 to_terminal_ours.
11752 * target.h (struct target_ops) <to_terminal_ours>: Use
11753 TARGET_DEFAULT_IGNORE.
11754
74fcbef9
TT
117552014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target-delegates.c: Rebuild.
11758 * target.c (update_current_target): Don't inherit or default
11759 to_terminal_ours_for_output.
11760 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11761 TARGET_DEFAULT_IGNORE.
11762
ddeaacc9
TT
117632014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target-delegates.c: Rebuild.
11766 * target.c (update_current_target): Don't inherit or default
11767 to_terminal_inferior.
11768 * target.h (struct target_ops) <to_terminal_inferior>: Use
11769 TARGET_DEFAULT_IGNORE.
11770
0343661d
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target-delegates.c: Rebuild.
11774 * target.c (update_current_target): Don't inherit or default
11775 to_terminal_init.
11776 * target.h (struct target_ops) <to_terminal_init>: Use
11777 TARGET_DEFAULT_IGNORE.
11778
77cdffe9
TT
117792014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * target-delegates.c: Rebuild.
11782 * target.c (update_current_target): Don't inherit or default
11783 to_can_accel_watchpoint_condition.
11784 * target.h (struct target_ops)
11785 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11786
d03655e4
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target-delegates.c: Rebuild.
11790 * target.c (update_current_target): Don't inherit or default
11791 to_region_ok_for_hw_watchpoint.
11792 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11793 Use TARGET_DEFAULT_FUNC.
11794
65f160a9
TT
117952014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target-delegates.c: Rebuild.
11798 * target.c (update_current_target): Don't inherit or default
11799 to_watchpoint_addr_within_range.
11800 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11801 Use TARGET_DEFAULT_FUNC.
11802
61dd109f
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target-delegates.c: Rebuild.
11806 * target.c (update_current_target): Don't inherit or default
11807 to_remove_watchpoint.
11808 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11809 TARGET_DEFAULT_NORETURN.
11810
016facd4
TT
118112014-02-19 Tom Tromey <tromey@redhat.com>
11812
11813 * target-delegates.c: Rebuild.
11814 * target.c (update_current_target): Don't inherit or default
11815 to_insert_watchpoint.
11816 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11817 TARGET_DEFAULT_RETURN.
11818
418dabac
TT
118192014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11823 to_remove_hw_breakpoint.
11824 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11825 TARGET_DEFAULT_RETURN.
11826
61b371f9
TT
118272014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target-delegates.c: Rebuild.
11830 * target.c (update_current_target): Don't inherit or default
11831 to_insert_hw_breakpoint.
11832 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11833 TARGET_DEFAULT_RETURN.
11834
52b51d06
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target-delegates.c: Rebuild.
11838 * target.c (update_current_target): Don't inherit or default
11839 to_can_use_hw_breakpoint.
11840 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11841 TARGET_DEFAULT_RETURN.
11842
f86e59b2
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_files_info.
11848 * target.h (struct target_ops) <to_files_info>: Use
11849 TARGET_DEFAULT_IGNORE.
11850
6c628163
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_store.
11856 * target.h (struct target_ops) <to_store>: Use
11857 TARGET_DEFAULT_NORETURN.
11858
bebd3233
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_post_attach.
11864 * target.h (struct target_ops) <to_post_attach>: Use
11865 TARGET_DEFAULT_IGNORE.
11866
a53f3625
TT
118672014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_rcmd.
11872 (default_rcmd): New function.
11873 (do_monitor_command): Unconditionally delegate.
11874 * target.h (struct target_ops) <to_rmcd>: Use
11875 TARGET_DEFAULT_FUNC.
11876
e9a29200
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target-delegates.c: Rebuild.
11880 * target.c (init_dummy_target): Don't initialize to_attach.
11881 (target_attach): Unconditionally delegate.
11882 * target.h (struct target_ops) <to_attach>: Use
11883 TARGET_DEFAULT_FUNC.
11884
09da0d0a
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target-delegates.c: Rebuild.
11888 * target.c (target_detach): Unconditionally delegate.
11889 (init_dummy_target): Don't initialize to_detach.
11890 * target.h (struct target_ops) <to_detach>: Use
11891 TARGET_DEFAULT_IGNORE.
11892
5436ff03
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11896 Add argument.
11897 (target_augmented_libraries_svr4_read): Add argument.
11898 * target.c (update_current_target): Update.
11899 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11900 argument.
11901
f0d960ea
TT
119022014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target.h (struct target_ops) <to_call_history_range>: Add
11905 argument.
11906 * target.c (target_call_history_range): Add argument.
11907 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11908 argument.
11909 (record_btrace_call_history_from): Update.
11910
ec0aea04
TT
119112014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target.h (struct target_ops) <to_call_history_from>: Add
11914 argument.
11915 * target.c (target_call_history_from): Add argument.
11916 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11917 argument.
11918
5df2fcba
TT
119192014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target.h (struct target_ops) <to_call_history>: Add argument.
11922 * target.c (target_call_history): Add argument.
11923 * record-btrace.c (record_btrace_call_history): Add 'self'
11924 argument.
11925
4e99c6b7
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (struct target_ops) <to_insn_history_range>: Add
11929 argument.
11930 * target.c (target_insn_history_range): Add argument.
11931 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11932 argument.
11933 (record_btrace_insn_history_from): Update.
11934
9abc3ff3
TT
119352014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target.h (struct target_ops) <to_insn_history_from>: Add
11938 argument.
11939 * target.c (target_insn_history_from): Add argument.
11940 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11941 argument.
11942
7a6c5609
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target.h (struct target_ops) <to_insn_history>: Add argument.
11946 * target.c (target_insn_history): Add argument.
11947 * record-btrace.c (record_btrace_insn_history): Add 'self'
11948 argument.
11949
606183ac
TT
119502014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_goto_record>: Add argument.
11953 * target.c (target_goto_record): Add argument.
11954 * record-full.c (record_full_goto): Add 'self' argument.
11955 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11956
307a1b91
TT
119572014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11960 * target.c (target_goto_record_end): Add argument.
11961 * record-full.c (record_full_goto_end): Add 'self' argument.
11962 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11963
08475817
TT
119642014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target.h (struct target_ops) <to_goto_record_begin>: Add
11967 argument.
11968 * target.c (target_goto_record_begin): Add argument.
11969 * record-full.c (record_full_goto_begin): Add 'self' argument.
11970 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11971 argument.
11972
1c63c994
TT
119732014-02-19 Tom Tromey <tromey@redhat.com>
11974
11975 * target.h (struct target_ops) <to_record_is_replaying>: Add
11976 argument.
11977 * target.c (target_record_is_replaying): Add argument.
11978 * record-full.c (record_full_is_replaying): Add 'self' argument.
11979 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11980 argument.
11981 (record_btrace_xfer_partial, record_btrace_store_registers)
11982 (record_btrace_prepare_to_store, record_btrace_resume)
11983 (record_btrace_wait, record_btrace_decr_pc_after_break)
11984 (record_btrace_find_new_threads, record_btrace_thread_alive):
11985 Update.
11986
d1b55219
TT
119872014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target.h (struct target_ops) <to_delete_record>: Add argument.
11990 * target.c (target_delete_record): Add argument.
11991 * record-full.c (record_full_delete): Add 'self' argument.
11992
1390f529
TT
119932014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target.h (struct target_ops) <to_save_record>: Add argument.
11996 * target.c (target_save_record): Add argument.
11997 * record-full.c (record_full_save): Add 'self' argument.
11998 (record_full_save): Add 'self' argument.
11999
630d6a4a
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target.h (struct target_ops) <to_info_record>: Add argument.
12003 * target.c (target_info_record): Add argument.
12004 * record.c (info_record_command): Add argument.
12005 * record-full.c (record_full_info): Add 'self' argument.
12006 * record-btrace.c (record_btrace_info): Add 'self' argument.
12007
c6cd7c02
TT
120082014-02-19 Tom Tromey <tromey@redhat.com>
12009
12010 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12011 * target.c (target_stop_recording): Add argument.
12012 * record.c (record_stop): Add argument.
12013 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12014 argument.
12015
39c49f83
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12019 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12020 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12021 argument.
12022 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12023 (_initialize_amd64_linux_nat): Use it.
12024 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12025 (_initialize_i386_linux_nat): Use it.
12026
1777056d
TT
120272014-02-19 Tom Tromey <tromey@redhat.com>
12028
12029 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12030 * target.c (target_teardown_btrace): Add argument.
12031 * remote.c (remote_teardown_btrace): Add 'self' argument.
12032 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12033 argument.
12034 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12035 argument.
12036
25e95349
TT
120372014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12040 * target.c (target_disable_btrace): Add argument.
12041 * remote.c (remote_disable_btrace): Add 'self' argument.
12042 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12043 argument.
12044 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12045 argument.
12046
e3c49f88
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12050 * target.c (target_enable_btrace): Add argument.
12051 * remote.c (remote_enable_btrace): Add 'self' argument.
12052 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12053 argument.
12054 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12055 argument.
12056
fe38f897
TT
120572014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12060 (target_can_use_agent): Add argument.
12061 * target.c (update_current_target): Update.
12062 * remote.c (remote_can_use_agent): Add 'self' argument.
12063 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12064
2c152180
TT
120652014-02-19 Tom Tromey <tromey@redhat.com>
12066
12067 * target.h (struct target_ops) <to_use_agent>: Add argument.
12068 (target_use_agent): Add argument.
12069 * target.c (update_current_target): Update.
12070 * remote.c (remote_use_agent): Add 'self' argument.
12071 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12072
a893e81f
TT
120732014-02-19 Tom Tromey <tromey@redhat.com>
12074
12075 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12076 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12077 (target_traceframe_info): Add argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (remote_traceframe_info): Add 'self' argument.
12080 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12081
c686c57f
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (target_static_tracepoint_markers_by_strid): Add
12085 argument.
12086 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12087 'self' argument.
12088 * target.c (update_current_target): Update.
12089 * remote.c (struct target_ops)
12090 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12091 * linux-nat.c (struct target_ops)
12092 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12093
61fc905d
TT
120942014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12097 Add argument.
12098 (target_static_tracepoint_marker_at): Add argument.
12099 * target.c (update_current_target): Update.
12100 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12101 argument.
12102
c378d69d
TT
121032014-02-19 Tom Tromey <tromey@redhat.com>
12104
12105 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12106 (target_set_permissions): Add argument.
12107 * target.c (update_current_target): Update.
12108 * remote.c (remote_set_permissions): Add 'self' argument.
12109 (remote_start_remote): Update.
12110
bd7ae0f5
TT
121112014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12114 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12115 (target_get_tib_address): Add argument.
12116 * target.c (update_current_target): Update.
12117 * remote.c (remote_get_tib_address): Add 'self' argument.
12118
d9e68a2c
TT
121192014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12122 (target_set_trace_notes): Add argument.
12123 * target.c (update_current_target): Update.
12124 * remote.c (remote_set_trace_notes): Add 'self' argument.
12125
4da384be
TT
121262014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12129 argument.
12130 (target_set_trace_buffer_size): Add argument.
12131 * target.c (update_current_target): Update.
12132 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12133
736d5b1f
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12137 argument.
12138 (target_set_circular_trace_buffer): Add argument.
12139 * target.c (update_current_target): Update.
12140 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12141 argument.
12142
37b25738
TT
121432014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12146 argument.
12147 (target_set_disconnected_tracing): Add argument.
12148 * target.c (update_current_target): Update.
12149 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12150
0e67620a
TT
121512014-02-19 Tom Tromey <tromey@redhat.com>
12152
12153 * target.h (struct target_ops)
12154 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12155 (target_get_min_fast_tracepoint_insn_len): Add argument.
12156 * target.c (update_current_target): Update.
12157 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12158 argument.
12159
88ee6f45
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12163 argument.
12164 (target_get_raw_trace_data): Add argument.
12165 * target.c (update_current_target): Update.
12166 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12167
181e3713
TT
121682014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12171 Add argument.
12172 (target_upload_trace_state_variables): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_upload_trace_state_variables): Add 'self'
12175 argument.
12176 (remote_start_remote): Update.
12177
ab6617cc
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12181 argument.
12182 (target_upload_tracepoints): Add argument.
12183 * target.c (update_current_target): Update.
12184 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12185 (remote_start_remote): Update.
12186
dc3decaf
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12190 (target_save_trace_data): Add argument.
12191 * target.c (update_current_target): Update.
12192 * remote.c (remote_save_trace_data): Add 'self' argument.
12193
4011015b
TT
121942014-02-19 Tom Tromey <tromey@redhat.com>
12195
12196 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12197 argument.
12198 * target.h (struct target_ops)
12199 <to_get_trace_state_variable_value>: Add argument.
12200 (target_get_trace_state_variable_value): Add argument.
12201 * target.c (update_current_target): Update.
12202 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12203 argument.
12204 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12205
bd4c6793
TT
122062014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12209 * target.h (struct target_ops) <to_trace_find>: Add argument.
12210 (target_trace_find): Add argument.
12211 * target.c (update_current_target): Update.
12212 * remote.c (remote_trace_find): Add 'self' argument.
12213 * ctf.c (ctf_trace_find): Add 'self' argument.
12214
74499f1b
TT
122152014-02-19 Tom Tromey <tromey@redhat.com>
12216
12217 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12218 (target_trace_stop): Add argument.
12219 * target.c (update_current_target): Update.
12220 * remote.c (remote_trace_stop): Add 'self' argument.
12221
db90e85c
TT
122222014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12225 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12226 argument.
12227 (target_get_tracepoint_status): Add argument.
12228 * target.c (update_current_target): Update.
12229 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12230
8bd200f1
TT
122312014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12234 * target.h (struct target_ops) <to_get_trace_status>: Add
12235 argument.
12236 (target_get_trace_status): Add argument.
12237 * target.c (update_current_target): Update.
12238 * remote.c (remote_get_trace_status): Add 'self' argument.
12239 (remote_start_remote, remote_can_download_tracepoint): Update.
12240 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12241
e2d1aae3
TT
122422014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target.h (struct target_ops) <to_trace_start>: Add argument.
12245 (target_trace_start): Add argument.
12246 * target.c (update_current_target): Update.
12247 * remote.c (remote_trace_start): Add 'self' argument.
12248
583f9a86
TT
122492014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12252 Add argument.
12253 (target_trace_set_readonly_regions): Add argument.
12254 * target.c (update_current_target): Update.
12255 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12256 argument.
12257
780b049c
TT
122582014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12261 argument.
12262 (target_disable_tracepoint): Add argument.
12263 * target.c (update_current_target): Update.
12264 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12265
46670d57
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12269 argument.
12270 (target_enable_tracepoint): Add argument.
12271 * target.c (update_current_target): Update.
12272 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12273
559d2b81
TT
122742014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target.h (struct target_ops) <to_download_trace_state_variable>:
12277 Add argument.
12278 (target_download_trace_state_variable): Add argument.
12279 * target.c (update_current_target): Update.
12280 * remote.c (remote_download_trace_state_variable): Add 'self'
12281 argument.
12282
a52a8357
TT
122832014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12286 argument.
12287 (target_can_download_tracepoint): Add argument.
12288 * target.c (update_current_target): Update.
12289 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12290
548f7808
TT
122912014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target.h (struct target_ops) <to_download_tracepoint>: Add
12294 argument.
12295 (target_download_tracepoint): Add argument.
12296 * target.c (update_current_target): Update.
12297 * remote.c (remote_download_tracepoint): Add 'self' argument.
12298
ecae04e1
TT
122992014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * target.h (struct target_ops) <to_trace_init>: Add argument.
12302 (target_trace_init): Add argument.
12303 * target.c (update_current_target): Update.
12304 * remote.c (remote_trace_init): Add 'self' argument.
12305
fab5aa7c
TT
123062014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12309 * target.c (target_fileio_readlink): Add argument.
12310 * remote.c (remote_hostio_readlink): Add 'self' argument.
12311 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12312
dbbca37d
TT
123132014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12316 * target.c (target_fileio_unlink): Add argument.
12317 * remote.c (remote_hostio_unlink): Add 'self' argument.
12318 (remote_file_delete): Update.
12319 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12320
df39ea25
TT
123212014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12324 * target.c (target_fileio_close): Add argument.
12325 * remote.c (remote_hostio_close): Add 'self' argument.
12326 (remote_hostio_close_cleanup): Update.
12327 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12328 Update.
12329 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12330
a3be983c
TT
123312014-02-19 Tom Tromey <tromey@redhat.com>
12332
12333 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12334 * target.c (target_fileio_pread): Add argument.
12335 * remote.c (remote_hostio_pread): Add 'self' argument.
12336 (remote_bfd_iovec_pread, remote_file_get): Update.
12337 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12338
0d866f62
TT
123392014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12342 * target.c (target_fileio_pwrite): Add argument.
12343 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12344 (remote_file_put): Update.
12345 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12346
cd897586
TT
123472014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12350 * target.c (target_fileio_open): Add argument.
12351 * remote.c (remote_hostio_open): Add 'self' argument.
12352 (remote_bfd_iovec_open): Add 'self' argument.
12353 (remote_file_put): Add 'self' argument.
12354 (remote_file_get): Add 'self' argument.
12355 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12356
78eff0ec
TT
123572014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12360 Add argument.
12361 (target_can_run_breakpoint_commands): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12364 argument.
12365 (remote_insert_breakpoint): Add 'self' argument.
12366 (remote_insert_hw_breakpoint): Add 'self' argument.
12367 (remote_can_run_breakpoint_commands): Add 'self' argument.
12368
efcc2da7
TT
123692014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target.h (struct target_ops)
12372 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12373 (target_supports_evaluation_of_breakpoint_conditions): Add
12374 argument.
12375 * target.c (update_current_target): Update.
12376 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12377 argument.
12378 (remote_insert_breakpoint): Add 'self' argument.
12379 (remote_insert_hw_breakpoint): Add 'self' argument.
12380 (remote_supports_cond_breakpoints): Add 'self' argument.
12381
6de37a3a
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12385 argument.
12386 (target_supports_string_tracing): Add argument.
12387 * target.c (update_current_target): Update.
12388 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12389
2bfc0540
TT
123902014-02-19 Tom Tromey <tromey@redhat.com>
12391
12392 * target.h (struct target_ops)
12393 <to_supports_disable_randomization>: Add argument.
12394 * target.c (find_default_supports_disable_randomization): Add
12395 argument.
12396 (target_supports_disable_randomization): Add argument.
12397 (find_default_supports_disable_randomization): Add 'self'
12398 argument.
12399 * remote.c (extended_remote_supports_disable_randomization): Add
12400 'self' argument.
12401 (remote_supports_disable_randomization): Add 'self' argument.
12402 (extended_remote_create_inferior): Update.
12403 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12404 'self' argument.
12405
7d178d6a
TT
124062014-02-19 Tom Tromey <tromey@redhat.com>
12407
12408 * target.h (struct target_ops)
12409 <to_supports_enable_disable_tracepoint>: Add argument.
12410 (target_supports_enable_disable_tracepoint): Add argument.
12411 * target.c (update_current_target): Update.
12412 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12413 argument.
12414
86ce2668
TT
124152014-02-19 Tom Tromey <tromey@redhat.com>
12416
12417 * target.h (struct target_ops) <to_supports_multi_process>: Add
12418 argument.
12419 (target_supports_multi_process): Add argument.
12420 * target.c (update_current_target): Update.
12421 * remote.c (remote_supports_multi_process): Add 'self' argument.
12422 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12423 argument.
12424 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12425 argument.
12426
4c612759
TT
124272014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * target.h (struct target_ops) <to_execution_direction>: Add
12430 argument.
12431 (target_execution_direction): Add argument.
12432 * target.c (default_execution_direction): Add 'self' argument.
12433 * record-full.c (record_full_execution_direction): Add 'self'
12434 argument.
12435
19db3e69
TT
124362014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12439 argument.
12440 (target_can_execute_reverse): Add argument.
12441 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12442 * record-full.c (record_full_can_execute_reverse): Add 'self'
12443 argument.
12444 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12445 argument.
12446
1e6b91a4
TT
124472014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12450 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12451 argument.
12452 (target_get_ada_task_ptid): Add argument.
12453 * target.c (update_current_target): Update.
12454 (default_get_ada_task_ptid): Add 'self' argument.
12455 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12456 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12457 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12458 argument.
12459 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12460 argument.
12461 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12462 argument.
12463 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12464 argument.
12465 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12466 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12467 argument.
12468
3c80fb48
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12472 (target_goto_bookmark): Add argument.
12473 * target.c (dummy_goto_bookmark): Add 'self' argument.
12474 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12475
dd0e2830
TT
124762014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12479 (target_get_bookmark): Add argument.
12480 * target.c (dummy_get_bookmark): Add 'self' argument.
12481 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12482
fc6691b2
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12486 argument.
12487 (target_make_corefile_notes): Add argument.
12488 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12489 * procfs.c (procfs_make_note_section): Add 'self' argument.
12490 (procfs_make_note_section): Add 'self' argument.
12491 (procfs_make_note_section): Add 'self' argument.
12492 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12493 argument.
12494 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12495 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12496 * exec.c (exec_make_note_section): Add 'self' argument.
12497 (exec_make_note_section): Add 'self' argument.
12498
2e73927c
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_find_memory_regions>: Add
12502 argument.
12503 (target_find_memory_regions): Add argument.
12504 * target.c (dummy_find_memory_regions): Add 'self' argument.
12505 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12506 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12507 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12508 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12509 * exec. (exec_do_find_memory_regions): New global.
12510 (exec_set_find_memory_regions): Rewrite.
12511 (exec_find_memory_regions): New function.
12512 (init_exec_ops): Use exec_find_memory_regions.
12513
2a9a2795
TT
125142014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_supports_non_stop>: Add
12517 argument.
12518 * target.c (find_default_supports_non_stop): Add argument.
12519 (target_supports_non_stop): Add argument.
12520 (find_default_supports_non_stop): Add 'self' argument.
12521 * remote.c (remote_supports_non_stop): Add 'self' argument.
12522 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12523
4ab76ea3
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_log_command>: Add argument.
12527 (target_log_command): Add argument.
12528 * serial.h (serial_log_command): Add 'self' argument.
12529 * serial.c (serial_log_command): Add 'self' argument.
12530
8dd27370
TT
125312014-02-19 Tom Tromey <tromey@redhat.com>
12532
12533 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12534 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12535 argument.
12536 (target_pid_to_exec_file): Add argument.
12537 * target.c (debug_to_pid_to_exec_file): Add argument.
12538 (update_current_target): Update.
12539 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12540 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12541 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12542 (linux_handle_extended_wait): Update.
12543 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12544 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12545 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12546 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12547
1aac633b
TT
125482014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * target.h (struct target_ops) <to_rcmd>: Add argument.
12551 (target_rcmd): Add argument.
12552 * target.c (debug_to_rcmd): Add argument.
12553 (update_current_target, do_monitor_command): Update.
12554 * remote.c (remote_rcmd): Add 'self' argument.
12555 * monitor.c (monitor_rcmd): Add 'self' argument.
12556
1eab8a48
TT
125572014-02-19 Tom Tromey <tromey@redhat.com>
12558
12559 * windows-nat.c (windows_stop): Add 'self' argument.
12560 * target.h (struct target_ops) <to_stop>: Add argument.
12561 * target.c (target_stop): Add argument.
12562 (debug_to_stop): Add argument.
12563 (update_current_target): Update.
12564 * remote.c (remote_stop): Add 'self' argument.
12565 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12566 (gdbsim_cntrl_c): Update.
12567 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12568 * procfs.c (procfs_stop): Add 'self' argument.
12569 * nto-procfs.c (procfs_stop): Add 'self' argument.
12570 * monitor.c (monitor_stop): Add 'self' argument.
12571 (monitor_open): Update.
12572 * linux-nat.c (linux_nat_stop): Add argument.
12573 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12574 * gnu-nat.c (gnu_stop): Add 'self' argument.
12575 * darwin-nat.c (darwin_stop): Add 'self' argument.
12576
503a628d
TT
125772014-02-19 Tom Tromey <tromey@redhat.com>
12578
12579 * target.h (struct target_ops) <to_thread_name>: Add argument.
12580 * target.c (target_thread_name): Add argument.
12581 (update_current_target): Update.
12582 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12583
c15906d8
TT
125842014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_extra_thread_info>: Add
12587 argument.
12588 (target_extra_thread_info): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_threads_extra_info): Add 'self' argument.
12591 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12592 argument.
12593 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12594 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12595 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12596 argument.
12597 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12598 argument.
12599 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12600 argument.
12601 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12602 argument.
12603
daf5e9b6
TT
126042014-02-19 Tom Tromey <tromey@redhat.com>
12605
12606 * target.h (struct target_ops) <to_program_signals>: Add argument.
12607 * target.c (target_program_signals): Add argument.
12608 * remote.c (remote_program_signals): Add 'self' argument.
12609
94bedb42
TT
126102014-02-19 Tom Tromey <tromey@redhat.com>
12611
12612 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12613 * target.c (target_pass_signals): Add argument.
12614 * remote.c (remote_pass_signals): Add 'self' argument.
12615 (remote_start_remote): Update.
12616 * procfs.c (procfs_pass_signals): Add 'self' argument.
12617 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12618 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12619 (linux_nat_create_inferior, linux_nat_attach): Update.
12620
da82bd6b
TT
126212014-02-19 Tom Tromey <tromey@redhat.com>
12622
12623 * windows-nat.c (windows_can_run): Add 'self' argument.
12624 * target.h (struct target_ops) <to_can_run>: Add argument.
12625 (target_can_run): Add argument.
12626 * target.c (debug_to_can_run): Add argument.
12627 (update_current_target): Update.
12628 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12629 * inf-child.c (inf_child_can_run): Add 'self' argument.
12630 * go32-nat.c (go32_can_run): Add 'self' argument.
12631
d796e1d6
TT
126322014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target.h (struct target_ops) <to_has_exited>: Add argument.
12635 (target_has_exited): Add argument.
12636 * target.c (debug_to_has_exited): Add argument.
12637 (update_current_target): Update.
12638
ff214e67
TT
126392014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12642 argument.
12643 (target_set_syscall_catchpoint): Add argument.
12644 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12645 argument.
12646 * target.c (update_current_target): Update.
12647
758e29d2
TT
126482014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12651 argument.
12652 (target_remove_exec_catchpoint): Add argument.
12653 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12654 (update_current_target): Update.
12655 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12656 argument.
12657
ba025e51
TT
126582014-02-19 Tom Tromey <tromey@redhat.com>
12659
12660 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12661 argument.
12662 (target_insert_exec_catchpoint): Add argument.
12663 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12664 (update_current_target): Update.
12665 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12666 argument.
12667
e98cf0cd
TT
126682014-02-19 Tom Tromey <tromey@redhat.com>
12669
12670 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12671 argument.
12672 (target_remove_vfork_catchpoint): Add argument.
12673 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12674 (update_current_target): Update.
12675 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12676 argument.
12677
3ecc7da0
TT
126782014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12681 argument.
12682 (target_insert_vfork_catchpoint): Add argument.
12683 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12684 (update_current_target): Update.
12685 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12686 argument.
12687
973fc227
TT
126882014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12691 argument.
12692 (target_remove_fork_catchpoint): Add argument.
12693 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12694 (update_current_target): Update.
12695 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12696 argument.
12697
a863b201
TT
126982014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12701 argument.
12702 (target_insert_fork_catchpoint): Add argument.
12703 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12704 (update_current_target): Update.
12705 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12706 argument.
12707
2e97a79e
TT
127082014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12711 argument.
12712 (target_post_startup_inferior): Add argument.
12713 * target.c (debug_to_post_startup_inferior): Add argument.
12714 (update_current_target): Update.
12715 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12716 argument.
12717 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12718 argument.
12719 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12720 argument.
12721 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12722 argument.
12723 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12724 'self' argument.
12725 (super_post_startup_inferior): Likewise.
12726 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12727 'self' argument.
12728 (super_post_startup_inferior): Likewise.
12729 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12730 Add 'self' argument.
12731 (super_post_startup_inferior): Likewise.
12732
71a9f134
TT
127332014-02-19 Tom Tromey <tromey@redhat.com>
12734
12735 * target.h (struct target_ops) <to_load>: Add argument.
12736 * target.c (target_load): Add argument.
12737 (debug_to_load): Add argument.
12738 (update_current_target): Update.
12739 * remote.c (remote_load): Add 'self' argument.
12740 * remote-sim.c (gdbsim_load): Add 'self' argument.
12741 * remote-mips.c (mips_load): Add 'self' argument.
12742 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12743 * monitor.c (monitor_load): Add 'self' argument.
12744 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12745
0a4f40a2
TT
127462014-02-19 Tom Tromey <tromey@redhat.com>
12747
12748 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12749 (target_terminal_info): Add argument.
12750 * target.c (debug_to_terminal_info): Add argument.
12751 (default_terminal_info): Likewise.
12752 * inflow.c (child_terminal_info): Add 'self' argument.
12753 * inferior.h (child_terminal_info): Add 'self' argument.
12754 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12755
ae3bd431
TT
127562014-02-19 Tom Tromey <tromey@redhat.com>
12757
12758 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12759 argument.
12760 (target_terminal_save_ours): Add argument.
12761 * target.c (debug_to_terminal_save_ours): Add argument.
12762 (update_current_target): Update.
12763 * inflow.c (terminal_save_ours): Add 'self' argument.
12764 * inferior.h (terminal_save_ours): Add 'self' argument.
12765
e3594fd1
TT
127662014-02-19 Tom Tromey <tromey@redhat.com>
12767
12768 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12769 (target_terminal_ours): Add argument.
12770 * target.c (debug_to_terminal_ours): Add argument.
12771 (update_current_target): Update.
12772 * remote.c (remote_terminal_ours): Add 'self' argument.
12773 (remote_close): Update.
12774 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12775 * inflow.c (terminal_ours): Add 'self' argument.
12776 * inferior.h (terminal_ours): Add 'self' argument.
12777 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12778
2e1e1a19
TT
127792014-02-19 Pedro Alves <palves@redhat.com>
12780 Tom Tromey <tromey@redhat.com>
12781
12782 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12783 argument.
12784 (target_terminal_ours_for_output): Add argument.
12785 * target.c (debug_to_terminal_ours_for_output): Add argument.
12786 (update_current_target): Update.
12787 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12788 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12789 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12790
d2f640d4
TT
127912014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * target.h (struct target_ops) <to_terminal_inferior>: Add
12794 argument.
12795 * target.c (target_terminal_inferior): Add argument.
12796 (update_current_target): Update.
12797 * remote.c (remote_terminal_inferior): Add 'self' argument.
12798 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12799 * inflow.c (terminal_inferior): Add 'self' argument.
12800 * inferior.h (terminal_inferior): Add 'self' argument.
12801 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12802 (go32_terminal_inferior): Add 'self' argument.
12803
c42bf286
TT
128042014-02-19 Tom Tromey <tromey@redhat.com>
12805
12806 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12807 (target_terminal_init): Add argument.
12808 * target.c (debug_to_terminal_init): Add argument.
12809 (update_current_target): Update.
12810 * inflow.c (terminal_init_inferior): Add 'self' argument.
12811 * inferior.h (terminal_init_inferior): Add 'self' argument.
12812 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12813 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12814
c3a5ff89
TT
128152014-02-19 Tom Tromey <tromey@redhat.com>
12816
12817 * target.h (struct target_ops)
12818 <to_can_accel_watchpoint_condition>: Add argument.
12819 (target_can_accel_watchpoint_condition): Add argument.
12820 * target.c (debug_to_can_accel_watchpoint_condition): Add
12821 argument.
12822 (update_current_target): Update.
12823 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12824 'self' argument.
12825
31568a15
TT
128262014-02-19 Tom Tromey <tromey@redhat.com>
12827
12828 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12829 Add argument.
12830 (target_region_ok_for_hw_watchpoint): Add argument.
12831 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12832 (default_region_ok_for_hw_watchpoint): Add argument.
12833 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12834 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12835 argument.
12836 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12837 argument.
12838 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12839 argument.
12840 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12841 'self' argument.
12842 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12843 'self' argument.
12844 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12845 'self' argument.
12846 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12847 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12848 'self' argument.
12849 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12850 Add 'self' argument.
12851
7bb99c53
TT
128522014-02-19 Tom Tromey <tromey@redhat.com>
12853
12854 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12855 argument.
12856 (target_insert_watchpoint): Add argument.
12857 * target.c (debug_to_insert_watchpoint): Add argument.
12858 (update_current_target): Update.
12859 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12860 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12861 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12862 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12863 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12864 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12865 argument.
12866 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12867 (procfs_insert_hw_watchpoint): Add 'self' argument.
12868 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12869 argument.
12870 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12871 argument.
12872 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12873 argument.
12874 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12875 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12876 argument.
12877 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12878 'self' argument.
12879
11b5219a
TT
128802014-02-19 Tom Tromey <tromey@redhat.com>
12881
12882 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12883 argument.
12884 (target_remove_watchpoint): Add argument.
12885 * target.c (debug_to_remove_watchpoint): Add argument.
12886 (update_current_target): Update.
12887 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12888 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12889 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12890 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12891 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12892 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12893 argument.
12894 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12895 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12896 argument.
12897 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12898 argument.
12899 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12900 argument.
12901 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12902 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12903 argument.
12904 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12905 'self' argument.
12906
a64dc96c
TT
129072014-02-19 Tom Tromey <tromey@redhat.com>
12908
12909 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12910 argument.
12911 (target_remove_hw_breakpoint): Add argument.
12912 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12913 (update_current_target): Update.
12914 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12915 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12916 argument.
12917 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12918 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12919 argument.
12920 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12921 'self' argument.
12922
23a26771
TT
129232014-02-19 Tom Tromey <tromey@redhat.com>
12924
12925 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12926 argument.
12927 (target_insert_hw_breakpoint): Add argument.
12928 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12929 (update_current_target): Update.
12930 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12931 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12932 argument.
12933 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12934 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12935 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12936 argument.
12937 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12938 'self' argument.
12939
5461485a
TT
129402014-02-19 Tom Tromey <tromey@redhat.com>
12941
12942 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12943 argument.
12944 (target_can_use_hardware_watchpoint): Add argument.
12945 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12946 (update_current_target): Update.
12947 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12948 argument.
12949 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12950 argument.
12951 * remote.c (remote_check_watch_resources): Add 'self' argument.
12952 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12953 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12954 argument.
12955 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12956 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12957 argument.
12958 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12959 argument.
12960 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12961 argument.
12962 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12963 argument.
12964 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12965 argument.
12966 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12967 argument.
12968 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12969 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12970 argument.
12971 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12972 'self' argument.
12973
f045800c
TT
129742014-02-19 Tom Tromey <tromey@redhat.com>
12975
12976 * target.h (struct target_ops) <to_post_attach>: Add argument.
12977 (target_post_attach): Add argument.
12978 * target.c (debug_to_post_attach): Add argument.
12979 (update_current_target): Update.
12980 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12981 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12982 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12983 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12984 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12985
de90e03d
TT
129862014-02-19 Tom Tromey <tromey@redhat.com>
12987
12988 * windows-nat.c (windows_close): Add 'self' argument.
12989 * tracepoint.c (tfile_close): Add 'self' argument.
12990 * target.h (struct target_ops) <to_close>: Add argument.
12991 * target.c (target_close): Add argument.
12992 (update_current_target): Update.
12993 * remote.c (remote_close): Add 'self' argument.
12994 * remote-sim.c (gdbsim_close): Add 'self' argument.
12995 * remote-mips.c (mips_close): Add 'self' argument.
12996 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12997 * record-full.c (record_full_close): Add 'self' argument.
12998 * record-btrace.c (record_btrace_close): Add 'self' argument.
12999 * monitor.h (monitor_close): Add 'self' argument.
13000 * monitor.c (monitor_close): Add 'self' argument.
13001 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13002 * linux-nat.c (linux_nat_close): Add argument.
13003 * go32-nat.c (go32_close): Add 'self' argument.
13004 * exec.c (exec_close_1): Add 'self' argument.
13005 * ctf.c (ctf_close): Add 'self' argument.
13006 * corelow.c (core_close): Add 'self' argument.
13007 (core_close_cleanup): Update.
13008 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13009 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13010
9dd130a0
TT
130112014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * remote.c (remote_load): New function.
13014 (init_remote_ops): Use it.
13015
46917d26
TT
130162014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13019 argument.
13020 * common/linux-btrace.h (linux_supports_btrace): Update.
13021 * remote.c (remote_supports_btrace): Add "self" argument.
13022 * target-delegates.c: Rebuild.
13023 * target.c (target_supports_btrace): Remove.
13024 * target.h (struct target_ops) <to_supports_btrace>: Add
13025 target_ops argument.
13026 (target_supports_btrace): New define.
13027
6b84065d
TT
130282014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * record-full.c (record_full_beneath_to_resume_ops)
13031 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13032 (record_full_beneath_to_wait)
13033 (record_full_beneath_to_store_registers_ops)
13034 (record_full_beneath_to_store_registers)
13035 (record_full_beneath_to_xfer_partial_ops)
13036 (record_full_beneath_to_xfer_partial)
13037 (record_full_beneath_to_insert_breakpoint_ops)
13038 (record_full_beneath_to_insert_breakpoint)
13039 (record_full_beneath_to_remove_breakpoint_ops)
13040 (record_full_beneath_to_remove_breakpoint)
13041 (record_full_beneath_to_stopped_by_watchpoint)
13042 (record_full_beneath_to_stopped_data_address)
13043 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13044 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13045 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13046 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13047 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13048 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13049 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13050 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13051 (record_full_resume, record_full_wait_1)
13052 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13053 (record_full_store_registers, record_full_xfer_partial)
13054 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13055 (record_full_async, record_full_core_xfer_partial): Use target
13056 delegation.
13057 * target-delegates.c: Rebuild.
13058 * target.c (current_xfer_partial): Remove.
13059 (update_current_target): Do not INHERIT or de_fault
13060 to_insert_breakpoint, to_remove_breakpoint,
13061 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13062 to_is_async_p, to_async. Do not set to_xfer_partial field.
13063 (default_xfer_partial): Simplify.
13064 (current_xfer_partial): Remove.
13065 (target_wait, target_resume): Simplify.
13066 (find_default_can_async_p, find_default_is_async_p): Update.
13067 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13068 to_xfer_partial, to_stopped_by_watchpoint,
13069 to_stopped_data_address.
13070 (target_store_registers): Simplify.
13071 (forward_target_remove_breakpoint)
13072 (forward_target_insert_breakpoint): Remove.
13073 (target_remove_breakpoint, target_insert_breakpoint)
13074 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13075 * target.h (struct target_ops) <to_resume, to_wait,
13076 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13077 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13078 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13079 markup.
13080 (forward_target_remove_breakpoint)
13081 (forward_target_insert_breakpoint): Remove.
13082 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13083 directly.
13084 (record_btrace_insert_breakpoint): Delegate directly.
13085
1101cb7b
TT
130862014-02-19 Tom Tromey <tromey@redhat.com>
13087
13088 PR build/7701:
13089 * target-delegates.c: New file.
13090 * target.c: Include target-delegates.c.
13091 (init_dummy_target): Call install_dummy_methods.
13092 (complete_target_initialization): Call install_delegators.
13093 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13094 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13095 * make-target-delegates: New file.
13096
8b06beed
TT
130972014-02-19 Tom Tromey <tromey@redhat.com>
13098
13099 * record.c (find_record_target): Use find_target_at.
13100 * target.c (find_target_at): New function.
13101 * target.h (find_target_at): Declare.
13102
6a109b6b
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13106 Add 'ops' argument.
13107 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13108 'ops' argument.
13109 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13110 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13111 'ops' argument.
13112 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13113 argument.
13114 * linux-nat.c (save_sigtrap): Update.
13115 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13116 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13117 (linux_nat_close): Update.
13118 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13119 argument.
13120 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13121 argument.
13122 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13123 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13124 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13125 (tmp_to_async): Add 'ops' argument.
13126 (record_full_stopped_by_watchpoint, record_full_async)
13127 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13128 argument.
13129 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13130 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13131 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13132 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13133 (remote_is_async_p, remote_async): Add 'ops' argument.
13134 (remote_stopped_data_address): Update.
13135 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13136 * target.c (update_current_target)
13137 (find_default_can_async_p, find_default_is_async_p): Update.
13138 (init_dummy_target): Update.
13139 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13140 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13141 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13142 (target_can_async_p, target_is_async_p, target_async)
13143 (target_stopped_by_watchpoint): Update.
13144
e095146b
YQ
131452014-02-19 Yao Qi <yao@codesourcery.com>
13146
13147 PR gdb/16220
13148 * gdbarch.sh: Remove startup_gdbarch.
13149 * gdbarch.c: Regenerated.
13150 * gdbarch.h: Likewise.
13151
bc3c6b36
KB
131522014-02-17 Kevin Buettner <kevinb@redhat.com>
13153
13154 * rl78-tdep.c (rl78_g10_register_name): New function.
13155 (rl78_return_value): Add g10 support.
13156 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13157 g10.
13158
98dc0167 131592014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13160
13161 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13162 (SUBDIR_GUILE_SRCS): Ditto.
13163 (scm-gsmob.o): Ditto.
13164
842c05cd
YQ
131652014-02-17 Yao Qi <yao@codesourcery.com>
13166
13167 * gnu-nat.c (ILL_RPC): Declare defined function.
13168
25c0bd04
YQ
131692014-02-17 Yao Qi <yao@codesourcery.com>
13170
13171 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13172 mach_msg_type_number_t.
13173 (gnu_write_inferior): Likewise.
13174
a9a758e3
YQ
131752014-02-17 Yao Qi <yao@codesourcery.com>
13176
13177 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13178 in format string.
13179 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13180 (inf_validate_procs, inf_signal): Likewise.
13181 (S_exception_raise_request): Likewise.
13182 (do_mach_notify_dead_name): Likewise.
13183 (steal_exc_port): Likewise.
13184 (gnu_read_inferior): Change 'copy_count''s type to
13185 mach_msg_type_number_t.
13186 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13187 format string.
13188
bae8023e
TS
131892014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13190
c82f56d9
TS
13191 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13192 flag. Adjust all users; in particular...
13193 (gnu_wait): ..., don't decrement its value in here...
13194 (gnu_create_inferior): ..., and instead set the flag in here,
13195 around the startup_inferior call, and call that one with
13196 START_INFERIOR_TRAPS_EXPECTED.
13197
3398af6a
TS
13198 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13199 (ILL_RPC): ... new macro.
13200 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13201 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13202 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13203 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13204 functions with ILL_RPC macro.
13205 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13206 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13207 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13208 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13209 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13210 (S_proc_getlogin_reply, S_proc_getsid_reply)
13211 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13212 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13213 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13214 (S_proc_getnports_reply, S_proc_is_important_reply)
13215 (S_proc_get_code_reply): New stub functions, generated with
13216 ILL_RPC macro.
13217
d47642c9
TS
13218 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13219 collected the type check structures.
13220
bae8023e
TS
13221 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13222
8a55ffb0
DE
132232014-02-14 Doug Evans <dje@google.com>
13224
13225 * target.c (target_write_partial): Fix result type.
13226
c2853f3d
JM
132272014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13228
13229 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13230 the proper offsets to access fpregset_t.
13231
ac61d2db
SA
132322014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13233
13234 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13235 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13236 * h8300-tdep.c (setmachinelist): Remove global.
13237 * hppa-tdep.c (hppa_sigtramp): Remove global.
13238 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13239 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13240 * ravenscar-thread.c (update_target_observer): Remove global.
13241 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13242
9d2d0b8b
TT
132432014-02-12 Tom Tromey <tromey@redhat.com>
13244
13245 * common/rsp-low.c: Update comments.
13246 * common/rsp-low.h: Update comments.
13247
a7191e8b
TT
132482014-02-12 Tom Tromey <tromey@redhat.com>
13249
13250 * common/rsp-low.c (convert_ascii_to_int): Remove.
13251 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13252
ff0e980e
TT
132532014-02-12 Tom Tromey <tromey@redhat.com>
13254
13255 * common/rsp-low.h (unhexify): Don't declare.
13256 * common/rsp-low.c (unhexify): Remove.
13257
e9371aff
TT
132582014-02-12 Tom Tromey <tromey@redhat.com>
13259
13260 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13261 * common/rsp-low.c (convert_int_to_ascii): Remove.
13262
971dc0b8
TT
132632014-02-12 Tom Tromey <tromey@redhat.com>
13264
13265 * common/rsp-low.h (hexify): Don't declare.
13266 * common/rsp-low.c (hexify): Remove.
13267
0a822afb
TT
132682014-02-12 Tom Tromey <tromey@redhat.com>
13269
13270 * common/rsp-low.c (hexify): Never take strlen of argument.
13271
9f1b45b0
TT
132722014-02-12 Tom Tromey <tromey@redhat.com>
13273
13274 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13275 * remote.c (extended_remote_run, remote_rcmd)
13276 (remote_download_trace_state_variable, remote_save_trace_data)
13277 (remote_set_trace_notes): Update.
13278 * tracepoint.c (encode_source_string, tfile_write_status)
13279 (tfile_write_uploaded_tsv): Update.
13280
9c3d6531
TT
132812014-02-12 Tom Tromey <tromey@redhat.com>
13282
13283 * tracepoint.c: Include rsp-low.h.
13284 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13285 * remote.c: Include rsp-low.h.
13286 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13287 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13288 (remote_unescape_input): Move to common/rsp-low.c.
13289 * common/rsp-low.h: New file.
13290 * common/rsp-low.c: New file.
13291 * Makefile.in (SFILES): Add common/rsp-low.c.
13292 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13293 (COMMON_OBS): Add rsp-low.o.
13294 (rsp-low.o): New target.
13295
01fd3ea5
TT
132962014-02-12 Tom Tromey <tromey@redhat.com>
13297
13298 * utils.h: Include print-utils.h.
13299 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13300 (int_string, core_addr_to_string, core_addr_to_string_nz)
13301 (hex_string, hex_string_custom): Don't declare.
13302 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13303 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13304 (hex_string_custom, int_string, core_addr_to_string)
13305 (core_addr_to_string_nz, host_address_to_string): Move to
13306 common/print-utils.c.
13307 * common/print-utils.h: New file.
13308 * common/print-utils.c: New file
13309 * Makefile.in (SFILES): Add common/print-utils.c.
13310 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13311 (COMMON_OBS): Add print-utils.o.
13312 (print-utils.o): New target.
13313
9fb50108
TT
133142014-02-12 Tom Tromey <tromey@redhat.com>
13315
13316 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13317
0548b5db
MK
133182014-02-12 Mark Kettenis <kettenis@gnu.org>
13319
13320 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13321
493443a4
MK
133222014-02-12 Mark Kettenis <kettenis@gnu.org>
13323
13324 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13325 if a PT_IO ptrace request returns sucessfully but indicates that 0
13326 bytes were transferred.
13327
706d0883
PA
133282014-02-12 Pedro Alves <palves@redhat.com>
13329 Kevin Buettner <kevinb@redhat.com>
13330
13331 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13332 TYPE_INSTANCE_FLAG_CODE_SPACE.
13333
5caa2f0b
PA
133342014-02-12 Pedro Alves <palves@redhat.com>
13335
13336 * h8300-tdep.c (pseudo_from_raw_register)
13337 (raw_from_pseudo_register): New functions.
13338 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13339 them.
13340
76fd5f74
PA
133412014-02-12 Pedro Alves <palves@redhat.com>
13342
13343 * h8300-tdep.c (h8300_register_sim_regno): New function.
13344 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13345 gdbarch_register_sim_regno hook.
13346
8f008406
SA
133472014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13348
13349 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13350
195abc10
SA
133512014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13352
13353 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13354
93ffa5b9
MK
133552014-02-12 Mark Kettenis <kettenis@gnu.org>
13356
13357 * obsd-tdep.h (obsd_init_abi): New prototype.
13358 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13359 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13360 (obsd_init_abi): New functions.
13361 * i386obsd-tdep.c: Include "obsd-tdep.h".
13362 (i386obsd_init_abi): Call obsd_init_abi.
13363 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13364 (amd64obsd_init_abi): Call obsd_init_abi.
13365 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13366 obsd-tdep.c to gdb_target_obs.
13367
49caec94
JM
133682014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13369
13370 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13371 double float arguments to 16-byte in the argument slots.
13372
e1402065
DE
133732014-02-11 Doug Evans <xdje42@gmail.com>
13374
13375 * configure.ac: Don't crash if pkg-config is not found and guile
13376 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13377 in guile checks.
13378 * configure: Regenerate.
13379
edcc890f
YQ
133802014-02-11 Yao Qi <yao@codesourcery.com>
13381
13382 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13383 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13384 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13385 * gnu-nat.c (gnu_xfer_memory): Likewise.
13386 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13387 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13388 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13389 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13390
9b409511
YQ
133912014-02-11 Yao Qi <yao@codesourcery.com>
13392
13393 * target.h (enum target_xfer_error): Rename to ...
13394 (enum target_xfer_status): ... it. New. All users updated.
13395 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13396 New.
13397 (TARGET_XFER_STATUS_ERROR_P): New macro.
13398 (target_xfer_error_to_string): Remove declaration.
13399 (target_xfer_status_to_string): Declare.
13400 (target_xfer_partial_ftype): Adjust it.
13401 (struct target_ops) <to_xfer_partial>: Return
13402 target_xfer_status. Add argument xfered_len. Update
13403 comments.
13404 * target.c (target_xfer_error_to_string): Rename to ...
13405 (target_xfer_status_to_string): ... it. New. All callers
13406 updated.
13407 (target_read_live_memory): Likewise. Call target_xfer_partial
13408 instead of target_read.
13409 (memory_xfer_live_readonly_partial): Return
13410 target_xfer_status. Add argument xfered_len.
13411 (raw_memory_xfer_partial): Likewise.
13412 (memory_xfer_partial_1): Likewise.
13413 (memory_xfer_partial): Likewise.
13414 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13415 properly. Update debug message.
13416 (default_xfer_partial, current_xfer_partial): Likewise.
13417 (target_write_partial): Likewise.
13418 (target_read_partial): Likewise. All callers updated.
13419 (read_whatever_is_readable): Likewise.
13420 (target_write_with_progress): Likewise.
13421 (target_read_alloc_1): Likewise.
13422
13423 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13424 * auxv.c (procfs_xfer_auxv): Likewise.
13425 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13426 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13427 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13428 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13429 * corefile.c (read_memory): Adjust.
13430 * corelow.c (core_xfer_partial): Likewise.
13431 * ctf.c (ctf_xfer_partial): Likewise.
13432 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13433 updated.
13434 (darwin_xfer_partial): Likewise.
13435 * exec.c (section_table_xfer_memory_partial): Likewise. All
13436 callers updated.
13437 (exec_xfer_partial): Likewise.
13438 * exec.h (section_table_xfer_memory_partial): Update
13439 declaration.
13440 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13441 negative.
13442 (gnu_xfer_partial): Likewise.
13443 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13444 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13445 (ia64_hpux_xfer_solib_got): Likewise.
13446 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13447 type of 'partial_len' to ULONGEST.
13448 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13449 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13450 (linux_nat_xfer_partial): Likewise.
13451 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13452 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13453 * monitor.c (monitor_xfer_memory): Likewise.
13454 (monitor_xfer_partial): Likewise.
13455 * procfs.c (procfs_xfer_partial): Likewise.
13456 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13457 * record-full.c (record_full_xfer_partial): Likewise.
13458 (record_full_core_xfer_partial): Likewise.
13459 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13460 (gdbsim_xfer_partial): Likewise.
13461 * remote.c (remote_write_bytes_aux): Likewise. All callers
13462 updated.
13463 (remote_write_bytes, remote_read_bytes): Likewise. All
13464 callers updated.
13465 (remote_flash_erase): Likewise. All callers updated.
13466 (remote_write_qxfer): Likewise. All callers updated.
13467 (remote_read_qxfer): Likewise. All callers updated.
13468 (remote_xfer_partial): Likewise.
13469 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13470 (rs6000_xfer_shared_libraries): Likewise.
13471 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13472 (sol_thread_xfer_partial): Likewise.
13473 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13474 (sparc_xfer_partial): Likewise.
13475 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13476 updated.
13477 (spu_xfer_partial): Likewise.
13478 * spu-multiarch.c (spu_xfer_partial): Likewise.
13479 * tracepoint.c (tfile_xfer_partial): Likewise.
13480 * windows-nat.c (windows_xfer_memory): Likewise.
13481 (windows_xfer_shared_libraries): Likewise.
13482 (windows_xfer_partial): Likewise.
13483 * valprint.c: Replace 'target_xfer_error' with
13484 'target_xfer_status' in comments.
13485
a8e63083
JB
134862014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13487
13488 Checked in by Joel Brobecker <brobecker@adacore.com>.
13489 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13490
e86b67d3
JB
134912014-02-11 Joel Brobecker <brobecker@adacore.com>
13492
13493 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13494 function parameters.
13495
4b7d1f7f
WN
134962014-02-10 Will Newton <will.newton@linaro.org>
13497
13498 * elfread.c (elf_rel_plt_read): Look for a .got section if
13499 looking up .got.plt fails.
13500 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13501 on address passed to elf_gnu_ifunc_record_cache.
13502 (elf_gnu_ifunc_resolve_addr): Likewise.
13503 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13504
961842b2
JM
135052014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13506
13507 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13508 (X_RETTURN): New macro.
13509 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13510
13511 * sparc64-tdep.c (sparc64_init_abi): Hook
13512 sparc_in_function_epilogue_p.
13513
3f03e7b1
GB
135142014-02-10 Gary Benson <gbenson@redhat.com>
13515
13516 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13517 Rename name_matcher to symbol_matcher.
13518
96f861ef
GB
135192014-02-10 Gary Benson <gbenson@redhat.com>
13520
13521 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13522 Use expand_symtabs_file_matcher_ftype and
13523 expand_symtabs_symbol_matcher_ftype.
13524
ee01b665
JB
135252014-02-10 Joel Brobecker <brobecker@adacore.com>
13526
13527 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13528 (struct ada_symbol_cache): New.
13529 (ada_free_symbol_cache): Forward declare.
13530 (struct ada_pspace_data): New.
13531 (ada_pspace_data_handle): New static global.
13532 (get_ada_pspace_data, ada_pspace_data_cleanup)
13533 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13534 (cache_space, cache): Delete, now folded inside struct
13535 ada_pspace_data.
13536 (ada_get_symbol_cache): New function.
13537 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13538 implementation.
13539 (_initialize_ada_language): Remove initialization of cache_space.
13540 Move call to observer_attach_inferior_exit up, grouping it
13541 with the other observer registrations inside this function.
13542 Rename command to be more general. Add call to
13543 register_program_space_data_with_cleanup.
13544
143adbbf
JB
135452014-02-10 Joel Brobecker <brobecker@adacore.com>
13546
13547 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13548 ada_new_objfile_observer.
13549 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13550 (_initialize_tasks): Update uses of ada_new_objfile_observer
13551 and ada_tasks_normal_stop_observer.
13552
aa4fb036
JB
135532014-02-10 Joel Brobecker <brobecker@adacore.com>
13554
13555 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13556 returned by the 'Length attribute to integer.
13557
9dee8cc6
JB
135582014-02-10 Joel Brobecker <brobecker@adacore.com>
13559
13560 * ada-lang.c (_initialize_ada_language): Initialize
13561 cache_space obstack.
13562
3d9434b5
JB
135632014-02-10 Joel Brobecker <brobecker@adacore.com>
13564
13565 * ada-lang.c (HASH_SIZE): New macro.
13566 (struct cache_entry): New type.
13567 (cache_space, cache): New static globals.
13568 (ada_clear_symbol_cache, find_entry): New functions.
13569 (lookup_cached_symbol, cache_symbol): Implement.
13570 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13571 (_initialize_ada_language): Attach ada_new_objfile_observer
13572 and ada_free_objfile_observer.
13573
f0c5f9b2
JB
135742014-02-10 Joel Brobecker <brobecker@adacore.com>
13575
13576 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13577 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13578 struct block * parameter.
13579 (ada_lookup_symbol_list_worker): Constify local variable "block".
13580 Remove cast which is no longer necessary.
13581
ed3ef339
DE
135822014-02-10 Doug Evans <xdje42@gmail.com>
13583
13584 Add Guile as an extension language.
13585 * NEWS: Mention Guile scripting.
13586 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13587 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13588 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13589 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13590 (CLIBS): Add GUILE_LIBS.
13591 (install-guile): New rule.
13592 (guile.o): New rule.
13593 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13594 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13595 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13596 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13597 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13598 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13599 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13600 * configure.ac: New option --with-guile.
13601 * configure: Regenerate.
13602 * config.in: Regenerate.
13603 * auto-load.c: Remove #include "python/python.h". Add #include
13604 "gdb/section-scripts.h".
13605 (source_section_scripts): Handle Guile scripts.
13606 (_initialize_auto_load): Add name of Guile objfile script to
13607 scripts-directory help text.
13608 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13609 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13610 (struct breakpoint): New member scm_bp_object.
13611 * defs.h (enum command_control_type): New value guile_control.
13612 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13613 "extension.h".
13614 (show_user): Update comment.
13615 (_initialize_cli_cmds): Update help text for "show user". Update help
13616 text for max-user-call-depth.
13617 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13618 "extension.h".
13619 (multi_line_command_p): Add guile_control.
13620 (print_command_lines): Handle guile_control.
13621 (execute_control_command, recurse_read_control_structure): Ditto.
13622 (process_next_line): Recognize "guile" commands.
13623 * disasm.c (gdb_disassemble_info): Make non-static.
13624 * disasm.h: #include "dis-asm.h".
13625 (struct gdbarch): Add forward decl.
13626 (gdb_disassemble_info): Declare.
13627 * extension.c: #include "guile/guile.h".
13628 (extension_languages): Add guile.
13629 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13630 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13631 * gdbtypes.c (get_unsigned_type_max): New function.
13632 (get_signed_type_minmax): New function.
13633 * gdbtypes.h (get_unsigned_type_max): Declare.
13634 (get_signed_type_minmax): Declare.
13635 * guile/README: New file.
13636 * guile/guile-internal.h: New file.
13637 * guile/guile.c: New file.
13638 * guile/guile.h: New file.
13639 * guile/scm-arch.c: New file.
13640 * guile/scm-auto-load.c: New file.
13641 * guile/scm-block.c: New file.
13642 * guile/scm-breakpoint.c: New file.
13643 * guile/scm-disasm.c: New file.
13644 * guile/scm-exception.c: New file.
13645 * guile/scm-frame.c: New file.
13646 * guile/scm-gsmob.c: New file.
13647 * guile/scm-iterator.c: New file.
13648 * guile/scm-lazy-string.c: New file.
13649 * guile/scm-math.c: New file.
13650 * guile/scm-objfile.c: New file.
13651 * guile/scm-ports.c: New file.
13652 * guile/scm-pretty-print.c: New file.
13653 * guile/scm-safe-call.c: New file.
13654 * guile/scm-string.c: New file.
13655 * guile/scm-symbol.c: New file.
13656 * guile/scm-symtab.c: New file.
13657 * guile/scm-type.c: New file.
13658 * guile/scm-utils.c: New file.
13659 * guile/scm-value.c: New file.
13660 * guile/lib/gdb.scm: New file.
13661 * guile/lib/gdb/boot.scm: New file.
13662 * guile/lib/gdb/experimental.scm: New file.
13663 * guile/lib/gdb/init.scm: New file.
13664 * guile/lib/gdb/iterator.scm: New file.
13665 * guile/lib/gdb/printing.scm: New file.
13666 * guile/lib/gdb/types.scm: New file.
13667 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13668 (VPATH): Add $(GUILE_SRCDIR).
13669 (GUILE_DIR): New variable.
13670 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13671 (all): Add stamp-guile dependency.
13672 (stamp-guile): New rule.
13673 (clean-guile, install-guile, uninstall-guile): New rules.
13674 (install-only): Add install-guile dependency.
13675 (uninstall): Add uninstall-guile dependency.
13676 (clean): Add clean-guile dependency.
13677
ac020ec5
DE
136782014-02-09 Doug Evans <xdje42@gmail.com>
13679
13680 Revert this patch (which I approved, mea culpa).
13681
13682 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13683
13684 * Makefile.in (all-lib): Remove.
13685 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13686
2a081c59
JK
136872014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13688
13689 Fix Python stack corruption.
13690 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13691 gdb_py_longest.
13692
0a6bd22d
MK
136932014-02-08 Mark Kettenis <kettenis@gnu.org>
13694
13695 * Makefile.in (all-lib): Remove.
13696 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13697
1a860409
DE
136982014-02-07 Doug Evans <dje@google.com>
13699
13700 * extension-priv.h (extension_language_script_ops): Add comment.
13701 (extension_language_ops): Add comment.
caf5a491 13702 (active_ext_lang_state): Fix typo in comment.
1a860409 13703
d137e6dc
PA
137042014-02-07 Pedro Alves <palves@redhat.com>
13705
0dcb32c3 13706 PR breakpoints/16292
d137e6dc
PA
13707 * infrun.c (handle_signal_stop) <signal arrives while stepping
13708 over a breakpoint>: Switch back to the stepping thread.
13709
ce6d0892
YQ
137102014-02-07 Yao Qi <yao@codesourcery.com>
13711
13712 * target.c (target_xfer_partial): Return zero if LEN is zero.
13713
2ed4b548
YQ
137142014-02-07 Yao Qi <yao@codesourcery.com>
13715
13716 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13717 (ld_so_xfer_auxv): Likewise.
13718 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13719 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13720 * corelow.c (core_xfer_partial): Likewise.
13721 * ctf.c (ctf_xfer_partial): Likewise.
13722 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13723 (darwin_xfer_partial): Likewise.
13724 * exec.c (exec_xfer_partial): Likewise.
13725 * gnu-nat.c (gnu_xfer_partial): Likewise.
13726 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13727 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13728 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13729 * linux-nat.c (linux_xfer_siginfo): Likewise.
13730 (linux_proc_xfer_spu): Likewise.
13731 * procfs.c (procfs_xfer_partial): Likewise.
13732 * record-full.c (record_full_xfer_partial): Likewise.
13733 (record_full_core_xfer_partial): Likewise.
13734 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13735 * remote.c (remote_write_qxfer): Likewise.
13736 (remote_write_qxfer, remote_read_qxfer): Likewise.
13737 (remote_xfer_partial): Likewise.
13738 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13739 (rs6000_xfer_shared_libraries): Likewise.
13740 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13741 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13742 (spu_xfer_partial): Likewise.
13743 * target.c (memory_xfer_partial_1): Likewise.
13744 * tracepoint.c (tfile_xfer_partial): Likewise.
13745 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13746 (windows_xfer_partial): Likewise.
13747
c09f20e4
YQ
137482014-02-07 Yao Qi <yao@codesourcery.com>
13749
13750 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13751 comments.
13752 (core_xfer_shared_libraries_aix): Likewise.
13753 * gdbarch.c, gdbarch.h: Regenerated.
13754 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13755 ULONGEST. Change 'len_avail' type to ULONGEST.
13756 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13757 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13758 declaration.
13759 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13760
8635b3bf
YQ
137612014-02-07 Yao Qi <yao@codesourcery.com>
13762
13763 * corefile.c (memory_error): Get 'exception' from ERR and pass
13764 'exception' to throw_error.
13765
6dddc817
DE
137662014-02-06 Doug Evans <xdje42@gmail.com>
13767
13768 * configure.ac (libpython checking): Remove all but python.o from
13769 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13770 * configure: Regenerate.
13771
13772 * Makefile.in (SFILES): Add extension.c.
13773 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13774 (COMMON_OBS): Add extension.o.
13775 * extension.h: New file.
13776 * extension-priv.h: New file.
13777 * extension.c: New file.
13778
13779 * python/python-internal.h: #include "extension.h".
13780 (gdbpy_auto_load_enabled): Declare.
13781 (gdbpy_apply_val_pretty_printer): Declare.
13782 (gdbpy_apply_frame_filter): Declare.
13783 (gdbpy_preserve_values): Declare.
13784 (gdbpy_breakpoint_cond_says_stop): Declare.
13785 (gdbpy_breakpoint_has_cond): Declare.
13786 (void source_python_script_for_objfile): Delete.
13787 * python/python.c: #include "extension-priv.h".
13788 Delete inclusion of "observer.h".
13789 (extension_language_python): Moved here and renamed from
13790 script_language_python in py-auto-load.c.
13791 Redefined to be of type extension_language_defn.
13792 (python_extension_script_ops): New global.
13793 (python_extension_ops): New global.
13794 (struct python_env): New member previous_active.
13795 (restore_python_env): Call restore_active_ext_lang.
13796 (ensure_python_env): Call set_active_ext_lang.
13797 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13798 New arg extlang.
13799 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13800 New arg extlang.
13801 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13802 New arg extlang.
13803 (gdbpy_eval_from_control_command): Renamed from
13804 eval_python_from_control_command, made static. New arg extlang.
13805 (gdbpy_source_script) Renamed from source_python_script, made static.
13806 New arg extlang.
13807 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13808 result to int. New arg extlang.
13809 (gdbpy_source_objfile_script): Renamed from
13810 source_python_script_for_objfile, made static. New arg extlang.
13811 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13812 static. New args extlang, extlang_printers. Change result type to
13813 "void".
13814 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13815 static. New arg extlang. Rename arg printers to extlang_printers
13816 and change type to ext_lang_type_printers *.
13817 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13818 static. Replace argument arg with extlang, extlang_printers.
13819 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13820 (!HAVE_PYTHON, source_python_script): Delete.
13821 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13822 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13823 (!HAVE_PYTHON, start_type_printers): Delete.
13824 (!HAVE_PYTHON, apply_type_printers): Delete.
13825 (!HAVE_PYTHON, free_type_printers): Delete.
13826 (_initialize_python): Delete call to observer_attach_before_prompt.
13827 (finalize_python): Set/restore active extension language.
13828 (gdbpy_finish_initialization) Renamed from
13829 finish_python_initialization, made static. New arg extlang.
13830 (gdbpy_initialized): New function.
13831 * python/python.h: #include "extension.h". Delete #include
13832 "value.h", "mi/mi-cmds.h".
13833 (extension_language_python): Declare.
13834 (GDBPY_AUTO_FILE_NAME): Delete.
13835 (enum py_bt_status): Moved to extension.h and renamed to
13836 ext_lang_bt_status.
13837 (enum frame_filter_flags): Moved to extension.h.
13838 (enum py_frame_args): Moved to extension.h and renamed to
13839 ext_lang_frame_args.
13840 (finish_python_initialization): Delete.
13841 (eval_python_from_control_command): Delete.
13842 (source_python_script): Delete.
13843 (apply_val_pretty_printer): Delete.
13844 (apply_frame_filter): Delete.
13845 (preserve_python_values): Delete.
13846 (gdbpy_script_language_defn): Delete.
13847 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13848 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13849
13850 * auto-load.c: #include "extension.h".
13851 (GDB_AUTO_FILE_NAME): Delete.
13852 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13853 (script_language_gdb): Delete, moved to extension.c and renamed to
13854 extension_language_gdb.
13855 (source_gdb_script_for_objfile): Delete.
13856 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13857 (loaded_script): Change type of language member to
13858 struct extension_language_defn *.
13859 (init_loaded_scripts_info): Initialize
13860 unsupported_script_warning_printed.
13861 (maybe_add_script): Make static. Change type of language arg to
13862 struct extension_language_defn *.
13863 (clear_section_scripts): Reset unsupported_script_warning_printed.
13864 (auto_load_objfile_script_1): Rewrite to use extension language API.
13865 (auto_load_objfile_script): Make public. Remove support-compiled-in
13866 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13867 (source_section_scripts): Rewrite to use extension language API.
13868 (load_auto_scripts_for_objfile): Rewrite to use
13869 auto_load_scripts_for_objfile.
13870 (collect_matching_scripts_data): Change type of language member to
13871 struct extension_language_defn *.
13872 (auto_load_info_scripts): Change type of language arg to
13873 struct extension_language_defn *.
13874 (unsupported_script_warning_print): New function.
13875 (script_not_found_warning_print): Make static.
13876 (_initialize_auto_load): Rewrite construction of scripts-directory
13877 help.
13878 * auto-load.h (struct objfile): Add forward decl.
13879 (struct script_language): Delete.
13880 (struct auto_load_pspace_info): Add forward decl.
13881 (struct extension_language_defn): Add forward decl.
13882 (maybe_add_script): Delete.
13883 (auto_load_objfile_script): Declare.
13884 (script_not_found_warning_print): Delete.
13885 (auto_load_info_scripts): Update prototype.
13886 (auto_load_gdb_scripts_enabled): Declare.
13887 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13888 auto_load_python_scripts_enabled and made public.
13889 (script_language_python): Delete, moved to python.c.
13890 (gdbpy_script_language_defn): Delete.
13891 (info_auto_load_python_scripts): Update to use
13892 extension_language_python.
13893
13894 * breakpoint.c (condition_command): Replace call to
13895 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13896 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13897 with call to breakpoint_ext_lang_cond_says_stop.
13898 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13899 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13900 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13901 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13902 New arg slang.
13903 (local_setattro): Print name of extension language with existing
13904 stop condition.
13905
13906 * valprint.c (val_print, value_print): Update to call
13907 apply_ext_lang_val_pretty_printer.
13908 * cp-valprint.c (cp_print_value): Update call to
13909 apply_ext_lang_val_pretty_printer.
13910 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13911 (gdbpy_apply_val_pretty_printer): Renamed from
13912 apply_val_pretty_printer. New arg extlang.
13913 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13914
13915 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13916 extension language API.
13917 * cli/cli-script.c (execute_control_command): Update to call
13918 eval_ext_lang_from_control_command.
13919
13920 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13921 enum ext_lang_bt_status values. Update call to
13922 apply_ext_lang_frame_filter.
13923 (mi_cmd_stack_list_locals): Ditto.
13924 (mi_cmd_stack_list_args): Ditto.
13925 (mi_cmd_stack_list_variables): Ditto.
13926 * mi/mi-main.c: Delete #include "python/python-internal.h".
13927 Add #include "extension.h".
13928 (mi_cmd_list_features): Replace reference to python internal variable
13929 gdb_python_initialized with call to ext_lang_initialized_p.
13930
13931 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13932 Update to use enum ext_lang_frame_args. Update to call
13933 apply_ext_lang_frame_filter.
13934 * python/py-framefilter.c (extract_sym): Update to use enum
13935 ext_lang_bt_status.
13936 (extract_value, py_print_type, py_print_value): Ditto.
13937 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13938 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13939 (py_print_frame): Ditto.
13940 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13941 New arg extlang. Update to use enum ext_lang_bt_status.
13942
13943 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13944 finish_python_initialization. Replace with call to
13945 finish_ext_lang_initialization.
13946
13947 * typeprint.c (do_free_global_table): Update to call
13948 free_ext_lang_type_printers.
13949 (create_global_typedef_table): Update to call
13950 start_ext_lang_type_printers.
13951 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13952 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13953 (type_print_options): Change type of global_printers from "void *"
13954 to "struct ext_lang_type_printers *".
13955
13956 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13957 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13958 (gdbpy_preserve_values): Renamed from preserve_python_values.
13959 New arg extlang.
13960 (!HAVE_PYTHON, preserve_python_values): Delete.
13961
13962 * utils.c (quit_flag): Delete, moved to extension.c.
13963 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13964 extension.c.
13965
13966 * eval.c: Delete #include "python/python.h".
13967 * main.c: Delete #include "python/python.h".
13968
13969 * defs.h: Update comment.
13970
6af79985
JB
139712014-02-06 Joel Brobecker <brobecker@adacore.com>
13972
13973 GDB 7.7 released.
13974
12c5175d
MK
139752014-02-05 Mark Kettenis <kettenis@gnu.org>
13976
13977 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13978 defined.
13979
8dc5b319
YQ
139802014-02-05 Yao Qi <yao@codesourcery.com>
13981
13982 * remote.c (remote_pass_signals): Remove local 'buf' and use
13983 rs->buf.
13984 (remote_program_signals): Likewise.
13985
de7b2893
YQ
139862014-02-05 Yao Qi <yao@codesourcery.com>
13987
13988 * ctf.c: Include "inferior.h" and "gdbthread.h".
13989 (CTF_PID): A new macro.
13990 (ctf_open): Call inferior_appeared and add_thread_silent.
13991 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13992 (ctf_thread_alive): New function.
13993 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13994
66d032ac
YQ
139952014-02-05 Yao Qi <yao@codesourcery.com>
13996
13997 Revert this patch:
13998
13999 2013-05-24 Yao Qi <yao@codesourcery.com>
14000
14001 * tracepoint.c (TFILE_PID): Remove.
14002 (tfile_open): Don't add thread and inferior.
14003 (tfile_close): Don't set 'inferior_ptid'. Don't call
14004 exit_inferior_silent.
14005 (tfile_thread_alive): Remove.
14006 (init_tfile_ops): Don't set field 'to_thread_alive' of
14007 tfile_ops.
14008
f4ccffad
CE
140092014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14010
14011 * remote.c (remote_start_remote): Call remote_check_symbols even
14012 if only symbol-file (not file) has been given.
14013
591a12a1
UW
140142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14015
14016 * gdbarch.sh (skip_entrypoint): New callback.
14017 * gdbarch.c, gdbarch.h: Regenerate.
14018 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14019 * infrun.c (fill_in_stop_func): Likewise.
14020 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14021 (ppc_elfv2_elf_make_msymbol_special): New function.
14022 (ppc_elfv2_skip_entrypoint): Likewise.
14023 (ppc_linux_init_abi): Install them for ELFv2.
14024
cc0e89c5
UW
140252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14026
14027 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14028 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14029 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14030 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14031 structures returned in GPRs.
14032
52f548e4
UW
140332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14034
14035 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14036 offset to the stack parameter list for the ELFv2 ABI.
14037
d4094b6a
UW
140382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14039
14040 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14041 set_gdbarch_convert_from_func_ptr_addr and
14042 set_gdbarch_elf_make_msymbol_special for ELFv1.
14043 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14044 function descriptors on ELFv1.
14045 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14046 set up r12 at function entry.
14047
cd453cd0
UW
140482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14049
14050 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14051 (struct gdbarch_tdep): New member elf_abi.
14052
14053 * rs6000-tdep.c: Include "elf/ppc64.h".
14054 (rs6000_gdbarch_init): Detect ELF ABI version.
14055
0ff3e01f
UW
140562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14057
14058 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14059 within a register pair holding a DFP 128-bit value on little-endian.
14060 (ppc64_sysv_abi_return_value_base): Likewise.
14061 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14062 (dfp_pseudo_register_write): Likewise.
14063
5b757e5d
UW
140642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14065
14066 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14067 offset on little-endian when passing _Decimal32.
14068 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14069
084ee545
UW
140702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14071
14072 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14073 of the overlapped FP register within the VSX register on little-
14074 endian platforms.
14075 (efpr_pseudo_register_write): Likewise.
14076
d63167af
UW
140772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14078
14079 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14080 offset on little-endian when passing small structures.
14081
e765b44c
UW
140822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14083
14084 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14085 (struct ppc64_sysv_argpos): New data structure.
14086 (ppc64_sysv_abi_push_float): Remove.
14087 (ppc64_sysv_abi_push_val): New function.
14088 (ppc64_sysv_abi_push_integer): Likewise.
14089 (ppc64_sysv_abi_push_freg): Likewise.
14090 (ppc64_sysv_abi_push_vreg): Likewise.
14091 (ppc64_sysv_abi_push_param): Likewise.
14092 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14093 (ppc64_sysv_abi_return_value_base): New function.
14094 (ppc64_sysv_abi_return_value): Refactor to use it.
14095
36c24d95
UW
140962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14097
14098 * NEWS: Document new target powerpc64le-*-linux*.
14099
26fd9228
MK
141002014-02-04 Mark Kettenis <kettenis@gnu.org>
14101
14102 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14103 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14104 core dumps.
14105 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14106 register set used in ELF core dumps. Add floating-point register set.
14107
c5bb7362
KB
141082014-02-03 Kevin Buettner <kevinb@redhat.com>
14109
74228e77 14110 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14111 dwarf2_to_gdb[] table using symbolic constants. Adjust
14112 penultimate entry from number representing the PC register
14113 to symbolic constant representing the MDR register. Add
14114 constant for the PC register to the end of the table.
14115
af09351e
MK
141162014-02-03 Mark Kettenis <kettenis@gnu.org>
14117
14118 * bsd-kvm.c: Include <sys/param.h>
14119
8507e05d
MK
141202014-02-03 Mark Kettenis <kettenis@gnu.org>
14121
14122 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14123
ae56bfb8
JB
141242014-01-31 Joel Brobecker <brobecker@adacore.com>
14125
14126 * ada-lang.h (clear_ada_sym_cache): Delete.
14127
718ee4dc
UW
141282014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14129
14130 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14131
401e27fd
JM
141322014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14133
14134 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14135 the sigreturn register save area only if the syscall is
14136 sigreturn.
14137
a7c88acd
JB
141382014-01-29 Joel Brobecker <brobecker@adacore.com>
14139
14140 * valops.c (value_slice): Minor reformatting.
14141
fa0079ea
UW
141422014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14143
14144 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14145
c6044dd1
JB
141462014-01-28 Joel Brobecker <brobecker@adacore.com>
14147
14148 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14149 New static globals.
14150 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14151 (ada_ignore_descriptive_types_p): New static global.
14152 (find_parallel_type_by_descriptive_type): Return immediately
14153 if ada_ignore_descriptive_types_p is set.
14154 (_initialize_ada_language): Register new commands "maintenance
14155 set ada", "maintenance show ada", "maintenance set ada
14156 ignore-descriptive-types" and "maintenance show ada
14157 ignore-descriptive-types".
14158 * NEWS: Add entry for new "maint ada set/show
14159 ignore-descriptive-types" commands.
14160
568e808b
MM
141612014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14162
14163 * record-btrace.c (record_btrace_close): Call btrace_teardown
14164 for all threads.
14165
467d141b
JB
141662014-01-27 Joel Brobecker <brobecker@adacore.com>
14167
14168 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14169 "ui-out.h".
14170
fb151210
JB
141712014-01-27 Joel Brobecker <brobecker@adacore.com>
14172
14173 * ada-typeprint (type_is_full_subrange_of_target_type):
14174 New function.
14175 (print_range): Add parameter bounds_prefered_p. If not set,
14176 try printing range types using the name of their base type.
14177 (print_range_type): Add parameter bounds_prefered_p.
14178 Use it in call to print_range.
14179 (print_array_type, ada_print_type): Update calls to print_range
14180 and print_range_type.
14181
aba02109
JB
141822014-01-27 Joel Brobecker <brobecker@adacore.com>
14183
14184 * ada-typeprint.c (print_array_type, print_choices, print_range)
14185 (print_range_bound, print_dynamic_range_bound, print_range_type):
14186 Remove declaration.
14187
e62e21fd
JB
141882014-01-27 Joel Brobecker <brobecker@adacore.com>
14189
14190 * ada-typeprint.c (print_range): Add missing empty line
14191 after local declaration.
14192
859cf5d1
JB
141932014-01-27 Joel Brobecker <brobecker@adacore.com>
14194
14195 * ada-valprint.c (print_optional_low_bound): Get index_type's
14196 target type for as long as it is a TYPE_CODE_RANGE.
14197
25790f6f
JB
141982014-01-27 Joel Brobecker <brobecker@adacore.com>
14199
14200 * procfs.c (procfs_make_note_section): Remove assertion and
14201 associated comment.
14202
6b6aa828
YQ
142032014-01-24 Yao Qi <yao@codesourcery.com>
14204
14205 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14206 * corelow.c (get_core_siginfo): Likewise.
14207
5d6df423
YQ
142082014-01-24 Yao Qi <yao@codesourcery.com>
14209
14210 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14211 ULONGEST. Don't check 'len' is negative.
14212 (remote_write_bytes): Change type of 'len' to ULONGEST.
14213
83b645b8
TT
142142014-01-23 Tom Tromey <tromey@redhat.com>
14215
14216 PR python/16485:
14217 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14218 Handle exception from frame.block.
14219 (FrameVars.fetch_frame_locals): Likewise.
14220
0740f8d8
TT
142212014-01-23 Tom Tromey <tromey@redhat.com>
14222
14223 PR python/16487:
14224 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14225 on a NULL pointer. Move "goto error" to correct place.
14226
21909fa1
TT
142272014-01-23 Tom Tromey <tromey@redhat.com>
14228
14229 PR python/16491:
14230 * python/py-framefilter.c (apply_frame_filter): Call
14231 ensure_python_env after computing gdbarch.
14232
17fde6d0
YQ
142332014-01-23 Yao Qi <yao@codesourcery.com>
14234
14235 * target.c (raw_memory_xfer_partial): Change argument type
14236 from void * to gdb_byte *.
14237 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14238
87ce2a04
DE
142392014-01-22 Doug Evans <dje@google.com>
14240
14241 New gdbserver option --debug-format=timestamp.
14242 * NEWS: Mention it.
14243
237b092b
AA
142442014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14245
14246 * syscalls/s390x-linux.xml: New file.
14247 * syscalls/s390-linux.xml: New file.
14248 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14249 (XML_SYSCALL_FILENAME_S390X): Likewise.
14250 (op_svc): New enum value for SVC opcode.
14251 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14252 (s390_linux_get_syscall_number): New function.
14253 (s390_gdbarch_init): Register '*get_syscall_number' and the
14254 syscall xml file name.
14255 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14256 "s390-linux.xml" and "s390x-linux.xml".
14257 * NEWS: Announce new feature.
14258
54bff650
BS
142592014-01-22 Baruch Siach <baruch@tkos.co.il>
14260
14261 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14262
14e361d7
PA
142632014-01-22 Pedro Alves <palves@redhat.com>
14264
14265 * xtensa-config.c: Include defs.h.
14266
46bbb3ed
JB
142672014-01-22 Joel Brobecker <brobecker@adacore.com>
14268
14269 * common/common-utils.h: Add "ARI:" comment beside __func__
14270 reference.
14271
3a80edfc
JB
142722014-01-22 Joel Brobecker <brobecker@adacore.com>
14273
14274 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14275 documentation a bit.
14276
4869db5e
RM
142772014-01-21 Roland McGrath <mcgrathr@google.com>
14278
14279 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14280 * configure: Regenerate.
14281 * aclocal.m4: Regenerate.
14282 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14283 New substituted variables.
14284 (install-strip): New target.
14285 (INSTALL_SCRIPT): New substituted variable.
14286 (FLAGS_TO_PASS): Add it.
14287 (install-only): Use $(INSTALL_SCRIPT) rather than
14288 $(INSTALL_PROGRAM) for gcore.
14289
9ea4267d
TT
142902014-01-20 Tom Tromey <tromey@redhat.com>
14291
14292 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14293 together.
14294
1f2bdf09
TT
142952014-01-20 Tom Tromey <tromey@redhat.com>
14296
14297 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14298 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14299 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14300 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14301 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14302 (struct cmd_list_element) <flags>: Remove.
14303 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14304 doc_allocated>: New fields.
14305 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14306 bitfields.
14307 * maint.c (maintenance_do_deprecate): Update.
14308 * top.c (execute_command): Update.
14309
e671835b
BS
143102014-01-20 Baruch Siach <baruch@tkos.co.il>
14311
14312 * xtensa-linux-nat.c: Include asm/ptrace.h.
14313
50367cd2
IB
143142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14315
14316 * Makefile.in (SFILES): Add d-support.c.
14317 (COMMON_OBS): Add d-support.o.
14318 * d-lang.h (d_parse_symbol): Add comment, now defined in
14319 d-support.c.
14320 * d-lang.c (parse_call_convention)
14321 (parse_attributes, parse_function_types)
14322 (parse_function_args, parse_type, parse_identifier)
14323 (call_convention_p, d_parse_symbol): Move functions to ...
14324 * d-support.c: ... New file.
14325
ec9f644a
IB
143262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14327
14328 * d-lang.h (d_parse_symbol): Add declaration.
14329 * d-lang.c (extract_identifiers)
14330 (extract_type_info): Remove functions.
14331 (parse_call_convention, parse_attributes)
14332 (parse_function_types, parse_function_args)
14333 (parse_type, parse_identifier, call_convention_p)
14334 (d_parse_symbol): New functions.
14335 (d_demangle): Use d_parse_symbol to demangle D symbols.
14336
94b1b47e
IB
143372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14338
14339 * d-lang.h (struct builtin_d_type): New data type.
14340 (builtin_d_type): Add declaration.
14341 * d-lang.c (d_language_arch_info, build_d_types)
14342 (builtin_d_type): New functions.
14343 (enum d_primitive_types): New data type.
14344 (d_language_defn): Change c_language_arch_info to
14345 d_language_arch_info.
14346 (d_type_data): New static variable.
14347 (_initialize_d_language): Initialize d_type_data.
14348
63778547
IB
143492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14350
14351 * d-lang.h (d_main_name): Add declaration.
14352 * d-lang.c (d_main_name): New function.
14353 * symtab.c (find_main_name): Add call to d_main_name.
14354
3271ba66
IB
143552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14356
14357 * d-lang.c (d_language_defn): Change macro_expansion_c to
14358 macro_expansion_no.
14359
d36b3012
IB
143602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14361
14362 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14363
c90a6fb7
SDJ
143642014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14365
14366 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14367 gdb_exception" declaration.
14368 * remote.c (getpkt_or_notif_sane): Likewise.
14369
749234e5
DE
143702014-01-17 Doug Evans <dje@google.com>
14371
14372 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14373 function, contents of dirnames_to_char_ptr_vec_append moved here.
14374 (delim_string_to_char_ptr_vec): New function.
14375 (dirnames_to_char_ptr_vec_append): Rewrite.
14376 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14377
df049a58
DE
143782014-01-17 Doug Evans <dje@google.com>
14379
14380 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14381 and moved here ...
14382 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14383 #include "common-utils.h".
14384 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14385 * common/vec.h (VEC_ASSERT_PASS): Update.
14386 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14387 (MACH_CHECK_ERROR): Update.
14388
69f97648
SM
143892014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14390
14391 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14392 comments.
14393 * gdbarch.h: Regenerate.
14394
98b1cfdc
TT
143952014-01-16 Tom Tromey <tromey@redhat.com>
14396
14397 * value.c (struct value) <regnum>: Move earlier.
14398
77a19445
TT
143992014-01-16 Tom Tromey <tromey@redhat.com>
14400
14401 * remote.c (extended_remote_create_inferior): Rename from
14402 extended_remote_create_inferior_1. Add "ops" argument. Remove
14403 old implementation.
14404
62261490
PA
144052014-01-16 Pedro Alves <palves@redhat.com>
14406
14407 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14408 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14409 the backchain.
14410
4d65956b
DE
144112014-01-16 Doug Evans <dje@google.com>
14412
14413 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14414
52834460
MM
144152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14416
14417 * btrace.h (btrace_thread_flag): New.
14418 (struct btrace_thread_info) <flags>: New.
14419 * record-btrace.c (record_btrace_resume_thread)
14420 (record_btrace_find_thread_to_move, btrace_step_no_history)
14421 (btrace_step_stopped, record_btrace_start_replaying)
14422 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14423 (record_btrace_find_resume_thread): New.
14424 (record_btrace_resume, record_btrace_wait): Extend.
14425 (record_btrace_can_execute_reverse): New.
14426 (record_btrace_open): Fail in non-stop mode.
14427 (record_btrace_set_replay): Split into this, ...
14428 (record_btrace_stop_replaying): ... this, ...
14429 (record_btrace_clear_histories): ... and this.
14430 (init_record_btrace_ops): Init to_can_execute_reverse.
14431 * NEWS: Announce it.
14432
118e6252
MM
144332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14434
14435 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14436 (forward_target_decr_pc_after_break)
14437 (target_decr_pc_after_break): New.
14438 * target.c (forward_target_decr_pc_after_break)
14439 (target_decr_pc_after_break): New.
14440 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14441 instead of gdbarch_decr_pc_after_break.
14442 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14443 instead of gdbarch_decr_pc_after_break.
14444 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14445 instead of gdbarch_decr_pc_after_break.
14446 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14447 instead of gdbarch_decr_pc_after_break.
14448 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14449 instead of gdbarch_decr_pc_after_break.
14450 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14451 instead of gdbarch_decr_pc_after_break.
14452
6e07b1d2
MM
144532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14454
14455 * btrace.c: Include regcache.h.
14456 (btrace_add_pc): New.
14457 (btrace_enable): Call btrace_add_pc.
14458 (btrace_is_empty): New.
14459 * btrace.h (btrace_is_empty): New.
14460 * record-btrace.c (require_btrace, record_btrace_info): Call
14461 btrace_is_empty.
14462
969c39fb
MM
144632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14464
14465 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14466 Support delta reads.
14467 (linux_disable_btrace): Change return type.
14468 * common/linux-btrace.h (linux_read_btrace): Change parameters
14469 and return type to allow error reporting. Update users.
14470 (linux_disable_btrace): Change return type. Update users.
14471 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14472 New.
14473 (btrace_error): New.
14474 (btrace_block) <begin>: Comment on BEGIN == 0.
14475 * btrace.c (btrace_compute_ftrace): Start from the end of
14476 the current trace.
14477 (btrace_stitch_trace, btrace_clear_history): New.
14478 (btrace_fetch): Read delta trace, return if replaying.
14479 (btrace_clear): Move clear history code to btrace_clear_history.
14480 (parse_xml_btrace): Throw an error if parsing failed.
14481 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14482 and return type to allow error reporting.
14483 (target_read_btrace): Change parameters and return type to allow
14484 error reporting.
14485 * target.c (target_read_btrace): Update.
14486 * remote.c (remote_read_btrace): Support delta reads. Pass
14487 errors on.
14488 * NEWS: Announce it.
14489
0b722aec
MM
144902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14491
14492 * record.h (record_btrace_frame_unwind)
14493 (record_btrace_tailcall_frame_unwind): New declarations.
14494 * dwarf2-frame: Include record.h
14495 (dwarf2_frame_cfa): Throw an error for btrace frames.
14496 * record-btrace.c: Include hashtab.h.
14497 (btrace_get_bfun_name): New.
14498 (btrace_call_history): Call btrace_get_bfun_name.
14499 (struct btrace_frame_cache): New.
14500 (bfcache): New.
14501 (bfcache_hash, bfcache_eq, bfcache_new): New.
14502 (btrace_get_frame_function): New.
14503 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14504 (record_btrace_frame_this_id): Compute own id.
14505 (record_btrace_frame_prev_register): Provide PC, throw_error
14506 for all other registers.
14507 (record_btrace_frame_sniffer): Detect btrace frames.
14508 (record_btrace_tailcall_frame_sniffer): New.
14509 (record_btrace_frame_dealloc_cache): New.
14510 (record_btrace_frame_unwind): Add new functions.
14511 (record_btrace_tailcall_frame_unwind): New.
14512 (_initialize_record_btrace): Allocate cache.
14513 * btrace.c (btrace_clear): Call reinit_frame_cache.
14514 * NEWS: Announce it.
14515
066ce621
MM
145162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14517
14518 * record-btrace.c (record_btrace_set_replay)
14519 (record_btrace_goto_begin, record_btrace_goto_end)
14520 (record_btrace_goto): New.
14521 (init_record_btrace_ops): Initialize them.
14522 * NEWS: Announce it.
14523
e2887aa3
MM
145242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14525
14526 * record-btrace.c (record_btrace_find_new_threads)
14527 (record_btrace_thread_alive): New.
14528 (init_record_btrace_ops): Initialize to_find_new_threads and
14529 to_thread_alive.
14530
b2f4cfde
MM
145312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14532
14533 * record-btrace.c (record_btrace_resume): New.
14534 (record_btrace_wait): New.
14535 (init_record_btrace_ops): Initialize to_wait and to_resume.
14536
633785ff
MM
145372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14538
14539 * record-btrace.c (record_btrace_xfer_partial)
14540 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14541 (record_btrace_allow_memory_access): New.
14542 (init_record_btrace_ops): Initialize new methods.
14543 * target.c (raw_memory_xfer_partial): Bail out if target reports
14544 that this memory is not available.
14545
3db08215
MM
145462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14547
14548 * target.h (target_ops) <to_insert_breakpoint>
14549 <to_remove_breakpoint>: Add target_ops parameter.
14550 (forward_target_insert_breakpoint): New.
14551 (forward_target_remove_breakpoint): New.
14552 (memory_remove_breakpoint, memory_insert_breakpoint):
14553 Add target_ops parameter.
14554 * target.c (target_insert_breakpoint): Split into this and ...
14555 (forward_target_insert_breakpoint): ... this.
14556 (target_remove_breakpoint): Split into this and ...
14557 (forward_target_remove_breakpoint): ... this.
14558 (debug_to_insert_breakpoint): Add target_ops parameter.
14559 Call forward_target_insert_breakpoint.
14560 (debug_to_remove_breakpoint): Add target_ops parameter.
14561 Call forward_target_remove_breakpoint.
14562 (update_current_target): Do not inherit or default to_insert_breakpoint
14563 and to_remove_breakpoint.
14564 * corelow.c (ignore): Add target_ops parameter.
14565 * exec.c (ignore): Add target_ops parameter.
14566 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14567 Add target_ops parameter.
14568 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14569 Add target_ops parameter.
14570 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14571 Add target_ops parameter.
14572 * record-full.c (record_full_beneath_to_insert_breakpoint)
14573 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14574 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14575 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14576 (record_full_core_remove_breakpoint): Add target_ops parameter.
14577 Update users.
14578 (record_full_beneath_to_insert_breakpoint_ops)
14579 (record_full_beneath_to_remove_breakpoint_ops)
14580 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14581 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14582 tmp_to_remove_breakpoint_ops,
14583 record_full_beneath_to_insert_breakpoint_ops, and
14584 record_full_beneath_to_remove_breakpoint_ops.
14585 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14586 (m32r_remove_breakpoint): Add target_ops parameter.
14587 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14588 Add target_ops parameter.
14589 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14590 Add target_ops parameter.
14591
cecac1ab
MM
145922014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14593 Markus Metzger <markus.t.metzger@intel.com>
14594
14595 * record-btrace.c: Include frame-unwind.h.
14596 (record_btrace_frame_unwind_stop_reason)
14597 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14598 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14599 New.
14600 (init_record_btrace_ops): Install it.
14601
824344ca
MM
146022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14603
14604 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14605 get_prev_frame_1.
14606
32261e52
MM
146072014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14608
14609 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14610 earlier.
14611
ea001bdc
MM
146122014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14613
14614 * frame-unwind.c: Include target.h.
14615 (frame_unwind_try_unwinder): New function with code from ...
14616 (frame_unwind_find_by_frame): ... here. New variable
14617 unwinder_from_target, call also target_get_unwinder)
14618 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14619 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14620 * target.h (struct target_ops): New fields to_get_unwinder and
14621 to_get_tailcall_unwinder.
14622 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14623
1f3ef581
MM
146242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14625
14626 * record-btrace.c (record_btrace_fetch_registers)
14627 (record_btrace_store_registers)
14628 (record_btrace_to_prepare_to_store): New.
14629 (init_record_btrace_ops): Add the above.
14630
f32dbf8c
MM
146312014-01-16 Tom Tromey <tromey@redhat.com>
14632
14633 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14634 * target.h (struct target_ops) <to_prepare_to_store>: Add
14635 argument.
14636 (target_prepare_to_store): Add argument.
14637 * target.c (debug_to_prepare_to_store): Add argument.
14638 (update_current_target): Update.
14639 * remote.c (remote_prepare_to_store): Add 'self' argument.
14640 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14641 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14642 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14643 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14644 argument.
14645 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14646 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14647 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14648 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14649 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14650
07bbe694
MM
146512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14652
14653 * btrace.h (replay) <replay>: New.
14654 (btrace_is_replaying): New.
14655 * btrace.c (btrace_clear): Free replay iterator.
14656 (btrace_is_replaying): New.
14657 * record-btrace.c (record_btrace_is_replaying): New.
14658 (record_btrace_info): Print insn number if replaying.
14659 (record_btrace_insn_history): Start at replay position.
14660 (record_btrace_call_history): Start at replay position.
14661 (init_record_btrace_ops): Init to_record_is_replaying.
14662
0688d04e
MM
146632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14664
14665 * record-btrace.c (record_btrace_insn_history_range): Include
14666 end.
14667 (record_btrace_insn_history_from): Adjust range.
14668 (record_btrace_call_history_range): Include
14669 end.
14670 (record_btrace_call_history_from): Adjust range.
14671 * NEWS: Announce changes.
14672
8710b709
MM
146732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14674
14675 * record.h (enum record_print_flag)
14676 <record_print_indent_calls>: New.
14677 * record.c (get_call_history_modifiers): Recognize /c modifier.
14678 (_initialize_record): Document /c modifier.
14679 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14680 Reorder fields. Optionally indent the function name. Update
14681 all users.
14682 * NEWS: Announce changes.
14683
d0fa7535
MM
146842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14685
14686 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14687
5de9129b
MM
146882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14689
14690 * btrace.c (ftrace_new_function): Start counting at one.
14691 * record-btrace.c (record_btrace_info): Adjust number of calls
14692 and insns.
14693 * NEWS: Announce it.
14694
7acbe133
MM
146952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14696
14697 * record-btrace.c (btrace_call_history_insn_range): Print
14698 insn range as [begin, end].
14699
23a7fe75
MM
147002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14701
14702 * btrace.h (struct btrace_func_link): New.
14703 (enum btrace_function_flag): New.
14704 (struct btrace_inst): Rename to ...
14705 (struct btrace_insn): ...this. Update all users.
14706 (struct btrace_func) <ibegin, iend>: Remove.
14707 (struct btrace_func_link): New.
14708 (struct btrace_func): Rename to ...
14709 (struct btrace_function): ...this. Update all users.
14710 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14711 (number, level, flags>: New.
14712 (struct btrace_insn_iterator): Rename to ...
14713 (struct btrace_insn_history): ...this.
14714 Update all users.
14715 (struct btrace_insn_iterator, btrace_call_iterator): New.
14716 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14717 (struct btrace_target_info) <begin, end, level>
14718 <insn_history, call_history>: New.
14719 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14720 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14721 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14722 (btrace_call_number, btrace_call_begin, btrace_call_end)
14723 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14724 (btrace_find_function_by_number, btrace_set_insn_history)
14725 (btrace_set_call_history): New.
14726 * btrace.c (btrace_init_insn_iterator)
14727 (btrace_init_func_iterator, compute_itrace): Remove.
14728 (ftrace_print_function_name, ftrace_print_filename)
14729 (ftrace_skip_file): Change
14730 parameter to const.
14731 (ftrace_init_func): Remove.
14732 (ftrace_debug): Use new btrace_function fields.
14733 (ftrace_function_switched): Also consider gaining and
14734 losing symbol information).
14735 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14736 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14737 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14738 New.
14739 (ftrace_new_function): Move. Remove debug print.
14740 (ftrace_update_lines, ftrace_update_insns): New.
14741 (ftrace_update_function): Check for call, ret, and jump.
14742 (compute_ftrace): Renamed to ...
14743 (btrace_compute_ftrace): ...this. Rewritten to compute call
14744 stack.
14745 (btrace_fetch, btrace_clear): Updated.
14746 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14747 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14748 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14749 (btrace_call_number, btrace_call_begin, btrace_call_end)
14750 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14751 (btrace_find_function_by_number, btrace_set_insn_history)
14752 (btrace_set_call_history): New.
14753 * record-btrace.c (require_btrace): Use new btrace thread
14754 info fields.
14755 (record_btrace_info, btrace_insn_history)
14756 (record_btrace_insn_history, record_btrace_insn_history_range):
14757 Use new btrace thread info fields and new iterator.
14758 (btrace_func_history_src_line): Rename to ...
14759 (btrace_call_history_src_line): ...this. Use new btrace
14760 thread info fields.
14761 (btrace_func_history): Rename to ...
14762 (btrace_call_history): ...this. Use new btrace thread info
14763 fields and new iterator.
14764 (record_btrace_call_history, record_btrace_call_history_range):
14765 Use new btrace thread info fields and new iterator.
14766
8372a7cb
MM
147672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14768
14769 * frame.h (frame_id_build_unavailable_stack_special): New.
14770 * frame.c (frame_id_build_unavailable_stack_special): New.
14771
c2170eef
MM
147722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14773
14774 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14775 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14776 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14777 to gdbarch.
14778 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14779 (i386_insn_is_jump, i386_jmp_p): New.
14780 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14781 insn_is_jump to gdbarch.
14782 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14783 * gdbarch.h: Regenerated.
14784 * gdbarch.c: Regenerated.
14785 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14786 (default_insn_is_jump): New.
14787 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14788 (default_insn_is_jump): New.
14789
864089d2
MM
147902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14791
14792 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14793 Change to ...
14794 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14795 (btrace_read_type) <btrace_read_new>: Change to ...
14796 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14797
ed9edfb5
MM
147982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14799
14800 * common/linux-btrace.c (linux_read_btrace): Free trace from
14801 previous iteration.
14802
fbcbc3fd
DE
148032014-01-15 Doug Evans <dje@google.com>
14804
14805 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14806 uint32_t.
14807
3d548a53
TT
148082014-01-15 Tom Tromey <tromey@redhat.com>
14809
14810 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14811 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14812 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14813 (set_objfile_main_name): New function.
14814 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14815 language_of_main>: New fields.
14816 (set_objfile_main_name): Declare.
14817 * symtab.c (find_main_name): Loop over objfiles to find the main
14818 name and language.
14819 (set_main_name): Now static.
14820 (get_main_info): Add comment.
14821 * symtab.h (set_main_name): Don't declare.
14822
32ac0d11
TT
148232014-01-15 Tom Tromey <tromey@redhat.com>
14824
14825 * symtab.c (main_progspace_key): New global.
14826 (struct main_info): New.
14827 (name_of_main, language_of_main): Remove.
14828 (get_main_info, main_info_cleanup): New function.
14829 (set_main_name, main_name, main_language): Use get_main_info.
14830 (_initialize_symtab): Initialize main_progspace_key.
14831
9e6c82ad
TT
148322014-01-15 Tom Tromey <tromey@redhat.com>
14833
14834 * dbxread.c (process_one_symbol): Update.
14835 * dwarf2read.c (read_partial_die): Update.
14836 * symfile.c (set_initial_language): Call main_language.
14837 * symtab.c (language_of_main): Now static.
14838 (set_main_name): Add 'lang' parameter.
14839 (find_main_name): Update.
14840 (main_language): New function.
14841 (symtab_observer_executable_changed): Update.
14842 * symtab.h (set_main_name): Update.
14843 (language_of_main): Remove.
14844 (main_language): Declare.
14845
6ef55de7
TT
148462014-01-15 Tom Tromey <tromey@redhat.com>
14847
14848 * symfile.c (init_entry_point_info): Use new "initialized" field.
14849 Update.
14850 * objfiles.h (struct entry_point) <initialized>: New field.
14851 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14852 (struct objfile) <ei>: ...here. Remove.
14853 * objfiles.c (entry_point_address_query): Update.
14854
53eddfa6
TT
148552014-01-15 Tom Tromey <tromey@redhat.com>
14856
14857 * objfiles.c (entry_point_address_query): Relocate entry point
14858 address.
14859 (objfile_relocate1): Do not relocate entry point address.
14860 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14861 <the_bfd_section_index>: New field.
14862 * symfile.c (init_entry_point_info): Find the entry point's
14863 section.
14864
d56e56aa
TT
148652014-01-15 Tom Tromey <tromey@redhat.com>
14866
14867 * solib-frv.c (enable_break): Use entry_point_address_query.
14868
33a97bbe
OJ
148692014-01-15 Omair Javaid <omair.javaid@linaro.org>
14870
14871 * NEWS: Add note on improved process record-replay on
14872 arm*-linux* targets.
14873
c6ec2b30
OJ
148742014-01-15 Omair Javaid <omair.javaid@linaro.org>
14875
14876 * arm-tdep.c (enum arm_record_result): New enum.
14877 (arm_record_unsupported_insn): New function.
14878 (arm_record_coproc_data_proc): Removed.
14879 (thumb2_record_ld_st_multiple): New function.
14880 (thumb2_record_ld_st_dual_ex_tbb): New function.
14881 (thumb2_record_data_proc_sreg_mimm): New function.
14882 (thumb2_record_ps_dest_generic): New function.
14883 (thumb2_record_branch_misc_cntrl): New function.
14884 (thumb2_record_str_single_data): New function.
14885 (thumb2_record_ld_mem_hints): New function.
14886 (thumb2_record_ld_word): New function.
14887 (thumb2_record_lmul_lmla_div): New function.
14888 (thumb2_record_decode_insn_handler): New function.
14889 (decode_insn): Add thumb32 instruction handlers.
14890
97dfe206
OJ
148912014-01-15 Omair Javaid <omair.javaid@linaro.org>
14892
14893 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14894 (struct arm_linux_record_tdep): Declare.
14895 (arm_canonicalize_syscall): New function.
14896 (arm_all_but_pc_registers_record): New function.
14897 (arm_linux_syscall_record): New function.
14898 (arm_linux_init_abi): Add syscall recording constructs.
14899 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14900 decoding. (arm_record_coproc_data_proc): Update arm syscall
14901 decoding.
14902 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14903 <arm_syscall_record>: New field.
14904 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14905 gdb_target_obs.
14906
9904a494
OJ
149072014-01-15 Omair Javaid <omair.javaid@linaro.org>
14908
14909 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14910 register for push instruction recording.
14911
f969241e
OJ
149122014-01-15 Omair Javaid <omair.javaid@linaro.org>
14913
14914 * arm-tdep.c (thumb_record_misc): Update to correct logical
14915 error while recording ldm, ldmia and pop instructions.
14916
bfbbec00
OJ
149172014-01-15 Omair Javaid <omair.javaid@linaro.org>
14918
14919 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14920
e40adcc9
PA
149212014-01-15 Pedro Alves <palves@redhat.com>
14922
14923 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14924 (go32_resume, go32_fetch_registers, store_register)
14925 (go32_store_registers, go32_prepare_to_store)
14926 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14927 (go32_create_inferior, go32_can_run, go32_terminal_init)
14928 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14929 declarations.
14930
b0a16e66
TT
149312014-01-15 Tom Tromey <tromey@redhat.com>
14932
14933 * target.h (async_callback_ftype): New typedef.
14934 (struct target_ops) <to_async>: Use it.
14935
bf7105a4
JB
149362014-01-15 Joel Brobecker <brobecker@adacore.com>
14937
14938 * python/py-value.c (get_field_type): Remove unnecessary curly
14939 braces for single-statement if block.
14940
a8f35c2e
JB
149412014-01-15 Joel Brobecker <brobecker@adacore.com>
14942
14943 * python/py-type.c (convert_field): Add missing empty line
14944 after declarations.
14945
bb4142cf
DE
149462014-01-14 Doug Evans <dje@google.com>
14947
14948 * symfile.h (expand_symtabs_matching): Renamed from
14949 expand_partial_symbol_names. Update prototype.
14950 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14951 * symfile.c (expand_symtabs_matching): Renamed from
14952 expand_partial_symbol_names. New args file_matcher, kind.
14953 Rename arg fun to symbol_matcher.
14954 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14955 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14956 ada_expand_partial_symbol_name.
14957 (ada_make_symbol_completion_list): Update to call
14958 expand_symtabs_matching.
14959 (ada_add_global_exceptions): Call expand_symtabs_matching.
14960 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14961 call map_symbol_filenames.
14962 * symtab.c (sources_info): Update to call map_symbol_filenames.
14963 (search_symbols): Call expand_symtabs_matching.
14964 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14965 (default_make_symbol_completion_list_break_on): Update to call
14966 expand_symtabs_matching.
14967 (make_source_files_completion_list): Update to call
14968 map_symbol_filenames.
14969
206f2a57
DE
149702014-01-14 Doug Evans <dje@google.com>
14971
14972 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14973 (expand_symtabs_symbol_matcher_ftype): New typedef.
14974 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14975 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14976 * symfile.c (expand_partial_symbol_names): Update to use
14977 expand_symtabs_symbol_matcher_ftype.
14978 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14979 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14980 Arg name_matcher renamed to symbol_matcher.
14981 * psymtab.c (recursively_search_psymtabs): Update to use
14982 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14983 sym_matcher.
14984 (expand_symtabs_matching_via_partial): Update to use
14985 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14986 Arg name_matcher renamed to symbol_matcher.
14987
540c2971
DE
149882014-01-14 Doug Evans <dje@google.com>
14989
14990 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14991 (map_partial_symbol_filenames): Ditto.
14992 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14993 (map_partial_symbol_filenames): Ditto.
14994 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14995 (map_partial_symbol_filenames): Ditto.
14996 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14997 (map_partial_symbol_filenames): Ditto.
14998 * symtab.c: Delete #include "psymtab.h".
14999
8213266a
PA
150002014-01-14 Pedro Alves <palves@redhat.com>
15001 Tom Tromey <tromey@redhat.com>
15002
15003 * infrun.c (use_displaced_stepping): Use find_record_target
15004 instead of RECORD_IS_USED.
15005 (adjust_pc_after_break): Use record_full_is_used instead of
15006 RECORD_IS_USED.
15007 * record-btrace.c (record_btrace_open): Call record_preopen
15008 instead of checking RECORD_IS_USED.
15009 * record-full.c (record_full_shortname)
15010 (record_full_core_shortname): New globals.
15011 (record_full_is_used): New function.
15012 (find_full_open): Call record_preopen instead of checking
15013 RECORD_IS_USED.
15014 (init_record_full_ops): Set the target's shortname to
15015 record_full_shortname.
15016 (init_record_full_core_ops): Set the target's shortname to
15017 record_full_core_shortname.
15018 * record-full.h (record_full_is_used): Declare.
15019 * record.c (find_record_target): Make extern.
15020 (record_preopen): New function.
15021 * record.h (RECORD_IS_USED): Delete macro.
15022 (find_record_target, record_preopen): Declare functions.
15023
7ec1862d
YQ
150242014-01-14 Yao Qi <yao@codesourcery.com>
15025
15026 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15027 'len''s type to ULONGEST.
15028 (core_xfer_shared_libraries_aix): Likewise.
15029 * gdbarch.c, gdbarch.h: Regenerated.
15030 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15031 Change type of 'len' to ULONGEST.
15032 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15033 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15034
dea80a27
YQ
150352014-01-14 Yao Qi <yao@codesourcery.com>
15036
15037 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15038 type of 'len' to ULONGEST.
15039 (linux_xfer_osdata_processgroups): Likewise.
15040 (linux_xfer_osdata_threads): Likewise.
15041 (linux_xfer_osdata_fds): Likewise.
15042 (linux_xfer_osdata_isockets): Likewise.
15043 (linux_xfer_osdata_shm): Likewise.
15044 (linux_xfer_osdata_sem): Likewise.
15045 (linux_xfer_osdata_msg): Likewise.
15046 (linux_common_xfer_osdata): Likewise.
15047 (struct osdata_type) <getter>: Likewise.
15048 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15049 the declaration.
15050
b55e14c7
YQ
150512014-01-14 Yao Qi <yao@codesourcery.com>
15052
15053 * target.h (target_xfer_partial_ftype): Update.
15054 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15055 ULONGEST.
15056 * aix-thread.c (aix_thread_xfer_partial): Change type of
15057 argument 'len' to ULONGEST.
15058 * auxv.c (procfs_xfer_auxv): Likewise.
15059 (ld_so_xfer_auxv): Likewise.
15060 (memory_xfer_auxv): Likewise.
15061 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15062 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15063 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15064 * corelow.c (core_xfer_partial): Likewise.
15065 * ctf.c (ctf_xfer_partial): Likewise.
15066 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15067 '%u'.
15068 (darwin_read_dyld_info): Likewise.
15069 (darwin_xfer_partial): Likewise.
15070 * exec.c (section_table_xfer_memory_partial): Likewise.
15071 (exec_xfer_partial): Likewise.
15072 * exec.h (section_table_xfer_memory_partial): Update
15073 declaration.
15074 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15075 instead of plongest.
15076 (gnu_xfer_partial): Likewise.
15077 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15078 (ia64_hpux_xfer_solib_got): Likewise.
15079 (ia64_hpux_xfer_partial): Likewise.
15080 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15081 * inf-ptrace.c (inf_ptrace_xfer_partial):
15082 * inf-ttrace.c (inf_ttrace_xfer_partial):
15083 * linux-nat.c (linux_xfer_siginfo): Likewise.
15084 (linux_nat_xfer_partial): Likewise.
15085 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15086 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15087 * monitor.c (monitor_xfer_memory): Likewise.
15088 (monitor_xfer_partial): Likewise.
15089 * procfs.c (procfs_xfer_partial): Likewise.
15090 * record-full.c (record_full_xfer_partial): Likewise.
15091 (record_full_core_xfer_partial): Likewise.
15092 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15093 instead of plongest.
15094 (gdbsim_xfer_partial): Likewise.
15095 * remote.c (remote_xfer_partial): Likewise.
15096 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15097 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15098 declaration.
15099 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15100 (rs6000_xfer_shared_libraries): Likewise.
15101 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15102 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15103 (sparc_xfer_partial): Likewise.
15104 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15105 (spu_xfer_partial): Likewise.
15106 * spu-multiarch.c (spu_xfer_partial): Likewise.
15107 * target.c (target_read_live_memory): Likewise.
15108 (memory_xfer_live_readonly_partial): Likewise.
15109 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15110 (target_xfer_partial, default_xfer_partial): Likewise.
15111 (current_xfer_partial): Likewise.
15112 * tracepoint.c (tfile_xfer_partial): Likewise.
15113 * windows-nat.c (windows_xfer_memory): Likewise. Call
15114 pulongest instead of plongest.
15115 (windows_xfer_partial): Likewise.
15116 (windows_xfer_shared_libraries): Likewise.
15117
05804640
YQ
151182014-01-14 Yao Qi <yao@codesourcery.com>
15119
15120 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15121 target_xfer_partial_ftype.
15122
b5b08fb4
SC
151232014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15124
15125 PR python/15464
15126 PR python/16113
15127 * valops.c (value_struct_elt_bitpos): New function
15128 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15129 object to 'None' if the field name is an empty string ("").
15130 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15131 attribute to look for a field when 'name' is 'None'.
15132 (get_field_type): New function
15133
13aaf454
DE
151342014-01-13 Doug Evans <dje@google.com>
15135
15136 PR symtab/16426
15137 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15138 (try_open_dwop_file): Ditto.
15139 * gdb_bfd.c: #include "vec.h".
15140 (bfdp): New typedef.
15141 (struct gdb_bfd_data): New member included_bfds.
15142 (gdb_bfd_unref): Unref all included bfds.
15143 (gdb_bfd_record_inclusion): New function.
15144 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15145
c2cec97c
TT
151462014-01-13 Tom Tromey <tromey@redhat.com>
15147
15148 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15149
78e5999d
TT
151502014-01-13 Tom Tromey <tromey@redhat.com>
15151
15152 * defs.h (use_windows): Remove.
15153 * gdb.c (main): Update.
15154 * main.c (captured_main, gdb_main): Update.
15155 * main.h (struct captured_main_args) <use_windows>: Remove.
15156 * top.c (use_windows): Remove.
15157
f2052bbe
TT
151582014-01-13 Tom Tromey <tromey@redhat.com>
15159
15160 * defs.h (deprecated_flush_hook): Remove.
15161
fde4f8ed
JK
151622014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15163
15164 PR threads/16216
15165 * linux-thread-db.c (try_thread_db_load): Add parameter
15166 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15167 (try_thread_db_load_from_pdir_1): Move it there from here.
15168 (try_thread_db_load_from_sdir): Update caller.
15169 (try_thread_db_load_from_dir): Move it there from here.
15170
bdf61915
PP
151712014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15172
15173 * regformats/regdat.sh: Always rewrite the register file.
15174
f71e1a8d
PA
151752014-01-13 Pedro Alves <palves@redhat.com>
15176
15177 * Makefile.in (CHECK_HEADERS): New variable.
15178 (check-headers:): New rule.
15179
42c85435
TT
151802014-01-13 Tom Tromey <tromey@redhat.com>
15181
15182 * cli/cli-setshow.c (do_set_command): Update.
15183 * defs.h (deprecated_set_hook): Remove.
15184 * top.c (deprecated_set_hook): Remove.
15185
f8de5129
PA
151862014-01-13 Pedro Alves <palves@redhat.com>
15187
15188 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15189 the tracepoint if the PC is a pseudo-register.
15190
fc270c35
TT
151912014-01-13 Tom Tromey <tromey@redhat.com>
15192
15193 * defs.h (XCALLOC): Remove.
15194 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15195 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15196 * dwarf2loc.c (allocate_piece_closure): Likewise.
15197 * elfread.c (elf_symfile_segments): Likewise.
15198 (elf_symfile_segments): Likewise.
15199 * gdbtypes.c (copy_type_recursive): Likewise.
15200 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15201 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15202 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15203 XCALLOC.
15204 * mt-tdep.c (mt_gdbarch_init): Likewise.
15205 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15206 XCALLOC.
15207 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15208 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15209 * registry.c (registry_alloc_data): Likewise.
15210 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15211 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15212 * serial.c (serial_fdopen_ops): Likewise.
15213 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15214 XCALLOC.
15215 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15216 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15217 not XCALLOC.
15218
70ba0933
TT
152192014-01-13 Tom Tromey <tromey@redhat.com>
15220
15221 * defs.h (XMALLOC): Remove.
15222 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15223 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15224 * cli-out.c (struct ui_out *): Likewise.
15225 * cli/cli-dump.c (add_dump_command): Likewise.
15226 (add_dump_command): Likewise.
15227 * complaints.c (get_complaints): Likewise.
15228 (find_complaint): Likewise.
15229 * dwarf2-frame.c (execute_cfa_program): Likewise.
15230 * dwarf2read.c (abbrev_table_read_table): Likewise.
15231 * gdbarch.sh: Likewise.
15232 * gdbarch.c: Rebuild.
15233 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15234 * interps.c (interp_new): Likewise.
15235 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15236 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15237 * mi/mi-console.c (mi_console_file_new): Likewise.
15238 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15239 * mi/mi-out.c (mi_out_new): Likewise.
15240 * mi/mi-parse.c (mi_parse): Likewise.
15241 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15242 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15243 * observer.c (xalloc_observer_list_node): Likewise.
15244 * regcache.c (regcache_xmalloc_1): Likewise.
15245 * reggroups.c (reggroup_new): Likewise.
15246 (_initialize_reggroup): Likewise.
15247 * registry.c (register_data_with_cleanup): Likewise.
15248 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15249 * ser-base.c (serial_ttystate): Likewise.
15250 * ser-mingw.c (make_pipe_state): Likewise.
15251 * ser-pipe.c (pipe_open): Likewise.
15252 * serial.c (serial_open): Likewise.
15253 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15254 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15255 (tui_alloc_win_info): Likewise.
15256 (tui_add_content_elements): Likewise.
15257 * tui/tui-file.c (tui_file_new): Likewise.
15258 * tui/tui-out.c (tui_out_new): Likewise.
15259 * ui-file.c (mem_file_new): Likewise.
15260 * ui-out.c (push_level): Likewise.
15261 (make_cleanup_ui_out_end): Likewise.
15262 (append_header_to_list): Likewise.
15263 (ui_out_new): Likewise.
15264 * user-regs.c (user_reg_add_builtin): Likewise.
15265
41bf6aca
TT
152662014-01-13 Tom Tromey <tromey@redhat.com>
15267
15268 * defs.h (XZALLOC): Remove.
15269 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15270 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15271 (get_ada_tasks_inferior_data): Likewise.
15272 * auto-load.c (get_auto_load_pspace_data): Likewise.
15273 * auxv.c (get_auxv_inferior_data): Likewise.
15274 * bfd-target.c (target_bfd_reopen): Likewise.
15275 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15276 (deprecated_insert_raw_breakpoint): Likewise.
15277 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15278 * corelow.c (core_open): Likewise.
15279 * darwin-nat.c (darwin_check_new_threads): Likewise.
15280 (darwin_attach_pid): Likewise.
15281 * dummy-frame.c (dummy_frame_push): Likewise.
15282 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15283 * dwarf2loc.c (allocate_piece_closure): Likewise.
15284 * elfread.c (elf_symfile_segments): Likewise.
15285 * eval.c (ptrmath_type_p): Likewise.
15286 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15287 * gdbtypes.c (alloc_type_arch): Likewise.
15288 (alloc_type_instance): Likewise.
15289 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15290 * inf-child.c (inf_child_can_use_agent): Likewise.
15291 * inflow.c (get_inflow_inferior_data): Likewise.
15292 * infrun.c (save_infcall_suspend_state): Likewise.
15293 * jit.c (jit_reader_load): Likewise.
15294 (get_jit_objfile_data): Likewise.
15295 (get_jit_program_space_data): Likewise.
15296 (jit_object_open_impl): Likewise.
15297 (jit_symtab_open_impl): Likewise.
15298 (jit_block_open_impl): Likewise.
15299 (jit_frame_sniffer): Likewise.
15300 * linux-fork.c (add_fork): Likewise.
15301 * maint.c (make_command_stats_cleanup): Likewise.
15302 * objfiles.c (get_objfile_pspace_data): Likewise.
15303 * opencl-lang.c (struct lval_closure): Likewise.
15304 * osdata.c (osdata_start_osdata): Likewise.
15305 * progspace.c (new_address_space): Likewise.
15306 (add_program_space): Likewise.
15307 * remote-sim.c (get_sim_inferior_data): Likewise.
15308 * sh-tdep.c (sh_gdbarch_init): Likewise.
15309 * skip.c (Ignore): Likewise.
15310 (skip_delete_command): Likewise.
15311 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15312 (library_list_start_library): Likewise.
15313 (solib_aix_current_sos): Likewise.
15314 * solib-darwin.c (get_darwin_info): Likewise.
15315 (darwin_current_sos): Likewise.
15316 * solib-dsbt.c (get_dsbt_info): Likewise.
15317 * solib-ia64-hpux.c (new_so_list): Likewise.
15318 (ia64_hpux_get_solib_linkage_addr): Likewise.
15319 * solib-spu.c (append_ocl_sos): Likewise.
15320 (spu_current_sos): Likewise.
15321 * solib-svr4.c (get_svr4_info): Likewise.
15322 (svr4_keep_data_in_core): Likewise.
15323 (library_list_start_library): Likewise.
15324 (svr4_default_sos): Likewise.
15325 (svr4_read_so_list): Likewise.
15326 * solib-target.c (library_list_start_library): Likewise.
15327 (solib_target_current_sos): Likewise.
15328 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15329 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15330 * symfile.c (default_symfile_segments): Likewise.
15331 * target-descriptions.c (tdesc_data_init): Likewise.
15332 (tdesc_create_reg): Likewise.
15333 (struct tdesc_type *): Likewise.
15334 (tdesc_create_vector): Likewise.
15335 (tdesc_set_struct_size): Likewise.
15336 (struct tdesc_type *): Likewise.
15337 (tdesc_free_feature): Likewise.
15338 (tdesc_create_feature): Likewise.
15339 * windows-nat.c (windows_add_thread): Likewise.
15340 (windows_make_so): Likewise.
15341 * xml-support.c (gdb_xml_body_text): Likewise.
15342 (gdb_xml_create_parser_and_cleanup): Likewise.
15343 (xml_process_xincludes): Likewise.
15344 * xml-syscall.c (allocate_syscalls_info): Likewise.
15345 (syscall_create_syscall_desc): Likewise.
15346
5acfdbae
SDJ
153472014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15348
15349 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15350 function, with code from i386_stap_parse_special_token.
15351 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15352 (i386_stap_parse_special_token): Move code to the two functions
15353 above; simplify it.
15354
0000e5cc
PA
153552014-01-09 Pedro Alves <palves@redhat.com>
15356 Hui Zhu <hui@codesourcery.com>
15357
15358 PR gdb/16101
15359 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15360 bp_err_string. Don't mark the location shlib_disabled if the
15361 error thrown wasn't a generic or memory error. Catch errors
15362 thrown while inserting breakpoints in overlayed code. Output
15363 error message of software breakpoints.
15364 * remote.c (remote_insert_breakpoint): If this breakpoint has
15365 target-side commands but this stub doesn't support Z0 packets,
15366 throw NOT_SUPPORTED_ERROR error.
15367 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15368 * target.h (target_insert_breakpoint): Extend comment.
15369 (target_insert_hw_breakpoint): Add comment.
15370
b7ea362b
PA
153712014-01-08 Pedro Alves <palves@redhat.com>
15372
15373 * remote.c (remote_add_thread): Add threads silently if starting
15374 up.
15375 (remote_notice_new_inferior): If in all-stop, and starting up,
15376 don't call notice_new_inferior.
15377 (get_current_thread): New function, factored out from ...
15378 (add_current_inferior_and_thread): ... this. Adjust.
15379 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15380 found any thread, then select the remote's current thread as GDB's
15381 current thread too.
15382
b7bba001
JB
153832014-01-08 Joel Brobecker <brobecker@adacore.com>
15384
15385 * NEWS: Create a new section for the next release branch.
15386 Rename the section of the current branch, now that it has
15387 been cut.
15388
16dfbded
JB
153892014-01-08 Joel Brobecker <brobecker@adacore.com>
15390
15391 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15392 * version.in: Bump version to 7.7.50.DATE-cvs.
15393
22c90ac1
YQ
153942014-01-08 Yao Qi <yao@codesourcery.com>
15395
15396 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15397 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15398 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15399
d64ad97c
YQ
154002014-01-08 Yao Qi <yao@codesourcery.com>
15401
15402 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15403 return value of bfd_get_filename to symbol_file_add_from_bfd.
15404
f93ba80c
PM
154052014-01-08 Pierre Muller <muller@sourceware.org>
15406
15407 Fix PR16201.
15408 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15409 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15410 to prim_record_mininal_symbol_and_info.
15411 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15412 in call to prim_record_minimal_symbol_and_info.
15413 (read_pe_exported_syms): Set index field of section_data.
15414
a4d9ba85
AP
154152014-01-07 Andrew Pinski <apinski@cavium.com>
15416
15417 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15418 * features/aarch64.c: Regenerate.
15419
1b67eb02
AS
154202014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15421
15422 * target.c (return_null): Define.
15423 (update_current_target): Use it instead of return_zero for
15424 functions that return a pointer.
15425
5e3f4fab
EBM
154262014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15427
15428 * source.c (add_path): Fix check for duplicated paths in the previously
15429 included paths.
15430
e2616788
HK
154312014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15432
15433 * ada-lang.c: Remove duplicated include statements.
15434 * alphabsd-nat.c: Ditto.
15435 * amd64-darwin-tdep.c: Ditto.
15436 * amd64fbsd-nat.c: Ditto.
15437 * auto-load.c: Ditto.
15438 * ax-gdb.c: Ditto.
15439 * breakpoint.c: Ditto.
15440 * dbxread.c: Ditto.
15441 * fork-child.c: Ditto.
15442 * gdb_usleep.c: Ditto.
15443 * i386-darwin-tdep.c: Ditto.
15444 * i386fbsd-nat.c: Ditto.
15445 * infcmd.c: Ditto.
15446 * inferior.c: Ditto.
15447 * jv-lang.c: Ditto.
15448 * linux-nat.c: Ditto.
15449 * linux-tdep.c: Ditto.
15450 * m68kbsd-nat.c: Ditto.
15451 * m68klinux-nat.c: Ditto.
15452 * microblaze-tdep.c: Ditto.
15453 * mips-linux-tdep.c: Ditto.
15454 * mn10300-tdep.c: Ditto.
15455 * nto-tdep.c: Ditto.
15456 * opencl-lang.c: Ditto.
15457 * osdata.c: Ditto.
15458 * printcmd.c: Ditto.
15459 * regcache.c: Ditto.
15460 * remote-m32r-sdi.c: Ditto.
15461 * remote.c: Ditto.
15462 * symfile.c: Ditto.
15463 * symtab.c: Ditto.
15464 * tilegx-linux-nat.c: Ditto.
15465 * tilegx-tdep.c: Ditto.
15466 * tracepoint.c: Ditto.
15467 * valops.c: Ditto.
15468 * vaxbsd-nat.c: Ditto.
15469 * windows-nat.c: Ditto.
15470 * xtensa-tdep.c: Ditto.
15471
bd1f7788
YQ
154722014-01-07 Yao Qi <yao@codesourcery.com>
15473
15474 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15475
79301218
JB
154762014-01-07 Yao Qi <yao@codesourcery.com>
15477 Joel Brobecker <brobecker@adacore.com>
15478
15479 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15480 (pdc_write_regs): Likewise.
15481 (fetch_regs_kernel_thread): Likewise.
15482 (store_regs_kernel_thread): Likewise.
15483
154842014-01-07 Joel Brobecker <brobecker@adacore.com>
15485
15486 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15487 tagged type objects to their actual type.
15488
8e355c5d
JB
154892014-01-07 Joel Brobecker <brobecker@adacore.com>
15490
15491 * ada-valprint.c (print_field_values): Add "language" parameter.
15492 Update calls to print_field_values and print_variant_part.
15493 Pass new parameter "language" in call to val_print instead
15494 of "current_language". Replace call to ada_val_print by call
15495 to val_print.
15496 (print_variant_part): Add "language" parameter.
15497 (ada_val_print_struct_union): Update call to print_field_values.
15498
4fbf5aa5
JB
154992014-01-07 Joel Brobecker <brobecker@adacore.com>
15500
15501 * ada-valprint.c (ui_memcpy): Delete.
15502 (ada_print_floating): Update documentation. Add empty line
15503 between between function documentation and implementation.
15504 Delete variable "buffer". Use ui_file_xstrdup in place of
15505 ui_file_put. Minor adjustments following this change.
15506
71855601
JB
155072014-01-07 Joel Brobecker <brobecker@adacore.com>
15508
15509 * ada-valprint.c (ada_val_print_string): New function,
15510 extracted from ada_val_print_array.
15511 (ada_val_print_array): Replace extracted code by call
15512 to ada_val_print_string followed by a return. Move
15513 "else" branch to the function's top block.
15514
4eb27a30
JB
155152014-01-07 Joel Brobecker <brobecker@adacore.com>
15516
15517 * ada-valprint.c (ada_val_print_array): Move implementation
15518 down. Rename parameter "offset" and "val" into "offset_aligned"
15519 and "original_value" respectively. Add parameter "offset".
15520
34b27950
JB
155212014-01-07 Joel Brobecker <brobecker@adacore.com>
15522
15523 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15524 re-organizing the code. Change the "???" message printed
15525 when target type is a TYPE_CODE_UNDEF into
15526 "<ref to undefined type>".
15527
079e4591
JB
155282014-01-07 Joel Brobecker <brobecker@adacore.com>
15529
15530 * ada-valprint.c (print_record): Delete, implementation inlined...
15531 (ada_val_print_struct_union): ... here. Remove call to
15532 ada_check_typedef in inlined implementation.
15533
8004dfd1
JB
155342014-01-07 Joel Brobecker <brobecker@adacore.com>
15535
15536 * ada-valprint.c (ada_val_print_gnat_array): New function,
15537 extracted from ada_val_print_1;
15538 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15539 (ada_val_print_flt, ada_val_print_struct_union)
15540 (ada_val_print_ref): Likewise.
15541 (ada_val_print_1): Delete variables i and elttype.
15542 Replace extracted-out code by call to corresponding
15543 new functions.
15544
760a2db0
JB
155452014-01-07 Joel Brobecker <brobecker@adacore.com>
15546
15547 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15548
3a92c861
JB
155492014-01-07 Joel Brobecker <brobecker@adacore.com>
15550
15551 * ada-valprint.c (ada_val_print_1): Replace calls to
15552 ada_val_print_1 by calls to val_print.
15553
cd1630f9
JB
155542014-01-07 Joel Brobecker <brobecker@adacore.com>
15555
15556 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15557 Update calls to self accordingly. Replace calls to c_val_print
15558 by calls to val_print.
15559
bdf779a0
JB
155602014-01-07 Joel Brobecker <brobecker@adacore.com>
15561
15562 * ada-valprint.c (print_record): Delete declaration.
15563 (adjust_type_signedness, ada_val_print_1): Likewise.
15564 (ada_val_print): Move function implementation down.
15565 (print_variant_part, print_field_values, print_record):
15566 Move function implementation up.
15567
c0d48811
JB
155682014-01-07 Joel Brobecker <brobecker@adacore.com>
15569
15570 * python/py-type.c (typy_get_name): New function.
15571 (type_object_getset): Add entry for attribute "name".
15572 * NEWS: Add entry mentioning this new attribute.
15573
c26e9cbb
YQ
155742014-01-07 Yao Qi <yao@codesourcery.com>
15575
15576 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15577 statement.
15578
0cc6f43d
YQ
155792014-01-07 Yao Qi <yao@codesourcery.com>
15580
15581 * gnu-nat.c (info_port_rights): Add qualifier const to
15582 argument args.
15583
eec03155
YQ
155842014-01-07 Yao Qi <yao@codesourcery.com>
15585
15586 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15587
f04a82ef
YQ
155882014-01-07 Yao Qi <yao@codesourcery.com>
15589
15590 * gnu-nat.c (make_inf) Update declaration.
15591 (make_inf): Make it static.
15592 (inf_set_traced): Likewise.
15593 (inf_port_to_thread, inf_task_died_status): Likewise.
15594
d57dda0a
YQ
155952014-01-07 Yao Qi <yao@codesourcery.com>
15596
15597 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15598
3aa8c969
YQ
155992014-01-07 Yao Qi <yao@codesourcery.com>
15600
15601 * gnu-nat.c (_initialize_gnu_nat): Declare.
15602
94123b4f
YQ
156032014-01-07 Yao Qi <yao@codesourcery.com>
15604
15605 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15606 'enum bfd_endian'.
15607 (struct gdbarch_info) <byte_order>: Change type to
15608 'enum bfd_endian'.
15609 <byte_order_for_code>: Likewise.
15610 * gdbarch.c, gdbarch.h: Regenerated.
15611
dc81d70a
TT
156122014-01-06 Sasha Smundak <asmundak@google.com>
15613
15614 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15615
cc2f3c35
TT
156162014-01-06 Tom Tromey <tromey@redhat.com>
15617
15618 * doublest.c (convert_doublest_to_floatformat): Use const, not
15619 CONST.
15620 * somread.c (som_symtab_read): Likewise.
15621
adcf2eed
HZ
156222014-01-07 Hui Zhu <hui@codesourcery.com>
15623
15624 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15625 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15626 (gdb_bfd_fopen): Ditto.
15627 (gdb_bfd_openr): Ditto.
15628 (gdb_bfd_openw): Ditto.
15629 (gdb_bfd_openr_iovec): Ditto.
15630 (gdb_bfd_fdopenr): Ditto.
15631 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15632 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15633 with xstrdup.
15634 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15635 with xstrdup.
15636 * symfile-mem.c (symbol_file_add_from_memory): Removed
15637 gdb_bfd_stash_filename.
15638
50722198
DE
156392014-01-03 Doug Evans <dje@google.com>
15640
15641 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15642 output.
15643
2fa4b862
JB
156442014-01-01 Joel Brobecker <brobecker@adacore.com>
15645
15646 Update year range in copyright notice of all files.
15647
28498c42
JB
156482014-01-01 Joel Brobecker <brobecker@adacore.com>
15649
15650 * top.c (print_gdb_version): Set copyright year to 2014.
15651
7b6e1046
JB
156522014-01-01 Joel Brobecker <brobecker@adacore.com>
15653
15654 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15655
df96af55 15656For older changes see ChangeLog-2013.
c906108c
SS
15657\f
15658Local Variables:
15659mode: change-log
15660left-margin: 8
15661fill-column: 74
15662version-control: never
57da7796 15663coding: utf-8
c906108c 15664End:
This page took 2.347177 seconds and 4 git commands to generate.