[arm] compute framereg and framesize when needed
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4072f920
YQ
12014-11-29 Yao Qi <yao@codesourcery.com>
2
3 * arm-tdep.c (arm_analyze_prologue): Move local variables
4 'framereg' and 'framesize' to inner block. Move code to
5 inner block too.
6
6c659fc2
SC
72014-11-28 Siva Chandra Reddy <sivachandra@google.com>
8
9 * eval.c: Include gdbthread.h.
10 (evaluate_subexp): Enable thread stack temporaries before
11 evaluating a complete expression and clean them up after the
12 evaluation is complete.
13 * gdbthread.h: Include common/vec.h.
14 (value_ptr): New typedef.
15 (VEC (value_ptr)): New vector type.
16 (value_vec): New typedef.
17 (struct thread_info): Add new fields stack_temporaries_enabled
18 and stack_temporaries.
19 (enable_thread_stack_temporaries)
20 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
21 (get_last_thread_stack_temporary)
22 (value_in_thread_stack_temporaries): Declare.
23 * gdbtypes.c (class_or_union_p): New function.
24 * gdbtypes.h (class_or_union_p): Declare.
25 * infcall.c (call_function_by_hand): Store return values of class
26 type as temporaries on stack.
27 * thread.c (enable_thread_stack_temporaries): New function.
28 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
29 (get_last_thread_stack_temporary): Likewise.
30 (value_in_thread_stack_temporaries): Likewise.
31 * value.c (value_force_lval): New function.
32 * value.h (value_force_lval): Declare.
33
f7ca3fcf
PM
342014-11-28 Pierre Muller <muller@sourceware.org>
35
36 Pushed by Joel Brobecker <brobecker@adacore.com>.
37 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
38 registers.
39
b2859a9a
UW
402014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
41
42 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
43 * config/sparc/linux.mh (NATDEPFILES): Likewise.
44 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
45 * m68klinux-nat.c (fetch_core_registers): Remove.
46 (linux_elf_core_fns): Remove.
47 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
48
0fa9473f
JB
492014-11-28 Joel Brobecker <brobecker@adacore.com>
50
51 * utils.c (gdb_realpath): Rework comment about handling on
52 Windows.
53
6a29c58e
YQ
542014-11-28 Yao Qi <yao@codesourcery.com>
55
56 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
57 rename.
58 * gnulib/aclocal.m4: Re-generated.
59 * gnulib/config.in: Re-generated.
60 * gnulib/configure: Re-generated.
61 * gnulib/import/Makefile.am: Re-generated.
62 * gnulib/import/Makefile.in: Re-generated.
63 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
64 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
65 * import/basename-lgpl.c: New file.
66 * import/dirname-lgpl.c: New file.
67 * import/dirname.h: New file.
68 * import/m4/dirname.m4: New file.
69 * import/m4/malloc.m4: New file.
70 * import/m4/rename.m4: New file.
71 * import/m4/rmdir.m4: New file.
72 * import/m4/stdio_h.m4: New file.
73 * import/malloc.c: New file.
74 * import/rename.c: New file.
75 * import/rmdir.c: New file.
76 * import/same-inode.h: New file.
77 * import/stdio.c: New file.
78 * import/stdio.in.h: New file.
79 * import/stripslash.c: New file.
80
abbffc89
YQ
812014-11-28 Yao Qi <yao@codesourcery.com>
82
83 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
84 and realpath.
85 * config.in: Re-generated.
86 * configure: Re-generated.
87 * utils.c (gdb_realpath): Remove code calling realpath,
88 canonicalize_file_name and pathconf.
89 [!_WIN32]: Call canonicalize_file_name.
90
98399780
YQ
912014-11-28 Yao Qi <yao@codesourcery.com>
92
93 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
94 canonicalize-lgpl.
95 * aclocal.m4: Re-generated.
96 * config.in: Re-generated.
97 * configure: Re-generated.
98 * import/Makefile.am: Re-generated.
99 * import/Makefile.in: Re-generated.
100 * import/m4/gnulib-cache.m4: Re-generated.
101 * import/m4/gnulib-comp.m4: Re-generated.
102 * import/canonicalize-lgpl.c: New file.
103 * import/extra/snippet/_Noreturn.h: New file.
104 * import/m4/canonicalize.m4: New file.
105 * import/m4/double-slash-root.m4: New file.
106 * import/m4/eealloc.m4: New file.
107 * import/m4/malloca.m4: New file.
108 * import/m4/nocrash.m4: New file.
109 * import/m4/stdlib_h.m4: New file.
110 * import/malloca.c: New file.
111 * import/malloca.h: New file.
112 * import/malloca.valgrind: New file.
113
3332aaf2
YQ
1142014-11-28 Yao Qi <yao@codesourcery.com>
115
116 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
117 * config.in, configure: Regenerate.
118 * symfile.c (find_separate_debug_file_by_debuglink): Remove
119 code checking HAVE_LSTAT is defined.
120
f45c62c4
YQ
1212014-11-28 Yao Qi <yao@codesourcery.com>
122
123 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
124 lstat.
125 * gnulib/aclocal.m4: Re-generated.
126 * gnulib/config.in: Re-generated.
127 * gnulib/configure: Re-generated.
128 * gnulib/import/Makefile.am: Re-generated.
129 * gnulib/import/Makefile.in: Re-generated.
130 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
131 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
132 * gnulib/import/lstat.c: New file.
133 * gnulib/import/m4/lstat.m4: New file.
134
bdca27a2
YQ
1352014-11-28 Yao Qi <yao@codesourcery.com>
136
137 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
138 * config.in, configure: Re-generate.
139 * inf-child.c (inf_child_fileio_readlink): Don't check
140 HAVE_READLINK is defined.
141
2196f55f
YQ
1422014-11-28 Yao Qi <yao@codesourcery.com>
143
144 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
145 * gnulib/aclocal.m4: Re-generated.
146 * gnulib/config.in: Likewise.
147 * gnulib/configure: Likewise.
148 * gnulib/import/Makefile.am: Likewise.
149 * gnulib/import/Makefile.in: Likewise.
150 * gnulib/import/m4/gnulib-cache.m4: Likewise.
151 * gnulib/import/m4/gnulib-comp.m4: Likewise.
152 * gnulib/import/dosname.h: New file
153 * gnulib/import/m4/largefile.m4: New file.
154 * gnulib/import/m4/readlink.m4: New file.
155 * gnulib/import/m4/stat.m4: New file.
156 * gnulib/import/readlink.c: New file.
157 * gnulib/import/stat.c: New file.
158
7014e923 1592014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
160
161 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
162 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
163
aa489395
SL
1642014-11-25 Sandra Loosemore <sandra@codesourcery.com>
165
166 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
167 that there can be only one stack adjustment in the prologue
168 with tests to detect specific disallowed stack adjustments.
169
7f1659b5
SL
1702014-11-25 Sandra Loosemore <sandra@codesourcery.com>
171
172 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
173 adjustments.
174
d53c26c7
SL
1752014-11-25 Sandra Loosemore <sandra@codesourcery.com>
176
177 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
178 the instruction as well as reading it from memory.
179 (nios2_match_add): New.
180 (nios2_match_sub): New.
181 (nios2_match_addi): New.
182 (nios2_match_orhi): New.
183 (nios2_match_stw): New.
184 (nios2_match_ldw): New.
185 (nios2_match_rdctl): New.
186 (enum branch_condition): New.
187 (nios2_match_branch): New.
188 (nios2_match_jmpi): New.
189 (nios2_match_calli): New.
190 (nios2_match_jmpr): New.
191 (nios2_match_callr): New.
192 (nios2_match_break): New.
193 (nios2_match_trap): New.
194 (nios2_in_epilogue_p): Rewrite to use new functions.
195 (nios2_analyze_prologue): Likewise.
196 (nios2_skip_prologue): Delete unused local limit_pc.
197 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
198 (nios2_get_next_pc): Rewrite to use new functions.
199
cac9b138
JK
2002014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
201
202 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
203
a441dfbc
ST
2042014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
205
206 Pushed by Joel Brobecker <brobecker@adacore.com>
207 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
208 elements pi_len by the size of the elements before calling
209 vm_deallocate.
210 (inf_validate_task_sc): Likewise, and properly deallocate the
211 noise array.
212
4c9e8482
DE
2132014-11-23 Doug Evans <xdje42@gmail.com>
214
215 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
216 number and name if present. All callers updated.
217 (dump_fn_fieldlists): Fix indentation of args.
218
15ee0bbd
PP
2192014-11-23 Patrick Palka <patrick@parcs.ath.cx>
220
221 * MAINTAINERS (Write After Approval): Add myself.
222
e8af5d7a
JB
2232014-11-23 Joel Brobecker <brobecker@adacore.com>
224
225 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
226 to a bp_call_dummy breakpoint type.
227
a344fc09
PP
2282014-11-23 Patrick Palka <patrick@parcs.ath.cx>
229
230 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
231 registering the signal handler.
232
d64e57fa
PP
2332014-11-23 Patrick Palka <patrick@parcs.ath.cx>
234
235 * event-top.h (call_stdin_event_handler_again_p): Declare.
236 * event-top.c (call_stdin_event_handler_again_p): Define.
237 (stdin_event_handler): Use it.
238 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
239 handler again if there is pending input following a
240 start sequence.
241
6f9d33d8
PP
2422014-11-23 Patrick Palka <patrick@parcs.ath.cx>
243
244 Pushed by Joel Brobecker <brobecker@adacore.com>
245 * linux-fork.c (checkpoint_command): Print index of new
246 checkpoint in response message.
247
88db67ef
YQ
2482014-11-23 Yao Qi <yao@codesourcery.com>
249
250 * valprint.c (read_string): Move local variables 'found_nul',
251 'chunksize' and 'limit' to inner scope. Update comments.
252
01465b56
DE
2532014-11-22 Doug Evans <xdje42@gmail.com>
254
255 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
256 function comment.
257 (search_symbols): Fix comments and whitespace.
258
07a1c2c3
DE
2592014-11-22 Doug Evans <xdje42@gmail.com>
260
261 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
262
b2a919a8
DE
2632014-11-21 Doug Evans <dje@google.com>
264
265 * psymtab.c (psymtab_search_name): Fix whitespace.
266
278289d5
YQ
2672014-11-21 Yao Qi <yao@codesourcery.com>
268
269 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
270 errno.
271 * gnulib/import/Makefile.am: Re-generated.
272 * gnulib/import/Makefile.in: Likewise.
273 * gnulib/import/m4/gnulib-cache.m4: Likewise.
274
e01e2baa
YQ
2752014-11-21 Yao Qi <yao@codesourcery.com>
276
277 * gdb_wchar.h: Include wchar.h and wctype.h.
278 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
279 include wchar.h and wctype.h.
280 Don't check HAVE_WCHAR_H.
281
f0c00af8
YQ
2822014-11-21 Yao Qi <yao@codesourcery.com>
283
284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
285 and wctype-h.
286 * gnulib/import/Makefile.am: Re-generated.
287 * gnulib/import/Makefile.in: Likewise.
288 * gnulib/import/m4/gnulib-cache.m4: Likewise.
289
0cae13bb
YQ
2902014-11-21 Yao Qi <yao@codesourcery.com>
291
292 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
293 memchr.
294 * gnulib/import/Makefile.am: Re-generated.
295 * gnulib/import/Makefile.in: Likewise.
296 * gnulib/import/m4/gnulib-cache.m4: Likewise.
297
9c232dda
YQ
2982014-11-21 Yao Qi <yao@codesourcery.com>
299
300 * common/common-defs.h: Include alloca.h
301 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
302 * configure: Re-generated.
303 * defs.h: Remove code handling alloca.
304 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
305 or not.
306
00d7f58f
YQ
3072014-11-21 Yao Qi <yao@codesourcery.com>
308
309 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
310 alloca.
311 * gnulib/import/Makefile.am: Re-generated.
312 * gnulib/import/Makefile.in: Likewise..
313 * gnulib/import/m4/gnulib-cache.m4: Likewise.
314
6068ad5d
YQ
3152014-11-21 Yao Qi <yao@codesourcery.com>
316
317 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
318 alphabetical order.
319
45e44d27
JB
3202014-11-21 Joel Brobecker <brobecker@adacore.com>
321
322 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
323 flag_unsigned if HIGH_BOUND is constant and negative.
324
7e7cbeb3
SDJ
3252014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
326
327 PR breakpoints/10737
328 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
329 modifier from "struct gdbarch" when compiling without Expat (XML)
330 support.
331 (get_syscall_by_number): Likewise.
332 (get_syscall_by_name): Likewise.
333 (get_syscall_names): Likewise.
334
458c8db8
SDJ
3352014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
336
337 PR breakpoints/10737
338 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
339 set_xml_syscall_file_name to provide gdbarch.
340 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
341 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
342 * breakpoint.c (print_it_catch_syscall): Adjust call to
343 get_syscall_by_number to provide gdbarch.
344 (print_one_catch_syscall): Likewise.
345 (print_mention_catch_syscall): Likewise.
346 (print_recreate_catch_syscall): Likewise.
347 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
348 and get_syscall_by_name to provide gdbarch.
349 (catch_syscall_completer): Adjust call to get_syscall_names to
350 provide gdbarch.
351 * gdbarch.c: Regenerate.
352 * gdbarch.h: Likewise.
353 * gdbarch.sh: Forward declare "struct syscalls_info".
354 (xml_syscall_file): New variable.
355 (syscalls_info): Likewise.
356 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
357 set_xml_syscall_file_name to provide gdbarch.
358 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
359 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
360 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
361 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
362 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
363 * xml-syscall.c: Include gdbarch.h.
364 (set_xml_syscall_file_name): Accept gdbarch parameter.
365 (get_syscall_by_number): Likewise.
366 (get_syscall_by_name): Likewise.
367 (get_syscall_names): Likewise.
368 (my_gdb_datadir): Delete global variable.
369 (struct syscalls_info) <my_gdb_datadir>: New variable.
370 (struct syscalls_info) <sysinfo>: Rename variable to
371 "syscalls_info".
372 (sysinfo): Delete global variable.
373 (have_initialized_sysinfo): Likewise.
374 (xml_syscall_file): Likewise.
375 (sysinfo_free_syscalls_desc): Rename to...
376 (syscalls_info_free_syscalls_desc): ... this.
377 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
378 code to the new layout of "struct syscalls_info".
379 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
380 "syscalls_info".
381 (syscall_create_syscall_desc): Likewise.
382 (syscall_start_syscall): Likewise.
383 (syscall_parse_xml): Likewise.
384 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
385 (init_sysinfo): Rename to...
386 (init_syscalls_info): ...this. Add gdbarch as a parameter.
387 Adjust function to deal with gdbarch.
388 (xml_get_syscall_number): Delete parameter sysinfo. Accept
389 gdbarch as a parameter. Adjust code.
390 (xml_get_syscall_name): Likewise.
391 (xml_list_of_syscalls): Likewise.
392 (set_xml_syscall_file_name): Accept gdbarch as parameter.
393 (get_syscall_by_number): Likewise.
394 (get_syscall_by_name): Likewise.
395 (get_syscall_names): Likewise.
396 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
397 (get_syscall_by_number): Likewise.
398 (get_syscall_by_name): Likewise.
399 (get_syscall_names): Likewise.
400
43f3e411
DE
4012014-11-20 Doug Evans <xdje42@gmail.com>
402
403 Split struct symtab into two: struct symtab and compunit_symtab.
404 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
405 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
406 to "struct compunit_symtab *". All callers updated.
407 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
408 "struct symtab *" argument to "struct compunit_symtab *".
409 All callers updated.
410 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
411 result to "struct compunit_symtab *". All callers updated.
412 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
413 Change result to "struct compunit_symtab *". All callers updated.
414 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
415 hange type to "struct compunit_symtab *". All uses updated.
416 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
417 Change type to "struct compunit_symtab *". All uses updated.
418 * buildsym.c (struct buildsym_compunit): New struct.
419 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
420 (buildsym_compunit): New static global.
421 (finish_block_internal): Update to fetch objfile from
422 buildsym_compunit.
423 (make_blockvector): Delete objfile argument.
424 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
425 debugformat, producer.
426 (start_buildsym_compunit): New function.
427 (free_buildsym_compunit): Renamed from free_subfiles_list.
428 All callers updated.
429 (patch_subfile_names): Rewrite to use buildsym_compunit.
430 (get_compunit_symtab): New function.
431 (get_macro_table): Delete argument comp_dir. All callers updated.
432 (start_symtab): Change result to "struct compunit_symtab *".
433 All callers updated. Create the subfile of the main source file.
434 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
435 (reset_symtab_globals): Update.
436 (end_symtab_get_static_block): Update to use buildsym_compunit.
437 (end_symtab_without_blockvector): Rewrite.
438 (end_symtab_with_blockvector): Change result to
439 "struct compunit_symtab *". All callers updated.
440 Update to use buildsym_compunit. Don't set symtab->dirname,
441 instead set it in the compunit.
442 Explicitly make sure main symtab is first in its list.
443 Set debugformat, producer, blockvector, block_line_section, and
444 macrotable in the compunit.
445 (end_symtab_from_static_block): Change result to
446 "struct compunit_symtab *". All callers updated.
447 (end_symtab, end_expandable_symtab): Ditto.
448 (set_missing_symtab): Change symtab argument to
449 "struct compunit_symtab *". All callers updated.
450 (augment_type_symtab): Ditto.
451 (record_debugformat): Update to use buildsym_compunit.
452 (record_producer): Update to use buildsym_compunit.
453 * buildsym.h (struct subfile) <dirname>: Delete.
454 <producer, debugformat>: Delete.
455 <buildsym_compunit>: New member.
456 (get_compunit_symtab): Declare.
457 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
458 from primary_symtab. Change type to "struct compunit_symtab *".
459 All uses updated.
460 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
461 All callers updated.
462 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
463 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
464 symtab. Change type to "struct compunit_symtab *". All uses updated.
465 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
466 All callers updated.
467 (dw2_find_last_source_symtab): Ditto.
468 (dw2_lookup_symbol): Ditto.
469 (recursively_find_pc_sect_compunit_symtab): Renamed from
470 recursively_find_pc_sect_symtab. Change result to
471 "struct compunit_symtab *". All callers updated.
472 (dw2_find_pc_sect_compunit_symtab): Renamed from
473 dw2_find_pc_sect_symtab. Change result to
474 "struct compunit_symtab *". All callers updated.
475 (get_compunit_symtab): Renamed from get_symtab. Change result to
476 "struct compunit_symtab *". All callers updated.
477 (recursively_compute_inclusions): Change type of immediate_parent
478 argument to "struct compunit_symtab *". All callers updated.
479 (compute_compunit_symtab_includes): Renamed from
480 compute_symtab_includes. All callers updated. Rewrite to compute
481 includes of compunit_symtabs and not symtabs.
482 (process_full_comp_unit): Update to work with struct compunit_symtab.
483 (process_full_type_unit): Ditto.
484 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
485 (dwarf_decode_lines): Remove special case handling of main subfile.
486 (macro_start_file): Delete argument comp_dir. All callers updated.
487 (dwarf_decode_macro_bytes): Ditto.
488 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
489 use struct compunit_symtab.
490 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
491 * jit.c (finalize_symtab): Build compunit_symtab.
492 * jv-lang.c (get_java_class_symtab): Change result to
493 "struct compunit_symtab *". All callers updated.
494 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
495 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
496 comp_dir. Change type to "struct compunit_symtab *".
497 All uses updated.
498 (new_macro_table): Change comp_dir argument to cust,
499 "struct compunit_symtab *". All callers updated.
500 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
501 nr_primary_symtabs. All uses updated.
502 (count_symtabs_and_blocks): Update to handle compunits.
503 (report_command_stats): Update output, "primary symtabs" renamed to
504 "compunits".
505 * mdebugread.c (new_symtab): Change result to
506 "struct compunit_symtab *". All callers updated.
507 (parse_procedure): Change type of search_symtab argument to
508 "struct compunit_symtab *". All callers updated.
509 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
510 separate loop.
511 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
512 symtabs. Change type to "struct compunit_symtab *". All uses updated.
513 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
514 All uses updated.
515 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
516 All uses updated.
517 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
518 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
519 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
520 symtab. Change type to "struct compunit_symtab *". All uses updated.
521 * psymtab.c (psymtab_to_symtab): Change result type to
522 "struct compunit_symtab *". All callers updated.
523 (find_pc_sect_compunit_symtab_from_partial): Renamed from
524 find_pc_sect_symtab_from_partial. Change result type to
525 "struct compunit_symtab *". All callers updated.
526 (lookup_symbol_aux_psymtabs): Change result type to
527 "struct compunit_symtab *". All callers updated.
528 (find_last_source_symtab_from_partial): Ditto.
529 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
530 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
531 and macro_table from compunit.
532 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
533 type to "struct compunit_symtab *". All callers updated.
534 (debug_qf_lookup_symbol): Ditto.
535 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
536 debug_qf_find_pc_sect_symtab, change result type to
537 "struct compunit_symtab *". All callers updated.
538 * symfile.c (allocate_symtab): Delete objfile argument.
539 New argument cust.
540 (allocate_compunit_symtab): New function.
541 (add_compunit_symtab_to_objfile): New function.
542 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
543 Change result type to "struct compunit_symtab *". All uses updated.
544 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
545 Change result type to "struct compunit_symtab *". All uses updated.
546 * symmisc.c (print_objfile_statistics): Compute blockvector count in
547 separate loop.
548 (dump_symtab_1): Update test for primary source symtab.
549 (maintenance_info_symtabs): Update to handle compunit symtabs.
550 (maintenance_check_symtabs): Ditto.
551 * symtab.c (set_primary_symtab): Delete.
552 (compunit_primary_filetab): New function.
553 (compunit_language): New function.
554 (iterate_over_some_symtabs): Change type of arguments "first",
555 "after_last" to "struct compunit_symtab *". All callers updated.
556 Update to loop over symtabs in each compunit.
557 (error_in_psymtab_expansion): Rename symtab argument to cust,
558 and change type to "struct compunit_symtab *". All callers updated.
559 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
560 Change result type to "struct compunit_symtab *". All callers updated.
561 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
562 Change result type to "struct compunit_symtab *". All callers updated.
563 (find_pc_sect_line): Only loop over symtabs within selected compunit
564 instead of all symtabs in the objfile.
565 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
566 <compunit_symtab> New member.
567 <block_line_section>: Moved to compunit_symtab.
568 <locations_valid>: Ditto.
569 <epilogue_unwind_valid>: Ditto.
570 <macro_table>: Ditto.
571 <dirname>: Ditto.
572 <debugformat>: Ditto.
573 <producer>: Ditto.
574 <objfile>: Ditto.
575 <call_site_htab>: Ditto.
576 <includes>: Ditto.
577 <user>: Ditto.
578 <primary>: Delete
579 (SYMTAB_COMPUNIT): New macro.
580 (SYMTAB_BLOCKVECTOR): Update definition.
581 (SYMTAB_OBJFILE): Update definition.
582 (SYMTAB_DIRNAME): Update definition.
583 (struct compunit_symtab): New type. Common members among all source
584 symtabs within a compilation unit moved here. All uses updated.
585 (COMPUNIT_OBJFILE): New macro.
586 (COMPUNIT_FILETABS): New macro.
587 (COMPUNIT_DEBUGFORMAT): New macro.
588 (COMPUNIT_PRODUCER): New macro.
589 (COMPUNIT_DIRNAME): New macro.
590 (COMPUNIT_BLOCKVECTOR): New macro.
591 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
592 (COMPUNIT_LOCATIONS_VALID): New macro.
593 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
594 (COMPUNIT_CALL_SITE_HTAB): New macro.
595 (COMPUNIT_MACRO_TABLE): New macro.
596 (ALL_COMPUNIT_FILETABS): New macro.
597 (compunit_symtab_ptr): New typedef.
598 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
599
005e2509
JB
6002014-11-20 Joel Brobecker <brobecker@adacore.com>
601
602 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
603 if the TYPE_CODE of range_type's base type does not match
604 the TYPE_CODE of encoding_type's base type.
605
2b0f535a
JB
6062014-11-19 Joel Brobecker <brobecker@adacore.com>
607
608 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
609 it starts with '<'.
610
8908fca5
JB
6112014-11-19 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-lang.c (ada_is_redundant_range_encoding): New function.
614 (ada_is_redundant_index_type_desc): New function.
615 (to_fixed_array_type): Ignore parallel XA type if redundant.
616
4a46959e
JB
6172014-11-19 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-lang.c (constrained_packed_array_type): Set the length
620 of the return array as if both bounds where zero if that
621 returned array's index type is dynamic.
622
2acf986b
YQ
6232014-11-19 Yao Qi <yao@codesourcery.com>
624
625 * config/i386/go32.mh (CC): Remove.
626
439247b6
DE
6272014-11-18 Doug Evans <xdje42@gmail.com>
628
629 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
630 updated.
631
4d663531
DE
6322014-11-18 Doug Evans <xdje42@gmail.com>
633
634 * buildsym.c (buildsym_objfile): New static global.
635 (buildsym_comp_dir): New static global.
636 (finish_block_internal): Delete arg objfile. All callers updated.
637 (finish_block): Delete arg objfile. All callers updated.
638 (start_subfile): Delete arg dirname. All callers updated.
639 (patch_subfile_names): Update buildsym_comp_dir.
640 (get_macro_table): Delete arg objfile. All callers updated.
641 (start_symtab): New arg objfile. All callers updated.
642 Rename arg dirname to comp_dir.
643 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
644 (end_symtab_get_static_block): Delete arg objfile. All callers
645 updated.
646 (end_symtab_without_blockvector): Ditto.
647 (end_symtab_with_blockvector): Ditto.
648 (end_symtab_from_static_block): Ditto.
649 (end_symtab): Ditto.
650 (end_expandable_symtab): Ditto.
651 (augment_type_symtab): Ditto.
652 * coffread.c (coff_start_symtab): New arg objfile. All callers
653 updated.
654
8435453b
DE
6552014-11-18 Doug Evans <xdje42@gmail.com>
656
657 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
658 updated.
659
ee6f8984
DE
6602014-11-18 Doug Evans <xdje42@gmail.com>
661
662 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
663 symtab.dirname updated to use it.
664
eb822aa6
DE
6652014-11-18 Doug Evans <xdje42@gmail.com>
666
667 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
668 symtab.objfile updated to use it.
669
98387a29
DE
6702014-11-18 Doug Evans <xdje42@gmail.com>
671
672 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
673
aff08958
DE
6742014-11-18 Doug Evans <xdje42@gmail.com>
675
676 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
677 SYMBOL_OBJFILE.
678 * findvar.c (default_read_var_value): Ditto.
679 * jv-lang.c (add_class_symtab_symbol): Ditto.
680 * parse.c (operator_check_standard): Ditto.
681 * printcmd.c (address_info): Ditto.
682 * symtab.c (fixup_symbol_section): Ditto.
683 (skip_prologue_sal): Ditto.
684 * tracepoint.c (scope_info): Ditto.
685 * valops.c (find_function_in_inferior): Ditto.
686 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
687 * python/py-symbol.c (set_symbol): Ditto.
688
7bab9b58
DE
6892014-11-18 Doug Evans <xdje42@gmail.com>
690
691 * buildsym.c (main_subfile): New static global.
692 (free_subfiles_list): New function.
693 (start_symtab): Set main_subfile.
694 (restart_symtab): Replace init of subfiles, current_subfile with
695 call to free_subfiles_list.
696 (watch_main_source_file_lossage): Use main_subfile.
697 (reset_symtab_globals): Replace init of current_subfile with call
698 to free_subfiles_list.
699 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
700 functions, split out from ...
701 (end_symtab_from_static_block): ... here. Rewrite to call them.
702
f194fefb
DE
7032014-11-18 Doug Evans <xdje42@gmail.com>
704
705 The result of symtab expansion is always a primary symtab.
706 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
707 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
708 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
709 (psymtab_to_symtab): Add comment and assert.
710 (map_matching_symbols_psymtab): Remove unnecessary test for
711 non-primary symtab.
712
34248c3a
DE
7132014-11-15 Doug Evans <xdje42@gmail.com>
714
715 PR symtab/17559
716 * symtab.c (find_pc_line_symtab): New function.
717 * symtab.h (find_pc_line_symtab): Declare.
718 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
719 find_pc_symtab.
720 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
721 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
722 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
723 * tui/tui-win.c (make_visible_with_new_height): Ditto.
724 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
725 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
726
2097ae25
DE
7272014-11-15 Doug Evans <xdje42@gmail.com>
728
729 * symtab.c (expand_symtab_containing_pc): Renamed from
730 find_pc_sect_symtab_via_partial. All callers updated.
731
1ada499f
YQ
7322014-11-15 Yao Qi <yao@codesourcery.com>
733
734 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
735
355e2102
JB
7362014-11-14 Joel Brobecker <brobecker@adacore.com>
737
738 * common/common-defs.h: Move <stdarg.h> #include ahead of
739 <stdio.h> #include.
740
83030110
PA
7412014-11-14 Pedro Alves <palves@redhat.com>
742
743 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
744 [!PHONY_ICONV] (gdb_iconv): New function.
745 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
746
a8719064
DE
7472014-11-13 Doug Evans <dje@google.com>
748
749 PR symtab/17591
750 * dwarf2read.c (find_slot_in_mapped_hash): Handle
751 "(anonymous namespace)".
752
60f7655a
DE
7532014-11-13 Doug Evans <dje@google.com>
754
755 * dwarf2read.c (update_enumeration_type_from_children): Avoid
756 infinite loop.
757
5784b3ca
JK
7582014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
759
760 * NEWS (maint set target-async): Fix typo.
761
6218dc4b
PA
7622014-11-12 Pedro Alves <palves@redhat.com>
763
764 * infrun.c (enum infwait_states, infwait_state): Delete.
765
af48d08f
PA
7662014-11-12 Pedro Alves <palves@redhat.com>
767
768 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
769 Rewrite stepping over a permanent breakpoint.
770 (thread_still_needs_step_over, proceed): Don't set
771 stepping_over_breakpoint for permanent breakpoints.
772 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
773 single-step breakpoints out of the target on hardware step
774 targets.
775 (process_event_stop_test): If stepping a permanent breakpoint
776 doesn't hit the step-resume breakpoint, delete the step-resume
777 breakpoint.
778 (switch_back_to_stepped_thread): Also check if the stepped thread
779 has advanced already on hardware step targets.
780 (currently_stepping): Return true if the thread stepped a
781 breakpoint.
782
1a853c52
PA
7832014-11-12 Pedro Alves <palves@redhat.com>
784
785 Mark locations as permanent, not the whole breakpoint.
786 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
787 (mark_breakpoints_out): Don't mark permanent breakpoints as
788 uninserted.
789 (breakpoint_init_inferior): Use mark_breakpoints_out.
790 (breakpoint_here_p): Adjust.
791 (bpstat_stop_status, describe_other_breakpoints): Remove handling
792 of permanent breakpoints.
793 (make_breakpoint_permanent): Mark each location as permanent,
794 instead of marking the breakpoint.
795 (add_location_to_breakpoint): If the location is permanent, mark
796 it as such, and as inserted.
797 (init_breakpoint_sal): Don't make the breakpoint permanent here.
798 (bp_location_compare, update_global_location_list): Adjust.
799 (update_breakpoint_locations): Don't make the breakpoint permanent
800 here.
801 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
802 breakpoints.
803 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
804 (struct bp_location) <permanent>: New field.
805 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
806 reference to bp_permanent.
807
ae9bb220
PA
8082014-11-12 Pedro Alves <palves@redhat.com>
809
810 * arch-utils.c (default_skip_permanent_breakpoint): New function.
811 * arch-utils.h (default_skip_permanent_breakpoint): New
812 declaration.
813 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
814 Install default_skip_permanent_breakpoint as default method.
815 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
816 (i386_gdbarch_init): Don't install it.
817 * infrun.c (resume): Assume there's always a
818 gdbarch_skip_permanent_breakpoint implementation.
819 * gdbarch.h, gdbarch.c: Regenerate.
820
015de688
DC
8212014-11-11 Daniel Colascione <dancol@dancol.org>
822
823 Warn about cross-PID-namespace debugging.
824 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
825 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
826 * linux-thread-db.c (check_pid_namespace_match): New function.
827 (thread_db_inferior_created): Call it.
828
26a84859
DE
8292014-11-10 Doug Evans <xdje42@gmail.com>
830
831 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
832 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
833
712a2e6d
DE
8342014-11-10 Doug Evans <xdje42@gmail.com>
835
836 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
837
af3768e9
DE
8382014-11-10 Doug Evans <xdje42@gmail.com>
839
840 PR symtab/17564
841 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
842 (lookup_static_symbol): Move definition to new location and rewrite.
843 (lookup_symbol_in_objfile): New function.
844 (lookup_symbol_global_iterator_cb): Call it.
845
b1f28d99
UW
8462014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
847
848 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
849
b7a084be
PA
8502014-11-07 Pedro Alves <palves@redhat.com>
851
852 * infrun.c (process_event_stop_test) <subroutine check>: Don't
853 check if we did a "nexti" inside a prologue.
854 * symtab.c (in_prologue): Delete function.
855 * symtab.h (in_prologue): Delete declaration.
856
67be31e5
DE
8572014-11-06 Doug Evans <xdje42@gmail.com>
858
859 * symtab.h (lookup_global_symbol): Improve function comment.
860
08724ab7
DE
8612014-11-06 Doug Evans <xdje42@gmail.com>
862
863 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
864 All callers updated.
865 * symtab.h (lookup_global_symbol): Update decl.
866 (lookup_static_symbol): Move decl to better location.
867
d9060ba6
DE
8682014-11-06 Doug Evans <xdje42@gmail.com>
869
870 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
871
74016e12
DE
8722014-11-06 Doug Evans <xdje42@gmail.com>
873
874 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
875 All callers updated.
876 (lookup_symbol_in_all_objfiles): Renamed from
877 lookup_symbol_aux_symtabs. All callers updated.
878 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
879 All callers updated.
880 (lookup_symbol_in_objfile_symtabs): Renamed from
881 lookup_symbol_aux_objfile. All callers updated.
882
d1a2d36d
DE
8832014-11-06 Doug Evans <xdje42@gmail.com>
884
885 * symtab.c (lookup_symbol_in_block): Renamed from
886 lookup_symbol_aux_block. All callers updated.
887
24d864bb
DE
8882014-11-06 Doug Evans <xdje42@gmail.com>
889
890 * symtab.c (lookup_static_symbol): Renamed from
891 lookup_static_symbol_aux. All callers updated.
892 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
893 All callers updated.
894
358d6ab3
DE
8952014-11-06 Doug Evans <xdje42@gmail.com>
896
897 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
898 * block.c (block_lookup_symbol): Use it.
899 * cp-support.c (make_symbol_overload_list_block): Use it.
900 * symtab.c (iterate_over_symbols): Use it.
901
16b2eaa1
DE
9022014-11-06 Doug Evans <xdje42@gmail.com>
903
904 * symtab.c (lookup_block_symbol): Moved to ...
905 * block.c (block_lookup_symbol): ... here and renamed.
906 All callers updated.
907 * block.h (block_lookup_symbol): Declare.
908 * symtab.h (lookup_block_symbol): Delete.
909
2dd2cd1c
DE
9102014-11-06 Doug Evans <xdje42@gmail.com>
911
912 * ada-lang.c (ada_make_symbol_completion_list): Use
913 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
914 * symtab.c (lookup_objfile_from_block): Ditto.
915
d4c58915
DE
9162014-11-06 Doug Evans <xdje42@gmail.com>
917
918 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
919 TYPE_CODE_STRUCT.
920
9c1877ea
DE
9212014-11-06 Doug Evans <xdje42@gmail.com>
922
923 * objfiles.c (get_objfile_arch): Constify.
924 * objfiles.h (get_objfile_arch): Update prototype.
925 * solib.c (solib_global_lookup): Fetch arch from objfile,
926 not target_gdbarch.
927
426a4079
SL
9282014-11-06 Sandra Loosemore <sandra@codesourcery.com>
929
930 * nios2-tdep.c (wild_insn): Delete.
931 (profiler_insn, irqentry_insn): Delete.
932 (nios2_match_sequence): Delete.
933 (nios2_analyze_prologue): Update comments. Remove matching
934 of obsolete profiler_insn and irqentry_insn sequences.
935
ee11262d
AM
9362014-11-05 Alan Modra <amodra@gmail.com>
937
938 * charset.c (convert_between_encodings): Shrink obstack using
939 obstack_blank_fast.
940 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
941 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
942 to char* before doing pointer arithmetic.
ee11262d 943
c87e6d00
SM
9442014-11-04 Simon Marchi <simon.marchi@ericsson.com>
945
946 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
947
441ef17f
PA
9482014-11-04 Pedro Alves <palves@redhat.com>
949
950 * breakpoint.c (breakpoint_thread_match): Delete function.
951 * breakpoint.h (breakpoint_thread_match): Delete declaration.
952
e0f52461
SC
9532014-11-03 Siva Chandra Reddy <sivachandra@google.com>
954
955 PR c++/17494
956 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
957 the method args also under EVAL_SKIP when evaluating method
958 calls under EVAL_SKIP.
959
a0b4d890
YQ
9602014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
961
962 * dwarf2loc.c (read_pieced_value): Do big endian
963 processing only if gdb_regnum is not -1.
964 (write_pieced_value): Ditto.
965
9662014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
967
968 * arm-linux-tdep.c (arm_linux_init_abi): Use
969 info.byte_order_for_code to choose endianity of breakpoint
970 instructions snippets.
971
9722014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
973
974 * arm-tdep.c (extract_arm_insn): Use
975 gdbarch_byte_order_for_code to read arm instruction.
976
e82149ff
DE
9772014-11-02 Doug Evans <xdje42@gmail.com>
978
979 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
980
d7ee84f1
DE
9812014-11-02 Doug Evans <xdje42@gmail.com>
982
983 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
984 main_subfile before returning.
985
4f072d17
DE
9862014-10-31 Doug Evans <xdje42@gmail.com>
987
988 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
989 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
990
8301c89e
DE
9912014-10-31 Doug Evans <xdje42@gmail.com>
992
993 * valops.c (value_cast_pointers): Fix whitespace.
994 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
995 Ditto.
996
02be9a71
DE
9972014-10-30 Doug Evans <dje@google.com>
998
999 * NEWS: Mention ability add attributes to gdb.Objfile and
1000 gdb.Progspace objects.
1001 * python/py-objfile.c (objfile_object): New member dict.
1002 (objfpy_dealloc): Py_XDECREF dict.
1003 (objfpy_initialize): Initialize dict.
1004 (objfile_getset): Add __dict__.
1005 (objfile_object_type): Set tp_dictoffset member.
1006 * python/py-progspace.c (progspace_object): New member dict.
1007 (pspy_dealloc): Py_XDECREF dict.
1008 (pspy_initialize): Initialize dict.
1009 (pspace_getset): Add __dict__.
1010 (pspace_object_type): Set tp_dictoffset member.
1011
6427bef6
YQ
10122014-10-30 Yao Qi <yao@codesourcery.com>
1013
1014 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1015 replace '\\' with '\\\\'.
1016
f60325be
JB
10172014-10-29 Joel Brobecker <brobecker@adacore.com>
1018
1019 GDB 7.8.1 released.
1020
ab917dfb
PA
10212014-10-29 Pedro Alves <palves@redhat.com>
1022
1023 PR gdb/17408
1024 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1025 instead of assuming a thread with a stepping range is always
1026 stepping.
1027
d3d4baed
PA
10282014-10-29 Pedro Alves <palves@redhat.com>
1029
1030 PR python/17372
1031 * event-top.c (change_line_handler): Call
1032 gdb_rl_callback_handler_remove instead of
1033 rl_callback_handler_remove.
1034 (callback_handler_installed): New global.
1035 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1036 (gdb_rl_callback_handler_reinstall): New functions.
1037 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1038 gdb_rl_callback_handler_install instead of
1039 rl_callback_handler_remove and rl_callback_handler_install.
1040 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1041 instead of rl_callback_handler_remove.
1042 * event-top.h (gdb_rl_callback_handler_remove)
1043 (gdb_rl_callback_handler_install)
1044 (gdb_rl_callback_handler_reinstall): New declarations.
1045 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1046 cleanup function.
1047 (fetch_inferior_event): Install it.
1048 * top.c (gdb_readline_wrapper_line) Call
1049 gdb_rl_callback_handler_remove instead of
1050 rl_callback_handler_remove.
1051 (gdb_readline_wrapper_cleanup): Don't call
1052 rl_callback_handler_install.
1053
6e5d7f39
PA
10542014-10-29 Pedro Alves <palves@redhat.com>
1055
1056 * event-top.c (command_line_handler): Clear the first byte of
1057 linebuffer, when it is first allocated.
1058
551cb6a5
PA
10592014-10-29 Pedro Alves <palves@redhat.com>
1060
1061 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1062 TRY_CATCH.
1063
1e1e619b
PA
10642014-10-29 Pedro Alves <palves@redhat.com>
1065
1066 PR tui/16138
1067 PR tui/17519
1068 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1069 (tui_allowed_p): Delete function.
1070 * tui/tui.c: Include "interps.h".
1071 (tui_enable): Don't use tui_allowed_p. Error out here with
1072 detailed error messages if the TUI is the top level interpreter,
1073 or if output is not a terminal. Use newterm instead of initscr,
1074 and error out if initializing the terminal fails. Also error out if
1075 the terminal doesn't support cursor addressing.
1076 * tui/tui.h (tui_allowed_p): Delete declaration.
1077
6041179a
JB
10782014-10-29 Joel Brobecker <brobecker@adacore.com>
1079
1080 * arm-tdep.c (arm_skip_stack_protector): Return early if
1081 address loaded by first "ldr" instruction does not have
1082 a corresponding minimal symbol. Update comment.
1083
6ae274b7
YQ
10842014-10-29 Yao Qi <yao@codesourcery.com>
1085
1086 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1087 loaded address correctly of ldr instruction.
1088
7f5ef605
PA
10892014-10-28 Pedro Alves <palves@redhat.com>
1090
1091 PR gdb/12623
1092 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1093 field.
1094 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1095 thread's stepped_breakpoint field. Skip if reverse debugging.
1096 Add comment.
1097 (init_thread_stepping_state, handle_signal_stop): Clear the
1098 thread's stepped_breakpoint field.
1099
7d1a114c
PA
11002014-10-27 Pedro Alves <palves@redhat.com>
1101
1102 * remote.c (remote_thread_alive): New, factored out from ...
1103 (remote_thread_alive): ... this.
1104 (remote_update_thread_list): Bail out before deleting threads if
1105 the target returned an empty list, and, the current thread has a
1106 magic/fake ptid.
1107
e5f8a7cc
PA
11082014-10-27 Pedro Alves <palves@redhat.com>
1109
1110 * infrun.c (handle_signal_stop): Also skip handlers when a random
1111 signal arrives while handling a "stepi" or a "nexti". Set the
1112 thread's 'step_after_step_resume_breakpoint' flag.
1113
71e396f9
LM
11142014-10-27 Luis Machado <lgustavo@codesourcery.com>
1115
1116 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1117 (arm_record_ld_st_imm_offset): Reimplement to cover all
1118 load/store cases for ARM opcode 010.
1119 (arm_record_ld_st_multiple): Reimplement to cover all
1120 load/store cases for ARM opcode 100.
1121
3aee438b
DE
11222014-10-26 Doug Evans <xdje42@gmail.com>
1123
1124 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1125
f88cb4b6
DE
11262014-10-26 Doug Evans <xdje42@gmail.com>
1127
1128 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1129 parameter "kind" to "block_index".
1130 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1131 "block_index".
1132 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1133
a023a30f
DE
11342014-10-26 Doug Evans <xdje42@gmail.com>
1135
1136 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1137
4c35218e
DE
11382014-10-26 Doug Evans <xdje42@gmail.com>
1139
1140 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1141 obstack_alloc.
1142
f08e8df3
DE
11432014-10-26 Doug Evans <xdje42@gmail.com>
1144
1145 * parser-defs.h (block_found): Move decl from here ...
1146 * symtab.h (block_found): ... to here.
1147
cf901d3b
DE
11482014-10-26 Doug Evans <xdje42@gmail.com>
1149
1150 * symtab.h (struct field_of_this_result): Fix typo in comment.
1151 (lookup_symbol_in_language): Move function comment here.
1152 (lookup_symbol): Improve function comment.
1153 (basic_lookup_symbol_nonlocal): Ditto.
1154 (lookup_symbol_static, lookup_symbol_global): Ditto.
1155 (lookup_symbol_aux_block): Ditto.
1156 (lookup_language_this): Add function comment.
1157 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1158 function comment.
1159 (lookup_block_symbol): Improve function comment.
1160 (lookup_struct): Fix capitalization in function comment.
1161 (lookup_transparent_type): Add function comment.
1162 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1163 Improve function comment.
1164 (lookup_objfile_from_block): Add function comment.
1165 * symtab.c (lookup_symbol_in_language): Update function comment.
1166 (lookup_symbol, lookup_language_this): Ditto.
1167 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1168 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1169 (basic_lookup_symbol_nonlocal): Ditto.
1170 (lookup_symbol_static, lookup_symbol_global): Ditto.
1171 (lookup_transparent_type, lookup_block_symbol): Ditto.
1172
ff6c39cf
DE
11732014-10-25 Doug Evans <xdje42@gmail.com>
1174
1175 * symtab.c (types_info): Delete forward decl.
1176 (functions_info, variables_info, sources_info): Ditto.
1177 (_initialize_symtab): Rewrite forward decl to use
1178 initialize_file_ftype.
1179
ec201f0c
DE
11802014-10-25 Doug Evans <xdje42@gmail.com>
1181
1182 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1183
ca040673
DE
11842014-10-25 Doug Evans <xdje42@gmail.com>
1185
1186 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1187 of local var child_die.
1188
6f259a23
DB
11892014-10-24 Don Breazeal <donb@codesourcery.com>
1190
1191 * infrun.c (follow_fork_inferior): Update fork message printing
1192 to use target_terminal_ours_for_output instead of
1193 target_terminal_ours, to use _() for all format strings, to print
1194 "vfork" instead of "fork" for vforks, and to add a detach message.
1195 (handle_vfork_child_exec_or_exit): Update message printing to use
1196 target_terminal_ours_for_output instead of target_terminal_ours, to
1197 use _() for all format strings, and to fix some formatting.
1198
09dd9a69
PA
11992014-10-24 Pedro Alves <palves@redhat.com>
1200
1201 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1202 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1203 * config/vax/vax.mh: Delete.
1204 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1205 obsolete configurations section.
1206 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1207 * vax-nat.c: Delete file.
1208
5ab806de
PA
12092014-10-24 Pedro Alves <palves@redhat.com>
1210
1211 * NEWS (Removed targets): Add OS/arch column.
1212
3433cfa5
SC
12132014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1214
1215 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1216 on the arg type of a constructor only if it is of reference type.
1217
96ba4233
SL
12182014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1219
1220 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1221 accessors and constants from nios2 opcodes update.
1222 (nios2_get_next_pc): Likewise.
1223
28153fd3
DE
12242014-10-19 Doug Evans <xdje42@gmail.com>
1225
1226 * gdbthread.h (set_running): Fix comment.
1227 (set_executing, finish_thread_state): Fix comment.
1228
fc9b8e47
DE
12292014-10-18 Doug Evans <xdje42@gmail.com>
1230
1231 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1232
4ffbba72
DE
12332014-10-17 Doug Evans <dje@google.com>
1234
1235 * NEWS: Mention new event gdb.clear_objfiles.
1236 * python/py-event.h (emit_clear_objfiles_event): Clear
1237 * python/py-events.h (events_object): New member clear_objfiles.
1238 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1239 event.
1240 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1241 emit clear_objfiles event.
1242 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1243 function.
1244 (emit_clear_objfiles_event): New function.
1245 (clear_objfiles): New event.
1246 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1247 Declare.
1248 * python/python.c (_initialize_python): Call
1249 gdbpy_initialize_clear_objfiles_event.
1250
d096d8c1
DE
12512014-10-17 Doug Evans <dje@google.com>
1252
1253 * NEWS: Mention new gdb.Objfile.progspace attribute.
1254 * python/py-objfile.c (objfpy_get_progspace): New function.
1255 (objfile_getset): New entry for "progspace".
1256
6c4486e6
PA
12572014-10-17 Pedro Alves <palves@redhat.com>
1258
1259 PR gdb/17471
1260 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1261 returns a copy of the input.
1262 (run_command_1, continue_command, step_1, jump_command)
1263 (signal_command, until_command, advance_command, finish_command)
1264 (attach_command): Adjust and install a cleanup to free the
1265 stripped args.
1266
0ff33695
PA
12672014-10-17 Pedro Alves <palves@redhat.com>
1268
1269 PR gdb/17300
1270 * infcmd.c (continue_1): If continuing all threads in the
1271 foreground, make sure the inferior's terminal settings are put in
1272 effect.
1273
6fdebc3d
PA
12742014-10-17 Pedro Alves <palves@redhat.com>
1275
1276 PR gdb/17472
1277 * annotate.c (annotate_breakpoints_invalid): Use
1278 target_terminal_our_for_output instead of target_terminal_ours.
1279 Give back the terminal to the target.
1280 (annotate_frames_invalid): Likewise.
1281
5842f62a
PA
12822014-10-17 Pedro Alves <palves@redhat.com>
1283
1284 * target.c (enum terminal_state): New enum.
1285 (terminal_state): New global.
1286 (target_terminal_init): New function.
1287 (target_terminal_inferior): Skip if inferior already owns the
1288 terminal.
1289 (target_terminal_ours, target_terminal_ours_for_output): New
1290 functions.
1291 * target.h (target_terminal_init): Convert to function prototype.
1292 (target_terminal_ours_for_output): Convert to function prototype
1293 and tweak comment.
1294 (target_terminal_ours): Convert to function prototype and tweak
1295 comment.
1296 * windows-nat.c (do_initial_windows_stuff): Call
1297 target_terminal_init instead of child_terminal_init_with_pgrp.
1298
32a8097b
PA
12992014-10-17 Pedro Alves <palves@redhat.com>
1300
1301 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1302 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1303 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1304 solib-osf.c.
1305 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1306 * ada-lang.h [__alpha__ && __osf__]
1307 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1308 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1309 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1310 GDB_OSABI_OSF1.
1311 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1312 files.
1313 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1314 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1315 * configure: Regenerate.
1316 * configure.ac: Remove references to osf.
1317 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1318 section. Remove all other references to osf.
1319 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1320 Remove all other references to osf.
1321 * dec-thread.c: Delete file.
1322 * defs.h (GDB_OSABI_OSF1): Delete.
1323 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1324 defined.
1325 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1326 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1327 Delete code.
1328 (unconditionally_kill_inferior)
1329 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1330 * solib-osf.c: Delete file.
1331
80134cf5
PA
13322014-10-17 Pedro Alves <palves@redhat.com>
1333
1334 * remote.c (clear_threads_listing_context): Move higher up, out of
1335 the HAVE_LIBEXPAT guard.
1336
89c7137f
TG
13372014-10-16 Tristan Gingold <gingold@adacore.com>
1338
1339 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1340 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1341 on amd64.
1342
44ee4a52
PA
13432014-10-15 Pedro Alves <palves@redhat.com>
1344
1345 * dec-thread.c (dec_thread_count_gdb_threads)
1346 (dec_thread_add_gdb_thread): Delete.
1347 (dec_thread_update_thread_list): Delete.
1348 (dec_thread_find_new_threads): Rename to ...
1349 (dec_thread_update_thread_list): ... this. Delete GDB-size
1350 threads that are no longer found in dec_thread_list.
1351 (resync_thread_list): Delete.
1352 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1353 resync_thread_list.
1354
ab970af1
PA
13552014-10-15 Pedro Alves <palves@redhat.com>
1356
1357 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1358 * remote.c (remote_update_thread_list): Skip calling prune_threads
1359 if any thread listing method is supported, and instead walk over
1360 the set of remote threads listed, deleting those that are not
1361 found in GDB's thread list.
1362
e8032dde
PA
13632014-10-15 Pedro Alves <palves@redhat.com>
1364
1365 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1366 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1367 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1368 (bsd_uthread_target): Adjust.
1369 * corelow.c (core_open): Adjust.
1370 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1371 (dec_thread_update_thread_list): New function.
1372 (init_dec_thread_ops): Adjust.
1373 * gdbthread.h (prune_threads): New declaration.
1374 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1375 (thread_db_update_thread_list): ... this. Call prune_threads.
1376 (init_thread_db_ops): Adjust.
1377 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1378 (procfs_update_thread_list): ... this. Call prune_threads.
1379 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1380 Adjust.
1381 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1382 (obsd_update_thread_list): ... this. Call prune_threads.
1383 (obsd_add_target): Adjust.
1384 * procfs.c (procfs_target): Adjust.
1385 (procfs_notice_thread): Update comment.
1386 (procfs_find_new_threads): Rename to ...
1387 (procfs_update_thread_list): ... this. Call prune_threads.
1388 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1389 comment.
1390 (ravenscar_wait): Adjust.
1391 (ravenscar_find_new_threads): Rename to ...
1392 (ravenscar_update_thread_list): ... this. Call prune_threads.
1393 (init_ravenscar_thread_ops): Adjust.
1394 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1395 (record_btrace_update_thread_list): ... this. Adjust comment.
1396 (init_record_btrace_ops): Adjust.
1397 * remote.c (remote_threads_info): Rename to ...
1398 (remote_update_thread_list): ... this. Call prune_threads.
1399 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1400 Adjust.
1401 * sol-thread.c (check_for_thread_db): Adjust.
1402 (sol_find_new_threads_callback): Rename to ...
1403 (sol_update_thread_list_callback): ... this.
1404 (sol_find_new_threads): Rename to ...
1405 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1406 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1407 * target-delegates.c: Regenerate.
1408 * target.c (target_find_new_threads): Rename to ...
1409 (target_update_thread_list): ... this.
1410 * target.h (struct target_ops): Rename to_find_new_threads field
1411 to to_update_thread_list.
1412 (target_find_new_threads): Rename to ...
1413 (target_update_thread_list): ... this.
1414 * thread.c (prune_threads): Make extern.
1415 (update_thread_list): Adjust.
1416
6dc54d91
PA
14172014-10-15 Pedro Alves <palves@redhat.com>
1418
1419 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1420 Add describing comment. Return -1 if the qL packet is not
1421 supported.
1422 (struct thread_item, thread_item_t): Move higher up in
1423 the file. Add comments.
1424 (struct threads_parsing_context): Move higher up in
1425 the file, add comments, and remote to ...
1426 (struct threads_listing_context): ... this.
1427 (remote_newthread_step): Don't add the thread to GDB's thread
1428 database here. Instead push it to the thread_listing_context
1429 list.
1430 (remote_find_new_threads): Rename to ...
1431 (remote_get_threads_with_ql): ... this. Add target_ops and
1432 targets_listing_context parameters. Pass down context.
1433 (start_thread): Adjust.
1434 (clear_threads_parsing_context): Rename to ...
1435 (clear_threads_listing_context): ... this.
1436 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1437 remote_threads_info.
1438 (remote_get_threads_with_qthreadinfo): Ditto.
1439 (remote_threads_info): Reimplement.
1440
36728e82
PA
14412014-10-15 Pedro Alves <palves@redhat.com>
1442
1443 * infrun.c (resume): Don't force displaced-stepping for all
1444 single-steps on software single-stepping archs.
1445
34b7e8a6
PA
14462014-10-15 Pedro Alves <palves@redhat.com>
1447
1448 * breakpoint.c (single_step_breakpoints): Delete global.
1449 (insert_single_step_breakpoint): Adjust to store the breakpoint
1450 pointer in the current thread.
1451 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1452 (cancel_single_step_breakpoints): Delete functions.
1453 (breakpoint_has_location_inserted_here): Make extern.
1454 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1455 breakpoint list.
1456 * breakpoint.h (breakpoint_has_location_inserted_here): New
1457 declaration.
1458 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1459 (cancel_single_step_breakpoints): Remove declarations.
1460 * gdbthread.h (struct thread_control_state)
1461 <single_step_breakpoints>: New field.
1462 (delete_single_step_breakpoints)
1463 (thread_has_single_step_breakpoints_set)
1464 (thread_has_single_step_breakpoint_here): New declarations.
1465 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1466 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1467 (singlestep_pc): Delete globals.
1468 (infrun_thread_ptid_changed): Remove references to removed
1469 globals.
1470 (resume_cleanups): Delete the current thread's single-step
1471 breakpoints.
1472 (maybe_software_singlestep): Remove references to removed globals.
1473 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1474 delete_single_step_breakpoints.
1475 (init_wait_for_inferior): Remove references to removed globals.
1476 (delete_thread_infrun_breakpoints): Delete the thread's
1477 single-step breakpoints too.
1478 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1479 single-step breakpoints here.
1480 (delete_stopped_threads_single_step_breakpoints): New function.
1481 (adjust_pc_after_break): Adjust to use
1482 thread_has_single_step_breakpoints_set.
1483 (handle_inferior_event): Remove references to removed globals.
1484 Use delete_stopped_threads_single_step_breakpoints.
1485 (handle_signal_stop): Adjust to per-thread single-step
1486 breakpoints. Swap test order to do cheaper tests first.
1487 (switch_back_to_stepped_thread): Extend debug output. Remove
1488 references to removed globals.
1489 * record-full.c (record_full_wait_1): Adjust to per-thread
1490 single-step breakpoints.
1491 * thread.c (delete_single_step_breakpoints)
1492 (thread_has_single_step_breakpoints_set)
1493 (thread_has_single_step_breakpoint_here): New functions.
1494 (clear_thread_inferior_resources): Also delete the thread's
1495 single-step breakpoints.
1496
5b834a0a
PA
14972014-10-15 Pedro Alves <palves@redhat.com>
1498
1499 * thread.c (delete_thread_breakpoint): New function.
1500 (delete_step_resume_breakpoint)
1501 (delete_exception_resume_breakpoint): Use it.
1502 (delete_at_next_stop): New function.
1503 (clear_thread_inferior_resources): Use delete_at_next_stop.
1504
a1fd2fa5
PA
15052014-10-15 Pedro Alves <palves@redhat.com>
1506
1507 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1508 (breakpoint_inserted_here_p): ... here. Remove special case for
1509 software single-step breakpoints.
1510 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1511 (software_breakpoint_inserted_here_p): ... here. Remove special
1512 case for software single-step breakpoints.
1513 (bp_target_info_copy_insertion_state)
1514 (deprecated_insert_raw_breakpoint)
1515 (deprecated_remove_raw_breakpoint): Delete functions.
1516 * breakpoint.h (deprecated_insert_raw_breakpoint)
1517 (deprecated_remove_raw_breakpoint): Remove declarations.
1518
7c16b83e
PA
15192014-10-15 Pedro Alves <palves@redhat.com>
1520
1521 PR breakpoints/9649
1522 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1523 Delete array globals.
1524 (single_step_breakpoints): New global.
1525 (breakpoint_xfer_memory): Remove special handling for single-step
1526 breakpoints.
1527 (update_breakpoints_after_exec): Delete bp_single_step
1528 breakpoints.
1529 (detach_breakpoints): Remove special handling for single-step
1530 breakpoints.
1531 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1532 (bpstat_stop_status): Add comment.
1533 (bpstat_what, bptype_string, print_one_breakpoint_location)
1534 (adjust_breakpoint_address, init_bp_location): Handle
1535 bp_single_step.
1536 (new_single_step_breakpoint): New function.
1537 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1538 handling for single-step breakpoints.
1539 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1540 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1541 Rewrite.
1542 (detach_single_step_breakpoints, find_single_step_breakpoint):
1543 Delete functions.
1544 (breakpoint_has_location_inserted_here): New function.
1545 (single_step_breakpoint_inserted_here_p): Rewrite.
1546 * breakpoint.h: Remove FIXME.
1547 (enum bptype) <bp_single_step>: New enum value.
1548 (insert_single_step_breakpoint): Update comment.
1549 * infrun.c (resume_cleanups)
1550 (delete_step_thread_step_resume_breakpoint): Remove single-step
1551 breakpoints.
1552 (fetch_inferior_event): Install a cleanup that removes infrun
1553 breakpoints.
1554 (switch_back_to_stepped_thread) <expect thread advanced also>:
1555 Clear step-over info.
1556
0cbcdb96
PA
15572014-10-15 Pedro Alves <palves@redhat.com>
1558
1559 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1560 (delete_thread_infrun_breakpoints): New function, with parts
1561 salvaged from delete_step_resume_breakpoint_callback.
1562 (delete_step_thread_step_resume_breakpoint): Delete.
1563 (for_each_just_stopped_thread_callback_func): New typedef.
1564 (for_each_just_stopped_thread): New function.
1565 (delete_just_stopped_threads_infrun_breakpoints): New function.
1566 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1567 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1568 ... this. Adjust.
1569 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1570
963f9c80
PA
15712014-10-15 Pedro Alves <palves@redhat.com>
1572
1573 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1574 trying to step past a non-steppable watchpoint.
1575 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1576 field.
1577 * infrun.c (struct step_over_info): Add new field
1578 'nonsteppable_watchpoint_p' and adjust comments.
1579 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1580 Adjust.
1581 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1582 (stepping_past_nonsteppable_watchpoint): New function.
1583 (step_over_info_valid_p): Also return true if stepping past a
1584 nonsteppable watchpoint.
1585 (proceed): Adjust call to set_step_over_info. Remove reference to
1586 init_infwait_state.
1587 (init_wait_for_inferior): Remove reference to init_infwait_state.
1588 (waiton_ptid): Delete global.
1589 (struct execution_control_state)
1590 <stepped_after_stopped_by_watchpoint>: Delete field.
1591 (wait_for_inferior, fetch_inferior_event): Always pass
1592 minus_one_ptid to target_wait.
1593 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1594 field.
1595 (init_infwait_state): Delete function.
1596 (handle_inferior_event): Remove infwait_state handling.
1597 (handle_signal_stop) <watchpoints handling>: Adjust after
1598 stepped_after_stopped_by_watchpoint removal. Don't remove
1599 breakpoints here nor set infwait_state. Set the thread's
1600 stepping_over_watchpoint flag, and call keep_going instead.
1601 (keep_going): Handle stepping_over_watchpoint. Adjust
1602 set_step_over_info calls.
1603 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1604 function.
1605
6cc83d2a
PA
16062014-10-15 Pedro Alves <palves@redhat.com>
1607
1608 * infrun.c (step_over_info_valid_p): New function.
1609 (resume): Use step_over_info_valid_p instead of checking the
1610 threads's trap_expected flag.
1611
6979730b
DE
16122014-10-15 Doug Evans <dje@google.com>
1613 Walfred Tedeschi <walfred.tedeschi@intel.com>
1614
1615 PR python/17364
1616 * python/lib/gdb/__init__.py (packages): Add "printer".
1617 * python/lib/gdb/command/bound_registers.py: Moved to ...
1618 * python/lib/gdb/printer/bound_registers.py: ... here.
1619 Add printer to global set of builtin printers. Rename printer from
1620 "bound" to "mpx_bound128".
1621 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1622 registered as global "builtin" printer.
1623 (add_builtin_pretty_printer): New function.
1624 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1625 gdb/printer/__init__.py.
1626
35a49624
IB
16272014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1628
1629 * Makefile.in (SFILES): Remove d-support.c.
1630 (COMMON_OBS): Remove d-support.o.
1631 * d-lang.h (d_parse_symbol): Remove declaration.
1632 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1633 * d-support.c: Remove file.
1634
8fa0c4f8
AA
16352014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1636
1637 * gdb/infrun.c (process_event_stop_test): Apply
1638 gdbarch_addr_bits_remove to longjmp resume address.
1639
3666da81
PA
16402014-10-15 Pedro Alves <palves@redhat.com>
1641
1642 * regformats/microblaze.dat: Delete file.
1643
449aa9df
AKA
16442014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1645
1646 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1647 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1648
ebb8ece2
SC
16492014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1650
1651 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1652 as non-trivial.
1653
82c48ac7
SC
16542014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1655
1656 PR c++/13403
1657 PR c++/15154
1658 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1659 with qualified args.
1660
c40cc657
JB
16612014-10-14 Joel Brobecker <brobecker@adacore.com>
1662
1663 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1664 of the case where the second operand is a pointer.
1665 <BINOP_SUB>: Likewise.
1666
0ea5cda8
SDJ
16672014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1668
1669 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1670 only if it is not NULL.
1671 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1672 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1673 (struct probe_ops) <clear_semaphore>: Likewise.
1674 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1675 not NULL.
1676 (stop_tracing): Likewise, for clear_semaphore.
1677
f7088df3
SDJ
16782014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1679
1680 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1681 using language_c, instead of current_language.
1682
4e1bbde0
DE
16832014-10-13 Doug Evans <dje@google.com>
1684
6ff5a0f6 1685 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1686 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1687 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1688 (pspy_new, pspace_to_pspace_object): Call it.
1689
c780cc2f
JK
16902014-10-13 Miroslav Franc <mfranc@redhat.com>
1691 Jan Kratochvil <jan.kratochvil@redhat.com>
1692
1693 Fix "save breakpoints" for "catch" command.
1694 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1695 newline.
1696
99894e11
JK
16972014-10-12 Miroslav Franc <mfranc@redhat.com>
1698
1699 Fix "save breakpoints" for "disable $bpnum" command.
1700 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1701
3831839c
PA
17022014-10-10 Pedro Alves <palves@redhat.com>
1703
1704 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1705 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1706 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1707 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1708 and been removed.
1709 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1710 * configure.ac: Remove references to IRIX.
1711 * configure.host: Add *-*-irix* to the obsolete hosts section.
1712 Remove all other references to irix.
1713 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1714 Delete files.
1715
cc3afae2
AKA
17162014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1717
1718 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1719 isn't valid, release the tdesc arch data and return NULL.
1720
cdfa0b0a
PA
17212014-10-10 Pedro Alves <palves@redhat.com>
1722
1723 * linux-tdep.c: Include observer.h.
1724 (linux_inferior_data): New global.
1725 (struct linux_info): New structure.
1726 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1727 (get_linux_inferior_data): New functions.
1728 (linux_vsyscall_range): Rename to ...
1729 (linux_vsyscall_range_raw): ... this.
1730 (linux_vsyscall_range): New function; handles caching.
1731 (_initialize_linux_tdep): Register linux_inferior_data. Install
1732 inferior_exit and inferior_appeared observers.
1733
8b9a549d
PA
17342014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1735 Pedro Alves <palves@redhat.com>
1736
1737 PR symtab/14466
1738 * solib-svr4.c (svr4_read_so_list): Rename to ...
1739 (svr4_current_sos_1): ... this and change the function comment.
1740 (svr4_current_sos): New function.
1741
3437254d
PA
17422014-10-10 Pedro Alves <palves@redhat.com>
1743
1744 * arch-utils.c (default_vsyscall_range): New function.
1745 * arch-utils.h (default_vsyscall_range): New declaration.
1746 * gdbarch.sh (vsyscall_range): New hook.
1747 * gdbarch.h, gdbarch.c: Regenerate.
1748 * linux-tdep.c (linux_vsyscall_range): New function.
1749 (linux_init_abi): Install linux_vsyscall_range as
1750 vsyscall_range gdbarch hook.
1751 * memrange.c (address_in_mem_range): New function.
1752 * memrange.h (address_in_mem_range): New declaration.
1753 * symfile-mem.c (find_vdso_size): Delete function.
1754 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1755
31cc0b80
PA
17562014-10-10 Pedro Alves <palves@redhat.com>
1757
1758 * infrun.c (normal_stop): Fix typo in comment.
1759
3e3286a2
SDJ
17602014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1761
1762 PR tdep/9390
1763 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1764 typo when using logical AND to determine instruction type.
1765
fcbdedf8
YQ
17662014-10-09 Yao Qi <yao@codesourcery.com>
1767
1768 * infrun.c (handle_signal_stop): Remove local variable
1769 'printed'.
1770
db984616
SS
17712014-10-08 Stan Shebs <stan@codesourcery.com>
1772
1773 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1774
3ba37e6c
GB
17752014-10-08 Gary Benson <gbenson@redhat.com>
1776
1777 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1778
a442d071
GB
17792014-10-08 Gary Benson <gbenson@redhat.com>
1780
1781 * common/common-defs.h: Include common-exceptions.h.
1782 * exceptions.h: Do not include common-exceptions.h.
1783
6f1947e8
GB
17842014-10-08 Gary Benson <gbenson@redhat.com>
1785
1786 * common/common-defs.h: Include cleanups.h.
1787 * common/common-exceptions.c: Do not include cleanups.h.
1788 * utils.h: Likewise.
1789
c765fdb9
GB
17902014-10-08 Gary Benson <gbenson@redhat.com>
1791
1792 * ada-lang.c: Do not include exceptions.h.
1793 * ada-valprint.c: Likewise.
1794 * amd64-tdep.c: Likewise.
1795 * auto-load.c: Likewise.
1796 * block.c: Likewise.
1797 * break-catch-throw.c: Likewise.
1798 * breakpoint.c: Likewise.
1799 * btrace.c: Likewise.
1800 * c-lang.c: Likewise.
1801 * cli/cli-cmds.c: Likewise.
1802 * cli/cli-interp.c: Likewise.
1803 * cli/cli-script.c: Likewise.
1804 * completer.c: Likewise.
1805 * corefile.c: Likewise.
1806 * corelow.c: Likewise.
1807 * cp-abi.c: Likewise.
1808 * cp-support.c: Likewise.
1809 * cp-valprint.c: Likewise.
1810 * darwin-nat.c: Likewise.
1811 * dwarf2-frame-tailcall.c: Likewise.
1812 * dwarf2-frame.c: Likewise.
1813 * dwarf2loc.c: Likewise.
1814 * dwarf2read.c: Likewise.
1815 * eval.c: Likewise.
1816 * event-loop.c: Likewise.
1817 * event-top.c: Likewise.
1818 * f-valprint.c: Likewise.
1819 * frame-unwind.c: Likewise.
1820 * frame.c: Likewise.
1821 * gdbtypes.c: Likewise.
1822 * gnu-v2-abi.c: Likewise.
1823 * gnu-v3-abi.c: Likewise.
1824 * guile/scm-auto-load.c: Likewise.
1825 * guile/scm-breakpoint.c: Likewise.
1826 * guile/scm-cmd.c: Likewise.
1827 * guile/scm-frame.c: Likewise.
1828 * guile/scm-lazy-string.c: Likewise.
1829 * guile/scm-param.c: Likewise.
1830 * guile/scm-symbol.c: Likewise.
1831 * guile/scm-type.c: Likewise.
1832 * hppa-hpux-tdep.c: Likewise.
1833 * i386-tdep.c: Likewise.
1834 * inf-loop.c: Likewise.
1835 * infcall.c: Likewise.
1836 * infcmd.c: Likewise.
1837 * infrun.c: Likewise.
1838 * interps.c: Likewise.
1839 * interps.h: Likewise.
1840 * jit.c: Likewise.
1841 * linespec.c: Likewise.
1842 * linux-nat.c: Likewise.
1843 * linux-thread-db.c: Likewise.
1844 * m32r-rom.c: Likewise.
1845 * main.c: Likewise.
1846 * memory-map.c: Likewise.
1847 * mi/mi-cmd-break.c: Likewise.
1848 * mi/mi-cmd-stack.c: Likewise.
1849 * mi/mi-interp.c: Likewise.
1850 * mi/mi-main.c: Likewise.
1851 * monitor.c: Likewise.
1852 * nto-procfs.c: Likewise.
1853 * objc-lang.c: Likewise.
1854 * p-valprint.c: Likewise.
1855 * parse.c: Likewise.
1856 * ppc-linux-tdep.c: Likewise.
1857 * printcmd.c: Likewise.
1858 * probe.c: Likewise.
1859 * python/py-auto-load.c: Likewise.
1860 * python/py-breakpoint.c: Likewise.
1861 * python/py-cmd.c: Likewise.
1862 * python/py-finishbreakpoint.c: Likewise.
1863 * python/py-frame.c: Likewise.
1864 * python/py-framefilter.c: Likewise.
1865 * python/py-function.c: Likewise.
1866 * python/py-gdb-readline.c: Likewise.
1867 * python/py-inferior.c: Likewise.
1868 * python/py-infthread.c: Likewise.
1869 * python/py-lazy-string.c: Likewise.
1870 * python/py-linetable.c: Likewise.
1871 * python/py-param.c: Likewise.
1872 * python/py-prettyprint.c: Likewise.
1873 * python/py-symbol.c: Likewise.
1874 * python/py-type.c: Likewise.
1875 * python/py-value.c: Likewise.
1876 * python/python-internal.h: Likewise.
1877 * python/python.c: Likewise.
1878 * record-btrace.c: Likewise.
1879 * record-full.c: Likewise.
1880 * regcache.c: Likewise.
1881 * remote-fileio.c: Likewise.
1882 * remote-mips.c: Likewise.
1883 * remote.c: Likewise.
1884 * rs6000-aix-tdep.c: Likewise.
1885 * rs6000-nat.c: Likewise.
1886 * skip.c: Likewise.
1887 * solib-darwin.c: Likewise.
1888 * solib-dsbt.c: Likewise.
1889 * solib-frv.c: Likewise.
1890 * solib-ia64-hpux.c: Likewise.
1891 * solib-spu.c: Likewise.
1892 * solib-svr4.c: Likewise.
1893 * solib.c: Likewise.
1894 * spu-tdep.c: Likewise.
1895 * stack.c: Likewise.
1896 * stap-probe.c: Likewise.
1897 * symfile-mem.c: Likewise.
1898 * symmisc.c: Likewise.
1899 * target.c: Likewise.
1900 * thread.c: Likewise.
1901 * top.c: Likewise.
1902 * tracepoint.c: Likewise.
1903 * tui/tui-interp.c: Likewise.
1904 * typeprint.c: Likewise.
1905 * utils.c: Likewise.
1906 * valarith.c: Likewise.
1907 * valops.c: Likewise.
1908 * valprint.c: Likewise.
1909 * value.c: Likewise.
1910 * varobj.c: Likewise.
1911 * windows-nat.c: Likewise.
1912 * xml-support.c: Likewise.
1913
484933d1
MR
19142014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1915
1916 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1917 name implies.
1918 (extended_mips16_next_pc): Update accordingly.
1919
ab50adb6
MR
19202014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1921
1922 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1923 function.
1924 (micromips_instruction_is_compact_branch): Likewise.
1925 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1926 or a compact jump, reaching a jump delay slot, or seeing a
1927 second non-prologue instruction.
1928 (micromips_scan_prologue): Also terminate scanning upon seeing a
1929 compact branch or jump, or reaching a branch or jump delay slot.
1930 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1931 or jump delay slot, or seeing a second non-prologue instruction.
1932 (mips32_instruction_has_delay_slot): Retain instruction
1933 examination code only, update arguments accordingly and move
1934 instruction fetch pieces to...
1935 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1936 (micromips_instruction_has_delay_slot): Likewise and to...
1937 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1938 (mips16_instruction_has_delay_slot): Likewise and to...
1939 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1940 (mips_single_step_through_delay): Update accordingly.
1941 (mips_adjust_breakpoint_address): Likewise.
1942
ae790652
MR
19432014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1944
1945 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1946 !mustbe32 also return 1 for 32-bit instructions.
1947 (mips16_instruction_has_delay_slot): Likewise. Add an
1948 explanatory comment.
1949
9b807e7b
MR
19502014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1951
1952 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1953 symbols special.
1954
0d5ed153
MR
19552014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1956
1957 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1958 update comments.
1959 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1960 for the breakpoint's address. Don't preinitialize `placed_size'.
1961 (insert_bp_location): Set `reqstd_address' rather than
1962 `placed_address'.
1963 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1964 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1965 address.
1966 (bkpt_remove_location): Likewise.
1967 (deprecated_insert_raw_breakpoint): Likewise.
1968 (deprecated_remove_raw_breakpoint): Likewise.
1969 (find_single_step_breakpoint): Likewise.
1970 * mem-break.c (default_memory_insert_breakpoint): Use
1971 `reqstd_address' for the breakpoint's address. Don't set
1972 `placed_address' or `placed_size' if breakpoint contents couldn't
1973 have been determined.
1974 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1975 the breakpoint's address.
1976 (remote_insert_hw_breakpoint): Likewise. Don't set
1977 `placed_address' or `placed_size' if breakpoint couldn't have been
1978 set.
1979 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1980 `reqstd_address' for the breakpoint's address.
1981 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1982 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1983 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1984 * microblaze-linux-tdep.c
1985 (microblaze_linux_memory_remove_breakpoint): Likewise.
1986 * monitor.c (monitor_insert_breakpoint): Likewise.
1987 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1988 (procfs_insert_hw_breakpoint): Likewise.
1989 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1990 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1991 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1992 * remote-mips.c (mips_insert_breakpoint): Likewise.
1993 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1994
3e871532
LM
19952014-10-03 Luis Machado <lgustavo@codesourcery.com>
1996
1997 * valops.c (value_assign): Check for bit field assignments
1998 before calling architecture-specific register value
1999 conversion functions.
2000
ec48dc8b
PM
20012014-10-03 Pierre Muller <muller@sourceware.org>
2002
2003 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2004
b57bacec
PA
20052014-10-02 Pedro Alves <palves@redhat.com>
2006
2007 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2008 threads_are_executing.
2009 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2010 describing comment.
2011 * gdbthread.h (threads_are_executing): Declare.
2012 (handle_signal_stop) <random signals>: Don't print about the
2013 signal here if stopping.
2014 (end_stepping_range): Don't notify observers here.
2015 (normal_stop): Update the thread list. If stopped by a random
2016 signal or a stepping range ended, notify observers.
2017 * thread.c (threads_executing): New global.
2018 (init_thread_list): Clear 'threads_executing'.
2019 (set_executing): Set or clear 'threads_executing'.
2020 (threads_are_executing): New function.
2021 (update_threads_executing): New function.
2022 (update_thread_list): Use it.
2023
13fd3ff3
PA
20242014-10-02 Pedro Alves <palves@redhat.com>
2025
2026 PR breakpoints/17431
2027 * breakpoint.c (update_breakpoints_after_exec): Don't create
2028 overlay, longjmp, std terminate nor exception breakpoints here.
2029
32990ada
PA
20302014-10-02 Pedro Alves <palves@redhat.com>
2031
2032 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2033 Adjust comments.
2034 * inferior.c (find_inferior_for_program_space): Give preference to
2035 the current inferior.
2036 * inferior.h (find_inferior_for_program_space): Update comment.
2037 * progspace.c (switch_to_program_space_and_thread): Prefer the
2038 current inferior if it's bound to the program space requested. If
2039 the inferior found doesn't have a PID yet, don't bother looking up
2040 a thread.
2041 * progspace.h (switch_to_program_space_and_thread): Adjust
2042 comment.
2043 * thread.c (any_thread_of_process, any_live_thread_of_process):
2044 Give preference to the current thread.
2045
0fec99e8
PA
20462014-10-01 Pedro Alves <palves@redhat.com>
2047
2048 * breakpoint.c (insert_bp_location): Error out if inserting a
2049 software breakpoint at a read-only address.
2050 * target.c (memory_xfer_check_region): New function, factored out
2051 from ...
2052 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2053 ULONGEST.
2054 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2055 against the memory region attributes.
2056
2ddf4301
SM
20572014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2058
2059 * NEWS: Announce new exit-code field in -list-thread-groups
2060 output.
2061 * inferior.c (exit_inferior_1): Don't clear exit code.
2062 (inferior_appeared): Clear exit code.
2063 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2064 code.
2065
5fdeec1d
PA
20662014-10-01 Pedro Alves <palves@redhat.com>
2067
2068 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2069 GENERATED" along with emacs/vi read-only markers.
2070 * regformats/aarch64.dat: Regenerate.
2071 * regformats/arm-with-iwmmxt.dat: Regenerate.
2072 * regformats/arm-with-neon.dat: Regenerate.
2073 * regformats/arm-with-vfpv2.dat: Regenerate.
2074 * regformats/arm-with-vfpv3.dat: Regenerate.
2075 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2076 * regformats/i386/amd64-avx.dat: Regenerate.
2077 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2078 * regformats/i386/amd64-avx512.dat: Regenerate.
2079 * regformats/i386/amd64-linux.dat: Regenerate.
2080 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2081 * regformats/i386/amd64-mpx.dat: Regenerate.
2082 * regformats/i386/amd64.dat: Regenerate.
2083 * regformats/i386/i386-avx-linux.dat: Regenerate.
2084 * regformats/i386/i386-avx.dat: Regenerate.
2085 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2086 * regformats/i386/i386-avx512.dat: Regenerate.
2087 * regformats/i386/i386-linux.dat: Regenerate.
2088 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2089 * regformats/i386/i386-mmx.dat: Regenerate.
2090 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2091 * regformats/i386/i386-mpx.dat: Regenerate.
2092 * regformats/i386/i386.dat: Regenerate.
2093 * regformats/i386/x32-avx-linux.dat: Regenerate.
2094 * regformats/i386/x32-avx.dat: Regenerate.
2095 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2096 * regformats/i386/x32-avx512.dat: Regenerate.
2097 * regformats/i386/x32-linux.dat: Regenerate.
2098 * regformats/i386/x32.dat: Regenerate.
2099 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2100 * regformats/mips-dsp-linux.dat: Regenerate.
2101 * regformats/mips-linux.dat: Regenerate.
2102 * regformats/mips64-dsp-linux.dat: Regenerate.
2103 * regformats/mips64-linux.dat: Regenerate.
2104 * regformats/nios2-linux.dat: Regenerate.
2105 * regformats/rs6000/powerpc-32.dat: Regenerate.
2106 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2107 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2108 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2109 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2110 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2111 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2112 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2113 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2114 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2115 * regformats/s390-linux32.dat: Regenerate.
2116 * regformats/s390-linux32v1.dat: Regenerate.
2117 * regformats/s390-linux32v2.dat: Regenerate.
2118 * regformats/s390-linux64.dat: Regenerate.
2119 * regformats/s390-linux64v1.dat: Regenerate.
2120 * regformats/s390-linux64v2.dat: Regenerate.
2121 * regformats/s390-te-linux64.dat: Regenerate.
2122 * regformats/s390x-linux64.dat: Regenerate.
2123 * regformats/s390x-linux64v1.dat: Regenerate.
2124 * regformats/s390x-linux64v2.dat: Regenerate.
2125 * regformats/s390x-te-linux64.dat: Regenerate.
2126 * regformats/tic6x-c62x-linux.dat: Regenerate.
2127 * regformats/tic6x-c62x.dat: Regenerate.
2128 * regformats/tic6x-c64x-linux.dat: Regenerate.
2129 * regformats/tic6x-c64x.dat: Regenerate.
2130 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2131 * regformats/tic6x-c64xp.dat: Regenerate.
2132
db74e4ba
PA
21332014-10-01 Pedro Alves <palves@redhat.com>
2134
2135 * features/Makefile: Update comments.
2136 (XMLTOC): List all xml files we build C files from.
2137 (clean-cfiles): New rule.
2138
d63f2f84
PA
21392014-10-01 Pedro Alves <palves@redhat.com>
2140
2141 * features/i386/amd64-avx512-linux.c: Regenerate.
2142 * features/i386/amd64-avx512.c: Regenerate.
2143 * features/i386/x32-avx512-linux.c: Regenerate.
2144 * features/i386/x32-avx512.c: Regenerate.
2145
20ad026d
PA
21462014-10-01 Pedro Alves <palves@redhat.com>
2147
2148 * features/Makefile (WHICH): Remove arm-with-m,
2149 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2150
acc9fe45
PA
21512014-10-01 Pedro Alves <palves@redhat.com>
2152
2153 * features/Makefile (clean): New rule.
2154
e001e535
PA
21552014-10-01 Pedro Alves <palves@redhat.com>
2156
2157 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2158 (zmm14h): Add missing end quotes.
2159
bdc14417
PA
21602014-10-01 Pedro Alves <palves@redhat.com>
2161
2162 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2163 * features/aarch64.c: Regenerate.
2164
d83ad864
DB
21652014-09-30 Don Breazeal <donb@codesourcery.com>
2166
2167 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2168 code so as to work with follow_fork_inferior.
2169 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2170 (inf_ttrace_create_inferior): Remove reference to
2171 inf_ttrace_vfork_ppid.
2172 (inf_ttrace_attach): Ditto.
2173 (inf_ttrace_detach): Ditto.
2174 (inf_ttrace_kill): Use current_inferior instead of
2175 inf_ttrace_vfork_ppid.
2176 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2177 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2178 inferior away from the parent.
2179 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2180 target_follow_fork.
2181 (follow_fork_inferior): New function.
2182 (follow_inferior_reset_breakpoints): Make function static.
2183 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2184 * linux-nat.c (linux_child_follow_fork): Move target-independent
2185 code to infrun.c:follow_fork_inferior.
2186
29082443
AA
21872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2188
2189 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2190 * gdbarch.c: Regenerate.
2191 * gdbarch.h: Likewise.
2192 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2193 gdbarch method 'regset_from_core_section'.
2194 (get_core_register_section): Remove handling for the case that
2195 regset == NULL and regset_from_core_section is defined.
2196 (get_core_registers): Drop check for deleted method.
2197 * procfs.c (procfs_do_thread_registers): Adjust comment.
2198
f968fe80
AA
21992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2200
2201 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2202 (linux_nat_make_corefile_notes): Remove.
2203 (linux_target_install_ops): Do not set target method
2204 'make_corefile_notes'.
2205 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2206 Remove field.
2207 (linux_corefile_thread_callback): Instead of args->collect, call
2208 linux_collect_thread_registers.
2209 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2210 NULL unless there is a regset iterator.
2211 (linux_make_corefile_notes_1): Remove.
2212 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2213 by linux_make_corefile_notes.
2214 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2215
174ad59a
AA
22162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2217
2218 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2219 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2220 Remove.
2221 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2222
97094034
AA
22232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2224
2225 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2226 (xtensa_iterate_over_regset_sections): New.
2227 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2228
f73d3ce7
AA
22292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2230
2231 * vax-tdep.c (vax_regset_from_core_section): Remove.
2232 (vax_iterate_over_regset_sections): New.
2233 (vax_gdbarch_init): Adjust gdbarch initialization.
2234
cb24567a
AA
22352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2236
2237 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2238 (tilegx_regset_from_core_section): Remove.
2239 (tilegx_iterate_over_regset_sections): New.
2240 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2241
e5139de8
AA
22422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2243
2244 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2245 (sparc_iterate_over_regset_sections): New.
2246 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2247 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2248 targets.
2249 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2250 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2251 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2252 target method 'make_corefile_notes'.
2253
c6d41a6f
AA
22542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2255
2256 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2257 'sizeof_gregset' and 'sizeof_fpregset'.
2258 * sh-tdep.c (sh_regset_from_core_section): Remove.
2259 (sh_iterate_over_regset_sections): New.
2260 (sh_gdbarch_init): Adjust gdbarch initialization.
2261 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2262 sizeof_fpregset.
2263 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2264 'sizeof_gregset'.
2265
9845a0b5
AA
22662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2267
2268 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2269 (score7_linux_iterate_over_regset_sections): New.
2270 (score_gdbarch_init): Adjust gdbarch initialization.
2271
23ea9aeb
AA
22722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2273
2274 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2275 FreeBSD targets.
2276 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2277 method 'make_corefile_notes'.
2278 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2279 (ppcfbsd_regset_from_core_section): Remove.
2280 (ppcfbsd_iterate_over_regset_sections): New.
2281 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2282 initialization.
2283 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2284 (ppcnbsd_iterate_over_regset_sections): New.
2285 (ppcnbsd_init_abi): Adjust.
2286 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2287 (ppcobsd_iterate_over_regset_sections): New.
2288 (ppcobsd_init_abi): Adjust.
2289 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2290 (rs6000_aix_iterate_over_regset_sections): New.
2291 (rs6000_aix_init_osabi): Adjust.
2292
c5b8d704
AA
22932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294
2295 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2296 (nios2_regset_from_core_section): Remove.
2297 (nios2_iterate_over_regset_sections): New.
2298 (nios2_linux_init_abi): Adjust gdbarch initialization.
2299
3636e608
AA
23002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301
2302 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2303 (am33_iterate_over_regset_sections): New.
2304 (am33_linux_init_osabi): Adjust gdbarch initialization.
2305
d4036235
AA
23062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2307
2308 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2309 (mips_linux_iterate_over_regset_sections): New.
2310 (mips_linux_init_abi): Adjust gdbarch initialization.
2311 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2312 (mips64obsd_iterate_over_regset_sections): New.
2313 (mips64obsd_init_abi): Adjust.
2314 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2315 (mipsnbsd_iterate_over_regset_sections): New.
2316 (mipsnbsd_init_abi): Adjust.
2317
b61ddd6e
AA
23182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2319
2320 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2321 (m88k_iterate_over_regset_sections): New.
2322 (m88k_gdbarch_init): Adjust gdbarch initialization.
2323
55a2906a
AA
23242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2325
2326 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2327 (ia64_linux_iterate_over_regset_sections): New.
2328 (ia64_linux_init_abi): Adjust gdbarch initialization.
2329
022c98ab
AA
23302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2331
2332 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2333 (m68kbsd_iterate_over_regset_sections): New.
2334 (m68kbsd_init_abi): Adjust gdbarch initialization.
2335 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2336 (m68k_linux_iterate_over_regset_sections): New.
2337 (m68k_linux_init_abi): Adjust gdbarch initialization.
2338
5fac247f
AA
23392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2340
2341 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2342 (m32r_linux_regset_from_core_section): Remove.
2343 (m32r_linux_iterate_over_regset_sections): New.
2344 (m32r_linux_init_abi): Adjust gdbarch initialization.
2345
490496c3
AA
23462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2347
2348 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2349 (amd64obsd_iterate_over_regset_sections): New.
2350 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2351 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2352 Remove.
2353 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2354 regset_from_core_section initialization.
2355 * i386-tdep.c (i386_regset_from_core_section): Remove.
2356 (i386_iterate_over_regset_sections): New.
2357 (i386_gdbarch_init): Adjust gdbarch initialization.
2358 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2359 (i386_iterate_over_regset_sections): New prototype.
2360 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2361 Remove.
2362 (i386obsd_aout_iterate_over_regset_sections): New.
2363 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2364 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2365 targets.
2366 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2367 (amd64fbsd_init_abi): Call fbsd_init_abi.
2368 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2369 (i386fbsd4_init_abi): Call fbsd_init_abi.
2370 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2371 target method 'make_corefile_notes'.
2372 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2373
50c5eb53
AA
23742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2375
2376 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2377 (hppa_hpux_iterate_over_regset_sections): New.
2378 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2379 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2380 (hppa_linux_iterate_over_regset_sections): New.
2381 (hppa_linux_init_abi): Adjust.
2382 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2383 (hppanbsd_iterate_over_regset_sections): New.
2384 (hppanbsd_init_abi): Adjust.
2385 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2386 (hppaobsd_iterate_over_regset_sections): New.
2387 (hppaobsd_init_abi): Adjust.
2388
66afae4f
AA
23892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2390
2391 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2392 (frv_linux_iterate_over_regset_sections): New.
2393 (frv_linux_init_abi): Adjust gdbarch initialization.
2394
ed09174e
AA
23952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2396
2397 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2398 (armbsd_iterate_over_regset_sections): New prototype.
2399 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2400 (armbsd_iterate_over_regset_sections): New.
2401 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2402 initialization.
2403
dff2166e
AA
24042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2405
2406 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2407 (alpha_linux_iterate_over_regset_sections): New.
2408 (alpha_linux_init_abi): Adjust gdbarch initialization.
2409 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2410 prototype.
2411 (alphanbsd_iterate_over_regset_sections): New prototype.
2412
4108500a
AA
24132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2414
2415 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2416 Remove.
2417 (aarch64_linux_iterate_over_regset_sections): New.
2418 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2419
a904c024
AA
24202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2421
2422 * fbsd-tdep.c: New file.
2423 * fbsd-tdep.h: New file.
2424 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2425 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2426 (ALLDEPFILES): Add fbsd-tdep.c.
2427
8f0435f7
AA
24282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2429
2430 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2431 parameter.
2432 * gdbarch.h: Regenerate.
2433 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2434 iterator.
2435 (get_core_register_section): Add parameter 'regset' and use it, if
2436 set. Add parameter 'min_size' and verify the bfd section size
2437 against it.
2438 (get_core_registers_cb): Add parameter 'regset' and pass it to
2439 get_core_register section. For the "standard" register sections
2440 ".reg" and ".reg2", set an appropriate default for human_name.
2441 (get_core_registers): Don't abort when the gdbarch has an iterator
2442 but no regset_from_core_section. Add NULL/0 for parameters
2443 'regset'/'min_size' in calls to get_core_register_section.
2444 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2445 'regset' and use it instead of calling the
2446 regset_from_core_section gdbarch method.
2447 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2448 * i386-tdep.c (i386_supply_xstateregset)
2449 (i386_collect_xstateregset, i386_xstateregset): Moved to
2450 i386-linux-tdep.c.
2451 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2452 .reg-xstate.
2453 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2454 core file support only if the regset iterator hasn't been set.
2455 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2456 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2457 Moved from i386-tdep.c and renamed to *_linux*.
2458 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2459 each callback invocation. Allow any .reg-xstate size when reading
2460 from a core file.
2461 * amd64-tdep.c (amd64_supply_xstateregset)
2462 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2463 amd64-linux-tdep.c.
2464 (amd64_regset_from_core_section): Remove.
2465 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2466 install an amd64-specific regset_from_core_section gdbarch method.
2467 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2468 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2469 Moved from amd64-tdep.c and renamed to *_linux*.
2470 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2471 to each callback invocation. Allow any .reg-xstate size when
2472 reading from a core file.
2473 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2474 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2475 each callback invocation.
2476 (arm_linux_init_abi): No longer set the regset_from_core_section
2477 gdbarch method.
2478 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2479 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2480 each callback invocation.
2481 (ppc_linux_init_abi): No longer set the regset_from_core_section
2482 gdbarch method.
2483 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2484 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2485 (s390_regset_from_core_section): Remove.
2486 (s390_iterate_over_regset_sections): Add regset parameter to each
2487 callback invocation.
2488 (s390_gdbarch_init): No longer set the regset_from_core_section
2489 gdbarch method. Drop initialization of deleted tdep fields.
2490
5aa82d05
AA
24912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492
2493 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2494 (amd64_linux_iterate_over_regset_sections): New.
2495 (amd64_linux_init_abi_common): Don't install the regset section
2496 list, but the new iterator in gdbarch.
2497 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2498 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2499 (arm_linux_iterate_over_regset_sections): ...here. New function.
2500 (arm_linux_init_abi): Set iterator instead of section list.
2501 * corelow.c (get_core_registers_cb): New function, logic moved
2502 from...
2503 (get_core_registers): ...loop body here. Use new iterator method
2504 instead of walking through the regset section list.
2505 * gdbarch.sh: Remove 'core_regset_sections'. New method
2506 'iterate_over_regset_sections'. New typedef
2507 'iterate_over_regset_sections_cb'.
2508 * gdbarch.c: Regenerate.
2509 * gdbarch.h: Likewise.
2510 * i386-linux-tdep.c (i386_linux_regset_sections)
2511 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2512 Remove.
2513 (i386_linux_iterate_over_regset_sections): New.
2514 (i386_linux_init_abi): Don't choose a regset section list, but
2515 install new iterator in gdbarch.
2516 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2517 (linux_collect_regset_section_cb): New function, logic moved
2518 from...
2519 (linux_collect_thread_registers): ...loop body here. Use iterator
2520 method instead of walking through list.
2521 (linux_make_corefile_notes_1): Check for presence of iterator
2522 method instead of regset section list.
2523 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2524 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2525 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2526 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2527 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2528 (ppc_linux_init_abi): Don't choose from above regset section
2529 lists, but install new iterator in gdbarch.
2530 * regset.h (struct core_regset_section): Remove.
2531 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2532 have_linux_v1, have_linux_v2, and have_tdb.
2533 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2534 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2535 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2536 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2537 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2538 (s390_iterate_over_regset_sections): ...here. New function. Use
2539 new tdep fields.
2540 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2541 regset section lists, but install new iterator.
2542
2eca4a8d
JK
25432014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2546
a73c2b56
SM
25472014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2548
2549 * progspace.c (print_program_space): Don't prune program spaces
2550 before printing them.
2551
03d46957
PA
25522014-09-25 Pedro Alves <palves@redhat.com>
2553
2554 * infrun.c (user_visible_resume_ptid): Don't check
2555 singlestep_breakpoints_inserted_p.
2556
e558d7c1
PA
25572014-09-25 Pedro Alves <palves@redhat.com>
2558
2559 * breakpoint.c (should_be_inserted): Add debug output.
2560
7f89fd65
PA
25612014-09-25 Pedro Alves <palves@redhat.com>
2562
2563 * infrun.c (stepping_past_instruction_at)
2564 (clear_exit_convenience_vars): Point at infrun.h instead of
2565 inferior.h.
2566 (handle_signal_stop): Fix typo.
2567
b7576e5c
YQ
25682014-09-24 Yao Qi <yao@codesourcery.com>
2569
2570 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2571 bitmask.
2572
9a6cf368
GB
25732014-09-22 Gary Benson <gbenson@redhat.com>
2574
2575 * target.c (target_stop): Updated comment.
2576
03f4463b
GB
25772014-09-22 Gary Benson <gbenson@redhat.com>
2578
2579 * target/target.h (target_stop_ptid): Renamed as...
2580 (target_stop_and_wait): New function. Updated comment.
2581 All uses updated.
2582 (target_continue_ptid): Renamed as...
2583 (target_continue_no_signal): New function. Updated comment.
2584 All uses updated.
2585
a25a5a45
PA
25862014-09-22 Pedro Alves <palves@redhat.com>
2587
2588 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2589 and "auto" merged.
2590 * breakpoint.c (enum ugll_insert_mode): New enum.
2591 (always_inserted_mode): Now a plain boolean.
2592 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2593 (breakpoints_always_inserted_mode): Delete.
2594 (breakpoints_should_be_inserted_now): New function.
2595 (insert_breakpoints): Pass UGLL_INSERT to
2596 update_global_location_list instead of calling
2597 insert_breakpoint_locations manually.
2598 (create_solib_event_breakpoint_1): New, factored out from ...
2599 (create_solib_event_breakpoint): ... this.
2600 (create_and_insert_solib_event_breakpoint): Use
2601 create_solib_event_breakpoint_1 instead of calling
2602 insert_breakpoint_locations manually.
2603 (update_global_location_list): Change parameter type from boolean
2604 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2605 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2606 (update_global_location_list_nothrow): Change parameter type from
2607 boolean to enum ugll_insert_mode.
2608 (_initialize_breakpoint): "breakpoint always-inserted" option is
2609 now a boolean command. Update help text.
2610 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2611 (breakpoints_should_be_inserted_now): New declaration.
2612 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2613 Remove breakpoints_always_inserted_mode check.
2614 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2615 * remote.c (remote_start_remote): Likewise.
2616
04086b45
PA
26172014-09-22 Pedro Alves <palves@redhat.com>
2618
2619 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2620 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2621 Instead, pass UGLL_INSERT to update_global_location_list.
2622 (update_global_location_list): Change parameter type from boolean
2623 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2624 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2625 (create_solib_event_breakpoint_1): New, factored out from ...
2626 (create_solib_event_breakpoint): ... this.
2627 (create_and_insert_solib_event_breakpoint): Use
2628 create_solib_event_breakpoint_1 instead of calling
2629 insert_breakpoint_locations manually.
2630 (update_global_location_list): Handle UGLL_INSERT.
2631
44702360
PA
26322014-09-22 Pedro Alves <palves@redhat.com>
2633
2634 * breakpoint.c (enum ugll_insert_mode): New enum.
2635 (update_global_location_list)
2636 (update_global_location_list_nothrow): Change parameter type from
2637 boolean to enum ugll_insert_mode. All callers adjusted.
2638
93c6145a
JB
26392014-09-19 Joel Brobecker <brobecker@adacore.com>
2640
2641 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2642 SystemTap support in GDB.
2643
89a5711c
DB
26442014-09-19 Don Breazeal <donb@codesourcery.com>
2645
2646 * linux-nat.c (linux_handle_extended_wait): Call
2647 linux_ptrace_get_extended_event.
2648 (wait_lwp): Call linux_is_extended_waitstatus.
2649 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2650 and linux_is_extended_waitstatus.
2651 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2652 linux_ptrace_get_extended_event.
2653 (linux_ptrace_get_extended_event): New function.
2654 (linux_is_extended_waitstatus): New function.
2655 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2656 (linux_is_extended_waitstatus): New declarations.
2657
c3b7b696
YQ
26582014-09-19 Yao Qi <yao@codesourcery.com>
2659
2660 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2661 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2662 comments. Callers update.
2663 (dwarf_decode_lines): Likewise.
2664 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2665 comments. Skip the line table if 'lowpc' is greater than
2666 'address'. Don't check
2667 dwarf2_per_objfile->has_section_at_zero.
2668
2b4fd423
DE
26692014-09-18 Doug Evans <dje@google.com>
2670
2671 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2672 * python/py-symtab.c (stpy_get_producer): New function.
2673 (symtab_object_getset): Add "producer" attribute.
2674
5e43d467
UW
26752014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2676
2677 PR gdb/17384
2678 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2679 (do_captured_read_memory_integer): Remove.
2680 (safe_read_memory_integer): Use target_read_memory directly instead
2681 of catching errors in do_captured_read_memory_integer.
2682
04e79979
MR
26832014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2684
2685 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2686 not gdb/doc.
2687
76aeec5b
SDJ
26882014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2689
2690 * objc-lang.c (find_implementation_from_class): Remove dead code.
2691
2f693f9d
SDJ
26922014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2693
2694 PR cli/7233
2695 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2696 "fprintf_unfiltered (gdb_stdlog...)".
2697
bb9d5f81
PP
26982014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2699
2700 PR breakpoints/12526
2701 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2702 val_bitsize.
2703 * breakpoint.c (watch_command_1): Use these fields to retain
2704 bitfield information.
2705 (extract_bitfield_from_watchpoint_value): New function.
2706 (watchpoint_check): Use it.
2707 (update_watchpoint): Use it. Optimize the address and length of a
2708 HW watchpoint pointing to a bitfield.
2709 * value.h (unpack_value_bitfield): New prototype.
2710 * value.c (unpack_value_bitfield): Make extern.
2711
05db5edd
ST
27122014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2713
2714 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2715 x86-dregs.o.
2716 * gnu-nat.c (inf_threads): New function.
2717 * gnu-nat.h (inf_threads_ftype): New typedef.
2718 (inf_threads): New declaration.
2719 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2720 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2721 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2722 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2723 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2724 (i386_gnu_dr_get_control): New functions.
2725 (reg_addr): New structure.
2726 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2727 i386 debugging register hooks.
2728 * NEWS: Mention this.
2729
5a578da5
OJ
27302014-08-13 Omair Javaid <omair.javaid@linaro.org>
2731
2732 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2733 vector data transfer instructions.
2734 (arm_record_coproc_data_proc): Updated.
2735
f20f80dd
OJ
27362014-08-13 Omair Javaid <omair.javaid@linaro.org>
2737
2738 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2739 arm_record_exreg_ld_st_insn.
2740 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2741 load/store insns.
2742
851f26ae
OJ
27432014-08-13 Omair Javaid <omair.javaid@linaro.org>
2744
2745 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2746 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2747 processing instructions.
2748
1e1b6563
OJ
27492014-08-13 Omair Javaid <omair.javaid@linaro.org>
2750
2751 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2752 for advance SIMD struct ld/st insn.
2753 (thumb2_record_decode_insn_handler): Replace stub handler with
2754 thumb2_record_asimd_struct_ld_st.
2755
60cc5e93
OJ
27562014-08-13 Omair Javaid <omair.javaid@linaro.org>
2757
2758 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2759 for asimd, vfp and coprocessor insns.
2760 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2761 and coprocessor insns.
2762 (thumb2_record_coproc_insn): New function.
2763 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2764 handlers.
2765 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2766 opcode 110 insns.
2767
81219e53
DE
27682014-09-13 Doug Evans <xdje42@gmail.com>
2769
2770 * NEWS: Mention new "queue-signal" command.
2771 * infcmd.c (queue_signal_command): New function.
2772 (_initialize_infcmd): Add new queue-signal command.
2773
d36bf488
DE
27742014-09-13 Doug Evans <xdje42@gmail.com>
2775
2776 * linux-nat.c (wait_lwp): Add debugging printf.
2777 (linux_nat_wait_1): Ditto.
2778
f37f681c
PA
27792014-09-12 Pedro Alves <palves@redhat.com>
2780
2781 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2782 (create_and_insert_solib_event_breakpoint): New functions.
2783 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2784 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2785 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2786 (remove_dbx_link_breakpoint): Delete function.
2787 (insert_dbx_link_bpt_in_file): Use
2788 create_and_insert_solib_event_breakpoint instead of
2789 deprecated_insert_raw_breakpoint.
2790 (procfs_wait): Don't check whether we hit __dbx_link here.
2791 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2792 here.
2793 * solib-irix.c (base_breakpoint): Delete global.
2794 (disable_break): Delete function.
2795 (enable_break): Use create_solib_event_breakpoint
2796 instead of deprecated_insert_raw_breakpoint.
2797 (irix_solib_handle_event): New function.
2798 (irix_solib_create_inferior_hook): Don't run the target or disable
2799 the mapping-complete breakpoint here.
2800 (_initialize_irix_solib): Install irix_solib_handle_event as
2801 so_ops->handle_event hook.
2802
9d9bf2df
EBM
28032014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2804 Ulrich Weigand  <uweigand@de.ibm.com>
2805
2806 PR tdep/17379
2807 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2808 instead of read_memory_unsigned_integer.
2809
b006a80e
GB
28102014-09-12 Gary Benson <gbenson@redhat.com>
2811
2812 * nat/linux-waitpid.c: Include common-defs.h.
2813 [GDBSERVER]: Add FIXME comment.
2814 [!GDBSERVER]: Don't include defs.h or signal.h.
2815 (linux_debug) [!GDBSERVER]: Remove empty block.
2816
296b1496
GB
28172014-09-12 Gary Benson <gbenson@redhat.com>
2818
2819 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2820 Don't include defs.h or server.h.
2821
53f81362
GB
28222014-09-12 Gary Benson <gbenson@redhat.com>
2823
2824 * nat/linux-btrace.c: Include common-defs.h.
2825 Don't include defs.h, server.h or gdbthread.h.
2826 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2827
727605ca
GB
28282014-09-12 Gary Benson <gbenson@redhat.com>
2829
2830 * common/agent.c: Include common-defs.h.
2831 Don't include defs.h or server.h.
2832 * common/buffer.c: Likewise.
2833 * common/common-debug.c: Likewise.
2834 * common/common-utils.c: Likewise.
2835 * common/errors.c: Likewise.
2836 * common/filestuff.c: Likewise.
2837 * common/format.c: Likewise.
2838 * common/gdb_vecs.c: Likewise.
2839 * common/print-utils.c: Likewise.
2840 * common/ptid.c: Likewise.
2841 * common/rsp-low.c: Likewise.
2842 * common/signals.c: Likewise.
2843 * common/vec.c: Likewise.
2844 * common/xml-utils.c: Likewise.
2845 * nat/linux-osdata.c: Likewise.
2846 * nat/linux-procfs.c: Likewise.
2847 * nat/linux-ptrace.c: Likewise.
2848 * nat/mips-linux-watch.c: Likewise.
2849 * target/waitstatus.c: Likewise.
2850
361c8ade
GB
28512014-09-12 Tom Tromey <tromey@redhat.com>
2852 Gary Benson <gbenson@redhat.com>
2853
2854 * common/common-regcache.h: New file.
2855 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2856 * regcache.h: Include common-regcache.h.
2857 (regcache_read_pc): Don't declare.
2858 * regcache.c (get_thread_regcache_for_ptid): New function.
2859 * nat/linux-btrace.c: Don't include regcache.h.
2860 Include common-regcache.h.
2861 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2862
a01cbb49
TS
28632014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2864
2865 * regcache.h (struct regset): Declare.
2866
98880d46
PA
28672014-09-11 Pedro Alves <palves@redhat.com>
2868
2869 PR gdb/17347
2870 * main.c: Include "infrun.h".
2871 (catch_command_errors, catch_command_errors_const): Wait for the
2872 foreground command to complete.
2873 * top.c (maybe_wait_sync_command_done): New function, factored out
2874 from ...
2875 (maybe_wait_sync_command_done): ... here.
2876 * top.h (maybe_wait_sync_command_done): New declaration.
2877
bd9269f7
GB
28782014-09-11 Tom Tromey <tromey@redhat.com>
2879 Gary Benson <gbenson@redhat.com>
2880
2881 * common/symbol.h: New file.
2882 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2883 * minsyms.c (find_minimal_symbol_address): New function.
2884 * common/agent.c: Include common/symbol.h.
2885 [!GDBSERVER]: Don't include objfiles.h.
2886 (agent_look_up_symbols): Use find_minimal_symbol_address.
2887
f8c1d06b
GB
28882014-09-11 Gary Benson <gbenson@redhat.com>
2889
2890 * target/target.h (target_stop_ptid, target_continue_ptid):
2891 Declare.
2892 * target.c (target_stop_ptid, target_continue_ptid): New
2893 functions.
2894 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2895 (agent_run_command): Always use target_stop_ptid and
2896 target_continue_ptid.
2897
721ec300
GB
28982014-09-11 Tom Tromey <tromey@redhat.com>
2899 Gary Benson <gbenson@redhat.com>
2900
2901 * target/target.h: New file.
2902 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2903 * target.h: Include target/target.h.
2904 (target_read_memory, target_write_memory): Don't declare.
2905 * target.c (target_read_uint32): New function.
2906 * common/agent.c: Include target/target.h.
2907 [!GDBSERVER]: Don't include target.h.
2908 (helper_thread_id): Type changed to uint32_t.
2909 (agent_get_helper_thread_id): Use target_read_uint32.
2910 (agent_run_command): Always use target_read_memory and
2911 target_write_memory.
2912 (agent_capability): Type changed to uint32_t.
2913 (agent_capability_check): Use target_read_uint32.
2914
c5e92cca
GB
29152014-09-11 Gary Benson <gbenson@redhat.com>
2916
2917 * common/common-debug.h (show_debug_regs): Declare.
2918 * common/common-debug.c (show_debug_regs): Define.
2919 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2920 all uses with show_debug_regs. Replace all uses that considered
2921 debug_hw_points as a multi-value integer with straight boolean
2922 uses.
2923 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2924 with show_debug_regs.
2925 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2926 all uses with show_debug_regs.
2927 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2928 uses with show_debug_regs.
2929
eeef931a
UW
29302014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2931
2932 * findvar.c (address_from_register): Handle targets requiring
2933 a special conversion routine even for plain pointer types.
2934
8efa9855
UW
29352014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2936
2937 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2938 (store_register): Do not call exec_one_dummy_insn.
2939
eb479039
JB
29402014-09-10 Joel Brobecker <brobecker@adacore.com>
2941
2942 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2943 dereference it first. Use value_enclosing_type instead of
2944 value_type.
2945 (ada_array_length): Likewise.
2946
deede10c
JB
29472014-09-10 Joel Brobecker <brobecker@adacore.com>
2948
2949 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2950 Adjust function implementation and documentation accordingly.
2951 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2952 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2953 Update call to ada_value_ptr_subscript.
2954
7828a5f5
JB
29552014-09-10 Joel Brobecker <brobecker@adacore.com>
2956
2957 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2958 instead of VAL's type.
2959
35782f14
JB
29602014-09-10 Joel Brobecker <brobecker@adacore.com>
2961
2962 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2963
d342a0da
DE
29642014-09-09 Doug Evans <xdje42@gmail.com>
2965
2966 PR guile/17367
2967 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2968 last parameter to pkg-config, not first.
2969 * configure.ac: Pass --with-guile provided pkg-config path to
2970 GDB_GUILE_PROGRAM_NAMES.
2971 * configure: Regenerate.
2972
b4a3d263
GKB
29732014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2974
2975 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2976 Bertazi".
2977
6e466374
MR
29782014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2979
2980 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2981 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2982 the list of sections determining GDB_OSABI_IRIX.
2983
a1ada89a
JH
29842014-09-09 James Hogan <james.hogan@imgtec.com>
2985
2986 * MAINTAINERS (Write After Approval): Add "James Hogan".
2987
86db008d
JH
29882014-09-09 James Hogan <james.hogan@imgtec.com>
2989
2990 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2991
72fde3df
JB
29922014-09-09 Joel Brobecker <brobecker@adacore.com>
2993
2994 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2995
92d8d229
DE
29962014-09-08 Doug Evans <xdje42@gmail.com>
2997
2998 PR 17247
2999 * guile.c: #include <signal.h>.
3000 (_initialize_guile): Block SIGCHLD while initializing Guile.
3001
3002 Replaces the following, which is reverted.
3003
3004 2014-07-26 Doug Evans <xdje42@gmail.com>
3005
3006 PR 17185
3007 * configure.ac: Add check for header gc/gc.h.
3008 Add check for function setenv.
3009 * configure: Regenerate.
3010 * config.in: Regenerate.
3011 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3012
d81412aa
DE
30132014-09-08 Doug Evans <xdje42@gmail.com>
3014
3015 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3016 with named constant. Fix style of pointer comparison.
3017 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3018
a9f116cb
GKB
30192014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3020
3021 PR gdb/17035
3022 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3023 decide whether we display the command on "show user".
3024 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3025 printing command name.
3026 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3027 * cli/cli-decode.c (cli_user_command_p): Create helper function
3028 to verify whether cmd_list_element is a user-defined command.
3029
c75bd3a2
JK
30302014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3031
3032 PR python/17355
3033 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3034 Fix goto out of TRY_CATCH.
3035
faa42425 30362014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3037 Tom Tromey <tromey@redhat.com>
faa42425
DE
3038
3039 PR 15276
3040 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3041 $_any_caller_matches.
3042 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3043 * python/lib/gdb/function/caller_is.py: New file.
3044
0d41ba00
DE
30452014-09-06 Doug Evans <xdje42@gmail.com>
3046
3047 * infcmd.c (program_info): Fix typo.
3048
474ca4f6
SDJ
30492014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3050
3051 PR gdb/17235
3052 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3053 'number'. New variable 'has_digit'. Rewrite code to deal with
3054 subexpressions on SDT probes.
3055
ebf13736
PA
30562014-09-04 Pedro Alves <palves@redhat.com>
3057
3058 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3059 the input is only one character long.
3060
eb0b0463
SDJ
30612014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3062
3063 PR fortran/17237
3064 * f-valprint.c (f_val_print): Specify the correct print option to
3065 use when printing integer values.
3066
5ee44bfa
GB
30672014-09-04 Gary Benson <gbenson@redhat.com>
3068
3069 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3070 Remove code to cope with LWPs wrapped as PIDs.
3071 Add assertions to ensure no wrapped LWPs are passed.
3072
4875ffdb
PA
30732014-09-04 Pedro Alves <palves@redhat.com>
3074
3075 * value.c (value_ranges_copy_adjusted): New function, factored out
3076 from ...
3077 (value_contents_copy_raw): ... here.
3078 (unpack_value_bits_as_long_1): Rename back to ...
3079 (unpack_bits_as_long): ... this. Remove 'original_value' and
3080 'result' parameters. Change return type to LONGEST.
3081 (unpack_value_bits_as_long): Delete.
3082 (unpack_value_field_as_long_1): Delete.
3083 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3084 (unpack_value_bitfield): New function.
3085 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3086 (value_fetch_lazy): Use unpack_value_bitfield.
3087 * value.h (unpack_value_bits_as_long): Delete declaration.
3088
5f3b99cf
SS
30892014-09-03 Sasha Smundak <asmundak@google.com>
3090
3091 * python/py-frame.c (frapy_read_register): New function.
3092
ac740bc7
JH
30932014-09-03 James Hogan <james.hogan@imgtec.com>
3094
3095 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3096 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3097
7d793aa9
SDJ
30982014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3099
3100 PR python/16699
3101 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3102 function.
3103 (add_cmd): Set "completer_handle_brkchars" to NULL.
3104 * cli/cli-decode.h (struct cmd_list_element)
3105 <completer_handle_brkchars>: New field.
3106 * command.h (completer_ftype_void): New typedef.
3107 (set_cmd_completer_handle_brkchars): New prototype.
3108 * completer.c (set_gdb_completion_word_break_characters): New
3109 function.
3110 (complete_line_internal): Call "completer_handle_brkchars"
3111 callback from command.
3112 * completer.h: Include "command.h".
3113 (set_gdb_completion_word_break_characters): New prototype.
3114 * python/py-cmd.c (cmdpy_completer_helper): New function.
3115 (cmdpy_completer_handle_brkchars): New function.
3116 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3117 (cmdpy_init): Set completer_handle_brkchars to
3118 cmdpy_completer_handle_brkchars.
3119
97ea6506
GB
31202014-09-03 Gary Benson <gbenson@redhat.com>
3121
3122 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3123 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3124 Loop conditions changed to equivalent form.
3125 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3126 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3127 ALL_DEBUG_ADDRESS_REGISTERS.
3128
d1437815
JB
31292014-09-03 Joel Brobecker <brobecker@adacore.com>
3130
3131 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3132 description fix.
3133
9b94fcf1
DE
31342014-09-02 Doug Evans <dje@google.com>
3135
3136 * typeprint.c (find_global_typedef): Fix comment.
3137
df7e5265
GB
31382014-09-02 Gary Benson <gbenson@redhat.com>
3139
3140 * i386-nat.h: Renamed as...
3141 * x86-nat.h: New file. All type, function and variable name
3142 prefixes changed from "i386_" to "x86_". All references updated.
3143 * i386-nat.c: Renamed as...
3144 * x86-nat.c: New file. All type, function and variable name
3145 prefixes changed from "i386_" to "x86_". All references updated.
3146 * common/i386-xstate.h: Renamed as...
3147 * common/x86-xstate.h: New file. All type, function and variable
3148 name prefixes changed from "i386_" to "x86_". All references
3149 updated.
3150 * nat/i386-cpuid.h: Renamed as...
3151 * nat/x86-cpuid.h: New file. All type, function and variable name
3152 prefixes changed from "i386_" to "x86_". All references updated.
3153 * nat/i386-gcc-cpuid.h: Renamed as...
3154 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3155 name prefixes changed from "i386_" to "x86_". All references
3156 updated.
3157 * nat/i386-dregs.h: Renamed as...
3158 * nat/x86-dregs.h: New file. All type, function and variable name
3159 prefixes changed from "i386_" to "x86_". All references updated.
3160 * nat/i386-dregs.c: Renamed as...
3161 * nat/x86-dregs.c: New file. All type, function and variable name
3162 prefixes changed from "i386_" to "x86_". All references updated.
3163
1c3569d4
MR
31642014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3165
3166 * varobj.c (_initialize_varobj): Move to the end of file.
3167
ff55e1b5
GB
31682014-08-29 Gary Benson <gbenson@redhat.com>
3169
3170 * common/common-exceptions.h: New file.
3171 * common/common-exceptions.c: Likewise.
3172 * Makefile.in (SFILES): Add common/common-exceptions.c.
3173 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3174 (COMMON_OBS): Add common-exceptions.o.
3175 (common-exceptions.o): New rule.
3176 * exceptions.h (common-exceptions.h): Include.
3177 (gdb_setjmp.h): Do not include.
3178 (return_reason): Moved to common-exceptions.h.
3179 (enum return_reason): Likewise.
3180 (RETURN_MASK): Likewise.
3181 (typedef return_mask): Likewise.
3182 (enum errors): Likewise.
3183 (struct gdb_exception): Likewise.
3184 (exceptions_state_mc_init): Likewise.
3185 (exceptions_state_mc_action_iter): Likewise.
3186 (exceptions_state_mc_action_iter_1): Likewise.
3187 (TRY_CATCH): Likewise.
3188 (throw_exception): Likewise.
3189 (throw_verror): Likewise.
3190 (throw_vquit): Likewise.
3191 (throw_error): Likewise.
3192 (throw_quit): Likewise.
3193 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3194 (enum catcher_action): Likewise.
3195 (struct catcher): Likewise.
3196 (current_catcher): Likewise.
3197 (catcher_list_size): Likewise.
3198 (exceptions_state_mc_init): Likewise.
3199 (catcher_pop): Likewise.
3200 (exceptions_state_mc): Likewise.
3201 (exceptions_state_mc_action_iter): Likewise.
3202 (exceptions_state_mc_action_iter_1): Likewise.
3203 (throw_exception): Likewise.
3204 (exception_messages): Likewise.
3205 (exception_messages_size): Likewise.
3206 (throw_it): Likewise.
3207 (throw_verror): Likewise.
3208 (throw_vquit): Likewise.
3209 (throw_error): Likewise.
3210 (throw_quit): Likewise.
3211 (prepare_to_throw_exception): New function.
3212
e9bcb658
GB
32132014-08-29 Gary Benson <gbenson@redhat.com>
3214
3215 * common/gdb_setjmp.h: New file.
3216 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3217 * configure.ac: Move sigsetjmp check...
3218 * common/common.m4: ...here.
3219 * configure: Regenerate.
3220 * cp-support.c (SIGJMP_BUF): Delete.
3221 (SIGSETJMP): Likewise.
3222 (SIGLONGJMP): Likewise.
3223 * exceptions.h (gdb_setjmp.h): Include.
3224 (setjmp.h): Do not include.
3225 (EXCEPTIONS_SIGJMP_BUF): Delete.
3226 (EXCEPTIONS_SIGSETJMP): Likewise.
3227 (EXCEPTIONS_SIGLONGJMP): Likewise.
3228 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3229 from gdb_setjmp.h.
3230 * exceptions.c: Likewise.
3231
e3180625
GB
32322014-08-29 Gary Benson <gbenson@redhat.com>
3233
3234 * cleanups.h: Moved to...
3235 * common/cleanups.h: New file.
3236 * cleanups.c: Moved to...
3237 * common/cleanups.c: New file. Include common-defs.h and
3238 cleanups.h. Do not include defs.h.
3239 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3240 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3241 (cleanups.o): New rule.
3242
e3d6ba5d
GB
32432014-08-29 Gary Benson <gbenson@redhat.com>
3244
3245 * common/errors.h (internal_warning): New declaration.
3246 (internal_vwarning): Likewise.
3247 * common/errors.c (internal_warning): New function.
3248 * utils.h (internal_warning): Don't declare.
3249 (internal_vwarning): Likewise.
3250 * utils.c (internal_warning): Removed.
3251
075c7033
GB
32522014-08-29 Gary Benson <gbenson@redhat.com>
3253
3254 * main.c (captured_main): Use warning during startup.
3255 Prefix startup warning messages with command name.
3256
91b35fd0
GB
32572014-08-29 Gary Benson <gbenson@redhat.com>
3258
3259 * main.c (captured_main): Handle usage errors with error.
3260
b1ec390e
GB
32612014-08-29 Gary Benson <gbenson@redhat.com>
3262
3263 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3264 exit pair with a call to error. Wrap the message with _().
3265
fd0ef3dd
GB
32662014-08-29 Gary Benson <gbenson@redhat.com>
3267
3268 * main.c (captured_main): Replace a fprintf/exit
3269 pair with a call to error. Wrap the message with _().
3270
e0e6bcab
GB
32712014-08-29 Gary Benson <gbenson@redhat.com>
3272
3273 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3274 pairs with calls to error. Wrap the message with _().
3275
0d2f5c07
GB
32762014-08-29 Gary Benson <gbenson@redhat.com>
3277
3278 * utils.c (vwarning): Protect calls to target_terminal_ours
3279 and wrap_here.
3280
5df43998
GB
32812014-08-29 Gary Benson <gbenson@redhat.com>
3282
3283 * exceptions.c (print_flush): Protect calls to
3284 target_terminal_ours and wrap_here.
3285
2437fd32
GB
32862014-08-29 Gary Benson <gbenson@redhat.com>
3287
3288 * utils.h (filtered_printing_initialized): New declaration.
3289 * utils.c (abort_with_message): New function.
3290 (internal_vproblem): Use abort_with_message for first level
3291 recursive internal problems, and if gdb_stderr is not set up.
3292 Protect calls to target_terminal_ours, begin_line and query.
3293
f1f58506
DE
32942014-08-28 Doug Evans <dje@google.com>
3295
3296 * symtab.c (in_prologue): Move definition to better spot.
3297 (skip_prologue_using_sal): Ditto.
3298
aab2f208
DE
32992014-08-28 Doug Evans <dje@google.com>
3300
3301 * symtab.c (find_function_start_sal): Move definition to better spot.
3302
6b65d1b6
YQ
33032014-08-28 Yao Qi <yao@codesourcery.com>
3304
3305 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3306 found_stack_adjust in forward scan. Remove condition check
3307 on found_stack_adjust which is always true. Indent the code.
3308
a1b34d15
YQ
33092014-08-28 Yao Qi <yao@codesourcery.com>
3310
3311 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3312 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3313 (dwarf_decode_lines): Remove argument
3314 want_line_info. Remove condition check on want_line_info.
3315 Callers update.
3316
d5962de5
DE
33172014-08-27 Doug Evans <dje@google.com>
3318
3319 * dwarf2read.c (dwarf_record_line): Fix typo.
3320
9b139002
SDJ
33212014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3322
3323 * target.h (struct target_ops::to_terminal_save_ours): Remove
3324 declaration.
3325 (target_terminal_save_ours): Remove macro.
3326 * target-delegates.c: Regenerate.
3327 * inf-child.c (inf_child_target): Don't set the nonexistent
3328 field to_terminal_save_ours.
3329 * inferior.h (child_terminal_save_ours): Remove declaration.
3330 * terminal.h (gdb_save_tty_state): New declaration.
3331 * inflow.c (child_terminal_save_ours): Rename to ...
3332 (gdb_save_tty_state): ... this.
3333 * tui/tui.c: Include terminal.h.
3334 (tui_enable): Use gdb_save_tty_state instead of
3335 target_terminal_save_ours.
3336 (tui_disable): Likewise.
3337
9debeba0
DE
33382014-08-25 Doug Evans <dje@google.com>
3339
3340 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3341 Pass NULL instead of 0 for context pointer.
3342
428fc5fc
YQ
33432014-08-25 Yao Qi <yao@codesourcery.com>
3344
3345 * dwarf2read.c: Fix grammatical error.
3346
cdc07690
YQ
33472014-08-24 Yao Qi <yao@codesourcery.com>
3348
3349 * dwarf2read.c (scan_partial_symbols): Update comments.
3350 Rename argument 'need_pc' with 'set_addrmap'.
3351 (add_partial_namespace): Rename argument 'need_pc' with
3352 'set_addrmap'.
3353 (add_partial_module): Likewise.
3354 (add_partial_subprogram): Likewise. Update comments.
3355 (dwarf2_name): Fix typo.
3356
a05a36a5
DE
33572014-08-22 Doug Evans <dje@google.com>
3358
3359 PR 17276
3360 * dwarf2read.c (dwarf_record_line_p): New function.
3361 (dwarf_decode_lines_1): Ignore subsequent line number entries
3362 for the same line if any entry had a non-zero discriminator.
3363
252a6764
DE
33642014-08-22 Doug Evans <dje@google.com>
3365
3366 * buildsym.h (record_line_ftype): New typedef.
3367 (record_line): Use it.
3368 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3369 (dwarf_decode_lines_1): Call them.
3370
510db052
YQ
33712014-08-22 Yao Qi <yao@codesourcery.com>
3372
3373 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3374 (ctf_end): Remove code.
3375
22fd09ae
JK
33762014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3377
3378 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3379 (linux_make_corefile_notes): call update_thread_list, protected against
3380 exceptions.
3381
656e8868
PA
33822014-08-21 Pedro Alves <palves@redhat.com>
3383
3384 * infcmd.c (attach_command): Remove comment.
3385
de589d04
WN
33862014-08-21 Bin Cheng <bin.cheng@arm.com>
3387
3388 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3389 unsigned LONGEST to ULONGEST.
3390
2a31c623
PA
33912014-08-20 Pedro Alves <palves@redhat.com>
3392
3393 * Makefile.in (check-read1): New rule.
3394
d36430db
JB
33952014-08-20 Joel Brobecker <brobecker@adacore.com>
3396
3397 * value.c (value_from_contents_and_address): Strip resolved_type's
3398 typedef layers before checking its TYPE_DATA_LOCATION.
3399
000339af
PA
34002014-08-20 Pedro Alves <palves@redhat.com>
3401
3402 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3403
5f52445b
YQ
34042014-08-20 Yao Qi <yao@codesourcery.com>
3405
3406 * amd64-tdep.c (amd64_classify): Add a blank line after the
3407 example. Move "*/" to a new line.
3408 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3409 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3410 * dwarf2read.c (psymtab_include_file_name): Likewise.
3411
9a0dc9e3
PA
34122014-08-19 Andrew Burgess <aburgess@broadcom.com>
3413 Pedro Alves <palves@redhat.com>
3414
3415 PR symtab/14604
3416 PR symtab/14605
3417 * ada-lang.c (coerce_unspec_val_to_type): Use
3418 value_contents_copy_raw.
3419 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3420 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3421 * cp-valprint.c (cp_print_value_fields): Let the common printing
3422 code handle optimized out values.
3423 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3424 * d-valprint.c (dynamic_array_type): Use
3425 value_bits_any_optimized_out.
3426 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3427 check_any_valid fields.
3428 (check_pieced_value_bits): Delete and inline ...
3429 (check_pieced_synthetic_pointer): ... here.
3430 (check_pieced_value_validity): Delete.
3431 (check_pieced_value_invalid): Delete.
3432 (pieced_value_funcs): Remove check_validity and check_any_valid
3433 fields.
3434 (read_pieced_value): Use mark_value_bits_optimized_out.
3435 (write_pieced_value): Switch to use
3436 mark_value_bytes_optimized_out.
3437 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3438 of assuming the whole value is optimized out.
3439 * findvar.c (read_frame_register_value): Remove special handling
3440 of optimized out registers.
3441 (value_from_register): Use mark_value_bytes_optimized_out.
3442 * frame-unwind.c (frame_unwind_got_optimized): Use
3443 mark_value_bytes_optimized_out.
3444 * jv-valprint.c (java_value_print): Adjust.
3445 (java_print_value_fields): Let the common printing code handle
3446 optimized out values.
3447 * mips-tdep.c (mips_print_register): Remove special handling of
3448 optimized out registers.
3449 * opencl-lang.c (lval_func_check_validity): Delete.
3450 (lval_func_check_any_valid): Delete.
3451 (opencl_value_funcs): Remove check_validity and check_any_valid
3452 fields.
3453 * p-valprint.c (pascal_object_print_value_fields): Let the common
3454 printing code handle optimized out values.
3455 * stack.c (read_frame_arg): Remove special handling of optimized
3456 out values. Fetch both VAL and ENTRYVAL before comparing
3457 contents. Adjust to value_available_contents_eq rename.
3458 * valprint.c (valprint_check_validity)
3459 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3460 (val_print_array_elements): Adjust.
3461 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3462 (value_bits_any_optimized_out): New function.
3463 (value_entirely_covered_by_range_vector): New function, factored
3464 out from value_entirely_unavailable.
3465 (value_entirely_unavailable): Reimplement.
3466 (value_entirely_optimized_out): New function.
3467 (insert_into_bit_range_vector): New function, factored out from
3468 mark_value_bits_unavailable.
3469 (mark_value_bits_unavailable): Reimplement.
3470 (struct ranges_and_idx): New struct.
3471 (find_first_range_overlap_and_match): New function, factored out
3472 from value_available_contents_bits_eq.
3473 (value_available_contents_bits_eq): Rename to ...
3474 (value_contents_bits_eq): ... this. Check both unavailable
3475 contents and optimized out contents.
3476 (value_available_contents_eq): Rename to ...
3477 (value_contents_eq): ... this.
3478 (allocate_value_lazy): Remove reference to the old optimized_out
3479 boolean.
3480 (allocate_optimized_out_value): Use
3481 mark_value_bytes_optimized_out.
3482 (require_not_optimized_out): Adjust to check whether the
3483 optimized_out vec is empty.
3484 (ranges_copy_adjusted): New function, factored out from
3485 value_contents_copy_raw.
3486 (value_contents_copy_raw): Also copy the optimized out ranges.
3487 Assert the destination ranges aren't optimized out.
3488 (value_contents_copy): Update comment, remove call to
3489 require_not_optimized_out.
3490 (value_contents_equal): Adjust to check whether the optimized_out
3491 vec is empty.
3492 (set_value_optimized_out, value_optimized_out_const): Delete.
3493 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3494 New functions.
3495 (value_entirely_optimized_out, value_bits_valid): Delete.
3496 (value_copy): Take a VEC copy of the 'optimized_out' field.
3497 (value_primitive_field): Remove special handling of optimized out.
3498 (value_fetch_lazy): Assert that lazy values have no unavailable
3499 regions. Use value_bits_any_optimized_out. Remove some special
3500 handling for optimized out values.
3501 * value.h: Add intro comment about <optimized out> and
3502 <unavailable>.
3503 (struct lval_funcs): Remove check_validity and check_any_valid
3504 fields.
3505 (set_value_optimized_out, value_optimized_out_const): Remove.
3506 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3507 New declarations.
3508 (value_bits_any_optimized_out): New declaration.
3509 (value_bits_valid): Delete declaration.
3510 (value_available_contents_eq): Rename to ...
3511 (value_contents_eq): ... this, and extend comments.
3512
6694c411
JK
35132014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 Fix -fsanitize=address on unreadable inferior strings.
3516 * valprint.c (val_print_string): Fix access before BUFFER.
3517
89a1c21a
SM
35182014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3519
3520 * target.c (target_struct_size): Remove.
3521 (target_struct_allocsize): Remove.
3522 (DEFAULT_ALLOCSIZE): Remove.
3523 (target_ops_p): New typedef.
3524 (DEF_VEC_P (target_ops_p)): New vector type.
3525 (target_structs): Change type to VEC (target_ops_p).
3526 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3527 (find_default_run_target): Rewrite for loop following changes to
3528 target_structs.
3529
cb417230
JB
35302014-08-19 Joel Brobecker <brobecker@adacore.com>
3531
3532 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3533 Adjust code accordingly. Adjust function description comment.
3534
817e0957
YQ
35352014-08-19 Yao Qi <yao@codesourcery.com>
3536
3537 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3538 types.
3539
2974be62
AM
35402014-08-19 Alan Modra <amodra@gmail.com>
3541
3542 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3543 * config.in: Regenerate.
3544 * configure: Regenerate.
3545
34abf635
GB
35462014-08-19 Tom Tromey <tromey@redhat.com>
3547 Gary Benson <gbenson@redhat.com>
3548
3549 * common/common-debug.h: New file.
3550 * common/common-debug.c: Likewise.
3551 * debug.c: Likewise.
3552 * Makefile.in (SFILES): Add common/common-debug.c.
3553 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3554 (COMMON_OBS): Add common-debug.o and debug.o.
3555 (common-debug.o): New rule.
3556 * common/common-defs.h: Include common-debug.h.
3557 * common/agent.c (debug_agent_printf): New function.
3558 (DEBUG_AGENT): Redefine.
3559 * nat/i386-dregs.c (debug_printf): Undefine.
3560
f6e94d78
GB
35612014-08-19 Gary Benson <gbenson@redhat.com>
3562
3563 * common/common-defs.h: Include print-utils.h.
3564 * utils.h: Do not include print-utils.h.
3565
9239eeab
GB
35662014-08-19 Tom Tromey <tromey@redhat.com>
3567 Gary Benson <gbenson@redhat.com>
3568
3569 * common/common-types.h: New file.
3570 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3571 * common/common-defs.h: Include common-types.h.
3572 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3573 (ULONGEST): Remove.
3574
ef87c8bb
GB
35752014-08-19 Tom Tromey <tromey@redhat.com>
3576 Gary Benson <gbenson@redhat.com>
3577
3578 * common/errors.h: New file.
3579 * common/errors.c: Likewise.
3580 * Makefile.in (SFILES): Add common/errors.c.
3581 (HFILES_NO_SRCDIR): Add common/errors.h.
3582 (COMMON_OBS): Add errors.o.
3583 (errors.o): New rule.
3584 * common/common-defs.h: Include errors.h.
3585 * utils.h (perror_with_name, error, verror, warning, vwarning):
3586 Don't declare.
3587 * common/common-utils.h: (malloc_failure, internal_error):
3588 Likewise.
3589
196a707b
GB
35902014-08-19 Gary Benson <gbenson@redhat.com>
3591
3592 * utils.c (internal_vproblem): Always print the message.
3593
ded4fc8f
DE
35942014-08-18 Doug Evans <dje@google.com>
3595
3596 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3597
950c97d8
JB
35982014-08-18 Joel Brobecker <brobecker@adacore.com>
3599
3600 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3601 Return 0 if TYPE is dynamic.
3602 (print_range): Add handling of dynamic ranges.
3603
3cdcd0ce
JB
36042014-08-18 Keven Boell <keven.boell@intel.com>
3605 Joel Brobecker <brobecker@adacore.com>
3606
3607 * gdbtypes.h (struct main_type): Add field "data_location".
3608 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3609 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3610 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3611 a dynamic data location.
3612 (resolve_dynamic_type): Add DW_AT_data_location handling.
3613 (copy_recursive, copy_type): Copy the data_location information
3614 when present.
3615 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3616 * value.c (value_from_contents_and_address): Add
3617 DW_AT_data_location handling.
3618
08412b07
JB
36192014-08-18 Keven Boell <keven.boell@intel.com>
3620 Joel Brobecker <brobecker@adacore.com>
3621
3622 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3623 field "get_object_address".
3624 * dwarf2expr.c (execute_stack_op): Add handling for
3625 DW_OP_push_object_address.
3626 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3627 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3628 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3629 (dwarf_expr_get_obj_addr): New function.
3630 (dwarf_expr_ctx_funcs): Add get_object_address field.
3631 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3632 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3633 (dwarf2_evaluate_property): Add parameter "address". Use it.
3634 (needs_get_obj_addr): New function.
3635 (needs_frame_ctx_funcs): Add get_object_address field.
3636 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3637 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3638 (resolve_dynamic_array): Likewise.
3639
84754697
JB
36402014-08-18 Joel Brobecker <brobecker@adacore.com>
3641
3642 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3643 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3644 fixed value for records and unions for which some GNAT encodings
3645 are present.
3646
da5c522f
JB
36472014-08-18 Joel Brobecker <brobecker@adacore.com>
3648
3649 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3650 rewrite to avoid "else if" and "else" constructs. Should be
3651 a no-op in practice.
3652
0d72a7c3
JB
36532014-08-18 Joel Brobecker <brobecker@adacore.com>
3654
3655 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3656 of lexical block.
3657
e66d4446
SC
36582014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3659
3660 PR c++/17132
3661 * eval.c: Update all calls to find_overload_match.
3662 * valarith.c: Likewise.
3663 (value_user_defined_cpp_op, value_user_defined_op): New
3664 argument NOSIDE. Update all callers.
3665 * valops.c (find_overload_match): New argument NOSIDE.
3666 * value.h (find_overload_match): Update signature.
3667
940df408
SC
36682014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3669
3670 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3671 'items' methods instead of 'iteritems' method on dictionaries.
3672
699ca60a
DE
36732014-08-15 Doug Evans <dje@google.com>
3674
3675 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3676 closer to use.
3677
37780ee5
DE
36782014-08-15 Doug Evans <dje@google.com>
3679
3680 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3681
0ad93d4f
DE
36822014-08-15 Doug Evans <dje@google.com>
3683
3684 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3685
20d8c372
DE
36862014-08-15 Doug Evans <dje@google.com>
3687
3688 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3689 unused.
3690
cb039ba4
EZ
36912014-08-15 Eli Zaretskii <eliz@gnu.org>
3692
3693 * dcache.h: Include target.h, to avoid compile time warnings.
3694
eb7a547a
JB
36952014-08-15 Joel Brobecker <brobecker@adacore.com>
3696
3697 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3698 frame_info" partial declaration.
3699 * gdbarch.h: Regenerate.
3700
783cecc8
YQ
37012014-08-15 Yao Qi <yao@codesourcery.com>
3702
3703 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3704 Add parameter 'decode_for_pst_p'. Callers update.
3705
65c749e7
YQ
37062014-08-13 Yao Qi <yao@codesourcery.com>
3707
3708 PR build/17104
3709 * configure.ac: Use local variable 'pos'.
3710 * configure: Regenerated.
3711
d769e349
DE
37122014-08-11 Doug Evans <dje@google.com>
3713
3714 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3715 message, it is redundant with "Reading symbols from ..." message.
3716
24f1235e
DE
37172014-08-10 Doug Evans <xdje42@gmail.com>
3718
3719 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3720
dcd2e6ef
YQ
37212014-08-09 Yao Qi <yao@codesourcery.com>
3722
3723 PR remote/9053
3724 * remote.c (remote_xfer_partial): Remove dead code.
3725
070bdf0b
AA
37262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3727
3728 * ia64-linux-tdep.c: Include "regset.h".
3729 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3730 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3731 (ia64_linux_supply_fpregset): New function.
3732 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3733 (ia64_linux_regset_from_core_section): New function.
3734 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3735 method.
3736
08f9f542
AA
37372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3738
3739 * m68klinux-tdep.c: Include "regset.h".
3740 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3741 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3742 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3743 (m68k_linux_regset_from_core_section): New function.
3744 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3745 method.
3746
8f1cee41
AA
37472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3748
3749 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3750 function. Move logic to...
3751 (tilegx_linux_regmap): ... this new register map.
3752 (tilegx_linux_regset): Refer to register map, replace supply
3753 method by regcache_supply_regset, and add collect method.
3754 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3755 TILEGX_FIRST_EASY_REGNUM.
3756
c5741217
AA
37572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3758
3759 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3760 that calls regcache_supply_regset and handles the EPC register
3761 separately. Move main logic to...
3762 (score7_linux_gregmap): ... this new register map.
3763 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3764 (score7_linux_gregset): Refer to register map. Add collect method.
3765 (score7_linux_regset_from_core_section): Replace
3766 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3767 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3768 (struct regset): Delete unused forward declaraction.
3769 (struct pt_regs): Delete structure definition.
3770 (elf_gregset_t): Delete typedef.
3771
81580573
AA
37722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3773
3774 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3775 (nios2_core_regset): Add collect method.
3776
ba199d7d
AA
37772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3778
3779 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3780 platform-independent and don't write to read-only input buffer.
3781 (m32r_linux_collect_gregset): New function.
3782 (m32r_linux_gregset): Add collect method.
3783
0006a9da
AA
37842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3785
3786 * hppa-linux-tdep.c (greg_map): Rename to...
3787 (hppa_linux_gregmap): ... this. Also convert to
3788 regcache_map_entry format.
3789 (hppa_linux_supply_regset): Delete function.
3790 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3791 (hppa_linux_fpregmap): ... this new register map.
3792 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3793 register map, replace supply method by regcache_supply_regset, and
3794 add collect method regcache_collect_regset.
3795
901e1b23
AA
37962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3797
3798 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3799 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3800 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3801 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3802 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3803 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3804 (frv_linux_supply_gregset): Replace main logic by call to
3805 regcache_supply_regset, but keep clearing gr32-gr63.
3806 (frv_linux_supply_fpregset): Delete function.
3807 (frv_linux_gregset): Refer to appropriate register map and add
3808 regcache_collect_regset as the collect method.
3809 (frv_linux_fpregset): Likewise. Also exchange the supply method
3810 by regcache_supply_regset.
3811
1d6e7555
AA
38122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3813
3814 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3815 by call to alpha_supply_int_regs.
3816 (alpha_linux_collect_gregset): New function.
3817 (alpha_linux_supply_fpregset): Replace logic by call to
3818 alpha_supply_fp_regs.
3819 (alpha_linux_collect_fpregset): New function.
3820 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3821
d4d793bf
AA
38222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3823
3824 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3825 by call to regcache_collect_regset.
3826 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3827 instead of aarch64_linux_supply_gregset/_fpregset.
3828 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3829 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3830 header file instead.
3831 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3832 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3833 functions. Move logic to ...
3834 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3835 register maps.
3836 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3837 refer to new register maps, replace *_regset_from_core by
3838 regcache_supply_regset, and also use regcache_collect_regset.
3839 * aarch64-linux-tdep.h: Include "regset.h".
3840 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3841 Delete prototypes.
3842 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3843 macros, moved from C source file.
3844 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3845 variable declarations.
3846
99b7da5d
AA
38472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3848
3849 * s390-linux-nat.c: Include "regset.h".
3850 (regmap_gregset): Delete macro.
3851 (s390_64_regmap_gregset): New register map for
3852 regcache_supply/_collect_regset.
3853 (s390_64_gregset): New regset.
3854 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3855 (regmap_fpregset): Delete macro.
3856 (s390_native_supply, s390_native_collect): Delete functions.
3857 (supply_gregset, fill_gregset): Replace s390-specific regmap
3858 handling by a call to regcache_supply/_collect_regset.
3859 (supply_fpregset, fill_fpregset): Call regcache_supply/
3860 _collect_regset instead of s390_native_supply/_collect.
3861 (fetch_regset, store_regset): Likewise. Also change the last
3862 parameter to a regset instead of a regmap.
3863 (s390_linux_fetch_inferior_registers)
3864 (390_linux_store_inferior_registers): Adjust last parameter in
3865 calls to fetch_regset and store_regset.
3866 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3867 (s390_gregmap): ... this. Also make static const and convert to
3868 regcache_map_entry format.
3869 (s390x_regmap_gregset): Delete.
3870 (s390_regmap_fpregset): Rename to...
3871 (s390_fpregmap): ... this. Make static const and convert to
3872 regcache_map_entry format.
3873 (s390_regmap_upper, s390_regmap_last_break)
3874 (s390x_regmap_last_break, s390_regmap_system_call)
3875 (s390_regmap_tdb): Likewise.
3876 (s390_supply_regset, s390_collect_regset): Remove functions.
3877 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3878 s390_supply_regset.
3879 (s390_gregset, s390_fpregset, s390_upper_regset)
3880 (s390_last_break_regset, s390x_last_break_regset)
3881 (s390_system_call_regset, s390_tdb_regset): Make global and
3882 replace s390_supply/_collect_regset by regcache_supply/
3883 _collect_regset.
3884 (s390x_gregset): Delete.
3885 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3886 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3887 (s390_regmap_fpregset, s390_regmap_last_break)
3888 (s390x_regmap_last_break, s390_regmap_system_call)
3889 (s390_regmap_tdb): Delete global variable declarations.
3890 (s390_gregset, s390_fpregset, s390_last_break_regset)
3891 (s390x_last_break_regset, s390_system_call_regset)
3892 (s390_tdb_regset): New global variable declarations.
3893
0b309272
AA
38942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3895
3896 * regcache.c: Include "regset.h".
3897 (regcache_transfer_regset): New local function.
3898 (regcache_supply_regset, regcache_collect_regset): New functions.
3899 * regcache.h (struct regcache_map_entry): New structure.
3900 (REGCACHE_MAP_SKIP): New enum value.
3901 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3902
7fefa8d7
AA
39032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3904
3905 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3906 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3907 (ppc_linux_collect_gregset ): Likewise.
3908 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3909 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3910 (ppc_collect_vrregset): Likewise.
3911 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3912 Likewise.
3913
96c4f946
YQ
39142014-08-07 Yao Qi <yao@codesourcery.com>
3915
3916 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3917 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3918 * remote.c (remote_read_bytes): Likewise.
3919
fffbe6a8
YQ
39202014-08-07 Yao Qi <yao@codesourcery.com>
3921
3922 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3923
5ee8a82c
YQ
39242014-08-07 Yao Qi <yao@codesourcery.com>
3925
3926 PR remote/17230
3927 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3928 TARGET_XFER_OK instead of 0.
3929
bb974a24
GB
39302014-08-07 Gary Benson <gbenson@redhat.com>
3931
3932 * common/common-defs.h: Include errno.h.
3933 * defs.h: Do not include errno.h.
3934 * ada-typeprint.c: Likewise.
3935 * c-typeprint.c: Likewise.
3936 * core-regset.c: Likewise.
3937 * corefile.c: Likewise.
3938 * corelow.c: Likewise.
3939 * event-loop.c: Likewise.
3940 * f-typeprint.c: Likewise.
3941 * gnu-nat.c: Likewise.
3942 * go32-nat.c: Likewise.
3943 * i386gnu-nat.c: Likewise.
3944 * m2-typeprint.c: Likewise.
3945 * nat/linux-btrace.c: Likewise.
3946 * p-typeprint.c: Likewise.
3947 * procfs.c: Likewise.
3948 * remote-sim.c: Likewise.
3949 * rs6000-nat.c: Likewise.
3950 * target.c: Likewise.
3951 * typeprint.c: Likewise.
3952 * ui-file.c: Likewise.
3953 * valops.c: Likewise.
3954 * valprint.c: Likewise.
3955
6d3d12eb
GB
39562014-08-07 Gary Benson <gbenson@redhat.com>
3957
3958 * common/common-defs.h: Include string.h.
3959 * aarch64-tdep.c: Do not include string.h.
3960 * ada-exp.y: Likewise.
3961 * ada-lang.c: Likewise.
3962 * ada-lex.l: Likewise.
3963 * ada-typeprint.c: Likewise.
3964 * ada-valprint.c: Likewise.
3965 * aix-thread.c: Likewise.
3966 * alpha-linux-tdep.c: Likewise.
3967 * alpha-mdebug-tdep.c: Likewise.
3968 * alpha-nat.c: Likewise.
3969 * alpha-osf1-tdep.c: Likewise.
3970 * alpha-tdep.c: Likewise.
3971 * alphanbsd-tdep.c: Likewise.
3972 * amd64-dicos-tdep.c: Likewise.
3973 * amd64-linux-tdep.c: Likewise.
3974 * amd64-nat.c: Likewise.
3975 * amd64-sol2-tdep.c: Likewise.
3976 * amd64fbsd-tdep.c: Likewise.
3977 * amd64obsd-tdep.c: Likewise.
3978 * arch-utils.c: Likewise.
3979 * arm-linux-nat.c: Likewise.
3980 * arm-linux-tdep.c: Likewise.
3981 * arm-tdep.c: Likewise.
3982 * arm-wince-tdep.c: Likewise.
3983 * armbsd-tdep.c: Likewise.
3984 * armnbsd-nat.c: Likewise.
3985 * armnbsd-tdep.c: Likewise.
3986 * armobsd-tdep.c: Likewise.
3987 * avr-tdep.c: Likewise.
3988 * ax-gdb.c: Likewise.
3989 * ax-general.c: Likewise.
3990 * bcache.c: Likewise.
3991 * bfin-tdep.c: Likewise.
3992 * breakpoint.c: Likewise.
3993 * build-id.c: Likewise.
3994 * buildsym.c: Likewise.
3995 * c-exp.y: Likewise.
3996 * c-lang.c: Likewise.
3997 * c-typeprint.c: Likewise.
3998 * c-valprint.c: Likewise.
3999 * charset.c: Likewise.
4000 * cli-out.c: Likewise.
4001 * cli/cli-cmds.c: Likewise.
4002 * cli/cli-decode.c: Likewise.
4003 * cli/cli-dump.c: Likewise.
4004 * cli/cli-interp.c: Likewise.
4005 * cli/cli-logging.c: Likewise.
4006 * cli/cli-script.c: Likewise.
4007 * cli/cli-setshow.c: Likewise.
4008 * cli/cli-utils.c: Likewise.
4009 * coffread.c: Likewise.
4010 * common/agent.c: Likewise.
4011 * common/buffer.c: Likewise.
4012 * common/buffer.h: Likewise.
4013 * common/common-utils.c: Likewise.
4014 * common/filestuff.c: Likewise.
4015 * common/filestuff.c: Likewise.
4016 * common/format.c: Likewise.
4017 * common/print-utils.c: Likewise.
4018 * common/rsp-low.c: Likewise.
4019 * common/signals.c: Likewise.
4020 * common/vec.h: Likewise.
4021 * common/xml-utils.c: Likewise.
4022 * core-regset.c: Likewise.
4023 * corefile.c: Likewise.
4024 * corelow.c: Likewise.
4025 * cp-abi.c: Likewise.
4026 * cp-name-parser.y: Likewise.
4027 * cp-support.c: Likewise.
4028 * cp-valprint.c: Likewise.
4029 * cris-tdep.c: Likewise.
4030 * d-exp.y: Likewise.
4031 * darwin-nat.c: Likewise.
4032 * dbxread.c: Likewise.
4033 * dcache.c: Likewise.
4034 * demangle.c: Likewise.
4035 * dicos-tdep.c: Likewise.
4036 * disasm.c: Likewise.
4037 * doublest.c: Likewise.
4038 * dsrec.c: Likewise.
4039 * dummy-frame.c: Likewise.
4040 * dwarf2-frame.c: Likewise.
4041 * dwarf2loc.c: Likewise.
4042 * dwarf2read.c: Likewise.
4043 * elfread.c: Likewise.
4044 * environ.c: Likewise.
4045 * eval.c: Likewise.
4046 * event-loop.c: Likewise.
4047 * exceptions.c: Likewise.
4048 * exec.c: Likewise.
4049 * expprint.c: Likewise.
4050 * f-exp.y: Likewise.
4051 * f-lang.c: Likewise.
4052 * f-typeprint.c: Likewise.
4053 * f-valprint.c: Likewise.
4054 * fbsd-nat.c: Likewise.
4055 * findcmd.c: Likewise.
4056 * findvar.c: Likewise.
4057 * fork-child.c: Likewise.
4058 * frame.c: Likewise.
4059 * frv-linux-tdep.c: Likewise.
4060 * frv-tdep.c: Likewise.
4061 * gdb.c: Likewise.
4062 * gdb_bfd.c: Likewise.
4063 * gdbarch.c: Likewise.
4064 * gdbarch.sh: Likewise.
4065 * gdbtypes.c: Likewise.
4066 * gnu-nat.c: Likewise.
4067 * gnu-v2-abi.c: Likewise.
4068 * gnu-v3-abi.c: Likewise.
4069 * go-exp.y: Likewise.
4070 * go-lang.c: Likewise.
4071 * go32-nat.c: Likewise.
4072 * guile/guile.c: Likewise.
4073 * guile/scm-auto-load.c: Likewise.
4074 * hppa-hpux-tdep.c: Likewise.
4075 * hppa-linux-nat.c: Likewise.
4076 * hppanbsd-tdep.c: Likewise.
4077 * hppaobsd-tdep.c: Likewise.
4078 * i386-cygwin-tdep.c: Likewise.
4079 * i386-dicos-tdep.c: Likewise.
4080 * i386-linux-tdep.c: Likewise.
4081 * i386-nto-tdep.c: Likewise.
4082 * i386-sol2-tdep.c: Likewise.
4083 * i386-tdep.c: Likewise.
4084 * i386bsd-tdep.c: Likewise.
4085 * i386gnu-nat.c: Likewise.
4086 * i386nbsd-tdep.c: Likewise.
4087 * i386obsd-tdep.c: Likewise.
4088 * i387-tdep.c: Likewise.
4089 * ia64-libunwind-tdep.c: Likewise.
4090 * ia64-linux-nat.c: Likewise.
4091 * inf-child.c: Likewise.
4092 * inf-ptrace.c: Likewise.
4093 * inf-ttrace.c: Likewise.
4094 * infcall.c: Likewise.
4095 * infcmd.c: Likewise.
4096 * inflow.c: Likewise.
4097 * infrun.c: Likewise.
4098 * interps.c: Likewise.
4099 * iq2000-tdep.c: Likewise.
4100 * irix5-nat.c: Likewise.
4101 * jv-exp.y: Likewise.
4102 * jv-lang.c: Likewise.
4103 * jv-typeprint.c: Likewise.
4104 * jv-valprint.c: Likewise.
4105 * language.c: Likewise.
4106 * linux-fork.c: Likewise.
4107 * linux-nat.c: Likewise.
4108 * lm32-tdep.c: Likewise.
4109 * m2-exp.y: Likewise.
4110 * m2-typeprint.c: Likewise.
4111 * m32c-tdep.c: Likewise.
4112 * m32r-linux-nat.c: Likewise.
4113 * m32r-linux-tdep.c: Likewise.
4114 * m32r-rom.c: Likewise.
4115 * m32r-tdep.c: Likewise.
4116 * m68hc11-tdep.c: Likewise.
4117 * m68k-tdep.c: Likewise.
4118 * m68kbsd-tdep.c: Likewise.
4119 * m68klinux-nat.c: Likewise.
4120 * m68klinux-tdep.c: Likewise.
4121 * m88k-tdep.c: Likewise.
4122 * machoread.c: Likewise.
4123 * macrocmd.c: Likewise.
4124 * main.c: Likewise.
4125 * mdebugread.c: Likewise.
4126 * mem-break.c: Likewise.
4127 * memattr.c: Likewise.
4128 * memory-map.c: Likewise.
4129 * mep-tdep.c: Likewise.
4130 * mi/mi-cmd-break.c: Likewise.
4131 * mi/mi-cmd-disas.c: Likewise.
4132 * mi/mi-cmd-env.c: Likewise.
4133 * mi/mi-cmd-stack.c: Likewise.
4134 * mi/mi-cmd-var.c: Likewise.
4135 * mi/mi-cmds.c: Likewise.
4136 * mi/mi-console.c: Likewise.
4137 * mi/mi-getopt.c: Likewise.
4138 * mi/mi-interp.c: Likewise.
4139 * mi/mi-main.c: Likewise.
4140 * mi/mi-parse.c: Likewise.
4141 * microblaze-rom.c: Likewise.
4142 * microblaze-tdep.c: Likewise.
4143 * mingw-hdep.c: Likewise.
4144 * minidebug.c: Likewise.
4145 * minsyms.c: Likewise.
4146 * mips-irix-tdep.c: Likewise.
4147 * mips-linux-tdep.c: Likewise.
4148 * mips-tdep.c: Likewise.
4149 * mips64obsd-tdep.c: Likewise.
4150 * mipsnbsd-tdep.c: Likewise.
4151 * mipsread.c: Likewise.
4152 * mn10300-linux-tdep.c: Likewise.
4153 * mn10300-tdep.c: Likewise.
4154 * monitor.c: Likewise.
4155 * moxie-tdep.c: Likewise.
4156 * mt-tdep.c: Likewise.
4157 * nat/linux-btrace.c: Likewise.
4158 * nat/linux-osdata.c: Likewise.
4159 * nat/linux-procfs.c: Likewise.
4160 * nat/linux-ptrace.c: Likewise.
4161 * nat/linux-waitpid.c: Likewise.
4162 * nbsd-tdep.c: Likewise.
4163 * nios2-linux-tdep.c: Likewise.
4164 * nto-procfs.c: Likewise.
4165 * nto-tdep.c: Likewise.
4166 * objc-lang.c: Likewise.
4167 * objfiles.c: Likewise.
4168 * opencl-lang.c: Likewise.
4169 * osabi.c: Likewise.
4170 * osdata.c: Likewise.
4171 * p-exp.y: Likewise.
4172 * p-lang.c: Likewise.
4173 * p-typeprint.c: Likewise.
4174 * parse.c: Likewise.
4175 * posix-hdep.c: Likewise.
4176 * ppc-linux-nat.c: Likewise.
4177 * ppc-sysv-tdep.c: Likewise.
4178 * ppcfbsd-tdep.c: Likewise.
4179 * ppcnbsd-tdep.c: Likewise.
4180 * ppcobsd-tdep.c: Likewise.
4181 * printcmd.c: Likewise.
4182 * procfs.c: Likewise.
4183 * prologue-value.c: Likewise.
4184 * python/py-auto-load.c: Likewise.
4185 * python/py-gdb-readline.c: Likewise.
4186 * ravenscar-thread.c: Likewise.
4187 * regcache.c: Likewise.
4188 * registry.c: Likewise.
4189 * remote-fileio.c: Likewise.
4190 * remote-m32r-sdi.c: Likewise.
4191 * remote-mips.c: Likewise.
4192 * remote-notif.c: Likewise.
4193 * remote-sim.c: Likewise.
4194 * remote.c: Likewise.
4195 * reverse.c: Likewise.
4196 * rs6000-aix-tdep.c: Likewise.
4197 * ser-base.c: Likewise.
4198 * ser-go32.c: Likewise.
4199 * ser-mingw.c: Likewise.
4200 * ser-pipe.c: Likewise.
4201 * ser-tcp.c: Likewise.
4202 * ser-unix.c: Likewise.
4203 * serial.c: Likewise.
4204 * sh-tdep.c: Likewise.
4205 * sh64-tdep.c: Likewise.
4206 * shnbsd-tdep.c: Likewise.
4207 * skip.c: Likewise.
4208 * sol-thread.c: Likewise.
4209 * solib-dsbt.c: Likewise.
4210 * solib-frv.c: Likewise.
4211 * solib-osf.c: Likewise.
4212 * solib-som.c: Likewise.
4213 * solib-spu.c: Likewise.
4214 * solib-target.c: Likewise.
4215 * solib.c: Likewise.
4216 * somread.c: Likewise.
4217 * source.c: Likewise.
4218 * sparc-nat.c: Likewise.
4219 * sparc-sol2-tdep.c: Likewise.
4220 * sparc-tdep.c: Likewise.
4221 * sparc64-tdep.c: Likewise.
4222 * sparc64fbsd-tdep.c: Likewise.
4223 * sparc64nbsd-tdep.c: Likewise.
4224 * sparcnbsd-tdep.c: Likewise.
4225 * spu-linux-nat.c: Likewise.
4226 * spu-multiarch.c: Likewise.
4227 * spu-tdep.c: Likewise.
4228 * stabsread.c: Likewise.
4229 * stack.c: Likewise.
4230 * std-regs.c: Likewise.
4231 * symfile.c: Likewise.
4232 * symmisc.c: Likewise.
4233 * symtab.c: Likewise.
4234 * target.c: Likewise.
4235 * thread.c: Likewise.
4236 * tilegx-linux-nat.c: Likewise.
4237 * tilegx-tdep.c: Likewise.
4238 * top.c: Likewise.
4239 * tracepoint.c: Likewise.
4240 * tui/tui-command.c: Likewise.
4241 * tui/tui-data.c: Likewise.
4242 * tui/tui-disasm.c: Likewise.
4243 * tui/tui-file.c: Likewise.
4244 * tui/tui-layout.c: Likewise.
4245 * tui/tui-out.c: Likewise.
4246 * tui/tui-regs.c: Likewise.
4247 * tui/tui-source.c: Likewise.
4248 * tui/tui-stack.c: Likewise.
4249 * tui/tui-win.c: Likewise.
4250 * tui/tui-windata.c: Likewise.
4251 * tui/tui-winsource.c: Likewise.
4252 * typeprint.c: Likewise.
4253 * ui-file.c: Likewise.
4254 * ui-out.c: Likewise.
4255 * user-regs.c: Likewise.
4256 * utils.c: Likewise.
4257 * v850-tdep.c: Likewise.
4258 * valarith.c: Likewise.
4259 * valops.c: Likewise.
4260 * valprint.c: Likewise.
4261 * value.c: Likewise.
4262 * varobj.c: Likewise.
4263 * vax-tdep.c: Likewise.
4264 * vaxnbsd-tdep.c: Likewise.
4265 * vaxobsd-tdep.c: Likewise.
4266 * windows-nat.c: Likewise.
4267 * xcoffread.c: Likewise.
4268 * xml-support.c: Likewise.
4269 * xstormy16-tdep.c: Likewise.
4270 * xtensa-linux-nat.c: Likewise.
4271
dccbb609
GB
42722014-08-07 Gary Benson <gbenson@redhat.com>
4273
4274 * common/common-defs.h: Include gdb_assert.h.
4275 * aarch64-tdep.c: Do not include gdb_assert.h.
4276 * addrmap.c: Likewise.
4277 * aix-thread.c: Likewise.
4278 * alpha-linux-tdep.c: Likewise.
4279 * alpha-mdebug-tdep.c: Likewise.
4280 * alphanbsd-tdep.c: Likewise.
4281 * amd64-nat.c: Likewise.
4282 * amd64-tdep.c: Likewise.
4283 * amd64bsd-nat.c: Likewise.
4284 * amd64fbsd-nat.c: Likewise.
4285 * amd64fbsd-tdep.c: Likewise.
4286 * amd64nbsd-nat.c: Likewise.
4287 * amd64nbsd-tdep.c: Likewise.
4288 * amd64obsd-nat.c: Likewise.
4289 * amd64obsd-tdep.c: Likewise.
4290 * arch-utils.c: Likewise.
4291 * arm-tdep.c: Likewise.
4292 * armbsd-tdep.c: Likewise.
4293 * auxv.c: Likewise.
4294 * bcache.c: Likewise.
4295 * bfin-tdep.c: Likewise.
4296 * blockframe.c: Likewise.
4297 * breakpoint.c: Likewise.
4298 * bsd-kvm.c: Likewise.
4299 * bsd-uthread.c: Likewise.
4300 * buildsym.c: Likewise.
4301 * c-exp.y: Likewise.
4302 * c-lang.c: Likewise.
4303 * charset.c: Likewise.
4304 * cleanups.c: Likewise.
4305 * cli-out.c: Likewise.
4306 * cli/cli-decode.c: Likewise.
4307 * cli/cli-dump.c: Likewise.
4308 * cli/cli-logging.c: Likewise.
4309 * cli/cli-script.c: Likewise.
4310 * cli/cli-utils.c: Likewise.
4311 * coffread.c: Likewise.
4312 * common/common-utils.c: Likewise.
4313 * common/queue.h: Likewise.
4314 * common/signals.c: Likewise.
4315 * common/vec.h: Likewise.
4316 * complaints.c: Likewise.
4317 * completer.c: Likewise.
4318 * corelow.c: Likewise.
4319 * cp-abi.c: Likewise.
4320 * cp-name-parser.y: Likewise.
4321 * cp-namespace.c: Likewise.
4322 * cp-support.c: Likewise.
4323 * cris-tdep.c: Likewise.
4324 * dbxread.c: Likewise.
4325 * dictionary.c: Likewise.
4326 * doublest.c: Likewise.
4327 * dsrec.c: Likewise.
4328 * dummy-frame.c: Likewise.
4329 * dwarf2-frame-tailcall.c: Likewise.
4330 * dwarf2-frame.c: Likewise.
4331 * dwarf2expr.c: Likewise.
4332 * dwarf2loc.c: Likewise.
4333 * dwarf2read.c: Likewise.
4334 * eval.c: Likewise.
4335 * event-loop.c: Likewise.
4336 * exceptions.c: Likewise.
4337 * expprint.c: Likewise.
4338 * f-valprint.c: Likewise.
4339 * fbsd-nat.c: Likewise.
4340 * findvar.c: Likewise.
4341 * frame-unwind.c: Likewise.
4342 * frame.c: Likewise.
4343 * frv-tdep.c: Likewise.
4344 * gcore.c: Likewise.
4345 * gdb-dlfcn.c: Likewise.
4346 * gdb_bfd.c: Likewise.
4347 * gdbarch.c: Likewise.
4348 * gdbarch.sh: Likewise.
4349 * gdbtypes.c: Likewise.
4350 * gnu-nat.c: Likewise.
4351 * gnu-v3-abi.c: Likewise.
4352 * go-lang.c: Likewise.
4353 * guile/scm-exception.c: Likewise.
4354 * guile/scm-gsmob.c: Likewise.
4355 * guile/scm-lazy-string.c: Likewise.
4356 * guile/scm-math.c: Likewise.
4357 * guile/scm-pretty-print.c: Likewise.
4358 * guile/scm-safe-call.c: Likewise.
4359 * guile/scm-utils.c: Likewise.
4360 * guile/scm-value.c: Likewise.
4361 * h8300-tdep.c: Likewise.
4362 * hppa-hpux-nat.c: Likewise.
4363 * hppa-tdep.c: Likewise.
4364 * hppanbsd-tdep.c: Likewise.
4365 * hppaobsd-tdep.c: Likewise.
4366 * i386-darwin-nat.c: Likewise.
4367 * i386-darwin-tdep.c: Likewise.
4368 * i386-nto-tdep.c: Likewise.
4369 * i386-tdep.c: Likewise.
4370 * i386bsd-nat.c: Likewise.
4371 * i386fbsd-tdep.c: Likewise.
4372 * i386gnu-nat.c: Likewise.
4373 * i386nbsd-tdep.c: Likewise.
4374 * i386obsd-tdep.c: Likewise.
4375 * i387-tdep.c: Likewise.
4376 * ia64-libunwind-tdep.c: Likewise.
4377 * ia64-tdep.c: Likewise.
4378 * inf-ptrace.c: Likewise.
4379 * inf-ttrace.c: Likewise.
4380 * infcall.c: Likewise.
4381 * infcmd.c: Likewise.
4382 * infrun.c: Likewise.
4383 * inline-frame.c: Likewise.
4384 * interps.c: Likewise.
4385 * jv-lang.c: Likewise.
4386 * jv-typeprint.c: Likewise.
4387 * linux-fork.c: Likewise.
4388 * linux-nat.c: Likewise.
4389 * linux-thread-db.c: Likewise.
4390 * m32c-tdep.c: Likewise.
4391 * m32r-linux-nat.c: Likewise.
4392 * m32r-tdep.c: Likewise.
4393 * m68k-tdep.c: Likewise.
4394 * m68kbsd-nat.c: Likewise.
4395 * m68kbsd-tdep.c: Likewise.
4396 * m88k-tdep.c: Likewise.
4397 * machoread.c: Likewise.
4398 * macroexp.c: Likewise.
4399 * macrotab.c: Likewise.
4400 * maint.c: Likewise.
4401 * mdebugread.c: Likewise.
4402 * memory-map.c: Likewise.
4403 * mep-tdep.c: Likewise.
4404 * mi/mi-common.c: Likewise.
4405 * microblaze-tdep.c: Likewise.
4406 * mingw-hdep.c: Likewise.
4407 * mips-linux-nat.c: Likewise.
4408 * mips-linux-tdep.c: Likewise.
4409 * mips-tdep.c: Likewise.
4410 * mips64obsd-tdep.c: Likewise.
4411 * mipsnbsd-tdep.c: Likewise.
4412 * mn10300-linux-tdep.c: Likewise.
4413 * mn10300-tdep.c: Likewise.
4414 * moxie-tdep.c: Likewise.
4415 * mt-tdep.c: Likewise.
4416 * nat/linux-btrace.c: Likewise.
4417 * nat/linux-osdata.c: Likewise.
4418 * nat/linux-ptrace.c: Likewise.
4419 * nat/mips-linux-watch.c: Likewise.
4420 * nios2-linux-tdep.c: Likewise.
4421 * nios2-tdep.c: Likewise.
4422 * objc-lang.c: Likewise.
4423 * objfiles.c: Likewise.
4424 * obsd-nat.c: Likewise.
4425 * opencl-lang.c: Likewise.
4426 * osabi.c: Likewise.
4427 * parse.c: Likewise.
4428 * ppc-linux-nat.c: Likewise.
4429 * ppc-sysv-tdep.c: Likewise.
4430 * ppcfbsd-nat.c: Likewise.
4431 * ppcfbsd-tdep.c: Likewise.
4432 * ppcnbsd-nat.c: Likewise.
4433 * ppcnbsd-tdep.c: Likewise.
4434 * ppcobsd-nat.c: Likewise.
4435 * ppcobsd-tdep.c: Likewise.
4436 * printcmd.c: Likewise.
4437 * procfs.c: Likewise.
4438 * prologue-value.c: Likewise.
4439 * psymtab.c: Likewise.
4440 * python/py-lazy-string.c: Likewise.
4441 * python/py-value.c: Likewise.
4442 * regcache.c: Likewise.
4443 * reggroups.c: Likewise.
4444 * registry.c: Likewise.
4445 * remote-sim.c: Likewise.
4446 * remote.c: Likewise.
4447 * rs6000-aix-tdep.c: Likewise.
4448 * rs6000-tdep.c: Likewise.
4449 * s390-linux-tdep.c: Likewise.
4450 * score-tdep.c: Likewise.
4451 * ser-base.c: Likewise.
4452 * ser-mingw.c: Likewise.
4453 * sh-tdep.c: Likewise.
4454 * sh64-tdep.c: Likewise.
4455 * solib-darwin.c: Likewise.
4456 * solib-spu.c: Likewise.
4457 * solib-svr4.c: Likewise.
4458 * source.c: Likewise.
4459 * sparc-nat.c: Likewise.
4460 * sparc-sol2-tdep.c: Likewise.
4461 * sparc-tdep.c: Likewise.
4462 * sparc64-sol2-tdep.c: Likewise.
4463 * sparc64-tdep.c: Likewise.
4464 * sparc64fbsd-tdep.c: Likewise.
4465 * sparc64nbsd-tdep.c: Likewise.
4466 * sparc64obsd-tdep.c: Likewise.
4467 * sparcnbsd-tdep.c: Likewise.
4468 * sparcobsd-tdep.c: Likewise.
4469 * spu-multiarch.c: Likewise.
4470 * spu-tdep.c: Likewise.
4471 * stabsread.c: Likewise.
4472 * stack.c: Likewise.
4473 * symfile.c: Likewise.
4474 * symtab.c: Likewise.
4475 * target-descriptions.c: Likewise.
4476 * target-memory.c: Likewise.
4477 * target.c: Likewise.
4478 * tic6x-linux-tdep.c: Likewise.
4479 * tic6x-tdep.c: Likewise.
4480 * tilegx-linux-nat.c: Likewise.
4481 * tilegx-tdep.c: Likewise.
4482 * top.c: Likewise.
4483 * tramp-frame.c: Likewise.
4484 * tui/tui-out.c: Likewise.
4485 * tui/tui-winsource.c: Likewise.
4486 * ui-out.c: Likewise.
4487 * user-regs.c: Likewise.
4488 * utils.c: Likewise.
4489 * v850-tdep.c: Likewise.
4490 * valops.c: Likewise.
4491 * value.c: Likewise.
4492 * varobj.c: Likewise.
4493 * vax-nat.c: Likewise.
4494 * xml-syscall.c: Likewise.
4495 * xml-tdesc.c: Likewise.
4496 * xstormy16-tdep.c: Likewise.
4497 * xtensa-linux-nat.c: Likewise.
4498 * xtensa-tdep.c: Likewise.
4499
e76df0d0
GB
45002014-08-07 Gary Benson <gbenson@redhat.com>
4501
4502 * common/common-defs.h: Include common-utils.h.
4503 * defs.h: Do not include common-utils.h.
4504 * common/gdb_assert.h: Likewise.
4505 * darwin-nat.h: Likewise.
4506 * nat/linux-btrace.c: Likewise.
4507 * target/waitstatus.h: Likewise.
4508
4cb9c816
GB
45092014-08-07 Gary Benson <gbenson@redhat.com>
4510
4511 * common/common-defs.h: Include ptid.h.
4512 * defs.h: Do not include ptid.h.
4513 * inferior.h: Likewise.
4514 * infrun.h: Likewise.
4515 * nat/linux-btrace.h: Likewise.
4516 * nat/linux-osdata.h: Likewise.
4517 * target/waitstatus.h: Likewise.
4518
3995eeee
GB
45192014-08-07 Gary Benson <gbenson@redhat.com>
4520
4521 * common/common-defs.h: Include gdb_locale.h.
4522 * defs.h: Do not include gdb_locale.h.
4523
cb9f1a9b
GB
45242014-08-07 Gary Benson <gbenson@redhat.com>
4525
4526 * common/common-defs.h: Include gdb/signals.h.
4527 * defs.h: Do not include gdb/signals.h.
4528
a5fceff8
GB
45292014-08-07 Gary Benson <gbenson@redhat.com>
4530
4531 * common/common-defs.h: Include pathmax.h.
4532 * defs.h: Do not include pathmax.h.
4533
b9391142
GB
45342014-08-07 Gary Benson <gbenson@redhat.com>
4535
4536 * common/common-defs.h: Include libiberty.h.
4537 * defs.h: Do not include libiberty.h.
4538 * common/queue.h: Likewise.
4539 * cp-name-parser.y: Likewise.
4540 * mi/mi-cmd-catch.c: Likewise.
4541 * python/python.c: Likewise.
4542
0e443c87
GB
45432014-08-07 Gary Benson <gbenson@redhat.com>
4544
4545 * common/common-defs.h: Include ansidecl.h.
4546 * defs.h: Do not include ansidecl.h.
4547 * common/buffer.h: Likewise.
4548 * common/common-utils.h: Likewise.
4549
8ebb3f56
GB
45502014-08-07 Gary Benson <gbenson@redhat.com>
4551
4552 * common/common-defs.h: Include stddef.h.
4553 * defs.h: Do not include stddef.h.
4554 * common/common-utils.h: Likewise.
4555 * amd64fbsd-nat.c: Likewise.
4556 * bcache.c: Likewise.
4557 * charset.c: Likewise.
4558 * common/buffer.h: Likewise.
4559 * common/vec.h: Likewise.
4560 * i386bsd-nat.c: Likewise.
4561 * nat/linux-btrace.h: Likewise.
4562 * ppcfbsd-nat.c: Likewise.
4563 * ppcnbsd-tdep.h: Likewise.
4564 * ppcobsd-nat.c: Likewise.
4565 * ppcobsd-tdep.h: Likewise.
4566 * python/py-gdb-readline.c: Likewise.
4567
8980bdf6
GB
45682014-08-07 Gary Benson <gbenson@redhat.com>
4569
4570 * common/common-defs.h: Include stdarg.h.
4571 * defs.h: Do not include stdarg.h.
4572 * ada-lang.c: Likewise.
4573 * common/common-utils.h: Likewise.
4574 * guile/scm-string.c: Likewise.
4575 * guile/scm-utils.c: Likewise.
4576 * m32c-tdep.c: Likewise.
4577
d7096f71
GB
45782014-08-07 Gary Benson <gbenson@redhat.com>
4579
4580 * common/common-defs.h: Include stdlib.h.
4581 * defs.h: Do not include stdlib.h.
4582 * addrmap.c: Likewise.
4583 * bcache.c: Likewise.
4584 * common/buffer.c: Likewise.
4585 * common/common-utils.c: Likewise.
4586 * cp-name-parser.y: Likewise.
4587 * go32-nat.c: Likewise.
4588 * mn10300-linux-tdep.c: Likewise.
4589 * nat/linux-osdata.c: Likewise.
4590 * tui/tui.c: Likewise.
4591 * windows-nat.c: Likewise.
4592
d02f550d
GB
45932014-08-07 Gary Benson <gbenson@redhat.com>
4594
4595 * common/common-defs.h: Include stdio.h.
4596 * defs.h: Do not include stdio.h.
4597 * ada-lang.c: Likewise.
4598 * common/buffer.c: Likewise.
4599 * common/common-utils.c: Likewise.
4600 * cp-name-parser.y: Likewise.
4601 * gnu-nat.c: Likewise.
4602 * go32-nat.c: Likewise.
4603 * i386gnu-nat.c: Likewise.
4604 * proc-api.c: Likewise.
4605 * proc-events.c: Likewise.
4606 * proc-flags.c: Likewise.
4607 * proc-why.c: Likewise.
4608 * python/python-internal.h: Likewise.
4609 * target-memory.c: Likewise.
4610 * tui/tui-io.c: Likewise.
4611 * tui/tui.c: Likewise.
4612
b6d7a4bf
SM
46132014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4614
4615 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4616 (scan_dyntag_auxv): Same.
4617
af19829b
YQ
46182014-08-06 Yao Qi <yao@codesourcery.com>
4619
4620 * amd64-linux-nat.c: Remove duplicated include
4621 "x86-linux-nat.h".
4622 * i386-linux-nat.c: Likewise.
4623
8e07a239
YQ
46242014-08-06 Yao Qi <yao@codesourcery.com>
4625
4626 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4627 operand" with "Special opcode" in comments.
4628
7bfe8241
GB
46292014-08-05 Gary Benson <gbenson@redhat.com>
4630
4631 * interps.c (initialize_interps): Remove prototype.
4632 (interpreter_initialized): Remove static global.
4633 (interp_add): Do not call initialize_interps.
4634 (initialize_interps): Remove function.
4635
d6c95504
GB
46362014-08-05 Gary Benson <gbenson@redhat.com>
4637
4638 * utils.c (vwarning): Remove spurious va_end.
4639
241fd515
AM
46402014-08-05 Alan Modra <amodra@gmail.com>
4641
4642 * charset.c (convert_between_encodings): Cast result of obstack_base.
4643 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4644 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4645 (read_unwind_info): Use size_t for some locals.
4646 * jit.c (finalize_symtab): Likewise.
4647 * utils.c (hashtab_obstack_allocate): Likewise.
4648 * symmisc.c (print_objfile_statistics): Update format strings.
4649
dc304a94
JK
46502014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4651
4652 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4653 (Changes in GDB 7.8): ... here.
4654
3cecbbbe
TT
46552014-08-04 Tom Tromey <tromey@redhat.com>
4656
4657 * target.c (set_targetdebug): New function.
4658 (initialize_targets): Pass set_targetdebug when creating "set
4659 debug target".
4660
6908c509
JB
46612014-08-01 Joel Brobecker <brobecker@adacore.com>
4662
4663 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4664 if detecting a variable-sized field that is not the last field.
4665 Fix struct type length computation.
4666
53e8f97d
JB
46672014-08-01 Joel Brobecker <brobecker@adacore.com>
4668
4669 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4670 Add debug trace.
4671
e068c55d
JB
46722014-08-01 Joel Brobecker <brobecker@adacore.com>
4673
4674 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4675 Remove "+ 8" offset in computation of CHAIN_VMA.
4676
4d4ca2a1
DE
46772014-07-31 Doug Evans <dje@google.com>
4678
4679 * inflow.c (child_terminal_inferior): Add comment.
4680 (child_terminal_ours_for_output): Add comment.
4681 (child_terminal_ours): Add comment.
4682 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4683 (linux_nat_terminal_ours): Add comment.
4684
462f517e
GB
46852014-07-31 Gary Benson <gbenson@redhat.com>
4686
4687 * common/btrace-common.h: Do not include defs.h or server.h.
4688 * nat/mips-linux-watch.h: Likewise.
4689 * gdb-dlfcn.h: Do not include defs.h.
4690 * tracefile.h: Likewise.
4691
74228e77
RM
46922014-07-30 Roland McGrath <mcgrathr@google.com>
4693
4694 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4695
014f9477
TT
46962014-07-30 Tom Tromey <tromey@redhat.com>
4697
4698 * bsd-kvm.c (bsd_kvm_open): Constify.
4699 * corelow.c (core_open): Constify.
4700 * ctf.c (ctf_open): Constify.
4701 * dbug-rom.c (dbug_open): Constify.
4702 * exec.c (exec_open): Constify.
4703 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4704 * microblaze-rom.c (picobug_open): Constify.
4705 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4706 Constify.
4707 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4708 * record-btrace.c (record_btrace_open): Constify.
4709 * record-full.c (record_full_core_open_1, record_full_open_1)
4710 (record_full_open): Constify.
4711 * remote-m32r-sdi.c (m32r_open): Constify.
4712 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4713 (rockhopper_open, lsi_open): Constify.
4714 * remote-sim.c (gdbsim_open): Constify.
4715 * remote.c (remote_open, extended_remote_open, remote_open_1):
4716 Constify.
4717 * target.h (struct target_ops) <to_open>: Make "arg" const.
4718 * tracefile-tfile.c (tfile_open): Constify.
4719
e799154c
TT
47202014-07-30 Tom Tromey <tromey@redhat.com>
4721
4722 * breakpoint.c (map_breakpoint_numbers): Update.
4723 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4724 (get_number_const): New function.
4725 (get_number): Rewrite using get_number_const.
4726 (init_number_or_range): Make "string" const.
4727 (number_is_in_list): Make "list" const.
4728 * cli/cli-utils.h (get_number_const): Declare.
4729 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4730 (init_number_or_range, number_is_in_list): Update.
4731 * printcmd.c (map_display_numbers): Update.
4732 * value.c (value_from_history_ref): Constify.
4733 * value.h (value_from_history_ref): Update.
4734
5f08566b
TT
47352014-07-30 Tom Tromey <tromey@redhat.com>
4736
4737 * corefile.c (hook_type, call_extra_exec_file_hooks)
4738 (specify_exec_file_hook): Constify.
4739 * exec.c (exec_file_attach): Make "filename" const.
4740 * gdbcore.h (deprecated_exec_file_display_hook)
4741 (specify_exec_file_hook, exec_file_attach): Constify.
4742 * main.c (captured_main): Use catch_command_errors_const.
4743
8981c758
TT
47442014-07-30 Tom Tromey <tromey@redhat.com>
4745
4746 * target.c (open_target): New function.
4747 (add_target_with_completer, add_deprecated_target_alias): Use
4748 set_cmd_sfunc, set_cmd_context.
4749 (debug_to_open): Remove.
4750 (setup_target_debug): Update.
4751
a1c7835a
YQ
47522014-07-30 Yao Qi <yao@codesourcery.com>
4753
4754 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4755 comments.
4756 * parse.c (exp_iterate): Update comments.
4757
976411d6
GB
47582014-07-30 Gary Benson <gbenson@redhat.com>
4759
4760 * common/common-defs.h: New file.
4761 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4762 * defs.h: Include common-defs.h.
4763 Do not include config.h or build-gnulib/config.h.
4764
5d4848a4
GB
47652014-07-30 Gary Benson <gbenson@redhat.com>
4766
4767 * common/common-utils.h: Do not include config.h.
4768 * nat/linux-btrace.h: Likewise.
4769
d41f6d8e
GB
47702014-07-30 Gary Benson <gbenson@redhat.com>
4771
4772 * btrace.c: Include defs.h.
4773 * common/ptid.c: Include defs.h or server.h as appropriate.
4774 * nat/mips-linux-watch.c: Likewise.
4775
84202f9c
TT
47762014-07-29 Tom Tromey <tromey@redhat.com>
4777
4778 * target.c (target_is_pushed): Simplify.
4779
2530441c
JB
47802014-07-29 Joel Brobecker <brobecker@adacore.com>
4781
4782 GDB 7.8 released.
4783
7e09a223
YQ
47842014-07-29 Yao Qi <yao@codesourcery.com>
4785
4786 PR gdb/17206
4787 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4788
7ebdbe92
DE
47892014-07-28 Doug Evans <xdje42@gmail.com>
4790
4791 PR guile/17203
4792 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4793 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4794 parameters.
4795
f347ffc9
WN
47962014-07-28 Will Newton <will.newton@linaro.org>
4797
4798 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4799 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4800 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4801 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4802 (THUMB2_EABI_SYSCALL): Likewise.
4803 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4804 struct tramp_frame.
4805 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4806 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4807
37c5f1f7
DE
48082014-07-27 Doug Evans <xdje42@gmail.com>
4809
4810 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4811
0c3abbc7
DE
48122014-07-27 Doug Evans <xdje42@gmail.com>
4813
4814 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4815
e76c5d17
DE
48162014-07-26 Ludovic Courtès <ludo@gnu.org>
4817 Doug Evans <xdje42@gmail.com>
4818
4819 PR guile/17146
4820 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4821 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4822 * configure.ac: Try to use guild to compile an scm file, if it fails
4823 then disable guile support.
4824 * configure: Regenerate.
4825 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4826 GUILE_FILE_LIST.
4827 (GUILE_COMPILED_FILES): New variable.
4828 (GUILE_FILES) Update.
4829 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4830 (stamp-guile): Compile scm files.
4831 * guile/guile.c (boot_guile_support): New function.
4832 (standard_throw_args_p): New function.
4833 (print_standard_throw_error, print_throw_error): New functions.
4834 (handle_boot_error): New function.
4835 (initialize_scheme_side): Rewrite to call boot_guile_support.
4836 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4837 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4838
186fcde0
DE
48392014-07-26 Ludovic Courtès <ludo@gnu.org>
4840 Doug Evans <xdje42@gmail.com>
4841
4842 PR guile/17146
4843 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4844 * guile/lib/gdb/support.scm: New file.
4845 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4846 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4847 All uses updated.
4848 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4849 All uses updated.
4850 (%assert-type): Ditto, and renamed to assert-type.
4851 (%exception-print-style): Delete.
4852
4df42755
DE
48532014-07-26 Doug Evans <xdje42@gmail.com>
4854
4855 PR build/17105
4856 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4857 * configure: Regenerate.
4858 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4859 PYTHON_FILES.
4860 (PYTHON_FILES): New variable.
4861 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4862 (GUILE_FILES): New variable.
4863 (stamp-python, install-python, uninstall-python): Handle empty
4864 file list.
4865 (stamp-guile, install-guile, uninstall-guile): Ditto.
4866
ee7333ae
DE
48672014-07-26 Doug Evans <xdje42@gmail.com>
4868
4869 PR guile/17177
4870 * guile/lib/gdb.scm (pretty-printers): Export.
4871 (set-pretty-printers!): Export.
4872 * guile/lib/gdb/printing.scm (gdb module): Update.
4873 (prepend-pretty-printer!, append-pretty-printer!): Update.
4874 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4875 (pretty_printer_list_var): Delete.
4876 (pretty_printer_list): New static global.
4877 (gdbscm_pretty_printers): New function.
4878 (gdbscm_set_pretty_printers_x): New function.
4879 (ppscm_find_pretty_printer_from_gdb): Update.
4880 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4881 (gdbscm_initialize_pretty_printers): Update.
4882
74edf516
DE
48832014-07-26 Doug Evans <xdje42@gmail.com>
4884
4885 PR 17185
4886 * configure.ac: Add check for header gc/gc.h.
4887 Add check for function setenv.
4888 * configure: Regenerate.
4889 * config.in: Regenerate.
4890 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4891
d54398a7
MR
48922014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4893
4894 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4895 variation in gdbarch matching.
4896
ab16fce8
TT
48972014-07-25 Tom Tromey <tromey@redhat.com>
4898
4899 * exec.c (using_exec_ops): Remove.
4900 (exec_close_1): Update. Remove extraneous block, reindent.
4901 (add_target_sections): Use target_is_pushed.
4902
88056fbb
PA
49032014-07-25 Pedro Alves <palves@redhat.com>
4904
4905 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4906 * monitor.c (monitor_create_inferior): Likewise.
4907 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4908 * remote-sim.c (gdbsim_create_inferior): Likewise.
4909 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4910 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4911 * windows-nat.c (do_initial_windows_stuff): Likewise.
4912
70509625
PA
49132014-07-25 Pedro Alves <palves@redhat.com>
4914
4915 * NEWS: Mention signal passing and "signal" command changes.
4916 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4917 comment.
4918 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4919 call.
4920 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4921 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4922 (jump_command): Adjust clear_proceed_status call.
4923 (signal_command): Warn if other thread that are resumed have
4924 signals that will be delivered. Adjust clear_proceed_status call.
4925 (until_next_command, finish_command)
4926 (proceed_after_attach_callback, attach_command_post_wait)
4927 (attach_command): Adjust clear_proceed_status call.
4928 * infrun.c (proceed_after_vfork_done): Likewise.
4929 (proceed_after_attach_callback): Adjust comment.
4930 (clear_proceed_status_thread): Clear stop_signal if not in pass
4931 state.
4932 (clear_proceed_status_callback): Delete.
4933 (clear_proceed_status): New 'step' parameter. Only clear the
4934 proceed status of threads the command being prepared is about to
4935 resume.
4936 (proceed): If passed in an explicit signal, override stop_signal
4937 with it. Don't pass the last stop signal to the thread we're
4938 resuming.
4939 (init_wait_for_inferior): Adjust clear_proceed_status call.
4940 (switch_back_to_stepped_thread): Clear the signal if it should not
4941 be passed.
4942 * infrun.h (clear_proceed_status): New 'step' parameter.
4943 (user_visible_resume_ptid): Add comment.
4944 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4945 signal is in pass state.
4946 * remote.c (append_pending_thread_resumptions): Likewise.
4947 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4948
d8be2939
TT
49492014-07-25 Tom Tromey <tromey@redhat.com>
4950
4951 * target.h (target_stopped_data_address)
4952 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4953 parentheses.
4954
7d0d9d2b
PL
49552014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4956
4957 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4958 comments.
4959 (avr_pointer_to_address): Likewise.
4960
e9e7f724
TT
49612014-07-24 Tom Tromey <tromey@redhat.com>
4962
4963 * monitor.c (compile_pattern): Update.
4964 * target.h (struct target_ops) <to_shortname, to_longname,
4965 to_doc>: Now const.
4966
1947513d
TT
49672014-07-24 Tom Tromey <tromey@redhat.com>
4968
4969 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4970 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4971 (add_info_alias, add_com): Make "doc" const.
4972 (print_doc_line): Make "str" const.
4973 (delete_cmd): Update.
4974 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4975 (print_doc_line): Update.
4976 * cli/cli-script.c (document_command): Update.
4977 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4978 (add_com, add_info, add_info_alias): Update.
4979 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4980 * python/py-cmd.c (cmdpy_destroyer): Update.
4981
64e61d29
TT
49822014-07-24 Tom Tromey <tromey@redhat.com>
4983
4984 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4985 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4986 (help_cmd_list): Constify.
4987 (lookup_cmd): Update.
4988 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4989 const.
4990 (help_cmd_list, apropos_cmd): Update.
4991 * cli/cli-script.c (show_user): Update.
4992 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4993 * cli/cli-setshow.h (cmd_show_list): Update.
4994 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4995 (cmd_show_list): Update.
4996 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4997 * python/py-cmd.c (cmdpy_destroyer): Update.
4998
429e55ea
TT
49992014-07-24 Tom Tromey <tromey@redhat.com>
5000
5001 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5002 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5003 const.
5004 * command.h (deprecate_cmd): Update.
5005 * maint.c (maintenance_do_deprecate): Add casts.
5006
64669f3b
TT
50072014-07-24 Tom Tromey <tromey@redhat.com>
5008
5009 * cli/cli-decode.c (help_cmd): Make parameter "const".
5010 * cli/cli-decode.h (help_cmd): Update.
5011
d3d3328b
TT
50122014-07-24 Tom Tromey <tromey@redhat.com>
5013
5014 * stack.c (up_silently_base, down_silently_base): Make argument
5015 const.
5016
414842dc
TT
50172014-07-24 Tom Tromey <tromey@redhat.com>
5018
5019 * solib.c (solib_add): Make "pattern" const.
5020 * solib.h (solib_add): Update.
5021
baa336ce
TT
50222014-07-24 Tom Tromey <tromey@redhat.com>
5023
5024 * remote.c (remote_serial_open, print_packet, putpkt)
5025 (putpkt_binary): Constify.
5026 * remote.h (putpkt): Update.
5027
5a19e2d0
TT
50282014-07-24 Tom Tromey <tromey@redhat.com>
5029
5030 * monitor.c (monitor_open): Make "args" const.
5031 * monitor.h (monitor_open): Update.
5032
fc4baa5e
TT
50332014-07-24 Tom Tromey <tromey@redhat.com>
5034
5035 * maint.c (match_bfd_flags): Make "string" const.
5036 (print_bfd_section_info): Remove casts.
5037 (print_objfile_section_info): Make "string" const.
5038
0d5f0dbe
TT
50392014-07-24 Tom Tromey <tromey@redhat.com>
5040
5041 * inf-child.c (inf_child_open_target): Make "arg" const.
5042 * inf-child.h (inf_child_open_target): Update.
5043
41c77899
TT
50442014-07-24 Tom Tromey <tromey@redhat.com>
5045
5046 * environ.c (unset_in_environ): Make "var" const.
5047 * environ.h (unset_in_environ): Update.
5048
93db0d79
TT
50492014-07-24 Tom Tromey <tromey@redhat.com>
5050
5051 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5052 Make "cmd" const.
5053 (scan_filename_with_cleanup): Likewise.
5054 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5055 Make arguments const.
5056 (restore_command): Update.
5057
36d6eb95
PA
50582014-07-24 Pedro Alves <palves@redhat.com>
5059
5060 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5061
8009206a
TT
50622014-07-24 Tom Tromey <tromey@redhat.com>
5063 Gary Benson <gbenson@redhat.com>
5064
5065 * nat/linux-ptrace.c (additional_flags): New global.
5066 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5067 additional_flags; don't check GDBSERVER.
5068 (linux_ptrace_set_additional_flags): New function.
5069 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5070 Declare.
5071 * linux-nat.c (_initialize_linux_nat): Call
5072 linux_ptrace_set_additional_flags.
5073
a7068b60
TT
50742014-07-24 Tom Tromey <tromey@redhat.com>
5075
5076 * make-target-delegates (munge_type, write_debugmethod): New
5077 functions.
5078 (debug_names): New global.
5079 ($TARGET_DEBUG_PRINTER): New global.
5080 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5081 name.
5082 Write debug methods. Generate init_debug_target.
5083 * target-debug.h: New file.
5084 * target-delegates.c: Rebuild.
5085 * target.c: Include target-debug.h.
5086 (debug_target): Hoist definition.
5087 (target_kill, target_get_section_table, target_memory_map)
5088 (target_flash_erase, target_flash_done, target_detach)
5089 (target_disconnect, target_wait, target_resume)
5090 (target_pass_signals, target_program_signals, target_follow_fork)
5091 (target_mourn_inferior, target_search_memory)
5092 (target_thread_address_space, target_close)
5093 (target_find_new_threads, target_core_of_thread)
5094 (target_verify_memory, target_insert_mask_watchpoint)
5095 (target_remove_mask_watchpoint): Remove targetdebug code.
5096 (debug_to_post_attach, debug_to_prepare_to_store)
5097 (debug_to_files_info, debug_to_insert_breakpoint)
5098 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5099 (debug_to_region_ok_for_hw_watchpoint)
5100 (debug_to_can_accel_watchpoint_condition)
5101 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5102 (debug_to_watchpoint_addr_within_range)
5103 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5104 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5105 (debug_to_terminal_init, debug_to_terminal_inferior)
5106 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5107 (debug_to_terminal_save_ours, debug_to_terminal_info)
5108 (debug_to_load, debug_to_post_startup_inferior)
5109 (debug_to_insert_fork_catchpoint)
5110 (debug_to_remove_fork_catchpoint)
5111 (debug_to_insert_vfork_catchpoint)
5112 (debug_to_remove_vfork_catchpoint)
5113 (debug_to_insert_exec_catchpoint)
5114 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5115 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5116 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5117 (setup_target_debug): Call init_debug_target.
5118 * target.h (TARGET_DEBUG_PRINTER): New macro.
5119 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5120 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5121
2c51604d
GB
51222014-07-24 Gary Benson <gbenson@redhat.com>
5123
5124 * exceptions.h (throw_vfatal): Renamed to...
5125 (throw_vquit): New declaration.
5126 (throw_quit): Likewise.
5127 * exceptions.c (throw_vfatal): Renamed to...
5128 (throw_vquit): New function.
5129 (throw_quit): Likewise.
5130 (throw_error): Call throw_verror rather than throw_it.
5131 * utils.h (vfatal): Removed.
5132 (fatal): Likewise.
5133 * utils.c (vfatal): Removed.
5134 (fatal): Likewise.
5135 (internal_verror): Replaced call to fatal with call to throw_quit.
5136 (quit): Replaced calls to fatal with calls to throw_quit.
5137
34211963
ME
51382014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5139
5140 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5141 target_read_code.
5142
a52b4d3e
ME
51432014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5144
5145 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5146 less than zero in conditional expression.
5147
a8bdc56b
TT
51482014-07-23 Tom Tromey <tromey@redhat.com>
5149
5150 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5151 ($INTRO_PART): Don't match whitespace.
5152 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5153 argument matching.
5154 ($METHOD): Add $METHOD_TRAILER.
5155 (trim): Rewrite.
5156 (scan_target_h): New sub.
5157 Change main loop not to collect state.
5158 * target-delegates.c: Rebuild.
5159
91b52240
GB
51602014-07-23 Gary Benson <gbenson@redhat.com>
5161
5162 * cp-support.c (gdb_demangle): Fix build on systems without
5163 sigaltstack.
5164
45326f6f
JK
51652014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5166
5167 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5168 for reference entry value target data value.
5169
e214cf6c
JK
51702014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5171
5172 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5173 value_available_contents_eq.
5174
bddbbedd
PA
51752014-07-22 Pedro Alves <palves@redhat.com>
5176
5177 * value.c (allocate_optimized_out_value): Don't mark value as
5178 non-lazy.
5179
45c71484
JW
51802014-07-22 Jiong Wang <jiong.wang@arm.com>
5181
5182 * MAINTAINERS (Write After Approval): Update my email address.
5183
9597b22a
DE
51842014-07-20 Doug Evans <dje@google.com>
5185
5186 PR server/17147
5187 * remote.c (putpkt_binary): Add text to error message.
5188
91101fe5
YQ
51892014-07-20 Yao Qi <yao@codesourcery.com>
5190
5191 * eval.c: Remove "Chill" from comments.
5192 * gdbtypes.h: Likewise.
5193 * symtab.h: Likewise.
5194
c9402c95
YQ
51952014-07-20 Yao Qi <yao@codesourcery.com>
5196
5197 * std-operator.def: Update comments to TERNOP_SLICE.
5198
ae8fddda
YQ
51992014-07-20 Yao Qi <yao@codesourcery.com>
5200
5201 * std-operator.def: Remove BINOP_RANGE.
5202 * breakpoint.c (watchpoint_exp_is_const): Update.
5203 * expprint.c (dump_subexp_body_standard): Likewise.
5204 * eval.c (init_array_element): Remove dead code.
5205 (evaluate_subexp_standard): Likewise.
5206
9c816640
YQ
52072014-07-20 Yao Qi <yao@codesourcery.com>
5208
5209 * std-operator.def: Remove BINOP_IN.
5210 * breakpoint.c (watchpoint_exp_is_const): Update.
5211 * eval.c (evaluate_subexp_standard): Likewise.
5212 * expprint.c (dump_subexp_body_standard): Likewise.
5213
164224e9
ME
52142014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5215
5216 * microblaze-tdep.c (microblaze_register_names): Add
5217 the rshr and rslr register names.
5218 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5219 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5220 Use of tdesc_numbered_register. Use of
5221 microblaze_register_g_packet_guesses. Use of
5222 tdesc_use_registers. Use of set_gdbarch_register_type.
5223 (microblaze_register_g_packet_guesses): New.
5224 * microblaze-tdep.h (microblaze_reg_num): Add
5225 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5226 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5227 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5228 * features/microblaze-core.xml: New file.
5229 * features/microblaze-stack-protect.xml: New file.
5230 * features/microblaze-with-stack-protect.c: New file.
5231 * features/microblaze-with-stack-protect.xml: New file.
5232 * features/microblaze.xml: New file.
5233 * features/microblaze.c: New file.
5234 * features/Makefile (microblaze-with-stack-protect): Add
5235 microblaze-with-stack-protect microblaze and microblaze-expedite.
5236 * regformats/microblaze-with-stack-protect.dat: New file.
5237 * regformats/microblaze.dat: New file.
5238 * doc/gdb.texinfo (MicroBlaze Features): Added.
5239
e8b2341c
TT
52402014-07-18 Tom Tromey <tromey@redhat.com>
5241
5242 * exec.c (exec_ops): Now static.
5243 * exec.h (exec_ops): Don't declare.
5244
44e89118
TT
52452014-07-18 Tom Tromey <tromey@redhat.com>
5246
5247 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5248 to find_target_beneath.
5249 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5250 find_target_beneath.
5251 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5252
b0ed115f
TT
52532014-07-18 Tom Tromey <tromey@redhat.com>
5254
5255 PR gdb/17130:
5256 * utils.c (quit): Use target_supports_terminal_ours.
5257 * target.h (target_supports_terminal_ours): Declare.
5258 * target.c (target_supports_delete_record): Don't check
5259 to_delete_record against NULL.
5260 (target_supports_terminal_ours): New function.
5261
e75fdfca
TT
52622014-07-18 Tom Tromey <tromey@redhat.com>
5263
5264 PR gdb/17130:
5265 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5266 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5267 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5268 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5269 * windows-nat.c (windows_xfer_partial): Always delegate.
5270 * record-btrace.c (record_btrace_xfer_partial): Simplify
5271 delegation.
5272 (record_btrace_fetch_registers, record_btrace_store_registers)
5273 (record_btrace_prepare_to_store, record_btrace_resume)
5274 (record_btrace_wait, record_btrace_find_new_threads)
5275 (record_btrace_thread_alive): Likewise.
5276 * procfs.c (procfs_xfer_partial): Always delegate.
5277 * corelow.c (core_xfer_partial): Always delegate.
5278 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5279
83814951
TT
52802014-07-18 Tom Tromey <tromey@redhat.com>
5281
5282 * exec.c (exec_make_note_section): Move earlier.
5283
b8b8facf
DE
52842014-07-17 Doug Evans <dje@google.com>
5285
74b49205 5286 PR gdb/17170
b8b8facf
DE
5287 * maint.c (count_symtabs_and_blocks): Handle NULL
5288 current_program_space.
5289 (report_command_stats): Check global enabled flag in addition to
5290 recorded enabled flag.
5291 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5292
69ff6be5
PA
52932014-07-16 Pedro Alves <palves@redhat.com>
5294
5295 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5296
252db1b5
TT
52972014-07-16 Tom Tromey <tromey@redhat.com>
5298
5299 * target.h (struct target_ops) <to_delete_record>: Reformat
5300 comment.
5301
a432721e
TT
53022014-07-16 Tom Tromey <tromey@redhat.com>
5303
5304 * target-delegates.c: Rebuild.
5305
487d9753
PL
53062014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5307
5308 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5309 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5310 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5311 (avr_pointer_to_address): Likewise.
5312 (avr_address_class_type_flags): New function.
5313 (avr_address_class_type_flags_to_name): Likewise.
5314 (avr_address_class_name_to_type_flags): Likewise.
5315 (avr_gdbarch_init): Set address_class_type_flags,
5316 address_class_type_flags_to_name and
5317 address_class_name_to_type_flags.
5318
57745c90
PA
53192014-07-15 Pedro Alves <palves@redhat.com>
5320
5321 * linux-nat.c (kill_callback): Save errno and work with saved
5322 copy.
5323
2d40be18
SM
53242014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5327
572f6555
EBM
53282014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5329
5330 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5331 breakpoint support correctly.
5332
cc1c52ad
PA
53332014-07-14 Pedro Alves <palves@redhat.com>
5334
5335 * utils.c (prompt_for_continue): Call target_terminal_ours.
5336
1e973570
PA
53372014-07-14 Pedro Alves <palves@redhat.com>
5338
5339 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5340 catch_errors. Don't re-enable stdin or notify observers where,
5341 and rethrow error.
5342 (fetch_inferior_event_wrapper): Delete.
5343
93d6eb10
PA
53442014-07-14 Pedro Alves <palves@redhat.com>
5345
5346 PR gdb/17072
5347 * top.c: Include "inf-loop.h".
5348 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5349 field.
5350 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5351 was async before.
5352 (gdb_readline_wrapper): Store whether the target is async, and
5353 make it sync.
5354
0017922d
PA
53552014-07-14 Pedro Alves <palves@redhat.com>
5356
5357 PR gdb/17072
5358 * top.c (gdb_readline_wrapper_line): Tweak comment.
5359 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5360 the input handler callback.
5361
94696ad3
PA
53622014-07-14 Pedro Alves <palves@redhat.com>
5363
5364 PR gdb/17072
5365 * main.c: Include event-top.h.
5366 (handle_command_errors): New function.
5367 (catch_command_errors, catch_command_errors_const): Use it.
5368
9d1e69a2
PA
53692014-07-14 Pedro Alves <palves@redhat.com>
5370
5371 * exceptions.c (catch_command_errors, catch_command_errors_const):
5372 Moved to main.c.
5373 * exceptions.h (catch_command_errors_ftype)
5374 (catch_command_errors_const_ftype): Moved to main.c.
5375 (catch_command_errors, catch_command_errors_const): Delete
5376 declarations.
5377 * main.c (catch_command_errors_ftype)
5378 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5379 (catch_command_errors, catch_command_errors_const)): Moved here
5380 from exceptions.c and make static.
5381
feefc97b
PA
53822014-07-14 Pedro Alves <palves@redhat.com>
5383
5384 * exceptions.c (print_any_exception): Delete.
5385 (catch_exceptions_with_msg): Use exception_print instead of
5386 print_any_exception.
5387 (catch_errors): Use exception_fprintf instead of
5388 print_any_exception.
5389 (catch_command_errors, catch_command_errors_const): Use
5390 exception_print instead of print_any_exception.
5391
c933f875
PA
53922014-07-14 Pedro Alves <palves@redhat.com>
5393
5394 * infcall.c (run_inferior_call): Set 'sync_execution' while
5395 running the inferior call.
5396
feb6f816
PA
53972014-07-14 Pedro Alves <palves@redhat.com>
5398
5399 * value.c (value_contents_equal): Delete function.
5400 * value.h (value_contents_equal): Delete declaration.
5401
d98b7a16
TT
54022014-07-14 Tom Tromey <tromey@redhat.com>
5403
5404 PR exp/17106:
5405 * gdbtypes.c (is_dynamic_type_internal): New function, from
5406 is_dynamic_type.
5407 (is_dynamic_type): Rewrite.
5408 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5409 (resolve_dynamic_struct): Likewise.
5410 (resolve_dynamic_type_internal): New function, from
5411 resolve_dynamic_type.
5412 (resolve_dynamic_type): Rewrite.
5413
548740d6
TT
54142014-07-14 Tom Tromey <tromey@redhat.com>
5415
5416 * target.c (target_require_runnable): Also check record_stratum.
5417 Update comment.
5418
808f7ab1
YQ
54192014-07-11 Yao Qi <yao@codesourcery.com>
5420
5421 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5422 thumb_instruction_restores_sp return true.
5423
540314bd
YQ
54242014-07-11 Yao Qi <yao@codesourcery.com>
5425
5426 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5427 (thumb_in_function_epilogue_p): Call
5428 thumb_instruction_restores_sp.
5429
1db01f22
YQ
54302014-07-11 Yao Qi <yao@codesourcery.com>
5431
5432 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5433 'add sp, #imm'.
5434 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5435
3116063b
GB
54362014-07-11 Gary Benson <gbenson@redhat.com>
5437
5438 * amd64-linux-nat.c (gdbcore.h): Remove include.
5439 (regset.h): Likewise.
5440 (nat/linux-btrace.h): Likewise.
5441 (btrace.h): Likewise.
5442 (gdb_assert.h): Likewise.
5443 (string.h): Likewise.
5444 (sys/uio.h): Likewise.
5445 (sys/debugreg.h): Likewise.
5446 (sys/syscall.h): Likewise.
5447 (sys/procfs.h): Likewise.
5448 (sys/user.h): Likewise.
5449 (asm/ptrace.h): Likewise.
5450 (i386-nat.h): Likewise.
5451 * i386-linux-nat.c (i386-nat.h): Likewise.
5452 (regset.h): Likewise.
5453 (target.h): Likewise.
5454 (linux-nat.h): Likewise.
5455 (nat/linux-btrace.h): Likewise.
5456 (btrace.h): Likewise.
5457 (gdb_assert.h): Likewise.
5458 (string.h): Likewise.
5459 (sys/uio.h): Likewise.
5460 (sys/user.h): Likewise.
5461 (sys/procfs.h): Likewise.
5462 (sys/reg.h): Likewise.
5463 (sys/debugreg.h): Likewise.
5464 (ORIG_EAX): Remove definition.
5465
040baaf6
GB
54662014-07-11 Gary Benson <gbenson@redhat.com>
5467
5468 * i386-linux-nat.h: New file.
5469 * x86-linux-nat.h: Likewise.
5470 * x86-linux-nat.c: Likewise.
5471 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5472 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5473 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5474 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5475 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5476 (PTRACE_SETREGSET): Likewise.
5477 (arch_lwp_info): Now in x86-linux-nat.c.
5478 (have_ptrace_getregset): Now in x86-linux-nat.h.
5479 (x86_linux_dr_get): Now in x86-linux-nat.c.
5480 (x86_linux_dr_set): Likewise.
5481 (x86_linux_dr_get_addr): Likewise.
5482 (x86_linux_dr_get_control): Likewise.
5483 (x86_linux_dr_get_status): Likewise.
5484 (update_debug_registers_callback): Likewise.
5485 (x86_linux_dr_set_control): Likewise.
5486 (x86_linux_dr_set_addr): Likewise.
5487 (x86_linux_prepare_to_resume): Likewise.
5488 (x86_linux_new_thread): Likewise.
5489 (x86_linux_new_fork): Likewise.
5490 (x86_linux_get_thread_area): Likewise.
5491 (super_post_startup_inferior): Likewise.
5492 (x86_linux_child_post_startup_inferior): Likewise.
5493 (AMD64_LINUX_USER64_CS): Likewise.
5494 (AMD64_LINUX_X32_DS): Likewise.
5495 (x86_linux_read_description): Likewise.
5496 (x86_linux_enable_btrace): Likewise.
5497 (x86_linux_disable_btrace): Likewise.
5498 (x86_linux_teardown_btrace): Likewise.
5499 (x86_linux_read_btrace): Likewise.
5500 (x86_linux_create_target): Likewise.
5501 (x86_linux_add_target): Likewise.
5502 * i386-linux-nat.c (x86-linux-nat.h): New include.
5503 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5504 (PTRACE_SETREGSET): Likewise.
5505 (arch_lwp_info): Now in x86-linux-nat.c.
5506 (have_ptrace_getregset): Now in x86-linux-nat.h.
5507 (x86_linux_dr_get): Now in x86-linux-nat.c.
5508 (x86_linux_dr_set): Likewise.
5509 (x86_linux_dr_get_addr): Likewise.
5510 (x86_linux_dr_get_control): Likewise.
5511 (x86_linux_dr_get_status): Likewise.
5512 (update_debug_registers_callback): Likewise.
5513 (x86_linux_dr_set_control): Likewise.
5514 (x86_linux_dr_set_addr): Likewise.
5515 (x86_linux_prepare_to_resume): Likewise.
5516 (x86_linux_new_thread): Likewise.
5517 (x86_linux_new_fork): Likewise.
5518 (x86_linux_get_thread_area): Likewise.
5519 (super_post_startup_inferior): Likewise.
5520 (x86_linux_child_post_startup_inferior): Likewise.
5521 (AMD64_LINUX_USER64_CS): Likewise.
5522 (AMD64_LINUX_X32_DS): Likewise.
5523 (x86_linux_read_description): Likewise.
5524 (x86_linux_enable_btrace): Likewise.
5525 (x86_linux_disable_btrace): Likewise.
5526 (x86_linux_teardown_btrace): Likewise.
5527 (x86_linux_read_btrace): Likewise.
5528 (x86_linux_create_target): Likewise.
5529 (x86_linux_add_target): Likewise.
5530
1aa7e42c
GB
55312014-07-11 Gary Benson <gbenson@redhat.com>
5532
5533 * amd64-linux-nat.c: Comment and whitespace changes.
5534 * i386-linux-nat.c: Comment and whitespace changes.
5535
c1e246a0
GB
55362014-07-11 Gary Benson <gbenson@redhat.com>
5537
5538 * amd64-linux-nat.c (x86_linux_create_target): New function.
5539 (x86_linux_add_target): Likewise.
5540 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5541 * i386-linux-nat.c (x86_linux_create_target): New function.
5542 (x86_linux_add_target): Likewise.
5543 (_initialize_i386_linux_nat): Delegate to the above new functions.
5544
8c420b8d
GB
55452014-07-11 Gary Benson <gbenson@redhat.com>
5546
5547 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5548 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5549 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5550 (ps_get_thread_area): Delegate to the above.
5551
cb1da100
GB
55522014-07-11 Gary Benson <gbenson@redhat.com>
5553
5554 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5555 x86_linux_read_description. All uses updated. amd64-specific
5556 code conditionalized. Conditionalized i386-specific code added.
5557 Redundant cast removed.
5558 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5559 x86_linux_read_description. All uses updated. i386-specific
5560 code conditionalized. Conditionalized amd64-specific code added.
5561 One sizeof replaced with the actual type it is describing.
5562
2acf3cd0
GB
55632014-07-11 Gary Benson <gbenson@redhat.com>
5564
5565 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5566 x86_linux_dr_get. All uses updated.
5567 (amd64_linux_dr_set): Renamed to
5568 x86_linux_dr_set. All uses updated.
5569 (amd64_linux_dr_get_addr): Renamed to
5570 x86_linux_dr_get_addr. All uses updated.
5571 (amd64_linux_dr_get_control): Renamed to
5572 x86_linux_dr_get_control. All uses updated.
5573 (amd64_linux_dr_get_status): Renamed to
5574 x86_linux_dr_get_status. All uses updated.
5575 (amd64_linux_dr_set_control): Renamed to
5576 x86_linux_dr_set_control. All uses updated.
5577 (amd64_linux_dr_set_addr): Renamed to
5578 x86_linux_dr_set_addr. All uses updated.
5579 (amd64_linux_prepare_to_resume): Renamed to
5580 x86_linux_prepare_to_resume. All uses updated.
5581 (amd64_linux_new_thread): Renamed to
5582 x86_linux_new_thread. All uses updated.
5583 (amd64_linux_new_fork): Renamed to
5584 x86_linux_new_fork. All uses updated.
5585 (amd64_linux_child_post_startup_inferior): Renamed to
5586 x86_linux_child_post_startup_inferior. All uses updated.
5587 (amd64_linux_enable_btrace): Renamed to
5588 x86_linux_enable_btrace. All uses updated.
5589 (amd64_linux_disable_btrace): Renamed to
5590 x86_linux_disable_btrace. All uses updated.
5591 (amd64_linux_teardown_btrace): Renamed to
5592 x86_linux_teardown_btrace. All uses updated.
5593 (amd64_linux_read_btrace): Renamed to
5594 x86_linux_read_btrace. All uses updated.
5595 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5596 x86_linux_dr_get. All uses updated.
5597 (i386_linux_dr_set): Renamed to
5598 x86_linux_dr_set. All uses updated.
5599 (i386_linux_dr_get_addr): Renamed to
5600 x86_linux_dr_get_addr. All uses updated.
5601 (i386_linux_dr_get_control): Renamed to
5602 x86_linux_dr_get_control. All uses updated.
5603 (i386_linux_dr_get_status): Renamed to
5604 x86_linux_dr_get_status. All uses updated.
5605 (i386_linux_dr_set_control): Renamed to
5606 x86_linux_dr_set_control. All uses updated.
5607 (i386_linux_dr_set_addr): Renamed to
5608 x86_linux_dr_set_addr. All uses updated.
5609 (i386_linux_prepare_to_resume): Renamed to
5610 x86_linux_prepare_to_resume. All uses updated.
5611 (i386_linux_new_thread): Renamed to
5612 x86_linux_new_thread. All uses updated.
5613 (i386_linux_new_fork): Renamed to
5614 x86_linux_new_fork. All uses updated.
5615 (i386_linux_child_post_startup_inferior): Renamed to
5616 x86_linux_child_post_startup_inferior. All uses updated.
5617 (i386_linux_enable_btrace): Renamed to
5618 x86_linux_enable_btrace. All uses updated.
5619 (i386_linux_disable_btrace): Renamed to
5620 x86_linux_disable_btrace. All uses updated.
5621 (i386_linux_teardown_btrace): Renamed to
5622 x86_linux_teardown_btrace. All uses updated.
5623 (i386_linux_read_btrace): Renamed to
5624 x86_linux_read_btrace. All uses updated.
5625
b9c1d481
AS
56262014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5627
5628 * remote.c (extended_remote_post_attach): New function.
5629 (init_extended_remote_ops): Install it as to_post_attach method.
5630
7180e04a
PA
56312014-07-09 Pedro Alves <palves@redhat.com>
5632
5633 * infcmd.c (attach_command_post_wait): Don't call
5634 target_terminal_inferior here.
5635 (attach_command): Call it here instead.
5636
9a9a7608
AB
56372014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5638
5639 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5640 field.
5641 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5642 from varobj.c, with additional checks.
5643 (c_varobj_ops): Fill in is_path_expr_parent field.
5644 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5645 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5646 field.
5647 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5648 ops method.
5649 (varobj_default_is_path_expr_parent): New function.
5650 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5651 (varobj_default_is_path_expr_parent): Declare new function.
5652
1f267ae3
MM
56532014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5654
5655 * infcmd.c (finish_backward): Turn internal error into normal error.
5656
b2ee242b
PA
56572014-07-07 Pedro Alves <palves@redhat.com>
5658
8a869bca 5659 PR gdb/17096
b2ee242b
PA
5660 * remote.c (async_handle_remote_sigint)
5661 (async_handle_remote_sigint_twice): Call
5662 gdb_call_async_signal_handler instead of
5663 mark_async_signal_handler.
5664
38e229b2
TT
56652014-07-07 Tom Tromey <tromey@redhat.com>
5666
5667 * target-delegates.c: Rebuild.
5668 * target.c (target_info_record): Remove.
5669 * record.c (info_record_command): Unconditionally call
5670 to_info_record.
5671 * target.h (struct target_ops) <to_info_record>: Use
5672 TARGET_DEFAULT_IGNORE.
5673 (target_info_record): Remove.
5674
f0f9ff95
TT
56752014-07-07 Tom Tromey <tromey@redhat.com>
5676
5677 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5678 TARGET_DEFAULT_NORETURN.
5679 * target.c (generic_tls_error): New function.
5680 (target_translate_tls_address): Don't search target stack.
5681 * target-delegates.c: Rebuild.
5682 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5683 stack.
5684 * linux-thread-db.c (thread_db_get_thread_local_address):
5685 Unconditionally call beneath target.
5686
4a5be5ee
MK
56872014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5688
5689 * cli/cli-logging.c (pop_output_files): Assign targerr to
5690 gdb_stdtargerr.
5691
92c3b204
AB
56922014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5693
5694 * MAINTAINERS (Write After Approval): Update my email address.
5695
9b11e3a7
GB
56962014-07-02 Gary Benson <gbenson@redhat.com>
5697
5698 * proc-service.c (ps_xfer_memory): Update comment.
5699 (ps_pstop): Remove unused function.
5700 (ps_pcontinue): Likewise.
5701 (ps_lstop): Likewise.
5702 (ps_lcontinue): Likewise.
5703 (ps_lgetxregsize): Likewise.
5704 (ps_lgetxregs): Likewise.
5705 (ps_lsetxregs): Likewise.
5706 (ps_plog): Likewise.
5707 (ps_ptread): Likewise.
5708 (ps_ptwrite): Likewise.
5709
cf363f18
MW
57102014-07-01 Mark Wielaard <mjw@redhat.com>
5711
5712 * dwarf2read.c (add_array_cv_type): New function.
5713 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5714 (read_tag_volatile_type): Likewise.
5715
82ae6c8d
TT
57162014-07-01 Tom Tromey <tromey@redhat.com>
5717
5718 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5719 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5720 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5721 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5722 * command.h (cmd_cfunc_ftype): Move earlier.
5723 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5724 (add_com, add_info): Use cmd_cfunc_ftype.
5725
96142726
TT
57262014-06-30 Tom Tromey <tromey@redhat.com>
5727
5728 * symtab.c (operator_chars): Make parameters and return type
5729 const.
5730 (file_matches): Make "files" const.
5731 (struct search_symbols_data) <files>: Now const.
5732 (search_symbols): Make "regexp" and "files" parameters const.
5733 Update.
5734 (symtab_symbol_info): Remove cast.
5735 (rbreak_command): Update.
5736 * symtab.h (search_symbols): Update.
5737
b67a2c6f
YQ
57382014-06-27 Yao Qi <yao@codesourcery.com>
5739
5740 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5741 Change parameter type to 'struct thread_info *'. Caller
5742 updated.
5743 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5744 Update declaration.
5745 * dummy-frame.c (struct dummy_frame_id): New.
5746 (dummy_frame_id_eq): New function.
5747 (struct dummy_frame) <id>: Change its type to 'struct
5748 dummy_frame_id'.
5749 (dummy_frame_push): Add parameter ptid and save it in
5750 dummy_frame_id.
5751 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5752 inferior_ptid.
5753 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5754 to inferior_ptid.
5755 (lookup_dummy_frame): Change parameter type to 'struct
5756 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5757 instead of frame_id_eq.
5758 (dummy_frame_pop): Add parameter ptid. Callers updated.
5759 Update comments. Compose dummy_frame_id and pass it to
5760 lookup_dummy_frame.
5761 (dummy_frame_discard): Add parameter ptid.
5762 (dummy_frame_sniffer): Compose dummy_frame_id and call
5763 dummy_frame_id_eq instead of frame_id_eq.
5764 (fprint_dummy_frames): Print ptid.
5765 * dummy-frame.h: Remove comments.
5766 (dummy_frame_push): Add ptid in declaration.
5767 (dummy_frame_pop, dummy_frame_discard): Likewise.
5768
5b10184c
TT
57692014-06-26 Tom Tromey <tromey@redhat.com>
5770
5771 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5772 * command.h (error_no_arg): Update.
5773
06900326
TT
57742014-06-26 Tom Tromey <tromey@redhat.com>
5775
5776 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5777 (do_show_command): Make "arg" const.
5778 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5779
c2bcbb1d
TT
57802014-06-26 Tom Tromey <tromey@redhat.com>
5781
5782 * record-full.c (record_full_get_bookmark): Make "args" const.
5783 (record_full_goto_bookmark): Make "raw_bookmark" const.
5784 * record.c (record_goto): New function.
5785 (cmd_record_goto): Use it. Now static.
5786 * record.h (record_goto): Declare.
5787 (cmd_record_goto): Remove declaration.
5788 * target-delegates.c: Rebuild.
5789 * target.h (struct target_ops) <to_get_bookmark,
5790 to_goto_bookmark>: Make parameter const.
5791
9cbe5fff
TT
57922014-06-26 Tom Tromey <tromey@redhat.com>
5793
5794 * defs.h (generic_load): Update.
5795 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5796 * monitor.c (monitor_load): Make "args" const.
5797 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5798 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5799 const.
5800 (mips_load): Make "file" const.
5801 * remote-sim.c (gdbsim_load): Make "args" const.
5802 * remote.c (remote_load): Make "name" const.
5803 * symfile.c (generic_load): Make "args" const.
5804 * target-delegates.c: Rebuild.
5805 * target.c (target_load): Make "arg" const.
5806 (debug_to_load): Make "args" const.
5807 * target.h (struct target_ops) <to_load>: Make parameter const.
5808 (target_load): Update.
5809
34a68019
TT
58102014-06-26 Tom Tromey <tromey@redhat.com>
5811
5812 PR symtab/16902:
5813 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5814 (dwarf2_physname, read_partial_die)
5815 (guess_partial_die_structure_name, fixup_partial_die)
5816 (guess_full_die_structure_name, anonymous_struct_prefix)
5817 (dwarf2_name): Use per-BFD obstack.
5818
efc889c1
YQ
58192014-06-26 Yao Qi <yao@codesourcery.com>
5820
5821 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5822 dummyframe and this_id into inner block below.
5823
4395285e
YQ
58242014-06-26 Yao Qi <yao@codesourcery.com>
5825
5826 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5827 with "signal_pass[0]" in the initialization of signal_pass.
5828
aef92902
MM
58292014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5830
5831 * record-btrace.c (record_btrace_generating_corefile)
5832 (record_btrace_prepare_to_generate_core)
5833 (record_btrace_done_generating_core): New.
5834 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5835 (record_btrace_store_registers, record_btrace_prepare_to_store):
5836 Forward request when generating a core file.
5837 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5838 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5839 to_done_generating_core.
5840
5fff78c4
MM
58412014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5842
5843 * target.h (target_ops) <to_prepare_to_generate_core>
5844 <to_done_generating_core>: New.
5845 (target_prepare_to_generate_core, target_done_generating_core): New.
5846 * target.c (target_prepare_to_generate_core)
5847 (target_done_generating_core): New.
5848 * target-delegates.c: Regenerate.
5849 * gcore.c: (write_gcore_file): Rename to ...
5850 (write_gcore_file_1): ...this.
5851 (write_gcore_file): Call target_prepare_to_generate_core
5852 and target_done_generating_core.
5853
1d1f1ccb
MM
58542014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5855
5856 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5857 * gcore.c (write_gcore_file): Free memory returned from
5858 make_corefile_notes.
5859 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5860 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5861
3343ef86
YQ
58622014-06-24 Yao Qi <yao@codesourcery.com>
5863
5864 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5865 (arm_linux_init_abi): Set skip_trampoline_code with
5866 gdbarch_skip_trampoline_code instead of
5867 find_solib_trampoline_target.
5868
18d18ac8
YQ
58692014-06-24 Yao Qi <yao@codesourcery.com>
5870
5871 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5872 arm_skip_bx_reg returns non-zero.
5873
80d8d390
YQ
58742014-06-24 Yao Qi <yao@codesourcery.com>
5875
5876 * arm-tdep.c (arm_skip_bx_reg): New function.
5877 (arm_skip_stub): Call arm_skip_bx_reg.
5878
6a18a01c
DB
58792014-06-23 Don Breazeal <donb@codesourcery.com>
5880
5881 * MAINTAINERS: Add myself as write-after-approval maintainer.
5882
8e9db26e
PA
58832014-06-23 Pedro Alves <palves@redhat.com>
5884
5885 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5886 DR_CONTROL before setting DR0..DR3.
5887 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5888 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5889 bits of DR_CONTROL related to the debug register slot being
5890 disabled. If all slots are vacant, clear local slowdown as well,
5891 and assert DR_CONTROL is 0.
5892
70afc5b7
SC
58932014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5894
5895 * python/lib/gdb/command/xmethods.py
5896 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5897 current progspace only if the string "progspace" matches LOCUS_RE.
5898
840ed64d
JK
58992014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5900
5901 Fix --with-system-readline with readline-6.3 patch 5.
5902 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5903 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5904 types.
5905
26f2dc30
TT
59062014-06-20 Tom Tromey <tromey@redhat.com>
5907
5908 * dwarf2read.c (dw2_get_real_path): Use correct type in
5909 OBSTACK_CALLOC.
5910 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5911
125f8a3d
GB
59122014-06-20 Gary Benson <gbenson@redhat.com>
5913
5914 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5915 * common/glibc_thread_db.h: Likewise.
5916 * common/i386-cpuid.h: Likewise.
5917 * common/i386-gcc-cpuid.h: Likewise.
5918 * common/linux-btrace.h: Likewise.
5919 * common/linux-osdata.h: Likewise.
5920 * common/linux-procfs.h: Likewise.
5921 * common/linux-ptrace.h: Likewise.
5922 * common/mips-linux-watch.h: Likewise.
5923 * common/linux-btrace.c: Moved to nat.
5924 * common/linux-osdata.c: Likewise.
5925 * common/linux-procfs.c: Likewise.
5926 * common/linux-ptrace.c: Likewise.
5927 * common/mips-linux-watch.c: Likewise.
5928 * nat/gdb_thread_db.h: Moved from common.
5929 * nat/glibc_thread_db.h: Likewise.
5930 * nat/i386-cpuid.h: Likewise.
5931 * nat/i386-gcc-cpuid.h: Likewise.
5932 * nat/linux-btrace.c: Likewise.
5933 * nat/linux-btrace.h: Likewise.
5934 * nat/linux-osdata.c: Likewise.
5935 * nat/linux-osdata.h: Likewise.
5936 * nat/linux-procfs.c: Likewise.
5937 * nat/linux-procfs.h: Likewise.
5938 * nat/linux-ptrace.c: Likewise.
5939 * nat/linux-ptrace.h: Likewise.
5940 * nat/mips-linux-watch.c: Likewise.
5941 * nat/mips-linux-watch.h: Likewise.
5942 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5943 (object file files): Reordered.
5944 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5945 of glibc_thread_db.h.
5946
42995dbd
GB
59472014-06-20 Gary Benson <gbenson@redhat.com>
5948
5949 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5950 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5951 (i386_dr_low): Likewise.
5952 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5953 (i386_dr_low_set_addr): Likewise.
5954 (i386_dr_low_get_addr): Likewise.
5955 (i386_dr_low_can_set_control): Likewise.
5956 (i386_dr_low_set_control): Likewise.
5957 (i386_dr_low_get_control): Likewise.
5958 (i386_dr_low_get_status): Likewise.
5959 (i386_get_debug_register_length): Likewise.
5960 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5961 (i386_dr_low): Likewise.
5962 * nat/i386-dregs.c (i386-low.h): Remove include.
5963 (i386-nat.h): Likewise.
5964 (nat/i386-dregs.h): New include.
5965 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5966 (i386_dr_low_set_addr): Likewise.
5967 (i386_dr_low_get_addr): Likewise.
5968 (i386_dr_low_can_set_control): Likewise.
5969 (i386_dr_low_set_control): Likewise.
5970 (i386_dr_low_get_control): Likewise.
5971 (i386_dr_low_get_status): Likewise.
5972 (i386_get_debug_register_length): Likewise.
5973 (debug_hw_points): Likewise.
5974
3ed9baed
IB
59752014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5976
5977 * Makefile.in (SFILES): Add d-exp.y.
5978 (YYFILES): Add d-exp.c.
5979 (YYOBJ): Add d-exp.o.
5980 (local-maintainer-clean): Delete d-exp.c.
5981 * d-exp.y: New file.
5982 * d-lang.h (d_parse): New declaration.
5983 (d_error): New declaration.
5984 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5985 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5986 PREC_ORDER operators.
5987 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5988
78c164b0
YQ
59892014-06-19 Yao Qi <yao@codesourcery.com>
5990
5991 * gdbthread.h (any_running): Remove the declaration.
5992 * thread.c (any_running): Remove.
5993
f6e29b6e
YQ
59942014-06-19 Yao Qi <yao@codesourcery.com>
5995
5996 * gdbthread.h (struct thread_info) <state>: Change its type to
5997 'enum thread_state'. Update comments.
5998
034f788c
PA
59992014-06-19 Pedro Alves <palves@redhat.com>
6000
6001 * gdbthread.h (ALL_THREADS): Delete.
6002 (ALL_NON_EXITED_THREADS): New macro.
6003 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6004 instead of ALL_THREADS.
6005 * infrun.c (find_thread_needs_step_over)
6006 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6007 instead of ALL_THREADS.
6008 * record-btrace.c (record_btrace_open)
6009 (record_btrace_stop_recording, record_btrace_close)
6010 (record_btrace_is_replaying, record_btrace_resume)
6011 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6012 * remote.c (append_pending_thread_resumptions): Likewise.
6013 * thread.c (thread_apply_all_command): Likewise.
6014
46e33252
GB
60152014-06-19 Gary Benson <gbenson@redhat.com>
6016
6017 * i386-nat.c (i386_stopped_by_watchpoint):
6018 Use i386_dr_stopped_by_watchpoint.
6019 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6020 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6021
3a8ee006
GB
60222014-06-19 Gary Benson <gbenson@redhat.com>
6023
6024 * nat/i386-dregs.c: New file.
6025 * Makefile.in (i386-dregs.o): New rule.
6026 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6027 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6028 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6029 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6030 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6031 * config/i386/go32.mh (NATDEPFILES): Likewise.
6032 * config/i386/linux.mh (NATDEPFILES): Likewise.
6033 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6034 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6035 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6036 * i386-nat.h (debug_hw_points): New declaration.
6037 * i386-nat.c (breakpoint.h): Remove include.
6038 (command.h): Likewise.
6039 (target.h): Likewise.
6040 (gdb_assert.h): Likewise.
6041 (debug_hw_points): Made nonstatic.
6042 (debug_printf): Now in i386-dregs.c.
6043 (TARGET_HAS_DR_LEN_8): Likewise.
6044 (DR_CONTROL_SHIFT): Likewise.
6045 (DR_CONTROL_SIZE): Likewise.
6046 (DR_RW_EXECUTE): Likewise.
6047 (DR_RW_WRITE): Likewise.
6048 (DR_RW_READ): Likewise.
6049 (DR_RW_IORW): Likewise.
6050 (DR_LEN_1): Likewise.
6051 (DR_LEN_2): Likewise.
6052 (DR_LEN_4): Likewise.
6053 (DR_LEN_8): Likewise.
6054 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6055 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6056 (DR_ENABLE_SIZE): Likewise.
6057 (DR_LOCAL_SLOWDOWN): Likewise.
6058 (DR_GLOBAL_SLOWDOWN): Likewise.
6059 (DR_CONTROL_RESERVED): Likewise.
6060 (I386_DR_CONTROL_MASK): Likewise.
6061 (I386_DR_VACANT): Likewise.
6062 (I386_DR_LOCAL_ENABLE): Likewise.
6063 (I386_DR_GLOBAL_ENABLE): Likewise.
6064 (I386_DR_DISABLE): Likewise.
6065 (I386_DR_SET_RW_LEN): Likewise.
6066 (I386_DR_GET_RW_LEN): Likewise.
6067 (I386_DR_WATCH_HIT): Likewise.
6068 (i386_wp_op_t): Likewise.
6069 (i386_show_dr): Likewise.
6070 (i386_length_and_rw_bits): Likewise.
6071 (i386_insert_aligned_watchpoint): Likewise.
6072 (i386_remove_aligned_watchpoint): Likewise.
6073 (i386_handle_nonaligned_watchpoint): Likewise.
6074 (i386_update_inferior_debug_regs): Likewise.
6075 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6076 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6077 (i386_region_ok_for_watchpoint):
6078 Use i386_dr_region_ok_for_watchpoint.
6079 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6080
322a8e06
GB
60812014-06-19 Gary Benson <gbenson@redhat.com>
6082
6083 * i386-nat.c (i386_insert_hw_breakpoint): Use
6084 i386_insert_watchpoint.
6085 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6086
8f26655c
GB
60872014-06-19 Gary Benson <gbenson@redhat.com>
6088
6089 * i386-nat.c (i386_dr_show): Renamed to
6090 i386_show_dr and made static. All uses updated.
6091 (i386_dr_length_and_rw_bits): Renamed to
6092 i386_length_and_rw_bits and made static.
6093 All uses updated.
6094 (i386_dr_insert_aligned_watchpoint): Renamed to
6095 i386_insert_aligned_watchpoint and made static.
6096 All uses updated.
6097 (i386_dr_remove_aligned_watchpoint): Renamed to
6098 i386_remove_aligned_watchpoint and made static.
6099 All uses updated.
6100 (i386_dr_update_inferior_debug_regs): Renamed to
6101 i386_update_inferior_debug_regs and made static.
6102 All uses updated.
6103 * nat/i386-dregs.h (i386_dr_show): Removed.
6104 (i386_dr_length_and_rw_bits): Likewise.
6105 (i386_dr_insert_aligned_watchpoint): Likewise.
6106 (i386_dr_remove_aligned_watchpoint): Likewise.
6107 (i386_dr_update_inferior_debug_regs): Likewise.
6108
992c7d70
GB
61092014-06-19 Gary Benson <gbenson@redhat.com>
6110
6111 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6112 * configure: Regenerate.
6113 * config.in: Likewise.
6114 * main.c (signal.h): New include.
6115 (setup_alternate_signal_stack): New function.
6116 (captured_main): Call the above.
6117 * cp-support.c (signal.h): New include.
6118 (catch_demangler_crashes): New flag.
6119 (SIGJMP_BUF): New define.
6120 (SIGSETJMP): Likewise.
6121 (SIGLONGJMP): Likewise.
6122 (gdb_demangle_jmp_buf): New static global.
6123 (gdb_demangle_attempt_core_dump): Likewise.
6124 (gdb_demangle_signal_handler): New function.
6125 (gdb_demangle): If catch_demangler_crashes is set, install the
6126 above signal handler before calling bfd_demangle, and restore
6127 the original signal handler afterwards. Display the offending
6128 symbol and call demangler_warning the first time a segmentation
6129 fault is caught.
6130 (_initialize_cp_support): New maint set/show command.
6131
eae7090b
GB
61322014-06-19 Gary Benson <gbenson@redhat.com>
6133
6134 * utils.h (resource_limit_kind): New enum.
6135 (can_dump_core): New declaration.
6136 (warn_cant_dump_core): Likewise.
6137 (dump_core): Likewise.
6138 * utils.c (dump_core): Made nonstatic. Added new
6139 parameter "limit_kind".
6140 (can_dump_core): Made nonstatic. Moved printing code to...
6141 (warn_cant_dump_core): New function.
6142 (can_dump_core_warn): Likewise.
6143 (internal_vproblem): Replace calls to can_dump_core with
6144 calls to can_dump_core_warn. Supply new argument to each.
6145
57fcfb1b
GB
61462014-06-19 Gary Benson <gbenson@redhat.com>
6147
6148 * utils.h (demangler_vwarning): New declaration.
6149 (demangler_warning): Likewise.
6150 * utils.c (struct internal_problem)
6151 <user_settable_should_quit>: New field.
6152 <user_settable_should_dump_core>: Likewise
6153 (internal_error_problem): Add values for above new fields.
6154 (internal_warning_problem): Likewise.
6155 (demangler_warning_problem): New static global.
6156 (demangler_vwarning): New function.
6157 (demangler_warning): Likewise.
6158 (add_internal_problem_command): Selectively add commands.
6159 (_initialize_utils): New internal problem command.
6160 * maint.c (maintenance_demangler_warning): New function.
6161 (_initialize_maint_cmds): New command.
6162
17a40b44
TT
61632014-06-18 Tom Tromey <tromey@redhat.com>
6164
6165 * f-valprint.c (info_common_command_for_block): Update.
6166 * symtab.h (struct general_symbol_info) <common_block>: Now
6167 const.
6168
346d1dfe
TT
61692014-06-18 Tom Tromey <tromey@redhat.com>
6170
6171 * symtab.h (struct symtab) <blockvector>: Now const.
6172 * ada-lang.c (ada_add_global_exceptions): Update.
6173 * buildsym.c (augment_type_symtab): Update.
6174 * dwarf2read.c (dw2_lookup_symbol): Update.
6175 * jit.c (finalize_symtab): Update.
6176 * jv-lang.c (add_class_symtab_symbol): Update.
6177 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6178 Update.
6179 * objfiles.c (objfile_relocate1): Update.
6180 * psymtab.c (lookup_symbol_aux_psymtabs)
6181 (maintenance_check_psymtabs): Update.
6182 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6183 Update.
6184 * spu-tdep.c (spu_catch_start): Update.
6185 * symmisc.c (dump_symtab_1): Update.
6186 * symtab.c (lookup_global_symbol_from_objfile)
6187 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6188 (basic_lookup_transparent_type_quick)
6189 (basic_lookup_transparent_type, find_pc_sect_symtab)
6190 (find_pc_sect_line, search_symbols): Update.
6191 * block.c (find_block_in_blockvector): Make "bl" const.
6192 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6193 const.
6194 (blockvector_contains_pc): Make "bv" const.
6195 (block_for_pc_sect): Update.
6196 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6197 (blockvector_contains_pc): Update.
6198 * breakpoint.c (resolve_sal_pc): Update.
6199 * inline-frame.c (block_starting_point_at): Update.
6200
1834676b
TT
62012014-06-18 Tom Tromey <tromey@redhat.com>
6202
6203 * completer.c (complete_line): Make "line_buffer" const.
6204 * completer.h (complete_line): Update.
6205
ac1a991b
TT
62062014-06-18 Tom Tromey <tromey@redhat.com>
6207
6208 * symtab.c (add_macro_name): Remove unneeded cast.
6209
5bc98e52
TT
62102014-06-18 Tom Tromey <tromey@redhat.com>
6211
6212 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6213 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6214
8236def8
TT
62152014-06-18 Tom Tromey <tromey@redhat.com>
6216
6217 * probe.c (info_probes_for_ops): Make "arg" const.
6218 * probe.h (info_probes_for_ops): Update.
6219
3977b71f
TT
62202014-06-18 Tom Tromey <tromey@redhat.com>
6221
6222 * varobj.c (varobj_create): Update.
6223 * valops.c (value_of_this): Update.
6224 * tracepoint.c (add_local_symbols, scope_info): Update.
6225 * symtab.h (struct general_symbol_info) <block>: Now const.
6226 * symtab.c (skip_prologue_sal)
6227 (default_make_symbol_completion_list_break_on)
6228 (skip_prologue_using_sal): Update.
6229 * stack.h (iterate_over_block_locals)
6230 (iterate_over_block_local_vars): Update.
6231 * stack.c (print_frame_args): Update.
6232 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6233 parameter const.
6234 (get_selected_block): Make return type const.
6235 * python/py-frame.c (frapy_block): Update.
6236 * python/py-block.c (gdbpy_block_for_pc): Update.
6237 * p-exp.y (%union) <bval>: Now const.
6238 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6239 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6240 * m2-exp.y (%union) <bval>: Now const.
6241 * linespec.c (get_current_search_block): Make return type const.
6242 (create_sals_line_offset, find_label_symbols): Update.
6243 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6244 Update.
6245 (block_starting_point_at): Make "block" const.
6246 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6247 (check_exception_resume): Update.
6248 * guile/scm-frame.c (gdbscm_frame_block): Update.
6249 * guile/scm-block.c (gdbscm_lookup_block): Update.
6250 * frame.h (get_frame_block): Update.
6251 (get_selected_block): Make return type const.
6252 * frame.c (frame_id_inner): Update.
6253 * f-valprint.c (info_common_command_for_block)
6254 (info_common_command): Update.
6255 * dwarf2loc.c (dwarf2_find_location_expression)
6256 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6257 (locexpr_describe_location_piece): Update.
6258 * c-exp.y (%union) <bval>: Now const.
6259 * breakpoint.c (resolve_sal_pc): Update.
6260 * blockframe.c (get_frame_block):Make return type const.
6261 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6262 (block_innermost_frame): Update.
6263 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6264 (block_for_pc, block_for_pc_sect): Update.
6265 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6266 'pblock' const.
6267 (block_for_pc_sect, block_for_pc): Make return type const.
6268 * ax-gdb.c (gen_expr): Update.
6269 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6270 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6271 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6272 (ada_read_var_value): Update.
6273 * ada-exp.y (struct name_info) <block>: Now const.
6274 (%union): Likewise.
6275 (block_lookup): Constify.
6276
b9228891
GB
62772014-06-18 Gary Benson <gbenson@redhat.com>
6278
6279 * nat/i386-dregs.h: New file.
6280 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6281 * i386-nat.h (i386-dregs.h): New include.
6282 (DR_FIRSTADDR): Now in i386-dregs.h.
6283 (DR_LASTADDR): Likewise.
6284 (DR_NADDR): Likewise.
6285 (DR_STATUS): Likewise.
6286 (DR_CONTROL): Likewise.
6287 (i386_debug_reg_state): Likewise.
6288 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6289
a1aa2221
LM
62902014-06-18 Don Breazeal <donb@codesourcery.com>
6291
6292 * breakpoint.c (set_longjmp_breakpoint): Call
6293 momentary_breakpoint_from_master with additional argument.
6294 (set_longjmp_breakpoint_for_call_dummy): Call
6295 momentary_breakpoint_from_master with additional argument.
6296 (set_std_terminate_breakpoint): Call
6297 momentary_breakpoint_from_master with additional argument.
6298 (momentary_breakpoint_from_master): Add argument to function
6299 definition and use it to initialize structure member flag.
74228e77 6300 (clone_momentary_breakpoint): Call
a1aa2221
LM
6301 momentary_breakpoint_from_master with additional argument.
6302 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6303 member flags set in momentary_breakpoint_from_master.
6304
4be83cc2
GB
63052014-06-18 Gary Benson <gbenson@redhat.com>
6306
6307 * i386-nat.c (i386_show_dr): Renamed to
6308 i386_dr_show and made nonstatic. All uses updated.
6309 (i386_length_and_rw_bits): Renamed to
6310 i386_dr_length_and_rw_bits and made nonstatic.
6311 All uses updated.
6312 (i386_insert_aligned_watchpoint): Renamed to
6313 i386_dr_insert_aligned_watchpoint and made nonstatic.
6314 All uses updated.
6315 (i386_remove_aligned_watchpoint): Renamed to
6316 i386_dr_remove_aligned_watchpoint and made nonstatic.
6317 All uses updated.
6318 (i386_update_inferior_debug_regs): Renamed to
6319 i386_dr_update_inferior_debug_regs and made nonstatic.
6320 All uses updated.
6321
131aa0d4
GB
63222014-06-18 Gary Benson <gbenson@redhat.com>
6323
6324 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6325 (i386_dr_low_can_set_control): Likewise.
6326 (i386_dr_low_set_addr): Likewise.
6327 (i386_dr_low_set_control): Likewise.
6328 (i386_dr_low_get_addr): Likewise.
6329 (i386_dr_low_get_status): Likewise.
6330 (i386_dr_low_get_control): Likewise.
6331 (i386_insert_aligned_watchpoint): Use new macros.
6332 (i386_update_inferior_debug_regs): Likewise.
6333 (i386_stopped_data_address): Likewise.
6334
d9305f7f
GB
63352014-06-18 Gary Benson <gbenson@redhat.com>
6336
6337 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6338 New parameter. All uses updated.
6339
ea008da4
GB
63402014-06-18 Gary Benson <gbenson@redhat.com>
6341
6342 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6343 All uses updated.
6344
1b6d4134
GB
63452014-06-18 Gary Benson <gbenson@redhat.com>
6346
6347 * i386-nat.c (debug_printf): New macro.
6348 (i386_get_debug_register_length): Likewise.
6349 (TARGET_HAS_DR_LEN_8): Use above macro.
6350 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6351 and printf_unfiltered. Use phex to format values.
6352
9b4550ef
GB
63532014-06-18 Gary Benson <gbenson@redhat.com>
6354
6355 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6356 Make const.
6357
6e62758f
GB
63582014-06-18 Gary Benson <gbenson@redhat.com>
6359
6360 * i386-nat.c: Comment changes.
6361
51c79e94
GB
63622014-06-18 Gary Benson <gbenson@redhat.com>
6363
6364 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6365
3e11889a
GB
63662014-06-18 Gary Benson <gbenson@redhat.com>
6367
6368 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6369 (i386_insert_aligned_watchpoint): Likewise.
6370 (i386_remove_aligned_watchpoint): Likewise.
6371 (i386_handle_nonaligned_watchpoint): Likewise.
6372
fc6e2f03
GB
63732014-06-18 Gary Benson <gbenson@redhat.com>
6374
6375 * i386-nat.c: Whitespace changes.
6376
2afe7d50
SB
63772014-06-17 Samuel Bronson <naesten@gmail.com>
6378
6379 * MAINTAINERS: Update Roland McGrath's email address.
6380 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6381 Red Hat a while ago, and giving me a current address.
2afe7d50 6382
3bca49ee
TT
63832014-06-17 Tom Tromey <tromey@redhat.com>
6384
6385 * utils.h (savestring): Remove declaration.
6386
6e366df1
TT
63872014-06-17 Tom Tromey <tromey@redhat.com>
6388
6389 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6390
6be47f0c
KS
63912014-06-16 Keith Seitz <keiths@redhat.com>
6392
6393 PR mi/15863
6394 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6395 to update the varobj if inferior_ptid is null_ptid.
6396
7bc112c1
TT
63972014-06-16 Tom Tromey <tromey@redhat.com>
6398
6399 * target.h (struct target_ops) <to_info_proc>: Make parameter
6400 const.
6401 (target_info_proc): Update.
6402 * target.c (target_info_proc): Make "args" const.
6403 * procfs.c (procfs_info_proc): Update.
6404 * linux-tdep.c (linux_info_proc): Update.
6405 (linux_core_info_proc_mappings): Make "args" const.
6406 (linux_core_info_proc): Update.
6407 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6408 * gdbarch.c: Rebuild.
6409 * gdbarch.h: Rebuild.
6410 * corelow.c (core_info_proc): Update.
6411
fee354ee
TT
64122014-06-16 Tom Tromey <tromey@redhat.com>
6413
6414 * target.h (struct target_ops) <to_disconnect>: Make parameter
6415 const.
6416 (target_disconnect): Update.
6417 * target.c (target_disconnect): Make "args" const.
6418 * target-delegates.c: Rebuild.
6419 * remote.c (remote_disconnect): Update.
6420 * record.h (record_disconnect): Update.
6421 * record.c (record_disconnect): Update.
6422 * inf-child.c (inf_child_disconnect): Update.
6423
a30bf1f1
TT
64242014-06-16 Tom Tromey <tromey@redhat.com>
6425
6426 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6427 * target.c (debug_to_rcmd, default_rcmd): Update.
6428 * target-delegates.c: Rebuild.
6429 * remote.c (remote_rcmd): Update.
6430 * monitor.c (monitor_rcmd): Update.
6431
d03de421
PA
64322014-06-16 Pedro Alves <palves@redhat.com>
6433
6434 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6435 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6436 have OBJF_SHARED set.
6437 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6438 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6439 instead of OBJF_USERLOADED.
6440 * objfiles.h (OBJF_SHARED): Update comment.
6441 (userloaded_objfile_contains_address_p): Rename to ...
6442 (shared_objfile_contains_address_p): ... this, and update
6443 comments.
6444 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6445 new objfile.
6446 (remove_symbol_file_command): Skip objfiles that don't have
6447 OBJF_SHARED set.
6448
99f4262f
TT
64492014-06-16 Tom Tromey <tromey@redhat.com>
6450
6451 * minsyms.h (prim_record_minimal_symbol)
6452 (prim_record_minimal_symbol_and_info): Update comments.
6453
97d66cc6
EZ
64542014-06-14 Eli Zaretskii <eliz@gnu.org>
6455
6456 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6457 or --without-guile, according to how GDB was built.
6458
635c7e8a
TT
64592014-06-13 Tom Tromey <tromey@redhat.com>
6460
6461 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6462 to help_list.
6463 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6464 to help_list.
6465 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6466 help_list.
6467 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6468 help_list.Pass all_commands, not -1, to help_list.
6469 * cli/cli-dump.c (dump_command, append_command)
6470 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6471 (binary_dump_command, binary_append_command): Pass all_commands,
6472 not -1, to help_list.
6473 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6474 -1, to help_list.
6475 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6476 -1, to help_list.
6477 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6478 help_list.
6479 * top.c (set_history): Pass all_commands, not -1, to help_list.
6480 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6481 all_commands, not -1, to help_list.
6482 * symfile.c (overlay_command): Pass all_commands, not -1, to
6483 help_list.
6484 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6485 help_list.
6486 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6487 help_list.
6488 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6489 -1, to help_list.
6490 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6491 not -1, to help_list.
6492 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6493 not -1, to help_list.
6494 * maint.c (maintenance_command, maintenance_info_command)
6495 (maintenance_print_command, maintenance_set_cmd): Pass
6496 all_commands, not -1, to help_list.
6497 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6498 help_list.
6499 * language.c (set_check): Pass all_commands, not -1, to help_list.
6500 * infcmd.c (unset_command): Pass all_commands, not -1, to
6501 help_list.
6502 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6503 help_list.
6504 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6505 help_list.
6506 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6507 help_list.
6508 * breakpoint.c (save_command): Pass all_commands, not -1, to
6509 help_list.
6510 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6511 all_commands, not -1, to help_list.
6512
b94ade42
PL
65132014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6514
6515 * regcache.c (struct register_to_invalidate): New structure.
6516 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6517 functions.
6518 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6519
31f628ae
YQ
65202014-06-12 Yao Qi <yao@codesourcery.com>
6521
6522 * varobj.c (varobj_get_num_children): Call
6523 varobj_is_dynamic_p.
6524 (varobj_list_children): Likewise.
6525 (varobj_update): Likewise. Update comments.
6526
cde5ef40
YQ
65272014-06-12 Yao Qi <yao@codesourcery.com>
6528
6529 * varobj.c (varobj_pretty_printed_p): Rename to ...
6530 (varobj_is_dynamic_p): ... this. New function.
6531 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6532 (varobj_is_dynamic_p): Declare.
6533 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6534 (mi_print_value_p, varobj_update_one): Likewise.
6535
576ea091
YQ
65362014-06-12 Pedro Alves <pedro@codesourcery.com>
6537 Yao Qi <yao@codesourcery.com>
6538
6539 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6540 (varobj_get_iterator): Wrap up code for pretty-printer by
6541 "#if HAVE_PYTHON" and "#endif".
6542 (update_dynamic_varobj_children): Likewise.
6543
827f100c
YQ
65442014-06-12 Pedro Alves <pedro@codesourcery.com>
6545 Yao Qi <yao@codesourcery.com>
6546
6547 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6548 gdb_python_initialized is false. Move some code from varobj.c.
6549 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6550 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6551 (struct varobj_item): Moved to varobj-iter.h".
6552 (varobj_clear_saved_item): New function.
6553 (update_dynamic_varobj_children): Move python-related code to
6554 py-varobj.c.
6555 (free_variable): Call varobj_clear_saved_item and
6556 varobj_iter_delete.
6557
e5250216
YQ
65582014-06-12 Pedro Alves <pedro@codesourcery.com>
6559 Yao Qi <yao@codesourcery.com>
6560
6561 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6562 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6563 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6564 (py-varobj.o): New rule.
6565 * python/py-varobj.c: New file.
6566 * python/python-internal.h (py_varobj_get_iterator): Declare.
6567 * varobj-iter.h: New file.
6568 * varobj.c: Include "varobj-iter.h"
6569 (struct varobj) <child_iter>: Change its type from "PyObject *"
6570 to "struct varobj_iter *".
6571 <saved_item>: Likewise.
6572 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6573 [HAVE_PYTHON] (varobj_get_iterator): New function.
6574 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6575 python-specific code to python/py-varobj.c.
6576 (install_visualizer): Call varobj_iter_delete instead of
6577 Py_XDECREF.
6578 * varobj.h (varobj_ensure_python_env): Declare.
6579
5a2e0d6e
YQ
65802014-06-12 Yao Qi <yao@codesourcery.com>
6581
6582 * varobj.c (struct varobj_item): New structure.
6583 (create_child_with_value): Update declaration.
6584 (varobj_add_child): Replace arguments 'name' and 'value' with
6585 'item'. All callers updated.
6586 (install_dynamic_child): Likewise.
6587 (update_dynamic_varobj_children): Likewise.
6588 (varobj_add_child): Likewise.
6589 (create_child_with_value): Likewise.
6590
919b9a93
JB
65912014-06-11 Joel Brobecker <brobecker@adacore.com>
6592
6593 * NEWS: Create a new section for the next release branch.
6594 Rename the section of the current branch, now that it has
6595 been cut.
6596
71a55bdf
JB
65972014-06-11 Joel Brobecker <brobecker@adacore.com>
6598
6599 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6600 * version.in: Bump version to 7.8.50.DATE-cvs.
6601
364fe1f7
PA
66022014-06-11 Pedro Alves <palves@redhat.com>
6603
6604 PR remote/17028
6605 * ser-mingw.c (net_windows_socket_check_pending): New function.
6606 (net_windows_select_thread): Ignore spurious wakeups. Use
6607 net_windows_socket_check_pending.
6608 (net_windows_wait_handle): Check for pending events with
6609 ioctlsocket, through net_windows_socket_check_pending, instead of
6610 checking the socket's event.
6611
5a6c7709
SC
66122014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6613
6614 * python/python-internal.h (gdb_PyObject_GetAttrString)
6615 (gdb_PyObject_HasAttrString): New inline function definitions.
6616 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6617 char * of the second argument to PyObject_GetAttrString.
74228e77 6618
0e58ee40
JB
66192014-06-10 Joel Brobecker <brobecker@adacore.com>
6620
6621 * serial.c (serial_write): Fix index of character to be printed
6622 in call to serial_logchar when serial debug traces are enabled.
6623
d190df30
JB
66242014-06-10 Joel Brobecker <brobecker@adacore.com>
6625
6626 * gdbtypes (resolve_dynamic_range): Add function description.
6627
b4b01d36
PA
66282014-06-09 Pedro Alves <palves@redhat.com>
6629
6630 * linux-nat.c (linux_child_follow_fork): Initialize status with
6631 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6632 inner block. Only pass the signal to PTRACE_DETACH if in pass
6633 state.
6634
3657956b
GB
66352014-06-09 Gary Benson <gbenson@redhat.com>
6636
6637 * common/signals.c (gdb_signal_from_host): Reorder to separate
6638 the always-available ANSI-standard signals from the signals that
6639 require checking.
6640 (do_gdb_signal_to_host): Likewise.
6641 * proc-events.c (signal_table): Likewise.
6642
c077881a
HZ
66432014-06-08 Hui Zhu <hui@codesourcery.com>
6644
6645 * common/linux-ptrace.c (linux_disable_event_reporting): New
6646 function.
6647 * common/linux-ptrace.h (linux_disable_event_reporting): New
6648 declaration.
6649 * linux-nat.c (linux_child_follow_fork): Do a single step before
6650 detach.
6651
4186eb54
KS
66522014-06-07 Keith Seitz <keiths@redhat.com>
6653
6654 Revert:
6655 PR c++/16253
6656 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6657 from symbol_matches_domain in symtab.c. All local callers
6658 of symbol_matches_domain updated.
6659 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6660 search STRUCT_DOMAIN.
6661 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6662 independently. standard_lookup will do that automatically.
6663 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6664 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6665 (cp_lookup_symbol_in_namespace): Likewise.
6666 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6667 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6668 may return a STRUCT_DOMAIN match.
6669 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6670 * cp-support.c: Include language.h.
6671 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6672 VAR_DOMAIN.
6673 * psymtab.c (match_partial_symbol): Compare the requested
6674 domain with the symbol's domain directly.
6675 (lookup_partial_symbol): Likewise.
6676 * symtab.c (lookup_symbol_in_language): Explain when/why
6677 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6678 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6679 appropriate languages.
6680 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6681 and moved to ada-lang.c
6682 (lookup_block_symbol): Explain that this function only returns
6683 symbol matching the requested DOMAIN.
6684 Compare the requested domain with the symbol's domain directly.
6685 (iterate_over_symbols): Compare the requested domain with the
6686 symbol's domain directly.
6687 * symtab.h (symbol_matches_domain): Remove.
6688
25326a28 66892014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6690
6691 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6692 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6693 (gdbscm_guile_version_is_at_least): Declare.
6694 (gdbscm_scm_string_to_int): Declare.
6695 * guile/guile.c (gdbscm_guile_major_version): New global.
6696 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6697 (guile_datadir): New static global.
6698 (gdbscm_guile_data_directory): New function.
6699 (initialize_scheme_side): Update.
6700 (misc_guile_functions): Add guile-data-directory.
6701 (initialize_gdb_module): Fetch guile version number.
6702 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6703 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6704 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6705 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6706 comments.
6707 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6708 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6709 * guile/scm-value.c (gdbscm_value_to_string): Only call
6710 scm_port_conversion_strategy if Guile version >= 2.0.6.
6711
0a770bb2 67122014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6713
6714 * main.c (print_gdb_help): Add -q and --silent.
6715
73ba372c
GB
67162014-06-06 Gary Benson <gbenson@redhat.com>
6717
6718 * common/signals.c: Remove preprocessor conditionals for
6719 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6720 SIGSEGV and SIGTERM.
6721 * proc-events.c: Likewise.
6722
c33b2f12
MM
67232014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6724
6725 * symfile.c (symfile_free_objfile): Remove restriction to
6726 OBJF_USERLOADED.
6727 * symfile-mem.c (symbol_file_add_from_memory): Call
6728 add_target_sections_of_objfile.
6729
fb934770
LC
67302014-06-05 Ludovic Courtès <ludo@gnu.org>
6731
6732 * guile/scm-value.c (gdbscm_history_append_x): Use
6733 'vlscm_get_value_smob_arg_unsafe' instead of
6734 'vlscm_scm_to_value'.
6735
6ef284bd
SM
67362014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6737
6738 PR mi/15806
6739 * utils.c (printchar): Don't escape at all if quoter is NUL.
6740 Update function documentation to clarify effect of parameter
6741 QUOTER.
6742 * remote.c (escape_buffer): Pass '\\' as the quoter to
6743 fputstrn_unfiltered.
6744 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6745 generate the output.
6746 (mi_solib_unloaded): Same.
6747
270c9937
JB
67482014-06-05 Joel Brobecker <brobecker@adacore.com>
6749
6750 * development.sh: Delete.
6751 * Makefile.in (config.status): Adjust dependency on development.sh.
6752 * configure.ac: Adjust development.sh source call.
6753 * configure: Regenerate.
6754
16f691fb
DE
67552014-06-04 Doug Evans <xdje42@gmail.com>
6756
6757 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6758 is_scheme_bkpt, spec.
6759 (bpscm_make_breakpoint_smob): Initialize new members.
6760 (gdbscm_create_breakpoint_x): Split into two ...
6761 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6762 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6763 (scheme_function breakpoint_functions): Update.
6764 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6765 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6766 register-breakpoint!.
6767
ef7cab6b
JB
67682014-06-04 Joel Brobecker <brobecker@adacorer.com>
6769
6770 PR server/17023
6771 * mem-break.c (z_type_supported): Return zero if
6772 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6773
012370f6
TT
67742014-06-04 Tom Tromey <tromey@redhat.com>
6775
6776 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6777 value_from_contents_and_address_unresolved.
6778 (ada_template_to_fixed_record_type_1): Likewise.
6779 (ada_which_variant_applies): Likewise.
6780 * value.h (value_from_contents_and_address_unresolved): Declare.
6781 * value.c (value_from_contents_and_address_unresolved): New
6782 function.
6783 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6784 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6785 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6786
92e2a17f
TT
67872014-06-04 Tom Tromey <tromey@redhat.com>
6788
6789 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6790
c0939df1
TT
67912014-06-04 Tom Tromey <tromey@redhat.com>
6792
6793 * procfs.c (procfs_attach): Make "args" const.
6794 * windows-nat.c (windows_attach): Make "args" const.
6795 * nto-procfs.c (procfs_attach): Make "args" const.
6796 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6797 * go32-nat.c (go32_attach): Make "args" const.
6798 * gnu-nat.c (gnu_attach): Make "args" const.
6799 * darwin-nat.c (darwin_attach): Make "args" const.
6800 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6801 * linux-nat.c (linux_nat_attach): Make "args" const.
6802 * remote.c (extended_remote_attach_1, extended_remote_attach):
6803 Make "args" const.
6804 * target.h (struct target_ops) <to_attach>: Make "args" const.
6805 (find_default_attach): Likewise.
6806 * utils.c (parse_pid_to_attach): Make "args" const.
6807 * utils.h (parse_pid_to_attach): Update.
6808
8eaff7cd
TT
68092014-06-04 Tom Tromey <tromey@redhat.com>
6810
6811 * target-delegates.c: Rebuild.
6812 * target.c (default_thread_address_space): New function.
6813 (target_thread_address_space): Simplify.
6814 * target.h (struct target_ops) <to_thread_address_space>: Add
6815 TARGET_DEFAULT_FUNC.
6816
1913f160
DE
68172014-06-04 Doug Evans <xdje42@gmail.com>
6818
6819 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6820
70ad5bff
MM
68212014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6822
6823 * record-btrace.c: Include event-loop.h and inf-loop.h.
6824 (record_btrace_resume_exec_dir)
6825 (record_btrace_async_inferior_event_handler)
6826 (record_btrace_handle_async_inferior_event): New.
6827 (record_btrace_open): Create async event handler.
6828 (record_btrace_close): Delete async event handler.
6829 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6830 Mark async event handler.
6831 (record_btrace_execution_direction): New.
6832 (init_record_btrace_ops): Initialize to_execution_direction.
6833
b6210538
DE
68342014-06-03 Doug Evans <xdje42@gmail.com>
6835
6836 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6837 (gdbscm_make_parameter): Ditto.
6838
a5b1fd27
DE
68392014-06-03 Doug Evans <dje@google.com>
6840
6841 * exec.c (exec_close_1): Call clear_section_table instead of
6842 resize_section_table.
6843 (clear_section_table): New function.
6844 (resize_section_table): Make static. Rename arg num_added to
6845 adjustment.
6846 * exec.h (clear_section_table): Declare.
6847 (resize_section_table): Delete.
6848 * progspace.c (release_program_space): Call clear_section_table
6849 instead of resize_section_table.
6850
0c6e92a5
SC
68512014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6852
6853 * NEWS (Python Scripting): Add entry about the new xmethods
6854 feature.
6855
883964a7
SC
68562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6857
6858 * python/py-xmethods.c: New file.
6859 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6860 (objfpy_dealloc): XDECREF on the new xmethods field.
6861 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6862 field.
6863 (objfpy_get_xmethods): New function.
6864 (objfile_getset): New entry 'xmethods'.
6865 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6866 (pspy_dealloc): XDECREF on the new xmethods field.
6867 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6868 field.
6869 (pspy_get_xmethods): New function.
6870 (pspace_getset): New entry 'xmethods'.
6871 * python/python-internal.h: Add declarations for new functions.
6872 * python/python.c (_initialize_python): Invoke
6873 gdbpy_initialize_xmethods.
6874 * python/lib/gdb/__init__.py (xmethods): New
6875 attribute.
6876 * python/lib/gdb/xmethod.py: New file.
6877 * python/lib/gdb/command/xmethods.py: New file.
6878
58992dc5
SC
68792014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6880
6881 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6882 best match method returned by find_overload_match is an xmethod.
6883 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6884 the best matching operator returned by find_overload_match is an
6885 xmethod.
6886 * valops.c: #include "extension.h".
6887 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6888 Return void. The list of matching source methods is returned in
6889 "fn_list" and a vector of matching debug method workers is
6890 returned in "xm_worker_vec". Update all callers.
6891 (value_find_oload_method_list): Likewise.
6892 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6893 non-NULL, then the index of the best matching method in this
6894 vector is returned. Update all callers.
6895 (find_overload_match): Include xmethods while performing overload
6896 resolution.
6897
e81e7f5e
SC
68982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6899
6900 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6901 * extension-priv.h (struct extension_language_ops): Add the
6902 xmethod interface.
6903 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6904 get_matching_xmethod_workers, get_xmethod_argtypes,
6905 invoke_xmethod, free_xmethod_worker,
6906 free_xmethod_worker_vec): New functions.
6907 * extension.h: #include "common/vec.h".
6908 New function declarations.
6909 (struct xmethod_worker): New struct.
6910 (VEC (xmethod_worker_ptr)): New vector type.
6911 (xmethod_worker_ptr): New typedef.
6912 (xmethod_worker_vec): Likewise.
6913 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6914 builtin_type.
6915 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6916 (struct builtin_type): New field "xmethod".
6917 * valarith.c (value_ptradd): Assert that the value argument is not
6918 lval_xcallable.
6919 * valops.c (value_must_coerce_to_target): Return 0 for
6920 lval_xcallable values.
6921 * value.c (struct value): New field XM_WORKER in the field
6922 LOCATION.
6923 (value_address, value_raw_address): Return 0 for lval_xcallable
6924 values.
6925 (set_value_address): Assert that the value is not an
6926 lval_xcallable.
6927 (value_free): Free the associated xmethod worker when freeing
6928 lval_xcallable values.
6929 (set_value_component_location): Assert that the WHOLE value is not
6930 lval_xcallable.
6931 (value_of_xmethod, call_xmethod): New functions.
6932 * value.h: Declare "struct xmethod_worker".
6933 Declare new functions value_of_xmethod, call_xmethod.
6934
ef370185
JB
69352014-06-03 Joel Brobecker <brobecker@adacore.com>
6936 Pedro Alves <palves@redhat.com>
6937
6938 PR breakpoints/17000
6939 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6940 New function, extracted from software_breakpoint_inserted_here_p.
6941 (software_breakpoint_inserted_here_p): Replace factored out code
6942 by call to find_non_raw_software_breakpoint_inserted_here.
6943 (bp_target_info_copy_insertion_state): New function.
6944 (bkpt_insert_location): Handle the case of a single-step
6945 breakpoint already inserted at the same address.
6946 (bkpt_remove_location): Handle the case of a single-step
6947 breakpoint still inserted at the same address.
6948 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6949 breakpoint already inserted at the same address.
6950 (deprecated_remove_raw_breakpoint): Handle the case of a
6951 non-raw breakpoint still inserted at the same address.
6952 (find_single_step_breakpoint): New function, extracted from
6953 single_step_breakpoint_inserted_here_p.
6954 (find_single_step_breakpoint): New function,
6955 factored out from single_step_breakpoint_inserted_here_p.
6956 (single_step_breakpoint_inserted_here_p): Reimplement.
6957
1e2ccb61
BM
69582014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6959
6960 Pushed by Joel Brobecker <brobecker@adacore.com>
6961 * source.c (show_substitute_path_command): Fix display of matching
6962 substitution rules.
6963
d3448d85
GB
69642014-06-03 Gary Benson <gbenson@redhat.com>
6965
6966 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6967
06eb1586
DE
69682014-06-02 Doug Evans <xdje42@gmail.com>
6969
6970 Add parameter support for Guile.
6971 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6972 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6973 (scm-param.o): New rule.
6974 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6975 (gdbscm_misc_error): Declare.
6976 (gdbscm_canonicalize_command_name): Declare.
6977 (gdbscm_scm_to_host_string): Declare.
6978 (gdbscm_scm_from_host_string): Declare.
6979 (gdbscm_initialize_parameters): Declare.
6980 * guile/guile.c (initialize_gdb_module): Call
6981 gdbscm_initialize_parameters.
6982 * guile/lib/gdb.scm: Export parameter symbols.
6983 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6984 cmdscm_canonicalize_name and made public. All callers updated.
6985 * guile/scm-exception.c (gdbscm_misc_error): New function.
6986 * guile/scm-param.c: New file.
6987 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6988 (gdbscm_scm_to_host_string): New function.
6989 (gdbscm_scm_from_host_string): New function.
6990 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6991
e698b8c4
DE
69922014-06-02 Doug Evans <xdje42@gmail.com>
6993
6994 Add command support for Guile.
6995 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6996 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6997 (scm-cmd.o): New rule.
6998 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6999 (gdbscm_user_error_p): Declare.
7000 (gdbscm_parse_command_name): Declare.
7001 (gdbscm_valid_command_class_p): Declare.
7002 (gdbscm_initialize_commands): Declare.
7003 * guile/guile.c (initialize_gdb_module): Call
7004 gdbscm_initialize_commands.
7005 * guile/lib/gdb.scm: Export command symbols.
7006 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7007 (throw-user-error): New function.
7008 * guile/scm-cmd.c: New file.
7009 * guile/scm-exception.c (user_error_symbol): New static global.
7010 (gdbscm_user_error_p): New function.
7011 (gdbscm_initialize_exceptions): Set user_error_symbol.
7012 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7013
fb1f94b0
PM
70142014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7015
7016 * top.c (command_loop): Handle comments here...
7017 (command_line_input): ... not here.
7018
ded03782
DE
70192014-06-02 Doug Evans <xdje42@gmail.com>
7020
7021 Add progspace support for Guile.
7022 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7023 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7024 (scm-progspace.o): New rule.
7025 * guile/guile-internal.h (pspace_smob): New typedef.
7026 (psscm_pspace_smob_pretty_printers): Declare.
7027 (psscm_pspace_smob_from_pspace): Declare.
7028 (psscm_scm_from_pspace): Declare.
7029 * guile/guile.c (initialize_gdb_module): Call
7030 gdbscm_initialize_pspaces.
7031 * guile/lib/gdb.scm: Export progspace symbols.
7032 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7033 support.
7034 (append-pretty-printer!): Ditto.
7035 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7036 Implement.
7037 * guile/scm-progspace.c: New file.
7038
397998fc
AM
70392014-06-03 Alan Modra <amodra@gmail.com>
7040
7041 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7042 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7043
6aa5f3a6
DE
70442014-06-02 Doug Evans <dje@google.com>
7045
7046 Add support for skeletonless type units.
7047 * dwarf2read.c (struct dwarf2_per_objfile): New member
7048 n_allocated_type_units.
7049 (struct dwarf2_per_objfile) <tu_stats>: New member
7050 nr_all_type_units_reallocs.
7051 (create_signatured_type_table_from_index): Initialize
7052 n_allocated_type_units
7053 (create_all_type_units): Ditto.
7054 (add_type_unit): Move up in file. New arg slot.
7055 All callers updated. Increase space for all_type_units more
7056 efficiently.
7057 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7058 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7059 (lookup_dwp_signatured_type): Ditto.
7060 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7061 All callers updated.
7062 (build_type_psymtabs_1): Leave type_unit_groups as
7063 NULL if no TUs present.
7064 (print_tu_stats): New function.
7065 (process_skeletonless_type_unit): New function.
7066 (process_dwo_file_for_skeletonless_type_units): New
7067 function.
7068 (process_skeletonless_type_units): New function.
7069 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7070 Call print tu_stats if debugging enabled.
7071
41fac0cf
PA
70722014-06-02 Pedro Alves <palves@redhat.com>
7073
7074 * breakpoint.c (build_target_command_list): Don't build a command
7075 list if we have any duplicate location that isn't a dprintf.
7076
cd1608cc
PA
70772014-06-02 Pedro Alves <palves@redhat.com>
7078
7079 * breakpoint.c (dprintf_breakpoint_hit): New function.
7080 (initialize_breakpoint_ops): Install it as dprintf's
7081 breakpoint_hit method.
7082
486ef3b9
JB
70832014-06-02 Joel Brobecker <brobecker@adacore.com>
7084
7085 * source.c (substitute_path_rule_matches): Simplify using
7086 filename_ncmp instead of FILENAME_CMP.
7087
230cd560
JB
70882014-06-02 Joel Brobecker <brobecker@adacore.com>
7089
7090 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7091
16954d5d
LC
70922014-06-01 Ludovic Courtès <ludo@gnu.org>
7093
7094 * configure.ac: When Guile is available, check for the
7095 availability of 'scm_new_smob'.
7096 * configure, config.h.in: Regenerate.
7097 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7098 function.
7099
53e8a631
AB
71002014-05-30 Andrew Burgess <aburgess@broadcom.com>
7101
7102 * frame.c (struct frame_info): Add stop_string field.
7103 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7104 (get_prev_frame_always): Old content moved into
7105 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7106 TRY_CATCH, handle MEMORY_ERROR exceptions.
7107 (frame_stop_reason_string): New function definition.
7108 * frame.h (unwind_stop_reason_to_string): Extend comment to
7109 mention frame_stop_reason_string.
7110 (frame_stop_reason_string): New function declaration.
7111 * stack.c (frame_info): Switch to frame_stop_reason_string.
7112 (backtrace_command_1): Switch to frame_stop_reason_string.
7113 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7114 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7115 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7116
70e38b8e
AB
71172014-05-30 Andrew Burgess <aburgess@broadcom.com>
7118
7119 * frame.c (frame_stop_reason_string): Rename to ...
7120 (unwind_stop_reason_to_string): this.
7121 * frame.h (frame_stop_reason_string): Rename to ...
7122 (unwind_stop_reason_to_string): this.
7123 * stack.c (frame_info): Update call to frame_stop_reason_string.
7124 (backtrace_command_1): Likewise.
7125 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7126 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7127
938f0e2f
AB
71282014-05-30 Andrew Burgess <aburgess@broadcom.com>
7129
7130 * frame.c (remove_prev_frame): New function.
7131 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7132 remove_prev_frame.
7133
a09dd441
PA
71342014-05-29 Pedro Alves <palves@redhat.com>
7135
7136 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7137 and make it const. When a single-step decays to a continue,
7138 clear 'step', not 'hw_step'. Pass whether the caller wanted
7139 to step to user_visible_resume_ptid, not what we ask the
7140 target to do.
7141
bdc36728
PA
71422014-05-29 Pedro Alves <palves@redhat.com>
7143
7144 * infrun.c (process_event_stop_test, handle_step_into_function)
7145 (handle_step_into_function_backward): Adjust.
7146 Don't set the even thread's stop_step and call stop_waiting before
7147 calling end_stepping_range. Instead do that ...
7148 (end_stepping_range): ... here. Take an ecs pointer parameter.
7149
22bcd14b
PA
71502014-05-29 Pedro Alves <palves@redhat.com>
7151
7152 * infrun.c (stop_stepping): Rename to ...
7153 (stop_waiting): ... this.
7154 (proceed): Update comment.
7155 (process_event_stop_test, handle_inferior_event)
7156 (handle_signal_stop, handle_step_into_function)
7157 (handle_step_into_function_backward): Update.
7158
4ae57c05
PA
71592014-05-29 Pedro Alves <palves@redhat.com>
7160
7161 * infcall.c (run_inferior_call): Don't check whether the current
7162 thread is running after the proceed call.
7163
329ea579
PA
71642014-05-29 Pedro Alves <palves@redhat.com>
7165 Tom Tromey <tromey@redhat.com>
7166
7167 * NEWS: Mention "maint set target-async", "set mi-async", and that
7168 background execution commands are now always available.
7169 * target.h (target_async_permitted): Update comment.
7170 * target.c (target_async_permitted, target_async_permitted_1):
7171 Default to 1.
7172 (set_target_async_command): Rename to ...
7173 (maint_set_target_async_command): ... this.
7174 (show_target_async_command): Rename to ...
7175 (maint_show_target_async_command): ... this.
7176 (_initialize_target): Adjust.
7177 * infcmd.c (prepare_execution_command): Make extern.
7178 * inferior.h (prepare_execution_command): Declare.
7179 * infrun.c (set_observer_mode): Leave target async alone.
7180 * mi/mi-interp.c (mi_interpreter_init): Install
7181 mi_on_sync_execution_done as sync_execution_done observer.
7182 (mi_on_sync_execution_done): New function.
7183 (mi_execute_command_input_handler): Don't print the prompt if we
7184 just started a synchronous command with an async target.
7185 (mi_on_resume): Check sync_execution before printing prompt.
7186 * mi/mi-main.h (mi_async_p): Declare.
7187 * mi/mi-main.c: Include gdbcmd.h.
7188 (mi_async_p): New function.
7189 (mi_async, mi_async_1): New globals.
7190 (set_mi_async_command, show_mi_async_command, mi_async): New
7191 functions.
7192 (exec_continue): Call prepare_execution_command.
7193 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7194 (mi_execute_async_cli_command): Use mi_async_p.
7195 (_initialize_mi_main): Install "set mi-async". Make
7196 "target-async" a deprecated alias.
7197
92bcb5f9
PA
71982014-05-29 Pedro Alves <palves@redhat.com>
7199
7200 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7201 (_initialize_cli_interp): Adjust.
7202 * event-loop.c: Include "observer.h".
7203 (start_event_loop): Notify 'command_error' observers instead of
7204 calling display_gdb_prompt. Remove FIXME comment.
7205 * event-top.c (display_gdb_prompt): Remove call into the
7206 interpreters.
7207 * inf-loop.c: Include "observer.h".
7208 (inferior_event_handler): Notify 'command_error' observers instead
7209 of calling display_gdb_prompt.
7210 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7211 observers instead of calling display_gdb_prompt.
7212 * interps.c (interp_set): Don't call display_gdb_prompt.
7213 (current_interp_display_prompt_p): Delete.
7214 * interps.h (interp_prompt_p): Delete declaration.
7215 (interp_prompt_p_ftype): Delete.
7216 (struct interp_procs) <prompt_proc_p>: Delete field.
7217 (current_interp_display_prompt_p): Delete declaration.
7218 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7219 (_initialize_mi_interp): Adjust.
7220 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7221 'command_error' observers.
7222 (tui_on_sync_execution_done, tui_on_command_error): New
7223 functions.
7224 (tui_display_prompt_p): Delete.
7225 (_initialize_tui_interp): Adjust.
7226
fd664c91
PA
72272014-05-29 Pedro Alves <palves@redhat.com>
7228
7229 PR gdb/13860
7230 * cli/cli-interp.c: Include infrun.h and observer.h.
7231 (cli_uiout, cli_interp): New globals.
7232 (cli_on_signal_received, cli_on_end_stepping_range)
7233 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7234 functions.
7235 (cli_interpreter_init): Install them as 'end_stepping_range',
7236 'signal_received' 'signal_exited', 'exited' and 'no_history'
7237 observers.
7238 (_initialize_cli_interp): Remove cli_interp local.
7239 * infrun.c (handle_inferior_event): Call the several stop reason
7240 observers instead of printing the stop reason directly.
7241 (end_stepping_range): New function.
7242 (print_end_stepping_range_reason, print_signal_exited_reason)
7243 (print_exited_reason, print_signal_received_reason)
7244 (print_no_history_reason): Make static, and add an uiout
7245 parameter. Print to that instead of to CURRENT_UIOUT.
7246 * infrun.h (print_end_stepping_range_reason)
7247 (print_signal_exited_reason, print_exited_reason)
7248 (print_signal_received_reason print_no_history_reason): New
7249 declarations.
7250 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7251 'mi_uiout'.
7252 <cli_uiout>: New field.
7253 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7254 uiout for CLI output. Install 'signal_received',
7255 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7256 observers.
7257 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7258 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7259 (mi_on_no_history): New functions.
7260 (ui_out_free_cleanup): Delete function.
7261 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7262 instead use the one already stored in the MI interpreter data.
7263 (mi_ui_out): Adjust.
7264 * tui/tui-interp.c: Include infrun.h and observer.h.
7265 (tui_interp): New global.
7266 (tui_on_signal_received, tui_on_end_stepping_range)
7267 (tui_on_signal_exited, tui_on_exited)
7268 (tui_on_no_history): New functions.
7269 (tui_init): Install them as 'end_stepping_range',
7270 'signal_received' 'signal_exited', 'exited' and 'no_history'
7271 observers.
7272 (_initialize_tui_interp): Delete tui_interp local.
7273
8817a6f2
PA
72742014-05-29 Pedro Alves <palves@redhat.com>
7275
7276 PR gdb/15713
7277 * linux-nat.c (linux_nat_resume_callback): Rename the second
7278 parameter to 'except'. Skip LP if it points to EXCEPT.
7279 (linux_nat_resume): Don't mark the event lwp as not stopped
7280 before resuming sibling lwps. Instead ask
7281 linux_nat_resume_callback to skip the event lwp. Mark it as not
7282 stopped after actually resuming it.
7283 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7284 resuming it.
7285 (wait_lwp): Mark the lwp as stopped here.
7286 (stop_wait_callback): Mark the lwp as not stopped right after
7287 resuming it. Don't mark lwps as stopped here.
7288 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7289 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7290
251bde03
PA
72912014-05-29 Pedro Alves <palves@redhat.com>
7292
7293 PR PR15693
7294 * infrun.c (resume): Determine how much to resume depending on
7295 whether the caller wanted a step, not whether we can hardware step
7296 the target. Mark all threads that we intend to run as running,
7297 unless we're calling an inferior function.
7298 (normal_stop): If the thread is running an infcall, don't finish
7299 thread state.
7300 * target.c (target_resume): Don't mark threads as running here.
7301
7f3c0343
JB
73022014-05-28 Joel Brobecker <brobecker@adacore.com>
7303
7304 * serial.c (_initialize_serial): Remove support for
7305 the "set remotebaud" and "show remotebaud" commands.
7306 * NEWS: Add entry documenting the removal of that command.
7307
ee34b3f9
YQ
73082014-05-28 Yao Qi <yao@codesourcery.com>
7309
7310 * charset.c: Fix typo in comments.
7311
add6c04d
GB
73122014-05-27 Gary Benson <gbenson@redhat.com>
7313
7314 * utils.c (internal_vproblem): Prompt for a bug report.
7315
92c48fc5
AW
73162014-05-26 Andy Wingo <wingo@igalia.com>
7317
7318 * guile/scm-arch.c (arscm_mark_arch_smob):
7319 * guile/scm-block.c (bkscm_mark_block_smob)
7320 (bkscm_mark_block_syms_progress_smob):
7321 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7322 * guile/scm-exception.c (exscm_mark_exception_smob):
7323 * guile/scm-frame.c (frscm_mark_frame_smob):
7324 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7325 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7326 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7327 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7328 (ppscm_mark_pretty_printer_worker_smob):
7329 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7330 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7331 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7332 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7333 mark functions.
7334 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7335 function.
7336
b2715b27
AW
73372014-05-26 Andy Wingo <wingo@igalia.com>
7338 Doug Evans <xdje42@gmail.com>
7339
7340 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7341 empty_base_class. All uses updated.
7342 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7343 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7344 Adapt all callers.
7345 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7346 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7347 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7348 (gdbscm_gsmob_has_property_p, add_property_name)
7349 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7350 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7351 (gdb-object-has-property?, gdb-object-properties): Remove.
7352 (gdb-object-kind): Renamed from gsmob-kind.
7353
214ab2da
AW
73542014-05-26 Andy Wingo <wingo@igalia.com>
7355
7356 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7357 * configure: Regenerate.
7358
589fdceb
MM
73592014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7360
7361 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7362
67b5c0c1
MM
73632014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7364
7365 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7366 (replay_memory_access_read_only, replay_memory_access_read_write)
7367 (replay_memory_access_types, replay_memory_access)
7368 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7369 (cmd_set_record_btrace, cmd_show_record_btrace)
7370 (cmd_show_replay_memory_access): New.
7371 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7372 (record_btrace_remove_breakpoint): Replace
7373 record_btrace_allow_memory_access with replay_memory_access.
7374 (_initialize_record_btrace): Add commands.
7375 * NEWS: Announce it.
7376
036cd381
RR
73772014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7378
7379 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7380
c77c1e42
RR
73812014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7382
7383 * MAINTAINERS (Write After Approval): Move self back from
7384 paper trail.
7385
45741a9c
PA
73862014-05-22 Pedro Alves <palves@redhat.com>
7387
7388 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7389 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7390 (disable_randomization, enum exec_direction_kind)
7391 (execution_direction, stop_registers, start_remote)
7392 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7393 (wait_for_inferior, normal_stop, get_last_target_status)
7394 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7395 (insert_step_resume_breakpoint_at_sal)
7396 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7397 (set_step_info, print_stop_event, signal_stop_state)
7398 (signal_print_state, signal_pass_state, signal_stop_update)
7399 (signal_print_update, signal_pass_update)
7400 (update_signals_program_target, clear_exit_convenience_vars)
7401 (displaced_step_dump_bytes, update_observer_mode)
7402 (signal_catch_update, gdb_signal_from_command): Move
7403 declarations ...
7404 * infrun.h: ... to this new file.
7405 * amd64-tdep.c: Include infrun.h.
7406 * annotate.c: Include infrun.h.
7407 * arch-utils.c: Include infrun.h.
7408 * arm-linux-tdep.c: Include infrun.h.
7409 * arm-tdep.c: Include infrun.h.
7410 * break-catch-sig.c: Include infrun.h.
7411 * breakpoint.c: Include infrun.h.
7412 * common/agent.c: Include infrun.h instead of inferior.h.
7413 * corelow.c: Include infrun.h.
7414 * event-top.c: Include infrun.h.
7415 * go32-nat.c: Include infrun.h.
7416 * i386-tdep.c: Include infrun.h.
7417 * inf-loop.c: Include infrun.h.
7418 * infcall.c: Include infrun.h.
7419 * infcmd.c: Include infrun.h.
7420 * infrun.c: Include infrun.h.
7421 * linux-fork.c: Include infrun.h.
7422 * linux-nat.c: Include infrun.h.
7423 * linux-thread-db.c: Include infrun.h.
7424 * monitor.c: Include infrun.h.
7425 * nto-tdep.c: Include infrun.h.
7426 * procfs.c: Include infrun.h.
7427 * record-btrace.c: Include infrun.h.
7428 * record-full.c: Include infrun.h.
7429 * remote-m32r-sdi.c: Include infrun.h.
7430 * remote-mips.c: Include infrun.h.
7431 * remote-notif.c: Include infrun.h.
7432 * remote-sim.c: Include infrun.h.
7433 * remote.c: Include infrun.h.
7434 * reverse.c: Include infrun.h.
7435 * rs6000-tdep.c: Include infrun.h.
7436 * s390-linux-tdep.c: Include infrun.h.
7437 * solib-irix.c: Include infrun.h.
7438 * solib-osf.c: Include infrun.h.
7439 * solib-svr4.c: Include infrun.h.
7440 * target.c: Include infrun.h.
7441 * top.c: Include infrun.h.
7442 * windows-nat.c: Include infrun.h.
7443 * mi/mi-interp.c: Include infrun.h.
7444 * mi/mi-main.c: Include infrun.h.
7445 * python/py-threadevent.c: Include infrun.h.
7446
98eb56a4
PA
74472014-05-22 Pedro Alves <palves@redhat.com>
7448
7449 * infrun.c (handle_inferior_event): Store the exit code for
7450 --return-child-result here, instead of ...
7451 (print_exited_reason): ... here.
7452
17b2616c
PA
74532014-05-21 Pedro Alves <palves@redhat.com>
7454
7455 PR gdb/13860
7456 * gdbthread.h (struct thread_control_state): New field
7457 `command_interp'.
7458 * infrun.c (follow_fork): Copy the new thread control field to the
7459 child fork thread.
7460 (clear_proceed_status_thread): Clear the new thread control field.
7461 (proceed): Set the new thread control field.
7462 * interps.h (command_interp): Declare.
7463 * interps.c (command_interpreter): New global.
7464 (command_interp): New function.
7465 (interp_exec): Set `command_interpreter' while here.
7466 * cli-out.c (cli_uiout_dtor): New function.
7467 (cli_ui_out_impl): Install it.
7468 * mi/mi-interp.c: Include cli-out.h.
7469 (mi_cmd_interpreter_exec): Add comment.
7470 (restore_current_uiout_cleanup): New function.
7471 (ui_out_free_cleanup): New function.
7472 (mi_on_normal_stop): If finishing an execution command started by
7473 a CLI command, or any kind of breakpoint-like event triggered,
7474 print the stop event to the output (CLI) stream.
7475 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7476
5166082f
PA
74772014-05-21 Pedro Alves <palves@redhat.com>
7478
7479 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7480 current source line having changed.
7481 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7482 * infrun.c (normal_stop): Adjust call to
7483 set_current_sal_from_frame.
7484 * source.c (clear_lines_listed_range): New function.
7485 (set_current_source_symtab_and_line, identify_source_line): Clear
7486 the lines listed range.
7487 (line_info): Handle the first "info line" after the current source
7488 line having changed.
7489 * stack.c (print_stack_frame): Remove center handling.
7490 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7491 center sal.line.
7492
c1ee2fb3
PA
74932014-05-21 Pedro Alves <palves@redhat.com>
7494
7495 * inf-child.c (inf_child_mourn_inferior): New function.
7496 * inf-child.h (inf_child_mourn_inferior): New declaration.
7497 * darwin-nat.c (darwin_mourn_inferior): Use
7498 inf_child_mourn_inferior.
7499 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7500 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7501 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7502 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7503 * windows-nat.c (windows_mourn_inferior): Likewise.
7504
5c6d4fb2
DE
75052014-05-21 Doug Evans <xdje42@gmail.com>
7506
250748cb 7507 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7508
4a2722c5
DE
75092014-05-21 Doug Evans <xdje42@gmail.com>
7510
17292b30 7511 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7512 (gdbscm_out_of_range_error): Ditto.
7513 (gdbscm_memory_error): Ditto.
250748cb
DE
7514 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7515 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7516 (gdbscm_out_of_range_error): Update.
7517 (gdbscm_memory_error): Update.
7518 (gdbscm_scm_to_target_string_unsafe): Delete.
7519
6a3cb8e8
PA
75202014-05-21 Pedro Alves <palves@redhat.com>
7521
7522 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7523 globals.
7524 (inf_child_open_target): New function.
7525 (inf_child_open): Use inf_child_open_target to push the target
7526 instead of erroring out.
7527 (inf_child_disconnect, inf_child_close)
7528 (inf_child_maybe_unpush_target): New functions.
7529 (inf_child_target): Install inf_child_disconnect and
7530 inf_child_close. Store a pointer to the returned object.
7531 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7532 declarations.
7533 * target.c (auto_connect_native_target): New global.
7534 (show_default_run_target): New function.
7535 (find_default_run_target): Return NULL if automatically connecting
7536 to the native target is disabled.
7537 (_initialize_target): Install set/show auto-connect-native-target.
7538 * NEWS: Mention "set auto-connect-native-target", and "target
7539 native".
7540 * linux-nat.c (super_close): New global.
7541 (linux_nat_close): Call super_close.
7542 (linux_nat_add_target): Store a pointer to the base class's
7543 to_close method.
7544 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7545 inf_child_maybe_unpush.
7546 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7547 already pushed.
7548 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7549 the inferior. Use inf_child_maybe_unpush_target.
7550 (inf_ttrace_attach): Don't push the target if it is already
7551 pushed.
7552 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7553 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7554 after mourning the inferior. Use inf_child_maybe_unpush_target.
7555 (darwin_attach_pid): Don't push the target if it is already
7556 pushed.
7557 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7558 mourning the inferior. Use inf_child_maybe_unpush_target.
7559 (gnu_detach): Use inf_child_maybe_unpush_target.
7560 * go32-nat.c (go32_create_inferior): Don't push the target if it
7561 is already pushed.
7562 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7563 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7564 (procfs_open): Rename to ...
7565 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7566 comments. Can target_preopen before changing node. Call
7567 inf_child_open_target to push the target explicitly.
7568 (procfs_attach): Don't push the target if it is already pushed.
7569 (procfs_detach): Use inf_child_maybe_unpush_target.
7570 (procfs_create_inferior): Don't push the target if it is already
7571 pushed.
7572 (nto_native_ops): New global.
7573 (procfs_open): Reimplement.
7574 (procfs_native_open): New function.
7575 (init_procfs_targets): Install procfs_native_open as to_open of
7576 "target native". Store a pointer to the "native" target in
7577 nto_native_ops.
7578 * procfs.c (procfs_attach): Don't push the target if it is already
7579 pushed.
7580 (procfs_detach): Use inf_child_maybe_unpush_target.
7581 (procfs_mourn_inferior): Only unpush the target after mourning the
7582 inferior. Use inf_child_maybe_unpush_target.
7583 (procfs_init_inferior): Don't push the target if it is already
7584 pushed.
7585 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7586 if it is already pushed.
7587
930ee1b1
PA
75882014-05-21 Pedro Alves <palves@redhat.com>
7589
7590 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7591 and "procfs" targets are now called "native" instead.
7592
1f5d1b13
PA
75932014-05-21 Pedro Alves <palves@redhat.com>
7594
7595 * go32-nat.c (go32_open): Delete.
7596 (go32_target): Don't override the to_open method.
7597
132f8e03
PA
75982014-05-21 Pedro Alves <palves@redhat.com>
7599
7600 * nto-procfs.c (procfs_can_run): New function.
7601 (nto_procfs_ops): New global.
7602 (init_procfs_targets): New, based on procfs_target. Install
7603 "target native" in addition to "target procfs".
7604 (_initialize_procfs): Call init_procfs_targets instead of adding
7605 the target here.
7606
03c136c3
PA
76072014-05-21 Pedro Alves <palves@redhat.com>
7608
7609 * windows-nat.c (windows_target): Don't override to_shortname,
7610 to_longname or to_doc.
7611
a635d0f3
PA
76122014-05-21 Pedro Alves <palves@redhat.com>
7613
7614 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7615 to_doc.
7616
4f9b5133
PA
76172014-05-21 Pedro Alves <palves@redhat.com>
7618
7619 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7620 to_shortname, to_longname or to_doc.
7621
bc85afde
PA
76222014-05-21 Pedro Alves <palves@redhat.com>
7623
7624 * go32-nat.c (go32_target): Don't override to_shortname,
7625 to_longname or to_doc.
7626
4ebfc96e
PA
76272014-05-21 Pedro Alves <palves@redhat.com>
7628
7629 * inf-child.c (inf_child_open): Remove mention of "child".
7630 (inf_child_target): Rename target to "native" instead of "child".
7631
2648dfed
AA
76322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7633
7634 * Makefile.in (SFILES): Delete "regset.c".
7635 (COMMON_OBS): Delete "regset.o".
7636 * regset.c: Remove.
7637 * regset.h (regset_alloc): Delete prototype.
7638
b13feb94
AA
76392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7640
7641 * sparc-linux-tdep.c (sparc32_linux_gregset)
7642 (sparc32_linux_fpregset): New static regset structures.
7643 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7644 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7645 'fpregset' fields.
7646 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7647 (sparc64_linux_fpregset): New static regset structures.
7648 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7649 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7650 New static regset structures.
7651 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7652 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7653 New static regset structures.
7654 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7655 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7656 New static regset structures.
7657 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7658 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7659 New static regset structures.
7660 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7661
b4fd25c9
AA
76622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7663
7664 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7665 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7666 register maps ("regmaps") from "*regset" to "*regmap". Do this
7667 for all regmap types and variables.
7668 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7669 (sparc32_linux_supply_core_gregset)
7670 (sparc32_linux_collect_core_gregset)
7671 (sparc32_linux_supply_core_fpregset)
7672 (sparc32_linux_collect_core_fpregset): Likewise.
7673 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7674 (sparc_gregmap, sparc_fpregmap): ... these.
7675 (sparc_supply_gregset, sparc_collect_gregset)
7676 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7677 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7678 (_initialize_sparc_nat): Rename regmaps.
7679 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7680 (sparc_gregmap, sparc_fpregmap): ... these.
7681 (sparc_supply_gregset, sparc_collect_gregset)
7682 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7683 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7684 Rename macros to...
7685 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7686 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7687 Likewise.
7688 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7689 Rename to...
7690 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7691 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7692 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7693 regmaps.
7694 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7695 (sparc32_bsd_fpregset): Rename to...
7696 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7697 (sparc32_bsd_fpregmap): ... these.
7698 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7699 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7700 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7701 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7702 (struct sparc_gregmap, struct sparc_fpregmap)
7703 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7704 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7705 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7706 (sparc32_supply_regset, sparc32_collect_gregset)
7707 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7708 prototypes.
7709 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7710 (sparc64_linux_ptrace_gregmap): ... this.
7711 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7712 (_initialize_sparc64_linux_nat): Rename regmaps.
7713 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7714 (sparc64_linux_core_gregmap): ... this.
7715 (sparc64_linux_supply_core_gregset)
7716 (sparc64_linux_collect_core_gregset)
7717 (sparc64_linux_supply_core_fpregset)
7718 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7719 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7720 (sparc64_sol2_fpregset): Rename to...
7721 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7722 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7723 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7724 regmaps.
7725 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7726 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7727 (sparc64_bsd_fpregset): Rename to...
7728 (struct sparc_gregmap, sparc64_sol2_gregmap)
7729 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7730 (sparc64_bsd_fpregmap): ... these.
7731 (sparc64_supply_gregset, sparc64_collect_gregset)
7732 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7733 prototypes.
7734 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7735 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7736 (sparc64fbsd_gregmap): ... this.
7737 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7738 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7739 Rename regmaps.
7740 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7741 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7742 (sparc64nbsd_collect_fpregset): Likewise.
7743 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7744 (sparc64nbsd_gregmap): ... this.
7745 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7746 regmaps.
7747 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7748 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7749 (sparc64obsd_gregmap): ... this.
7750 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7751 regmaps.
7752 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7753 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7754 (sparc32nbsd_gregmap): ... this.
7755 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7756 regmaps.
7757
8fea3224
AA
77582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7759
7760 * score-tdep.c (score7_linux_gregset): New static regset
7761 structure.
7762 (score7_linux_regset_from_core_section): Remove dynamic regset
7763 allocation.
7764 (score_gdbarch_init): Drop allocation of tdep structure.
7765 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7766
24534243
AA
77672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7768
7769 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7770 regset structures.
7771 (am33_regset_from_core_section): Remove dynamic regset
7772 allocations.
7773
b7195f27
AA
77742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7775
7776 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7777 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7778 structures.
7779 (mips_linux_regset_from_core_section): Remove dynamic regset
7780 allocations.
7781 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7782 'gregset64', 'fpregset', and 'fpregset64'.
7783 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7784 deleted tdep fields.
7785
ecc37a5a
AA
77862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7787
7788 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7789 regset structures.
7790 (amd64_regset_from_core_section): Remove dynamic regset
7791 allocations.
7792 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7793 structure.
7794 (amd64obsd_regset_from_core_section): Remove dynamic regset
7795 allocation.
7796 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7797 Likewise.
7798 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7799 x86-common regset supply function.
7800 * i386-tdep.c (i386_collect_gregset): Make static.
7801 (i386_gregset): New global regset structure.
7802 (i386_fpregset, i386_xstateregset): New static regset structures.
7803 (i386_regset_from_core_section): Remove dynamic regset
7804 allocations.
7805 (i386_gdbarch_init): Remove initialization of tdep fields
7806 'gregset', 'fpregset', and 'xstateregset'.
7807 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7808 'fpregset', and 'xstateregset'.
7809 (i386_collect_gregset): Remove prototype.
7810 (i386_gregset): New declaration.
7811 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7812 structure.
7813 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7814 allocation.
7815
b7611c43
AA
78162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7817
7818 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7819 (arm_linux_vfpregset): New static regset structures.
7820 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7821 regset structures.
7822 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7823 and 'vfpregset' fields.
7824
a069a2bd
AA
78252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7826
7827 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7828 (aarch64_linux_fpregset): New static regset structures.
7829 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7830 of regset structures.
7831 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7832 'fpregset' fields.
7833
09424cff
AA
78342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7835
7836 * regset.h (struct regset): Remove gdbarch field.
7837 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7838 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7839 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7840 Likewise.
7841 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7842 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7843 (ppc32_linux_vsxregset): Likewise.
7844 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7845 via the regcache instead of the regset.
7846 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7847 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7848 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7849 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7850 Likewise.
7851
3ca7dae4
AA
78522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7853
7854 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7855 Constify structures.
7856 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7857 (alphanbsd_aout_gregset): Likewise.
7858 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7859 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7860 Likewise.
7861 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7862 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7863 Likewise.
7864 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7865 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7866 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7867 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7868 * m88k-tdep.c (m88k_gregset): Likewise.
7869 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7870 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7871 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7872 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7873 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7874 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7875 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7876 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7877 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7878 Likewise.
7879 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7880 * sh-tdep.h (sh_corefile_gregset): Likewise.
7881 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7882 * vax-tdep.c (vax_gregset): Likewise.
7883
5876f503
JK
78842014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7885
7886 Fix TLS access for -static -pthread.
7887 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7888 (try_thread_db_load_1): Initialize it.
7889 (thread_db_get_thread_local_address): Call it if LM is zero.
7890 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7891 * target.h (struct target_ops) (to_get_thread_local_address): Add
7892 load_module_addr comment.
7893
0256a6ac
PA
78942014-05-21 Pedro Alves <palves@redhat.com>
7895
7896 * dcache.c (dcache_read_memory_partial): If reading the cache line
7897 fails, fallback to reading just the memory the caller wanted.
7898
227533ac
DE
78992014-05-20 Doug Evans <dje@google.com>
7900
7901 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7902 instead of get_current_arch.
7903
936d2992
PA
79042014-05-20 Pedro Alves <palves@redhat.com>
7905
7906 * NEWS: Mention that compare-sections now works with all targets.
7907
7908 * remote.c (PACKET_qCRC): New enum value.
7909 (remote_verify_memory): Don't send qCRC if the target has no
7910 execution. Use packet_support/packet_ok. If the target doesn't
7911 support the qCRC packet, fallback to a deep memory copy.
7912 (compare_sections_command): Say "target image" instead of "remote
7913 executable".
7914 (_initialize_remote): Add PACKET_qCRC to the list of config
7915 packets that have no associated command. Extend comment.
7916 * target.c (simple_verify_memory, default_verify_memory): New
7917 function.
7918 * target.h (struct target_ops) <to_verify_memory>: Default to
7919 default_verify_memory.
7920 (simple_verify_memory): New declaration.
7921 * target-delegates.c: Regenerate.
7922
e59fa00f
MM
79232014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7924
7925 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7926
f2205de0
HZ
79272014-05-20 Hui Zhu <hui@codesourcery.com>
7928 Yao Qi <yao@codesourcery.com>
7929
7930 PR backtrace/16558
7931 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7932 and change address of sp and pc.
7933
c4e54771
TT
79342014-05-19 Tom Tromey <tromey@redhat.com>
7935
7936 * gdbtypes.c (rank_function): Use XNEWVEC.
7937 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7938
73051182
DE
79392014-05-19 Doug Evans <dje@google.com>
7940
7941 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7942 build_type_unit_groups and moved closer to only caller. Remove
7943 arguments. All references updated. Remove outdated .gdb_index
7944 comment.
7945 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7946 build_type_psymtabs_1.
7947
8832e7e3
DE
79482014-05-19 Doug Evans <dje@google.com>
7949
7950 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7951 n_type_unit_groups, all_type_unit_groups. All uses removed.
7952 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7953 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7954 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7955 (add_type_unit_group_to_table): Delete.
7956
cd8ae15e
DE
79572014-05-19 Doug Evans <dje@google.com>
7958
7959 * eval.c (evaluate_subexp_standard): Add some comments.
7960
08f4850b
DE
79612014-05-17 Doug Evans <xdje42@gmail.com>
7962
7963 * progspace.c (remove_program_space): Delete, unused.
7964 * progspace.h (remove_program_space): Ditto.
7965
bed8455c
DE
79662014-05-17 Doug Evans <xdje42@gmail.com>
7967
7968 * inferior.c (prune_inferiors): Fix comment.
7969 (remove_inferior_command): Call prune_program_spaces.
7970
8d551b02
DE
79712014-05-16 Doug Evans <dje@google.com>
7972
7973 New command line option -D.
7974 * NEWS: Mention it.
7975 * main.c (set_gdb_data_directory): New function.
7976 (captured_main): Recognize -D. Flag error for --data-directory "".
7977 Call set_gdb_data_directory.
7978 (print_gdb_help): Print --data-directory, -D.
7979 * main.h (set_gdb_data_directory): Declare.
7980 * top.c (staged_gdb_datadir): New static global.
7981 (set_gdb_datadir): Call set_gdb_data_directory
7982 (show_gdb_datadir): New function.
7983 (init_main): Update init of data-directory parameter.
7984
18848e28
GF
79852014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7986
7987 Import the "dirfd" gnulib module.
7988 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7989 * gnulib/aclocal.m4: Update.
7990 * gnulib/config.in: Update.
7991 * gnulib/configure: Update.
7992 * gnulib/import/Makefile.am: Update.
7993 * gnulib/import/Makefile.in: Update.
7994 * gnulib/import/dirfd.c: New.
7995 * gnulib/import/m4/dirfd.m4: New.
7996 * gnulib/import/m4/gnulib-cache.m4: Update.
7997 * gnulib/import/m4/gnulib-comp.m4: Update.
7998
95c64f92
YQ
79992014-05-16 Pierre Muller <muller@sourceware.org>
8000 Yao Qi <yao@codesourcery.com>
8001
8002 * valprint.c (print_wchar): Move the code on checking whether
8003 W is a printable wide char to the default branch of switch
8004 statement below. Call wchar_printable instead of gdb_iswprint.
8005
cac395ea
TM
80062014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8007
19679eca 8008 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8009 ldr.w and ldrd instructions.
8010
83655187
DE
80112014-05-15 Doug Evans <dje@google.com>
8012
8013 * dwarf2read.c (read_structure_type): Delete outdated comments.
8014
dd756689
TT
80152014-05-14 Tom Tromey <tromey@redhat.com>
8016
8017 * macrocmd.c (print_macro_definition): Reindent.
8018
75ddda77
DE
80192014-05-13 Doug Evans <xdje42@gmail.com>
8020
8021 * python/py-cmd.c (cmdpy_completer): Add comment.
8022 (completers): Make const.
8023
b0f16a3e
SM
80242014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8025
8026 * infrun.c (resume): Remove should_resume (unused). Move up
8027 declaration of resume_ptid.
8028
033c3379
TT
80292014-05-13 Tom Tromey <tromey@redhat.com>
8030
8031 * language.h (unop_type_check): Remove.
8032 (binop_type_check): Don't declare.
8033
9b44a3a5
AA
80342014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8035
8036 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8037 call to regcache_raw_collect.
8038
303a33fa
SM
80392014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8040
8041 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8042 mi_console->quote as the quoting character.
8043
196100a0
SM
80442014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8045
8046 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8047
f989a1c8
TT
80482014-04-29 Tom Tromey <tromey@redhat.com>
8049
8050 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8051 "show debug varobj".
8052
9404b58f
KM
80532014-05-07 Kyle McMartin <kyle@redhat.com>
8054
8055 Pushed by Joel Brobecker <brobecker@adacore.com>.
8056 * aarch64-tdep.c (aarch64_software_single_step): New function.
8057 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8058 with aarch64_software_single_step.
8059
5e49ba57
JB
80602014-05-05 Joel Brobecker <brobecker@adacore.com>
8061
8062 GDB 7.7.1 released.
8063
c888a17d
KS
80642014-05-05 Keith Seitz <keiths@redhat.com>
8065
8066 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8067 variable or history value is successfully parsed.
8068
290a839c
YQ
80692014-05-05 Yao Qi <yao@codesourcery.com>
8070 Pedro Alves <palves@redhat.com>
8071
8072 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8073 address of blocks that intersects the requested range. Trim
8074 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8075 sections.
8076 * ctf.c (ctf_xfer_partial): Likewise.
8077
91256dc2
YQ
80782014-05-05 Yao Qi <yao@codesourcery.com>
8079
8080 * printcmd.c (display_command): Remove the check to
8081 target_has_execution.
8082
07284463
MK
80832014-05-03 Mark Kettenis <kettenis@gnu.org>
8084
8085 * ppcobsd-nat.c: Include "obsd-nat.h".
8086 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8087 add_target.
8088 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8089
30a1e6cc
SDJ
80902014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8091
8092 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8093 and 16-bit signed and unsigned arguments. Update comment.
8094 (stap_parse_probe_arguments): Extend code to handle such
8095 arguments. Use warning instead of complaint to notify about
8096 unrecognized bitness.
8097
f33da99a
SDJ
80982014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8099
8100 PR breakpoints/16889
8101 * stap-probe.c (stap_parse_probe_arguments): Simplify
8102 check for non-prefixed probes (i.e., probes whose
8103 arguments do not start with "N@"). Always set the
8104 argument type to a sane value.
8105
95cf3b38
DT
81062014-05-01 David Taylor <dtaylor@emc.com>
8107
8108 * remote.c (compare_sections_command): Add -r option to compare
8109 all loadable read-only sections.
8110
1cfdf534
SC
81112014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8112
8113 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8114 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8115 Update all callers.
8116 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8117 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8118 Remove unused CORE_ADDR argument. Update all callers.
8119
ca4f7f8b
PA
81202014-04-29 Pedro Alves <palves@redhat.com>
8121
8122 * remote.c (struct packet_config) <detect>: Extend comment.
8123 (add_packet_config_cmd): Don't set the config's detect or support
8124 fields here.
8125 (init_all_packet_configs): Also initialize the config's 'detect'
8126 field.
8127 (reset_all_packet_configs_support): New function.
8128 (remote_open_1): Call reset_all_packet_configs_support instead of
8129 init_all_packet_configs.
8130 (_initialize_remote): Initialize all packet configs. Assert that
8131 all packets have an associated command, except a few known
8132 outliers.
8133
11c1ba78
JB
81342014-04-28 Joel Brobecker <brobecker@adacore.com>
8135
8136 * dwarf2read.c (read_subrange_type): Handle dynamic
8137 DW_AT_lower_bound attributes.
8138
8739bc53
JB
81392014-04-28 Joel Brobecker <brobecker@adacore.com>
8140
8141 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8142 dynamic bounds before computing its upper bound.
8143 (ada_discrete_type_low_bound): Same as above with the lower bound.
8144
6f8a3220
JB
81452014-04-28 Joel Brobecker <brobecker@adacore.com>
8146
8147 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8148 range types. Adjust the array handling implementation to
8149 take advantage of this change.
8150 (resolve_dynamic_range): New function, mostly extracted from
8151 resolve_dynamic_bounds.
8152 (resolve_dynamic_array): New function, mostly extracted from
8153 resolve_dynamic_bounds.
8154 (resolve_dynamic_bounds): Delete.
8155 (resolve_dynamic_type): Reimplement. Add handling of
8156 TYPE_CODE_RANGE types.
8157
4d072ce4
JB
81582014-04-28 Joel Brobecker <brobecker@adacore.com>
8159
8160 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8161 handling of parallel ___XA types.
8162
52865325
JB
81632014-04-28 Joel Brobecker <brobecker@adacore.com>
8164
8165 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8166 unnecessary second call to static_unwrap_type.
8167
433e77fa
HZ
81682014-04-27 Hui Zhu <hui@codesourcery.com>
8169
8170 * stack.c (print_frame_info): Call do_gdb_disassembly with
8171 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8172
b51a69ee
DE
81732014-04-26 Doug Evans <xdje42@gmail.com>
8174
8175 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8176
7ae1a6a6
PA
81772014-04-25 Pedro Alves <palves@redhat.com>
8178
8179 PR server/16255
8180 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8181 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8182 and newline from built string.
8183 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8184 (linux_ptrace_attach_fail_reason): ... this.
8185 * linux-nat.c (linux_nat_attach): Adjust to use
8186 linux_ptrace_attach_fail_reason.
8187
4082afcc
PA
81882014-04-25 Pedro Alves <palves@redhat.com>
8189
8190 * remote.c (struct remote_state): Remove multi_process_aware,
8191 non_stop_aware, cond_tracepoints, cond_breakpoints,
8192 breakpoint_commands, fast_tracepoints, static_tracepoints,
8193 install_in_trace, disconnected_tracing,
8194 enable_disable_tracepoints, string_tracing, and
8195 augmented_libraries_svr4_read fields.
8196 (remote_multi_process_p): Move further below in the file.
8197 (struct packet_config): Add comments.
8198 (update_packet_config): Delete function.
8199 (show_packet_config_cmd): Use packet_config_support.
8200 (add_packet_config_cmd): Use NULL as set callback.
8201 (packet_ok): "set remote foo-packet"-style commands no longer
8202 change config->supported -- adjust.
8203 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8204 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8205 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8206 (PACKET_QNonStop, PACKET_multiprocess_feature)
8207 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8208 (PACKET_DisconnectedTracing_feature)
8209 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8210 (set_remote_protocol_packet_cmd): Delete function.
8211 (packet_config_support, packet_support): New functions.
8212 (set_remote_protocol_Z_packet_cmd): Don't call
8213 update_packet_config.
8214 (remote_query_attached, remote_pass_signals)
8215 (remote_program_signals, remote_threads_info)
8216 (remote_threads_extra_info, remote_start_remote): Use
8217 packet_support.
8218 (remote_start_remote): Use packet_config_support and
8219 packet_support.
8220 (init_all_packet_configs): Set all packets to unknown support,
8221 instead of calling update_packet_config.
8222 (remote_check_symbols): Use packet_support.
8223 (remote_supported_packet): Unconditionally set the packet config's
8224 support status.
8225 (remote_multi_process_feature, remote_non_stop_feature)
8226 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8227 (remote_breakpoint_commands_feature)
8228 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8229 (remote_install_in_trace_feature)
8230 (remote_disconnected_tracing_feature)
8231 (remote_enable_disable_tracepoint_feature)
8232 (remote_string_tracing_feature)
8233 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8234 (remote_protocol_features): Adjust to use remote_supported_packet
8235 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8236 "ConditionalTracepoints", "ConditionalBreakpoints",
8237 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8238 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8239 "EnableDisableTracepoints", and "tracenz".
8240 (remote_query_supported): Use packet_support.
8241 (remote_open_1): Adjust.
8242 (extended_remote_attach_1): Use packet_support. Switch on the
8243 result of packet_ok instead of checking whether the packet ended
8244 up disabled.
8245 (remote_vcont_resume): Use packet_support.
8246 (remote_resume, remote_stop_ns, fetch_register_using_p)
8247 (remote_prepare_to_store, store_register_using_P)
8248 (check_binary_download, remote_write_bytes): Use packet_support.
8249 (remote_vkill): Use packet_support. Switch on the result of
8250 packet_ok instead of checking whether the packet ended up
8251 disabled.
8252 (extended_remote_supports_disable_randomization): Use
8253 packet_support.
8254 (extended_remote_run): Switch on the result of packet_ok instead
8255 of checking whether the packet ended up disabled.
8256 (remote_insert_breakpoint, remote_remove_breakpoint)
8257 (remote_insert_watchpoint, remote_remove_watchpoint)
8258 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8259 packet_support.
8260 (remote_search_memory): Use packet_config_support.
8261 (remote_get_thread_local_address, remote_get_tib_address)
8262 (remote_hostio_send_command, remote_can_execute_reverse): Use
8263 packet_support.
8264 (remote_supports_cond_tracepoints)
8265 (remote_supports_cond_breakpoints)
8266 (remote_supports_fast_tracepoints)
8267 (remote_supports_static_tracepoints)
8268 (remote_supports_install_in_trace)
8269 (remote_supports_enable_disable_tracepoint)
8270 (remote_supports_string_tracing)
8271 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8272 the packet config says the feature is enabled or disabled.
8273 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8274 (remote_get_trace_status): Use packet_support.
8275 (remote_set_disconnected_tracing): Adjust to check whether the
8276 feature is enabled with packet_support.
8277 (remote_set_trace_buffer_size, remote_use_agent)
8278 (remote_can_use_agent, remote_supports_btrace): Use
8279 packet_support.
8280 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8281 Use packet_config_support.
8282 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8283 the packet config says the feature is enabled or disabled.
8284 (set_range_stepping): Use packet_support.
8285
bdb52a22
TT
82862014-04-25 Tom Tromey <tromey@redhat.com>
8287
8288 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8289 argument.
8290
e9475ead
SA
82912014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8292
8293 * NEWS: Mention support for C99 variable length arrays.
8294
82eacd52
JB
82952014-04-24 Joel Brobecker <brobecker@adacore.com>
8296
8297 * ada-lang.c (standard_exc): Expand introductory comment.
8298
01f9f808
MS
82992014-04-24 Michael Sturm <michael.sturm@mintel.com>
8300 Walfred Tedeschi <walfred.tedeschi@intel.com>
8301
8302 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8303 AVX512 registers.
8304 (amd64_linux_read_description): Add code to handle AVX512 xstate
8305 mask and return respective tdesc.
8306 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8307 and features/i386/x32-avx512-linux.c.
8308 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8309 (amd64_linux_core_read_description): Add code to handle AVX512
8310 xstate mask and return respective tdesc.
8311 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8312 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8313 calculation.
8314 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8315 (tdesc_amd64_avx512_linux): New prototype.
8316 (tdesc_x32_avx512_linux): Likewise.
8317 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8318 features/i386/x32-avx512.c.
8319 (amd64_ymm_avx512_names): New register names for pseudo
8320 registers YMM16-31.
8321 (amd64_ymmh_avx512_names): New register names for raw registers
8322 YMMH16-31.
8323 (amd64_k_names): New register names for K registers.
8324 (amd64_zmmh_names): New register names for ZMM raw registers.
8325 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8326 (amd64_xmm_avx512_names): New register names for XMM16-31
8327 registers.
8328 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8329 registers.
8330 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8331 if feature is present.
8332 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8333 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8334 (AMD64_NUM_REGS): Adjust to new number of registers.
8335 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8336 registers supplied via XSTATE by AVX512 registers.
8337 (i386_linux_read_description): Add case for AVX512.
8338 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8339 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8340 (i386_linux_core_read_description): Add case for AVX512.
8341 (i386_linux_init_abi): Install supported register note section
8342 for AVX512.
8343 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8344 AVX512.
8345 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8346 registers to be number of zmm7h + 1.
8347 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8348 * i386-tdep.c: Include features/i386/i386-avx512.c.
8349 (i386_zmm_names): Add ZMM pseudo register names array.
8350 (i386_zmmh_names): Add ZMM raw register names array.
8351 (i386_k_names): Add K raw register names array.
8352 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8353 registers. AVX512 has 16 more ZMM registers than there are YMM
8354 registers.
8355 (i386_zmmh_regnum_p): Add function to look up register number of
8356 ZMM raw registers.
8357 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8358 (i386_k_regnum_p): Likewise for K raw registers.
8359 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8360 registers added by AVX512.
8361 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8362 registers added by AVX512.
8363 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8364 added by AVX512.
8365 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8366 (i386_pseudo_register_name): Add ZMM pseudo registers.
8367 (i386_zmm_type): Construct and return vector registers type for ZMM
8368 registers.
8369 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8370 ZMM0-31 pseudo registers and K registers.
8371 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8372 and YMM16-31 registers from register cache.
8373 (i386_pseudo_register_write): Add code to write K, ZMM and
8374 YMM16-31 registers.
8375 (i386_register_reggroup_p): Add code to include/exclude AVX512
8376 registers in/from respective register groups.
8377 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8378 registers if feature is present in xcr0.
8379 (i386_gdbarch_init): Add code to initialize AVX512 feature
8380 variables in tdep structure, wire in pseudo registers and call
8381 initialize_tdesc_i386_avx512.
8382 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8383 variables.
8384 (i386_regnum): Add AVX512 registers.
8385 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8386 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8387 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8388 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8389 512 bits wide.
8390 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8391 (i386_ymm_avx512_regnum_p): Likewise.
8392 (i386_k_regnum_p): Likewise.
8393 (i386_zmm_regnum_p): Likewise.
8394 (i386_zmmh_regnum_p): Likewise.
8395 * i387-tdep.c : Update year in copyright notice.
8396 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8397 XSAVE buffer.
8398 (XSAVE_YMM_AVX512_ADDR): New macro.
8399 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8400 XSAVE buffer.
8401 (XSAVE_XMM_AVX512_ADDR): New macro.
8402 (xsave_avx512_k_offset): New table for K register offsets in
8403 XSAVE buffer.
8404 (XSAVE_AVX512_K_ADDR): New macro.
8405 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8406 in XSAVE buffer.
8407 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8408 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8409 buffer.
8410 (i387_collect_xsave): Add code to collect AVX512 registers from
8411 XSAVE buffer.
8412 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8413 of XMM16-31 registers.
8414 (I387_NUM_K_REGS): New define for number of K registers.
8415 (I387_K0_REGNUM): New define for K0 register number.
8416 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8417 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8418 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8419 registers.
8420 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8421 (I387_XMM16_REGNUM): New define for XMM16 register number.
8422 (I387_YMM0_REGNUM): New define for YMM0 register number.
8423 (I387_KEND_REGNUM): New define for last K register number.
8424 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8425 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8426 number.
8427 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8428 number.
8429 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8430 size.
8431 * features/Makefile: Add AVX512 related files.
8432 * features/i386/32bit-avx512.xml: New file.
8433 * features/i386/64bit-avx512.xml: Likewise.
8434 * features/i386/amd64-avx512-linux.c: Likewise.
8435 * features/i386/amd64-avx512-linux.xml: Likewise.
8436 * features/i386/amd64-avx512.c: Likewise.
8437 * features/i386/amd64-avx512.xml: Likewise.
8438 * features/i386/i386-avx512-linux.c: Likewise.
8439 * features/i386/i386-avx512-linux.xml: Likewise.
8440 * features/i386/i386-avx512.c: Likewise.
8441 * features/i386/i386-avx512.xml: Likewise.
8442 * features/i386/x32-avx512-linux.c: Likewise.
8443 * features/i386/x32-avx512-linux.xml: Likewise.
8444 * features/i386/x32-avx512.c: Likewise.
8445 * features/i386/x32-avx512.xml: Likewise.
8446 * regformats/i386/amd64-avx512-linux.dat: New file.
8447 * regformats/i386/amd64-avx512.dat: Likewise.
8448 * regformats/i386/i386-avx512-linux.dat: Likewise.
8449 * regformats/i386/i386-avx512.dat: Likewise.
8450 * regformats/i386/x32-avx512-linux.dat: Likewise.
8451 * regformats/i386/x32-avx512.dat: Likewise.
8452 * NEWS: Add note about new support for AVX512.
8453
8454
08351840
PA
84552014-04-23 Pedro Alves <palves@redhat.com>
8456
8457 * breakpoint.c (insert_bp_location): Tolerate errors if the
8458 breakpoint is set in a user-loaded objfile.
8459 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8460 location is marked shlib_disabled. If the breakpoint is set in a
8461 user-loaded objfile is a GDB-side memory breakpoint, validate it
8462 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8463 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8464 flag.
8465 * mem-break.c (memory_validate_breakpoint): New function.
8466 * objfiles.c (userloaded_objfile_contains_address_p): New
8467 function.
8468 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8469 * target.h (memory_validate_breakpoint): New declaration.
8470
076855f9
PA
84712014-04-23 Pedro Alves <palves@redhat.com>
8472
8473 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8474 the breakpoint is set in a shared library, only suppress
8475 errors for software breakpoints, not hardware breakpoints.
8476
483805cf
PA
84772014-04-22 Pedro Alves <palves@redhat.com>
8478
8479 * infrun.c (schedlock_applies): New function, factored out from
8480 find_thread_needs_step_over.
8481 (find_thread_needs_step_over): Use it.
8482 (switch_back_to_stepped_thread): Always clear trap_expected if the
8483 step over is finished. Return early if scheduler locking applies.
8484 Look for the stepping thread and a potential step-over thread with
8485 a single loop.
8486 (currently_stepping_or_nexting_callback): Delete.
8487
a75fef0e
NC
84882014-04-22 Nick Clifton <nickc@redhat.com>
8489
8490 * NEWS: Mention that ARM sim now supports tracing.
8491
48b6e87e
YQ
84922014-04-22 Yao Qi <yao@codesourcery.com>
8493
8494 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8495 to ...
8496 * tracefile.c (tracefile_fetch_registers): ... it. New
8497 function.
8498 * tracefile.h (tracefile_fetch_registers): Declare.
8499 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8500 tracefile_fetch_registers.
8501
17617f2d
EZ
85022014-04-19 Eli Zaretskii <eliz@gnu.org>
8503
8504 PR gdb/14018
8505 * windows-nat.c (thread_rec): Don't display a warning when
8506 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8507 fails for any reason, set th->suspended to -1, so that we don't
8508 try to resume such a thread. Also, don't return NULL in these
8509 cases, to avoid completely ruin the session due to "PC register is
8510 not available" error.
8511 (do_windows_fetch_inferior_registers): Check errors in
8512 GetThreadContext call.
8513 (windows_continue): Accept an additional argument KILLED; if not
8514 zero, ignore errors in the SetThreadContext call, since the
8515 inferior was killed and is shutting down.
8516 (windows_resume, get_windows_debug_event)
8517 (windows_create_inferior, windows_mourn_inferior)
8518 (windows_kill_inferior): All callers of windows_continue changed
8519 to adjust to its new calling sequence.
8520
5723a6fd
YQ
85212014-04-19 Yao Qi <yao@codesourcery.com>
8522
8523 * ctf.c (ctf_open): Call post_create_inferior.
8524
614d5099
YQ
85252014-04-19 Yao Qi <yao@codesourcery.com>
8526
8527 * ctf.c (handle_id): New static variable.
8528 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8529 value. Get the declaration of event "register" and get length
8530 of field "contents".
8531
dac3e710
YQ
85322014-04-19 Yao Qi <yao@codesourcery.com>
8533
8534 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8535
2bca57ba
SC
85362014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8537
8538 * valops.c (oload_method_static): Remove unnecessary argument
8539 METHOD. Update all callers.
8540
51d48146
PA
85412014-04-18 Pedro alves <palves@redhat.com>
8542 Tom Tromey <tromey@redhat.com>
8543
8544 PR backtrace/15558
8545 * frame.c (get_prev_frame_1): Rename to ...
8546 (get_prev_frame_always): ... this, and make extern. Adjust.
8547 (skip_artificial_frames): Use get_prev_frame_always.
8548 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8549 (get_frame_unwind_stop_reason): Adjust to rename.
8550 * frame.h (get_prev_frame_always): Declare.
8551 * inline-frame.c: Include frame.h.
8552 (inline_frame_this_id): Use get_prev_frame_always.
8553
1bdad2e0
TG
85542014-04-18 Tristan Gingold <gingold@adacore.com>
8555
8556 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8557 code by using bfd_mach_o_get_base_address.
8558
7ce16bd4
UW
85592014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8560
8561 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8562 (spu_ax_pseudo_register_collect): New function.
8563 (spu_ax_pseudo_register_push_stack): Likewise.
8564 (spu_dwarf_reg_to_regnum): Likewise.
8565 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8566
2ed3c037
UW
85672014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8568
8569 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8570 Replace FRAME argument with FRAME_ID.
8571 * gdbarch.c, gdbarch.h: Regenerate.
8572 * findvar.c (default_value_from_register): Add GDBARCH argument;
8573 replace FRAME by FRAME_ID. No longer call get_frame_id.
8574 (value_from_register): Update call to gdbarch_value_from_register.
8575 * value.h (default_value_from_register): Update prototype.
8576 * s390-linux-tdep.c (s390_value_from_register): Update interface
8577 and call to default_value_from_register.
8578 * spu-tdep.c (spu_value_from_register): Likewise.
8579
8580 * findvar.c (address_from_register): Remove TYPE argument.
8581 Do not call value_from_register; use gdbarch_value_from_register
8582 with null_frame_id instead.
8583 * value.h (address_from_register): Update prototype.
8584 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8585 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8586 address_from_register interface change.
8587
71e50e83
YQ
85882014-04-17 Yao Qi <yao@codesourcery.com>
8589
8590 * gdbtypes.h: Update comments to link to types and macros'
8591 definitions.
8592
7a23c549
SC
85932014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8594
8595 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8596
22869d73
KS
85972014-04-16 Keith Seitz <keiths@redhat.com>
8598
8599 PR gdb/15827
8600 * dwarf2read.c (skip_one_die): Check that all relative-offset
8601 sibling DIEs fall within range of the current reader's buffer.
8602 (read_partial_die): Likewise.
8603
c4f87ca6
KS
86042014-04-16 Keith Seitz <keiths@redhat.com>
8605
8606 PR c++/16597
8607 * cp-namespace.c (lookup_symbol_file): If the type name of
8608 `this' is NULL, return immediately.
8609
b50c8614
KS
86102014-04-14 Keith Seitz <keiths@redhat.com>
8611
8612 PR c++/16253
8613 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8614 from symbol_matches_domain in symtab.c. All local callers
8615 of symbol_matches_domain updated.
8616 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8617 search STRUCT_DOMAIN.
8618 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8619 independently. standard_lookup will do that automatically.
8620 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8621 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8622 (cp_lookup_symbol_in_namespace): Likewise.
8623 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8624 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8625 may return a STRUCT_DOMAIN match.
8626 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8627 * cp-support.c: Include language.h.
8628 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8629 VAR_DOMAIN.
8630 * psymtab.c (match_partial_symbol): Compare the requested
8631 domain with the symbol's domain directly.
8632 (lookup_partial_symbol): Likewise.
8633 * symtab.c (lookup_symbol_in_language): Explain when/why
8634 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8635 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8636 appropriate languages.
8637 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8638 and moved to ada-lang.c
8639 (lookup_block_symbol): Explain that this function only returns
8640 symbol matching the requested DOMAIN.
8641 Compare the requested domain with the symbol's domain directly.
8642 (iterate_over_symbols): Compare the requested domain with the
8643 symbol's domain directly.
8644 * symtab.h (symbol_matches_domain): Remove.
8645
3d567982
TT
86462014-04-14 Tom Tromey <tromey@redhat.com>
8647
8648 PR c++/15246:
8649 * c-exp.y (type_aggregate_p): New function.
8650 (qualified_name, classify_inner_name): Use it.
8651 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8652 and TYPE_TARGET_TYPE of an enum type.
8653 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8654 an enum type.
8655 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8656 handle TYPE_DECLARED_CLASS.
8657 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8658 types.
8659 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8660 * valops.c (enum_constant_from_type): New function.
8661 (value_aggregate_elt): Use it.
8662 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8663 TYPE_CODE_ENUM.
8664
c848d642
TT
86652014-04-14 Tom Tromey <tromey@redhat.com>
8666
8667 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8668 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8669 const.
8670 * value.h (value_aggregate_elt): Update.
8671
0626fc76
TT
86722014-04-14 Tom Tromey <tromey@redhat.com>
8673
8674 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8675
5ecaaa66
SA
86762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8677
8678 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8679 (evaluate_subexp_standard): Pass noside argument.
8680 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8681 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8682 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8683 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8684 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8685
1612e0c0
SA
86862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8687
8688 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8689 points to a constant blob.
8690
c451ebe5
SA
86912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8692
8693 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8694 property and store it as the high bound and flag the range accordingly.
8695 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8696 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8697 * gdbtypes.h (enum range_flags): New enum.
8698 (struct range_bounds): Add flags member.
8699
1d42e4c4
SA
87002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8701
8702 * c-typeprint.c (c_type_print_varspec_suffix): Added
8703 check for not yet resolved high bound. If unresolved, print
8704 "variable length" string to the console instead of random
8705 length.
8706
9f1f738a
SA
87072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8708
8709 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8710 value.
8711 (ada_template_to_fixed_record_type_1): Likewise.
8712 (ada_to_fixed_type_1): Likewise.
8713 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8714 (cp_print_value): Likewise.
8715 * d-valprint.c (dynamic_array_type): Likewise.
8716 * findvar.c (address_of_variable): Likewise.
8717 * jv-valprint.c (java_value_print): Likewise.
8718 * valops.c (value_ind): Likewise.
8719 * value.c (coerce_ref): Likewise.
8720
3c8452d4
SA
87212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8722
8723 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8724 value and retrieve the dynamic type size.
8725
4ad88275
SA
87262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8727
8728 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8729 passed to sizeof is dynamic evaluate the argument to compute the length.
8730
80180f79
SA
87312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8732 Joel Brobecker <brobecker@adacore.com>
8733
8734 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8735 (dwarf2_evaluate_property): New function.
8736 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8737 * dwarf2read.c (attr_to_dynamic_prop): New function.
8738 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8739 attribute.
8740 * gdbtypes.c: Include dwarf2loc.h.
8741 (is_dynamic_type): New function.
8742 (resolve_dynamic_type): New function.
8743 (resolve_dynamic_bounds): New function.
8744 (get_type_length): New function.
8745 (check_typedef): Use get_type_length to compute type length.
8746 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8747 (TYPE_LOW_BOUND_KIND): New macro.
8748 (is_dynamic_type): New function prototype.
8749 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8750 to resolve dynamic properties of the type. Update comment.
8751 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8752
a1556843
RH
87532014-04-14 Richard Henderson <rth@redhat.com>
8754
8755 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8756
0be03e84
DE
87572014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8758 Doug Evans <xdje42@gmail.com>
8759
8760 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8761 dereference TYPE_CODE_REF values.
8762
6b662e19
JB
87632014-04-11 Joel Brobecker <brobecker@adacore.com>
8764
8765 Revert the following changes due to regressions:
8766
8767 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8768 (dwarf2_evaluate_property): New function.
8769 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8770 * dwarf2read.c (attr_to_dynamic_prop): New function.
8771 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8772 attribute.
8773 * gdbtypes.c: Include dwarf2loc.h.
8774 (is_dynamic_type): New function.
8775 (resolve_dynamic_type): New function.
8776 (resolve_dynamic_bounds): New function.
8777 (get_type_length): New function.
8778 (check_typedef): Use get_type_length to compute type length.
8779 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8780 (TYPE_LOW_BOUND_KIND): New macro.
8781 (is_dynamic_type): New function prototype.
8782 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8783 to resolve dynamic properties of the type. Update comment.
8784 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8785
8786 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8787 passed to sizeof is dynamic evaluate the argument to compute the length.
8788
8789 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8790 value and retrieve the dynamic type size.
8791
8792 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8793 (ada_template_to_fixed_record_type_1): Likewise.
8794 (ada_to_fixed_type_1): Likewise.
8795 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8796 (cp_print_value): Likewise.
8797 * d-valprint.c (dynamic_array_type): Likewise.
8798 * eval.c (evaluate_subexp_with_coercion): Likewise.
8799 * findvar.c (address_of_variable): Likewise.
8800 * jv-valprint.c (java_value_print): Likewise.
8801 * valops.c (value_ind): Likewise.
8802 * value.c (coerce_ref): Likewise.
8803
8804 * c-typeprint.c (c_type_print_varspec_suffix): Added
8805 check for not yet resolved high bound. If unresolved, print
8806 "variable length" string to the console instead of random
8807 length.
8808
8809 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8810 property and store it as the high bound and flag the range accordingly.
8811 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8812 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8813 * gdbtypes.h (enum range_flags): New enum.
8814 (struct range_bounds): Add flags member.
8815
8816 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8817 points to a constant blob.
8818
8819 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8820 (evaluate_subexp_standard): Pass noside argument.
8821 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8822 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8823 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8824 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8825 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8826
245a5f0b
KS
88272014-04-11 Keith Seitz <keiths@redhat.com>
8828
8829 PR c++/16675
8830 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8831 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8832 reference types.
8833
3bce8237
SA
88342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8835
8836 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8837 (evaluate_subexp_standard): Pass noside argument.
8838 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8839 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8840 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8841 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8842 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8843
92b09522
SA
88442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8845
8846 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8847 points to a constant blob.
8848
e1969afb
SA
88492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8850
8851 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8852 property and store it as the high bound and flag the range accordingly.
8853 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8854 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8855 * gdbtypes.h (enum range_flags): New enum.
8856 (struct range_bounds): Add flags member.
8857
b86138fb
SA
88582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8859
8860 * c-typeprint.c (c_type_print_varspec_suffix): Added
8861 check for not yet resolved high bound. If unresolved, print
8862 "variable length" string to the console instead of random
8863 length.
8864
bcd629a4
SA
88652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8866
8867 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8868 (ada_template_to_fixed_record_type_1): Likewise.
8869 (ada_to_fixed_type_1): Likewise.
8870 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8871 (cp_print_value): Likewise.
8872 * d-valprint.c (dynamic_array_type): Likewise.
8873 * eval.c (evaluate_subexp_with_coercion): Likewise.
8874 * findvar.c (address_of_variable): Likewise.
8875 * jv-valprint.c (java_value_print): Likewise.
8876 * valops.c (value_ind): Likewise.
8877 * value.c (coerce_ref): Likewise.
8878
04b19544
SA
88792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8880
8881 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8882 value and retrieve the dynamic type size.
8883
26cb189f
SA
88842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8885
8886 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8887 passed to sizeof is dynamic evaluate the argument to compute the length.
8888
37c1ab67
SA
88892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8890
8891 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8892 (dwarf2_evaluate_property): New function.
8893 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8894 * dwarf2read.c (attr_to_dynamic_prop): New function.
8895 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8896 attribute.
8897 * gdbtypes.c: Include dwarf2loc.h.
8898 (is_dynamic_type): New function.
8899 (resolve_dynamic_type): New function.
8900 (resolve_dynamic_bounds): New function.
8901 (get_type_length): New function.
8902 (check_typedef): Use get_type_length to compute type length.
8903 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8904 (TYPE_LOW_BOUND_KIND): New macro.
8905 (is_dynamic_type): New function prototype.
8906 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8907 to resolve dynamic properties of the type. Update comment.
8908 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8909
729efb13
SA
89102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8911
8912 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8913 declaring high/low bounds and change uses accordingly. Call
8914 create_range_type instead of create_static_range_type.
8915 * gdbtypes.c (create_range_type): New function.
8916 (create_range_type): Convert bounds into struct bound_prop and pass
8917 them to create_range_type.
8918 * gdbtypes.h (struct bound_prop): New struct.
8919 (create_range_type): New function prototype.
8920 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8921 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8922 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8923 part of the bound.
8924 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8925
0c9c3474
SA
89262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8927
8928 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8929 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8930 * ada-lang.c: All uses of create_range_type updated.
8931 * coffread.c: All uses of create_range_type updated.
8932 * dwarf2read.c: All uses of create_range_type updated.
8933 * f-exp.y: All uses of create_range_type updated.
8934 * m2-valprint.c: All uses of create_range_type updated.
8935 * mdebugread.c: All uses of create_range_type updated.
8936 * stabsread.c: All uses of create_range_type updated.
8937 * valops.c: All uses of create_range_type updated.
8938 * valprint.c: All uses of create_range_type updated.
8939
9d497a19
PA
89402014-04-10 Pedro Alves <palves@redhat.com>
8941
8942 * breakpoint.c (single_step_breakpoints)
8943 (single_step_gdbarch): Move up in the file.
8944 (one_breakpoint_xfer_memory): New function, factored out from ...
8945 (breakpoint_xfer_memory): ... here. Also process single-step
8946 breakpoints.
8947
15a9128a
TG
89482014-04-09 Tristan Gingold <gingold@adacore.com>
8949
8950 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8951 comments.
8952 (darwin_decode_exception_message): Free port only after use.
8953
9c97a070
PL
89542014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8955
8956 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8957 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8958 when setting the size of call_length.
8959
7af389b8
SC
89602014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8961
8962 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8963 dereference TYPE_CODE_REF values.
8964
86ad98c3
JB
89652014-04-07 Joel Brobecker <brobecker@adacore.com>
8966
8967 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8968 end of warning message.
8969
b0aeadb3
DE
89702014-04-03 Doug Evans <dje@google.com>
8971
8972 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8973 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8974
5979d6b6
AM
89752014-04-02 Alan Modra <amodra@gmail.com>
8976
8977 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8978 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8979 (struct symbol_file_add_from_memory_args): Add size field.
8980 (find_vdso_size): New function.
8981 (add_vsyscall_page): Attempt to find vdso size.
8982
0d60c288
DE
89832014-04-01 Doug Evans <dje@google.com>
8984
8985 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8986
a41f2563
TG
89872014-04-01 Tristan Gingold <gingold@adacore.com>
8988
8989 * darwin-nat.c (darwin_encode_reply): Add prototype.
8990 (darwin_decode_exception_message): Reply to unknown inferiors.
8991 (darwin_decode_message): Handle message by id. Ignore message
8992 to unknown inferior.
8993 (darwin_wait): Discard unknown messages, add debug trace.
8994
11a865c8
DE
89952014-03-31 Doug Evans <dje@google.com>
8996
8997 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8998 comp_dir_string.
8999
770e7fc7
DE
90002014-03-31 Doug Evans <dje@google.com>
9001
9002 New option "set print symbol-loading".
9003 * NEWS: Mention it.
9004 * solib.c (solib_read_symbols): Only print symbol loading messages
9005 if requested.
9006 (solib_add): If symbol loading is in "brief" mode, notify user
9007 symbols are being loaded.
9008 (reload_shared_libraries_1): Ditto.
9009 * symfile.c (print_symbol_loading_off): New static global.
9010 (print_symbol_loading_brief): New static global.
9011 (print_symbol_loading_full): New static global.
9012 (print_symbol_loading_enums): New static global.
9013 (print_symbol_loading): New static global.
9014 (print_symbol_loading_p): New function.
9015 (symbol_file_add_with_addrs): Only print symbol loading messages
9016 if requested.
9017 (_initialize_symfile): Register "print symbol-loading" set/show
9018 command.
9019 * symfile.h (print_symbol_loading_p): Declare.
9020
c32c64b7
DE
90212014-03-30 Doug Evans <xdje42@gmail.com>
9022
9023 * infrun.c (set_last_target_status): New function.
9024 (handle_inferior_event): Call it.
9025
7c0bc051
DE
90262014-03-30 Doug Evans <xdje42@gmail.com>
9027
9028 * inferior.h (enum stop_kind): Improve comment.
9029
8776cfe9
JB
90302014-03-28 Joel Brobecker <brobecker@adacore.com>
9031
9032 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9033 a reference, strip the reference layer before calling
9034 the lang_ops value_has_mutated callback.
9035
410a0ff2
SDJ
90362014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9037
9038 Remove some globals from our parser.
9039 * language.c (unk_lang_parser): Add "struct parser_state"
9040 argument.
9041 * language.h (struct language_defn) <la_parser>: Likewise.
9042 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9043 (initialize_expout): Add "struct parser_state" argument.
9044 Rewrite function to use the parser state.
9045 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9046 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9047 write_exp_elt_longcst, write_exp_elt_dblcst,
9048 write_exp_elt_decfloatcst, write_exp_elt_type,
9049 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9050 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9051 write_dollar_variable): Likewise.
9052 (parse_exp_in_context_1): Use parser state.
9053 (insert_type_address_space): Add "struct parser_state" argument.
9054 Use parser state.
9055 (increase_expout_size): New function.
9056 * parser-defs.h: Forward declare "struct language_defn" and
9057 "struct parser_state".
9058 (expout, expout_size, expout_ptr): Remove extern declarations.
9059 (parse_gdbarch, parse_language): Rewrite macro declarations to
9060 accept the parser state.
9061 (struct parser_state): New struct.
9062 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9063 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9064 write_exp_elt_decfloatcst, write_exp_elt_type,
9065 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9066 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9067 write_exp_msymbol, write_dollar_variable,
9068 mark_struct_expression, insert_type_address_space): Add "struct
9069 parser_state" argument.
9070 (increase_expout_size): New function.
9071 * utils.c (do_clear_parser_state): New function.
9072 (make_cleanup_clear_parser_state): Likewise.
9073 * utils.h (make_cleanup_clear_parser_state): New function
9074 prototype.
9075 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9076 Update calls to write_exp* in order to pass the parser state.
9077 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9078 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9079 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9080 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9081 * stap-probe.c (stap_parse_register_operand): Likewise.
9082 (stap_parse_single_operand): Likewise.
9083 (stap_parse_argument_1): Likewise.
9084 (stap_parse_argument): Use parser state.
9085 * stap-probe.h: Include "parser-defs.h".
9086 (struct stap_parse_info) <pstate>: New field.
9087 * c-exp.y (parse_type): Rewrite to use parser state.
9088 (yyparse): Redefine to c_parse_internal.
9089 (pstate): New global variable.
9090 (parse_number): Add "struct parser_state" argument.
9091 (write_destructor_name): Likewise.
9092 (type_exp): Update calls to write_exp* and similars in order to
9093 use parser state.
9094 (exp1, exp, variable, qualified_name, space_identifier,
9095 typename, typebase): Likewise.
9096 (write_destructor_name, parse_number, lex_one_token,
9097 classify_name, classify_inner_name, c_parse): Add "struct
9098 parser_state" argument. Update function to use parser state.
9099 * c-lang.h: Forward declare "struct parser_state".
9100 (c_parse): Add "struct parser_state" argument.
9101 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9102 (yyparse): Redefine macro to ada_parse_internal.
9103 (pstate): New variable.
9104 (write_int, write_object_renaming, write_var_or_type,
9105 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9106 type_int, type_long, type_long_long, type_float, type_double,
9107 type_long_double, type_char, type_boolean, type_system_address):
9108 Add "struct parser_state" argument.
9109 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9110 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9111 var_or_type, aggregate, aggregate_component_list,
9112 positional_list, others, component_group,
9113 component_associations): Update calls to write_exp* and similar
9114 functions in order to use parser state.
9115 (ada_parse, write_var_from_sym, write_int,
9116 write_exp_op_with_string, write_object_renaming,
9117 find_primitive_type, write_selectors, write_ambiguous_var,
9118 write_var_or_type, write_name_assoc, type_int, type_long,
9119 type_long_long, type_float, type_double, type_long_double,
9120 type_char, type_boolean, type_system_address): Add "struct
9121 parser_state" argument. Adjust function to use parser state.
9122 * ada-lang.c (parse): Likewise.
9123 * ada-lang.h: Forward declare "struct parser_state".
9124 (ada_parse): Add "struct parser_state" argument.
9125 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9126 calls to both functions.
9127 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9128 parser state.
9129 (yyparse): Redefine macro to f_parse_internal.
9130 (pstate): New variable.
9131 (parse_number): Add "struct parser_state" argument.
9132 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9133 and similars in order to use parser state.
9134 (parse_number): Adjust code to use parser state.
9135 (yylex): Likewise.
9136 (f_parse): New function.
9137 * f-lang.h: Forward declare "struct parser_state".
9138 (f_parse): Add "struct parser_state" argument.
9139 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9140 parser state.
9141 (yyparse): Redefine macro for java_parse_internal.
9142 (pstate): New variable.
9143 (push_expression_name, push_expression_name, insert_exp): Add
9144 "struct parser_state" argument.
9145 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9146 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9147 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9148 PostIncrementExpression, PostDecrementExpression,
9149 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9150 UnaryExpressionNotPlusMinus, CastExpression,
9151 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9152 RelationalExpression, EqualityExpression, AndExpression,
9153 ExclusiveOrExpression, InclusiveOrExpression,
9154 ConditionalAndExpression, ConditionalOrExpression,
9155 ConditionalExpression, Assignment, LeftHandSide): Update
9156 calls to write_exp* and similars in order to use parser state.
9157 (parse_number): Ajust code to use parser state.
9158 (yylex): Likewise.
9159 (java_parse): New function.
9160 (push_variable): Add "struct parser_state" argument. Adjust
9161 code to user parser state.
9162 (push_fieldnames, push_qualified_expression_name,
9163 push_expression_name, insert_exp): Likewise.
9164 * jv-lang.h: Forward declare "struct parser_state".
9165 (java_parse): Add "struct parser_state" argument.
9166 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9167 parser state.
9168 (yyparse): Redefine macro to m2_parse_internal.
9169 (pstate): New variable.
9170 (type_exp, exp, fblock, variable, type): Update calls to
9171 write_exp* and similars to use parser state.
9172 (yylex): Likewise.
9173 (m2_parse): New function.
9174 * m2-lang.h: Forward declare "struct parser_state".
9175 (m2_parse): Add "struct parser_state" argument.
9176 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9177 * objc-lang.h: Forward declare "struct parser_state".
9178 (end_msglist): Add "struct parser_state" argument.
9179 * p-exp.y (parse_type): Rewrite macro to use parser state.
9180 (yyparse): Redefine macro to pascal_parse_internal.
9181 (pstate): New variable.
9182 (parse_number): Add "struct parser_state" argument.
9183 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9184 write_exp* and similars in order to use parser state.
9185 (parse_number, yylex): Adjust code to use parser state.
9186 (pascal_parse): New function.
9187 * p-lang.h: Forward declare "struct parser_state".
9188 (pascal_parse): Add "struct parser_state" argument.
9189 * go-exp.y (parse_type): Rewrite macro to use parser state.
9190 (yyparse): Redefine macro to go_parse_internal.
9191 (pstate): New variable.
9192 (parse_number): Add "struct parser_state" argument.
9193 (type_exp, exp1, exp, variable, type): Update calls to
9194 write_exp* and similars in order to use parser state.
9195 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9196 to use parser state.
9197 (go_parse): Likewise.
9198 * go-lang.h: Forward declare "struct parser_state".
9199 (go_parse): Add "struct parser_state" argument.
9200
342587c4
DE
92012014-03-27 Doug Evans <dje@google.com>
9202
9203 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9204
33e80786
DE
92052014-03-27 Doug Evans <dje@google.com>
9206
9207 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9208 Remove argument abbrev_section. All callers updated.
9209
1dbab08b
DE
92102014-03-27 Doug Evans <dje@google.com>
9211
9212 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9213 addr_base, ranges_base.
9214
318d3177
KS
92152014-03-26 Keith Seitz <keiths@redhat.com>
9216
9217 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9218 types, not VAR_DOMAIN.
9219
1e54db15
SL
92202014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9221
9222 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9223 "ra" registers.
9224 * features/nios2-linux.c: Regenerated.
9225 * features/nios2.c: Regenerated.
9226
d3839ede
PA
92272014-03-25 Pedro Alves <palves@redhat.com>
9228
9229 * cli/cli-script.c (script_from_file): Force the interpreter to
9230 sync mode.
9231
7588d2ec
PL
92322014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9233
9234 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9235 small stack allocation.
9236
a6290449
TG
92372014-03-24 Tristan Gingold <gingold@adacore.com>
9238
9239 * darwin-nat.c (exc_server): Remove unused prototype.
9240 (darwin_dump_message): Correctly display data on x86_64.
9241 (darwin_encode_reply): Fix style.
9242 Add comments and fix indentation.
9243
31ae9d24 92442014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9245
9246 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9247
6339bfc4
DE
92482014-03-22 Doug Evans <xdje42@gmail.com>
9249
9250 * infcmd.c: Whitespace fixes.
9251 (interrupt_command): Merge two function comments into one.
9252
0a07590b
DE
92532014-03-22 Doug Evans <xdje42@gmail.com>
9254
9255 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9256 All uses updated.
9257
b55fbac4
YQ
92582014-03-22 Yao Qi <yao@codesourcery.com>
9259
9260 * remote.c (target_read_live_memory): Remove.
9261 (memory_xfer_live_readonly_partial): Rename it to
9262 remote_xfer_live_readonly_partial. Remove argument 'object'.
9263 All callers updated. Call remote_read_bytes_1
9264 instead of target_read_live_memory.
9265 * tracepoint.c (set_traceframe_number): Remove.
9266 (make_cleanup_restore_traceframe_number): Likewise .
9267 * tracepoint.h (set_traceframe_number): Remove declaration.
9268 (make_cleanup_restore_traceframe_number): Likewise.
9269
9217e74e
YQ
92702014-03-22 Yao Qi <yao@codesourcery.com>
9271
9272 * remote.c (remote_read_bytes): Move code on reading from the
9273 remote stub to ...
9274 (remote_read_bytes_1): ... here. New function.
9275
8acf9577
YQ
92762014-03-22 Yao Qi <yao@codesourcery.com>
9277
9278 * ctf.c (ctf_xfer_partial): Check the return value of
9279 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9280 return TARGET_XFER_UNAVAILABLE.
9281 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9282 * target.c (target_read_live_memory): Move it to remote.c.
9283 (memory_xfer_live_readonly_partial): Likewise.
9284 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9285 * remote.c (target_read_live_memory): Moved from target.c.
9286 (memory_xfer_live_readonly_partial): Likewise.
9287 (remote_read_bytes): Factored out from
9288 memory_xfer_partial_1.
9289
feef67ab
DE
92902014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9291
9292 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9293 NULL pointer.
9294
b65dc60b
PA
92952014-03-21 Pedro Alves <palves@redhat.com>
9296
9297 * infrun.c (normal_stop): Extend comment.
9298
b4ab256d
HZ
92992014-03-21 Hui Zhu <hui@codesourcery.com>
9300 Pedro Alves <palves@redhat.com>
9301
9302 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9303 static buffer.
9304 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9305 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9306 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9307
deba7593
MR
93082014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9309
9310 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9311 `z' formatted output modifier.
9312
1bff71c3
SDJ
93132014-03-20 Tom Tromey <tromey@redhat.com>
9314 Sergio Durigan Junior <sergiodj@redhat.com>
9315
9316 * probe.c (parse_probes): Turn assert into an ordinary error.
9317 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9318 exceptions when parsing probes. Rearrange the code for clarity.
9319
90e28950
TT
93202014-03-20 Tom Tromey <tromey@redhat.com>
9321
9322 PR gdb/14135
9323 * top.c (execute_command): Only dispatch events if the command
9324 started the target.
9325
beb460e8
PA
93262014-03-20 Tom Tromey <tromey@redhat.com>
9327
9328 PR cli/15718
9329 * infcall.c: Include event-top.h.
9330 (run_inferior_call): Call async_disable_stdin if needed.
9331
99619bea
PA
93322014-03-20 Pedro Alves <palves@redhat.com>
9333
9334 * infrun.c (prepare_to_proceed): Delete.
9335 (thread_still_needs_step_over): New function.
9336 (find_thread_needs_step_over): New function.
9337 (proceed): If the current thread needs a step-over, set its
9338 steping_over_breakpoint flag. Adjust to use
9339 find_thread_needs_step_over instead of prepare_to_proceed.
9340 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9341 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9342 breakpoint.
9343 (switch_back_to_stepped_thread): Step over breakpoints of all
9344 threads not the stepping thread, before switching back to the
9345 stepping thread.
9346
2adfaa28
PA
93472014-03-20 Pedro Alves <palves@redhat.com>
9348
9349 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9350 extern.
9351 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9352 * infrun.c (saved_singlestep_ptid)
9353 (stepping_past_singlestep_breakpoint): Delete.
9354 (resume): Remove stepping_past_singlestep_breakpoint handling.
9355 (proceed): Store the prev_pc of the stepping thread too.
9356 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9357 singlestep_pc.
9358 (enum infwait_states): Delete infwait_thread_hop_state.
9359 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9360 field.
9361 (handle_inferior_event): Adjust.
9362 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9363 handling and the thread-hop code. Before removing single-step
9364 breakpoints, check whether the thread hit a single-step breakpoint
9365 of another thread. If it did, the trap is not a random signal.
9366 (switch_back_to_stepped_thread): If the event thread hit a
9367 single-step breakpoint, unblock it before switching to the
9368 stepping thread. Handle the case of the stepped thread having
9369 advanced already.
9370 (keep_going): Handle the case of the current thread moving past a
9371 single-step breakpoint.
9372
31e77af2
PA
93732014-03-20 Pedro Alves <palves@redhat.com>
9374
9375 PR breakpoints/7143
9376 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9377 are being stepped over.
9378 (breakpoint_address_match): Make extern.
9379 * breakpoint.h (breakpoint_address_match): New declaration.
9380 * inferior.h (stepping_past_instruction_at): New declaration.
9381 * infrun.c (struct step_over_info): New type.
9382 (step_over_info): New global.
9383 (set_step_over_info, clear_step_over_info)
9384 (stepping_past_instruction_at): New functions.
9385 (handle_inferior_event): Clear the step-over info when
9386 trap_expected is cleared.
9387 (resume): Remove now stale comment.
9388 (clear_proceed_status): Clear step-over info.
9389 (proceed): Adjust step-over handling to set or clear the step-over
9390 info instead of removing all breakpoints.
9391 (handle_signal_stop): When setting up a thread-hop, don't remove
9392 breakpoints here.
9393 (stop_stepping): Clear step-over info.
9394 (keep_going): Adjust step-over handling to set or clear step-over
9395 info and then always inserting breakpoints, instead of removing
9396 all breakpoints when stepping over one.
9397
b9f437de
PA
93982014-03-20 Pedro Alves <palves@redhat.com>
9399
9400 * infrun.c (previous_inferior_ptid): Adjust comment.
9401 (deferred_step_ptid): Delete.
9402 (infrun_thread_ptid_changed, prepare_to_proceed)
9403 (init_wait_for_inferior): Adjust.
9404 (handle_signal_stop): Delete deferred_step_ptid handling.
9405
06c868a8
JK
94062014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 PR gdb/15358
9409 * defs.h (sync_quit_force_run): New declaration.
9410 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9411 * event-top.c (async_sigterm_handler): New declaration.
9412 (async_sigterm_token): New variable.
9413 (async_init_signals): Create also async_sigterm_token.
9414 (async_sigterm_handler): New function.
9415 (sync_quit_force_run): New variable.
9416 (handle_sigterm): Replace quit_force call by other calls.
9417 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9418
dea80df0
MR
94192014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9420
9421 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9422 offset into SPE pseudo registers.
9423
0c7e1a46
PA
94242014-03-18 Pedro Alves <palves@redhat.com>
9425
9426 PR gdb/13860
9427 * inferior.h (print_stop_event): Declare.
9428 * infrun.c (print_stop_event): New, factored out from ...
9429 (normal_stop): ... this.
9430 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9431 of bpstat_print/print_stack_frame.
9432
9c1fcd01
TT
94332014-03-17 Tom Tromey <tromey@redhat.com>
9434
9435 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9436
11aa919a
PMR
94372014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9438
9439 * ada-lang.c (decode_constrained_packed_array): Perform a
9440 minimal coercion for reference with coerce_ref instead of
9441 ada_coerce_ref.
9442
d4ccb5e0
TG
94432014-03-17 Tristan Gingold <gingold@adacore.com>
9444
9445 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9446 (darwin_solib_create_inferior_hook): Emit a warning if version
9447 is unhandled.
9448
49840f2a
UW
94492014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9450
9451 * python/py-value.c (get_field_flag): Cast flag_name argument to
9452 PyObject_GetAttrString to support Python 2.4.
9453
ed4123e5
JK
94542014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9455
9456 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9457 (Global Maintainers): Remove Jan Kratochvil.
9458
d6b64346
PA
94592014-03-14 Pedro Alves <palves@redhat.com>
9460
9461 * inferior.h (terminal_ours_for_output): Rename to ...
9462 (child_terminal_ours_for_output): ... this.
9463 (terminal_save_ours): Rename to ...
9464 (child_terminal_save_ours): ... this.
9465 (terminal_ours): Rename to ...
9466 (child_terminal_ours): ... this.
9467 (terminal_inferior): Rename to ...
9468 (child_terminal_inferior): ... this.
9469 (terminal_init_inferior): Rename to ...
9470 (child_terminal_init_inferior): ... this.
9471 (terminal_init_inferior_with_pgrp): Rename to ...
9472 (child_terminal_init_inferior_with_pgrp): ... this.
9473 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9474 (child_terminal_init_with_pgrp): ... this.
9475 (terminal_save_ours): Rename to ...
9476 (child_terminal_save_ours): ... this.
9477 (terminal_init_inferior): Rename to ...
9478 (child_terminal_init): ... this. Adjust.
9479 (terminal_inferior): Rename to ...
9480 (child_terminal_inferior): ... this.
9481 (terminal_ours_for_output): Rename to ...
9482 (child_terminal_ours_for_output): ... this. Adjust.
9483 (terminal_ours): Rename to ...
9484 (child_terminal_ours): ... this.
9485 (terminal_ours_1): Rename to ...
9486 (child_terminal_ours_1): ... this. Adjust.
9487 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9488 * windows-nat.c (do_initial_windows_stuff): Adjust.
9489 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9490 (gnu_terminal_init): ... this. Adjust.
9491 (gnu_target): Adjust.
9492 * inf-child.c (inf_child_target): Adjust.
9493
5a1e8c7a
DE
94942014-03-13 Doug Evans <xdje42@gmail.com>
9495
9496 PR guile/16612
9497 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9498 new eq?-hashtab.
9499
350e1a76
DE
95002014-03-13 Doug Evans <xdje42@gmail.com>
9501
9502 * value.c (record_latest_value): Call release_value_or_incref
9503 instead of release_value.
9504
a69900ae
PA
95052014-03-13 Pedro Alves <palves@redhat.com>
9506
9507 * procfs.c (procfs_target): Don't override to_shortname,
9508 to_longname or to_doc.
9509
5db9f0bd
PA
95102014-03-13 Pedro Alves <palves@redhat.com>
9511
9512 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9513 Unix in user visible strings.
9514
5e3a2c38
SS
95152014-03-12 Stan Shebs <stan@codesourcery.com>
9516
9517 * gdbtypes.h: Annotate comments for Doxygen, add a page
9518 block comment with some general info.
9519
8bc2fe48
PA
95202014-03-12 Pedro Alves <palves@redhat.com>
9521
9522 * infcmd.c (prepare_execution_command): New function, factored out
9523 from several execution commands.
9524 (run_command_1, continue_command, step_1, jump_command)
9525 (signal_command, until_command, advance_command, finish_command)
9526 (attach_command): Use prepare_execution_command.
9527
638c5f49
OJ
95282014-03-12 Omair Javaid <omair.javaid@linaro.org>
9529
9530 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9531 (MAX_BPTS): Define.
9532 (MAX_WPTS): Define.
9533 (struct arm_linux_thread_points): Removed.
9534 (struct arm_linux_process_info): New.
9535 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9536 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9537 (arm_linux_find_breakpoints_by_tid): Removed.
9538 (struct arch_lwp_info): New.
9539 (arm_linux_find_process_pid): New functions.
9540 (arm_linux_add_process): New functions.
9541 (arm_linux_process_info_get): New functions.
9542 (arm_linux_forget_process): New function.
9543 (arm_linux_get_debug_reg_state): New function.
9544 (struct update_registers_data): New.
9545 (update_registers_callback): New function.
9546 (arm_linux_insert_hw_breakpoint1): Updated.
9547 (arm_linux_remove_hw_breakpoint1): Updated.
9548 (arm_linux_insert_hw_breakpoint): Updated.
9549 (arm_linux_remove_hw_breakpoint): Updated.
9550 (arm_linux_insert_watchpoint): Updated.
9551 (arm_linux_remove_watchpoint): Updated.
9552 (arm_linux_new_thread): Updated.
9553 (arm_linux_prepare_to_resume): New function.
9554 (arm_linux_new_fork): New function.
9555 (_initialize_arm_linux_nat): Updated.
9556
6d03af93
PA
95572014-03-12 Pedro Alves <palves@redhat.com>
9558
9559 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9560
b3ccfe11
TT
95612014-03-12 Tom Tromey <tromey@redhat.com>
9562
9563 * inf-child.c (return_zero): New function.
9564 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9565 * aix-thread.c (aix_thread_inferior_created): New function.
9566 (aix_thread_attach): Remove.
9567 (init_aix_thread_ops): Don't set to_attach.
9568 (_initialize_aix_thread): Register inferior_created observer.
9569 * corelow.c (init_core_ops): Don't set to_attach or
9570 to_create_inferior.
9571 * exec.c (init_exec_ops): Don't set to_attach or
9572 to_create_inferior.
9573 * infcmd.c (run_command_1): Use find_run_target. Make direct
9574 target calls.
9575 (attach_command): Use find_attach_target. Make direct target
9576 calls.
9577 * record-btrace.c (init_record_btrace_ops): Don't set
9578 to_create_inferior.
9579 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9580 Remove.
9581 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9582 set to_create_inferior.
9583 * target.c (complete_target_initialization): Add assertion.
9584 (target_create_inferior): Remove.
9585 (find_default_attach, find_default_create_inferior): Remove.
9586 (find_attach_target, find_run_target): New functions.
9587 (find_default_is_async_p, find_default_can_async_p)
9588 (target_supports_non_stop, target_attach): Remove.
9589 (init_dummy_target): Don't set to_create_inferior or
9590 to_supports_non_stop.
9591 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9592 TARGET_DEFAULT_FUNC.
9593 <to_create_inferior>: Add comment.
9594 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9595 TARGET_DEFAULT_RETURN.
9596 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9597 (find_attach_target, find_run_target): Declare.
9598 (target_create_inferior): Remove.
9599 (target_has_execution_1): Update comment.
9600 (target_supports_non_stop): Remove.
9601 * target-delegates.c: Rebuild.
9602
91f83b02
PA
96032014-03-12 Pedro Alves <palves@redhat.com>
9604
9605 * inf-child.h: Update comment to not mention Unix.
9606
f1aea813
PA
96072014-03-12 Pedro Alves <palves@redhat.com>
9608
9609 * inf-child.c: Update top comment to not mention Unix. Add
9610 generic comment describing how this target is meant to be used.
9611 (inf_child_post_attach, inf_child_post_startup_inferior)
9612 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9613 Unix in comment.
9614
ee8e9165
PA
96152014-03-12 Pedro Alves <palves@redhat.com>
9616
9617 * nto-procfs.c: Include inf-child.h.
9618 (procfs_ops): Delete global.
9619 (procfs_can_run): Delete method.
9620 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9621 target pointer instead of referencing procfs_ops.
9622 (procfs_prepare_to_store): Delete.
9623 (init_procfs_ops): Delete function.
9624 (procfs_target): New function, based on init_procfs_ops, but
9625 inherit inf_child_target.
9626 (_initialize_procfs): Use procfs_target.
9627
51a9c8c5
PA
96282014-03-12 Pedro Alves <palves@redhat.com>
9629
9630 * windows-nat.c: Include inf-child.h.
9631 (windows_ops): Delete global.
9632 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9633 methods.
9634 (init_windows_ops): Delete function.
9635 (windows_target): New function, based on init_windows_ops, but
9636 inherit inf_child_target.
9637 (_initialize_windows_nat): Use windows_target. Install x86
9638 specific target methods here.
9639
c1966e26
DE
96402014-03-10 Doug Evans <xdje42@gmail.com>
9641
9642 * guile/guile.c (call_initialize_gdb_module): New function.
9643 (initialize_guile): Replace call to scm_init_guile with call to
9644 scm_with_guile.
9645
023db19c
JB
96462014-03-10 Joel Brobecker <brobecker@adacore.com>
9647
9648 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9649 in call to TYPE_CODE macro.
9650
5ec18f2b
JG
96512014-03-10 Jerome Guitton <guitton@adacore.com>
9652
8668be63
JB
9653 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9654 Resolve tagged types to full view.
5ec18f2b 9655
7d03f2eb
HZ
96562014-03-10 Hui Zhu <hui@codesourcery.com>
9657
9658 * target.h (target_insert_breakpoint): Remove "hardware" from its
9659 comments.
9660
c5164cbc
DE
96612014-03-07 Doug Evans <dje@google.com>
9662
9663 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9664
c4a3fee2
DE
96652014-03-07 Doug Evans <dje@google.com>
9666
9667 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9668 Remove unused local comp_dir_attr. Assert exactly one of
9669 stub_comp_unit_die, stub_comp_dir is non-NULL.
9670
3156469c
JB
96712014-03-07 Joel Brobecker <brobecker@adacore.com>
9672
9673 * target.h (complete_target_initialization, add_target):
9674 Add comment.
9675
c1a7b7c6
PA
96762014-03-07 Pedro Alves <palves@redhat.com>
9677
9678 * go32-nat.c: Include inf-child.h.
9679 (go32_ops): Delete global.
9680 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9681 Delete methods.
9682 (go32_create_inferior): Push the passed in target pointer instead
9683 of referencing go32_ops.
9684 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9685 (go32_target): New function, based on init_go32_ops, but inherit
9686 inf_child_target.
9687 (_initialize_go32_nat): Use go32_target. Move parts of
9688 init_go32_ops here.
9689
d3c1a85f
JB
96902014-03-06 Joel Brobecker <brobecker@adacore.com>
9691
9692 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9693 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9694 SYMBOL_VALUE_ADDRESS.
9695 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9696
5fa1d40e
YQ
96972014-03-06 Yao Qi <yao@codesourcery.com>
9698
9699 * breakpoint.c (get_tracepoint_by_number): Remove argument
9700 optional_p. All callers updated. Adjust comments. Update
9701 output message.
9702 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9703
0c13193f
YQ
97042014-03-06 Yao Qi <yao@codesourcery.com>
9705
9706 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9707 early if get_number returns zero. Use 'p' instead of 'args'.
9708
2217da06
YQ
97092014-03-06 Yao Qi <yao@codesourcery.com>
9710
9711 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9712 message.
9713
cc3da688
YQ
97142014-03-06 Yao Qi <yao@codesourcery.com>
9715
9716 PR breakpoints/16508
9717 * tracepoint.c (check_trace_running): New function.
9718 (trace_find_command): Move code to check_trace_running and
9719 call check_trace_running.
9720 (trace_find_pc_command): Likewise.
9721 (trace_find_tracepoint_command): Likewise.
9722 (trace_find_line_command): Likewise.
9723 (trace_find_range_command): Likewise.
9724 * tracepoint.h (check_trace_running): Likewise.
9725 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9726
6a5f844b
YQ
97272014-03-06 Yao Qi <yao@codesourcery.com>
9728
9729 * target.h (struct target_ops) <to_traceframe_info>: Use
9730 TARGET_DEFAULT_NORETURN (tcomplain ()).
9731 * target-delegates.c: Regenerated.
9732
0f26cec1
PA
97332014-03-05 Pedro Alves <palves@redhat.com>
9734
9735 PR gdb/16575
9736 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9737 void. Update comment.
9738 (dcache_xfer_memory): Delete.
9739 (dcache_read_memory_partial): New, based on the read bits of
9740 dcache_xfer_memory.
9741 (dcache_update): Add status parameter. Use ULONGEST for len, and
9742 adjust. Discard cache lines if the reason for the update was
9743 error.
9744 * dcache.h (dcache_xfer_memory): Delete declaration.
9745 (dcache_read_memory_partial): New declaration.
9746 (dcache_update): Update prototype.
9747 * target.c (raw_memory_xfer_partial): Update the dcache here.
9748 (memory_xfer_partial_1): Don't handle dcache writes here.
9749
b2b255bd
MF
97502014-03-05 Mike Frysinger <vapier@gentoo.org>
9751
9752 * remote-sim.c (gdbsim_load): Add const to prog.
9753
5d9cf8a4
TT
97542014-03-03 Tom Tromey <tromey@redhat.com>
9755
9756 * elfread.c (probe_key): Change to bfd_data.
9757 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9758 now per-BFD, not per-objfile.
9759 * stap-probe.c (stap_probe_destroy): Update comment.
9760 (handle_stap_probe): Allocate on the per-BFD obstack.
9761
729662a5
TT
97622014-03-03 Tom Tromey <tromey@redhat.com>
9763
9764 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9765 * breakpoint.c (create_longjmp_master_breakpoint): Use
9766 get_probe_address.
9767 (add_location_to_breakpoint, bkpt_probe_insert_location)
9768 (bkpt_probe_remove_location): Update.
9769 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9770 * elfread.c (elf_symfile_relocate_probe): Remove.
9771 (elf_probe_fns): Update.
9772 (insert_exception_resume_breakpoint): Change type of "probe"
9773 parameter to bound_probe.
9774 (check_exception_resume): Update.
9775 * objfiles.c (objfile_relocate1): Don't relocate probes.
9776 * probe.c (bound_probe_s): New typedef.
9777 (parse_probes): Use get_probe_address. Set sal's objfile.
9778 (find_probe_by_pc): Return a bound_probe.
9779 (collect_probes): Return a VEC(bound_probe_s).
9780 (compare_probes): Update.
9781 (gen_ui_out_table_header_info): Change type of "probes"
9782 parameter. Update.
9783 (info_probes_for_ops): Update.
9784 (get_probe_address): New function.
9785 (probe_safe_evaluate_at_pc): Update.
9786 * probe.h (struct probe_ops) <get_probe_address>: New field.
9787 <set_semaphore, clear_semaphore>: Add objfile parameter.
9788 (struct probe) <objfile>: Remove field.
9789 <arch>: New field.
9790 <address>: Update comment.
9791 (struct bound_probe): New.
9792 (find_probe_by_pc): Return a bound_probe.
9793 (get_probe_address): Declare.
9794 * solib-svr4.c (struct probe_and_action) <address>: New field.
9795 (hash_probe_and_action, equal_probe_and_action): Update.
9796 (register_solib_event_probe): Add address parameter.
9797 (solib_event_probe_at): Update.
9798 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9799 get_probe_address.
9800 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9801 (stap_get_probe_address): New function.
9802 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9803 (compile_probe_arg): Update.
9804 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9805 address.
9806 (handle_stap_probe): Don't relocate the probe.
9807 (stap_relocate): Remove.
9808 (stap_gen_info_probes_table_values): Update.
9809 (stap_probe_ops): Remove stap_relocate.
9810 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9811 (debug_sym_probe_fns): Update.
9812 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9813 * symtab.c (init_sal): Use memset.
9814 * symtab.h (struct symtab_and_line) <objfile>: New field.
9815 * tracepoint.c (start_tracing, stop_tracing): Update.
9816
ff887920
TT
98172014-03-03 Tom Tromey <tromey@redhat.com>
9818
9819 * probe.h (parse_probes, find_probe_by_pc)
9820 (find_probes_in_objfile): Fix comments.
9821
f0407826
DE
98222014-03-02 Doug Evans <xdje42@gmail.com>
9823
9824 * infrun.c (handle_signal_stop): Replace test for
9825 TARGET_WAITKIND_STOPPED with an assert.
9826
35e6a711
DE
98272014-03-02 Doug Evans <xdje42@gmail.com>
9828
9829 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9830
667f9d0b
DE
98312014-03-02 Doug Evans <xdje42@gmail.com>
9832
9833 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9834
dc92ace0
MK
98352014-03-01 Mark Kettenis <kettenis@gnu.org>
9836
9837 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9838
a900370f
MK
98392014-03-01 Mark Kettenis <kettenis@gnu.org>
9840
9841 * i386obsd-nat.c: Include "obsd-nat.h".
9842 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9843 add_target.
9844 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9845
b72a7981
MK
98462014-03-01 Mark Kettenis <kettenis@gnu.org>
9847
9848 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9849
96c70aba
MK
98502014-03-01 Mark Kettenis <kettenis@gnu.org>
9851
9852 * mips64obsd-nat.c: Include "obsd-nath".
9853 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9854 add_target
9855 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9856
874a80af
MK
98572014-03-01 Mark Kettenis <kettenis@gnu.org>
9858
8fd408f1
MK
9859 * amd64obsd-nat.c: Include "obsd-nat,h.
9860 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9861 add_target.
874a80af
MK
9862 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9863
9cf95373
SC
98642014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9865
9866 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9867 (find_overload_match): Update call to find_oload_champ.
9868 (find_oload_champ_namespace_loop): Likewise
9869
863e4da4
MK
98702014-02-28 Mark Kettenis <kettenis@gnu.org>
9871
025cac40
MK
9872 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9873
1ed586ce
MK
9874 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9875 * config/sparc/obsd64.mh: New file.
9876 * sparc64obsd-nat.c: New file.
9877
863e4da4
MK
9878 * obsd-nat.h: New file.
9879 * obsd-nat.c: New file.
9880 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9881 (ALLDEPFILES): Add obsd-nat.c.
9882
89de4da4
TT
98832014-02-28 Tom Tromey <tromey@redhat.com>
9884
9885 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9886 * cli-out.h (cli_ui_out_impl): Now const.
9887 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9888 * ui-out.c (struct ui_out) <impl>: Now const.
9889 (default_ui_out_impl): Now const.
9890 (ui_out_new): Make 'impl' parameter const.
9891 * ui-out.h (ui_out_new): Update.
9892
c725e7b6
MK
98932014-02-27 Mark Kettenis <kettenis@gnu.org>
9894
9895 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9896
670b46b3
MK
98972014-02-27 Mark Kettenis <kettenis@gnu.org>
9898
9899 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9900
c91550fc
JK
99012014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9902
9903 Additional PR 8882 fix.
9904 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9905
2fa0369e
PA
99062014-02-27 Pedro Alves <palves@redhat.com>
9907
9908 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9909 isn't set.
9910
d632a097
PA
99112014-02-27 Pedro Alves <palves@redhat.com>
9912
9913 PR 12702
9914 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9915 * nat/linux-waitpid.c: Include string.h.
9916 (status_to_str): Moved here and made extern.
9917 * nat/linux-waitpid.h (status_to_str): New declaration.
9918
2ebd5a35
HZ
99192014-02-27 Hui Zhu <hui@codesourcery.com>
9920
9921 PR 12702
9922 * infrun.c (ptid_match): Move ...
9923 * common/ptid.c (ptid_match): ... here.
9924 * inferior.h (ptid_match): Move ...
9925 * common/ptid.h (ptid_match): ... here.
9926
3cdd631f
MK
99272014-02-27 Mark Kettenis <kettenis@gnu.org>
9928
9929 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9930 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9931 gdb_target_obs.
9932
bee30a64
MK
99332014-02-27 Mark Kettenis <kettenis@gnu.org>
9934
9935 * obsd-tdep.c (obsd_auxv_parse): New function.
9936 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9937
9938 * gdbarch.sh (auxv_parse): New.
9939 * gdbarch.h: Regenerated.
9940 * gdbarch.c: Regenerated.
9941 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9942
7a5a839f
LC
99432014-02-26 Ludovic Courtès <ludo@gnu.org>
9944
9945 * guile/scm-value.c (gdbscm_history_append_x): New function.
9946 (value_functions): Add it.
9947
31aa7e4e
JB
99482014-02-27 Joel Brobecker <brobecker@adacore.com>
9949
9950 * dwarf2read.c (attr_value_as_address): New function.
9951 (dwarf2_find_base_address, read_call_site_scope): Use
9952 attr_value_as_address in place of DW_ADDR.
9953 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9954 the low and high addresses. Slight rework of the handling
9955 of the high pc being a constant form, and limit it to
9956 DWARF verson 4 or higher.
9957 (dwarf2_record_block_ranges): Likewise.
9958 (read_partial_die): Likewise.
9959 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9960
9b333ba3
TT
99612014-02-26 Tom Tromey <tromey@redhat.com>
9962
9963 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9964
5f6cac40
TT
99652014-02-26 Tom Tromey <tromey@redhat.com>
9966
9967 * elfread.c (elf_read_minimal_symbols): Return early if
9968 minimal symbols have already been read. Add "ei" parameter.
9969 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9970 * minsyms.c (prim_record_minimal_symbol_full): Update.
9971 * objfiles.h (struct objstats) <n_minsyms>: Move...
9972 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9973 * symmisc.c (print_objfile_statistics): Update.
9974
2750ef27
TT
99752014-02-26 Tom Tromey <tromey@redhat.com>
9976
9977 * elfread.c (elf_read_minimal_symbols): New function, from
9978 elf_symfile_read.
9979 (elf_symfile_read): Call it.
9980
34643a32
TT
99812014-02-26 Tom Tromey <tromey@redhat.com>
9982
9983 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9984 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9985 (lookup_minimal_symbol_solib_trampoline)
9986 (lookup_minimal_symbol_by_pc_section_1)
9987 (lookup_minimal_symbol_and_objfile): Update.
9988 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9989 Don't allocate a minimal symbol if minsyms have already been read.
9990 (build_minimal_symbol_hash_tables): Update.
9991 (install_minimal_symbols): Do nothing if minsyms already read.
9992 Use the per-BFD obstack.
9993 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9994 * objfiles.c (allocate_objfile): Call
9995 terminate_minimal_symbol_table later.
9996 (have_minimal_symbols): Update.
9997 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9998 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9999 Move from struct objfile.
10000 <minsyms_read>: New field.
10001 (struct objfile) <msymbols, minimal_symbol_count,
10002 msymbol_hash, msymbol_demangled_hash>: Move.
10003 (ALL_OBJFILE_MSYMBOLS): Update.
10004 * symfile.c (read_symbols): Set minsyms_read.
10005 (reread_symbols): Update.
10006 * symmisc.c (dump_objfile, dump_msymbols): Update.
10007
2273f0ac
TT
100082014-02-26 Tom Tromey <tromey@redhat.com>
10009
10010 * minsyms.c (msymbols_sort): Remove.
10011 * minsyms.h (msymbols_sort): Remove.
10012 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10013 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10014 * elfread.c (elf_symtab_read): Don't add section offsets.
10015 * xcoffread.c (record_minimal_symbol): Don't add section offset
10016 to minimal symbol address.
10017 * somread.c (text_offset, data_offset): Remove.
10018 (som_symtab_read): Don't add section offsets to minimal symbol
10019 addresses.
10020 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10021 Don't add section offsets to minimal symbols.
10022 * coffread.c (coff_symtab_read): Don't add section offsets
10023 to minimal symbol addresses.
10024 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10025 to minimal symbol addresses.
10026 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10027 section offset to minimal symbol addresses.
10028 * mdebugread.c (parse_partial_symbols): Don't add section
10029 offset to minimal symbol addresses.
10030 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10031 offset to minimal symbol addresses.
10032
77e371c0
TT
100332014-02-26 Tom Tromey <tromey@redhat.com>
10034
10035 * ada-lang.c (ada_main_name): Update.
10036 (ada_add_standard_exceptions): Update.
10037 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10038 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10039 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10040 * auxv.c (ld_so_xfer_auxv): Update.
10041 * avr-tdep.c (avr_scan_prologue): Update.
10042 * ax-gdb.c (gen_var_ref): Update.
10043 * blockframe.c (get_pc_function_start)
10044 (find_pc_partial_function_gnu_ifunc): Update.
10045 * breakpoint.c (create_overlay_event_breakpoint)
10046 (create_longjmp_master_breakpoint)
10047 (create_std_terminate_master_breakpoint)
10048 (create_exception_master_breakpoint): Update.
10049 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10050 * c-valprint.c (c_val_print): Update.
10051 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10052 * common/agent.c (agent_look_up_symbols): Update.
10053 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10054 * dwarf2loc.c (call_site_to_target_addr): Update.
10055 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10056 * elfread.c (elf_gnu_ifunc_record_cache)
10057 (elf_gnu_ifunc_resolve_by_got): Update.
10058 * findvar.c (default_read_var_value): Update.
10059 * frame.c (inside_main_func): Update.
10060 * frv-tdep.c (frv_frame_this_id): Update.
10061 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10062 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10063 Update.
10064 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10065 (hppa_hpux_find_dummy_bpaddr): Update.
10066 * hppa-tdep.c (hppa_symbol_address): Update.
10067 * infcmd.c (until_next_command): Update.
10068 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10069 Update.
10070 * linespec.c (minsym_found, add_minsym): Update.
10071 * linux-nat.c (get_signo): Update.
10072 * linux-thread-db.c (inferior_has_bug): Update.
10073 * m32c-tdep.c (m32c_return_value)
10074 (m32c_m16c_address_to_pointer): Update.
10075 * m32r-tdep.c (m32r_frame_this_id): Update.
10076 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10077 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10078 * maint.c (maintenance_translate_address): Update.
10079 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10080 (frob_address): New function.
10081 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10082 frob_address. Rename parameter to "pc_in".
10083 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10084 addresses.
10085 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10086 Update.
10087 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10088 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10089 * objc-lang.c (find_objc_msgsend): Update.
10090 * objfiles.c (objfile_relocate1): Update.
10091 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10092 * p-valprint.c (pascal_val_print): Update.
10093 * parse.c (write_exp_msymbol): Update.
10094 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10095 (ppc_elfv2_skip_entrypoint): Update.
10096 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10097 * printcmd.c (build_address_symbolic, msym_info)
10098 (address_info): Update.
10099 * proc-service.c (ps_pglobal_lookup): Update.
10100 * psymtab.c (find_pc_sect_psymtab_closer)
10101 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10102 Change msymbol parameter to bound_minimal_symbol.
10103 * ravenscar-thread.c (get_running_thread_id): Update.
10104 * remote.c (remote_check_symbols): Update.
10105 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10106 address.
10107 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10108 * solib-dsbt.c (lm_base): Update.
10109 * solib-frv.c (lm_base, main_got): Update.
10110 * solib-irix.c (locate_base): Update.
10111 * solib-som.c (som_solib_create_inferior_hook)
10112 (link_map_start): Update.
10113 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10114 * solib-svr4.c (elf_locate_base, enable_break): Update.
10115 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10116 (flush_ea_cache): Update.
10117 * stabsread.c (define_symbol, scan_file_globals): Update.
10118 * stack.c (find_frame_funname): Update.
10119 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10120 (debug_qf_find_pc_sect_symtab): Update.
10121 * symfile.c (simple_read_overlay_table)
10122 (simple_overlay_update): Update.
10123 * symfile.h (struct quick_symbol_functions)
10124 <find_pc_sect_symtab>: Change type of msymbol to
10125 bound_minimal_symbol.
10126 * symmisc.c (dump_msymbols): Update.
10127 * symtab.c (find_pc_sect_symtab_via_partial)
10128 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10129 (search_symbols, print_msymbol_info): Update.
10130 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10131 (MSYMBOL_VALUE_ADDRESS): Redefine.
10132 (BMSYMBOL_VALUE_ADDRESS): New macro.
10133 * tracepoint.c (scope_info): Update.
10134 * tui/tui-disasm.c (tui_find_disassembly_address)
10135 (tui_get_begin_asm_address): Update.
10136 * valops.c (find_function_in_inferior): Update.
10137 * value.c (value_static_field, value_fn_field): Update.
10138
3b7344d5
TT
101392014-02-26 Tom Tromey <tromey@redhat.com>
10140
10141 * ada-lang.c (ada_update_initial_language): Update.
10142 (ada_main_name, ada_has_this_exception_support): Update.
10143 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10144 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10145 * arm-tdep.c (arm_skip_stub): Update.
10146 * auxv.c (ld_so_xfer_auxv): Update.
10147 * avr-tdep.c (avr_scan_prologue): Update.
10148 * ax-gdb.c (gen_var_ref): Update.
10149 * breakpoint.c (struct breakpoint_objfile_data)
10150 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10151 type to bound_minimal_symbol.
10152 (create_overlay_event_breakpoint)
10153 (create_longjmp_master_breakpoint)
10154 (create_std_terminate_master_breakpoint)
10155 (create_exception_master_breakpoint): Update.
10156 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10157 * c-exp.y (classify_name): Update.
10158 * coffread.c (coff_symfile_read): Update.
10159 * common/agent.c (agent_look_up_symbols): Update.
10160 * d-lang.c (d_main_name): Update.
10161 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10162 * dec-thread.c (enable_dec_thread): Update.
10163 * dwarf2loc.c (call_site_to_target_addr): Update.
10164 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10165 * eval.c (evaluate_subexp_standard): Update.
10166 * findvar.c (struct minsym_lookup_data) <result>: Change type
10167 to bound_minimal_symbol.
10168 <objfile>: Remove.
10169 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10170 * frame.c (inside_main_func): Update.
10171 * frv-tdep.c (frv_frame_this_id): Update.
10172 * gcore.c (call_target_sbrk): Update.
10173 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10174 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10175 Update.
10176 * go-lang.c (go_main_name): Update.
10177 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10178 (hppa_hpux_find_import_stub_for_addr): Update.
10179 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10180 Update. Change return type.
10181 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10182 type.
10183 * jit.c (jit_breakpoint_re_set_internal): Update.
10184 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10185 Update.
10186 * linux-nat.c (get_signo): Update.
10187 * linux-thread-db.c (inferior_has_bug): Update
10188 * m32c-tdep.c (m32c_return_value)
10189 (m32c_m16c_address_to_pointer): Update.
10190 * m32r-tdep.c (m32r_frame_this_id): Update.
10191 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10192 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10193 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10194 lookup_minimal_symbol. Change return type.
10195 (lookup_minimal_symbol): Remove.
10196 (lookup_bound_minimal_symbol): Update.
10197 (lookup_minimal_symbol_text): Change return type.
10198 (lookup_minimal_symbol_solib_trampoline): Change return type.
10199 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10200 (lookup_minimal_symbol_solib_trampoline): Change return type.
10201 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10202 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10203 (value_nsstring, find_imps): Update.
10204 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10205 * p-lang.c (pascal_main_name): Update.
10206 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10207 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10208 * proc-service.c (ps_pglobal_lookup): Update.
10209 * ravenscar-thread.c (get_running_thread_msymbol): Change
10210 return type.
10211 (has_ravenscar_runtime, get_running_thread_id): Update.
10212 * remote.c (remote_check_symbols): Update.
10213 * sol-thread.c (ps_pglobal_lookup): Update.
10214 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10215 * solib-dsbt.c (lm_base): Update.
10216 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10217 Update.
10218 * solib-irix.c (locate_base): Update.
10219 * solib-som.c (som_solib_create_inferior_hook)
10220 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10221 Update.
10222 * solib-spu.c (spu_enable_break): Update.
10223 * solib-svr4.c (elf_locate_base, enable_break): Update.
10224 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10225 (flush_ea_cache): Update.
10226 * stabsread.c (define_symbol): Update.
10227 * symfile.c (simple_read_overlay_table): Update.
10228 * symtab.c (find_pc_sect_line): Update.
10229 * tracepoint.c (scope_info): Update.
10230 * tui-disasm.c (tui_get_begin_asm_address): Update.
10231 * value.c (value_static_field): Update.
10232
40c1a007
TT
102332014-02-26 Tom Tromey <tromey@redhat.com>
10234
10235 * minsyms.c (prim_record_minimal_symbol_full): Use
10236 SET_MSYMBOL_VALUE_ADDRESS.
10237 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10238 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10239 SET_MSYMBOL_VALUE_ADDRESS.
10240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10241 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10242
efd66ac6
TT
102432014-02-26 Tom Tromey <tromey@redhat.com>
10244
10245 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10246 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10247 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10248 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10249 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10250 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10251 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10252 * ada-lang.c (ada_main_name): Update.
10253 (ada_lookup_simple_minsym): Update.
10254 (ada_make_symbol_completion_list): Update.
10255 (ada_add_standard_exceptions): Update.
10256 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10257 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10258 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10259 * arm-tdep.c (skip_prologue_function): Update.
10260 (arm_skip_stack_protector, arm_skip_stub): Update.
10261 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10262 (arm_wince_skip_main_prologue): Update.
10263 * auxv.c (ld_so_xfer_auxv): Update.
10264 * avr-tdep.c (avr_scan_prologue): Update.
10265 * ax-gdb.c (gen_var_ref): Update.
10266 * block.c (call_site_for_pc): Update.
10267 * blockframe.c (get_pc_function_start): Update.
10268 (find_pc_partial_function_gnu_ifunc): Update.
10269 * breakpoint.c (create_overlay_event_breakpoint): Update.
10270 (create_longjmp_master_breakpoint): Update.
10271 (create_std_terminate_master_breakpoint): Update.
10272 (create_exception_master_breakpoint): Update.
10273 (resolve_sal_pc): Update.
10274 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10275 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10276 Update.
10277 * c-valprint.c (c_val_print): Update.
10278 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10279 * coffread.c (coff_symfile_read): Update.
10280 * common/agent.c (agent_look_up_symbols): Update.
10281 * dbxread.c (find_stab_function_addr): Update.
10282 (end_psymtab): Update.
10283 * dwarf2loc.c (call_site_to_target_addr): Update.
10284 (func_verify_no_selftailcall): Update.
10285 (tailcall_dump): Update.
10286 (call_site_find_chain_1): Update.
10287 (dwarf_expr_reg_to_entry_parameter): Update.
10288 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10289 (elf_gnu_ifunc_resolve_by_got): Update.
10290 * f-valprint.c (info_common_command): Update.
10291 * findvar.c (read_var_value): Update.
10292 * frame.c (get_prev_frame_1): Update.
10293 (inside_main_func): Update.
10294 * frv-tdep.c (frv_skip_main_prologue): Update.
10295 (frv_frame_this_id): Update.
10296 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10297 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10298 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10299 (gnuv3_skip_trampoline): Update.
10300 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10301 (hppa64_hpux_in_solib_call_trampoline): Update.
10302 (hppa_hpux_skip_trampoline_code): Update.
10303 (hppa64_hpux_search_dummy_call_sequence): Update.
10304 (hppa_hpux_find_import_stub_for_addr): Update.
10305 (hppa_hpux_find_dummy_bpaddr): Update.
10306 * hppa-tdep.c (hppa_symbol_address)
10307 (hppa_lookup_stub_minimal_symbol): Update.
10308 * i386-tdep.c (i386_skip_main_prologue): Update.
10309 (i386_pe_skip_trampoline_code): Update.
10310 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10311 * infcall.c (get_function_name): Update.
10312 * infcmd.c (until_next_command): Update.
10313 * jit.c (jit_breakpoint_re_set_internal): Update.
10314 (jit_inferior_init): Update.
10315 * linespec.c (minsym_found): Update.
10316 (add_minsym): Update.
10317 * linux-fork.c (info_checkpoints_command): Update.
10318 * linux-nat.c (get_signo): Update.
10319 * linux-thread-db.c (inferior_has_bug): Update.
10320 * m32c-tdep.c (m32c_return_value): Update.
10321 (m32c_m16c_address_to_pointer): Update.
10322 (m32c_m16c_pointer_to_address): Update.
10323 * m32r-tdep.c (m32r_frame_this_id): Update.
10324 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10325 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10326 * maint.c (maintenance_translate_address): Update.
10327 * minsyms.c (add_minsym_to_hash_table): Update.
10328 (add_minsym_to_demangled_hash_table): Update.
10329 (msymbol_objfile): Update.
10330 (lookup_minimal_symbol): Update.
10331 (iterate_over_minimal_symbols): Update.
10332 (lookup_minimal_symbol_text): Update.
10333 (lookup_minimal_symbol_by_pc_name): Update.
10334 (lookup_minimal_symbol_solib_trampoline): Update.
10335 (lookup_minimal_symbol_by_pc_section_1): Update.
10336 (lookup_minimal_symbol_and_objfile): Update.
10337 (prim_record_minimal_symbol_full): Update.
10338 (compare_minimal_symbols): Update.
10339 (compact_minimal_symbols): Update.
10340 (build_minimal_symbol_hash_tables): Update.
10341 (install_minimal_symbols): Update.
10342 (terminate_minimal_symbol_table): Update.
10343 (find_solib_trampoline_target): Update.
10344 (minimal_symbol_upper_bound): Update.
10345 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10346 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10347 (mips_skip_pic_trampoline_code): Update.
10348 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10349 * objc-lang.c (selectors_info): Update.
10350 (classes_info): Update.
10351 (find_methods): Update.
10352 (find_imps): Update.
10353 (find_objc_msgsend): Update.
10354 * objfiles.c (objfile_relocate1): Update.
10355 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10356 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10357 * p-valprint.c (pascal_val_print): Update.
10358 * parse.c (write_exp_msymbol): Update.
10359 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10360 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10361 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10362 * printcmd.c (build_address_symbolic): Update.
10363 (sym_info): Update.
10364 (address_info): Update.
10365 * proc-service.c (ps_pglobal_lookup): Update.
10366 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10367 (find_pc_sect_psymtab): Update.
10368 * python/py-framefilter.c (py_print_frame): Update.
10369 * ravenscar-thread.c (get_running_thread_id): Update.
10370 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10371 Update.
10372 * remote.c (remote_check_symbols): Update.
10373 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10374 (rs6000_skip_trampoline_code): Update.
10375 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10376 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10377 * solib-dsbt.c (lm_base): Update.
10378 * solib-frv.c (lm_base): Update.
10379 (main_got): Update.
10380 * solib-irix.c (locate_base): Update.
10381 * solib-som.c (som_solib_create_inferior_hook): Update.
10382 (som_solib_desire_dynamic_linker_symbols): Update.
10383 (link_map_start): Update.
10384 * solib-spu.c (spu_enable_break): Update.
10385 (ocl_enable_break): Update.
10386 * solib-svr4.c (elf_locate_base): Update.
10387 (enable_break): Update.
10388 * spu-tdep.c (spu_get_overlay_table): Update.
10389 (spu_catch_start): Update.
10390 (flush_ea_cache): Update.
10391 * stabsread.c (define_symbol): Update.
10392 (scan_file_globals): Update.
10393 * stack.c (find_frame_funname): Update.
10394 (frame_info): Update.
10395 * symfile.c (simple_read_overlay_table): Update.
10396 (simple_overlay_update): Update.
10397 * symmisc.c (dump_msymbols): Update.
10398 * symtab.c (fixup_section): Update.
10399 (find_pc_sect_line): Update.
10400 (skip_prologue_sal): Update.
10401 (search_symbols): Update.
10402 (print_msymbol_info): Update.
10403 (rbreak_command): Update.
10404 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10405 (completion_list_objc_symbol): Update.
10406 (default_make_symbol_completion_list_break_on): Update.
10407 * tracepoint.c (scope_info): Update.
10408 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10409 (tui_get_begin_asm_address): Update.
10410 * valops.c (find_function_in_inferior): Update.
10411 * value.c (value_static_field): Update.
10412 (value_fn_field): Update.
10413
50e65b17
TT
104142014-02-26 Tom Tromey <tromey@redhat.com>
10415
10416 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10417 bound minimal symbols. Move code that knows about minsym
10418 table layout...
10419 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10420 function.
10421 * minsyms.h (minimal_symbol_upper_bound): Declare.
10422 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10423 minimal_symbol_upper_bound.
10424
1b588015
JB
104252014-02-27 Joel Brobecker <brobecker@adacore.com>
10426
10427 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10428 Use the type's name if its basic type does not have a tag.
10429
dbb9c2b1
JB
104302014-02-27 Joel Brobecker <brobecker@adacore.com>
10431
10432 * dwarf2read.c (read_subrange_type): Add comment.
10433
55426c9d
JB
104342014-02-27 Joel Brobecker <brobecker@adacore.com>
10435
10436 * dwarf2read.c (update_enumeration_type_from_children): New
10437 function, mostly extracted from process_structure_scope.
10438 (read_enumeration_type): Call update_enumeration_type_from_children.
10439 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10440 and flag_flag_enum fields.
10441
f2fce0ca
PA
104422014-02-26 Pedro Alves <palves@redhat.com>
10443
10444 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10445 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10446 to_xfer_partial method.
10447
7a44e40e
PA
104482014-02-26 Pedro Alves <palves@redhat.com>
10449
10450 * target.c (complete_target_initialization): Don't install
10451 default_xfer_partial as to_xfer_partial hook.
10452 (nomemory): Delete.
10453 (update_current_target): Don't INHERIT nor de_fault
10454 deprecated_xfer_memory. Delete de_fault macro.
10455 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10456 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10457 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10458 field.
10459
bd265cd0
PA
104602014-02-26 Pedro Alves <palves@redhat.com>
10461
10462 * go32-nat.c (my_write_child): New function.
10463 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10464 (go32_xfer_partial): New function.
10465 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10466 Instead install a to_xfer_partial hook.
10467
9d46c4e5
PA
104682014-02-26 Pedro Alves <palves@redhat.com>
10469
10470 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10471 to_xfer_partial helper. Rewrite.
10472 (procfs_xfer_partial): New function.
10473 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10474 Install a to_xfer_partial hook.
10475
a1583b1f
PA
104762014-02-26 Pedro Alves <palves@redhat.com>
10477
10478 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10479 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10480 (m32r_xfer_partial): New function.
10481 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10482 Install a to_xfer_partial hook.
10483
6df1b29f
PA
104842014-02-26 Pedro Alves <palves@redhat.com>
10485
10486 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10487 helper.
10488 (mips_xfer_partial): New function.
10489 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10490 hook. Install a to_xfer_partial hook.
10491
dc53a7ad
JB
104922014-02-26 Joel Brobecker <brobecker@adacore.com>
10493
10494 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10495 * gdbtypes.c (create_array_type_with_stride): New function,
10496 renaming create_array_type, but with an added parameter
10497 called "bit_stride".
10498 (create_array_type): Re-implement using
10499 create_array_type_with_stride.
10500 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10501 and DW_AT_bit_stride attributes.
10502
12ab52e9
PA
105032014-02-26 Pedro Alves <palves@redhat.com>
10504
10505 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10506 task-specific breakpoints.
10507
d16461ae
PA
105082014-02-25 Pedro Alves <palves@redhat.com>
10509
10510 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10511 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10512
a8b16220
SS
105132014-02-25 Stan Shebs <stan@codesourcery.com>
10514
10515 * defs.h: Annotate comments for Doxygen.
10516
b9e795ee
TT
105172014-02-25 Tom Tromey <tromey@redhat.com>
10518
10519 * target.h (target_ignore): Don't declare.
10520 * target.c (target_ignore): Remove.
10521
849c862e
JK
105222014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10523
10524 PR gdb/16626
10525 * auto-load.c (auto_load_objfile_script_1): Change filename to
10526 debugfile.
10527
475109d8
JB
105282014-02-25 Joel Brobecker <brobecker@adacore.com>
10529
10530 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10531 documentation. Adjust prototype to match the target_ops
10532 to_xfer_partial method. Adjust implementation accordingly.
10533
e186c3bd
HZ
105342014-02-25 Hui Zhu <hui@codesourcery.com>
10535
10536 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10537 to_traceframe_info.
10538
6d451942
KB
105392014-02-25 Kevin Buettner <kevinb@redhat.com>
10540
041ab8b4 10541 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10542 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10543 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10544 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10545 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10546 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10547 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10548 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10549 New constants.
10550 (rl78_register_type): Use a data pointer type for SP and
10551 new pseudo registers mentioned above. Use a 16 bit integer
10552 type for all other register pairs.
10553 (rl78_register_name, rl78_g10_register_name): Update for
10554 new pseudo registers.
10555 (rl78_pseudo_register_read): Likewise.
10556 (rl78_pseudo_register_write): Likewise.
10557 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10558 to the newly added pseudo registers.
10559
eddf0bae
DE
105602014-02-24 Doug Evans <dje@google.com>
10561
10562 * value.c (record_latest_value): Fix comment.
10563 * printcmd.c (print_command_1): Remove code to handle -1 return from
10564 record_latest_value.
10565
e96027e0
PA
105662014-02-24 Pedro Alves <palves@redhat.com>
10567
10568 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10569 deprecated_xfer_memory hook.
10570 (procfs_xfer_partial): Call procfs_xfer_memory instead
10571 of the deprecated_xfer_memory target hook.
10572 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10573 helper.
10574
0837c976
YZ
105752014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10576
10577 * windows-nat.c (windows_xfer_shared_libraries): Return
10578 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10579 requested object is TARGET_OBJECT_LIBRARIES.
10580
bc113b4e
YQ
105812014-02-24 Yao Qi <yao@codesourcery.com>
10582
10583 * target.h (enum target_xfer_status)
10584 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10585 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10586 explicitly. New.
10587 * corefile.c (memory_error_message): User updated.
10588 * exec.c (section_table_read_available_memory): Likewise.
10589 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10590 * target.c (target_xfer_status_to_string): Likewise.
10591 (raw_memory_xfer_partial): Likewise.
10592 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10593 * valops.c (read_value_memory): Likewise.
10594 * exec.h: Update comments.
10595
01cb8804
YQ
105962014-02-24 Yao Qi <yao@codesourcery.com>
10597
10598 * target.c (target_xfer_status_to_string): Rename argument err
10599 to status.
10600 * target.h (target_xfer_status_to_string): Update declaration.
10601 Replace target_xfer_error_to_string with
10602 target_xfer_status_to_string in comment.
10603
93063aa6
YQ
106042014-02-24 Yao Qi <yao@codesourcery.com>
10605
10606 * mips-linux-nat.c (super_close): Update its type.
10607 (mips_linux_close): Pass 'self' to super_close.
10608
5c328c05
YQ
106092014-02-24 Yao Qi <yao@codesourcery.com>
10610
10611 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10612 * corefile.c (read_memory): Adjusted.
10613 * target.c (target_write_with_progress): Adjusted.
10614
f73023dd
YQ
106152014-02-23 Yao Qi <yao@codesourcery.com>
10616
10617 Revert two patches:
10618
10619 2013-10-25 Yao Qi <yao@codesourcery.com>
10620
10621 * remote.c (remote_traceframe_info): Return early if
10622 traceframe is not selected.
10623
10624 2013-07-19 Yao Qi <yao@codesourcery.com>
10625
10626 * target.c (update_current_target): Change the default action
10627 of 'to_traceframe_info' from tcomplain to return_zero.
10628 * target.h (struct target_ops) <to_traceframe_info>: Add more
10629 comments.
10630
5a2eb0ef
YQ
106312014-02-23 Yao Qi <yao@codesourcery.com>
10632
10633 * valops.c (read_value_memory): Rewrite it. Call
10634 target_xfer_partial in a loop.
10635 * exec.h (section_table_available_memory): Remove declaration.
10636 Move comments to ...
10637 * exec.c (section_table_available_memory): ... here. Make it
10638 static.
10639
1ee79381
YQ
106402014-02-23 Yao Qi <yao@codesourcery.com>
10641
10642 * exec.c (section_table_read_available_memory): New function.
10643 * exec.h (section_table_read_available_memory): Declare.
10644 * ctf.c (ctf_xfer_partial): Call
10645 section_table_read_available_memory.
10646 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10647
1ca49d37
YQ
106482014-02-23 Yao Qi <yao@codesourcery.com>
10649
10650 * ctf.c (ctf_xfer_partial): Move code to ...
10651 * exec.c (exec_read_partial_read_only): ... it. New function.
10652 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10653 * tracefile.c: Include "exec.h".
10654 * exec.h (exec_read_partial_read_only): Declare.
10655
a283690e
YQ
106562014-02-23 Yao Qi <yao@codesourcery.com>
10657
10658 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10659 (tfile_has_memory): Remove.
10660 (init_tfile_ops): Don't set fields to_has_all_memory and
10661 to_has_memory of tfile_ops.
10662 * tracefile.c (tracefile_has_all_memory): New function.
10663 (tracefile_has_memory): New function.
10664 (init_tracefile_ops): Initialize fields to_has_all_memory and
10665 to_has_memory of 'ops'.
10666
12e03cd0
YQ
106672014-02-23 Yao Qi <yao@codesourcery.com>
10668
10669 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10670 (ctf_thread_alive, ctf_get_trace_status): Remove.
10671 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10672 init_tracefile_ops.
10673 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10674 (tfile_has_stack, tfile_has_registers): Remove.
10675 (tfile_thread_alive): Remove.
10676 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10677 init_tracefile_ops.
10678 * tracefile.c (tracefile_has_stack): New function.
10679 (tracefile_has_registers): New function.
10680 (tracefile_thread_alive): New function.
10681 (tracefile_get_trace_status): New function.
10682 (init_tracefile_ops): New function.
10683 * tracefile.h (init_tracefile_ops): Declare.
10684
11395323
YQ
106852014-02-23 Yao Qi <yao@codesourcery.com>
10686
10687 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10688 (O_LARGEFILE): Likewise.
10689 (tfile_ops): Likewise.
10690 (TRACE_HEADER_SIZE): Likewise.
10691 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10692 (cur_data_size): Likewise.
10693 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10694 (tfile_close, tfile_files_info): Likewise.
10695 (tfile_get_trace_status): Likewise.
10696 (tfile_get_tracepoint_status): Likewise.
10697 (tfile_get_traceframe_address): Likewise.
10698 (tfile_trace_find, match_blocktype): Likewise.
10699 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10700 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10701 (tfile_get_trace_state_variable_value): Likewise.
10702 (tfile_has_all_memory, tfile_has_memory): Likewise.
10703 (tfile_has_stack, tfile_has_registers): Likewise.
10704 (tfile_thread_alive, build_traceframe_info): Likewise.
10705 (tfile_traceframe_info, init_tfile_ops): Likewise.
10706 (_initialize_tracepoint): Don't call init_tfile_ops
10707 and add_target_with_completer.
10708 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10709 exec.h, completer.h and filenames.h.
10710 (_initialize_tracefile_tfile): New function.
10711
7951c4eb
YQ
107122014-02-23 Yao Qi <yao@codesourcery.com>
10713
10714 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10715 tracefile-tfile.o.
10716 (HFILES_NO_SRCDIR): Add tracefile.h.
10717 * ctf.c: Include "tracefile.h".
10718 * tracefile.h: New file.
10719 * tracefile.c: New file
10720 * tracefile-tfile.c: New file.
10721 * tracepoint.c: Include "tracefile.h".
10722 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10723 (stop_reason_names): Add const.
10724 (trace_file_writer_xfree): Move it to tracefile.c.
10725 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10726 (trace_save_ctf): Likewise.
10727 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10728 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10729 (tfile_write_header, tfile_write_regblock_type): Likewise.
10730 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10731 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10732 (tfile_write_raw_data, tfile_end): Likewise.
10733 (tfile_trace_file_writer_new): Likewise.
10734 (free_uploaded_tp): Make it extern.
10735 (free_uploaded_tsv): Make it extern.
10736 (_initialize_tracepoint): Move code to register command 'tsave'
10737 to tracefile.c.
10738 * tracepoint.h (stop_reason_names): Declare.
10739 (struct trace_frame_write_ops): Move it to tracefile.h.
10740 (struct trace_file_write_ops): Likewise.
10741 (struct trace_file_writer): Likewise.
10742 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10743
184cd072
JK
107442014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 PR gdb/16594
10747 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10748 process name.
10749 (get_cores_used_by_process): New parameter num_cores, use it.
10750 (linux_xfer_osdata_processes): Pass num_cores to it.
10751 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10752 process name.
10753
c63528fc
AK
107542014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10755
10756 * target.c (memory_xfer_partial): Fix length arg in call to
10757 breakpoint_xfer_memory.
10758
d7b30f67
SDJ
107592014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10760
10761 PR tdep/16397
10762 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10763 number comes after the + or - signs. Adjust length of register
10764 name to be extracted.
10765
8838afaf
TT
107662014-02-20 Tom Tromey <tromey@redhat.com>
10767
10768 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10769 (ada_varobj_ops): Mark "extern".
10770
05227d14
TT
107712014-02-20 Tom Tromey <tromey@redhat.com>
10772
10773 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10774
1254eefc
DE
107752014-02-20 Doug Evans <xdje42@gmail.com>
10776
10777 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10778 All callers updated.
10779 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10780 All callers updated.
10781 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10782 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10783
adde2bff
DE
107842014-02-20 lin zuojian <manjian2006@gmail.com>
10785 Joel Brobecker <brobecker@adacore.com>
10786 Doug Evans <xdje42@gmail.com>
10787
10788 PR symtab/16581
10789 * dwarf2read.c (struct die_info): New member in_process.
10790 (reset_die_in_process): New function.
10791 (process_die): Set it at the start, reset when returning.
10792 (inherit_abstract_dies): Only call process_die if origin_child_die
10793 not already being processed.
10794
3be75f87
JB
107952014-02-20 Joel Brobecker <brobecker@adacore.com>
10796
10797 * windows-nat.c (handle_unload_dll): Add function documentation.
10798 (do_initial_windows_stuff): Add comment explaining why we wait
10799 until after inferior initialization has finished before
10800 processing all DLLs.
10801
47f7ffdb
JB
108022014-02-20 Joel Brobecker <brobecker@adacore.com>
10803
10804 * windows-nat.c (get_module_name): Delete.
10805 (windows_get_exec_module_filename): New function, mostly
10806 inspired from get_module_name.
10807 (windows_pid_to_exec_file): Replace call to get_module_name
10808 by call to windows_get_exec_module_filename.
10809
1cd9feab
JB
108102014-02-20 Joel Brobecker <brobecker@adacore.com>
10811
10812 * windows-nat.c (handle_load_dll): Rewrite this function's
10813 introductory comment. Remove code using get_module_name
10814 to get the DLL's name.
10815
ea39ad35
JB
108162014-02-20 Joel Brobecker <brobecker@adacore.com>
10817
10818 * windows-nat.c (get_windows_debug_event): Ignore
10819 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10820 if windows_initialization_done == 0.
10821 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10822 Adjust implementation to always load all DLLs.
10823 (do_initial_windows_stuff): Replace call to
10824 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10825
95060284
JB
108262014-02-20 Joel Brobecker <brobecker@adacore.com>
10827
10828 * windows-nat.c (_initialize_windows_nat): Deprecate the
10829 "dll-symbols" command. Turn the "add-shared-symbol-files"
10830 and "assf" aliases into commands, and deprecate them as well.
10831 * NEWS: Add entry explaining that "dll-symbols" and its two
10832 aliases are now deprecated.
10833
8d4fdb12
JB
108342014-02-20 Joel Brobecker <brobecker@adacore.com>
10835
10836 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10837 new-line in debug string. Remove trailing spaces.
10838
1b281443
SS
108392014-02-19 Stan Shebs <stan@codesourcery.com>
10840
10841 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10842
f7bd0f78
SC
108432014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10844
10845 * NEWS: Add entry for the new feature
10846 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10847 and class values.
10848
399ebc3d
SS
108492014-02-19 Stan Shebs <stan@codesourcery.com>
10850
10851 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10852
c658158d
PA
108532014-02-19 Pedro Alves <palves@redhat.com>
10854
10855 * common/ptid.h (struct ptid): Mention that process_stratum
10856 targets should prefer ptid.lwp.
10857
ba348170
PA
108582014-02-19 Pedro Alves <palves@redhat.com>
10859
10860 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10861 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10862 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10863 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10864 store remote thread ids rather than ptid.tid.
10865 (_initialize_remote): Adjust.
10866
ac01945b
TT
108672014-02-19 Tom Tromey <tromey@redhat.com>
10868
10869 * target.c (target_get_unwinder): Rewrite.
10870 (target_get_tailcall_unwinder): Rewrite.
10871 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10872 (record_btrace_to_get_tailcall_unwinder): New function.
10873 (init_record_btrace_ops): Update.
10874 * target.h (struct target_ops) <to_get_unwinder,
10875 to_get_tailcall_unwinder>: Now function pointers. Use
10876 TARGET_DEFAULT_RETURN.
10877
8476dc92
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10881 argument.
10882 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10883
c0eca49f
TT
108842014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10887 directly.
10888 * target-delegates.c: Rebuild.
10889 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10890 TARGET_DEFAULT_FUNC.
10891 * target.c (default_target_decr_pc_after_break): Rename from
10892 forward_target_decr_pc_after_break. Simplify.
10893 (target_decr_pc_after_break): Rely on delegation.
10894
596b6b39
TT
108952014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target.c (update_current_target): Do not INHERIT to_doc or
10898 to_magic. Do not de_fault to_open or to_close.
10899
b427c1bc
TT
109002014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * gcore.h (objfile_find_memory_regions): Declare.
10903 * gcore.c (objfile_find_memory_regions): No longer static. Add
10904 "self" argument.
10905 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10906 * exec.c: Include gcore.h.
10907 (exec_set_find_memory_regions): Remove.
10908 (exec_find_memory_regions): Remove.
10909 (exec_do_find_memory_regions): Remove.
10910 (init_exec_ops): Update.
10911 * defs.h (exec_set_find_memory_regions): Remove.
10912
9b144037
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target-delegates.c: Rebuild.
10916 * target.h (struct target_ops) <to_extra_thread_info,
10917 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10918 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10919 not 0, in TARGET_DEFAULT_RETURN.
10920
555bbdeb
TT
109212014-02-19 Tom Tromey <tromey@redhat.com>
10922
10923 * target.c (complete_target_initialization): Remove casts. Use
10924 return_zero_has_execution.
10925 (return_zero): Add "ignore" argument.
10926 (return_zero_has_execution): New function.
10927 (init_dummy_target): Remove casts. Use
10928 return_zero_has_execution.
10929
be4ddd36
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target.c (update_current_target): Update comments. Do not
10933 INHERIT to_stratum.
10934
2117c711
TT
109352014-02-19 Tom Tromey <tromey@redhat.com>
10936
10937 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10938 needed.
10939 * corelow.c (core_read_description): Delegate when needed.
10940 * remote.c (remote_read_description): Delegate when needed.
10941 * target-delegates.c: Rebuild.
10942 * target.c (target_read_description): Rewrite.
10943 * target.h (struct target_ops) <to_read_description>: Update
10944 comment. Use TARGET_DEFAULT_RETURN.
10945
e88ef65c
TT
109462014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_can_run.
10951 (find_default_run_target): Check against delegate_can_run.
10952 * target.h (struct target_ops) <to_can_run>: Use
10953 TARGET_DEFAULT_RETURN.
10954
86a0854a
TT
109552014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target-delegates.c: Rebuild.
10958 * target.c (target_disconnect): Unconditionally delegate.
10959 * target.h (struct target_ops) <to_disconnect>: Use
10960 TARGET_DEFAULT_NORETURN.
10961
ee97f592
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * record.c (record_stop): Unconditionally delegate.
10965 * target-delegates.c: Rebuild.
10966 * target.c (target_stop_recording): Unconditionally delegate.
10967 * target.h (struct target_ops) <to_stop_recording>: Use
10968 TARGET_DEFAULT_IGNORE.
10969
6dc7fcf4
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (target_enable_btrace): Unconditionally delegate.
10974 * target.h (struct target_ops) <to_enable_btrace>: Use
10975 TARGET_DEFAULT_NORETURN.
10976
eb5b20d4
TT
109772014-02-19 Tom Tromey <tromey@redhat.com>
10978
10979 * target-delegates.c: Rebuild.
10980 * target.c (target_read_btrace): Unconditionally delegate.
10981 * target.h (struct target_ops) <to_read_btrace>: Use
10982 TARGET_DEFAULT_NORETURN.
10983
9ace480d
TT
109842014-02-19 Tom Tromey <tromey@redhat.com>
10985
10986 * target-delegates.c: Rebuild.
10987 * target.c (target_teardown_btrace): Unconditionally delegate.
10988 * target.h (struct target_ops) <to_teardown_btrace>: Use
10989 TARGET_DEFAULT_NORETURN.
10990
8dc292d3
TT
109912014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target-delegates.c: Rebuild.
10994 * target.c (target_disable_btrace): Unconditionally delegate.
10995 * target.h (struct target_ops) <to_disable_btrace>: Use
10996 TARGET_DEFAULT_NORETURN.
10997
58a5184e
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target-delegates.c: Rebuild.
11001 * target.c (default_search_memory): New function.
11002 (simple_search_memory): Update comment.
11003 (target_search_memory): Unconditionally delegate.
11004 * target.h (struct target_ops) <to_search_memory>: Use
11005 TARGET_DEFAULT_FUNC.
11006
8de71aab
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * auxv.c (default_auxv_parse): No longer static.
11010 (target_auxv_parse): Unconditionally delegate.
11011 * auxv.h (default_auxv_parse): Declare.
11012 * target-delegates.c: Rebuild.
11013 * target.c: Include auxv.h.
11014 * target.h (struct target_ops) <to_auxv_parse>: Use
11015 TARGET_DEFAULT_FUNC.
11016
6b2c5a57
TT
110172014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target-delegates.c: Rebuild.
11020 * target.c (target_memory_map): Unconditionally delegate.
11021 * target.h (struct target_ops) <to_memory_map>: Use
11022 TARGET_DEFAULT_RETURN.
11023
cbffc065
TT
110242014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * target-delegates.c: Rebuild.
11027 * target.c (target_thread_alive): Unconditionally delegate.
11028 * target.h (struct target_ops) <to_thread_alive>: Use
11029 TARGET_DEFAULT_RETURN.
11030
f09e2107
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target-delegates.c: Rebuild.
11034 * target.c (target_save_record): Unconditionally delegate.
11035 * target.h (struct target_ops) <to_save_record>: Use
11036 TARGET_DEFAULT_NORETURN.
11037
07366925
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target-delegates.c: Rebuild.
11041 * target.c (target_delete_record): Unconditionally delegate.
11042 * target.h (struct target_ops) <to_delete_record>: Use
11043 TARGET_DEFAULT_NORETURN.
11044
dd2e9d25
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target-delegates.c: Rebuild.
11048 * target.c (target_record_is_replaying): Unconditionally
11049 delegate.
11050 * target.h (struct target_ops) <to_record_is_replaying>: Use
11051 TARGET_DEFAULT_RETURN.
11052
671e76cc
TT
110532014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 * target-delegates.c: Rebuild.
11056 * target.c (target_goto_record_begin): Unconditionally delegate.
11057 * target.h (struct target_ops) <to_goto_record_begin>: Use
11058 TARGET_DEFAULT_NORETURN.
11059
e9179bb3
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (target_goto_record_end): Unconditionally delegate.
11064 * target.h (struct target_ops) <to_goto_record_end>: Use
11065 TARGET_DEFAULT_NORETURN.
11066
05969c84
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target-delegates.c: Rebuild.
11070 * target.c (target_goto_record): Unconditionally delegate.
11071 * target.h (struct target_ops) <to_goto_record>: Use
11072 TARGET_DEFAULT_NORETURN.
11073
3679abfa
TT
110742014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * target-delegates.c: Rebuild.
11077 * target.c (target_insn_history): Unconditionally delegate.
11078 * target.h (struct target_ops) <to_insn_history>: Use
11079 TARGET_DEFAULT_NORETURN.
11080
8444ab58
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target-delegates.c: Rebuild.
11084 * target.c (target_insn_history_from): Unconditionally delegate.
11085 * target.h (struct target_ops) <to_insn_history_from>: Use
11086 TARGET_DEFAULT_NORETURN.
11087
c29302cc
TT
110882014-02-19 Tom Tromey <tromey@redhat.com>
11089
11090 * target-delegates.c: Rebuild.
11091 * target.c (target_insn_history_range): Unconditionally delegate.
11092 * target.h (struct target_ops) <to_insn_history_range>: Use
11093 TARGET_DEFAULT_NORETURN.
11094
170049d4
TT
110952014-02-19 Tom Tromey <tromey@redhat.com>
11096
11097 * target-delegates.c: Rebuild.
11098 * target.c (target_call_history): Unconditionally delegate.
11099 * target.h (struct target_ops) <to_call_history>: Use
11100 TARGET_DEFAULT_NORETURN.
11101
16fc27d6
TT
111022014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target-delegates.c: Rebuild.
11105 * target.c (target_call_history_from): Unconditionally delegate.
11106 * target.h (struct target_ops) <to_call_history_from>: Use
11107 TARGET_DEFAULT_NORETURN.
11108
115d9817
TT
111092014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * target-delegates.c: Rebuild.
11112 * target.c (target_call_history_range): Unconditionally delegate.
11113 * target.h (struct target_ops) <to_call_history_range>: Use
11114 TARGET_DEFAULT_NORETURN.
11115
eb276a6b
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target-delegates.c: Rebuild.
11119 * target.c (target_verify_memory): Unconditionally delegate.
11120 * target.h (struct target_ops) <to_verify_memory>: Use
11121 TARGET_DEFAULT_NORETURN.
11122
9e538d0d
TT
111232014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target-delegates.c: Rebuild.
11126 * target.c (target_core_of_thread): Unconditionally delegate.
11127 * target.h (struct target_ops) <to_core_of_thread>: Use
11128 TARGET_DEFAULT_RETURN.
11129
f6fb2925
TT
111302014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target-delegates.c: Rebuild.
11133 * target.c (target_flash_done): Unconditionally delegate.
11134 * target.h (struct target_ops) <to_flash_done>: Use
11135 TARGET_DEFAULT_NORETURN.
11136
e8a6c6ac
TT
111372014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target-delegates.c: Rebuild.
11140 * target.c (target_flash_erase): Unconditionally delegate.
11141 * target.h (struct target_ops) <to_flash_erase>: Use
11142 TARGET_DEFAULT_NORETURN.
11143
7e35c012
TT
111442014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target-delegates.c: Rebuild.
11147 * target.c (target_get_section_table): Unconditionally delegate.
11148 * target.h (struct target_ops) <to_get_section_table>: Use
11149 TARGET_DEFAULT_RETURN.
11150
770234d3
TT
111512014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target-delegates.c: Rebuild.
11154 * target.c (target_pid_to_str): Unconditionally delegate.
11155 (init_dummy_target): Don't initialize to_pid_to_str.
11156 (default_pid_to_str): Rename from dummy_pid_to_str.
11157 * target.h (struct target_ops) <to_pid_to_str>: Use
11158 TARGET_DEFAULT_FUNC.
11159
09b0dc2b
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target-delegates.c: Rebuild.
11163 * target.c (target_find_new_threads): Unconditionally delegate.
11164 * target.h (struct target_ops) <to_find_new_threads>: Use
11165 TARGET_DEFAULT_RETURN.
11166
7d4f8efa
TT
111672014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target-delegates.c: Rebuild.
11170 * target.c (target_program_signals): Unconditionally delegate.
11171 * target.h (struct target_ops) <to_program_signals>: Use
11172 TARGET_DEFAULT_IGNORE.
11173
035cad7f
TT
111742014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target-delegates.c: Rebuild.
11177 * target.c (target_pass_signals): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_pass_signals>: Use
11179 TARGET_DEFAULT_IGNORE.
11180
8d657035
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target-delegates.c: Rebuild.
11184 * target.c (default_mourn_inferior): New function.
11185 (target_mourn_inferior): Unconditionally delegate.
11186 * target.h (struct target_ops) <to_mourn_inferior>: Use
11187 TARGET_DEFAULT_FUNC.
11188
098dba18
TT
111892014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target-delegates.c: Rebuild.
11192 * target.c (default_follow_fork): New function.
11193 (target_follow_fork): Unconditionally delegate.
11194 * target.h (struct target_ops) <to_follow_fork>: Use
11195 TARGET_DEFAULT_FUNC.
11196
423a4807
TT
111972014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target-delegates.c: Rebuild.
11200 * target.c (target_kill): Unconditionally delegate.
11201 * target.h (struct target_ops) <to_kill>: Use
11202 TARGET_DEFAULT_NORETURN.
11203
6c7e5e5c
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (target_masked_watch_num_registers): Unconditionally
11208 delegate.
11209 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11210 Use TARGET_DEFAULT_RETURN.
11211
8b1c364c
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target-delegates.c: Rebuild.
11215 * target.c (target_remove_mask_watchpoint): Unconditionally
11216 delegate.
11217 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11218 TARGET_DEFAULT_RETURN.
11219
cd4ae029
TT
112202014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target-delegates.c: Rebuild.
11223 * target.c (target_insert_mask_watchpoint): Unconditionally
11224 delegate.
11225 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11226 TARGET_DEFAULT_RETURN.
11227
a134316b
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target-delegates.c: Rebuild.
11231 * target.c (target_ranged_break_num_registers): Unconditionally
11232 delegate.
11233 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11234 Use TARGET_DEFAULT_RETURN.
11235
ad5989bd
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_fetch_registers): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_fetch_registers>: Use
11241 TARGET_DEFAULT_NORETURN.
11242
46ee7e8d
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target-delegates.c: Rebuild.
11246 * target.c (update_current_target): Don't inherit or default
11247 to_stop.
11248 * target.h (struct target_ops) <to_stop>: Use
11249 TARGET_DEFAULT_IGNORE.
11250
843f59ed
TT
112512014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * target-delegates.c: Rebuild.
11254 * target.c (update_current_target): Don't inherit or default
11255 to_can_run_breakpoint_commands.
11256 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11257 Use TARGET_DEFAULT_RETURN.
11258
ccfde2a0
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target-delegates.c: Rebuild.
11262 * target.c (update_current_target): Don't inherit or default
11263 to_supports_evaluation_of_breakpoint_conditions.
11264 * target.h (struct target_ops)
11265 <to_supports_evaluation_of_breakpoint_conditions>: Use
11266 TARGET_DEFAULT_RETURN.
11267
0de91722
TT
112682014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target-delegates.c: Rebuild.
11271 * target.c (update_current_target): Don't inherit or default
11272 to_augmented_libraries_svr4_read.
11273 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11274 Use TARGET_DEFAULT_RETURN.
11275
9a7d8b48
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target-delegates.c: Rebuild.
11279 * target.c (update_current_target): Don't inherit or default
11280 to_can_use_agent.
11281 * target.h (struct target_ops) <to_can_use_agent>: Use
11282 TARGET_DEFAULT_RETURN.
11283
d9db5b21
TT
112842014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target-delegates.c: Rebuild.
11287 * target.c (update_current_target): Don't inherit or default
11288 to_use_agent.
11289 * target.h (struct target_ops) <to_use_agent>: Use
11290 TARGET_DEFAULT_NORETURN.
11291
92155eeb
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target-delegates.c: Rebuild.
11295 * target.c (update_current_target): Don't inherit or default
11296 to_traceframe_info.
11297 (return_null): Remove.
11298 * target.h (struct target_ops) <to_traceframe_info>: Use
11299 TARGET_DEFAULT_RETURN.
11300
d6522a22
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target-delegates.c: Rebuild.
11304 * target.c (update_current_target): Don't inherit or default
11305 to_static_tracepoint_markers_by_strid.
11306 * target.h (struct target_ops)
11307 <to_static_tracepoint_markers_by_strid>: Use
11308 TARGET_DEFAULT_NORETURN.
11309
4c3e4425
TT
113102014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (update_current_target): Don't inherit or default
11314 to_static_tracepoint_marker_at.
11315 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11316 Use TARGET_DEFAULT_RETURN.
11317
dcd6917f
TT
113182014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (update_current_target): Don't inherit or default
11322 to_set_permissions.
11323 * target.h (struct target_ops) <to_set_permissions>: Use
11324 TARGET_DEFAULT_IGNORE.
11325
22bcceee
TT
113262014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target-delegates.c: Rebuild.
11329 * target.c (update_current_target): Don't inherit or default
11330 to_get_tib_address.
11331 * target.h (struct target_ops) <to_get_tib_address>: Use
11332 TARGET_DEFAULT_NORETURN.
11333
8586ccaa
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (update_current_target): Don't inherit or default
11338 to_set_trace_notes.
11339 * target.h (struct target_ops) <to_set_trace_notes>: Use
11340 TARGET_DEFAULT_RETURN.
11341
91df8d1d
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't initialize
11346 to_set_trace_buffer_size.
11347 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11348 TARGET_DEFAULT_IGNORE.
11349
8d526939
TT
113502014-02-19 Tom Tromey <tromey@redhat.com>
11351
11352 * target-delegates.c: Rebuild.
11353 * target.c (update_current_target): Don't inherit or default
11354 to_set_circular_trace_buffer.
11355 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11356 TARGET_DEFAULT_IGNORE.
11357
0bcfeddf
TT
113582014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * target-delegates.c: Rebuild.
11361 * target.c (update_current_target): Don't inherit or default
11362 to_set_disconnected_tracing.
11363 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11364 TARGET_DEFAULT_IGNORE.
11365
9249843f
TT
113662014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target-delegates.c: Rebuild.
11369 * target.c (update_current_target): Don't inherit or default
11370 to_get_min_fast_tracepoint_insn_len.
11371 (return_minus_one): Remove.
11372 * target.h (struct target_ops)
11373 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11374
ace92e7d
TT
113752014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_get_raw_trace_data.
11380 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11381 TARGET_DEFAULT_NORETURN.
11382
08120467
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target-delegates.c: Rebuild.
11386 * target.c (update_current_target): Don't inherit or default
11387 to_upload_trace_state_variables.
11388 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11389 Use TARGET_DEFAULT_RETURN.
11390
1e949b00
TT
113912014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_upload_tracepoints.
11396 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11397 TARGET_DEFAULT_RETURN.
11398
a2e6c147
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_save_trace_data.
11404 * target.h (struct target_ops) <to_save_trace_data>: Use
11405 TARGET_DEFAULT_NORETURN.
11406
959bcd0b
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_get_trace_state_variable_value.
11412 * target.h (struct target_ops)
11413 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11414
afc94e66
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (update_current_target): Don't inherit or default
11419 to_trace_find.
11420 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11421
e51c07ea
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (update_current_target): Don't inherit or default
11426 to_trace_stop.
11427 * target.h (struct target_ops) <to_trace_stop>: Use
11428 TARGET_DEFAULT_NORETURN.
11429
6fea14cd
TT
114302014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_get_tracepoint_status.
11435 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11436 TARGET_DEFAULT_NORETURN.
11437
4072d4ff
TT
114382014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * target-delegates.c: Rebuild.
11441 * target.c (update_current_target): Don't inherit or default
11442 to_get_trace_status.
11443 * target.h (struct target_ops) <to_get_trace_status>: Use
11444 TARGET_DEFAULT_RETURN.
11445
25da2e80
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target-delegates.c: Rebuild.
11449 * target.c (update_current_target): Don't inherit or default
11450 to_trace_start.
11451 * target.h (struct target_ops) <to_trace_start>: Use
11452 TARGET_DEFAULT_NORETURN.
11453
86dd181d
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_trace_set_readonly_regions.
11459 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11460 Use TARGET_DEFAULT_NORETURN.
11461
05c41993
TT
114622014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_disable_tracepoint.
11467 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11468 TARGET_DEFAULT_NORETURN.
11469
151f70f1
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_enable_tracepoint.
11475 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11476 TARGET_DEFAULT_NORETURN.
11477
94eb98b9
TT
114782014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (update_current_target): Don't inherit or default
11482 to_download_trace_state_variable.
11483 * target.h (struct target_ops) <to_download_trace_state_variable>:
11484 Use TARGET_DEFAULT_NORETURN.
11485
719acc4a
TT
114862014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target-delegates.c: Rebuild.
11489 * target.c (update_current_target): Don't inherit or default
11490 to_can_download_tracepoint.
11491 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11492 TARGET_DEFAULT_RETURN.
11493
9a980a22
TT
114942014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11498 to_download_tracepoint.
11499 * target.h (struct target_ops) <to_download_tracepoint>: Use
11500 TARGET_DEFAULT_NORETURN.
11501
5536135b
TT
115022014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_trace_init.
11507 * target.h (struct target_ops) <to_trace_init>: Use
11508 TARGET_DEFAULT_RETURN.
11509
9409d39e
TT
115102014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (update_current_target): Don't inherit or default
11514 to_supports_string_tracing.
11515 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11516 TARGET_DEFAULT_RETURN.
11517
aab1b22d
TT
115182014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target-delegates.c: Rebuild.
11521 * target.c (update_current_target): Don't inherit or default
11522 to_supports_enable_disable_tracepoint.
11523 * target.h (struct target_ops)
11524 <to_supports_enable_disable_tracepoint>: Use
11525 TARGET_DEFAULT_RETURN.
11526
a7304748
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_supports_multi_process.
11532 * target.h (struct target_ops) <to_supports_multi_process>: Use
11533 TARGET_DEFAULT_RETURN.
11534
4229b31d
TT
115352014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_get_ada_task_ptid.
11540 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11541 TARGET_DEFAULT_FUNC.
11542
43eba180
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_thread_architecture.
11548 * target.h (struct target_ops) <to_thread_architecture>: Use
11549 TARGET_DEFAULT_FUNC.
11550
fe31bf5b
TT
115512014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_execution_direction.
11556 * target.h (struct target_ops) <to_execution_direction>: Use
11557 TARGET_DEFAULT_FUNC.
11558
53e1cfc7
TT
115592014-02-19 Tom Tromey <tromey@redhat.com>
11560
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_can_execute_reverse.
11564 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11565 TARGET_DEFAULT_RETURN.
11566 (target_can_execute_reverse): Unconditionally delegate.
11567
9bb9d61d
TT
115682014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_goto_bookmark.
11573 (dummy_goto_bookmark): Remove.
11574 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11575 * target.h (struct target_ops) <to_goto_bookmark>: Use
11576 TARGET_DEFAULT_NORETURN.
11577
3dbafbbb
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_get_bookmark.
11583 (dummy_get_bookmark): Remove.
11584 (init_dummy_target): Don't inherit or default to_get_bookmark.
11585 * target.h (struct target_ops) <to_get_bookmark>: Use
11586 TARGET_DEFAULT_NORETURN
11587
16f796b1
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_make_corefile_notes.
11593 (init_dummy_target): Don't initialize to_make_corefile_notes.
11594 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11595 TARGET_DEFAULT_FUNC.
11596
0b5a2719
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (update_current_target): Don't inherit or default
11601 to_find_memory_regions.
11602 (init_dummy_target): Don't initialize to_find_memory_regions.
11603 * target.h (struct target_ops) <to_find_memory_regions>: Use
11604 TARGET_DEFAULT_FUNC.
11605
d9cb0195
TT
116062014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target-delegates.c: Rebuild.
11609 * target.c (update_current_target): Don't inherit or default
11610 to_log_command.
11611 * target.h (struct target_ops) <to_log_command>: Use
11612 TARGET_DEFAULT_IGNORE.
11613 (target_log_command): Unconditionally delegate.
11614
830ca330
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target-delegates.c: Rebuild.
11618 * target.c (update_current_target): Don't inherit or default
11619 to_pid_to_exec_file.
11620 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11621 TARGET_DEFAULT_RETURN.
11622
825828fc
TT
116232014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11627 to_thread_name.
11628 (target_thread_name): Unconditionally delegate.
11629 * target.h (struct target_ops) <to_thread_name>: Use
11630 TARGET_DEFAULT_RETURN.
11631
4a7e6dda
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_extra_thread_info.
11637 * target.h (struct target_ops) <to_extra_thread_info>: Use
11638 TARGET_DEFAULT_RETURN.
11639
0db88c1d
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_has_exited.
11645 * target.h (struct target_ops) <to_has_exited>: Use
11646 TARGET_DEFAULT_RETURN..
11647
6a9fa051
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_set_syscall_catchpoint.
11653 (return_one): Remove.
11654 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11655 TARGET_DEFAULT_RETURN.
11656
62f64d7a
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11661 to_insert_exec_catchpoint.
11662 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11663 TARGET_DEFAULT_RETURN.
11664
cda0f38c
TT
116652014-01-08 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_insert_exec_catchpoint.
11670 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11671 TARGET_DEFAULT_RETURN.
11672
95c3375e
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_remove_vfork_catchpoint.
11678 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11679 TARGET_DEFAULT_RETURN.
11680
7e18a8dc
TT
116812014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_insert_vfork_catchpoint.
11686 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11687 TARGET_DEFAULT_RETURN.
11688
e1a21fb7
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_remove_fork_catchpoint.
11694 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11695 TARGET_DEFAULT_RETURN.
11696
5958ebeb
TT
116972014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_insert_fork_catchpoint.
11702 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11703 TARGET_DEFAULT_RETURN.
11704
340ba4bf
TT
117052014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_post_startup_inferior.
11710 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11711 TARGET_DEFAULT_IGNORE.
11712
7634da87
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_load.
11718 * target.h (struct target_ops) <to_load>: Use
11719 TARGET_DEFAULT_NORETURN.
11720
e19e919f
TT
117212014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_terminal_info.
11726 * target.h (struct target_ops) <to_terminal_info>: Use
11727 TARGET_DEFAULT_FUNC.
11728
c6ea8f79
TT
117292014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_terminal_save_ours.
11734 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11735 TARGET_DEFAULT_IGNORE.
11736
e4a733f1
TT
117372014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_terminal_ours.
11742 * target.h (struct target_ops) <to_terminal_ours>: Use
11743 TARGET_DEFAULT_IGNORE.
11744
74fcbef9
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_terminal_ours_for_output.
11750 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11751 TARGET_DEFAULT_IGNORE.
11752
ddeaacc9
TT
117532014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11757 to_terminal_inferior.
11758 * target.h (struct target_ops) <to_terminal_inferior>: Use
11759 TARGET_DEFAULT_IGNORE.
11760
0343661d
TT
117612014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target-delegates.c: Rebuild.
11764 * target.c (update_current_target): Don't inherit or default
11765 to_terminal_init.
11766 * target.h (struct target_ops) <to_terminal_init>: Use
11767 TARGET_DEFAULT_IGNORE.
11768
77cdffe9
TT
117692014-02-19 Tom Tromey <tromey@redhat.com>
11770
11771 * target-delegates.c: Rebuild.
11772 * target.c (update_current_target): Don't inherit or default
11773 to_can_accel_watchpoint_condition.
11774 * target.h (struct target_ops)
11775 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11776
d03655e4
TT
117772014-02-19 Tom Tromey <tromey@redhat.com>
11778
11779 * target-delegates.c: Rebuild.
11780 * target.c (update_current_target): Don't inherit or default
11781 to_region_ok_for_hw_watchpoint.
11782 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11783 Use TARGET_DEFAULT_FUNC.
11784
65f160a9
TT
117852014-02-19 Tom Tromey <tromey@redhat.com>
11786
11787 * target-delegates.c: Rebuild.
11788 * target.c (update_current_target): Don't inherit or default
11789 to_watchpoint_addr_within_range.
11790 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11791 Use TARGET_DEFAULT_FUNC.
11792
61dd109f
TT
117932014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * target-delegates.c: Rebuild.
11796 * target.c (update_current_target): Don't inherit or default
11797 to_remove_watchpoint.
11798 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11799 TARGET_DEFAULT_NORETURN.
11800
016facd4
TT
118012014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_insert_watchpoint.
11806 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11807 TARGET_DEFAULT_RETURN.
11808
418dabac
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_remove_hw_breakpoint.
11814 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11815 TARGET_DEFAULT_RETURN.
11816
61b371f9
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_insert_hw_breakpoint.
11822 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11823 TARGET_DEFAULT_RETURN.
11824
52b51d06
TT
118252014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_can_use_hw_breakpoint.
11830 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11831 TARGET_DEFAULT_RETURN.
11832
f86e59b2
TT
118332014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_files_info.
11838 * target.h (struct target_ops) <to_files_info>: Use
11839 TARGET_DEFAULT_IGNORE.
11840
6c628163
TT
118412014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11845 to_store.
11846 * target.h (struct target_ops) <to_store>: Use
11847 TARGET_DEFAULT_NORETURN.
11848
bebd3233
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_post_attach.
11854 * target.h (struct target_ops) <to_post_attach>: Use
11855 TARGET_DEFAULT_IGNORE.
11856
a53f3625
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target-delegates.c: Rebuild.
11860 * target.c (update_current_target): Don't inherit or default
11861 to_rcmd.
11862 (default_rcmd): New function.
11863 (do_monitor_command): Unconditionally delegate.
11864 * target.h (struct target_ops) <to_rmcd>: Use
11865 TARGET_DEFAULT_FUNC.
11866
e9a29200
TT
118672014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (init_dummy_target): Don't initialize to_attach.
11871 (target_attach): Unconditionally delegate.
11872 * target.h (struct target_ops) <to_attach>: Use
11873 TARGET_DEFAULT_FUNC.
11874
09da0d0a
TT
118752014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target-delegates.c: Rebuild.
11878 * target.c (target_detach): Unconditionally delegate.
11879 (init_dummy_target): Don't initialize to_detach.
11880 * target.h (struct target_ops) <to_detach>: Use
11881 TARGET_DEFAULT_IGNORE.
11882
5436ff03
TT
118832014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11886 Add argument.
11887 (target_augmented_libraries_svr4_read): Add argument.
11888 * target.c (update_current_target): Update.
11889 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11890 argument.
11891
f0d960ea
TT
118922014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_call_history_range>: Add
11895 argument.
11896 * target.c (target_call_history_range): Add argument.
11897 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11898 argument.
11899 (record_btrace_call_history_from): Update.
11900
ec0aea04
TT
119012014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target.h (struct target_ops) <to_call_history_from>: Add
11904 argument.
11905 * target.c (target_call_history_from): Add argument.
11906 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11907 argument.
11908
5df2fcba
TT
119092014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target.h (struct target_ops) <to_call_history>: Add argument.
11912 * target.c (target_call_history): Add argument.
11913 * record-btrace.c (record_btrace_call_history): Add 'self'
11914 argument.
11915
4e99c6b7
TT
119162014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target.h (struct target_ops) <to_insn_history_range>: Add
11919 argument.
11920 * target.c (target_insn_history_range): Add argument.
11921 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11922 argument.
11923 (record_btrace_insn_history_from): Update.
11924
9abc3ff3
TT
119252014-02-19 Tom Tromey <tromey@redhat.com>
11926
11927 * target.h (struct target_ops) <to_insn_history_from>: Add
11928 argument.
11929 * target.c (target_insn_history_from): Add argument.
11930 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11931 argument.
11932
7a6c5609
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target.h (struct target_ops) <to_insn_history>: Add argument.
11936 * target.c (target_insn_history): Add argument.
11937 * record-btrace.c (record_btrace_insn_history): Add 'self'
11938 argument.
11939
606183ac
TT
119402014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target.h (struct target_ops) <to_goto_record>: Add argument.
11943 * target.c (target_goto_record): Add argument.
11944 * record-full.c (record_full_goto): Add 'self' argument.
11945 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11946
307a1b91
TT
119472014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11950 * target.c (target_goto_record_end): Add argument.
11951 * record-full.c (record_full_goto_end): Add 'self' argument.
11952 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11953
08475817
TT
119542014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * target.h (struct target_ops) <to_goto_record_begin>: Add
11957 argument.
11958 * target.c (target_goto_record_begin): Add argument.
11959 * record-full.c (record_full_goto_begin): Add 'self' argument.
11960 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11961 argument.
11962
1c63c994
TT
119632014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 * target.h (struct target_ops) <to_record_is_replaying>: Add
11966 argument.
11967 * target.c (target_record_is_replaying): Add argument.
11968 * record-full.c (record_full_is_replaying): Add 'self' argument.
11969 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11970 argument.
11971 (record_btrace_xfer_partial, record_btrace_store_registers)
11972 (record_btrace_prepare_to_store, record_btrace_resume)
11973 (record_btrace_wait, record_btrace_decr_pc_after_break)
11974 (record_btrace_find_new_threads, record_btrace_thread_alive):
11975 Update.
11976
d1b55219
TT
119772014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target.h (struct target_ops) <to_delete_record>: Add argument.
11980 * target.c (target_delete_record): Add argument.
11981 * record-full.c (record_full_delete): Add 'self' argument.
11982
1390f529
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops) <to_save_record>: Add argument.
11986 * target.c (target_save_record): Add argument.
11987 * record-full.c (record_full_save): Add 'self' argument.
11988 (record_full_save): Add 'self' argument.
11989
630d6a4a
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target.h (struct target_ops) <to_info_record>: Add argument.
11993 * target.c (target_info_record): Add argument.
11994 * record.c (info_record_command): Add argument.
11995 * record-full.c (record_full_info): Add 'self' argument.
11996 * record-btrace.c (record_btrace_info): Add 'self' argument.
11997
c6cd7c02
TT
119982014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12001 * target.c (target_stop_recording): Add argument.
12002 * record.c (record_stop): Add argument.
12003 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12004 argument.
12005
39c49f83
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12009 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12010 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12011 argument.
12012 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12013 (_initialize_amd64_linux_nat): Use it.
12014 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12015 (_initialize_i386_linux_nat): Use it.
12016
1777056d
TT
120172014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12020 * target.c (target_teardown_btrace): Add argument.
12021 * remote.c (remote_teardown_btrace): Add 'self' argument.
12022 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12023 argument.
12024 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12025 argument.
12026
25e95349
TT
120272014-02-19 Tom Tromey <tromey@redhat.com>
12028
12029 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12030 * target.c (target_disable_btrace): Add argument.
12031 * remote.c (remote_disable_btrace): Add 'self' argument.
12032 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12033 argument.
12034 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12035 argument.
12036
e3c49f88
TT
120372014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12040 * target.c (target_enable_btrace): Add argument.
12041 * remote.c (remote_enable_btrace): Add 'self' argument.
12042 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12043 argument.
12044 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12045 argument.
12046
fe38f897
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12050 (target_can_use_agent): Add argument.
12051 * target.c (update_current_target): Update.
12052 * remote.c (remote_can_use_agent): Add 'self' argument.
12053 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12054
2c152180
TT
120552014-02-19 Tom Tromey <tromey@redhat.com>
12056
12057 * target.h (struct target_ops) <to_use_agent>: Add argument.
12058 (target_use_agent): Add argument.
12059 * target.c (update_current_target): Update.
12060 * remote.c (remote_use_agent): Add 'self' argument.
12061 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12062
a893e81f
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12066 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12067 (target_traceframe_info): Add argument.
12068 * target.c (update_current_target): Update.
12069 * remote.c (remote_traceframe_info): Add 'self' argument.
12070 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12071
c686c57f
TT
120722014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target.h (target_static_tracepoint_markers_by_strid): Add
12075 argument.
12076 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12077 'self' argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (struct target_ops)
12080 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12081 * linux-nat.c (struct target_ops)
12082 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12083
61fc905d
TT
120842014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12087 Add argument.
12088 (target_static_tracepoint_marker_at): Add argument.
12089 * target.c (update_current_target): Update.
12090 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12091 argument.
12092
c378d69d
TT
120932014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12096 (target_set_permissions): Add argument.
12097 * target.c (update_current_target): Update.
12098 * remote.c (remote_set_permissions): Add 'self' argument.
12099 (remote_start_remote): Update.
12100
bd7ae0f5
TT
121012014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12104 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12105 (target_get_tib_address): Add argument.
12106 * target.c (update_current_target): Update.
12107 * remote.c (remote_get_tib_address): Add 'self' argument.
12108
d9e68a2c
TT
121092014-02-19 Tom Tromey <tromey@redhat.com>
12110
12111 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12112 (target_set_trace_notes): Add argument.
12113 * target.c (update_current_target): Update.
12114 * remote.c (remote_set_trace_notes): Add 'self' argument.
12115
4da384be
TT
121162014-02-19 Tom Tromey <tromey@redhat.com>
12117
12118 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12119 argument.
12120 (target_set_trace_buffer_size): Add argument.
12121 * target.c (update_current_target): Update.
12122 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12123
736d5b1f
TT
121242014-02-19 Tom Tromey <tromey@redhat.com>
12125
12126 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12127 argument.
12128 (target_set_circular_trace_buffer): Add argument.
12129 * target.c (update_current_target): Update.
12130 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12131 argument.
12132
37b25738
TT
121332014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12136 argument.
12137 (target_set_disconnected_tracing): Add argument.
12138 * target.c (update_current_target): Update.
12139 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12140
0e67620a
TT
121412014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target.h (struct target_ops)
12144 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12145 (target_get_min_fast_tracepoint_insn_len): Add argument.
12146 * target.c (update_current_target): Update.
12147 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12148 argument.
12149
88ee6f45
TT
121502014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12153 argument.
12154 (target_get_raw_trace_data): Add argument.
12155 * target.c (update_current_target): Update.
12156 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12157
181e3713
TT
121582014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12161 Add argument.
12162 (target_upload_trace_state_variables): Add argument.
12163 * target.c (update_current_target): Update.
12164 * remote.c (remote_upload_trace_state_variables): Add 'self'
12165 argument.
12166 (remote_start_remote): Update.
12167
ab6617cc
TT
121682014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12171 argument.
12172 (target_upload_tracepoints): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12175 (remote_start_remote): Update.
12176
dc3decaf
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12180 (target_save_trace_data): Add argument.
12181 * target.c (update_current_target): Update.
12182 * remote.c (remote_save_trace_data): Add 'self' argument.
12183
4011015b
TT
121842014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12187 argument.
12188 * target.h (struct target_ops)
12189 <to_get_trace_state_variable_value>: Add argument.
12190 (target_get_trace_state_variable_value): Add argument.
12191 * target.c (update_current_target): Update.
12192 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12193 argument.
12194 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12195
bd4c6793
TT
121962014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12199 * target.h (struct target_ops) <to_trace_find>: Add argument.
12200 (target_trace_find): Add argument.
12201 * target.c (update_current_target): Update.
12202 * remote.c (remote_trace_find): Add 'self' argument.
12203 * ctf.c (ctf_trace_find): Add 'self' argument.
12204
74499f1b
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12208 (target_trace_stop): Add argument.
12209 * target.c (update_current_target): Update.
12210 * remote.c (remote_trace_stop): Add 'self' argument.
12211
db90e85c
TT
122122014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12215 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12216 argument.
12217 (target_get_tracepoint_status): Add argument.
12218 * target.c (update_current_target): Update.
12219 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12220
8bd200f1
TT
122212014-02-19 Tom Tromey <tromey@redhat.com>
12222
12223 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12224 * target.h (struct target_ops) <to_get_trace_status>: Add
12225 argument.
12226 (target_get_trace_status): Add argument.
12227 * target.c (update_current_target): Update.
12228 * remote.c (remote_get_trace_status): Add 'self' argument.
12229 (remote_start_remote, remote_can_download_tracepoint): Update.
12230 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12231
e2d1aae3
TT
122322014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target.h (struct target_ops) <to_trace_start>: Add argument.
12235 (target_trace_start): Add argument.
12236 * target.c (update_current_target): Update.
12237 * remote.c (remote_trace_start): Add 'self' argument.
12238
583f9a86
TT
122392014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12242 Add argument.
12243 (target_trace_set_readonly_regions): Add argument.
12244 * target.c (update_current_target): Update.
12245 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12246 argument.
12247
780b049c
TT
122482014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12251 argument.
12252 (target_disable_tracepoint): Add argument.
12253 * target.c (update_current_target): Update.
12254 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12255
46670d57
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12259 argument.
12260 (target_enable_tracepoint): Add argument.
12261 * target.c (update_current_target): Update.
12262 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12263
559d2b81
TT
122642014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target.h (struct target_ops) <to_download_trace_state_variable>:
12267 Add argument.
12268 (target_download_trace_state_variable): Add argument.
12269 * target.c (update_current_target): Update.
12270 * remote.c (remote_download_trace_state_variable): Add 'self'
12271 argument.
12272
a52a8357
TT
122732014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12276 argument.
12277 (target_can_download_tracepoint): Add argument.
12278 * target.c (update_current_target): Update.
12279 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12280
548f7808
TT
122812014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target.h (struct target_ops) <to_download_tracepoint>: Add
12284 argument.
12285 (target_download_tracepoint): Add argument.
12286 * target.c (update_current_target): Update.
12287 * remote.c (remote_download_tracepoint): Add 'self' argument.
12288
ecae04e1
TT
122892014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target.h (struct target_ops) <to_trace_init>: Add argument.
12292 (target_trace_init): Add argument.
12293 * target.c (update_current_target): Update.
12294 * remote.c (remote_trace_init): Add 'self' argument.
12295
fab5aa7c
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12299 * target.c (target_fileio_readlink): Add argument.
12300 * remote.c (remote_hostio_readlink): Add 'self' argument.
12301 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12302
dbbca37d
TT
123032014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12306 * target.c (target_fileio_unlink): Add argument.
12307 * remote.c (remote_hostio_unlink): Add 'self' argument.
12308 (remote_file_delete): Update.
12309 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12310
df39ea25
TT
123112014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12314 * target.c (target_fileio_close): Add argument.
12315 * remote.c (remote_hostio_close): Add 'self' argument.
12316 (remote_hostio_close_cleanup): Update.
12317 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12318 Update.
12319 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12320
a3be983c
TT
123212014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12324 * target.c (target_fileio_pread): Add argument.
12325 * remote.c (remote_hostio_pread): Add 'self' argument.
12326 (remote_bfd_iovec_pread, remote_file_get): Update.
12327 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12328
0d866f62
TT
123292014-02-19 Tom Tromey <tromey@redhat.com>
12330
12331 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12332 * target.c (target_fileio_pwrite): Add argument.
12333 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12334 (remote_file_put): Update.
12335 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12336
cd897586
TT
123372014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12340 * target.c (target_fileio_open): Add argument.
12341 * remote.c (remote_hostio_open): Add 'self' argument.
12342 (remote_bfd_iovec_open): Add 'self' argument.
12343 (remote_file_put): Add 'self' argument.
12344 (remote_file_get): Add 'self' argument.
12345 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12346
78eff0ec
TT
123472014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12350 Add argument.
12351 (target_can_run_breakpoint_commands): Add argument.
12352 * target.c (update_current_target): Update.
12353 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12354 argument.
12355 (remote_insert_breakpoint): Add 'self' argument.
12356 (remote_insert_hw_breakpoint): Add 'self' argument.
12357 (remote_can_run_breakpoint_commands): Add 'self' argument.
12358
efcc2da7
TT
123592014-02-19 Tom Tromey <tromey@redhat.com>
12360
12361 * target.h (struct target_ops)
12362 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12363 (target_supports_evaluation_of_breakpoint_conditions): Add
12364 argument.
12365 * target.c (update_current_target): Update.
12366 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12367 argument.
12368 (remote_insert_breakpoint): Add 'self' argument.
12369 (remote_insert_hw_breakpoint): Add 'self' argument.
12370 (remote_supports_cond_breakpoints): Add 'self' argument.
12371
6de37a3a
TT
123722014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12375 argument.
12376 (target_supports_string_tracing): Add argument.
12377 * target.c (update_current_target): Update.
12378 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12379
2bfc0540
TT
123802014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops)
12383 <to_supports_disable_randomization>: Add argument.
12384 * target.c (find_default_supports_disable_randomization): Add
12385 argument.
12386 (target_supports_disable_randomization): Add argument.
12387 (find_default_supports_disable_randomization): Add 'self'
12388 argument.
12389 * remote.c (extended_remote_supports_disable_randomization): Add
12390 'self' argument.
12391 (remote_supports_disable_randomization): Add 'self' argument.
12392 (extended_remote_create_inferior): Update.
12393 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12394 'self' argument.
12395
7d178d6a
TT
123962014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target.h (struct target_ops)
12399 <to_supports_enable_disable_tracepoint>: Add argument.
12400 (target_supports_enable_disable_tracepoint): Add argument.
12401 * target.c (update_current_target): Update.
12402 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12403 argument.
12404
86ce2668
TT
124052014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target.h (struct target_ops) <to_supports_multi_process>: Add
12408 argument.
12409 (target_supports_multi_process): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_supports_multi_process): Add 'self' argument.
12412 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12413 argument.
12414 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12415 argument.
12416
4c612759
TT
124172014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (struct target_ops) <to_execution_direction>: Add
12420 argument.
12421 (target_execution_direction): Add argument.
12422 * target.c (default_execution_direction): Add 'self' argument.
12423 * record-full.c (record_full_execution_direction): Add 'self'
12424 argument.
12425
19db3e69
TT
124262014-02-19 Tom Tromey <tromey@redhat.com>
12427
12428 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12429 argument.
12430 (target_can_execute_reverse): Add argument.
12431 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12432 * record-full.c (record_full_can_execute_reverse): Add 'self'
12433 argument.
12434 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12435 argument.
12436
1e6b91a4
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12440 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12441 argument.
12442 (target_get_ada_task_ptid): Add argument.
12443 * target.c (update_current_target): Update.
12444 (default_get_ada_task_ptid): Add 'self' argument.
12445 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12446 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12447 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12448 argument.
12449 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12450 argument.
12451 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12452 argument.
12453 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12454 argument.
12455 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12456 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12457 argument.
12458
3c80fb48
TT
124592014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12462 (target_goto_bookmark): Add argument.
12463 * target.c (dummy_goto_bookmark): Add 'self' argument.
12464 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12465
dd0e2830
TT
124662014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12469 (target_get_bookmark): Add argument.
12470 * target.c (dummy_get_bookmark): Add 'self' argument.
12471 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12472
fc6691b2
TT
124732014-02-19 Tom Tromey <tromey@redhat.com>
12474
12475 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12476 argument.
12477 (target_make_corefile_notes): Add argument.
12478 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12479 * procfs.c (procfs_make_note_section): Add 'self' argument.
12480 (procfs_make_note_section): Add 'self' argument.
12481 (procfs_make_note_section): Add 'self' argument.
12482 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12483 argument.
12484 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12485 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12486 * exec.c (exec_make_note_section): Add 'self' argument.
12487 (exec_make_note_section): Add 'self' argument.
12488
2e73927c
TT
124892014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_find_memory_regions>: Add
12492 argument.
12493 (target_find_memory_regions): Add argument.
12494 * target.c (dummy_find_memory_regions): Add 'self' argument.
12495 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12496 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12497 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12498 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12499 * exec. (exec_do_find_memory_regions): New global.
12500 (exec_set_find_memory_regions): Rewrite.
12501 (exec_find_memory_regions): New function.
12502 (init_exec_ops): Use exec_find_memory_regions.
12503
2a9a2795
TT
125042014-02-19 Tom Tromey <tromey@redhat.com>
12505
12506 * target.h (struct target_ops) <to_supports_non_stop>: Add
12507 argument.
12508 * target.c (find_default_supports_non_stop): Add argument.
12509 (target_supports_non_stop): Add argument.
12510 (find_default_supports_non_stop): Add 'self' argument.
12511 * remote.c (remote_supports_non_stop): Add 'self' argument.
12512 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12513
4ab76ea3
TT
125142014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_log_command>: Add argument.
12517 (target_log_command): Add argument.
12518 * serial.h (serial_log_command): Add 'self' argument.
12519 * serial.c (serial_log_command): Add 'self' argument.
12520
8dd27370
TT
125212014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12524 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12525 argument.
12526 (target_pid_to_exec_file): Add argument.
12527 * target.c (debug_to_pid_to_exec_file): Add argument.
12528 (update_current_target): Update.
12529 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12530 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12531 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12532 (linux_handle_extended_wait): Update.
12533 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12534 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12535 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12536 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12537
1aac633b
TT
125382014-02-19 Tom Tromey <tromey@redhat.com>
12539
12540 * target.h (struct target_ops) <to_rcmd>: Add argument.
12541 (target_rcmd): Add argument.
12542 * target.c (debug_to_rcmd): Add argument.
12543 (update_current_target, do_monitor_command): Update.
12544 * remote.c (remote_rcmd): Add 'self' argument.
12545 * monitor.c (monitor_rcmd): Add 'self' argument.
12546
1eab8a48
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * windows-nat.c (windows_stop): Add 'self' argument.
12550 * target.h (struct target_ops) <to_stop>: Add argument.
12551 * target.c (target_stop): Add argument.
12552 (debug_to_stop): Add argument.
12553 (update_current_target): Update.
12554 * remote.c (remote_stop): Add 'self' argument.
12555 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12556 (gdbsim_cntrl_c): Update.
12557 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12558 * procfs.c (procfs_stop): Add 'self' argument.
12559 * nto-procfs.c (procfs_stop): Add 'self' argument.
12560 * monitor.c (monitor_stop): Add 'self' argument.
12561 (monitor_open): Update.
12562 * linux-nat.c (linux_nat_stop): Add argument.
12563 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12564 * gnu-nat.c (gnu_stop): Add 'self' argument.
12565 * darwin-nat.c (darwin_stop): Add 'self' argument.
12566
503a628d
TT
125672014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_thread_name>: Add argument.
12570 * target.c (target_thread_name): Add argument.
12571 (update_current_target): Update.
12572 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12573
c15906d8
TT
125742014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * target.h (struct target_ops) <to_extra_thread_info>: Add
12577 argument.
12578 (target_extra_thread_info): Add argument.
12579 * target.c (update_current_target): Update.
12580 * remote.c (remote_threads_extra_info): Add 'self' argument.
12581 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12582 argument.
12583 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12584 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12585 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12586 argument.
12587 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12588 argument.
12589 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12590 argument.
12591 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12592 argument.
12593
daf5e9b6
TT
125942014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target.h (struct target_ops) <to_program_signals>: Add argument.
12597 * target.c (target_program_signals): Add argument.
12598 * remote.c (remote_program_signals): Add 'self' argument.
12599
94bedb42
TT
126002014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12603 * target.c (target_pass_signals): Add argument.
12604 * remote.c (remote_pass_signals): Add 'self' argument.
12605 (remote_start_remote): Update.
12606 * procfs.c (procfs_pass_signals): Add 'self' argument.
12607 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12608 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12609 (linux_nat_create_inferior, linux_nat_attach): Update.
12610
da82bd6b
TT
126112014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * windows-nat.c (windows_can_run): Add 'self' argument.
12614 * target.h (struct target_ops) <to_can_run>: Add argument.
12615 (target_can_run): Add argument.
12616 * target.c (debug_to_can_run): Add argument.
12617 (update_current_target): Update.
12618 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12619 * inf-child.c (inf_child_can_run): Add 'self' argument.
12620 * go32-nat.c (go32_can_run): Add 'self' argument.
12621
d796e1d6
TT
126222014-02-19 Tom Tromey <tromey@redhat.com>
12623
12624 * target.h (struct target_ops) <to_has_exited>: Add argument.
12625 (target_has_exited): Add argument.
12626 * target.c (debug_to_has_exited): Add argument.
12627 (update_current_target): Update.
12628
ff214e67
TT
126292014-02-19 Tom Tromey <tromey@redhat.com>
12630
12631 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12632 argument.
12633 (target_set_syscall_catchpoint): Add argument.
12634 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12635 argument.
12636 * target.c (update_current_target): Update.
12637
758e29d2
TT
126382014-02-19 Tom Tromey <tromey@redhat.com>
12639
12640 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12641 argument.
12642 (target_remove_exec_catchpoint): Add argument.
12643 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12644 (update_current_target): Update.
12645 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12646 argument.
12647
ba025e51
TT
126482014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12651 argument.
12652 (target_insert_exec_catchpoint): Add argument.
12653 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12654 (update_current_target): Update.
12655 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12656 argument.
12657
e98cf0cd
TT
126582014-02-19 Tom Tromey <tromey@redhat.com>
12659
12660 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12661 argument.
12662 (target_remove_vfork_catchpoint): Add argument.
12663 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12664 (update_current_target): Update.
12665 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12666 argument.
12667
3ecc7da0
TT
126682014-02-19 Tom Tromey <tromey@redhat.com>
12669
12670 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12671 argument.
12672 (target_insert_vfork_catchpoint): Add argument.
12673 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12674 (update_current_target): Update.
12675 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12676 argument.
12677
973fc227
TT
126782014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12681 argument.
12682 (target_remove_fork_catchpoint): Add argument.
12683 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12684 (update_current_target): Update.
12685 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12686 argument.
12687
a863b201
TT
126882014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12691 argument.
12692 (target_insert_fork_catchpoint): Add argument.
12693 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12694 (update_current_target): Update.
12695 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12696 argument.
12697
2e97a79e
TT
126982014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12701 argument.
12702 (target_post_startup_inferior): Add argument.
12703 * target.c (debug_to_post_startup_inferior): Add argument.
12704 (update_current_target): Update.
12705 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12706 argument.
12707 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12708 argument.
12709 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12710 argument.
12711 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12712 argument.
12713 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12714 'self' argument.
12715 (super_post_startup_inferior): Likewise.
12716 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12717 'self' argument.
12718 (super_post_startup_inferior): Likewise.
12719 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12720 Add 'self' argument.
12721 (super_post_startup_inferior): Likewise.
12722
71a9f134
TT
127232014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops) <to_load>: Add argument.
12726 * target.c (target_load): Add argument.
12727 (debug_to_load): Add argument.
12728 (update_current_target): Update.
12729 * remote.c (remote_load): Add 'self' argument.
12730 * remote-sim.c (gdbsim_load): Add 'self' argument.
12731 * remote-mips.c (mips_load): Add 'self' argument.
12732 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12733 * monitor.c (monitor_load): Add 'self' argument.
12734 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12735
0a4f40a2
TT
127362014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12739 (target_terminal_info): Add argument.
12740 * target.c (debug_to_terminal_info): Add argument.
12741 (default_terminal_info): Likewise.
12742 * inflow.c (child_terminal_info): Add 'self' argument.
12743 * inferior.h (child_terminal_info): Add 'self' argument.
12744 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12745
ae3bd431
TT
127462014-02-19 Tom Tromey <tromey@redhat.com>
12747
12748 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12749 argument.
12750 (target_terminal_save_ours): Add argument.
12751 * target.c (debug_to_terminal_save_ours): Add argument.
12752 (update_current_target): Update.
12753 * inflow.c (terminal_save_ours): Add 'self' argument.
12754 * inferior.h (terminal_save_ours): Add 'self' argument.
12755
e3594fd1
TT
127562014-02-19 Tom Tromey <tromey@redhat.com>
12757
12758 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12759 (target_terminal_ours): Add argument.
12760 * target.c (debug_to_terminal_ours): Add argument.
12761 (update_current_target): Update.
12762 * remote.c (remote_terminal_ours): Add 'self' argument.
12763 (remote_close): Update.
12764 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12765 * inflow.c (terminal_ours): Add 'self' argument.
12766 * inferior.h (terminal_ours): Add 'self' argument.
12767 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12768
2e1e1a19
TT
127692014-02-19 Pedro Alves <palves@redhat.com>
12770 Tom Tromey <tromey@redhat.com>
12771
12772 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12773 argument.
12774 (target_terminal_ours_for_output): Add argument.
12775 * target.c (debug_to_terminal_ours_for_output): Add argument.
12776 (update_current_target): Update.
12777 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12778 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12779 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12780
d2f640d4
TT
127812014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * target.h (struct target_ops) <to_terminal_inferior>: Add
12784 argument.
12785 * target.c (target_terminal_inferior): Add argument.
12786 (update_current_target): Update.
12787 * remote.c (remote_terminal_inferior): Add 'self' argument.
12788 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12789 * inflow.c (terminal_inferior): Add 'self' argument.
12790 * inferior.h (terminal_inferior): Add 'self' argument.
12791 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12792 (go32_terminal_inferior): Add 'self' argument.
12793
c42bf286
TT
127942014-02-19 Tom Tromey <tromey@redhat.com>
12795
12796 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12797 (target_terminal_init): Add argument.
12798 * target.c (debug_to_terminal_init): Add argument.
12799 (update_current_target): Update.
12800 * inflow.c (terminal_init_inferior): Add 'self' argument.
12801 * inferior.h (terminal_init_inferior): Add 'self' argument.
12802 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12803 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12804
c3a5ff89
TT
128052014-02-19 Tom Tromey <tromey@redhat.com>
12806
12807 * target.h (struct target_ops)
12808 <to_can_accel_watchpoint_condition>: Add argument.
12809 (target_can_accel_watchpoint_condition): Add argument.
12810 * target.c (debug_to_can_accel_watchpoint_condition): Add
12811 argument.
12812 (update_current_target): Update.
12813 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12814 'self' argument.
12815
31568a15
TT
128162014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12819 Add argument.
12820 (target_region_ok_for_hw_watchpoint): Add argument.
12821 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12822 (default_region_ok_for_hw_watchpoint): Add argument.
12823 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12824 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12825 argument.
12826 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12827 argument.
12828 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12829 argument.
12830 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12831 'self' argument.
12832 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12833 'self' argument.
12834 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12835 'self' argument.
12836 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12837 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12838 'self' argument.
12839 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12840 Add 'self' argument.
12841
7bb99c53
TT
128422014-02-19 Tom Tromey <tromey@redhat.com>
12843
12844 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12845 argument.
12846 (target_insert_watchpoint): Add argument.
12847 * target.c (debug_to_insert_watchpoint): Add argument.
12848 (update_current_target): Update.
12849 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12850 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12851 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12852 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12853 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12854 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12855 argument.
12856 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12857 (procfs_insert_hw_watchpoint): Add 'self' argument.
12858 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12859 argument.
12860 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12861 argument.
12862 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12863 argument.
12864 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12865 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12866 argument.
12867 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12868 'self' argument.
12869
11b5219a
TT
128702014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12873 argument.
12874 (target_remove_watchpoint): Add argument.
12875 * target.c (debug_to_remove_watchpoint): Add argument.
12876 (update_current_target): Update.
12877 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12878 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12879 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12880 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12881 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12882 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12883 argument.
12884 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12885 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12886 argument.
12887 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12888 argument.
12889 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12890 argument.
12891 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12892 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12893 argument.
12894 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12895 'self' argument.
12896
a64dc96c
TT
128972014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12900 argument.
12901 (target_remove_hw_breakpoint): Add argument.
12902 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12903 (update_current_target): Update.
12904 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12905 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12906 argument.
12907 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12908 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12909 argument.
12910 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12911 'self' argument.
12912
23a26771
TT
129132014-02-19 Tom Tromey <tromey@redhat.com>
12914
12915 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12916 argument.
12917 (target_insert_hw_breakpoint): Add argument.
12918 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12919 (update_current_target): Update.
12920 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12921 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12922 argument.
12923 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12924 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12925 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12926 argument.
12927 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12928 'self' argument.
12929
5461485a
TT
129302014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12933 argument.
12934 (target_can_use_hardware_watchpoint): Add argument.
12935 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12936 (update_current_target): Update.
12937 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12938 argument.
12939 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12940 argument.
12941 * remote.c (remote_check_watch_resources): Add 'self' argument.
12942 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12943 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12944 argument.
12945 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12946 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12947 argument.
12948 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12949 argument.
12950 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12951 argument.
12952 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12953 argument.
12954 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12955 argument.
12956 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12957 argument.
12958 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12959 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12960 argument.
12961 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12962 'self' argument.
12963
f045800c
TT
129642014-02-19 Tom Tromey <tromey@redhat.com>
12965
12966 * target.h (struct target_ops) <to_post_attach>: Add argument.
12967 (target_post_attach): Add argument.
12968 * target.c (debug_to_post_attach): Add argument.
12969 (update_current_target): Update.
12970 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12971 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12972 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12973 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12974 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12975
de90e03d
TT
129762014-02-19 Tom Tromey <tromey@redhat.com>
12977
12978 * windows-nat.c (windows_close): Add 'self' argument.
12979 * tracepoint.c (tfile_close): Add 'self' argument.
12980 * target.h (struct target_ops) <to_close>: Add argument.
12981 * target.c (target_close): Add argument.
12982 (update_current_target): Update.
12983 * remote.c (remote_close): Add 'self' argument.
12984 * remote-sim.c (gdbsim_close): Add 'self' argument.
12985 * remote-mips.c (mips_close): Add 'self' argument.
12986 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12987 * record-full.c (record_full_close): Add 'self' argument.
12988 * record-btrace.c (record_btrace_close): Add 'self' argument.
12989 * monitor.h (monitor_close): Add 'self' argument.
12990 * monitor.c (monitor_close): Add 'self' argument.
12991 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12992 * linux-nat.c (linux_nat_close): Add argument.
12993 * go32-nat.c (go32_close): Add 'self' argument.
12994 * exec.c (exec_close_1): Add 'self' argument.
12995 * ctf.c (ctf_close): Add 'self' argument.
12996 * corelow.c (core_close): Add 'self' argument.
12997 (core_close_cleanup): Update.
12998 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12999 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13000
9dd130a0
TT
130012014-02-19 Tom Tromey <tromey@redhat.com>
13002
13003 * remote.c (remote_load): New function.
13004 (init_remote_ops): Use it.
13005
46917d26
TT
130062014-02-19 Tom Tromey <tromey@redhat.com>
13007
13008 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13009 argument.
13010 * common/linux-btrace.h (linux_supports_btrace): Update.
13011 * remote.c (remote_supports_btrace): Add "self" argument.
13012 * target-delegates.c: Rebuild.
13013 * target.c (target_supports_btrace): Remove.
13014 * target.h (struct target_ops) <to_supports_btrace>: Add
13015 target_ops argument.
13016 (target_supports_btrace): New define.
13017
6b84065d
TT
130182014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * record-full.c (record_full_beneath_to_resume_ops)
13021 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13022 (record_full_beneath_to_wait)
13023 (record_full_beneath_to_store_registers_ops)
13024 (record_full_beneath_to_store_registers)
13025 (record_full_beneath_to_xfer_partial_ops)
13026 (record_full_beneath_to_xfer_partial)
13027 (record_full_beneath_to_insert_breakpoint_ops)
13028 (record_full_beneath_to_insert_breakpoint)
13029 (record_full_beneath_to_remove_breakpoint_ops)
13030 (record_full_beneath_to_remove_breakpoint)
13031 (record_full_beneath_to_stopped_by_watchpoint)
13032 (record_full_beneath_to_stopped_data_address)
13033 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13034 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13035 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13036 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13037 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13038 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13039 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13040 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13041 (record_full_resume, record_full_wait_1)
13042 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13043 (record_full_store_registers, record_full_xfer_partial)
13044 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13045 (record_full_async, record_full_core_xfer_partial): Use target
13046 delegation.
13047 * target-delegates.c: Rebuild.
13048 * target.c (current_xfer_partial): Remove.
13049 (update_current_target): Do not INHERIT or de_fault
13050 to_insert_breakpoint, to_remove_breakpoint,
13051 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13052 to_is_async_p, to_async. Do not set to_xfer_partial field.
13053 (default_xfer_partial): Simplify.
13054 (current_xfer_partial): Remove.
13055 (target_wait, target_resume): Simplify.
13056 (find_default_can_async_p, find_default_is_async_p): Update.
13057 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13058 to_xfer_partial, to_stopped_by_watchpoint,
13059 to_stopped_data_address.
13060 (target_store_registers): Simplify.
13061 (forward_target_remove_breakpoint)
13062 (forward_target_insert_breakpoint): Remove.
13063 (target_remove_breakpoint, target_insert_breakpoint)
13064 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13065 * target.h (struct target_ops) <to_resume, to_wait,
13066 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13067 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13068 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13069 markup.
13070 (forward_target_remove_breakpoint)
13071 (forward_target_insert_breakpoint): Remove.
13072 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13073 directly.
13074 (record_btrace_insert_breakpoint): Delegate directly.
13075
1101cb7b
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 PR build/7701:
13079 * target-delegates.c: New file.
13080 * target.c: Include target-delegates.c.
13081 (init_dummy_target): Call install_dummy_methods.
13082 (complete_target_initialization): Call install_delegators.
13083 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13084 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13085 * make-target-delegates: New file.
13086
8b06beed
TT
130872014-02-19 Tom Tromey <tromey@redhat.com>
13088
13089 * record.c (find_record_target): Use find_target_at.
13090 * target.c (find_target_at): New function.
13091 * target.h (find_target_at): Declare.
13092
6a109b6b
TT
130932014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13096 Add 'ops' argument.
13097 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13098 'ops' argument.
13099 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13100 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13101 'ops' argument.
13102 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13103 argument.
13104 * linux-nat.c (save_sigtrap): Update.
13105 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13106 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13107 (linux_nat_close): Update.
13108 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13109 argument.
13110 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13111 argument.
13112 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13113 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13114 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13115 (tmp_to_async): Add 'ops' argument.
13116 (record_full_stopped_by_watchpoint, record_full_async)
13117 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13118 argument.
13119 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13120 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13121 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13122 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13123 (remote_is_async_p, remote_async): Add 'ops' argument.
13124 (remote_stopped_data_address): Update.
13125 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13126 * target.c (update_current_target)
13127 (find_default_can_async_p, find_default_is_async_p): Update.
13128 (init_dummy_target): Update.
13129 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13130 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13131 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13132 (target_can_async_p, target_is_async_p, target_async)
13133 (target_stopped_by_watchpoint): Update.
13134
e095146b
YQ
131352014-02-19 Yao Qi <yao@codesourcery.com>
13136
13137 PR gdb/16220
13138 * gdbarch.sh: Remove startup_gdbarch.
13139 * gdbarch.c: Regenerated.
13140 * gdbarch.h: Likewise.
13141
bc3c6b36
KB
131422014-02-17 Kevin Buettner <kevinb@redhat.com>
13143
13144 * rl78-tdep.c (rl78_g10_register_name): New function.
13145 (rl78_return_value): Add g10 support.
13146 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13147 g10.
13148
98dc0167 131492014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13150
13151 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13152 (SUBDIR_GUILE_SRCS): Ditto.
13153 (scm-gsmob.o): Ditto.
13154
842c05cd
YQ
131552014-02-17 Yao Qi <yao@codesourcery.com>
13156
13157 * gnu-nat.c (ILL_RPC): Declare defined function.
13158
25c0bd04
YQ
131592014-02-17 Yao Qi <yao@codesourcery.com>
13160
13161 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13162 mach_msg_type_number_t.
13163 (gnu_write_inferior): Likewise.
13164
a9a758e3
YQ
131652014-02-17 Yao Qi <yao@codesourcery.com>
13166
13167 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13168 in format string.
13169 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13170 (inf_validate_procs, inf_signal): Likewise.
13171 (S_exception_raise_request): Likewise.
13172 (do_mach_notify_dead_name): Likewise.
13173 (steal_exc_port): Likewise.
13174 (gnu_read_inferior): Change 'copy_count''s type to
13175 mach_msg_type_number_t.
13176 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13177 format string.
13178
bae8023e
TS
131792014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13180
c82f56d9
TS
13181 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13182 flag. Adjust all users; in particular...
13183 (gnu_wait): ..., don't decrement its value in here...
13184 (gnu_create_inferior): ..., and instead set the flag in here,
13185 around the startup_inferior call, and call that one with
13186 START_INFERIOR_TRAPS_EXPECTED.
13187
3398af6a
TS
13188 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13189 (ILL_RPC): ... new macro.
13190 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13191 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13192 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13193 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13194 functions with ILL_RPC macro.
13195 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13196 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13197 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13198 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13199 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13200 (S_proc_getlogin_reply, S_proc_getsid_reply)
13201 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13202 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13203 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13204 (S_proc_getnports_reply, S_proc_is_important_reply)
13205 (S_proc_get_code_reply): New stub functions, generated with
13206 ILL_RPC macro.
13207
d47642c9
TS
13208 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13209 collected the type check structures.
13210
bae8023e
TS
13211 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13212
8a55ffb0
DE
132132014-02-14 Doug Evans <dje@google.com>
13214
13215 * target.c (target_write_partial): Fix result type.
13216
c2853f3d
JM
132172014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13218
13219 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13220 the proper offsets to access fpregset_t.
13221
ac61d2db
SA
132222014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13223
13224 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13225 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13226 * h8300-tdep.c (setmachinelist): Remove global.
13227 * hppa-tdep.c (hppa_sigtramp): Remove global.
13228 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13229 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13230 * ravenscar-thread.c (update_target_observer): Remove global.
13231 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13232
9d2d0b8b
TT
132332014-02-12 Tom Tromey <tromey@redhat.com>
13234
13235 * common/rsp-low.c: Update comments.
13236 * common/rsp-low.h: Update comments.
13237
a7191e8b
TT
132382014-02-12 Tom Tromey <tromey@redhat.com>
13239
13240 * common/rsp-low.c (convert_ascii_to_int): Remove.
13241 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13242
ff0e980e
TT
132432014-02-12 Tom Tromey <tromey@redhat.com>
13244
13245 * common/rsp-low.h (unhexify): Don't declare.
13246 * common/rsp-low.c (unhexify): Remove.
13247
e9371aff
TT
132482014-02-12 Tom Tromey <tromey@redhat.com>
13249
13250 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13251 * common/rsp-low.c (convert_int_to_ascii): Remove.
13252
971dc0b8
TT
132532014-02-12 Tom Tromey <tromey@redhat.com>
13254
13255 * common/rsp-low.h (hexify): Don't declare.
13256 * common/rsp-low.c (hexify): Remove.
13257
0a822afb
TT
132582014-02-12 Tom Tromey <tromey@redhat.com>
13259
13260 * common/rsp-low.c (hexify): Never take strlen of argument.
13261
9f1b45b0
TT
132622014-02-12 Tom Tromey <tromey@redhat.com>
13263
13264 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13265 * remote.c (extended_remote_run, remote_rcmd)
13266 (remote_download_trace_state_variable, remote_save_trace_data)
13267 (remote_set_trace_notes): Update.
13268 * tracepoint.c (encode_source_string, tfile_write_status)
13269 (tfile_write_uploaded_tsv): Update.
13270
9c3d6531
TT
132712014-02-12 Tom Tromey <tromey@redhat.com>
13272
13273 * tracepoint.c: Include rsp-low.h.
13274 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13275 * remote.c: Include rsp-low.h.
13276 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13277 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13278 (remote_unescape_input): Move to common/rsp-low.c.
13279 * common/rsp-low.h: New file.
13280 * common/rsp-low.c: New file.
13281 * Makefile.in (SFILES): Add common/rsp-low.c.
13282 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13283 (COMMON_OBS): Add rsp-low.o.
13284 (rsp-low.o): New target.
13285
01fd3ea5
TT
132862014-02-12 Tom Tromey <tromey@redhat.com>
13287
13288 * utils.h: Include print-utils.h.
13289 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13290 (int_string, core_addr_to_string, core_addr_to_string_nz)
13291 (hex_string, hex_string_custom): Don't declare.
13292 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13293 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13294 (hex_string_custom, int_string, core_addr_to_string)
13295 (core_addr_to_string_nz, host_address_to_string): Move to
13296 common/print-utils.c.
13297 * common/print-utils.h: New file.
13298 * common/print-utils.c: New file
13299 * Makefile.in (SFILES): Add common/print-utils.c.
13300 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13301 (COMMON_OBS): Add print-utils.o.
13302 (print-utils.o): New target.
13303
9fb50108
TT
133042014-02-12 Tom Tromey <tromey@redhat.com>
13305
13306 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13307
0548b5db
MK
133082014-02-12 Mark Kettenis <kettenis@gnu.org>
13309
13310 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13311
493443a4
MK
133122014-02-12 Mark Kettenis <kettenis@gnu.org>
13313
13314 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13315 if a PT_IO ptrace request returns sucessfully but indicates that 0
13316 bytes were transferred.
13317
706d0883
PA
133182014-02-12 Pedro Alves <palves@redhat.com>
13319 Kevin Buettner <kevinb@redhat.com>
13320
13321 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13322 TYPE_INSTANCE_FLAG_CODE_SPACE.
13323
5caa2f0b
PA
133242014-02-12 Pedro Alves <palves@redhat.com>
13325
13326 * h8300-tdep.c (pseudo_from_raw_register)
13327 (raw_from_pseudo_register): New functions.
13328 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13329 them.
13330
76fd5f74
PA
133312014-02-12 Pedro Alves <palves@redhat.com>
13332
13333 * h8300-tdep.c (h8300_register_sim_regno): New function.
13334 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13335 gdbarch_register_sim_regno hook.
13336
8f008406
SA
133372014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13338
13339 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13340
195abc10
SA
133412014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13342
13343 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13344
93ffa5b9
MK
133452014-02-12 Mark Kettenis <kettenis@gnu.org>
13346
13347 * obsd-tdep.h (obsd_init_abi): New prototype.
13348 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13349 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13350 (obsd_init_abi): New functions.
13351 * i386obsd-tdep.c: Include "obsd-tdep.h".
13352 (i386obsd_init_abi): Call obsd_init_abi.
13353 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13354 (amd64obsd_init_abi): Call obsd_init_abi.
13355 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13356 obsd-tdep.c to gdb_target_obs.
13357
49caec94
JM
133582014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13359
13360 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13361 double float arguments to 16-byte in the argument slots.
13362
e1402065
DE
133632014-02-11 Doug Evans <xdje42@gmail.com>
13364
13365 * configure.ac: Don't crash if pkg-config is not found and guile
13366 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13367 in guile checks.
13368 * configure: Regenerate.
13369
edcc890f
YQ
133702014-02-11 Yao Qi <yao@codesourcery.com>
13371
13372 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13373 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13374 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13375 * gnu-nat.c (gnu_xfer_memory): Likewise.
13376 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13377 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13378 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13379 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13380
9b409511
YQ
133812014-02-11 Yao Qi <yao@codesourcery.com>
13382
13383 * target.h (enum target_xfer_error): Rename to ...
13384 (enum target_xfer_status): ... it. New. All users updated.
13385 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13386 New.
13387 (TARGET_XFER_STATUS_ERROR_P): New macro.
13388 (target_xfer_error_to_string): Remove declaration.
13389 (target_xfer_status_to_string): Declare.
13390 (target_xfer_partial_ftype): Adjust it.
13391 (struct target_ops) <to_xfer_partial>: Return
13392 target_xfer_status. Add argument xfered_len. Update
13393 comments.
13394 * target.c (target_xfer_error_to_string): Rename to ...
13395 (target_xfer_status_to_string): ... it. New. All callers
13396 updated.
13397 (target_read_live_memory): Likewise. Call target_xfer_partial
13398 instead of target_read.
13399 (memory_xfer_live_readonly_partial): Return
13400 target_xfer_status. Add argument xfered_len.
13401 (raw_memory_xfer_partial): Likewise.
13402 (memory_xfer_partial_1): Likewise.
13403 (memory_xfer_partial): Likewise.
13404 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13405 properly. Update debug message.
13406 (default_xfer_partial, current_xfer_partial): Likewise.
13407 (target_write_partial): Likewise.
13408 (target_read_partial): Likewise. All callers updated.
13409 (read_whatever_is_readable): Likewise.
13410 (target_write_with_progress): Likewise.
13411 (target_read_alloc_1): Likewise.
13412
13413 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13414 * auxv.c (procfs_xfer_auxv): Likewise.
13415 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13416 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13417 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13418 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13419 * corefile.c (read_memory): Adjust.
13420 * corelow.c (core_xfer_partial): Likewise.
13421 * ctf.c (ctf_xfer_partial): Likewise.
13422 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13423 updated.
13424 (darwin_xfer_partial): Likewise.
13425 * exec.c (section_table_xfer_memory_partial): Likewise. All
13426 callers updated.
13427 (exec_xfer_partial): Likewise.
13428 * exec.h (section_table_xfer_memory_partial): Update
13429 declaration.
13430 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13431 negative.
13432 (gnu_xfer_partial): Likewise.
13433 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13434 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13435 (ia64_hpux_xfer_solib_got): Likewise.
13436 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13437 type of 'partial_len' to ULONGEST.
13438 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13439 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13440 (linux_nat_xfer_partial): Likewise.
13441 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13442 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13443 * monitor.c (monitor_xfer_memory): Likewise.
13444 (monitor_xfer_partial): Likewise.
13445 * procfs.c (procfs_xfer_partial): Likewise.
13446 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13447 * record-full.c (record_full_xfer_partial): Likewise.
13448 (record_full_core_xfer_partial): Likewise.
13449 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13450 (gdbsim_xfer_partial): Likewise.
13451 * remote.c (remote_write_bytes_aux): Likewise. All callers
13452 updated.
13453 (remote_write_bytes, remote_read_bytes): Likewise. All
13454 callers updated.
13455 (remote_flash_erase): Likewise. All callers updated.
13456 (remote_write_qxfer): Likewise. All callers updated.
13457 (remote_read_qxfer): Likewise. All callers updated.
13458 (remote_xfer_partial): Likewise.
13459 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13460 (rs6000_xfer_shared_libraries): Likewise.
13461 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13462 (sol_thread_xfer_partial): Likewise.
13463 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13464 (sparc_xfer_partial): Likewise.
13465 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13466 updated.
13467 (spu_xfer_partial): Likewise.
13468 * spu-multiarch.c (spu_xfer_partial): Likewise.
13469 * tracepoint.c (tfile_xfer_partial): Likewise.
13470 * windows-nat.c (windows_xfer_memory): Likewise.
13471 (windows_xfer_shared_libraries): Likewise.
13472 (windows_xfer_partial): Likewise.
13473 * valprint.c: Replace 'target_xfer_error' with
13474 'target_xfer_status' in comments.
13475
a8e63083
JB
134762014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13477
13478 Checked in by Joel Brobecker <brobecker@adacore.com>.
13479 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13480
e86b67d3
JB
134812014-02-11 Joel Brobecker <brobecker@adacore.com>
13482
13483 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13484 function parameters.
13485
4b7d1f7f
WN
134862014-02-10 Will Newton <will.newton@linaro.org>
13487
13488 * elfread.c (elf_rel_plt_read): Look for a .got section if
13489 looking up .got.plt fails.
13490 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13491 on address passed to elf_gnu_ifunc_record_cache.
13492 (elf_gnu_ifunc_resolve_addr): Likewise.
13493 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13494
961842b2
JM
134952014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13496
13497 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13498 (X_RETTURN): New macro.
13499 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13500
13501 * sparc64-tdep.c (sparc64_init_abi): Hook
13502 sparc_in_function_epilogue_p.
13503
3f03e7b1
GB
135042014-02-10 Gary Benson <gbenson@redhat.com>
13505
13506 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13507 Rename name_matcher to symbol_matcher.
13508
96f861ef
GB
135092014-02-10 Gary Benson <gbenson@redhat.com>
13510
13511 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13512 Use expand_symtabs_file_matcher_ftype and
13513 expand_symtabs_symbol_matcher_ftype.
13514
ee01b665
JB
135152014-02-10 Joel Brobecker <brobecker@adacore.com>
13516
13517 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13518 (struct ada_symbol_cache): New.
13519 (ada_free_symbol_cache): Forward declare.
13520 (struct ada_pspace_data): New.
13521 (ada_pspace_data_handle): New static global.
13522 (get_ada_pspace_data, ada_pspace_data_cleanup)
13523 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13524 (cache_space, cache): Delete, now folded inside struct
13525 ada_pspace_data.
13526 (ada_get_symbol_cache): New function.
13527 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13528 implementation.
13529 (_initialize_ada_language): Remove initialization of cache_space.
13530 Move call to observer_attach_inferior_exit up, grouping it
13531 with the other observer registrations inside this function.
13532 Rename command to be more general. Add call to
13533 register_program_space_data_with_cleanup.
13534
143adbbf
JB
135352014-02-10 Joel Brobecker <brobecker@adacore.com>
13536
13537 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13538 ada_new_objfile_observer.
13539 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13540 (_initialize_tasks): Update uses of ada_new_objfile_observer
13541 and ada_tasks_normal_stop_observer.
13542
aa4fb036
JB
135432014-02-10 Joel Brobecker <brobecker@adacore.com>
13544
13545 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13546 returned by the 'Length attribute to integer.
13547
9dee8cc6
JB
135482014-02-10 Joel Brobecker <brobecker@adacore.com>
13549
13550 * ada-lang.c (_initialize_ada_language): Initialize
13551 cache_space obstack.
13552
3d9434b5
JB
135532014-02-10 Joel Brobecker <brobecker@adacore.com>
13554
13555 * ada-lang.c (HASH_SIZE): New macro.
13556 (struct cache_entry): New type.
13557 (cache_space, cache): New static globals.
13558 (ada_clear_symbol_cache, find_entry): New functions.
13559 (lookup_cached_symbol, cache_symbol): Implement.
13560 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13561 (_initialize_ada_language): Attach ada_new_objfile_observer
13562 and ada_free_objfile_observer.
13563
f0c5f9b2
JB
135642014-02-10 Joel Brobecker <brobecker@adacore.com>
13565
13566 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13567 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13568 struct block * parameter.
13569 (ada_lookup_symbol_list_worker): Constify local variable "block".
13570 Remove cast which is no longer necessary.
13571
ed3ef339
DE
135722014-02-10 Doug Evans <xdje42@gmail.com>
13573
13574 Add Guile as an extension language.
13575 * NEWS: Mention Guile scripting.
13576 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13577 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13578 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13579 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13580 (CLIBS): Add GUILE_LIBS.
13581 (install-guile): New rule.
13582 (guile.o): New rule.
13583 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13584 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13585 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13586 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13587 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13588 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13589 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13590 * configure.ac: New option --with-guile.
13591 * configure: Regenerate.
13592 * config.in: Regenerate.
13593 * auto-load.c: Remove #include "python/python.h". Add #include
13594 "gdb/section-scripts.h".
13595 (source_section_scripts): Handle Guile scripts.
13596 (_initialize_auto_load): Add name of Guile objfile script to
13597 scripts-directory help text.
13598 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13599 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13600 (struct breakpoint): New member scm_bp_object.
13601 * defs.h (enum command_control_type): New value guile_control.
13602 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13603 "extension.h".
13604 (show_user): Update comment.
13605 (_initialize_cli_cmds): Update help text for "show user". Update help
13606 text for max-user-call-depth.
13607 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13608 "extension.h".
13609 (multi_line_command_p): Add guile_control.
13610 (print_command_lines): Handle guile_control.
13611 (execute_control_command, recurse_read_control_structure): Ditto.
13612 (process_next_line): Recognize "guile" commands.
13613 * disasm.c (gdb_disassemble_info): Make non-static.
13614 * disasm.h: #include "dis-asm.h".
13615 (struct gdbarch): Add forward decl.
13616 (gdb_disassemble_info): Declare.
13617 * extension.c: #include "guile/guile.h".
13618 (extension_languages): Add guile.
13619 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13620 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13621 * gdbtypes.c (get_unsigned_type_max): New function.
13622 (get_signed_type_minmax): New function.
13623 * gdbtypes.h (get_unsigned_type_max): Declare.
13624 (get_signed_type_minmax): Declare.
13625 * guile/README: New file.
13626 * guile/guile-internal.h: New file.
13627 * guile/guile.c: New file.
13628 * guile/guile.h: New file.
13629 * guile/scm-arch.c: New file.
13630 * guile/scm-auto-load.c: New file.
13631 * guile/scm-block.c: New file.
13632 * guile/scm-breakpoint.c: New file.
13633 * guile/scm-disasm.c: New file.
13634 * guile/scm-exception.c: New file.
13635 * guile/scm-frame.c: New file.
13636 * guile/scm-gsmob.c: New file.
13637 * guile/scm-iterator.c: New file.
13638 * guile/scm-lazy-string.c: New file.
13639 * guile/scm-math.c: New file.
13640 * guile/scm-objfile.c: New file.
13641 * guile/scm-ports.c: New file.
13642 * guile/scm-pretty-print.c: New file.
13643 * guile/scm-safe-call.c: New file.
13644 * guile/scm-string.c: New file.
13645 * guile/scm-symbol.c: New file.
13646 * guile/scm-symtab.c: New file.
13647 * guile/scm-type.c: New file.
13648 * guile/scm-utils.c: New file.
13649 * guile/scm-value.c: New file.
13650 * guile/lib/gdb.scm: New file.
13651 * guile/lib/gdb/boot.scm: New file.
13652 * guile/lib/gdb/experimental.scm: New file.
13653 * guile/lib/gdb/init.scm: New file.
13654 * guile/lib/gdb/iterator.scm: New file.
13655 * guile/lib/gdb/printing.scm: New file.
13656 * guile/lib/gdb/types.scm: New file.
13657 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13658 (VPATH): Add $(GUILE_SRCDIR).
13659 (GUILE_DIR): New variable.
13660 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13661 (all): Add stamp-guile dependency.
13662 (stamp-guile): New rule.
13663 (clean-guile, install-guile, uninstall-guile): New rules.
13664 (install-only): Add install-guile dependency.
13665 (uninstall): Add uninstall-guile dependency.
13666 (clean): Add clean-guile dependency.
13667
ac020ec5
DE
136682014-02-09 Doug Evans <xdje42@gmail.com>
13669
13670 Revert this patch (which I approved, mea culpa).
13671
13672 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13673
13674 * Makefile.in (all-lib): Remove.
13675 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13676
2a081c59
JK
136772014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13678
13679 Fix Python stack corruption.
13680 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13681 gdb_py_longest.
13682
0a6bd22d
MK
136832014-02-08 Mark Kettenis <kettenis@gnu.org>
13684
13685 * Makefile.in (all-lib): Remove.
13686 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13687
1a860409
DE
136882014-02-07 Doug Evans <dje@google.com>
13689
13690 * extension-priv.h (extension_language_script_ops): Add comment.
13691 (extension_language_ops): Add comment.
caf5a491 13692 (active_ext_lang_state): Fix typo in comment.
1a860409 13693
d137e6dc
PA
136942014-02-07 Pedro Alves <palves@redhat.com>
13695
0dcb32c3 13696 PR breakpoints/16292
d137e6dc
PA
13697 * infrun.c (handle_signal_stop) <signal arrives while stepping
13698 over a breakpoint>: Switch back to the stepping thread.
13699
ce6d0892
YQ
137002014-02-07 Yao Qi <yao@codesourcery.com>
13701
13702 * target.c (target_xfer_partial): Return zero if LEN is zero.
13703
2ed4b548
YQ
137042014-02-07 Yao Qi <yao@codesourcery.com>
13705
13706 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13707 (ld_so_xfer_auxv): Likewise.
13708 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13709 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13710 * corelow.c (core_xfer_partial): Likewise.
13711 * ctf.c (ctf_xfer_partial): Likewise.
13712 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13713 (darwin_xfer_partial): Likewise.
13714 * exec.c (exec_xfer_partial): Likewise.
13715 * gnu-nat.c (gnu_xfer_partial): Likewise.
13716 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13717 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13718 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13719 * linux-nat.c (linux_xfer_siginfo): Likewise.
13720 (linux_proc_xfer_spu): Likewise.
13721 * procfs.c (procfs_xfer_partial): Likewise.
13722 * record-full.c (record_full_xfer_partial): Likewise.
13723 (record_full_core_xfer_partial): Likewise.
13724 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13725 * remote.c (remote_write_qxfer): Likewise.
13726 (remote_write_qxfer, remote_read_qxfer): Likewise.
13727 (remote_xfer_partial): Likewise.
13728 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13729 (rs6000_xfer_shared_libraries): Likewise.
13730 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13731 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13732 (spu_xfer_partial): Likewise.
13733 * target.c (memory_xfer_partial_1): Likewise.
13734 * tracepoint.c (tfile_xfer_partial): Likewise.
13735 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13736 (windows_xfer_partial): Likewise.
13737
c09f20e4
YQ
137382014-02-07 Yao Qi <yao@codesourcery.com>
13739
13740 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13741 comments.
13742 (core_xfer_shared_libraries_aix): Likewise.
13743 * gdbarch.c, gdbarch.h: Regenerated.
13744 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13745 ULONGEST. Change 'len_avail' type to ULONGEST.
13746 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13747 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13748 declaration.
13749 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13750
8635b3bf
YQ
137512014-02-07 Yao Qi <yao@codesourcery.com>
13752
13753 * corefile.c (memory_error): Get 'exception' from ERR and pass
13754 'exception' to throw_error.
13755
6dddc817
DE
137562014-02-06 Doug Evans <xdje42@gmail.com>
13757
13758 * configure.ac (libpython checking): Remove all but python.o from
13759 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13760 * configure: Regenerate.
13761
13762 * Makefile.in (SFILES): Add extension.c.
13763 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13764 (COMMON_OBS): Add extension.o.
13765 * extension.h: New file.
13766 * extension-priv.h: New file.
13767 * extension.c: New file.
13768
13769 * python/python-internal.h: #include "extension.h".
13770 (gdbpy_auto_load_enabled): Declare.
13771 (gdbpy_apply_val_pretty_printer): Declare.
13772 (gdbpy_apply_frame_filter): Declare.
13773 (gdbpy_preserve_values): Declare.
13774 (gdbpy_breakpoint_cond_says_stop): Declare.
13775 (gdbpy_breakpoint_has_cond): Declare.
13776 (void source_python_script_for_objfile): Delete.
13777 * python/python.c: #include "extension-priv.h".
13778 Delete inclusion of "observer.h".
13779 (extension_language_python): Moved here and renamed from
13780 script_language_python in py-auto-load.c.
13781 Redefined to be of type extension_language_defn.
13782 (python_extension_script_ops): New global.
13783 (python_extension_ops): New global.
13784 (struct python_env): New member previous_active.
13785 (restore_python_env): Call restore_active_ext_lang.
13786 (ensure_python_env): Call set_active_ext_lang.
13787 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13788 New arg extlang.
13789 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13790 New arg extlang.
13791 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13792 New arg extlang.
13793 (gdbpy_eval_from_control_command): Renamed from
13794 eval_python_from_control_command, made static. New arg extlang.
13795 (gdbpy_source_script) Renamed from source_python_script, made static.
13796 New arg extlang.
13797 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13798 result to int. New arg extlang.
13799 (gdbpy_source_objfile_script): Renamed from
13800 source_python_script_for_objfile, made static. New arg extlang.
13801 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13802 static. New args extlang, extlang_printers. Change result type to
13803 "void".
13804 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13805 static. New arg extlang. Rename arg printers to extlang_printers
13806 and change type to ext_lang_type_printers *.
13807 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13808 static. Replace argument arg with extlang, extlang_printers.
13809 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13810 (!HAVE_PYTHON, source_python_script): Delete.
13811 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13812 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13813 (!HAVE_PYTHON, start_type_printers): Delete.
13814 (!HAVE_PYTHON, apply_type_printers): Delete.
13815 (!HAVE_PYTHON, free_type_printers): Delete.
13816 (_initialize_python): Delete call to observer_attach_before_prompt.
13817 (finalize_python): Set/restore active extension language.
13818 (gdbpy_finish_initialization) Renamed from
13819 finish_python_initialization, made static. New arg extlang.
13820 (gdbpy_initialized): New function.
13821 * python/python.h: #include "extension.h". Delete #include
13822 "value.h", "mi/mi-cmds.h".
13823 (extension_language_python): Declare.
13824 (GDBPY_AUTO_FILE_NAME): Delete.
13825 (enum py_bt_status): Moved to extension.h and renamed to
13826 ext_lang_bt_status.
13827 (enum frame_filter_flags): Moved to extension.h.
13828 (enum py_frame_args): Moved to extension.h and renamed to
13829 ext_lang_frame_args.
13830 (finish_python_initialization): Delete.
13831 (eval_python_from_control_command): Delete.
13832 (source_python_script): Delete.
13833 (apply_val_pretty_printer): Delete.
13834 (apply_frame_filter): Delete.
13835 (preserve_python_values): Delete.
13836 (gdbpy_script_language_defn): Delete.
13837 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13838 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13839
13840 * auto-load.c: #include "extension.h".
13841 (GDB_AUTO_FILE_NAME): Delete.
13842 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13843 (script_language_gdb): Delete, moved to extension.c and renamed to
13844 extension_language_gdb.
13845 (source_gdb_script_for_objfile): Delete.
13846 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13847 (loaded_script): Change type of language member to
13848 struct extension_language_defn *.
13849 (init_loaded_scripts_info): Initialize
13850 unsupported_script_warning_printed.
13851 (maybe_add_script): Make static. Change type of language arg to
13852 struct extension_language_defn *.
13853 (clear_section_scripts): Reset unsupported_script_warning_printed.
13854 (auto_load_objfile_script_1): Rewrite to use extension language API.
13855 (auto_load_objfile_script): Make public. Remove support-compiled-in
13856 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13857 (source_section_scripts): Rewrite to use extension language API.
13858 (load_auto_scripts_for_objfile): Rewrite to use
13859 auto_load_scripts_for_objfile.
13860 (collect_matching_scripts_data): Change type of language member to
13861 struct extension_language_defn *.
13862 (auto_load_info_scripts): Change type of language arg to
13863 struct extension_language_defn *.
13864 (unsupported_script_warning_print): New function.
13865 (script_not_found_warning_print): Make static.
13866 (_initialize_auto_load): Rewrite construction of scripts-directory
13867 help.
13868 * auto-load.h (struct objfile): Add forward decl.
13869 (struct script_language): Delete.
13870 (struct auto_load_pspace_info): Add forward decl.
13871 (struct extension_language_defn): Add forward decl.
13872 (maybe_add_script): Delete.
13873 (auto_load_objfile_script): Declare.
13874 (script_not_found_warning_print): Delete.
13875 (auto_load_info_scripts): Update prototype.
13876 (auto_load_gdb_scripts_enabled): Declare.
13877 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13878 auto_load_python_scripts_enabled and made public.
13879 (script_language_python): Delete, moved to python.c.
13880 (gdbpy_script_language_defn): Delete.
13881 (info_auto_load_python_scripts): Update to use
13882 extension_language_python.
13883
13884 * breakpoint.c (condition_command): Replace call to
13885 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13886 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13887 with call to breakpoint_ext_lang_cond_says_stop.
13888 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13889 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13890 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13891 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13892 New arg slang.
13893 (local_setattro): Print name of extension language with existing
13894 stop condition.
13895
13896 * valprint.c (val_print, value_print): Update to call
13897 apply_ext_lang_val_pretty_printer.
13898 * cp-valprint.c (cp_print_value): Update call to
13899 apply_ext_lang_val_pretty_printer.
13900 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13901 (gdbpy_apply_val_pretty_printer): Renamed from
13902 apply_val_pretty_printer. New arg extlang.
13903 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13904
13905 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13906 extension language API.
13907 * cli/cli-script.c (execute_control_command): Update to call
13908 eval_ext_lang_from_control_command.
13909
13910 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13911 enum ext_lang_bt_status values. Update call to
13912 apply_ext_lang_frame_filter.
13913 (mi_cmd_stack_list_locals): Ditto.
13914 (mi_cmd_stack_list_args): Ditto.
13915 (mi_cmd_stack_list_variables): Ditto.
13916 * mi/mi-main.c: Delete #include "python/python-internal.h".
13917 Add #include "extension.h".
13918 (mi_cmd_list_features): Replace reference to python internal variable
13919 gdb_python_initialized with call to ext_lang_initialized_p.
13920
13921 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13922 Update to use enum ext_lang_frame_args. Update to call
13923 apply_ext_lang_frame_filter.
13924 * python/py-framefilter.c (extract_sym): Update to use enum
13925 ext_lang_bt_status.
13926 (extract_value, py_print_type, py_print_value): Ditto.
13927 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13928 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13929 (py_print_frame): Ditto.
13930 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13931 New arg extlang. Update to use enum ext_lang_bt_status.
13932
13933 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13934 finish_python_initialization. Replace with call to
13935 finish_ext_lang_initialization.
13936
13937 * typeprint.c (do_free_global_table): Update to call
13938 free_ext_lang_type_printers.
13939 (create_global_typedef_table): Update to call
13940 start_ext_lang_type_printers.
13941 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13942 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13943 (type_print_options): Change type of global_printers from "void *"
13944 to "struct ext_lang_type_printers *".
13945
13946 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13947 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13948 (gdbpy_preserve_values): Renamed from preserve_python_values.
13949 New arg extlang.
13950 (!HAVE_PYTHON, preserve_python_values): Delete.
13951
13952 * utils.c (quit_flag): Delete, moved to extension.c.
13953 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13954 extension.c.
13955
13956 * eval.c: Delete #include "python/python.h".
13957 * main.c: Delete #include "python/python.h".
13958
13959 * defs.h: Update comment.
13960
6af79985
JB
139612014-02-06 Joel Brobecker <brobecker@adacore.com>
13962
13963 GDB 7.7 released.
13964
12c5175d
MK
139652014-02-05 Mark Kettenis <kettenis@gnu.org>
13966
13967 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13968 defined.
13969
8dc5b319
YQ
139702014-02-05 Yao Qi <yao@codesourcery.com>
13971
13972 * remote.c (remote_pass_signals): Remove local 'buf' and use
13973 rs->buf.
13974 (remote_program_signals): Likewise.
13975
de7b2893
YQ
139762014-02-05 Yao Qi <yao@codesourcery.com>
13977
13978 * ctf.c: Include "inferior.h" and "gdbthread.h".
13979 (CTF_PID): A new macro.
13980 (ctf_open): Call inferior_appeared and add_thread_silent.
13981 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13982 (ctf_thread_alive): New function.
13983 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13984
66d032ac
YQ
139852014-02-05 Yao Qi <yao@codesourcery.com>
13986
13987 Revert this patch:
13988
13989 2013-05-24 Yao Qi <yao@codesourcery.com>
13990
13991 * tracepoint.c (TFILE_PID): Remove.
13992 (tfile_open): Don't add thread and inferior.
13993 (tfile_close): Don't set 'inferior_ptid'. Don't call
13994 exit_inferior_silent.
13995 (tfile_thread_alive): Remove.
13996 (init_tfile_ops): Don't set field 'to_thread_alive' of
13997 tfile_ops.
13998
f4ccffad
CE
139992014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14000
14001 * remote.c (remote_start_remote): Call remote_check_symbols even
14002 if only symbol-file (not file) has been given.
14003
591a12a1
UW
140042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14005
14006 * gdbarch.sh (skip_entrypoint): New callback.
14007 * gdbarch.c, gdbarch.h: Regenerate.
14008 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14009 * infrun.c (fill_in_stop_func): Likewise.
14010 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14011 (ppc_elfv2_elf_make_msymbol_special): New function.
14012 (ppc_elfv2_skip_entrypoint): Likewise.
14013 (ppc_linux_init_abi): Install them for ELFv2.
14014
cc0e89c5
UW
140152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14016
14017 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14018 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14019 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14020 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14021 structures returned in GPRs.
14022
52f548e4
UW
140232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14024
14025 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14026 offset to the stack parameter list for the ELFv2 ABI.
14027
d4094b6a
UW
140282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14029
14030 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14031 set_gdbarch_convert_from_func_ptr_addr and
14032 set_gdbarch_elf_make_msymbol_special for ELFv1.
14033 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14034 function descriptors on ELFv1.
14035 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14036 set up r12 at function entry.
14037
cd453cd0
UW
140382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14039
14040 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14041 (struct gdbarch_tdep): New member elf_abi.
14042
14043 * rs6000-tdep.c: Include "elf/ppc64.h".
14044 (rs6000_gdbarch_init): Detect ELF ABI version.
14045
0ff3e01f
UW
140462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14047
14048 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14049 within a register pair holding a DFP 128-bit value on little-endian.
14050 (ppc64_sysv_abi_return_value_base): Likewise.
14051 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14052 (dfp_pseudo_register_write): Likewise.
14053
5b757e5d
UW
140542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14055
14056 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14057 offset on little-endian when passing _Decimal32.
14058 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14059
084ee545
UW
140602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14061
14062 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14063 of the overlapped FP register within the VSX register on little-
14064 endian platforms.
14065 (efpr_pseudo_register_write): Likewise.
14066
d63167af
UW
140672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14068
14069 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14070 offset on little-endian when passing small structures.
14071
e765b44c
UW
140722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14073
14074 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14075 (struct ppc64_sysv_argpos): New data structure.
14076 (ppc64_sysv_abi_push_float): Remove.
14077 (ppc64_sysv_abi_push_val): New function.
14078 (ppc64_sysv_abi_push_integer): Likewise.
14079 (ppc64_sysv_abi_push_freg): Likewise.
14080 (ppc64_sysv_abi_push_vreg): Likewise.
14081 (ppc64_sysv_abi_push_param): Likewise.
14082 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14083 (ppc64_sysv_abi_return_value_base): New function.
14084 (ppc64_sysv_abi_return_value): Refactor to use it.
14085
36c24d95
UW
140862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14087
14088 * NEWS: Document new target powerpc64le-*-linux*.
14089
26fd9228
MK
140902014-02-04 Mark Kettenis <kettenis@gnu.org>
14091
14092 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14093 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14094 core dumps.
14095 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14096 register set used in ELF core dumps. Add floating-point register set.
14097
c5bb7362
KB
140982014-02-03 Kevin Buettner <kevinb@redhat.com>
14099
74228e77 14100 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14101 dwarf2_to_gdb[] table using symbolic constants. Adjust
14102 penultimate entry from number representing the PC register
14103 to symbolic constant representing the MDR register. Add
14104 constant for the PC register to the end of the table.
14105
af09351e
MK
141062014-02-03 Mark Kettenis <kettenis@gnu.org>
14107
14108 * bsd-kvm.c: Include <sys/param.h>
14109
8507e05d
MK
141102014-02-03 Mark Kettenis <kettenis@gnu.org>
14111
14112 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14113
ae56bfb8
JB
141142014-01-31 Joel Brobecker <brobecker@adacore.com>
14115
14116 * ada-lang.h (clear_ada_sym_cache): Delete.
14117
718ee4dc
UW
141182014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14119
14120 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14121
401e27fd
JM
141222014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14123
14124 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14125 the sigreturn register save area only if the syscall is
14126 sigreturn.
14127
a7c88acd
JB
141282014-01-29 Joel Brobecker <brobecker@adacore.com>
14129
14130 * valops.c (value_slice): Minor reformatting.
14131
fa0079ea
UW
141322014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14133
14134 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14135
c6044dd1
JB
141362014-01-28 Joel Brobecker <brobecker@adacore.com>
14137
14138 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14139 New static globals.
14140 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14141 (ada_ignore_descriptive_types_p): New static global.
14142 (find_parallel_type_by_descriptive_type): Return immediately
14143 if ada_ignore_descriptive_types_p is set.
14144 (_initialize_ada_language): Register new commands "maintenance
14145 set ada", "maintenance show ada", "maintenance set ada
14146 ignore-descriptive-types" and "maintenance show ada
14147 ignore-descriptive-types".
14148 * NEWS: Add entry for new "maint ada set/show
14149 ignore-descriptive-types" commands.
14150
568e808b
MM
141512014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14152
14153 * record-btrace.c (record_btrace_close): Call btrace_teardown
14154 for all threads.
14155
467d141b
JB
141562014-01-27 Joel Brobecker <brobecker@adacore.com>
14157
14158 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14159 "ui-out.h".
14160
fb151210
JB
141612014-01-27 Joel Brobecker <brobecker@adacore.com>
14162
14163 * ada-typeprint (type_is_full_subrange_of_target_type):
14164 New function.
14165 (print_range): Add parameter bounds_prefered_p. If not set,
14166 try printing range types using the name of their base type.
14167 (print_range_type): Add parameter bounds_prefered_p.
14168 Use it in call to print_range.
14169 (print_array_type, ada_print_type): Update calls to print_range
14170 and print_range_type.
14171
aba02109
JB
141722014-01-27 Joel Brobecker <brobecker@adacore.com>
14173
14174 * ada-typeprint.c (print_array_type, print_choices, print_range)
14175 (print_range_bound, print_dynamic_range_bound, print_range_type):
14176 Remove declaration.
14177
e62e21fd
JB
141782014-01-27 Joel Brobecker <brobecker@adacore.com>
14179
14180 * ada-typeprint.c (print_range): Add missing empty line
14181 after local declaration.
14182
859cf5d1
JB
141832014-01-27 Joel Brobecker <brobecker@adacore.com>
14184
14185 * ada-valprint.c (print_optional_low_bound): Get index_type's
14186 target type for as long as it is a TYPE_CODE_RANGE.
14187
25790f6f
JB
141882014-01-27 Joel Brobecker <brobecker@adacore.com>
14189
14190 * procfs.c (procfs_make_note_section): Remove assertion and
14191 associated comment.
14192
6b6aa828
YQ
141932014-01-24 Yao Qi <yao@codesourcery.com>
14194
14195 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14196 * corelow.c (get_core_siginfo): Likewise.
14197
5d6df423
YQ
141982014-01-24 Yao Qi <yao@codesourcery.com>
14199
14200 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14201 ULONGEST. Don't check 'len' is negative.
14202 (remote_write_bytes): Change type of 'len' to ULONGEST.
14203
83b645b8
TT
142042014-01-23 Tom Tromey <tromey@redhat.com>
14205
14206 PR python/16485:
14207 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14208 Handle exception from frame.block.
14209 (FrameVars.fetch_frame_locals): Likewise.
14210
0740f8d8
TT
142112014-01-23 Tom Tromey <tromey@redhat.com>
14212
14213 PR python/16487:
14214 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14215 on a NULL pointer. Move "goto error" to correct place.
14216
21909fa1
TT
142172014-01-23 Tom Tromey <tromey@redhat.com>
14218
14219 PR python/16491:
14220 * python/py-framefilter.c (apply_frame_filter): Call
14221 ensure_python_env after computing gdbarch.
14222
17fde6d0
YQ
142232014-01-23 Yao Qi <yao@codesourcery.com>
14224
14225 * target.c (raw_memory_xfer_partial): Change argument type
14226 from void * to gdb_byte *.
14227 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14228
87ce2a04
DE
142292014-01-22 Doug Evans <dje@google.com>
14230
14231 New gdbserver option --debug-format=timestamp.
14232 * NEWS: Mention it.
14233
237b092b
AA
142342014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14235
14236 * syscalls/s390x-linux.xml: New file.
14237 * syscalls/s390-linux.xml: New file.
14238 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14239 (XML_SYSCALL_FILENAME_S390X): Likewise.
14240 (op_svc): New enum value for SVC opcode.
14241 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14242 (s390_linux_get_syscall_number): New function.
14243 (s390_gdbarch_init): Register '*get_syscall_number' and the
14244 syscall xml file name.
14245 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14246 "s390-linux.xml" and "s390x-linux.xml".
14247 * NEWS: Announce new feature.
14248
54bff650
BS
142492014-01-22 Baruch Siach <baruch@tkos.co.il>
14250
14251 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14252
14e361d7
PA
142532014-01-22 Pedro Alves <palves@redhat.com>
14254
14255 * xtensa-config.c: Include defs.h.
14256
46bbb3ed
JB
142572014-01-22 Joel Brobecker <brobecker@adacore.com>
14258
14259 * common/common-utils.h: Add "ARI:" comment beside __func__
14260 reference.
14261
3a80edfc
JB
142622014-01-22 Joel Brobecker <brobecker@adacore.com>
14263
14264 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14265 documentation a bit.
14266
4869db5e
RM
142672014-01-21 Roland McGrath <mcgrathr@google.com>
14268
14269 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14270 * configure: Regenerate.
14271 * aclocal.m4: Regenerate.
14272 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14273 New substituted variables.
14274 (install-strip): New target.
14275 (INSTALL_SCRIPT): New substituted variable.
14276 (FLAGS_TO_PASS): Add it.
14277 (install-only): Use $(INSTALL_SCRIPT) rather than
14278 $(INSTALL_PROGRAM) for gcore.
14279
9ea4267d
TT
142802014-01-20 Tom Tromey <tromey@redhat.com>
14281
14282 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14283 together.
14284
1f2bdf09
TT
142852014-01-20 Tom Tromey <tromey@redhat.com>
14286
14287 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14288 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14289 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14290 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14291 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14292 (struct cmd_list_element) <flags>: Remove.
14293 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14294 doc_allocated>: New fields.
14295 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14296 bitfields.
14297 * maint.c (maintenance_do_deprecate): Update.
14298 * top.c (execute_command): Update.
14299
e671835b
BS
143002014-01-20 Baruch Siach <baruch@tkos.co.il>
14301
14302 * xtensa-linux-nat.c: Include asm/ptrace.h.
14303
50367cd2
IB
143042014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14305
14306 * Makefile.in (SFILES): Add d-support.c.
14307 (COMMON_OBS): Add d-support.o.
14308 * d-lang.h (d_parse_symbol): Add comment, now defined in
14309 d-support.c.
14310 * d-lang.c (parse_call_convention)
14311 (parse_attributes, parse_function_types)
14312 (parse_function_args, parse_type, parse_identifier)
14313 (call_convention_p, d_parse_symbol): Move functions to ...
14314 * d-support.c: ... New file.
14315
ec9f644a
IB
143162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14317
14318 * d-lang.h (d_parse_symbol): Add declaration.
14319 * d-lang.c (extract_identifiers)
14320 (extract_type_info): Remove functions.
14321 (parse_call_convention, parse_attributes)
14322 (parse_function_types, parse_function_args)
14323 (parse_type, parse_identifier, call_convention_p)
14324 (d_parse_symbol): New functions.
14325 (d_demangle): Use d_parse_symbol to demangle D symbols.
14326
94b1b47e
IB
143272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14328
14329 * d-lang.h (struct builtin_d_type): New data type.
14330 (builtin_d_type): Add declaration.
14331 * d-lang.c (d_language_arch_info, build_d_types)
14332 (builtin_d_type): New functions.
14333 (enum d_primitive_types): New data type.
14334 (d_language_defn): Change c_language_arch_info to
14335 d_language_arch_info.
14336 (d_type_data): New static variable.
14337 (_initialize_d_language): Initialize d_type_data.
14338
63778547
IB
143392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14340
14341 * d-lang.h (d_main_name): Add declaration.
14342 * d-lang.c (d_main_name): New function.
14343 * symtab.c (find_main_name): Add call to d_main_name.
14344
3271ba66
IB
143452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14346
14347 * d-lang.c (d_language_defn): Change macro_expansion_c to
14348 macro_expansion_no.
14349
d36b3012
IB
143502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14351
14352 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14353
c90a6fb7
SDJ
143542014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14355
14356 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14357 gdb_exception" declaration.
14358 * remote.c (getpkt_or_notif_sane): Likewise.
14359
749234e5
DE
143602014-01-17 Doug Evans <dje@google.com>
14361
14362 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14363 function, contents of dirnames_to_char_ptr_vec_append moved here.
14364 (delim_string_to_char_ptr_vec): New function.
14365 (dirnames_to_char_ptr_vec_append): Rewrite.
14366 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14367
df049a58
DE
143682014-01-17 Doug Evans <dje@google.com>
14369
14370 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14371 and moved here ...
14372 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14373 #include "common-utils.h".
14374 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14375 * common/vec.h (VEC_ASSERT_PASS): Update.
14376 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14377 (MACH_CHECK_ERROR): Update.
14378
69f97648
SM
143792014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14380
14381 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14382 comments.
14383 * gdbarch.h: Regenerate.
14384
98b1cfdc
TT
143852014-01-16 Tom Tromey <tromey@redhat.com>
14386
14387 * value.c (struct value) <regnum>: Move earlier.
14388
77a19445
TT
143892014-01-16 Tom Tromey <tromey@redhat.com>
14390
14391 * remote.c (extended_remote_create_inferior): Rename from
14392 extended_remote_create_inferior_1. Add "ops" argument. Remove
14393 old implementation.
14394
62261490
PA
143952014-01-16 Pedro Alves <palves@redhat.com>
14396
14397 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14398 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14399 the backchain.
14400
4d65956b
DE
144012014-01-16 Doug Evans <dje@google.com>
14402
14403 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14404
52834460
MM
144052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14406
14407 * btrace.h (btrace_thread_flag): New.
14408 (struct btrace_thread_info) <flags>: New.
14409 * record-btrace.c (record_btrace_resume_thread)
14410 (record_btrace_find_thread_to_move, btrace_step_no_history)
14411 (btrace_step_stopped, record_btrace_start_replaying)
14412 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14413 (record_btrace_find_resume_thread): New.
14414 (record_btrace_resume, record_btrace_wait): Extend.
14415 (record_btrace_can_execute_reverse): New.
14416 (record_btrace_open): Fail in non-stop mode.
14417 (record_btrace_set_replay): Split into this, ...
14418 (record_btrace_stop_replaying): ... this, ...
14419 (record_btrace_clear_histories): ... and this.
14420 (init_record_btrace_ops): Init to_can_execute_reverse.
14421 * NEWS: Announce it.
14422
118e6252
MM
144232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14424
14425 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14426 (forward_target_decr_pc_after_break)
14427 (target_decr_pc_after_break): New.
14428 * target.c (forward_target_decr_pc_after_break)
14429 (target_decr_pc_after_break): New.
14430 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14431 instead of gdbarch_decr_pc_after_break.
14432 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14433 instead of gdbarch_decr_pc_after_break.
14434 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14435 instead of gdbarch_decr_pc_after_break.
14436 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14437 instead of gdbarch_decr_pc_after_break.
14438 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14439 instead of gdbarch_decr_pc_after_break.
14440 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14441 instead of gdbarch_decr_pc_after_break.
14442
6e07b1d2
MM
144432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14444
14445 * btrace.c: Include regcache.h.
14446 (btrace_add_pc): New.
14447 (btrace_enable): Call btrace_add_pc.
14448 (btrace_is_empty): New.
14449 * btrace.h (btrace_is_empty): New.
14450 * record-btrace.c (require_btrace, record_btrace_info): Call
14451 btrace_is_empty.
14452
969c39fb
MM
144532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14454
14455 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14456 Support delta reads.
14457 (linux_disable_btrace): Change return type.
14458 * common/linux-btrace.h (linux_read_btrace): Change parameters
14459 and return type to allow error reporting. Update users.
14460 (linux_disable_btrace): Change return type. Update users.
14461 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14462 New.
14463 (btrace_error): New.
14464 (btrace_block) <begin>: Comment on BEGIN == 0.
14465 * btrace.c (btrace_compute_ftrace): Start from the end of
14466 the current trace.
14467 (btrace_stitch_trace, btrace_clear_history): New.
14468 (btrace_fetch): Read delta trace, return if replaying.
14469 (btrace_clear): Move clear history code to btrace_clear_history.
14470 (parse_xml_btrace): Throw an error if parsing failed.
14471 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14472 and return type to allow error reporting.
14473 (target_read_btrace): Change parameters and return type to allow
14474 error reporting.
14475 * target.c (target_read_btrace): Update.
14476 * remote.c (remote_read_btrace): Support delta reads. Pass
14477 errors on.
14478 * NEWS: Announce it.
14479
0b722aec
MM
144802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14481
14482 * record.h (record_btrace_frame_unwind)
14483 (record_btrace_tailcall_frame_unwind): New declarations.
14484 * dwarf2-frame: Include record.h
14485 (dwarf2_frame_cfa): Throw an error for btrace frames.
14486 * record-btrace.c: Include hashtab.h.
14487 (btrace_get_bfun_name): New.
14488 (btrace_call_history): Call btrace_get_bfun_name.
14489 (struct btrace_frame_cache): New.
14490 (bfcache): New.
14491 (bfcache_hash, bfcache_eq, bfcache_new): New.
14492 (btrace_get_frame_function): New.
14493 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14494 (record_btrace_frame_this_id): Compute own id.
14495 (record_btrace_frame_prev_register): Provide PC, throw_error
14496 for all other registers.
14497 (record_btrace_frame_sniffer): Detect btrace frames.
14498 (record_btrace_tailcall_frame_sniffer): New.
14499 (record_btrace_frame_dealloc_cache): New.
14500 (record_btrace_frame_unwind): Add new functions.
14501 (record_btrace_tailcall_frame_unwind): New.
14502 (_initialize_record_btrace): Allocate cache.
14503 * btrace.c (btrace_clear): Call reinit_frame_cache.
14504 * NEWS: Announce it.
14505
066ce621
MM
145062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14507
14508 * record-btrace.c (record_btrace_set_replay)
14509 (record_btrace_goto_begin, record_btrace_goto_end)
14510 (record_btrace_goto): New.
14511 (init_record_btrace_ops): Initialize them.
14512 * NEWS: Announce it.
14513
e2887aa3
MM
145142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14515
14516 * record-btrace.c (record_btrace_find_new_threads)
14517 (record_btrace_thread_alive): New.
14518 (init_record_btrace_ops): Initialize to_find_new_threads and
14519 to_thread_alive.
14520
b2f4cfde
MM
145212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14522
14523 * record-btrace.c (record_btrace_resume): New.
14524 (record_btrace_wait): New.
14525 (init_record_btrace_ops): Initialize to_wait and to_resume.
14526
633785ff
MM
145272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14528
14529 * record-btrace.c (record_btrace_xfer_partial)
14530 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14531 (record_btrace_allow_memory_access): New.
14532 (init_record_btrace_ops): Initialize new methods.
14533 * target.c (raw_memory_xfer_partial): Bail out if target reports
14534 that this memory is not available.
14535
3db08215
MM
145362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14537
14538 * target.h (target_ops) <to_insert_breakpoint>
14539 <to_remove_breakpoint>: Add target_ops parameter.
14540 (forward_target_insert_breakpoint): New.
14541 (forward_target_remove_breakpoint): New.
14542 (memory_remove_breakpoint, memory_insert_breakpoint):
14543 Add target_ops parameter.
14544 * target.c (target_insert_breakpoint): Split into this and ...
14545 (forward_target_insert_breakpoint): ... this.
14546 (target_remove_breakpoint): Split into this and ...
14547 (forward_target_remove_breakpoint): ... this.
14548 (debug_to_insert_breakpoint): Add target_ops parameter.
14549 Call forward_target_insert_breakpoint.
14550 (debug_to_remove_breakpoint): Add target_ops parameter.
14551 Call forward_target_remove_breakpoint.
14552 (update_current_target): Do not inherit or default to_insert_breakpoint
14553 and to_remove_breakpoint.
14554 * corelow.c (ignore): Add target_ops parameter.
14555 * exec.c (ignore): Add target_ops parameter.
14556 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14557 Add target_ops parameter.
14558 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14559 Add target_ops parameter.
14560 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14561 Add target_ops parameter.
14562 * record-full.c (record_full_beneath_to_insert_breakpoint)
14563 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14564 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14565 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14566 (record_full_core_remove_breakpoint): Add target_ops parameter.
14567 Update users.
14568 (record_full_beneath_to_insert_breakpoint_ops)
14569 (record_full_beneath_to_remove_breakpoint_ops)
14570 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14571 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14572 tmp_to_remove_breakpoint_ops,
14573 record_full_beneath_to_insert_breakpoint_ops, and
14574 record_full_beneath_to_remove_breakpoint_ops.
14575 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14576 (m32r_remove_breakpoint): Add target_ops parameter.
14577 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14578 Add target_ops parameter.
14579 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14580 Add target_ops parameter.
14581
cecac1ab
MM
145822014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14583 Markus Metzger <markus.t.metzger@intel.com>
14584
14585 * record-btrace.c: Include frame-unwind.h.
14586 (record_btrace_frame_unwind_stop_reason)
14587 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14588 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14589 New.
14590 (init_record_btrace_ops): Install it.
14591
824344ca
MM
145922014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14593
14594 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14595 get_prev_frame_1.
14596
32261e52
MM
145972014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14598
14599 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14600 earlier.
14601
ea001bdc
MM
146022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14603
14604 * frame-unwind.c: Include target.h.
14605 (frame_unwind_try_unwinder): New function with code from ...
14606 (frame_unwind_find_by_frame): ... here. New variable
14607 unwinder_from_target, call also target_get_unwinder)
14608 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14609 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14610 * target.h (struct target_ops): New fields to_get_unwinder and
14611 to_get_tailcall_unwinder.
14612 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14613
1f3ef581
MM
146142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14615
14616 * record-btrace.c (record_btrace_fetch_registers)
14617 (record_btrace_store_registers)
14618 (record_btrace_to_prepare_to_store): New.
14619 (init_record_btrace_ops): Add the above.
14620
f32dbf8c
MM
146212014-01-16 Tom Tromey <tromey@redhat.com>
14622
14623 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14624 * target.h (struct target_ops) <to_prepare_to_store>: Add
14625 argument.
14626 (target_prepare_to_store): Add argument.
14627 * target.c (debug_to_prepare_to_store): Add argument.
14628 (update_current_target): Update.
14629 * remote.c (remote_prepare_to_store): Add 'self' argument.
14630 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14631 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14632 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14633 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14634 argument.
14635 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14636 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14637 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14638 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14639 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14640
07bbe694
MM
146412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14642
14643 * btrace.h (replay) <replay>: New.
14644 (btrace_is_replaying): New.
14645 * btrace.c (btrace_clear): Free replay iterator.
14646 (btrace_is_replaying): New.
14647 * record-btrace.c (record_btrace_is_replaying): New.
14648 (record_btrace_info): Print insn number if replaying.
14649 (record_btrace_insn_history): Start at replay position.
14650 (record_btrace_call_history): Start at replay position.
14651 (init_record_btrace_ops): Init to_record_is_replaying.
14652
0688d04e
MM
146532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14654
14655 * record-btrace.c (record_btrace_insn_history_range): Include
14656 end.
14657 (record_btrace_insn_history_from): Adjust range.
14658 (record_btrace_call_history_range): Include
14659 end.
14660 (record_btrace_call_history_from): Adjust range.
14661 * NEWS: Announce changes.
14662
8710b709
MM
146632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14664
14665 * record.h (enum record_print_flag)
14666 <record_print_indent_calls>: New.
14667 * record.c (get_call_history_modifiers): Recognize /c modifier.
14668 (_initialize_record): Document /c modifier.
14669 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14670 Reorder fields. Optionally indent the function name. Update
14671 all users.
14672 * NEWS: Announce changes.
14673
d0fa7535
MM
146742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14675
14676 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14677
5de9129b
MM
146782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14679
14680 * btrace.c (ftrace_new_function): Start counting at one.
14681 * record-btrace.c (record_btrace_info): Adjust number of calls
14682 and insns.
14683 * NEWS: Announce it.
14684
7acbe133
MM
146852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14686
14687 * record-btrace.c (btrace_call_history_insn_range): Print
14688 insn range as [begin, end].
14689
23a7fe75
MM
146902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14691
14692 * btrace.h (struct btrace_func_link): New.
14693 (enum btrace_function_flag): New.
14694 (struct btrace_inst): Rename to ...
14695 (struct btrace_insn): ...this. Update all users.
14696 (struct btrace_func) <ibegin, iend>: Remove.
14697 (struct btrace_func_link): New.
14698 (struct btrace_func): Rename to ...
14699 (struct btrace_function): ...this. Update all users.
14700 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14701 (number, level, flags>: New.
14702 (struct btrace_insn_iterator): Rename to ...
14703 (struct btrace_insn_history): ...this.
14704 Update all users.
14705 (struct btrace_insn_iterator, btrace_call_iterator): New.
14706 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14707 (struct btrace_target_info) <begin, end, level>
14708 <insn_history, call_history>: New.
14709 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14710 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14711 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14712 (btrace_call_number, btrace_call_begin, btrace_call_end)
14713 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14714 (btrace_find_function_by_number, btrace_set_insn_history)
14715 (btrace_set_call_history): New.
14716 * btrace.c (btrace_init_insn_iterator)
14717 (btrace_init_func_iterator, compute_itrace): Remove.
14718 (ftrace_print_function_name, ftrace_print_filename)
14719 (ftrace_skip_file): Change
14720 parameter to const.
14721 (ftrace_init_func): Remove.
14722 (ftrace_debug): Use new btrace_function fields.
14723 (ftrace_function_switched): Also consider gaining and
14724 losing symbol information).
14725 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14726 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14727 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14728 New.
14729 (ftrace_new_function): Move. Remove debug print.
14730 (ftrace_update_lines, ftrace_update_insns): New.
14731 (ftrace_update_function): Check for call, ret, and jump.
14732 (compute_ftrace): Renamed to ...
14733 (btrace_compute_ftrace): ...this. Rewritten to compute call
14734 stack.
14735 (btrace_fetch, btrace_clear): Updated.
14736 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14737 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14738 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14739 (btrace_call_number, btrace_call_begin, btrace_call_end)
14740 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14741 (btrace_find_function_by_number, btrace_set_insn_history)
14742 (btrace_set_call_history): New.
14743 * record-btrace.c (require_btrace): Use new btrace thread
14744 info fields.
14745 (record_btrace_info, btrace_insn_history)
14746 (record_btrace_insn_history, record_btrace_insn_history_range):
14747 Use new btrace thread info fields and new iterator.
14748 (btrace_func_history_src_line): Rename to ...
14749 (btrace_call_history_src_line): ...this. Use new btrace
14750 thread info fields.
14751 (btrace_func_history): Rename to ...
14752 (btrace_call_history): ...this. Use new btrace thread info
14753 fields and new iterator.
14754 (record_btrace_call_history, record_btrace_call_history_range):
14755 Use new btrace thread info fields and new iterator.
14756
8372a7cb
MM
147572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14758
14759 * frame.h (frame_id_build_unavailable_stack_special): New.
14760 * frame.c (frame_id_build_unavailable_stack_special): New.
14761
c2170eef
MM
147622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14763
14764 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14765 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14766 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14767 to gdbarch.
14768 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14769 (i386_insn_is_jump, i386_jmp_p): New.
14770 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14771 insn_is_jump to gdbarch.
14772 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14773 * gdbarch.h: Regenerated.
14774 * gdbarch.c: Regenerated.
14775 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14776 (default_insn_is_jump): New.
14777 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14778 (default_insn_is_jump): New.
14779
864089d2
MM
147802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14781
14782 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14783 Change to ...
14784 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14785 (btrace_read_type) <btrace_read_new>: Change to ...
14786 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14787
ed9edfb5
MM
147882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14789
14790 * common/linux-btrace.c (linux_read_btrace): Free trace from
14791 previous iteration.
14792
fbcbc3fd
DE
147932014-01-15 Doug Evans <dje@google.com>
14794
14795 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14796 uint32_t.
14797
3d548a53
TT
147982014-01-15 Tom Tromey <tromey@redhat.com>
14799
14800 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14801 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14802 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14803 (set_objfile_main_name): New function.
14804 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14805 language_of_main>: New fields.
14806 (set_objfile_main_name): Declare.
14807 * symtab.c (find_main_name): Loop over objfiles to find the main
14808 name and language.
14809 (set_main_name): Now static.
14810 (get_main_info): Add comment.
14811 * symtab.h (set_main_name): Don't declare.
14812
32ac0d11
TT
148132014-01-15 Tom Tromey <tromey@redhat.com>
14814
14815 * symtab.c (main_progspace_key): New global.
14816 (struct main_info): New.
14817 (name_of_main, language_of_main): Remove.
14818 (get_main_info, main_info_cleanup): New function.
14819 (set_main_name, main_name, main_language): Use get_main_info.
14820 (_initialize_symtab): Initialize main_progspace_key.
14821
9e6c82ad
TT
148222014-01-15 Tom Tromey <tromey@redhat.com>
14823
14824 * dbxread.c (process_one_symbol): Update.
14825 * dwarf2read.c (read_partial_die): Update.
14826 * symfile.c (set_initial_language): Call main_language.
14827 * symtab.c (language_of_main): Now static.
14828 (set_main_name): Add 'lang' parameter.
14829 (find_main_name): Update.
14830 (main_language): New function.
14831 (symtab_observer_executable_changed): Update.
14832 * symtab.h (set_main_name): Update.
14833 (language_of_main): Remove.
14834 (main_language): Declare.
14835
6ef55de7
TT
148362014-01-15 Tom Tromey <tromey@redhat.com>
14837
14838 * symfile.c (init_entry_point_info): Use new "initialized" field.
14839 Update.
14840 * objfiles.h (struct entry_point) <initialized>: New field.
14841 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14842 (struct objfile) <ei>: ...here. Remove.
14843 * objfiles.c (entry_point_address_query): Update.
14844
53eddfa6
TT
148452014-01-15 Tom Tromey <tromey@redhat.com>
14846
14847 * objfiles.c (entry_point_address_query): Relocate entry point
14848 address.
14849 (objfile_relocate1): Do not relocate entry point address.
14850 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14851 <the_bfd_section_index>: New field.
14852 * symfile.c (init_entry_point_info): Find the entry point's
14853 section.
14854
d56e56aa
TT
148552014-01-15 Tom Tromey <tromey@redhat.com>
14856
14857 * solib-frv.c (enable_break): Use entry_point_address_query.
14858
33a97bbe
OJ
148592014-01-15 Omair Javaid <omair.javaid@linaro.org>
14860
14861 * NEWS: Add note on improved process record-replay on
14862 arm*-linux* targets.
14863
c6ec2b30
OJ
148642014-01-15 Omair Javaid <omair.javaid@linaro.org>
14865
14866 * arm-tdep.c (enum arm_record_result): New enum.
14867 (arm_record_unsupported_insn): New function.
14868 (arm_record_coproc_data_proc): Removed.
14869 (thumb2_record_ld_st_multiple): New function.
14870 (thumb2_record_ld_st_dual_ex_tbb): New function.
14871 (thumb2_record_data_proc_sreg_mimm): New function.
14872 (thumb2_record_ps_dest_generic): New function.
14873 (thumb2_record_branch_misc_cntrl): New function.
14874 (thumb2_record_str_single_data): New function.
14875 (thumb2_record_ld_mem_hints): New function.
14876 (thumb2_record_ld_word): New function.
14877 (thumb2_record_lmul_lmla_div): New function.
14878 (thumb2_record_decode_insn_handler): New function.
14879 (decode_insn): Add thumb32 instruction handlers.
14880
97dfe206
OJ
148812014-01-15 Omair Javaid <omair.javaid@linaro.org>
14882
14883 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14884 (struct arm_linux_record_tdep): Declare.
14885 (arm_canonicalize_syscall): New function.
14886 (arm_all_but_pc_registers_record): New function.
14887 (arm_linux_syscall_record): New function.
14888 (arm_linux_init_abi): Add syscall recording constructs.
14889 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14890 decoding. (arm_record_coproc_data_proc): Update arm syscall
14891 decoding.
14892 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14893 <arm_syscall_record>: New field.
14894 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14895 gdb_target_obs.
14896
9904a494
OJ
148972014-01-15 Omair Javaid <omair.javaid@linaro.org>
14898
14899 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14900 register for push instruction recording.
14901
f969241e
OJ
149022014-01-15 Omair Javaid <omair.javaid@linaro.org>
14903
14904 * arm-tdep.c (thumb_record_misc): Update to correct logical
14905 error while recording ldm, ldmia and pop instructions.
14906
bfbbec00
OJ
149072014-01-15 Omair Javaid <omair.javaid@linaro.org>
14908
14909 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14910
e40adcc9
PA
149112014-01-15 Pedro Alves <palves@redhat.com>
14912
14913 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14914 (go32_resume, go32_fetch_registers, store_register)
14915 (go32_store_registers, go32_prepare_to_store)
14916 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14917 (go32_create_inferior, go32_can_run, go32_terminal_init)
14918 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14919 declarations.
14920
b0a16e66
TT
149212014-01-15 Tom Tromey <tromey@redhat.com>
14922
14923 * target.h (async_callback_ftype): New typedef.
14924 (struct target_ops) <to_async>: Use it.
14925
bf7105a4
JB
149262014-01-15 Joel Brobecker <brobecker@adacore.com>
14927
14928 * python/py-value.c (get_field_type): Remove unnecessary curly
14929 braces for single-statement if block.
14930
a8f35c2e
JB
149312014-01-15 Joel Brobecker <brobecker@adacore.com>
14932
14933 * python/py-type.c (convert_field): Add missing empty line
14934 after declarations.
14935
bb4142cf
DE
149362014-01-14 Doug Evans <dje@google.com>
14937
14938 * symfile.h (expand_symtabs_matching): Renamed from
14939 expand_partial_symbol_names. Update prototype.
14940 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14941 * symfile.c (expand_symtabs_matching): Renamed from
14942 expand_partial_symbol_names. New args file_matcher, kind.
14943 Rename arg fun to symbol_matcher.
14944 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14945 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14946 ada_expand_partial_symbol_name.
14947 (ada_make_symbol_completion_list): Update to call
14948 expand_symtabs_matching.
14949 (ada_add_global_exceptions): Call expand_symtabs_matching.
14950 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14951 call map_symbol_filenames.
14952 * symtab.c (sources_info): Update to call map_symbol_filenames.
14953 (search_symbols): Call expand_symtabs_matching.
14954 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14955 (default_make_symbol_completion_list_break_on): Update to call
14956 expand_symtabs_matching.
14957 (make_source_files_completion_list): Update to call
14958 map_symbol_filenames.
14959
206f2a57
DE
149602014-01-14 Doug Evans <dje@google.com>
14961
14962 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14963 (expand_symtabs_symbol_matcher_ftype): New typedef.
14964 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14965 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14966 * symfile.c (expand_partial_symbol_names): Update to use
14967 expand_symtabs_symbol_matcher_ftype.
14968 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14969 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14970 Arg name_matcher renamed to symbol_matcher.
14971 * psymtab.c (recursively_search_psymtabs): Update to use
14972 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14973 sym_matcher.
14974 (expand_symtabs_matching_via_partial): Update to use
14975 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14976 Arg name_matcher renamed to symbol_matcher.
14977
540c2971
DE
149782014-01-14 Doug Evans <dje@google.com>
14979
14980 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14981 (map_partial_symbol_filenames): Ditto.
14982 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14983 (map_partial_symbol_filenames): Ditto.
14984 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14985 (map_partial_symbol_filenames): Ditto.
14986 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14987 (map_partial_symbol_filenames): Ditto.
14988 * symtab.c: Delete #include "psymtab.h".
14989
8213266a
PA
149902014-01-14 Pedro Alves <palves@redhat.com>
14991 Tom Tromey <tromey@redhat.com>
14992
14993 * infrun.c (use_displaced_stepping): Use find_record_target
14994 instead of RECORD_IS_USED.
14995 (adjust_pc_after_break): Use record_full_is_used instead of
14996 RECORD_IS_USED.
14997 * record-btrace.c (record_btrace_open): Call record_preopen
14998 instead of checking RECORD_IS_USED.
14999 * record-full.c (record_full_shortname)
15000 (record_full_core_shortname): New globals.
15001 (record_full_is_used): New function.
15002 (find_full_open): Call record_preopen instead of checking
15003 RECORD_IS_USED.
15004 (init_record_full_ops): Set the target's shortname to
15005 record_full_shortname.
15006 (init_record_full_core_ops): Set the target's shortname to
15007 record_full_core_shortname.
15008 * record-full.h (record_full_is_used): Declare.
15009 * record.c (find_record_target): Make extern.
15010 (record_preopen): New function.
15011 * record.h (RECORD_IS_USED): Delete macro.
15012 (find_record_target, record_preopen): Declare functions.
15013
7ec1862d
YQ
150142014-01-14 Yao Qi <yao@codesourcery.com>
15015
15016 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15017 'len''s type to ULONGEST.
15018 (core_xfer_shared_libraries_aix): Likewise.
15019 * gdbarch.c, gdbarch.h: Regenerated.
15020 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15021 Change type of 'len' to ULONGEST.
15022 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15023 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15024
dea80a27
YQ
150252014-01-14 Yao Qi <yao@codesourcery.com>
15026
15027 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15028 type of 'len' to ULONGEST.
15029 (linux_xfer_osdata_processgroups): Likewise.
15030 (linux_xfer_osdata_threads): Likewise.
15031 (linux_xfer_osdata_fds): Likewise.
15032 (linux_xfer_osdata_isockets): Likewise.
15033 (linux_xfer_osdata_shm): Likewise.
15034 (linux_xfer_osdata_sem): Likewise.
15035 (linux_xfer_osdata_msg): Likewise.
15036 (linux_common_xfer_osdata): Likewise.
15037 (struct osdata_type) <getter>: Likewise.
15038 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15039 the declaration.
15040
b55e14c7
YQ
150412014-01-14 Yao Qi <yao@codesourcery.com>
15042
15043 * target.h (target_xfer_partial_ftype): Update.
15044 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15045 ULONGEST.
15046 * aix-thread.c (aix_thread_xfer_partial): Change type of
15047 argument 'len' to ULONGEST.
15048 * auxv.c (procfs_xfer_auxv): Likewise.
15049 (ld_so_xfer_auxv): Likewise.
15050 (memory_xfer_auxv): Likewise.
15051 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15052 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15053 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15054 * corelow.c (core_xfer_partial): Likewise.
15055 * ctf.c (ctf_xfer_partial): Likewise.
15056 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15057 '%u'.
15058 (darwin_read_dyld_info): Likewise.
15059 (darwin_xfer_partial): Likewise.
15060 * exec.c (section_table_xfer_memory_partial): Likewise.
15061 (exec_xfer_partial): Likewise.
15062 * exec.h (section_table_xfer_memory_partial): Update
15063 declaration.
15064 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15065 instead of plongest.
15066 (gnu_xfer_partial): Likewise.
15067 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15068 (ia64_hpux_xfer_solib_got): Likewise.
15069 (ia64_hpux_xfer_partial): Likewise.
15070 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15071 * inf-ptrace.c (inf_ptrace_xfer_partial):
15072 * inf-ttrace.c (inf_ttrace_xfer_partial):
15073 * linux-nat.c (linux_xfer_siginfo): Likewise.
15074 (linux_nat_xfer_partial): Likewise.
15075 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15076 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15077 * monitor.c (monitor_xfer_memory): Likewise.
15078 (monitor_xfer_partial): Likewise.
15079 * procfs.c (procfs_xfer_partial): Likewise.
15080 * record-full.c (record_full_xfer_partial): Likewise.
15081 (record_full_core_xfer_partial): Likewise.
15082 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15083 instead of plongest.
15084 (gdbsim_xfer_partial): Likewise.
15085 * remote.c (remote_xfer_partial): Likewise.
15086 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15087 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15088 declaration.
15089 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15090 (rs6000_xfer_shared_libraries): Likewise.
15091 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15092 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15093 (sparc_xfer_partial): Likewise.
15094 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15095 (spu_xfer_partial): Likewise.
15096 * spu-multiarch.c (spu_xfer_partial): Likewise.
15097 * target.c (target_read_live_memory): Likewise.
15098 (memory_xfer_live_readonly_partial): Likewise.
15099 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15100 (target_xfer_partial, default_xfer_partial): Likewise.
15101 (current_xfer_partial): Likewise.
15102 * tracepoint.c (tfile_xfer_partial): Likewise.
15103 * windows-nat.c (windows_xfer_memory): Likewise. Call
15104 pulongest instead of plongest.
15105 (windows_xfer_partial): Likewise.
15106 (windows_xfer_shared_libraries): Likewise.
15107
05804640
YQ
151082014-01-14 Yao Qi <yao@codesourcery.com>
15109
15110 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15111 target_xfer_partial_ftype.
15112
b5b08fb4
SC
151132014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15114
15115 PR python/15464
15116 PR python/16113
15117 * valops.c (value_struct_elt_bitpos): New function
15118 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15119 object to 'None' if the field name is an empty string ("").
15120 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15121 attribute to look for a field when 'name' is 'None'.
15122 (get_field_type): New function
15123
13aaf454
DE
151242014-01-13 Doug Evans <dje@google.com>
15125
15126 PR symtab/16426
15127 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15128 (try_open_dwop_file): Ditto.
15129 * gdb_bfd.c: #include "vec.h".
15130 (bfdp): New typedef.
15131 (struct gdb_bfd_data): New member included_bfds.
15132 (gdb_bfd_unref): Unref all included bfds.
15133 (gdb_bfd_record_inclusion): New function.
15134 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15135
c2cec97c
TT
151362014-01-13 Tom Tromey <tromey@redhat.com>
15137
15138 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15139
78e5999d
TT
151402014-01-13 Tom Tromey <tromey@redhat.com>
15141
15142 * defs.h (use_windows): Remove.
15143 * gdb.c (main): Update.
15144 * main.c (captured_main, gdb_main): Update.
15145 * main.h (struct captured_main_args) <use_windows>: Remove.
15146 * top.c (use_windows): Remove.
15147
f2052bbe
TT
151482014-01-13 Tom Tromey <tromey@redhat.com>
15149
15150 * defs.h (deprecated_flush_hook): Remove.
15151
fde4f8ed
JK
151522014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15153
15154 PR threads/16216
15155 * linux-thread-db.c (try_thread_db_load): Add parameter
15156 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15157 (try_thread_db_load_from_pdir_1): Move it there from here.
15158 (try_thread_db_load_from_sdir): Update caller.
15159 (try_thread_db_load_from_dir): Move it there from here.
15160
bdf61915
PP
151612014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15162
15163 * regformats/regdat.sh: Always rewrite the register file.
15164
f71e1a8d
PA
151652014-01-13 Pedro Alves <palves@redhat.com>
15166
15167 * Makefile.in (CHECK_HEADERS): New variable.
15168 (check-headers:): New rule.
15169
42c85435
TT
151702014-01-13 Tom Tromey <tromey@redhat.com>
15171
15172 * cli/cli-setshow.c (do_set_command): Update.
15173 * defs.h (deprecated_set_hook): Remove.
15174 * top.c (deprecated_set_hook): Remove.
15175
f8de5129
PA
151762014-01-13 Pedro Alves <palves@redhat.com>
15177
15178 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15179 the tracepoint if the PC is a pseudo-register.
15180
fc270c35
TT
151812014-01-13 Tom Tromey <tromey@redhat.com>
15182
15183 * defs.h (XCALLOC): Remove.
15184 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15185 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15186 * dwarf2loc.c (allocate_piece_closure): Likewise.
15187 * elfread.c (elf_symfile_segments): Likewise.
15188 (elf_symfile_segments): Likewise.
15189 * gdbtypes.c (copy_type_recursive): Likewise.
15190 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15191 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15192 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15193 XCALLOC.
15194 * mt-tdep.c (mt_gdbarch_init): Likewise.
15195 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15196 XCALLOC.
15197 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15198 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15199 * registry.c (registry_alloc_data): Likewise.
15200 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15201 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15202 * serial.c (serial_fdopen_ops): Likewise.
15203 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15204 XCALLOC.
15205 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15206 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15207 not XCALLOC.
15208
70ba0933
TT
152092014-01-13 Tom Tromey <tromey@redhat.com>
15210
15211 * defs.h (XMALLOC): Remove.
15212 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15213 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15214 * cli-out.c (struct ui_out *): Likewise.
15215 * cli/cli-dump.c (add_dump_command): Likewise.
15216 (add_dump_command): Likewise.
15217 * complaints.c (get_complaints): Likewise.
15218 (find_complaint): Likewise.
15219 * dwarf2-frame.c (execute_cfa_program): Likewise.
15220 * dwarf2read.c (abbrev_table_read_table): Likewise.
15221 * gdbarch.sh: Likewise.
15222 * gdbarch.c: Rebuild.
15223 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15224 * interps.c (interp_new): Likewise.
15225 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15226 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15227 * mi/mi-console.c (mi_console_file_new): Likewise.
15228 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15229 * mi/mi-out.c (mi_out_new): Likewise.
15230 * mi/mi-parse.c (mi_parse): Likewise.
15231 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15232 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15233 * observer.c (xalloc_observer_list_node): Likewise.
15234 * regcache.c (regcache_xmalloc_1): Likewise.
15235 * reggroups.c (reggroup_new): Likewise.
15236 (_initialize_reggroup): Likewise.
15237 * registry.c (register_data_with_cleanup): Likewise.
15238 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15239 * ser-base.c (serial_ttystate): Likewise.
15240 * ser-mingw.c (make_pipe_state): Likewise.
15241 * ser-pipe.c (pipe_open): Likewise.
15242 * serial.c (serial_open): Likewise.
15243 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15244 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15245 (tui_alloc_win_info): Likewise.
15246 (tui_add_content_elements): Likewise.
15247 * tui/tui-file.c (tui_file_new): Likewise.
15248 * tui/tui-out.c (tui_out_new): Likewise.
15249 * ui-file.c (mem_file_new): Likewise.
15250 * ui-out.c (push_level): Likewise.
15251 (make_cleanup_ui_out_end): Likewise.
15252 (append_header_to_list): Likewise.
15253 (ui_out_new): Likewise.
15254 * user-regs.c (user_reg_add_builtin): Likewise.
15255
41bf6aca
TT
152562014-01-13 Tom Tromey <tromey@redhat.com>
15257
15258 * defs.h (XZALLOC): Remove.
15259 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15260 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15261 (get_ada_tasks_inferior_data): Likewise.
15262 * auto-load.c (get_auto_load_pspace_data): Likewise.
15263 * auxv.c (get_auxv_inferior_data): Likewise.
15264 * bfd-target.c (target_bfd_reopen): Likewise.
15265 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15266 (deprecated_insert_raw_breakpoint): Likewise.
15267 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15268 * corelow.c (core_open): Likewise.
15269 * darwin-nat.c (darwin_check_new_threads): Likewise.
15270 (darwin_attach_pid): Likewise.
15271 * dummy-frame.c (dummy_frame_push): Likewise.
15272 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15273 * dwarf2loc.c (allocate_piece_closure): Likewise.
15274 * elfread.c (elf_symfile_segments): Likewise.
15275 * eval.c (ptrmath_type_p): Likewise.
15276 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15277 * gdbtypes.c (alloc_type_arch): Likewise.
15278 (alloc_type_instance): Likewise.
15279 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15280 * inf-child.c (inf_child_can_use_agent): Likewise.
15281 * inflow.c (get_inflow_inferior_data): Likewise.
15282 * infrun.c (save_infcall_suspend_state): Likewise.
15283 * jit.c (jit_reader_load): Likewise.
15284 (get_jit_objfile_data): Likewise.
15285 (get_jit_program_space_data): Likewise.
15286 (jit_object_open_impl): Likewise.
15287 (jit_symtab_open_impl): Likewise.
15288 (jit_block_open_impl): Likewise.
15289 (jit_frame_sniffer): Likewise.
15290 * linux-fork.c (add_fork): Likewise.
15291 * maint.c (make_command_stats_cleanup): Likewise.
15292 * objfiles.c (get_objfile_pspace_data): Likewise.
15293 * opencl-lang.c (struct lval_closure): Likewise.
15294 * osdata.c (osdata_start_osdata): Likewise.
15295 * progspace.c (new_address_space): Likewise.
15296 (add_program_space): Likewise.
15297 * remote-sim.c (get_sim_inferior_data): Likewise.
15298 * sh-tdep.c (sh_gdbarch_init): Likewise.
15299 * skip.c (Ignore): Likewise.
15300 (skip_delete_command): Likewise.
15301 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15302 (library_list_start_library): Likewise.
15303 (solib_aix_current_sos): Likewise.
15304 * solib-darwin.c (get_darwin_info): Likewise.
15305 (darwin_current_sos): Likewise.
15306 * solib-dsbt.c (get_dsbt_info): Likewise.
15307 * solib-ia64-hpux.c (new_so_list): Likewise.
15308 (ia64_hpux_get_solib_linkage_addr): Likewise.
15309 * solib-spu.c (append_ocl_sos): Likewise.
15310 (spu_current_sos): Likewise.
15311 * solib-svr4.c (get_svr4_info): Likewise.
15312 (svr4_keep_data_in_core): Likewise.
15313 (library_list_start_library): Likewise.
15314 (svr4_default_sos): Likewise.
15315 (svr4_read_so_list): Likewise.
15316 * solib-target.c (library_list_start_library): Likewise.
15317 (solib_target_current_sos): Likewise.
15318 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15319 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15320 * symfile.c (default_symfile_segments): Likewise.
15321 * target-descriptions.c (tdesc_data_init): Likewise.
15322 (tdesc_create_reg): Likewise.
15323 (struct tdesc_type *): Likewise.
15324 (tdesc_create_vector): Likewise.
15325 (tdesc_set_struct_size): Likewise.
15326 (struct tdesc_type *): Likewise.
15327 (tdesc_free_feature): Likewise.
15328 (tdesc_create_feature): Likewise.
15329 * windows-nat.c (windows_add_thread): Likewise.
15330 (windows_make_so): Likewise.
15331 * xml-support.c (gdb_xml_body_text): Likewise.
15332 (gdb_xml_create_parser_and_cleanup): Likewise.
15333 (xml_process_xincludes): Likewise.
15334 * xml-syscall.c (allocate_syscalls_info): Likewise.
15335 (syscall_create_syscall_desc): Likewise.
15336
5acfdbae
SDJ
153372014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15338
15339 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15340 function, with code from i386_stap_parse_special_token.
15341 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15342 (i386_stap_parse_special_token): Move code to the two functions
15343 above; simplify it.
15344
0000e5cc
PA
153452014-01-09 Pedro Alves <palves@redhat.com>
15346 Hui Zhu <hui@codesourcery.com>
15347
15348 PR gdb/16101
15349 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15350 bp_err_string. Don't mark the location shlib_disabled if the
15351 error thrown wasn't a generic or memory error. Catch errors
15352 thrown while inserting breakpoints in overlayed code. Output
15353 error message of software breakpoints.
15354 * remote.c (remote_insert_breakpoint): If this breakpoint has
15355 target-side commands but this stub doesn't support Z0 packets,
15356 throw NOT_SUPPORTED_ERROR error.
15357 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15358 * target.h (target_insert_breakpoint): Extend comment.
15359 (target_insert_hw_breakpoint): Add comment.
15360
b7ea362b
PA
153612014-01-08 Pedro Alves <palves@redhat.com>
15362
15363 * remote.c (remote_add_thread): Add threads silently if starting
15364 up.
15365 (remote_notice_new_inferior): If in all-stop, and starting up,
15366 don't call notice_new_inferior.
15367 (get_current_thread): New function, factored out from ...
15368 (add_current_inferior_and_thread): ... this. Adjust.
15369 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15370 found any thread, then select the remote's current thread as GDB's
15371 current thread too.
15372
b7bba001
JB
153732014-01-08 Joel Brobecker <brobecker@adacore.com>
15374
15375 * NEWS: Create a new section for the next release branch.
15376 Rename the section of the current branch, now that it has
15377 been cut.
15378
16dfbded
JB
153792014-01-08 Joel Brobecker <brobecker@adacore.com>
15380
15381 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15382 * version.in: Bump version to 7.7.50.DATE-cvs.
15383
22c90ac1
YQ
153842014-01-08 Yao Qi <yao@codesourcery.com>
15385
15386 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15387 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15388 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15389
d64ad97c
YQ
153902014-01-08 Yao Qi <yao@codesourcery.com>
15391
15392 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15393 return value of bfd_get_filename to symbol_file_add_from_bfd.
15394
f93ba80c
PM
153952014-01-08 Pierre Muller <muller@sourceware.org>
15396
15397 Fix PR16201.
15398 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15399 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15400 to prim_record_mininal_symbol_and_info.
15401 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15402 in call to prim_record_minimal_symbol_and_info.
15403 (read_pe_exported_syms): Set index field of section_data.
15404
a4d9ba85
AP
154052014-01-07 Andrew Pinski <apinski@cavium.com>
15406
15407 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15408 * features/aarch64.c: Regenerate.
15409
1b67eb02
AS
154102014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15411
15412 * target.c (return_null): Define.
15413 (update_current_target): Use it instead of return_zero for
15414 functions that return a pointer.
15415
5e3f4fab
EBM
154162014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15417
15418 * source.c (add_path): Fix check for duplicated paths in the previously
15419 included paths.
15420
e2616788
HK
154212014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15422
15423 * ada-lang.c: Remove duplicated include statements.
15424 * alphabsd-nat.c: Ditto.
15425 * amd64-darwin-tdep.c: Ditto.
15426 * amd64fbsd-nat.c: Ditto.
15427 * auto-load.c: Ditto.
15428 * ax-gdb.c: Ditto.
15429 * breakpoint.c: Ditto.
15430 * dbxread.c: Ditto.
15431 * fork-child.c: Ditto.
15432 * gdb_usleep.c: Ditto.
15433 * i386-darwin-tdep.c: Ditto.
15434 * i386fbsd-nat.c: Ditto.
15435 * infcmd.c: Ditto.
15436 * inferior.c: Ditto.
15437 * jv-lang.c: Ditto.
15438 * linux-nat.c: Ditto.
15439 * linux-tdep.c: Ditto.
15440 * m68kbsd-nat.c: Ditto.
15441 * m68klinux-nat.c: Ditto.
15442 * microblaze-tdep.c: Ditto.
15443 * mips-linux-tdep.c: Ditto.
15444 * mn10300-tdep.c: Ditto.
15445 * nto-tdep.c: Ditto.
15446 * opencl-lang.c: Ditto.
15447 * osdata.c: Ditto.
15448 * printcmd.c: Ditto.
15449 * regcache.c: Ditto.
15450 * remote-m32r-sdi.c: Ditto.
15451 * remote.c: Ditto.
15452 * symfile.c: Ditto.
15453 * symtab.c: Ditto.
15454 * tilegx-linux-nat.c: Ditto.
15455 * tilegx-tdep.c: Ditto.
15456 * tracepoint.c: Ditto.
15457 * valops.c: Ditto.
15458 * vaxbsd-nat.c: Ditto.
15459 * windows-nat.c: Ditto.
15460 * xtensa-tdep.c: Ditto.
15461
bd1f7788
YQ
154622014-01-07 Yao Qi <yao@codesourcery.com>
15463
15464 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15465
79301218
JB
154662014-01-07 Yao Qi <yao@codesourcery.com>
15467 Joel Brobecker <brobecker@adacore.com>
15468
15469 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15470 (pdc_write_regs): Likewise.
15471 (fetch_regs_kernel_thread): Likewise.
15472 (store_regs_kernel_thread): Likewise.
15473
154742014-01-07 Joel Brobecker <brobecker@adacore.com>
15475
15476 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15477 tagged type objects to their actual type.
15478
8e355c5d
JB
154792014-01-07 Joel Brobecker <brobecker@adacore.com>
15480
15481 * ada-valprint.c (print_field_values): Add "language" parameter.
15482 Update calls to print_field_values and print_variant_part.
15483 Pass new parameter "language" in call to val_print instead
15484 of "current_language". Replace call to ada_val_print by call
15485 to val_print.
15486 (print_variant_part): Add "language" parameter.
15487 (ada_val_print_struct_union): Update call to print_field_values.
15488
4fbf5aa5
JB
154892014-01-07 Joel Brobecker <brobecker@adacore.com>
15490
15491 * ada-valprint.c (ui_memcpy): Delete.
15492 (ada_print_floating): Update documentation. Add empty line
15493 between between function documentation and implementation.
15494 Delete variable "buffer". Use ui_file_xstrdup in place of
15495 ui_file_put. Minor adjustments following this change.
15496
71855601
JB
154972014-01-07 Joel Brobecker <brobecker@adacore.com>
15498
15499 * ada-valprint.c (ada_val_print_string): New function,
15500 extracted from ada_val_print_array.
15501 (ada_val_print_array): Replace extracted code by call
15502 to ada_val_print_string followed by a return. Move
15503 "else" branch to the function's top block.
15504
4eb27a30
JB
155052014-01-07 Joel Brobecker <brobecker@adacore.com>
15506
15507 * ada-valprint.c (ada_val_print_array): Move implementation
15508 down. Rename parameter "offset" and "val" into "offset_aligned"
15509 and "original_value" respectively. Add parameter "offset".
15510
34b27950
JB
155112014-01-07 Joel Brobecker <brobecker@adacore.com>
15512
15513 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15514 re-organizing the code. Change the "???" message printed
15515 when target type is a TYPE_CODE_UNDEF into
15516 "<ref to undefined type>".
15517
079e4591
JB
155182014-01-07 Joel Brobecker <brobecker@adacore.com>
15519
15520 * ada-valprint.c (print_record): Delete, implementation inlined...
15521 (ada_val_print_struct_union): ... here. Remove call to
15522 ada_check_typedef in inlined implementation.
15523
8004dfd1
JB
155242014-01-07 Joel Brobecker <brobecker@adacore.com>
15525
15526 * ada-valprint.c (ada_val_print_gnat_array): New function,
15527 extracted from ada_val_print_1;
15528 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15529 (ada_val_print_flt, ada_val_print_struct_union)
15530 (ada_val_print_ref): Likewise.
15531 (ada_val_print_1): Delete variables i and elttype.
15532 Replace extracted-out code by call to corresponding
15533 new functions.
15534
760a2db0
JB
155352014-01-07 Joel Brobecker <brobecker@adacore.com>
15536
15537 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15538
3a92c861
JB
155392014-01-07 Joel Brobecker <brobecker@adacore.com>
15540
15541 * ada-valprint.c (ada_val_print_1): Replace calls to
15542 ada_val_print_1 by calls to val_print.
15543
cd1630f9
JB
155442014-01-07 Joel Brobecker <brobecker@adacore.com>
15545
15546 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15547 Update calls to self accordingly. Replace calls to c_val_print
15548 by calls to val_print.
15549
bdf779a0
JB
155502014-01-07 Joel Brobecker <brobecker@adacore.com>
15551
15552 * ada-valprint.c (print_record): Delete declaration.
15553 (adjust_type_signedness, ada_val_print_1): Likewise.
15554 (ada_val_print): Move function implementation down.
15555 (print_variant_part, print_field_values, print_record):
15556 Move function implementation up.
15557
c0d48811
JB
155582014-01-07 Joel Brobecker <brobecker@adacore.com>
15559
15560 * python/py-type.c (typy_get_name): New function.
15561 (type_object_getset): Add entry for attribute "name".
15562 * NEWS: Add entry mentioning this new attribute.
15563
c26e9cbb
YQ
155642014-01-07 Yao Qi <yao@codesourcery.com>
15565
15566 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15567 statement.
15568
0cc6f43d
YQ
155692014-01-07 Yao Qi <yao@codesourcery.com>
15570
15571 * gnu-nat.c (info_port_rights): Add qualifier const to
15572 argument args.
15573
eec03155
YQ
155742014-01-07 Yao Qi <yao@codesourcery.com>
15575
15576 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15577
f04a82ef
YQ
155782014-01-07 Yao Qi <yao@codesourcery.com>
15579
15580 * gnu-nat.c (make_inf) Update declaration.
15581 (make_inf): Make it static.
15582 (inf_set_traced): Likewise.
15583 (inf_port_to_thread, inf_task_died_status): Likewise.
15584
d57dda0a
YQ
155852014-01-07 Yao Qi <yao@codesourcery.com>
15586
15587 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15588
3aa8c969
YQ
155892014-01-07 Yao Qi <yao@codesourcery.com>
15590
15591 * gnu-nat.c (_initialize_gnu_nat): Declare.
15592
94123b4f
YQ
155932014-01-07 Yao Qi <yao@codesourcery.com>
15594
15595 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15596 'enum bfd_endian'.
15597 (struct gdbarch_info) <byte_order>: Change type to
15598 'enum bfd_endian'.
15599 <byte_order_for_code>: Likewise.
15600 * gdbarch.c, gdbarch.h: Regenerated.
15601
dc81d70a
TT
156022014-01-06 Sasha Smundak <asmundak@google.com>
15603
15604 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15605
cc2f3c35
TT
156062014-01-06 Tom Tromey <tromey@redhat.com>
15607
15608 * doublest.c (convert_doublest_to_floatformat): Use const, not
15609 CONST.
15610 * somread.c (som_symtab_read): Likewise.
15611
adcf2eed
HZ
156122014-01-07 Hui Zhu <hui@codesourcery.com>
15613
15614 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15615 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15616 (gdb_bfd_fopen): Ditto.
15617 (gdb_bfd_openr): Ditto.
15618 (gdb_bfd_openw): Ditto.
15619 (gdb_bfd_openr_iovec): Ditto.
15620 (gdb_bfd_fdopenr): Ditto.
15621 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15622 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15623 with xstrdup.
15624 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15625 with xstrdup.
15626 * symfile-mem.c (symbol_file_add_from_memory): Removed
15627 gdb_bfd_stash_filename.
15628
50722198
DE
156292014-01-03 Doug Evans <dje@google.com>
15630
15631 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15632 output.
15633
2fa4b862
JB
156342014-01-01 Joel Brobecker <brobecker@adacore.com>
15635
15636 Update year range in copyright notice of all files.
15637
28498c42
JB
156382014-01-01 Joel Brobecker <brobecker@adacore.com>
15639
15640 * top.c (print_gdb_version): Set copyright year to 2014.
15641
7b6e1046
JB
156422014-01-01 Joel Brobecker <brobecker@adacore.com>
15643
15644 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15645
df96af55 15646For older changes see ChangeLog-2013.
c906108c
SS
15647\f
15648Local Variables:
15649mode: change-log
15650left-margin: 8
15651fill-column: 74
15652version-control: never
57da7796 15653coding: utf-8
c906108c 15654End:
This page took 2.375623 seconds and 4 git commands to generate.