Add tests for PR ld/16452 and PR ld/16457
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ac3d87c0
UW
12014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
2
3 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
4 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
5 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
6 (supply_gregset, supply_fpregset): Remove.
7 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
8 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
9 and sizeof_gregset.
10
f10c5b19
JK
112014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
12
13 Add add-auto-load-scripts-directory.
14 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
15 * auto-load.c (add_auto_load_dir): New function.
16 (_initialize_auto_load): Install it.
17
f0d4ba1f
MG
182014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
19
20 Pushed by Joel Brobecker <brobecker@adacore.com>.
21 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
22
18ac6ffc
SC
232014-11-29 Siva Chandra Reddy <sivachandra@google.com>
24
25 * eval.c (evaluate_subexp): Check that the thread stack temporaries
26 are not already enabled before enabling them.
27
4072f920
YQ
282014-11-29 Yao Qi <yao@codesourcery.com>
29
30 * arm-tdep.c (arm_analyze_prologue): Move local variables
31 'framereg' and 'framesize' to inner block. Move code to
32 inner block too.
33
6c659fc2
SC
342014-11-28 Siva Chandra Reddy <sivachandra@google.com>
35
36 * eval.c: Include gdbthread.h.
37 (evaluate_subexp): Enable thread stack temporaries before
38 evaluating a complete expression and clean them up after the
39 evaluation is complete.
40 * gdbthread.h: Include common/vec.h.
41 (value_ptr): New typedef.
42 (VEC (value_ptr)): New vector type.
43 (value_vec): New typedef.
44 (struct thread_info): Add new fields stack_temporaries_enabled
45 and stack_temporaries.
46 (enable_thread_stack_temporaries)
47 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
48 (get_last_thread_stack_temporary)
49 (value_in_thread_stack_temporaries): Declare.
50 * gdbtypes.c (class_or_union_p): New function.
51 * gdbtypes.h (class_or_union_p): Declare.
52 * infcall.c (call_function_by_hand): Store return values of class
53 type as temporaries on stack.
54 * thread.c (enable_thread_stack_temporaries): New function.
55 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
56 (get_last_thread_stack_temporary): Likewise.
57 (value_in_thread_stack_temporaries): Likewise.
58 * value.c (value_force_lval): New function.
59 * value.h (value_force_lval): Declare.
60
f7ca3fcf
PM
612014-11-28 Pierre Muller <muller@sourceware.org>
62
63 Pushed by Joel Brobecker <brobecker@adacore.com>.
64 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
65 registers.
66
b2859a9a
UW
672014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
68
69 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
70 * config/sparc/linux.mh (NATDEPFILES): Likewise.
71 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
72 * m68klinux-nat.c (fetch_core_registers): Remove.
73 (linux_elf_core_fns): Remove.
74 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
75
0fa9473f
JB
762014-11-28 Joel Brobecker <brobecker@adacore.com>
77
78 * utils.c (gdb_realpath): Rework comment about handling on
79 Windows.
80
6a29c58e
YQ
812014-11-28 Yao Qi <yao@codesourcery.com>
82
83 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
84 rename.
85 * gnulib/aclocal.m4: Re-generated.
86 * gnulib/config.in: Re-generated.
87 * gnulib/configure: Re-generated.
88 * gnulib/import/Makefile.am: Re-generated.
89 * gnulib/import/Makefile.in: Re-generated.
90 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
91 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
92 * import/basename-lgpl.c: New file.
93 * import/dirname-lgpl.c: New file.
94 * import/dirname.h: New file.
95 * import/m4/dirname.m4: New file.
96 * import/m4/malloc.m4: New file.
97 * import/m4/rename.m4: New file.
98 * import/m4/rmdir.m4: New file.
99 * import/m4/stdio_h.m4: New file.
100 * import/malloc.c: New file.
101 * import/rename.c: New file.
102 * import/rmdir.c: New file.
103 * import/same-inode.h: New file.
104 * import/stdio.c: New file.
105 * import/stdio.in.h: New file.
106 * import/stripslash.c: New file.
107
abbffc89
YQ
1082014-11-28 Yao Qi <yao@codesourcery.com>
109
110 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
111 and realpath.
112 * config.in: Re-generated.
113 * configure: Re-generated.
114 * utils.c (gdb_realpath): Remove code calling realpath,
115 canonicalize_file_name and pathconf.
116 [!_WIN32]: Call canonicalize_file_name.
117
98399780
YQ
1182014-11-28 Yao Qi <yao@codesourcery.com>
119
120 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
121 canonicalize-lgpl.
122 * aclocal.m4: Re-generated.
123 * config.in: Re-generated.
124 * configure: Re-generated.
125 * import/Makefile.am: Re-generated.
126 * import/Makefile.in: Re-generated.
127 * import/m4/gnulib-cache.m4: Re-generated.
128 * import/m4/gnulib-comp.m4: Re-generated.
129 * import/canonicalize-lgpl.c: New file.
130 * import/extra/snippet/_Noreturn.h: New file.
131 * import/m4/canonicalize.m4: New file.
132 * import/m4/double-slash-root.m4: New file.
133 * import/m4/eealloc.m4: New file.
134 * import/m4/malloca.m4: New file.
135 * import/m4/nocrash.m4: New file.
136 * import/m4/stdlib_h.m4: New file.
137 * import/malloca.c: New file.
138 * import/malloca.h: New file.
139 * import/malloca.valgrind: New file.
140
3332aaf2
YQ
1412014-11-28 Yao Qi <yao@codesourcery.com>
142
143 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
144 * config.in, configure: Regenerate.
145 * symfile.c (find_separate_debug_file_by_debuglink): Remove
146 code checking HAVE_LSTAT is defined.
147
f45c62c4
YQ
1482014-11-28 Yao Qi <yao@codesourcery.com>
149
150 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
151 lstat.
152 * gnulib/aclocal.m4: Re-generated.
153 * gnulib/config.in: Re-generated.
154 * gnulib/configure: Re-generated.
155 * gnulib/import/Makefile.am: Re-generated.
156 * gnulib/import/Makefile.in: Re-generated.
157 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
158 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
159 * gnulib/import/lstat.c: New file.
160 * gnulib/import/m4/lstat.m4: New file.
161
bdca27a2
YQ
1622014-11-28 Yao Qi <yao@codesourcery.com>
163
164 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
165 * config.in, configure: Re-generate.
166 * inf-child.c (inf_child_fileio_readlink): Don't check
167 HAVE_READLINK is defined.
168
2196f55f
YQ
1692014-11-28 Yao Qi <yao@codesourcery.com>
170
171 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
172 * gnulib/aclocal.m4: Re-generated.
173 * gnulib/config.in: Likewise.
174 * gnulib/configure: Likewise.
175 * gnulib/import/Makefile.am: Likewise.
176 * gnulib/import/Makefile.in: Likewise.
177 * gnulib/import/m4/gnulib-cache.m4: Likewise.
178 * gnulib/import/m4/gnulib-comp.m4: Likewise.
179 * gnulib/import/dosname.h: New file
180 * gnulib/import/m4/largefile.m4: New file.
181 * gnulib/import/m4/readlink.m4: New file.
182 * gnulib/import/m4/stat.m4: New file.
183 * gnulib/import/readlink.c: New file.
184 * gnulib/import/stat.c: New file.
185
7014e923 1862014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
187
188 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
189 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
190
aa489395
SL
1912014-11-25 Sandra Loosemore <sandra@codesourcery.com>
192
193 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
194 that there can be only one stack adjustment in the prologue
195 with tests to detect specific disallowed stack adjustments.
196
7f1659b5
SL
1972014-11-25 Sandra Loosemore <sandra@codesourcery.com>
198
199 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
200 adjustments.
201
d53c26c7
SL
2022014-11-25 Sandra Loosemore <sandra@codesourcery.com>
203
204 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
205 the instruction as well as reading it from memory.
206 (nios2_match_add): New.
207 (nios2_match_sub): New.
208 (nios2_match_addi): New.
209 (nios2_match_orhi): New.
210 (nios2_match_stw): New.
211 (nios2_match_ldw): New.
212 (nios2_match_rdctl): New.
213 (enum branch_condition): New.
214 (nios2_match_branch): New.
215 (nios2_match_jmpi): New.
216 (nios2_match_calli): New.
217 (nios2_match_jmpr): New.
218 (nios2_match_callr): New.
219 (nios2_match_break): New.
220 (nios2_match_trap): New.
221 (nios2_in_epilogue_p): Rewrite to use new functions.
222 (nios2_analyze_prologue): Likewise.
223 (nios2_skip_prologue): Delete unused local limit_pc.
224 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
225 (nios2_get_next_pc): Rewrite to use new functions.
226
cac9b138
JK
2272014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
228
229 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
230
a441dfbc
ST
2312014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
232
233 Pushed by Joel Brobecker <brobecker@adacore.com>
234 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
235 elements pi_len by the size of the elements before calling
236 vm_deallocate.
237 (inf_validate_task_sc): Likewise, and properly deallocate the
238 noise array.
239
4c9e8482
DE
2402014-11-23 Doug Evans <xdje42@gmail.com>
241
242 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
243 number and name if present. All callers updated.
244 (dump_fn_fieldlists): Fix indentation of args.
245
15ee0bbd
PP
2462014-11-23 Patrick Palka <patrick@parcs.ath.cx>
247
248 * MAINTAINERS (Write After Approval): Add myself.
249
e8af5d7a
JB
2502014-11-23 Joel Brobecker <brobecker@adacore.com>
251
252 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
253 to a bp_call_dummy breakpoint type.
254
a344fc09
PP
2552014-11-23 Patrick Palka <patrick@parcs.ath.cx>
256
257 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
258 registering the signal handler.
259
d64e57fa
PP
2602014-11-23 Patrick Palka <patrick@parcs.ath.cx>
261
262 * event-top.h (call_stdin_event_handler_again_p): Declare.
263 * event-top.c (call_stdin_event_handler_again_p): Define.
264 (stdin_event_handler): Use it.
265 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
266 handler again if there is pending input following a
267 start sequence.
268
6f9d33d8
PP
2692014-11-23 Patrick Palka <patrick@parcs.ath.cx>
270
271 Pushed by Joel Brobecker <brobecker@adacore.com>
272 * linux-fork.c (checkpoint_command): Print index of new
273 checkpoint in response message.
274
88db67ef
YQ
2752014-11-23 Yao Qi <yao@codesourcery.com>
276
277 * valprint.c (read_string): Move local variables 'found_nul',
278 'chunksize' and 'limit' to inner scope. Update comments.
279
01465b56
DE
2802014-11-22 Doug Evans <xdje42@gmail.com>
281
282 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
283 function comment.
284 (search_symbols): Fix comments and whitespace.
285
07a1c2c3
DE
2862014-11-22 Doug Evans <xdje42@gmail.com>
287
288 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
289
b2a919a8
DE
2902014-11-21 Doug Evans <dje@google.com>
291
292 * psymtab.c (psymtab_search_name): Fix whitespace.
293
278289d5
YQ
2942014-11-21 Yao Qi <yao@codesourcery.com>
295
296 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
297 errno.
298 * gnulib/import/Makefile.am: Re-generated.
299 * gnulib/import/Makefile.in: Likewise.
300 * gnulib/import/m4/gnulib-cache.m4: Likewise.
301
e01e2baa
YQ
3022014-11-21 Yao Qi <yao@codesourcery.com>
303
304 * gdb_wchar.h: Include wchar.h and wctype.h.
305 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
306 include wchar.h and wctype.h.
307 Don't check HAVE_WCHAR_H.
308
f0c00af8
YQ
3092014-11-21 Yao Qi <yao@codesourcery.com>
310
311 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
312 and wctype-h.
313 * gnulib/import/Makefile.am: Re-generated.
314 * gnulib/import/Makefile.in: Likewise.
315 * gnulib/import/m4/gnulib-cache.m4: Likewise.
316
0cae13bb
YQ
3172014-11-21 Yao Qi <yao@codesourcery.com>
318
319 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
320 memchr.
321 * gnulib/import/Makefile.am: Re-generated.
322 * gnulib/import/Makefile.in: Likewise.
323 * gnulib/import/m4/gnulib-cache.m4: Likewise.
324
9c232dda
YQ
3252014-11-21 Yao Qi <yao@codesourcery.com>
326
327 * common/common-defs.h: Include alloca.h
328 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
329 * configure: Re-generated.
330 * defs.h: Remove code handling alloca.
331 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
332 or not.
333
00d7f58f
YQ
3342014-11-21 Yao Qi <yao@codesourcery.com>
335
336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
337 alloca.
338 * gnulib/import/Makefile.am: Re-generated.
339 * gnulib/import/Makefile.in: Likewise..
340 * gnulib/import/m4/gnulib-cache.m4: Likewise.
341
6068ad5d
YQ
3422014-11-21 Yao Qi <yao@codesourcery.com>
343
344 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
345 alphabetical order.
346
45e44d27
JB
3472014-11-21 Joel Brobecker <brobecker@adacore.com>
348
349 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
350 flag_unsigned if HIGH_BOUND is constant and negative.
351
7e7cbeb3
SDJ
3522014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
353
354 PR breakpoints/10737
355 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
356 modifier from "struct gdbarch" when compiling without Expat (XML)
357 support.
358 (get_syscall_by_number): Likewise.
359 (get_syscall_by_name): Likewise.
360 (get_syscall_names): Likewise.
361
458c8db8
SDJ
3622014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
363
364 PR breakpoints/10737
365 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
366 set_xml_syscall_file_name to provide gdbarch.
367 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
368 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
369 * breakpoint.c (print_it_catch_syscall): Adjust call to
370 get_syscall_by_number to provide gdbarch.
371 (print_one_catch_syscall): Likewise.
372 (print_mention_catch_syscall): Likewise.
373 (print_recreate_catch_syscall): Likewise.
374 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
375 and get_syscall_by_name to provide gdbarch.
376 (catch_syscall_completer): Adjust call to get_syscall_names to
377 provide gdbarch.
378 * gdbarch.c: Regenerate.
379 * gdbarch.h: Likewise.
380 * gdbarch.sh: Forward declare "struct syscalls_info".
381 (xml_syscall_file): New variable.
382 (syscalls_info): Likewise.
383 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
384 set_xml_syscall_file_name to provide gdbarch.
385 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
386 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
387 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
388 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
389 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
390 * xml-syscall.c: Include gdbarch.h.
391 (set_xml_syscall_file_name): Accept gdbarch parameter.
392 (get_syscall_by_number): Likewise.
393 (get_syscall_by_name): Likewise.
394 (get_syscall_names): Likewise.
395 (my_gdb_datadir): Delete global variable.
396 (struct syscalls_info) <my_gdb_datadir>: New variable.
397 (struct syscalls_info) <sysinfo>: Rename variable to
398 "syscalls_info".
399 (sysinfo): Delete global variable.
400 (have_initialized_sysinfo): Likewise.
401 (xml_syscall_file): Likewise.
402 (sysinfo_free_syscalls_desc): Rename to...
403 (syscalls_info_free_syscalls_desc): ... this.
404 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
405 code to the new layout of "struct syscalls_info".
406 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
407 "syscalls_info".
408 (syscall_create_syscall_desc): Likewise.
409 (syscall_start_syscall): Likewise.
410 (syscall_parse_xml): Likewise.
411 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
412 (init_sysinfo): Rename to...
413 (init_syscalls_info): ...this. Add gdbarch as a parameter.
414 Adjust function to deal with gdbarch.
415 (xml_get_syscall_number): Delete parameter sysinfo. Accept
416 gdbarch as a parameter. Adjust code.
417 (xml_get_syscall_name): Likewise.
418 (xml_list_of_syscalls): Likewise.
419 (set_xml_syscall_file_name): Accept gdbarch as parameter.
420 (get_syscall_by_number): Likewise.
421 (get_syscall_by_name): Likewise.
422 (get_syscall_names): Likewise.
423 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
424 (get_syscall_by_number): Likewise.
425 (get_syscall_by_name): Likewise.
426 (get_syscall_names): Likewise.
427
43f3e411
DE
4282014-11-20 Doug Evans <xdje42@gmail.com>
429
430 Split struct symtab into two: struct symtab and compunit_symtab.
431 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
432 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
433 to "struct compunit_symtab *". All callers updated.
434 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
435 "struct symtab *" argument to "struct compunit_symtab *".
436 All callers updated.
437 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
438 result to "struct compunit_symtab *". All callers updated.
439 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
440 Change result to "struct compunit_symtab *". All callers updated.
441 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
442 hange type to "struct compunit_symtab *". All uses updated.
443 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
444 Change type to "struct compunit_symtab *". All uses updated.
445 * buildsym.c (struct buildsym_compunit): New struct.
446 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
447 (buildsym_compunit): New static global.
448 (finish_block_internal): Update to fetch objfile from
449 buildsym_compunit.
450 (make_blockvector): Delete objfile argument.
451 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
452 debugformat, producer.
453 (start_buildsym_compunit): New function.
454 (free_buildsym_compunit): Renamed from free_subfiles_list.
455 All callers updated.
456 (patch_subfile_names): Rewrite to use buildsym_compunit.
457 (get_compunit_symtab): New function.
458 (get_macro_table): Delete argument comp_dir. All callers updated.
459 (start_symtab): Change result to "struct compunit_symtab *".
460 All callers updated. Create the subfile of the main source file.
461 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
462 (reset_symtab_globals): Update.
463 (end_symtab_get_static_block): Update to use buildsym_compunit.
464 (end_symtab_without_blockvector): Rewrite.
465 (end_symtab_with_blockvector): Change result to
466 "struct compunit_symtab *". All callers updated.
467 Update to use buildsym_compunit. Don't set symtab->dirname,
468 instead set it in the compunit.
469 Explicitly make sure main symtab is first in its list.
470 Set debugformat, producer, blockvector, block_line_section, and
471 macrotable in the compunit.
472 (end_symtab_from_static_block): Change result to
473 "struct compunit_symtab *". All callers updated.
474 (end_symtab, end_expandable_symtab): Ditto.
475 (set_missing_symtab): Change symtab argument to
476 "struct compunit_symtab *". All callers updated.
477 (augment_type_symtab): Ditto.
478 (record_debugformat): Update to use buildsym_compunit.
479 (record_producer): Update to use buildsym_compunit.
480 * buildsym.h (struct subfile) <dirname>: Delete.
481 <producer, debugformat>: Delete.
482 <buildsym_compunit>: New member.
483 (get_compunit_symtab): Declare.
484 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
485 from primary_symtab. Change type to "struct compunit_symtab *".
486 All uses updated.
487 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
488 All callers updated.
489 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
490 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
491 symtab. Change type to "struct compunit_symtab *". All uses updated.
492 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
493 All callers updated.
494 (dw2_find_last_source_symtab): Ditto.
495 (dw2_lookup_symbol): Ditto.
496 (recursively_find_pc_sect_compunit_symtab): Renamed from
497 recursively_find_pc_sect_symtab. Change result to
498 "struct compunit_symtab *". All callers updated.
499 (dw2_find_pc_sect_compunit_symtab): Renamed from
500 dw2_find_pc_sect_symtab. Change result to
501 "struct compunit_symtab *". All callers updated.
502 (get_compunit_symtab): Renamed from get_symtab. Change result to
503 "struct compunit_symtab *". All callers updated.
504 (recursively_compute_inclusions): Change type of immediate_parent
505 argument to "struct compunit_symtab *". All callers updated.
506 (compute_compunit_symtab_includes): Renamed from
507 compute_symtab_includes. All callers updated. Rewrite to compute
508 includes of compunit_symtabs and not symtabs.
509 (process_full_comp_unit): Update to work with struct compunit_symtab.
510 (process_full_type_unit): Ditto.
511 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
512 (dwarf_decode_lines): Remove special case handling of main subfile.
513 (macro_start_file): Delete argument comp_dir. All callers updated.
514 (dwarf_decode_macro_bytes): Ditto.
515 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
516 use struct compunit_symtab.
517 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
518 * jit.c (finalize_symtab): Build compunit_symtab.
519 * jv-lang.c (get_java_class_symtab): Change result to
520 "struct compunit_symtab *". All callers updated.
521 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
522 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
523 comp_dir. Change type to "struct compunit_symtab *".
524 All uses updated.
525 (new_macro_table): Change comp_dir argument to cust,
526 "struct compunit_symtab *". All callers updated.
527 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
528 nr_primary_symtabs. All uses updated.
529 (count_symtabs_and_blocks): Update to handle compunits.
530 (report_command_stats): Update output, "primary symtabs" renamed to
531 "compunits".
532 * mdebugread.c (new_symtab): Change result to
533 "struct compunit_symtab *". All callers updated.
534 (parse_procedure): Change type of search_symtab argument to
535 "struct compunit_symtab *". All callers updated.
536 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
537 separate loop.
538 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
539 symtabs. Change type to "struct compunit_symtab *". All uses updated.
540 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
541 All uses updated.
542 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
543 All uses updated.
544 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
545 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
546 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
547 symtab. Change type to "struct compunit_symtab *". All uses updated.
548 * psymtab.c (psymtab_to_symtab): Change result type to
549 "struct compunit_symtab *". All callers updated.
550 (find_pc_sect_compunit_symtab_from_partial): Renamed from
551 find_pc_sect_symtab_from_partial. Change result type to
552 "struct compunit_symtab *". All callers updated.
553 (lookup_symbol_aux_psymtabs): Change result type to
554 "struct compunit_symtab *". All callers updated.
555 (find_last_source_symtab_from_partial): Ditto.
556 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
557 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
558 and macro_table from compunit.
559 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
560 type to "struct compunit_symtab *". All callers updated.
561 (debug_qf_lookup_symbol): Ditto.
562 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
563 debug_qf_find_pc_sect_symtab, change result type to
564 "struct compunit_symtab *". All callers updated.
565 * symfile.c (allocate_symtab): Delete objfile argument.
566 New argument cust.
567 (allocate_compunit_symtab): New function.
568 (add_compunit_symtab_to_objfile): New function.
569 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
570 Change result type to "struct compunit_symtab *". All uses updated.
571 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
572 Change result type to "struct compunit_symtab *". All uses updated.
573 * symmisc.c (print_objfile_statistics): Compute blockvector count in
574 separate loop.
575 (dump_symtab_1): Update test for primary source symtab.
576 (maintenance_info_symtabs): Update to handle compunit symtabs.
577 (maintenance_check_symtabs): Ditto.
578 * symtab.c (set_primary_symtab): Delete.
579 (compunit_primary_filetab): New function.
580 (compunit_language): New function.
581 (iterate_over_some_symtabs): Change type of arguments "first",
582 "after_last" to "struct compunit_symtab *". All callers updated.
583 Update to loop over symtabs in each compunit.
584 (error_in_psymtab_expansion): Rename symtab argument to cust,
585 and change type to "struct compunit_symtab *". All callers updated.
586 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
587 Change result type to "struct compunit_symtab *". All callers updated.
588 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
589 Change result type to "struct compunit_symtab *". All callers updated.
590 (find_pc_sect_line): Only loop over symtabs within selected compunit
591 instead of all symtabs in the objfile.
592 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
593 <compunit_symtab> New member.
594 <block_line_section>: Moved to compunit_symtab.
595 <locations_valid>: Ditto.
596 <epilogue_unwind_valid>: Ditto.
597 <macro_table>: Ditto.
598 <dirname>: Ditto.
599 <debugformat>: Ditto.
600 <producer>: Ditto.
601 <objfile>: Ditto.
602 <call_site_htab>: Ditto.
603 <includes>: Ditto.
604 <user>: Ditto.
605 <primary>: Delete
606 (SYMTAB_COMPUNIT): New macro.
607 (SYMTAB_BLOCKVECTOR): Update definition.
608 (SYMTAB_OBJFILE): Update definition.
609 (SYMTAB_DIRNAME): Update definition.
610 (struct compunit_symtab): New type. Common members among all source
611 symtabs within a compilation unit moved here. All uses updated.
612 (COMPUNIT_OBJFILE): New macro.
613 (COMPUNIT_FILETABS): New macro.
614 (COMPUNIT_DEBUGFORMAT): New macro.
615 (COMPUNIT_PRODUCER): New macro.
616 (COMPUNIT_DIRNAME): New macro.
617 (COMPUNIT_BLOCKVECTOR): New macro.
618 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
619 (COMPUNIT_LOCATIONS_VALID): New macro.
620 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
621 (COMPUNIT_CALL_SITE_HTAB): New macro.
622 (COMPUNIT_MACRO_TABLE): New macro.
623 (ALL_COMPUNIT_FILETABS): New macro.
624 (compunit_symtab_ptr): New typedef.
625 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
626
005e2509
JB
6272014-11-20 Joel Brobecker <brobecker@adacore.com>
628
629 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
630 if the TYPE_CODE of range_type's base type does not match
631 the TYPE_CODE of encoding_type's base type.
632
2b0f535a
JB
6332014-11-19 Joel Brobecker <brobecker@adacore.com>
634
635 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
636 it starts with '<'.
637
8908fca5
JB
6382014-11-19 Joel Brobecker <brobecker@adacore.com>
639
640 * ada-lang.c (ada_is_redundant_range_encoding): New function.
641 (ada_is_redundant_index_type_desc): New function.
642 (to_fixed_array_type): Ignore parallel XA type if redundant.
643
4a46959e
JB
6442014-11-19 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-lang.c (constrained_packed_array_type): Set the length
647 of the return array as if both bounds where zero if that
648 returned array's index type is dynamic.
649
2acf986b
YQ
6502014-11-19 Yao Qi <yao@codesourcery.com>
651
652 * config/i386/go32.mh (CC): Remove.
653
439247b6
DE
6542014-11-18 Doug Evans <xdje42@gmail.com>
655
656 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
657 updated.
658
4d663531
DE
6592014-11-18 Doug Evans <xdje42@gmail.com>
660
661 * buildsym.c (buildsym_objfile): New static global.
662 (buildsym_comp_dir): New static global.
663 (finish_block_internal): Delete arg objfile. All callers updated.
664 (finish_block): Delete arg objfile. All callers updated.
665 (start_subfile): Delete arg dirname. All callers updated.
666 (patch_subfile_names): Update buildsym_comp_dir.
667 (get_macro_table): Delete arg objfile. All callers updated.
668 (start_symtab): New arg objfile. All callers updated.
669 Rename arg dirname to comp_dir.
670 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
671 (end_symtab_get_static_block): Delete arg objfile. All callers
672 updated.
673 (end_symtab_without_blockvector): Ditto.
674 (end_symtab_with_blockvector): Ditto.
675 (end_symtab_from_static_block): Ditto.
676 (end_symtab): Ditto.
677 (end_expandable_symtab): Ditto.
678 (augment_type_symtab): Ditto.
679 * coffread.c (coff_start_symtab): New arg objfile. All callers
680 updated.
681
8435453b
DE
6822014-11-18 Doug Evans <xdje42@gmail.com>
683
684 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
685 updated.
686
ee6f8984
DE
6872014-11-18 Doug Evans <xdje42@gmail.com>
688
689 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
690 symtab.dirname updated to use it.
691
eb822aa6
DE
6922014-11-18 Doug Evans <xdje42@gmail.com>
693
694 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
695 symtab.objfile updated to use it.
696
98387a29
DE
6972014-11-18 Doug Evans <xdje42@gmail.com>
698
699 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
700
aff08958
DE
7012014-11-18 Doug Evans <xdje42@gmail.com>
702
703 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
704 SYMBOL_OBJFILE.
705 * findvar.c (default_read_var_value): Ditto.
706 * jv-lang.c (add_class_symtab_symbol): Ditto.
707 * parse.c (operator_check_standard): Ditto.
708 * printcmd.c (address_info): Ditto.
709 * symtab.c (fixup_symbol_section): Ditto.
710 (skip_prologue_sal): Ditto.
711 * tracepoint.c (scope_info): Ditto.
712 * valops.c (find_function_in_inferior): Ditto.
713 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
714 * python/py-symbol.c (set_symbol): Ditto.
715
7bab9b58
DE
7162014-11-18 Doug Evans <xdje42@gmail.com>
717
718 * buildsym.c (main_subfile): New static global.
719 (free_subfiles_list): New function.
720 (start_symtab): Set main_subfile.
721 (restart_symtab): Replace init of subfiles, current_subfile with
722 call to free_subfiles_list.
723 (watch_main_source_file_lossage): Use main_subfile.
724 (reset_symtab_globals): Replace init of current_subfile with call
725 to free_subfiles_list.
726 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
727 functions, split out from ...
728 (end_symtab_from_static_block): ... here. Rewrite to call them.
729
f194fefb
DE
7302014-11-18 Doug Evans <xdje42@gmail.com>
731
732 The result of symtab expansion is always a primary symtab.
733 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
734 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
735 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
736 (psymtab_to_symtab): Add comment and assert.
737 (map_matching_symbols_psymtab): Remove unnecessary test for
738 non-primary symtab.
739
34248c3a
DE
7402014-11-15 Doug Evans <xdje42@gmail.com>
741
742 PR symtab/17559
743 * symtab.c (find_pc_line_symtab): New function.
744 * symtab.h (find_pc_line_symtab): Declare.
745 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
746 find_pc_symtab.
747 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
748 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
749 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
750 * tui/tui-win.c (make_visible_with_new_height): Ditto.
751 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
752 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
753
2097ae25
DE
7542014-11-15 Doug Evans <xdje42@gmail.com>
755
756 * symtab.c (expand_symtab_containing_pc): Renamed from
757 find_pc_sect_symtab_via_partial. All callers updated.
758
1ada499f
YQ
7592014-11-15 Yao Qi <yao@codesourcery.com>
760
761 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
762
355e2102
JB
7632014-11-14 Joel Brobecker <brobecker@adacore.com>
764
765 * common/common-defs.h: Move <stdarg.h> #include ahead of
766 <stdio.h> #include.
767
83030110
PA
7682014-11-14 Pedro Alves <palves@redhat.com>
769
770 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
771 [!PHONY_ICONV] (gdb_iconv): New function.
772 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
773
a8719064
DE
7742014-11-13 Doug Evans <dje@google.com>
775
776 PR symtab/17591
777 * dwarf2read.c (find_slot_in_mapped_hash): Handle
778 "(anonymous namespace)".
779
60f7655a
DE
7802014-11-13 Doug Evans <dje@google.com>
781
782 * dwarf2read.c (update_enumeration_type_from_children): Avoid
783 infinite loop.
784
5784b3ca
JK
7852014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
786
787 * NEWS (maint set target-async): Fix typo.
788
6218dc4b
PA
7892014-11-12 Pedro Alves <palves@redhat.com>
790
791 * infrun.c (enum infwait_states, infwait_state): Delete.
792
af48d08f
PA
7932014-11-12 Pedro Alves <palves@redhat.com>
794
795 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
796 Rewrite stepping over a permanent breakpoint.
797 (thread_still_needs_step_over, proceed): Don't set
798 stepping_over_breakpoint for permanent breakpoints.
799 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
800 single-step breakpoints out of the target on hardware step
801 targets.
802 (process_event_stop_test): If stepping a permanent breakpoint
803 doesn't hit the step-resume breakpoint, delete the step-resume
804 breakpoint.
805 (switch_back_to_stepped_thread): Also check if the stepped thread
806 has advanced already on hardware step targets.
807 (currently_stepping): Return true if the thread stepped a
808 breakpoint.
809
1a853c52
PA
8102014-11-12 Pedro Alves <palves@redhat.com>
811
812 Mark locations as permanent, not the whole breakpoint.
813 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
814 (mark_breakpoints_out): Don't mark permanent breakpoints as
815 uninserted.
816 (breakpoint_init_inferior): Use mark_breakpoints_out.
817 (breakpoint_here_p): Adjust.
818 (bpstat_stop_status, describe_other_breakpoints): Remove handling
819 of permanent breakpoints.
820 (make_breakpoint_permanent): Mark each location as permanent,
821 instead of marking the breakpoint.
822 (add_location_to_breakpoint): If the location is permanent, mark
823 it as such, and as inserted.
824 (init_breakpoint_sal): Don't make the breakpoint permanent here.
825 (bp_location_compare, update_global_location_list): Adjust.
826 (update_breakpoint_locations): Don't make the breakpoint permanent
827 here.
828 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
829 breakpoints.
830 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
831 (struct bp_location) <permanent>: New field.
832 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
833 reference to bp_permanent.
834
ae9bb220
PA
8352014-11-12 Pedro Alves <palves@redhat.com>
836
837 * arch-utils.c (default_skip_permanent_breakpoint): New function.
838 * arch-utils.h (default_skip_permanent_breakpoint): New
839 declaration.
840 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
841 Install default_skip_permanent_breakpoint as default method.
842 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
843 (i386_gdbarch_init): Don't install it.
844 * infrun.c (resume): Assume there's always a
845 gdbarch_skip_permanent_breakpoint implementation.
846 * gdbarch.h, gdbarch.c: Regenerate.
847
015de688
DC
8482014-11-11 Daniel Colascione <dancol@dancol.org>
849
850 Warn about cross-PID-namespace debugging.
851 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
852 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
853 * linux-thread-db.c (check_pid_namespace_match): New function.
854 (thread_db_inferior_created): Call it.
855
26a84859
DE
8562014-11-10 Doug Evans <xdje42@gmail.com>
857
858 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
859 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
860
712a2e6d
DE
8612014-11-10 Doug Evans <xdje42@gmail.com>
862
863 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
864
af3768e9
DE
8652014-11-10 Doug Evans <xdje42@gmail.com>
866
867 PR symtab/17564
868 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
869 (lookup_static_symbol): Move definition to new location and rewrite.
870 (lookup_symbol_in_objfile): New function.
871 (lookup_symbol_global_iterator_cb): Call it.
872
b1f28d99
UW
8732014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
874
875 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
876
b7a084be
PA
8772014-11-07 Pedro Alves <palves@redhat.com>
878
879 * infrun.c (process_event_stop_test) <subroutine check>: Don't
880 check if we did a "nexti" inside a prologue.
881 * symtab.c (in_prologue): Delete function.
882 * symtab.h (in_prologue): Delete declaration.
883
67be31e5
DE
8842014-11-06 Doug Evans <xdje42@gmail.com>
885
886 * symtab.h (lookup_global_symbol): Improve function comment.
887
08724ab7
DE
8882014-11-06 Doug Evans <xdje42@gmail.com>
889
890 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
891 All callers updated.
892 * symtab.h (lookup_global_symbol): Update decl.
893 (lookup_static_symbol): Move decl to better location.
894
d9060ba6
DE
8952014-11-06 Doug Evans <xdje42@gmail.com>
896
897 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
898
74016e12
DE
8992014-11-06 Doug Evans <xdje42@gmail.com>
900
901 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
902 All callers updated.
903 (lookup_symbol_in_all_objfiles): Renamed from
904 lookup_symbol_aux_symtabs. All callers updated.
905 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
906 All callers updated.
907 (lookup_symbol_in_objfile_symtabs): Renamed from
908 lookup_symbol_aux_objfile. All callers updated.
909
d1a2d36d
DE
9102014-11-06 Doug Evans <xdje42@gmail.com>
911
912 * symtab.c (lookup_symbol_in_block): Renamed from
913 lookup_symbol_aux_block. All callers updated.
914
24d864bb
DE
9152014-11-06 Doug Evans <xdje42@gmail.com>
916
917 * symtab.c (lookup_static_symbol): Renamed from
918 lookup_static_symbol_aux. All callers updated.
919 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
920 All callers updated.
921
358d6ab3
DE
9222014-11-06 Doug Evans <xdje42@gmail.com>
923
924 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
925 * block.c (block_lookup_symbol): Use it.
926 * cp-support.c (make_symbol_overload_list_block): Use it.
927 * symtab.c (iterate_over_symbols): Use it.
928
16b2eaa1
DE
9292014-11-06 Doug Evans <xdje42@gmail.com>
930
931 * symtab.c (lookup_block_symbol): Moved to ...
932 * block.c (block_lookup_symbol): ... here and renamed.
933 All callers updated.
934 * block.h (block_lookup_symbol): Declare.
935 * symtab.h (lookup_block_symbol): Delete.
936
2dd2cd1c
DE
9372014-11-06 Doug Evans <xdje42@gmail.com>
938
939 * ada-lang.c (ada_make_symbol_completion_list): Use
940 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
941 * symtab.c (lookup_objfile_from_block): Ditto.
942
d4c58915
DE
9432014-11-06 Doug Evans <xdje42@gmail.com>
944
945 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
946 TYPE_CODE_STRUCT.
947
9c1877ea
DE
9482014-11-06 Doug Evans <xdje42@gmail.com>
949
950 * objfiles.c (get_objfile_arch): Constify.
951 * objfiles.h (get_objfile_arch): Update prototype.
952 * solib.c (solib_global_lookup): Fetch arch from objfile,
953 not target_gdbarch.
954
426a4079
SL
9552014-11-06 Sandra Loosemore <sandra@codesourcery.com>
956
957 * nios2-tdep.c (wild_insn): Delete.
958 (profiler_insn, irqentry_insn): Delete.
959 (nios2_match_sequence): Delete.
960 (nios2_analyze_prologue): Update comments. Remove matching
961 of obsolete profiler_insn and irqentry_insn sequences.
962
ee11262d
AM
9632014-11-05 Alan Modra <amodra@gmail.com>
964
965 * charset.c (convert_between_encodings): Shrink obstack using
966 obstack_blank_fast.
967 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
968 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
969 to char* before doing pointer arithmetic.
ee11262d 970
c87e6d00
SM
9712014-11-04 Simon Marchi <simon.marchi@ericsson.com>
972
973 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
974
441ef17f
PA
9752014-11-04 Pedro Alves <palves@redhat.com>
976
977 * breakpoint.c (breakpoint_thread_match): Delete function.
978 * breakpoint.h (breakpoint_thread_match): Delete declaration.
979
e0f52461
SC
9802014-11-03 Siva Chandra Reddy <sivachandra@google.com>
981
982 PR c++/17494
983 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
984 the method args also under EVAL_SKIP when evaluating method
985 calls under EVAL_SKIP.
986
a0b4d890
YQ
9872014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
988
989 * dwarf2loc.c (read_pieced_value): Do big endian
990 processing only if gdb_regnum is not -1.
991 (write_pieced_value): Ditto.
992
9932014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
994
995 * arm-linux-tdep.c (arm_linux_init_abi): Use
996 info.byte_order_for_code to choose endianity of breakpoint
997 instructions snippets.
998
9992014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1000
1001 * arm-tdep.c (extract_arm_insn): Use
1002 gdbarch_byte_order_for_code to read arm instruction.
1003
e82149ff
DE
10042014-11-02 Doug Evans <xdje42@gmail.com>
1005
1006 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1007
d7ee84f1
DE
10082014-11-02 Doug Evans <xdje42@gmail.com>
1009
1010 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1011 main_subfile before returning.
1012
4f072d17
DE
10132014-10-31 Doug Evans <xdje42@gmail.com>
1014
1015 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1016 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1017
8301c89e
DE
10182014-10-31 Doug Evans <xdje42@gmail.com>
1019
1020 * valops.c (value_cast_pointers): Fix whitespace.
1021 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1022 Ditto.
1023
02be9a71
DE
10242014-10-30 Doug Evans <dje@google.com>
1025
1026 * NEWS: Mention ability add attributes to gdb.Objfile and
1027 gdb.Progspace objects.
1028 * python/py-objfile.c (objfile_object): New member dict.
1029 (objfpy_dealloc): Py_XDECREF dict.
1030 (objfpy_initialize): Initialize dict.
1031 (objfile_getset): Add __dict__.
1032 (objfile_object_type): Set tp_dictoffset member.
1033 * python/py-progspace.c (progspace_object): New member dict.
1034 (pspy_dealloc): Py_XDECREF dict.
1035 (pspy_initialize): Initialize dict.
1036 (pspace_getset): Add __dict__.
1037 (pspace_object_type): Set tp_dictoffset member.
1038
6427bef6
YQ
10392014-10-30 Yao Qi <yao@codesourcery.com>
1040
1041 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1042 replace '\\' with '\\\\'.
1043
f60325be
JB
10442014-10-29 Joel Brobecker <brobecker@adacore.com>
1045
1046 GDB 7.8.1 released.
1047
ab917dfb
PA
10482014-10-29 Pedro Alves <palves@redhat.com>
1049
1050 PR gdb/17408
1051 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1052 instead of assuming a thread with a stepping range is always
1053 stepping.
1054
d3d4baed
PA
10552014-10-29 Pedro Alves <palves@redhat.com>
1056
1057 PR python/17372
1058 * event-top.c (change_line_handler): Call
1059 gdb_rl_callback_handler_remove instead of
1060 rl_callback_handler_remove.
1061 (callback_handler_installed): New global.
1062 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1063 (gdb_rl_callback_handler_reinstall): New functions.
1064 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1065 gdb_rl_callback_handler_install instead of
1066 rl_callback_handler_remove and rl_callback_handler_install.
1067 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1068 instead of rl_callback_handler_remove.
1069 * event-top.h (gdb_rl_callback_handler_remove)
1070 (gdb_rl_callback_handler_install)
1071 (gdb_rl_callback_handler_reinstall): New declarations.
1072 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1073 cleanup function.
1074 (fetch_inferior_event): Install it.
1075 * top.c (gdb_readline_wrapper_line) Call
1076 gdb_rl_callback_handler_remove instead of
1077 rl_callback_handler_remove.
1078 (gdb_readline_wrapper_cleanup): Don't call
1079 rl_callback_handler_install.
1080
6e5d7f39
PA
10812014-10-29 Pedro Alves <palves@redhat.com>
1082
1083 * event-top.c (command_line_handler): Clear the first byte of
1084 linebuffer, when it is first allocated.
1085
551cb6a5
PA
10862014-10-29 Pedro Alves <palves@redhat.com>
1087
1088 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1089 TRY_CATCH.
1090
1e1e619b
PA
10912014-10-29 Pedro Alves <palves@redhat.com>
1092
1093 PR tui/16138
1094 PR tui/17519
1095 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1096 (tui_allowed_p): Delete function.
1097 * tui/tui.c: Include "interps.h".
1098 (tui_enable): Don't use tui_allowed_p. Error out here with
1099 detailed error messages if the TUI is the top level interpreter,
1100 or if output is not a terminal. Use newterm instead of initscr,
1101 and error out if initializing the terminal fails. Also error out if
1102 the terminal doesn't support cursor addressing.
1103 * tui/tui.h (tui_allowed_p): Delete declaration.
1104
6041179a
JB
11052014-10-29 Joel Brobecker <brobecker@adacore.com>
1106
1107 * arm-tdep.c (arm_skip_stack_protector): Return early if
1108 address loaded by first "ldr" instruction does not have
1109 a corresponding minimal symbol. Update comment.
1110
6ae274b7
YQ
11112014-10-29 Yao Qi <yao@codesourcery.com>
1112
1113 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1114 loaded address correctly of ldr instruction.
1115
7f5ef605
PA
11162014-10-28 Pedro Alves <palves@redhat.com>
1117
1118 PR gdb/12623
1119 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1120 field.
1121 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1122 thread's stepped_breakpoint field. Skip if reverse debugging.
1123 Add comment.
1124 (init_thread_stepping_state, handle_signal_stop): Clear the
1125 thread's stepped_breakpoint field.
1126
7d1a114c
PA
11272014-10-27 Pedro Alves <palves@redhat.com>
1128
1129 * remote.c (remote_thread_alive): New, factored out from ...
1130 (remote_thread_alive): ... this.
1131 (remote_update_thread_list): Bail out before deleting threads if
1132 the target returned an empty list, and, the current thread has a
1133 magic/fake ptid.
1134
e5f8a7cc
PA
11352014-10-27 Pedro Alves <palves@redhat.com>
1136
1137 * infrun.c (handle_signal_stop): Also skip handlers when a random
1138 signal arrives while handling a "stepi" or a "nexti". Set the
1139 thread's 'step_after_step_resume_breakpoint' flag.
1140
71e396f9
LM
11412014-10-27 Luis Machado <lgustavo@codesourcery.com>
1142
1143 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1144 (arm_record_ld_st_imm_offset): Reimplement to cover all
1145 load/store cases for ARM opcode 010.
1146 (arm_record_ld_st_multiple): Reimplement to cover all
1147 load/store cases for ARM opcode 100.
1148
3aee438b
DE
11492014-10-26 Doug Evans <xdje42@gmail.com>
1150
1151 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1152
f88cb4b6
DE
11532014-10-26 Doug Evans <xdje42@gmail.com>
1154
1155 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1156 parameter "kind" to "block_index".
1157 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1158 "block_index".
1159 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1160
a023a30f
DE
11612014-10-26 Doug Evans <xdje42@gmail.com>
1162
1163 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1164
4c35218e
DE
11652014-10-26 Doug Evans <xdje42@gmail.com>
1166
1167 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1168 obstack_alloc.
1169
f08e8df3
DE
11702014-10-26 Doug Evans <xdje42@gmail.com>
1171
1172 * parser-defs.h (block_found): Move decl from here ...
1173 * symtab.h (block_found): ... to here.
1174
cf901d3b
DE
11752014-10-26 Doug Evans <xdje42@gmail.com>
1176
1177 * symtab.h (struct field_of_this_result): Fix typo in comment.
1178 (lookup_symbol_in_language): Move function comment here.
1179 (lookup_symbol): Improve function comment.
1180 (basic_lookup_symbol_nonlocal): Ditto.
1181 (lookup_symbol_static, lookup_symbol_global): Ditto.
1182 (lookup_symbol_aux_block): Ditto.
1183 (lookup_language_this): Add function comment.
1184 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1185 function comment.
1186 (lookup_block_symbol): Improve function comment.
1187 (lookup_struct): Fix capitalization in function comment.
1188 (lookup_transparent_type): Add function comment.
1189 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1190 Improve function comment.
1191 (lookup_objfile_from_block): Add function comment.
1192 * symtab.c (lookup_symbol_in_language): Update function comment.
1193 (lookup_symbol, lookup_language_this): Ditto.
1194 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1195 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1196 (basic_lookup_symbol_nonlocal): Ditto.
1197 (lookup_symbol_static, lookup_symbol_global): Ditto.
1198 (lookup_transparent_type, lookup_block_symbol): Ditto.
1199
ff6c39cf
DE
12002014-10-25 Doug Evans <xdje42@gmail.com>
1201
1202 * symtab.c (types_info): Delete forward decl.
1203 (functions_info, variables_info, sources_info): Ditto.
1204 (_initialize_symtab): Rewrite forward decl to use
1205 initialize_file_ftype.
1206
ec201f0c
DE
12072014-10-25 Doug Evans <xdje42@gmail.com>
1208
1209 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1210
ca040673
DE
12112014-10-25 Doug Evans <xdje42@gmail.com>
1212
1213 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1214 of local var child_die.
1215
6f259a23
DB
12162014-10-24 Don Breazeal <donb@codesourcery.com>
1217
1218 * infrun.c (follow_fork_inferior): Update fork message printing
1219 to use target_terminal_ours_for_output instead of
1220 target_terminal_ours, to use _() for all format strings, to print
1221 "vfork" instead of "fork" for vforks, and to add a detach message.
1222 (handle_vfork_child_exec_or_exit): Update message printing to use
1223 target_terminal_ours_for_output instead of target_terminal_ours, to
1224 use _() for all format strings, and to fix some formatting.
1225
09dd9a69
PA
12262014-10-24 Pedro Alves <palves@redhat.com>
1227
1228 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1229 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1230 * config/vax/vax.mh: Delete.
1231 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1232 obsolete configurations section.
1233 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1234 * vax-nat.c: Delete file.
1235
5ab806de
PA
12362014-10-24 Pedro Alves <palves@redhat.com>
1237
1238 * NEWS (Removed targets): Add OS/arch column.
1239
3433cfa5
SC
12402014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1241
1242 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1243 on the arg type of a constructor only if it is of reference type.
1244
96ba4233
SL
12452014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1246
1247 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1248 accessors and constants from nios2 opcodes update.
1249 (nios2_get_next_pc): Likewise.
1250
28153fd3
DE
12512014-10-19 Doug Evans <xdje42@gmail.com>
1252
1253 * gdbthread.h (set_running): Fix comment.
1254 (set_executing, finish_thread_state): Fix comment.
1255
fc9b8e47
DE
12562014-10-18 Doug Evans <xdje42@gmail.com>
1257
1258 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1259
4ffbba72
DE
12602014-10-17 Doug Evans <dje@google.com>
1261
1262 * NEWS: Mention new event gdb.clear_objfiles.
1263 * python/py-event.h (emit_clear_objfiles_event): Clear
1264 * python/py-events.h (events_object): New member clear_objfiles.
1265 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1266 event.
1267 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1268 emit clear_objfiles event.
1269 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1270 function.
1271 (emit_clear_objfiles_event): New function.
1272 (clear_objfiles): New event.
1273 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1274 Declare.
1275 * python/python.c (_initialize_python): Call
1276 gdbpy_initialize_clear_objfiles_event.
1277
d096d8c1
DE
12782014-10-17 Doug Evans <dje@google.com>
1279
1280 * NEWS: Mention new gdb.Objfile.progspace attribute.
1281 * python/py-objfile.c (objfpy_get_progspace): New function.
1282 (objfile_getset): New entry for "progspace".
1283
6c4486e6
PA
12842014-10-17 Pedro Alves <palves@redhat.com>
1285
1286 PR gdb/17471
1287 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1288 returns a copy of the input.
1289 (run_command_1, continue_command, step_1, jump_command)
1290 (signal_command, until_command, advance_command, finish_command)
1291 (attach_command): Adjust and install a cleanup to free the
1292 stripped args.
1293
0ff33695
PA
12942014-10-17 Pedro Alves <palves@redhat.com>
1295
1296 PR gdb/17300
1297 * infcmd.c (continue_1): If continuing all threads in the
1298 foreground, make sure the inferior's terminal settings are put in
1299 effect.
1300
6fdebc3d
PA
13012014-10-17 Pedro Alves <palves@redhat.com>
1302
1303 PR gdb/17472
1304 * annotate.c (annotate_breakpoints_invalid): Use
1305 target_terminal_our_for_output instead of target_terminal_ours.
1306 Give back the terminal to the target.
1307 (annotate_frames_invalid): Likewise.
1308
5842f62a
PA
13092014-10-17 Pedro Alves <palves@redhat.com>
1310
1311 * target.c (enum terminal_state): New enum.
1312 (terminal_state): New global.
1313 (target_terminal_init): New function.
1314 (target_terminal_inferior): Skip if inferior already owns the
1315 terminal.
1316 (target_terminal_ours, target_terminal_ours_for_output): New
1317 functions.
1318 * target.h (target_terminal_init): Convert to function prototype.
1319 (target_terminal_ours_for_output): Convert to function prototype
1320 and tweak comment.
1321 (target_terminal_ours): Convert to function prototype and tweak
1322 comment.
1323 * windows-nat.c (do_initial_windows_stuff): Call
1324 target_terminal_init instead of child_terminal_init_with_pgrp.
1325
32a8097b
PA
13262014-10-17 Pedro Alves <palves@redhat.com>
1327
1328 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1329 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1330 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1331 solib-osf.c.
1332 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1333 * ada-lang.h [__alpha__ && __osf__]
1334 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1335 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1336 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1337 GDB_OSABI_OSF1.
1338 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1339 files.
1340 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1341 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1342 * configure: Regenerate.
1343 * configure.ac: Remove references to osf.
1344 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1345 section. Remove all other references to osf.
1346 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1347 Remove all other references to osf.
1348 * dec-thread.c: Delete file.
1349 * defs.h (GDB_OSABI_OSF1): Delete.
1350 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1351 defined.
1352 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1353 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1354 Delete code.
1355 (unconditionally_kill_inferior)
1356 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1357 * solib-osf.c: Delete file.
1358
80134cf5
PA
13592014-10-17 Pedro Alves <palves@redhat.com>
1360
1361 * remote.c (clear_threads_listing_context): Move higher up, out of
1362 the HAVE_LIBEXPAT guard.
1363
89c7137f
TG
13642014-10-16 Tristan Gingold <gingold@adacore.com>
1365
1366 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1367 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1368 on amd64.
1369
44ee4a52
PA
13702014-10-15 Pedro Alves <palves@redhat.com>
1371
1372 * dec-thread.c (dec_thread_count_gdb_threads)
1373 (dec_thread_add_gdb_thread): Delete.
1374 (dec_thread_update_thread_list): Delete.
1375 (dec_thread_find_new_threads): Rename to ...
1376 (dec_thread_update_thread_list): ... this. Delete GDB-size
1377 threads that are no longer found in dec_thread_list.
1378 (resync_thread_list): Delete.
1379 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1380 resync_thread_list.
1381
ab970af1
PA
13822014-10-15 Pedro Alves <palves@redhat.com>
1383
1384 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1385 * remote.c (remote_update_thread_list): Skip calling prune_threads
1386 if any thread listing method is supported, and instead walk over
1387 the set of remote threads listed, deleting those that are not
1388 found in GDB's thread list.
1389
e8032dde
PA
13902014-10-15 Pedro Alves <palves@redhat.com>
1391
1392 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1393 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1394 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1395 (bsd_uthread_target): Adjust.
1396 * corelow.c (core_open): Adjust.
1397 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1398 (dec_thread_update_thread_list): New function.
1399 (init_dec_thread_ops): Adjust.
1400 * gdbthread.h (prune_threads): New declaration.
1401 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1402 (thread_db_update_thread_list): ... this. Call prune_threads.
1403 (init_thread_db_ops): Adjust.
1404 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1405 (procfs_update_thread_list): ... this. Call prune_threads.
1406 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1407 Adjust.
1408 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1409 (obsd_update_thread_list): ... this. Call prune_threads.
1410 (obsd_add_target): Adjust.
1411 * procfs.c (procfs_target): Adjust.
1412 (procfs_notice_thread): Update comment.
1413 (procfs_find_new_threads): Rename to ...
1414 (procfs_update_thread_list): ... this. Call prune_threads.
1415 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1416 comment.
1417 (ravenscar_wait): Adjust.
1418 (ravenscar_find_new_threads): Rename to ...
1419 (ravenscar_update_thread_list): ... this. Call prune_threads.
1420 (init_ravenscar_thread_ops): Adjust.
1421 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1422 (record_btrace_update_thread_list): ... this. Adjust comment.
1423 (init_record_btrace_ops): Adjust.
1424 * remote.c (remote_threads_info): Rename to ...
1425 (remote_update_thread_list): ... this. Call prune_threads.
1426 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1427 Adjust.
1428 * sol-thread.c (check_for_thread_db): Adjust.
1429 (sol_find_new_threads_callback): Rename to ...
1430 (sol_update_thread_list_callback): ... this.
1431 (sol_find_new_threads): Rename to ...
1432 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1433 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1434 * target-delegates.c: Regenerate.
1435 * target.c (target_find_new_threads): Rename to ...
1436 (target_update_thread_list): ... this.
1437 * target.h (struct target_ops): Rename to_find_new_threads field
1438 to to_update_thread_list.
1439 (target_find_new_threads): Rename to ...
1440 (target_update_thread_list): ... this.
1441 * thread.c (prune_threads): Make extern.
1442 (update_thread_list): Adjust.
1443
6dc54d91
PA
14442014-10-15 Pedro Alves <palves@redhat.com>
1445
1446 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1447 Add describing comment. Return -1 if the qL packet is not
1448 supported.
1449 (struct thread_item, thread_item_t): Move higher up in
1450 the file. Add comments.
1451 (struct threads_parsing_context): Move higher up in
1452 the file, add comments, and remote to ...
1453 (struct threads_listing_context): ... this.
1454 (remote_newthread_step): Don't add the thread to GDB's thread
1455 database here. Instead push it to the thread_listing_context
1456 list.
1457 (remote_find_new_threads): Rename to ...
1458 (remote_get_threads_with_ql): ... this. Add target_ops and
1459 targets_listing_context parameters. Pass down context.
1460 (start_thread): Adjust.
1461 (clear_threads_parsing_context): Rename to ...
1462 (clear_threads_listing_context): ... this.
1463 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1464 remote_threads_info.
1465 (remote_get_threads_with_qthreadinfo): Ditto.
1466 (remote_threads_info): Reimplement.
1467
36728e82
PA
14682014-10-15 Pedro Alves <palves@redhat.com>
1469
1470 * infrun.c (resume): Don't force displaced-stepping for all
1471 single-steps on software single-stepping archs.
1472
34b7e8a6
PA
14732014-10-15 Pedro Alves <palves@redhat.com>
1474
1475 * breakpoint.c (single_step_breakpoints): Delete global.
1476 (insert_single_step_breakpoint): Adjust to store the breakpoint
1477 pointer in the current thread.
1478 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1479 (cancel_single_step_breakpoints): Delete functions.
1480 (breakpoint_has_location_inserted_here): Make extern.
1481 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1482 breakpoint list.
1483 * breakpoint.h (breakpoint_has_location_inserted_here): New
1484 declaration.
1485 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1486 (cancel_single_step_breakpoints): Remove declarations.
1487 * gdbthread.h (struct thread_control_state)
1488 <single_step_breakpoints>: New field.
1489 (delete_single_step_breakpoints)
1490 (thread_has_single_step_breakpoints_set)
1491 (thread_has_single_step_breakpoint_here): New declarations.
1492 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1493 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1494 (singlestep_pc): Delete globals.
1495 (infrun_thread_ptid_changed): Remove references to removed
1496 globals.
1497 (resume_cleanups): Delete the current thread's single-step
1498 breakpoints.
1499 (maybe_software_singlestep): Remove references to removed globals.
1500 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1501 delete_single_step_breakpoints.
1502 (init_wait_for_inferior): Remove references to removed globals.
1503 (delete_thread_infrun_breakpoints): Delete the thread's
1504 single-step breakpoints too.
1505 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1506 single-step breakpoints here.
1507 (delete_stopped_threads_single_step_breakpoints): New function.
1508 (adjust_pc_after_break): Adjust to use
1509 thread_has_single_step_breakpoints_set.
1510 (handle_inferior_event): Remove references to removed globals.
1511 Use delete_stopped_threads_single_step_breakpoints.
1512 (handle_signal_stop): Adjust to per-thread single-step
1513 breakpoints. Swap test order to do cheaper tests first.
1514 (switch_back_to_stepped_thread): Extend debug output. Remove
1515 references to removed globals.
1516 * record-full.c (record_full_wait_1): Adjust to per-thread
1517 single-step breakpoints.
1518 * thread.c (delete_single_step_breakpoints)
1519 (thread_has_single_step_breakpoints_set)
1520 (thread_has_single_step_breakpoint_here): New functions.
1521 (clear_thread_inferior_resources): Also delete the thread's
1522 single-step breakpoints.
1523
5b834a0a
PA
15242014-10-15 Pedro Alves <palves@redhat.com>
1525
1526 * thread.c (delete_thread_breakpoint): New function.
1527 (delete_step_resume_breakpoint)
1528 (delete_exception_resume_breakpoint): Use it.
1529 (delete_at_next_stop): New function.
1530 (clear_thread_inferior_resources): Use delete_at_next_stop.
1531
a1fd2fa5
PA
15322014-10-15 Pedro Alves <palves@redhat.com>
1533
1534 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1535 (breakpoint_inserted_here_p): ... here. Remove special case for
1536 software single-step breakpoints.
1537 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1538 (software_breakpoint_inserted_here_p): ... here. Remove special
1539 case for software single-step breakpoints.
1540 (bp_target_info_copy_insertion_state)
1541 (deprecated_insert_raw_breakpoint)
1542 (deprecated_remove_raw_breakpoint): Delete functions.
1543 * breakpoint.h (deprecated_insert_raw_breakpoint)
1544 (deprecated_remove_raw_breakpoint): Remove declarations.
1545
7c16b83e
PA
15462014-10-15 Pedro Alves <palves@redhat.com>
1547
1548 PR breakpoints/9649
1549 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1550 Delete array globals.
1551 (single_step_breakpoints): New global.
1552 (breakpoint_xfer_memory): Remove special handling for single-step
1553 breakpoints.
1554 (update_breakpoints_after_exec): Delete bp_single_step
1555 breakpoints.
1556 (detach_breakpoints): Remove special handling for single-step
1557 breakpoints.
1558 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1559 (bpstat_stop_status): Add comment.
1560 (bpstat_what, bptype_string, print_one_breakpoint_location)
1561 (adjust_breakpoint_address, init_bp_location): Handle
1562 bp_single_step.
1563 (new_single_step_breakpoint): New function.
1564 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1565 handling for single-step breakpoints.
1566 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1567 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1568 Rewrite.
1569 (detach_single_step_breakpoints, find_single_step_breakpoint):
1570 Delete functions.
1571 (breakpoint_has_location_inserted_here): New function.
1572 (single_step_breakpoint_inserted_here_p): Rewrite.
1573 * breakpoint.h: Remove FIXME.
1574 (enum bptype) <bp_single_step>: New enum value.
1575 (insert_single_step_breakpoint): Update comment.
1576 * infrun.c (resume_cleanups)
1577 (delete_step_thread_step_resume_breakpoint): Remove single-step
1578 breakpoints.
1579 (fetch_inferior_event): Install a cleanup that removes infrun
1580 breakpoints.
1581 (switch_back_to_stepped_thread) <expect thread advanced also>:
1582 Clear step-over info.
1583
0cbcdb96
PA
15842014-10-15 Pedro Alves <palves@redhat.com>
1585
1586 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1587 (delete_thread_infrun_breakpoints): New function, with parts
1588 salvaged from delete_step_resume_breakpoint_callback.
1589 (delete_step_thread_step_resume_breakpoint): Delete.
1590 (for_each_just_stopped_thread_callback_func): New typedef.
1591 (for_each_just_stopped_thread): New function.
1592 (delete_just_stopped_threads_infrun_breakpoints): New function.
1593 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1594 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1595 ... this. Adjust.
1596 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1597
963f9c80
PA
15982014-10-15 Pedro Alves <palves@redhat.com>
1599
1600 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1601 trying to step past a non-steppable watchpoint.
1602 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1603 field.
1604 * infrun.c (struct step_over_info): Add new field
1605 'nonsteppable_watchpoint_p' and adjust comments.
1606 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1607 Adjust.
1608 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1609 (stepping_past_nonsteppable_watchpoint): New function.
1610 (step_over_info_valid_p): Also return true if stepping past a
1611 nonsteppable watchpoint.
1612 (proceed): Adjust call to set_step_over_info. Remove reference to
1613 init_infwait_state.
1614 (init_wait_for_inferior): Remove reference to init_infwait_state.
1615 (waiton_ptid): Delete global.
1616 (struct execution_control_state)
1617 <stepped_after_stopped_by_watchpoint>: Delete field.
1618 (wait_for_inferior, fetch_inferior_event): Always pass
1619 minus_one_ptid to target_wait.
1620 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1621 field.
1622 (init_infwait_state): Delete function.
1623 (handle_inferior_event): Remove infwait_state handling.
1624 (handle_signal_stop) <watchpoints handling>: Adjust after
1625 stepped_after_stopped_by_watchpoint removal. Don't remove
1626 breakpoints here nor set infwait_state. Set the thread's
1627 stepping_over_watchpoint flag, and call keep_going instead.
1628 (keep_going): Handle stepping_over_watchpoint. Adjust
1629 set_step_over_info calls.
1630 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1631 function.
1632
6cc83d2a
PA
16332014-10-15 Pedro Alves <palves@redhat.com>
1634
1635 * infrun.c (step_over_info_valid_p): New function.
1636 (resume): Use step_over_info_valid_p instead of checking the
1637 threads's trap_expected flag.
1638
6979730b
DE
16392014-10-15 Doug Evans <dje@google.com>
1640 Walfred Tedeschi <walfred.tedeschi@intel.com>
1641
1642 PR python/17364
1643 * python/lib/gdb/__init__.py (packages): Add "printer".
1644 * python/lib/gdb/command/bound_registers.py: Moved to ...
1645 * python/lib/gdb/printer/bound_registers.py: ... here.
1646 Add printer to global set of builtin printers. Rename printer from
1647 "bound" to "mpx_bound128".
1648 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1649 registered as global "builtin" printer.
1650 (add_builtin_pretty_printer): New function.
1651 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1652 gdb/printer/__init__.py.
1653
35a49624
IB
16542014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1655
1656 * Makefile.in (SFILES): Remove d-support.c.
1657 (COMMON_OBS): Remove d-support.o.
1658 * d-lang.h (d_parse_symbol): Remove declaration.
1659 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1660 * d-support.c: Remove file.
1661
8fa0c4f8
AA
16622014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1663
1664 * gdb/infrun.c (process_event_stop_test): Apply
1665 gdbarch_addr_bits_remove to longjmp resume address.
1666
3666da81
PA
16672014-10-15 Pedro Alves <palves@redhat.com>
1668
1669 * regformats/microblaze.dat: Delete file.
1670
449aa9df
AKA
16712014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1672
1673 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1674 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1675
ebb8ece2
SC
16762014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1677
1678 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1679 as non-trivial.
1680
82c48ac7
SC
16812014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1682
1683 PR c++/13403
1684 PR c++/15154
1685 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1686 with qualified args.
1687
c40cc657
JB
16882014-10-14 Joel Brobecker <brobecker@adacore.com>
1689
1690 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1691 of the case where the second operand is a pointer.
1692 <BINOP_SUB>: Likewise.
1693
0ea5cda8
SDJ
16942014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1695
1696 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1697 only if it is not NULL.
1698 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1699 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1700 (struct probe_ops) <clear_semaphore>: Likewise.
1701 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1702 not NULL.
1703 (stop_tracing): Likewise, for clear_semaphore.
1704
f7088df3
SDJ
17052014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1706
1707 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1708 using language_c, instead of current_language.
1709
4e1bbde0
DE
17102014-10-13 Doug Evans <dje@google.com>
1711
6ff5a0f6 1712 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1713 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1714 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1715 (pspy_new, pspace_to_pspace_object): Call it.
1716
c780cc2f
JK
17172014-10-13 Miroslav Franc <mfranc@redhat.com>
1718 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 Fix "save breakpoints" for "catch" command.
1721 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1722 newline.
1723
99894e11
JK
17242014-10-12 Miroslav Franc <mfranc@redhat.com>
1725
1726 Fix "save breakpoints" for "disable $bpnum" command.
1727 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1728
3831839c
PA
17292014-10-10 Pedro Alves <palves@redhat.com>
1730
1731 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1732 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1733 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1734 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1735 and been removed.
1736 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1737 * configure.ac: Remove references to IRIX.
1738 * configure.host: Add *-*-irix* to the obsolete hosts section.
1739 Remove all other references to irix.
1740 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1741 Delete files.
1742
cc3afae2
AKA
17432014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1744
1745 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1746 isn't valid, release the tdesc arch data and return NULL.
1747
cdfa0b0a
PA
17482014-10-10 Pedro Alves <palves@redhat.com>
1749
1750 * linux-tdep.c: Include observer.h.
1751 (linux_inferior_data): New global.
1752 (struct linux_info): New structure.
1753 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1754 (get_linux_inferior_data): New functions.
1755 (linux_vsyscall_range): Rename to ...
1756 (linux_vsyscall_range_raw): ... this.
1757 (linux_vsyscall_range): New function; handles caching.
1758 (_initialize_linux_tdep): Register linux_inferior_data. Install
1759 inferior_exit and inferior_appeared observers.
1760
8b9a549d
PA
17612014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 Pedro Alves <palves@redhat.com>
1763
1764 PR symtab/14466
1765 * solib-svr4.c (svr4_read_so_list): Rename to ...
1766 (svr4_current_sos_1): ... this and change the function comment.
1767 (svr4_current_sos): New function.
1768
3437254d
PA
17692014-10-10 Pedro Alves <palves@redhat.com>
1770
1771 * arch-utils.c (default_vsyscall_range): New function.
1772 * arch-utils.h (default_vsyscall_range): New declaration.
1773 * gdbarch.sh (vsyscall_range): New hook.
1774 * gdbarch.h, gdbarch.c: Regenerate.
1775 * linux-tdep.c (linux_vsyscall_range): New function.
1776 (linux_init_abi): Install linux_vsyscall_range as
1777 vsyscall_range gdbarch hook.
1778 * memrange.c (address_in_mem_range): New function.
1779 * memrange.h (address_in_mem_range): New declaration.
1780 * symfile-mem.c (find_vdso_size): Delete function.
1781 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1782
31cc0b80
PA
17832014-10-10 Pedro Alves <palves@redhat.com>
1784
1785 * infrun.c (normal_stop): Fix typo in comment.
1786
3e3286a2
SDJ
17872014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1788
1789 PR tdep/9390
1790 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1791 typo when using logical AND to determine instruction type.
1792
fcbdedf8
YQ
17932014-10-09 Yao Qi <yao@codesourcery.com>
1794
1795 * infrun.c (handle_signal_stop): Remove local variable
1796 'printed'.
1797
db984616
SS
17982014-10-08 Stan Shebs <stan@codesourcery.com>
1799
1800 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1801
3ba37e6c
GB
18022014-10-08 Gary Benson <gbenson@redhat.com>
1803
1804 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1805
a442d071
GB
18062014-10-08 Gary Benson <gbenson@redhat.com>
1807
1808 * common/common-defs.h: Include common-exceptions.h.
1809 * exceptions.h: Do not include common-exceptions.h.
1810
6f1947e8
GB
18112014-10-08 Gary Benson <gbenson@redhat.com>
1812
1813 * common/common-defs.h: Include cleanups.h.
1814 * common/common-exceptions.c: Do not include cleanups.h.
1815 * utils.h: Likewise.
1816
c765fdb9
GB
18172014-10-08 Gary Benson <gbenson@redhat.com>
1818
1819 * ada-lang.c: Do not include exceptions.h.
1820 * ada-valprint.c: Likewise.
1821 * amd64-tdep.c: Likewise.
1822 * auto-load.c: Likewise.
1823 * block.c: Likewise.
1824 * break-catch-throw.c: Likewise.
1825 * breakpoint.c: Likewise.
1826 * btrace.c: Likewise.
1827 * c-lang.c: Likewise.
1828 * cli/cli-cmds.c: Likewise.
1829 * cli/cli-interp.c: Likewise.
1830 * cli/cli-script.c: Likewise.
1831 * completer.c: Likewise.
1832 * corefile.c: Likewise.
1833 * corelow.c: Likewise.
1834 * cp-abi.c: Likewise.
1835 * cp-support.c: Likewise.
1836 * cp-valprint.c: Likewise.
1837 * darwin-nat.c: Likewise.
1838 * dwarf2-frame-tailcall.c: Likewise.
1839 * dwarf2-frame.c: Likewise.
1840 * dwarf2loc.c: Likewise.
1841 * dwarf2read.c: Likewise.
1842 * eval.c: Likewise.
1843 * event-loop.c: Likewise.
1844 * event-top.c: Likewise.
1845 * f-valprint.c: Likewise.
1846 * frame-unwind.c: Likewise.
1847 * frame.c: Likewise.
1848 * gdbtypes.c: Likewise.
1849 * gnu-v2-abi.c: Likewise.
1850 * gnu-v3-abi.c: Likewise.
1851 * guile/scm-auto-load.c: Likewise.
1852 * guile/scm-breakpoint.c: Likewise.
1853 * guile/scm-cmd.c: Likewise.
1854 * guile/scm-frame.c: Likewise.
1855 * guile/scm-lazy-string.c: Likewise.
1856 * guile/scm-param.c: Likewise.
1857 * guile/scm-symbol.c: Likewise.
1858 * guile/scm-type.c: Likewise.
1859 * hppa-hpux-tdep.c: Likewise.
1860 * i386-tdep.c: Likewise.
1861 * inf-loop.c: Likewise.
1862 * infcall.c: Likewise.
1863 * infcmd.c: Likewise.
1864 * infrun.c: Likewise.
1865 * interps.c: Likewise.
1866 * interps.h: Likewise.
1867 * jit.c: Likewise.
1868 * linespec.c: Likewise.
1869 * linux-nat.c: Likewise.
1870 * linux-thread-db.c: Likewise.
1871 * m32r-rom.c: Likewise.
1872 * main.c: Likewise.
1873 * memory-map.c: Likewise.
1874 * mi/mi-cmd-break.c: Likewise.
1875 * mi/mi-cmd-stack.c: Likewise.
1876 * mi/mi-interp.c: Likewise.
1877 * mi/mi-main.c: Likewise.
1878 * monitor.c: Likewise.
1879 * nto-procfs.c: Likewise.
1880 * objc-lang.c: Likewise.
1881 * p-valprint.c: Likewise.
1882 * parse.c: Likewise.
1883 * ppc-linux-tdep.c: Likewise.
1884 * printcmd.c: Likewise.
1885 * probe.c: Likewise.
1886 * python/py-auto-load.c: Likewise.
1887 * python/py-breakpoint.c: Likewise.
1888 * python/py-cmd.c: Likewise.
1889 * python/py-finishbreakpoint.c: Likewise.
1890 * python/py-frame.c: Likewise.
1891 * python/py-framefilter.c: Likewise.
1892 * python/py-function.c: Likewise.
1893 * python/py-gdb-readline.c: Likewise.
1894 * python/py-inferior.c: Likewise.
1895 * python/py-infthread.c: Likewise.
1896 * python/py-lazy-string.c: Likewise.
1897 * python/py-linetable.c: Likewise.
1898 * python/py-param.c: Likewise.
1899 * python/py-prettyprint.c: Likewise.
1900 * python/py-symbol.c: Likewise.
1901 * python/py-type.c: Likewise.
1902 * python/py-value.c: Likewise.
1903 * python/python-internal.h: Likewise.
1904 * python/python.c: Likewise.
1905 * record-btrace.c: Likewise.
1906 * record-full.c: Likewise.
1907 * regcache.c: Likewise.
1908 * remote-fileio.c: Likewise.
1909 * remote-mips.c: Likewise.
1910 * remote.c: Likewise.
1911 * rs6000-aix-tdep.c: Likewise.
1912 * rs6000-nat.c: Likewise.
1913 * skip.c: Likewise.
1914 * solib-darwin.c: Likewise.
1915 * solib-dsbt.c: Likewise.
1916 * solib-frv.c: Likewise.
1917 * solib-ia64-hpux.c: Likewise.
1918 * solib-spu.c: Likewise.
1919 * solib-svr4.c: Likewise.
1920 * solib.c: Likewise.
1921 * spu-tdep.c: Likewise.
1922 * stack.c: Likewise.
1923 * stap-probe.c: Likewise.
1924 * symfile-mem.c: Likewise.
1925 * symmisc.c: Likewise.
1926 * target.c: Likewise.
1927 * thread.c: Likewise.
1928 * top.c: Likewise.
1929 * tracepoint.c: Likewise.
1930 * tui/tui-interp.c: Likewise.
1931 * typeprint.c: Likewise.
1932 * utils.c: Likewise.
1933 * valarith.c: Likewise.
1934 * valops.c: Likewise.
1935 * valprint.c: Likewise.
1936 * value.c: Likewise.
1937 * varobj.c: Likewise.
1938 * windows-nat.c: Likewise.
1939 * xml-support.c: Likewise.
1940
484933d1
MR
19412014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1942
1943 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1944 name implies.
1945 (extended_mips16_next_pc): Update accordingly.
1946
ab50adb6
MR
19472014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1948
1949 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1950 function.
1951 (micromips_instruction_is_compact_branch): Likewise.
1952 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1953 or a compact jump, reaching a jump delay slot, or seeing a
1954 second non-prologue instruction.
1955 (micromips_scan_prologue): Also terminate scanning upon seeing a
1956 compact branch or jump, or reaching a branch or jump delay slot.
1957 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1958 or jump delay slot, or seeing a second non-prologue instruction.
1959 (mips32_instruction_has_delay_slot): Retain instruction
1960 examination code only, update arguments accordingly and move
1961 instruction fetch pieces to...
1962 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1963 (micromips_instruction_has_delay_slot): Likewise and to...
1964 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1965 (mips16_instruction_has_delay_slot): Likewise and to...
1966 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1967 (mips_single_step_through_delay): Update accordingly.
1968 (mips_adjust_breakpoint_address): Likewise.
1969
ae790652
MR
19702014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1971
1972 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1973 !mustbe32 also return 1 for 32-bit instructions.
1974 (mips16_instruction_has_delay_slot): Likewise. Add an
1975 explanatory comment.
1976
9b807e7b
MR
19772014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1978
1979 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1980 symbols special.
1981
0d5ed153
MR
19822014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1983
1984 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1985 update comments.
1986 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1987 for the breakpoint's address. Don't preinitialize `placed_size'.
1988 (insert_bp_location): Set `reqstd_address' rather than
1989 `placed_address'.
1990 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1991 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1992 address.
1993 (bkpt_remove_location): Likewise.
1994 (deprecated_insert_raw_breakpoint): Likewise.
1995 (deprecated_remove_raw_breakpoint): Likewise.
1996 (find_single_step_breakpoint): Likewise.
1997 * mem-break.c (default_memory_insert_breakpoint): Use
1998 `reqstd_address' for the breakpoint's address. Don't set
1999 `placed_address' or `placed_size' if breakpoint contents couldn't
2000 have been determined.
2001 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2002 the breakpoint's address.
2003 (remote_insert_hw_breakpoint): Likewise. Don't set
2004 `placed_address' or `placed_size' if breakpoint couldn't have been
2005 set.
2006 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2007 `reqstd_address' for the breakpoint's address.
2008 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2009 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2010 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2011 * microblaze-linux-tdep.c
2012 (microblaze_linux_memory_remove_breakpoint): Likewise.
2013 * monitor.c (monitor_insert_breakpoint): Likewise.
2014 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2015 (procfs_insert_hw_breakpoint): Likewise.
2016 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2017 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2018 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2019 * remote-mips.c (mips_insert_breakpoint): Likewise.
2020 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2021
3e871532
LM
20222014-10-03 Luis Machado <lgustavo@codesourcery.com>
2023
2024 * valops.c (value_assign): Check for bit field assignments
2025 before calling architecture-specific register value
2026 conversion functions.
2027
ec48dc8b
PM
20282014-10-03 Pierre Muller <muller@sourceware.org>
2029
2030 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2031
b57bacec
PA
20322014-10-02 Pedro Alves <palves@redhat.com>
2033
2034 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2035 threads_are_executing.
2036 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2037 describing comment.
2038 * gdbthread.h (threads_are_executing): Declare.
2039 (handle_signal_stop) <random signals>: Don't print about the
2040 signal here if stopping.
2041 (end_stepping_range): Don't notify observers here.
2042 (normal_stop): Update the thread list. If stopped by a random
2043 signal or a stepping range ended, notify observers.
2044 * thread.c (threads_executing): New global.
2045 (init_thread_list): Clear 'threads_executing'.
2046 (set_executing): Set or clear 'threads_executing'.
2047 (threads_are_executing): New function.
2048 (update_threads_executing): New function.
2049 (update_thread_list): Use it.
2050
13fd3ff3
PA
20512014-10-02 Pedro Alves <palves@redhat.com>
2052
2053 PR breakpoints/17431
2054 * breakpoint.c (update_breakpoints_after_exec): Don't create
2055 overlay, longjmp, std terminate nor exception breakpoints here.
2056
32990ada
PA
20572014-10-02 Pedro Alves <palves@redhat.com>
2058
2059 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2060 Adjust comments.
2061 * inferior.c (find_inferior_for_program_space): Give preference to
2062 the current inferior.
2063 * inferior.h (find_inferior_for_program_space): Update comment.
2064 * progspace.c (switch_to_program_space_and_thread): Prefer the
2065 current inferior if it's bound to the program space requested. If
2066 the inferior found doesn't have a PID yet, don't bother looking up
2067 a thread.
2068 * progspace.h (switch_to_program_space_and_thread): Adjust
2069 comment.
2070 * thread.c (any_thread_of_process, any_live_thread_of_process):
2071 Give preference to the current thread.
2072
0fec99e8
PA
20732014-10-01 Pedro Alves <palves@redhat.com>
2074
2075 * breakpoint.c (insert_bp_location): Error out if inserting a
2076 software breakpoint at a read-only address.
2077 * target.c (memory_xfer_check_region): New function, factored out
2078 from ...
2079 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2080 ULONGEST.
2081 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2082 against the memory region attributes.
2083
2ddf4301
SM
20842014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2085
2086 * NEWS: Announce new exit-code field in -list-thread-groups
2087 output.
2088 * inferior.c (exit_inferior_1): Don't clear exit code.
2089 (inferior_appeared): Clear exit code.
2090 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2091 code.
2092
5fdeec1d
PA
20932014-10-01 Pedro Alves <palves@redhat.com>
2094
2095 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2096 GENERATED" along with emacs/vi read-only markers.
2097 * regformats/aarch64.dat: Regenerate.
2098 * regformats/arm-with-iwmmxt.dat: Regenerate.
2099 * regformats/arm-with-neon.dat: Regenerate.
2100 * regformats/arm-with-vfpv2.dat: Regenerate.
2101 * regformats/arm-with-vfpv3.dat: Regenerate.
2102 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2103 * regformats/i386/amd64-avx.dat: Regenerate.
2104 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2105 * regformats/i386/amd64-avx512.dat: Regenerate.
2106 * regformats/i386/amd64-linux.dat: Regenerate.
2107 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2108 * regformats/i386/amd64-mpx.dat: Regenerate.
2109 * regformats/i386/amd64.dat: Regenerate.
2110 * regformats/i386/i386-avx-linux.dat: Regenerate.
2111 * regformats/i386/i386-avx.dat: Regenerate.
2112 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2113 * regformats/i386/i386-avx512.dat: Regenerate.
2114 * regformats/i386/i386-linux.dat: Regenerate.
2115 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2116 * regformats/i386/i386-mmx.dat: Regenerate.
2117 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2118 * regformats/i386/i386-mpx.dat: Regenerate.
2119 * regformats/i386/i386.dat: Regenerate.
2120 * regformats/i386/x32-avx-linux.dat: Regenerate.
2121 * regformats/i386/x32-avx.dat: Regenerate.
2122 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2123 * regformats/i386/x32-avx512.dat: Regenerate.
2124 * regformats/i386/x32-linux.dat: Regenerate.
2125 * regformats/i386/x32.dat: Regenerate.
2126 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2127 * regformats/mips-dsp-linux.dat: Regenerate.
2128 * regformats/mips-linux.dat: Regenerate.
2129 * regformats/mips64-dsp-linux.dat: Regenerate.
2130 * regformats/mips64-linux.dat: Regenerate.
2131 * regformats/nios2-linux.dat: Regenerate.
2132 * regformats/rs6000/powerpc-32.dat: Regenerate.
2133 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2134 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2135 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2136 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2137 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2138 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2139 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2140 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2141 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2142 * regformats/s390-linux32.dat: Regenerate.
2143 * regformats/s390-linux32v1.dat: Regenerate.
2144 * regformats/s390-linux32v2.dat: Regenerate.
2145 * regformats/s390-linux64.dat: Regenerate.
2146 * regformats/s390-linux64v1.dat: Regenerate.
2147 * regformats/s390-linux64v2.dat: Regenerate.
2148 * regformats/s390-te-linux64.dat: Regenerate.
2149 * regformats/s390x-linux64.dat: Regenerate.
2150 * regformats/s390x-linux64v1.dat: Regenerate.
2151 * regformats/s390x-linux64v2.dat: Regenerate.
2152 * regformats/s390x-te-linux64.dat: Regenerate.
2153 * regformats/tic6x-c62x-linux.dat: Regenerate.
2154 * regformats/tic6x-c62x.dat: Regenerate.
2155 * regformats/tic6x-c64x-linux.dat: Regenerate.
2156 * regformats/tic6x-c64x.dat: Regenerate.
2157 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2158 * regformats/tic6x-c64xp.dat: Regenerate.
2159
db74e4ba
PA
21602014-10-01 Pedro Alves <palves@redhat.com>
2161
2162 * features/Makefile: Update comments.
2163 (XMLTOC): List all xml files we build C files from.
2164 (clean-cfiles): New rule.
2165
d63f2f84
PA
21662014-10-01 Pedro Alves <palves@redhat.com>
2167
2168 * features/i386/amd64-avx512-linux.c: Regenerate.
2169 * features/i386/amd64-avx512.c: Regenerate.
2170 * features/i386/x32-avx512-linux.c: Regenerate.
2171 * features/i386/x32-avx512.c: Regenerate.
2172
20ad026d
PA
21732014-10-01 Pedro Alves <palves@redhat.com>
2174
2175 * features/Makefile (WHICH): Remove arm-with-m,
2176 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2177
acc9fe45
PA
21782014-10-01 Pedro Alves <palves@redhat.com>
2179
2180 * features/Makefile (clean): New rule.
2181
e001e535
PA
21822014-10-01 Pedro Alves <palves@redhat.com>
2183
2184 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2185 (zmm14h): Add missing end quotes.
2186
bdc14417
PA
21872014-10-01 Pedro Alves <palves@redhat.com>
2188
2189 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2190 * features/aarch64.c: Regenerate.
2191
d83ad864
DB
21922014-09-30 Don Breazeal <donb@codesourcery.com>
2193
2194 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2195 code so as to work with follow_fork_inferior.
2196 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2197 (inf_ttrace_create_inferior): Remove reference to
2198 inf_ttrace_vfork_ppid.
2199 (inf_ttrace_attach): Ditto.
2200 (inf_ttrace_detach): Ditto.
2201 (inf_ttrace_kill): Use current_inferior instead of
2202 inf_ttrace_vfork_ppid.
2203 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2204 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2205 inferior away from the parent.
2206 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2207 target_follow_fork.
2208 (follow_fork_inferior): New function.
2209 (follow_inferior_reset_breakpoints): Make function static.
2210 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2211 * linux-nat.c (linux_child_follow_fork): Move target-independent
2212 code to infrun.c:follow_fork_inferior.
2213
29082443
AA
22142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2215
2216 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2217 * gdbarch.c: Regenerate.
2218 * gdbarch.h: Likewise.
2219 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2220 gdbarch method 'regset_from_core_section'.
2221 (get_core_register_section): Remove handling for the case that
2222 regset == NULL and regset_from_core_section is defined.
2223 (get_core_registers): Drop check for deleted method.
2224 * procfs.c (procfs_do_thread_registers): Adjust comment.
2225
f968fe80
AA
22262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2227
2228 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2229 (linux_nat_make_corefile_notes): Remove.
2230 (linux_target_install_ops): Do not set target method
2231 'make_corefile_notes'.
2232 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2233 Remove field.
2234 (linux_corefile_thread_callback): Instead of args->collect, call
2235 linux_collect_thread_registers.
2236 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2237 NULL unless there is a regset iterator.
2238 (linux_make_corefile_notes_1): Remove.
2239 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2240 by linux_make_corefile_notes.
2241 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2242
174ad59a
AA
22432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2244
2245 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2246 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2247 Remove.
2248 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2249
97094034
AA
22502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2251
2252 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2253 (xtensa_iterate_over_regset_sections): New.
2254 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2255
f73d3ce7
AA
22562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2257
2258 * vax-tdep.c (vax_regset_from_core_section): Remove.
2259 (vax_iterate_over_regset_sections): New.
2260 (vax_gdbarch_init): Adjust gdbarch initialization.
2261
cb24567a
AA
22622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2263
2264 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2265 (tilegx_regset_from_core_section): Remove.
2266 (tilegx_iterate_over_regset_sections): New.
2267 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2268
e5139de8
AA
22692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270
2271 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2272 (sparc_iterate_over_regset_sections): New.
2273 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2274 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2275 targets.
2276 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2277 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2278 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2279 target method 'make_corefile_notes'.
2280
c6d41a6f
AA
22812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2282
2283 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2284 'sizeof_gregset' and 'sizeof_fpregset'.
2285 * sh-tdep.c (sh_regset_from_core_section): Remove.
2286 (sh_iterate_over_regset_sections): New.
2287 (sh_gdbarch_init): Adjust gdbarch initialization.
2288 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2289 sizeof_fpregset.
2290 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2291 'sizeof_gregset'.
2292
9845a0b5
AA
22932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294
2295 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2296 (score7_linux_iterate_over_regset_sections): New.
2297 (score_gdbarch_init): Adjust gdbarch initialization.
2298
23ea9aeb
AA
22992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2300
2301 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2302 FreeBSD targets.
2303 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2304 method 'make_corefile_notes'.
2305 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2306 (ppcfbsd_regset_from_core_section): Remove.
2307 (ppcfbsd_iterate_over_regset_sections): New.
2308 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2309 initialization.
2310 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2311 (ppcnbsd_iterate_over_regset_sections): New.
2312 (ppcnbsd_init_abi): Adjust.
2313 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2314 (ppcobsd_iterate_over_regset_sections): New.
2315 (ppcobsd_init_abi): Adjust.
2316 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2317 (rs6000_aix_iterate_over_regset_sections): New.
2318 (rs6000_aix_init_osabi): Adjust.
2319
c5b8d704
AA
23202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2321
2322 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2323 (nios2_regset_from_core_section): Remove.
2324 (nios2_iterate_over_regset_sections): New.
2325 (nios2_linux_init_abi): Adjust gdbarch initialization.
2326
3636e608
AA
23272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2328
2329 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2330 (am33_iterate_over_regset_sections): New.
2331 (am33_linux_init_osabi): Adjust gdbarch initialization.
2332
d4036235
AA
23332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2334
2335 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2336 (mips_linux_iterate_over_regset_sections): New.
2337 (mips_linux_init_abi): Adjust gdbarch initialization.
2338 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2339 (mips64obsd_iterate_over_regset_sections): New.
2340 (mips64obsd_init_abi): Adjust.
2341 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2342 (mipsnbsd_iterate_over_regset_sections): New.
2343 (mipsnbsd_init_abi): Adjust.
2344
b61ddd6e
AA
23452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2346
2347 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2348 (m88k_iterate_over_regset_sections): New.
2349 (m88k_gdbarch_init): Adjust gdbarch initialization.
2350
55a2906a
AA
23512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2352
2353 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2354 (ia64_linux_iterate_over_regset_sections): New.
2355 (ia64_linux_init_abi): Adjust gdbarch initialization.
2356
022c98ab
AA
23572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2358
2359 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2360 (m68kbsd_iterate_over_regset_sections): New.
2361 (m68kbsd_init_abi): Adjust gdbarch initialization.
2362 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2363 (m68k_linux_iterate_over_regset_sections): New.
2364 (m68k_linux_init_abi): Adjust gdbarch initialization.
2365
5fac247f
AA
23662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2367
2368 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2369 (m32r_linux_regset_from_core_section): Remove.
2370 (m32r_linux_iterate_over_regset_sections): New.
2371 (m32r_linux_init_abi): Adjust gdbarch initialization.
2372
490496c3
AA
23732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2374
2375 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2376 (amd64obsd_iterate_over_regset_sections): New.
2377 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2378 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2379 Remove.
2380 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2381 regset_from_core_section initialization.
2382 * i386-tdep.c (i386_regset_from_core_section): Remove.
2383 (i386_iterate_over_regset_sections): New.
2384 (i386_gdbarch_init): Adjust gdbarch initialization.
2385 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2386 (i386_iterate_over_regset_sections): New prototype.
2387 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2388 Remove.
2389 (i386obsd_aout_iterate_over_regset_sections): New.
2390 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2391 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2392 targets.
2393 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2394 (amd64fbsd_init_abi): Call fbsd_init_abi.
2395 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2396 (i386fbsd4_init_abi): Call fbsd_init_abi.
2397 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2398 target method 'make_corefile_notes'.
2399 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2400
50c5eb53
AA
24012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2402
2403 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2404 (hppa_hpux_iterate_over_regset_sections): New.
2405 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2406 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2407 (hppa_linux_iterate_over_regset_sections): New.
2408 (hppa_linux_init_abi): Adjust.
2409 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2410 (hppanbsd_iterate_over_regset_sections): New.
2411 (hppanbsd_init_abi): Adjust.
2412 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2413 (hppaobsd_iterate_over_regset_sections): New.
2414 (hppaobsd_init_abi): Adjust.
2415
66afae4f
AA
24162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2417
2418 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2419 (frv_linux_iterate_over_regset_sections): New.
2420 (frv_linux_init_abi): Adjust gdbarch initialization.
2421
ed09174e
AA
24222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2423
2424 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2425 (armbsd_iterate_over_regset_sections): New prototype.
2426 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2427 (armbsd_iterate_over_regset_sections): New.
2428 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2429 initialization.
2430
dff2166e
AA
24312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2432
2433 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2434 (alpha_linux_iterate_over_regset_sections): New.
2435 (alpha_linux_init_abi): Adjust gdbarch initialization.
2436 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2437 prototype.
2438 (alphanbsd_iterate_over_regset_sections): New prototype.
2439
4108500a
AA
24402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2441
2442 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2443 Remove.
2444 (aarch64_linux_iterate_over_regset_sections): New.
2445 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2446
a904c024
AA
24472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2448
2449 * fbsd-tdep.c: New file.
2450 * fbsd-tdep.h: New file.
2451 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2452 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2453 (ALLDEPFILES): Add fbsd-tdep.c.
2454
8f0435f7
AA
24552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2456
2457 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2458 parameter.
2459 * gdbarch.h: Regenerate.
2460 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2461 iterator.
2462 (get_core_register_section): Add parameter 'regset' and use it, if
2463 set. Add parameter 'min_size' and verify the bfd section size
2464 against it.
2465 (get_core_registers_cb): Add parameter 'regset' and pass it to
2466 get_core_register section. For the "standard" register sections
2467 ".reg" and ".reg2", set an appropriate default for human_name.
2468 (get_core_registers): Don't abort when the gdbarch has an iterator
2469 but no regset_from_core_section. Add NULL/0 for parameters
2470 'regset'/'min_size' in calls to get_core_register_section.
2471 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2472 'regset' and use it instead of calling the
2473 regset_from_core_section gdbarch method.
2474 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2475 * i386-tdep.c (i386_supply_xstateregset)
2476 (i386_collect_xstateregset, i386_xstateregset): Moved to
2477 i386-linux-tdep.c.
2478 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2479 .reg-xstate.
2480 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2481 core file support only if the regset iterator hasn't been set.
2482 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2483 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2484 Moved from i386-tdep.c and renamed to *_linux*.
2485 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2486 each callback invocation. Allow any .reg-xstate size when reading
2487 from a core file.
2488 * amd64-tdep.c (amd64_supply_xstateregset)
2489 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2490 amd64-linux-tdep.c.
2491 (amd64_regset_from_core_section): Remove.
2492 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2493 install an amd64-specific regset_from_core_section gdbarch method.
2494 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2495 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2496 Moved from amd64-tdep.c and renamed to *_linux*.
2497 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2498 to each callback invocation. Allow any .reg-xstate size when
2499 reading from a core file.
2500 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2501 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2502 each callback invocation.
2503 (arm_linux_init_abi): No longer set the regset_from_core_section
2504 gdbarch method.
2505 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2506 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2507 each callback invocation.
2508 (ppc_linux_init_abi): No longer set the regset_from_core_section
2509 gdbarch method.
2510 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2511 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2512 (s390_regset_from_core_section): Remove.
2513 (s390_iterate_over_regset_sections): Add regset parameter to each
2514 callback invocation.
2515 (s390_gdbarch_init): No longer set the regset_from_core_section
2516 gdbarch method. Drop initialization of deleted tdep fields.
2517
5aa82d05
AA
25182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2519
2520 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2521 (amd64_linux_iterate_over_regset_sections): New.
2522 (amd64_linux_init_abi_common): Don't install the regset section
2523 list, but the new iterator in gdbarch.
2524 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2525 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2526 (arm_linux_iterate_over_regset_sections): ...here. New function.
2527 (arm_linux_init_abi): Set iterator instead of section list.
2528 * corelow.c (get_core_registers_cb): New function, logic moved
2529 from...
2530 (get_core_registers): ...loop body here. Use new iterator method
2531 instead of walking through the regset section list.
2532 * gdbarch.sh: Remove 'core_regset_sections'. New method
2533 'iterate_over_regset_sections'. New typedef
2534 'iterate_over_regset_sections_cb'.
2535 * gdbarch.c: Regenerate.
2536 * gdbarch.h: Likewise.
2537 * i386-linux-tdep.c (i386_linux_regset_sections)
2538 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2539 Remove.
2540 (i386_linux_iterate_over_regset_sections): New.
2541 (i386_linux_init_abi): Don't choose a regset section list, but
2542 install new iterator in gdbarch.
2543 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2544 (linux_collect_regset_section_cb): New function, logic moved
2545 from...
2546 (linux_collect_thread_registers): ...loop body here. Use iterator
2547 method instead of walking through list.
2548 (linux_make_corefile_notes_1): Check for presence of iterator
2549 method instead of regset section list.
2550 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2551 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2552 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2553 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2554 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2555 (ppc_linux_init_abi): Don't choose from above regset section
2556 lists, but install new iterator in gdbarch.
2557 * regset.h (struct core_regset_section): Remove.
2558 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2559 have_linux_v1, have_linux_v2, and have_tdb.
2560 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2561 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2562 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2563 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2564 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2565 (s390_iterate_over_regset_sections): ...here. New function. Use
2566 new tdep fields.
2567 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2568 regset section lists, but install new iterator.
2569
2eca4a8d
JK
25702014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2571
2572 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2573
a73c2b56
SM
25742014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2575
2576 * progspace.c (print_program_space): Don't prune program spaces
2577 before printing them.
2578
03d46957
PA
25792014-09-25 Pedro Alves <palves@redhat.com>
2580
2581 * infrun.c (user_visible_resume_ptid): Don't check
2582 singlestep_breakpoints_inserted_p.
2583
e558d7c1
PA
25842014-09-25 Pedro Alves <palves@redhat.com>
2585
2586 * breakpoint.c (should_be_inserted): Add debug output.
2587
7f89fd65
PA
25882014-09-25 Pedro Alves <palves@redhat.com>
2589
2590 * infrun.c (stepping_past_instruction_at)
2591 (clear_exit_convenience_vars): Point at infrun.h instead of
2592 inferior.h.
2593 (handle_signal_stop): Fix typo.
2594
b7576e5c
YQ
25952014-09-24 Yao Qi <yao@codesourcery.com>
2596
2597 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2598 bitmask.
2599
9a6cf368
GB
26002014-09-22 Gary Benson <gbenson@redhat.com>
2601
2602 * target.c (target_stop): Updated comment.
2603
03f4463b
GB
26042014-09-22 Gary Benson <gbenson@redhat.com>
2605
2606 * target/target.h (target_stop_ptid): Renamed as...
2607 (target_stop_and_wait): New function. Updated comment.
2608 All uses updated.
2609 (target_continue_ptid): Renamed as...
2610 (target_continue_no_signal): New function. Updated comment.
2611 All uses updated.
2612
a25a5a45
PA
26132014-09-22 Pedro Alves <palves@redhat.com>
2614
2615 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2616 and "auto" merged.
2617 * breakpoint.c (enum ugll_insert_mode): New enum.
2618 (always_inserted_mode): Now a plain boolean.
2619 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2620 (breakpoints_always_inserted_mode): Delete.
2621 (breakpoints_should_be_inserted_now): New function.
2622 (insert_breakpoints): Pass UGLL_INSERT to
2623 update_global_location_list instead of calling
2624 insert_breakpoint_locations manually.
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): Change parameter type from boolean
2631 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2632 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2633 (update_global_location_list_nothrow): Change parameter type from
2634 boolean to enum ugll_insert_mode.
2635 (_initialize_breakpoint): "breakpoint always-inserted" option is
2636 now a boolean command. Update help text.
2637 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2638 (breakpoints_should_be_inserted_now): New declaration.
2639 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2640 Remove breakpoints_always_inserted_mode check.
2641 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2642 * remote.c (remote_start_remote): Likewise.
2643
04086b45
PA
26442014-09-22 Pedro Alves <palves@redhat.com>
2645
2646 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2647 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2648 Instead, pass UGLL_INSERT to update_global_location_list.
2649 (update_global_location_list): Change parameter type from boolean
2650 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2651 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2652 (create_solib_event_breakpoint_1): New, factored out from ...
2653 (create_solib_event_breakpoint): ... this.
2654 (create_and_insert_solib_event_breakpoint): Use
2655 create_solib_event_breakpoint_1 instead of calling
2656 insert_breakpoint_locations manually.
2657 (update_global_location_list): Handle UGLL_INSERT.
2658
44702360
PA
26592014-09-22 Pedro Alves <palves@redhat.com>
2660
2661 * breakpoint.c (enum ugll_insert_mode): New enum.
2662 (update_global_location_list)
2663 (update_global_location_list_nothrow): Change parameter type from
2664 boolean to enum ugll_insert_mode. All callers adjusted.
2665
93c6145a
JB
26662014-09-19 Joel Brobecker <brobecker@adacore.com>
2667
2668 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2669 SystemTap support in GDB.
2670
89a5711c
DB
26712014-09-19 Don Breazeal <donb@codesourcery.com>
2672
2673 * linux-nat.c (linux_handle_extended_wait): Call
2674 linux_ptrace_get_extended_event.
2675 (wait_lwp): Call linux_is_extended_waitstatus.
2676 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2677 and linux_is_extended_waitstatus.
2678 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2679 linux_ptrace_get_extended_event.
2680 (linux_ptrace_get_extended_event): New function.
2681 (linux_is_extended_waitstatus): New function.
2682 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2683 (linux_is_extended_waitstatus): New declarations.
2684
c3b7b696
YQ
26852014-09-19 Yao Qi <yao@codesourcery.com>
2686
2687 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2688 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2689 comments. Callers update.
2690 (dwarf_decode_lines): Likewise.
2691 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2692 comments. Skip the line table if 'lowpc' is greater than
2693 'address'. Don't check
2694 dwarf2_per_objfile->has_section_at_zero.
2695
2b4fd423
DE
26962014-09-18 Doug Evans <dje@google.com>
2697
2698 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2699 * python/py-symtab.c (stpy_get_producer): New function.
2700 (symtab_object_getset): Add "producer" attribute.
2701
5e43d467
UW
27022014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2703
2704 PR gdb/17384
2705 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2706 (do_captured_read_memory_integer): Remove.
2707 (safe_read_memory_integer): Use target_read_memory directly instead
2708 of catching errors in do_captured_read_memory_integer.
2709
04e79979
MR
27102014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2711
2712 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2713 not gdb/doc.
2714
76aeec5b
SDJ
27152014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2716
2717 * objc-lang.c (find_implementation_from_class): Remove dead code.
2718
2f693f9d
SDJ
27192014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2720
2721 PR cli/7233
2722 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2723 "fprintf_unfiltered (gdb_stdlog...)".
2724
bb9d5f81
PP
27252014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2726
2727 PR breakpoints/12526
2728 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2729 val_bitsize.
2730 * breakpoint.c (watch_command_1): Use these fields to retain
2731 bitfield information.
2732 (extract_bitfield_from_watchpoint_value): New function.
2733 (watchpoint_check): Use it.
2734 (update_watchpoint): Use it. Optimize the address and length of a
2735 HW watchpoint pointing to a bitfield.
2736 * value.h (unpack_value_bitfield): New prototype.
2737 * value.c (unpack_value_bitfield): Make extern.
2738
05db5edd
ST
27392014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2740
2741 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2742 x86-dregs.o.
2743 * gnu-nat.c (inf_threads): New function.
2744 * gnu-nat.h (inf_threads_ftype): New typedef.
2745 (inf_threads): New declaration.
2746 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2747 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2748 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2749 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2750 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2751 (i386_gnu_dr_get_control): New functions.
2752 (reg_addr): New structure.
2753 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2754 i386 debugging register hooks.
2755 * NEWS: Mention this.
2756
5a578da5
OJ
27572014-08-13 Omair Javaid <omair.javaid@linaro.org>
2758
2759 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2760 vector data transfer instructions.
2761 (arm_record_coproc_data_proc): Updated.
2762
f20f80dd
OJ
27632014-08-13 Omair Javaid <omair.javaid@linaro.org>
2764
2765 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2766 arm_record_exreg_ld_st_insn.
2767 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2768 load/store insns.
2769
851f26ae
OJ
27702014-08-13 Omair Javaid <omair.javaid@linaro.org>
2771
2772 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2773 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2774 processing instructions.
2775
1e1b6563
OJ
27762014-08-13 Omair Javaid <omair.javaid@linaro.org>
2777
2778 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2779 for advance SIMD struct ld/st insn.
2780 (thumb2_record_decode_insn_handler): Replace stub handler with
2781 thumb2_record_asimd_struct_ld_st.
2782
60cc5e93
OJ
27832014-08-13 Omair Javaid <omair.javaid@linaro.org>
2784
2785 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2786 for asimd, vfp and coprocessor insns.
2787 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2788 and coprocessor insns.
2789 (thumb2_record_coproc_insn): New function.
2790 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2791 handlers.
2792 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2793 opcode 110 insns.
2794
81219e53
DE
27952014-09-13 Doug Evans <xdje42@gmail.com>
2796
2797 * NEWS: Mention new "queue-signal" command.
2798 * infcmd.c (queue_signal_command): New function.
2799 (_initialize_infcmd): Add new queue-signal command.
2800
d36bf488
DE
28012014-09-13 Doug Evans <xdje42@gmail.com>
2802
2803 * linux-nat.c (wait_lwp): Add debugging printf.
2804 (linux_nat_wait_1): Ditto.
2805
f37f681c
PA
28062014-09-12 Pedro Alves <palves@redhat.com>
2807
2808 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2809 (create_and_insert_solib_event_breakpoint): New functions.
2810 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2811 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2812 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2813 (remove_dbx_link_breakpoint): Delete function.
2814 (insert_dbx_link_bpt_in_file): Use
2815 create_and_insert_solib_event_breakpoint instead of
2816 deprecated_insert_raw_breakpoint.
2817 (procfs_wait): Don't check whether we hit __dbx_link here.
2818 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2819 here.
2820 * solib-irix.c (base_breakpoint): Delete global.
2821 (disable_break): Delete function.
2822 (enable_break): Use create_solib_event_breakpoint
2823 instead of deprecated_insert_raw_breakpoint.
2824 (irix_solib_handle_event): New function.
2825 (irix_solib_create_inferior_hook): Don't run the target or disable
2826 the mapping-complete breakpoint here.
2827 (_initialize_irix_solib): Install irix_solib_handle_event as
2828 so_ops->handle_event hook.
2829
9d9bf2df
EBM
28302014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2831 Ulrich Weigand  <uweigand@de.ibm.com>
2832
2833 PR tdep/17379
2834 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2835 instead of read_memory_unsigned_integer.
2836
b006a80e
GB
28372014-09-12 Gary Benson <gbenson@redhat.com>
2838
2839 * nat/linux-waitpid.c: Include common-defs.h.
2840 [GDBSERVER]: Add FIXME comment.
2841 [!GDBSERVER]: Don't include defs.h or signal.h.
2842 (linux_debug) [!GDBSERVER]: Remove empty block.
2843
296b1496
GB
28442014-09-12 Gary Benson <gbenson@redhat.com>
2845
2846 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2847 Don't include defs.h or server.h.
2848
53f81362
GB
28492014-09-12 Gary Benson <gbenson@redhat.com>
2850
2851 * nat/linux-btrace.c: Include common-defs.h.
2852 Don't include defs.h, server.h or gdbthread.h.
2853 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2854
727605ca
GB
28552014-09-12 Gary Benson <gbenson@redhat.com>
2856
2857 * common/agent.c: Include common-defs.h.
2858 Don't include defs.h or server.h.
2859 * common/buffer.c: Likewise.
2860 * common/common-debug.c: Likewise.
2861 * common/common-utils.c: Likewise.
2862 * common/errors.c: Likewise.
2863 * common/filestuff.c: Likewise.
2864 * common/format.c: Likewise.
2865 * common/gdb_vecs.c: Likewise.
2866 * common/print-utils.c: Likewise.
2867 * common/ptid.c: Likewise.
2868 * common/rsp-low.c: Likewise.
2869 * common/signals.c: Likewise.
2870 * common/vec.c: Likewise.
2871 * common/xml-utils.c: Likewise.
2872 * nat/linux-osdata.c: Likewise.
2873 * nat/linux-procfs.c: Likewise.
2874 * nat/linux-ptrace.c: Likewise.
2875 * nat/mips-linux-watch.c: Likewise.
2876 * target/waitstatus.c: Likewise.
2877
361c8ade
GB
28782014-09-12 Tom Tromey <tromey@redhat.com>
2879 Gary Benson <gbenson@redhat.com>
2880
2881 * common/common-regcache.h: New file.
2882 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2883 * regcache.h: Include common-regcache.h.
2884 (regcache_read_pc): Don't declare.
2885 * regcache.c (get_thread_regcache_for_ptid): New function.
2886 * nat/linux-btrace.c: Don't include regcache.h.
2887 Include common-regcache.h.
2888 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2889
a01cbb49
TS
28902014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2891
2892 * regcache.h (struct regset): Declare.
2893
98880d46
PA
28942014-09-11 Pedro Alves <palves@redhat.com>
2895
2896 PR gdb/17347
2897 * main.c: Include "infrun.h".
2898 (catch_command_errors, catch_command_errors_const): Wait for the
2899 foreground command to complete.
2900 * top.c (maybe_wait_sync_command_done): New function, factored out
2901 from ...
2902 (maybe_wait_sync_command_done): ... here.
2903 * top.h (maybe_wait_sync_command_done): New declaration.
2904
bd9269f7
GB
29052014-09-11 Tom Tromey <tromey@redhat.com>
2906 Gary Benson <gbenson@redhat.com>
2907
2908 * common/symbol.h: New file.
2909 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2910 * minsyms.c (find_minimal_symbol_address): New function.
2911 * common/agent.c: Include common/symbol.h.
2912 [!GDBSERVER]: Don't include objfiles.h.
2913 (agent_look_up_symbols): Use find_minimal_symbol_address.
2914
f8c1d06b
GB
29152014-09-11 Gary Benson <gbenson@redhat.com>
2916
2917 * target/target.h (target_stop_ptid, target_continue_ptid):
2918 Declare.
2919 * target.c (target_stop_ptid, target_continue_ptid): New
2920 functions.
2921 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2922 (agent_run_command): Always use target_stop_ptid and
2923 target_continue_ptid.
2924
721ec300
GB
29252014-09-11 Tom Tromey <tromey@redhat.com>
2926 Gary Benson <gbenson@redhat.com>
2927
2928 * target/target.h: New file.
2929 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2930 * target.h: Include target/target.h.
2931 (target_read_memory, target_write_memory): Don't declare.
2932 * target.c (target_read_uint32): New function.
2933 * common/agent.c: Include target/target.h.
2934 [!GDBSERVER]: Don't include target.h.
2935 (helper_thread_id): Type changed to uint32_t.
2936 (agent_get_helper_thread_id): Use target_read_uint32.
2937 (agent_run_command): Always use target_read_memory and
2938 target_write_memory.
2939 (agent_capability): Type changed to uint32_t.
2940 (agent_capability_check): Use target_read_uint32.
2941
c5e92cca
GB
29422014-09-11 Gary Benson <gbenson@redhat.com>
2943
2944 * common/common-debug.h (show_debug_regs): Declare.
2945 * common/common-debug.c (show_debug_regs): Define.
2946 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2947 all uses with show_debug_regs. Replace all uses that considered
2948 debug_hw_points as a multi-value integer with straight boolean
2949 uses.
2950 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2951 with show_debug_regs.
2952 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2953 all uses with show_debug_regs.
2954 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2955 uses with show_debug_regs.
2956
eeef931a
UW
29572014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2958
2959 * findvar.c (address_from_register): Handle targets requiring
2960 a special conversion routine even for plain pointer types.
2961
8efa9855
UW
29622014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2963
2964 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2965 (store_register): Do not call exec_one_dummy_insn.
2966
eb479039
JB
29672014-09-10 Joel Brobecker <brobecker@adacore.com>
2968
2969 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2970 dereference it first. Use value_enclosing_type instead of
2971 value_type.
2972 (ada_array_length): Likewise.
2973
deede10c
JB
29742014-09-10 Joel Brobecker <brobecker@adacore.com>
2975
2976 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2977 Adjust function implementation and documentation accordingly.
2978 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2979 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2980 Update call to ada_value_ptr_subscript.
2981
7828a5f5
JB
29822014-09-10 Joel Brobecker <brobecker@adacore.com>
2983
2984 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2985 instead of VAL's type.
2986
35782f14
JB
29872014-09-10 Joel Brobecker <brobecker@adacore.com>
2988
2989 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2990
d342a0da
DE
29912014-09-09 Doug Evans <xdje42@gmail.com>
2992
2993 PR guile/17367
2994 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2995 last parameter to pkg-config, not first.
2996 * configure.ac: Pass --with-guile provided pkg-config path to
2997 GDB_GUILE_PROGRAM_NAMES.
2998 * configure: Regenerate.
2999
b4a3d263
GKB
30002014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3001
3002 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3003 Bertazi".
3004
6e466374
MR
30052014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3006
3007 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3008 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3009 the list of sections determining GDB_OSABI_IRIX.
3010
a1ada89a
JH
30112014-09-09 James Hogan <james.hogan@imgtec.com>
3012
3013 * MAINTAINERS (Write After Approval): Add "James Hogan".
3014
86db008d
JH
30152014-09-09 James Hogan <james.hogan@imgtec.com>
3016
3017 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3018
72fde3df
JB
30192014-09-09 Joel Brobecker <brobecker@adacore.com>
3020
3021 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3022
92d8d229
DE
30232014-09-08 Doug Evans <xdje42@gmail.com>
3024
3025 PR 17247
3026 * guile.c: #include <signal.h>.
3027 (_initialize_guile): Block SIGCHLD while initializing Guile.
3028
3029 Replaces the following, which is reverted.
3030
3031 2014-07-26 Doug Evans <xdje42@gmail.com>
3032
3033 PR 17185
3034 * configure.ac: Add check for header gc/gc.h.
3035 Add check for function setenv.
3036 * configure: Regenerate.
3037 * config.in: Regenerate.
3038 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3039
d81412aa
DE
30402014-09-08 Doug Evans <xdje42@gmail.com>
3041
3042 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3043 with named constant. Fix style of pointer comparison.
3044 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3045
a9f116cb
GKB
30462014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3047
3048 PR gdb/17035
3049 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3050 decide whether we display the command on "show user".
3051 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3052 printing command name.
3053 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3054 * cli/cli-decode.c (cli_user_command_p): Create helper function
3055 to verify whether cmd_list_element is a user-defined command.
3056
c75bd3a2
JK
30572014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3058
3059 PR python/17355
3060 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3061 Fix goto out of TRY_CATCH.
3062
faa42425 30632014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3064 Tom Tromey <tromey@redhat.com>
faa42425
DE
3065
3066 PR 15276
3067 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3068 $_any_caller_matches.
3069 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3070 * python/lib/gdb/function/caller_is.py: New file.
3071
0d41ba00
DE
30722014-09-06 Doug Evans <xdje42@gmail.com>
3073
3074 * infcmd.c (program_info): Fix typo.
3075
474ca4f6
SDJ
30762014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3077
3078 PR gdb/17235
3079 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3080 'number'. New variable 'has_digit'. Rewrite code to deal with
3081 subexpressions on SDT probes.
3082
ebf13736
PA
30832014-09-04 Pedro Alves <palves@redhat.com>
3084
3085 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3086 the input is only one character long.
3087
eb0b0463
SDJ
30882014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3089
3090 PR fortran/17237
3091 * f-valprint.c (f_val_print): Specify the correct print option to
3092 use when printing integer values.
3093
5ee44bfa
GB
30942014-09-04 Gary Benson <gbenson@redhat.com>
3095
3096 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3097 Remove code to cope with LWPs wrapped as PIDs.
3098 Add assertions to ensure no wrapped LWPs are passed.
3099
4875ffdb
PA
31002014-09-04 Pedro Alves <palves@redhat.com>
3101
3102 * value.c (value_ranges_copy_adjusted): New function, factored out
3103 from ...
3104 (value_contents_copy_raw): ... here.
3105 (unpack_value_bits_as_long_1): Rename back to ...
3106 (unpack_bits_as_long): ... this. Remove 'original_value' and
3107 'result' parameters. Change return type to LONGEST.
3108 (unpack_value_bits_as_long): Delete.
3109 (unpack_value_field_as_long_1): Delete.
3110 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3111 (unpack_value_bitfield): New function.
3112 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3113 (value_fetch_lazy): Use unpack_value_bitfield.
3114 * value.h (unpack_value_bits_as_long): Delete declaration.
3115
5f3b99cf
SS
31162014-09-03 Sasha Smundak <asmundak@google.com>
3117
3118 * python/py-frame.c (frapy_read_register): New function.
3119
ac740bc7
JH
31202014-09-03 James Hogan <james.hogan@imgtec.com>
3121
3122 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3123 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3124
7d793aa9
SDJ
31252014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3126
3127 PR python/16699
3128 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3129 function.
3130 (add_cmd): Set "completer_handle_brkchars" to NULL.
3131 * cli/cli-decode.h (struct cmd_list_element)
3132 <completer_handle_brkchars>: New field.
3133 * command.h (completer_ftype_void): New typedef.
3134 (set_cmd_completer_handle_brkchars): New prototype.
3135 * completer.c (set_gdb_completion_word_break_characters): New
3136 function.
3137 (complete_line_internal): Call "completer_handle_brkchars"
3138 callback from command.
3139 * completer.h: Include "command.h".
3140 (set_gdb_completion_word_break_characters): New prototype.
3141 * python/py-cmd.c (cmdpy_completer_helper): New function.
3142 (cmdpy_completer_handle_brkchars): New function.
3143 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3144 (cmdpy_init): Set completer_handle_brkchars to
3145 cmdpy_completer_handle_brkchars.
3146
97ea6506
GB
31472014-09-03 Gary Benson <gbenson@redhat.com>
3148
3149 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3150 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3151 Loop conditions changed to equivalent form.
3152 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3153 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3154 ALL_DEBUG_ADDRESS_REGISTERS.
3155
d1437815
JB
31562014-09-03 Joel Brobecker <brobecker@adacore.com>
3157
3158 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3159 description fix.
3160
9b94fcf1
DE
31612014-09-02 Doug Evans <dje@google.com>
3162
3163 * typeprint.c (find_global_typedef): Fix comment.
3164
df7e5265
GB
31652014-09-02 Gary Benson <gbenson@redhat.com>
3166
3167 * i386-nat.h: Renamed as...
3168 * x86-nat.h: New file. All type, function and variable name
3169 prefixes changed from "i386_" to "x86_". All references updated.
3170 * i386-nat.c: Renamed as...
3171 * x86-nat.c: New file. All type, function and variable name
3172 prefixes changed from "i386_" to "x86_". All references updated.
3173 * common/i386-xstate.h: Renamed as...
3174 * common/x86-xstate.h: New file. All type, function and variable
3175 name prefixes changed from "i386_" to "x86_". All references
3176 updated.
3177 * nat/i386-cpuid.h: Renamed as...
3178 * nat/x86-cpuid.h: New file. All type, function and variable name
3179 prefixes changed from "i386_" to "x86_". All references updated.
3180 * nat/i386-gcc-cpuid.h: Renamed as...
3181 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3182 name prefixes changed from "i386_" to "x86_". All references
3183 updated.
3184 * nat/i386-dregs.h: Renamed as...
3185 * nat/x86-dregs.h: New file. All type, function and variable name
3186 prefixes changed from "i386_" to "x86_". All references updated.
3187 * nat/i386-dregs.c: Renamed as...
3188 * nat/x86-dregs.c: New file. All type, function and variable name
3189 prefixes changed from "i386_" to "x86_". All references updated.
3190
1c3569d4
MR
31912014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3192
3193 * varobj.c (_initialize_varobj): Move to the end of file.
3194
ff55e1b5
GB
31952014-08-29 Gary Benson <gbenson@redhat.com>
3196
3197 * common/common-exceptions.h: New file.
3198 * common/common-exceptions.c: Likewise.
3199 * Makefile.in (SFILES): Add common/common-exceptions.c.
3200 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3201 (COMMON_OBS): Add common-exceptions.o.
3202 (common-exceptions.o): New rule.
3203 * exceptions.h (common-exceptions.h): Include.
3204 (gdb_setjmp.h): Do not include.
3205 (return_reason): Moved to common-exceptions.h.
3206 (enum return_reason): Likewise.
3207 (RETURN_MASK): Likewise.
3208 (typedef return_mask): Likewise.
3209 (enum errors): Likewise.
3210 (struct gdb_exception): Likewise.
3211 (exceptions_state_mc_init): Likewise.
3212 (exceptions_state_mc_action_iter): Likewise.
3213 (exceptions_state_mc_action_iter_1): Likewise.
3214 (TRY_CATCH): Likewise.
3215 (throw_exception): Likewise.
3216 (throw_verror): Likewise.
3217 (throw_vquit): Likewise.
3218 (throw_error): Likewise.
3219 (throw_quit): Likewise.
3220 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3221 (enum catcher_action): Likewise.
3222 (struct catcher): Likewise.
3223 (current_catcher): Likewise.
3224 (catcher_list_size): Likewise.
3225 (exceptions_state_mc_init): Likewise.
3226 (catcher_pop): Likewise.
3227 (exceptions_state_mc): Likewise.
3228 (exceptions_state_mc_action_iter): Likewise.
3229 (exceptions_state_mc_action_iter_1): Likewise.
3230 (throw_exception): Likewise.
3231 (exception_messages): Likewise.
3232 (exception_messages_size): Likewise.
3233 (throw_it): Likewise.
3234 (throw_verror): Likewise.
3235 (throw_vquit): Likewise.
3236 (throw_error): Likewise.
3237 (throw_quit): Likewise.
3238 (prepare_to_throw_exception): New function.
3239
e9bcb658
GB
32402014-08-29 Gary Benson <gbenson@redhat.com>
3241
3242 * common/gdb_setjmp.h: New file.
3243 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3244 * configure.ac: Move sigsetjmp check...
3245 * common/common.m4: ...here.
3246 * configure: Regenerate.
3247 * cp-support.c (SIGJMP_BUF): Delete.
3248 (SIGSETJMP): Likewise.
3249 (SIGLONGJMP): Likewise.
3250 * exceptions.h (gdb_setjmp.h): Include.
3251 (setjmp.h): Do not include.
3252 (EXCEPTIONS_SIGJMP_BUF): Delete.
3253 (EXCEPTIONS_SIGSETJMP): Likewise.
3254 (EXCEPTIONS_SIGLONGJMP): Likewise.
3255 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3256 from gdb_setjmp.h.
3257 * exceptions.c: Likewise.
3258
e3180625
GB
32592014-08-29 Gary Benson <gbenson@redhat.com>
3260
3261 * cleanups.h: Moved to...
3262 * common/cleanups.h: New file.
3263 * cleanups.c: Moved to...
3264 * common/cleanups.c: New file. Include common-defs.h and
3265 cleanups.h. Do not include defs.h.
3266 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3267 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3268 (cleanups.o): New rule.
3269
e3d6ba5d
GB
32702014-08-29 Gary Benson <gbenson@redhat.com>
3271
3272 * common/errors.h (internal_warning): New declaration.
3273 (internal_vwarning): Likewise.
3274 * common/errors.c (internal_warning): New function.
3275 * utils.h (internal_warning): Don't declare.
3276 (internal_vwarning): Likewise.
3277 * utils.c (internal_warning): Removed.
3278
075c7033
GB
32792014-08-29 Gary Benson <gbenson@redhat.com>
3280
3281 * main.c (captured_main): Use warning during startup.
3282 Prefix startup warning messages with command name.
3283
91b35fd0
GB
32842014-08-29 Gary Benson <gbenson@redhat.com>
3285
3286 * main.c (captured_main): Handle usage errors with error.
3287
b1ec390e
GB
32882014-08-29 Gary Benson <gbenson@redhat.com>
3289
3290 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3291 exit pair with a call to error. Wrap the message with _().
3292
fd0ef3dd
GB
32932014-08-29 Gary Benson <gbenson@redhat.com>
3294
3295 * main.c (captured_main): Replace a fprintf/exit
3296 pair with a call to error. Wrap the message with _().
3297
e0e6bcab
GB
32982014-08-29 Gary Benson <gbenson@redhat.com>
3299
3300 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3301 pairs with calls to error. Wrap the message with _().
3302
0d2f5c07
GB
33032014-08-29 Gary Benson <gbenson@redhat.com>
3304
3305 * utils.c (vwarning): Protect calls to target_terminal_ours
3306 and wrap_here.
3307
5df43998
GB
33082014-08-29 Gary Benson <gbenson@redhat.com>
3309
3310 * exceptions.c (print_flush): Protect calls to
3311 target_terminal_ours and wrap_here.
3312
2437fd32
GB
33132014-08-29 Gary Benson <gbenson@redhat.com>
3314
3315 * utils.h (filtered_printing_initialized): New declaration.
3316 * utils.c (abort_with_message): New function.
3317 (internal_vproblem): Use abort_with_message for first level
3318 recursive internal problems, and if gdb_stderr is not set up.
3319 Protect calls to target_terminal_ours, begin_line and query.
3320
f1f58506
DE
33212014-08-28 Doug Evans <dje@google.com>
3322
3323 * symtab.c (in_prologue): Move definition to better spot.
3324 (skip_prologue_using_sal): Ditto.
3325
aab2f208
DE
33262014-08-28 Doug Evans <dje@google.com>
3327
3328 * symtab.c (find_function_start_sal): Move definition to better spot.
3329
6b65d1b6
YQ
33302014-08-28 Yao Qi <yao@codesourcery.com>
3331
3332 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3333 found_stack_adjust in forward scan. Remove condition check
3334 on found_stack_adjust which is always true. Indent the code.
3335
a1b34d15
YQ
33362014-08-28 Yao Qi <yao@codesourcery.com>
3337
3338 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3339 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3340 (dwarf_decode_lines): Remove argument
3341 want_line_info. Remove condition check on want_line_info.
3342 Callers update.
3343
d5962de5
DE
33442014-08-27 Doug Evans <dje@google.com>
3345
3346 * dwarf2read.c (dwarf_record_line): Fix typo.
3347
9b139002
SDJ
33482014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3349
3350 * target.h (struct target_ops::to_terminal_save_ours): Remove
3351 declaration.
3352 (target_terminal_save_ours): Remove macro.
3353 * target-delegates.c: Regenerate.
3354 * inf-child.c (inf_child_target): Don't set the nonexistent
3355 field to_terminal_save_ours.
3356 * inferior.h (child_terminal_save_ours): Remove declaration.
3357 * terminal.h (gdb_save_tty_state): New declaration.
3358 * inflow.c (child_terminal_save_ours): Rename to ...
3359 (gdb_save_tty_state): ... this.
3360 * tui/tui.c: Include terminal.h.
3361 (tui_enable): Use gdb_save_tty_state instead of
3362 target_terminal_save_ours.
3363 (tui_disable): Likewise.
3364
9debeba0
DE
33652014-08-25 Doug Evans <dje@google.com>
3366
3367 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3368 Pass NULL instead of 0 for context pointer.
3369
428fc5fc
YQ
33702014-08-25 Yao Qi <yao@codesourcery.com>
3371
3372 * dwarf2read.c: Fix grammatical error.
3373
cdc07690
YQ
33742014-08-24 Yao Qi <yao@codesourcery.com>
3375
3376 * dwarf2read.c (scan_partial_symbols): Update comments.
3377 Rename argument 'need_pc' with 'set_addrmap'.
3378 (add_partial_namespace): Rename argument 'need_pc' with
3379 'set_addrmap'.
3380 (add_partial_module): Likewise.
3381 (add_partial_subprogram): Likewise. Update comments.
3382 (dwarf2_name): Fix typo.
3383
a05a36a5
DE
33842014-08-22 Doug Evans <dje@google.com>
3385
3386 PR 17276
3387 * dwarf2read.c (dwarf_record_line_p): New function.
3388 (dwarf_decode_lines_1): Ignore subsequent line number entries
3389 for the same line if any entry had a non-zero discriminator.
3390
252a6764
DE
33912014-08-22 Doug Evans <dje@google.com>
3392
3393 * buildsym.h (record_line_ftype): New typedef.
3394 (record_line): Use it.
3395 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3396 (dwarf_decode_lines_1): Call them.
3397
510db052
YQ
33982014-08-22 Yao Qi <yao@codesourcery.com>
3399
3400 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3401 (ctf_end): Remove code.
3402
22fd09ae
JK
34032014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3404
3405 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3406 (linux_make_corefile_notes): call update_thread_list, protected against
3407 exceptions.
3408
656e8868
PA
34092014-08-21 Pedro Alves <palves@redhat.com>
3410
3411 * infcmd.c (attach_command): Remove comment.
3412
de589d04
WN
34132014-08-21 Bin Cheng <bin.cheng@arm.com>
3414
3415 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3416 unsigned LONGEST to ULONGEST.
3417
2a31c623
PA
34182014-08-20 Pedro Alves <palves@redhat.com>
3419
3420 * Makefile.in (check-read1): New rule.
3421
d36430db
JB
34222014-08-20 Joel Brobecker <brobecker@adacore.com>
3423
3424 * value.c (value_from_contents_and_address): Strip resolved_type's
3425 typedef layers before checking its TYPE_DATA_LOCATION.
3426
000339af
PA
34272014-08-20 Pedro Alves <palves@redhat.com>
3428
3429 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3430
5f52445b
YQ
34312014-08-20 Yao Qi <yao@codesourcery.com>
3432
3433 * amd64-tdep.c (amd64_classify): Add a blank line after the
3434 example. Move "*/" to a new line.
3435 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3436 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3437 * dwarf2read.c (psymtab_include_file_name): Likewise.
3438
9a0dc9e3
PA
34392014-08-19 Andrew Burgess <aburgess@broadcom.com>
3440 Pedro Alves <palves@redhat.com>
3441
3442 PR symtab/14604
3443 PR symtab/14605
3444 * ada-lang.c (coerce_unspec_val_to_type): Use
3445 value_contents_copy_raw.
3446 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3447 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3448 * cp-valprint.c (cp_print_value_fields): Let the common printing
3449 code handle optimized out values.
3450 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3451 * d-valprint.c (dynamic_array_type): Use
3452 value_bits_any_optimized_out.
3453 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3454 check_any_valid fields.
3455 (check_pieced_value_bits): Delete and inline ...
3456 (check_pieced_synthetic_pointer): ... here.
3457 (check_pieced_value_validity): Delete.
3458 (check_pieced_value_invalid): Delete.
3459 (pieced_value_funcs): Remove check_validity and check_any_valid
3460 fields.
3461 (read_pieced_value): Use mark_value_bits_optimized_out.
3462 (write_pieced_value): Switch to use
3463 mark_value_bytes_optimized_out.
3464 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3465 of assuming the whole value is optimized out.
3466 * findvar.c (read_frame_register_value): Remove special handling
3467 of optimized out registers.
3468 (value_from_register): Use mark_value_bytes_optimized_out.
3469 * frame-unwind.c (frame_unwind_got_optimized): Use
3470 mark_value_bytes_optimized_out.
3471 * jv-valprint.c (java_value_print): Adjust.
3472 (java_print_value_fields): Let the common printing code handle
3473 optimized out values.
3474 * mips-tdep.c (mips_print_register): Remove special handling of
3475 optimized out registers.
3476 * opencl-lang.c (lval_func_check_validity): Delete.
3477 (lval_func_check_any_valid): Delete.
3478 (opencl_value_funcs): Remove check_validity and check_any_valid
3479 fields.
3480 * p-valprint.c (pascal_object_print_value_fields): Let the common
3481 printing code handle optimized out values.
3482 * stack.c (read_frame_arg): Remove special handling of optimized
3483 out values. Fetch both VAL and ENTRYVAL before comparing
3484 contents. Adjust to value_available_contents_eq rename.
3485 * valprint.c (valprint_check_validity)
3486 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3487 (val_print_array_elements): Adjust.
3488 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3489 (value_bits_any_optimized_out): New function.
3490 (value_entirely_covered_by_range_vector): New function, factored
3491 out from value_entirely_unavailable.
3492 (value_entirely_unavailable): Reimplement.
3493 (value_entirely_optimized_out): New function.
3494 (insert_into_bit_range_vector): New function, factored out from
3495 mark_value_bits_unavailable.
3496 (mark_value_bits_unavailable): Reimplement.
3497 (struct ranges_and_idx): New struct.
3498 (find_first_range_overlap_and_match): New function, factored out
3499 from value_available_contents_bits_eq.
3500 (value_available_contents_bits_eq): Rename to ...
3501 (value_contents_bits_eq): ... this. Check both unavailable
3502 contents and optimized out contents.
3503 (value_available_contents_eq): Rename to ...
3504 (value_contents_eq): ... this.
3505 (allocate_value_lazy): Remove reference to the old optimized_out
3506 boolean.
3507 (allocate_optimized_out_value): Use
3508 mark_value_bytes_optimized_out.
3509 (require_not_optimized_out): Adjust to check whether the
3510 optimized_out vec is empty.
3511 (ranges_copy_adjusted): New function, factored out from
3512 value_contents_copy_raw.
3513 (value_contents_copy_raw): Also copy the optimized out ranges.
3514 Assert the destination ranges aren't optimized out.
3515 (value_contents_copy): Update comment, remove call to
3516 require_not_optimized_out.
3517 (value_contents_equal): Adjust to check whether the optimized_out
3518 vec is empty.
3519 (set_value_optimized_out, value_optimized_out_const): Delete.
3520 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3521 New functions.
3522 (value_entirely_optimized_out, value_bits_valid): Delete.
3523 (value_copy): Take a VEC copy of the 'optimized_out' field.
3524 (value_primitive_field): Remove special handling of optimized out.
3525 (value_fetch_lazy): Assert that lazy values have no unavailable
3526 regions. Use value_bits_any_optimized_out. Remove some special
3527 handling for optimized out values.
3528 * value.h: Add intro comment about <optimized out> and
3529 <unavailable>.
3530 (struct lval_funcs): Remove check_validity and check_any_valid
3531 fields.
3532 (set_value_optimized_out, value_optimized_out_const): Remove.
3533 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3534 New declarations.
3535 (value_bits_any_optimized_out): New declaration.
3536 (value_bits_valid): Delete declaration.
3537 (value_available_contents_eq): Rename to ...
3538 (value_contents_eq): ... this, and extend comments.
3539
6694c411
JK
35402014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3541
3542 Fix -fsanitize=address on unreadable inferior strings.
3543 * valprint.c (val_print_string): Fix access before BUFFER.
3544
89a1c21a
SM
35452014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3546
3547 * target.c (target_struct_size): Remove.
3548 (target_struct_allocsize): Remove.
3549 (DEFAULT_ALLOCSIZE): Remove.
3550 (target_ops_p): New typedef.
3551 (DEF_VEC_P (target_ops_p)): New vector type.
3552 (target_structs): Change type to VEC (target_ops_p).
3553 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3554 (find_default_run_target): Rewrite for loop following changes to
3555 target_structs.
3556
cb417230
JB
35572014-08-19 Joel Brobecker <brobecker@adacore.com>
3558
3559 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3560 Adjust code accordingly. Adjust function description comment.
3561
817e0957
YQ
35622014-08-19 Yao Qi <yao@codesourcery.com>
3563
3564 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3565 types.
3566
2974be62
AM
35672014-08-19 Alan Modra <amodra@gmail.com>
3568
3569 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3570 * config.in: Regenerate.
3571 * configure: Regenerate.
3572
34abf635
GB
35732014-08-19 Tom Tromey <tromey@redhat.com>
3574 Gary Benson <gbenson@redhat.com>
3575
3576 * common/common-debug.h: New file.
3577 * common/common-debug.c: Likewise.
3578 * debug.c: Likewise.
3579 * Makefile.in (SFILES): Add common/common-debug.c.
3580 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3581 (COMMON_OBS): Add common-debug.o and debug.o.
3582 (common-debug.o): New rule.
3583 * common/common-defs.h: Include common-debug.h.
3584 * common/agent.c (debug_agent_printf): New function.
3585 (DEBUG_AGENT): Redefine.
3586 * nat/i386-dregs.c (debug_printf): Undefine.
3587
f6e94d78
GB
35882014-08-19 Gary Benson <gbenson@redhat.com>
3589
3590 * common/common-defs.h: Include print-utils.h.
3591 * utils.h: Do not include print-utils.h.
3592
9239eeab
GB
35932014-08-19 Tom Tromey <tromey@redhat.com>
3594 Gary Benson <gbenson@redhat.com>
3595
3596 * common/common-types.h: New file.
3597 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3598 * common/common-defs.h: Include common-types.h.
3599 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3600 (ULONGEST): Remove.
3601
ef87c8bb
GB
36022014-08-19 Tom Tromey <tromey@redhat.com>
3603 Gary Benson <gbenson@redhat.com>
3604
3605 * common/errors.h: New file.
3606 * common/errors.c: Likewise.
3607 * Makefile.in (SFILES): Add common/errors.c.
3608 (HFILES_NO_SRCDIR): Add common/errors.h.
3609 (COMMON_OBS): Add errors.o.
3610 (errors.o): New rule.
3611 * common/common-defs.h: Include errors.h.
3612 * utils.h (perror_with_name, error, verror, warning, vwarning):
3613 Don't declare.
3614 * common/common-utils.h: (malloc_failure, internal_error):
3615 Likewise.
3616
196a707b
GB
36172014-08-19 Gary Benson <gbenson@redhat.com>
3618
3619 * utils.c (internal_vproblem): Always print the message.
3620
ded4fc8f
DE
36212014-08-18 Doug Evans <dje@google.com>
3622
3623 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3624
950c97d8
JB
36252014-08-18 Joel Brobecker <brobecker@adacore.com>
3626
3627 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3628 Return 0 if TYPE is dynamic.
3629 (print_range): Add handling of dynamic ranges.
3630
3cdcd0ce
JB
36312014-08-18 Keven Boell <keven.boell@intel.com>
3632 Joel Brobecker <brobecker@adacore.com>
3633
3634 * gdbtypes.h (struct main_type): Add field "data_location".
3635 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3636 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3637 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3638 a dynamic data location.
3639 (resolve_dynamic_type): Add DW_AT_data_location handling.
3640 (copy_recursive, copy_type): Copy the data_location information
3641 when present.
3642 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3643 * value.c (value_from_contents_and_address): Add
3644 DW_AT_data_location handling.
3645
08412b07
JB
36462014-08-18 Keven Boell <keven.boell@intel.com>
3647 Joel Brobecker <brobecker@adacore.com>
3648
3649 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3650 field "get_object_address".
3651 * dwarf2expr.c (execute_stack_op): Add handling for
3652 DW_OP_push_object_address.
3653 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3654 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3655 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3656 (dwarf_expr_get_obj_addr): New function.
3657 (dwarf_expr_ctx_funcs): Add get_object_address field.
3658 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3659 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3660 (dwarf2_evaluate_property): Add parameter "address". Use it.
3661 (needs_get_obj_addr): New function.
3662 (needs_frame_ctx_funcs): Add get_object_address field.
3663 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3664 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3665 (resolve_dynamic_array): Likewise.
3666
84754697
JB
36672014-08-18 Joel Brobecker <brobecker@adacore.com>
3668
3669 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3670 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3671 fixed value for records and unions for which some GNAT encodings
3672 are present.
3673
da5c522f
JB
36742014-08-18 Joel Brobecker <brobecker@adacore.com>
3675
3676 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3677 rewrite to avoid "else if" and "else" constructs. Should be
3678 a no-op in practice.
3679
0d72a7c3
JB
36802014-08-18 Joel Brobecker <brobecker@adacore.com>
3681
3682 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3683 of lexical block.
3684
e66d4446
SC
36852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3686
3687 PR c++/17132
3688 * eval.c: Update all calls to find_overload_match.
3689 * valarith.c: Likewise.
3690 (value_user_defined_cpp_op, value_user_defined_op): New
3691 argument NOSIDE. Update all callers.
3692 * valops.c (find_overload_match): New argument NOSIDE.
3693 * value.h (find_overload_match): Update signature.
3694
940df408
SC
36952014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3696
3697 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3698 'items' methods instead of 'iteritems' method on dictionaries.
3699
699ca60a
DE
37002014-08-15 Doug Evans <dje@google.com>
3701
3702 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3703 closer to use.
3704
37780ee5
DE
37052014-08-15 Doug Evans <dje@google.com>
3706
3707 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3708
0ad93d4f
DE
37092014-08-15 Doug Evans <dje@google.com>
3710
3711 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3712
20d8c372
DE
37132014-08-15 Doug Evans <dje@google.com>
3714
3715 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3716 unused.
3717
cb039ba4
EZ
37182014-08-15 Eli Zaretskii <eliz@gnu.org>
3719
3720 * dcache.h: Include target.h, to avoid compile time warnings.
3721
eb7a547a
JB
37222014-08-15 Joel Brobecker <brobecker@adacore.com>
3723
3724 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3725 frame_info" partial declaration.
3726 * gdbarch.h: Regenerate.
3727
783cecc8
YQ
37282014-08-15 Yao Qi <yao@codesourcery.com>
3729
3730 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3731 Add parameter 'decode_for_pst_p'. Callers update.
3732
65c749e7
YQ
37332014-08-13 Yao Qi <yao@codesourcery.com>
3734
3735 PR build/17104
3736 * configure.ac: Use local variable 'pos'.
3737 * configure: Regenerated.
3738
d769e349
DE
37392014-08-11 Doug Evans <dje@google.com>
3740
3741 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3742 message, it is redundant with "Reading symbols from ..." message.
3743
24f1235e
DE
37442014-08-10 Doug Evans <xdje42@gmail.com>
3745
3746 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3747
dcd2e6ef
YQ
37482014-08-09 Yao Qi <yao@codesourcery.com>
3749
3750 PR remote/9053
3751 * remote.c (remote_xfer_partial): Remove dead code.
3752
070bdf0b
AA
37532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3754
3755 * ia64-linux-tdep.c: Include "regset.h".
3756 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3757 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3758 (ia64_linux_supply_fpregset): New function.
3759 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3760 (ia64_linux_regset_from_core_section): New function.
3761 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3762 method.
3763
08f9f542
AA
37642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3765
3766 * m68klinux-tdep.c: Include "regset.h".
3767 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3768 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3769 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3770 (m68k_linux_regset_from_core_section): New function.
3771 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3772 method.
3773
8f1cee41
AA
37742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3775
3776 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3777 function. Move logic to...
3778 (tilegx_linux_regmap): ... this new register map.
3779 (tilegx_linux_regset): Refer to register map, replace supply
3780 method by regcache_supply_regset, and add collect method.
3781 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3782 TILEGX_FIRST_EASY_REGNUM.
3783
c5741217
AA
37842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3785
3786 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3787 that calls regcache_supply_regset and handles the EPC register
3788 separately. Move main logic to...
3789 (score7_linux_gregmap): ... this new register map.
3790 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3791 (score7_linux_gregset): Refer to register map. Add collect method.
3792 (score7_linux_regset_from_core_section): Replace
3793 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3794 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3795 (struct regset): Delete unused forward declaraction.
3796 (struct pt_regs): Delete structure definition.
3797 (elf_gregset_t): Delete typedef.
3798
81580573
AA
37992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3800
3801 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3802 (nios2_core_regset): Add collect method.
3803
ba199d7d
AA
38042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3805
3806 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3807 platform-independent and don't write to read-only input buffer.
3808 (m32r_linux_collect_gregset): New function.
3809 (m32r_linux_gregset): Add collect method.
3810
0006a9da
AA
38112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3812
3813 * hppa-linux-tdep.c (greg_map): Rename to...
3814 (hppa_linux_gregmap): ... this. Also convert to
3815 regcache_map_entry format.
3816 (hppa_linux_supply_regset): Delete function.
3817 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3818 (hppa_linux_fpregmap): ... this new register map.
3819 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3820 register map, replace supply method by regcache_supply_regset, and
3821 add collect method regcache_collect_regset.
3822
901e1b23
AA
38232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3824
3825 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3826 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3827 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3828 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3829 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3830 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3831 (frv_linux_supply_gregset): Replace main logic by call to
3832 regcache_supply_regset, but keep clearing gr32-gr63.
3833 (frv_linux_supply_fpregset): Delete function.
3834 (frv_linux_gregset): Refer to appropriate register map and add
3835 regcache_collect_regset as the collect method.
3836 (frv_linux_fpregset): Likewise. Also exchange the supply method
3837 by regcache_supply_regset.
3838
1d6e7555
AA
38392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3840
3841 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3842 by call to alpha_supply_int_regs.
3843 (alpha_linux_collect_gregset): New function.
3844 (alpha_linux_supply_fpregset): Replace logic by call to
3845 alpha_supply_fp_regs.
3846 (alpha_linux_collect_fpregset): New function.
3847 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3848
d4d793bf
AA
38492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3850
3851 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3852 by call to regcache_collect_regset.
3853 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3854 instead of aarch64_linux_supply_gregset/_fpregset.
3855 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3856 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3857 header file instead.
3858 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3859 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3860 functions. Move logic to ...
3861 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3862 register maps.
3863 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3864 refer to new register maps, replace *_regset_from_core by
3865 regcache_supply_regset, and also use regcache_collect_regset.
3866 * aarch64-linux-tdep.h: Include "regset.h".
3867 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3868 Delete prototypes.
3869 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3870 macros, moved from C source file.
3871 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3872 variable declarations.
3873
99b7da5d
AA
38742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3875
3876 * s390-linux-nat.c: Include "regset.h".
3877 (regmap_gregset): Delete macro.
3878 (s390_64_regmap_gregset): New register map for
3879 regcache_supply/_collect_regset.
3880 (s390_64_gregset): New regset.
3881 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3882 (regmap_fpregset): Delete macro.
3883 (s390_native_supply, s390_native_collect): Delete functions.
3884 (supply_gregset, fill_gregset): Replace s390-specific regmap
3885 handling by a call to regcache_supply/_collect_regset.
3886 (supply_fpregset, fill_fpregset): Call regcache_supply/
3887 _collect_regset instead of s390_native_supply/_collect.
3888 (fetch_regset, store_regset): Likewise. Also change the last
3889 parameter to a regset instead of a regmap.
3890 (s390_linux_fetch_inferior_registers)
3891 (390_linux_store_inferior_registers): Adjust last parameter in
3892 calls to fetch_regset and store_regset.
3893 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3894 (s390_gregmap): ... this. Also make static const and convert to
3895 regcache_map_entry format.
3896 (s390x_regmap_gregset): Delete.
3897 (s390_regmap_fpregset): Rename to...
3898 (s390_fpregmap): ... this. Make static const and convert to
3899 regcache_map_entry format.
3900 (s390_regmap_upper, s390_regmap_last_break)
3901 (s390x_regmap_last_break, s390_regmap_system_call)
3902 (s390_regmap_tdb): Likewise.
3903 (s390_supply_regset, s390_collect_regset): Remove functions.
3904 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3905 s390_supply_regset.
3906 (s390_gregset, s390_fpregset, s390_upper_regset)
3907 (s390_last_break_regset, s390x_last_break_regset)
3908 (s390_system_call_regset, s390_tdb_regset): Make global and
3909 replace s390_supply/_collect_regset by regcache_supply/
3910 _collect_regset.
3911 (s390x_gregset): Delete.
3912 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3913 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3914 (s390_regmap_fpregset, s390_regmap_last_break)
3915 (s390x_regmap_last_break, s390_regmap_system_call)
3916 (s390_regmap_tdb): Delete global variable declarations.
3917 (s390_gregset, s390_fpregset, s390_last_break_regset)
3918 (s390x_last_break_regset, s390_system_call_regset)
3919 (s390_tdb_regset): New global variable declarations.
3920
0b309272
AA
39212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3922
3923 * regcache.c: Include "regset.h".
3924 (regcache_transfer_regset): New local function.
3925 (regcache_supply_regset, regcache_collect_regset): New functions.
3926 * regcache.h (struct regcache_map_entry): New structure.
3927 (REGCACHE_MAP_SKIP): New enum value.
3928 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3929
7fefa8d7
AA
39302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3931
3932 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3933 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3934 (ppc_linux_collect_gregset ): Likewise.
3935 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3936 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3937 (ppc_collect_vrregset): Likewise.
3938 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3939 Likewise.
3940
96c4f946
YQ
39412014-08-07 Yao Qi <yao@codesourcery.com>
3942
3943 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3944 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3945 * remote.c (remote_read_bytes): Likewise.
3946
fffbe6a8
YQ
39472014-08-07 Yao Qi <yao@codesourcery.com>
3948
3949 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3950
5ee8a82c
YQ
39512014-08-07 Yao Qi <yao@codesourcery.com>
3952
3953 PR remote/17230
3954 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3955 TARGET_XFER_OK instead of 0.
3956
bb974a24
GB
39572014-08-07 Gary Benson <gbenson@redhat.com>
3958
3959 * common/common-defs.h: Include errno.h.
3960 * defs.h: Do not include errno.h.
3961 * ada-typeprint.c: Likewise.
3962 * c-typeprint.c: Likewise.
3963 * core-regset.c: Likewise.
3964 * corefile.c: Likewise.
3965 * corelow.c: Likewise.
3966 * event-loop.c: Likewise.
3967 * f-typeprint.c: Likewise.
3968 * gnu-nat.c: Likewise.
3969 * go32-nat.c: Likewise.
3970 * i386gnu-nat.c: Likewise.
3971 * m2-typeprint.c: Likewise.
3972 * nat/linux-btrace.c: Likewise.
3973 * p-typeprint.c: Likewise.
3974 * procfs.c: Likewise.
3975 * remote-sim.c: Likewise.
3976 * rs6000-nat.c: Likewise.
3977 * target.c: Likewise.
3978 * typeprint.c: Likewise.
3979 * ui-file.c: Likewise.
3980 * valops.c: Likewise.
3981 * valprint.c: Likewise.
3982
6d3d12eb
GB
39832014-08-07 Gary Benson <gbenson@redhat.com>
3984
3985 * common/common-defs.h: Include string.h.
3986 * aarch64-tdep.c: Do not include string.h.
3987 * ada-exp.y: Likewise.
3988 * ada-lang.c: Likewise.
3989 * ada-lex.l: Likewise.
3990 * ada-typeprint.c: Likewise.
3991 * ada-valprint.c: Likewise.
3992 * aix-thread.c: Likewise.
3993 * alpha-linux-tdep.c: Likewise.
3994 * alpha-mdebug-tdep.c: Likewise.
3995 * alpha-nat.c: Likewise.
3996 * alpha-osf1-tdep.c: Likewise.
3997 * alpha-tdep.c: Likewise.
3998 * alphanbsd-tdep.c: Likewise.
3999 * amd64-dicos-tdep.c: Likewise.
4000 * amd64-linux-tdep.c: Likewise.
4001 * amd64-nat.c: Likewise.
4002 * amd64-sol2-tdep.c: Likewise.
4003 * amd64fbsd-tdep.c: Likewise.
4004 * amd64obsd-tdep.c: Likewise.
4005 * arch-utils.c: Likewise.
4006 * arm-linux-nat.c: Likewise.
4007 * arm-linux-tdep.c: Likewise.
4008 * arm-tdep.c: Likewise.
4009 * arm-wince-tdep.c: Likewise.
4010 * armbsd-tdep.c: Likewise.
4011 * armnbsd-nat.c: Likewise.
4012 * armnbsd-tdep.c: Likewise.
4013 * armobsd-tdep.c: Likewise.
4014 * avr-tdep.c: Likewise.
4015 * ax-gdb.c: Likewise.
4016 * ax-general.c: Likewise.
4017 * bcache.c: Likewise.
4018 * bfin-tdep.c: Likewise.
4019 * breakpoint.c: Likewise.
4020 * build-id.c: Likewise.
4021 * buildsym.c: Likewise.
4022 * c-exp.y: Likewise.
4023 * c-lang.c: Likewise.
4024 * c-typeprint.c: Likewise.
4025 * c-valprint.c: Likewise.
4026 * charset.c: Likewise.
4027 * cli-out.c: Likewise.
4028 * cli/cli-cmds.c: Likewise.
4029 * cli/cli-decode.c: Likewise.
4030 * cli/cli-dump.c: Likewise.
4031 * cli/cli-interp.c: Likewise.
4032 * cli/cli-logging.c: Likewise.
4033 * cli/cli-script.c: Likewise.
4034 * cli/cli-setshow.c: Likewise.
4035 * cli/cli-utils.c: Likewise.
4036 * coffread.c: Likewise.
4037 * common/agent.c: Likewise.
4038 * common/buffer.c: Likewise.
4039 * common/buffer.h: Likewise.
4040 * common/common-utils.c: Likewise.
4041 * common/filestuff.c: Likewise.
4042 * common/filestuff.c: Likewise.
4043 * common/format.c: Likewise.
4044 * common/print-utils.c: Likewise.
4045 * common/rsp-low.c: Likewise.
4046 * common/signals.c: Likewise.
4047 * common/vec.h: Likewise.
4048 * common/xml-utils.c: Likewise.
4049 * core-regset.c: Likewise.
4050 * corefile.c: Likewise.
4051 * corelow.c: Likewise.
4052 * cp-abi.c: Likewise.
4053 * cp-name-parser.y: Likewise.
4054 * cp-support.c: Likewise.
4055 * cp-valprint.c: Likewise.
4056 * cris-tdep.c: Likewise.
4057 * d-exp.y: Likewise.
4058 * darwin-nat.c: Likewise.
4059 * dbxread.c: Likewise.
4060 * dcache.c: Likewise.
4061 * demangle.c: Likewise.
4062 * dicos-tdep.c: Likewise.
4063 * disasm.c: Likewise.
4064 * doublest.c: Likewise.
4065 * dsrec.c: Likewise.
4066 * dummy-frame.c: Likewise.
4067 * dwarf2-frame.c: Likewise.
4068 * dwarf2loc.c: Likewise.
4069 * dwarf2read.c: Likewise.
4070 * elfread.c: Likewise.
4071 * environ.c: Likewise.
4072 * eval.c: Likewise.
4073 * event-loop.c: Likewise.
4074 * exceptions.c: Likewise.
4075 * exec.c: Likewise.
4076 * expprint.c: Likewise.
4077 * f-exp.y: Likewise.
4078 * f-lang.c: Likewise.
4079 * f-typeprint.c: Likewise.
4080 * f-valprint.c: Likewise.
4081 * fbsd-nat.c: Likewise.
4082 * findcmd.c: Likewise.
4083 * findvar.c: Likewise.
4084 * fork-child.c: Likewise.
4085 * frame.c: Likewise.
4086 * frv-linux-tdep.c: Likewise.
4087 * frv-tdep.c: Likewise.
4088 * gdb.c: Likewise.
4089 * gdb_bfd.c: Likewise.
4090 * gdbarch.c: Likewise.
4091 * gdbarch.sh: Likewise.
4092 * gdbtypes.c: Likewise.
4093 * gnu-nat.c: Likewise.
4094 * gnu-v2-abi.c: Likewise.
4095 * gnu-v3-abi.c: Likewise.
4096 * go-exp.y: Likewise.
4097 * go-lang.c: Likewise.
4098 * go32-nat.c: Likewise.
4099 * guile/guile.c: Likewise.
4100 * guile/scm-auto-load.c: Likewise.
4101 * hppa-hpux-tdep.c: Likewise.
4102 * hppa-linux-nat.c: Likewise.
4103 * hppanbsd-tdep.c: Likewise.
4104 * hppaobsd-tdep.c: Likewise.
4105 * i386-cygwin-tdep.c: Likewise.
4106 * i386-dicos-tdep.c: Likewise.
4107 * i386-linux-tdep.c: Likewise.
4108 * i386-nto-tdep.c: Likewise.
4109 * i386-sol2-tdep.c: Likewise.
4110 * i386-tdep.c: Likewise.
4111 * i386bsd-tdep.c: Likewise.
4112 * i386gnu-nat.c: Likewise.
4113 * i386nbsd-tdep.c: Likewise.
4114 * i386obsd-tdep.c: Likewise.
4115 * i387-tdep.c: Likewise.
4116 * ia64-libunwind-tdep.c: Likewise.
4117 * ia64-linux-nat.c: Likewise.
4118 * inf-child.c: Likewise.
4119 * inf-ptrace.c: Likewise.
4120 * inf-ttrace.c: Likewise.
4121 * infcall.c: Likewise.
4122 * infcmd.c: Likewise.
4123 * inflow.c: Likewise.
4124 * infrun.c: Likewise.
4125 * interps.c: Likewise.
4126 * iq2000-tdep.c: Likewise.
4127 * irix5-nat.c: Likewise.
4128 * jv-exp.y: Likewise.
4129 * jv-lang.c: Likewise.
4130 * jv-typeprint.c: Likewise.
4131 * jv-valprint.c: Likewise.
4132 * language.c: Likewise.
4133 * linux-fork.c: Likewise.
4134 * linux-nat.c: Likewise.
4135 * lm32-tdep.c: Likewise.
4136 * m2-exp.y: Likewise.
4137 * m2-typeprint.c: Likewise.
4138 * m32c-tdep.c: Likewise.
4139 * m32r-linux-nat.c: Likewise.
4140 * m32r-linux-tdep.c: Likewise.
4141 * m32r-rom.c: Likewise.
4142 * m32r-tdep.c: Likewise.
4143 * m68hc11-tdep.c: Likewise.
4144 * m68k-tdep.c: Likewise.
4145 * m68kbsd-tdep.c: Likewise.
4146 * m68klinux-nat.c: Likewise.
4147 * m68klinux-tdep.c: Likewise.
4148 * m88k-tdep.c: Likewise.
4149 * machoread.c: Likewise.
4150 * macrocmd.c: Likewise.
4151 * main.c: Likewise.
4152 * mdebugread.c: Likewise.
4153 * mem-break.c: Likewise.
4154 * memattr.c: Likewise.
4155 * memory-map.c: Likewise.
4156 * mep-tdep.c: Likewise.
4157 * mi/mi-cmd-break.c: Likewise.
4158 * mi/mi-cmd-disas.c: Likewise.
4159 * mi/mi-cmd-env.c: Likewise.
4160 * mi/mi-cmd-stack.c: Likewise.
4161 * mi/mi-cmd-var.c: Likewise.
4162 * mi/mi-cmds.c: Likewise.
4163 * mi/mi-console.c: Likewise.
4164 * mi/mi-getopt.c: Likewise.
4165 * mi/mi-interp.c: Likewise.
4166 * mi/mi-main.c: Likewise.
4167 * mi/mi-parse.c: Likewise.
4168 * microblaze-rom.c: Likewise.
4169 * microblaze-tdep.c: Likewise.
4170 * mingw-hdep.c: Likewise.
4171 * minidebug.c: Likewise.
4172 * minsyms.c: Likewise.
4173 * mips-irix-tdep.c: Likewise.
4174 * mips-linux-tdep.c: Likewise.
4175 * mips-tdep.c: Likewise.
4176 * mips64obsd-tdep.c: Likewise.
4177 * mipsnbsd-tdep.c: Likewise.
4178 * mipsread.c: Likewise.
4179 * mn10300-linux-tdep.c: Likewise.
4180 * mn10300-tdep.c: Likewise.
4181 * monitor.c: Likewise.
4182 * moxie-tdep.c: Likewise.
4183 * mt-tdep.c: Likewise.
4184 * nat/linux-btrace.c: Likewise.
4185 * nat/linux-osdata.c: Likewise.
4186 * nat/linux-procfs.c: Likewise.
4187 * nat/linux-ptrace.c: Likewise.
4188 * nat/linux-waitpid.c: Likewise.
4189 * nbsd-tdep.c: Likewise.
4190 * nios2-linux-tdep.c: Likewise.
4191 * nto-procfs.c: Likewise.
4192 * nto-tdep.c: Likewise.
4193 * objc-lang.c: Likewise.
4194 * objfiles.c: Likewise.
4195 * opencl-lang.c: Likewise.
4196 * osabi.c: Likewise.
4197 * osdata.c: Likewise.
4198 * p-exp.y: Likewise.
4199 * p-lang.c: Likewise.
4200 * p-typeprint.c: Likewise.
4201 * parse.c: Likewise.
4202 * posix-hdep.c: Likewise.
4203 * ppc-linux-nat.c: Likewise.
4204 * ppc-sysv-tdep.c: Likewise.
4205 * ppcfbsd-tdep.c: Likewise.
4206 * ppcnbsd-tdep.c: Likewise.
4207 * ppcobsd-tdep.c: Likewise.
4208 * printcmd.c: Likewise.
4209 * procfs.c: Likewise.
4210 * prologue-value.c: Likewise.
4211 * python/py-auto-load.c: Likewise.
4212 * python/py-gdb-readline.c: Likewise.
4213 * ravenscar-thread.c: Likewise.
4214 * regcache.c: Likewise.
4215 * registry.c: Likewise.
4216 * remote-fileio.c: Likewise.
4217 * remote-m32r-sdi.c: Likewise.
4218 * remote-mips.c: Likewise.
4219 * remote-notif.c: Likewise.
4220 * remote-sim.c: Likewise.
4221 * remote.c: Likewise.
4222 * reverse.c: Likewise.
4223 * rs6000-aix-tdep.c: Likewise.
4224 * ser-base.c: Likewise.
4225 * ser-go32.c: Likewise.
4226 * ser-mingw.c: Likewise.
4227 * ser-pipe.c: Likewise.
4228 * ser-tcp.c: Likewise.
4229 * ser-unix.c: Likewise.
4230 * serial.c: Likewise.
4231 * sh-tdep.c: Likewise.
4232 * sh64-tdep.c: Likewise.
4233 * shnbsd-tdep.c: Likewise.
4234 * skip.c: Likewise.
4235 * sol-thread.c: Likewise.
4236 * solib-dsbt.c: Likewise.
4237 * solib-frv.c: Likewise.
4238 * solib-osf.c: Likewise.
4239 * solib-som.c: Likewise.
4240 * solib-spu.c: Likewise.
4241 * solib-target.c: Likewise.
4242 * solib.c: Likewise.
4243 * somread.c: Likewise.
4244 * source.c: Likewise.
4245 * sparc-nat.c: Likewise.
4246 * sparc-sol2-tdep.c: Likewise.
4247 * sparc-tdep.c: Likewise.
4248 * sparc64-tdep.c: Likewise.
4249 * sparc64fbsd-tdep.c: Likewise.
4250 * sparc64nbsd-tdep.c: Likewise.
4251 * sparcnbsd-tdep.c: Likewise.
4252 * spu-linux-nat.c: Likewise.
4253 * spu-multiarch.c: Likewise.
4254 * spu-tdep.c: Likewise.
4255 * stabsread.c: Likewise.
4256 * stack.c: Likewise.
4257 * std-regs.c: Likewise.
4258 * symfile.c: Likewise.
4259 * symmisc.c: Likewise.
4260 * symtab.c: Likewise.
4261 * target.c: Likewise.
4262 * thread.c: Likewise.
4263 * tilegx-linux-nat.c: Likewise.
4264 * tilegx-tdep.c: Likewise.
4265 * top.c: Likewise.
4266 * tracepoint.c: Likewise.
4267 * tui/tui-command.c: Likewise.
4268 * tui/tui-data.c: Likewise.
4269 * tui/tui-disasm.c: Likewise.
4270 * tui/tui-file.c: Likewise.
4271 * tui/tui-layout.c: Likewise.
4272 * tui/tui-out.c: Likewise.
4273 * tui/tui-regs.c: Likewise.
4274 * tui/tui-source.c: Likewise.
4275 * tui/tui-stack.c: Likewise.
4276 * tui/tui-win.c: Likewise.
4277 * tui/tui-windata.c: Likewise.
4278 * tui/tui-winsource.c: Likewise.
4279 * typeprint.c: Likewise.
4280 * ui-file.c: Likewise.
4281 * ui-out.c: Likewise.
4282 * user-regs.c: Likewise.
4283 * utils.c: Likewise.
4284 * v850-tdep.c: Likewise.
4285 * valarith.c: Likewise.
4286 * valops.c: Likewise.
4287 * valprint.c: Likewise.
4288 * value.c: Likewise.
4289 * varobj.c: Likewise.
4290 * vax-tdep.c: Likewise.
4291 * vaxnbsd-tdep.c: Likewise.
4292 * vaxobsd-tdep.c: Likewise.
4293 * windows-nat.c: Likewise.
4294 * xcoffread.c: Likewise.
4295 * xml-support.c: Likewise.
4296 * xstormy16-tdep.c: Likewise.
4297 * xtensa-linux-nat.c: Likewise.
4298
dccbb609
GB
42992014-08-07 Gary Benson <gbenson@redhat.com>
4300
4301 * common/common-defs.h: Include gdb_assert.h.
4302 * aarch64-tdep.c: Do not include gdb_assert.h.
4303 * addrmap.c: Likewise.
4304 * aix-thread.c: Likewise.
4305 * alpha-linux-tdep.c: Likewise.
4306 * alpha-mdebug-tdep.c: Likewise.
4307 * alphanbsd-tdep.c: Likewise.
4308 * amd64-nat.c: Likewise.
4309 * amd64-tdep.c: Likewise.
4310 * amd64bsd-nat.c: Likewise.
4311 * amd64fbsd-nat.c: Likewise.
4312 * amd64fbsd-tdep.c: Likewise.
4313 * amd64nbsd-nat.c: Likewise.
4314 * amd64nbsd-tdep.c: Likewise.
4315 * amd64obsd-nat.c: Likewise.
4316 * amd64obsd-tdep.c: Likewise.
4317 * arch-utils.c: Likewise.
4318 * arm-tdep.c: Likewise.
4319 * armbsd-tdep.c: Likewise.
4320 * auxv.c: Likewise.
4321 * bcache.c: Likewise.
4322 * bfin-tdep.c: Likewise.
4323 * blockframe.c: Likewise.
4324 * breakpoint.c: Likewise.
4325 * bsd-kvm.c: Likewise.
4326 * bsd-uthread.c: Likewise.
4327 * buildsym.c: Likewise.
4328 * c-exp.y: Likewise.
4329 * c-lang.c: Likewise.
4330 * charset.c: Likewise.
4331 * cleanups.c: Likewise.
4332 * cli-out.c: Likewise.
4333 * cli/cli-decode.c: Likewise.
4334 * cli/cli-dump.c: Likewise.
4335 * cli/cli-logging.c: Likewise.
4336 * cli/cli-script.c: Likewise.
4337 * cli/cli-utils.c: Likewise.
4338 * coffread.c: Likewise.
4339 * common/common-utils.c: Likewise.
4340 * common/queue.h: Likewise.
4341 * common/signals.c: Likewise.
4342 * common/vec.h: Likewise.
4343 * complaints.c: Likewise.
4344 * completer.c: Likewise.
4345 * corelow.c: Likewise.
4346 * cp-abi.c: Likewise.
4347 * cp-name-parser.y: Likewise.
4348 * cp-namespace.c: Likewise.
4349 * cp-support.c: Likewise.
4350 * cris-tdep.c: Likewise.
4351 * dbxread.c: Likewise.
4352 * dictionary.c: Likewise.
4353 * doublest.c: Likewise.
4354 * dsrec.c: Likewise.
4355 * dummy-frame.c: Likewise.
4356 * dwarf2-frame-tailcall.c: Likewise.
4357 * dwarf2-frame.c: Likewise.
4358 * dwarf2expr.c: Likewise.
4359 * dwarf2loc.c: Likewise.
4360 * dwarf2read.c: Likewise.
4361 * eval.c: Likewise.
4362 * event-loop.c: Likewise.
4363 * exceptions.c: Likewise.
4364 * expprint.c: Likewise.
4365 * f-valprint.c: Likewise.
4366 * fbsd-nat.c: Likewise.
4367 * findvar.c: Likewise.
4368 * frame-unwind.c: Likewise.
4369 * frame.c: Likewise.
4370 * frv-tdep.c: Likewise.
4371 * gcore.c: Likewise.
4372 * gdb-dlfcn.c: Likewise.
4373 * gdb_bfd.c: Likewise.
4374 * gdbarch.c: Likewise.
4375 * gdbarch.sh: Likewise.
4376 * gdbtypes.c: Likewise.
4377 * gnu-nat.c: Likewise.
4378 * gnu-v3-abi.c: Likewise.
4379 * go-lang.c: Likewise.
4380 * guile/scm-exception.c: Likewise.
4381 * guile/scm-gsmob.c: Likewise.
4382 * guile/scm-lazy-string.c: Likewise.
4383 * guile/scm-math.c: Likewise.
4384 * guile/scm-pretty-print.c: Likewise.
4385 * guile/scm-safe-call.c: Likewise.
4386 * guile/scm-utils.c: Likewise.
4387 * guile/scm-value.c: Likewise.
4388 * h8300-tdep.c: Likewise.
4389 * hppa-hpux-nat.c: Likewise.
4390 * hppa-tdep.c: Likewise.
4391 * hppanbsd-tdep.c: Likewise.
4392 * hppaobsd-tdep.c: Likewise.
4393 * i386-darwin-nat.c: Likewise.
4394 * i386-darwin-tdep.c: Likewise.
4395 * i386-nto-tdep.c: Likewise.
4396 * i386-tdep.c: Likewise.
4397 * i386bsd-nat.c: Likewise.
4398 * i386fbsd-tdep.c: Likewise.
4399 * i386gnu-nat.c: Likewise.
4400 * i386nbsd-tdep.c: Likewise.
4401 * i386obsd-tdep.c: Likewise.
4402 * i387-tdep.c: Likewise.
4403 * ia64-libunwind-tdep.c: Likewise.
4404 * ia64-tdep.c: Likewise.
4405 * inf-ptrace.c: Likewise.
4406 * inf-ttrace.c: Likewise.
4407 * infcall.c: Likewise.
4408 * infcmd.c: Likewise.
4409 * infrun.c: Likewise.
4410 * inline-frame.c: Likewise.
4411 * interps.c: Likewise.
4412 * jv-lang.c: Likewise.
4413 * jv-typeprint.c: Likewise.
4414 * linux-fork.c: Likewise.
4415 * linux-nat.c: Likewise.
4416 * linux-thread-db.c: Likewise.
4417 * m32c-tdep.c: Likewise.
4418 * m32r-linux-nat.c: Likewise.
4419 * m32r-tdep.c: Likewise.
4420 * m68k-tdep.c: Likewise.
4421 * m68kbsd-nat.c: Likewise.
4422 * m68kbsd-tdep.c: Likewise.
4423 * m88k-tdep.c: Likewise.
4424 * machoread.c: Likewise.
4425 * macroexp.c: Likewise.
4426 * macrotab.c: Likewise.
4427 * maint.c: Likewise.
4428 * mdebugread.c: Likewise.
4429 * memory-map.c: Likewise.
4430 * mep-tdep.c: Likewise.
4431 * mi/mi-common.c: Likewise.
4432 * microblaze-tdep.c: Likewise.
4433 * mingw-hdep.c: Likewise.
4434 * mips-linux-nat.c: Likewise.
4435 * mips-linux-tdep.c: Likewise.
4436 * mips-tdep.c: Likewise.
4437 * mips64obsd-tdep.c: Likewise.
4438 * mipsnbsd-tdep.c: Likewise.
4439 * mn10300-linux-tdep.c: Likewise.
4440 * mn10300-tdep.c: Likewise.
4441 * moxie-tdep.c: Likewise.
4442 * mt-tdep.c: Likewise.
4443 * nat/linux-btrace.c: Likewise.
4444 * nat/linux-osdata.c: Likewise.
4445 * nat/linux-ptrace.c: Likewise.
4446 * nat/mips-linux-watch.c: Likewise.
4447 * nios2-linux-tdep.c: Likewise.
4448 * nios2-tdep.c: Likewise.
4449 * objc-lang.c: Likewise.
4450 * objfiles.c: Likewise.
4451 * obsd-nat.c: Likewise.
4452 * opencl-lang.c: Likewise.
4453 * osabi.c: Likewise.
4454 * parse.c: Likewise.
4455 * ppc-linux-nat.c: Likewise.
4456 * ppc-sysv-tdep.c: Likewise.
4457 * ppcfbsd-nat.c: Likewise.
4458 * ppcfbsd-tdep.c: Likewise.
4459 * ppcnbsd-nat.c: Likewise.
4460 * ppcnbsd-tdep.c: Likewise.
4461 * ppcobsd-nat.c: Likewise.
4462 * ppcobsd-tdep.c: Likewise.
4463 * printcmd.c: Likewise.
4464 * procfs.c: Likewise.
4465 * prologue-value.c: Likewise.
4466 * psymtab.c: Likewise.
4467 * python/py-lazy-string.c: Likewise.
4468 * python/py-value.c: Likewise.
4469 * regcache.c: Likewise.
4470 * reggroups.c: Likewise.
4471 * registry.c: Likewise.
4472 * remote-sim.c: Likewise.
4473 * remote.c: Likewise.
4474 * rs6000-aix-tdep.c: Likewise.
4475 * rs6000-tdep.c: Likewise.
4476 * s390-linux-tdep.c: Likewise.
4477 * score-tdep.c: Likewise.
4478 * ser-base.c: Likewise.
4479 * ser-mingw.c: Likewise.
4480 * sh-tdep.c: Likewise.
4481 * sh64-tdep.c: Likewise.
4482 * solib-darwin.c: Likewise.
4483 * solib-spu.c: Likewise.
4484 * solib-svr4.c: Likewise.
4485 * source.c: Likewise.
4486 * sparc-nat.c: Likewise.
4487 * sparc-sol2-tdep.c: Likewise.
4488 * sparc-tdep.c: Likewise.
4489 * sparc64-sol2-tdep.c: Likewise.
4490 * sparc64-tdep.c: Likewise.
4491 * sparc64fbsd-tdep.c: Likewise.
4492 * sparc64nbsd-tdep.c: Likewise.
4493 * sparc64obsd-tdep.c: Likewise.
4494 * sparcnbsd-tdep.c: Likewise.
4495 * sparcobsd-tdep.c: Likewise.
4496 * spu-multiarch.c: Likewise.
4497 * spu-tdep.c: Likewise.
4498 * stabsread.c: Likewise.
4499 * stack.c: Likewise.
4500 * symfile.c: Likewise.
4501 * symtab.c: Likewise.
4502 * target-descriptions.c: Likewise.
4503 * target-memory.c: Likewise.
4504 * target.c: Likewise.
4505 * tic6x-linux-tdep.c: Likewise.
4506 * tic6x-tdep.c: Likewise.
4507 * tilegx-linux-nat.c: Likewise.
4508 * tilegx-tdep.c: Likewise.
4509 * top.c: Likewise.
4510 * tramp-frame.c: Likewise.
4511 * tui/tui-out.c: Likewise.
4512 * tui/tui-winsource.c: Likewise.
4513 * ui-out.c: Likewise.
4514 * user-regs.c: Likewise.
4515 * utils.c: Likewise.
4516 * v850-tdep.c: Likewise.
4517 * valops.c: Likewise.
4518 * value.c: Likewise.
4519 * varobj.c: Likewise.
4520 * vax-nat.c: Likewise.
4521 * xml-syscall.c: Likewise.
4522 * xml-tdesc.c: Likewise.
4523 * xstormy16-tdep.c: Likewise.
4524 * xtensa-linux-nat.c: Likewise.
4525 * xtensa-tdep.c: Likewise.
4526
e76df0d0
GB
45272014-08-07 Gary Benson <gbenson@redhat.com>
4528
4529 * common/common-defs.h: Include common-utils.h.
4530 * defs.h: Do not include common-utils.h.
4531 * common/gdb_assert.h: Likewise.
4532 * darwin-nat.h: Likewise.
4533 * nat/linux-btrace.c: Likewise.
4534 * target/waitstatus.h: Likewise.
4535
4cb9c816
GB
45362014-08-07 Gary Benson <gbenson@redhat.com>
4537
4538 * common/common-defs.h: Include ptid.h.
4539 * defs.h: Do not include ptid.h.
4540 * inferior.h: Likewise.
4541 * infrun.h: Likewise.
4542 * nat/linux-btrace.h: Likewise.
4543 * nat/linux-osdata.h: Likewise.
4544 * target/waitstatus.h: Likewise.
4545
3995eeee
GB
45462014-08-07 Gary Benson <gbenson@redhat.com>
4547
4548 * common/common-defs.h: Include gdb_locale.h.
4549 * defs.h: Do not include gdb_locale.h.
4550
cb9f1a9b
GB
45512014-08-07 Gary Benson <gbenson@redhat.com>
4552
4553 * common/common-defs.h: Include gdb/signals.h.
4554 * defs.h: Do not include gdb/signals.h.
4555
a5fceff8
GB
45562014-08-07 Gary Benson <gbenson@redhat.com>
4557
4558 * common/common-defs.h: Include pathmax.h.
4559 * defs.h: Do not include pathmax.h.
4560
b9391142
GB
45612014-08-07 Gary Benson <gbenson@redhat.com>
4562
4563 * common/common-defs.h: Include libiberty.h.
4564 * defs.h: Do not include libiberty.h.
4565 * common/queue.h: Likewise.
4566 * cp-name-parser.y: Likewise.
4567 * mi/mi-cmd-catch.c: Likewise.
4568 * python/python.c: Likewise.
4569
0e443c87
GB
45702014-08-07 Gary Benson <gbenson@redhat.com>
4571
4572 * common/common-defs.h: Include ansidecl.h.
4573 * defs.h: Do not include ansidecl.h.
4574 * common/buffer.h: Likewise.
4575 * common/common-utils.h: Likewise.
4576
8ebb3f56
GB
45772014-08-07 Gary Benson <gbenson@redhat.com>
4578
4579 * common/common-defs.h: Include stddef.h.
4580 * defs.h: Do not include stddef.h.
4581 * common/common-utils.h: Likewise.
4582 * amd64fbsd-nat.c: Likewise.
4583 * bcache.c: Likewise.
4584 * charset.c: Likewise.
4585 * common/buffer.h: Likewise.
4586 * common/vec.h: Likewise.
4587 * i386bsd-nat.c: Likewise.
4588 * nat/linux-btrace.h: Likewise.
4589 * ppcfbsd-nat.c: Likewise.
4590 * ppcnbsd-tdep.h: Likewise.
4591 * ppcobsd-nat.c: Likewise.
4592 * ppcobsd-tdep.h: Likewise.
4593 * python/py-gdb-readline.c: Likewise.
4594
8980bdf6
GB
45952014-08-07 Gary Benson <gbenson@redhat.com>
4596
4597 * common/common-defs.h: Include stdarg.h.
4598 * defs.h: Do not include stdarg.h.
4599 * ada-lang.c: Likewise.
4600 * common/common-utils.h: Likewise.
4601 * guile/scm-string.c: Likewise.
4602 * guile/scm-utils.c: Likewise.
4603 * m32c-tdep.c: Likewise.
4604
d7096f71
GB
46052014-08-07 Gary Benson <gbenson@redhat.com>
4606
4607 * common/common-defs.h: Include stdlib.h.
4608 * defs.h: Do not include stdlib.h.
4609 * addrmap.c: Likewise.
4610 * bcache.c: Likewise.
4611 * common/buffer.c: Likewise.
4612 * common/common-utils.c: Likewise.
4613 * cp-name-parser.y: Likewise.
4614 * go32-nat.c: Likewise.
4615 * mn10300-linux-tdep.c: Likewise.
4616 * nat/linux-osdata.c: Likewise.
4617 * tui/tui.c: Likewise.
4618 * windows-nat.c: Likewise.
4619
d02f550d
GB
46202014-08-07 Gary Benson <gbenson@redhat.com>
4621
4622 * common/common-defs.h: Include stdio.h.
4623 * defs.h: Do not include stdio.h.
4624 * ada-lang.c: Likewise.
4625 * common/buffer.c: Likewise.
4626 * common/common-utils.c: Likewise.
4627 * cp-name-parser.y: Likewise.
4628 * gnu-nat.c: Likewise.
4629 * go32-nat.c: Likewise.
4630 * i386gnu-nat.c: Likewise.
4631 * proc-api.c: Likewise.
4632 * proc-events.c: Likewise.
4633 * proc-flags.c: Likewise.
4634 * proc-why.c: Likewise.
4635 * python/python-internal.h: Likewise.
4636 * target-memory.c: Likewise.
4637 * tui/tui-io.c: Likewise.
4638 * tui/tui.c: Likewise.
4639
b6d7a4bf
SM
46402014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4641
4642 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4643 (scan_dyntag_auxv): Same.
4644
af19829b
YQ
46452014-08-06 Yao Qi <yao@codesourcery.com>
4646
4647 * amd64-linux-nat.c: Remove duplicated include
4648 "x86-linux-nat.h".
4649 * i386-linux-nat.c: Likewise.
4650
8e07a239
YQ
46512014-08-06 Yao Qi <yao@codesourcery.com>
4652
4653 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4654 operand" with "Special opcode" in comments.
4655
7bfe8241
GB
46562014-08-05 Gary Benson <gbenson@redhat.com>
4657
4658 * interps.c (initialize_interps): Remove prototype.
4659 (interpreter_initialized): Remove static global.
4660 (interp_add): Do not call initialize_interps.
4661 (initialize_interps): Remove function.
4662
d6c95504
GB
46632014-08-05 Gary Benson <gbenson@redhat.com>
4664
4665 * utils.c (vwarning): Remove spurious va_end.
4666
241fd515
AM
46672014-08-05 Alan Modra <amodra@gmail.com>
4668
4669 * charset.c (convert_between_encodings): Cast result of obstack_base.
4670 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4671 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4672 (read_unwind_info): Use size_t for some locals.
4673 * jit.c (finalize_symtab): Likewise.
4674 * utils.c (hashtab_obstack_allocate): Likewise.
4675 * symmisc.c (print_objfile_statistics): Update format strings.
4676
dc304a94
JK
46772014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4678
4679 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4680 (Changes in GDB 7.8): ... here.
4681
3cecbbbe
TT
46822014-08-04 Tom Tromey <tromey@redhat.com>
4683
4684 * target.c (set_targetdebug): New function.
4685 (initialize_targets): Pass set_targetdebug when creating "set
4686 debug target".
4687
6908c509
JB
46882014-08-01 Joel Brobecker <brobecker@adacore.com>
4689
4690 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4691 if detecting a variable-sized field that is not the last field.
4692 Fix struct type length computation.
4693
53e8f97d
JB
46942014-08-01 Joel Brobecker <brobecker@adacore.com>
4695
4696 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4697 Add debug trace.
4698
e068c55d
JB
46992014-08-01 Joel Brobecker <brobecker@adacore.com>
4700
4701 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4702 Remove "+ 8" offset in computation of CHAIN_VMA.
4703
4d4ca2a1
DE
47042014-07-31 Doug Evans <dje@google.com>
4705
4706 * inflow.c (child_terminal_inferior): Add comment.
4707 (child_terminal_ours_for_output): Add comment.
4708 (child_terminal_ours): Add comment.
4709 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4710 (linux_nat_terminal_ours): Add comment.
4711
462f517e
GB
47122014-07-31 Gary Benson <gbenson@redhat.com>
4713
4714 * common/btrace-common.h: Do not include defs.h or server.h.
4715 * nat/mips-linux-watch.h: Likewise.
4716 * gdb-dlfcn.h: Do not include defs.h.
4717 * tracefile.h: Likewise.
4718
74228e77
RM
47192014-07-30 Roland McGrath <mcgrathr@google.com>
4720
4721 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4722
014f9477
TT
47232014-07-30 Tom Tromey <tromey@redhat.com>
4724
4725 * bsd-kvm.c (bsd_kvm_open): Constify.
4726 * corelow.c (core_open): Constify.
4727 * ctf.c (ctf_open): Constify.
4728 * dbug-rom.c (dbug_open): Constify.
4729 * exec.c (exec_open): Constify.
4730 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4731 * microblaze-rom.c (picobug_open): Constify.
4732 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4733 Constify.
4734 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4735 * record-btrace.c (record_btrace_open): Constify.
4736 * record-full.c (record_full_core_open_1, record_full_open_1)
4737 (record_full_open): Constify.
4738 * remote-m32r-sdi.c (m32r_open): Constify.
4739 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4740 (rockhopper_open, lsi_open): Constify.
4741 * remote-sim.c (gdbsim_open): Constify.
4742 * remote.c (remote_open, extended_remote_open, remote_open_1):
4743 Constify.
4744 * target.h (struct target_ops) <to_open>: Make "arg" const.
4745 * tracefile-tfile.c (tfile_open): Constify.
4746
e799154c
TT
47472014-07-30 Tom Tromey <tromey@redhat.com>
4748
4749 * breakpoint.c (map_breakpoint_numbers): Update.
4750 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4751 (get_number_const): New function.
4752 (get_number): Rewrite using get_number_const.
4753 (init_number_or_range): Make "string" const.
4754 (number_is_in_list): Make "list" const.
4755 * cli/cli-utils.h (get_number_const): Declare.
4756 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4757 (init_number_or_range, number_is_in_list): Update.
4758 * printcmd.c (map_display_numbers): Update.
4759 * value.c (value_from_history_ref): Constify.
4760 * value.h (value_from_history_ref): Update.
4761
5f08566b
TT
47622014-07-30 Tom Tromey <tromey@redhat.com>
4763
4764 * corefile.c (hook_type, call_extra_exec_file_hooks)
4765 (specify_exec_file_hook): Constify.
4766 * exec.c (exec_file_attach): Make "filename" const.
4767 * gdbcore.h (deprecated_exec_file_display_hook)
4768 (specify_exec_file_hook, exec_file_attach): Constify.
4769 * main.c (captured_main): Use catch_command_errors_const.
4770
8981c758
TT
47712014-07-30 Tom Tromey <tromey@redhat.com>
4772
4773 * target.c (open_target): New function.
4774 (add_target_with_completer, add_deprecated_target_alias): Use
4775 set_cmd_sfunc, set_cmd_context.
4776 (debug_to_open): Remove.
4777 (setup_target_debug): Update.
4778
a1c7835a
YQ
47792014-07-30 Yao Qi <yao@codesourcery.com>
4780
4781 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4782 comments.
4783 * parse.c (exp_iterate): Update comments.
4784
976411d6
GB
47852014-07-30 Gary Benson <gbenson@redhat.com>
4786
4787 * common/common-defs.h: New file.
4788 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4789 * defs.h: Include common-defs.h.
4790 Do not include config.h or build-gnulib/config.h.
4791
5d4848a4
GB
47922014-07-30 Gary Benson <gbenson@redhat.com>
4793
4794 * common/common-utils.h: Do not include config.h.
4795 * nat/linux-btrace.h: Likewise.
4796
d41f6d8e
GB
47972014-07-30 Gary Benson <gbenson@redhat.com>
4798
4799 * btrace.c: Include defs.h.
4800 * common/ptid.c: Include defs.h or server.h as appropriate.
4801 * nat/mips-linux-watch.c: Likewise.
4802
84202f9c
TT
48032014-07-29 Tom Tromey <tromey@redhat.com>
4804
4805 * target.c (target_is_pushed): Simplify.
4806
2530441c
JB
48072014-07-29 Joel Brobecker <brobecker@adacore.com>
4808
4809 GDB 7.8 released.
4810
7e09a223
YQ
48112014-07-29 Yao Qi <yao@codesourcery.com>
4812
4813 PR gdb/17206
4814 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4815
7ebdbe92
DE
48162014-07-28 Doug Evans <xdje42@gmail.com>
4817
4818 PR guile/17203
4819 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4820 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4821 parameters.
4822
f347ffc9
WN
48232014-07-28 Will Newton <will.newton@linaro.org>
4824
4825 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4826 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4827 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4828 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4829 (THUMB2_EABI_SYSCALL): Likewise.
4830 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4831 struct tramp_frame.
4832 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4833 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4834
37c5f1f7
DE
48352014-07-27 Doug Evans <xdje42@gmail.com>
4836
4837 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4838
0c3abbc7
DE
48392014-07-27 Doug Evans <xdje42@gmail.com>
4840
4841 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4842
e76c5d17
DE
48432014-07-26 Ludovic Courtès <ludo@gnu.org>
4844 Doug Evans <xdje42@gmail.com>
4845
4846 PR guile/17146
4847 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4848 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4849 * configure.ac: Try to use guild to compile an scm file, if it fails
4850 then disable guile support.
4851 * configure: Regenerate.
4852 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4853 GUILE_FILE_LIST.
4854 (GUILE_COMPILED_FILES): New variable.
4855 (GUILE_FILES) Update.
4856 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4857 (stamp-guile): Compile scm files.
4858 * guile/guile.c (boot_guile_support): New function.
4859 (standard_throw_args_p): New function.
4860 (print_standard_throw_error, print_throw_error): New functions.
4861 (handle_boot_error): New function.
4862 (initialize_scheme_side): Rewrite to call boot_guile_support.
4863 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4864 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4865
186fcde0
DE
48662014-07-26 Ludovic Courtès <ludo@gnu.org>
4867 Doug Evans <xdje42@gmail.com>
4868
4869 PR guile/17146
4870 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4871 * guile/lib/gdb/support.scm: New file.
4872 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4873 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4874 All uses updated.
4875 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4876 All uses updated.
4877 (%assert-type): Ditto, and renamed to assert-type.
4878 (%exception-print-style): Delete.
4879
4df42755
DE
48802014-07-26 Doug Evans <xdje42@gmail.com>
4881
4882 PR build/17105
4883 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4884 * configure: Regenerate.
4885 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4886 PYTHON_FILES.
4887 (PYTHON_FILES): New variable.
4888 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4889 (GUILE_FILES): New variable.
4890 (stamp-python, install-python, uninstall-python): Handle empty
4891 file list.
4892 (stamp-guile, install-guile, uninstall-guile): Ditto.
4893
ee7333ae
DE
48942014-07-26 Doug Evans <xdje42@gmail.com>
4895
4896 PR guile/17177
4897 * guile/lib/gdb.scm (pretty-printers): Export.
4898 (set-pretty-printers!): Export.
4899 * guile/lib/gdb/printing.scm (gdb module): Update.
4900 (prepend-pretty-printer!, append-pretty-printer!): Update.
4901 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4902 (pretty_printer_list_var): Delete.
4903 (pretty_printer_list): New static global.
4904 (gdbscm_pretty_printers): New function.
4905 (gdbscm_set_pretty_printers_x): New function.
4906 (ppscm_find_pretty_printer_from_gdb): Update.
4907 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4908 (gdbscm_initialize_pretty_printers): Update.
4909
74edf516
DE
49102014-07-26 Doug Evans <xdje42@gmail.com>
4911
4912 PR 17185
4913 * configure.ac: Add check for header gc/gc.h.
4914 Add check for function setenv.
4915 * configure: Regenerate.
4916 * config.in: Regenerate.
4917 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4918
d54398a7
MR
49192014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4920
4921 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4922 variation in gdbarch matching.
4923
ab16fce8
TT
49242014-07-25 Tom Tromey <tromey@redhat.com>
4925
4926 * exec.c (using_exec_ops): Remove.
4927 (exec_close_1): Update. Remove extraneous block, reindent.
4928 (add_target_sections): Use target_is_pushed.
4929
88056fbb
PA
49302014-07-25 Pedro Alves <palves@redhat.com>
4931
4932 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4933 * monitor.c (monitor_create_inferior): Likewise.
4934 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4935 * remote-sim.c (gdbsim_create_inferior): Likewise.
4936 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4937 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4938 * windows-nat.c (do_initial_windows_stuff): Likewise.
4939
70509625
PA
49402014-07-25 Pedro Alves <palves@redhat.com>
4941
4942 * NEWS: Mention signal passing and "signal" command changes.
4943 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4944 comment.
4945 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4946 call.
4947 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4948 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4949 (jump_command): Adjust clear_proceed_status call.
4950 (signal_command): Warn if other thread that are resumed have
4951 signals that will be delivered. Adjust clear_proceed_status call.
4952 (until_next_command, finish_command)
4953 (proceed_after_attach_callback, attach_command_post_wait)
4954 (attach_command): Adjust clear_proceed_status call.
4955 * infrun.c (proceed_after_vfork_done): Likewise.
4956 (proceed_after_attach_callback): Adjust comment.
4957 (clear_proceed_status_thread): Clear stop_signal if not in pass
4958 state.
4959 (clear_proceed_status_callback): Delete.
4960 (clear_proceed_status): New 'step' parameter. Only clear the
4961 proceed status of threads the command being prepared is about to
4962 resume.
4963 (proceed): If passed in an explicit signal, override stop_signal
4964 with it. Don't pass the last stop signal to the thread we're
4965 resuming.
4966 (init_wait_for_inferior): Adjust clear_proceed_status call.
4967 (switch_back_to_stepped_thread): Clear the signal if it should not
4968 be passed.
4969 * infrun.h (clear_proceed_status): New 'step' parameter.
4970 (user_visible_resume_ptid): Add comment.
4971 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4972 signal is in pass state.
4973 * remote.c (append_pending_thread_resumptions): Likewise.
4974 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4975
d8be2939
TT
49762014-07-25 Tom Tromey <tromey@redhat.com>
4977
4978 * target.h (target_stopped_data_address)
4979 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4980 parentheses.
4981
7d0d9d2b
PL
49822014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4983
4984 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4985 comments.
4986 (avr_pointer_to_address): Likewise.
4987
e9e7f724
TT
49882014-07-24 Tom Tromey <tromey@redhat.com>
4989
4990 * monitor.c (compile_pattern): Update.
4991 * target.h (struct target_ops) <to_shortname, to_longname,
4992 to_doc>: Now const.
4993
1947513d
TT
49942014-07-24 Tom Tromey <tromey@redhat.com>
4995
4996 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4997 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4998 (add_info_alias, add_com): Make "doc" const.
4999 (print_doc_line): Make "str" const.
5000 (delete_cmd): Update.
5001 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5002 (print_doc_line): Update.
5003 * cli/cli-script.c (document_command): Update.
5004 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5005 (add_com, add_info, add_info_alias): Update.
5006 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5007 * python/py-cmd.c (cmdpy_destroyer): Update.
5008
64e61d29
TT
50092014-07-24 Tom Tromey <tromey@redhat.com>
5010
5011 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5012 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5013 (help_cmd_list): Constify.
5014 (lookup_cmd): Update.
5015 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5016 const.
5017 (help_cmd_list, apropos_cmd): Update.
5018 * cli/cli-script.c (show_user): Update.
5019 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5020 * cli/cli-setshow.h (cmd_show_list): Update.
5021 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5022 (cmd_show_list): Update.
5023 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5024 * python/py-cmd.c (cmdpy_destroyer): Update.
5025
429e55ea
TT
50262014-07-24 Tom Tromey <tromey@redhat.com>
5027
5028 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5029 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5030 const.
5031 * command.h (deprecate_cmd): Update.
5032 * maint.c (maintenance_do_deprecate): Add casts.
5033
64669f3b
TT
50342014-07-24 Tom Tromey <tromey@redhat.com>
5035
5036 * cli/cli-decode.c (help_cmd): Make parameter "const".
5037 * cli/cli-decode.h (help_cmd): Update.
5038
d3d3328b
TT
50392014-07-24 Tom Tromey <tromey@redhat.com>
5040
5041 * stack.c (up_silently_base, down_silently_base): Make argument
5042 const.
5043
414842dc
TT
50442014-07-24 Tom Tromey <tromey@redhat.com>
5045
5046 * solib.c (solib_add): Make "pattern" const.
5047 * solib.h (solib_add): Update.
5048
baa336ce
TT
50492014-07-24 Tom Tromey <tromey@redhat.com>
5050
5051 * remote.c (remote_serial_open, print_packet, putpkt)
5052 (putpkt_binary): Constify.
5053 * remote.h (putpkt): Update.
5054
5a19e2d0
TT
50552014-07-24 Tom Tromey <tromey@redhat.com>
5056
5057 * monitor.c (monitor_open): Make "args" const.
5058 * monitor.h (monitor_open): Update.
5059
fc4baa5e
TT
50602014-07-24 Tom Tromey <tromey@redhat.com>
5061
5062 * maint.c (match_bfd_flags): Make "string" const.
5063 (print_bfd_section_info): Remove casts.
5064 (print_objfile_section_info): Make "string" const.
5065
0d5f0dbe
TT
50662014-07-24 Tom Tromey <tromey@redhat.com>
5067
5068 * inf-child.c (inf_child_open_target): Make "arg" const.
5069 * inf-child.h (inf_child_open_target): Update.
5070
41c77899
TT
50712014-07-24 Tom Tromey <tromey@redhat.com>
5072
5073 * environ.c (unset_in_environ): Make "var" const.
5074 * environ.h (unset_in_environ): Update.
5075
93db0d79
TT
50762014-07-24 Tom Tromey <tromey@redhat.com>
5077
5078 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5079 Make "cmd" const.
5080 (scan_filename_with_cleanup): Likewise.
5081 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5082 Make arguments const.
5083 (restore_command): Update.
5084
36d6eb95
PA
50852014-07-24 Pedro Alves <palves@redhat.com>
5086
5087 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5088
8009206a
TT
50892014-07-24 Tom Tromey <tromey@redhat.com>
5090 Gary Benson <gbenson@redhat.com>
5091
5092 * nat/linux-ptrace.c (additional_flags): New global.
5093 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5094 additional_flags; don't check GDBSERVER.
5095 (linux_ptrace_set_additional_flags): New function.
5096 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5097 Declare.
5098 * linux-nat.c (_initialize_linux_nat): Call
5099 linux_ptrace_set_additional_flags.
5100
a7068b60
TT
51012014-07-24 Tom Tromey <tromey@redhat.com>
5102
5103 * make-target-delegates (munge_type, write_debugmethod): New
5104 functions.
5105 (debug_names): New global.
5106 ($TARGET_DEBUG_PRINTER): New global.
5107 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5108 name.
5109 Write debug methods. Generate init_debug_target.
5110 * target-debug.h: New file.
5111 * target-delegates.c: Rebuild.
5112 * target.c: Include target-debug.h.
5113 (debug_target): Hoist definition.
5114 (target_kill, target_get_section_table, target_memory_map)
5115 (target_flash_erase, target_flash_done, target_detach)
5116 (target_disconnect, target_wait, target_resume)
5117 (target_pass_signals, target_program_signals, target_follow_fork)
5118 (target_mourn_inferior, target_search_memory)
5119 (target_thread_address_space, target_close)
5120 (target_find_new_threads, target_core_of_thread)
5121 (target_verify_memory, target_insert_mask_watchpoint)
5122 (target_remove_mask_watchpoint): Remove targetdebug code.
5123 (debug_to_post_attach, debug_to_prepare_to_store)
5124 (debug_to_files_info, debug_to_insert_breakpoint)
5125 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5126 (debug_to_region_ok_for_hw_watchpoint)
5127 (debug_to_can_accel_watchpoint_condition)
5128 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5129 (debug_to_watchpoint_addr_within_range)
5130 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5131 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5132 (debug_to_terminal_init, debug_to_terminal_inferior)
5133 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5134 (debug_to_terminal_save_ours, debug_to_terminal_info)
5135 (debug_to_load, debug_to_post_startup_inferior)
5136 (debug_to_insert_fork_catchpoint)
5137 (debug_to_remove_fork_catchpoint)
5138 (debug_to_insert_vfork_catchpoint)
5139 (debug_to_remove_vfork_catchpoint)
5140 (debug_to_insert_exec_catchpoint)
5141 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5142 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5143 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5144 (setup_target_debug): Call init_debug_target.
5145 * target.h (TARGET_DEBUG_PRINTER): New macro.
5146 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5147 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5148
2c51604d
GB
51492014-07-24 Gary Benson <gbenson@redhat.com>
5150
5151 * exceptions.h (throw_vfatal): Renamed to...
5152 (throw_vquit): New declaration.
5153 (throw_quit): Likewise.
5154 * exceptions.c (throw_vfatal): Renamed to...
5155 (throw_vquit): New function.
5156 (throw_quit): Likewise.
5157 (throw_error): Call throw_verror rather than throw_it.
5158 * utils.h (vfatal): Removed.
5159 (fatal): Likewise.
5160 * utils.c (vfatal): Removed.
5161 (fatal): Likewise.
5162 (internal_verror): Replaced call to fatal with call to throw_quit.
5163 (quit): Replaced calls to fatal with calls to throw_quit.
5164
34211963
ME
51652014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5166
5167 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5168 target_read_code.
5169
a52b4d3e
ME
51702014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5171
5172 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5173 less than zero in conditional expression.
5174
a8bdc56b
TT
51752014-07-23 Tom Tromey <tromey@redhat.com>
5176
5177 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5178 ($INTRO_PART): Don't match whitespace.
5179 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5180 argument matching.
5181 ($METHOD): Add $METHOD_TRAILER.
5182 (trim): Rewrite.
5183 (scan_target_h): New sub.
5184 Change main loop not to collect state.
5185 * target-delegates.c: Rebuild.
5186
91b52240
GB
51872014-07-23 Gary Benson <gbenson@redhat.com>
5188
5189 * cp-support.c (gdb_demangle): Fix build on systems without
5190 sigaltstack.
5191
45326f6f
JK
51922014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5193
5194 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5195 for reference entry value target data value.
5196
e214cf6c
JK
51972014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5198
5199 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5200 value_available_contents_eq.
5201
bddbbedd
PA
52022014-07-22 Pedro Alves <palves@redhat.com>
5203
5204 * value.c (allocate_optimized_out_value): Don't mark value as
5205 non-lazy.
5206
45c71484
JW
52072014-07-22 Jiong Wang <jiong.wang@arm.com>
5208
5209 * MAINTAINERS (Write After Approval): Update my email address.
5210
9597b22a
DE
52112014-07-20 Doug Evans <dje@google.com>
5212
5213 PR server/17147
5214 * remote.c (putpkt_binary): Add text to error message.
5215
91101fe5
YQ
52162014-07-20 Yao Qi <yao@codesourcery.com>
5217
5218 * eval.c: Remove "Chill" from comments.
5219 * gdbtypes.h: Likewise.
5220 * symtab.h: Likewise.
5221
c9402c95
YQ
52222014-07-20 Yao Qi <yao@codesourcery.com>
5223
5224 * std-operator.def: Update comments to TERNOP_SLICE.
5225
ae8fddda
YQ
52262014-07-20 Yao Qi <yao@codesourcery.com>
5227
5228 * std-operator.def: Remove BINOP_RANGE.
5229 * breakpoint.c (watchpoint_exp_is_const): Update.
5230 * expprint.c (dump_subexp_body_standard): Likewise.
5231 * eval.c (init_array_element): Remove dead code.
5232 (evaluate_subexp_standard): Likewise.
5233
9c816640
YQ
52342014-07-20 Yao Qi <yao@codesourcery.com>
5235
5236 * std-operator.def: Remove BINOP_IN.
5237 * breakpoint.c (watchpoint_exp_is_const): Update.
5238 * eval.c (evaluate_subexp_standard): Likewise.
5239 * expprint.c (dump_subexp_body_standard): Likewise.
5240
164224e9
ME
52412014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5242
5243 * microblaze-tdep.c (microblaze_register_names): Add
5244 the rshr and rslr register names.
5245 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5246 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5247 Use of tdesc_numbered_register. Use of
5248 microblaze_register_g_packet_guesses. Use of
5249 tdesc_use_registers. Use of set_gdbarch_register_type.
5250 (microblaze_register_g_packet_guesses): New.
5251 * microblaze-tdep.h (microblaze_reg_num): Add
5252 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5253 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5254 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5255 * features/microblaze-core.xml: New file.
5256 * features/microblaze-stack-protect.xml: New file.
5257 * features/microblaze-with-stack-protect.c: New file.
5258 * features/microblaze-with-stack-protect.xml: New file.
5259 * features/microblaze.xml: New file.
5260 * features/microblaze.c: New file.
5261 * features/Makefile (microblaze-with-stack-protect): Add
5262 microblaze-with-stack-protect microblaze and microblaze-expedite.
5263 * regformats/microblaze-with-stack-protect.dat: New file.
5264 * regformats/microblaze.dat: New file.
5265 * doc/gdb.texinfo (MicroBlaze Features): Added.
5266
e8b2341c
TT
52672014-07-18 Tom Tromey <tromey@redhat.com>
5268
5269 * exec.c (exec_ops): Now static.
5270 * exec.h (exec_ops): Don't declare.
5271
44e89118
TT
52722014-07-18 Tom Tromey <tromey@redhat.com>
5273
5274 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5275 to find_target_beneath.
5276 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5277 find_target_beneath.
5278 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5279
b0ed115f
TT
52802014-07-18 Tom Tromey <tromey@redhat.com>
5281
5282 PR gdb/17130:
5283 * utils.c (quit): Use target_supports_terminal_ours.
5284 * target.h (target_supports_terminal_ours): Declare.
5285 * target.c (target_supports_delete_record): Don't check
5286 to_delete_record against NULL.
5287 (target_supports_terminal_ours): New function.
5288
e75fdfca
TT
52892014-07-18 Tom Tromey <tromey@redhat.com>
5290
5291 PR gdb/17130:
5292 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5293 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5294 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5295 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5296 * windows-nat.c (windows_xfer_partial): Always delegate.
5297 * record-btrace.c (record_btrace_xfer_partial): Simplify
5298 delegation.
5299 (record_btrace_fetch_registers, record_btrace_store_registers)
5300 (record_btrace_prepare_to_store, record_btrace_resume)
5301 (record_btrace_wait, record_btrace_find_new_threads)
5302 (record_btrace_thread_alive): Likewise.
5303 * procfs.c (procfs_xfer_partial): Always delegate.
5304 * corelow.c (core_xfer_partial): Always delegate.
5305 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5306
83814951
TT
53072014-07-18 Tom Tromey <tromey@redhat.com>
5308
5309 * exec.c (exec_make_note_section): Move earlier.
5310
b8b8facf
DE
53112014-07-17 Doug Evans <dje@google.com>
5312
74b49205 5313 PR gdb/17170
b8b8facf
DE
5314 * maint.c (count_symtabs_and_blocks): Handle NULL
5315 current_program_space.
5316 (report_command_stats): Check global enabled flag in addition to
5317 recorded enabled flag.
5318 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5319
69ff6be5
PA
53202014-07-16 Pedro Alves <palves@redhat.com>
5321
5322 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5323
252db1b5
TT
53242014-07-16 Tom Tromey <tromey@redhat.com>
5325
5326 * target.h (struct target_ops) <to_delete_record>: Reformat
5327 comment.
5328
a432721e
TT
53292014-07-16 Tom Tromey <tromey@redhat.com>
5330
5331 * target-delegates.c: Rebuild.
5332
487d9753
PL
53332014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5334
5335 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5336 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5337 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5338 (avr_pointer_to_address): Likewise.
5339 (avr_address_class_type_flags): New function.
5340 (avr_address_class_type_flags_to_name): Likewise.
5341 (avr_address_class_name_to_type_flags): Likewise.
5342 (avr_gdbarch_init): Set address_class_type_flags,
5343 address_class_type_flags_to_name and
5344 address_class_name_to_type_flags.
5345
57745c90
PA
53462014-07-15 Pedro Alves <palves@redhat.com>
5347
5348 * linux-nat.c (kill_callback): Save errno and work with saved
5349 copy.
5350
2d40be18
SM
53512014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5352
5353 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5354
572f6555
EBM
53552014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5356
5357 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5358 breakpoint support correctly.
5359
cc1c52ad
PA
53602014-07-14 Pedro Alves <palves@redhat.com>
5361
5362 * utils.c (prompt_for_continue): Call target_terminal_ours.
5363
1e973570
PA
53642014-07-14 Pedro Alves <palves@redhat.com>
5365
5366 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5367 catch_errors. Don't re-enable stdin or notify observers where,
5368 and rethrow error.
5369 (fetch_inferior_event_wrapper): Delete.
5370
93d6eb10
PA
53712014-07-14 Pedro Alves <palves@redhat.com>
5372
5373 PR gdb/17072
5374 * top.c: Include "inf-loop.h".
5375 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5376 field.
5377 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5378 was async before.
5379 (gdb_readline_wrapper): Store whether the target is async, and
5380 make it sync.
5381
0017922d
PA
53822014-07-14 Pedro Alves <palves@redhat.com>
5383
5384 PR gdb/17072
5385 * top.c (gdb_readline_wrapper_line): Tweak comment.
5386 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5387 the input handler callback.
5388
94696ad3
PA
53892014-07-14 Pedro Alves <palves@redhat.com>
5390
5391 PR gdb/17072
5392 * main.c: Include event-top.h.
5393 (handle_command_errors): New function.
5394 (catch_command_errors, catch_command_errors_const): Use it.
5395
9d1e69a2
PA
53962014-07-14 Pedro Alves <palves@redhat.com>
5397
5398 * exceptions.c (catch_command_errors, catch_command_errors_const):
5399 Moved to main.c.
5400 * exceptions.h (catch_command_errors_ftype)
5401 (catch_command_errors_const_ftype): Moved to main.c.
5402 (catch_command_errors, catch_command_errors_const): Delete
5403 declarations.
5404 * main.c (catch_command_errors_ftype)
5405 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5406 (catch_command_errors, catch_command_errors_const)): Moved here
5407 from exceptions.c and make static.
5408
feefc97b
PA
54092014-07-14 Pedro Alves <palves@redhat.com>
5410
5411 * exceptions.c (print_any_exception): Delete.
5412 (catch_exceptions_with_msg): Use exception_print instead of
5413 print_any_exception.
5414 (catch_errors): Use exception_fprintf instead of
5415 print_any_exception.
5416 (catch_command_errors, catch_command_errors_const): Use
5417 exception_print instead of print_any_exception.
5418
c933f875
PA
54192014-07-14 Pedro Alves <palves@redhat.com>
5420
5421 * infcall.c (run_inferior_call): Set 'sync_execution' while
5422 running the inferior call.
5423
feb6f816
PA
54242014-07-14 Pedro Alves <palves@redhat.com>
5425
5426 * value.c (value_contents_equal): Delete function.
5427 * value.h (value_contents_equal): Delete declaration.
5428
d98b7a16
TT
54292014-07-14 Tom Tromey <tromey@redhat.com>
5430
5431 PR exp/17106:
5432 * gdbtypes.c (is_dynamic_type_internal): New function, from
5433 is_dynamic_type.
5434 (is_dynamic_type): Rewrite.
5435 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5436 (resolve_dynamic_struct): Likewise.
5437 (resolve_dynamic_type_internal): New function, from
5438 resolve_dynamic_type.
5439 (resolve_dynamic_type): Rewrite.
5440
548740d6
TT
54412014-07-14 Tom Tromey <tromey@redhat.com>
5442
5443 * target.c (target_require_runnable): Also check record_stratum.
5444 Update comment.
5445
808f7ab1
YQ
54462014-07-11 Yao Qi <yao@codesourcery.com>
5447
5448 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5449 thumb_instruction_restores_sp return true.
5450
540314bd
YQ
54512014-07-11 Yao Qi <yao@codesourcery.com>
5452
5453 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5454 (thumb_in_function_epilogue_p): Call
5455 thumb_instruction_restores_sp.
5456
1db01f22
YQ
54572014-07-11 Yao Qi <yao@codesourcery.com>
5458
5459 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5460 'add sp, #imm'.
5461 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5462
3116063b
GB
54632014-07-11 Gary Benson <gbenson@redhat.com>
5464
5465 * amd64-linux-nat.c (gdbcore.h): Remove include.
5466 (regset.h): Likewise.
5467 (nat/linux-btrace.h): Likewise.
5468 (btrace.h): Likewise.
5469 (gdb_assert.h): Likewise.
5470 (string.h): Likewise.
5471 (sys/uio.h): Likewise.
5472 (sys/debugreg.h): Likewise.
5473 (sys/syscall.h): Likewise.
5474 (sys/procfs.h): Likewise.
5475 (sys/user.h): Likewise.
5476 (asm/ptrace.h): Likewise.
5477 (i386-nat.h): Likewise.
5478 * i386-linux-nat.c (i386-nat.h): Likewise.
5479 (regset.h): Likewise.
5480 (target.h): Likewise.
5481 (linux-nat.h): Likewise.
5482 (nat/linux-btrace.h): Likewise.
5483 (btrace.h): Likewise.
5484 (gdb_assert.h): Likewise.
5485 (string.h): Likewise.
5486 (sys/uio.h): Likewise.
5487 (sys/user.h): Likewise.
5488 (sys/procfs.h): Likewise.
5489 (sys/reg.h): Likewise.
5490 (sys/debugreg.h): Likewise.
5491 (ORIG_EAX): Remove definition.
5492
040baaf6
GB
54932014-07-11 Gary Benson <gbenson@redhat.com>
5494
5495 * i386-linux-nat.h: New file.
5496 * x86-linux-nat.h: Likewise.
5497 * x86-linux-nat.c: Likewise.
5498 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5499 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5500 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5501 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5502 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5503 (PTRACE_SETREGSET): Likewise.
5504 (arch_lwp_info): Now in x86-linux-nat.c.
5505 (have_ptrace_getregset): Now in x86-linux-nat.h.
5506 (x86_linux_dr_get): Now in x86-linux-nat.c.
5507 (x86_linux_dr_set): Likewise.
5508 (x86_linux_dr_get_addr): Likewise.
5509 (x86_linux_dr_get_control): Likewise.
5510 (x86_linux_dr_get_status): Likewise.
5511 (update_debug_registers_callback): Likewise.
5512 (x86_linux_dr_set_control): Likewise.
5513 (x86_linux_dr_set_addr): Likewise.
5514 (x86_linux_prepare_to_resume): Likewise.
5515 (x86_linux_new_thread): Likewise.
5516 (x86_linux_new_fork): Likewise.
5517 (x86_linux_get_thread_area): Likewise.
5518 (super_post_startup_inferior): Likewise.
5519 (x86_linux_child_post_startup_inferior): Likewise.
5520 (AMD64_LINUX_USER64_CS): Likewise.
5521 (AMD64_LINUX_X32_DS): Likewise.
5522 (x86_linux_read_description): Likewise.
5523 (x86_linux_enable_btrace): Likewise.
5524 (x86_linux_disable_btrace): Likewise.
5525 (x86_linux_teardown_btrace): Likewise.
5526 (x86_linux_read_btrace): Likewise.
5527 (x86_linux_create_target): Likewise.
5528 (x86_linux_add_target): Likewise.
5529 * i386-linux-nat.c (x86-linux-nat.h): New include.
5530 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5531 (PTRACE_SETREGSET): Likewise.
5532 (arch_lwp_info): Now in x86-linux-nat.c.
5533 (have_ptrace_getregset): Now in x86-linux-nat.h.
5534 (x86_linux_dr_get): Now in x86-linux-nat.c.
5535 (x86_linux_dr_set): Likewise.
5536 (x86_linux_dr_get_addr): Likewise.
5537 (x86_linux_dr_get_control): Likewise.
5538 (x86_linux_dr_get_status): Likewise.
5539 (update_debug_registers_callback): Likewise.
5540 (x86_linux_dr_set_control): Likewise.
5541 (x86_linux_dr_set_addr): Likewise.
5542 (x86_linux_prepare_to_resume): Likewise.
5543 (x86_linux_new_thread): Likewise.
5544 (x86_linux_new_fork): Likewise.
5545 (x86_linux_get_thread_area): Likewise.
5546 (super_post_startup_inferior): Likewise.
5547 (x86_linux_child_post_startup_inferior): Likewise.
5548 (AMD64_LINUX_USER64_CS): Likewise.
5549 (AMD64_LINUX_X32_DS): Likewise.
5550 (x86_linux_read_description): Likewise.
5551 (x86_linux_enable_btrace): Likewise.
5552 (x86_linux_disable_btrace): Likewise.
5553 (x86_linux_teardown_btrace): Likewise.
5554 (x86_linux_read_btrace): Likewise.
5555 (x86_linux_create_target): Likewise.
5556 (x86_linux_add_target): Likewise.
5557
1aa7e42c
GB
55582014-07-11 Gary Benson <gbenson@redhat.com>
5559
5560 * amd64-linux-nat.c: Comment and whitespace changes.
5561 * i386-linux-nat.c: Comment and whitespace changes.
5562
c1e246a0
GB
55632014-07-11 Gary Benson <gbenson@redhat.com>
5564
5565 * amd64-linux-nat.c (x86_linux_create_target): New function.
5566 (x86_linux_add_target): Likewise.
5567 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5568 * i386-linux-nat.c (x86_linux_create_target): New function.
5569 (x86_linux_add_target): Likewise.
5570 (_initialize_i386_linux_nat): Delegate to the above new functions.
5571
8c420b8d
GB
55722014-07-11 Gary Benson <gbenson@redhat.com>
5573
5574 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5575 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5576 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5577 (ps_get_thread_area): Delegate to the above.
5578
cb1da100
GB
55792014-07-11 Gary Benson <gbenson@redhat.com>
5580
5581 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5582 x86_linux_read_description. All uses updated. amd64-specific
5583 code conditionalized. Conditionalized i386-specific code added.
5584 Redundant cast removed.
5585 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5586 x86_linux_read_description. All uses updated. i386-specific
5587 code conditionalized. Conditionalized amd64-specific code added.
5588 One sizeof replaced with the actual type it is describing.
5589
2acf3cd0
GB
55902014-07-11 Gary Benson <gbenson@redhat.com>
5591
5592 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5593 x86_linux_dr_get. All uses updated.
5594 (amd64_linux_dr_set): Renamed to
5595 x86_linux_dr_set. All uses updated.
5596 (amd64_linux_dr_get_addr): Renamed to
5597 x86_linux_dr_get_addr. All uses updated.
5598 (amd64_linux_dr_get_control): Renamed to
5599 x86_linux_dr_get_control. All uses updated.
5600 (amd64_linux_dr_get_status): Renamed to
5601 x86_linux_dr_get_status. All uses updated.
5602 (amd64_linux_dr_set_control): Renamed to
5603 x86_linux_dr_set_control. All uses updated.
5604 (amd64_linux_dr_set_addr): Renamed to
5605 x86_linux_dr_set_addr. All uses updated.
5606 (amd64_linux_prepare_to_resume): Renamed to
5607 x86_linux_prepare_to_resume. All uses updated.
5608 (amd64_linux_new_thread): Renamed to
5609 x86_linux_new_thread. All uses updated.
5610 (amd64_linux_new_fork): Renamed to
5611 x86_linux_new_fork. All uses updated.
5612 (amd64_linux_child_post_startup_inferior): Renamed to
5613 x86_linux_child_post_startup_inferior. All uses updated.
5614 (amd64_linux_enable_btrace): Renamed to
5615 x86_linux_enable_btrace. All uses updated.
5616 (amd64_linux_disable_btrace): Renamed to
5617 x86_linux_disable_btrace. All uses updated.
5618 (amd64_linux_teardown_btrace): Renamed to
5619 x86_linux_teardown_btrace. All uses updated.
5620 (amd64_linux_read_btrace): Renamed to
5621 x86_linux_read_btrace. All uses updated.
5622 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5623 x86_linux_dr_get. All uses updated.
5624 (i386_linux_dr_set): Renamed to
5625 x86_linux_dr_set. All uses updated.
5626 (i386_linux_dr_get_addr): Renamed to
5627 x86_linux_dr_get_addr. All uses updated.
5628 (i386_linux_dr_get_control): Renamed to
5629 x86_linux_dr_get_control. All uses updated.
5630 (i386_linux_dr_get_status): Renamed to
5631 x86_linux_dr_get_status. All uses updated.
5632 (i386_linux_dr_set_control): Renamed to
5633 x86_linux_dr_set_control. All uses updated.
5634 (i386_linux_dr_set_addr): Renamed to
5635 x86_linux_dr_set_addr. All uses updated.
5636 (i386_linux_prepare_to_resume): Renamed to
5637 x86_linux_prepare_to_resume. All uses updated.
5638 (i386_linux_new_thread): Renamed to
5639 x86_linux_new_thread. All uses updated.
5640 (i386_linux_new_fork): Renamed to
5641 x86_linux_new_fork. All uses updated.
5642 (i386_linux_child_post_startup_inferior): Renamed to
5643 x86_linux_child_post_startup_inferior. All uses updated.
5644 (i386_linux_enable_btrace): Renamed to
5645 x86_linux_enable_btrace. All uses updated.
5646 (i386_linux_disable_btrace): Renamed to
5647 x86_linux_disable_btrace. All uses updated.
5648 (i386_linux_teardown_btrace): Renamed to
5649 x86_linux_teardown_btrace. All uses updated.
5650 (i386_linux_read_btrace): Renamed to
5651 x86_linux_read_btrace. All uses updated.
5652
b9c1d481
AS
56532014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5654
5655 * remote.c (extended_remote_post_attach): New function.
5656 (init_extended_remote_ops): Install it as to_post_attach method.
5657
7180e04a
PA
56582014-07-09 Pedro Alves <palves@redhat.com>
5659
5660 * infcmd.c (attach_command_post_wait): Don't call
5661 target_terminal_inferior here.
5662 (attach_command): Call it here instead.
5663
9a9a7608
AB
56642014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5665
5666 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5667 field.
5668 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5669 from varobj.c, with additional checks.
5670 (c_varobj_ops): Fill in is_path_expr_parent field.
5671 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5672 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5673 field.
5674 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5675 ops method.
5676 (varobj_default_is_path_expr_parent): New function.
5677 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5678 (varobj_default_is_path_expr_parent): Declare new function.
5679
1f267ae3
MM
56802014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5681
5682 * infcmd.c (finish_backward): Turn internal error into normal error.
5683
b2ee242b
PA
56842014-07-07 Pedro Alves <palves@redhat.com>
5685
8a869bca 5686 PR gdb/17096
b2ee242b
PA
5687 * remote.c (async_handle_remote_sigint)
5688 (async_handle_remote_sigint_twice): Call
5689 gdb_call_async_signal_handler instead of
5690 mark_async_signal_handler.
5691
38e229b2
TT
56922014-07-07 Tom Tromey <tromey@redhat.com>
5693
5694 * target-delegates.c: Rebuild.
5695 * target.c (target_info_record): Remove.
5696 * record.c (info_record_command): Unconditionally call
5697 to_info_record.
5698 * target.h (struct target_ops) <to_info_record>: Use
5699 TARGET_DEFAULT_IGNORE.
5700 (target_info_record): Remove.
5701
f0f9ff95
TT
57022014-07-07 Tom Tromey <tromey@redhat.com>
5703
5704 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5705 TARGET_DEFAULT_NORETURN.
5706 * target.c (generic_tls_error): New function.
5707 (target_translate_tls_address): Don't search target stack.
5708 * target-delegates.c: Rebuild.
5709 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5710 stack.
5711 * linux-thread-db.c (thread_db_get_thread_local_address):
5712 Unconditionally call beneath target.
5713
4a5be5ee
MK
57142014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5715
5716 * cli/cli-logging.c (pop_output_files): Assign targerr to
5717 gdb_stdtargerr.
5718
92c3b204
AB
57192014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * MAINTAINERS (Write After Approval): Update my email address.
5722
9b11e3a7
GB
57232014-07-02 Gary Benson <gbenson@redhat.com>
5724
5725 * proc-service.c (ps_xfer_memory): Update comment.
5726 (ps_pstop): Remove unused function.
5727 (ps_pcontinue): Likewise.
5728 (ps_lstop): Likewise.
5729 (ps_lcontinue): Likewise.
5730 (ps_lgetxregsize): Likewise.
5731 (ps_lgetxregs): Likewise.
5732 (ps_lsetxregs): Likewise.
5733 (ps_plog): Likewise.
5734 (ps_ptread): Likewise.
5735 (ps_ptwrite): Likewise.
5736
cf363f18
MW
57372014-07-01 Mark Wielaard <mjw@redhat.com>
5738
5739 * dwarf2read.c (add_array_cv_type): New function.
5740 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5741 (read_tag_volatile_type): Likewise.
5742
82ae6c8d
TT
57432014-07-01 Tom Tromey <tromey@redhat.com>
5744
5745 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5746 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5747 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5748 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5749 * command.h (cmd_cfunc_ftype): Move earlier.
5750 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5751 (add_com, add_info): Use cmd_cfunc_ftype.
5752
96142726
TT
57532014-06-30 Tom Tromey <tromey@redhat.com>
5754
5755 * symtab.c (operator_chars): Make parameters and return type
5756 const.
5757 (file_matches): Make "files" const.
5758 (struct search_symbols_data) <files>: Now const.
5759 (search_symbols): Make "regexp" and "files" parameters const.
5760 Update.
5761 (symtab_symbol_info): Remove cast.
5762 (rbreak_command): Update.
5763 * symtab.h (search_symbols): Update.
5764
b67a2c6f
YQ
57652014-06-27 Yao Qi <yao@codesourcery.com>
5766
5767 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5768 Change parameter type to 'struct thread_info *'. Caller
5769 updated.
5770 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5771 Update declaration.
5772 * dummy-frame.c (struct dummy_frame_id): New.
5773 (dummy_frame_id_eq): New function.
5774 (struct dummy_frame) <id>: Change its type to 'struct
5775 dummy_frame_id'.
5776 (dummy_frame_push): Add parameter ptid and save it in
5777 dummy_frame_id.
5778 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5779 inferior_ptid.
5780 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5781 to inferior_ptid.
5782 (lookup_dummy_frame): Change parameter type to 'struct
5783 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5784 instead of frame_id_eq.
5785 (dummy_frame_pop): Add parameter ptid. Callers updated.
5786 Update comments. Compose dummy_frame_id and pass it to
5787 lookup_dummy_frame.
5788 (dummy_frame_discard): Add parameter ptid.
5789 (dummy_frame_sniffer): Compose dummy_frame_id and call
5790 dummy_frame_id_eq instead of frame_id_eq.
5791 (fprint_dummy_frames): Print ptid.
5792 * dummy-frame.h: Remove comments.
5793 (dummy_frame_push): Add ptid in declaration.
5794 (dummy_frame_pop, dummy_frame_discard): Likewise.
5795
5b10184c
TT
57962014-06-26 Tom Tromey <tromey@redhat.com>
5797
5798 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5799 * command.h (error_no_arg): Update.
5800
06900326
TT
58012014-06-26 Tom Tromey <tromey@redhat.com>
5802
5803 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5804 (do_show_command): Make "arg" const.
5805 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5806
c2bcbb1d
TT
58072014-06-26 Tom Tromey <tromey@redhat.com>
5808
5809 * record-full.c (record_full_get_bookmark): Make "args" const.
5810 (record_full_goto_bookmark): Make "raw_bookmark" const.
5811 * record.c (record_goto): New function.
5812 (cmd_record_goto): Use it. Now static.
5813 * record.h (record_goto): Declare.
5814 (cmd_record_goto): Remove declaration.
5815 * target-delegates.c: Rebuild.
5816 * target.h (struct target_ops) <to_get_bookmark,
5817 to_goto_bookmark>: Make parameter const.
5818
9cbe5fff
TT
58192014-06-26 Tom Tromey <tromey@redhat.com>
5820
5821 * defs.h (generic_load): Update.
5822 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5823 * monitor.c (monitor_load): Make "args" const.
5824 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5825 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5826 const.
5827 (mips_load): Make "file" const.
5828 * remote-sim.c (gdbsim_load): Make "args" const.
5829 * remote.c (remote_load): Make "name" const.
5830 * symfile.c (generic_load): Make "args" const.
5831 * target-delegates.c: Rebuild.
5832 * target.c (target_load): Make "arg" const.
5833 (debug_to_load): Make "args" const.
5834 * target.h (struct target_ops) <to_load>: Make parameter const.
5835 (target_load): Update.
5836
34a68019
TT
58372014-06-26 Tom Tromey <tromey@redhat.com>
5838
5839 PR symtab/16902:
5840 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5841 (dwarf2_physname, read_partial_die)
5842 (guess_partial_die_structure_name, fixup_partial_die)
5843 (guess_full_die_structure_name, anonymous_struct_prefix)
5844 (dwarf2_name): Use per-BFD obstack.
5845
efc889c1
YQ
58462014-06-26 Yao Qi <yao@codesourcery.com>
5847
5848 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5849 dummyframe and this_id into inner block below.
5850
4395285e
YQ
58512014-06-26 Yao Qi <yao@codesourcery.com>
5852
5853 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5854 with "signal_pass[0]" in the initialization of signal_pass.
5855
aef92902
MM
58562014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5857
5858 * record-btrace.c (record_btrace_generating_corefile)
5859 (record_btrace_prepare_to_generate_core)
5860 (record_btrace_done_generating_core): New.
5861 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5862 (record_btrace_store_registers, record_btrace_prepare_to_store):
5863 Forward request when generating a core file.
5864 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5865 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5866 to_done_generating_core.
5867
5fff78c4
MM
58682014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5869
5870 * target.h (target_ops) <to_prepare_to_generate_core>
5871 <to_done_generating_core>: New.
5872 (target_prepare_to_generate_core, target_done_generating_core): New.
5873 * target.c (target_prepare_to_generate_core)
5874 (target_done_generating_core): New.
5875 * target-delegates.c: Regenerate.
5876 * gcore.c: (write_gcore_file): Rename to ...
5877 (write_gcore_file_1): ...this.
5878 (write_gcore_file): Call target_prepare_to_generate_core
5879 and target_done_generating_core.
5880
1d1f1ccb
MM
58812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5882
5883 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5884 * gcore.c (write_gcore_file): Free memory returned from
5885 make_corefile_notes.
5886 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5887 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5888
3343ef86
YQ
58892014-06-24 Yao Qi <yao@codesourcery.com>
5890
5891 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5892 (arm_linux_init_abi): Set skip_trampoline_code with
5893 gdbarch_skip_trampoline_code instead of
5894 find_solib_trampoline_target.
5895
18d18ac8
YQ
58962014-06-24 Yao Qi <yao@codesourcery.com>
5897
5898 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5899 arm_skip_bx_reg returns non-zero.
5900
80d8d390
YQ
59012014-06-24 Yao Qi <yao@codesourcery.com>
5902
5903 * arm-tdep.c (arm_skip_bx_reg): New function.
5904 (arm_skip_stub): Call arm_skip_bx_reg.
5905
6a18a01c
DB
59062014-06-23 Don Breazeal <donb@codesourcery.com>
5907
5908 * MAINTAINERS: Add myself as write-after-approval maintainer.
5909
8e9db26e
PA
59102014-06-23 Pedro Alves <palves@redhat.com>
5911
5912 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5913 DR_CONTROL before setting DR0..DR3.
5914 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5915 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5916 bits of DR_CONTROL related to the debug register slot being
5917 disabled. If all slots are vacant, clear local slowdown as well,
5918 and assert DR_CONTROL is 0.
5919
70afc5b7
SC
59202014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5921
5922 * python/lib/gdb/command/xmethods.py
5923 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5924 current progspace only if the string "progspace" matches LOCUS_RE.
5925
840ed64d
JK
59262014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 Fix --with-system-readline with readline-6.3 patch 5.
5929 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5930 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5931 types.
5932
26f2dc30
TT
59332014-06-20 Tom Tromey <tromey@redhat.com>
5934
5935 * dwarf2read.c (dw2_get_real_path): Use correct type in
5936 OBSTACK_CALLOC.
5937 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5938
125f8a3d
GB
59392014-06-20 Gary Benson <gbenson@redhat.com>
5940
5941 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5942 * common/glibc_thread_db.h: Likewise.
5943 * common/i386-cpuid.h: Likewise.
5944 * common/i386-gcc-cpuid.h: Likewise.
5945 * common/linux-btrace.h: Likewise.
5946 * common/linux-osdata.h: Likewise.
5947 * common/linux-procfs.h: Likewise.
5948 * common/linux-ptrace.h: Likewise.
5949 * common/mips-linux-watch.h: Likewise.
5950 * common/linux-btrace.c: Moved to nat.
5951 * common/linux-osdata.c: Likewise.
5952 * common/linux-procfs.c: Likewise.
5953 * common/linux-ptrace.c: Likewise.
5954 * common/mips-linux-watch.c: Likewise.
5955 * nat/gdb_thread_db.h: Moved from common.
5956 * nat/glibc_thread_db.h: Likewise.
5957 * nat/i386-cpuid.h: Likewise.
5958 * nat/i386-gcc-cpuid.h: Likewise.
5959 * nat/linux-btrace.c: Likewise.
5960 * nat/linux-btrace.h: Likewise.
5961 * nat/linux-osdata.c: Likewise.
5962 * nat/linux-osdata.h: Likewise.
5963 * nat/linux-procfs.c: Likewise.
5964 * nat/linux-procfs.h: Likewise.
5965 * nat/linux-ptrace.c: Likewise.
5966 * nat/linux-ptrace.h: Likewise.
5967 * nat/mips-linux-watch.c: Likewise.
5968 * nat/mips-linux-watch.h: Likewise.
5969 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5970 (object file files): Reordered.
5971 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5972 of glibc_thread_db.h.
5973
42995dbd
GB
59742014-06-20 Gary Benson <gbenson@redhat.com>
5975
5976 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5977 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5978 (i386_dr_low): Likewise.
5979 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5980 (i386_dr_low_set_addr): Likewise.
5981 (i386_dr_low_get_addr): Likewise.
5982 (i386_dr_low_can_set_control): Likewise.
5983 (i386_dr_low_set_control): Likewise.
5984 (i386_dr_low_get_control): Likewise.
5985 (i386_dr_low_get_status): Likewise.
5986 (i386_get_debug_register_length): Likewise.
5987 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5988 (i386_dr_low): Likewise.
5989 * nat/i386-dregs.c (i386-low.h): Remove include.
5990 (i386-nat.h): Likewise.
5991 (nat/i386-dregs.h): New include.
5992 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5993 (i386_dr_low_set_addr): Likewise.
5994 (i386_dr_low_get_addr): Likewise.
5995 (i386_dr_low_can_set_control): Likewise.
5996 (i386_dr_low_set_control): Likewise.
5997 (i386_dr_low_get_control): Likewise.
5998 (i386_dr_low_get_status): Likewise.
5999 (i386_get_debug_register_length): Likewise.
6000 (debug_hw_points): Likewise.
6001
3ed9baed
IB
60022014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6003
6004 * Makefile.in (SFILES): Add d-exp.y.
6005 (YYFILES): Add d-exp.c.
6006 (YYOBJ): Add d-exp.o.
6007 (local-maintainer-clean): Delete d-exp.c.
6008 * d-exp.y: New file.
6009 * d-lang.h (d_parse): New declaration.
6010 (d_error): New declaration.
6011 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6012 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6013 PREC_ORDER operators.
6014 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6015
78c164b0
YQ
60162014-06-19 Yao Qi <yao@codesourcery.com>
6017
6018 * gdbthread.h (any_running): Remove the declaration.
6019 * thread.c (any_running): Remove.
6020
f6e29b6e
YQ
60212014-06-19 Yao Qi <yao@codesourcery.com>
6022
6023 * gdbthread.h (struct thread_info) <state>: Change its type to
6024 'enum thread_state'. Update comments.
6025
034f788c
PA
60262014-06-19 Pedro Alves <palves@redhat.com>
6027
6028 * gdbthread.h (ALL_THREADS): Delete.
6029 (ALL_NON_EXITED_THREADS): New macro.
6030 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6031 instead of ALL_THREADS.
6032 * infrun.c (find_thread_needs_step_over)
6033 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6034 instead of ALL_THREADS.
6035 * record-btrace.c (record_btrace_open)
6036 (record_btrace_stop_recording, record_btrace_close)
6037 (record_btrace_is_replaying, record_btrace_resume)
6038 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6039 * remote.c (append_pending_thread_resumptions): Likewise.
6040 * thread.c (thread_apply_all_command): Likewise.
6041
46e33252
GB
60422014-06-19 Gary Benson <gbenson@redhat.com>
6043
6044 * i386-nat.c (i386_stopped_by_watchpoint):
6045 Use i386_dr_stopped_by_watchpoint.
6046 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6047 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6048
3a8ee006
GB
60492014-06-19 Gary Benson <gbenson@redhat.com>
6050
6051 * nat/i386-dregs.c: New file.
6052 * Makefile.in (i386-dregs.o): New rule.
6053 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6054 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6055 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6056 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6057 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6058 * config/i386/go32.mh (NATDEPFILES): Likewise.
6059 * config/i386/linux.mh (NATDEPFILES): Likewise.
6060 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6061 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6062 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6063 * i386-nat.h (debug_hw_points): New declaration.
6064 * i386-nat.c (breakpoint.h): Remove include.
6065 (command.h): Likewise.
6066 (target.h): Likewise.
6067 (gdb_assert.h): Likewise.
6068 (debug_hw_points): Made nonstatic.
6069 (debug_printf): Now in i386-dregs.c.
6070 (TARGET_HAS_DR_LEN_8): Likewise.
6071 (DR_CONTROL_SHIFT): Likewise.
6072 (DR_CONTROL_SIZE): Likewise.
6073 (DR_RW_EXECUTE): Likewise.
6074 (DR_RW_WRITE): Likewise.
6075 (DR_RW_READ): Likewise.
6076 (DR_RW_IORW): Likewise.
6077 (DR_LEN_1): Likewise.
6078 (DR_LEN_2): Likewise.
6079 (DR_LEN_4): Likewise.
6080 (DR_LEN_8): Likewise.
6081 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6082 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6083 (DR_ENABLE_SIZE): Likewise.
6084 (DR_LOCAL_SLOWDOWN): Likewise.
6085 (DR_GLOBAL_SLOWDOWN): Likewise.
6086 (DR_CONTROL_RESERVED): Likewise.
6087 (I386_DR_CONTROL_MASK): Likewise.
6088 (I386_DR_VACANT): Likewise.
6089 (I386_DR_LOCAL_ENABLE): Likewise.
6090 (I386_DR_GLOBAL_ENABLE): Likewise.
6091 (I386_DR_DISABLE): Likewise.
6092 (I386_DR_SET_RW_LEN): Likewise.
6093 (I386_DR_GET_RW_LEN): Likewise.
6094 (I386_DR_WATCH_HIT): Likewise.
6095 (i386_wp_op_t): Likewise.
6096 (i386_show_dr): Likewise.
6097 (i386_length_and_rw_bits): Likewise.
6098 (i386_insert_aligned_watchpoint): Likewise.
6099 (i386_remove_aligned_watchpoint): Likewise.
6100 (i386_handle_nonaligned_watchpoint): Likewise.
6101 (i386_update_inferior_debug_regs): Likewise.
6102 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6103 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6104 (i386_region_ok_for_watchpoint):
6105 Use i386_dr_region_ok_for_watchpoint.
6106 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6107
322a8e06
GB
61082014-06-19 Gary Benson <gbenson@redhat.com>
6109
6110 * i386-nat.c (i386_insert_hw_breakpoint): Use
6111 i386_insert_watchpoint.
6112 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6113
8f26655c
GB
61142014-06-19 Gary Benson <gbenson@redhat.com>
6115
6116 * i386-nat.c (i386_dr_show): Renamed to
6117 i386_show_dr and made static. All uses updated.
6118 (i386_dr_length_and_rw_bits): Renamed to
6119 i386_length_and_rw_bits and made static.
6120 All uses updated.
6121 (i386_dr_insert_aligned_watchpoint): Renamed to
6122 i386_insert_aligned_watchpoint and made static.
6123 All uses updated.
6124 (i386_dr_remove_aligned_watchpoint): Renamed to
6125 i386_remove_aligned_watchpoint and made static.
6126 All uses updated.
6127 (i386_dr_update_inferior_debug_regs): Renamed to
6128 i386_update_inferior_debug_regs and made static.
6129 All uses updated.
6130 * nat/i386-dregs.h (i386_dr_show): Removed.
6131 (i386_dr_length_and_rw_bits): Likewise.
6132 (i386_dr_insert_aligned_watchpoint): Likewise.
6133 (i386_dr_remove_aligned_watchpoint): Likewise.
6134 (i386_dr_update_inferior_debug_regs): Likewise.
6135
992c7d70
GB
61362014-06-19 Gary Benson <gbenson@redhat.com>
6137
6138 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6139 * configure: Regenerate.
6140 * config.in: Likewise.
6141 * main.c (signal.h): New include.
6142 (setup_alternate_signal_stack): New function.
6143 (captured_main): Call the above.
6144 * cp-support.c (signal.h): New include.
6145 (catch_demangler_crashes): New flag.
6146 (SIGJMP_BUF): New define.
6147 (SIGSETJMP): Likewise.
6148 (SIGLONGJMP): Likewise.
6149 (gdb_demangle_jmp_buf): New static global.
6150 (gdb_demangle_attempt_core_dump): Likewise.
6151 (gdb_demangle_signal_handler): New function.
6152 (gdb_demangle): If catch_demangler_crashes is set, install the
6153 above signal handler before calling bfd_demangle, and restore
6154 the original signal handler afterwards. Display the offending
6155 symbol and call demangler_warning the first time a segmentation
6156 fault is caught.
6157 (_initialize_cp_support): New maint set/show command.
6158
eae7090b
GB
61592014-06-19 Gary Benson <gbenson@redhat.com>
6160
6161 * utils.h (resource_limit_kind): New enum.
6162 (can_dump_core): New declaration.
6163 (warn_cant_dump_core): Likewise.
6164 (dump_core): Likewise.
6165 * utils.c (dump_core): Made nonstatic. Added new
6166 parameter "limit_kind".
6167 (can_dump_core): Made nonstatic. Moved printing code to...
6168 (warn_cant_dump_core): New function.
6169 (can_dump_core_warn): Likewise.
6170 (internal_vproblem): Replace calls to can_dump_core with
6171 calls to can_dump_core_warn. Supply new argument to each.
6172
57fcfb1b
GB
61732014-06-19 Gary Benson <gbenson@redhat.com>
6174
6175 * utils.h (demangler_vwarning): New declaration.
6176 (demangler_warning): Likewise.
6177 * utils.c (struct internal_problem)
6178 <user_settable_should_quit>: New field.
6179 <user_settable_should_dump_core>: Likewise
6180 (internal_error_problem): Add values for above new fields.
6181 (internal_warning_problem): Likewise.
6182 (demangler_warning_problem): New static global.
6183 (demangler_vwarning): New function.
6184 (demangler_warning): Likewise.
6185 (add_internal_problem_command): Selectively add commands.
6186 (_initialize_utils): New internal problem command.
6187 * maint.c (maintenance_demangler_warning): New function.
6188 (_initialize_maint_cmds): New command.
6189
17a40b44
TT
61902014-06-18 Tom Tromey <tromey@redhat.com>
6191
6192 * f-valprint.c (info_common_command_for_block): Update.
6193 * symtab.h (struct general_symbol_info) <common_block>: Now
6194 const.
6195
346d1dfe
TT
61962014-06-18 Tom Tromey <tromey@redhat.com>
6197
6198 * symtab.h (struct symtab) <blockvector>: Now const.
6199 * ada-lang.c (ada_add_global_exceptions): Update.
6200 * buildsym.c (augment_type_symtab): Update.
6201 * dwarf2read.c (dw2_lookup_symbol): Update.
6202 * jit.c (finalize_symtab): Update.
6203 * jv-lang.c (add_class_symtab_symbol): Update.
6204 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6205 Update.
6206 * objfiles.c (objfile_relocate1): Update.
6207 * psymtab.c (lookup_symbol_aux_psymtabs)
6208 (maintenance_check_psymtabs): Update.
6209 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6210 Update.
6211 * spu-tdep.c (spu_catch_start): Update.
6212 * symmisc.c (dump_symtab_1): Update.
6213 * symtab.c (lookup_global_symbol_from_objfile)
6214 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6215 (basic_lookup_transparent_type_quick)
6216 (basic_lookup_transparent_type, find_pc_sect_symtab)
6217 (find_pc_sect_line, search_symbols): Update.
6218 * block.c (find_block_in_blockvector): Make "bl" const.
6219 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6220 const.
6221 (blockvector_contains_pc): Make "bv" const.
6222 (block_for_pc_sect): Update.
6223 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6224 (blockvector_contains_pc): Update.
6225 * breakpoint.c (resolve_sal_pc): Update.
6226 * inline-frame.c (block_starting_point_at): Update.
6227
1834676b
TT
62282014-06-18 Tom Tromey <tromey@redhat.com>
6229
6230 * completer.c (complete_line): Make "line_buffer" const.
6231 * completer.h (complete_line): Update.
6232
ac1a991b
TT
62332014-06-18 Tom Tromey <tromey@redhat.com>
6234
6235 * symtab.c (add_macro_name): Remove unneeded cast.
6236
5bc98e52
TT
62372014-06-18 Tom Tromey <tromey@redhat.com>
6238
6239 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6240 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6241
8236def8
TT
62422014-06-18 Tom Tromey <tromey@redhat.com>
6243
6244 * probe.c (info_probes_for_ops): Make "arg" const.
6245 * probe.h (info_probes_for_ops): Update.
6246
3977b71f
TT
62472014-06-18 Tom Tromey <tromey@redhat.com>
6248
6249 * varobj.c (varobj_create): Update.
6250 * valops.c (value_of_this): Update.
6251 * tracepoint.c (add_local_symbols, scope_info): Update.
6252 * symtab.h (struct general_symbol_info) <block>: Now const.
6253 * symtab.c (skip_prologue_sal)
6254 (default_make_symbol_completion_list_break_on)
6255 (skip_prologue_using_sal): Update.
6256 * stack.h (iterate_over_block_locals)
6257 (iterate_over_block_local_vars): Update.
6258 * stack.c (print_frame_args): Update.
6259 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6260 parameter const.
6261 (get_selected_block): Make return type const.
6262 * python/py-frame.c (frapy_block): Update.
6263 * python/py-block.c (gdbpy_block_for_pc): Update.
6264 * p-exp.y (%union) <bval>: Now const.
6265 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6266 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6267 * m2-exp.y (%union) <bval>: Now const.
6268 * linespec.c (get_current_search_block): Make return type const.
6269 (create_sals_line_offset, find_label_symbols): Update.
6270 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6271 Update.
6272 (block_starting_point_at): Make "block" const.
6273 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6274 (check_exception_resume): Update.
6275 * guile/scm-frame.c (gdbscm_frame_block): Update.
6276 * guile/scm-block.c (gdbscm_lookup_block): Update.
6277 * frame.h (get_frame_block): Update.
6278 (get_selected_block): Make return type const.
6279 * frame.c (frame_id_inner): Update.
6280 * f-valprint.c (info_common_command_for_block)
6281 (info_common_command): Update.
6282 * dwarf2loc.c (dwarf2_find_location_expression)
6283 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6284 (locexpr_describe_location_piece): Update.
6285 * c-exp.y (%union) <bval>: Now const.
6286 * breakpoint.c (resolve_sal_pc): Update.
6287 * blockframe.c (get_frame_block):Make return type const.
6288 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6289 (block_innermost_frame): Update.
6290 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6291 (block_for_pc, block_for_pc_sect): Update.
6292 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6293 'pblock' const.
6294 (block_for_pc_sect, block_for_pc): Make return type const.
6295 * ax-gdb.c (gen_expr): Update.
6296 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6297 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6298 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6299 (ada_read_var_value): Update.
6300 * ada-exp.y (struct name_info) <block>: Now const.
6301 (%union): Likewise.
6302 (block_lookup): Constify.
6303
b9228891
GB
63042014-06-18 Gary Benson <gbenson@redhat.com>
6305
6306 * nat/i386-dregs.h: New file.
6307 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6308 * i386-nat.h (i386-dregs.h): New include.
6309 (DR_FIRSTADDR): Now in i386-dregs.h.
6310 (DR_LASTADDR): Likewise.
6311 (DR_NADDR): Likewise.
6312 (DR_STATUS): Likewise.
6313 (DR_CONTROL): Likewise.
6314 (i386_debug_reg_state): Likewise.
6315 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6316
a1aa2221
LM
63172014-06-18 Don Breazeal <donb@codesourcery.com>
6318
6319 * breakpoint.c (set_longjmp_breakpoint): Call
6320 momentary_breakpoint_from_master with additional argument.
6321 (set_longjmp_breakpoint_for_call_dummy): Call
6322 momentary_breakpoint_from_master with additional argument.
6323 (set_std_terminate_breakpoint): Call
6324 momentary_breakpoint_from_master with additional argument.
6325 (momentary_breakpoint_from_master): Add argument to function
6326 definition and use it to initialize structure member flag.
74228e77 6327 (clone_momentary_breakpoint): Call
a1aa2221
LM
6328 momentary_breakpoint_from_master with additional argument.
6329 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6330 member flags set in momentary_breakpoint_from_master.
6331
4be83cc2
GB
63322014-06-18 Gary Benson <gbenson@redhat.com>
6333
6334 * i386-nat.c (i386_show_dr): Renamed to
6335 i386_dr_show and made nonstatic. All uses updated.
6336 (i386_length_and_rw_bits): Renamed to
6337 i386_dr_length_and_rw_bits and made nonstatic.
6338 All uses updated.
6339 (i386_insert_aligned_watchpoint): Renamed to
6340 i386_dr_insert_aligned_watchpoint and made nonstatic.
6341 All uses updated.
6342 (i386_remove_aligned_watchpoint): Renamed to
6343 i386_dr_remove_aligned_watchpoint and made nonstatic.
6344 All uses updated.
6345 (i386_update_inferior_debug_regs): Renamed to
6346 i386_dr_update_inferior_debug_regs and made nonstatic.
6347 All uses updated.
6348
131aa0d4
GB
63492014-06-18 Gary Benson <gbenson@redhat.com>
6350
6351 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6352 (i386_dr_low_can_set_control): Likewise.
6353 (i386_dr_low_set_addr): Likewise.
6354 (i386_dr_low_set_control): Likewise.
6355 (i386_dr_low_get_addr): Likewise.
6356 (i386_dr_low_get_status): Likewise.
6357 (i386_dr_low_get_control): Likewise.
6358 (i386_insert_aligned_watchpoint): Use new macros.
6359 (i386_update_inferior_debug_regs): Likewise.
6360 (i386_stopped_data_address): Likewise.
6361
d9305f7f
GB
63622014-06-18 Gary Benson <gbenson@redhat.com>
6363
6364 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6365 New parameter. All uses updated.
6366
ea008da4
GB
63672014-06-18 Gary Benson <gbenson@redhat.com>
6368
6369 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6370 All uses updated.
6371
1b6d4134
GB
63722014-06-18 Gary Benson <gbenson@redhat.com>
6373
6374 * i386-nat.c (debug_printf): New macro.
6375 (i386_get_debug_register_length): Likewise.
6376 (TARGET_HAS_DR_LEN_8): Use above macro.
6377 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6378 and printf_unfiltered. Use phex to format values.
6379
9b4550ef
GB
63802014-06-18 Gary Benson <gbenson@redhat.com>
6381
6382 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6383 Make const.
6384
6e62758f
GB
63852014-06-18 Gary Benson <gbenson@redhat.com>
6386
6387 * i386-nat.c: Comment changes.
6388
51c79e94
GB
63892014-06-18 Gary Benson <gbenson@redhat.com>
6390
6391 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6392
3e11889a
GB
63932014-06-18 Gary Benson <gbenson@redhat.com>
6394
6395 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6396 (i386_insert_aligned_watchpoint): Likewise.
6397 (i386_remove_aligned_watchpoint): Likewise.
6398 (i386_handle_nonaligned_watchpoint): Likewise.
6399
fc6e2f03
GB
64002014-06-18 Gary Benson <gbenson@redhat.com>
6401
6402 * i386-nat.c: Whitespace changes.
6403
2afe7d50
SB
64042014-06-17 Samuel Bronson <naesten@gmail.com>
6405
6406 * MAINTAINERS: Update Roland McGrath's email address.
6407 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6408 Red Hat a while ago, and giving me a current address.
2afe7d50 6409
3bca49ee
TT
64102014-06-17 Tom Tromey <tromey@redhat.com>
6411
6412 * utils.h (savestring): Remove declaration.
6413
6e366df1
TT
64142014-06-17 Tom Tromey <tromey@redhat.com>
6415
6416 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6417
6be47f0c
KS
64182014-06-16 Keith Seitz <keiths@redhat.com>
6419
6420 PR mi/15863
6421 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6422 to update the varobj if inferior_ptid is null_ptid.
6423
7bc112c1
TT
64242014-06-16 Tom Tromey <tromey@redhat.com>
6425
6426 * target.h (struct target_ops) <to_info_proc>: Make parameter
6427 const.
6428 (target_info_proc): Update.
6429 * target.c (target_info_proc): Make "args" const.
6430 * procfs.c (procfs_info_proc): Update.
6431 * linux-tdep.c (linux_info_proc): Update.
6432 (linux_core_info_proc_mappings): Make "args" const.
6433 (linux_core_info_proc): Update.
6434 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6435 * gdbarch.c: Rebuild.
6436 * gdbarch.h: Rebuild.
6437 * corelow.c (core_info_proc): Update.
6438
fee354ee
TT
64392014-06-16 Tom Tromey <tromey@redhat.com>
6440
6441 * target.h (struct target_ops) <to_disconnect>: Make parameter
6442 const.
6443 (target_disconnect): Update.
6444 * target.c (target_disconnect): Make "args" const.
6445 * target-delegates.c: Rebuild.
6446 * remote.c (remote_disconnect): Update.
6447 * record.h (record_disconnect): Update.
6448 * record.c (record_disconnect): Update.
6449 * inf-child.c (inf_child_disconnect): Update.
6450
a30bf1f1
TT
64512014-06-16 Tom Tromey <tromey@redhat.com>
6452
6453 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6454 * target.c (debug_to_rcmd, default_rcmd): Update.
6455 * target-delegates.c: Rebuild.
6456 * remote.c (remote_rcmd): Update.
6457 * monitor.c (monitor_rcmd): Update.
6458
d03de421
PA
64592014-06-16 Pedro Alves <palves@redhat.com>
6460
6461 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6462 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6463 have OBJF_SHARED set.
6464 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6465 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6466 instead of OBJF_USERLOADED.
6467 * objfiles.h (OBJF_SHARED): Update comment.
6468 (userloaded_objfile_contains_address_p): Rename to ...
6469 (shared_objfile_contains_address_p): ... this, and update
6470 comments.
6471 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6472 new objfile.
6473 (remove_symbol_file_command): Skip objfiles that don't have
6474 OBJF_SHARED set.
6475
99f4262f
TT
64762014-06-16 Tom Tromey <tromey@redhat.com>
6477
6478 * minsyms.h (prim_record_minimal_symbol)
6479 (prim_record_minimal_symbol_and_info): Update comments.
6480
97d66cc6
EZ
64812014-06-14 Eli Zaretskii <eliz@gnu.org>
6482
6483 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6484 or --without-guile, according to how GDB was built.
6485
635c7e8a
TT
64862014-06-13 Tom Tromey <tromey@redhat.com>
6487
6488 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6489 to help_list.
6490 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6491 to help_list.
6492 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6493 help_list.
6494 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6495 help_list.Pass all_commands, not -1, to help_list.
6496 * cli/cli-dump.c (dump_command, append_command)
6497 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6498 (binary_dump_command, binary_append_command): Pass all_commands,
6499 not -1, to help_list.
6500 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6501 -1, to help_list.
6502 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6503 -1, to help_list.
6504 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6505 help_list.
6506 * top.c (set_history): Pass all_commands, not -1, to help_list.
6507 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6508 all_commands, not -1, to help_list.
6509 * symfile.c (overlay_command): Pass all_commands, not -1, to
6510 help_list.
6511 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6512 help_list.
6513 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6514 help_list.
6515 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6516 -1, to help_list.
6517 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6518 not -1, to help_list.
6519 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6520 not -1, to help_list.
6521 * maint.c (maintenance_command, maintenance_info_command)
6522 (maintenance_print_command, maintenance_set_cmd): Pass
6523 all_commands, not -1, to help_list.
6524 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6525 help_list.
6526 * language.c (set_check): Pass all_commands, not -1, to help_list.
6527 * infcmd.c (unset_command): Pass all_commands, not -1, to
6528 help_list.
6529 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6530 help_list.
6531 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6532 help_list.
6533 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6534 help_list.
6535 * breakpoint.c (save_command): Pass all_commands, not -1, to
6536 help_list.
6537 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6538 all_commands, not -1, to help_list.
6539
b94ade42
PL
65402014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6541
6542 * regcache.c (struct register_to_invalidate): New structure.
6543 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6544 functions.
6545 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6546
31f628ae
YQ
65472014-06-12 Yao Qi <yao@codesourcery.com>
6548
6549 * varobj.c (varobj_get_num_children): Call
6550 varobj_is_dynamic_p.
6551 (varobj_list_children): Likewise.
6552 (varobj_update): Likewise. Update comments.
6553
cde5ef40
YQ
65542014-06-12 Yao Qi <yao@codesourcery.com>
6555
6556 * varobj.c (varobj_pretty_printed_p): Rename to ...
6557 (varobj_is_dynamic_p): ... this. New function.
6558 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6559 (varobj_is_dynamic_p): Declare.
6560 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6561 (mi_print_value_p, varobj_update_one): Likewise.
6562
576ea091
YQ
65632014-06-12 Pedro Alves <pedro@codesourcery.com>
6564 Yao Qi <yao@codesourcery.com>
6565
6566 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6567 (varobj_get_iterator): Wrap up code for pretty-printer by
6568 "#if HAVE_PYTHON" and "#endif".
6569 (update_dynamic_varobj_children): Likewise.
6570
827f100c
YQ
65712014-06-12 Pedro Alves <pedro@codesourcery.com>
6572 Yao Qi <yao@codesourcery.com>
6573
6574 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6575 gdb_python_initialized is false. Move some code from varobj.c.
6576 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6577 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6578 (struct varobj_item): Moved to varobj-iter.h".
6579 (varobj_clear_saved_item): New function.
6580 (update_dynamic_varobj_children): Move python-related code to
6581 py-varobj.c.
6582 (free_variable): Call varobj_clear_saved_item and
6583 varobj_iter_delete.
6584
e5250216
YQ
65852014-06-12 Pedro Alves <pedro@codesourcery.com>
6586 Yao Qi <yao@codesourcery.com>
6587
6588 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6589 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6590 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6591 (py-varobj.o): New rule.
6592 * python/py-varobj.c: New file.
6593 * python/python-internal.h (py_varobj_get_iterator): Declare.
6594 * varobj-iter.h: New file.
6595 * varobj.c: Include "varobj-iter.h"
6596 (struct varobj) <child_iter>: Change its type from "PyObject *"
6597 to "struct varobj_iter *".
6598 <saved_item>: Likewise.
6599 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6600 [HAVE_PYTHON] (varobj_get_iterator): New function.
6601 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6602 python-specific code to python/py-varobj.c.
6603 (install_visualizer): Call varobj_iter_delete instead of
6604 Py_XDECREF.
6605 * varobj.h (varobj_ensure_python_env): Declare.
6606
5a2e0d6e
YQ
66072014-06-12 Yao Qi <yao@codesourcery.com>
6608
6609 * varobj.c (struct varobj_item): New structure.
6610 (create_child_with_value): Update declaration.
6611 (varobj_add_child): Replace arguments 'name' and 'value' with
6612 'item'. All callers updated.
6613 (install_dynamic_child): Likewise.
6614 (update_dynamic_varobj_children): Likewise.
6615 (varobj_add_child): Likewise.
6616 (create_child_with_value): Likewise.
6617
919b9a93
JB
66182014-06-11 Joel Brobecker <brobecker@adacore.com>
6619
6620 * NEWS: Create a new section for the next release branch.
6621 Rename the section of the current branch, now that it has
6622 been cut.
6623
71a55bdf
JB
66242014-06-11 Joel Brobecker <brobecker@adacore.com>
6625
6626 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6627 * version.in: Bump version to 7.8.50.DATE-cvs.
6628
364fe1f7
PA
66292014-06-11 Pedro Alves <palves@redhat.com>
6630
6631 PR remote/17028
6632 * ser-mingw.c (net_windows_socket_check_pending): New function.
6633 (net_windows_select_thread): Ignore spurious wakeups. Use
6634 net_windows_socket_check_pending.
6635 (net_windows_wait_handle): Check for pending events with
6636 ioctlsocket, through net_windows_socket_check_pending, instead of
6637 checking the socket's event.
6638
5a6c7709
SC
66392014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6640
6641 * python/python-internal.h (gdb_PyObject_GetAttrString)
6642 (gdb_PyObject_HasAttrString): New inline function definitions.
6643 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6644 char * of the second argument to PyObject_GetAttrString.
74228e77 6645
0e58ee40
JB
66462014-06-10 Joel Brobecker <brobecker@adacore.com>
6647
6648 * serial.c (serial_write): Fix index of character to be printed
6649 in call to serial_logchar when serial debug traces are enabled.
6650
d190df30
JB
66512014-06-10 Joel Brobecker <brobecker@adacore.com>
6652
6653 * gdbtypes (resolve_dynamic_range): Add function description.
6654
b4b01d36
PA
66552014-06-09 Pedro Alves <palves@redhat.com>
6656
6657 * linux-nat.c (linux_child_follow_fork): Initialize status with
6658 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6659 inner block. Only pass the signal to PTRACE_DETACH if in pass
6660 state.
6661
3657956b
GB
66622014-06-09 Gary Benson <gbenson@redhat.com>
6663
6664 * common/signals.c (gdb_signal_from_host): Reorder to separate
6665 the always-available ANSI-standard signals from the signals that
6666 require checking.
6667 (do_gdb_signal_to_host): Likewise.
6668 * proc-events.c (signal_table): Likewise.
6669
c077881a
HZ
66702014-06-08 Hui Zhu <hui@codesourcery.com>
6671
6672 * common/linux-ptrace.c (linux_disable_event_reporting): New
6673 function.
6674 * common/linux-ptrace.h (linux_disable_event_reporting): New
6675 declaration.
6676 * linux-nat.c (linux_child_follow_fork): Do a single step before
6677 detach.
6678
4186eb54
KS
66792014-06-07 Keith Seitz <keiths@redhat.com>
6680
6681 Revert:
6682 PR c++/16253
6683 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6684 from symbol_matches_domain in symtab.c. All local callers
6685 of symbol_matches_domain updated.
6686 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6687 search STRUCT_DOMAIN.
6688 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6689 independently. standard_lookup will do that automatically.
6690 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6691 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6692 (cp_lookup_symbol_in_namespace): Likewise.
6693 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6694 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6695 may return a STRUCT_DOMAIN match.
6696 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6697 * cp-support.c: Include language.h.
6698 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6699 VAR_DOMAIN.
6700 * psymtab.c (match_partial_symbol): Compare the requested
6701 domain with the symbol's domain directly.
6702 (lookup_partial_symbol): Likewise.
6703 * symtab.c (lookup_symbol_in_language): Explain when/why
6704 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6705 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6706 appropriate languages.
6707 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6708 and moved to ada-lang.c
6709 (lookup_block_symbol): Explain that this function only returns
6710 symbol matching the requested DOMAIN.
6711 Compare the requested domain with the symbol's domain directly.
6712 (iterate_over_symbols): Compare the requested domain with the
6713 symbol's domain directly.
6714 * symtab.h (symbol_matches_domain): Remove.
6715
25326a28 67162014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6717
6718 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6719 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6720 (gdbscm_guile_version_is_at_least): Declare.
6721 (gdbscm_scm_string_to_int): Declare.
6722 * guile/guile.c (gdbscm_guile_major_version): New global.
6723 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6724 (guile_datadir): New static global.
6725 (gdbscm_guile_data_directory): New function.
6726 (initialize_scheme_side): Update.
6727 (misc_guile_functions): Add guile-data-directory.
6728 (initialize_gdb_module): Fetch guile version number.
6729 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6730 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6731 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6732 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6733 comments.
6734 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6735 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6736 * guile/scm-value.c (gdbscm_value_to_string): Only call
6737 scm_port_conversion_strategy if Guile version >= 2.0.6.
6738
0a770bb2 67392014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6740
6741 * main.c (print_gdb_help): Add -q and --silent.
6742
73ba372c
GB
67432014-06-06 Gary Benson <gbenson@redhat.com>
6744
6745 * common/signals.c: Remove preprocessor conditionals for
6746 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6747 SIGSEGV and SIGTERM.
6748 * proc-events.c: Likewise.
6749
c33b2f12
MM
67502014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6751
6752 * symfile.c (symfile_free_objfile): Remove restriction to
6753 OBJF_USERLOADED.
6754 * symfile-mem.c (symbol_file_add_from_memory): Call
6755 add_target_sections_of_objfile.
6756
fb934770
LC
67572014-06-05 Ludovic Courtès <ludo@gnu.org>
6758
6759 * guile/scm-value.c (gdbscm_history_append_x): Use
6760 'vlscm_get_value_smob_arg_unsafe' instead of
6761 'vlscm_scm_to_value'.
6762
6ef284bd
SM
67632014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6764
6765 PR mi/15806
6766 * utils.c (printchar): Don't escape at all if quoter is NUL.
6767 Update function documentation to clarify effect of parameter
6768 QUOTER.
6769 * remote.c (escape_buffer): Pass '\\' as the quoter to
6770 fputstrn_unfiltered.
6771 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6772 generate the output.
6773 (mi_solib_unloaded): Same.
6774
270c9937
JB
67752014-06-05 Joel Brobecker <brobecker@adacore.com>
6776
6777 * development.sh: Delete.
6778 * Makefile.in (config.status): Adjust dependency on development.sh.
6779 * configure.ac: Adjust development.sh source call.
6780 * configure: Regenerate.
6781
16f691fb
DE
67822014-06-04 Doug Evans <xdje42@gmail.com>
6783
6784 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6785 is_scheme_bkpt, spec.
6786 (bpscm_make_breakpoint_smob): Initialize new members.
6787 (gdbscm_create_breakpoint_x): Split into two ...
6788 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6789 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6790 (scheme_function breakpoint_functions): Update.
6791 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6792 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6793 register-breakpoint!.
6794
ef7cab6b
JB
67952014-06-04 Joel Brobecker <brobecker@adacorer.com>
6796
6797 PR server/17023
6798 * mem-break.c (z_type_supported): Return zero if
6799 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6800
012370f6
TT
68012014-06-04 Tom Tromey <tromey@redhat.com>
6802
6803 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6804 value_from_contents_and_address_unresolved.
6805 (ada_template_to_fixed_record_type_1): Likewise.
6806 (ada_which_variant_applies): Likewise.
6807 * value.h (value_from_contents_and_address_unresolved): Declare.
6808 * value.c (value_from_contents_and_address_unresolved): New
6809 function.
6810 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6811 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6812 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6813
92e2a17f
TT
68142014-06-04 Tom Tromey <tromey@redhat.com>
6815
6816 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6817
c0939df1
TT
68182014-06-04 Tom Tromey <tromey@redhat.com>
6819
6820 * procfs.c (procfs_attach): Make "args" const.
6821 * windows-nat.c (windows_attach): Make "args" const.
6822 * nto-procfs.c (procfs_attach): Make "args" const.
6823 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6824 * go32-nat.c (go32_attach): Make "args" const.
6825 * gnu-nat.c (gnu_attach): Make "args" const.
6826 * darwin-nat.c (darwin_attach): Make "args" const.
6827 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6828 * linux-nat.c (linux_nat_attach): Make "args" const.
6829 * remote.c (extended_remote_attach_1, extended_remote_attach):
6830 Make "args" const.
6831 * target.h (struct target_ops) <to_attach>: Make "args" const.
6832 (find_default_attach): Likewise.
6833 * utils.c (parse_pid_to_attach): Make "args" const.
6834 * utils.h (parse_pid_to_attach): Update.
6835
8eaff7cd
TT
68362014-06-04 Tom Tromey <tromey@redhat.com>
6837
6838 * target-delegates.c: Rebuild.
6839 * target.c (default_thread_address_space): New function.
6840 (target_thread_address_space): Simplify.
6841 * target.h (struct target_ops) <to_thread_address_space>: Add
6842 TARGET_DEFAULT_FUNC.
6843
1913f160
DE
68442014-06-04 Doug Evans <xdje42@gmail.com>
6845
6846 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6847
70ad5bff
MM
68482014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6849
6850 * record-btrace.c: Include event-loop.h and inf-loop.h.
6851 (record_btrace_resume_exec_dir)
6852 (record_btrace_async_inferior_event_handler)
6853 (record_btrace_handle_async_inferior_event): New.
6854 (record_btrace_open): Create async event handler.
6855 (record_btrace_close): Delete async event handler.
6856 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6857 Mark async event handler.
6858 (record_btrace_execution_direction): New.
6859 (init_record_btrace_ops): Initialize to_execution_direction.
6860
b6210538
DE
68612014-06-03 Doug Evans <xdje42@gmail.com>
6862
6863 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6864 (gdbscm_make_parameter): Ditto.
6865
a5b1fd27
DE
68662014-06-03 Doug Evans <dje@google.com>
6867
6868 * exec.c (exec_close_1): Call clear_section_table instead of
6869 resize_section_table.
6870 (clear_section_table): New function.
6871 (resize_section_table): Make static. Rename arg num_added to
6872 adjustment.
6873 * exec.h (clear_section_table): Declare.
6874 (resize_section_table): Delete.
6875 * progspace.c (release_program_space): Call clear_section_table
6876 instead of resize_section_table.
6877
0c6e92a5
SC
68782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6879
6880 * NEWS (Python Scripting): Add entry about the new xmethods
6881 feature.
6882
883964a7
SC
68832014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6884
6885 * python/py-xmethods.c: New file.
6886 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6887 (objfpy_dealloc): XDECREF on the new xmethods field.
6888 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6889 field.
6890 (objfpy_get_xmethods): New function.
6891 (objfile_getset): New entry 'xmethods'.
6892 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6893 (pspy_dealloc): XDECREF on the new xmethods field.
6894 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6895 field.
6896 (pspy_get_xmethods): New function.
6897 (pspace_getset): New entry 'xmethods'.
6898 * python/python-internal.h: Add declarations for new functions.
6899 * python/python.c (_initialize_python): Invoke
6900 gdbpy_initialize_xmethods.
6901 * python/lib/gdb/__init__.py (xmethods): New
6902 attribute.
6903 * python/lib/gdb/xmethod.py: New file.
6904 * python/lib/gdb/command/xmethods.py: New file.
6905
58992dc5
SC
69062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6907
6908 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6909 best match method returned by find_overload_match is an xmethod.
6910 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6911 the best matching operator returned by find_overload_match is an
6912 xmethod.
6913 * valops.c: #include "extension.h".
6914 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6915 Return void. The list of matching source methods is returned in
6916 "fn_list" and a vector of matching debug method workers is
6917 returned in "xm_worker_vec". Update all callers.
6918 (value_find_oload_method_list): Likewise.
6919 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6920 non-NULL, then the index of the best matching method in this
6921 vector is returned. Update all callers.
6922 (find_overload_match): Include xmethods while performing overload
6923 resolution.
6924
e81e7f5e
SC
69252014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6926
6927 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6928 * extension-priv.h (struct extension_language_ops): Add the
6929 xmethod interface.
6930 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6931 get_matching_xmethod_workers, get_xmethod_argtypes,
6932 invoke_xmethod, free_xmethod_worker,
6933 free_xmethod_worker_vec): New functions.
6934 * extension.h: #include "common/vec.h".
6935 New function declarations.
6936 (struct xmethod_worker): New struct.
6937 (VEC (xmethod_worker_ptr)): New vector type.
6938 (xmethod_worker_ptr): New typedef.
6939 (xmethod_worker_vec): Likewise.
6940 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6941 builtin_type.
6942 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6943 (struct builtin_type): New field "xmethod".
6944 * valarith.c (value_ptradd): Assert that the value argument is not
6945 lval_xcallable.
6946 * valops.c (value_must_coerce_to_target): Return 0 for
6947 lval_xcallable values.
6948 * value.c (struct value): New field XM_WORKER in the field
6949 LOCATION.
6950 (value_address, value_raw_address): Return 0 for lval_xcallable
6951 values.
6952 (set_value_address): Assert that the value is not an
6953 lval_xcallable.
6954 (value_free): Free the associated xmethod worker when freeing
6955 lval_xcallable values.
6956 (set_value_component_location): Assert that the WHOLE value is not
6957 lval_xcallable.
6958 (value_of_xmethod, call_xmethod): New functions.
6959 * value.h: Declare "struct xmethod_worker".
6960 Declare new functions value_of_xmethod, call_xmethod.
6961
ef370185
JB
69622014-06-03 Joel Brobecker <brobecker@adacore.com>
6963 Pedro Alves <palves@redhat.com>
6964
6965 PR breakpoints/17000
6966 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6967 New function, extracted from software_breakpoint_inserted_here_p.
6968 (software_breakpoint_inserted_here_p): Replace factored out code
6969 by call to find_non_raw_software_breakpoint_inserted_here.
6970 (bp_target_info_copy_insertion_state): New function.
6971 (bkpt_insert_location): Handle the case of a single-step
6972 breakpoint already inserted at the same address.
6973 (bkpt_remove_location): Handle the case of a single-step
6974 breakpoint still inserted at the same address.
6975 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6976 breakpoint already inserted at the same address.
6977 (deprecated_remove_raw_breakpoint): Handle the case of a
6978 non-raw breakpoint still inserted at the same address.
6979 (find_single_step_breakpoint): New function, extracted from
6980 single_step_breakpoint_inserted_here_p.
6981 (find_single_step_breakpoint): New function,
6982 factored out from single_step_breakpoint_inserted_here_p.
6983 (single_step_breakpoint_inserted_here_p): Reimplement.
6984
1e2ccb61
BM
69852014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6986
6987 Pushed by Joel Brobecker <brobecker@adacore.com>
6988 * source.c (show_substitute_path_command): Fix display of matching
6989 substitution rules.
6990
d3448d85
GB
69912014-06-03 Gary Benson <gbenson@redhat.com>
6992
6993 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6994
06eb1586
DE
69952014-06-02 Doug Evans <xdje42@gmail.com>
6996
6997 Add parameter support for Guile.
6998 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6999 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7000 (scm-param.o): New rule.
7001 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7002 (gdbscm_misc_error): Declare.
7003 (gdbscm_canonicalize_command_name): Declare.
7004 (gdbscm_scm_to_host_string): Declare.
7005 (gdbscm_scm_from_host_string): Declare.
7006 (gdbscm_initialize_parameters): Declare.
7007 * guile/guile.c (initialize_gdb_module): Call
7008 gdbscm_initialize_parameters.
7009 * guile/lib/gdb.scm: Export parameter symbols.
7010 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7011 cmdscm_canonicalize_name and made public. All callers updated.
7012 * guile/scm-exception.c (gdbscm_misc_error): New function.
7013 * guile/scm-param.c: New file.
7014 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7015 (gdbscm_scm_to_host_string): New function.
7016 (gdbscm_scm_from_host_string): New function.
7017 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7018
e698b8c4
DE
70192014-06-02 Doug Evans <xdje42@gmail.com>
7020
7021 Add command support for Guile.
7022 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7023 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7024 (scm-cmd.o): New rule.
7025 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7026 (gdbscm_user_error_p): Declare.
7027 (gdbscm_parse_command_name): Declare.
7028 (gdbscm_valid_command_class_p): Declare.
7029 (gdbscm_initialize_commands): Declare.
7030 * guile/guile.c (initialize_gdb_module): Call
7031 gdbscm_initialize_commands.
7032 * guile/lib/gdb.scm: Export command symbols.
7033 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7034 (throw-user-error): New function.
7035 * guile/scm-cmd.c: New file.
7036 * guile/scm-exception.c (user_error_symbol): New static global.
7037 (gdbscm_user_error_p): New function.
7038 (gdbscm_initialize_exceptions): Set user_error_symbol.
7039 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7040
fb1f94b0
PM
70412014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7042
7043 * top.c (command_loop): Handle comments here...
7044 (command_line_input): ... not here.
7045
ded03782
DE
70462014-06-02 Doug Evans <xdje42@gmail.com>
7047
7048 Add progspace support for Guile.
7049 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7050 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7051 (scm-progspace.o): New rule.
7052 * guile/guile-internal.h (pspace_smob): New typedef.
7053 (psscm_pspace_smob_pretty_printers): Declare.
7054 (psscm_pspace_smob_from_pspace): Declare.
7055 (psscm_scm_from_pspace): Declare.
7056 * guile/guile.c (initialize_gdb_module): Call
7057 gdbscm_initialize_pspaces.
7058 * guile/lib/gdb.scm: Export progspace symbols.
7059 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7060 support.
7061 (append-pretty-printer!): Ditto.
7062 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7063 Implement.
7064 * guile/scm-progspace.c: New file.
7065
397998fc
AM
70662014-06-03 Alan Modra <amodra@gmail.com>
7067
7068 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7069 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7070
6aa5f3a6
DE
70712014-06-02 Doug Evans <dje@google.com>
7072
7073 Add support for skeletonless type units.
7074 * dwarf2read.c (struct dwarf2_per_objfile): New member
7075 n_allocated_type_units.
7076 (struct dwarf2_per_objfile) <tu_stats>: New member
7077 nr_all_type_units_reallocs.
7078 (create_signatured_type_table_from_index): Initialize
7079 n_allocated_type_units
7080 (create_all_type_units): Ditto.
7081 (add_type_unit): Move up in file. New arg slot.
7082 All callers updated. Increase space for all_type_units more
7083 efficiently.
7084 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7085 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7086 (lookup_dwp_signatured_type): Ditto.
7087 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7088 All callers updated.
7089 (build_type_psymtabs_1): Leave type_unit_groups as
7090 NULL if no TUs present.
7091 (print_tu_stats): New function.
7092 (process_skeletonless_type_unit): New function.
7093 (process_dwo_file_for_skeletonless_type_units): New
7094 function.
7095 (process_skeletonless_type_units): New function.
7096 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7097 Call print tu_stats if debugging enabled.
7098
41fac0cf
PA
70992014-06-02 Pedro Alves <palves@redhat.com>
7100
7101 * breakpoint.c (build_target_command_list): Don't build a command
7102 list if we have any duplicate location that isn't a dprintf.
7103
cd1608cc
PA
71042014-06-02 Pedro Alves <palves@redhat.com>
7105
7106 * breakpoint.c (dprintf_breakpoint_hit): New function.
7107 (initialize_breakpoint_ops): Install it as dprintf's
7108 breakpoint_hit method.
7109
486ef3b9
JB
71102014-06-02 Joel Brobecker <brobecker@adacore.com>
7111
7112 * source.c (substitute_path_rule_matches): Simplify using
7113 filename_ncmp instead of FILENAME_CMP.
7114
230cd560
JB
71152014-06-02 Joel Brobecker <brobecker@adacore.com>
7116
7117 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7118
16954d5d
LC
71192014-06-01 Ludovic Courtès <ludo@gnu.org>
7120
7121 * configure.ac: When Guile is available, check for the
7122 availability of 'scm_new_smob'.
7123 * configure, config.h.in: Regenerate.
7124 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7125 function.
7126
53e8a631
AB
71272014-05-30 Andrew Burgess <aburgess@broadcom.com>
7128
7129 * frame.c (struct frame_info): Add stop_string field.
7130 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7131 (get_prev_frame_always): Old content moved into
7132 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7133 TRY_CATCH, handle MEMORY_ERROR exceptions.
7134 (frame_stop_reason_string): New function definition.
7135 * frame.h (unwind_stop_reason_to_string): Extend comment to
7136 mention frame_stop_reason_string.
7137 (frame_stop_reason_string): New function declaration.
7138 * stack.c (frame_info): Switch to frame_stop_reason_string.
7139 (backtrace_command_1): Switch to frame_stop_reason_string.
7140 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7141 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7142 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7143
70e38b8e
AB
71442014-05-30 Andrew Burgess <aburgess@broadcom.com>
7145
7146 * frame.c (frame_stop_reason_string): Rename to ...
7147 (unwind_stop_reason_to_string): this.
7148 * frame.h (frame_stop_reason_string): Rename to ...
7149 (unwind_stop_reason_to_string): this.
7150 * stack.c (frame_info): Update call to frame_stop_reason_string.
7151 (backtrace_command_1): Likewise.
7152 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7153 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7154
938f0e2f
AB
71552014-05-30 Andrew Burgess <aburgess@broadcom.com>
7156
7157 * frame.c (remove_prev_frame): New function.
7158 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7159 remove_prev_frame.
7160
a09dd441
PA
71612014-05-29 Pedro Alves <palves@redhat.com>
7162
7163 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7164 and make it const. When a single-step decays to a continue,
7165 clear 'step', not 'hw_step'. Pass whether the caller wanted
7166 to step to user_visible_resume_ptid, not what we ask the
7167 target to do.
7168
bdc36728
PA
71692014-05-29 Pedro Alves <palves@redhat.com>
7170
7171 * infrun.c (process_event_stop_test, handle_step_into_function)
7172 (handle_step_into_function_backward): Adjust.
7173 Don't set the even thread's stop_step and call stop_waiting before
7174 calling end_stepping_range. Instead do that ...
7175 (end_stepping_range): ... here. Take an ecs pointer parameter.
7176
22bcd14b
PA
71772014-05-29 Pedro Alves <palves@redhat.com>
7178
7179 * infrun.c (stop_stepping): Rename to ...
7180 (stop_waiting): ... this.
7181 (proceed): Update comment.
7182 (process_event_stop_test, handle_inferior_event)
7183 (handle_signal_stop, handle_step_into_function)
7184 (handle_step_into_function_backward): Update.
7185
4ae57c05
PA
71862014-05-29 Pedro Alves <palves@redhat.com>
7187
7188 * infcall.c (run_inferior_call): Don't check whether the current
7189 thread is running after the proceed call.
7190
329ea579
PA
71912014-05-29 Pedro Alves <palves@redhat.com>
7192 Tom Tromey <tromey@redhat.com>
7193
7194 * NEWS: Mention "maint set target-async", "set mi-async", and that
7195 background execution commands are now always available.
7196 * target.h (target_async_permitted): Update comment.
7197 * target.c (target_async_permitted, target_async_permitted_1):
7198 Default to 1.
7199 (set_target_async_command): Rename to ...
7200 (maint_set_target_async_command): ... this.
7201 (show_target_async_command): Rename to ...
7202 (maint_show_target_async_command): ... this.
7203 (_initialize_target): Adjust.
7204 * infcmd.c (prepare_execution_command): Make extern.
7205 * inferior.h (prepare_execution_command): Declare.
7206 * infrun.c (set_observer_mode): Leave target async alone.
7207 * mi/mi-interp.c (mi_interpreter_init): Install
7208 mi_on_sync_execution_done as sync_execution_done observer.
7209 (mi_on_sync_execution_done): New function.
7210 (mi_execute_command_input_handler): Don't print the prompt if we
7211 just started a synchronous command with an async target.
7212 (mi_on_resume): Check sync_execution before printing prompt.
7213 * mi/mi-main.h (mi_async_p): Declare.
7214 * mi/mi-main.c: Include gdbcmd.h.
7215 (mi_async_p): New function.
7216 (mi_async, mi_async_1): New globals.
7217 (set_mi_async_command, show_mi_async_command, mi_async): New
7218 functions.
7219 (exec_continue): Call prepare_execution_command.
7220 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7221 (mi_execute_async_cli_command): Use mi_async_p.
7222 (_initialize_mi_main): Install "set mi-async". Make
7223 "target-async" a deprecated alias.
7224
92bcb5f9
PA
72252014-05-29 Pedro Alves <palves@redhat.com>
7226
7227 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7228 (_initialize_cli_interp): Adjust.
7229 * event-loop.c: Include "observer.h".
7230 (start_event_loop): Notify 'command_error' observers instead of
7231 calling display_gdb_prompt. Remove FIXME comment.
7232 * event-top.c (display_gdb_prompt): Remove call into the
7233 interpreters.
7234 * inf-loop.c: Include "observer.h".
7235 (inferior_event_handler): Notify 'command_error' observers instead
7236 of calling display_gdb_prompt.
7237 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7238 observers instead of calling display_gdb_prompt.
7239 * interps.c (interp_set): Don't call display_gdb_prompt.
7240 (current_interp_display_prompt_p): Delete.
7241 * interps.h (interp_prompt_p): Delete declaration.
7242 (interp_prompt_p_ftype): Delete.
7243 (struct interp_procs) <prompt_proc_p>: Delete field.
7244 (current_interp_display_prompt_p): Delete declaration.
7245 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7246 (_initialize_mi_interp): Adjust.
7247 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7248 'command_error' observers.
7249 (tui_on_sync_execution_done, tui_on_command_error): New
7250 functions.
7251 (tui_display_prompt_p): Delete.
7252 (_initialize_tui_interp): Adjust.
7253
fd664c91
PA
72542014-05-29 Pedro Alves <palves@redhat.com>
7255
7256 PR gdb/13860
7257 * cli/cli-interp.c: Include infrun.h and observer.h.
7258 (cli_uiout, cli_interp): New globals.
7259 (cli_on_signal_received, cli_on_end_stepping_range)
7260 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7261 functions.
7262 (cli_interpreter_init): Install them as 'end_stepping_range',
7263 'signal_received' 'signal_exited', 'exited' and 'no_history'
7264 observers.
7265 (_initialize_cli_interp): Remove cli_interp local.
7266 * infrun.c (handle_inferior_event): Call the several stop reason
7267 observers instead of printing the stop reason directly.
7268 (end_stepping_range): New function.
7269 (print_end_stepping_range_reason, print_signal_exited_reason)
7270 (print_exited_reason, print_signal_received_reason)
7271 (print_no_history_reason): Make static, and add an uiout
7272 parameter. Print to that instead of to CURRENT_UIOUT.
7273 * infrun.h (print_end_stepping_range_reason)
7274 (print_signal_exited_reason, print_exited_reason)
7275 (print_signal_received_reason print_no_history_reason): New
7276 declarations.
7277 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7278 'mi_uiout'.
7279 <cli_uiout>: New field.
7280 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7281 uiout for CLI output. Install 'signal_received',
7282 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7283 observers.
7284 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7285 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7286 (mi_on_no_history): New functions.
7287 (ui_out_free_cleanup): Delete function.
7288 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7289 instead use the one already stored in the MI interpreter data.
7290 (mi_ui_out): Adjust.
7291 * tui/tui-interp.c: Include infrun.h and observer.h.
7292 (tui_interp): New global.
7293 (tui_on_signal_received, tui_on_end_stepping_range)
7294 (tui_on_signal_exited, tui_on_exited)
7295 (tui_on_no_history): New functions.
7296 (tui_init): Install them as 'end_stepping_range',
7297 'signal_received' 'signal_exited', 'exited' and 'no_history'
7298 observers.
7299 (_initialize_tui_interp): Delete tui_interp local.
7300
8817a6f2
PA
73012014-05-29 Pedro Alves <palves@redhat.com>
7302
7303 PR gdb/15713
7304 * linux-nat.c (linux_nat_resume_callback): Rename the second
7305 parameter to 'except'. Skip LP if it points to EXCEPT.
7306 (linux_nat_resume): Don't mark the event lwp as not stopped
7307 before resuming sibling lwps. Instead ask
7308 linux_nat_resume_callback to skip the event lwp. Mark it as not
7309 stopped after actually resuming it.
7310 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7311 resuming it.
7312 (wait_lwp): Mark the lwp as stopped here.
7313 (stop_wait_callback): Mark the lwp as not stopped right after
7314 resuming it. Don't mark lwps as stopped here.
7315 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7316 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7317
251bde03
PA
73182014-05-29 Pedro Alves <palves@redhat.com>
7319
7320 PR PR15693
7321 * infrun.c (resume): Determine how much to resume depending on
7322 whether the caller wanted a step, not whether we can hardware step
7323 the target. Mark all threads that we intend to run as running,
7324 unless we're calling an inferior function.
7325 (normal_stop): If the thread is running an infcall, don't finish
7326 thread state.
7327 * target.c (target_resume): Don't mark threads as running here.
7328
7f3c0343
JB
73292014-05-28 Joel Brobecker <brobecker@adacore.com>
7330
7331 * serial.c (_initialize_serial): Remove support for
7332 the "set remotebaud" and "show remotebaud" commands.
7333 * NEWS: Add entry documenting the removal of that command.
7334
ee34b3f9
YQ
73352014-05-28 Yao Qi <yao@codesourcery.com>
7336
7337 * charset.c: Fix typo in comments.
7338
add6c04d
GB
73392014-05-27 Gary Benson <gbenson@redhat.com>
7340
7341 * utils.c (internal_vproblem): Prompt for a bug report.
7342
92c48fc5
AW
73432014-05-26 Andy Wingo <wingo@igalia.com>
7344
7345 * guile/scm-arch.c (arscm_mark_arch_smob):
7346 * guile/scm-block.c (bkscm_mark_block_smob)
7347 (bkscm_mark_block_syms_progress_smob):
7348 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7349 * guile/scm-exception.c (exscm_mark_exception_smob):
7350 * guile/scm-frame.c (frscm_mark_frame_smob):
7351 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7352 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7353 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7354 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7355 (ppscm_mark_pretty_printer_worker_smob):
7356 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7357 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7358 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7359 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7360 mark functions.
7361 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7362 function.
7363
b2715b27
AW
73642014-05-26 Andy Wingo <wingo@igalia.com>
7365 Doug Evans <xdje42@gmail.com>
7366
7367 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7368 empty_base_class. All uses updated.
7369 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7370 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7371 Adapt all callers.
7372 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7373 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7374 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7375 (gdbscm_gsmob_has_property_p, add_property_name)
7376 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7377 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7378 (gdb-object-has-property?, gdb-object-properties): Remove.
7379 (gdb-object-kind): Renamed from gsmob-kind.
7380
214ab2da
AW
73812014-05-26 Andy Wingo <wingo@igalia.com>
7382
7383 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7384 * configure: Regenerate.
7385
589fdceb
MM
73862014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7387
7388 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7389
67b5c0c1
MM
73902014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7391
7392 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7393 (replay_memory_access_read_only, replay_memory_access_read_write)
7394 (replay_memory_access_types, replay_memory_access)
7395 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7396 (cmd_set_record_btrace, cmd_show_record_btrace)
7397 (cmd_show_replay_memory_access): New.
7398 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7399 (record_btrace_remove_breakpoint): Replace
7400 record_btrace_allow_memory_access with replay_memory_access.
7401 (_initialize_record_btrace): Add commands.
7402 * NEWS: Announce it.
7403
036cd381
RR
74042014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7405
7406 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7407
c77c1e42
RR
74082014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7409
7410 * MAINTAINERS (Write After Approval): Move self back from
7411 paper trail.
7412
45741a9c
PA
74132014-05-22 Pedro Alves <palves@redhat.com>
7414
7415 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7416 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7417 (disable_randomization, enum exec_direction_kind)
7418 (execution_direction, stop_registers, start_remote)
7419 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7420 (wait_for_inferior, normal_stop, get_last_target_status)
7421 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7422 (insert_step_resume_breakpoint_at_sal)
7423 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7424 (set_step_info, print_stop_event, signal_stop_state)
7425 (signal_print_state, signal_pass_state, signal_stop_update)
7426 (signal_print_update, signal_pass_update)
7427 (update_signals_program_target, clear_exit_convenience_vars)
7428 (displaced_step_dump_bytes, update_observer_mode)
7429 (signal_catch_update, gdb_signal_from_command): Move
7430 declarations ...
7431 * infrun.h: ... to this new file.
7432 * amd64-tdep.c: Include infrun.h.
7433 * annotate.c: Include infrun.h.
7434 * arch-utils.c: Include infrun.h.
7435 * arm-linux-tdep.c: Include infrun.h.
7436 * arm-tdep.c: Include infrun.h.
7437 * break-catch-sig.c: Include infrun.h.
7438 * breakpoint.c: Include infrun.h.
7439 * common/agent.c: Include infrun.h instead of inferior.h.
7440 * corelow.c: Include infrun.h.
7441 * event-top.c: Include infrun.h.
7442 * go32-nat.c: Include infrun.h.
7443 * i386-tdep.c: Include infrun.h.
7444 * inf-loop.c: Include infrun.h.
7445 * infcall.c: Include infrun.h.
7446 * infcmd.c: Include infrun.h.
7447 * infrun.c: Include infrun.h.
7448 * linux-fork.c: Include infrun.h.
7449 * linux-nat.c: Include infrun.h.
7450 * linux-thread-db.c: Include infrun.h.
7451 * monitor.c: Include infrun.h.
7452 * nto-tdep.c: Include infrun.h.
7453 * procfs.c: Include infrun.h.
7454 * record-btrace.c: Include infrun.h.
7455 * record-full.c: Include infrun.h.
7456 * remote-m32r-sdi.c: Include infrun.h.
7457 * remote-mips.c: Include infrun.h.
7458 * remote-notif.c: Include infrun.h.
7459 * remote-sim.c: Include infrun.h.
7460 * remote.c: Include infrun.h.
7461 * reverse.c: Include infrun.h.
7462 * rs6000-tdep.c: Include infrun.h.
7463 * s390-linux-tdep.c: Include infrun.h.
7464 * solib-irix.c: Include infrun.h.
7465 * solib-osf.c: Include infrun.h.
7466 * solib-svr4.c: Include infrun.h.
7467 * target.c: Include infrun.h.
7468 * top.c: Include infrun.h.
7469 * windows-nat.c: Include infrun.h.
7470 * mi/mi-interp.c: Include infrun.h.
7471 * mi/mi-main.c: Include infrun.h.
7472 * python/py-threadevent.c: Include infrun.h.
7473
98eb56a4
PA
74742014-05-22 Pedro Alves <palves@redhat.com>
7475
7476 * infrun.c (handle_inferior_event): Store the exit code for
7477 --return-child-result here, instead of ...
7478 (print_exited_reason): ... here.
7479
17b2616c
PA
74802014-05-21 Pedro Alves <palves@redhat.com>
7481
7482 PR gdb/13860
7483 * gdbthread.h (struct thread_control_state): New field
7484 `command_interp'.
7485 * infrun.c (follow_fork): Copy the new thread control field to the
7486 child fork thread.
7487 (clear_proceed_status_thread): Clear the new thread control field.
7488 (proceed): Set the new thread control field.
7489 * interps.h (command_interp): Declare.
7490 * interps.c (command_interpreter): New global.
7491 (command_interp): New function.
7492 (interp_exec): Set `command_interpreter' while here.
7493 * cli-out.c (cli_uiout_dtor): New function.
7494 (cli_ui_out_impl): Install it.
7495 * mi/mi-interp.c: Include cli-out.h.
7496 (mi_cmd_interpreter_exec): Add comment.
7497 (restore_current_uiout_cleanup): New function.
7498 (ui_out_free_cleanup): New function.
7499 (mi_on_normal_stop): If finishing an execution command started by
7500 a CLI command, or any kind of breakpoint-like event triggered,
7501 print the stop event to the output (CLI) stream.
7502 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7503
5166082f
PA
75042014-05-21 Pedro Alves <palves@redhat.com>
7505
7506 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7507 current source line having changed.
7508 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7509 * infrun.c (normal_stop): Adjust call to
7510 set_current_sal_from_frame.
7511 * source.c (clear_lines_listed_range): New function.
7512 (set_current_source_symtab_and_line, identify_source_line): Clear
7513 the lines listed range.
7514 (line_info): Handle the first "info line" after the current source
7515 line having changed.
7516 * stack.c (print_stack_frame): Remove center handling.
7517 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7518 center sal.line.
7519
c1ee2fb3
PA
75202014-05-21 Pedro Alves <palves@redhat.com>
7521
7522 * inf-child.c (inf_child_mourn_inferior): New function.
7523 * inf-child.h (inf_child_mourn_inferior): New declaration.
7524 * darwin-nat.c (darwin_mourn_inferior): Use
7525 inf_child_mourn_inferior.
7526 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7527 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7528 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7529 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7530 * windows-nat.c (windows_mourn_inferior): Likewise.
7531
5c6d4fb2
DE
75322014-05-21 Doug Evans <xdje42@gmail.com>
7533
250748cb 7534 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7535
4a2722c5
DE
75362014-05-21 Doug Evans <xdje42@gmail.com>
7537
17292b30 7538 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7539 (gdbscm_out_of_range_error): Ditto.
7540 (gdbscm_memory_error): Ditto.
250748cb
DE
7541 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7542 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7543 (gdbscm_out_of_range_error): Update.
7544 (gdbscm_memory_error): Update.
7545 (gdbscm_scm_to_target_string_unsafe): Delete.
7546
6a3cb8e8
PA
75472014-05-21 Pedro Alves <palves@redhat.com>
7548
7549 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7550 globals.
7551 (inf_child_open_target): New function.
7552 (inf_child_open): Use inf_child_open_target to push the target
7553 instead of erroring out.
7554 (inf_child_disconnect, inf_child_close)
7555 (inf_child_maybe_unpush_target): New functions.
7556 (inf_child_target): Install inf_child_disconnect and
7557 inf_child_close. Store a pointer to the returned object.
7558 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7559 declarations.
7560 * target.c (auto_connect_native_target): New global.
7561 (show_default_run_target): New function.
7562 (find_default_run_target): Return NULL if automatically connecting
7563 to the native target is disabled.
7564 (_initialize_target): Install set/show auto-connect-native-target.
7565 * NEWS: Mention "set auto-connect-native-target", and "target
7566 native".
7567 * linux-nat.c (super_close): New global.
7568 (linux_nat_close): Call super_close.
7569 (linux_nat_add_target): Store a pointer to the base class's
7570 to_close method.
7571 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7572 inf_child_maybe_unpush.
7573 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7574 already pushed.
7575 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7576 the inferior. Use inf_child_maybe_unpush_target.
7577 (inf_ttrace_attach): Don't push the target if it is already
7578 pushed.
7579 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7580 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7581 after mourning the inferior. Use inf_child_maybe_unpush_target.
7582 (darwin_attach_pid): Don't push the target if it is already
7583 pushed.
7584 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7585 mourning the inferior. Use inf_child_maybe_unpush_target.
7586 (gnu_detach): Use inf_child_maybe_unpush_target.
7587 * go32-nat.c (go32_create_inferior): Don't push the target if it
7588 is already pushed.
7589 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7590 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7591 (procfs_open): Rename to ...
7592 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7593 comments. Can target_preopen before changing node. Call
7594 inf_child_open_target to push the target explicitly.
7595 (procfs_attach): Don't push the target if it is already pushed.
7596 (procfs_detach): Use inf_child_maybe_unpush_target.
7597 (procfs_create_inferior): Don't push the target if it is already
7598 pushed.
7599 (nto_native_ops): New global.
7600 (procfs_open): Reimplement.
7601 (procfs_native_open): New function.
7602 (init_procfs_targets): Install procfs_native_open as to_open of
7603 "target native". Store a pointer to the "native" target in
7604 nto_native_ops.
7605 * procfs.c (procfs_attach): Don't push the target if it is already
7606 pushed.
7607 (procfs_detach): Use inf_child_maybe_unpush_target.
7608 (procfs_mourn_inferior): Only unpush the target after mourning the
7609 inferior. Use inf_child_maybe_unpush_target.
7610 (procfs_init_inferior): Don't push the target if it is already
7611 pushed.
7612 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7613 if it is already pushed.
7614
930ee1b1
PA
76152014-05-21 Pedro Alves <palves@redhat.com>
7616
7617 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7618 and "procfs" targets are now called "native" instead.
7619
1f5d1b13
PA
76202014-05-21 Pedro Alves <palves@redhat.com>
7621
7622 * go32-nat.c (go32_open): Delete.
7623 (go32_target): Don't override the to_open method.
7624
132f8e03
PA
76252014-05-21 Pedro Alves <palves@redhat.com>
7626
7627 * nto-procfs.c (procfs_can_run): New function.
7628 (nto_procfs_ops): New global.
7629 (init_procfs_targets): New, based on procfs_target. Install
7630 "target native" in addition to "target procfs".
7631 (_initialize_procfs): Call init_procfs_targets instead of adding
7632 the target here.
7633
03c136c3
PA
76342014-05-21 Pedro Alves <palves@redhat.com>
7635
7636 * windows-nat.c (windows_target): Don't override to_shortname,
7637 to_longname or to_doc.
7638
a635d0f3
PA
76392014-05-21 Pedro Alves <palves@redhat.com>
7640
7641 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7642 to_doc.
7643
4f9b5133
PA
76442014-05-21 Pedro Alves <palves@redhat.com>
7645
7646 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7647 to_shortname, to_longname or to_doc.
7648
bc85afde
PA
76492014-05-21 Pedro Alves <palves@redhat.com>
7650
7651 * go32-nat.c (go32_target): Don't override to_shortname,
7652 to_longname or to_doc.
7653
4ebfc96e
PA
76542014-05-21 Pedro Alves <palves@redhat.com>
7655
7656 * inf-child.c (inf_child_open): Remove mention of "child".
7657 (inf_child_target): Rename target to "native" instead of "child".
7658
2648dfed
AA
76592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7660
7661 * Makefile.in (SFILES): Delete "regset.c".
7662 (COMMON_OBS): Delete "regset.o".
7663 * regset.c: Remove.
7664 * regset.h (regset_alloc): Delete prototype.
7665
b13feb94
AA
76662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7667
7668 * sparc-linux-tdep.c (sparc32_linux_gregset)
7669 (sparc32_linux_fpregset): New static regset structures.
7670 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7671 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7672 'fpregset' fields.
7673 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7674 (sparc64_linux_fpregset): New static regset structures.
7675 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7676 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7677 New static regset structures.
7678 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7679 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7680 New static regset structures.
7681 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7682 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7683 New static regset structures.
7684 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7685 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7686 New static regset structures.
7687 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7688
b4fd25c9
AA
76892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7690
7691 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7692 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7693 register maps ("regmaps") from "*regset" to "*regmap". Do this
7694 for all regmap types and variables.
7695 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7696 (sparc32_linux_supply_core_gregset)
7697 (sparc32_linux_collect_core_gregset)
7698 (sparc32_linux_supply_core_fpregset)
7699 (sparc32_linux_collect_core_fpregset): Likewise.
7700 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7701 (sparc_gregmap, sparc_fpregmap): ... these.
7702 (sparc_supply_gregset, sparc_collect_gregset)
7703 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7704 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7705 (_initialize_sparc_nat): Rename regmaps.
7706 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7707 (sparc_gregmap, sparc_fpregmap): ... these.
7708 (sparc_supply_gregset, sparc_collect_gregset)
7709 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7710 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7711 Rename macros to...
7712 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7713 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7714 Likewise.
7715 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7716 Rename to...
7717 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7718 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7719 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7720 regmaps.
7721 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7722 (sparc32_bsd_fpregset): Rename to...
7723 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7724 (sparc32_bsd_fpregmap): ... these.
7725 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7726 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7727 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7728 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7729 (struct sparc_gregmap, struct sparc_fpregmap)
7730 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7731 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7732 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7733 (sparc32_supply_regset, sparc32_collect_gregset)
7734 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7735 prototypes.
7736 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7737 (sparc64_linux_ptrace_gregmap): ... this.
7738 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7739 (_initialize_sparc64_linux_nat): Rename regmaps.
7740 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7741 (sparc64_linux_core_gregmap): ... this.
7742 (sparc64_linux_supply_core_gregset)
7743 (sparc64_linux_collect_core_gregset)
7744 (sparc64_linux_supply_core_fpregset)
7745 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7746 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7747 (sparc64_sol2_fpregset): Rename to...
7748 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7749 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7750 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7751 regmaps.
7752 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7753 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7754 (sparc64_bsd_fpregset): Rename to...
7755 (struct sparc_gregmap, sparc64_sol2_gregmap)
7756 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7757 (sparc64_bsd_fpregmap): ... these.
7758 (sparc64_supply_gregset, sparc64_collect_gregset)
7759 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7760 prototypes.
7761 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7762 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7763 (sparc64fbsd_gregmap): ... this.
7764 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7765 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7766 Rename regmaps.
7767 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7768 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7769 (sparc64nbsd_collect_fpregset): Likewise.
7770 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7771 (sparc64nbsd_gregmap): ... this.
7772 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7773 regmaps.
7774 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7775 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7776 (sparc64obsd_gregmap): ... this.
7777 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7778 regmaps.
7779 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7780 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7781 (sparc32nbsd_gregmap): ... this.
7782 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7783 regmaps.
7784
8fea3224
AA
77852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7786
7787 * score-tdep.c (score7_linux_gregset): New static regset
7788 structure.
7789 (score7_linux_regset_from_core_section): Remove dynamic regset
7790 allocation.
7791 (score_gdbarch_init): Drop allocation of tdep structure.
7792 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7793
24534243
AA
77942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7795
7796 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7797 regset structures.
7798 (am33_regset_from_core_section): Remove dynamic regset
7799 allocations.
7800
b7195f27
AA
78012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7802
7803 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7804 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7805 structures.
7806 (mips_linux_regset_from_core_section): Remove dynamic regset
7807 allocations.
7808 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7809 'gregset64', 'fpregset', and 'fpregset64'.
7810 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7811 deleted tdep fields.
7812
ecc37a5a
AA
78132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7814
7815 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7816 regset structures.
7817 (amd64_regset_from_core_section): Remove dynamic regset
7818 allocations.
7819 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7820 structure.
7821 (amd64obsd_regset_from_core_section): Remove dynamic regset
7822 allocation.
7823 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7824 Likewise.
7825 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7826 x86-common regset supply function.
7827 * i386-tdep.c (i386_collect_gregset): Make static.
7828 (i386_gregset): New global regset structure.
7829 (i386_fpregset, i386_xstateregset): New static regset structures.
7830 (i386_regset_from_core_section): Remove dynamic regset
7831 allocations.
7832 (i386_gdbarch_init): Remove initialization of tdep fields
7833 'gregset', 'fpregset', and 'xstateregset'.
7834 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7835 'fpregset', and 'xstateregset'.
7836 (i386_collect_gregset): Remove prototype.
7837 (i386_gregset): New declaration.
7838 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7839 structure.
7840 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7841 allocation.
7842
b7611c43
AA
78432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7844
7845 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7846 (arm_linux_vfpregset): New static regset structures.
7847 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7848 regset structures.
7849 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7850 and 'vfpregset' fields.
7851
a069a2bd
AA
78522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7853
7854 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7855 (aarch64_linux_fpregset): New static regset structures.
7856 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7857 of regset structures.
7858 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7859 'fpregset' fields.
7860
09424cff
AA
78612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7862
7863 * regset.h (struct regset): Remove gdbarch field.
7864 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7865 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7866 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7867 Likewise.
7868 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7869 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7870 (ppc32_linux_vsxregset): Likewise.
7871 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7872 via the regcache instead of the regset.
7873 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7874 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7875 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7876 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7877 Likewise.
7878
3ca7dae4
AA
78792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7880
7881 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7882 Constify structures.
7883 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7884 (alphanbsd_aout_gregset): Likewise.
7885 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7886 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7887 Likewise.
7888 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7889 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7890 Likewise.
7891 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7892 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7893 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7894 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7895 * m88k-tdep.c (m88k_gregset): Likewise.
7896 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7897 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7898 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7899 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7900 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7901 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7902 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7903 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7904 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7905 Likewise.
7906 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7907 * sh-tdep.h (sh_corefile_gregset): Likewise.
7908 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7909 * vax-tdep.c (vax_gregset): Likewise.
7910
5876f503
JK
79112014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 Fix TLS access for -static -pthread.
7914 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7915 (try_thread_db_load_1): Initialize it.
7916 (thread_db_get_thread_local_address): Call it if LM is zero.
7917 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7918 * target.h (struct target_ops) (to_get_thread_local_address): Add
7919 load_module_addr comment.
7920
0256a6ac
PA
79212014-05-21 Pedro Alves <palves@redhat.com>
7922
7923 * dcache.c (dcache_read_memory_partial): If reading the cache line
7924 fails, fallback to reading just the memory the caller wanted.
7925
227533ac
DE
79262014-05-20 Doug Evans <dje@google.com>
7927
7928 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7929 instead of get_current_arch.
7930
936d2992
PA
79312014-05-20 Pedro Alves <palves@redhat.com>
7932
7933 * NEWS: Mention that compare-sections now works with all targets.
7934
7935 * remote.c (PACKET_qCRC): New enum value.
7936 (remote_verify_memory): Don't send qCRC if the target has no
7937 execution. Use packet_support/packet_ok. If the target doesn't
7938 support the qCRC packet, fallback to a deep memory copy.
7939 (compare_sections_command): Say "target image" instead of "remote
7940 executable".
7941 (_initialize_remote): Add PACKET_qCRC to the list of config
7942 packets that have no associated command. Extend comment.
7943 * target.c (simple_verify_memory, default_verify_memory): New
7944 function.
7945 * target.h (struct target_ops) <to_verify_memory>: Default to
7946 default_verify_memory.
7947 (simple_verify_memory): New declaration.
7948 * target-delegates.c: Regenerate.
7949
e59fa00f
MM
79502014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7951
7952 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7953
f2205de0
HZ
79542014-05-20 Hui Zhu <hui@codesourcery.com>
7955 Yao Qi <yao@codesourcery.com>
7956
7957 PR backtrace/16558
7958 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7959 and change address of sp and pc.
7960
c4e54771
TT
79612014-05-19 Tom Tromey <tromey@redhat.com>
7962
7963 * gdbtypes.c (rank_function): Use XNEWVEC.
7964 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7965
73051182
DE
79662014-05-19 Doug Evans <dje@google.com>
7967
7968 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7969 build_type_unit_groups and moved closer to only caller. Remove
7970 arguments. All references updated. Remove outdated .gdb_index
7971 comment.
7972 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7973 build_type_psymtabs_1.
7974
8832e7e3
DE
79752014-05-19 Doug Evans <dje@google.com>
7976
7977 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7978 n_type_unit_groups, all_type_unit_groups. All uses removed.
7979 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7980 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7981 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7982 (add_type_unit_group_to_table): Delete.
7983
cd8ae15e
DE
79842014-05-19 Doug Evans <dje@google.com>
7985
7986 * eval.c (evaluate_subexp_standard): Add some comments.
7987
08f4850b
DE
79882014-05-17 Doug Evans <xdje42@gmail.com>
7989
7990 * progspace.c (remove_program_space): Delete, unused.
7991 * progspace.h (remove_program_space): Ditto.
7992
bed8455c
DE
79932014-05-17 Doug Evans <xdje42@gmail.com>
7994
7995 * inferior.c (prune_inferiors): Fix comment.
7996 (remove_inferior_command): Call prune_program_spaces.
7997
8d551b02
DE
79982014-05-16 Doug Evans <dje@google.com>
7999
8000 New command line option -D.
8001 * NEWS: Mention it.
8002 * main.c (set_gdb_data_directory): New function.
8003 (captured_main): Recognize -D. Flag error for --data-directory "".
8004 Call set_gdb_data_directory.
8005 (print_gdb_help): Print --data-directory, -D.
8006 * main.h (set_gdb_data_directory): Declare.
8007 * top.c (staged_gdb_datadir): New static global.
8008 (set_gdb_datadir): Call set_gdb_data_directory
8009 (show_gdb_datadir): New function.
8010 (init_main): Update init of data-directory parameter.
8011
18848e28
GF
80122014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8013
8014 Import the "dirfd" gnulib module.
8015 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8016 * gnulib/aclocal.m4: Update.
8017 * gnulib/config.in: Update.
8018 * gnulib/configure: Update.
8019 * gnulib/import/Makefile.am: Update.
8020 * gnulib/import/Makefile.in: Update.
8021 * gnulib/import/dirfd.c: New.
8022 * gnulib/import/m4/dirfd.m4: New.
8023 * gnulib/import/m4/gnulib-cache.m4: Update.
8024 * gnulib/import/m4/gnulib-comp.m4: Update.
8025
95c64f92
YQ
80262014-05-16 Pierre Muller <muller@sourceware.org>
8027 Yao Qi <yao@codesourcery.com>
8028
8029 * valprint.c (print_wchar): Move the code on checking whether
8030 W is a printable wide char to the default branch of switch
8031 statement below. Call wchar_printable instead of gdb_iswprint.
8032
cac395ea
TM
80332014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8034
19679eca 8035 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8036 ldr.w and ldrd instructions.
8037
83655187
DE
80382014-05-15 Doug Evans <dje@google.com>
8039
8040 * dwarf2read.c (read_structure_type): Delete outdated comments.
8041
dd756689
TT
80422014-05-14 Tom Tromey <tromey@redhat.com>
8043
8044 * macrocmd.c (print_macro_definition): Reindent.
8045
75ddda77
DE
80462014-05-13 Doug Evans <xdje42@gmail.com>
8047
8048 * python/py-cmd.c (cmdpy_completer): Add comment.
8049 (completers): Make const.
8050
b0f16a3e
SM
80512014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8052
8053 * infrun.c (resume): Remove should_resume (unused). Move up
8054 declaration of resume_ptid.
8055
033c3379
TT
80562014-05-13 Tom Tromey <tromey@redhat.com>
8057
8058 * language.h (unop_type_check): Remove.
8059 (binop_type_check): Don't declare.
8060
9b44a3a5
AA
80612014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8062
8063 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8064 call to regcache_raw_collect.
8065
303a33fa
SM
80662014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8067
8068 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8069 mi_console->quote as the quoting character.
8070
196100a0
SM
80712014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8072
8073 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8074
f989a1c8
TT
80752014-04-29 Tom Tromey <tromey@redhat.com>
8076
8077 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8078 "show debug varobj".
8079
9404b58f
KM
80802014-05-07 Kyle McMartin <kyle@redhat.com>
8081
8082 Pushed by Joel Brobecker <brobecker@adacore.com>.
8083 * aarch64-tdep.c (aarch64_software_single_step): New function.
8084 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8085 with aarch64_software_single_step.
8086
5e49ba57
JB
80872014-05-05 Joel Brobecker <brobecker@adacore.com>
8088
8089 GDB 7.7.1 released.
8090
c888a17d
KS
80912014-05-05 Keith Seitz <keiths@redhat.com>
8092
8093 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8094 variable or history value is successfully parsed.
8095
290a839c
YQ
80962014-05-05 Yao Qi <yao@codesourcery.com>
8097 Pedro Alves <palves@redhat.com>
8098
8099 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8100 address of blocks that intersects the requested range. Trim
8101 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8102 sections.
8103 * ctf.c (ctf_xfer_partial): Likewise.
8104
91256dc2
YQ
81052014-05-05 Yao Qi <yao@codesourcery.com>
8106
8107 * printcmd.c (display_command): Remove the check to
8108 target_has_execution.
8109
07284463
MK
81102014-05-03 Mark Kettenis <kettenis@gnu.org>
8111
8112 * ppcobsd-nat.c: Include "obsd-nat.h".
8113 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8114 add_target.
8115 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8116
30a1e6cc
SDJ
81172014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8118
8119 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8120 and 16-bit signed and unsigned arguments. Update comment.
8121 (stap_parse_probe_arguments): Extend code to handle such
8122 arguments. Use warning instead of complaint to notify about
8123 unrecognized bitness.
8124
f33da99a
SDJ
81252014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8126
8127 PR breakpoints/16889
8128 * stap-probe.c (stap_parse_probe_arguments): Simplify
8129 check for non-prefixed probes (i.e., probes whose
8130 arguments do not start with "N@"). Always set the
8131 argument type to a sane value.
8132
95cf3b38
DT
81332014-05-01 David Taylor <dtaylor@emc.com>
8134
8135 * remote.c (compare_sections_command): Add -r option to compare
8136 all loadable read-only sections.
8137
1cfdf534
SC
81382014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8139
8140 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8141 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8142 Update all callers.
8143 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8144 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8145 Remove unused CORE_ADDR argument. Update all callers.
8146
ca4f7f8b
PA
81472014-04-29 Pedro Alves <palves@redhat.com>
8148
8149 * remote.c (struct packet_config) <detect>: Extend comment.
8150 (add_packet_config_cmd): Don't set the config's detect or support
8151 fields here.
8152 (init_all_packet_configs): Also initialize the config's 'detect'
8153 field.
8154 (reset_all_packet_configs_support): New function.
8155 (remote_open_1): Call reset_all_packet_configs_support instead of
8156 init_all_packet_configs.
8157 (_initialize_remote): Initialize all packet configs. Assert that
8158 all packets have an associated command, except a few known
8159 outliers.
8160
11c1ba78
JB
81612014-04-28 Joel Brobecker <brobecker@adacore.com>
8162
8163 * dwarf2read.c (read_subrange_type): Handle dynamic
8164 DW_AT_lower_bound attributes.
8165
8739bc53
JB
81662014-04-28 Joel Brobecker <brobecker@adacore.com>
8167
8168 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8169 dynamic bounds before computing its upper bound.
8170 (ada_discrete_type_low_bound): Same as above with the lower bound.
8171
6f8a3220
JB
81722014-04-28 Joel Brobecker <brobecker@adacore.com>
8173
8174 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8175 range types. Adjust the array handling implementation to
8176 take advantage of this change.
8177 (resolve_dynamic_range): New function, mostly extracted from
8178 resolve_dynamic_bounds.
8179 (resolve_dynamic_array): New function, mostly extracted from
8180 resolve_dynamic_bounds.
8181 (resolve_dynamic_bounds): Delete.
8182 (resolve_dynamic_type): Reimplement. Add handling of
8183 TYPE_CODE_RANGE types.
8184
4d072ce4
JB
81852014-04-28 Joel Brobecker <brobecker@adacore.com>
8186
8187 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8188 handling of parallel ___XA types.
8189
52865325
JB
81902014-04-28 Joel Brobecker <brobecker@adacore.com>
8191
8192 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8193 unnecessary second call to static_unwrap_type.
8194
433e77fa
HZ
81952014-04-27 Hui Zhu <hui@codesourcery.com>
8196
8197 * stack.c (print_frame_info): Call do_gdb_disassembly with
8198 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8199
b51a69ee
DE
82002014-04-26 Doug Evans <xdje42@gmail.com>
8201
8202 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8203
7ae1a6a6
PA
82042014-04-25 Pedro Alves <palves@redhat.com>
8205
8206 PR server/16255
8207 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8208 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8209 and newline from built string.
8210 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8211 (linux_ptrace_attach_fail_reason): ... this.
8212 * linux-nat.c (linux_nat_attach): Adjust to use
8213 linux_ptrace_attach_fail_reason.
8214
4082afcc
PA
82152014-04-25 Pedro Alves <palves@redhat.com>
8216
8217 * remote.c (struct remote_state): Remove multi_process_aware,
8218 non_stop_aware, cond_tracepoints, cond_breakpoints,
8219 breakpoint_commands, fast_tracepoints, static_tracepoints,
8220 install_in_trace, disconnected_tracing,
8221 enable_disable_tracepoints, string_tracing, and
8222 augmented_libraries_svr4_read fields.
8223 (remote_multi_process_p): Move further below in the file.
8224 (struct packet_config): Add comments.
8225 (update_packet_config): Delete function.
8226 (show_packet_config_cmd): Use packet_config_support.
8227 (add_packet_config_cmd): Use NULL as set callback.
8228 (packet_ok): "set remote foo-packet"-style commands no longer
8229 change config->supported -- adjust.
8230 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8231 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8232 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8233 (PACKET_QNonStop, PACKET_multiprocess_feature)
8234 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8235 (PACKET_DisconnectedTracing_feature)
8236 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8237 (set_remote_protocol_packet_cmd): Delete function.
8238 (packet_config_support, packet_support): New functions.
8239 (set_remote_protocol_Z_packet_cmd): Don't call
8240 update_packet_config.
8241 (remote_query_attached, remote_pass_signals)
8242 (remote_program_signals, remote_threads_info)
8243 (remote_threads_extra_info, remote_start_remote): Use
8244 packet_support.
8245 (remote_start_remote): Use packet_config_support and
8246 packet_support.
8247 (init_all_packet_configs): Set all packets to unknown support,
8248 instead of calling update_packet_config.
8249 (remote_check_symbols): Use packet_support.
8250 (remote_supported_packet): Unconditionally set the packet config's
8251 support status.
8252 (remote_multi_process_feature, remote_non_stop_feature)
8253 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8254 (remote_breakpoint_commands_feature)
8255 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8256 (remote_install_in_trace_feature)
8257 (remote_disconnected_tracing_feature)
8258 (remote_enable_disable_tracepoint_feature)
8259 (remote_string_tracing_feature)
8260 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8261 (remote_protocol_features): Adjust to use remote_supported_packet
8262 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8263 "ConditionalTracepoints", "ConditionalBreakpoints",
8264 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8265 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8266 "EnableDisableTracepoints", and "tracenz".
8267 (remote_query_supported): Use packet_support.
8268 (remote_open_1): Adjust.
8269 (extended_remote_attach_1): Use packet_support. Switch on the
8270 result of packet_ok instead of checking whether the packet ended
8271 up disabled.
8272 (remote_vcont_resume): Use packet_support.
8273 (remote_resume, remote_stop_ns, fetch_register_using_p)
8274 (remote_prepare_to_store, store_register_using_P)
8275 (check_binary_download, remote_write_bytes): Use packet_support.
8276 (remote_vkill): Use packet_support. Switch on the result of
8277 packet_ok instead of checking whether the packet ended up
8278 disabled.
8279 (extended_remote_supports_disable_randomization): Use
8280 packet_support.
8281 (extended_remote_run): Switch on the result of packet_ok instead
8282 of checking whether the packet ended up disabled.
8283 (remote_insert_breakpoint, remote_remove_breakpoint)
8284 (remote_insert_watchpoint, remote_remove_watchpoint)
8285 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8286 packet_support.
8287 (remote_search_memory): Use packet_config_support.
8288 (remote_get_thread_local_address, remote_get_tib_address)
8289 (remote_hostio_send_command, remote_can_execute_reverse): Use
8290 packet_support.
8291 (remote_supports_cond_tracepoints)
8292 (remote_supports_cond_breakpoints)
8293 (remote_supports_fast_tracepoints)
8294 (remote_supports_static_tracepoints)
8295 (remote_supports_install_in_trace)
8296 (remote_supports_enable_disable_tracepoint)
8297 (remote_supports_string_tracing)
8298 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8299 the packet config says the feature is enabled or disabled.
8300 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8301 (remote_get_trace_status): Use packet_support.
8302 (remote_set_disconnected_tracing): Adjust to check whether the
8303 feature is enabled with packet_support.
8304 (remote_set_trace_buffer_size, remote_use_agent)
8305 (remote_can_use_agent, remote_supports_btrace): Use
8306 packet_support.
8307 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8308 Use packet_config_support.
8309 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8310 the packet config says the feature is enabled or disabled.
8311 (set_range_stepping): Use packet_support.
8312
bdb52a22
TT
83132014-04-25 Tom Tromey <tromey@redhat.com>
8314
8315 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8316 argument.
8317
e9475ead
SA
83182014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8319
8320 * NEWS: Mention support for C99 variable length arrays.
8321
82eacd52
JB
83222014-04-24 Joel Brobecker <brobecker@adacore.com>
8323
8324 * ada-lang.c (standard_exc): Expand introductory comment.
8325
01f9f808
MS
83262014-04-24 Michael Sturm <michael.sturm@mintel.com>
8327 Walfred Tedeschi <walfred.tedeschi@intel.com>
8328
8329 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8330 AVX512 registers.
8331 (amd64_linux_read_description): Add code to handle AVX512 xstate
8332 mask and return respective tdesc.
8333 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8334 and features/i386/x32-avx512-linux.c.
8335 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8336 (amd64_linux_core_read_description): Add code to handle AVX512
8337 xstate mask and return respective tdesc.
8338 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8339 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8340 calculation.
8341 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8342 (tdesc_amd64_avx512_linux): New prototype.
8343 (tdesc_x32_avx512_linux): Likewise.
8344 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8345 features/i386/x32-avx512.c.
8346 (amd64_ymm_avx512_names): New register names for pseudo
8347 registers YMM16-31.
8348 (amd64_ymmh_avx512_names): New register names for raw registers
8349 YMMH16-31.
8350 (amd64_k_names): New register names for K registers.
8351 (amd64_zmmh_names): New register names for ZMM raw registers.
8352 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8353 (amd64_xmm_avx512_names): New register names for XMM16-31
8354 registers.
8355 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8356 registers.
8357 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8358 if feature is present.
8359 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8360 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8361 (AMD64_NUM_REGS): Adjust to new number of registers.
8362 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8363 registers supplied via XSTATE by AVX512 registers.
8364 (i386_linux_read_description): Add case for AVX512.
8365 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8366 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8367 (i386_linux_core_read_description): Add case for AVX512.
8368 (i386_linux_init_abi): Install supported register note section
8369 for AVX512.
8370 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8371 AVX512.
8372 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8373 registers to be number of zmm7h + 1.
8374 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8375 * i386-tdep.c: Include features/i386/i386-avx512.c.
8376 (i386_zmm_names): Add ZMM pseudo register names array.
8377 (i386_zmmh_names): Add ZMM raw register names array.
8378 (i386_k_names): Add K raw register names array.
8379 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8380 registers. AVX512 has 16 more ZMM registers than there are YMM
8381 registers.
8382 (i386_zmmh_regnum_p): Add function to look up register number of
8383 ZMM raw registers.
8384 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8385 (i386_k_regnum_p): Likewise for K raw registers.
8386 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8387 registers added by AVX512.
8388 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8389 registers added by AVX512.
8390 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8391 added by AVX512.
8392 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8393 (i386_pseudo_register_name): Add ZMM pseudo registers.
8394 (i386_zmm_type): Construct and return vector registers type for ZMM
8395 registers.
8396 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8397 ZMM0-31 pseudo registers and K registers.
8398 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8399 and YMM16-31 registers from register cache.
8400 (i386_pseudo_register_write): Add code to write K, ZMM and
8401 YMM16-31 registers.
8402 (i386_register_reggroup_p): Add code to include/exclude AVX512
8403 registers in/from respective register groups.
8404 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8405 registers if feature is present in xcr0.
8406 (i386_gdbarch_init): Add code to initialize AVX512 feature
8407 variables in tdep structure, wire in pseudo registers and call
8408 initialize_tdesc_i386_avx512.
8409 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8410 variables.
8411 (i386_regnum): Add AVX512 registers.
8412 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8413 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8414 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8415 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8416 512 bits wide.
8417 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8418 (i386_ymm_avx512_regnum_p): Likewise.
8419 (i386_k_regnum_p): Likewise.
8420 (i386_zmm_regnum_p): Likewise.
8421 (i386_zmmh_regnum_p): Likewise.
8422 * i387-tdep.c : Update year in copyright notice.
8423 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8424 XSAVE buffer.
8425 (XSAVE_YMM_AVX512_ADDR): New macro.
8426 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8427 XSAVE buffer.
8428 (XSAVE_XMM_AVX512_ADDR): New macro.
8429 (xsave_avx512_k_offset): New table for K register offsets in
8430 XSAVE buffer.
8431 (XSAVE_AVX512_K_ADDR): New macro.
8432 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8433 in XSAVE buffer.
8434 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8435 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8436 buffer.
8437 (i387_collect_xsave): Add code to collect AVX512 registers from
8438 XSAVE buffer.
8439 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8440 of XMM16-31 registers.
8441 (I387_NUM_K_REGS): New define for number of K registers.
8442 (I387_K0_REGNUM): New define for K0 register number.
8443 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8444 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8445 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8446 registers.
8447 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8448 (I387_XMM16_REGNUM): New define for XMM16 register number.
8449 (I387_YMM0_REGNUM): New define for YMM0 register number.
8450 (I387_KEND_REGNUM): New define for last K register number.
8451 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8452 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8453 number.
8454 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8455 number.
8456 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8457 size.
8458 * features/Makefile: Add AVX512 related files.
8459 * features/i386/32bit-avx512.xml: New file.
8460 * features/i386/64bit-avx512.xml: Likewise.
8461 * features/i386/amd64-avx512-linux.c: Likewise.
8462 * features/i386/amd64-avx512-linux.xml: Likewise.
8463 * features/i386/amd64-avx512.c: Likewise.
8464 * features/i386/amd64-avx512.xml: Likewise.
8465 * features/i386/i386-avx512-linux.c: Likewise.
8466 * features/i386/i386-avx512-linux.xml: Likewise.
8467 * features/i386/i386-avx512.c: Likewise.
8468 * features/i386/i386-avx512.xml: Likewise.
8469 * features/i386/x32-avx512-linux.c: Likewise.
8470 * features/i386/x32-avx512-linux.xml: Likewise.
8471 * features/i386/x32-avx512.c: Likewise.
8472 * features/i386/x32-avx512.xml: Likewise.
8473 * regformats/i386/amd64-avx512-linux.dat: New file.
8474 * regformats/i386/amd64-avx512.dat: Likewise.
8475 * regformats/i386/i386-avx512-linux.dat: Likewise.
8476 * regformats/i386/i386-avx512.dat: Likewise.
8477 * regformats/i386/x32-avx512-linux.dat: Likewise.
8478 * regformats/i386/x32-avx512.dat: Likewise.
8479 * NEWS: Add note about new support for AVX512.
8480
8481
08351840
PA
84822014-04-23 Pedro Alves <palves@redhat.com>
8483
8484 * breakpoint.c (insert_bp_location): Tolerate errors if the
8485 breakpoint is set in a user-loaded objfile.
8486 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8487 location is marked shlib_disabled. If the breakpoint is set in a
8488 user-loaded objfile is a GDB-side memory breakpoint, validate it
8489 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8490 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8491 flag.
8492 * mem-break.c (memory_validate_breakpoint): New function.
8493 * objfiles.c (userloaded_objfile_contains_address_p): New
8494 function.
8495 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8496 * target.h (memory_validate_breakpoint): New declaration.
8497
076855f9
PA
84982014-04-23 Pedro Alves <palves@redhat.com>
8499
8500 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8501 the breakpoint is set in a shared library, only suppress
8502 errors for software breakpoints, not hardware breakpoints.
8503
483805cf
PA
85042014-04-22 Pedro Alves <palves@redhat.com>
8505
8506 * infrun.c (schedlock_applies): New function, factored out from
8507 find_thread_needs_step_over.
8508 (find_thread_needs_step_over): Use it.
8509 (switch_back_to_stepped_thread): Always clear trap_expected if the
8510 step over is finished. Return early if scheduler locking applies.
8511 Look for the stepping thread and a potential step-over thread with
8512 a single loop.
8513 (currently_stepping_or_nexting_callback): Delete.
8514
a75fef0e
NC
85152014-04-22 Nick Clifton <nickc@redhat.com>
8516
8517 * NEWS: Mention that ARM sim now supports tracing.
8518
48b6e87e
YQ
85192014-04-22 Yao Qi <yao@codesourcery.com>
8520
8521 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8522 to ...
8523 * tracefile.c (tracefile_fetch_registers): ... it. New
8524 function.
8525 * tracefile.h (tracefile_fetch_registers): Declare.
8526 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8527 tracefile_fetch_registers.
8528
17617f2d
EZ
85292014-04-19 Eli Zaretskii <eliz@gnu.org>
8530
8531 PR gdb/14018
8532 * windows-nat.c (thread_rec): Don't display a warning when
8533 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8534 fails for any reason, set th->suspended to -1, so that we don't
8535 try to resume such a thread. Also, don't return NULL in these
8536 cases, to avoid completely ruin the session due to "PC register is
8537 not available" error.
8538 (do_windows_fetch_inferior_registers): Check errors in
8539 GetThreadContext call.
8540 (windows_continue): Accept an additional argument KILLED; if not
8541 zero, ignore errors in the SetThreadContext call, since the
8542 inferior was killed and is shutting down.
8543 (windows_resume, get_windows_debug_event)
8544 (windows_create_inferior, windows_mourn_inferior)
8545 (windows_kill_inferior): All callers of windows_continue changed
8546 to adjust to its new calling sequence.
8547
5723a6fd
YQ
85482014-04-19 Yao Qi <yao@codesourcery.com>
8549
8550 * ctf.c (ctf_open): Call post_create_inferior.
8551
614d5099
YQ
85522014-04-19 Yao Qi <yao@codesourcery.com>
8553
8554 * ctf.c (handle_id): New static variable.
8555 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8556 value. Get the declaration of event "register" and get length
8557 of field "contents".
8558
dac3e710
YQ
85592014-04-19 Yao Qi <yao@codesourcery.com>
8560
8561 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8562
2bca57ba
SC
85632014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8564
8565 * valops.c (oload_method_static): Remove unnecessary argument
8566 METHOD. Update all callers.
8567
51d48146
PA
85682014-04-18 Pedro alves <palves@redhat.com>
8569 Tom Tromey <tromey@redhat.com>
8570
8571 PR backtrace/15558
8572 * frame.c (get_prev_frame_1): Rename to ...
8573 (get_prev_frame_always): ... this, and make extern. Adjust.
8574 (skip_artificial_frames): Use get_prev_frame_always.
8575 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8576 (get_frame_unwind_stop_reason): Adjust to rename.
8577 * frame.h (get_prev_frame_always): Declare.
8578 * inline-frame.c: Include frame.h.
8579 (inline_frame_this_id): Use get_prev_frame_always.
8580
1bdad2e0
TG
85812014-04-18 Tristan Gingold <gingold@adacore.com>
8582
8583 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8584 code by using bfd_mach_o_get_base_address.
8585
7ce16bd4
UW
85862014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8587
8588 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8589 (spu_ax_pseudo_register_collect): New function.
8590 (spu_ax_pseudo_register_push_stack): Likewise.
8591 (spu_dwarf_reg_to_regnum): Likewise.
8592 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8593
2ed3c037
UW
85942014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8595
8596 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8597 Replace FRAME argument with FRAME_ID.
8598 * gdbarch.c, gdbarch.h: Regenerate.
8599 * findvar.c (default_value_from_register): Add GDBARCH argument;
8600 replace FRAME by FRAME_ID. No longer call get_frame_id.
8601 (value_from_register): Update call to gdbarch_value_from_register.
8602 * value.h (default_value_from_register): Update prototype.
8603 * s390-linux-tdep.c (s390_value_from_register): Update interface
8604 and call to default_value_from_register.
8605 * spu-tdep.c (spu_value_from_register): Likewise.
8606
8607 * findvar.c (address_from_register): Remove TYPE argument.
8608 Do not call value_from_register; use gdbarch_value_from_register
8609 with null_frame_id instead.
8610 * value.h (address_from_register): Update prototype.
8611 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8612 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8613 address_from_register interface change.
8614
71e50e83
YQ
86152014-04-17 Yao Qi <yao@codesourcery.com>
8616
8617 * gdbtypes.h: Update comments to link to types and macros'
8618 definitions.
8619
7a23c549
SC
86202014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8621
8622 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8623
22869d73
KS
86242014-04-16 Keith Seitz <keiths@redhat.com>
8625
8626 PR gdb/15827
8627 * dwarf2read.c (skip_one_die): Check that all relative-offset
8628 sibling DIEs fall within range of the current reader's buffer.
8629 (read_partial_die): Likewise.
8630
c4f87ca6
KS
86312014-04-16 Keith Seitz <keiths@redhat.com>
8632
8633 PR c++/16597
8634 * cp-namespace.c (lookup_symbol_file): If the type name of
8635 `this' is NULL, return immediately.
8636
b50c8614
KS
86372014-04-14 Keith Seitz <keiths@redhat.com>
8638
8639 PR c++/16253
8640 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8641 from symbol_matches_domain in symtab.c. All local callers
8642 of symbol_matches_domain updated.
8643 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8644 search STRUCT_DOMAIN.
8645 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8646 independently. standard_lookup will do that automatically.
8647 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8648 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8649 (cp_lookup_symbol_in_namespace): Likewise.
8650 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8651 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8652 may return a STRUCT_DOMAIN match.
8653 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8654 * cp-support.c: Include language.h.
8655 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8656 VAR_DOMAIN.
8657 * psymtab.c (match_partial_symbol): Compare the requested
8658 domain with the symbol's domain directly.
8659 (lookup_partial_symbol): Likewise.
8660 * symtab.c (lookup_symbol_in_language): Explain when/why
8661 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8662 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8663 appropriate languages.
8664 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8665 and moved to ada-lang.c
8666 (lookup_block_symbol): Explain that this function only returns
8667 symbol matching the requested DOMAIN.
8668 Compare the requested domain with the symbol's domain directly.
8669 (iterate_over_symbols): Compare the requested domain with the
8670 symbol's domain directly.
8671 * symtab.h (symbol_matches_domain): Remove.
8672
3d567982
TT
86732014-04-14 Tom Tromey <tromey@redhat.com>
8674
8675 PR c++/15246:
8676 * c-exp.y (type_aggregate_p): New function.
8677 (qualified_name, classify_inner_name): Use it.
8678 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8679 and TYPE_TARGET_TYPE of an enum type.
8680 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8681 an enum type.
8682 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8683 handle TYPE_DECLARED_CLASS.
8684 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8685 types.
8686 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8687 * valops.c (enum_constant_from_type): New function.
8688 (value_aggregate_elt): Use it.
8689 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8690 TYPE_CODE_ENUM.
8691
c848d642
TT
86922014-04-14 Tom Tromey <tromey@redhat.com>
8693
8694 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8695 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8696 const.
8697 * value.h (value_aggregate_elt): Update.
8698
0626fc76
TT
86992014-04-14 Tom Tromey <tromey@redhat.com>
8700
8701 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8702
5ecaaa66
SA
87032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8704
8705 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8706 (evaluate_subexp_standard): Pass noside argument.
8707 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8708 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8709 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8710 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8711 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8712
1612e0c0
SA
87132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8714
8715 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8716 points to a constant blob.
8717
c451ebe5
SA
87182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8719
8720 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8721 property and store it as the high bound and flag the range accordingly.
8722 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8723 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8724 * gdbtypes.h (enum range_flags): New enum.
8725 (struct range_bounds): Add flags member.
8726
1d42e4c4
SA
87272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8728
8729 * c-typeprint.c (c_type_print_varspec_suffix): Added
8730 check for not yet resolved high bound. If unresolved, print
8731 "variable length" string to the console instead of random
8732 length.
8733
9f1f738a
SA
87342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8735
8736 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8737 value.
8738 (ada_template_to_fixed_record_type_1): Likewise.
8739 (ada_to_fixed_type_1): Likewise.
8740 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8741 (cp_print_value): Likewise.
8742 * d-valprint.c (dynamic_array_type): Likewise.
8743 * findvar.c (address_of_variable): Likewise.
8744 * jv-valprint.c (java_value_print): Likewise.
8745 * valops.c (value_ind): Likewise.
8746 * value.c (coerce_ref): Likewise.
8747
3c8452d4
SA
87482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8749
8750 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8751 value and retrieve the dynamic type size.
8752
4ad88275
SA
87532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8754
8755 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8756 passed to sizeof is dynamic evaluate the argument to compute the length.
8757
80180f79
SA
87582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8759 Joel Brobecker <brobecker@adacore.com>
8760
8761 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8762 (dwarf2_evaluate_property): New function.
8763 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8764 * dwarf2read.c (attr_to_dynamic_prop): New function.
8765 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8766 attribute.
8767 * gdbtypes.c: Include dwarf2loc.h.
8768 (is_dynamic_type): New function.
8769 (resolve_dynamic_type): New function.
8770 (resolve_dynamic_bounds): New function.
8771 (get_type_length): New function.
8772 (check_typedef): Use get_type_length to compute type length.
8773 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8774 (TYPE_LOW_BOUND_KIND): New macro.
8775 (is_dynamic_type): New function prototype.
8776 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8777 to resolve dynamic properties of the type. Update comment.
8778 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8779
a1556843
RH
87802014-04-14 Richard Henderson <rth@redhat.com>
8781
8782 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8783
0be03e84
DE
87842014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8785 Doug Evans <xdje42@gmail.com>
8786
8787 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8788 dereference TYPE_CODE_REF values.
8789
6b662e19
JB
87902014-04-11 Joel Brobecker <brobecker@adacore.com>
8791
8792 Revert the following changes due to regressions:
8793
8794 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8795 (dwarf2_evaluate_property): New function.
8796 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8797 * dwarf2read.c (attr_to_dynamic_prop): New function.
8798 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8799 attribute.
8800 * gdbtypes.c: Include dwarf2loc.h.
8801 (is_dynamic_type): New function.
8802 (resolve_dynamic_type): New function.
8803 (resolve_dynamic_bounds): New function.
8804 (get_type_length): New function.
8805 (check_typedef): Use get_type_length to compute type length.
8806 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8807 (TYPE_LOW_BOUND_KIND): New macro.
8808 (is_dynamic_type): New function prototype.
8809 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8810 to resolve dynamic properties of the type. Update comment.
8811 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8812
8813 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8814 passed to sizeof is dynamic evaluate the argument to compute the length.
8815
8816 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8817 value and retrieve the dynamic type size.
8818
8819 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8820 (ada_template_to_fixed_record_type_1): Likewise.
8821 (ada_to_fixed_type_1): Likewise.
8822 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8823 (cp_print_value): Likewise.
8824 * d-valprint.c (dynamic_array_type): Likewise.
8825 * eval.c (evaluate_subexp_with_coercion): Likewise.
8826 * findvar.c (address_of_variable): Likewise.
8827 * jv-valprint.c (java_value_print): Likewise.
8828 * valops.c (value_ind): Likewise.
8829 * value.c (coerce_ref): Likewise.
8830
8831 * c-typeprint.c (c_type_print_varspec_suffix): Added
8832 check for not yet resolved high bound. If unresolved, print
8833 "variable length" string to the console instead of random
8834 length.
8835
8836 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8837 property and store it as the high bound and flag the range accordingly.
8838 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8839 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8840 * gdbtypes.h (enum range_flags): New enum.
8841 (struct range_bounds): Add flags member.
8842
8843 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8844 points to a constant blob.
8845
8846 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8847 (evaluate_subexp_standard): Pass noside argument.
8848 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8849 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8850 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8851 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8852 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8853
245a5f0b
KS
88542014-04-11 Keith Seitz <keiths@redhat.com>
8855
8856 PR c++/16675
8857 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8858 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8859 reference types.
8860
3bce8237
SA
88612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8862
8863 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8864 (evaluate_subexp_standard): Pass noside argument.
8865 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8866 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8867 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8868 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8869 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8870
92b09522
SA
88712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8872
8873 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8874 points to a constant blob.
8875
e1969afb
SA
88762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8877
8878 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8879 property and store it as the high bound and flag the range accordingly.
8880 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8881 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8882 * gdbtypes.h (enum range_flags): New enum.
8883 (struct range_bounds): Add flags member.
8884
b86138fb
SA
88852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8886
8887 * c-typeprint.c (c_type_print_varspec_suffix): Added
8888 check for not yet resolved high bound. If unresolved, print
8889 "variable length" string to the console instead of random
8890 length.
8891
bcd629a4
SA
88922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8893
8894 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8895 (ada_template_to_fixed_record_type_1): Likewise.
8896 (ada_to_fixed_type_1): Likewise.
8897 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8898 (cp_print_value): Likewise.
8899 * d-valprint.c (dynamic_array_type): Likewise.
8900 * eval.c (evaluate_subexp_with_coercion): Likewise.
8901 * findvar.c (address_of_variable): Likewise.
8902 * jv-valprint.c (java_value_print): Likewise.
8903 * valops.c (value_ind): Likewise.
8904 * value.c (coerce_ref): Likewise.
8905
04b19544
SA
89062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8907
8908 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8909 value and retrieve the dynamic type size.
8910
26cb189f
SA
89112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8912
8913 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8914 passed to sizeof is dynamic evaluate the argument to compute the length.
8915
37c1ab67
SA
89162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8917
8918 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8919 (dwarf2_evaluate_property): New function.
8920 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8921 * dwarf2read.c (attr_to_dynamic_prop): New function.
8922 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8923 attribute.
8924 * gdbtypes.c: Include dwarf2loc.h.
8925 (is_dynamic_type): New function.
8926 (resolve_dynamic_type): New function.
8927 (resolve_dynamic_bounds): New function.
8928 (get_type_length): New function.
8929 (check_typedef): Use get_type_length to compute type length.
8930 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8931 (TYPE_LOW_BOUND_KIND): New macro.
8932 (is_dynamic_type): New function prototype.
8933 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8934 to resolve dynamic properties of the type. Update comment.
8935 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8936
729efb13
SA
89372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8938
8939 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8940 declaring high/low bounds and change uses accordingly. Call
8941 create_range_type instead of create_static_range_type.
8942 * gdbtypes.c (create_range_type): New function.
8943 (create_range_type): Convert bounds into struct bound_prop and pass
8944 them to create_range_type.
8945 * gdbtypes.h (struct bound_prop): New struct.
8946 (create_range_type): New function prototype.
8947 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8948 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8949 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8950 part of the bound.
8951 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8952
0c9c3474
SA
89532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8954
8955 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8956 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8957 * ada-lang.c: All uses of create_range_type updated.
8958 * coffread.c: All uses of create_range_type updated.
8959 * dwarf2read.c: All uses of create_range_type updated.
8960 * f-exp.y: All uses of create_range_type updated.
8961 * m2-valprint.c: All uses of create_range_type updated.
8962 * mdebugread.c: All uses of create_range_type updated.
8963 * stabsread.c: All uses of create_range_type updated.
8964 * valops.c: All uses of create_range_type updated.
8965 * valprint.c: All uses of create_range_type updated.
8966
9d497a19
PA
89672014-04-10 Pedro Alves <palves@redhat.com>
8968
8969 * breakpoint.c (single_step_breakpoints)
8970 (single_step_gdbarch): Move up in the file.
8971 (one_breakpoint_xfer_memory): New function, factored out from ...
8972 (breakpoint_xfer_memory): ... here. Also process single-step
8973 breakpoints.
8974
15a9128a
TG
89752014-04-09 Tristan Gingold <gingold@adacore.com>
8976
8977 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8978 comments.
8979 (darwin_decode_exception_message): Free port only after use.
8980
9c97a070
PL
89812014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8982
8983 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8984 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8985 when setting the size of call_length.
8986
7af389b8
SC
89872014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8988
8989 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8990 dereference TYPE_CODE_REF values.
8991
86ad98c3
JB
89922014-04-07 Joel Brobecker <brobecker@adacore.com>
8993
8994 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8995 end of warning message.
8996
b0aeadb3
DE
89972014-04-03 Doug Evans <dje@google.com>
8998
8999 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9000 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9001
5979d6b6
AM
90022014-04-02 Alan Modra <amodra@gmail.com>
9003
9004 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9005 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9006 (struct symbol_file_add_from_memory_args): Add size field.
9007 (find_vdso_size): New function.
9008 (add_vsyscall_page): Attempt to find vdso size.
9009
0d60c288
DE
90102014-04-01 Doug Evans <dje@google.com>
9011
9012 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9013
a41f2563
TG
90142014-04-01 Tristan Gingold <gingold@adacore.com>
9015
9016 * darwin-nat.c (darwin_encode_reply): Add prototype.
9017 (darwin_decode_exception_message): Reply to unknown inferiors.
9018 (darwin_decode_message): Handle message by id. Ignore message
9019 to unknown inferior.
9020 (darwin_wait): Discard unknown messages, add debug trace.
9021
11a865c8
DE
90222014-03-31 Doug Evans <dje@google.com>
9023
9024 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9025 comp_dir_string.
9026
770e7fc7
DE
90272014-03-31 Doug Evans <dje@google.com>
9028
9029 New option "set print symbol-loading".
9030 * NEWS: Mention it.
9031 * solib.c (solib_read_symbols): Only print symbol loading messages
9032 if requested.
9033 (solib_add): If symbol loading is in "brief" mode, notify user
9034 symbols are being loaded.
9035 (reload_shared_libraries_1): Ditto.
9036 * symfile.c (print_symbol_loading_off): New static global.
9037 (print_symbol_loading_brief): New static global.
9038 (print_symbol_loading_full): New static global.
9039 (print_symbol_loading_enums): New static global.
9040 (print_symbol_loading): New static global.
9041 (print_symbol_loading_p): New function.
9042 (symbol_file_add_with_addrs): Only print symbol loading messages
9043 if requested.
9044 (_initialize_symfile): Register "print symbol-loading" set/show
9045 command.
9046 * symfile.h (print_symbol_loading_p): Declare.
9047
c32c64b7
DE
90482014-03-30 Doug Evans <xdje42@gmail.com>
9049
9050 * infrun.c (set_last_target_status): New function.
9051 (handle_inferior_event): Call it.
9052
7c0bc051
DE
90532014-03-30 Doug Evans <xdje42@gmail.com>
9054
9055 * inferior.h (enum stop_kind): Improve comment.
9056
8776cfe9
JB
90572014-03-28 Joel Brobecker <brobecker@adacore.com>
9058
9059 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9060 a reference, strip the reference layer before calling
9061 the lang_ops value_has_mutated callback.
9062
410a0ff2
SDJ
90632014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9064
9065 Remove some globals from our parser.
9066 * language.c (unk_lang_parser): Add "struct parser_state"
9067 argument.
9068 * language.h (struct language_defn) <la_parser>: Likewise.
9069 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9070 (initialize_expout): Add "struct parser_state" argument.
9071 Rewrite function to use the parser state.
9072 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9073 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9074 write_exp_elt_longcst, write_exp_elt_dblcst,
9075 write_exp_elt_decfloatcst, write_exp_elt_type,
9076 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9077 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9078 write_dollar_variable): Likewise.
9079 (parse_exp_in_context_1): Use parser state.
9080 (insert_type_address_space): Add "struct parser_state" argument.
9081 Use parser state.
9082 (increase_expout_size): New function.
9083 * parser-defs.h: Forward declare "struct language_defn" and
9084 "struct parser_state".
9085 (expout, expout_size, expout_ptr): Remove extern declarations.
9086 (parse_gdbarch, parse_language): Rewrite macro declarations to
9087 accept the parser state.
9088 (struct parser_state): New struct.
9089 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9090 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9091 write_exp_elt_decfloatcst, write_exp_elt_type,
9092 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9093 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9094 write_exp_msymbol, write_dollar_variable,
9095 mark_struct_expression, insert_type_address_space): Add "struct
9096 parser_state" argument.
9097 (increase_expout_size): New function.
9098 * utils.c (do_clear_parser_state): New function.
9099 (make_cleanup_clear_parser_state): Likewise.
9100 * utils.h (make_cleanup_clear_parser_state): New function
9101 prototype.
9102 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9103 Update calls to write_exp* in order to pass the parser state.
9104 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9105 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9106 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9107 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9108 * stap-probe.c (stap_parse_register_operand): Likewise.
9109 (stap_parse_single_operand): Likewise.
9110 (stap_parse_argument_1): Likewise.
9111 (stap_parse_argument): Use parser state.
9112 * stap-probe.h: Include "parser-defs.h".
9113 (struct stap_parse_info) <pstate>: New field.
9114 * c-exp.y (parse_type): Rewrite to use parser state.
9115 (yyparse): Redefine to c_parse_internal.
9116 (pstate): New global variable.
9117 (parse_number): Add "struct parser_state" argument.
9118 (write_destructor_name): Likewise.
9119 (type_exp): Update calls to write_exp* and similars in order to
9120 use parser state.
9121 (exp1, exp, variable, qualified_name, space_identifier,
9122 typename, typebase): Likewise.
9123 (write_destructor_name, parse_number, lex_one_token,
9124 classify_name, classify_inner_name, c_parse): Add "struct
9125 parser_state" argument. Update function to use parser state.
9126 * c-lang.h: Forward declare "struct parser_state".
9127 (c_parse): Add "struct parser_state" argument.
9128 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9129 (yyparse): Redefine macro to ada_parse_internal.
9130 (pstate): New variable.
9131 (write_int, write_object_renaming, write_var_or_type,
9132 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9133 type_int, type_long, type_long_long, type_float, type_double,
9134 type_long_double, type_char, type_boolean, type_system_address):
9135 Add "struct parser_state" argument.
9136 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9137 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9138 var_or_type, aggregate, aggregate_component_list,
9139 positional_list, others, component_group,
9140 component_associations): Update calls to write_exp* and similar
9141 functions in order to use parser state.
9142 (ada_parse, write_var_from_sym, write_int,
9143 write_exp_op_with_string, write_object_renaming,
9144 find_primitive_type, write_selectors, write_ambiguous_var,
9145 write_var_or_type, write_name_assoc, type_int, type_long,
9146 type_long_long, type_float, type_double, type_long_double,
9147 type_char, type_boolean, type_system_address): Add "struct
9148 parser_state" argument. Adjust function to use parser state.
9149 * ada-lang.c (parse): Likewise.
9150 * ada-lang.h: Forward declare "struct parser_state".
9151 (ada_parse): Add "struct parser_state" argument.
9152 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9153 calls to both functions.
9154 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9155 parser state.
9156 (yyparse): Redefine macro to f_parse_internal.
9157 (pstate): New variable.
9158 (parse_number): Add "struct parser_state" argument.
9159 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9160 and similars in order to use parser state.
9161 (parse_number): Adjust code to use parser state.
9162 (yylex): Likewise.
9163 (f_parse): New function.
9164 * f-lang.h: Forward declare "struct parser_state".
9165 (f_parse): Add "struct parser_state" argument.
9166 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9167 parser state.
9168 (yyparse): Redefine macro for java_parse_internal.
9169 (pstate): New variable.
9170 (push_expression_name, push_expression_name, insert_exp): Add
9171 "struct parser_state" argument.
9172 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9173 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9174 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9175 PostIncrementExpression, PostDecrementExpression,
9176 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9177 UnaryExpressionNotPlusMinus, CastExpression,
9178 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9179 RelationalExpression, EqualityExpression, AndExpression,
9180 ExclusiveOrExpression, InclusiveOrExpression,
9181 ConditionalAndExpression, ConditionalOrExpression,
9182 ConditionalExpression, Assignment, LeftHandSide): Update
9183 calls to write_exp* and similars in order to use parser state.
9184 (parse_number): Ajust code to use parser state.
9185 (yylex): Likewise.
9186 (java_parse): New function.
9187 (push_variable): Add "struct parser_state" argument. Adjust
9188 code to user parser state.
9189 (push_fieldnames, push_qualified_expression_name,
9190 push_expression_name, insert_exp): Likewise.
9191 * jv-lang.h: Forward declare "struct parser_state".
9192 (java_parse): Add "struct parser_state" argument.
9193 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9194 parser state.
9195 (yyparse): Redefine macro to m2_parse_internal.
9196 (pstate): New variable.
9197 (type_exp, exp, fblock, variable, type): Update calls to
9198 write_exp* and similars to use parser state.
9199 (yylex): Likewise.
9200 (m2_parse): New function.
9201 * m2-lang.h: Forward declare "struct parser_state".
9202 (m2_parse): Add "struct parser_state" argument.
9203 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9204 * objc-lang.h: Forward declare "struct parser_state".
9205 (end_msglist): Add "struct parser_state" argument.
9206 * p-exp.y (parse_type): Rewrite macro to use parser state.
9207 (yyparse): Redefine macro to pascal_parse_internal.
9208 (pstate): New variable.
9209 (parse_number): Add "struct parser_state" argument.
9210 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9211 write_exp* and similars in order to use parser state.
9212 (parse_number, yylex): Adjust code to use parser state.
9213 (pascal_parse): New function.
9214 * p-lang.h: Forward declare "struct parser_state".
9215 (pascal_parse): Add "struct parser_state" argument.
9216 * go-exp.y (parse_type): Rewrite macro to use parser state.
9217 (yyparse): Redefine macro to go_parse_internal.
9218 (pstate): New variable.
9219 (parse_number): Add "struct parser_state" argument.
9220 (type_exp, exp1, exp, variable, type): Update calls to
9221 write_exp* and similars in order to use parser state.
9222 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9223 to use parser state.
9224 (go_parse): Likewise.
9225 * go-lang.h: Forward declare "struct parser_state".
9226 (go_parse): Add "struct parser_state" argument.
9227
342587c4
DE
92282014-03-27 Doug Evans <dje@google.com>
9229
9230 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9231
33e80786
DE
92322014-03-27 Doug Evans <dje@google.com>
9233
9234 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9235 Remove argument abbrev_section. All callers updated.
9236
1dbab08b
DE
92372014-03-27 Doug Evans <dje@google.com>
9238
9239 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9240 addr_base, ranges_base.
9241
318d3177
KS
92422014-03-26 Keith Seitz <keiths@redhat.com>
9243
9244 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9245 types, not VAR_DOMAIN.
9246
1e54db15
SL
92472014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9248
9249 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9250 "ra" registers.
9251 * features/nios2-linux.c: Regenerated.
9252 * features/nios2.c: Regenerated.
9253
d3839ede
PA
92542014-03-25 Pedro Alves <palves@redhat.com>
9255
9256 * cli/cli-script.c (script_from_file): Force the interpreter to
9257 sync mode.
9258
7588d2ec
PL
92592014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9260
9261 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9262 small stack allocation.
9263
a6290449
TG
92642014-03-24 Tristan Gingold <gingold@adacore.com>
9265
9266 * darwin-nat.c (exc_server): Remove unused prototype.
9267 (darwin_dump_message): Correctly display data on x86_64.
9268 (darwin_encode_reply): Fix style.
9269 Add comments and fix indentation.
9270
31ae9d24 92712014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9272
9273 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9274
6339bfc4
DE
92752014-03-22 Doug Evans <xdje42@gmail.com>
9276
9277 * infcmd.c: Whitespace fixes.
9278 (interrupt_command): Merge two function comments into one.
9279
0a07590b
DE
92802014-03-22 Doug Evans <xdje42@gmail.com>
9281
9282 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9283 All uses updated.
9284
b55fbac4
YQ
92852014-03-22 Yao Qi <yao@codesourcery.com>
9286
9287 * remote.c (target_read_live_memory): Remove.
9288 (memory_xfer_live_readonly_partial): Rename it to
9289 remote_xfer_live_readonly_partial. Remove argument 'object'.
9290 All callers updated. Call remote_read_bytes_1
9291 instead of target_read_live_memory.
9292 * tracepoint.c (set_traceframe_number): Remove.
9293 (make_cleanup_restore_traceframe_number): Likewise .
9294 * tracepoint.h (set_traceframe_number): Remove declaration.
9295 (make_cleanup_restore_traceframe_number): Likewise.
9296
9217e74e
YQ
92972014-03-22 Yao Qi <yao@codesourcery.com>
9298
9299 * remote.c (remote_read_bytes): Move code on reading from the
9300 remote stub to ...
9301 (remote_read_bytes_1): ... here. New function.
9302
8acf9577
YQ
93032014-03-22 Yao Qi <yao@codesourcery.com>
9304
9305 * ctf.c (ctf_xfer_partial): Check the return value of
9306 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9307 return TARGET_XFER_UNAVAILABLE.
9308 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9309 * target.c (target_read_live_memory): Move it to remote.c.
9310 (memory_xfer_live_readonly_partial): Likewise.
9311 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9312 * remote.c (target_read_live_memory): Moved from target.c.
9313 (memory_xfer_live_readonly_partial): Likewise.
9314 (remote_read_bytes): Factored out from
9315 memory_xfer_partial_1.
9316
feef67ab
DE
93172014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9318
9319 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9320 NULL pointer.
9321
b65dc60b
PA
93222014-03-21 Pedro Alves <palves@redhat.com>
9323
9324 * infrun.c (normal_stop): Extend comment.
9325
b4ab256d
HZ
93262014-03-21 Hui Zhu <hui@codesourcery.com>
9327 Pedro Alves <palves@redhat.com>
9328
9329 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9330 static buffer.
9331 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9332 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9333 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9334
deba7593
MR
93352014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9336
9337 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9338 `z' formatted output modifier.
9339
1bff71c3
SDJ
93402014-03-20 Tom Tromey <tromey@redhat.com>
9341 Sergio Durigan Junior <sergiodj@redhat.com>
9342
9343 * probe.c (parse_probes): Turn assert into an ordinary error.
9344 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9345 exceptions when parsing probes. Rearrange the code for clarity.
9346
90e28950
TT
93472014-03-20 Tom Tromey <tromey@redhat.com>
9348
9349 PR gdb/14135
9350 * top.c (execute_command): Only dispatch events if the command
9351 started the target.
9352
beb460e8
PA
93532014-03-20 Tom Tromey <tromey@redhat.com>
9354
9355 PR cli/15718
9356 * infcall.c: Include event-top.h.
9357 (run_inferior_call): Call async_disable_stdin if needed.
9358
99619bea
PA
93592014-03-20 Pedro Alves <palves@redhat.com>
9360
9361 * infrun.c (prepare_to_proceed): Delete.
9362 (thread_still_needs_step_over): New function.
9363 (find_thread_needs_step_over): New function.
9364 (proceed): If the current thread needs a step-over, set its
9365 steping_over_breakpoint flag. Adjust to use
9366 find_thread_needs_step_over instead of prepare_to_proceed.
9367 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9368 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9369 breakpoint.
9370 (switch_back_to_stepped_thread): Step over breakpoints of all
9371 threads not the stepping thread, before switching back to the
9372 stepping thread.
9373
2adfaa28
PA
93742014-03-20 Pedro Alves <palves@redhat.com>
9375
9376 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9377 extern.
9378 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9379 * infrun.c (saved_singlestep_ptid)
9380 (stepping_past_singlestep_breakpoint): Delete.
9381 (resume): Remove stepping_past_singlestep_breakpoint handling.
9382 (proceed): Store the prev_pc of the stepping thread too.
9383 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9384 singlestep_pc.
9385 (enum infwait_states): Delete infwait_thread_hop_state.
9386 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9387 field.
9388 (handle_inferior_event): Adjust.
9389 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9390 handling and the thread-hop code. Before removing single-step
9391 breakpoints, check whether the thread hit a single-step breakpoint
9392 of another thread. If it did, the trap is not a random signal.
9393 (switch_back_to_stepped_thread): If the event thread hit a
9394 single-step breakpoint, unblock it before switching to the
9395 stepping thread. Handle the case of the stepped thread having
9396 advanced already.
9397 (keep_going): Handle the case of the current thread moving past a
9398 single-step breakpoint.
9399
31e77af2
PA
94002014-03-20 Pedro Alves <palves@redhat.com>
9401
9402 PR breakpoints/7143
9403 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9404 are being stepped over.
9405 (breakpoint_address_match): Make extern.
9406 * breakpoint.h (breakpoint_address_match): New declaration.
9407 * inferior.h (stepping_past_instruction_at): New declaration.
9408 * infrun.c (struct step_over_info): New type.
9409 (step_over_info): New global.
9410 (set_step_over_info, clear_step_over_info)
9411 (stepping_past_instruction_at): New functions.
9412 (handle_inferior_event): Clear the step-over info when
9413 trap_expected is cleared.
9414 (resume): Remove now stale comment.
9415 (clear_proceed_status): Clear step-over info.
9416 (proceed): Adjust step-over handling to set or clear the step-over
9417 info instead of removing all breakpoints.
9418 (handle_signal_stop): When setting up a thread-hop, don't remove
9419 breakpoints here.
9420 (stop_stepping): Clear step-over info.
9421 (keep_going): Adjust step-over handling to set or clear step-over
9422 info and then always inserting breakpoints, instead of removing
9423 all breakpoints when stepping over one.
9424
b9f437de
PA
94252014-03-20 Pedro Alves <palves@redhat.com>
9426
9427 * infrun.c (previous_inferior_ptid): Adjust comment.
9428 (deferred_step_ptid): Delete.
9429 (infrun_thread_ptid_changed, prepare_to_proceed)
9430 (init_wait_for_inferior): Adjust.
9431 (handle_signal_stop): Delete deferred_step_ptid handling.
9432
06c868a8
JK
94332014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9434
9435 PR gdb/15358
9436 * defs.h (sync_quit_force_run): New declaration.
9437 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9438 * event-top.c (async_sigterm_handler): New declaration.
9439 (async_sigterm_token): New variable.
9440 (async_init_signals): Create also async_sigterm_token.
9441 (async_sigterm_handler): New function.
9442 (sync_quit_force_run): New variable.
9443 (handle_sigterm): Replace quit_force call by other calls.
9444 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9445
dea80df0
MR
94462014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9447
9448 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9449 offset into SPE pseudo registers.
9450
0c7e1a46
PA
94512014-03-18 Pedro Alves <palves@redhat.com>
9452
9453 PR gdb/13860
9454 * inferior.h (print_stop_event): Declare.
9455 * infrun.c (print_stop_event): New, factored out from ...
9456 (normal_stop): ... this.
9457 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9458 of bpstat_print/print_stack_frame.
9459
9c1fcd01
TT
94602014-03-17 Tom Tromey <tromey@redhat.com>
9461
9462 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9463
11aa919a
PMR
94642014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9465
9466 * ada-lang.c (decode_constrained_packed_array): Perform a
9467 minimal coercion for reference with coerce_ref instead of
9468 ada_coerce_ref.
9469
d4ccb5e0
TG
94702014-03-17 Tristan Gingold <gingold@adacore.com>
9471
9472 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9473 (darwin_solib_create_inferior_hook): Emit a warning if version
9474 is unhandled.
9475
49840f2a
UW
94762014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9477
9478 * python/py-value.c (get_field_flag): Cast flag_name argument to
9479 PyObject_GetAttrString to support Python 2.4.
9480
ed4123e5
JK
94812014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9482
9483 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9484 (Global Maintainers): Remove Jan Kratochvil.
9485
d6b64346
PA
94862014-03-14 Pedro Alves <palves@redhat.com>
9487
9488 * inferior.h (terminal_ours_for_output): Rename to ...
9489 (child_terminal_ours_for_output): ... this.
9490 (terminal_save_ours): Rename to ...
9491 (child_terminal_save_ours): ... this.
9492 (terminal_ours): Rename to ...
9493 (child_terminal_ours): ... this.
9494 (terminal_inferior): Rename to ...
9495 (child_terminal_inferior): ... this.
9496 (terminal_init_inferior): Rename to ...
9497 (child_terminal_init_inferior): ... this.
9498 (terminal_init_inferior_with_pgrp): Rename to ...
9499 (child_terminal_init_inferior_with_pgrp): ... this.
9500 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9501 (child_terminal_init_with_pgrp): ... this.
9502 (terminal_save_ours): Rename to ...
9503 (child_terminal_save_ours): ... this.
9504 (terminal_init_inferior): Rename to ...
9505 (child_terminal_init): ... this. Adjust.
9506 (terminal_inferior): Rename to ...
9507 (child_terminal_inferior): ... this.
9508 (terminal_ours_for_output): Rename to ...
9509 (child_terminal_ours_for_output): ... this. Adjust.
9510 (terminal_ours): Rename to ...
9511 (child_terminal_ours): ... this.
9512 (terminal_ours_1): Rename to ...
9513 (child_terminal_ours_1): ... this. Adjust.
9514 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9515 * windows-nat.c (do_initial_windows_stuff): Adjust.
9516 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9517 (gnu_terminal_init): ... this. Adjust.
9518 (gnu_target): Adjust.
9519 * inf-child.c (inf_child_target): Adjust.
9520
5a1e8c7a
DE
95212014-03-13 Doug Evans <xdje42@gmail.com>
9522
9523 PR guile/16612
9524 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9525 new eq?-hashtab.
9526
350e1a76
DE
95272014-03-13 Doug Evans <xdje42@gmail.com>
9528
9529 * value.c (record_latest_value): Call release_value_or_incref
9530 instead of release_value.
9531
a69900ae
PA
95322014-03-13 Pedro Alves <palves@redhat.com>
9533
9534 * procfs.c (procfs_target): Don't override to_shortname,
9535 to_longname or to_doc.
9536
5db9f0bd
PA
95372014-03-13 Pedro Alves <palves@redhat.com>
9538
9539 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9540 Unix in user visible strings.
9541
5e3a2c38
SS
95422014-03-12 Stan Shebs <stan@codesourcery.com>
9543
9544 * gdbtypes.h: Annotate comments for Doxygen, add a page
9545 block comment with some general info.
9546
8bc2fe48
PA
95472014-03-12 Pedro Alves <palves@redhat.com>
9548
9549 * infcmd.c (prepare_execution_command): New function, factored out
9550 from several execution commands.
9551 (run_command_1, continue_command, step_1, jump_command)
9552 (signal_command, until_command, advance_command, finish_command)
9553 (attach_command): Use prepare_execution_command.
9554
638c5f49
OJ
95552014-03-12 Omair Javaid <omair.javaid@linaro.org>
9556
9557 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9558 (MAX_BPTS): Define.
9559 (MAX_WPTS): Define.
9560 (struct arm_linux_thread_points): Removed.
9561 (struct arm_linux_process_info): New.
9562 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9563 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9564 (arm_linux_find_breakpoints_by_tid): Removed.
9565 (struct arch_lwp_info): New.
9566 (arm_linux_find_process_pid): New functions.
9567 (arm_linux_add_process): New functions.
9568 (arm_linux_process_info_get): New functions.
9569 (arm_linux_forget_process): New function.
9570 (arm_linux_get_debug_reg_state): New function.
9571 (struct update_registers_data): New.
9572 (update_registers_callback): New function.
9573 (arm_linux_insert_hw_breakpoint1): Updated.
9574 (arm_linux_remove_hw_breakpoint1): Updated.
9575 (arm_linux_insert_hw_breakpoint): Updated.
9576 (arm_linux_remove_hw_breakpoint): Updated.
9577 (arm_linux_insert_watchpoint): Updated.
9578 (arm_linux_remove_watchpoint): Updated.
9579 (arm_linux_new_thread): Updated.
9580 (arm_linux_prepare_to_resume): New function.
9581 (arm_linux_new_fork): New function.
9582 (_initialize_arm_linux_nat): Updated.
9583
6d03af93
PA
95842014-03-12 Pedro Alves <palves@redhat.com>
9585
9586 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9587
b3ccfe11
TT
95882014-03-12 Tom Tromey <tromey@redhat.com>
9589
9590 * inf-child.c (return_zero): New function.
9591 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9592 * aix-thread.c (aix_thread_inferior_created): New function.
9593 (aix_thread_attach): Remove.
9594 (init_aix_thread_ops): Don't set to_attach.
9595 (_initialize_aix_thread): Register inferior_created observer.
9596 * corelow.c (init_core_ops): Don't set to_attach or
9597 to_create_inferior.
9598 * exec.c (init_exec_ops): Don't set to_attach or
9599 to_create_inferior.
9600 * infcmd.c (run_command_1): Use find_run_target. Make direct
9601 target calls.
9602 (attach_command): Use find_attach_target. Make direct target
9603 calls.
9604 * record-btrace.c (init_record_btrace_ops): Don't set
9605 to_create_inferior.
9606 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9607 Remove.
9608 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9609 set to_create_inferior.
9610 * target.c (complete_target_initialization): Add assertion.
9611 (target_create_inferior): Remove.
9612 (find_default_attach, find_default_create_inferior): Remove.
9613 (find_attach_target, find_run_target): New functions.
9614 (find_default_is_async_p, find_default_can_async_p)
9615 (target_supports_non_stop, target_attach): Remove.
9616 (init_dummy_target): Don't set to_create_inferior or
9617 to_supports_non_stop.
9618 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9619 TARGET_DEFAULT_FUNC.
9620 <to_create_inferior>: Add comment.
9621 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9622 TARGET_DEFAULT_RETURN.
9623 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9624 (find_attach_target, find_run_target): Declare.
9625 (target_create_inferior): Remove.
9626 (target_has_execution_1): Update comment.
9627 (target_supports_non_stop): Remove.
9628 * target-delegates.c: Rebuild.
9629
91f83b02
PA
96302014-03-12 Pedro Alves <palves@redhat.com>
9631
9632 * inf-child.h: Update comment to not mention Unix.
9633
f1aea813
PA
96342014-03-12 Pedro Alves <palves@redhat.com>
9635
9636 * inf-child.c: Update top comment to not mention Unix. Add
9637 generic comment describing how this target is meant to be used.
9638 (inf_child_post_attach, inf_child_post_startup_inferior)
9639 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9640 Unix in comment.
9641
ee8e9165
PA
96422014-03-12 Pedro Alves <palves@redhat.com>
9643
9644 * nto-procfs.c: Include inf-child.h.
9645 (procfs_ops): Delete global.
9646 (procfs_can_run): Delete method.
9647 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9648 target pointer instead of referencing procfs_ops.
9649 (procfs_prepare_to_store): Delete.
9650 (init_procfs_ops): Delete function.
9651 (procfs_target): New function, based on init_procfs_ops, but
9652 inherit inf_child_target.
9653 (_initialize_procfs): Use procfs_target.
9654
51a9c8c5
PA
96552014-03-12 Pedro Alves <palves@redhat.com>
9656
9657 * windows-nat.c: Include inf-child.h.
9658 (windows_ops): Delete global.
9659 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9660 methods.
9661 (init_windows_ops): Delete function.
9662 (windows_target): New function, based on init_windows_ops, but
9663 inherit inf_child_target.
9664 (_initialize_windows_nat): Use windows_target. Install x86
9665 specific target methods here.
9666
c1966e26
DE
96672014-03-10 Doug Evans <xdje42@gmail.com>
9668
9669 * guile/guile.c (call_initialize_gdb_module): New function.
9670 (initialize_guile): Replace call to scm_init_guile with call to
9671 scm_with_guile.
9672
023db19c
JB
96732014-03-10 Joel Brobecker <brobecker@adacore.com>
9674
9675 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9676 in call to TYPE_CODE macro.
9677
5ec18f2b
JG
96782014-03-10 Jerome Guitton <guitton@adacore.com>
9679
8668be63
JB
9680 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9681 Resolve tagged types to full view.
5ec18f2b 9682
7d03f2eb
HZ
96832014-03-10 Hui Zhu <hui@codesourcery.com>
9684
9685 * target.h (target_insert_breakpoint): Remove "hardware" from its
9686 comments.
9687
c5164cbc
DE
96882014-03-07 Doug Evans <dje@google.com>
9689
9690 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9691
c4a3fee2
DE
96922014-03-07 Doug Evans <dje@google.com>
9693
9694 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9695 Remove unused local comp_dir_attr. Assert exactly one of
9696 stub_comp_unit_die, stub_comp_dir is non-NULL.
9697
3156469c
JB
96982014-03-07 Joel Brobecker <brobecker@adacore.com>
9699
9700 * target.h (complete_target_initialization, add_target):
9701 Add comment.
9702
c1a7b7c6
PA
97032014-03-07 Pedro Alves <palves@redhat.com>
9704
9705 * go32-nat.c: Include inf-child.h.
9706 (go32_ops): Delete global.
9707 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9708 Delete methods.
9709 (go32_create_inferior): Push the passed in target pointer instead
9710 of referencing go32_ops.
9711 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9712 (go32_target): New function, based on init_go32_ops, but inherit
9713 inf_child_target.
9714 (_initialize_go32_nat): Use go32_target. Move parts of
9715 init_go32_ops here.
9716
d3c1a85f
JB
97172014-03-06 Joel Brobecker <brobecker@adacore.com>
9718
9719 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9720 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9721 SYMBOL_VALUE_ADDRESS.
9722 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9723
5fa1d40e
YQ
97242014-03-06 Yao Qi <yao@codesourcery.com>
9725
9726 * breakpoint.c (get_tracepoint_by_number): Remove argument
9727 optional_p. All callers updated. Adjust comments. Update
9728 output message.
9729 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9730
0c13193f
YQ
97312014-03-06 Yao Qi <yao@codesourcery.com>
9732
9733 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9734 early if get_number returns zero. Use 'p' instead of 'args'.
9735
2217da06
YQ
97362014-03-06 Yao Qi <yao@codesourcery.com>
9737
9738 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9739 message.
9740
cc3da688
YQ
97412014-03-06 Yao Qi <yao@codesourcery.com>
9742
9743 PR breakpoints/16508
9744 * tracepoint.c (check_trace_running): New function.
9745 (trace_find_command): Move code to check_trace_running and
9746 call check_trace_running.
9747 (trace_find_pc_command): Likewise.
9748 (trace_find_tracepoint_command): Likewise.
9749 (trace_find_line_command): Likewise.
9750 (trace_find_range_command): Likewise.
9751 * tracepoint.h (check_trace_running): Likewise.
9752 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9753
6a5f844b
YQ
97542014-03-06 Yao Qi <yao@codesourcery.com>
9755
9756 * target.h (struct target_ops) <to_traceframe_info>: Use
9757 TARGET_DEFAULT_NORETURN (tcomplain ()).
9758 * target-delegates.c: Regenerated.
9759
0f26cec1
PA
97602014-03-05 Pedro Alves <palves@redhat.com>
9761
9762 PR gdb/16575
9763 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9764 void. Update comment.
9765 (dcache_xfer_memory): Delete.
9766 (dcache_read_memory_partial): New, based on the read bits of
9767 dcache_xfer_memory.
9768 (dcache_update): Add status parameter. Use ULONGEST for len, and
9769 adjust. Discard cache lines if the reason for the update was
9770 error.
9771 * dcache.h (dcache_xfer_memory): Delete declaration.
9772 (dcache_read_memory_partial): New declaration.
9773 (dcache_update): Update prototype.
9774 * target.c (raw_memory_xfer_partial): Update the dcache here.
9775 (memory_xfer_partial_1): Don't handle dcache writes here.
9776
b2b255bd
MF
97772014-03-05 Mike Frysinger <vapier@gentoo.org>
9778
9779 * remote-sim.c (gdbsim_load): Add const to prog.
9780
5d9cf8a4
TT
97812014-03-03 Tom Tromey <tromey@redhat.com>
9782
9783 * elfread.c (probe_key): Change to bfd_data.
9784 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9785 now per-BFD, not per-objfile.
9786 * stap-probe.c (stap_probe_destroy): Update comment.
9787 (handle_stap_probe): Allocate on the per-BFD obstack.
9788
729662a5
TT
97892014-03-03 Tom Tromey <tromey@redhat.com>
9790
9791 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9792 * breakpoint.c (create_longjmp_master_breakpoint): Use
9793 get_probe_address.
9794 (add_location_to_breakpoint, bkpt_probe_insert_location)
9795 (bkpt_probe_remove_location): Update.
9796 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9797 * elfread.c (elf_symfile_relocate_probe): Remove.
9798 (elf_probe_fns): Update.
9799 (insert_exception_resume_breakpoint): Change type of "probe"
9800 parameter to bound_probe.
9801 (check_exception_resume): Update.
9802 * objfiles.c (objfile_relocate1): Don't relocate probes.
9803 * probe.c (bound_probe_s): New typedef.
9804 (parse_probes): Use get_probe_address. Set sal's objfile.
9805 (find_probe_by_pc): Return a bound_probe.
9806 (collect_probes): Return a VEC(bound_probe_s).
9807 (compare_probes): Update.
9808 (gen_ui_out_table_header_info): Change type of "probes"
9809 parameter. Update.
9810 (info_probes_for_ops): Update.
9811 (get_probe_address): New function.
9812 (probe_safe_evaluate_at_pc): Update.
9813 * probe.h (struct probe_ops) <get_probe_address>: New field.
9814 <set_semaphore, clear_semaphore>: Add objfile parameter.
9815 (struct probe) <objfile>: Remove field.
9816 <arch>: New field.
9817 <address>: Update comment.
9818 (struct bound_probe): New.
9819 (find_probe_by_pc): Return a bound_probe.
9820 (get_probe_address): Declare.
9821 * solib-svr4.c (struct probe_and_action) <address>: New field.
9822 (hash_probe_and_action, equal_probe_and_action): Update.
9823 (register_solib_event_probe): Add address parameter.
9824 (solib_event_probe_at): Update.
9825 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9826 get_probe_address.
9827 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9828 (stap_get_probe_address): New function.
9829 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9830 (compile_probe_arg): Update.
9831 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9832 address.
9833 (handle_stap_probe): Don't relocate the probe.
9834 (stap_relocate): Remove.
9835 (stap_gen_info_probes_table_values): Update.
9836 (stap_probe_ops): Remove stap_relocate.
9837 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9838 (debug_sym_probe_fns): Update.
9839 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9840 * symtab.c (init_sal): Use memset.
9841 * symtab.h (struct symtab_and_line) <objfile>: New field.
9842 * tracepoint.c (start_tracing, stop_tracing): Update.
9843
ff887920
TT
98442014-03-03 Tom Tromey <tromey@redhat.com>
9845
9846 * probe.h (parse_probes, find_probe_by_pc)
9847 (find_probes_in_objfile): Fix comments.
9848
f0407826
DE
98492014-03-02 Doug Evans <xdje42@gmail.com>
9850
9851 * infrun.c (handle_signal_stop): Replace test for
9852 TARGET_WAITKIND_STOPPED with an assert.
9853
35e6a711
DE
98542014-03-02 Doug Evans <xdje42@gmail.com>
9855
9856 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9857
667f9d0b
DE
98582014-03-02 Doug Evans <xdje42@gmail.com>
9859
9860 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9861
dc92ace0
MK
98622014-03-01 Mark Kettenis <kettenis@gnu.org>
9863
9864 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9865
a900370f
MK
98662014-03-01 Mark Kettenis <kettenis@gnu.org>
9867
9868 * i386obsd-nat.c: Include "obsd-nat.h".
9869 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9870 add_target.
9871 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9872
b72a7981
MK
98732014-03-01 Mark Kettenis <kettenis@gnu.org>
9874
9875 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9876
96c70aba
MK
98772014-03-01 Mark Kettenis <kettenis@gnu.org>
9878
9879 * mips64obsd-nat.c: Include "obsd-nath".
9880 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9881 add_target
9882 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9883
874a80af
MK
98842014-03-01 Mark Kettenis <kettenis@gnu.org>
9885
8fd408f1
MK
9886 * amd64obsd-nat.c: Include "obsd-nat,h.
9887 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9888 add_target.
874a80af
MK
9889 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9890
9cf95373
SC
98912014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9892
9893 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9894 (find_overload_match): Update call to find_oload_champ.
9895 (find_oload_champ_namespace_loop): Likewise
9896
863e4da4
MK
98972014-02-28 Mark Kettenis <kettenis@gnu.org>
9898
025cac40
MK
9899 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9900
1ed586ce
MK
9901 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9902 * config/sparc/obsd64.mh: New file.
9903 * sparc64obsd-nat.c: New file.
9904
863e4da4
MK
9905 * obsd-nat.h: New file.
9906 * obsd-nat.c: New file.
9907 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9908 (ALLDEPFILES): Add obsd-nat.c.
9909
89de4da4
TT
99102014-02-28 Tom Tromey <tromey@redhat.com>
9911
9912 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9913 * cli-out.h (cli_ui_out_impl): Now const.
9914 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9915 * ui-out.c (struct ui_out) <impl>: Now const.
9916 (default_ui_out_impl): Now const.
9917 (ui_out_new): Make 'impl' parameter const.
9918 * ui-out.h (ui_out_new): Update.
9919
c725e7b6
MK
99202014-02-27 Mark Kettenis <kettenis@gnu.org>
9921
9922 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9923
670b46b3
MK
99242014-02-27 Mark Kettenis <kettenis@gnu.org>
9925
9926 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9927
c91550fc
JK
99282014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9929
9930 Additional PR 8882 fix.
9931 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9932
2fa0369e
PA
99332014-02-27 Pedro Alves <palves@redhat.com>
9934
9935 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9936 isn't set.
9937
d632a097
PA
99382014-02-27 Pedro Alves <palves@redhat.com>
9939
9940 PR 12702
9941 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9942 * nat/linux-waitpid.c: Include string.h.
9943 (status_to_str): Moved here and made extern.
9944 * nat/linux-waitpid.h (status_to_str): New declaration.
9945
2ebd5a35
HZ
99462014-02-27 Hui Zhu <hui@codesourcery.com>
9947
9948 PR 12702
9949 * infrun.c (ptid_match): Move ...
9950 * common/ptid.c (ptid_match): ... here.
9951 * inferior.h (ptid_match): Move ...
9952 * common/ptid.h (ptid_match): ... here.
9953
3cdd631f
MK
99542014-02-27 Mark Kettenis <kettenis@gnu.org>
9955
9956 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9957 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9958 gdb_target_obs.
9959
bee30a64
MK
99602014-02-27 Mark Kettenis <kettenis@gnu.org>
9961
9962 * obsd-tdep.c (obsd_auxv_parse): New function.
9963 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9964
9965 * gdbarch.sh (auxv_parse): New.
9966 * gdbarch.h: Regenerated.
9967 * gdbarch.c: Regenerated.
9968 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9969
7a5a839f
LC
99702014-02-26 Ludovic Courtès <ludo@gnu.org>
9971
9972 * guile/scm-value.c (gdbscm_history_append_x): New function.
9973 (value_functions): Add it.
9974
31aa7e4e
JB
99752014-02-27 Joel Brobecker <brobecker@adacore.com>
9976
9977 * dwarf2read.c (attr_value_as_address): New function.
9978 (dwarf2_find_base_address, read_call_site_scope): Use
9979 attr_value_as_address in place of DW_ADDR.
9980 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9981 the low and high addresses. Slight rework of the handling
9982 of the high pc being a constant form, and limit it to
9983 DWARF verson 4 or higher.
9984 (dwarf2_record_block_ranges): Likewise.
9985 (read_partial_die): Likewise.
9986 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9987
9b333ba3
TT
99882014-02-26 Tom Tromey <tromey@redhat.com>
9989
9990 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9991
5f6cac40
TT
99922014-02-26 Tom Tromey <tromey@redhat.com>
9993
9994 * elfread.c (elf_read_minimal_symbols): Return early if
9995 minimal symbols have already been read. Add "ei" parameter.
9996 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9997 * minsyms.c (prim_record_minimal_symbol_full): Update.
9998 * objfiles.h (struct objstats) <n_minsyms>: Move...
9999 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10000 * symmisc.c (print_objfile_statistics): Update.
10001
2750ef27
TT
100022014-02-26 Tom Tromey <tromey@redhat.com>
10003
10004 * elfread.c (elf_read_minimal_symbols): New function, from
10005 elf_symfile_read.
10006 (elf_symfile_read): Call it.
10007
34643a32
TT
100082014-02-26 Tom Tromey <tromey@redhat.com>
10009
10010 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10011 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10012 (lookup_minimal_symbol_solib_trampoline)
10013 (lookup_minimal_symbol_by_pc_section_1)
10014 (lookup_minimal_symbol_and_objfile): Update.
10015 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10016 Don't allocate a minimal symbol if minsyms have already been read.
10017 (build_minimal_symbol_hash_tables): Update.
10018 (install_minimal_symbols): Do nothing if minsyms already read.
10019 Use the per-BFD obstack.
10020 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10021 * objfiles.c (allocate_objfile): Call
10022 terminate_minimal_symbol_table later.
10023 (have_minimal_symbols): Update.
10024 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10025 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10026 Move from struct objfile.
10027 <minsyms_read>: New field.
10028 (struct objfile) <msymbols, minimal_symbol_count,
10029 msymbol_hash, msymbol_demangled_hash>: Move.
10030 (ALL_OBJFILE_MSYMBOLS): Update.
10031 * symfile.c (read_symbols): Set minsyms_read.
10032 (reread_symbols): Update.
10033 * symmisc.c (dump_objfile, dump_msymbols): Update.
10034
2273f0ac
TT
100352014-02-26 Tom Tromey <tromey@redhat.com>
10036
10037 * minsyms.c (msymbols_sort): Remove.
10038 * minsyms.h (msymbols_sort): Remove.
10039 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10040 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10041 * elfread.c (elf_symtab_read): Don't add section offsets.
10042 * xcoffread.c (record_minimal_symbol): Don't add section offset
10043 to minimal symbol address.
10044 * somread.c (text_offset, data_offset): Remove.
10045 (som_symtab_read): Don't add section offsets to minimal symbol
10046 addresses.
10047 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10048 Don't add section offsets to minimal symbols.
10049 * coffread.c (coff_symtab_read): Don't add section offsets
10050 to minimal symbol addresses.
10051 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10052 to minimal symbol addresses.
10053 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10054 section offset to minimal symbol addresses.
10055 * mdebugread.c (parse_partial_symbols): Don't add section
10056 offset to minimal symbol addresses.
10057 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10058 offset to minimal symbol addresses.
10059
77e371c0
TT
100602014-02-26 Tom Tromey <tromey@redhat.com>
10061
10062 * ada-lang.c (ada_main_name): Update.
10063 (ada_add_standard_exceptions): Update.
10064 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10065 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10066 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10067 * auxv.c (ld_so_xfer_auxv): Update.
10068 * avr-tdep.c (avr_scan_prologue): Update.
10069 * ax-gdb.c (gen_var_ref): Update.
10070 * blockframe.c (get_pc_function_start)
10071 (find_pc_partial_function_gnu_ifunc): Update.
10072 * breakpoint.c (create_overlay_event_breakpoint)
10073 (create_longjmp_master_breakpoint)
10074 (create_std_terminate_master_breakpoint)
10075 (create_exception_master_breakpoint): Update.
10076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10077 * c-valprint.c (c_val_print): Update.
10078 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10079 * common/agent.c (agent_look_up_symbols): Update.
10080 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10081 * dwarf2loc.c (call_site_to_target_addr): Update.
10082 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10083 * elfread.c (elf_gnu_ifunc_record_cache)
10084 (elf_gnu_ifunc_resolve_by_got): Update.
10085 * findvar.c (default_read_var_value): Update.
10086 * frame.c (inside_main_func): Update.
10087 * frv-tdep.c (frv_frame_this_id): Update.
10088 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10089 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10090 Update.
10091 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10092 (hppa_hpux_find_dummy_bpaddr): Update.
10093 * hppa-tdep.c (hppa_symbol_address): Update.
10094 * infcmd.c (until_next_command): Update.
10095 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10096 Update.
10097 * linespec.c (minsym_found, add_minsym): Update.
10098 * linux-nat.c (get_signo): Update.
10099 * linux-thread-db.c (inferior_has_bug): Update.
10100 * m32c-tdep.c (m32c_return_value)
10101 (m32c_m16c_address_to_pointer): Update.
10102 * m32r-tdep.c (m32r_frame_this_id): Update.
10103 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10104 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10105 * maint.c (maintenance_translate_address): Update.
10106 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10107 (frob_address): New function.
10108 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10109 frob_address. Rename parameter to "pc_in".
10110 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10111 addresses.
10112 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10113 Update.
10114 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10115 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10116 * objc-lang.c (find_objc_msgsend): Update.
10117 * objfiles.c (objfile_relocate1): Update.
10118 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10119 * p-valprint.c (pascal_val_print): Update.
10120 * parse.c (write_exp_msymbol): Update.
10121 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10122 (ppc_elfv2_skip_entrypoint): Update.
10123 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10124 * printcmd.c (build_address_symbolic, msym_info)
10125 (address_info): Update.
10126 * proc-service.c (ps_pglobal_lookup): Update.
10127 * psymtab.c (find_pc_sect_psymtab_closer)
10128 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10129 Change msymbol parameter to bound_minimal_symbol.
10130 * ravenscar-thread.c (get_running_thread_id): Update.
10131 * remote.c (remote_check_symbols): Update.
10132 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10133 address.
10134 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10135 * solib-dsbt.c (lm_base): Update.
10136 * solib-frv.c (lm_base, main_got): Update.
10137 * solib-irix.c (locate_base): Update.
10138 * solib-som.c (som_solib_create_inferior_hook)
10139 (link_map_start): Update.
10140 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10141 * solib-svr4.c (elf_locate_base, enable_break): Update.
10142 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10143 (flush_ea_cache): Update.
10144 * stabsread.c (define_symbol, scan_file_globals): Update.
10145 * stack.c (find_frame_funname): Update.
10146 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10147 (debug_qf_find_pc_sect_symtab): Update.
10148 * symfile.c (simple_read_overlay_table)
10149 (simple_overlay_update): Update.
10150 * symfile.h (struct quick_symbol_functions)
10151 <find_pc_sect_symtab>: Change type of msymbol to
10152 bound_minimal_symbol.
10153 * symmisc.c (dump_msymbols): Update.
10154 * symtab.c (find_pc_sect_symtab_via_partial)
10155 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10156 (search_symbols, print_msymbol_info): Update.
10157 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10158 (MSYMBOL_VALUE_ADDRESS): Redefine.
10159 (BMSYMBOL_VALUE_ADDRESS): New macro.
10160 * tracepoint.c (scope_info): Update.
10161 * tui/tui-disasm.c (tui_find_disassembly_address)
10162 (tui_get_begin_asm_address): Update.
10163 * valops.c (find_function_in_inferior): Update.
10164 * value.c (value_static_field, value_fn_field): Update.
10165
3b7344d5
TT
101662014-02-26 Tom Tromey <tromey@redhat.com>
10167
10168 * ada-lang.c (ada_update_initial_language): Update.
10169 (ada_main_name, ada_has_this_exception_support): Update.
10170 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10171 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10172 * arm-tdep.c (arm_skip_stub): Update.
10173 * auxv.c (ld_so_xfer_auxv): Update.
10174 * avr-tdep.c (avr_scan_prologue): Update.
10175 * ax-gdb.c (gen_var_ref): Update.
10176 * breakpoint.c (struct breakpoint_objfile_data)
10177 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10178 type to bound_minimal_symbol.
10179 (create_overlay_event_breakpoint)
10180 (create_longjmp_master_breakpoint)
10181 (create_std_terminate_master_breakpoint)
10182 (create_exception_master_breakpoint): Update.
10183 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10184 * c-exp.y (classify_name): Update.
10185 * coffread.c (coff_symfile_read): Update.
10186 * common/agent.c (agent_look_up_symbols): Update.
10187 * d-lang.c (d_main_name): Update.
10188 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10189 * dec-thread.c (enable_dec_thread): Update.
10190 * dwarf2loc.c (call_site_to_target_addr): Update.
10191 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10192 * eval.c (evaluate_subexp_standard): Update.
10193 * findvar.c (struct minsym_lookup_data) <result>: Change type
10194 to bound_minimal_symbol.
10195 <objfile>: Remove.
10196 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10197 * frame.c (inside_main_func): Update.
10198 * frv-tdep.c (frv_frame_this_id): Update.
10199 * gcore.c (call_target_sbrk): Update.
10200 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10201 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10202 Update.
10203 * go-lang.c (go_main_name): Update.
10204 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10205 (hppa_hpux_find_import_stub_for_addr): Update.
10206 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10207 Update. Change return type.
10208 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10209 type.
10210 * jit.c (jit_breakpoint_re_set_internal): Update.
10211 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10212 Update.
10213 * linux-nat.c (get_signo): Update.
10214 * linux-thread-db.c (inferior_has_bug): Update
10215 * m32c-tdep.c (m32c_return_value)
10216 (m32c_m16c_address_to_pointer): Update.
10217 * m32r-tdep.c (m32r_frame_this_id): Update.
10218 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10219 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10220 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10221 lookup_minimal_symbol. Change return type.
10222 (lookup_minimal_symbol): Remove.
10223 (lookup_bound_minimal_symbol): Update.
10224 (lookup_minimal_symbol_text): Change return type.
10225 (lookup_minimal_symbol_solib_trampoline): Change return type.
10226 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10227 (lookup_minimal_symbol_solib_trampoline): Change return type.
10228 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10229 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10230 (value_nsstring, find_imps): Update.
10231 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10232 * p-lang.c (pascal_main_name): Update.
10233 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10234 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10235 * proc-service.c (ps_pglobal_lookup): Update.
10236 * ravenscar-thread.c (get_running_thread_msymbol): Change
10237 return type.
10238 (has_ravenscar_runtime, get_running_thread_id): Update.
10239 * remote.c (remote_check_symbols): Update.
10240 * sol-thread.c (ps_pglobal_lookup): Update.
10241 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10242 * solib-dsbt.c (lm_base): Update.
10243 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10244 Update.
10245 * solib-irix.c (locate_base): Update.
10246 * solib-som.c (som_solib_create_inferior_hook)
10247 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10248 Update.
10249 * solib-spu.c (spu_enable_break): Update.
10250 * solib-svr4.c (elf_locate_base, enable_break): Update.
10251 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10252 (flush_ea_cache): Update.
10253 * stabsread.c (define_symbol): Update.
10254 * symfile.c (simple_read_overlay_table): Update.
10255 * symtab.c (find_pc_sect_line): Update.
10256 * tracepoint.c (scope_info): Update.
10257 * tui-disasm.c (tui_get_begin_asm_address): Update.
10258 * value.c (value_static_field): Update.
10259
40c1a007
TT
102602014-02-26 Tom Tromey <tromey@redhat.com>
10261
10262 * minsyms.c (prim_record_minimal_symbol_full): Use
10263 SET_MSYMBOL_VALUE_ADDRESS.
10264 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10265 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10266 SET_MSYMBOL_VALUE_ADDRESS.
10267 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10268 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10269
efd66ac6
TT
102702014-02-26 Tom Tromey <tromey@redhat.com>
10271
10272 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10273 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10274 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10275 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10276 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10277 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10278 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10279 * ada-lang.c (ada_main_name): Update.
10280 (ada_lookup_simple_minsym): Update.
10281 (ada_make_symbol_completion_list): Update.
10282 (ada_add_standard_exceptions): Update.
10283 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10284 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10285 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10286 * arm-tdep.c (skip_prologue_function): Update.
10287 (arm_skip_stack_protector, arm_skip_stub): Update.
10288 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10289 (arm_wince_skip_main_prologue): Update.
10290 * auxv.c (ld_so_xfer_auxv): Update.
10291 * avr-tdep.c (avr_scan_prologue): Update.
10292 * ax-gdb.c (gen_var_ref): Update.
10293 * block.c (call_site_for_pc): Update.
10294 * blockframe.c (get_pc_function_start): Update.
10295 (find_pc_partial_function_gnu_ifunc): Update.
10296 * breakpoint.c (create_overlay_event_breakpoint): Update.
10297 (create_longjmp_master_breakpoint): Update.
10298 (create_std_terminate_master_breakpoint): Update.
10299 (create_exception_master_breakpoint): Update.
10300 (resolve_sal_pc): Update.
10301 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10302 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10303 Update.
10304 * c-valprint.c (c_val_print): Update.
10305 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10306 * coffread.c (coff_symfile_read): Update.
10307 * common/agent.c (agent_look_up_symbols): Update.
10308 * dbxread.c (find_stab_function_addr): Update.
10309 (end_psymtab): Update.
10310 * dwarf2loc.c (call_site_to_target_addr): Update.
10311 (func_verify_no_selftailcall): Update.
10312 (tailcall_dump): Update.
10313 (call_site_find_chain_1): Update.
10314 (dwarf_expr_reg_to_entry_parameter): Update.
10315 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10316 (elf_gnu_ifunc_resolve_by_got): Update.
10317 * f-valprint.c (info_common_command): Update.
10318 * findvar.c (read_var_value): Update.
10319 * frame.c (get_prev_frame_1): Update.
10320 (inside_main_func): Update.
10321 * frv-tdep.c (frv_skip_main_prologue): Update.
10322 (frv_frame_this_id): Update.
10323 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10324 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10325 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10326 (gnuv3_skip_trampoline): Update.
10327 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10328 (hppa64_hpux_in_solib_call_trampoline): Update.
10329 (hppa_hpux_skip_trampoline_code): Update.
10330 (hppa64_hpux_search_dummy_call_sequence): Update.
10331 (hppa_hpux_find_import_stub_for_addr): Update.
10332 (hppa_hpux_find_dummy_bpaddr): Update.
10333 * hppa-tdep.c (hppa_symbol_address)
10334 (hppa_lookup_stub_minimal_symbol): Update.
10335 * i386-tdep.c (i386_skip_main_prologue): Update.
10336 (i386_pe_skip_trampoline_code): Update.
10337 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10338 * infcall.c (get_function_name): Update.
10339 * infcmd.c (until_next_command): Update.
10340 * jit.c (jit_breakpoint_re_set_internal): Update.
10341 (jit_inferior_init): Update.
10342 * linespec.c (minsym_found): Update.
10343 (add_minsym): Update.
10344 * linux-fork.c (info_checkpoints_command): Update.
10345 * linux-nat.c (get_signo): Update.
10346 * linux-thread-db.c (inferior_has_bug): Update.
10347 * m32c-tdep.c (m32c_return_value): Update.
10348 (m32c_m16c_address_to_pointer): Update.
10349 (m32c_m16c_pointer_to_address): Update.
10350 * m32r-tdep.c (m32r_frame_this_id): Update.
10351 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10352 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10353 * maint.c (maintenance_translate_address): Update.
10354 * minsyms.c (add_minsym_to_hash_table): Update.
10355 (add_minsym_to_demangled_hash_table): Update.
10356 (msymbol_objfile): Update.
10357 (lookup_minimal_symbol): Update.
10358 (iterate_over_minimal_symbols): Update.
10359 (lookup_minimal_symbol_text): Update.
10360 (lookup_minimal_symbol_by_pc_name): Update.
10361 (lookup_minimal_symbol_solib_trampoline): Update.
10362 (lookup_minimal_symbol_by_pc_section_1): Update.
10363 (lookup_minimal_symbol_and_objfile): Update.
10364 (prim_record_minimal_symbol_full): Update.
10365 (compare_minimal_symbols): Update.
10366 (compact_minimal_symbols): Update.
10367 (build_minimal_symbol_hash_tables): Update.
10368 (install_minimal_symbols): Update.
10369 (terminate_minimal_symbol_table): Update.
10370 (find_solib_trampoline_target): Update.
10371 (minimal_symbol_upper_bound): Update.
10372 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10373 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10374 (mips_skip_pic_trampoline_code): Update.
10375 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10376 * objc-lang.c (selectors_info): Update.
10377 (classes_info): Update.
10378 (find_methods): Update.
10379 (find_imps): Update.
10380 (find_objc_msgsend): Update.
10381 * objfiles.c (objfile_relocate1): Update.
10382 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10383 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10384 * p-valprint.c (pascal_val_print): Update.
10385 * parse.c (write_exp_msymbol): Update.
10386 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10387 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10388 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10389 * printcmd.c (build_address_symbolic): Update.
10390 (sym_info): Update.
10391 (address_info): Update.
10392 * proc-service.c (ps_pglobal_lookup): Update.
10393 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10394 (find_pc_sect_psymtab): Update.
10395 * python/py-framefilter.c (py_print_frame): Update.
10396 * ravenscar-thread.c (get_running_thread_id): Update.
10397 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10398 Update.
10399 * remote.c (remote_check_symbols): Update.
10400 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10401 (rs6000_skip_trampoline_code): Update.
10402 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10403 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10404 * solib-dsbt.c (lm_base): Update.
10405 * solib-frv.c (lm_base): Update.
10406 (main_got): Update.
10407 * solib-irix.c (locate_base): Update.
10408 * solib-som.c (som_solib_create_inferior_hook): Update.
10409 (som_solib_desire_dynamic_linker_symbols): Update.
10410 (link_map_start): Update.
10411 * solib-spu.c (spu_enable_break): Update.
10412 (ocl_enable_break): Update.
10413 * solib-svr4.c (elf_locate_base): Update.
10414 (enable_break): Update.
10415 * spu-tdep.c (spu_get_overlay_table): Update.
10416 (spu_catch_start): Update.
10417 (flush_ea_cache): Update.
10418 * stabsread.c (define_symbol): Update.
10419 (scan_file_globals): Update.
10420 * stack.c (find_frame_funname): Update.
10421 (frame_info): Update.
10422 * symfile.c (simple_read_overlay_table): Update.
10423 (simple_overlay_update): Update.
10424 * symmisc.c (dump_msymbols): Update.
10425 * symtab.c (fixup_section): Update.
10426 (find_pc_sect_line): Update.
10427 (skip_prologue_sal): Update.
10428 (search_symbols): Update.
10429 (print_msymbol_info): Update.
10430 (rbreak_command): Update.
10431 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10432 (completion_list_objc_symbol): Update.
10433 (default_make_symbol_completion_list_break_on): Update.
10434 * tracepoint.c (scope_info): Update.
10435 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10436 (tui_get_begin_asm_address): Update.
10437 * valops.c (find_function_in_inferior): Update.
10438 * value.c (value_static_field): Update.
10439 (value_fn_field): Update.
10440
50e65b17
TT
104412014-02-26 Tom Tromey <tromey@redhat.com>
10442
10443 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10444 bound minimal symbols. Move code that knows about minsym
10445 table layout...
10446 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10447 function.
10448 * minsyms.h (minimal_symbol_upper_bound): Declare.
10449 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10450 minimal_symbol_upper_bound.
10451
1b588015
JB
104522014-02-27 Joel Brobecker <brobecker@adacore.com>
10453
10454 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10455 Use the type's name if its basic type does not have a tag.
10456
dbb9c2b1
JB
104572014-02-27 Joel Brobecker <brobecker@adacore.com>
10458
10459 * dwarf2read.c (read_subrange_type): Add comment.
10460
55426c9d
JB
104612014-02-27 Joel Brobecker <brobecker@adacore.com>
10462
10463 * dwarf2read.c (update_enumeration_type_from_children): New
10464 function, mostly extracted from process_structure_scope.
10465 (read_enumeration_type): Call update_enumeration_type_from_children.
10466 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10467 and flag_flag_enum fields.
10468
f2fce0ca
PA
104692014-02-26 Pedro Alves <palves@redhat.com>
10470
10471 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10472 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10473 to_xfer_partial method.
10474
7a44e40e
PA
104752014-02-26 Pedro Alves <palves@redhat.com>
10476
10477 * target.c (complete_target_initialization): Don't install
10478 default_xfer_partial as to_xfer_partial hook.
10479 (nomemory): Delete.
10480 (update_current_target): Don't INHERIT nor de_fault
10481 deprecated_xfer_memory. Delete de_fault macro.
10482 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10483 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10484 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10485 field.
10486
bd265cd0
PA
104872014-02-26 Pedro Alves <palves@redhat.com>
10488
10489 * go32-nat.c (my_write_child): New function.
10490 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10491 (go32_xfer_partial): New function.
10492 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10493 Instead install a to_xfer_partial hook.
10494
9d46c4e5
PA
104952014-02-26 Pedro Alves <palves@redhat.com>
10496
10497 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10498 to_xfer_partial helper. Rewrite.
10499 (procfs_xfer_partial): New function.
10500 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10501 Install a to_xfer_partial hook.
10502
a1583b1f
PA
105032014-02-26 Pedro Alves <palves@redhat.com>
10504
10505 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10506 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10507 (m32r_xfer_partial): New function.
10508 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10509 Install a to_xfer_partial hook.
10510
6df1b29f
PA
105112014-02-26 Pedro Alves <palves@redhat.com>
10512
10513 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10514 helper.
10515 (mips_xfer_partial): New function.
10516 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10517 hook. Install a to_xfer_partial hook.
10518
dc53a7ad
JB
105192014-02-26 Joel Brobecker <brobecker@adacore.com>
10520
10521 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10522 * gdbtypes.c (create_array_type_with_stride): New function,
10523 renaming create_array_type, but with an added parameter
10524 called "bit_stride".
10525 (create_array_type): Re-implement using
10526 create_array_type_with_stride.
10527 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10528 and DW_AT_bit_stride attributes.
10529
12ab52e9
PA
105302014-02-26 Pedro Alves <palves@redhat.com>
10531
10532 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10533 task-specific breakpoints.
10534
d16461ae
PA
105352014-02-25 Pedro Alves <palves@redhat.com>
10536
10537 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10538 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10539
a8b16220
SS
105402014-02-25 Stan Shebs <stan@codesourcery.com>
10541
10542 * defs.h: Annotate comments for Doxygen.
10543
b9e795ee
TT
105442014-02-25 Tom Tromey <tromey@redhat.com>
10545
10546 * target.h (target_ignore): Don't declare.
10547 * target.c (target_ignore): Remove.
10548
849c862e
JK
105492014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 PR gdb/16626
10552 * auto-load.c (auto_load_objfile_script_1): Change filename to
10553 debugfile.
10554
475109d8
JB
105552014-02-25 Joel Brobecker <brobecker@adacore.com>
10556
10557 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10558 documentation. Adjust prototype to match the target_ops
10559 to_xfer_partial method. Adjust implementation accordingly.
10560
e186c3bd
HZ
105612014-02-25 Hui Zhu <hui@codesourcery.com>
10562
10563 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10564 to_traceframe_info.
10565
6d451942
KB
105662014-02-25 Kevin Buettner <kevinb@redhat.com>
10567
041ab8b4 10568 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10569 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10570 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10571 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10572 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10573 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10574 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10575 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10576 New constants.
10577 (rl78_register_type): Use a data pointer type for SP and
10578 new pseudo registers mentioned above. Use a 16 bit integer
10579 type for all other register pairs.
10580 (rl78_register_name, rl78_g10_register_name): Update for
10581 new pseudo registers.
10582 (rl78_pseudo_register_read): Likewise.
10583 (rl78_pseudo_register_write): Likewise.
10584 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10585 to the newly added pseudo registers.
10586
eddf0bae
DE
105872014-02-24 Doug Evans <dje@google.com>
10588
10589 * value.c (record_latest_value): Fix comment.
10590 * printcmd.c (print_command_1): Remove code to handle -1 return from
10591 record_latest_value.
10592
e96027e0
PA
105932014-02-24 Pedro Alves <palves@redhat.com>
10594
10595 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10596 deprecated_xfer_memory hook.
10597 (procfs_xfer_partial): Call procfs_xfer_memory instead
10598 of the deprecated_xfer_memory target hook.
10599 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10600 helper.
10601
0837c976
YZ
106022014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10603
10604 * windows-nat.c (windows_xfer_shared_libraries): Return
10605 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10606 requested object is TARGET_OBJECT_LIBRARIES.
10607
bc113b4e
YQ
106082014-02-24 Yao Qi <yao@codesourcery.com>
10609
10610 * target.h (enum target_xfer_status)
10611 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10612 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10613 explicitly. New.
10614 * corefile.c (memory_error_message): User updated.
10615 * exec.c (section_table_read_available_memory): Likewise.
10616 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10617 * target.c (target_xfer_status_to_string): Likewise.
10618 (raw_memory_xfer_partial): Likewise.
10619 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10620 * valops.c (read_value_memory): Likewise.
10621 * exec.h: Update comments.
10622
01cb8804
YQ
106232014-02-24 Yao Qi <yao@codesourcery.com>
10624
10625 * target.c (target_xfer_status_to_string): Rename argument err
10626 to status.
10627 * target.h (target_xfer_status_to_string): Update declaration.
10628 Replace target_xfer_error_to_string with
10629 target_xfer_status_to_string in comment.
10630
93063aa6
YQ
106312014-02-24 Yao Qi <yao@codesourcery.com>
10632
10633 * mips-linux-nat.c (super_close): Update its type.
10634 (mips_linux_close): Pass 'self' to super_close.
10635
5c328c05
YQ
106362014-02-24 Yao Qi <yao@codesourcery.com>
10637
10638 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10639 * corefile.c (read_memory): Adjusted.
10640 * target.c (target_write_with_progress): Adjusted.
10641
f73023dd
YQ
106422014-02-23 Yao Qi <yao@codesourcery.com>
10643
10644 Revert two patches:
10645
10646 2013-10-25 Yao Qi <yao@codesourcery.com>
10647
10648 * remote.c (remote_traceframe_info): Return early if
10649 traceframe is not selected.
10650
10651 2013-07-19 Yao Qi <yao@codesourcery.com>
10652
10653 * target.c (update_current_target): Change the default action
10654 of 'to_traceframe_info' from tcomplain to return_zero.
10655 * target.h (struct target_ops) <to_traceframe_info>: Add more
10656 comments.
10657
5a2eb0ef
YQ
106582014-02-23 Yao Qi <yao@codesourcery.com>
10659
10660 * valops.c (read_value_memory): Rewrite it. Call
10661 target_xfer_partial in a loop.
10662 * exec.h (section_table_available_memory): Remove declaration.
10663 Move comments to ...
10664 * exec.c (section_table_available_memory): ... here. Make it
10665 static.
10666
1ee79381
YQ
106672014-02-23 Yao Qi <yao@codesourcery.com>
10668
10669 * exec.c (section_table_read_available_memory): New function.
10670 * exec.h (section_table_read_available_memory): Declare.
10671 * ctf.c (ctf_xfer_partial): Call
10672 section_table_read_available_memory.
10673 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10674
1ca49d37
YQ
106752014-02-23 Yao Qi <yao@codesourcery.com>
10676
10677 * ctf.c (ctf_xfer_partial): Move code to ...
10678 * exec.c (exec_read_partial_read_only): ... it. New function.
10679 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10680 * tracefile.c: Include "exec.h".
10681 * exec.h (exec_read_partial_read_only): Declare.
10682
a283690e
YQ
106832014-02-23 Yao Qi <yao@codesourcery.com>
10684
10685 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10686 (tfile_has_memory): Remove.
10687 (init_tfile_ops): Don't set fields to_has_all_memory and
10688 to_has_memory of tfile_ops.
10689 * tracefile.c (tracefile_has_all_memory): New function.
10690 (tracefile_has_memory): New function.
10691 (init_tracefile_ops): Initialize fields to_has_all_memory and
10692 to_has_memory of 'ops'.
10693
12e03cd0
YQ
106942014-02-23 Yao Qi <yao@codesourcery.com>
10695
10696 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10697 (ctf_thread_alive, ctf_get_trace_status): Remove.
10698 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10699 init_tracefile_ops.
10700 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10701 (tfile_has_stack, tfile_has_registers): Remove.
10702 (tfile_thread_alive): Remove.
10703 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10704 init_tracefile_ops.
10705 * tracefile.c (tracefile_has_stack): New function.
10706 (tracefile_has_registers): New function.
10707 (tracefile_thread_alive): New function.
10708 (tracefile_get_trace_status): New function.
10709 (init_tracefile_ops): New function.
10710 * tracefile.h (init_tracefile_ops): Declare.
10711
11395323
YQ
107122014-02-23 Yao Qi <yao@codesourcery.com>
10713
10714 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10715 (O_LARGEFILE): Likewise.
10716 (tfile_ops): Likewise.
10717 (TRACE_HEADER_SIZE): Likewise.
10718 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10719 (cur_data_size): Likewise.
10720 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10721 (tfile_close, tfile_files_info): Likewise.
10722 (tfile_get_trace_status): Likewise.
10723 (tfile_get_tracepoint_status): Likewise.
10724 (tfile_get_traceframe_address): Likewise.
10725 (tfile_trace_find, match_blocktype): Likewise.
10726 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10727 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10728 (tfile_get_trace_state_variable_value): Likewise.
10729 (tfile_has_all_memory, tfile_has_memory): Likewise.
10730 (tfile_has_stack, tfile_has_registers): Likewise.
10731 (tfile_thread_alive, build_traceframe_info): Likewise.
10732 (tfile_traceframe_info, init_tfile_ops): Likewise.
10733 (_initialize_tracepoint): Don't call init_tfile_ops
10734 and add_target_with_completer.
10735 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10736 exec.h, completer.h and filenames.h.
10737 (_initialize_tracefile_tfile): New function.
10738
7951c4eb
YQ
107392014-02-23 Yao Qi <yao@codesourcery.com>
10740
10741 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10742 tracefile-tfile.o.
10743 (HFILES_NO_SRCDIR): Add tracefile.h.
10744 * ctf.c: Include "tracefile.h".
10745 * tracefile.h: New file.
10746 * tracefile.c: New file
10747 * tracefile-tfile.c: New file.
10748 * tracepoint.c: Include "tracefile.h".
10749 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10750 (stop_reason_names): Add const.
10751 (trace_file_writer_xfree): Move it to tracefile.c.
10752 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10753 (trace_save_ctf): Likewise.
10754 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10755 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10756 (tfile_write_header, tfile_write_regblock_type): Likewise.
10757 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10758 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10759 (tfile_write_raw_data, tfile_end): Likewise.
10760 (tfile_trace_file_writer_new): Likewise.
10761 (free_uploaded_tp): Make it extern.
10762 (free_uploaded_tsv): Make it extern.
10763 (_initialize_tracepoint): Move code to register command 'tsave'
10764 to tracefile.c.
10765 * tracepoint.h (stop_reason_names): Declare.
10766 (struct trace_frame_write_ops): Move it to tracefile.h.
10767 (struct trace_file_write_ops): Likewise.
10768 (struct trace_file_writer): Likewise.
10769 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10770
184cd072
JK
107712014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 PR gdb/16594
10774 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10775 process name.
10776 (get_cores_used_by_process): New parameter num_cores, use it.
10777 (linux_xfer_osdata_processes): Pass num_cores to it.
10778 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10779 process name.
10780
c63528fc
AK
107812014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10782
10783 * target.c (memory_xfer_partial): Fix length arg in call to
10784 breakpoint_xfer_memory.
10785
d7b30f67
SDJ
107862014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10787
10788 PR tdep/16397
10789 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10790 number comes after the + or - signs. Adjust length of register
10791 name to be extracted.
10792
8838afaf
TT
107932014-02-20 Tom Tromey <tromey@redhat.com>
10794
10795 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10796 (ada_varobj_ops): Mark "extern".
10797
05227d14
TT
107982014-02-20 Tom Tromey <tromey@redhat.com>
10799
10800 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10801
1254eefc
DE
108022014-02-20 Doug Evans <xdje42@gmail.com>
10803
10804 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10805 All callers updated.
10806 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10807 All callers updated.
10808 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10809 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10810
adde2bff
DE
108112014-02-20 lin zuojian <manjian2006@gmail.com>
10812 Joel Brobecker <brobecker@adacore.com>
10813 Doug Evans <xdje42@gmail.com>
10814
10815 PR symtab/16581
10816 * dwarf2read.c (struct die_info): New member in_process.
10817 (reset_die_in_process): New function.
10818 (process_die): Set it at the start, reset when returning.
10819 (inherit_abstract_dies): Only call process_die if origin_child_die
10820 not already being processed.
10821
3be75f87
JB
108222014-02-20 Joel Brobecker <brobecker@adacore.com>
10823
10824 * windows-nat.c (handle_unload_dll): Add function documentation.
10825 (do_initial_windows_stuff): Add comment explaining why we wait
10826 until after inferior initialization has finished before
10827 processing all DLLs.
10828
47f7ffdb
JB
108292014-02-20 Joel Brobecker <brobecker@adacore.com>
10830
10831 * windows-nat.c (get_module_name): Delete.
10832 (windows_get_exec_module_filename): New function, mostly
10833 inspired from get_module_name.
10834 (windows_pid_to_exec_file): Replace call to get_module_name
10835 by call to windows_get_exec_module_filename.
10836
1cd9feab
JB
108372014-02-20 Joel Brobecker <brobecker@adacore.com>
10838
10839 * windows-nat.c (handle_load_dll): Rewrite this function's
10840 introductory comment. Remove code using get_module_name
10841 to get the DLL's name.
10842
ea39ad35
JB
108432014-02-20 Joel Brobecker <brobecker@adacore.com>
10844
10845 * windows-nat.c (get_windows_debug_event): Ignore
10846 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10847 if windows_initialization_done == 0.
10848 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10849 Adjust implementation to always load all DLLs.
10850 (do_initial_windows_stuff): Replace call to
10851 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10852
95060284
JB
108532014-02-20 Joel Brobecker <brobecker@adacore.com>
10854
10855 * windows-nat.c (_initialize_windows_nat): Deprecate the
10856 "dll-symbols" command. Turn the "add-shared-symbol-files"
10857 and "assf" aliases into commands, and deprecate them as well.
10858 * NEWS: Add entry explaining that "dll-symbols" and its two
10859 aliases are now deprecated.
10860
8d4fdb12
JB
108612014-02-20 Joel Brobecker <brobecker@adacore.com>
10862
10863 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10864 new-line in debug string. Remove trailing spaces.
10865
1b281443
SS
108662014-02-19 Stan Shebs <stan@codesourcery.com>
10867
10868 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10869
f7bd0f78
SC
108702014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10871
10872 * NEWS: Add entry for the new feature
10873 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10874 and class values.
10875
399ebc3d
SS
108762014-02-19 Stan Shebs <stan@codesourcery.com>
10877
10878 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10879
c658158d
PA
108802014-02-19 Pedro Alves <palves@redhat.com>
10881
10882 * common/ptid.h (struct ptid): Mention that process_stratum
10883 targets should prefer ptid.lwp.
10884
ba348170
PA
108852014-02-19 Pedro Alves <palves@redhat.com>
10886
10887 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10888 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10889 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10890 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10891 store remote thread ids rather than ptid.tid.
10892 (_initialize_remote): Adjust.
10893
ac01945b
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target.c (target_get_unwinder): Rewrite.
10897 (target_get_tailcall_unwinder): Rewrite.
10898 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10899 (record_btrace_to_get_tailcall_unwinder): New function.
10900 (init_record_btrace_ops): Update.
10901 * target.h (struct target_ops) <to_get_unwinder,
10902 to_get_tailcall_unwinder>: Now function pointers. Use
10903 TARGET_DEFAULT_RETURN.
10904
8476dc92
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10908 argument.
10909 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10910
c0eca49f
TT
109112014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10914 directly.
10915 * target-delegates.c: Rebuild.
10916 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10917 TARGET_DEFAULT_FUNC.
10918 * target.c (default_target_decr_pc_after_break): Rename from
10919 forward_target_decr_pc_after_break. Simplify.
10920 (target_decr_pc_after_break): Rely on delegation.
10921
596b6b39
TT
109222014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target.c (update_current_target): Do not INHERIT to_doc or
10925 to_magic. Do not de_fault to_open or to_close.
10926
b427c1bc
TT
109272014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * gcore.h (objfile_find_memory_regions): Declare.
10930 * gcore.c (objfile_find_memory_regions): No longer static. Add
10931 "self" argument.
10932 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10933 * exec.c: Include gcore.h.
10934 (exec_set_find_memory_regions): Remove.
10935 (exec_find_memory_regions): Remove.
10936 (exec_do_find_memory_regions): Remove.
10937 (init_exec_ops): Update.
10938 * defs.h (exec_set_find_memory_regions): Remove.
10939
9b144037
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.h (struct target_ops) <to_extra_thread_info,
10944 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10945 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10946 not 0, in TARGET_DEFAULT_RETURN.
10947
555bbdeb
TT
109482014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.c (complete_target_initialization): Remove casts. Use
10951 return_zero_has_execution.
10952 (return_zero): Add "ignore" argument.
10953 (return_zero_has_execution): New function.
10954 (init_dummy_target): Remove casts. Use
10955 return_zero_has_execution.
10956
be4ddd36
TT
109572014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target.c (update_current_target): Update comments. Do not
10960 INHERIT to_stratum.
10961
2117c711
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10965 needed.
10966 * corelow.c (core_read_description): Delegate when needed.
10967 * remote.c (remote_read_description): Delegate when needed.
10968 * target-delegates.c: Rebuild.
10969 * target.c (target_read_description): Rewrite.
10970 * target.h (struct target_ops) <to_read_description>: Update
10971 comment. Use TARGET_DEFAULT_RETURN.
10972
e88ef65c
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target-delegates.c: Rebuild.
10976 * target.c (update_current_target): Don't inherit or default
10977 to_can_run.
10978 (find_default_run_target): Check against delegate_can_run.
10979 * target.h (struct target_ops) <to_can_run>: Use
10980 TARGET_DEFAULT_RETURN.
10981
86a0854a
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_disconnect): Unconditionally delegate.
10986 * target.h (struct target_ops) <to_disconnect>: Use
10987 TARGET_DEFAULT_NORETURN.
10988
ee97f592
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * record.c (record_stop): Unconditionally delegate.
10992 * target-delegates.c: Rebuild.
10993 * target.c (target_stop_recording): Unconditionally delegate.
10994 * target.h (struct target_ops) <to_stop_recording>: Use
10995 TARGET_DEFAULT_IGNORE.
10996
6dc7fcf4
TT
109972014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * target-delegates.c: Rebuild.
11000 * target.c (target_enable_btrace): Unconditionally delegate.
11001 * target.h (struct target_ops) <to_enable_btrace>: Use
11002 TARGET_DEFAULT_NORETURN.
11003
eb5b20d4
TT
110042014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target-delegates.c: Rebuild.
11007 * target.c (target_read_btrace): Unconditionally delegate.
11008 * target.h (struct target_ops) <to_read_btrace>: Use
11009 TARGET_DEFAULT_NORETURN.
11010
9ace480d
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target-delegates.c: Rebuild.
11014 * target.c (target_teardown_btrace): Unconditionally delegate.
11015 * target.h (struct target_ops) <to_teardown_btrace>: Use
11016 TARGET_DEFAULT_NORETURN.
11017
8dc292d3
TT
110182014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target-delegates.c: Rebuild.
11021 * target.c (target_disable_btrace): Unconditionally delegate.
11022 * target.h (struct target_ops) <to_disable_btrace>: Use
11023 TARGET_DEFAULT_NORETURN.
11024
58a5184e
TT
110252014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target-delegates.c: Rebuild.
11028 * target.c (default_search_memory): New function.
11029 (simple_search_memory): Update comment.
11030 (target_search_memory): Unconditionally delegate.
11031 * target.h (struct target_ops) <to_search_memory>: Use
11032 TARGET_DEFAULT_FUNC.
11033
8de71aab
TT
110342014-02-19 Tom Tromey <tromey@redhat.com>
11035
11036 * auxv.c (default_auxv_parse): No longer static.
11037 (target_auxv_parse): Unconditionally delegate.
11038 * auxv.h (default_auxv_parse): Declare.
11039 * target-delegates.c: Rebuild.
11040 * target.c: Include auxv.h.
11041 * target.h (struct target_ops) <to_auxv_parse>: Use
11042 TARGET_DEFAULT_FUNC.
11043
6b2c5a57
TT
110442014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target-delegates.c: Rebuild.
11047 * target.c (target_memory_map): Unconditionally delegate.
11048 * target.h (struct target_ops) <to_memory_map>: Use
11049 TARGET_DEFAULT_RETURN.
11050
cbffc065
TT
110512014-02-19 Tom Tromey <tromey@redhat.com>
11052
11053 * target-delegates.c: Rebuild.
11054 * target.c (target_thread_alive): Unconditionally delegate.
11055 * target.h (struct target_ops) <to_thread_alive>: Use
11056 TARGET_DEFAULT_RETURN.
11057
f09e2107
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target-delegates.c: Rebuild.
11061 * target.c (target_save_record): Unconditionally delegate.
11062 * target.h (struct target_ops) <to_save_record>: Use
11063 TARGET_DEFAULT_NORETURN.
11064
07366925
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (target_delete_record): Unconditionally delegate.
11069 * target.h (struct target_ops) <to_delete_record>: Use
11070 TARGET_DEFAULT_NORETURN.
11071
dd2e9d25
TT
110722014-02-19 Tom Tromey <tromey@redhat.com>
11073
11074 * target-delegates.c: Rebuild.
11075 * target.c (target_record_is_replaying): Unconditionally
11076 delegate.
11077 * target.h (struct target_ops) <to_record_is_replaying>: Use
11078 TARGET_DEFAULT_RETURN.
11079
671e76cc
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target-delegates.c: Rebuild.
11083 * target.c (target_goto_record_begin): Unconditionally delegate.
11084 * target.h (struct target_ops) <to_goto_record_begin>: Use
11085 TARGET_DEFAULT_NORETURN.
11086
e9179bb3
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target-delegates.c: Rebuild.
11090 * target.c (target_goto_record_end): Unconditionally delegate.
11091 * target.h (struct target_ops) <to_goto_record_end>: Use
11092 TARGET_DEFAULT_NORETURN.
11093
05969c84
TT
110942014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_goto_record): Unconditionally delegate.
11098 * target.h (struct target_ops) <to_goto_record>: Use
11099 TARGET_DEFAULT_NORETURN.
11100
3679abfa
TT
111012014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (target_insn_history): Unconditionally delegate.
11105 * target.h (struct target_ops) <to_insn_history>: Use
11106 TARGET_DEFAULT_NORETURN.
11107
8444ab58
TT
111082014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * target-delegates.c: Rebuild.
11111 * target.c (target_insn_history_from): Unconditionally delegate.
11112 * target.h (struct target_ops) <to_insn_history_from>: Use
11113 TARGET_DEFAULT_NORETURN.
11114
c29302cc
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target-delegates.c: Rebuild.
11118 * target.c (target_insn_history_range): Unconditionally delegate.
11119 * target.h (struct target_ops) <to_insn_history_range>: Use
11120 TARGET_DEFAULT_NORETURN.
11121
170049d4
TT
111222014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target-delegates.c: Rebuild.
11125 * target.c (target_call_history): Unconditionally delegate.
11126 * target.h (struct target_ops) <to_call_history>: Use
11127 TARGET_DEFAULT_NORETURN.
11128
16fc27d6
TT
111292014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_call_history_from): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_call_history_from>: Use
11134 TARGET_DEFAULT_NORETURN.
11135
115d9817
TT
111362014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (target_call_history_range): Unconditionally delegate.
11140 * target.h (struct target_ops) <to_call_history_range>: Use
11141 TARGET_DEFAULT_NORETURN.
11142
eb276a6b
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target-delegates.c: Rebuild.
11146 * target.c (target_verify_memory): Unconditionally delegate.
11147 * target.h (struct target_ops) <to_verify_memory>: Use
11148 TARGET_DEFAULT_NORETURN.
11149
9e538d0d
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target-delegates.c: Rebuild.
11153 * target.c (target_core_of_thread): Unconditionally delegate.
11154 * target.h (struct target_ops) <to_core_of_thread>: Use
11155 TARGET_DEFAULT_RETURN.
11156
f6fb2925
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target-delegates.c: Rebuild.
11160 * target.c (target_flash_done): Unconditionally delegate.
11161 * target.h (struct target_ops) <to_flash_done>: Use
11162 TARGET_DEFAULT_NORETURN.
11163
e8a6c6ac
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_flash_erase): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_flash_erase>: Use
11169 TARGET_DEFAULT_NORETURN.
11170
7e35c012
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_get_section_table): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_get_section_table>: Use
11176 TARGET_DEFAULT_RETURN.
11177
770234d3
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_pid_to_str): Unconditionally delegate.
11182 (init_dummy_target): Don't initialize to_pid_to_str.
11183 (default_pid_to_str): Rename from dummy_pid_to_str.
11184 * target.h (struct target_ops) <to_pid_to_str>: Use
11185 TARGET_DEFAULT_FUNC.
11186
09b0dc2b
TT
111872014-02-19 Tom Tromey <tromey@redhat.com>
11188
11189 * target-delegates.c: Rebuild.
11190 * target.c (target_find_new_threads): Unconditionally delegate.
11191 * target.h (struct target_ops) <to_find_new_threads>: Use
11192 TARGET_DEFAULT_RETURN.
11193
7d4f8efa
TT
111942014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target-delegates.c: Rebuild.
11197 * target.c (target_program_signals): Unconditionally delegate.
11198 * target.h (struct target_ops) <to_program_signals>: Use
11199 TARGET_DEFAULT_IGNORE.
11200
035cad7f
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target-delegates.c: Rebuild.
11204 * target.c (target_pass_signals): Unconditionally delegate.
11205 * target.h (struct target_ops) <to_pass_signals>: Use
11206 TARGET_DEFAULT_IGNORE.
11207
8d657035
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (default_mourn_inferior): New function.
11212 (target_mourn_inferior): Unconditionally delegate.
11213 * target.h (struct target_ops) <to_mourn_inferior>: Use
11214 TARGET_DEFAULT_FUNC.
11215
098dba18
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (default_follow_fork): New function.
11220 (target_follow_fork): Unconditionally delegate.
11221 * target.h (struct target_ops) <to_follow_fork>: Use
11222 TARGET_DEFAULT_FUNC.
11223
423a4807
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target-delegates.c: Rebuild.
11227 * target.c (target_kill): Unconditionally delegate.
11228 * target.h (struct target_ops) <to_kill>: Use
11229 TARGET_DEFAULT_NORETURN.
11230
6c7e5e5c
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target-delegates.c: Rebuild.
11234 * target.c (target_masked_watch_num_registers): Unconditionally
11235 delegate.
11236 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11237 Use TARGET_DEFAULT_RETURN.
11238
8b1c364c
TT
112392014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * target-delegates.c: Rebuild.
11242 * target.c (target_remove_mask_watchpoint): Unconditionally
11243 delegate.
11244 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11245 TARGET_DEFAULT_RETURN.
11246
cd4ae029
TT
112472014-02-19 Tom Tromey <tromey@redhat.com>
11248
11249 * target-delegates.c: Rebuild.
11250 * target.c (target_insert_mask_watchpoint): Unconditionally
11251 delegate.
11252 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11253 TARGET_DEFAULT_RETURN.
11254
a134316b
TT
112552014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * target-delegates.c: Rebuild.
11258 * target.c (target_ranged_break_num_registers): Unconditionally
11259 delegate.
11260 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11261 Use TARGET_DEFAULT_RETURN.
11262
ad5989bd
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target-delegates.c: Rebuild.
11266 * target.c (target_fetch_registers): Unconditionally delegate.
11267 * target.h (struct target_ops) <to_fetch_registers>: Use
11268 TARGET_DEFAULT_NORETURN.
11269
46ee7e8d
TT
112702014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target-delegates.c: Rebuild.
11273 * target.c (update_current_target): Don't inherit or default
11274 to_stop.
11275 * target.h (struct target_ops) <to_stop>: Use
11276 TARGET_DEFAULT_IGNORE.
11277
843f59ed
TT
112782014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_can_run_breakpoint_commands.
11283 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11284 Use TARGET_DEFAULT_RETURN.
11285
ccfde2a0
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_supports_evaluation_of_breakpoint_conditions.
11291 * target.h (struct target_ops)
11292 <to_supports_evaluation_of_breakpoint_conditions>: Use
11293 TARGET_DEFAULT_RETURN.
11294
0de91722
TT
112952014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target-delegates.c: Rebuild.
11298 * target.c (update_current_target): Don't inherit or default
11299 to_augmented_libraries_svr4_read.
11300 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11301 Use TARGET_DEFAULT_RETURN.
11302
9a7d8b48
TT
113032014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target-delegates.c: Rebuild.
11306 * target.c (update_current_target): Don't inherit or default
11307 to_can_use_agent.
11308 * target.h (struct target_ops) <to_can_use_agent>: Use
11309 TARGET_DEFAULT_RETURN.
11310
d9db5b21
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target-delegates.c: Rebuild.
11314 * target.c (update_current_target): Don't inherit or default
11315 to_use_agent.
11316 * target.h (struct target_ops) <to_use_agent>: Use
11317 TARGET_DEFAULT_NORETURN.
11318
92155eeb
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target-delegates.c: Rebuild.
11322 * target.c (update_current_target): Don't inherit or default
11323 to_traceframe_info.
11324 (return_null): Remove.
11325 * target.h (struct target_ops) <to_traceframe_info>: Use
11326 TARGET_DEFAULT_RETURN.
11327
d6522a22
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11332 to_static_tracepoint_markers_by_strid.
11333 * target.h (struct target_ops)
11334 <to_static_tracepoint_markers_by_strid>: Use
11335 TARGET_DEFAULT_NORETURN.
11336
4c3e4425
TT
113372014-02-19 Tom Tromey <tromey@redhat.com>
11338
11339 * target-delegates.c: Rebuild.
11340 * target.c (update_current_target): Don't inherit or default
11341 to_static_tracepoint_marker_at.
11342 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11343 Use TARGET_DEFAULT_RETURN.
11344
dcd6917f
TT
113452014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target-delegates.c: Rebuild.
11348 * target.c (update_current_target): Don't inherit or default
11349 to_set_permissions.
11350 * target.h (struct target_ops) <to_set_permissions>: Use
11351 TARGET_DEFAULT_IGNORE.
11352
22bcceee
TT
113532014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target-delegates.c: Rebuild.
11356 * target.c (update_current_target): Don't inherit or default
11357 to_get_tib_address.
11358 * target.h (struct target_ops) <to_get_tib_address>: Use
11359 TARGET_DEFAULT_NORETURN.
11360
8586ccaa
TT
113612014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target-delegates.c: Rebuild.
11364 * target.c (update_current_target): Don't inherit or default
11365 to_set_trace_notes.
11366 * target.h (struct target_ops) <to_set_trace_notes>: Use
11367 TARGET_DEFAULT_RETURN.
11368
91df8d1d
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target-delegates.c: Rebuild.
11372 * target.c (update_current_target): Don't initialize
11373 to_set_trace_buffer_size.
11374 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11375 TARGET_DEFAULT_IGNORE.
11376
8d526939
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_set_circular_trace_buffer.
11382 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11383 TARGET_DEFAULT_IGNORE.
11384
0bcfeddf
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_set_disconnected_tracing.
11390 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11391 TARGET_DEFAULT_IGNORE.
11392
9249843f
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_get_min_fast_tracepoint_insn_len.
11398 (return_minus_one): Remove.
11399 * target.h (struct target_ops)
11400 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11401
ace92e7d
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target-delegates.c: Rebuild.
11405 * target.c (update_current_target): Don't inherit or default
11406 to_get_raw_trace_data.
11407 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11408 TARGET_DEFAULT_NORETURN.
11409
08120467
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_upload_trace_state_variables.
11415 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11416 Use TARGET_DEFAULT_RETURN.
11417
1e949b00
TT
114182014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (update_current_target): Don't inherit or default
11422 to_upload_tracepoints.
11423 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11424 TARGET_DEFAULT_RETURN.
11425
a2e6c147
TT
114262014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target-delegates.c: Rebuild.
11429 * target.c (update_current_target): Don't inherit or default
11430 to_save_trace_data.
11431 * target.h (struct target_ops) <to_save_trace_data>: Use
11432 TARGET_DEFAULT_NORETURN.
11433
959bcd0b
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * target-delegates.c: Rebuild.
11437 * target.c (update_current_target): Don't inherit or default
11438 to_get_trace_state_variable_value.
11439 * target.h (struct target_ops)
11440 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11441
afc94e66
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't inherit or default
11446 to_trace_find.
11447 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11448
e51c07ea
TT
114492014-02-19 Tom Tromey <tromey@redhat.com>
11450
11451 * target-delegates.c: Rebuild.
11452 * target.c (update_current_target): Don't inherit or default
11453 to_trace_stop.
11454 * target.h (struct target_ops) <to_trace_stop>: Use
11455 TARGET_DEFAULT_NORETURN.
11456
6fea14cd
TT
114572014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target-delegates.c: Rebuild.
11460 * target.c (update_current_target): Don't inherit or default
11461 to_get_tracepoint_status.
11462 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11463 TARGET_DEFAULT_NORETURN.
11464
4072d4ff
TT
114652014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target-delegates.c: Rebuild.
11468 * target.c (update_current_target): Don't inherit or default
11469 to_get_trace_status.
11470 * target.h (struct target_ops) <to_get_trace_status>: Use
11471 TARGET_DEFAULT_RETURN.
11472
25da2e80
TT
114732014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target-delegates.c: Rebuild.
11476 * target.c (update_current_target): Don't inherit or default
11477 to_trace_start.
11478 * target.h (struct target_ops) <to_trace_start>: Use
11479 TARGET_DEFAULT_NORETURN.
11480
86dd181d
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target-delegates.c: Rebuild.
11484 * target.c (update_current_target): Don't inherit or default
11485 to_trace_set_readonly_regions.
11486 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11487 Use TARGET_DEFAULT_NORETURN.
11488
05c41993
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (update_current_target): Don't inherit or default
11493 to_disable_tracepoint.
11494 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11495 TARGET_DEFAULT_NORETURN.
11496
151f70f1
TT
114972014-02-19 Tom Tromey <tromey@redhat.com>
11498
11499 * target-delegates.c: Rebuild.
11500 * target.c (update_current_target): Don't inherit or default
11501 to_enable_tracepoint.
11502 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11503 TARGET_DEFAULT_NORETURN.
11504
94eb98b9
TT
115052014-02-19 Tom Tromey <tromey@redhat.com>
11506
11507 * target-delegates.c: Rebuild.
11508 * target.c (update_current_target): Don't inherit or default
11509 to_download_trace_state_variable.
11510 * target.h (struct target_ops) <to_download_trace_state_variable>:
11511 Use TARGET_DEFAULT_NORETURN.
11512
719acc4a
TT
115132014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target-delegates.c: Rebuild.
11516 * target.c (update_current_target): Don't inherit or default
11517 to_can_download_tracepoint.
11518 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11519 TARGET_DEFAULT_RETURN.
11520
9a980a22
TT
115212014-02-19 Tom Tromey <tromey@redhat.com>
11522
11523 * target-delegates.c: Rebuild.
11524 * target.c (update_current_target): Don't inherit or default
11525 to_download_tracepoint.
11526 * target.h (struct target_ops) <to_download_tracepoint>: Use
11527 TARGET_DEFAULT_NORETURN.
11528
5536135b
TT
115292014-02-19 Tom Tromey <tromey@redhat.com>
11530
11531 * target-delegates.c: Rebuild.
11532 * target.c (update_current_target): Don't inherit or default
11533 to_trace_init.
11534 * target.h (struct target_ops) <to_trace_init>: Use
11535 TARGET_DEFAULT_RETURN.
11536
9409d39e
TT
115372014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_supports_string_tracing.
11542 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11543 TARGET_DEFAULT_RETURN.
11544
aab1b22d
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_supports_enable_disable_tracepoint.
11550 * target.h (struct target_ops)
11551 <to_supports_enable_disable_tracepoint>: Use
11552 TARGET_DEFAULT_RETURN.
11553
a7304748
TT
115542014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target-delegates.c: Rebuild.
11557 * target.c (update_current_target): Don't inherit or default
11558 to_supports_multi_process.
11559 * target.h (struct target_ops) <to_supports_multi_process>: Use
11560 TARGET_DEFAULT_RETURN.
11561
4229b31d
TT
115622014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target-delegates.c: Rebuild.
11565 * target.c (update_current_target): Don't inherit or default
11566 to_get_ada_task_ptid.
11567 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11568 TARGET_DEFAULT_FUNC.
11569
43eba180
TT
115702014-02-19 Tom Tromey <tromey@redhat.com>
11571
11572 * target-delegates.c: Rebuild.
11573 * target.c (update_current_target): Don't inherit or default
11574 to_thread_architecture.
11575 * target.h (struct target_ops) <to_thread_architecture>: Use
11576 TARGET_DEFAULT_FUNC.
11577
fe31bf5b
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_execution_direction.
11583 * target.h (struct target_ops) <to_execution_direction>: Use
11584 TARGET_DEFAULT_FUNC.
11585
53e1cfc7
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target-delegates.c: Rebuild.
11589 * target.c (update_current_target): Don't inherit or default
11590 to_can_execute_reverse.
11591 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11592 TARGET_DEFAULT_RETURN.
11593 (target_can_execute_reverse): Unconditionally delegate.
11594
9bb9d61d
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_goto_bookmark.
11600 (dummy_goto_bookmark): Remove.
11601 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11602 * target.h (struct target_ops) <to_goto_bookmark>: Use
11603 TARGET_DEFAULT_NORETURN.
11604
3dbafbbb
TT
116052014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target-delegates.c: Rebuild.
11608 * target.c (update_current_target): Don't inherit or default
11609 to_get_bookmark.
11610 (dummy_get_bookmark): Remove.
11611 (init_dummy_target): Don't inherit or default to_get_bookmark.
11612 * target.h (struct target_ops) <to_get_bookmark>: Use
11613 TARGET_DEFAULT_NORETURN
11614
16f796b1
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_make_corefile_notes.
11620 (init_dummy_target): Don't initialize to_make_corefile_notes.
11621 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11622 TARGET_DEFAULT_FUNC.
11623
0b5a2719
TT
116242014-02-19 Tom Tromey <tromey@redhat.com>
11625
11626 * target-delegates.c: Rebuild.
11627 * target.c (update_current_target): Don't inherit or default
11628 to_find_memory_regions.
11629 (init_dummy_target): Don't initialize to_find_memory_regions.
11630 * target.h (struct target_ops) <to_find_memory_regions>: Use
11631 TARGET_DEFAULT_FUNC.
11632
d9cb0195
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11637 to_log_command.
11638 * target.h (struct target_ops) <to_log_command>: Use
11639 TARGET_DEFAULT_IGNORE.
11640 (target_log_command): Unconditionally delegate.
11641
830ca330
TT
116422014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_pid_to_exec_file.
11647 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11648 TARGET_DEFAULT_RETURN.
11649
825828fc
TT
116502014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_thread_name.
11655 (target_thread_name): Unconditionally delegate.
11656 * target.h (struct target_ops) <to_thread_name>: Use
11657 TARGET_DEFAULT_RETURN.
11658
4a7e6dda
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11663 to_extra_thread_info.
11664 * target.h (struct target_ops) <to_extra_thread_info>: Use
11665 TARGET_DEFAULT_RETURN.
11666
0db88c1d
TT
116672014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_has_exited.
11672 * target.h (struct target_ops) <to_has_exited>: Use
11673 TARGET_DEFAULT_RETURN..
11674
6a9fa051
TT
116752014-02-19 Tom Tromey <tromey@redhat.com>
11676
11677 * target-delegates.c: Rebuild.
11678 * target.c (update_current_target): Don't inherit or default
11679 to_set_syscall_catchpoint.
11680 (return_one): Remove.
11681 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11682 TARGET_DEFAULT_RETURN.
11683
62f64d7a
TT
116842014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target-delegates.c: Rebuild.
11687 * target.c (update_current_target): Don't inherit or default
11688 to_insert_exec_catchpoint.
11689 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11690 TARGET_DEFAULT_RETURN.
11691
cda0f38c
TT
116922014-01-08 Tom Tromey <tromey@redhat.com>
11693
11694 * target-delegates.c: Rebuild.
11695 * target.c (update_current_target): Don't inherit or default
11696 to_insert_exec_catchpoint.
11697 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11698 TARGET_DEFAULT_RETURN.
11699
95c3375e
TT
117002014-02-19 Tom Tromey <tromey@redhat.com>
11701
11702 * target-delegates.c: Rebuild.
11703 * target.c (update_current_target): Don't inherit or default
11704 to_remove_vfork_catchpoint.
11705 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11706 TARGET_DEFAULT_RETURN.
11707
7e18a8dc
TT
117082014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target-delegates.c: Rebuild.
11711 * target.c (update_current_target): Don't inherit or default
11712 to_insert_vfork_catchpoint.
11713 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11714 TARGET_DEFAULT_RETURN.
11715
e1a21fb7
TT
117162014-02-19 Tom Tromey <tromey@redhat.com>
11717
11718 * target-delegates.c: Rebuild.
11719 * target.c (update_current_target): Don't inherit or default
11720 to_remove_fork_catchpoint.
11721 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11722 TARGET_DEFAULT_RETURN.
11723
5958ebeb
TT
117242014-02-19 Tom Tromey <tromey@redhat.com>
11725
11726 * target-delegates.c: Rebuild.
11727 * target.c (update_current_target): Don't inherit or default
11728 to_insert_fork_catchpoint.
11729 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11730 TARGET_DEFAULT_RETURN.
11731
340ba4bf
TT
117322014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target-delegates.c: Rebuild.
11735 * target.c (update_current_target): Don't inherit or default
11736 to_post_startup_inferior.
11737 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11738 TARGET_DEFAULT_IGNORE.
11739
7634da87
TT
117402014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * target-delegates.c: Rebuild.
11743 * target.c (update_current_target): Don't inherit or default
11744 to_load.
11745 * target.h (struct target_ops) <to_load>: Use
11746 TARGET_DEFAULT_NORETURN.
11747
e19e919f
TT
117482014-02-19 Tom Tromey <tromey@redhat.com>
11749
11750 * target-delegates.c: Rebuild.
11751 * target.c (update_current_target): Don't inherit or default
11752 to_terminal_info.
11753 * target.h (struct target_ops) <to_terminal_info>: Use
11754 TARGET_DEFAULT_FUNC.
11755
c6ea8f79
TT
117562014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target-delegates.c: Rebuild.
11759 * target.c (update_current_target): Don't inherit or default
11760 to_terminal_save_ours.
11761 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11762 TARGET_DEFAULT_IGNORE.
11763
e4a733f1
TT
117642014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target-delegates.c: Rebuild.
11767 * target.c (update_current_target): Don't inherit or default
11768 to_terminal_ours.
11769 * target.h (struct target_ops) <to_terminal_ours>: Use
11770 TARGET_DEFAULT_IGNORE.
11771
74fcbef9
TT
117722014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11776 to_terminal_ours_for_output.
11777 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11778 TARGET_DEFAULT_IGNORE.
11779
ddeaacc9
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target-delegates.c: Rebuild.
11783 * target.c (update_current_target): Don't inherit or default
11784 to_terminal_inferior.
11785 * target.h (struct target_ops) <to_terminal_inferior>: Use
11786 TARGET_DEFAULT_IGNORE.
11787
0343661d
TT
117882014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target-delegates.c: Rebuild.
11791 * target.c (update_current_target): Don't inherit or default
11792 to_terminal_init.
11793 * target.h (struct target_ops) <to_terminal_init>: Use
11794 TARGET_DEFAULT_IGNORE.
11795
77cdffe9
TT
117962014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target-delegates.c: Rebuild.
11799 * target.c (update_current_target): Don't inherit or default
11800 to_can_accel_watchpoint_condition.
11801 * target.h (struct target_ops)
11802 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11803
d03655e4
TT
118042014-02-19 Tom Tromey <tromey@redhat.com>
11805
11806 * target-delegates.c: Rebuild.
11807 * target.c (update_current_target): Don't inherit or default
11808 to_region_ok_for_hw_watchpoint.
11809 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11810 Use TARGET_DEFAULT_FUNC.
11811
65f160a9
TT
118122014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target-delegates.c: Rebuild.
11815 * target.c (update_current_target): Don't inherit or default
11816 to_watchpoint_addr_within_range.
11817 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11818 Use TARGET_DEFAULT_FUNC.
11819
61dd109f
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target-delegates.c: Rebuild.
11823 * target.c (update_current_target): Don't inherit or default
11824 to_remove_watchpoint.
11825 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11826 TARGET_DEFAULT_NORETURN.
11827
016facd4
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target-delegates.c: Rebuild.
11831 * target.c (update_current_target): Don't inherit or default
11832 to_insert_watchpoint.
11833 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11834 TARGET_DEFAULT_RETURN.
11835
418dabac
TT
118362014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target-delegates.c: Rebuild.
11839 * target.c (update_current_target): Don't inherit or default
11840 to_remove_hw_breakpoint.
11841 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11842 TARGET_DEFAULT_RETURN.
11843
61b371f9
TT
118442014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target-delegates.c: Rebuild.
11847 * target.c (update_current_target): Don't inherit or default
11848 to_insert_hw_breakpoint.
11849 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11850 TARGET_DEFAULT_RETURN.
11851
52b51d06
TT
118522014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target-delegates.c: Rebuild.
11855 * target.c (update_current_target): Don't inherit or default
11856 to_can_use_hw_breakpoint.
11857 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11858 TARGET_DEFAULT_RETURN.
11859
f86e59b2
TT
118602014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target-delegates.c: Rebuild.
11863 * target.c (update_current_target): Don't inherit or default
11864 to_files_info.
11865 * target.h (struct target_ops) <to_files_info>: Use
11866 TARGET_DEFAULT_IGNORE.
11867
6c628163
TT
118682014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target-delegates.c: Rebuild.
11871 * target.c (update_current_target): Don't inherit or default
11872 to_store.
11873 * target.h (struct target_ops) <to_store>: Use
11874 TARGET_DEFAULT_NORETURN.
11875
bebd3233
TT
118762014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * target-delegates.c: Rebuild.
11879 * target.c (update_current_target): Don't inherit or default
11880 to_post_attach.
11881 * target.h (struct target_ops) <to_post_attach>: Use
11882 TARGET_DEFAULT_IGNORE.
11883
a53f3625
TT
118842014-02-19 Tom Tromey <tromey@redhat.com>
11885
11886 * target-delegates.c: Rebuild.
11887 * target.c (update_current_target): Don't inherit or default
11888 to_rcmd.
11889 (default_rcmd): New function.
11890 (do_monitor_command): Unconditionally delegate.
11891 * target.h (struct target_ops) <to_rmcd>: Use
11892 TARGET_DEFAULT_FUNC.
11893
e9a29200
TT
118942014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target-delegates.c: Rebuild.
11897 * target.c (init_dummy_target): Don't initialize to_attach.
11898 (target_attach): Unconditionally delegate.
11899 * target.h (struct target_ops) <to_attach>: Use
11900 TARGET_DEFAULT_FUNC.
11901
09da0d0a
TT
119022014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target-delegates.c: Rebuild.
11905 * target.c (target_detach): Unconditionally delegate.
11906 (init_dummy_target): Don't initialize to_detach.
11907 * target.h (struct target_ops) <to_detach>: Use
11908 TARGET_DEFAULT_IGNORE.
11909
5436ff03
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11913 Add argument.
11914 (target_augmented_libraries_svr4_read): Add argument.
11915 * target.c (update_current_target): Update.
11916 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11917 argument.
11918
f0d960ea
TT
119192014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target.h (struct target_ops) <to_call_history_range>: Add
11922 argument.
11923 * target.c (target_call_history_range): Add argument.
11924 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11925 argument.
11926 (record_btrace_call_history_from): Update.
11927
ec0aea04
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target.h (struct target_ops) <to_call_history_from>: Add
11931 argument.
11932 * target.c (target_call_history_from): Add argument.
11933 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11934 argument.
11935
5df2fcba
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target.h (struct target_ops) <to_call_history>: Add argument.
11939 * target.c (target_call_history): Add argument.
11940 * record-btrace.c (record_btrace_call_history): Add 'self'
11941 argument.
11942
4e99c6b7
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * target.h (struct target_ops) <to_insn_history_range>: Add
11946 argument.
11947 * target.c (target_insn_history_range): Add argument.
11948 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11949 argument.
11950 (record_btrace_insn_history_from): Update.
11951
9abc3ff3
TT
119522014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target.h (struct target_ops) <to_insn_history_from>: Add
11955 argument.
11956 * target.c (target_insn_history_from): Add argument.
11957 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11958 argument.
11959
7a6c5609
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * target.h (struct target_ops) <to_insn_history>: Add argument.
11963 * target.c (target_insn_history): Add argument.
11964 * record-btrace.c (record_btrace_insn_history): Add 'self'
11965 argument.
11966
606183ac
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_goto_record>: Add argument.
11970 * target.c (target_goto_record): Add argument.
11971 * record-full.c (record_full_goto): Add 'self' argument.
11972 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11973
307a1b91
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11977 * target.c (target_goto_record_end): Add argument.
11978 * record-full.c (record_full_goto_end): Add 'self' argument.
11979 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11980
08475817
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target.h (struct target_ops) <to_goto_record_begin>: Add
11984 argument.
11985 * target.c (target_goto_record_begin): Add argument.
11986 * record-full.c (record_full_goto_begin): Add 'self' argument.
11987 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11988 argument.
11989
1c63c994
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target.h (struct target_ops) <to_record_is_replaying>: Add
11993 argument.
11994 * target.c (target_record_is_replaying): Add argument.
11995 * record-full.c (record_full_is_replaying): Add 'self' argument.
11996 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11997 argument.
11998 (record_btrace_xfer_partial, record_btrace_store_registers)
11999 (record_btrace_prepare_to_store, record_btrace_resume)
12000 (record_btrace_wait, record_btrace_decr_pc_after_break)
12001 (record_btrace_find_new_threads, record_btrace_thread_alive):
12002 Update.
12003
d1b55219
TT
120042014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target.h (struct target_ops) <to_delete_record>: Add argument.
12007 * target.c (target_delete_record): Add argument.
12008 * record-full.c (record_full_delete): Add 'self' argument.
12009
1390f529
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_save_record>: Add argument.
12013 * target.c (target_save_record): Add argument.
12014 * record-full.c (record_full_save): Add 'self' argument.
12015 (record_full_save): Add 'self' argument.
12016
630d6a4a
TT
120172014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target.h (struct target_ops) <to_info_record>: Add argument.
12020 * target.c (target_info_record): Add argument.
12021 * record.c (info_record_command): Add argument.
12022 * record-full.c (record_full_info): Add 'self' argument.
12023 * record-btrace.c (record_btrace_info): Add 'self' argument.
12024
c6cd7c02
TT
120252014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12028 * target.c (target_stop_recording): Add argument.
12029 * record.c (record_stop): Add argument.
12030 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12031 argument.
12032
39c49f83
TT
120332014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12036 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12037 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12038 argument.
12039 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12040 (_initialize_amd64_linux_nat): Use it.
12041 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12042 (_initialize_i386_linux_nat): Use it.
12043
1777056d
TT
120442014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12047 * target.c (target_teardown_btrace): Add argument.
12048 * remote.c (remote_teardown_btrace): Add 'self' argument.
12049 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12050 argument.
12051 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12052 argument.
12053
25e95349
TT
120542014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12057 * target.c (target_disable_btrace): Add argument.
12058 * remote.c (remote_disable_btrace): Add 'self' argument.
12059 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12060 argument.
12061 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12062 argument.
12063
e3c49f88
TT
120642014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12067 * target.c (target_enable_btrace): Add argument.
12068 * remote.c (remote_enable_btrace): Add 'self' argument.
12069 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12070 argument.
12071 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12072 argument.
12073
fe38f897
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12077 (target_can_use_agent): Add argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (remote_can_use_agent): Add 'self' argument.
12080 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12081
2c152180
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (struct target_ops) <to_use_agent>: Add argument.
12085 (target_use_agent): Add argument.
12086 * target.c (update_current_target): Update.
12087 * remote.c (remote_use_agent): Add 'self' argument.
12088 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12089
a893e81f
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12093 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12094 (target_traceframe_info): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_traceframe_info): Add 'self' argument.
12097 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12098
c686c57f
TT
120992014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (target_static_tracepoint_markers_by_strid): Add
12102 argument.
12103 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12104 'self' argument.
12105 * target.c (update_current_target): Update.
12106 * remote.c (struct target_ops)
12107 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12108 * linux-nat.c (struct target_ops)
12109 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12110
61fc905d
TT
121112014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12114 Add argument.
12115 (target_static_tracepoint_marker_at): Add argument.
12116 * target.c (update_current_target): Update.
12117 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12118 argument.
12119
c378d69d
TT
121202014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12123 (target_set_permissions): Add argument.
12124 * target.c (update_current_target): Update.
12125 * remote.c (remote_set_permissions): Add 'self' argument.
12126 (remote_start_remote): Update.
12127
bd7ae0f5
TT
121282014-02-19 Tom Tromey <tromey@redhat.com>
12129
12130 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12131 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12132 (target_get_tib_address): Add argument.
12133 * target.c (update_current_target): Update.
12134 * remote.c (remote_get_tib_address): Add 'self' argument.
12135
d9e68a2c
TT
121362014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12139 (target_set_trace_notes): Add argument.
12140 * target.c (update_current_target): Update.
12141 * remote.c (remote_set_trace_notes): Add 'self' argument.
12142
4da384be
TT
121432014-02-19 Tom Tromey <tromey@redhat.com>
12144
12145 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12146 argument.
12147 (target_set_trace_buffer_size): Add argument.
12148 * target.c (update_current_target): Update.
12149 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12150
736d5b1f
TT
121512014-02-19 Tom Tromey <tromey@redhat.com>
12152
12153 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12154 argument.
12155 (target_set_circular_trace_buffer): Add argument.
12156 * target.c (update_current_target): Update.
12157 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12158 argument.
12159
37b25738
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12163 argument.
12164 (target_set_disconnected_tracing): Add argument.
12165 * target.c (update_current_target): Update.
12166 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12167
0e67620a
TT
121682014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops)
12171 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12172 (target_get_min_fast_tracepoint_insn_len): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12175 argument.
12176
88ee6f45
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12180 argument.
12181 (target_get_raw_trace_data): Add argument.
12182 * target.c (update_current_target): Update.
12183 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12184
181e3713
TT
121852014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12188 Add argument.
12189 (target_upload_trace_state_variables): Add argument.
12190 * target.c (update_current_target): Update.
12191 * remote.c (remote_upload_trace_state_variables): Add 'self'
12192 argument.
12193 (remote_start_remote): Update.
12194
ab6617cc
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12198 argument.
12199 (target_upload_tracepoints): Add argument.
12200 * target.c (update_current_target): Update.
12201 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12202 (remote_start_remote): Update.
12203
dc3decaf
TT
122042014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12207 (target_save_trace_data): Add argument.
12208 * target.c (update_current_target): Update.
12209 * remote.c (remote_save_trace_data): Add 'self' argument.
12210
4011015b
TT
122112014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12214 argument.
12215 * target.h (struct target_ops)
12216 <to_get_trace_state_variable_value>: Add argument.
12217 (target_get_trace_state_variable_value): Add argument.
12218 * target.c (update_current_target): Update.
12219 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12220 argument.
12221 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12222
bd4c6793
TT
122232014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12226 * target.h (struct target_ops) <to_trace_find>: Add argument.
12227 (target_trace_find): Add argument.
12228 * target.c (update_current_target): Update.
12229 * remote.c (remote_trace_find): Add 'self' argument.
12230 * ctf.c (ctf_trace_find): Add 'self' argument.
12231
74499f1b
TT
122322014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12235 (target_trace_stop): Add argument.
12236 * target.c (update_current_target): Update.
12237 * remote.c (remote_trace_stop): Add 'self' argument.
12238
db90e85c
TT
122392014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12242 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12243 argument.
12244 (target_get_tracepoint_status): Add argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12247
8bd200f1
TT
122482014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12251 * target.h (struct target_ops) <to_get_trace_status>: Add
12252 argument.
12253 (target_get_trace_status): Add argument.
12254 * target.c (update_current_target): Update.
12255 * remote.c (remote_get_trace_status): Add 'self' argument.
12256 (remote_start_remote, remote_can_download_tracepoint): Update.
12257 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12258
e2d1aae3
TT
122592014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target.h (struct target_ops) <to_trace_start>: Add argument.
12262 (target_trace_start): Add argument.
12263 * target.c (update_current_target): Update.
12264 * remote.c (remote_trace_start): Add 'self' argument.
12265
583f9a86
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12269 Add argument.
12270 (target_trace_set_readonly_regions): Add argument.
12271 * target.c (update_current_target): Update.
12272 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12273 argument.
12274
780b049c
TT
122752014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12278 argument.
12279 (target_disable_tracepoint): Add argument.
12280 * target.c (update_current_target): Update.
12281 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12282
46670d57
TT
122832014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12286 argument.
12287 (target_enable_tracepoint): Add argument.
12288 * target.c (update_current_target): Update.
12289 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12290
559d2b81
TT
122912014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target.h (struct target_ops) <to_download_trace_state_variable>:
12294 Add argument.
12295 (target_download_trace_state_variable): Add argument.
12296 * target.c (update_current_target): Update.
12297 * remote.c (remote_download_trace_state_variable): Add 'self'
12298 argument.
12299
a52a8357
TT
123002014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12303 argument.
12304 (target_can_download_tracepoint): Add argument.
12305 * target.c (update_current_target): Update.
12306 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12307
548f7808
TT
123082014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target.h (struct target_ops) <to_download_tracepoint>: Add
12311 argument.
12312 (target_download_tracepoint): Add argument.
12313 * target.c (update_current_target): Update.
12314 * remote.c (remote_download_tracepoint): Add 'self' argument.
12315
ecae04e1
TT
123162014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target.h (struct target_ops) <to_trace_init>: Add argument.
12319 (target_trace_init): Add argument.
12320 * target.c (update_current_target): Update.
12321 * remote.c (remote_trace_init): Add 'self' argument.
12322
fab5aa7c
TT
123232014-02-19 Tom Tromey <tromey@redhat.com>
12324
12325 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12326 * target.c (target_fileio_readlink): Add argument.
12327 * remote.c (remote_hostio_readlink): Add 'self' argument.
12328 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12329
dbbca37d
TT
123302014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12333 * target.c (target_fileio_unlink): Add argument.
12334 * remote.c (remote_hostio_unlink): Add 'self' argument.
12335 (remote_file_delete): Update.
12336 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12337
df39ea25
TT
123382014-02-19 Tom Tromey <tromey@redhat.com>
12339
12340 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12341 * target.c (target_fileio_close): Add argument.
12342 * remote.c (remote_hostio_close): Add 'self' argument.
12343 (remote_hostio_close_cleanup): Update.
12344 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12345 Update.
12346 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12347
a3be983c
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12351 * target.c (target_fileio_pread): Add argument.
12352 * remote.c (remote_hostio_pread): Add 'self' argument.
12353 (remote_bfd_iovec_pread, remote_file_get): Update.
12354 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12355
0d866f62
TT
123562014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12359 * target.c (target_fileio_pwrite): Add argument.
12360 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12361 (remote_file_put): Update.
12362 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12363
cd897586
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12367 * target.c (target_fileio_open): Add argument.
12368 * remote.c (remote_hostio_open): Add 'self' argument.
12369 (remote_bfd_iovec_open): Add 'self' argument.
12370 (remote_file_put): Add 'self' argument.
12371 (remote_file_get): Add 'self' argument.
12372 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12373
78eff0ec
TT
123742014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12377 Add argument.
12378 (target_can_run_breakpoint_commands): Add argument.
12379 * target.c (update_current_target): Update.
12380 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12381 argument.
12382 (remote_insert_breakpoint): Add 'self' argument.
12383 (remote_insert_hw_breakpoint): Add 'self' argument.
12384 (remote_can_run_breakpoint_commands): Add 'self' argument.
12385
efcc2da7
TT
123862014-02-19 Tom Tromey <tromey@redhat.com>
12387
12388 * target.h (struct target_ops)
12389 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12390 (target_supports_evaluation_of_breakpoint_conditions): Add
12391 argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12394 argument.
12395 (remote_insert_breakpoint): Add 'self' argument.
12396 (remote_insert_hw_breakpoint): Add 'self' argument.
12397 (remote_supports_cond_breakpoints): Add 'self' argument.
12398
6de37a3a
TT
123992014-02-19 Tom Tromey <tromey@redhat.com>
12400
12401 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12402 argument.
12403 (target_supports_string_tracing): Add argument.
12404 * target.c (update_current_target): Update.
12405 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12406
2bfc0540
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops)
12410 <to_supports_disable_randomization>: Add argument.
12411 * target.c (find_default_supports_disable_randomization): Add
12412 argument.
12413 (target_supports_disable_randomization): Add argument.
12414 (find_default_supports_disable_randomization): Add 'self'
12415 argument.
12416 * remote.c (extended_remote_supports_disable_randomization): Add
12417 'self' argument.
12418 (remote_supports_disable_randomization): Add 'self' argument.
12419 (extended_remote_create_inferior): Update.
12420 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12421 'self' argument.
12422
7d178d6a
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target.h (struct target_ops)
12426 <to_supports_enable_disable_tracepoint>: Add argument.
12427 (target_supports_enable_disable_tracepoint): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12430 argument.
12431
86ce2668
TT
124322014-02-19 Tom Tromey <tromey@redhat.com>
12433
12434 * target.h (struct target_ops) <to_supports_multi_process>: Add
12435 argument.
12436 (target_supports_multi_process): Add argument.
12437 * target.c (update_current_target): Update.
12438 * remote.c (remote_supports_multi_process): Add 'self' argument.
12439 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12440 argument.
12441 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12442 argument.
12443
4c612759
TT
124442014-02-19 Tom Tromey <tromey@redhat.com>
12445
12446 * target.h (struct target_ops) <to_execution_direction>: Add
12447 argument.
12448 (target_execution_direction): Add argument.
12449 * target.c (default_execution_direction): Add 'self' argument.
12450 * record-full.c (record_full_execution_direction): Add 'self'
12451 argument.
12452
19db3e69
TT
124532014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12456 argument.
12457 (target_can_execute_reverse): Add argument.
12458 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12459 * record-full.c (record_full_can_execute_reverse): Add 'self'
12460 argument.
12461 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12462 argument.
12463
1e6b91a4
TT
124642014-02-19 Tom Tromey <tromey@redhat.com>
12465
12466 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12467 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12468 argument.
12469 (target_get_ada_task_ptid): Add argument.
12470 * target.c (update_current_target): Update.
12471 (default_get_ada_task_ptid): Add 'self' argument.
12472 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12473 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12474 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12475 argument.
12476 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12477 argument.
12478 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12479 argument.
12480 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12481 argument.
12482 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12483 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12484 argument.
12485
3c80fb48
TT
124862014-02-19 Tom Tromey <tromey@redhat.com>
12487
12488 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12489 (target_goto_bookmark): Add argument.
12490 * target.c (dummy_goto_bookmark): Add 'self' argument.
12491 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12492
dd0e2830
TT
124932014-02-19 Tom Tromey <tromey@redhat.com>
12494
12495 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12496 (target_get_bookmark): Add argument.
12497 * target.c (dummy_get_bookmark): Add 'self' argument.
12498 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12499
fc6691b2
TT
125002014-02-19 Tom Tromey <tromey@redhat.com>
12501
12502 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12503 argument.
12504 (target_make_corefile_notes): Add argument.
12505 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12506 * procfs.c (procfs_make_note_section): Add 'self' argument.
12507 (procfs_make_note_section): Add 'self' argument.
12508 (procfs_make_note_section): Add 'self' argument.
12509 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12510 argument.
12511 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12512 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12513 * exec.c (exec_make_note_section): Add 'self' argument.
12514 (exec_make_note_section): Add 'self' argument.
12515
2e73927c
TT
125162014-02-19 Tom Tromey <tromey@redhat.com>
12517
12518 * target.h (struct target_ops) <to_find_memory_regions>: Add
12519 argument.
12520 (target_find_memory_regions): Add argument.
12521 * target.c (dummy_find_memory_regions): Add 'self' argument.
12522 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12523 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12524 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12525 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12526 * exec. (exec_do_find_memory_regions): New global.
12527 (exec_set_find_memory_regions): Rewrite.
12528 (exec_find_memory_regions): New function.
12529 (init_exec_ops): Use exec_find_memory_regions.
12530
2a9a2795
TT
125312014-02-19 Tom Tromey <tromey@redhat.com>
12532
12533 * target.h (struct target_ops) <to_supports_non_stop>: Add
12534 argument.
12535 * target.c (find_default_supports_non_stop): Add argument.
12536 (target_supports_non_stop): Add argument.
12537 (find_default_supports_non_stop): Add 'self' argument.
12538 * remote.c (remote_supports_non_stop): Add 'self' argument.
12539 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12540
4ab76ea3
TT
125412014-02-19 Tom Tromey <tromey@redhat.com>
12542
12543 * target.h (struct target_ops) <to_log_command>: Add argument.
12544 (target_log_command): Add argument.
12545 * serial.h (serial_log_command): Add 'self' argument.
12546 * serial.c (serial_log_command): Add 'self' argument.
12547
8dd27370
TT
125482014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12551 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12552 argument.
12553 (target_pid_to_exec_file): Add argument.
12554 * target.c (debug_to_pid_to_exec_file): Add argument.
12555 (update_current_target): Update.
12556 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12557 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12558 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12559 (linux_handle_extended_wait): Update.
12560 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12561 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12562 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12563 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12564
1aac633b
TT
125652014-02-19 Tom Tromey <tromey@redhat.com>
12566
12567 * target.h (struct target_ops) <to_rcmd>: Add argument.
12568 (target_rcmd): Add argument.
12569 * target.c (debug_to_rcmd): Add argument.
12570 (update_current_target, do_monitor_command): Update.
12571 * remote.c (remote_rcmd): Add 'self' argument.
12572 * monitor.c (monitor_rcmd): Add 'self' argument.
12573
1eab8a48
TT
125742014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * windows-nat.c (windows_stop): Add 'self' argument.
12577 * target.h (struct target_ops) <to_stop>: Add argument.
12578 * target.c (target_stop): Add argument.
12579 (debug_to_stop): Add argument.
12580 (update_current_target): Update.
12581 * remote.c (remote_stop): Add 'self' argument.
12582 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12583 (gdbsim_cntrl_c): Update.
12584 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12585 * procfs.c (procfs_stop): Add 'self' argument.
12586 * nto-procfs.c (procfs_stop): Add 'self' argument.
12587 * monitor.c (monitor_stop): Add 'self' argument.
12588 (monitor_open): Update.
12589 * linux-nat.c (linux_nat_stop): Add argument.
12590 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12591 * gnu-nat.c (gnu_stop): Add 'self' argument.
12592 * darwin-nat.c (darwin_stop): Add 'self' argument.
12593
503a628d
TT
125942014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target.h (struct target_ops) <to_thread_name>: Add argument.
12597 * target.c (target_thread_name): Add argument.
12598 (update_current_target): Update.
12599 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12600
c15906d8
TT
126012014-02-19 Tom Tromey <tromey@redhat.com>
12602
12603 * target.h (struct target_ops) <to_extra_thread_info>: Add
12604 argument.
12605 (target_extra_thread_info): Add argument.
12606 * target.c (update_current_target): Update.
12607 * remote.c (remote_threads_extra_info): Add 'self' argument.
12608 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12609 argument.
12610 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12611 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12612 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12613 argument.
12614 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12615 argument.
12616 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12617 argument.
12618 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12619 argument.
12620
daf5e9b6
TT
126212014-02-19 Tom Tromey <tromey@redhat.com>
12622
12623 * target.h (struct target_ops) <to_program_signals>: Add argument.
12624 * target.c (target_program_signals): Add argument.
12625 * remote.c (remote_program_signals): Add 'self' argument.
12626
94bedb42
TT
126272014-02-19 Tom Tromey <tromey@redhat.com>
12628
12629 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12630 * target.c (target_pass_signals): Add argument.
12631 * remote.c (remote_pass_signals): Add 'self' argument.
12632 (remote_start_remote): Update.
12633 * procfs.c (procfs_pass_signals): Add 'self' argument.
12634 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12635 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12636 (linux_nat_create_inferior, linux_nat_attach): Update.
12637
da82bd6b
TT
126382014-02-19 Tom Tromey <tromey@redhat.com>
12639
12640 * windows-nat.c (windows_can_run): Add 'self' argument.
12641 * target.h (struct target_ops) <to_can_run>: Add argument.
12642 (target_can_run): Add argument.
12643 * target.c (debug_to_can_run): Add argument.
12644 (update_current_target): Update.
12645 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12646 * inf-child.c (inf_child_can_run): Add 'self' argument.
12647 * go32-nat.c (go32_can_run): Add 'self' argument.
12648
d796e1d6
TT
126492014-02-19 Tom Tromey <tromey@redhat.com>
12650
12651 * target.h (struct target_ops) <to_has_exited>: Add argument.
12652 (target_has_exited): Add argument.
12653 * target.c (debug_to_has_exited): Add argument.
12654 (update_current_target): Update.
12655
ff214e67
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12659 argument.
12660 (target_set_syscall_catchpoint): Add argument.
12661 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12662 argument.
12663 * target.c (update_current_target): Update.
12664
758e29d2
TT
126652014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12668 argument.
12669 (target_remove_exec_catchpoint): Add argument.
12670 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12671 (update_current_target): Update.
12672 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12673 argument.
12674
ba025e51
TT
126752014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12678 argument.
12679 (target_insert_exec_catchpoint): Add argument.
12680 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12681 (update_current_target): Update.
12682 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12683 argument.
12684
e98cf0cd
TT
126852014-02-19 Tom Tromey <tromey@redhat.com>
12686
12687 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12688 argument.
12689 (target_remove_vfork_catchpoint): Add argument.
12690 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12691 (update_current_target): Update.
12692 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12693 argument.
12694
3ecc7da0
TT
126952014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12698 argument.
12699 (target_insert_vfork_catchpoint): Add argument.
12700 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12701 (update_current_target): Update.
12702 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12703 argument.
12704
973fc227
TT
127052014-02-19 Tom Tromey <tromey@redhat.com>
12706
12707 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12708 argument.
12709 (target_remove_fork_catchpoint): Add argument.
12710 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12711 (update_current_target): Update.
12712 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12713 argument.
12714
a863b201
TT
127152014-02-19 Tom Tromey <tromey@redhat.com>
12716
12717 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12718 argument.
12719 (target_insert_fork_catchpoint): Add argument.
12720 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12721 (update_current_target): Update.
12722 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12723 argument.
12724
2e97a79e
TT
127252014-02-19 Tom Tromey <tromey@redhat.com>
12726
12727 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12728 argument.
12729 (target_post_startup_inferior): Add argument.
12730 * target.c (debug_to_post_startup_inferior): Add argument.
12731 (update_current_target): Update.
12732 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12733 argument.
12734 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12735 argument.
12736 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12737 argument.
12738 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12739 argument.
12740 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12741 'self' argument.
12742 (super_post_startup_inferior): Likewise.
12743 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12744 'self' argument.
12745 (super_post_startup_inferior): Likewise.
12746 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12747 Add 'self' argument.
12748 (super_post_startup_inferior): Likewise.
12749
71a9f134
TT
127502014-02-19 Tom Tromey <tromey@redhat.com>
12751
12752 * target.h (struct target_ops) <to_load>: Add argument.
12753 * target.c (target_load): Add argument.
12754 (debug_to_load): Add argument.
12755 (update_current_target): Update.
12756 * remote.c (remote_load): Add 'self' argument.
12757 * remote-sim.c (gdbsim_load): Add 'self' argument.
12758 * remote-mips.c (mips_load): Add 'self' argument.
12759 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12760 * monitor.c (monitor_load): Add 'self' argument.
12761 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12762
0a4f40a2
TT
127632014-02-19 Tom Tromey <tromey@redhat.com>
12764
12765 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12766 (target_terminal_info): Add argument.
12767 * target.c (debug_to_terminal_info): Add argument.
12768 (default_terminal_info): Likewise.
12769 * inflow.c (child_terminal_info): Add 'self' argument.
12770 * inferior.h (child_terminal_info): Add 'self' argument.
12771 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12772
ae3bd431
TT
127732014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12776 argument.
12777 (target_terminal_save_ours): Add argument.
12778 * target.c (debug_to_terminal_save_ours): Add argument.
12779 (update_current_target): Update.
12780 * inflow.c (terminal_save_ours): Add 'self' argument.
12781 * inferior.h (terminal_save_ours): Add 'self' argument.
12782
e3594fd1
TT
127832014-02-19 Tom Tromey <tromey@redhat.com>
12784
12785 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12786 (target_terminal_ours): Add argument.
12787 * target.c (debug_to_terminal_ours): Add argument.
12788 (update_current_target): Update.
12789 * remote.c (remote_terminal_ours): Add 'self' argument.
12790 (remote_close): Update.
12791 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12792 * inflow.c (terminal_ours): Add 'self' argument.
12793 * inferior.h (terminal_ours): Add 'self' argument.
12794 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12795
2e1e1a19
TT
127962014-02-19 Pedro Alves <palves@redhat.com>
12797 Tom Tromey <tromey@redhat.com>
12798
12799 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12800 argument.
12801 (target_terminal_ours_for_output): Add argument.
12802 * target.c (debug_to_terminal_ours_for_output): Add argument.
12803 (update_current_target): Update.
12804 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12805 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12806 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12807
d2f640d4
TT
128082014-02-19 Tom Tromey <tromey@redhat.com>
12809
12810 * target.h (struct target_ops) <to_terminal_inferior>: Add
12811 argument.
12812 * target.c (target_terminal_inferior): Add argument.
12813 (update_current_target): Update.
12814 * remote.c (remote_terminal_inferior): Add 'self' argument.
12815 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12816 * inflow.c (terminal_inferior): Add 'self' argument.
12817 * inferior.h (terminal_inferior): Add 'self' argument.
12818 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12819 (go32_terminal_inferior): Add 'self' argument.
12820
c42bf286
TT
128212014-02-19 Tom Tromey <tromey@redhat.com>
12822
12823 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12824 (target_terminal_init): Add argument.
12825 * target.c (debug_to_terminal_init): Add argument.
12826 (update_current_target): Update.
12827 * inflow.c (terminal_init_inferior): Add 'self' argument.
12828 * inferior.h (terminal_init_inferior): Add 'self' argument.
12829 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12830 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12831
c3a5ff89
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops)
12835 <to_can_accel_watchpoint_condition>: Add argument.
12836 (target_can_accel_watchpoint_condition): Add argument.
12837 * target.c (debug_to_can_accel_watchpoint_condition): Add
12838 argument.
12839 (update_current_target): Update.
12840 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12841 'self' argument.
12842
31568a15
TT
128432014-02-19 Tom Tromey <tromey@redhat.com>
12844
12845 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12846 Add argument.
12847 (target_region_ok_for_hw_watchpoint): Add argument.
12848 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12849 (default_region_ok_for_hw_watchpoint): Add argument.
12850 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12851 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12852 argument.
12853 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12854 argument.
12855 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12856 argument.
12857 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12858 'self' argument.
12859 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12860 'self' argument.
12861 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12862 'self' argument.
12863 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12864 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12865 'self' argument.
12866 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12867 Add 'self' argument.
12868
7bb99c53
TT
128692014-02-19 Tom Tromey <tromey@redhat.com>
12870
12871 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12872 argument.
12873 (target_insert_watchpoint): Add argument.
12874 * target.c (debug_to_insert_watchpoint): Add argument.
12875 (update_current_target): Update.
12876 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12877 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12878 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12879 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12880 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12881 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12882 argument.
12883 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12884 (procfs_insert_hw_watchpoint): Add 'self' argument.
12885 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12886 argument.
12887 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12888 argument.
12889 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12890 argument.
12891 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12892 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12893 argument.
12894 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12895 'self' argument.
12896
11b5219a
TT
128972014-02-19 Tom Tromey <tromey@redhat.com>
12898
12899 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12900 argument.
12901 (target_remove_watchpoint): Add argument.
12902 * target.c (debug_to_remove_watchpoint): Add argument.
12903 (update_current_target): Update.
12904 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12905 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12906 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12907 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12908 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12909 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12910 argument.
12911 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12912 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12913 argument.
12914 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12915 argument.
12916 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12917 argument.
12918 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12919 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12920 argument.
12921 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12922 'self' argument.
12923
a64dc96c
TT
129242014-02-19 Tom Tromey <tromey@redhat.com>
12925
12926 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12927 argument.
12928 (target_remove_hw_breakpoint): Add argument.
12929 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12930 (update_current_target): Update.
12931 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12932 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12933 argument.
12934 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12935 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12936 argument.
12937 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12938 'self' argument.
12939
23a26771
TT
129402014-02-19 Tom Tromey <tromey@redhat.com>
12941
12942 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12943 argument.
12944 (target_insert_hw_breakpoint): Add argument.
12945 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12946 (update_current_target): Update.
12947 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12948 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12949 argument.
12950 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12951 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12952 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12953 argument.
12954 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12955 'self' argument.
12956
5461485a
TT
129572014-02-19 Tom Tromey <tromey@redhat.com>
12958
12959 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12960 argument.
12961 (target_can_use_hardware_watchpoint): Add argument.
12962 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12963 (update_current_target): Update.
12964 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12965 argument.
12966 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12967 argument.
12968 * remote.c (remote_check_watch_resources): Add 'self' argument.
12969 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12970 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12971 argument.
12972 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12973 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12974 argument.
12975 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12976 argument.
12977 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12978 argument.
12979 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12980 argument.
12981 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12982 argument.
12983 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12984 argument.
12985 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12986 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12987 argument.
12988 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12989 'self' argument.
12990
f045800c
TT
129912014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * target.h (struct target_ops) <to_post_attach>: Add argument.
12994 (target_post_attach): Add argument.
12995 * target.c (debug_to_post_attach): Add argument.
12996 (update_current_target): Update.
12997 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12998 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12999 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13000 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13001 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13002
de90e03d
TT
130032014-02-19 Tom Tromey <tromey@redhat.com>
13004
13005 * windows-nat.c (windows_close): Add 'self' argument.
13006 * tracepoint.c (tfile_close): Add 'self' argument.
13007 * target.h (struct target_ops) <to_close>: Add argument.
13008 * target.c (target_close): Add argument.
13009 (update_current_target): Update.
13010 * remote.c (remote_close): Add 'self' argument.
13011 * remote-sim.c (gdbsim_close): Add 'self' argument.
13012 * remote-mips.c (mips_close): Add 'self' argument.
13013 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13014 * record-full.c (record_full_close): Add 'self' argument.
13015 * record-btrace.c (record_btrace_close): Add 'self' argument.
13016 * monitor.h (monitor_close): Add 'self' argument.
13017 * monitor.c (monitor_close): Add 'self' argument.
13018 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13019 * linux-nat.c (linux_nat_close): Add argument.
13020 * go32-nat.c (go32_close): Add 'self' argument.
13021 * exec.c (exec_close_1): Add 'self' argument.
13022 * ctf.c (ctf_close): Add 'self' argument.
13023 * corelow.c (core_close): Add 'self' argument.
13024 (core_close_cleanup): Update.
13025 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13026 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13027
9dd130a0
TT
130282014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * remote.c (remote_load): New function.
13031 (init_remote_ops): Use it.
13032
46917d26
TT
130332014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13036 argument.
13037 * common/linux-btrace.h (linux_supports_btrace): Update.
13038 * remote.c (remote_supports_btrace): Add "self" argument.
13039 * target-delegates.c: Rebuild.
13040 * target.c (target_supports_btrace): Remove.
13041 * target.h (struct target_ops) <to_supports_btrace>: Add
13042 target_ops argument.
13043 (target_supports_btrace): New define.
13044
6b84065d
TT
130452014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * record-full.c (record_full_beneath_to_resume_ops)
13048 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13049 (record_full_beneath_to_wait)
13050 (record_full_beneath_to_store_registers_ops)
13051 (record_full_beneath_to_store_registers)
13052 (record_full_beneath_to_xfer_partial_ops)
13053 (record_full_beneath_to_xfer_partial)
13054 (record_full_beneath_to_insert_breakpoint_ops)
13055 (record_full_beneath_to_insert_breakpoint)
13056 (record_full_beneath_to_remove_breakpoint_ops)
13057 (record_full_beneath_to_remove_breakpoint)
13058 (record_full_beneath_to_stopped_by_watchpoint)
13059 (record_full_beneath_to_stopped_data_address)
13060 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13061 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13062 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13063 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13064 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13065 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13066 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13067 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13068 (record_full_resume, record_full_wait_1)
13069 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13070 (record_full_store_registers, record_full_xfer_partial)
13071 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13072 (record_full_async, record_full_core_xfer_partial): Use target
13073 delegation.
13074 * target-delegates.c: Rebuild.
13075 * target.c (current_xfer_partial): Remove.
13076 (update_current_target): Do not INHERIT or de_fault
13077 to_insert_breakpoint, to_remove_breakpoint,
13078 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13079 to_is_async_p, to_async. Do not set to_xfer_partial field.
13080 (default_xfer_partial): Simplify.
13081 (current_xfer_partial): Remove.
13082 (target_wait, target_resume): Simplify.
13083 (find_default_can_async_p, find_default_is_async_p): Update.
13084 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13085 to_xfer_partial, to_stopped_by_watchpoint,
13086 to_stopped_data_address.
13087 (target_store_registers): Simplify.
13088 (forward_target_remove_breakpoint)
13089 (forward_target_insert_breakpoint): Remove.
13090 (target_remove_breakpoint, target_insert_breakpoint)
13091 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13092 * target.h (struct target_ops) <to_resume, to_wait,
13093 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13094 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13095 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13096 markup.
13097 (forward_target_remove_breakpoint)
13098 (forward_target_insert_breakpoint): Remove.
13099 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13100 directly.
13101 (record_btrace_insert_breakpoint): Delegate directly.
13102
1101cb7b
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 PR build/7701:
13106 * target-delegates.c: New file.
13107 * target.c: Include target-delegates.c.
13108 (init_dummy_target): Call install_dummy_methods.
13109 (complete_target_initialization): Call install_delegators.
13110 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13111 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13112 * make-target-delegates: New file.
13113
8b06beed
TT
131142014-02-19 Tom Tromey <tromey@redhat.com>
13115
13116 * record.c (find_record_target): Use find_target_at.
13117 * target.c (find_target_at): New function.
13118 * target.h (find_target_at): Declare.
13119
6a109b6b
TT
131202014-02-19 Tom Tromey <tromey@redhat.com>
13121
13122 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13123 Add 'ops' argument.
13124 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13125 'ops' argument.
13126 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13127 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13128 'ops' argument.
13129 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13130 argument.
13131 * linux-nat.c (save_sigtrap): Update.
13132 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13133 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13134 (linux_nat_close): Update.
13135 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13136 argument.
13137 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13138 argument.
13139 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13140 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13141 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13142 (tmp_to_async): Add 'ops' argument.
13143 (record_full_stopped_by_watchpoint, record_full_async)
13144 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13145 argument.
13146 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13147 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13148 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13149 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13150 (remote_is_async_p, remote_async): Add 'ops' argument.
13151 (remote_stopped_data_address): Update.
13152 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13153 * target.c (update_current_target)
13154 (find_default_can_async_p, find_default_is_async_p): Update.
13155 (init_dummy_target): Update.
13156 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13157 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13158 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13159 (target_can_async_p, target_is_async_p, target_async)
13160 (target_stopped_by_watchpoint): Update.
13161
e095146b
YQ
131622014-02-19 Yao Qi <yao@codesourcery.com>
13163
13164 PR gdb/16220
13165 * gdbarch.sh: Remove startup_gdbarch.
13166 * gdbarch.c: Regenerated.
13167 * gdbarch.h: Likewise.
13168
bc3c6b36
KB
131692014-02-17 Kevin Buettner <kevinb@redhat.com>
13170
13171 * rl78-tdep.c (rl78_g10_register_name): New function.
13172 (rl78_return_value): Add g10 support.
13173 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13174 g10.
13175
98dc0167 131762014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13177
13178 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13179 (SUBDIR_GUILE_SRCS): Ditto.
13180 (scm-gsmob.o): Ditto.
13181
842c05cd
YQ
131822014-02-17 Yao Qi <yao@codesourcery.com>
13183
13184 * gnu-nat.c (ILL_RPC): Declare defined function.
13185
25c0bd04
YQ
131862014-02-17 Yao Qi <yao@codesourcery.com>
13187
13188 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13189 mach_msg_type_number_t.
13190 (gnu_write_inferior): Likewise.
13191
a9a758e3
YQ
131922014-02-17 Yao Qi <yao@codesourcery.com>
13193
13194 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13195 in format string.
13196 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13197 (inf_validate_procs, inf_signal): Likewise.
13198 (S_exception_raise_request): Likewise.
13199 (do_mach_notify_dead_name): Likewise.
13200 (steal_exc_port): Likewise.
13201 (gnu_read_inferior): Change 'copy_count''s type to
13202 mach_msg_type_number_t.
13203 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13204 format string.
13205
bae8023e
TS
132062014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13207
c82f56d9
TS
13208 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13209 flag. Adjust all users; in particular...
13210 (gnu_wait): ..., don't decrement its value in here...
13211 (gnu_create_inferior): ..., and instead set the flag in here,
13212 around the startup_inferior call, and call that one with
13213 START_INFERIOR_TRAPS_EXPECTED.
13214
3398af6a
TS
13215 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13216 (ILL_RPC): ... new macro.
13217 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13218 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13219 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13220 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13221 functions with ILL_RPC macro.
13222 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13223 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13224 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13225 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13226 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13227 (S_proc_getlogin_reply, S_proc_getsid_reply)
13228 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13229 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13230 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13231 (S_proc_getnports_reply, S_proc_is_important_reply)
13232 (S_proc_get_code_reply): New stub functions, generated with
13233 ILL_RPC macro.
13234
d47642c9
TS
13235 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13236 collected the type check structures.
13237
bae8023e
TS
13238 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13239
8a55ffb0
DE
132402014-02-14 Doug Evans <dje@google.com>
13241
13242 * target.c (target_write_partial): Fix result type.
13243
c2853f3d
JM
132442014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13245
13246 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13247 the proper offsets to access fpregset_t.
13248
ac61d2db
SA
132492014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13250
13251 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13252 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13253 * h8300-tdep.c (setmachinelist): Remove global.
13254 * hppa-tdep.c (hppa_sigtramp): Remove global.
13255 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13256 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13257 * ravenscar-thread.c (update_target_observer): Remove global.
13258 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13259
9d2d0b8b
TT
132602014-02-12 Tom Tromey <tromey@redhat.com>
13261
13262 * common/rsp-low.c: Update comments.
13263 * common/rsp-low.h: Update comments.
13264
a7191e8b
TT
132652014-02-12 Tom Tromey <tromey@redhat.com>
13266
13267 * common/rsp-low.c (convert_ascii_to_int): Remove.
13268 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13269
ff0e980e
TT
132702014-02-12 Tom Tromey <tromey@redhat.com>
13271
13272 * common/rsp-low.h (unhexify): Don't declare.
13273 * common/rsp-low.c (unhexify): Remove.
13274
e9371aff
TT
132752014-02-12 Tom Tromey <tromey@redhat.com>
13276
13277 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13278 * common/rsp-low.c (convert_int_to_ascii): Remove.
13279
971dc0b8
TT
132802014-02-12 Tom Tromey <tromey@redhat.com>
13281
13282 * common/rsp-low.h (hexify): Don't declare.
13283 * common/rsp-low.c (hexify): Remove.
13284
0a822afb
TT
132852014-02-12 Tom Tromey <tromey@redhat.com>
13286
13287 * common/rsp-low.c (hexify): Never take strlen of argument.
13288
9f1b45b0
TT
132892014-02-12 Tom Tromey <tromey@redhat.com>
13290
13291 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13292 * remote.c (extended_remote_run, remote_rcmd)
13293 (remote_download_trace_state_variable, remote_save_trace_data)
13294 (remote_set_trace_notes): Update.
13295 * tracepoint.c (encode_source_string, tfile_write_status)
13296 (tfile_write_uploaded_tsv): Update.
13297
9c3d6531
TT
132982014-02-12 Tom Tromey <tromey@redhat.com>
13299
13300 * tracepoint.c: Include rsp-low.h.
13301 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13302 * remote.c: Include rsp-low.h.
13303 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13304 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13305 (remote_unescape_input): Move to common/rsp-low.c.
13306 * common/rsp-low.h: New file.
13307 * common/rsp-low.c: New file.
13308 * Makefile.in (SFILES): Add common/rsp-low.c.
13309 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13310 (COMMON_OBS): Add rsp-low.o.
13311 (rsp-low.o): New target.
13312
01fd3ea5
TT
133132014-02-12 Tom Tromey <tromey@redhat.com>
13314
13315 * utils.h: Include print-utils.h.
13316 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13317 (int_string, core_addr_to_string, core_addr_to_string_nz)
13318 (hex_string, hex_string_custom): Don't declare.
13319 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13320 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13321 (hex_string_custom, int_string, core_addr_to_string)
13322 (core_addr_to_string_nz, host_address_to_string): Move to
13323 common/print-utils.c.
13324 * common/print-utils.h: New file.
13325 * common/print-utils.c: New file
13326 * Makefile.in (SFILES): Add common/print-utils.c.
13327 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13328 (COMMON_OBS): Add print-utils.o.
13329 (print-utils.o): New target.
13330
9fb50108
TT
133312014-02-12 Tom Tromey <tromey@redhat.com>
13332
13333 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13334
0548b5db
MK
133352014-02-12 Mark Kettenis <kettenis@gnu.org>
13336
13337 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13338
493443a4
MK
133392014-02-12 Mark Kettenis <kettenis@gnu.org>
13340
13341 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13342 if a PT_IO ptrace request returns sucessfully but indicates that 0
13343 bytes were transferred.
13344
706d0883
PA
133452014-02-12 Pedro Alves <palves@redhat.com>
13346 Kevin Buettner <kevinb@redhat.com>
13347
13348 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13349 TYPE_INSTANCE_FLAG_CODE_SPACE.
13350
5caa2f0b
PA
133512014-02-12 Pedro Alves <palves@redhat.com>
13352
13353 * h8300-tdep.c (pseudo_from_raw_register)
13354 (raw_from_pseudo_register): New functions.
13355 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13356 them.
13357
76fd5f74
PA
133582014-02-12 Pedro Alves <palves@redhat.com>
13359
13360 * h8300-tdep.c (h8300_register_sim_regno): New function.
13361 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13362 gdbarch_register_sim_regno hook.
13363
8f008406
SA
133642014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13365
13366 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13367
195abc10
SA
133682014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13369
13370 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13371
93ffa5b9
MK
133722014-02-12 Mark Kettenis <kettenis@gnu.org>
13373
13374 * obsd-tdep.h (obsd_init_abi): New prototype.
13375 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13376 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13377 (obsd_init_abi): New functions.
13378 * i386obsd-tdep.c: Include "obsd-tdep.h".
13379 (i386obsd_init_abi): Call obsd_init_abi.
13380 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13381 (amd64obsd_init_abi): Call obsd_init_abi.
13382 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13383 obsd-tdep.c to gdb_target_obs.
13384
49caec94
JM
133852014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13386
13387 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13388 double float arguments to 16-byte in the argument slots.
13389
e1402065
DE
133902014-02-11 Doug Evans <xdje42@gmail.com>
13391
13392 * configure.ac: Don't crash if pkg-config is not found and guile
13393 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13394 in guile checks.
13395 * configure: Regenerate.
13396
edcc890f
YQ
133972014-02-11 Yao Qi <yao@codesourcery.com>
13398
13399 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13400 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13401 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13402 * gnu-nat.c (gnu_xfer_memory): Likewise.
13403 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13404 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13405 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13406 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13407
9b409511
YQ
134082014-02-11 Yao Qi <yao@codesourcery.com>
13409
13410 * target.h (enum target_xfer_error): Rename to ...
13411 (enum target_xfer_status): ... it. New. All users updated.
13412 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13413 New.
13414 (TARGET_XFER_STATUS_ERROR_P): New macro.
13415 (target_xfer_error_to_string): Remove declaration.
13416 (target_xfer_status_to_string): Declare.
13417 (target_xfer_partial_ftype): Adjust it.
13418 (struct target_ops) <to_xfer_partial>: Return
13419 target_xfer_status. Add argument xfered_len. Update
13420 comments.
13421 * target.c (target_xfer_error_to_string): Rename to ...
13422 (target_xfer_status_to_string): ... it. New. All callers
13423 updated.
13424 (target_read_live_memory): Likewise. Call target_xfer_partial
13425 instead of target_read.
13426 (memory_xfer_live_readonly_partial): Return
13427 target_xfer_status. Add argument xfered_len.
13428 (raw_memory_xfer_partial): Likewise.
13429 (memory_xfer_partial_1): Likewise.
13430 (memory_xfer_partial): Likewise.
13431 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13432 properly. Update debug message.
13433 (default_xfer_partial, current_xfer_partial): Likewise.
13434 (target_write_partial): Likewise.
13435 (target_read_partial): Likewise. All callers updated.
13436 (read_whatever_is_readable): Likewise.
13437 (target_write_with_progress): Likewise.
13438 (target_read_alloc_1): Likewise.
13439
13440 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13441 * auxv.c (procfs_xfer_auxv): Likewise.
13442 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13443 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13444 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13445 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13446 * corefile.c (read_memory): Adjust.
13447 * corelow.c (core_xfer_partial): Likewise.
13448 * ctf.c (ctf_xfer_partial): Likewise.
13449 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13450 updated.
13451 (darwin_xfer_partial): Likewise.
13452 * exec.c (section_table_xfer_memory_partial): Likewise. All
13453 callers updated.
13454 (exec_xfer_partial): Likewise.
13455 * exec.h (section_table_xfer_memory_partial): Update
13456 declaration.
13457 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13458 negative.
13459 (gnu_xfer_partial): Likewise.
13460 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13461 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13462 (ia64_hpux_xfer_solib_got): Likewise.
13463 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13464 type of 'partial_len' to ULONGEST.
13465 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13466 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13467 (linux_nat_xfer_partial): Likewise.
13468 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13469 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13470 * monitor.c (monitor_xfer_memory): Likewise.
13471 (monitor_xfer_partial): Likewise.
13472 * procfs.c (procfs_xfer_partial): Likewise.
13473 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13474 * record-full.c (record_full_xfer_partial): Likewise.
13475 (record_full_core_xfer_partial): Likewise.
13476 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13477 (gdbsim_xfer_partial): Likewise.
13478 * remote.c (remote_write_bytes_aux): Likewise. All callers
13479 updated.
13480 (remote_write_bytes, remote_read_bytes): Likewise. All
13481 callers updated.
13482 (remote_flash_erase): Likewise. All callers updated.
13483 (remote_write_qxfer): Likewise. All callers updated.
13484 (remote_read_qxfer): Likewise. All callers updated.
13485 (remote_xfer_partial): Likewise.
13486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13487 (rs6000_xfer_shared_libraries): Likewise.
13488 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13489 (sol_thread_xfer_partial): Likewise.
13490 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13491 (sparc_xfer_partial): Likewise.
13492 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13493 updated.
13494 (spu_xfer_partial): Likewise.
13495 * spu-multiarch.c (spu_xfer_partial): Likewise.
13496 * tracepoint.c (tfile_xfer_partial): Likewise.
13497 * windows-nat.c (windows_xfer_memory): Likewise.
13498 (windows_xfer_shared_libraries): Likewise.
13499 (windows_xfer_partial): Likewise.
13500 * valprint.c: Replace 'target_xfer_error' with
13501 'target_xfer_status' in comments.
13502
a8e63083
JB
135032014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13504
13505 Checked in by Joel Brobecker <brobecker@adacore.com>.
13506 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13507
e86b67d3
JB
135082014-02-11 Joel Brobecker <brobecker@adacore.com>
13509
13510 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13511 function parameters.
13512
4b7d1f7f
WN
135132014-02-10 Will Newton <will.newton@linaro.org>
13514
13515 * elfread.c (elf_rel_plt_read): Look for a .got section if
13516 looking up .got.plt fails.
13517 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13518 on address passed to elf_gnu_ifunc_record_cache.
13519 (elf_gnu_ifunc_resolve_addr): Likewise.
13520 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13521
961842b2
JM
135222014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13523
13524 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13525 (X_RETTURN): New macro.
13526 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13527
13528 * sparc64-tdep.c (sparc64_init_abi): Hook
13529 sparc_in_function_epilogue_p.
13530
3f03e7b1
GB
135312014-02-10 Gary Benson <gbenson@redhat.com>
13532
13533 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13534 Rename name_matcher to symbol_matcher.
13535
96f861ef
GB
135362014-02-10 Gary Benson <gbenson@redhat.com>
13537
13538 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13539 Use expand_symtabs_file_matcher_ftype and
13540 expand_symtabs_symbol_matcher_ftype.
13541
ee01b665
JB
135422014-02-10 Joel Brobecker <brobecker@adacore.com>
13543
13544 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13545 (struct ada_symbol_cache): New.
13546 (ada_free_symbol_cache): Forward declare.
13547 (struct ada_pspace_data): New.
13548 (ada_pspace_data_handle): New static global.
13549 (get_ada_pspace_data, ada_pspace_data_cleanup)
13550 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13551 (cache_space, cache): Delete, now folded inside struct
13552 ada_pspace_data.
13553 (ada_get_symbol_cache): New function.
13554 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13555 implementation.
13556 (_initialize_ada_language): Remove initialization of cache_space.
13557 Move call to observer_attach_inferior_exit up, grouping it
13558 with the other observer registrations inside this function.
13559 Rename command to be more general. Add call to
13560 register_program_space_data_with_cleanup.
13561
143adbbf
JB
135622014-02-10 Joel Brobecker <brobecker@adacore.com>
13563
13564 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13565 ada_new_objfile_observer.
13566 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13567 (_initialize_tasks): Update uses of ada_new_objfile_observer
13568 and ada_tasks_normal_stop_observer.
13569
aa4fb036
JB
135702014-02-10 Joel Brobecker <brobecker@adacore.com>
13571
13572 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13573 returned by the 'Length attribute to integer.
13574
9dee8cc6
JB
135752014-02-10 Joel Brobecker <brobecker@adacore.com>
13576
13577 * ada-lang.c (_initialize_ada_language): Initialize
13578 cache_space obstack.
13579
3d9434b5
JB
135802014-02-10 Joel Brobecker <brobecker@adacore.com>
13581
13582 * ada-lang.c (HASH_SIZE): New macro.
13583 (struct cache_entry): New type.
13584 (cache_space, cache): New static globals.
13585 (ada_clear_symbol_cache, find_entry): New functions.
13586 (lookup_cached_symbol, cache_symbol): Implement.
13587 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13588 (_initialize_ada_language): Attach ada_new_objfile_observer
13589 and ada_free_objfile_observer.
13590
f0c5f9b2
JB
135912014-02-10 Joel Brobecker <brobecker@adacore.com>
13592
13593 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13594 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13595 struct block * parameter.
13596 (ada_lookup_symbol_list_worker): Constify local variable "block".
13597 Remove cast which is no longer necessary.
13598
ed3ef339
DE
135992014-02-10 Doug Evans <xdje42@gmail.com>
13600
13601 Add Guile as an extension language.
13602 * NEWS: Mention Guile scripting.
13603 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13604 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13605 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13606 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13607 (CLIBS): Add GUILE_LIBS.
13608 (install-guile): New rule.
13609 (guile.o): New rule.
13610 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13611 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13612 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13613 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13614 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13615 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13616 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13617 * configure.ac: New option --with-guile.
13618 * configure: Regenerate.
13619 * config.in: Regenerate.
13620 * auto-load.c: Remove #include "python/python.h". Add #include
13621 "gdb/section-scripts.h".
13622 (source_section_scripts): Handle Guile scripts.
13623 (_initialize_auto_load): Add name of Guile objfile script to
13624 scripts-directory help text.
13625 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13626 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13627 (struct breakpoint): New member scm_bp_object.
13628 * defs.h (enum command_control_type): New value guile_control.
13629 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13630 "extension.h".
13631 (show_user): Update comment.
13632 (_initialize_cli_cmds): Update help text for "show user". Update help
13633 text for max-user-call-depth.
13634 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13635 "extension.h".
13636 (multi_line_command_p): Add guile_control.
13637 (print_command_lines): Handle guile_control.
13638 (execute_control_command, recurse_read_control_structure): Ditto.
13639 (process_next_line): Recognize "guile" commands.
13640 * disasm.c (gdb_disassemble_info): Make non-static.
13641 * disasm.h: #include "dis-asm.h".
13642 (struct gdbarch): Add forward decl.
13643 (gdb_disassemble_info): Declare.
13644 * extension.c: #include "guile/guile.h".
13645 (extension_languages): Add guile.
13646 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13647 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13648 * gdbtypes.c (get_unsigned_type_max): New function.
13649 (get_signed_type_minmax): New function.
13650 * gdbtypes.h (get_unsigned_type_max): Declare.
13651 (get_signed_type_minmax): Declare.
13652 * guile/README: New file.
13653 * guile/guile-internal.h: New file.
13654 * guile/guile.c: New file.
13655 * guile/guile.h: New file.
13656 * guile/scm-arch.c: New file.
13657 * guile/scm-auto-load.c: New file.
13658 * guile/scm-block.c: New file.
13659 * guile/scm-breakpoint.c: New file.
13660 * guile/scm-disasm.c: New file.
13661 * guile/scm-exception.c: New file.
13662 * guile/scm-frame.c: New file.
13663 * guile/scm-gsmob.c: New file.
13664 * guile/scm-iterator.c: New file.
13665 * guile/scm-lazy-string.c: New file.
13666 * guile/scm-math.c: New file.
13667 * guile/scm-objfile.c: New file.
13668 * guile/scm-ports.c: New file.
13669 * guile/scm-pretty-print.c: New file.
13670 * guile/scm-safe-call.c: New file.
13671 * guile/scm-string.c: New file.
13672 * guile/scm-symbol.c: New file.
13673 * guile/scm-symtab.c: New file.
13674 * guile/scm-type.c: New file.
13675 * guile/scm-utils.c: New file.
13676 * guile/scm-value.c: New file.
13677 * guile/lib/gdb.scm: New file.
13678 * guile/lib/gdb/boot.scm: New file.
13679 * guile/lib/gdb/experimental.scm: New file.
13680 * guile/lib/gdb/init.scm: New file.
13681 * guile/lib/gdb/iterator.scm: New file.
13682 * guile/lib/gdb/printing.scm: New file.
13683 * guile/lib/gdb/types.scm: New file.
13684 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13685 (VPATH): Add $(GUILE_SRCDIR).
13686 (GUILE_DIR): New variable.
13687 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13688 (all): Add stamp-guile dependency.
13689 (stamp-guile): New rule.
13690 (clean-guile, install-guile, uninstall-guile): New rules.
13691 (install-only): Add install-guile dependency.
13692 (uninstall): Add uninstall-guile dependency.
13693 (clean): Add clean-guile dependency.
13694
ac020ec5
DE
136952014-02-09 Doug Evans <xdje42@gmail.com>
13696
13697 Revert this patch (which I approved, mea culpa).
13698
13699 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13700
13701 * Makefile.in (all-lib): Remove.
13702 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13703
2a081c59
JK
137042014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13705
13706 Fix Python stack corruption.
13707 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13708 gdb_py_longest.
13709
0a6bd22d
MK
137102014-02-08 Mark Kettenis <kettenis@gnu.org>
13711
13712 * Makefile.in (all-lib): Remove.
13713 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13714
1a860409
DE
137152014-02-07 Doug Evans <dje@google.com>
13716
13717 * extension-priv.h (extension_language_script_ops): Add comment.
13718 (extension_language_ops): Add comment.
caf5a491 13719 (active_ext_lang_state): Fix typo in comment.
1a860409 13720
d137e6dc
PA
137212014-02-07 Pedro Alves <palves@redhat.com>
13722
0dcb32c3 13723 PR breakpoints/16292
d137e6dc
PA
13724 * infrun.c (handle_signal_stop) <signal arrives while stepping
13725 over a breakpoint>: Switch back to the stepping thread.
13726
ce6d0892
YQ
137272014-02-07 Yao Qi <yao@codesourcery.com>
13728
13729 * target.c (target_xfer_partial): Return zero if LEN is zero.
13730
2ed4b548
YQ
137312014-02-07 Yao Qi <yao@codesourcery.com>
13732
13733 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13734 (ld_so_xfer_auxv): Likewise.
13735 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13736 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13737 * corelow.c (core_xfer_partial): Likewise.
13738 * ctf.c (ctf_xfer_partial): Likewise.
13739 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13740 (darwin_xfer_partial): Likewise.
13741 * exec.c (exec_xfer_partial): Likewise.
13742 * gnu-nat.c (gnu_xfer_partial): Likewise.
13743 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13744 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13745 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13746 * linux-nat.c (linux_xfer_siginfo): Likewise.
13747 (linux_proc_xfer_spu): Likewise.
13748 * procfs.c (procfs_xfer_partial): Likewise.
13749 * record-full.c (record_full_xfer_partial): Likewise.
13750 (record_full_core_xfer_partial): Likewise.
13751 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13752 * remote.c (remote_write_qxfer): Likewise.
13753 (remote_write_qxfer, remote_read_qxfer): Likewise.
13754 (remote_xfer_partial): Likewise.
13755 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13756 (rs6000_xfer_shared_libraries): Likewise.
13757 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13758 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13759 (spu_xfer_partial): Likewise.
13760 * target.c (memory_xfer_partial_1): Likewise.
13761 * tracepoint.c (tfile_xfer_partial): Likewise.
13762 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13763 (windows_xfer_partial): Likewise.
13764
c09f20e4
YQ
137652014-02-07 Yao Qi <yao@codesourcery.com>
13766
13767 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13768 comments.
13769 (core_xfer_shared_libraries_aix): Likewise.
13770 * gdbarch.c, gdbarch.h: Regenerated.
13771 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13772 ULONGEST. Change 'len_avail' type to ULONGEST.
13773 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13774 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13775 declaration.
13776 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13777
8635b3bf
YQ
137782014-02-07 Yao Qi <yao@codesourcery.com>
13779
13780 * corefile.c (memory_error): Get 'exception' from ERR and pass
13781 'exception' to throw_error.
13782
6dddc817
DE
137832014-02-06 Doug Evans <xdje42@gmail.com>
13784
13785 * configure.ac (libpython checking): Remove all but python.o from
13786 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13787 * configure: Regenerate.
13788
13789 * Makefile.in (SFILES): Add extension.c.
13790 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13791 (COMMON_OBS): Add extension.o.
13792 * extension.h: New file.
13793 * extension-priv.h: New file.
13794 * extension.c: New file.
13795
13796 * python/python-internal.h: #include "extension.h".
13797 (gdbpy_auto_load_enabled): Declare.
13798 (gdbpy_apply_val_pretty_printer): Declare.
13799 (gdbpy_apply_frame_filter): Declare.
13800 (gdbpy_preserve_values): Declare.
13801 (gdbpy_breakpoint_cond_says_stop): Declare.
13802 (gdbpy_breakpoint_has_cond): Declare.
13803 (void source_python_script_for_objfile): Delete.
13804 * python/python.c: #include "extension-priv.h".
13805 Delete inclusion of "observer.h".
13806 (extension_language_python): Moved here and renamed from
13807 script_language_python in py-auto-load.c.
13808 Redefined to be of type extension_language_defn.
13809 (python_extension_script_ops): New global.
13810 (python_extension_ops): New global.
13811 (struct python_env): New member previous_active.
13812 (restore_python_env): Call restore_active_ext_lang.
13813 (ensure_python_env): Call set_active_ext_lang.
13814 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13815 New arg extlang.
13816 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13817 New arg extlang.
13818 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13819 New arg extlang.
13820 (gdbpy_eval_from_control_command): Renamed from
13821 eval_python_from_control_command, made static. New arg extlang.
13822 (gdbpy_source_script) Renamed from source_python_script, made static.
13823 New arg extlang.
13824 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13825 result to int. New arg extlang.
13826 (gdbpy_source_objfile_script): Renamed from
13827 source_python_script_for_objfile, made static. New arg extlang.
13828 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13829 static. New args extlang, extlang_printers. Change result type to
13830 "void".
13831 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13832 static. New arg extlang. Rename arg printers to extlang_printers
13833 and change type to ext_lang_type_printers *.
13834 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13835 static. Replace argument arg with extlang, extlang_printers.
13836 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13837 (!HAVE_PYTHON, source_python_script): Delete.
13838 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13839 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13840 (!HAVE_PYTHON, start_type_printers): Delete.
13841 (!HAVE_PYTHON, apply_type_printers): Delete.
13842 (!HAVE_PYTHON, free_type_printers): Delete.
13843 (_initialize_python): Delete call to observer_attach_before_prompt.
13844 (finalize_python): Set/restore active extension language.
13845 (gdbpy_finish_initialization) Renamed from
13846 finish_python_initialization, made static. New arg extlang.
13847 (gdbpy_initialized): New function.
13848 * python/python.h: #include "extension.h". Delete #include
13849 "value.h", "mi/mi-cmds.h".
13850 (extension_language_python): Declare.
13851 (GDBPY_AUTO_FILE_NAME): Delete.
13852 (enum py_bt_status): Moved to extension.h and renamed to
13853 ext_lang_bt_status.
13854 (enum frame_filter_flags): Moved to extension.h.
13855 (enum py_frame_args): Moved to extension.h and renamed to
13856 ext_lang_frame_args.
13857 (finish_python_initialization): Delete.
13858 (eval_python_from_control_command): Delete.
13859 (source_python_script): Delete.
13860 (apply_val_pretty_printer): Delete.
13861 (apply_frame_filter): Delete.
13862 (preserve_python_values): Delete.
13863 (gdbpy_script_language_defn): Delete.
13864 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13865 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13866
13867 * auto-load.c: #include "extension.h".
13868 (GDB_AUTO_FILE_NAME): Delete.
13869 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13870 (script_language_gdb): Delete, moved to extension.c and renamed to
13871 extension_language_gdb.
13872 (source_gdb_script_for_objfile): Delete.
13873 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13874 (loaded_script): Change type of language member to
13875 struct extension_language_defn *.
13876 (init_loaded_scripts_info): Initialize
13877 unsupported_script_warning_printed.
13878 (maybe_add_script): Make static. Change type of language arg to
13879 struct extension_language_defn *.
13880 (clear_section_scripts): Reset unsupported_script_warning_printed.
13881 (auto_load_objfile_script_1): Rewrite to use extension language API.
13882 (auto_load_objfile_script): Make public. Remove support-compiled-in
13883 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13884 (source_section_scripts): Rewrite to use extension language API.
13885 (load_auto_scripts_for_objfile): Rewrite to use
13886 auto_load_scripts_for_objfile.
13887 (collect_matching_scripts_data): Change type of language member to
13888 struct extension_language_defn *.
13889 (auto_load_info_scripts): Change type of language arg to
13890 struct extension_language_defn *.
13891 (unsupported_script_warning_print): New function.
13892 (script_not_found_warning_print): Make static.
13893 (_initialize_auto_load): Rewrite construction of scripts-directory
13894 help.
13895 * auto-load.h (struct objfile): Add forward decl.
13896 (struct script_language): Delete.
13897 (struct auto_load_pspace_info): Add forward decl.
13898 (struct extension_language_defn): Add forward decl.
13899 (maybe_add_script): Delete.
13900 (auto_load_objfile_script): Declare.
13901 (script_not_found_warning_print): Delete.
13902 (auto_load_info_scripts): Update prototype.
13903 (auto_load_gdb_scripts_enabled): Declare.
13904 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13905 auto_load_python_scripts_enabled and made public.
13906 (script_language_python): Delete, moved to python.c.
13907 (gdbpy_script_language_defn): Delete.
13908 (info_auto_load_python_scripts): Update to use
13909 extension_language_python.
13910
13911 * breakpoint.c (condition_command): Replace call to
13912 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13913 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13914 with call to breakpoint_ext_lang_cond_says_stop.
13915 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13916 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13917 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13918 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13919 New arg slang.
13920 (local_setattro): Print name of extension language with existing
13921 stop condition.
13922
13923 * valprint.c (val_print, value_print): Update to call
13924 apply_ext_lang_val_pretty_printer.
13925 * cp-valprint.c (cp_print_value): Update call to
13926 apply_ext_lang_val_pretty_printer.
13927 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13928 (gdbpy_apply_val_pretty_printer): Renamed from
13929 apply_val_pretty_printer. New arg extlang.
13930 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13931
13932 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13933 extension language API.
13934 * cli/cli-script.c (execute_control_command): Update to call
13935 eval_ext_lang_from_control_command.
13936
13937 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13938 enum ext_lang_bt_status values. Update call to
13939 apply_ext_lang_frame_filter.
13940 (mi_cmd_stack_list_locals): Ditto.
13941 (mi_cmd_stack_list_args): Ditto.
13942 (mi_cmd_stack_list_variables): Ditto.
13943 * mi/mi-main.c: Delete #include "python/python-internal.h".
13944 Add #include "extension.h".
13945 (mi_cmd_list_features): Replace reference to python internal variable
13946 gdb_python_initialized with call to ext_lang_initialized_p.
13947
13948 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13949 Update to use enum ext_lang_frame_args. Update to call
13950 apply_ext_lang_frame_filter.
13951 * python/py-framefilter.c (extract_sym): Update to use enum
13952 ext_lang_bt_status.
13953 (extract_value, py_print_type, py_print_value): Ditto.
13954 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13955 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13956 (py_print_frame): Ditto.
13957 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13958 New arg extlang. Update to use enum ext_lang_bt_status.
13959
13960 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13961 finish_python_initialization. Replace with call to
13962 finish_ext_lang_initialization.
13963
13964 * typeprint.c (do_free_global_table): Update to call
13965 free_ext_lang_type_printers.
13966 (create_global_typedef_table): Update to call
13967 start_ext_lang_type_printers.
13968 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13969 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13970 (type_print_options): Change type of global_printers from "void *"
13971 to "struct ext_lang_type_printers *".
13972
13973 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13974 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13975 (gdbpy_preserve_values): Renamed from preserve_python_values.
13976 New arg extlang.
13977 (!HAVE_PYTHON, preserve_python_values): Delete.
13978
13979 * utils.c (quit_flag): Delete, moved to extension.c.
13980 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13981 extension.c.
13982
13983 * eval.c: Delete #include "python/python.h".
13984 * main.c: Delete #include "python/python.h".
13985
13986 * defs.h: Update comment.
13987
6af79985
JB
139882014-02-06 Joel Brobecker <brobecker@adacore.com>
13989
13990 GDB 7.7 released.
13991
12c5175d
MK
139922014-02-05 Mark Kettenis <kettenis@gnu.org>
13993
13994 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13995 defined.
13996
8dc5b319
YQ
139972014-02-05 Yao Qi <yao@codesourcery.com>
13998
13999 * remote.c (remote_pass_signals): Remove local 'buf' and use
14000 rs->buf.
14001 (remote_program_signals): Likewise.
14002
de7b2893
YQ
140032014-02-05 Yao Qi <yao@codesourcery.com>
14004
14005 * ctf.c: Include "inferior.h" and "gdbthread.h".
14006 (CTF_PID): A new macro.
14007 (ctf_open): Call inferior_appeared and add_thread_silent.
14008 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14009 (ctf_thread_alive): New function.
14010 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14011
66d032ac
YQ
140122014-02-05 Yao Qi <yao@codesourcery.com>
14013
14014 Revert this patch:
14015
14016 2013-05-24 Yao Qi <yao@codesourcery.com>
14017
14018 * tracepoint.c (TFILE_PID): Remove.
14019 (tfile_open): Don't add thread and inferior.
14020 (tfile_close): Don't set 'inferior_ptid'. Don't call
14021 exit_inferior_silent.
14022 (tfile_thread_alive): Remove.
14023 (init_tfile_ops): Don't set field 'to_thread_alive' of
14024 tfile_ops.
14025
f4ccffad
CE
140262014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14027
14028 * remote.c (remote_start_remote): Call remote_check_symbols even
14029 if only symbol-file (not file) has been given.
14030
591a12a1
UW
140312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14032
14033 * gdbarch.sh (skip_entrypoint): New callback.
14034 * gdbarch.c, gdbarch.h: Regenerate.
14035 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14036 * infrun.c (fill_in_stop_func): Likewise.
14037 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14038 (ppc_elfv2_elf_make_msymbol_special): New function.
14039 (ppc_elfv2_skip_entrypoint): Likewise.
14040 (ppc_linux_init_abi): Install them for ELFv2.
14041
cc0e89c5
UW
140422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14043
14044 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14045 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14046 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14047 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14048 structures returned in GPRs.
14049
52f548e4
UW
140502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14051
14052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14053 offset to the stack parameter list for the ELFv2 ABI.
14054
d4094b6a
UW
140552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14056
14057 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14058 set_gdbarch_convert_from_func_ptr_addr and
14059 set_gdbarch_elf_make_msymbol_special for ELFv1.
14060 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14061 function descriptors on ELFv1.
14062 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14063 set up r12 at function entry.
14064
cd453cd0
UW
140652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14066
14067 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14068 (struct gdbarch_tdep): New member elf_abi.
14069
14070 * rs6000-tdep.c: Include "elf/ppc64.h".
14071 (rs6000_gdbarch_init): Detect ELF ABI version.
14072
0ff3e01f
UW
140732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14074
14075 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14076 within a register pair holding a DFP 128-bit value on little-endian.
14077 (ppc64_sysv_abi_return_value_base): Likewise.
14078 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14079 (dfp_pseudo_register_write): Likewise.
14080
5b757e5d
UW
140812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14082
14083 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14084 offset on little-endian when passing _Decimal32.
14085 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14086
084ee545
UW
140872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14088
14089 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14090 of the overlapped FP register within the VSX register on little-
14091 endian platforms.
14092 (efpr_pseudo_register_write): Likewise.
14093
d63167af
UW
140942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14095
14096 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14097 offset on little-endian when passing small structures.
14098
e765b44c
UW
140992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14100
14101 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14102 (struct ppc64_sysv_argpos): New data structure.
14103 (ppc64_sysv_abi_push_float): Remove.
14104 (ppc64_sysv_abi_push_val): New function.
14105 (ppc64_sysv_abi_push_integer): Likewise.
14106 (ppc64_sysv_abi_push_freg): Likewise.
14107 (ppc64_sysv_abi_push_vreg): Likewise.
14108 (ppc64_sysv_abi_push_param): Likewise.
14109 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14110 (ppc64_sysv_abi_return_value_base): New function.
14111 (ppc64_sysv_abi_return_value): Refactor to use it.
14112
36c24d95
UW
141132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14114
14115 * NEWS: Document new target powerpc64le-*-linux*.
14116
26fd9228
MK
141172014-02-04 Mark Kettenis <kettenis@gnu.org>
14118
14119 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14120 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14121 core dumps.
14122 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14123 register set used in ELF core dumps. Add floating-point register set.
14124
c5bb7362
KB
141252014-02-03 Kevin Buettner <kevinb@redhat.com>
14126
74228e77 14127 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14128 dwarf2_to_gdb[] table using symbolic constants. Adjust
14129 penultimate entry from number representing the PC register
14130 to symbolic constant representing the MDR register. Add
14131 constant for the PC register to the end of the table.
14132
af09351e
MK
141332014-02-03 Mark Kettenis <kettenis@gnu.org>
14134
14135 * bsd-kvm.c: Include <sys/param.h>
14136
8507e05d
MK
141372014-02-03 Mark Kettenis <kettenis@gnu.org>
14138
14139 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14140
ae56bfb8
JB
141412014-01-31 Joel Brobecker <brobecker@adacore.com>
14142
14143 * ada-lang.h (clear_ada_sym_cache): Delete.
14144
718ee4dc
UW
141452014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14146
14147 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14148
401e27fd
JM
141492014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14150
14151 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14152 the sigreturn register save area only if the syscall is
14153 sigreturn.
14154
a7c88acd
JB
141552014-01-29 Joel Brobecker <brobecker@adacore.com>
14156
14157 * valops.c (value_slice): Minor reformatting.
14158
fa0079ea
UW
141592014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14160
14161 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14162
c6044dd1
JB
141632014-01-28 Joel Brobecker <brobecker@adacore.com>
14164
14165 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14166 New static globals.
14167 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14168 (ada_ignore_descriptive_types_p): New static global.
14169 (find_parallel_type_by_descriptive_type): Return immediately
14170 if ada_ignore_descriptive_types_p is set.
14171 (_initialize_ada_language): Register new commands "maintenance
14172 set ada", "maintenance show ada", "maintenance set ada
14173 ignore-descriptive-types" and "maintenance show ada
14174 ignore-descriptive-types".
14175 * NEWS: Add entry for new "maint ada set/show
14176 ignore-descriptive-types" commands.
14177
568e808b
MM
141782014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14179
14180 * record-btrace.c (record_btrace_close): Call btrace_teardown
14181 for all threads.
14182
467d141b
JB
141832014-01-27 Joel Brobecker <brobecker@adacore.com>
14184
14185 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14186 "ui-out.h".
14187
fb151210
JB
141882014-01-27 Joel Brobecker <brobecker@adacore.com>
14189
14190 * ada-typeprint (type_is_full_subrange_of_target_type):
14191 New function.
14192 (print_range): Add parameter bounds_prefered_p. If not set,
14193 try printing range types using the name of their base type.
14194 (print_range_type): Add parameter bounds_prefered_p.
14195 Use it in call to print_range.
14196 (print_array_type, ada_print_type): Update calls to print_range
14197 and print_range_type.
14198
aba02109
JB
141992014-01-27 Joel Brobecker <brobecker@adacore.com>
14200
14201 * ada-typeprint.c (print_array_type, print_choices, print_range)
14202 (print_range_bound, print_dynamic_range_bound, print_range_type):
14203 Remove declaration.
14204
e62e21fd
JB
142052014-01-27 Joel Brobecker <brobecker@adacore.com>
14206
14207 * ada-typeprint.c (print_range): Add missing empty line
14208 after local declaration.
14209
859cf5d1
JB
142102014-01-27 Joel Brobecker <brobecker@adacore.com>
14211
14212 * ada-valprint.c (print_optional_low_bound): Get index_type's
14213 target type for as long as it is a TYPE_CODE_RANGE.
14214
25790f6f
JB
142152014-01-27 Joel Brobecker <brobecker@adacore.com>
14216
14217 * procfs.c (procfs_make_note_section): Remove assertion and
14218 associated comment.
14219
6b6aa828
YQ
142202014-01-24 Yao Qi <yao@codesourcery.com>
14221
14222 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14223 * corelow.c (get_core_siginfo): Likewise.
14224
5d6df423
YQ
142252014-01-24 Yao Qi <yao@codesourcery.com>
14226
14227 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14228 ULONGEST. Don't check 'len' is negative.
14229 (remote_write_bytes): Change type of 'len' to ULONGEST.
14230
83b645b8
TT
142312014-01-23 Tom Tromey <tromey@redhat.com>
14232
14233 PR python/16485:
14234 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14235 Handle exception from frame.block.
14236 (FrameVars.fetch_frame_locals): Likewise.
14237
0740f8d8
TT
142382014-01-23 Tom Tromey <tromey@redhat.com>
14239
14240 PR python/16487:
14241 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14242 on a NULL pointer. Move "goto error" to correct place.
14243
21909fa1
TT
142442014-01-23 Tom Tromey <tromey@redhat.com>
14245
14246 PR python/16491:
14247 * python/py-framefilter.c (apply_frame_filter): Call
14248 ensure_python_env after computing gdbarch.
14249
17fde6d0
YQ
142502014-01-23 Yao Qi <yao@codesourcery.com>
14251
14252 * target.c (raw_memory_xfer_partial): Change argument type
14253 from void * to gdb_byte *.
14254 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14255
87ce2a04
DE
142562014-01-22 Doug Evans <dje@google.com>
14257
14258 New gdbserver option --debug-format=timestamp.
14259 * NEWS: Mention it.
14260
237b092b
AA
142612014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14262
14263 * syscalls/s390x-linux.xml: New file.
14264 * syscalls/s390-linux.xml: New file.
14265 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14266 (XML_SYSCALL_FILENAME_S390X): Likewise.
14267 (op_svc): New enum value for SVC opcode.
14268 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14269 (s390_linux_get_syscall_number): New function.
14270 (s390_gdbarch_init): Register '*get_syscall_number' and the
14271 syscall xml file name.
14272 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14273 "s390-linux.xml" and "s390x-linux.xml".
14274 * NEWS: Announce new feature.
14275
54bff650
BS
142762014-01-22 Baruch Siach <baruch@tkos.co.il>
14277
14278 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14279
14e361d7
PA
142802014-01-22 Pedro Alves <palves@redhat.com>
14281
14282 * xtensa-config.c: Include defs.h.
14283
46bbb3ed
JB
142842014-01-22 Joel Brobecker <brobecker@adacore.com>
14285
14286 * common/common-utils.h: Add "ARI:" comment beside __func__
14287 reference.
14288
3a80edfc
JB
142892014-01-22 Joel Brobecker <brobecker@adacore.com>
14290
14291 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14292 documentation a bit.
14293
4869db5e
RM
142942014-01-21 Roland McGrath <mcgrathr@google.com>
14295
14296 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14297 * configure: Regenerate.
14298 * aclocal.m4: Regenerate.
14299 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14300 New substituted variables.
14301 (install-strip): New target.
14302 (INSTALL_SCRIPT): New substituted variable.
14303 (FLAGS_TO_PASS): Add it.
14304 (install-only): Use $(INSTALL_SCRIPT) rather than
14305 $(INSTALL_PROGRAM) for gcore.
14306
9ea4267d
TT
143072014-01-20 Tom Tromey <tromey@redhat.com>
14308
14309 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14310 together.
14311
1f2bdf09
TT
143122014-01-20 Tom Tromey <tromey@redhat.com>
14313
14314 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14315 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14316 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14317 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14318 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14319 (struct cmd_list_element) <flags>: Remove.
14320 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14321 doc_allocated>: New fields.
14322 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14323 bitfields.
14324 * maint.c (maintenance_do_deprecate): Update.
14325 * top.c (execute_command): Update.
14326
e671835b
BS
143272014-01-20 Baruch Siach <baruch@tkos.co.il>
14328
14329 * xtensa-linux-nat.c: Include asm/ptrace.h.
14330
50367cd2
IB
143312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14332
14333 * Makefile.in (SFILES): Add d-support.c.
14334 (COMMON_OBS): Add d-support.o.
14335 * d-lang.h (d_parse_symbol): Add comment, now defined in
14336 d-support.c.
14337 * d-lang.c (parse_call_convention)
14338 (parse_attributes, parse_function_types)
14339 (parse_function_args, parse_type, parse_identifier)
14340 (call_convention_p, d_parse_symbol): Move functions to ...
14341 * d-support.c: ... New file.
14342
ec9f644a
IB
143432014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14344
14345 * d-lang.h (d_parse_symbol): Add declaration.
14346 * d-lang.c (extract_identifiers)
14347 (extract_type_info): Remove functions.
14348 (parse_call_convention, parse_attributes)
14349 (parse_function_types, parse_function_args)
14350 (parse_type, parse_identifier, call_convention_p)
14351 (d_parse_symbol): New functions.
14352 (d_demangle): Use d_parse_symbol to demangle D symbols.
14353
94b1b47e
IB
143542014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14355
14356 * d-lang.h (struct builtin_d_type): New data type.
14357 (builtin_d_type): Add declaration.
14358 * d-lang.c (d_language_arch_info, build_d_types)
14359 (builtin_d_type): New functions.
14360 (enum d_primitive_types): New data type.
14361 (d_language_defn): Change c_language_arch_info to
14362 d_language_arch_info.
14363 (d_type_data): New static variable.
14364 (_initialize_d_language): Initialize d_type_data.
14365
63778547
IB
143662014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14367
14368 * d-lang.h (d_main_name): Add declaration.
14369 * d-lang.c (d_main_name): New function.
14370 * symtab.c (find_main_name): Add call to d_main_name.
14371
3271ba66
IB
143722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14373
14374 * d-lang.c (d_language_defn): Change macro_expansion_c to
14375 macro_expansion_no.
14376
d36b3012
IB
143772014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14378
14379 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14380
c90a6fb7
SDJ
143812014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14382
14383 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14384 gdb_exception" declaration.
14385 * remote.c (getpkt_or_notif_sane): Likewise.
14386
749234e5
DE
143872014-01-17 Doug Evans <dje@google.com>
14388
14389 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14390 function, contents of dirnames_to_char_ptr_vec_append moved here.
14391 (delim_string_to_char_ptr_vec): New function.
14392 (dirnames_to_char_ptr_vec_append): Rewrite.
14393 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14394
df049a58
DE
143952014-01-17 Doug Evans <dje@google.com>
14396
14397 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14398 and moved here ...
14399 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14400 #include "common-utils.h".
14401 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14402 * common/vec.h (VEC_ASSERT_PASS): Update.
14403 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14404 (MACH_CHECK_ERROR): Update.
14405
69f97648
SM
144062014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14407
14408 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14409 comments.
14410 * gdbarch.h: Regenerate.
14411
98b1cfdc
TT
144122014-01-16 Tom Tromey <tromey@redhat.com>
14413
14414 * value.c (struct value) <regnum>: Move earlier.
14415
77a19445
TT
144162014-01-16 Tom Tromey <tromey@redhat.com>
14417
14418 * remote.c (extended_remote_create_inferior): Rename from
14419 extended_remote_create_inferior_1. Add "ops" argument. Remove
14420 old implementation.
14421
62261490
PA
144222014-01-16 Pedro Alves <palves@redhat.com>
14423
14424 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14425 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14426 the backchain.
14427
4d65956b
DE
144282014-01-16 Doug Evans <dje@google.com>
14429
14430 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14431
52834460
MM
144322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14433
14434 * btrace.h (btrace_thread_flag): New.
14435 (struct btrace_thread_info) <flags>: New.
14436 * record-btrace.c (record_btrace_resume_thread)
14437 (record_btrace_find_thread_to_move, btrace_step_no_history)
14438 (btrace_step_stopped, record_btrace_start_replaying)
14439 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14440 (record_btrace_find_resume_thread): New.
14441 (record_btrace_resume, record_btrace_wait): Extend.
14442 (record_btrace_can_execute_reverse): New.
14443 (record_btrace_open): Fail in non-stop mode.
14444 (record_btrace_set_replay): Split into this, ...
14445 (record_btrace_stop_replaying): ... this, ...
14446 (record_btrace_clear_histories): ... and this.
14447 (init_record_btrace_ops): Init to_can_execute_reverse.
14448 * NEWS: Announce it.
14449
118e6252
MM
144502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14451
14452 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14453 (forward_target_decr_pc_after_break)
14454 (target_decr_pc_after_break): New.
14455 * target.c (forward_target_decr_pc_after_break)
14456 (target_decr_pc_after_break): New.
14457 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14458 instead of gdbarch_decr_pc_after_break.
14459 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14460 instead of gdbarch_decr_pc_after_break.
14461 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14462 instead of gdbarch_decr_pc_after_break.
14463 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14464 instead of gdbarch_decr_pc_after_break.
14465 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14466 instead of gdbarch_decr_pc_after_break.
14467 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14468 instead of gdbarch_decr_pc_after_break.
14469
6e07b1d2
MM
144702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14471
14472 * btrace.c: Include regcache.h.
14473 (btrace_add_pc): New.
14474 (btrace_enable): Call btrace_add_pc.
14475 (btrace_is_empty): New.
14476 * btrace.h (btrace_is_empty): New.
14477 * record-btrace.c (require_btrace, record_btrace_info): Call
14478 btrace_is_empty.
14479
969c39fb
MM
144802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14481
14482 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14483 Support delta reads.
14484 (linux_disable_btrace): Change return type.
14485 * common/linux-btrace.h (linux_read_btrace): Change parameters
14486 and return type to allow error reporting. Update users.
14487 (linux_disable_btrace): Change return type. Update users.
14488 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14489 New.
14490 (btrace_error): New.
14491 (btrace_block) <begin>: Comment on BEGIN == 0.
14492 * btrace.c (btrace_compute_ftrace): Start from the end of
14493 the current trace.
14494 (btrace_stitch_trace, btrace_clear_history): New.
14495 (btrace_fetch): Read delta trace, return if replaying.
14496 (btrace_clear): Move clear history code to btrace_clear_history.
14497 (parse_xml_btrace): Throw an error if parsing failed.
14498 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14499 and return type to allow error reporting.
14500 (target_read_btrace): Change parameters and return type to allow
14501 error reporting.
14502 * target.c (target_read_btrace): Update.
14503 * remote.c (remote_read_btrace): Support delta reads. Pass
14504 errors on.
14505 * NEWS: Announce it.
14506
0b722aec
MM
145072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14508
14509 * record.h (record_btrace_frame_unwind)
14510 (record_btrace_tailcall_frame_unwind): New declarations.
14511 * dwarf2-frame: Include record.h
14512 (dwarf2_frame_cfa): Throw an error for btrace frames.
14513 * record-btrace.c: Include hashtab.h.
14514 (btrace_get_bfun_name): New.
14515 (btrace_call_history): Call btrace_get_bfun_name.
14516 (struct btrace_frame_cache): New.
14517 (bfcache): New.
14518 (bfcache_hash, bfcache_eq, bfcache_new): New.
14519 (btrace_get_frame_function): New.
14520 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14521 (record_btrace_frame_this_id): Compute own id.
14522 (record_btrace_frame_prev_register): Provide PC, throw_error
14523 for all other registers.
14524 (record_btrace_frame_sniffer): Detect btrace frames.
14525 (record_btrace_tailcall_frame_sniffer): New.
14526 (record_btrace_frame_dealloc_cache): New.
14527 (record_btrace_frame_unwind): Add new functions.
14528 (record_btrace_tailcall_frame_unwind): New.
14529 (_initialize_record_btrace): Allocate cache.
14530 * btrace.c (btrace_clear): Call reinit_frame_cache.
14531 * NEWS: Announce it.
14532
066ce621
MM
145332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14534
14535 * record-btrace.c (record_btrace_set_replay)
14536 (record_btrace_goto_begin, record_btrace_goto_end)
14537 (record_btrace_goto): New.
14538 (init_record_btrace_ops): Initialize them.
14539 * NEWS: Announce it.
14540
e2887aa3
MM
145412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14542
14543 * record-btrace.c (record_btrace_find_new_threads)
14544 (record_btrace_thread_alive): New.
14545 (init_record_btrace_ops): Initialize to_find_new_threads and
14546 to_thread_alive.
14547
b2f4cfde
MM
145482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14549
14550 * record-btrace.c (record_btrace_resume): New.
14551 (record_btrace_wait): New.
14552 (init_record_btrace_ops): Initialize to_wait and to_resume.
14553
633785ff
MM
145542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14555
14556 * record-btrace.c (record_btrace_xfer_partial)
14557 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14558 (record_btrace_allow_memory_access): New.
14559 (init_record_btrace_ops): Initialize new methods.
14560 * target.c (raw_memory_xfer_partial): Bail out if target reports
14561 that this memory is not available.
14562
3db08215
MM
145632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14564
14565 * target.h (target_ops) <to_insert_breakpoint>
14566 <to_remove_breakpoint>: Add target_ops parameter.
14567 (forward_target_insert_breakpoint): New.
14568 (forward_target_remove_breakpoint): New.
14569 (memory_remove_breakpoint, memory_insert_breakpoint):
14570 Add target_ops parameter.
14571 * target.c (target_insert_breakpoint): Split into this and ...
14572 (forward_target_insert_breakpoint): ... this.
14573 (target_remove_breakpoint): Split into this and ...
14574 (forward_target_remove_breakpoint): ... this.
14575 (debug_to_insert_breakpoint): Add target_ops parameter.
14576 Call forward_target_insert_breakpoint.
14577 (debug_to_remove_breakpoint): Add target_ops parameter.
14578 Call forward_target_remove_breakpoint.
14579 (update_current_target): Do not inherit or default to_insert_breakpoint
14580 and to_remove_breakpoint.
14581 * corelow.c (ignore): Add target_ops parameter.
14582 * exec.c (ignore): Add target_ops parameter.
14583 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14584 Add target_ops parameter.
14585 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14586 Add target_ops parameter.
14587 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14588 Add target_ops parameter.
14589 * record-full.c (record_full_beneath_to_insert_breakpoint)
14590 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14591 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14592 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14593 (record_full_core_remove_breakpoint): Add target_ops parameter.
14594 Update users.
14595 (record_full_beneath_to_insert_breakpoint_ops)
14596 (record_full_beneath_to_remove_breakpoint_ops)
14597 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14598 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14599 tmp_to_remove_breakpoint_ops,
14600 record_full_beneath_to_insert_breakpoint_ops, and
14601 record_full_beneath_to_remove_breakpoint_ops.
14602 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14603 (m32r_remove_breakpoint): Add target_ops parameter.
14604 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14605 Add target_ops parameter.
14606 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14607 Add target_ops parameter.
14608
cecac1ab
MM
146092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14610 Markus Metzger <markus.t.metzger@intel.com>
14611
14612 * record-btrace.c: Include frame-unwind.h.
14613 (record_btrace_frame_unwind_stop_reason)
14614 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14615 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14616 New.
14617 (init_record_btrace_ops): Install it.
14618
824344ca
MM
146192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14620
14621 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14622 get_prev_frame_1.
14623
32261e52
MM
146242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14625
14626 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14627 earlier.
14628
ea001bdc
MM
146292014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14630
14631 * frame-unwind.c: Include target.h.
14632 (frame_unwind_try_unwinder): New function with code from ...
14633 (frame_unwind_find_by_frame): ... here. New variable
14634 unwinder_from_target, call also target_get_unwinder)
14635 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14636 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14637 * target.h (struct target_ops): New fields to_get_unwinder and
14638 to_get_tailcall_unwinder.
14639 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14640
1f3ef581
MM
146412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14642
14643 * record-btrace.c (record_btrace_fetch_registers)
14644 (record_btrace_store_registers)
14645 (record_btrace_to_prepare_to_store): New.
14646 (init_record_btrace_ops): Add the above.
14647
f32dbf8c
MM
146482014-01-16 Tom Tromey <tromey@redhat.com>
14649
14650 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14651 * target.h (struct target_ops) <to_prepare_to_store>: Add
14652 argument.
14653 (target_prepare_to_store): Add argument.
14654 * target.c (debug_to_prepare_to_store): Add argument.
14655 (update_current_target): Update.
14656 * remote.c (remote_prepare_to_store): Add 'self' argument.
14657 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14658 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14659 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14660 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14661 argument.
14662 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14663 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14664 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14665 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14666 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14667
07bbe694
MM
146682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14669
14670 * btrace.h (replay) <replay>: New.
14671 (btrace_is_replaying): New.
14672 * btrace.c (btrace_clear): Free replay iterator.
14673 (btrace_is_replaying): New.
14674 * record-btrace.c (record_btrace_is_replaying): New.
14675 (record_btrace_info): Print insn number if replaying.
14676 (record_btrace_insn_history): Start at replay position.
14677 (record_btrace_call_history): Start at replay position.
14678 (init_record_btrace_ops): Init to_record_is_replaying.
14679
0688d04e
MM
146802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14681
14682 * record-btrace.c (record_btrace_insn_history_range): Include
14683 end.
14684 (record_btrace_insn_history_from): Adjust range.
14685 (record_btrace_call_history_range): Include
14686 end.
14687 (record_btrace_call_history_from): Adjust range.
14688 * NEWS: Announce changes.
14689
8710b709
MM
146902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14691
14692 * record.h (enum record_print_flag)
14693 <record_print_indent_calls>: New.
14694 * record.c (get_call_history_modifiers): Recognize /c modifier.
14695 (_initialize_record): Document /c modifier.
14696 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14697 Reorder fields. Optionally indent the function name. Update
14698 all users.
14699 * NEWS: Announce changes.
14700
d0fa7535
MM
147012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14702
14703 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14704
5de9129b
MM
147052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14706
14707 * btrace.c (ftrace_new_function): Start counting at one.
14708 * record-btrace.c (record_btrace_info): Adjust number of calls
14709 and insns.
14710 * NEWS: Announce it.
14711
7acbe133
MM
147122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14713
14714 * record-btrace.c (btrace_call_history_insn_range): Print
14715 insn range as [begin, end].
14716
23a7fe75
MM
147172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14718
14719 * btrace.h (struct btrace_func_link): New.
14720 (enum btrace_function_flag): New.
14721 (struct btrace_inst): Rename to ...
14722 (struct btrace_insn): ...this. Update all users.
14723 (struct btrace_func) <ibegin, iend>: Remove.
14724 (struct btrace_func_link): New.
14725 (struct btrace_func): Rename to ...
14726 (struct btrace_function): ...this. Update all users.
14727 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14728 (number, level, flags>: New.
14729 (struct btrace_insn_iterator): Rename to ...
14730 (struct btrace_insn_history): ...this.
14731 Update all users.
14732 (struct btrace_insn_iterator, btrace_call_iterator): New.
14733 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14734 (struct btrace_target_info) <begin, end, level>
14735 <insn_history, call_history>: New.
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 * btrace.c (btrace_init_insn_iterator)
14744 (btrace_init_func_iterator, compute_itrace): Remove.
14745 (ftrace_print_function_name, ftrace_print_filename)
14746 (ftrace_skip_file): Change
14747 parameter to const.
14748 (ftrace_init_func): Remove.
14749 (ftrace_debug): Use new btrace_function fields.
14750 (ftrace_function_switched): Also consider gaining and
14751 losing symbol information).
14752 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14753 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14754 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14755 New.
14756 (ftrace_new_function): Move. Remove debug print.
14757 (ftrace_update_lines, ftrace_update_insns): New.
14758 (ftrace_update_function): Check for call, ret, and jump.
14759 (compute_ftrace): Renamed to ...
14760 (btrace_compute_ftrace): ...this. Rewritten to compute call
14761 stack.
14762 (btrace_fetch, btrace_clear): Updated.
14763 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14764 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14765 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14766 (btrace_call_number, btrace_call_begin, btrace_call_end)
14767 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14768 (btrace_find_function_by_number, btrace_set_insn_history)
14769 (btrace_set_call_history): New.
14770 * record-btrace.c (require_btrace): Use new btrace thread
14771 info fields.
14772 (record_btrace_info, btrace_insn_history)
14773 (record_btrace_insn_history, record_btrace_insn_history_range):
14774 Use new btrace thread info fields and new iterator.
14775 (btrace_func_history_src_line): Rename to ...
14776 (btrace_call_history_src_line): ...this. Use new btrace
14777 thread info fields.
14778 (btrace_func_history): Rename to ...
14779 (btrace_call_history): ...this. Use new btrace thread info
14780 fields and new iterator.
14781 (record_btrace_call_history, record_btrace_call_history_range):
14782 Use new btrace thread info fields and new iterator.
14783
8372a7cb
MM
147842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14785
14786 * frame.h (frame_id_build_unavailable_stack_special): New.
14787 * frame.c (frame_id_build_unavailable_stack_special): New.
14788
c2170eef
MM
147892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14790
14791 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14792 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14793 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14794 to gdbarch.
14795 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14796 (i386_insn_is_jump, i386_jmp_p): New.
14797 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14798 insn_is_jump to gdbarch.
14799 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14800 * gdbarch.h: Regenerated.
14801 * gdbarch.c: Regenerated.
14802 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14803 (default_insn_is_jump): New.
14804 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14805 (default_insn_is_jump): New.
14806
864089d2
MM
148072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14808
14809 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14810 Change to ...
14811 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14812 (btrace_read_type) <btrace_read_new>: Change to ...
14813 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14814
ed9edfb5
MM
148152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14816
14817 * common/linux-btrace.c (linux_read_btrace): Free trace from
14818 previous iteration.
14819
fbcbc3fd
DE
148202014-01-15 Doug Evans <dje@google.com>
14821
14822 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14823 uint32_t.
14824
3d548a53
TT
148252014-01-15 Tom Tromey <tromey@redhat.com>
14826
14827 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14828 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14829 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14830 (set_objfile_main_name): New function.
14831 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14832 language_of_main>: New fields.
14833 (set_objfile_main_name): Declare.
14834 * symtab.c (find_main_name): Loop over objfiles to find the main
14835 name and language.
14836 (set_main_name): Now static.
14837 (get_main_info): Add comment.
14838 * symtab.h (set_main_name): Don't declare.
14839
32ac0d11
TT
148402014-01-15 Tom Tromey <tromey@redhat.com>
14841
14842 * symtab.c (main_progspace_key): New global.
14843 (struct main_info): New.
14844 (name_of_main, language_of_main): Remove.
14845 (get_main_info, main_info_cleanup): New function.
14846 (set_main_name, main_name, main_language): Use get_main_info.
14847 (_initialize_symtab): Initialize main_progspace_key.
14848
9e6c82ad
TT
148492014-01-15 Tom Tromey <tromey@redhat.com>
14850
14851 * dbxread.c (process_one_symbol): Update.
14852 * dwarf2read.c (read_partial_die): Update.
14853 * symfile.c (set_initial_language): Call main_language.
14854 * symtab.c (language_of_main): Now static.
14855 (set_main_name): Add 'lang' parameter.
14856 (find_main_name): Update.
14857 (main_language): New function.
14858 (symtab_observer_executable_changed): Update.
14859 * symtab.h (set_main_name): Update.
14860 (language_of_main): Remove.
14861 (main_language): Declare.
14862
6ef55de7
TT
148632014-01-15 Tom Tromey <tromey@redhat.com>
14864
14865 * symfile.c (init_entry_point_info): Use new "initialized" field.
14866 Update.
14867 * objfiles.h (struct entry_point) <initialized>: New field.
14868 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14869 (struct objfile) <ei>: ...here. Remove.
14870 * objfiles.c (entry_point_address_query): Update.
14871
53eddfa6
TT
148722014-01-15 Tom Tromey <tromey@redhat.com>
14873
14874 * objfiles.c (entry_point_address_query): Relocate entry point
14875 address.
14876 (objfile_relocate1): Do not relocate entry point address.
14877 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14878 <the_bfd_section_index>: New field.
14879 * symfile.c (init_entry_point_info): Find the entry point's
14880 section.
14881
d56e56aa
TT
148822014-01-15 Tom Tromey <tromey@redhat.com>
14883
14884 * solib-frv.c (enable_break): Use entry_point_address_query.
14885
33a97bbe
OJ
148862014-01-15 Omair Javaid <omair.javaid@linaro.org>
14887
14888 * NEWS: Add note on improved process record-replay on
14889 arm*-linux* targets.
14890
c6ec2b30
OJ
148912014-01-15 Omair Javaid <omair.javaid@linaro.org>
14892
14893 * arm-tdep.c (enum arm_record_result): New enum.
14894 (arm_record_unsupported_insn): New function.
14895 (arm_record_coproc_data_proc): Removed.
14896 (thumb2_record_ld_st_multiple): New function.
14897 (thumb2_record_ld_st_dual_ex_tbb): New function.
14898 (thumb2_record_data_proc_sreg_mimm): New function.
14899 (thumb2_record_ps_dest_generic): New function.
14900 (thumb2_record_branch_misc_cntrl): New function.
14901 (thumb2_record_str_single_data): New function.
14902 (thumb2_record_ld_mem_hints): New function.
14903 (thumb2_record_ld_word): New function.
14904 (thumb2_record_lmul_lmla_div): New function.
14905 (thumb2_record_decode_insn_handler): New function.
14906 (decode_insn): Add thumb32 instruction handlers.
14907
97dfe206
OJ
149082014-01-15 Omair Javaid <omair.javaid@linaro.org>
14909
14910 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14911 (struct arm_linux_record_tdep): Declare.
14912 (arm_canonicalize_syscall): New function.
14913 (arm_all_but_pc_registers_record): New function.
14914 (arm_linux_syscall_record): New function.
14915 (arm_linux_init_abi): Add syscall recording constructs.
14916 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14917 decoding. (arm_record_coproc_data_proc): Update arm syscall
14918 decoding.
14919 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14920 <arm_syscall_record>: New field.
14921 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14922 gdb_target_obs.
14923
9904a494
OJ
149242014-01-15 Omair Javaid <omair.javaid@linaro.org>
14925
14926 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14927 register for push instruction recording.
14928
f969241e
OJ
149292014-01-15 Omair Javaid <omair.javaid@linaro.org>
14930
14931 * arm-tdep.c (thumb_record_misc): Update to correct logical
14932 error while recording ldm, ldmia and pop instructions.
14933
bfbbec00
OJ
149342014-01-15 Omair Javaid <omair.javaid@linaro.org>
14935
14936 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14937
e40adcc9
PA
149382014-01-15 Pedro Alves <palves@redhat.com>
14939
14940 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14941 (go32_resume, go32_fetch_registers, store_register)
14942 (go32_store_registers, go32_prepare_to_store)
14943 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14944 (go32_create_inferior, go32_can_run, go32_terminal_init)
14945 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14946 declarations.
14947
b0a16e66
TT
149482014-01-15 Tom Tromey <tromey@redhat.com>
14949
14950 * target.h (async_callback_ftype): New typedef.
14951 (struct target_ops) <to_async>: Use it.
14952
bf7105a4
JB
149532014-01-15 Joel Brobecker <brobecker@adacore.com>
14954
14955 * python/py-value.c (get_field_type): Remove unnecessary curly
14956 braces for single-statement if block.
14957
a8f35c2e
JB
149582014-01-15 Joel Brobecker <brobecker@adacore.com>
14959
14960 * python/py-type.c (convert_field): Add missing empty line
14961 after declarations.
14962
bb4142cf
DE
149632014-01-14 Doug Evans <dje@google.com>
14964
14965 * symfile.h (expand_symtabs_matching): Renamed from
14966 expand_partial_symbol_names. Update prototype.
14967 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14968 * symfile.c (expand_symtabs_matching): Renamed from
14969 expand_partial_symbol_names. New args file_matcher, kind.
14970 Rename arg fun to symbol_matcher.
14971 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14972 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14973 ada_expand_partial_symbol_name.
14974 (ada_make_symbol_completion_list): Update to call
14975 expand_symtabs_matching.
14976 (ada_add_global_exceptions): Call expand_symtabs_matching.
14977 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14978 call map_symbol_filenames.
14979 * symtab.c (sources_info): Update to call map_symbol_filenames.
14980 (search_symbols): Call expand_symtabs_matching.
14981 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14982 (default_make_symbol_completion_list_break_on): Update to call
14983 expand_symtabs_matching.
14984 (make_source_files_completion_list): Update to call
14985 map_symbol_filenames.
14986
206f2a57
DE
149872014-01-14 Doug Evans <dje@google.com>
14988
14989 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14990 (expand_symtabs_symbol_matcher_ftype): New typedef.
14991 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14992 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14993 * symfile.c (expand_partial_symbol_names): Update to use
14994 expand_symtabs_symbol_matcher_ftype.
14995 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14996 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14997 Arg name_matcher renamed to symbol_matcher.
14998 * psymtab.c (recursively_search_psymtabs): Update to use
14999 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15000 sym_matcher.
15001 (expand_symtabs_matching_via_partial): Update to use
15002 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15003 Arg name_matcher renamed to symbol_matcher.
15004
540c2971
DE
150052014-01-14 Doug Evans <dje@google.com>
15006
15007 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15008 (map_partial_symbol_filenames): Ditto.
15009 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15010 (map_partial_symbol_filenames): Ditto.
15011 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15012 (map_partial_symbol_filenames): Ditto.
15013 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15014 (map_partial_symbol_filenames): Ditto.
15015 * symtab.c: Delete #include "psymtab.h".
15016
8213266a
PA
150172014-01-14 Pedro Alves <palves@redhat.com>
15018 Tom Tromey <tromey@redhat.com>
15019
15020 * infrun.c (use_displaced_stepping): Use find_record_target
15021 instead of RECORD_IS_USED.
15022 (adjust_pc_after_break): Use record_full_is_used instead of
15023 RECORD_IS_USED.
15024 * record-btrace.c (record_btrace_open): Call record_preopen
15025 instead of checking RECORD_IS_USED.
15026 * record-full.c (record_full_shortname)
15027 (record_full_core_shortname): New globals.
15028 (record_full_is_used): New function.
15029 (find_full_open): Call record_preopen instead of checking
15030 RECORD_IS_USED.
15031 (init_record_full_ops): Set the target's shortname to
15032 record_full_shortname.
15033 (init_record_full_core_ops): Set the target's shortname to
15034 record_full_core_shortname.
15035 * record-full.h (record_full_is_used): Declare.
15036 * record.c (find_record_target): Make extern.
15037 (record_preopen): New function.
15038 * record.h (RECORD_IS_USED): Delete macro.
15039 (find_record_target, record_preopen): Declare functions.
15040
7ec1862d
YQ
150412014-01-14 Yao Qi <yao@codesourcery.com>
15042
15043 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15044 'len''s type to ULONGEST.
15045 (core_xfer_shared_libraries_aix): Likewise.
15046 * gdbarch.c, gdbarch.h: Regenerated.
15047 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15048 Change type of 'len' to ULONGEST.
15049 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15050 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15051
dea80a27
YQ
150522014-01-14 Yao Qi <yao@codesourcery.com>
15053
15054 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15055 type of 'len' to ULONGEST.
15056 (linux_xfer_osdata_processgroups): Likewise.
15057 (linux_xfer_osdata_threads): Likewise.
15058 (linux_xfer_osdata_fds): Likewise.
15059 (linux_xfer_osdata_isockets): Likewise.
15060 (linux_xfer_osdata_shm): Likewise.
15061 (linux_xfer_osdata_sem): Likewise.
15062 (linux_xfer_osdata_msg): Likewise.
15063 (linux_common_xfer_osdata): Likewise.
15064 (struct osdata_type) <getter>: Likewise.
15065 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15066 the declaration.
15067
b55e14c7
YQ
150682014-01-14 Yao Qi <yao@codesourcery.com>
15069
15070 * target.h (target_xfer_partial_ftype): Update.
15071 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15072 ULONGEST.
15073 * aix-thread.c (aix_thread_xfer_partial): Change type of
15074 argument 'len' to ULONGEST.
15075 * auxv.c (procfs_xfer_auxv): Likewise.
15076 (ld_so_xfer_auxv): Likewise.
15077 (memory_xfer_auxv): Likewise.
15078 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15079 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15080 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15081 * corelow.c (core_xfer_partial): Likewise.
15082 * ctf.c (ctf_xfer_partial): Likewise.
15083 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15084 '%u'.
15085 (darwin_read_dyld_info): Likewise.
15086 (darwin_xfer_partial): Likewise.
15087 * exec.c (section_table_xfer_memory_partial): Likewise.
15088 (exec_xfer_partial): Likewise.
15089 * exec.h (section_table_xfer_memory_partial): Update
15090 declaration.
15091 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15092 instead of plongest.
15093 (gnu_xfer_partial): Likewise.
15094 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15095 (ia64_hpux_xfer_solib_got): Likewise.
15096 (ia64_hpux_xfer_partial): Likewise.
15097 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15098 * inf-ptrace.c (inf_ptrace_xfer_partial):
15099 * inf-ttrace.c (inf_ttrace_xfer_partial):
15100 * linux-nat.c (linux_xfer_siginfo): Likewise.
15101 (linux_nat_xfer_partial): Likewise.
15102 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15103 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15104 * monitor.c (monitor_xfer_memory): Likewise.
15105 (monitor_xfer_partial): Likewise.
15106 * procfs.c (procfs_xfer_partial): Likewise.
15107 * record-full.c (record_full_xfer_partial): Likewise.
15108 (record_full_core_xfer_partial): Likewise.
15109 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15110 instead of plongest.
15111 (gdbsim_xfer_partial): Likewise.
15112 * remote.c (remote_xfer_partial): Likewise.
15113 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15114 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15115 declaration.
15116 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15117 (rs6000_xfer_shared_libraries): Likewise.
15118 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15119 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15120 (sparc_xfer_partial): Likewise.
15121 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15122 (spu_xfer_partial): Likewise.
15123 * spu-multiarch.c (spu_xfer_partial): Likewise.
15124 * target.c (target_read_live_memory): Likewise.
15125 (memory_xfer_live_readonly_partial): Likewise.
15126 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15127 (target_xfer_partial, default_xfer_partial): Likewise.
15128 (current_xfer_partial): Likewise.
15129 * tracepoint.c (tfile_xfer_partial): Likewise.
15130 * windows-nat.c (windows_xfer_memory): Likewise. Call
15131 pulongest instead of plongest.
15132 (windows_xfer_partial): Likewise.
15133 (windows_xfer_shared_libraries): Likewise.
15134
05804640
YQ
151352014-01-14 Yao Qi <yao@codesourcery.com>
15136
15137 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15138 target_xfer_partial_ftype.
15139
b5b08fb4
SC
151402014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15141
15142 PR python/15464
15143 PR python/16113
15144 * valops.c (value_struct_elt_bitpos): New function
15145 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15146 object to 'None' if the field name is an empty string ("").
15147 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15148 attribute to look for a field when 'name' is 'None'.
15149 (get_field_type): New function
15150
13aaf454
DE
151512014-01-13 Doug Evans <dje@google.com>
15152
15153 PR symtab/16426
15154 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15155 (try_open_dwop_file): Ditto.
15156 * gdb_bfd.c: #include "vec.h".
15157 (bfdp): New typedef.
15158 (struct gdb_bfd_data): New member included_bfds.
15159 (gdb_bfd_unref): Unref all included bfds.
15160 (gdb_bfd_record_inclusion): New function.
15161 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15162
c2cec97c
TT
151632014-01-13 Tom Tromey <tromey@redhat.com>
15164
15165 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15166
78e5999d
TT
151672014-01-13 Tom Tromey <tromey@redhat.com>
15168
15169 * defs.h (use_windows): Remove.
15170 * gdb.c (main): Update.
15171 * main.c (captured_main, gdb_main): Update.
15172 * main.h (struct captured_main_args) <use_windows>: Remove.
15173 * top.c (use_windows): Remove.
15174
f2052bbe
TT
151752014-01-13 Tom Tromey <tromey@redhat.com>
15176
15177 * defs.h (deprecated_flush_hook): Remove.
15178
fde4f8ed
JK
151792014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15180
15181 PR threads/16216
15182 * linux-thread-db.c (try_thread_db_load): Add parameter
15183 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15184 (try_thread_db_load_from_pdir_1): Move it there from here.
15185 (try_thread_db_load_from_sdir): Update caller.
15186 (try_thread_db_load_from_dir): Move it there from here.
15187
bdf61915
PP
151882014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15189
15190 * regformats/regdat.sh: Always rewrite the register file.
15191
f71e1a8d
PA
151922014-01-13 Pedro Alves <palves@redhat.com>
15193
15194 * Makefile.in (CHECK_HEADERS): New variable.
15195 (check-headers:): New rule.
15196
42c85435
TT
151972014-01-13 Tom Tromey <tromey@redhat.com>
15198
15199 * cli/cli-setshow.c (do_set_command): Update.
15200 * defs.h (deprecated_set_hook): Remove.
15201 * top.c (deprecated_set_hook): Remove.
15202
f8de5129
PA
152032014-01-13 Pedro Alves <palves@redhat.com>
15204
15205 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15206 the tracepoint if the PC is a pseudo-register.
15207
fc270c35
TT
152082014-01-13 Tom Tromey <tromey@redhat.com>
15209
15210 * defs.h (XCALLOC): Remove.
15211 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15212 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15213 * dwarf2loc.c (allocate_piece_closure): Likewise.
15214 * elfread.c (elf_symfile_segments): Likewise.
15215 (elf_symfile_segments): Likewise.
15216 * gdbtypes.c (copy_type_recursive): Likewise.
15217 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15218 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15219 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15220 XCALLOC.
15221 * mt-tdep.c (mt_gdbarch_init): Likewise.
15222 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15223 XCALLOC.
15224 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15225 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15226 * registry.c (registry_alloc_data): Likewise.
15227 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15228 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15229 * serial.c (serial_fdopen_ops): Likewise.
15230 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15231 XCALLOC.
15232 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15233 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15234 not XCALLOC.
15235
70ba0933
TT
152362014-01-13 Tom Tromey <tromey@redhat.com>
15237
15238 * defs.h (XMALLOC): Remove.
15239 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15240 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15241 * cli-out.c (struct ui_out *): Likewise.
15242 * cli/cli-dump.c (add_dump_command): Likewise.
15243 (add_dump_command): Likewise.
15244 * complaints.c (get_complaints): Likewise.
15245 (find_complaint): Likewise.
15246 * dwarf2-frame.c (execute_cfa_program): Likewise.
15247 * dwarf2read.c (abbrev_table_read_table): Likewise.
15248 * gdbarch.sh: Likewise.
15249 * gdbarch.c: Rebuild.
15250 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15251 * interps.c (interp_new): Likewise.
15252 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15253 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15254 * mi/mi-console.c (mi_console_file_new): Likewise.
15255 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15256 * mi/mi-out.c (mi_out_new): Likewise.
15257 * mi/mi-parse.c (mi_parse): Likewise.
15258 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15259 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15260 * observer.c (xalloc_observer_list_node): Likewise.
15261 * regcache.c (regcache_xmalloc_1): Likewise.
15262 * reggroups.c (reggroup_new): Likewise.
15263 (_initialize_reggroup): Likewise.
15264 * registry.c (register_data_with_cleanup): Likewise.
15265 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15266 * ser-base.c (serial_ttystate): Likewise.
15267 * ser-mingw.c (make_pipe_state): Likewise.
15268 * ser-pipe.c (pipe_open): Likewise.
15269 * serial.c (serial_open): Likewise.
15270 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15271 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15272 (tui_alloc_win_info): Likewise.
15273 (tui_add_content_elements): Likewise.
15274 * tui/tui-file.c (tui_file_new): Likewise.
15275 * tui/tui-out.c (tui_out_new): Likewise.
15276 * ui-file.c (mem_file_new): Likewise.
15277 * ui-out.c (push_level): Likewise.
15278 (make_cleanup_ui_out_end): Likewise.
15279 (append_header_to_list): Likewise.
15280 (ui_out_new): Likewise.
15281 * user-regs.c (user_reg_add_builtin): Likewise.
15282
41bf6aca
TT
152832014-01-13 Tom Tromey <tromey@redhat.com>
15284
15285 * defs.h (XZALLOC): Remove.
15286 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15287 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15288 (get_ada_tasks_inferior_data): Likewise.
15289 * auto-load.c (get_auto_load_pspace_data): Likewise.
15290 * auxv.c (get_auxv_inferior_data): Likewise.
15291 * bfd-target.c (target_bfd_reopen): Likewise.
15292 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15293 (deprecated_insert_raw_breakpoint): Likewise.
15294 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15295 * corelow.c (core_open): Likewise.
15296 * darwin-nat.c (darwin_check_new_threads): Likewise.
15297 (darwin_attach_pid): Likewise.
15298 * dummy-frame.c (dummy_frame_push): Likewise.
15299 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15300 * dwarf2loc.c (allocate_piece_closure): Likewise.
15301 * elfread.c (elf_symfile_segments): Likewise.
15302 * eval.c (ptrmath_type_p): Likewise.
15303 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15304 * gdbtypes.c (alloc_type_arch): Likewise.
15305 (alloc_type_instance): Likewise.
15306 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15307 * inf-child.c (inf_child_can_use_agent): Likewise.
15308 * inflow.c (get_inflow_inferior_data): Likewise.
15309 * infrun.c (save_infcall_suspend_state): Likewise.
15310 * jit.c (jit_reader_load): Likewise.
15311 (get_jit_objfile_data): Likewise.
15312 (get_jit_program_space_data): Likewise.
15313 (jit_object_open_impl): Likewise.
15314 (jit_symtab_open_impl): Likewise.
15315 (jit_block_open_impl): Likewise.
15316 (jit_frame_sniffer): Likewise.
15317 * linux-fork.c (add_fork): Likewise.
15318 * maint.c (make_command_stats_cleanup): Likewise.
15319 * objfiles.c (get_objfile_pspace_data): Likewise.
15320 * opencl-lang.c (struct lval_closure): Likewise.
15321 * osdata.c (osdata_start_osdata): Likewise.
15322 * progspace.c (new_address_space): Likewise.
15323 (add_program_space): Likewise.
15324 * remote-sim.c (get_sim_inferior_data): Likewise.
15325 * sh-tdep.c (sh_gdbarch_init): Likewise.
15326 * skip.c (Ignore): Likewise.
15327 (skip_delete_command): Likewise.
15328 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15329 (library_list_start_library): Likewise.
15330 (solib_aix_current_sos): Likewise.
15331 * solib-darwin.c (get_darwin_info): Likewise.
15332 (darwin_current_sos): Likewise.
15333 * solib-dsbt.c (get_dsbt_info): Likewise.
15334 * solib-ia64-hpux.c (new_so_list): Likewise.
15335 (ia64_hpux_get_solib_linkage_addr): Likewise.
15336 * solib-spu.c (append_ocl_sos): Likewise.
15337 (spu_current_sos): Likewise.
15338 * solib-svr4.c (get_svr4_info): Likewise.
15339 (svr4_keep_data_in_core): Likewise.
15340 (library_list_start_library): Likewise.
15341 (svr4_default_sos): Likewise.
15342 (svr4_read_so_list): Likewise.
15343 * solib-target.c (library_list_start_library): Likewise.
15344 (solib_target_current_sos): Likewise.
15345 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15346 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15347 * symfile.c (default_symfile_segments): Likewise.
15348 * target-descriptions.c (tdesc_data_init): Likewise.
15349 (tdesc_create_reg): Likewise.
15350 (struct tdesc_type *): Likewise.
15351 (tdesc_create_vector): Likewise.
15352 (tdesc_set_struct_size): Likewise.
15353 (struct tdesc_type *): Likewise.
15354 (tdesc_free_feature): Likewise.
15355 (tdesc_create_feature): Likewise.
15356 * windows-nat.c (windows_add_thread): Likewise.
15357 (windows_make_so): Likewise.
15358 * xml-support.c (gdb_xml_body_text): Likewise.
15359 (gdb_xml_create_parser_and_cleanup): Likewise.
15360 (xml_process_xincludes): Likewise.
15361 * xml-syscall.c (allocate_syscalls_info): Likewise.
15362 (syscall_create_syscall_desc): Likewise.
15363
5acfdbae
SDJ
153642014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15365
15366 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15367 function, with code from i386_stap_parse_special_token.
15368 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15369 (i386_stap_parse_special_token): Move code to the two functions
15370 above; simplify it.
15371
0000e5cc
PA
153722014-01-09 Pedro Alves <palves@redhat.com>
15373 Hui Zhu <hui@codesourcery.com>
15374
15375 PR gdb/16101
15376 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15377 bp_err_string. Don't mark the location shlib_disabled if the
15378 error thrown wasn't a generic or memory error. Catch errors
15379 thrown while inserting breakpoints in overlayed code. Output
15380 error message of software breakpoints.
15381 * remote.c (remote_insert_breakpoint): If this breakpoint has
15382 target-side commands but this stub doesn't support Z0 packets,
15383 throw NOT_SUPPORTED_ERROR error.
15384 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15385 * target.h (target_insert_breakpoint): Extend comment.
15386 (target_insert_hw_breakpoint): Add comment.
15387
b7ea362b
PA
153882014-01-08 Pedro Alves <palves@redhat.com>
15389
15390 * remote.c (remote_add_thread): Add threads silently if starting
15391 up.
15392 (remote_notice_new_inferior): If in all-stop, and starting up,
15393 don't call notice_new_inferior.
15394 (get_current_thread): New function, factored out from ...
15395 (add_current_inferior_and_thread): ... this. Adjust.
15396 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15397 found any thread, then select the remote's current thread as GDB's
15398 current thread too.
15399
b7bba001
JB
154002014-01-08 Joel Brobecker <brobecker@adacore.com>
15401
15402 * NEWS: Create a new section for the next release branch.
15403 Rename the section of the current branch, now that it has
15404 been cut.
15405
16dfbded
JB
154062014-01-08 Joel Brobecker <brobecker@adacore.com>
15407
15408 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15409 * version.in: Bump version to 7.7.50.DATE-cvs.
15410
22c90ac1
YQ
154112014-01-08 Yao Qi <yao@codesourcery.com>
15412
15413 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15414 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15415 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15416
d64ad97c
YQ
154172014-01-08 Yao Qi <yao@codesourcery.com>
15418
15419 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15420 return value of bfd_get_filename to symbol_file_add_from_bfd.
15421
f93ba80c
PM
154222014-01-08 Pierre Muller <muller@sourceware.org>
15423
15424 Fix PR16201.
15425 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15426 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15427 to prim_record_mininal_symbol_and_info.
15428 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15429 in call to prim_record_minimal_symbol_and_info.
15430 (read_pe_exported_syms): Set index field of section_data.
15431
a4d9ba85
AP
154322014-01-07 Andrew Pinski <apinski@cavium.com>
15433
15434 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15435 * features/aarch64.c: Regenerate.
15436
1b67eb02
AS
154372014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15438
15439 * target.c (return_null): Define.
15440 (update_current_target): Use it instead of return_zero for
15441 functions that return a pointer.
15442
5e3f4fab
EBM
154432014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15444
15445 * source.c (add_path): Fix check for duplicated paths in the previously
15446 included paths.
15447
e2616788
HK
154482014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15449
15450 * ada-lang.c: Remove duplicated include statements.
15451 * alphabsd-nat.c: Ditto.
15452 * amd64-darwin-tdep.c: Ditto.
15453 * amd64fbsd-nat.c: Ditto.
15454 * auto-load.c: Ditto.
15455 * ax-gdb.c: Ditto.
15456 * breakpoint.c: Ditto.
15457 * dbxread.c: Ditto.
15458 * fork-child.c: Ditto.
15459 * gdb_usleep.c: Ditto.
15460 * i386-darwin-tdep.c: Ditto.
15461 * i386fbsd-nat.c: Ditto.
15462 * infcmd.c: Ditto.
15463 * inferior.c: Ditto.
15464 * jv-lang.c: Ditto.
15465 * linux-nat.c: Ditto.
15466 * linux-tdep.c: Ditto.
15467 * m68kbsd-nat.c: Ditto.
15468 * m68klinux-nat.c: Ditto.
15469 * microblaze-tdep.c: Ditto.
15470 * mips-linux-tdep.c: Ditto.
15471 * mn10300-tdep.c: Ditto.
15472 * nto-tdep.c: Ditto.
15473 * opencl-lang.c: Ditto.
15474 * osdata.c: Ditto.
15475 * printcmd.c: Ditto.
15476 * regcache.c: Ditto.
15477 * remote-m32r-sdi.c: Ditto.
15478 * remote.c: Ditto.
15479 * symfile.c: Ditto.
15480 * symtab.c: Ditto.
15481 * tilegx-linux-nat.c: Ditto.
15482 * tilegx-tdep.c: Ditto.
15483 * tracepoint.c: Ditto.
15484 * valops.c: Ditto.
15485 * vaxbsd-nat.c: Ditto.
15486 * windows-nat.c: Ditto.
15487 * xtensa-tdep.c: Ditto.
15488
bd1f7788
YQ
154892014-01-07 Yao Qi <yao@codesourcery.com>
15490
15491 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15492
79301218
JB
154932014-01-07 Yao Qi <yao@codesourcery.com>
15494 Joel Brobecker <brobecker@adacore.com>
15495
15496 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15497 (pdc_write_regs): Likewise.
15498 (fetch_regs_kernel_thread): Likewise.
15499 (store_regs_kernel_thread): Likewise.
15500
155012014-01-07 Joel Brobecker <brobecker@adacore.com>
15502
15503 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15504 tagged type objects to their actual type.
15505
8e355c5d
JB
155062014-01-07 Joel Brobecker <brobecker@adacore.com>
15507
15508 * ada-valprint.c (print_field_values): Add "language" parameter.
15509 Update calls to print_field_values and print_variant_part.
15510 Pass new parameter "language" in call to val_print instead
15511 of "current_language". Replace call to ada_val_print by call
15512 to val_print.
15513 (print_variant_part): Add "language" parameter.
15514 (ada_val_print_struct_union): Update call to print_field_values.
15515
4fbf5aa5
JB
155162014-01-07 Joel Brobecker <brobecker@adacore.com>
15517
15518 * ada-valprint.c (ui_memcpy): Delete.
15519 (ada_print_floating): Update documentation. Add empty line
15520 between between function documentation and implementation.
15521 Delete variable "buffer". Use ui_file_xstrdup in place of
15522 ui_file_put. Minor adjustments following this change.
15523
71855601
JB
155242014-01-07 Joel Brobecker <brobecker@adacore.com>
15525
15526 * ada-valprint.c (ada_val_print_string): New function,
15527 extracted from ada_val_print_array.
15528 (ada_val_print_array): Replace extracted code by call
15529 to ada_val_print_string followed by a return. Move
15530 "else" branch to the function's top block.
15531
4eb27a30
JB
155322014-01-07 Joel Brobecker <brobecker@adacore.com>
15533
15534 * ada-valprint.c (ada_val_print_array): Move implementation
15535 down. Rename parameter "offset" and "val" into "offset_aligned"
15536 and "original_value" respectively. Add parameter "offset".
15537
34b27950
JB
155382014-01-07 Joel Brobecker <brobecker@adacore.com>
15539
15540 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15541 re-organizing the code. Change the "???" message printed
15542 when target type is a TYPE_CODE_UNDEF into
15543 "<ref to undefined type>".
15544
079e4591
JB
155452014-01-07 Joel Brobecker <brobecker@adacore.com>
15546
15547 * ada-valprint.c (print_record): Delete, implementation inlined...
15548 (ada_val_print_struct_union): ... here. Remove call to
15549 ada_check_typedef in inlined implementation.
15550
8004dfd1
JB
155512014-01-07 Joel Brobecker <brobecker@adacore.com>
15552
15553 * ada-valprint.c (ada_val_print_gnat_array): New function,
15554 extracted from ada_val_print_1;
15555 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15556 (ada_val_print_flt, ada_val_print_struct_union)
15557 (ada_val_print_ref): Likewise.
15558 (ada_val_print_1): Delete variables i and elttype.
15559 Replace extracted-out code by call to corresponding
15560 new functions.
15561
760a2db0
JB
155622014-01-07 Joel Brobecker <brobecker@adacore.com>
15563
15564 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15565
3a92c861
JB
155662014-01-07 Joel Brobecker <brobecker@adacore.com>
15567
15568 * ada-valprint.c (ada_val_print_1): Replace calls to
15569 ada_val_print_1 by calls to val_print.
15570
cd1630f9
JB
155712014-01-07 Joel Brobecker <brobecker@adacore.com>
15572
15573 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15574 Update calls to self accordingly. Replace calls to c_val_print
15575 by calls to val_print.
15576
bdf779a0
JB
155772014-01-07 Joel Brobecker <brobecker@adacore.com>
15578
15579 * ada-valprint.c (print_record): Delete declaration.
15580 (adjust_type_signedness, ada_val_print_1): Likewise.
15581 (ada_val_print): Move function implementation down.
15582 (print_variant_part, print_field_values, print_record):
15583 Move function implementation up.
15584
c0d48811
JB
155852014-01-07 Joel Brobecker <brobecker@adacore.com>
15586
15587 * python/py-type.c (typy_get_name): New function.
15588 (type_object_getset): Add entry for attribute "name".
15589 * NEWS: Add entry mentioning this new attribute.
15590
c26e9cbb
YQ
155912014-01-07 Yao Qi <yao@codesourcery.com>
15592
15593 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15594 statement.
15595
0cc6f43d
YQ
155962014-01-07 Yao Qi <yao@codesourcery.com>
15597
15598 * gnu-nat.c (info_port_rights): Add qualifier const to
15599 argument args.
15600
eec03155
YQ
156012014-01-07 Yao Qi <yao@codesourcery.com>
15602
15603 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15604
f04a82ef
YQ
156052014-01-07 Yao Qi <yao@codesourcery.com>
15606
15607 * gnu-nat.c (make_inf) Update declaration.
15608 (make_inf): Make it static.
15609 (inf_set_traced): Likewise.
15610 (inf_port_to_thread, inf_task_died_status): Likewise.
15611
d57dda0a
YQ
156122014-01-07 Yao Qi <yao@codesourcery.com>
15613
15614 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15615
3aa8c969
YQ
156162014-01-07 Yao Qi <yao@codesourcery.com>
15617
15618 * gnu-nat.c (_initialize_gnu_nat): Declare.
15619
94123b4f
YQ
156202014-01-07 Yao Qi <yao@codesourcery.com>
15621
15622 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15623 'enum bfd_endian'.
15624 (struct gdbarch_info) <byte_order>: Change type to
15625 'enum bfd_endian'.
15626 <byte_order_for_code>: Likewise.
15627 * gdbarch.c, gdbarch.h: Regenerated.
15628
dc81d70a
TT
156292014-01-06 Sasha Smundak <asmundak@google.com>
15630
15631 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15632
cc2f3c35
TT
156332014-01-06 Tom Tromey <tromey@redhat.com>
15634
15635 * doublest.c (convert_doublest_to_floatformat): Use const, not
15636 CONST.
15637 * somread.c (som_symtab_read): Likewise.
15638
adcf2eed
HZ
156392014-01-07 Hui Zhu <hui@codesourcery.com>
15640
15641 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15642 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15643 (gdb_bfd_fopen): Ditto.
15644 (gdb_bfd_openr): Ditto.
15645 (gdb_bfd_openw): Ditto.
15646 (gdb_bfd_openr_iovec): Ditto.
15647 (gdb_bfd_fdopenr): Ditto.
15648 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15649 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15650 with xstrdup.
15651 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15652 with xstrdup.
15653 * symfile-mem.c (symbol_file_add_from_memory): Removed
15654 gdb_bfd_stash_filename.
15655
50722198
DE
156562014-01-03 Doug Evans <dje@google.com>
15657
15658 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15659 output.
15660
2fa4b862
JB
156612014-01-01 Joel Brobecker <brobecker@adacore.com>
15662
15663 Update year range in copyright notice of all files.
15664
28498c42
JB
156652014-01-01 Joel Brobecker <brobecker@adacore.com>
15666
15667 * top.c (print_gdb_version): Set copyright year to 2014.
15668
7b6e1046
JB
156692014-01-01 Joel Brobecker <brobecker@adacore.com>
15670
15671 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15672
df96af55 15673For older changes see ChangeLog-2013.
c906108c
SS
15674\f
15675Local Variables:
15676mode: change-log
15677left-margin: 8
15678fill-column: 74
15679version-control: never
57da7796 15680coding: utf-8
c906108c 15681End:
This page took 2.38109 seconds and 4 git commands to generate.