Discard space for relocs against symbols with copy relocs
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
29f0c3b7
DE
12014-12-02 Doug Evans <dje@google.com>
2
3 PR symtab/17602
4 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
5
72998fb3
DE
62014-12-02 Doug Evans <dje@google.com>
7
8 PR symtab/17591
9 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
10 to strip parameters.
11
422b9917
DE
122014-12-02 Doug Evans <dje@google.com>
13
14 * dwarf2read.c (peek_die_abbrev): Improve error message text.
15
47c6ee49
DE
162014-12-02 Doug Evans <dje@google.com>
17
18 * valops.c (do_search_struct_field): Remove remnant of Chill support.
19 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
20
5da3ffc9
SM
212014-12-02 Simon Marchi <simon.marchi@ericsson.com>
22
23 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
24
162078c8
NB
252014-12-02 Nick Bull <nicholaspbull@gmail.com>
26
27 * NEWS: Mention new Python events.
28 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
29 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
30 (py-infevents.o): New rule.
31 * doc/observer.texi (inferior_call_pre, inferior_call_post)
32 (memory_changed, register_changed): New observers.
33 * infcall.c (call_function_by_hand): Notify observer before and
34 after inferior call.
35 * python/py-event.h (inferior_call_kind): New enum.
36 (emit_inferior_call_event): New prototype.
37 (emit_register_changed_event): New prototype.
38 (emit_memory_changed_event): New prototype.
39 * python/py-events.h (events_object): New registries
40 inferior_call, memory_changed and register_changed.
41 * python/py-evts.c (gdbpy_initialize_py_events): Add the
42 inferior_call, memory_changed and register_changed registries.
43 * python/py-infevents.c: New.
44 * python/py-inferior.c (python_on_inferior_call_pre)
45 (python_on_inferior_call_post, python_on_register_change)
46 (python_on_memory_change): New functions.
47 (gdbpy_initialize_inferior): Attach python handler to new
48 observers.
49 * python/py-infthread.c(gdbpy_create_ptid_object): New.
50 (thpy_get_ptid) Use gdbpy_create_ptid_object.
51 * python/python-internal.h:
52 (gdbpy_create_ptid_object)
53 (gdbpy_initialize_inferior_call_pre_event)
54 (gdbpy_initialize_inferior_call_post_event)
55 (gdbpy_initialize_register_changed_event)
56 (gdbpy_initialize_memory_changed_event): New prototypes.
57 * python/python.c (_initialize_python): Initialize new events.
58 * valops.c (value_assign): Notify register_changed observer.
59
007baf27
DE
602014-12-02 Doug Evans <dje@google.com>
61
62 * python/py-infthread.c: Whitespace fixes.
63
d5552aab
AA
642014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
65
66 * features/Makefile (s390-te-linux64-expedite): Replace
67 non-existant r14 and r15 by r14l and r15l, respectively.
68 * regformats/s390-te-linux64.dat: Regenerate.
69
30b5e341
SM
702014-12-01 Simon Marchi <simon.marchi@ericsson.com>
71
72 * objfiles.c (allocate_objfile): Remove duplicate comment.
73
ac3d87c0
UW
742014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
75
76 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
77 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
78 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
79 (supply_gregset, supply_fpregset): Remove.
80 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
81 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
82 and sizeof_gregset.
83
f10c5b19
JK
842014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
85
86 Add add-auto-load-scripts-directory.
87 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
88 * auto-load.c (add_auto_load_dir): New function.
89 (_initialize_auto_load): Install it.
90
f0d4ba1f
MG
912014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
92
93 Pushed by Joel Brobecker <brobecker@adacore.com>.
94 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
95
18ac6ffc
SC
962014-11-29 Siva Chandra Reddy <sivachandra@google.com>
97
98 * eval.c (evaluate_subexp): Check that the thread stack temporaries
99 are not already enabled before enabling them.
100
4072f920
YQ
1012014-11-29 Yao Qi <yao@codesourcery.com>
102
103 * arm-tdep.c (arm_analyze_prologue): Move local variables
104 'framereg' and 'framesize' to inner block. Move code to
105 inner block too.
106
6c659fc2
SC
1072014-11-28 Siva Chandra Reddy <sivachandra@google.com>
108
109 * eval.c: Include gdbthread.h.
110 (evaluate_subexp): Enable thread stack temporaries before
111 evaluating a complete expression and clean them up after the
112 evaluation is complete.
113 * gdbthread.h: Include common/vec.h.
114 (value_ptr): New typedef.
115 (VEC (value_ptr)): New vector type.
116 (value_vec): New typedef.
117 (struct thread_info): Add new fields stack_temporaries_enabled
118 and stack_temporaries.
119 (enable_thread_stack_temporaries)
120 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
121 (get_last_thread_stack_temporary)
122 (value_in_thread_stack_temporaries): Declare.
123 * gdbtypes.c (class_or_union_p): New function.
124 * gdbtypes.h (class_or_union_p): Declare.
125 * infcall.c (call_function_by_hand): Store return values of class
126 type as temporaries on stack.
127 * thread.c (enable_thread_stack_temporaries): New function.
128 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
129 (get_last_thread_stack_temporary): Likewise.
130 (value_in_thread_stack_temporaries): Likewise.
131 * value.c (value_force_lval): New function.
132 * value.h (value_force_lval): Declare.
133
f7ca3fcf
PM
1342014-11-28 Pierre Muller <muller@sourceware.org>
135
136 Pushed by Joel Brobecker <brobecker@adacore.com>.
137 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
138 registers.
139
b2859a9a
UW
1402014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
141
142 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
143 * config/sparc/linux.mh (NATDEPFILES): Likewise.
144 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
145 * m68klinux-nat.c (fetch_core_registers): Remove.
146 (linux_elf_core_fns): Remove.
147 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
148
0fa9473f
JB
1492014-11-28 Joel Brobecker <brobecker@adacore.com>
150
151 * utils.c (gdb_realpath): Rework comment about handling on
152 Windows.
153
6a29c58e
YQ
1542014-11-28 Yao Qi <yao@codesourcery.com>
155
156 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
157 rename.
158 * gnulib/aclocal.m4: Re-generated.
159 * gnulib/config.in: Re-generated.
160 * gnulib/configure: Re-generated.
161 * gnulib/import/Makefile.am: Re-generated.
162 * gnulib/import/Makefile.in: Re-generated.
163 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
164 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
165 * import/basename-lgpl.c: New file.
166 * import/dirname-lgpl.c: New file.
167 * import/dirname.h: New file.
168 * import/m4/dirname.m4: New file.
169 * import/m4/malloc.m4: New file.
170 * import/m4/rename.m4: New file.
171 * import/m4/rmdir.m4: New file.
172 * import/m4/stdio_h.m4: New file.
173 * import/malloc.c: New file.
174 * import/rename.c: New file.
175 * import/rmdir.c: New file.
176 * import/same-inode.h: New file.
177 * import/stdio.c: New file.
178 * import/stdio.in.h: New file.
179 * import/stripslash.c: New file.
180
abbffc89
YQ
1812014-11-28 Yao Qi <yao@codesourcery.com>
182
183 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
184 and realpath.
185 * config.in: Re-generated.
186 * configure: Re-generated.
187 * utils.c (gdb_realpath): Remove code calling realpath,
188 canonicalize_file_name and pathconf.
189 [!_WIN32]: Call canonicalize_file_name.
190
98399780
YQ
1912014-11-28 Yao Qi <yao@codesourcery.com>
192
193 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
194 canonicalize-lgpl.
195 * aclocal.m4: Re-generated.
196 * config.in: Re-generated.
197 * configure: Re-generated.
198 * import/Makefile.am: Re-generated.
199 * import/Makefile.in: Re-generated.
200 * import/m4/gnulib-cache.m4: Re-generated.
201 * import/m4/gnulib-comp.m4: Re-generated.
202 * import/canonicalize-lgpl.c: New file.
203 * import/extra/snippet/_Noreturn.h: New file.
204 * import/m4/canonicalize.m4: New file.
205 * import/m4/double-slash-root.m4: New file.
206 * import/m4/eealloc.m4: New file.
207 * import/m4/malloca.m4: New file.
208 * import/m4/nocrash.m4: New file.
209 * import/m4/stdlib_h.m4: New file.
210 * import/malloca.c: New file.
211 * import/malloca.h: New file.
212 * import/malloca.valgrind: New file.
213
3332aaf2
YQ
2142014-11-28 Yao Qi <yao@codesourcery.com>
215
216 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
217 * config.in, configure: Regenerate.
218 * symfile.c (find_separate_debug_file_by_debuglink): Remove
219 code checking HAVE_LSTAT is defined.
220
f45c62c4
YQ
2212014-11-28 Yao Qi <yao@codesourcery.com>
222
223 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
224 lstat.
225 * gnulib/aclocal.m4: Re-generated.
226 * gnulib/config.in: Re-generated.
227 * gnulib/configure: Re-generated.
228 * gnulib/import/Makefile.am: Re-generated.
229 * gnulib/import/Makefile.in: Re-generated.
230 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
231 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
232 * gnulib/import/lstat.c: New file.
233 * gnulib/import/m4/lstat.m4: New file.
234
bdca27a2
YQ
2352014-11-28 Yao Qi <yao@codesourcery.com>
236
237 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
238 * config.in, configure: Re-generate.
239 * inf-child.c (inf_child_fileio_readlink): Don't check
240 HAVE_READLINK is defined.
241
2196f55f
YQ
2422014-11-28 Yao Qi <yao@codesourcery.com>
243
244 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
245 * gnulib/aclocal.m4: Re-generated.
246 * gnulib/config.in: Likewise.
247 * gnulib/configure: Likewise.
248 * gnulib/import/Makefile.am: Likewise.
249 * gnulib/import/Makefile.in: Likewise.
250 * gnulib/import/m4/gnulib-cache.m4: Likewise.
251 * gnulib/import/m4/gnulib-comp.m4: Likewise.
252 * gnulib/import/dosname.h: New file
253 * gnulib/import/m4/largefile.m4: New file.
254 * gnulib/import/m4/readlink.m4: New file.
255 * gnulib/import/m4/stat.m4: New file.
256 * gnulib/import/readlink.c: New file.
257 * gnulib/import/stat.c: New file.
258
7014e923 2592014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
260
261 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
262 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
263
aa489395
SL
2642014-11-25 Sandra Loosemore <sandra@codesourcery.com>
265
266 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
267 that there can be only one stack adjustment in the prologue
268 with tests to detect specific disallowed stack adjustments.
269
7f1659b5
SL
2702014-11-25 Sandra Loosemore <sandra@codesourcery.com>
271
272 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
273 adjustments.
274
d53c26c7
SL
2752014-11-25 Sandra Loosemore <sandra@codesourcery.com>
276
277 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
278 the instruction as well as reading it from memory.
279 (nios2_match_add): New.
280 (nios2_match_sub): New.
281 (nios2_match_addi): New.
282 (nios2_match_orhi): New.
283 (nios2_match_stw): New.
284 (nios2_match_ldw): New.
285 (nios2_match_rdctl): New.
286 (enum branch_condition): New.
287 (nios2_match_branch): New.
288 (nios2_match_jmpi): New.
289 (nios2_match_calli): New.
290 (nios2_match_jmpr): New.
291 (nios2_match_callr): New.
292 (nios2_match_break): New.
293 (nios2_match_trap): New.
294 (nios2_in_epilogue_p): Rewrite to use new functions.
295 (nios2_analyze_prologue): Likewise.
296 (nios2_skip_prologue): Delete unused local limit_pc.
297 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
298 (nios2_get_next_pc): Rewrite to use new functions.
299
cac9b138
JK
3002014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
301
302 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
303
a441dfbc
ST
3042014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
305
306 Pushed by Joel Brobecker <brobecker@adacore.com>
307 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
308 elements pi_len by the size of the elements before calling
309 vm_deallocate.
310 (inf_validate_task_sc): Likewise, and properly deallocate the
311 noise array.
312
4c9e8482
DE
3132014-11-23 Doug Evans <xdje42@gmail.com>
314
315 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
316 number and name if present. All callers updated.
317 (dump_fn_fieldlists): Fix indentation of args.
318
15ee0bbd
PP
3192014-11-23 Patrick Palka <patrick@parcs.ath.cx>
320
321 * MAINTAINERS (Write After Approval): Add myself.
322
e8af5d7a
JB
3232014-11-23 Joel Brobecker <brobecker@adacore.com>
324
325 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
326 to a bp_call_dummy breakpoint type.
327
a344fc09
PP
3282014-11-23 Patrick Palka <patrick@parcs.ath.cx>
329
330 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
331 registering the signal handler.
332
d64e57fa
PP
3332014-11-23 Patrick Palka <patrick@parcs.ath.cx>
334
335 * event-top.h (call_stdin_event_handler_again_p): Declare.
336 * event-top.c (call_stdin_event_handler_again_p): Define.
337 (stdin_event_handler): Use it.
338 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
339 handler again if there is pending input following a
340 start sequence.
341
6f9d33d8
PP
3422014-11-23 Patrick Palka <patrick@parcs.ath.cx>
343
344 Pushed by Joel Brobecker <brobecker@adacore.com>
345 * linux-fork.c (checkpoint_command): Print index of new
346 checkpoint in response message.
347
88db67ef
YQ
3482014-11-23 Yao Qi <yao@codesourcery.com>
349
350 * valprint.c (read_string): Move local variables 'found_nul',
351 'chunksize' and 'limit' to inner scope. Update comments.
352
01465b56
DE
3532014-11-22 Doug Evans <xdje42@gmail.com>
354
355 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
356 function comment.
357 (search_symbols): Fix comments and whitespace.
358
07a1c2c3
DE
3592014-11-22 Doug Evans <xdje42@gmail.com>
360
361 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
362
b2a919a8
DE
3632014-11-21 Doug Evans <dje@google.com>
364
365 * psymtab.c (psymtab_search_name): Fix whitespace.
366
278289d5
YQ
3672014-11-21 Yao Qi <yao@codesourcery.com>
368
369 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
370 errno.
371 * gnulib/import/Makefile.am: Re-generated.
372 * gnulib/import/Makefile.in: Likewise.
373 * gnulib/import/m4/gnulib-cache.m4: Likewise.
374
e01e2baa
YQ
3752014-11-21 Yao Qi <yao@codesourcery.com>
376
377 * gdb_wchar.h: Include wchar.h and wctype.h.
378 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
379 include wchar.h and wctype.h.
380 Don't check HAVE_WCHAR_H.
381
f0c00af8
YQ
3822014-11-21 Yao Qi <yao@codesourcery.com>
383
384 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
385 and wctype-h.
386 * gnulib/import/Makefile.am: Re-generated.
387 * gnulib/import/Makefile.in: Likewise.
388 * gnulib/import/m4/gnulib-cache.m4: Likewise.
389
0cae13bb
YQ
3902014-11-21 Yao Qi <yao@codesourcery.com>
391
392 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
393 memchr.
394 * gnulib/import/Makefile.am: Re-generated.
395 * gnulib/import/Makefile.in: Likewise.
396 * gnulib/import/m4/gnulib-cache.m4: Likewise.
397
9c232dda
YQ
3982014-11-21 Yao Qi <yao@codesourcery.com>
399
400 * common/common-defs.h: Include alloca.h
401 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
402 * configure: Re-generated.
403 * defs.h: Remove code handling alloca.
404 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
405 or not.
406
00d7f58f
YQ
4072014-11-21 Yao Qi <yao@codesourcery.com>
408
409 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
410 alloca.
411 * gnulib/import/Makefile.am: Re-generated.
412 * gnulib/import/Makefile.in: Likewise..
413 * gnulib/import/m4/gnulib-cache.m4: Likewise.
414
6068ad5d
YQ
4152014-11-21 Yao Qi <yao@codesourcery.com>
416
417 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
418 alphabetical order.
419
45e44d27
JB
4202014-11-21 Joel Brobecker <brobecker@adacore.com>
421
422 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
423 flag_unsigned if HIGH_BOUND is constant and negative.
424
7e7cbeb3
SDJ
4252014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
426
427 PR breakpoints/10737
428 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
429 modifier from "struct gdbarch" when compiling without Expat (XML)
430 support.
431 (get_syscall_by_number): Likewise.
432 (get_syscall_by_name): Likewise.
433 (get_syscall_names): Likewise.
434
458c8db8
SDJ
4352014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
436
437 PR breakpoints/10737
438 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
439 set_xml_syscall_file_name to provide gdbarch.
440 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
441 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
442 * breakpoint.c (print_it_catch_syscall): Adjust call to
443 get_syscall_by_number to provide gdbarch.
444 (print_one_catch_syscall): Likewise.
445 (print_mention_catch_syscall): Likewise.
446 (print_recreate_catch_syscall): Likewise.
447 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
448 and get_syscall_by_name to provide gdbarch.
449 (catch_syscall_completer): Adjust call to get_syscall_names to
450 provide gdbarch.
451 * gdbarch.c: Regenerate.
452 * gdbarch.h: Likewise.
453 * gdbarch.sh: Forward declare "struct syscalls_info".
454 (xml_syscall_file): New variable.
455 (syscalls_info): Likewise.
456 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
457 set_xml_syscall_file_name to provide gdbarch.
458 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
459 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
460 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
461 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
462 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
463 * xml-syscall.c: Include gdbarch.h.
464 (set_xml_syscall_file_name): Accept gdbarch parameter.
465 (get_syscall_by_number): Likewise.
466 (get_syscall_by_name): Likewise.
467 (get_syscall_names): Likewise.
468 (my_gdb_datadir): Delete global variable.
469 (struct syscalls_info) <my_gdb_datadir>: New variable.
470 (struct syscalls_info) <sysinfo>: Rename variable to
471 "syscalls_info".
472 (sysinfo): Delete global variable.
473 (have_initialized_sysinfo): Likewise.
474 (xml_syscall_file): Likewise.
475 (sysinfo_free_syscalls_desc): Rename to...
476 (syscalls_info_free_syscalls_desc): ... this.
477 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
478 code to the new layout of "struct syscalls_info".
479 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
480 "syscalls_info".
481 (syscall_create_syscall_desc): Likewise.
482 (syscall_start_syscall): Likewise.
483 (syscall_parse_xml): Likewise.
484 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
485 (init_sysinfo): Rename to...
486 (init_syscalls_info): ...this. Add gdbarch as a parameter.
487 Adjust function to deal with gdbarch.
488 (xml_get_syscall_number): Delete parameter sysinfo. Accept
489 gdbarch as a parameter. Adjust code.
490 (xml_get_syscall_name): Likewise.
491 (xml_list_of_syscalls): Likewise.
492 (set_xml_syscall_file_name): Accept gdbarch as parameter.
493 (get_syscall_by_number): Likewise.
494 (get_syscall_by_name): Likewise.
495 (get_syscall_names): Likewise.
496 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
497 (get_syscall_by_number): Likewise.
498 (get_syscall_by_name): Likewise.
499 (get_syscall_names): Likewise.
500
43f3e411
DE
5012014-11-20 Doug Evans <xdje42@gmail.com>
502
503 Split struct symtab into two: struct symtab and compunit_symtab.
504 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
505 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
506 to "struct compunit_symtab *". All callers updated.
507 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
508 "struct symtab *" argument to "struct compunit_symtab *".
509 All callers updated.
510 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
511 result to "struct compunit_symtab *". All callers updated.
512 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
513 Change result to "struct compunit_symtab *". All callers updated.
514 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
515 hange type to "struct compunit_symtab *". All uses updated.
516 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
517 Change type to "struct compunit_symtab *". All uses updated.
518 * buildsym.c (struct buildsym_compunit): New struct.
519 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
520 (buildsym_compunit): New static global.
521 (finish_block_internal): Update to fetch objfile from
522 buildsym_compunit.
523 (make_blockvector): Delete objfile argument.
524 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
525 debugformat, producer.
526 (start_buildsym_compunit): New function.
527 (free_buildsym_compunit): Renamed from free_subfiles_list.
528 All callers updated.
529 (patch_subfile_names): Rewrite to use buildsym_compunit.
530 (get_compunit_symtab): New function.
531 (get_macro_table): Delete argument comp_dir. All callers updated.
532 (start_symtab): Change result to "struct compunit_symtab *".
533 All callers updated. Create the subfile of the main source file.
534 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
535 (reset_symtab_globals): Update.
536 (end_symtab_get_static_block): Update to use buildsym_compunit.
537 (end_symtab_without_blockvector): Rewrite.
538 (end_symtab_with_blockvector): Change result to
539 "struct compunit_symtab *". All callers updated.
540 Update to use buildsym_compunit. Don't set symtab->dirname,
541 instead set it in the compunit.
542 Explicitly make sure main symtab is first in its list.
543 Set debugformat, producer, blockvector, block_line_section, and
544 macrotable in the compunit.
545 (end_symtab_from_static_block): Change result to
546 "struct compunit_symtab *". All callers updated.
547 (end_symtab, end_expandable_symtab): Ditto.
548 (set_missing_symtab): Change symtab argument to
549 "struct compunit_symtab *". All callers updated.
550 (augment_type_symtab): Ditto.
551 (record_debugformat): Update to use buildsym_compunit.
552 (record_producer): Update to use buildsym_compunit.
553 * buildsym.h (struct subfile) <dirname>: Delete.
554 <producer, debugformat>: Delete.
555 <buildsym_compunit>: New member.
556 (get_compunit_symtab): Declare.
557 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
558 from primary_symtab. Change type to "struct compunit_symtab *".
559 All uses updated.
560 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
561 All callers updated.
562 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
563 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
564 symtab. Change type to "struct compunit_symtab *". All uses updated.
565 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
566 All callers updated.
567 (dw2_find_last_source_symtab): Ditto.
568 (dw2_lookup_symbol): Ditto.
569 (recursively_find_pc_sect_compunit_symtab): Renamed from
570 recursively_find_pc_sect_symtab. Change result to
571 "struct compunit_symtab *". All callers updated.
572 (dw2_find_pc_sect_compunit_symtab): Renamed from
573 dw2_find_pc_sect_symtab. Change result to
574 "struct compunit_symtab *". All callers updated.
575 (get_compunit_symtab): Renamed from get_symtab. Change result to
576 "struct compunit_symtab *". All callers updated.
577 (recursively_compute_inclusions): Change type of immediate_parent
578 argument to "struct compunit_symtab *". All callers updated.
579 (compute_compunit_symtab_includes): Renamed from
580 compute_symtab_includes. All callers updated. Rewrite to compute
581 includes of compunit_symtabs and not symtabs.
582 (process_full_comp_unit): Update to work with struct compunit_symtab.
583 (process_full_type_unit): Ditto.
584 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
585 (dwarf_decode_lines): Remove special case handling of main subfile.
586 (macro_start_file): Delete argument comp_dir. All callers updated.
587 (dwarf_decode_macro_bytes): Ditto.
588 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
589 use struct compunit_symtab.
590 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
591 * jit.c (finalize_symtab): Build compunit_symtab.
592 * jv-lang.c (get_java_class_symtab): Change result to
593 "struct compunit_symtab *". All callers updated.
594 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
595 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
596 comp_dir. Change type to "struct compunit_symtab *".
597 All uses updated.
598 (new_macro_table): Change comp_dir argument to cust,
599 "struct compunit_symtab *". All callers updated.
600 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
601 nr_primary_symtabs. All uses updated.
602 (count_symtabs_and_blocks): Update to handle compunits.
603 (report_command_stats): Update output, "primary symtabs" renamed to
604 "compunits".
605 * mdebugread.c (new_symtab): Change result to
606 "struct compunit_symtab *". All callers updated.
607 (parse_procedure): Change type of search_symtab argument to
608 "struct compunit_symtab *". All callers updated.
609 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
610 separate loop.
611 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
612 symtabs. Change type to "struct compunit_symtab *". All uses updated.
613 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
614 All uses updated.
615 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
616 All uses updated.
617 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
618 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
619 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
620 symtab. Change type to "struct compunit_symtab *". All uses updated.
621 * psymtab.c (psymtab_to_symtab): Change result type to
622 "struct compunit_symtab *". All callers updated.
623 (find_pc_sect_compunit_symtab_from_partial): Renamed from
624 find_pc_sect_symtab_from_partial. Change result type to
625 "struct compunit_symtab *". All callers updated.
626 (lookup_symbol_aux_psymtabs): Change result type to
627 "struct compunit_symtab *". All callers updated.
628 (find_last_source_symtab_from_partial): Ditto.
629 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
630 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
631 and macro_table from compunit.
632 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
633 type to "struct compunit_symtab *". All callers updated.
634 (debug_qf_lookup_symbol): Ditto.
635 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
636 debug_qf_find_pc_sect_symtab, change result type to
637 "struct compunit_symtab *". All callers updated.
638 * symfile.c (allocate_symtab): Delete objfile argument.
639 New argument cust.
640 (allocate_compunit_symtab): New function.
641 (add_compunit_symtab_to_objfile): New function.
642 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
643 Change result type to "struct compunit_symtab *". All uses updated.
644 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
645 Change result type to "struct compunit_symtab *". All uses updated.
646 * symmisc.c (print_objfile_statistics): Compute blockvector count in
647 separate loop.
648 (dump_symtab_1): Update test for primary source symtab.
649 (maintenance_info_symtabs): Update to handle compunit symtabs.
650 (maintenance_check_symtabs): Ditto.
651 * symtab.c (set_primary_symtab): Delete.
652 (compunit_primary_filetab): New function.
653 (compunit_language): New function.
654 (iterate_over_some_symtabs): Change type of arguments "first",
655 "after_last" to "struct compunit_symtab *". All callers updated.
656 Update to loop over symtabs in each compunit.
657 (error_in_psymtab_expansion): Rename symtab argument to cust,
658 and change type to "struct compunit_symtab *". All callers updated.
659 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
660 Change result type to "struct compunit_symtab *". All callers updated.
661 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
662 Change result type to "struct compunit_symtab *". All callers updated.
663 (find_pc_sect_line): Only loop over symtabs within selected compunit
664 instead of all symtabs in the objfile.
665 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
666 <compunit_symtab> New member.
667 <block_line_section>: Moved to compunit_symtab.
668 <locations_valid>: Ditto.
669 <epilogue_unwind_valid>: Ditto.
670 <macro_table>: Ditto.
671 <dirname>: Ditto.
672 <debugformat>: Ditto.
673 <producer>: Ditto.
674 <objfile>: Ditto.
675 <call_site_htab>: Ditto.
676 <includes>: Ditto.
677 <user>: Ditto.
678 <primary>: Delete
679 (SYMTAB_COMPUNIT): New macro.
680 (SYMTAB_BLOCKVECTOR): Update definition.
681 (SYMTAB_OBJFILE): Update definition.
682 (SYMTAB_DIRNAME): Update definition.
683 (struct compunit_symtab): New type. Common members among all source
684 symtabs within a compilation unit moved here. All uses updated.
685 (COMPUNIT_OBJFILE): New macro.
686 (COMPUNIT_FILETABS): New macro.
687 (COMPUNIT_DEBUGFORMAT): New macro.
688 (COMPUNIT_PRODUCER): New macro.
689 (COMPUNIT_DIRNAME): New macro.
690 (COMPUNIT_BLOCKVECTOR): New macro.
691 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
692 (COMPUNIT_LOCATIONS_VALID): New macro.
693 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
694 (COMPUNIT_CALL_SITE_HTAB): New macro.
695 (COMPUNIT_MACRO_TABLE): New macro.
696 (ALL_COMPUNIT_FILETABS): New macro.
697 (compunit_symtab_ptr): New typedef.
698 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
699
005e2509
JB
7002014-11-20 Joel Brobecker <brobecker@adacore.com>
701
702 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
703 if the TYPE_CODE of range_type's base type does not match
704 the TYPE_CODE of encoding_type's base type.
705
2b0f535a
JB
7062014-11-19 Joel Brobecker <brobecker@adacore.com>
707
708 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
709 it starts with '<'.
710
8908fca5
JB
7112014-11-19 Joel Brobecker <brobecker@adacore.com>
712
713 * ada-lang.c (ada_is_redundant_range_encoding): New function.
714 (ada_is_redundant_index_type_desc): New function.
715 (to_fixed_array_type): Ignore parallel XA type if redundant.
716
4a46959e
JB
7172014-11-19 Joel Brobecker <brobecker@adacore.com>
718
719 * ada-lang.c (constrained_packed_array_type): Set the length
720 of the return array as if both bounds where zero if that
721 returned array's index type is dynamic.
722
2acf986b
YQ
7232014-11-19 Yao Qi <yao@codesourcery.com>
724
725 * config/i386/go32.mh (CC): Remove.
726
439247b6
DE
7272014-11-18 Doug Evans <xdje42@gmail.com>
728
729 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
730 updated.
731
4d663531
DE
7322014-11-18 Doug Evans <xdje42@gmail.com>
733
734 * buildsym.c (buildsym_objfile): New static global.
735 (buildsym_comp_dir): New static global.
736 (finish_block_internal): Delete arg objfile. All callers updated.
737 (finish_block): Delete arg objfile. All callers updated.
738 (start_subfile): Delete arg dirname. All callers updated.
739 (patch_subfile_names): Update buildsym_comp_dir.
740 (get_macro_table): Delete arg objfile. All callers updated.
741 (start_symtab): New arg objfile. All callers updated.
742 Rename arg dirname to comp_dir.
743 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
744 (end_symtab_get_static_block): Delete arg objfile. All callers
745 updated.
746 (end_symtab_without_blockvector): Ditto.
747 (end_symtab_with_blockvector): Ditto.
748 (end_symtab_from_static_block): Ditto.
749 (end_symtab): Ditto.
750 (end_expandable_symtab): Ditto.
751 (augment_type_symtab): Ditto.
752 * coffread.c (coff_start_symtab): New arg objfile. All callers
753 updated.
754
8435453b
DE
7552014-11-18 Doug Evans <xdje42@gmail.com>
756
757 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
758 updated.
759
ee6f8984
DE
7602014-11-18 Doug Evans <xdje42@gmail.com>
761
762 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
763 symtab.dirname updated to use it.
764
eb822aa6
DE
7652014-11-18 Doug Evans <xdje42@gmail.com>
766
767 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
768 symtab.objfile updated to use it.
769
98387a29
DE
7702014-11-18 Doug Evans <xdje42@gmail.com>
771
772 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
773
aff08958
DE
7742014-11-18 Doug Evans <xdje42@gmail.com>
775
776 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
777 SYMBOL_OBJFILE.
778 * findvar.c (default_read_var_value): Ditto.
779 * jv-lang.c (add_class_symtab_symbol): Ditto.
780 * parse.c (operator_check_standard): Ditto.
781 * printcmd.c (address_info): Ditto.
782 * symtab.c (fixup_symbol_section): Ditto.
783 (skip_prologue_sal): Ditto.
784 * tracepoint.c (scope_info): Ditto.
785 * valops.c (find_function_in_inferior): Ditto.
786 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
787 * python/py-symbol.c (set_symbol): Ditto.
788
7bab9b58
DE
7892014-11-18 Doug Evans <xdje42@gmail.com>
790
791 * buildsym.c (main_subfile): New static global.
792 (free_subfiles_list): New function.
793 (start_symtab): Set main_subfile.
794 (restart_symtab): Replace init of subfiles, current_subfile with
795 call to free_subfiles_list.
796 (watch_main_source_file_lossage): Use main_subfile.
797 (reset_symtab_globals): Replace init of current_subfile with call
798 to free_subfiles_list.
799 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
800 functions, split out from ...
801 (end_symtab_from_static_block): ... here. Rewrite to call them.
802
f194fefb
DE
8032014-11-18 Doug Evans <xdje42@gmail.com>
804
805 The result of symtab expansion is always a primary symtab.
806 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
807 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
808 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
809 (psymtab_to_symtab): Add comment and assert.
810 (map_matching_symbols_psymtab): Remove unnecessary test for
811 non-primary symtab.
812
34248c3a
DE
8132014-11-15 Doug Evans <xdje42@gmail.com>
814
815 PR symtab/17559
816 * symtab.c (find_pc_line_symtab): New function.
817 * symtab.h (find_pc_line_symtab): Declare.
818 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
819 find_pc_symtab.
820 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
821 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
822 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
823 * tui/tui-win.c (make_visible_with_new_height): Ditto.
824 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
825 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
826
2097ae25
DE
8272014-11-15 Doug Evans <xdje42@gmail.com>
828
829 * symtab.c (expand_symtab_containing_pc): Renamed from
830 find_pc_sect_symtab_via_partial. All callers updated.
831
1ada499f
YQ
8322014-11-15 Yao Qi <yao@codesourcery.com>
833
834 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
835
355e2102
JB
8362014-11-14 Joel Brobecker <brobecker@adacore.com>
837
838 * common/common-defs.h: Move <stdarg.h> #include ahead of
839 <stdio.h> #include.
840
83030110
PA
8412014-11-14 Pedro Alves <palves@redhat.com>
842
843 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
844 [!PHONY_ICONV] (gdb_iconv): New function.
845 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
846
a8719064
DE
8472014-11-13 Doug Evans <dje@google.com>
848
849 PR symtab/17591
850 * dwarf2read.c (find_slot_in_mapped_hash): Handle
851 "(anonymous namespace)".
852
60f7655a
DE
8532014-11-13 Doug Evans <dje@google.com>
854
855 * dwarf2read.c (update_enumeration_type_from_children): Avoid
856 infinite loop.
857
5784b3ca
JK
8582014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
859
860 * NEWS (maint set target-async): Fix typo.
861
6218dc4b
PA
8622014-11-12 Pedro Alves <palves@redhat.com>
863
864 * infrun.c (enum infwait_states, infwait_state): Delete.
865
af48d08f
PA
8662014-11-12 Pedro Alves <palves@redhat.com>
867
868 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
869 Rewrite stepping over a permanent breakpoint.
870 (thread_still_needs_step_over, proceed): Don't set
871 stepping_over_breakpoint for permanent breakpoints.
872 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
873 single-step breakpoints out of the target on hardware step
874 targets.
875 (process_event_stop_test): If stepping a permanent breakpoint
876 doesn't hit the step-resume breakpoint, delete the step-resume
877 breakpoint.
878 (switch_back_to_stepped_thread): Also check if the stepped thread
879 has advanced already on hardware step targets.
880 (currently_stepping): Return true if the thread stepped a
881 breakpoint.
882
1a853c52
PA
8832014-11-12 Pedro Alves <palves@redhat.com>
884
885 Mark locations as permanent, not the whole breakpoint.
886 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
887 (mark_breakpoints_out): Don't mark permanent breakpoints as
888 uninserted.
889 (breakpoint_init_inferior): Use mark_breakpoints_out.
890 (breakpoint_here_p): Adjust.
891 (bpstat_stop_status, describe_other_breakpoints): Remove handling
892 of permanent breakpoints.
893 (make_breakpoint_permanent): Mark each location as permanent,
894 instead of marking the breakpoint.
895 (add_location_to_breakpoint): If the location is permanent, mark
896 it as such, and as inserted.
897 (init_breakpoint_sal): Don't make the breakpoint permanent here.
898 (bp_location_compare, update_global_location_list): Adjust.
899 (update_breakpoint_locations): Don't make the breakpoint permanent
900 here.
901 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
902 breakpoints.
903 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
904 (struct bp_location) <permanent>: New field.
905 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
906 reference to bp_permanent.
907
ae9bb220
PA
9082014-11-12 Pedro Alves <palves@redhat.com>
909
910 * arch-utils.c (default_skip_permanent_breakpoint): New function.
911 * arch-utils.h (default_skip_permanent_breakpoint): New
912 declaration.
913 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
914 Install default_skip_permanent_breakpoint as default method.
915 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
916 (i386_gdbarch_init): Don't install it.
917 * infrun.c (resume): Assume there's always a
918 gdbarch_skip_permanent_breakpoint implementation.
919 * gdbarch.h, gdbarch.c: Regenerate.
920
015de688
DC
9212014-11-11 Daniel Colascione <dancol@dancol.org>
922
923 Warn about cross-PID-namespace debugging.
924 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
925 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
926 * linux-thread-db.c (check_pid_namespace_match): New function.
927 (thread_db_inferior_created): Call it.
928
26a84859
DE
9292014-11-10 Doug Evans <xdje42@gmail.com>
930
931 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
932 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
933
712a2e6d
DE
9342014-11-10 Doug Evans <xdje42@gmail.com>
935
936 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
937
af3768e9
DE
9382014-11-10 Doug Evans <xdje42@gmail.com>
939
940 PR symtab/17564
941 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
942 (lookup_static_symbol): Move definition to new location and rewrite.
943 (lookup_symbol_in_objfile): New function.
944 (lookup_symbol_global_iterator_cb): Call it.
945
b1f28d99
UW
9462014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
947
948 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
949
b7a084be
PA
9502014-11-07 Pedro Alves <palves@redhat.com>
951
952 * infrun.c (process_event_stop_test) <subroutine check>: Don't
953 check if we did a "nexti" inside a prologue.
954 * symtab.c (in_prologue): Delete function.
955 * symtab.h (in_prologue): Delete declaration.
956
67be31e5
DE
9572014-11-06 Doug Evans <xdje42@gmail.com>
958
959 * symtab.h (lookup_global_symbol): Improve function comment.
960
08724ab7
DE
9612014-11-06 Doug Evans <xdje42@gmail.com>
962
963 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
964 All callers updated.
965 * symtab.h (lookup_global_symbol): Update decl.
966 (lookup_static_symbol): Move decl to better location.
967
d9060ba6
DE
9682014-11-06 Doug Evans <xdje42@gmail.com>
969
970 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
971
74016e12
DE
9722014-11-06 Doug Evans <xdje42@gmail.com>
973
974 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
975 All callers updated.
976 (lookup_symbol_in_all_objfiles): Renamed from
977 lookup_symbol_aux_symtabs. All callers updated.
978 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
979 All callers updated.
980 (lookup_symbol_in_objfile_symtabs): Renamed from
981 lookup_symbol_aux_objfile. All callers updated.
982
d1a2d36d
DE
9832014-11-06 Doug Evans <xdje42@gmail.com>
984
985 * symtab.c (lookup_symbol_in_block): Renamed from
986 lookup_symbol_aux_block. All callers updated.
987
24d864bb
DE
9882014-11-06 Doug Evans <xdje42@gmail.com>
989
990 * symtab.c (lookup_static_symbol): Renamed from
991 lookup_static_symbol_aux. All callers updated.
992 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
993 All callers updated.
994
358d6ab3
DE
9952014-11-06 Doug Evans <xdje42@gmail.com>
996
997 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
998 * block.c (block_lookup_symbol): Use it.
999 * cp-support.c (make_symbol_overload_list_block): Use it.
1000 * symtab.c (iterate_over_symbols): Use it.
1001
16b2eaa1
DE
10022014-11-06 Doug Evans <xdje42@gmail.com>
1003
1004 * symtab.c (lookup_block_symbol): Moved to ...
1005 * block.c (block_lookup_symbol): ... here and renamed.
1006 All callers updated.
1007 * block.h (block_lookup_symbol): Declare.
1008 * symtab.h (lookup_block_symbol): Delete.
1009
2dd2cd1c
DE
10102014-11-06 Doug Evans <xdje42@gmail.com>
1011
1012 * ada-lang.c (ada_make_symbol_completion_list): Use
1013 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1014 * symtab.c (lookup_objfile_from_block): Ditto.
1015
d4c58915
DE
10162014-11-06 Doug Evans <xdje42@gmail.com>
1017
1018 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1019 TYPE_CODE_STRUCT.
1020
9c1877ea
DE
10212014-11-06 Doug Evans <xdje42@gmail.com>
1022
1023 * objfiles.c (get_objfile_arch): Constify.
1024 * objfiles.h (get_objfile_arch): Update prototype.
1025 * solib.c (solib_global_lookup): Fetch arch from objfile,
1026 not target_gdbarch.
1027
426a4079
SL
10282014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1029
1030 * nios2-tdep.c (wild_insn): Delete.
1031 (profiler_insn, irqentry_insn): Delete.
1032 (nios2_match_sequence): Delete.
1033 (nios2_analyze_prologue): Update comments. Remove matching
1034 of obsolete profiler_insn and irqentry_insn sequences.
1035
ee11262d
AM
10362014-11-05 Alan Modra <amodra@gmail.com>
1037
1038 * charset.c (convert_between_encodings): Shrink obstack using
1039 obstack_blank_fast.
1040 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1041 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1042 to char* before doing pointer arithmetic.
ee11262d 1043
c87e6d00
SM
10442014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1045
1046 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1047
441ef17f
PA
10482014-11-04 Pedro Alves <palves@redhat.com>
1049
1050 * breakpoint.c (breakpoint_thread_match): Delete function.
1051 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1052
e0f52461
SC
10532014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1054
1055 PR c++/17494
1056 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1057 the method args also under EVAL_SKIP when evaluating method
1058 calls under EVAL_SKIP.
1059
a0b4d890
YQ
10602014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1061
1062 * dwarf2loc.c (read_pieced_value): Do big endian
1063 processing only if gdb_regnum is not -1.
1064 (write_pieced_value): Ditto.
1065
10662014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1067
1068 * arm-linux-tdep.c (arm_linux_init_abi): Use
1069 info.byte_order_for_code to choose endianity of breakpoint
1070 instructions snippets.
1071
10722014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1073
1074 * arm-tdep.c (extract_arm_insn): Use
1075 gdbarch_byte_order_for_code to read arm instruction.
1076
e82149ff
DE
10772014-11-02 Doug Evans <xdje42@gmail.com>
1078
1079 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1080
d7ee84f1
DE
10812014-11-02 Doug Evans <xdje42@gmail.com>
1082
1083 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1084 main_subfile before returning.
1085
4f072d17
DE
10862014-10-31 Doug Evans <xdje42@gmail.com>
1087
1088 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1089 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1090
8301c89e
DE
10912014-10-31 Doug Evans <xdje42@gmail.com>
1092
1093 * valops.c (value_cast_pointers): Fix whitespace.
1094 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1095 Ditto.
1096
02be9a71
DE
10972014-10-30 Doug Evans <dje@google.com>
1098
1099 * NEWS: Mention ability add attributes to gdb.Objfile and
1100 gdb.Progspace objects.
1101 * python/py-objfile.c (objfile_object): New member dict.
1102 (objfpy_dealloc): Py_XDECREF dict.
1103 (objfpy_initialize): Initialize dict.
1104 (objfile_getset): Add __dict__.
1105 (objfile_object_type): Set tp_dictoffset member.
1106 * python/py-progspace.c (progspace_object): New member dict.
1107 (pspy_dealloc): Py_XDECREF dict.
1108 (pspy_initialize): Initialize dict.
1109 (pspace_getset): Add __dict__.
1110 (pspace_object_type): Set tp_dictoffset member.
1111
6427bef6
YQ
11122014-10-30 Yao Qi <yao@codesourcery.com>
1113
1114 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1115 replace '\\' with '\\\\'.
1116
f60325be
JB
11172014-10-29 Joel Brobecker <brobecker@adacore.com>
1118
1119 GDB 7.8.1 released.
1120
ab917dfb
PA
11212014-10-29 Pedro Alves <palves@redhat.com>
1122
1123 PR gdb/17408
1124 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1125 instead of assuming a thread with a stepping range is always
1126 stepping.
1127
d3d4baed
PA
11282014-10-29 Pedro Alves <palves@redhat.com>
1129
1130 PR python/17372
1131 * event-top.c (change_line_handler): Call
1132 gdb_rl_callback_handler_remove instead of
1133 rl_callback_handler_remove.
1134 (callback_handler_installed): New global.
1135 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1136 (gdb_rl_callback_handler_reinstall): New functions.
1137 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1138 gdb_rl_callback_handler_install instead of
1139 rl_callback_handler_remove and rl_callback_handler_install.
1140 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1141 instead of rl_callback_handler_remove.
1142 * event-top.h (gdb_rl_callback_handler_remove)
1143 (gdb_rl_callback_handler_install)
1144 (gdb_rl_callback_handler_reinstall): New declarations.
1145 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1146 cleanup function.
1147 (fetch_inferior_event): Install it.
1148 * top.c (gdb_readline_wrapper_line) Call
1149 gdb_rl_callback_handler_remove instead of
1150 rl_callback_handler_remove.
1151 (gdb_readline_wrapper_cleanup): Don't call
1152 rl_callback_handler_install.
1153
6e5d7f39
PA
11542014-10-29 Pedro Alves <palves@redhat.com>
1155
1156 * event-top.c (command_line_handler): Clear the first byte of
1157 linebuffer, when it is first allocated.
1158
551cb6a5
PA
11592014-10-29 Pedro Alves <palves@redhat.com>
1160
1161 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1162 TRY_CATCH.
1163
1e1e619b
PA
11642014-10-29 Pedro Alves <palves@redhat.com>
1165
1166 PR tui/16138
1167 PR tui/17519
1168 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1169 (tui_allowed_p): Delete function.
1170 * tui/tui.c: Include "interps.h".
1171 (tui_enable): Don't use tui_allowed_p. Error out here with
1172 detailed error messages if the TUI is the top level interpreter,
1173 or if output is not a terminal. Use newterm instead of initscr,
1174 and error out if initializing the terminal fails. Also error out if
1175 the terminal doesn't support cursor addressing.
1176 * tui/tui.h (tui_allowed_p): Delete declaration.
1177
6041179a
JB
11782014-10-29 Joel Brobecker <brobecker@adacore.com>
1179
1180 * arm-tdep.c (arm_skip_stack_protector): Return early if
1181 address loaded by first "ldr" instruction does not have
1182 a corresponding minimal symbol. Update comment.
1183
6ae274b7
YQ
11842014-10-29 Yao Qi <yao@codesourcery.com>
1185
1186 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1187 loaded address correctly of ldr instruction.
1188
7f5ef605
PA
11892014-10-28 Pedro Alves <palves@redhat.com>
1190
1191 PR gdb/12623
1192 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1193 field.
1194 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1195 thread's stepped_breakpoint field. Skip if reverse debugging.
1196 Add comment.
1197 (init_thread_stepping_state, handle_signal_stop): Clear the
1198 thread's stepped_breakpoint field.
1199
7d1a114c
PA
12002014-10-27 Pedro Alves <palves@redhat.com>
1201
1202 * remote.c (remote_thread_alive): New, factored out from ...
1203 (remote_thread_alive): ... this.
1204 (remote_update_thread_list): Bail out before deleting threads if
1205 the target returned an empty list, and, the current thread has a
1206 magic/fake ptid.
1207
e5f8a7cc
PA
12082014-10-27 Pedro Alves <palves@redhat.com>
1209
1210 * infrun.c (handle_signal_stop): Also skip handlers when a random
1211 signal arrives while handling a "stepi" or a "nexti". Set the
1212 thread's 'step_after_step_resume_breakpoint' flag.
1213
71e396f9
LM
12142014-10-27 Luis Machado <lgustavo@codesourcery.com>
1215
1216 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1217 (arm_record_ld_st_imm_offset): Reimplement to cover all
1218 load/store cases for ARM opcode 010.
1219 (arm_record_ld_st_multiple): Reimplement to cover all
1220 load/store cases for ARM opcode 100.
1221
3aee438b
DE
12222014-10-26 Doug Evans <xdje42@gmail.com>
1223
1224 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1225
f88cb4b6
DE
12262014-10-26 Doug Evans <xdje42@gmail.com>
1227
1228 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1229 parameter "kind" to "block_index".
1230 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1231 "block_index".
1232 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1233
a023a30f
DE
12342014-10-26 Doug Evans <xdje42@gmail.com>
1235
1236 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1237
4c35218e
DE
12382014-10-26 Doug Evans <xdje42@gmail.com>
1239
1240 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1241 obstack_alloc.
1242
f08e8df3
DE
12432014-10-26 Doug Evans <xdje42@gmail.com>
1244
1245 * parser-defs.h (block_found): Move decl from here ...
1246 * symtab.h (block_found): ... to here.
1247
cf901d3b
DE
12482014-10-26 Doug Evans <xdje42@gmail.com>
1249
1250 * symtab.h (struct field_of_this_result): Fix typo in comment.
1251 (lookup_symbol_in_language): Move function comment here.
1252 (lookup_symbol): Improve function comment.
1253 (basic_lookup_symbol_nonlocal): Ditto.
1254 (lookup_symbol_static, lookup_symbol_global): Ditto.
1255 (lookup_symbol_aux_block): Ditto.
1256 (lookup_language_this): Add function comment.
1257 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1258 function comment.
1259 (lookup_block_symbol): Improve function comment.
1260 (lookup_struct): Fix capitalization in function comment.
1261 (lookup_transparent_type): Add function comment.
1262 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1263 Improve function comment.
1264 (lookup_objfile_from_block): Add function comment.
1265 * symtab.c (lookup_symbol_in_language): Update function comment.
1266 (lookup_symbol, lookup_language_this): Ditto.
1267 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1268 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1269 (basic_lookup_symbol_nonlocal): Ditto.
1270 (lookup_symbol_static, lookup_symbol_global): Ditto.
1271 (lookup_transparent_type, lookup_block_symbol): Ditto.
1272
ff6c39cf
DE
12732014-10-25 Doug Evans <xdje42@gmail.com>
1274
1275 * symtab.c (types_info): Delete forward decl.
1276 (functions_info, variables_info, sources_info): Ditto.
1277 (_initialize_symtab): Rewrite forward decl to use
1278 initialize_file_ftype.
1279
ec201f0c
DE
12802014-10-25 Doug Evans <xdje42@gmail.com>
1281
1282 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1283
ca040673
DE
12842014-10-25 Doug Evans <xdje42@gmail.com>
1285
1286 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1287 of local var child_die.
1288
6f259a23
DB
12892014-10-24 Don Breazeal <donb@codesourcery.com>
1290
1291 * infrun.c (follow_fork_inferior): Update fork message printing
1292 to use target_terminal_ours_for_output instead of
1293 target_terminal_ours, to use _() for all format strings, to print
1294 "vfork" instead of "fork" for vforks, and to add a detach message.
1295 (handle_vfork_child_exec_or_exit): Update message printing to use
1296 target_terminal_ours_for_output instead of target_terminal_ours, to
1297 use _() for all format strings, and to fix some formatting.
1298
09dd9a69
PA
12992014-10-24 Pedro Alves <palves@redhat.com>
1300
1301 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1302 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1303 * config/vax/vax.mh: Delete.
1304 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1305 obsolete configurations section.
1306 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1307 * vax-nat.c: Delete file.
1308
5ab806de
PA
13092014-10-24 Pedro Alves <palves@redhat.com>
1310
1311 * NEWS (Removed targets): Add OS/arch column.
1312
3433cfa5
SC
13132014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1314
1315 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1316 on the arg type of a constructor only if it is of reference type.
1317
96ba4233
SL
13182014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1319
1320 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1321 accessors and constants from nios2 opcodes update.
1322 (nios2_get_next_pc): Likewise.
1323
28153fd3
DE
13242014-10-19 Doug Evans <xdje42@gmail.com>
1325
1326 * gdbthread.h (set_running): Fix comment.
1327 (set_executing, finish_thread_state): Fix comment.
1328
fc9b8e47
DE
13292014-10-18 Doug Evans <xdje42@gmail.com>
1330
1331 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1332
4ffbba72
DE
13332014-10-17 Doug Evans <dje@google.com>
1334
1335 * NEWS: Mention new event gdb.clear_objfiles.
1336 * python/py-event.h (emit_clear_objfiles_event): Clear
1337 * python/py-events.h (events_object): New member clear_objfiles.
1338 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1339 event.
1340 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1341 emit clear_objfiles event.
1342 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1343 function.
1344 (emit_clear_objfiles_event): New function.
1345 (clear_objfiles): New event.
1346 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1347 Declare.
1348 * python/python.c (_initialize_python): Call
1349 gdbpy_initialize_clear_objfiles_event.
1350
d096d8c1
DE
13512014-10-17 Doug Evans <dje@google.com>
1352
1353 * NEWS: Mention new gdb.Objfile.progspace attribute.
1354 * python/py-objfile.c (objfpy_get_progspace): New function.
1355 (objfile_getset): New entry for "progspace".
1356
6c4486e6
PA
13572014-10-17 Pedro Alves <palves@redhat.com>
1358
1359 PR gdb/17471
1360 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1361 returns a copy of the input.
1362 (run_command_1, continue_command, step_1, jump_command)
1363 (signal_command, until_command, advance_command, finish_command)
1364 (attach_command): Adjust and install a cleanup to free the
1365 stripped args.
1366
0ff33695
PA
13672014-10-17 Pedro Alves <palves@redhat.com>
1368
1369 PR gdb/17300
1370 * infcmd.c (continue_1): If continuing all threads in the
1371 foreground, make sure the inferior's terminal settings are put in
1372 effect.
1373
6fdebc3d
PA
13742014-10-17 Pedro Alves <palves@redhat.com>
1375
1376 PR gdb/17472
1377 * annotate.c (annotate_breakpoints_invalid): Use
1378 target_terminal_our_for_output instead of target_terminal_ours.
1379 Give back the terminal to the target.
1380 (annotate_frames_invalid): Likewise.
1381
5842f62a
PA
13822014-10-17 Pedro Alves <palves@redhat.com>
1383
1384 * target.c (enum terminal_state): New enum.
1385 (terminal_state): New global.
1386 (target_terminal_init): New function.
1387 (target_terminal_inferior): Skip if inferior already owns the
1388 terminal.
1389 (target_terminal_ours, target_terminal_ours_for_output): New
1390 functions.
1391 * target.h (target_terminal_init): Convert to function prototype.
1392 (target_terminal_ours_for_output): Convert to function prototype
1393 and tweak comment.
1394 (target_terminal_ours): Convert to function prototype and tweak
1395 comment.
1396 * windows-nat.c (do_initial_windows_stuff): Call
1397 target_terminal_init instead of child_terminal_init_with_pgrp.
1398
32a8097b
PA
13992014-10-17 Pedro Alves <palves@redhat.com>
1400
1401 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1402 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1403 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1404 solib-osf.c.
1405 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1406 * ada-lang.h [__alpha__ && __osf__]
1407 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1408 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1409 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1410 GDB_OSABI_OSF1.
1411 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1412 files.
1413 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1414 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1415 * configure: Regenerate.
1416 * configure.ac: Remove references to osf.
1417 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1418 section. Remove all other references to osf.
1419 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1420 Remove all other references to osf.
1421 * dec-thread.c: Delete file.
1422 * defs.h (GDB_OSABI_OSF1): Delete.
1423 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1424 defined.
1425 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1426 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1427 Delete code.
1428 (unconditionally_kill_inferior)
1429 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1430 * solib-osf.c: Delete file.
1431
80134cf5
PA
14322014-10-17 Pedro Alves <palves@redhat.com>
1433
1434 * remote.c (clear_threads_listing_context): Move higher up, out of
1435 the HAVE_LIBEXPAT guard.
1436
89c7137f
TG
14372014-10-16 Tristan Gingold <gingold@adacore.com>
1438
1439 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1440 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1441 on amd64.
1442
44ee4a52
PA
14432014-10-15 Pedro Alves <palves@redhat.com>
1444
1445 * dec-thread.c (dec_thread_count_gdb_threads)
1446 (dec_thread_add_gdb_thread): Delete.
1447 (dec_thread_update_thread_list): Delete.
1448 (dec_thread_find_new_threads): Rename to ...
1449 (dec_thread_update_thread_list): ... this. Delete GDB-size
1450 threads that are no longer found in dec_thread_list.
1451 (resync_thread_list): Delete.
1452 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1453 resync_thread_list.
1454
ab970af1
PA
14552014-10-15 Pedro Alves <palves@redhat.com>
1456
1457 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1458 * remote.c (remote_update_thread_list): Skip calling prune_threads
1459 if any thread listing method is supported, and instead walk over
1460 the set of remote threads listed, deleting those that are not
1461 found in GDB's thread list.
1462
e8032dde
PA
14632014-10-15 Pedro Alves <palves@redhat.com>
1464
1465 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1466 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1467 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1468 (bsd_uthread_target): Adjust.
1469 * corelow.c (core_open): Adjust.
1470 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1471 (dec_thread_update_thread_list): New function.
1472 (init_dec_thread_ops): Adjust.
1473 * gdbthread.h (prune_threads): New declaration.
1474 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1475 (thread_db_update_thread_list): ... this. Call prune_threads.
1476 (init_thread_db_ops): Adjust.
1477 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1478 (procfs_update_thread_list): ... this. Call prune_threads.
1479 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1480 Adjust.
1481 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1482 (obsd_update_thread_list): ... this. Call prune_threads.
1483 (obsd_add_target): Adjust.
1484 * procfs.c (procfs_target): Adjust.
1485 (procfs_notice_thread): Update comment.
1486 (procfs_find_new_threads): Rename to ...
1487 (procfs_update_thread_list): ... this. Call prune_threads.
1488 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1489 comment.
1490 (ravenscar_wait): Adjust.
1491 (ravenscar_find_new_threads): Rename to ...
1492 (ravenscar_update_thread_list): ... this. Call prune_threads.
1493 (init_ravenscar_thread_ops): Adjust.
1494 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1495 (record_btrace_update_thread_list): ... this. Adjust comment.
1496 (init_record_btrace_ops): Adjust.
1497 * remote.c (remote_threads_info): Rename to ...
1498 (remote_update_thread_list): ... this. Call prune_threads.
1499 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1500 Adjust.
1501 * sol-thread.c (check_for_thread_db): Adjust.
1502 (sol_find_new_threads_callback): Rename to ...
1503 (sol_update_thread_list_callback): ... this.
1504 (sol_find_new_threads): Rename to ...
1505 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1506 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1507 * target-delegates.c: Regenerate.
1508 * target.c (target_find_new_threads): Rename to ...
1509 (target_update_thread_list): ... this.
1510 * target.h (struct target_ops): Rename to_find_new_threads field
1511 to to_update_thread_list.
1512 (target_find_new_threads): Rename to ...
1513 (target_update_thread_list): ... this.
1514 * thread.c (prune_threads): Make extern.
1515 (update_thread_list): Adjust.
1516
6dc54d91
PA
15172014-10-15 Pedro Alves <palves@redhat.com>
1518
1519 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1520 Add describing comment. Return -1 if the qL packet is not
1521 supported.
1522 (struct thread_item, thread_item_t): Move higher up in
1523 the file. Add comments.
1524 (struct threads_parsing_context): Move higher up in
1525 the file, add comments, and remote to ...
1526 (struct threads_listing_context): ... this.
1527 (remote_newthread_step): Don't add the thread to GDB's thread
1528 database here. Instead push it to the thread_listing_context
1529 list.
1530 (remote_find_new_threads): Rename to ...
1531 (remote_get_threads_with_ql): ... this. Add target_ops and
1532 targets_listing_context parameters. Pass down context.
1533 (start_thread): Adjust.
1534 (clear_threads_parsing_context): Rename to ...
1535 (clear_threads_listing_context): ... this.
1536 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1537 remote_threads_info.
1538 (remote_get_threads_with_qthreadinfo): Ditto.
1539 (remote_threads_info): Reimplement.
1540
36728e82
PA
15412014-10-15 Pedro Alves <palves@redhat.com>
1542
1543 * infrun.c (resume): Don't force displaced-stepping for all
1544 single-steps on software single-stepping archs.
1545
34b7e8a6
PA
15462014-10-15 Pedro Alves <palves@redhat.com>
1547
1548 * breakpoint.c (single_step_breakpoints): Delete global.
1549 (insert_single_step_breakpoint): Adjust to store the breakpoint
1550 pointer in the current thread.
1551 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1552 (cancel_single_step_breakpoints): Delete functions.
1553 (breakpoint_has_location_inserted_here): Make extern.
1554 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1555 breakpoint list.
1556 * breakpoint.h (breakpoint_has_location_inserted_here): New
1557 declaration.
1558 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1559 (cancel_single_step_breakpoints): Remove declarations.
1560 * gdbthread.h (struct thread_control_state)
1561 <single_step_breakpoints>: New field.
1562 (delete_single_step_breakpoints)
1563 (thread_has_single_step_breakpoints_set)
1564 (thread_has_single_step_breakpoint_here): New declarations.
1565 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1566 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1567 (singlestep_pc): Delete globals.
1568 (infrun_thread_ptid_changed): Remove references to removed
1569 globals.
1570 (resume_cleanups): Delete the current thread's single-step
1571 breakpoints.
1572 (maybe_software_singlestep): Remove references to removed globals.
1573 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1574 delete_single_step_breakpoints.
1575 (init_wait_for_inferior): Remove references to removed globals.
1576 (delete_thread_infrun_breakpoints): Delete the thread's
1577 single-step breakpoints too.
1578 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1579 single-step breakpoints here.
1580 (delete_stopped_threads_single_step_breakpoints): New function.
1581 (adjust_pc_after_break): Adjust to use
1582 thread_has_single_step_breakpoints_set.
1583 (handle_inferior_event): Remove references to removed globals.
1584 Use delete_stopped_threads_single_step_breakpoints.
1585 (handle_signal_stop): Adjust to per-thread single-step
1586 breakpoints. Swap test order to do cheaper tests first.
1587 (switch_back_to_stepped_thread): Extend debug output. Remove
1588 references to removed globals.
1589 * record-full.c (record_full_wait_1): Adjust to per-thread
1590 single-step breakpoints.
1591 * thread.c (delete_single_step_breakpoints)
1592 (thread_has_single_step_breakpoints_set)
1593 (thread_has_single_step_breakpoint_here): New functions.
1594 (clear_thread_inferior_resources): Also delete the thread's
1595 single-step breakpoints.
1596
5b834a0a
PA
15972014-10-15 Pedro Alves <palves@redhat.com>
1598
1599 * thread.c (delete_thread_breakpoint): New function.
1600 (delete_step_resume_breakpoint)
1601 (delete_exception_resume_breakpoint): Use it.
1602 (delete_at_next_stop): New function.
1603 (clear_thread_inferior_resources): Use delete_at_next_stop.
1604
a1fd2fa5
PA
16052014-10-15 Pedro Alves <palves@redhat.com>
1606
1607 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1608 (breakpoint_inserted_here_p): ... here. Remove special case for
1609 software single-step breakpoints.
1610 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1611 (software_breakpoint_inserted_here_p): ... here. Remove special
1612 case for software single-step breakpoints.
1613 (bp_target_info_copy_insertion_state)
1614 (deprecated_insert_raw_breakpoint)
1615 (deprecated_remove_raw_breakpoint): Delete functions.
1616 * breakpoint.h (deprecated_insert_raw_breakpoint)
1617 (deprecated_remove_raw_breakpoint): Remove declarations.
1618
7c16b83e
PA
16192014-10-15 Pedro Alves <palves@redhat.com>
1620
1621 PR breakpoints/9649
1622 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1623 Delete array globals.
1624 (single_step_breakpoints): New global.
1625 (breakpoint_xfer_memory): Remove special handling for single-step
1626 breakpoints.
1627 (update_breakpoints_after_exec): Delete bp_single_step
1628 breakpoints.
1629 (detach_breakpoints): Remove special handling for single-step
1630 breakpoints.
1631 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1632 (bpstat_stop_status): Add comment.
1633 (bpstat_what, bptype_string, print_one_breakpoint_location)
1634 (adjust_breakpoint_address, init_bp_location): Handle
1635 bp_single_step.
1636 (new_single_step_breakpoint): New function.
1637 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1638 handling for single-step breakpoints.
1639 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1640 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1641 Rewrite.
1642 (detach_single_step_breakpoints, find_single_step_breakpoint):
1643 Delete functions.
1644 (breakpoint_has_location_inserted_here): New function.
1645 (single_step_breakpoint_inserted_here_p): Rewrite.
1646 * breakpoint.h: Remove FIXME.
1647 (enum bptype) <bp_single_step>: New enum value.
1648 (insert_single_step_breakpoint): Update comment.
1649 * infrun.c (resume_cleanups)
1650 (delete_step_thread_step_resume_breakpoint): Remove single-step
1651 breakpoints.
1652 (fetch_inferior_event): Install a cleanup that removes infrun
1653 breakpoints.
1654 (switch_back_to_stepped_thread) <expect thread advanced also>:
1655 Clear step-over info.
1656
0cbcdb96
PA
16572014-10-15 Pedro Alves <palves@redhat.com>
1658
1659 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1660 (delete_thread_infrun_breakpoints): New function, with parts
1661 salvaged from delete_step_resume_breakpoint_callback.
1662 (delete_step_thread_step_resume_breakpoint): Delete.
1663 (for_each_just_stopped_thread_callback_func): New typedef.
1664 (for_each_just_stopped_thread): New function.
1665 (delete_just_stopped_threads_infrun_breakpoints): New function.
1666 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1667 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1668 ... this. Adjust.
1669 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1670
963f9c80
PA
16712014-10-15 Pedro Alves <palves@redhat.com>
1672
1673 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1674 trying to step past a non-steppable watchpoint.
1675 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1676 field.
1677 * infrun.c (struct step_over_info): Add new field
1678 'nonsteppable_watchpoint_p' and adjust comments.
1679 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1680 Adjust.
1681 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1682 (stepping_past_nonsteppable_watchpoint): New function.
1683 (step_over_info_valid_p): Also return true if stepping past a
1684 nonsteppable watchpoint.
1685 (proceed): Adjust call to set_step_over_info. Remove reference to
1686 init_infwait_state.
1687 (init_wait_for_inferior): Remove reference to init_infwait_state.
1688 (waiton_ptid): Delete global.
1689 (struct execution_control_state)
1690 <stepped_after_stopped_by_watchpoint>: Delete field.
1691 (wait_for_inferior, fetch_inferior_event): Always pass
1692 minus_one_ptid to target_wait.
1693 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1694 field.
1695 (init_infwait_state): Delete function.
1696 (handle_inferior_event): Remove infwait_state handling.
1697 (handle_signal_stop) <watchpoints handling>: Adjust after
1698 stepped_after_stopped_by_watchpoint removal. Don't remove
1699 breakpoints here nor set infwait_state. Set the thread's
1700 stepping_over_watchpoint flag, and call keep_going instead.
1701 (keep_going): Handle stepping_over_watchpoint. Adjust
1702 set_step_over_info calls.
1703 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1704 function.
1705
6cc83d2a
PA
17062014-10-15 Pedro Alves <palves@redhat.com>
1707
1708 * infrun.c (step_over_info_valid_p): New function.
1709 (resume): Use step_over_info_valid_p instead of checking the
1710 threads's trap_expected flag.
1711
6979730b
DE
17122014-10-15 Doug Evans <dje@google.com>
1713 Walfred Tedeschi <walfred.tedeschi@intel.com>
1714
1715 PR python/17364
1716 * python/lib/gdb/__init__.py (packages): Add "printer".
1717 * python/lib/gdb/command/bound_registers.py: Moved to ...
1718 * python/lib/gdb/printer/bound_registers.py: ... here.
1719 Add printer to global set of builtin printers. Rename printer from
1720 "bound" to "mpx_bound128".
1721 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1722 registered as global "builtin" printer.
1723 (add_builtin_pretty_printer): New function.
1724 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1725 gdb/printer/__init__.py.
1726
35a49624
IB
17272014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1728
1729 * Makefile.in (SFILES): Remove d-support.c.
1730 (COMMON_OBS): Remove d-support.o.
1731 * d-lang.h (d_parse_symbol): Remove declaration.
1732 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1733 * d-support.c: Remove file.
1734
8fa0c4f8
AA
17352014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1736
1737 * gdb/infrun.c (process_event_stop_test): Apply
1738 gdbarch_addr_bits_remove to longjmp resume address.
1739
3666da81
PA
17402014-10-15 Pedro Alves <palves@redhat.com>
1741
1742 * regformats/microblaze.dat: Delete file.
1743
449aa9df
AKA
17442014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1745
1746 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1747 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1748
ebb8ece2
SC
17492014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1750
1751 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1752 as non-trivial.
1753
82c48ac7
SC
17542014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1755
1756 PR c++/13403
1757 PR c++/15154
1758 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1759 with qualified args.
1760
c40cc657
JB
17612014-10-14 Joel Brobecker <brobecker@adacore.com>
1762
1763 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1764 of the case where the second operand is a pointer.
1765 <BINOP_SUB>: Likewise.
1766
0ea5cda8
SDJ
17672014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1768
1769 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1770 only if it is not NULL.
1771 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1772 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1773 (struct probe_ops) <clear_semaphore>: Likewise.
1774 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1775 not NULL.
1776 (stop_tracing): Likewise, for clear_semaphore.
1777
f7088df3
SDJ
17782014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1779
1780 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1781 using language_c, instead of current_language.
1782
4e1bbde0
DE
17832014-10-13 Doug Evans <dje@google.com>
1784
6ff5a0f6 1785 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1786 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1787 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1788 (pspy_new, pspace_to_pspace_object): Call it.
1789
c780cc2f
JK
17902014-10-13 Miroslav Franc <mfranc@redhat.com>
1791 Jan Kratochvil <jan.kratochvil@redhat.com>
1792
1793 Fix "save breakpoints" for "catch" command.
1794 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1795 newline.
1796
99894e11
JK
17972014-10-12 Miroslav Franc <mfranc@redhat.com>
1798
1799 Fix "save breakpoints" for "disable $bpnum" command.
1800 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1801
3831839c
PA
18022014-10-10 Pedro Alves <palves@redhat.com>
1803
1804 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1805 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1806 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1807 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1808 and been removed.
1809 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1810 * configure.ac: Remove references to IRIX.
1811 * configure.host: Add *-*-irix* to the obsolete hosts section.
1812 Remove all other references to irix.
1813 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1814 Delete files.
1815
cc3afae2
AKA
18162014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1817
1818 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1819 isn't valid, release the tdesc arch data and return NULL.
1820
cdfa0b0a
PA
18212014-10-10 Pedro Alves <palves@redhat.com>
1822
1823 * linux-tdep.c: Include observer.h.
1824 (linux_inferior_data): New global.
1825 (struct linux_info): New structure.
1826 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1827 (get_linux_inferior_data): New functions.
1828 (linux_vsyscall_range): Rename to ...
1829 (linux_vsyscall_range_raw): ... this.
1830 (linux_vsyscall_range): New function; handles caching.
1831 (_initialize_linux_tdep): Register linux_inferior_data. Install
1832 inferior_exit and inferior_appeared observers.
1833
8b9a549d
PA
18342014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 Pedro Alves <palves@redhat.com>
1836
1837 PR symtab/14466
1838 * solib-svr4.c (svr4_read_so_list): Rename to ...
1839 (svr4_current_sos_1): ... this and change the function comment.
1840 (svr4_current_sos): New function.
1841
3437254d
PA
18422014-10-10 Pedro Alves <palves@redhat.com>
1843
1844 * arch-utils.c (default_vsyscall_range): New function.
1845 * arch-utils.h (default_vsyscall_range): New declaration.
1846 * gdbarch.sh (vsyscall_range): New hook.
1847 * gdbarch.h, gdbarch.c: Regenerate.
1848 * linux-tdep.c (linux_vsyscall_range): New function.
1849 (linux_init_abi): Install linux_vsyscall_range as
1850 vsyscall_range gdbarch hook.
1851 * memrange.c (address_in_mem_range): New function.
1852 * memrange.h (address_in_mem_range): New declaration.
1853 * symfile-mem.c (find_vdso_size): Delete function.
1854 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1855
31cc0b80
PA
18562014-10-10 Pedro Alves <palves@redhat.com>
1857
1858 * infrun.c (normal_stop): Fix typo in comment.
1859
3e3286a2
SDJ
18602014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1861
1862 PR tdep/9390
1863 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1864 typo when using logical AND to determine instruction type.
1865
fcbdedf8
YQ
18662014-10-09 Yao Qi <yao@codesourcery.com>
1867
1868 * infrun.c (handle_signal_stop): Remove local variable
1869 'printed'.
1870
db984616
SS
18712014-10-08 Stan Shebs <stan@codesourcery.com>
1872
1873 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1874
3ba37e6c
GB
18752014-10-08 Gary Benson <gbenson@redhat.com>
1876
1877 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1878
a442d071
GB
18792014-10-08 Gary Benson <gbenson@redhat.com>
1880
1881 * common/common-defs.h: Include common-exceptions.h.
1882 * exceptions.h: Do not include common-exceptions.h.
1883
6f1947e8
GB
18842014-10-08 Gary Benson <gbenson@redhat.com>
1885
1886 * common/common-defs.h: Include cleanups.h.
1887 * common/common-exceptions.c: Do not include cleanups.h.
1888 * utils.h: Likewise.
1889
c765fdb9
GB
18902014-10-08 Gary Benson <gbenson@redhat.com>
1891
1892 * ada-lang.c: Do not include exceptions.h.
1893 * ada-valprint.c: Likewise.
1894 * amd64-tdep.c: Likewise.
1895 * auto-load.c: Likewise.
1896 * block.c: Likewise.
1897 * break-catch-throw.c: Likewise.
1898 * breakpoint.c: Likewise.
1899 * btrace.c: Likewise.
1900 * c-lang.c: Likewise.
1901 * cli/cli-cmds.c: Likewise.
1902 * cli/cli-interp.c: Likewise.
1903 * cli/cli-script.c: Likewise.
1904 * completer.c: Likewise.
1905 * corefile.c: Likewise.
1906 * corelow.c: Likewise.
1907 * cp-abi.c: Likewise.
1908 * cp-support.c: Likewise.
1909 * cp-valprint.c: Likewise.
1910 * darwin-nat.c: Likewise.
1911 * dwarf2-frame-tailcall.c: Likewise.
1912 * dwarf2-frame.c: Likewise.
1913 * dwarf2loc.c: Likewise.
1914 * dwarf2read.c: Likewise.
1915 * eval.c: Likewise.
1916 * event-loop.c: Likewise.
1917 * event-top.c: Likewise.
1918 * f-valprint.c: Likewise.
1919 * frame-unwind.c: Likewise.
1920 * frame.c: Likewise.
1921 * gdbtypes.c: Likewise.
1922 * gnu-v2-abi.c: Likewise.
1923 * gnu-v3-abi.c: Likewise.
1924 * guile/scm-auto-load.c: Likewise.
1925 * guile/scm-breakpoint.c: Likewise.
1926 * guile/scm-cmd.c: Likewise.
1927 * guile/scm-frame.c: Likewise.
1928 * guile/scm-lazy-string.c: Likewise.
1929 * guile/scm-param.c: Likewise.
1930 * guile/scm-symbol.c: Likewise.
1931 * guile/scm-type.c: Likewise.
1932 * hppa-hpux-tdep.c: Likewise.
1933 * i386-tdep.c: Likewise.
1934 * inf-loop.c: Likewise.
1935 * infcall.c: Likewise.
1936 * infcmd.c: Likewise.
1937 * infrun.c: Likewise.
1938 * interps.c: Likewise.
1939 * interps.h: Likewise.
1940 * jit.c: Likewise.
1941 * linespec.c: Likewise.
1942 * linux-nat.c: Likewise.
1943 * linux-thread-db.c: Likewise.
1944 * m32r-rom.c: Likewise.
1945 * main.c: Likewise.
1946 * memory-map.c: Likewise.
1947 * mi/mi-cmd-break.c: Likewise.
1948 * mi/mi-cmd-stack.c: Likewise.
1949 * mi/mi-interp.c: Likewise.
1950 * mi/mi-main.c: Likewise.
1951 * monitor.c: Likewise.
1952 * nto-procfs.c: Likewise.
1953 * objc-lang.c: Likewise.
1954 * p-valprint.c: Likewise.
1955 * parse.c: Likewise.
1956 * ppc-linux-tdep.c: Likewise.
1957 * printcmd.c: Likewise.
1958 * probe.c: Likewise.
1959 * python/py-auto-load.c: Likewise.
1960 * python/py-breakpoint.c: Likewise.
1961 * python/py-cmd.c: Likewise.
1962 * python/py-finishbreakpoint.c: Likewise.
1963 * python/py-frame.c: Likewise.
1964 * python/py-framefilter.c: Likewise.
1965 * python/py-function.c: Likewise.
1966 * python/py-gdb-readline.c: Likewise.
1967 * python/py-inferior.c: Likewise.
1968 * python/py-infthread.c: Likewise.
1969 * python/py-lazy-string.c: Likewise.
1970 * python/py-linetable.c: Likewise.
1971 * python/py-param.c: Likewise.
1972 * python/py-prettyprint.c: Likewise.
1973 * python/py-symbol.c: Likewise.
1974 * python/py-type.c: Likewise.
1975 * python/py-value.c: Likewise.
1976 * python/python-internal.h: Likewise.
1977 * python/python.c: Likewise.
1978 * record-btrace.c: Likewise.
1979 * record-full.c: Likewise.
1980 * regcache.c: Likewise.
1981 * remote-fileio.c: Likewise.
1982 * remote-mips.c: Likewise.
1983 * remote.c: Likewise.
1984 * rs6000-aix-tdep.c: Likewise.
1985 * rs6000-nat.c: Likewise.
1986 * skip.c: Likewise.
1987 * solib-darwin.c: Likewise.
1988 * solib-dsbt.c: Likewise.
1989 * solib-frv.c: Likewise.
1990 * solib-ia64-hpux.c: Likewise.
1991 * solib-spu.c: Likewise.
1992 * solib-svr4.c: Likewise.
1993 * solib.c: Likewise.
1994 * spu-tdep.c: Likewise.
1995 * stack.c: Likewise.
1996 * stap-probe.c: Likewise.
1997 * symfile-mem.c: Likewise.
1998 * symmisc.c: Likewise.
1999 * target.c: Likewise.
2000 * thread.c: Likewise.
2001 * top.c: Likewise.
2002 * tracepoint.c: Likewise.
2003 * tui/tui-interp.c: Likewise.
2004 * typeprint.c: Likewise.
2005 * utils.c: Likewise.
2006 * valarith.c: Likewise.
2007 * valops.c: Likewise.
2008 * valprint.c: Likewise.
2009 * value.c: Likewise.
2010 * varobj.c: Likewise.
2011 * windows-nat.c: Likewise.
2012 * xml-support.c: Likewise.
2013
484933d1
MR
20142014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2015
2016 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2017 name implies.
2018 (extended_mips16_next_pc): Update accordingly.
2019
ab50adb6
MR
20202014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2021
2022 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2023 function.
2024 (micromips_instruction_is_compact_branch): Likewise.
2025 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2026 or a compact jump, reaching a jump delay slot, or seeing a
2027 second non-prologue instruction.
2028 (micromips_scan_prologue): Also terminate scanning upon seeing a
2029 compact branch or jump, or reaching a branch or jump delay slot.
2030 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2031 or jump delay slot, or seeing a second non-prologue instruction.
2032 (mips32_instruction_has_delay_slot): Retain instruction
2033 examination code only, update arguments accordingly and move
2034 instruction fetch pieces to...
2035 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2036 (micromips_instruction_has_delay_slot): Likewise and to...
2037 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2038 (mips16_instruction_has_delay_slot): Likewise and to...
2039 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2040 (mips_single_step_through_delay): Update accordingly.
2041 (mips_adjust_breakpoint_address): Likewise.
2042
ae790652
MR
20432014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2044
2045 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2046 !mustbe32 also return 1 for 32-bit instructions.
2047 (mips16_instruction_has_delay_slot): Likewise. Add an
2048 explanatory comment.
2049
9b807e7b
MR
20502014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2051
2052 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2053 symbols special.
2054
0d5ed153
MR
20552014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2056
2057 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2058 update comments.
2059 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2060 for the breakpoint's address. Don't preinitialize `placed_size'.
2061 (insert_bp_location): Set `reqstd_address' rather than
2062 `placed_address'.
2063 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2064 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2065 address.
2066 (bkpt_remove_location): Likewise.
2067 (deprecated_insert_raw_breakpoint): Likewise.
2068 (deprecated_remove_raw_breakpoint): Likewise.
2069 (find_single_step_breakpoint): Likewise.
2070 * mem-break.c (default_memory_insert_breakpoint): Use
2071 `reqstd_address' for the breakpoint's address. Don't set
2072 `placed_address' or `placed_size' if breakpoint contents couldn't
2073 have been determined.
2074 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2075 the breakpoint's address.
2076 (remote_insert_hw_breakpoint): Likewise. Don't set
2077 `placed_address' or `placed_size' if breakpoint couldn't have been
2078 set.
2079 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2080 `reqstd_address' for the breakpoint's address.
2081 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2082 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2083 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2084 * microblaze-linux-tdep.c
2085 (microblaze_linux_memory_remove_breakpoint): Likewise.
2086 * monitor.c (monitor_insert_breakpoint): Likewise.
2087 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2088 (procfs_insert_hw_breakpoint): Likewise.
2089 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2090 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2091 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2092 * remote-mips.c (mips_insert_breakpoint): Likewise.
2093 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2094
3e871532
LM
20952014-10-03 Luis Machado <lgustavo@codesourcery.com>
2096
2097 * valops.c (value_assign): Check for bit field assignments
2098 before calling architecture-specific register value
2099 conversion functions.
2100
ec48dc8b
PM
21012014-10-03 Pierre Muller <muller@sourceware.org>
2102
2103 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2104
b57bacec
PA
21052014-10-02 Pedro Alves <palves@redhat.com>
2106
2107 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2108 threads_are_executing.
2109 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2110 describing comment.
2111 * gdbthread.h (threads_are_executing): Declare.
2112 (handle_signal_stop) <random signals>: Don't print about the
2113 signal here if stopping.
2114 (end_stepping_range): Don't notify observers here.
2115 (normal_stop): Update the thread list. If stopped by a random
2116 signal or a stepping range ended, notify observers.
2117 * thread.c (threads_executing): New global.
2118 (init_thread_list): Clear 'threads_executing'.
2119 (set_executing): Set or clear 'threads_executing'.
2120 (threads_are_executing): New function.
2121 (update_threads_executing): New function.
2122 (update_thread_list): Use it.
2123
13fd3ff3
PA
21242014-10-02 Pedro Alves <palves@redhat.com>
2125
2126 PR breakpoints/17431
2127 * breakpoint.c (update_breakpoints_after_exec): Don't create
2128 overlay, longjmp, std terminate nor exception breakpoints here.
2129
32990ada
PA
21302014-10-02 Pedro Alves <palves@redhat.com>
2131
2132 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2133 Adjust comments.
2134 * inferior.c (find_inferior_for_program_space): Give preference to
2135 the current inferior.
2136 * inferior.h (find_inferior_for_program_space): Update comment.
2137 * progspace.c (switch_to_program_space_and_thread): Prefer the
2138 current inferior if it's bound to the program space requested. If
2139 the inferior found doesn't have a PID yet, don't bother looking up
2140 a thread.
2141 * progspace.h (switch_to_program_space_and_thread): Adjust
2142 comment.
2143 * thread.c (any_thread_of_process, any_live_thread_of_process):
2144 Give preference to the current thread.
2145
0fec99e8
PA
21462014-10-01 Pedro Alves <palves@redhat.com>
2147
2148 * breakpoint.c (insert_bp_location): Error out if inserting a
2149 software breakpoint at a read-only address.
2150 * target.c (memory_xfer_check_region): New function, factored out
2151 from ...
2152 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2153 ULONGEST.
2154 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2155 against the memory region attributes.
2156
2ddf4301
SM
21572014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2158
2159 * NEWS: Announce new exit-code field in -list-thread-groups
2160 output.
2161 * inferior.c (exit_inferior_1): Don't clear exit code.
2162 (inferior_appeared): Clear exit code.
2163 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2164 code.
2165
5fdeec1d
PA
21662014-10-01 Pedro Alves <palves@redhat.com>
2167
2168 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2169 GENERATED" along with emacs/vi read-only markers.
2170 * regformats/aarch64.dat: Regenerate.
2171 * regformats/arm-with-iwmmxt.dat: Regenerate.
2172 * regformats/arm-with-neon.dat: Regenerate.
2173 * regformats/arm-with-vfpv2.dat: Regenerate.
2174 * regformats/arm-with-vfpv3.dat: Regenerate.
2175 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2176 * regformats/i386/amd64-avx.dat: Regenerate.
2177 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2178 * regformats/i386/amd64-avx512.dat: Regenerate.
2179 * regformats/i386/amd64-linux.dat: Regenerate.
2180 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2181 * regformats/i386/amd64-mpx.dat: Regenerate.
2182 * regformats/i386/amd64.dat: Regenerate.
2183 * regformats/i386/i386-avx-linux.dat: Regenerate.
2184 * regformats/i386/i386-avx.dat: Regenerate.
2185 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2186 * regformats/i386/i386-avx512.dat: Regenerate.
2187 * regformats/i386/i386-linux.dat: Regenerate.
2188 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2189 * regformats/i386/i386-mmx.dat: Regenerate.
2190 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2191 * regformats/i386/i386-mpx.dat: Regenerate.
2192 * regformats/i386/i386.dat: Regenerate.
2193 * regformats/i386/x32-avx-linux.dat: Regenerate.
2194 * regformats/i386/x32-avx.dat: Regenerate.
2195 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2196 * regformats/i386/x32-avx512.dat: Regenerate.
2197 * regformats/i386/x32-linux.dat: Regenerate.
2198 * regformats/i386/x32.dat: Regenerate.
2199 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2200 * regformats/mips-dsp-linux.dat: Regenerate.
2201 * regformats/mips-linux.dat: Regenerate.
2202 * regformats/mips64-dsp-linux.dat: Regenerate.
2203 * regformats/mips64-linux.dat: Regenerate.
2204 * regformats/nios2-linux.dat: Regenerate.
2205 * regformats/rs6000/powerpc-32.dat: Regenerate.
2206 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2207 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2208 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2209 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2210 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2211 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2212 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2213 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2214 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2215 * regformats/s390-linux32.dat: Regenerate.
2216 * regformats/s390-linux32v1.dat: Regenerate.
2217 * regformats/s390-linux32v2.dat: Regenerate.
2218 * regformats/s390-linux64.dat: Regenerate.
2219 * regformats/s390-linux64v1.dat: Regenerate.
2220 * regformats/s390-linux64v2.dat: Regenerate.
2221 * regformats/s390-te-linux64.dat: Regenerate.
2222 * regformats/s390x-linux64.dat: Regenerate.
2223 * regformats/s390x-linux64v1.dat: Regenerate.
2224 * regformats/s390x-linux64v2.dat: Regenerate.
2225 * regformats/s390x-te-linux64.dat: Regenerate.
2226 * regformats/tic6x-c62x-linux.dat: Regenerate.
2227 * regformats/tic6x-c62x.dat: Regenerate.
2228 * regformats/tic6x-c64x-linux.dat: Regenerate.
2229 * regformats/tic6x-c64x.dat: Regenerate.
2230 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2231 * regformats/tic6x-c64xp.dat: Regenerate.
2232
db74e4ba
PA
22332014-10-01 Pedro Alves <palves@redhat.com>
2234
2235 * features/Makefile: Update comments.
2236 (XMLTOC): List all xml files we build C files from.
2237 (clean-cfiles): New rule.
2238
d63f2f84
PA
22392014-10-01 Pedro Alves <palves@redhat.com>
2240
2241 * features/i386/amd64-avx512-linux.c: Regenerate.
2242 * features/i386/amd64-avx512.c: Regenerate.
2243 * features/i386/x32-avx512-linux.c: Regenerate.
2244 * features/i386/x32-avx512.c: Regenerate.
2245
20ad026d
PA
22462014-10-01 Pedro Alves <palves@redhat.com>
2247
2248 * features/Makefile (WHICH): Remove arm-with-m,
2249 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2250
acc9fe45
PA
22512014-10-01 Pedro Alves <palves@redhat.com>
2252
2253 * features/Makefile (clean): New rule.
2254
e001e535
PA
22552014-10-01 Pedro Alves <palves@redhat.com>
2256
2257 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2258 (zmm14h): Add missing end quotes.
2259
bdc14417
PA
22602014-10-01 Pedro Alves <palves@redhat.com>
2261
2262 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2263 * features/aarch64.c: Regenerate.
2264
d83ad864
DB
22652014-09-30 Don Breazeal <donb@codesourcery.com>
2266
2267 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2268 code so as to work with follow_fork_inferior.
2269 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2270 (inf_ttrace_create_inferior): Remove reference to
2271 inf_ttrace_vfork_ppid.
2272 (inf_ttrace_attach): Ditto.
2273 (inf_ttrace_detach): Ditto.
2274 (inf_ttrace_kill): Use current_inferior instead of
2275 inf_ttrace_vfork_ppid.
2276 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2277 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2278 inferior away from the parent.
2279 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2280 target_follow_fork.
2281 (follow_fork_inferior): New function.
2282 (follow_inferior_reset_breakpoints): Make function static.
2283 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2284 * linux-nat.c (linux_child_follow_fork): Move target-independent
2285 code to infrun.c:follow_fork_inferior.
2286
29082443
AA
22872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2288
2289 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2290 * gdbarch.c: Regenerate.
2291 * gdbarch.h: Likewise.
2292 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2293 gdbarch method 'regset_from_core_section'.
2294 (get_core_register_section): Remove handling for the case that
2295 regset == NULL and regset_from_core_section is defined.
2296 (get_core_registers): Drop check for deleted method.
2297 * procfs.c (procfs_do_thread_registers): Adjust comment.
2298
f968fe80
AA
22992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2300
2301 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2302 (linux_nat_make_corefile_notes): Remove.
2303 (linux_target_install_ops): Do not set target method
2304 'make_corefile_notes'.
2305 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2306 Remove field.
2307 (linux_corefile_thread_callback): Instead of args->collect, call
2308 linux_collect_thread_registers.
2309 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2310 NULL unless there is a regset iterator.
2311 (linux_make_corefile_notes_1): Remove.
2312 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2313 by linux_make_corefile_notes.
2314 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2315
174ad59a
AA
23162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2317
2318 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2319 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2320 Remove.
2321 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2322
97094034
AA
23232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2324
2325 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2326 (xtensa_iterate_over_regset_sections): New.
2327 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2328
f73d3ce7
AA
23292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2330
2331 * vax-tdep.c (vax_regset_from_core_section): Remove.
2332 (vax_iterate_over_regset_sections): New.
2333 (vax_gdbarch_init): Adjust gdbarch initialization.
2334
cb24567a
AA
23352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2336
2337 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2338 (tilegx_regset_from_core_section): Remove.
2339 (tilegx_iterate_over_regset_sections): New.
2340 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2341
e5139de8
AA
23422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343
2344 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2345 (sparc_iterate_over_regset_sections): New.
2346 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2347 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2348 targets.
2349 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2350 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2351 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2352 target method 'make_corefile_notes'.
2353
c6d41a6f
AA
23542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2355
2356 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2357 'sizeof_gregset' and 'sizeof_fpregset'.
2358 * sh-tdep.c (sh_regset_from_core_section): Remove.
2359 (sh_iterate_over_regset_sections): New.
2360 (sh_gdbarch_init): Adjust gdbarch initialization.
2361 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2362 sizeof_fpregset.
2363 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2364 'sizeof_gregset'.
2365
9845a0b5
AA
23662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2367
2368 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2369 (score7_linux_iterate_over_regset_sections): New.
2370 (score_gdbarch_init): Adjust gdbarch initialization.
2371
23ea9aeb
AA
23722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2373
2374 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2375 FreeBSD targets.
2376 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2377 method 'make_corefile_notes'.
2378 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2379 (ppcfbsd_regset_from_core_section): Remove.
2380 (ppcfbsd_iterate_over_regset_sections): New.
2381 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2382 initialization.
2383 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2384 (ppcnbsd_iterate_over_regset_sections): New.
2385 (ppcnbsd_init_abi): Adjust.
2386 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2387 (ppcobsd_iterate_over_regset_sections): New.
2388 (ppcobsd_init_abi): Adjust.
2389 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2390 (rs6000_aix_iterate_over_regset_sections): New.
2391 (rs6000_aix_init_osabi): Adjust.
2392
c5b8d704
AA
23932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2394
2395 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2396 (nios2_regset_from_core_section): Remove.
2397 (nios2_iterate_over_regset_sections): New.
2398 (nios2_linux_init_abi): Adjust gdbarch initialization.
2399
3636e608
AA
24002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2401
2402 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2403 (am33_iterate_over_regset_sections): New.
2404 (am33_linux_init_osabi): Adjust gdbarch initialization.
2405
d4036235
AA
24062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2407
2408 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2409 (mips_linux_iterate_over_regset_sections): New.
2410 (mips_linux_init_abi): Adjust gdbarch initialization.
2411 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2412 (mips64obsd_iterate_over_regset_sections): New.
2413 (mips64obsd_init_abi): Adjust.
2414 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2415 (mipsnbsd_iterate_over_regset_sections): New.
2416 (mipsnbsd_init_abi): Adjust.
2417
b61ddd6e
AA
24182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2419
2420 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2421 (m88k_iterate_over_regset_sections): New.
2422 (m88k_gdbarch_init): Adjust gdbarch initialization.
2423
55a2906a
AA
24242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2425
2426 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2427 (ia64_linux_iterate_over_regset_sections): New.
2428 (ia64_linux_init_abi): Adjust gdbarch initialization.
2429
022c98ab
AA
24302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2431
2432 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2433 (m68kbsd_iterate_over_regset_sections): New.
2434 (m68kbsd_init_abi): Adjust gdbarch initialization.
2435 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2436 (m68k_linux_iterate_over_regset_sections): New.
2437 (m68k_linux_init_abi): Adjust gdbarch initialization.
2438
5fac247f
AA
24392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2440
2441 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2442 (m32r_linux_regset_from_core_section): Remove.
2443 (m32r_linux_iterate_over_regset_sections): New.
2444 (m32r_linux_init_abi): Adjust gdbarch initialization.
2445
490496c3
AA
24462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2447
2448 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2449 (amd64obsd_iterate_over_regset_sections): New.
2450 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2451 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2452 Remove.
2453 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2454 regset_from_core_section initialization.
2455 * i386-tdep.c (i386_regset_from_core_section): Remove.
2456 (i386_iterate_over_regset_sections): New.
2457 (i386_gdbarch_init): Adjust gdbarch initialization.
2458 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2459 (i386_iterate_over_regset_sections): New prototype.
2460 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2461 Remove.
2462 (i386obsd_aout_iterate_over_regset_sections): New.
2463 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2464 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2465 targets.
2466 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2467 (amd64fbsd_init_abi): Call fbsd_init_abi.
2468 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2469 (i386fbsd4_init_abi): Call fbsd_init_abi.
2470 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2471 target method 'make_corefile_notes'.
2472 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2473
50c5eb53
AA
24742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475
2476 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2477 (hppa_hpux_iterate_over_regset_sections): New.
2478 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2479 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2480 (hppa_linux_iterate_over_regset_sections): New.
2481 (hppa_linux_init_abi): Adjust.
2482 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2483 (hppanbsd_iterate_over_regset_sections): New.
2484 (hppanbsd_init_abi): Adjust.
2485 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2486 (hppaobsd_iterate_over_regset_sections): New.
2487 (hppaobsd_init_abi): Adjust.
2488
66afae4f
AA
24892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2490
2491 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2492 (frv_linux_iterate_over_regset_sections): New.
2493 (frv_linux_init_abi): Adjust gdbarch initialization.
2494
ed09174e
AA
24952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2496
2497 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2498 (armbsd_iterate_over_regset_sections): New prototype.
2499 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2500 (armbsd_iterate_over_regset_sections): New.
2501 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2502 initialization.
2503
dff2166e
AA
25042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2507 (alpha_linux_iterate_over_regset_sections): New.
2508 (alpha_linux_init_abi): Adjust gdbarch initialization.
2509 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2510 prototype.
2511 (alphanbsd_iterate_over_regset_sections): New prototype.
2512
4108500a
AA
25132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2514
2515 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2516 Remove.
2517 (aarch64_linux_iterate_over_regset_sections): New.
2518 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2519
a904c024
AA
25202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2521
2522 * fbsd-tdep.c: New file.
2523 * fbsd-tdep.h: New file.
2524 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2525 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2526 (ALLDEPFILES): Add fbsd-tdep.c.
2527
8f0435f7
AA
25282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2529
2530 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2531 parameter.
2532 * gdbarch.h: Regenerate.
2533 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2534 iterator.
2535 (get_core_register_section): Add parameter 'regset' and use it, if
2536 set. Add parameter 'min_size' and verify the bfd section size
2537 against it.
2538 (get_core_registers_cb): Add parameter 'regset' and pass it to
2539 get_core_register section. For the "standard" register sections
2540 ".reg" and ".reg2", set an appropriate default for human_name.
2541 (get_core_registers): Don't abort when the gdbarch has an iterator
2542 but no regset_from_core_section. Add NULL/0 for parameters
2543 'regset'/'min_size' in calls to get_core_register_section.
2544 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2545 'regset' and use it instead of calling the
2546 regset_from_core_section gdbarch method.
2547 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2548 * i386-tdep.c (i386_supply_xstateregset)
2549 (i386_collect_xstateregset, i386_xstateregset): Moved to
2550 i386-linux-tdep.c.
2551 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2552 .reg-xstate.
2553 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2554 core file support only if the regset iterator hasn't been set.
2555 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2556 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2557 Moved from i386-tdep.c and renamed to *_linux*.
2558 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2559 each callback invocation. Allow any .reg-xstate size when reading
2560 from a core file.
2561 * amd64-tdep.c (amd64_supply_xstateregset)
2562 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2563 amd64-linux-tdep.c.
2564 (amd64_regset_from_core_section): Remove.
2565 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2566 install an amd64-specific regset_from_core_section gdbarch method.
2567 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2568 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2569 Moved from amd64-tdep.c and renamed to *_linux*.
2570 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2571 to each callback invocation. Allow any .reg-xstate size when
2572 reading from a core file.
2573 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2574 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2575 each callback invocation.
2576 (arm_linux_init_abi): No longer set the regset_from_core_section
2577 gdbarch method.
2578 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2579 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2580 each callback invocation.
2581 (ppc_linux_init_abi): No longer set the regset_from_core_section
2582 gdbarch method.
2583 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2584 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2585 (s390_regset_from_core_section): Remove.
2586 (s390_iterate_over_regset_sections): Add regset parameter to each
2587 callback invocation.
2588 (s390_gdbarch_init): No longer set the regset_from_core_section
2589 gdbarch method. Drop initialization of deleted tdep fields.
2590
5aa82d05
AA
25912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2592
2593 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2594 (amd64_linux_iterate_over_regset_sections): New.
2595 (amd64_linux_init_abi_common): Don't install the regset section
2596 list, but the new iterator in gdbarch.
2597 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2598 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2599 (arm_linux_iterate_over_regset_sections): ...here. New function.
2600 (arm_linux_init_abi): Set iterator instead of section list.
2601 * corelow.c (get_core_registers_cb): New function, logic moved
2602 from...
2603 (get_core_registers): ...loop body here. Use new iterator method
2604 instead of walking through the regset section list.
2605 * gdbarch.sh: Remove 'core_regset_sections'. New method
2606 'iterate_over_regset_sections'. New typedef
2607 'iterate_over_regset_sections_cb'.
2608 * gdbarch.c: Regenerate.
2609 * gdbarch.h: Likewise.
2610 * i386-linux-tdep.c (i386_linux_regset_sections)
2611 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2612 Remove.
2613 (i386_linux_iterate_over_regset_sections): New.
2614 (i386_linux_init_abi): Don't choose a regset section list, but
2615 install new iterator in gdbarch.
2616 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2617 (linux_collect_regset_section_cb): New function, logic moved
2618 from...
2619 (linux_collect_thread_registers): ...loop body here. Use iterator
2620 method instead of walking through list.
2621 (linux_make_corefile_notes_1): Check for presence of iterator
2622 method instead of regset section list.
2623 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2624 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2625 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2626 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2627 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2628 (ppc_linux_init_abi): Don't choose from above regset section
2629 lists, but install new iterator in gdbarch.
2630 * regset.h (struct core_regset_section): Remove.
2631 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2632 have_linux_v1, have_linux_v2, and have_tdb.
2633 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2634 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2635 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2636 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2637 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2638 (s390_iterate_over_regset_sections): ...here. New function. Use
2639 new tdep fields.
2640 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2641 regset section lists, but install new iterator.
2642
2eca4a8d
JK
26432014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2646
a73c2b56
SM
26472014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2648
2649 * progspace.c (print_program_space): Don't prune program spaces
2650 before printing them.
2651
03d46957
PA
26522014-09-25 Pedro Alves <palves@redhat.com>
2653
2654 * infrun.c (user_visible_resume_ptid): Don't check
2655 singlestep_breakpoints_inserted_p.
2656
e558d7c1
PA
26572014-09-25 Pedro Alves <palves@redhat.com>
2658
2659 * breakpoint.c (should_be_inserted): Add debug output.
2660
7f89fd65
PA
26612014-09-25 Pedro Alves <palves@redhat.com>
2662
2663 * infrun.c (stepping_past_instruction_at)
2664 (clear_exit_convenience_vars): Point at infrun.h instead of
2665 inferior.h.
2666 (handle_signal_stop): Fix typo.
2667
b7576e5c
YQ
26682014-09-24 Yao Qi <yao@codesourcery.com>
2669
2670 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2671 bitmask.
2672
9a6cf368
GB
26732014-09-22 Gary Benson <gbenson@redhat.com>
2674
2675 * target.c (target_stop): Updated comment.
2676
03f4463b
GB
26772014-09-22 Gary Benson <gbenson@redhat.com>
2678
2679 * target/target.h (target_stop_ptid): Renamed as...
2680 (target_stop_and_wait): New function. Updated comment.
2681 All uses updated.
2682 (target_continue_ptid): Renamed as...
2683 (target_continue_no_signal): New function. Updated comment.
2684 All uses updated.
2685
a25a5a45
PA
26862014-09-22 Pedro Alves <palves@redhat.com>
2687
2688 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2689 and "auto" merged.
2690 * breakpoint.c (enum ugll_insert_mode): New enum.
2691 (always_inserted_mode): Now a plain boolean.
2692 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2693 (breakpoints_always_inserted_mode): Delete.
2694 (breakpoints_should_be_inserted_now): New function.
2695 (insert_breakpoints): Pass UGLL_INSERT to
2696 update_global_location_list instead of calling
2697 insert_breakpoint_locations manually.
2698 (create_solib_event_breakpoint_1): New, factored out from ...
2699 (create_solib_event_breakpoint): ... this.
2700 (create_and_insert_solib_event_breakpoint): Use
2701 create_solib_event_breakpoint_1 instead of calling
2702 insert_breakpoint_locations manually.
2703 (update_global_location_list): Change parameter type from boolean
2704 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2705 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2706 (update_global_location_list_nothrow): Change parameter type from
2707 boolean to enum ugll_insert_mode.
2708 (_initialize_breakpoint): "breakpoint always-inserted" option is
2709 now a boolean command. Update help text.
2710 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2711 (breakpoints_should_be_inserted_now): New declaration.
2712 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2713 Remove breakpoints_always_inserted_mode check.
2714 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2715 * remote.c (remote_start_remote): Likewise.
2716
04086b45
PA
27172014-09-22 Pedro Alves <palves@redhat.com>
2718
2719 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2720 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2721 Instead, pass UGLL_INSERT to update_global_location_list.
2722 (update_global_location_list): Change parameter type from boolean
2723 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2724 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2725 (create_solib_event_breakpoint_1): New, factored out from ...
2726 (create_solib_event_breakpoint): ... this.
2727 (create_and_insert_solib_event_breakpoint): Use
2728 create_solib_event_breakpoint_1 instead of calling
2729 insert_breakpoint_locations manually.
2730 (update_global_location_list): Handle UGLL_INSERT.
2731
44702360
PA
27322014-09-22 Pedro Alves <palves@redhat.com>
2733
2734 * breakpoint.c (enum ugll_insert_mode): New enum.
2735 (update_global_location_list)
2736 (update_global_location_list_nothrow): Change parameter type from
2737 boolean to enum ugll_insert_mode. All callers adjusted.
2738
93c6145a
JB
27392014-09-19 Joel Brobecker <brobecker@adacore.com>
2740
2741 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2742 SystemTap support in GDB.
2743
89a5711c
DB
27442014-09-19 Don Breazeal <donb@codesourcery.com>
2745
2746 * linux-nat.c (linux_handle_extended_wait): Call
2747 linux_ptrace_get_extended_event.
2748 (wait_lwp): Call linux_is_extended_waitstatus.
2749 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2750 and linux_is_extended_waitstatus.
2751 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2752 linux_ptrace_get_extended_event.
2753 (linux_ptrace_get_extended_event): New function.
2754 (linux_is_extended_waitstatus): New function.
2755 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2756 (linux_is_extended_waitstatus): New declarations.
2757
c3b7b696
YQ
27582014-09-19 Yao Qi <yao@codesourcery.com>
2759
2760 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2761 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2762 comments. Callers update.
2763 (dwarf_decode_lines): Likewise.
2764 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2765 comments. Skip the line table if 'lowpc' is greater than
2766 'address'. Don't check
2767 dwarf2_per_objfile->has_section_at_zero.
2768
2b4fd423
DE
27692014-09-18 Doug Evans <dje@google.com>
2770
2771 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2772 * python/py-symtab.c (stpy_get_producer): New function.
2773 (symtab_object_getset): Add "producer" attribute.
2774
5e43d467
UW
27752014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2776
2777 PR gdb/17384
2778 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2779 (do_captured_read_memory_integer): Remove.
2780 (safe_read_memory_integer): Use target_read_memory directly instead
2781 of catching errors in do_captured_read_memory_integer.
2782
04e79979
MR
27832014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2784
2785 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2786 not gdb/doc.
2787
76aeec5b
SDJ
27882014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2789
2790 * objc-lang.c (find_implementation_from_class): Remove dead code.
2791
2f693f9d
SDJ
27922014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2793
2794 PR cli/7233
2795 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2796 "fprintf_unfiltered (gdb_stdlog...)".
2797
bb9d5f81
PP
27982014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2799
2800 PR breakpoints/12526
2801 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2802 val_bitsize.
2803 * breakpoint.c (watch_command_1): Use these fields to retain
2804 bitfield information.
2805 (extract_bitfield_from_watchpoint_value): New function.
2806 (watchpoint_check): Use it.
2807 (update_watchpoint): Use it. Optimize the address and length of a
2808 HW watchpoint pointing to a bitfield.
2809 * value.h (unpack_value_bitfield): New prototype.
2810 * value.c (unpack_value_bitfield): Make extern.
2811
05db5edd
ST
28122014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2813
2814 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2815 x86-dregs.o.
2816 * gnu-nat.c (inf_threads): New function.
2817 * gnu-nat.h (inf_threads_ftype): New typedef.
2818 (inf_threads): New declaration.
2819 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2820 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2821 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2822 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2823 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2824 (i386_gnu_dr_get_control): New functions.
2825 (reg_addr): New structure.
2826 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2827 i386 debugging register hooks.
2828 * NEWS: Mention this.
2829
5a578da5
OJ
28302014-08-13 Omair Javaid <omair.javaid@linaro.org>
2831
2832 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2833 vector data transfer instructions.
2834 (arm_record_coproc_data_proc): Updated.
2835
f20f80dd
OJ
28362014-08-13 Omair Javaid <omair.javaid@linaro.org>
2837
2838 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2839 arm_record_exreg_ld_st_insn.
2840 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2841 load/store insns.
2842
851f26ae
OJ
28432014-08-13 Omair Javaid <omair.javaid@linaro.org>
2844
2845 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2846 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2847 processing instructions.
2848
1e1b6563
OJ
28492014-08-13 Omair Javaid <omair.javaid@linaro.org>
2850
2851 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2852 for advance SIMD struct ld/st insn.
2853 (thumb2_record_decode_insn_handler): Replace stub handler with
2854 thumb2_record_asimd_struct_ld_st.
2855
60cc5e93
OJ
28562014-08-13 Omair Javaid <omair.javaid@linaro.org>
2857
2858 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2859 for asimd, vfp and coprocessor insns.
2860 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2861 and coprocessor insns.
2862 (thumb2_record_coproc_insn): New function.
2863 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2864 handlers.
2865 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2866 opcode 110 insns.
2867
81219e53
DE
28682014-09-13 Doug Evans <xdje42@gmail.com>
2869
2870 * NEWS: Mention new "queue-signal" command.
2871 * infcmd.c (queue_signal_command): New function.
2872 (_initialize_infcmd): Add new queue-signal command.
2873
d36bf488
DE
28742014-09-13 Doug Evans <xdje42@gmail.com>
2875
2876 * linux-nat.c (wait_lwp): Add debugging printf.
2877 (linux_nat_wait_1): Ditto.
2878
f37f681c
PA
28792014-09-12 Pedro Alves <palves@redhat.com>
2880
2881 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2882 (create_and_insert_solib_event_breakpoint): New functions.
2883 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2884 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2885 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2886 (remove_dbx_link_breakpoint): Delete function.
2887 (insert_dbx_link_bpt_in_file): Use
2888 create_and_insert_solib_event_breakpoint instead of
2889 deprecated_insert_raw_breakpoint.
2890 (procfs_wait): Don't check whether we hit __dbx_link here.
2891 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2892 here.
2893 * solib-irix.c (base_breakpoint): Delete global.
2894 (disable_break): Delete function.
2895 (enable_break): Use create_solib_event_breakpoint
2896 instead of deprecated_insert_raw_breakpoint.
2897 (irix_solib_handle_event): New function.
2898 (irix_solib_create_inferior_hook): Don't run the target or disable
2899 the mapping-complete breakpoint here.
2900 (_initialize_irix_solib): Install irix_solib_handle_event as
2901 so_ops->handle_event hook.
2902
9d9bf2df
EBM
29032014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2904 Ulrich Weigand  <uweigand@de.ibm.com>
2905
2906 PR tdep/17379
2907 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2908 instead of read_memory_unsigned_integer.
2909
b006a80e
GB
29102014-09-12 Gary Benson <gbenson@redhat.com>
2911
2912 * nat/linux-waitpid.c: Include common-defs.h.
2913 [GDBSERVER]: Add FIXME comment.
2914 [!GDBSERVER]: Don't include defs.h or signal.h.
2915 (linux_debug) [!GDBSERVER]: Remove empty block.
2916
296b1496
GB
29172014-09-12 Gary Benson <gbenson@redhat.com>
2918
2919 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2920 Don't include defs.h or server.h.
2921
53f81362
GB
29222014-09-12 Gary Benson <gbenson@redhat.com>
2923
2924 * nat/linux-btrace.c: Include common-defs.h.
2925 Don't include defs.h, server.h or gdbthread.h.
2926 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2927
727605ca
GB
29282014-09-12 Gary Benson <gbenson@redhat.com>
2929
2930 * common/agent.c: Include common-defs.h.
2931 Don't include defs.h or server.h.
2932 * common/buffer.c: Likewise.
2933 * common/common-debug.c: Likewise.
2934 * common/common-utils.c: Likewise.
2935 * common/errors.c: Likewise.
2936 * common/filestuff.c: Likewise.
2937 * common/format.c: Likewise.
2938 * common/gdb_vecs.c: Likewise.
2939 * common/print-utils.c: Likewise.
2940 * common/ptid.c: Likewise.
2941 * common/rsp-low.c: Likewise.
2942 * common/signals.c: Likewise.
2943 * common/vec.c: Likewise.
2944 * common/xml-utils.c: Likewise.
2945 * nat/linux-osdata.c: Likewise.
2946 * nat/linux-procfs.c: Likewise.
2947 * nat/linux-ptrace.c: Likewise.
2948 * nat/mips-linux-watch.c: Likewise.
2949 * target/waitstatus.c: Likewise.
2950
361c8ade
GB
29512014-09-12 Tom Tromey <tromey@redhat.com>
2952 Gary Benson <gbenson@redhat.com>
2953
2954 * common/common-regcache.h: New file.
2955 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2956 * regcache.h: Include common-regcache.h.
2957 (regcache_read_pc): Don't declare.
2958 * regcache.c (get_thread_regcache_for_ptid): New function.
2959 * nat/linux-btrace.c: Don't include regcache.h.
2960 Include common-regcache.h.
2961 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2962
a01cbb49
TS
29632014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2964
2965 * regcache.h (struct regset): Declare.
2966
98880d46
PA
29672014-09-11 Pedro Alves <palves@redhat.com>
2968
2969 PR gdb/17347
2970 * main.c: Include "infrun.h".
2971 (catch_command_errors, catch_command_errors_const): Wait for the
2972 foreground command to complete.
2973 * top.c (maybe_wait_sync_command_done): New function, factored out
2974 from ...
2975 (maybe_wait_sync_command_done): ... here.
2976 * top.h (maybe_wait_sync_command_done): New declaration.
2977
bd9269f7
GB
29782014-09-11 Tom Tromey <tromey@redhat.com>
2979 Gary Benson <gbenson@redhat.com>
2980
2981 * common/symbol.h: New file.
2982 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2983 * minsyms.c (find_minimal_symbol_address): New function.
2984 * common/agent.c: Include common/symbol.h.
2985 [!GDBSERVER]: Don't include objfiles.h.
2986 (agent_look_up_symbols): Use find_minimal_symbol_address.
2987
f8c1d06b
GB
29882014-09-11 Gary Benson <gbenson@redhat.com>
2989
2990 * target/target.h (target_stop_ptid, target_continue_ptid):
2991 Declare.
2992 * target.c (target_stop_ptid, target_continue_ptid): New
2993 functions.
2994 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2995 (agent_run_command): Always use target_stop_ptid and
2996 target_continue_ptid.
2997
721ec300
GB
29982014-09-11 Tom Tromey <tromey@redhat.com>
2999 Gary Benson <gbenson@redhat.com>
3000
3001 * target/target.h: New file.
3002 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3003 * target.h: Include target/target.h.
3004 (target_read_memory, target_write_memory): Don't declare.
3005 * target.c (target_read_uint32): New function.
3006 * common/agent.c: Include target/target.h.
3007 [!GDBSERVER]: Don't include target.h.
3008 (helper_thread_id): Type changed to uint32_t.
3009 (agent_get_helper_thread_id): Use target_read_uint32.
3010 (agent_run_command): Always use target_read_memory and
3011 target_write_memory.
3012 (agent_capability): Type changed to uint32_t.
3013 (agent_capability_check): Use target_read_uint32.
3014
c5e92cca
GB
30152014-09-11 Gary Benson <gbenson@redhat.com>
3016
3017 * common/common-debug.h (show_debug_regs): Declare.
3018 * common/common-debug.c (show_debug_regs): Define.
3019 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3020 all uses with show_debug_regs. Replace all uses that considered
3021 debug_hw_points as a multi-value integer with straight boolean
3022 uses.
3023 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3024 with show_debug_regs.
3025 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3026 all uses with show_debug_regs.
3027 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3028 uses with show_debug_regs.
3029
eeef931a
UW
30302014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3031
3032 * findvar.c (address_from_register): Handle targets requiring
3033 a special conversion routine even for plain pointer types.
3034
8efa9855
UW
30352014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3036
3037 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3038 (store_register): Do not call exec_one_dummy_insn.
3039
eb479039
JB
30402014-09-10 Joel Brobecker <brobecker@adacore.com>
3041
3042 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3043 dereference it first. Use value_enclosing_type instead of
3044 value_type.
3045 (ada_array_length): Likewise.
3046
deede10c
JB
30472014-09-10 Joel Brobecker <brobecker@adacore.com>
3048
3049 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3050 Adjust function implementation and documentation accordingly.
3051 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3052 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3053 Update call to ada_value_ptr_subscript.
3054
7828a5f5
JB
30552014-09-10 Joel Brobecker <brobecker@adacore.com>
3056
3057 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3058 instead of VAL's type.
3059
35782f14
JB
30602014-09-10 Joel Brobecker <brobecker@adacore.com>
3061
3062 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3063
d342a0da
DE
30642014-09-09 Doug Evans <xdje42@gmail.com>
3065
3066 PR guile/17367
3067 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3068 last parameter to pkg-config, not first.
3069 * configure.ac: Pass --with-guile provided pkg-config path to
3070 GDB_GUILE_PROGRAM_NAMES.
3071 * configure: Regenerate.
3072
b4a3d263
GKB
30732014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3074
3075 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3076 Bertazi".
3077
6e466374
MR
30782014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3079
3080 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3081 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3082 the list of sections determining GDB_OSABI_IRIX.
3083
a1ada89a
JH
30842014-09-09 James Hogan <james.hogan@imgtec.com>
3085
3086 * MAINTAINERS (Write After Approval): Add "James Hogan".
3087
86db008d
JH
30882014-09-09 James Hogan <james.hogan@imgtec.com>
3089
3090 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3091
72fde3df
JB
30922014-09-09 Joel Brobecker <brobecker@adacore.com>
3093
3094 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3095
92d8d229
DE
30962014-09-08 Doug Evans <xdje42@gmail.com>
3097
3098 PR 17247
3099 * guile.c: #include <signal.h>.
3100 (_initialize_guile): Block SIGCHLD while initializing Guile.
3101
3102 Replaces the following, which is reverted.
3103
3104 2014-07-26 Doug Evans <xdje42@gmail.com>
3105
3106 PR 17185
3107 * configure.ac: Add check for header gc/gc.h.
3108 Add check for function setenv.
3109 * configure: Regenerate.
3110 * config.in: Regenerate.
3111 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3112
d81412aa
DE
31132014-09-08 Doug Evans <xdje42@gmail.com>
3114
3115 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3116 with named constant. Fix style of pointer comparison.
3117 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3118
a9f116cb
GKB
31192014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3120
3121 PR gdb/17035
3122 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3123 decide whether we display the command on "show user".
3124 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3125 printing command name.
3126 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3127 * cli/cli-decode.c (cli_user_command_p): Create helper function
3128 to verify whether cmd_list_element is a user-defined command.
3129
c75bd3a2
JK
31302014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 PR python/17355
3133 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3134 Fix goto out of TRY_CATCH.
3135
faa42425 31362014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3137 Tom Tromey <tromey@redhat.com>
faa42425
DE
3138
3139 PR 15276
3140 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3141 $_any_caller_matches.
3142 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3143 * python/lib/gdb/function/caller_is.py: New file.
3144
0d41ba00
DE
31452014-09-06 Doug Evans <xdje42@gmail.com>
3146
3147 * infcmd.c (program_info): Fix typo.
3148
474ca4f6
SDJ
31492014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3150
3151 PR gdb/17235
3152 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3153 'number'. New variable 'has_digit'. Rewrite code to deal with
3154 subexpressions on SDT probes.
3155
ebf13736
PA
31562014-09-04 Pedro Alves <palves@redhat.com>
3157
3158 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3159 the input is only one character long.
3160
eb0b0463
SDJ
31612014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3162
3163 PR fortran/17237
3164 * f-valprint.c (f_val_print): Specify the correct print option to
3165 use when printing integer values.
3166
5ee44bfa
GB
31672014-09-04 Gary Benson <gbenson@redhat.com>
3168
3169 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3170 Remove code to cope with LWPs wrapped as PIDs.
3171 Add assertions to ensure no wrapped LWPs are passed.
3172
4875ffdb
PA
31732014-09-04 Pedro Alves <palves@redhat.com>
3174
3175 * value.c (value_ranges_copy_adjusted): New function, factored out
3176 from ...
3177 (value_contents_copy_raw): ... here.
3178 (unpack_value_bits_as_long_1): Rename back to ...
3179 (unpack_bits_as_long): ... this. Remove 'original_value' and
3180 'result' parameters. Change return type to LONGEST.
3181 (unpack_value_bits_as_long): Delete.
3182 (unpack_value_field_as_long_1): Delete.
3183 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3184 (unpack_value_bitfield): New function.
3185 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3186 (value_fetch_lazy): Use unpack_value_bitfield.
3187 * value.h (unpack_value_bits_as_long): Delete declaration.
3188
5f3b99cf
SS
31892014-09-03 Sasha Smundak <asmundak@google.com>
3190
3191 * python/py-frame.c (frapy_read_register): New function.
3192
ac740bc7
JH
31932014-09-03 James Hogan <james.hogan@imgtec.com>
3194
3195 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3196 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3197
7d793aa9
SDJ
31982014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3199
3200 PR python/16699
3201 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3202 function.
3203 (add_cmd): Set "completer_handle_brkchars" to NULL.
3204 * cli/cli-decode.h (struct cmd_list_element)
3205 <completer_handle_brkchars>: New field.
3206 * command.h (completer_ftype_void): New typedef.
3207 (set_cmd_completer_handle_brkchars): New prototype.
3208 * completer.c (set_gdb_completion_word_break_characters): New
3209 function.
3210 (complete_line_internal): Call "completer_handle_brkchars"
3211 callback from command.
3212 * completer.h: Include "command.h".
3213 (set_gdb_completion_word_break_characters): New prototype.
3214 * python/py-cmd.c (cmdpy_completer_helper): New function.
3215 (cmdpy_completer_handle_brkchars): New function.
3216 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3217 (cmdpy_init): Set completer_handle_brkchars to
3218 cmdpy_completer_handle_brkchars.
3219
97ea6506
GB
32202014-09-03 Gary Benson <gbenson@redhat.com>
3221
3222 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3223 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3224 Loop conditions changed to equivalent form.
3225 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3226 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3227 ALL_DEBUG_ADDRESS_REGISTERS.
3228
d1437815
JB
32292014-09-03 Joel Brobecker <brobecker@adacore.com>
3230
3231 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3232 description fix.
3233
9b94fcf1
DE
32342014-09-02 Doug Evans <dje@google.com>
3235
3236 * typeprint.c (find_global_typedef): Fix comment.
3237
df7e5265
GB
32382014-09-02 Gary Benson <gbenson@redhat.com>
3239
3240 * i386-nat.h: Renamed as...
3241 * x86-nat.h: New file. All type, function and variable name
3242 prefixes changed from "i386_" to "x86_". All references updated.
3243 * i386-nat.c: Renamed as...
3244 * x86-nat.c: New file. All type, function and variable name
3245 prefixes changed from "i386_" to "x86_". All references updated.
3246 * common/i386-xstate.h: Renamed as...
3247 * common/x86-xstate.h: New file. All type, function and variable
3248 name prefixes changed from "i386_" to "x86_". All references
3249 updated.
3250 * nat/i386-cpuid.h: Renamed as...
3251 * nat/x86-cpuid.h: New file. All type, function and variable name
3252 prefixes changed from "i386_" to "x86_". All references updated.
3253 * nat/i386-gcc-cpuid.h: Renamed as...
3254 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3255 name prefixes changed from "i386_" to "x86_". All references
3256 updated.
3257 * nat/i386-dregs.h: Renamed as...
3258 * nat/x86-dregs.h: New file. All type, function and variable name
3259 prefixes changed from "i386_" to "x86_". All references updated.
3260 * nat/i386-dregs.c: Renamed as...
3261 * nat/x86-dregs.c: New file. All type, function and variable name
3262 prefixes changed from "i386_" to "x86_". All references updated.
3263
1c3569d4
MR
32642014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3265
3266 * varobj.c (_initialize_varobj): Move to the end of file.
3267
ff55e1b5
GB
32682014-08-29 Gary Benson <gbenson@redhat.com>
3269
3270 * common/common-exceptions.h: New file.
3271 * common/common-exceptions.c: Likewise.
3272 * Makefile.in (SFILES): Add common/common-exceptions.c.
3273 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3274 (COMMON_OBS): Add common-exceptions.o.
3275 (common-exceptions.o): New rule.
3276 * exceptions.h (common-exceptions.h): Include.
3277 (gdb_setjmp.h): Do not include.
3278 (return_reason): Moved to common-exceptions.h.
3279 (enum return_reason): Likewise.
3280 (RETURN_MASK): Likewise.
3281 (typedef return_mask): Likewise.
3282 (enum errors): Likewise.
3283 (struct gdb_exception): Likewise.
3284 (exceptions_state_mc_init): Likewise.
3285 (exceptions_state_mc_action_iter): Likewise.
3286 (exceptions_state_mc_action_iter_1): Likewise.
3287 (TRY_CATCH): Likewise.
3288 (throw_exception): Likewise.
3289 (throw_verror): Likewise.
3290 (throw_vquit): Likewise.
3291 (throw_error): Likewise.
3292 (throw_quit): Likewise.
3293 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3294 (enum catcher_action): Likewise.
3295 (struct catcher): Likewise.
3296 (current_catcher): Likewise.
3297 (catcher_list_size): Likewise.
3298 (exceptions_state_mc_init): Likewise.
3299 (catcher_pop): Likewise.
3300 (exceptions_state_mc): Likewise.
3301 (exceptions_state_mc_action_iter): Likewise.
3302 (exceptions_state_mc_action_iter_1): Likewise.
3303 (throw_exception): Likewise.
3304 (exception_messages): Likewise.
3305 (exception_messages_size): Likewise.
3306 (throw_it): Likewise.
3307 (throw_verror): Likewise.
3308 (throw_vquit): Likewise.
3309 (throw_error): Likewise.
3310 (throw_quit): Likewise.
3311 (prepare_to_throw_exception): New function.
3312
e9bcb658
GB
33132014-08-29 Gary Benson <gbenson@redhat.com>
3314
3315 * common/gdb_setjmp.h: New file.
3316 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3317 * configure.ac: Move sigsetjmp check...
3318 * common/common.m4: ...here.
3319 * configure: Regenerate.
3320 * cp-support.c (SIGJMP_BUF): Delete.
3321 (SIGSETJMP): Likewise.
3322 (SIGLONGJMP): Likewise.
3323 * exceptions.h (gdb_setjmp.h): Include.
3324 (setjmp.h): Do not include.
3325 (EXCEPTIONS_SIGJMP_BUF): Delete.
3326 (EXCEPTIONS_SIGSETJMP): Likewise.
3327 (EXCEPTIONS_SIGLONGJMP): Likewise.
3328 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3329 from gdb_setjmp.h.
3330 * exceptions.c: Likewise.
3331
e3180625
GB
33322014-08-29 Gary Benson <gbenson@redhat.com>
3333
3334 * cleanups.h: Moved to...
3335 * common/cleanups.h: New file.
3336 * cleanups.c: Moved to...
3337 * common/cleanups.c: New file. Include common-defs.h and
3338 cleanups.h. Do not include defs.h.
3339 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3340 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3341 (cleanups.o): New rule.
3342
e3d6ba5d
GB
33432014-08-29 Gary Benson <gbenson@redhat.com>
3344
3345 * common/errors.h (internal_warning): New declaration.
3346 (internal_vwarning): Likewise.
3347 * common/errors.c (internal_warning): New function.
3348 * utils.h (internal_warning): Don't declare.
3349 (internal_vwarning): Likewise.
3350 * utils.c (internal_warning): Removed.
3351
075c7033
GB
33522014-08-29 Gary Benson <gbenson@redhat.com>
3353
3354 * main.c (captured_main): Use warning during startup.
3355 Prefix startup warning messages with command name.
3356
91b35fd0
GB
33572014-08-29 Gary Benson <gbenson@redhat.com>
3358
3359 * main.c (captured_main): Handle usage errors with error.
3360
b1ec390e
GB
33612014-08-29 Gary Benson <gbenson@redhat.com>
3362
3363 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3364 exit pair with a call to error. Wrap the message with _().
3365
fd0ef3dd
GB
33662014-08-29 Gary Benson <gbenson@redhat.com>
3367
3368 * main.c (captured_main): Replace a fprintf/exit
3369 pair with a call to error. Wrap the message with _().
3370
e0e6bcab
GB
33712014-08-29 Gary Benson <gbenson@redhat.com>
3372
3373 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3374 pairs with calls to error. Wrap the message with _().
3375
0d2f5c07
GB
33762014-08-29 Gary Benson <gbenson@redhat.com>
3377
3378 * utils.c (vwarning): Protect calls to target_terminal_ours
3379 and wrap_here.
3380
5df43998
GB
33812014-08-29 Gary Benson <gbenson@redhat.com>
3382
3383 * exceptions.c (print_flush): Protect calls to
3384 target_terminal_ours and wrap_here.
3385
2437fd32
GB
33862014-08-29 Gary Benson <gbenson@redhat.com>
3387
3388 * utils.h (filtered_printing_initialized): New declaration.
3389 * utils.c (abort_with_message): New function.
3390 (internal_vproblem): Use abort_with_message for first level
3391 recursive internal problems, and if gdb_stderr is not set up.
3392 Protect calls to target_terminal_ours, begin_line and query.
3393
f1f58506
DE
33942014-08-28 Doug Evans <dje@google.com>
3395
3396 * symtab.c (in_prologue): Move definition to better spot.
3397 (skip_prologue_using_sal): Ditto.
3398
aab2f208
DE
33992014-08-28 Doug Evans <dje@google.com>
3400
3401 * symtab.c (find_function_start_sal): Move definition to better spot.
3402
6b65d1b6
YQ
34032014-08-28 Yao Qi <yao@codesourcery.com>
3404
3405 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3406 found_stack_adjust in forward scan. Remove condition check
3407 on found_stack_adjust which is always true. Indent the code.
3408
a1b34d15
YQ
34092014-08-28 Yao Qi <yao@codesourcery.com>
3410
3411 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3412 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3413 (dwarf_decode_lines): Remove argument
3414 want_line_info. Remove condition check on want_line_info.
3415 Callers update.
3416
d5962de5
DE
34172014-08-27 Doug Evans <dje@google.com>
3418
3419 * dwarf2read.c (dwarf_record_line): Fix typo.
3420
9b139002
SDJ
34212014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3422
3423 * target.h (struct target_ops::to_terminal_save_ours): Remove
3424 declaration.
3425 (target_terminal_save_ours): Remove macro.
3426 * target-delegates.c: Regenerate.
3427 * inf-child.c (inf_child_target): Don't set the nonexistent
3428 field to_terminal_save_ours.
3429 * inferior.h (child_terminal_save_ours): Remove declaration.
3430 * terminal.h (gdb_save_tty_state): New declaration.
3431 * inflow.c (child_terminal_save_ours): Rename to ...
3432 (gdb_save_tty_state): ... this.
3433 * tui/tui.c: Include terminal.h.
3434 (tui_enable): Use gdb_save_tty_state instead of
3435 target_terminal_save_ours.
3436 (tui_disable): Likewise.
3437
9debeba0
DE
34382014-08-25 Doug Evans <dje@google.com>
3439
3440 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3441 Pass NULL instead of 0 for context pointer.
3442
428fc5fc
YQ
34432014-08-25 Yao Qi <yao@codesourcery.com>
3444
3445 * dwarf2read.c: Fix grammatical error.
3446
cdc07690
YQ
34472014-08-24 Yao Qi <yao@codesourcery.com>
3448
3449 * dwarf2read.c (scan_partial_symbols): Update comments.
3450 Rename argument 'need_pc' with 'set_addrmap'.
3451 (add_partial_namespace): Rename argument 'need_pc' with
3452 'set_addrmap'.
3453 (add_partial_module): Likewise.
3454 (add_partial_subprogram): Likewise. Update comments.
3455 (dwarf2_name): Fix typo.
3456
a05a36a5
DE
34572014-08-22 Doug Evans <dje@google.com>
3458
3459 PR 17276
3460 * dwarf2read.c (dwarf_record_line_p): New function.
3461 (dwarf_decode_lines_1): Ignore subsequent line number entries
3462 for the same line if any entry had a non-zero discriminator.
3463
252a6764
DE
34642014-08-22 Doug Evans <dje@google.com>
3465
3466 * buildsym.h (record_line_ftype): New typedef.
3467 (record_line): Use it.
3468 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3469 (dwarf_decode_lines_1): Call them.
3470
510db052
YQ
34712014-08-22 Yao Qi <yao@codesourcery.com>
3472
3473 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3474 (ctf_end): Remove code.
3475
22fd09ae
JK
34762014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3477
3478 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3479 (linux_make_corefile_notes): call update_thread_list, protected against
3480 exceptions.
3481
656e8868
PA
34822014-08-21 Pedro Alves <palves@redhat.com>
3483
3484 * infcmd.c (attach_command): Remove comment.
3485
de589d04
WN
34862014-08-21 Bin Cheng <bin.cheng@arm.com>
3487
3488 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3489 unsigned LONGEST to ULONGEST.
3490
2a31c623
PA
34912014-08-20 Pedro Alves <palves@redhat.com>
3492
3493 * Makefile.in (check-read1): New rule.
3494
d36430db
JB
34952014-08-20 Joel Brobecker <brobecker@adacore.com>
3496
3497 * value.c (value_from_contents_and_address): Strip resolved_type's
3498 typedef layers before checking its TYPE_DATA_LOCATION.
3499
000339af
PA
35002014-08-20 Pedro Alves <palves@redhat.com>
3501
3502 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3503
5f52445b
YQ
35042014-08-20 Yao Qi <yao@codesourcery.com>
3505
3506 * amd64-tdep.c (amd64_classify): Add a blank line after the
3507 example. Move "*/" to a new line.
3508 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3509 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3510 * dwarf2read.c (psymtab_include_file_name): Likewise.
3511
9a0dc9e3
PA
35122014-08-19 Andrew Burgess <aburgess@broadcom.com>
3513 Pedro Alves <palves@redhat.com>
3514
3515 PR symtab/14604
3516 PR symtab/14605
3517 * ada-lang.c (coerce_unspec_val_to_type): Use
3518 value_contents_copy_raw.
3519 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3520 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3521 * cp-valprint.c (cp_print_value_fields): Let the common printing
3522 code handle optimized out values.
3523 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3524 * d-valprint.c (dynamic_array_type): Use
3525 value_bits_any_optimized_out.
3526 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3527 check_any_valid fields.
3528 (check_pieced_value_bits): Delete and inline ...
3529 (check_pieced_synthetic_pointer): ... here.
3530 (check_pieced_value_validity): Delete.
3531 (check_pieced_value_invalid): Delete.
3532 (pieced_value_funcs): Remove check_validity and check_any_valid
3533 fields.
3534 (read_pieced_value): Use mark_value_bits_optimized_out.
3535 (write_pieced_value): Switch to use
3536 mark_value_bytes_optimized_out.
3537 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3538 of assuming the whole value is optimized out.
3539 * findvar.c (read_frame_register_value): Remove special handling
3540 of optimized out registers.
3541 (value_from_register): Use mark_value_bytes_optimized_out.
3542 * frame-unwind.c (frame_unwind_got_optimized): Use
3543 mark_value_bytes_optimized_out.
3544 * jv-valprint.c (java_value_print): Adjust.
3545 (java_print_value_fields): Let the common printing code handle
3546 optimized out values.
3547 * mips-tdep.c (mips_print_register): Remove special handling of
3548 optimized out registers.
3549 * opencl-lang.c (lval_func_check_validity): Delete.
3550 (lval_func_check_any_valid): Delete.
3551 (opencl_value_funcs): Remove check_validity and check_any_valid
3552 fields.
3553 * p-valprint.c (pascal_object_print_value_fields): Let the common
3554 printing code handle optimized out values.
3555 * stack.c (read_frame_arg): Remove special handling of optimized
3556 out values. Fetch both VAL and ENTRYVAL before comparing
3557 contents. Adjust to value_available_contents_eq rename.
3558 * valprint.c (valprint_check_validity)
3559 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3560 (val_print_array_elements): Adjust.
3561 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3562 (value_bits_any_optimized_out): New function.
3563 (value_entirely_covered_by_range_vector): New function, factored
3564 out from value_entirely_unavailable.
3565 (value_entirely_unavailable): Reimplement.
3566 (value_entirely_optimized_out): New function.
3567 (insert_into_bit_range_vector): New function, factored out from
3568 mark_value_bits_unavailable.
3569 (mark_value_bits_unavailable): Reimplement.
3570 (struct ranges_and_idx): New struct.
3571 (find_first_range_overlap_and_match): New function, factored out
3572 from value_available_contents_bits_eq.
3573 (value_available_contents_bits_eq): Rename to ...
3574 (value_contents_bits_eq): ... this. Check both unavailable
3575 contents and optimized out contents.
3576 (value_available_contents_eq): Rename to ...
3577 (value_contents_eq): ... this.
3578 (allocate_value_lazy): Remove reference to the old optimized_out
3579 boolean.
3580 (allocate_optimized_out_value): Use
3581 mark_value_bytes_optimized_out.
3582 (require_not_optimized_out): Adjust to check whether the
3583 optimized_out vec is empty.
3584 (ranges_copy_adjusted): New function, factored out from
3585 value_contents_copy_raw.
3586 (value_contents_copy_raw): Also copy the optimized out ranges.
3587 Assert the destination ranges aren't optimized out.
3588 (value_contents_copy): Update comment, remove call to
3589 require_not_optimized_out.
3590 (value_contents_equal): Adjust to check whether the optimized_out
3591 vec is empty.
3592 (set_value_optimized_out, value_optimized_out_const): Delete.
3593 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3594 New functions.
3595 (value_entirely_optimized_out, value_bits_valid): Delete.
3596 (value_copy): Take a VEC copy of the 'optimized_out' field.
3597 (value_primitive_field): Remove special handling of optimized out.
3598 (value_fetch_lazy): Assert that lazy values have no unavailable
3599 regions. Use value_bits_any_optimized_out. Remove some special
3600 handling for optimized out values.
3601 * value.h: Add intro comment about <optimized out> and
3602 <unavailable>.
3603 (struct lval_funcs): Remove check_validity and check_any_valid
3604 fields.
3605 (set_value_optimized_out, value_optimized_out_const): Remove.
3606 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3607 New declarations.
3608 (value_bits_any_optimized_out): New declaration.
3609 (value_bits_valid): Delete declaration.
3610 (value_available_contents_eq): Rename to ...
3611 (value_contents_eq): ... this, and extend comments.
3612
6694c411
JK
36132014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3614
3615 Fix -fsanitize=address on unreadable inferior strings.
3616 * valprint.c (val_print_string): Fix access before BUFFER.
3617
89a1c21a
SM
36182014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3619
3620 * target.c (target_struct_size): Remove.
3621 (target_struct_allocsize): Remove.
3622 (DEFAULT_ALLOCSIZE): Remove.
3623 (target_ops_p): New typedef.
3624 (DEF_VEC_P (target_ops_p)): New vector type.
3625 (target_structs): Change type to VEC (target_ops_p).
3626 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3627 (find_default_run_target): Rewrite for loop following changes to
3628 target_structs.
3629
cb417230
JB
36302014-08-19 Joel Brobecker <brobecker@adacore.com>
3631
3632 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3633 Adjust code accordingly. Adjust function description comment.
3634
817e0957
YQ
36352014-08-19 Yao Qi <yao@codesourcery.com>
3636
3637 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3638 types.
3639
2974be62
AM
36402014-08-19 Alan Modra <amodra@gmail.com>
3641
3642 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3643 * config.in: Regenerate.
3644 * configure: Regenerate.
3645
34abf635
GB
36462014-08-19 Tom Tromey <tromey@redhat.com>
3647 Gary Benson <gbenson@redhat.com>
3648
3649 * common/common-debug.h: New file.
3650 * common/common-debug.c: Likewise.
3651 * debug.c: Likewise.
3652 * Makefile.in (SFILES): Add common/common-debug.c.
3653 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3654 (COMMON_OBS): Add common-debug.o and debug.o.
3655 (common-debug.o): New rule.
3656 * common/common-defs.h: Include common-debug.h.
3657 * common/agent.c (debug_agent_printf): New function.
3658 (DEBUG_AGENT): Redefine.
3659 * nat/i386-dregs.c (debug_printf): Undefine.
3660
f6e94d78
GB
36612014-08-19 Gary Benson <gbenson@redhat.com>
3662
3663 * common/common-defs.h: Include print-utils.h.
3664 * utils.h: Do not include print-utils.h.
3665
9239eeab
GB
36662014-08-19 Tom Tromey <tromey@redhat.com>
3667 Gary Benson <gbenson@redhat.com>
3668
3669 * common/common-types.h: New file.
3670 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3671 * common/common-defs.h: Include common-types.h.
3672 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3673 (ULONGEST): Remove.
3674
ef87c8bb
GB
36752014-08-19 Tom Tromey <tromey@redhat.com>
3676 Gary Benson <gbenson@redhat.com>
3677
3678 * common/errors.h: New file.
3679 * common/errors.c: Likewise.
3680 * Makefile.in (SFILES): Add common/errors.c.
3681 (HFILES_NO_SRCDIR): Add common/errors.h.
3682 (COMMON_OBS): Add errors.o.
3683 (errors.o): New rule.
3684 * common/common-defs.h: Include errors.h.
3685 * utils.h (perror_with_name, error, verror, warning, vwarning):
3686 Don't declare.
3687 * common/common-utils.h: (malloc_failure, internal_error):
3688 Likewise.
3689
196a707b
GB
36902014-08-19 Gary Benson <gbenson@redhat.com>
3691
3692 * utils.c (internal_vproblem): Always print the message.
3693
ded4fc8f
DE
36942014-08-18 Doug Evans <dje@google.com>
3695
3696 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3697
950c97d8
JB
36982014-08-18 Joel Brobecker <brobecker@adacore.com>
3699
3700 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3701 Return 0 if TYPE is dynamic.
3702 (print_range): Add handling of dynamic ranges.
3703
3cdcd0ce
JB
37042014-08-18 Keven Boell <keven.boell@intel.com>
3705 Joel Brobecker <brobecker@adacore.com>
3706
3707 * gdbtypes.h (struct main_type): Add field "data_location".
3708 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3709 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3710 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3711 a dynamic data location.
3712 (resolve_dynamic_type): Add DW_AT_data_location handling.
3713 (copy_recursive, copy_type): Copy the data_location information
3714 when present.
3715 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3716 * value.c (value_from_contents_and_address): Add
3717 DW_AT_data_location handling.
3718
08412b07
JB
37192014-08-18 Keven Boell <keven.boell@intel.com>
3720 Joel Brobecker <brobecker@adacore.com>
3721
3722 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3723 field "get_object_address".
3724 * dwarf2expr.c (execute_stack_op): Add handling for
3725 DW_OP_push_object_address.
3726 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3727 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3728 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3729 (dwarf_expr_get_obj_addr): New function.
3730 (dwarf_expr_ctx_funcs): Add get_object_address field.
3731 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3732 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3733 (dwarf2_evaluate_property): Add parameter "address". Use it.
3734 (needs_get_obj_addr): New function.
3735 (needs_frame_ctx_funcs): Add get_object_address field.
3736 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3737 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3738 (resolve_dynamic_array): Likewise.
3739
84754697
JB
37402014-08-18 Joel Brobecker <brobecker@adacore.com>
3741
3742 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3743 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3744 fixed value for records and unions for which some GNAT encodings
3745 are present.
3746
da5c522f
JB
37472014-08-18 Joel Brobecker <brobecker@adacore.com>
3748
3749 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3750 rewrite to avoid "else if" and "else" constructs. Should be
3751 a no-op in practice.
3752
0d72a7c3
JB
37532014-08-18 Joel Brobecker <brobecker@adacore.com>
3754
3755 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3756 of lexical block.
3757
e66d4446
SC
37582014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3759
3760 PR c++/17132
3761 * eval.c: Update all calls to find_overload_match.
3762 * valarith.c: Likewise.
3763 (value_user_defined_cpp_op, value_user_defined_op): New
3764 argument NOSIDE. Update all callers.
3765 * valops.c (find_overload_match): New argument NOSIDE.
3766 * value.h (find_overload_match): Update signature.
3767
940df408
SC
37682014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3769
3770 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3771 'items' methods instead of 'iteritems' method on dictionaries.
3772
699ca60a
DE
37732014-08-15 Doug Evans <dje@google.com>
3774
3775 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3776 closer to use.
3777
37780ee5
DE
37782014-08-15 Doug Evans <dje@google.com>
3779
3780 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3781
0ad93d4f
DE
37822014-08-15 Doug Evans <dje@google.com>
3783
3784 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3785
20d8c372
DE
37862014-08-15 Doug Evans <dje@google.com>
3787
3788 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3789 unused.
3790
cb039ba4
EZ
37912014-08-15 Eli Zaretskii <eliz@gnu.org>
3792
3793 * dcache.h: Include target.h, to avoid compile time warnings.
3794
eb7a547a
JB
37952014-08-15 Joel Brobecker <brobecker@adacore.com>
3796
3797 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3798 frame_info" partial declaration.
3799 * gdbarch.h: Regenerate.
3800
783cecc8
YQ
38012014-08-15 Yao Qi <yao@codesourcery.com>
3802
3803 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3804 Add parameter 'decode_for_pst_p'. Callers update.
3805
65c749e7
YQ
38062014-08-13 Yao Qi <yao@codesourcery.com>
3807
3808 PR build/17104
3809 * configure.ac: Use local variable 'pos'.
3810 * configure: Regenerated.
3811
d769e349
DE
38122014-08-11 Doug Evans <dje@google.com>
3813
3814 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3815 message, it is redundant with "Reading symbols from ..." message.
3816
24f1235e
DE
38172014-08-10 Doug Evans <xdje42@gmail.com>
3818
3819 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3820
dcd2e6ef
YQ
38212014-08-09 Yao Qi <yao@codesourcery.com>
3822
3823 PR remote/9053
3824 * remote.c (remote_xfer_partial): Remove dead code.
3825
070bdf0b
AA
38262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3827
3828 * ia64-linux-tdep.c: Include "regset.h".
3829 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3830 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3831 (ia64_linux_supply_fpregset): New function.
3832 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3833 (ia64_linux_regset_from_core_section): New function.
3834 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3835 method.
3836
08f9f542
AA
38372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3838
3839 * m68klinux-tdep.c: Include "regset.h".
3840 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3841 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3842 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3843 (m68k_linux_regset_from_core_section): New function.
3844 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3845 method.
3846
8f1cee41
AA
38472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3848
3849 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3850 function. Move logic to...
3851 (tilegx_linux_regmap): ... this new register map.
3852 (tilegx_linux_regset): Refer to register map, replace supply
3853 method by regcache_supply_regset, and add collect method.
3854 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3855 TILEGX_FIRST_EASY_REGNUM.
3856
c5741217
AA
38572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3858
3859 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3860 that calls regcache_supply_regset and handles the EPC register
3861 separately. Move main logic to...
3862 (score7_linux_gregmap): ... this new register map.
3863 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3864 (score7_linux_gregset): Refer to register map. Add collect method.
3865 (score7_linux_regset_from_core_section): Replace
3866 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3867 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3868 (struct regset): Delete unused forward declaraction.
3869 (struct pt_regs): Delete structure definition.
3870 (elf_gregset_t): Delete typedef.
3871
81580573
AA
38722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3873
3874 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3875 (nios2_core_regset): Add collect method.
3876
ba199d7d
AA
38772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3878
3879 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3880 platform-independent and don't write to read-only input buffer.
3881 (m32r_linux_collect_gregset): New function.
3882 (m32r_linux_gregset): Add collect method.
3883
0006a9da
AA
38842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3885
3886 * hppa-linux-tdep.c (greg_map): Rename to...
3887 (hppa_linux_gregmap): ... this. Also convert to
3888 regcache_map_entry format.
3889 (hppa_linux_supply_regset): Delete function.
3890 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3891 (hppa_linux_fpregmap): ... this new register map.
3892 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3893 register map, replace supply method by regcache_supply_regset, and
3894 add collect method regcache_collect_regset.
3895
901e1b23
AA
38962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3897
3898 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3899 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3900 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3901 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3902 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3903 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3904 (frv_linux_supply_gregset): Replace main logic by call to
3905 regcache_supply_regset, but keep clearing gr32-gr63.
3906 (frv_linux_supply_fpregset): Delete function.
3907 (frv_linux_gregset): Refer to appropriate register map and add
3908 regcache_collect_regset as the collect method.
3909 (frv_linux_fpregset): Likewise. Also exchange the supply method
3910 by regcache_supply_regset.
3911
1d6e7555
AA
39122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3913
3914 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3915 by call to alpha_supply_int_regs.
3916 (alpha_linux_collect_gregset): New function.
3917 (alpha_linux_supply_fpregset): Replace logic by call to
3918 alpha_supply_fp_regs.
3919 (alpha_linux_collect_fpregset): New function.
3920 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3921
d4d793bf
AA
39222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3923
3924 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3925 by call to regcache_collect_regset.
3926 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3927 instead of aarch64_linux_supply_gregset/_fpregset.
3928 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3929 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3930 header file instead.
3931 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3932 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3933 functions. Move logic to ...
3934 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3935 register maps.
3936 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3937 refer to new register maps, replace *_regset_from_core by
3938 regcache_supply_regset, and also use regcache_collect_regset.
3939 * aarch64-linux-tdep.h: Include "regset.h".
3940 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3941 Delete prototypes.
3942 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3943 macros, moved from C source file.
3944 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3945 variable declarations.
3946
99b7da5d
AA
39472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3948
3949 * s390-linux-nat.c: Include "regset.h".
3950 (regmap_gregset): Delete macro.
3951 (s390_64_regmap_gregset): New register map for
3952 regcache_supply/_collect_regset.
3953 (s390_64_gregset): New regset.
3954 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3955 (regmap_fpregset): Delete macro.
3956 (s390_native_supply, s390_native_collect): Delete functions.
3957 (supply_gregset, fill_gregset): Replace s390-specific regmap
3958 handling by a call to regcache_supply/_collect_regset.
3959 (supply_fpregset, fill_fpregset): Call regcache_supply/
3960 _collect_regset instead of s390_native_supply/_collect.
3961 (fetch_regset, store_regset): Likewise. Also change the last
3962 parameter to a regset instead of a regmap.
3963 (s390_linux_fetch_inferior_registers)
3964 (390_linux_store_inferior_registers): Adjust last parameter in
3965 calls to fetch_regset and store_regset.
3966 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3967 (s390_gregmap): ... this. Also make static const and convert to
3968 regcache_map_entry format.
3969 (s390x_regmap_gregset): Delete.
3970 (s390_regmap_fpregset): Rename to...
3971 (s390_fpregmap): ... this. Make static const and convert to
3972 regcache_map_entry format.
3973 (s390_regmap_upper, s390_regmap_last_break)
3974 (s390x_regmap_last_break, s390_regmap_system_call)
3975 (s390_regmap_tdb): Likewise.
3976 (s390_supply_regset, s390_collect_regset): Remove functions.
3977 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3978 s390_supply_regset.
3979 (s390_gregset, s390_fpregset, s390_upper_regset)
3980 (s390_last_break_regset, s390x_last_break_regset)
3981 (s390_system_call_regset, s390_tdb_regset): Make global and
3982 replace s390_supply/_collect_regset by regcache_supply/
3983 _collect_regset.
3984 (s390x_gregset): Delete.
3985 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3986 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3987 (s390_regmap_fpregset, s390_regmap_last_break)
3988 (s390x_regmap_last_break, s390_regmap_system_call)
3989 (s390_regmap_tdb): Delete global variable declarations.
3990 (s390_gregset, s390_fpregset, s390_last_break_regset)
3991 (s390x_last_break_regset, s390_system_call_regset)
3992 (s390_tdb_regset): New global variable declarations.
3993
0b309272
AA
39942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3995
3996 * regcache.c: Include "regset.h".
3997 (regcache_transfer_regset): New local function.
3998 (regcache_supply_regset, regcache_collect_regset): New functions.
3999 * regcache.h (struct regcache_map_entry): New structure.
4000 (REGCACHE_MAP_SKIP): New enum value.
4001 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4002
7fefa8d7
AA
40032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4004
4005 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4006 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4007 (ppc_linux_collect_gregset ): Likewise.
4008 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4009 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4010 (ppc_collect_vrregset): Likewise.
4011 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4012 Likewise.
4013
96c4f946
YQ
40142014-08-07 Yao Qi <yao@codesourcery.com>
4015
4016 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4017 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4018 * remote.c (remote_read_bytes): Likewise.
4019
fffbe6a8
YQ
40202014-08-07 Yao Qi <yao@codesourcery.com>
4021
4022 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4023
5ee8a82c
YQ
40242014-08-07 Yao Qi <yao@codesourcery.com>
4025
4026 PR remote/17230
4027 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4028 TARGET_XFER_OK instead of 0.
4029
bb974a24
GB
40302014-08-07 Gary Benson <gbenson@redhat.com>
4031
4032 * common/common-defs.h: Include errno.h.
4033 * defs.h: Do not include errno.h.
4034 * ada-typeprint.c: Likewise.
4035 * c-typeprint.c: Likewise.
4036 * core-regset.c: Likewise.
4037 * corefile.c: Likewise.
4038 * corelow.c: Likewise.
4039 * event-loop.c: Likewise.
4040 * f-typeprint.c: Likewise.
4041 * gnu-nat.c: Likewise.
4042 * go32-nat.c: Likewise.
4043 * i386gnu-nat.c: Likewise.
4044 * m2-typeprint.c: Likewise.
4045 * nat/linux-btrace.c: Likewise.
4046 * p-typeprint.c: Likewise.
4047 * procfs.c: Likewise.
4048 * remote-sim.c: Likewise.
4049 * rs6000-nat.c: Likewise.
4050 * target.c: Likewise.
4051 * typeprint.c: Likewise.
4052 * ui-file.c: Likewise.
4053 * valops.c: Likewise.
4054 * valprint.c: Likewise.
4055
6d3d12eb
GB
40562014-08-07 Gary Benson <gbenson@redhat.com>
4057
4058 * common/common-defs.h: Include string.h.
4059 * aarch64-tdep.c: Do not include string.h.
4060 * ada-exp.y: Likewise.
4061 * ada-lang.c: Likewise.
4062 * ada-lex.l: Likewise.
4063 * ada-typeprint.c: Likewise.
4064 * ada-valprint.c: Likewise.
4065 * aix-thread.c: Likewise.
4066 * alpha-linux-tdep.c: Likewise.
4067 * alpha-mdebug-tdep.c: Likewise.
4068 * alpha-nat.c: Likewise.
4069 * alpha-osf1-tdep.c: Likewise.
4070 * alpha-tdep.c: Likewise.
4071 * alphanbsd-tdep.c: Likewise.
4072 * amd64-dicos-tdep.c: Likewise.
4073 * amd64-linux-tdep.c: Likewise.
4074 * amd64-nat.c: Likewise.
4075 * amd64-sol2-tdep.c: Likewise.
4076 * amd64fbsd-tdep.c: Likewise.
4077 * amd64obsd-tdep.c: Likewise.
4078 * arch-utils.c: Likewise.
4079 * arm-linux-nat.c: Likewise.
4080 * arm-linux-tdep.c: Likewise.
4081 * arm-tdep.c: Likewise.
4082 * arm-wince-tdep.c: Likewise.
4083 * armbsd-tdep.c: Likewise.
4084 * armnbsd-nat.c: Likewise.
4085 * armnbsd-tdep.c: Likewise.
4086 * armobsd-tdep.c: Likewise.
4087 * avr-tdep.c: Likewise.
4088 * ax-gdb.c: Likewise.
4089 * ax-general.c: Likewise.
4090 * bcache.c: Likewise.
4091 * bfin-tdep.c: Likewise.
4092 * breakpoint.c: Likewise.
4093 * build-id.c: Likewise.
4094 * buildsym.c: Likewise.
4095 * c-exp.y: Likewise.
4096 * c-lang.c: Likewise.
4097 * c-typeprint.c: Likewise.
4098 * c-valprint.c: Likewise.
4099 * charset.c: Likewise.
4100 * cli-out.c: Likewise.
4101 * cli/cli-cmds.c: Likewise.
4102 * cli/cli-decode.c: Likewise.
4103 * cli/cli-dump.c: Likewise.
4104 * cli/cli-interp.c: Likewise.
4105 * cli/cli-logging.c: Likewise.
4106 * cli/cli-script.c: Likewise.
4107 * cli/cli-setshow.c: Likewise.
4108 * cli/cli-utils.c: Likewise.
4109 * coffread.c: Likewise.
4110 * common/agent.c: Likewise.
4111 * common/buffer.c: Likewise.
4112 * common/buffer.h: Likewise.
4113 * common/common-utils.c: Likewise.
4114 * common/filestuff.c: Likewise.
4115 * common/filestuff.c: Likewise.
4116 * common/format.c: Likewise.
4117 * common/print-utils.c: Likewise.
4118 * common/rsp-low.c: Likewise.
4119 * common/signals.c: Likewise.
4120 * common/vec.h: Likewise.
4121 * common/xml-utils.c: Likewise.
4122 * core-regset.c: Likewise.
4123 * corefile.c: Likewise.
4124 * corelow.c: Likewise.
4125 * cp-abi.c: Likewise.
4126 * cp-name-parser.y: Likewise.
4127 * cp-support.c: Likewise.
4128 * cp-valprint.c: Likewise.
4129 * cris-tdep.c: Likewise.
4130 * d-exp.y: Likewise.
4131 * darwin-nat.c: Likewise.
4132 * dbxread.c: Likewise.
4133 * dcache.c: Likewise.
4134 * demangle.c: Likewise.
4135 * dicos-tdep.c: Likewise.
4136 * disasm.c: Likewise.
4137 * doublest.c: Likewise.
4138 * dsrec.c: Likewise.
4139 * dummy-frame.c: Likewise.
4140 * dwarf2-frame.c: Likewise.
4141 * dwarf2loc.c: Likewise.
4142 * dwarf2read.c: Likewise.
4143 * elfread.c: Likewise.
4144 * environ.c: Likewise.
4145 * eval.c: Likewise.
4146 * event-loop.c: Likewise.
4147 * exceptions.c: Likewise.
4148 * exec.c: Likewise.
4149 * expprint.c: Likewise.
4150 * f-exp.y: Likewise.
4151 * f-lang.c: Likewise.
4152 * f-typeprint.c: Likewise.
4153 * f-valprint.c: Likewise.
4154 * fbsd-nat.c: Likewise.
4155 * findcmd.c: Likewise.
4156 * findvar.c: Likewise.
4157 * fork-child.c: Likewise.
4158 * frame.c: Likewise.
4159 * frv-linux-tdep.c: Likewise.
4160 * frv-tdep.c: Likewise.
4161 * gdb.c: Likewise.
4162 * gdb_bfd.c: Likewise.
4163 * gdbarch.c: Likewise.
4164 * gdbarch.sh: Likewise.
4165 * gdbtypes.c: Likewise.
4166 * gnu-nat.c: Likewise.
4167 * gnu-v2-abi.c: Likewise.
4168 * gnu-v3-abi.c: Likewise.
4169 * go-exp.y: Likewise.
4170 * go-lang.c: Likewise.
4171 * go32-nat.c: Likewise.
4172 * guile/guile.c: Likewise.
4173 * guile/scm-auto-load.c: Likewise.
4174 * hppa-hpux-tdep.c: Likewise.
4175 * hppa-linux-nat.c: Likewise.
4176 * hppanbsd-tdep.c: Likewise.
4177 * hppaobsd-tdep.c: Likewise.
4178 * i386-cygwin-tdep.c: Likewise.
4179 * i386-dicos-tdep.c: Likewise.
4180 * i386-linux-tdep.c: Likewise.
4181 * i386-nto-tdep.c: Likewise.
4182 * i386-sol2-tdep.c: Likewise.
4183 * i386-tdep.c: Likewise.
4184 * i386bsd-tdep.c: Likewise.
4185 * i386gnu-nat.c: Likewise.
4186 * i386nbsd-tdep.c: Likewise.
4187 * i386obsd-tdep.c: Likewise.
4188 * i387-tdep.c: Likewise.
4189 * ia64-libunwind-tdep.c: Likewise.
4190 * ia64-linux-nat.c: Likewise.
4191 * inf-child.c: Likewise.
4192 * inf-ptrace.c: Likewise.
4193 * inf-ttrace.c: Likewise.
4194 * infcall.c: Likewise.
4195 * infcmd.c: Likewise.
4196 * inflow.c: Likewise.
4197 * infrun.c: Likewise.
4198 * interps.c: Likewise.
4199 * iq2000-tdep.c: Likewise.
4200 * irix5-nat.c: Likewise.
4201 * jv-exp.y: Likewise.
4202 * jv-lang.c: Likewise.
4203 * jv-typeprint.c: Likewise.
4204 * jv-valprint.c: Likewise.
4205 * language.c: Likewise.
4206 * linux-fork.c: Likewise.
4207 * linux-nat.c: Likewise.
4208 * lm32-tdep.c: Likewise.
4209 * m2-exp.y: Likewise.
4210 * m2-typeprint.c: Likewise.
4211 * m32c-tdep.c: Likewise.
4212 * m32r-linux-nat.c: Likewise.
4213 * m32r-linux-tdep.c: Likewise.
4214 * m32r-rom.c: Likewise.
4215 * m32r-tdep.c: Likewise.
4216 * m68hc11-tdep.c: Likewise.
4217 * m68k-tdep.c: Likewise.
4218 * m68kbsd-tdep.c: Likewise.
4219 * m68klinux-nat.c: Likewise.
4220 * m68klinux-tdep.c: Likewise.
4221 * m88k-tdep.c: Likewise.
4222 * machoread.c: Likewise.
4223 * macrocmd.c: Likewise.
4224 * main.c: Likewise.
4225 * mdebugread.c: Likewise.
4226 * mem-break.c: Likewise.
4227 * memattr.c: Likewise.
4228 * memory-map.c: Likewise.
4229 * mep-tdep.c: Likewise.
4230 * mi/mi-cmd-break.c: Likewise.
4231 * mi/mi-cmd-disas.c: Likewise.
4232 * mi/mi-cmd-env.c: Likewise.
4233 * mi/mi-cmd-stack.c: Likewise.
4234 * mi/mi-cmd-var.c: Likewise.
4235 * mi/mi-cmds.c: Likewise.
4236 * mi/mi-console.c: Likewise.
4237 * mi/mi-getopt.c: Likewise.
4238 * mi/mi-interp.c: Likewise.
4239 * mi/mi-main.c: Likewise.
4240 * mi/mi-parse.c: Likewise.
4241 * microblaze-rom.c: Likewise.
4242 * microblaze-tdep.c: Likewise.
4243 * mingw-hdep.c: Likewise.
4244 * minidebug.c: Likewise.
4245 * minsyms.c: Likewise.
4246 * mips-irix-tdep.c: Likewise.
4247 * mips-linux-tdep.c: Likewise.
4248 * mips-tdep.c: Likewise.
4249 * mips64obsd-tdep.c: Likewise.
4250 * mipsnbsd-tdep.c: Likewise.
4251 * mipsread.c: Likewise.
4252 * mn10300-linux-tdep.c: Likewise.
4253 * mn10300-tdep.c: Likewise.
4254 * monitor.c: Likewise.
4255 * moxie-tdep.c: Likewise.
4256 * mt-tdep.c: Likewise.
4257 * nat/linux-btrace.c: Likewise.
4258 * nat/linux-osdata.c: Likewise.
4259 * nat/linux-procfs.c: Likewise.
4260 * nat/linux-ptrace.c: Likewise.
4261 * nat/linux-waitpid.c: Likewise.
4262 * nbsd-tdep.c: Likewise.
4263 * nios2-linux-tdep.c: Likewise.
4264 * nto-procfs.c: Likewise.
4265 * nto-tdep.c: Likewise.
4266 * objc-lang.c: Likewise.
4267 * objfiles.c: Likewise.
4268 * opencl-lang.c: Likewise.
4269 * osabi.c: Likewise.
4270 * osdata.c: Likewise.
4271 * p-exp.y: Likewise.
4272 * p-lang.c: Likewise.
4273 * p-typeprint.c: Likewise.
4274 * parse.c: Likewise.
4275 * posix-hdep.c: Likewise.
4276 * ppc-linux-nat.c: Likewise.
4277 * ppc-sysv-tdep.c: Likewise.
4278 * ppcfbsd-tdep.c: Likewise.
4279 * ppcnbsd-tdep.c: Likewise.
4280 * ppcobsd-tdep.c: Likewise.
4281 * printcmd.c: Likewise.
4282 * procfs.c: Likewise.
4283 * prologue-value.c: Likewise.
4284 * python/py-auto-load.c: Likewise.
4285 * python/py-gdb-readline.c: Likewise.
4286 * ravenscar-thread.c: Likewise.
4287 * regcache.c: Likewise.
4288 * registry.c: Likewise.
4289 * remote-fileio.c: Likewise.
4290 * remote-m32r-sdi.c: Likewise.
4291 * remote-mips.c: Likewise.
4292 * remote-notif.c: Likewise.
4293 * remote-sim.c: Likewise.
4294 * remote.c: Likewise.
4295 * reverse.c: Likewise.
4296 * rs6000-aix-tdep.c: Likewise.
4297 * ser-base.c: Likewise.
4298 * ser-go32.c: Likewise.
4299 * ser-mingw.c: Likewise.
4300 * ser-pipe.c: Likewise.
4301 * ser-tcp.c: Likewise.
4302 * ser-unix.c: Likewise.
4303 * serial.c: Likewise.
4304 * sh-tdep.c: Likewise.
4305 * sh64-tdep.c: Likewise.
4306 * shnbsd-tdep.c: Likewise.
4307 * skip.c: Likewise.
4308 * sol-thread.c: Likewise.
4309 * solib-dsbt.c: Likewise.
4310 * solib-frv.c: Likewise.
4311 * solib-osf.c: Likewise.
4312 * solib-som.c: Likewise.
4313 * solib-spu.c: Likewise.
4314 * solib-target.c: Likewise.
4315 * solib.c: Likewise.
4316 * somread.c: Likewise.
4317 * source.c: Likewise.
4318 * sparc-nat.c: Likewise.
4319 * sparc-sol2-tdep.c: Likewise.
4320 * sparc-tdep.c: Likewise.
4321 * sparc64-tdep.c: Likewise.
4322 * sparc64fbsd-tdep.c: Likewise.
4323 * sparc64nbsd-tdep.c: Likewise.
4324 * sparcnbsd-tdep.c: Likewise.
4325 * spu-linux-nat.c: Likewise.
4326 * spu-multiarch.c: Likewise.
4327 * spu-tdep.c: Likewise.
4328 * stabsread.c: Likewise.
4329 * stack.c: Likewise.
4330 * std-regs.c: Likewise.
4331 * symfile.c: Likewise.
4332 * symmisc.c: Likewise.
4333 * symtab.c: Likewise.
4334 * target.c: Likewise.
4335 * thread.c: Likewise.
4336 * tilegx-linux-nat.c: Likewise.
4337 * tilegx-tdep.c: Likewise.
4338 * top.c: Likewise.
4339 * tracepoint.c: Likewise.
4340 * tui/tui-command.c: Likewise.
4341 * tui/tui-data.c: Likewise.
4342 * tui/tui-disasm.c: Likewise.
4343 * tui/tui-file.c: Likewise.
4344 * tui/tui-layout.c: Likewise.
4345 * tui/tui-out.c: Likewise.
4346 * tui/tui-regs.c: Likewise.
4347 * tui/tui-source.c: Likewise.
4348 * tui/tui-stack.c: Likewise.
4349 * tui/tui-win.c: Likewise.
4350 * tui/tui-windata.c: Likewise.
4351 * tui/tui-winsource.c: Likewise.
4352 * typeprint.c: Likewise.
4353 * ui-file.c: Likewise.
4354 * ui-out.c: Likewise.
4355 * user-regs.c: Likewise.
4356 * utils.c: Likewise.
4357 * v850-tdep.c: Likewise.
4358 * valarith.c: Likewise.
4359 * valops.c: Likewise.
4360 * valprint.c: Likewise.
4361 * value.c: Likewise.
4362 * varobj.c: Likewise.
4363 * vax-tdep.c: Likewise.
4364 * vaxnbsd-tdep.c: Likewise.
4365 * vaxobsd-tdep.c: Likewise.
4366 * windows-nat.c: Likewise.
4367 * xcoffread.c: Likewise.
4368 * xml-support.c: Likewise.
4369 * xstormy16-tdep.c: Likewise.
4370 * xtensa-linux-nat.c: Likewise.
4371
dccbb609
GB
43722014-08-07 Gary Benson <gbenson@redhat.com>
4373
4374 * common/common-defs.h: Include gdb_assert.h.
4375 * aarch64-tdep.c: Do not include gdb_assert.h.
4376 * addrmap.c: Likewise.
4377 * aix-thread.c: Likewise.
4378 * alpha-linux-tdep.c: Likewise.
4379 * alpha-mdebug-tdep.c: Likewise.
4380 * alphanbsd-tdep.c: Likewise.
4381 * amd64-nat.c: Likewise.
4382 * amd64-tdep.c: Likewise.
4383 * amd64bsd-nat.c: Likewise.
4384 * amd64fbsd-nat.c: Likewise.
4385 * amd64fbsd-tdep.c: Likewise.
4386 * amd64nbsd-nat.c: Likewise.
4387 * amd64nbsd-tdep.c: Likewise.
4388 * amd64obsd-nat.c: Likewise.
4389 * amd64obsd-tdep.c: Likewise.
4390 * arch-utils.c: Likewise.
4391 * arm-tdep.c: Likewise.
4392 * armbsd-tdep.c: Likewise.
4393 * auxv.c: Likewise.
4394 * bcache.c: Likewise.
4395 * bfin-tdep.c: Likewise.
4396 * blockframe.c: Likewise.
4397 * breakpoint.c: Likewise.
4398 * bsd-kvm.c: Likewise.
4399 * bsd-uthread.c: Likewise.
4400 * buildsym.c: Likewise.
4401 * c-exp.y: Likewise.
4402 * c-lang.c: Likewise.
4403 * charset.c: Likewise.
4404 * cleanups.c: Likewise.
4405 * cli-out.c: Likewise.
4406 * cli/cli-decode.c: Likewise.
4407 * cli/cli-dump.c: Likewise.
4408 * cli/cli-logging.c: Likewise.
4409 * cli/cli-script.c: Likewise.
4410 * cli/cli-utils.c: Likewise.
4411 * coffread.c: Likewise.
4412 * common/common-utils.c: Likewise.
4413 * common/queue.h: Likewise.
4414 * common/signals.c: Likewise.
4415 * common/vec.h: Likewise.
4416 * complaints.c: Likewise.
4417 * completer.c: Likewise.
4418 * corelow.c: Likewise.
4419 * cp-abi.c: Likewise.
4420 * cp-name-parser.y: Likewise.
4421 * cp-namespace.c: Likewise.
4422 * cp-support.c: Likewise.
4423 * cris-tdep.c: Likewise.
4424 * dbxread.c: Likewise.
4425 * dictionary.c: Likewise.
4426 * doublest.c: Likewise.
4427 * dsrec.c: Likewise.
4428 * dummy-frame.c: Likewise.
4429 * dwarf2-frame-tailcall.c: Likewise.
4430 * dwarf2-frame.c: Likewise.
4431 * dwarf2expr.c: Likewise.
4432 * dwarf2loc.c: Likewise.
4433 * dwarf2read.c: Likewise.
4434 * eval.c: Likewise.
4435 * event-loop.c: Likewise.
4436 * exceptions.c: Likewise.
4437 * expprint.c: Likewise.
4438 * f-valprint.c: Likewise.
4439 * fbsd-nat.c: Likewise.
4440 * findvar.c: Likewise.
4441 * frame-unwind.c: Likewise.
4442 * frame.c: Likewise.
4443 * frv-tdep.c: Likewise.
4444 * gcore.c: Likewise.
4445 * gdb-dlfcn.c: Likewise.
4446 * gdb_bfd.c: Likewise.
4447 * gdbarch.c: Likewise.
4448 * gdbarch.sh: Likewise.
4449 * gdbtypes.c: Likewise.
4450 * gnu-nat.c: Likewise.
4451 * gnu-v3-abi.c: Likewise.
4452 * go-lang.c: Likewise.
4453 * guile/scm-exception.c: Likewise.
4454 * guile/scm-gsmob.c: Likewise.
4455 * guile/scm-lazy-string.c: Likewise.
4456 * guile/scm-math.c: Likewise.
4457 * guile/scm-pretty-print.c: Likewise.
4458 * guile/scm-safe-call.c: Likewise.
4459 * guile/scm-utils.c: Likewise.
4460 * guile/scm-value.c: Likewise.
4461 * h8300-tdep.c: Likewise.
4462 * hppa-hpux-nat.c: Likewise.
4463 * hppa-tdep.c: Likewise.
4464 * hppanbsd-tdep.c: Likewise.
4465 * hppaobsd-tdep.c: Likewise.
4466 * i386-darwin-nat.c: Likewise.
4467 * i386-darwin-tdep.c: Likewise.
4468 * i386-nto-tdep.c: Likewise.
4469 * i386-tdep.c: Likewise.
4470 * i386bsd-nat.c: Likewise.
4471 * i386fbsd-tdep.c: Likewise.
4472 * i386gnu-nat.c: Likewise.
4473 * i386nbsd-tdep.c: Likewise.
4474 * i386obsd-tdep.c: Likewise.
4475 * i387-tdep.c: Likewise.
4476 * ia64-libunwind-tdep.c: Likewise.
4477 * ia64-tdep.c: Likewise.
4478 * inf-ptrace.c: Likewise.
4479 * inf-ttrace.c: Likewise.
4480 * infcall.c: Likewise.
4481 * infcmd.c: Likewise.
4482 * infrun.c: Likewise.
4483 * inline-frame.c: Likewise.
4484 * interps.c: Likewise.
4485 * jv-lang.c: Likewise.
4486 * jv-typeprint.c: Likewise.
4487 * linux-fork.c: Likewise.
4488 * linux-nat.c: Likewise.
4489 * linux-thread-db.c: Likewise.
4490 * m32c-tdep.c: Likewise.
4491 * m32r-linux-nat.c: Likewise.
4492 * m32r-tdep.c: Likewise.
4493 * m68k-tdep.c: Likewise.
4494 * m68kbsd-nat.c: Likewise.
4495 * m68kbsd-tdep.c: Likewise.
4496 * m88k-tdep.c: Likewise.
4497 * machoread.c: Likewise.
4498 * macroexp.c: Likewise.
4499 * macrotab.c: Likewise.
4500 * maint.c: Likewise.
4501 * mdebugread.c: Likewise.
4502 * memory-map.c: Likewise.
4503 * mep-tdep.c: Likewise.
4504 * mi/mi-common.c: Likewise.
4505 * microblaze-tdep.c: Likewise.
4506 * mingw-hdep.c: Likewise.
4507 * mips-linux-nat.c: Likewise.
4508 * mips-linux-tdep.c: Likewise.
4509 * mips-tdep.c: Likewise.
4510 * mips64obsd-tdep.c: Likewise.
4511 * mipsnbsd-tdep.c: Likewise.
4512 * mn10300-linux-tdep.c: Likewise.
4513 * mn10300-tdep.c: Likewise.
4514 * moxie-tdep.c: Likewise.
4515 * mt-tdep.c: Likewise.
4516 * nat/linux-btrace.c: Likewise.
4517 * nat/linux-osdata.c: Likewise.
4518 * nat/linux-ptrace.c: Likewise.
4519 * nat/mips-linux-watch.c: Likewise.
4520 * nios2-linux-tdep.c: Likewise.
4521 * nios2-tdep.c: Likewise.
4522 * objc-lang.c: Likewise.
4523 * objfiles.c: Likewise.
4524 * obsd-nat.c: Likewise.
4525 * opencl-lang.c: Likewise.
4526 * osabi.c: Likewise.
4527 * parse.c: Likewise.
4528 * ppc-linux-nat.c: Likewise.
4529 * ppc-sysv-tdep.c: Likewise.
4530 * ppcfbsd-nat.c: Likewise.
4531 * ppcfbsd-tdep.c: Likewise.
4532 * ppcnbsd-nat.c: Likewise.
4533 * ppcnbsd-tdep.c: Likewise.
4534 * ppcobsd-nat.c: Likewise.
4535 * ppcobsd-tdep.c: Likewise.
4536 * printcmd.c: Likewise.
4537 * procfs.c: Likewise.
4538 * prologue-value.c: Likewise.
4539 * psymtab.c: Likewise.
4540 * python/py-lazy-string.c: Likewise.
4541 * python/py-value.c: Likewise.
4542 * regcache.c: Likewise.
4543 * reggroups.c: Likewise.
4544 * registry.c: Likewise.
4545 * remote-sim.c: Likewise.
4546 * remote.c: Likewise.
4547 * rs6000-aix-tdep.c: Likewise.
4548 * rs6000-tdep.c: Likewise.
4549 * s390-linux-tdep.c: Likewise.
4550 * score-tdep.c: Likewise.
4551 * ser-base.c: Likewise.
4552 * ser-mingw.c: Likewise.
4553 * sh-tdep.c: Likewise.
4554 * sh64-tdep.c: Likewise.
4555 * solib-darwin.c: Likewise.
4556 * solib-spu.c: Likewise.
4557 * solib-svr4.c: Likewise.
4558 * source.c: Likewise.
4559 * sparc-nat.c: Likewise.
4560 * sparc-sol2-tdep.c: Likewise.
4561 * sparc-tdep.c: Likewise.
4562 * sparc64-sol2-tdep.c: Likewise.
4563 * sparc64-tdep.c: Likewise.
4564 * sparc64fbsd-tdep.c: Likewise.
4565 * sparc64nbsd-tdep.c: Likewise.
4566 * sparc64obsd-tdep.c: Likewise.
4567 * sparcnbsd-tdep.c: Likewise.
4568 * sparcobsd-tdep.c: Likewise.
4569 * spu-multiarch.c: Likewise.
4570 * spu-tdep.c: Likewise.
4571 * stabsread.c: Likewise.
4572 * stack.c: Likewise.
4573 * symfile.c: Likewise.
4574 * symtab.c: Likewise.
4575 * target-descriptions.c: Likewise.
4576 * target-memory.c: Likewise.
4577 * target.c: Likewise.
4578 * tic6x-linux-tdep.c: Likewise.
4579 * tic6x-tdep.c: Likewise.
4580 * tilegx-linux-nat.c: Likewise.
4581 * tilegx-tdep.c: Likewise.
4582 * top.c: Likewise.
4583 * tramp-frame.c: Likewise.
4584 * tui/tui-out.c: Likewise.
4585 * tui/tui-winsource.c: Likewise.
4586 * ui-out.c: Likewise.
4587 * user-regs.c: Likewise.
4588 * utils.c: Likewise.
4589 * v850-tdep.c: Likewise.
4590 * valops.c: Likewise.
4591 * value.c: Likewise.
4592 * varobj.c: Likewise.
4593 * vax-nat.c: Likewise.
4594 * xml-syscall.c: Likewise.
4595 * xml-tdesc.c: Likewise.
4596 * xstormy16-tdep.c: Likewise.
4597 * xtensa-linux-nat.c: Likewise.
4598 * xtensa-tdep.c: Likewise.
4599
e76df0d0
GB
46002014-08-07 Gary Benson <gbenson@redhat.com>
4601
4602 * common/common-defs.h: Include common-utils.h.
4603 * defs.h: Do not include common-utils.h.
4604 * common/gdb_assert.h: Likewise.
4605 * darwin-nat.h: Likewise.
4606 * nat/linux-btrace.c: Likewise.
4607 * target/waitstatus.h: Likewise.
4608
4cb9c816
GB
46092014-08-07 Gary Benson <gbenson@redhat.com>
4610
4611 * common/common-defs.h: Include ptid.h.
4612 * defs.h: Do not include ptid.h.
4613 * inferior.h: Likewise.
4614 * infrun.h: Likewise.
4615 * nat/linux-btrace.h: Likewise.
4616 * nat/linux-osdata.h: Likewise.
4617 * target/waitstatus.h: Likewise.
4618
3995eeee
GB
46192014-08-07 Gary Benson <gbenson@redhat.com>
4620
4621 * common/common-defs.h: Include gdb_locale.h.
4622 * defs.h: Do not include gdb_locale.h.
4623
cb9f1a9b
GB
46242014-08-07 Gary Benson <gbenson@redhat.com>
4625
4626 * common/common-defs.h: Include gdb/signals.h.
4627 * defs.h: Do not include gdb/signals.h.
4628
a5fceff8
GB
46292014-08-07 Gary Benson <gbenson@redhat.com>
4630
4631 * common/common-defs.h: Include pathmax.h.
4632 * defs.h: Do not include pathmax.h.
4633
b9391142
GB
46342014-08-07 Gary Benson <gbenson@redhat.com>
4635
4636 * common/common-defs.h: Include libiberty.h.
4637 * defs.h: Do not include libiberty.h.
4638 * common/queue.h: Likewise.
4639 * cp-name-parser.y: Likewise.
4640 * mi/mi-cmd-catch.c: Likewise.
4641 * python/python.c: Likewise.
4642
0e443c87
GB
46432014-08-07 Gary Benson <gbenson@redhat.com>
4644
4645 * common/common-defs.h: Include ansidecl.h.
4646 * defs.h: Do not include ansidecl.h.
4647 * common/buffer.h: Likewise.
4648 * common/common-utils.h: Likewise.
4649
8ebb3f56
GB
46502014-08-07 Gary Benson <gbenson@redhat.com>
4651
4652 * common/common-defs.h: Include stddef.h.
4653 * defs.h: Do not include stddef.h.
4654 * common/common-utils.h: Likewise.
4655 * amd64fbsd-nat.c: Likewise.
4656 * bcache.c: Likewise.
4657 * charset.c: Likewise.
4658 * common/buffer.h: Likewise.
4659 * common/vec.h: Likewise.
4660 * i386bsd-nat.c: Likewise.
4661 * nat/linux-btrace.h: Likewise.
4662 * ppcfbsd-nat.c: Likewise.
4663 * ppcnbsd-tdep.h: Likewise.
4664 * ppcobsd-nat.c: Likewise.
4665 * ppcobsd-tdep.h: Likewise.
4666 * python/py-gdb-readline.c: Likewise.
4667
8980bdf6
GB
46682014-08-07 Gary Benson <gbenson@redhat.com>
4669
4670 * common/common-defs.h: Include stdarg.h.
4671 * defs.h: Do not include stdarg.h.
4672 * ada-lang.c: Likewise.
4673 * common/common-utils.h: Likewise.
4674 * guile/scm-string.c: Likewise.
4675 * guile/scm-utils.c: Likewise.
4676 * m32c-tdep.c: Likewise.
4677
d7096f71
GB
46782014-08-07 Gary Benson <gbenson@redhat.com>
4679
4680 * common/common-defs.h: Include stdlib.h.
4681 * defs.h: Do not include stdlib.h.
4682 * addrmap.c: Likewise.
4683 * bcache.c: Likewise.
4684 * common/buffer.c: Likewise.
4685 * common/common-utils.c: Likewise.
4686 * cp-name-parser.y: Likewise.
4687 * go32-nat.c: Likewise.
4688 * mn10300-linux-tdep.c: Likewise.
4689 * nat/linux-osdata.c: Likewise.
4690 * tui/tui.c: Likewise.
4691 * windows-nat.c: Likewise.
4692
d02f550d
GB
46932014-08-07 Gary Benson <gbenson@redhat.com>
4694
4695 * common/common-defs.h: Include stdio.h.
4696 * defs.h: Do not include stdio.h.
4697 * ada-lang.c: Likewise.
4698 * common/buffer.c: Likewise.
4699 * common/common-utils.c: Likewise.
4700 * cp-name-parser.y: Likewise.
4701 * gnu-nat.c: Likewise.
4702 * go32-nat.c: Likewise.
4703 * i386gnu-nat.c: Likewise.
4704 * proc-api.c: Likewise.
4705 * proc-events.c: Likewise.
4706 * proc-flags.c: Likewise.
4707 * proc-why.c: Likewise.
4708 * python/python-internal.h: Likewise.
4709 * target-memory.c: Likewise.
4710 * tui/tui-io.c: Likewise.
4711 * tui/tui.c: Likewise.
4712
b6d7a4bf
SM
47132014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4714
4715 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4716 (scan_dyntag_auxv): Same.
4717
af19829b
YQ
47182014-08-06 Yao Qi <yao@codesourcery.com>
4719
4720 * amd64-linux-nat.c: Remove duplicated include
4721 "x86-linux-nat.h".
4722 * i386-linux-nat.c: Likewise.
4723
8e07a239
YQ
47242014-08-06 Yao Qi <yao@codesourcery.com>
4725
4726 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4727 operand" with "Special opcode" in comments.
4728
7bfe8241
GB
47292014-08-05 Gary Benson <gbenson@redhat.com>
4730
4731 * interps.c (initialize_interps): Remove prototype.
4732 (interpreter_initialized): Remove static global.
4733 (interp_add): Do not call initialize_interps.
4734 (initialize_interps): Remove function.
4735
d6c95504
GB
47362014-08-05 Gary Benson <gbenson@redhat.com>
4737
4738 * utils.c (vwarning): Remove spurious va_end.
4739
241fd515
AM
47402014-08-05 Alan Modra <amodra@gmail.com>
4741
4742 * charset.c (convert_between_encodings): Cast result of obstack_base.
4743 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4744 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4745 (read_unwind_info): Use size_t for some locals.
4746 * jit.c (finalize_symtab): Likewise.
4747 * utils.c (hashtab_obstack_allocate): Likewise.
4748 * symmisc.c (print_objfile_statistics): Update format strings.
4749
dc304a94
JK
47502014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4751
4752 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4753 (Changes in GDB 7.8): ... here.
4754
3cecbbbe
TT
47552014-08-04 Tom Tromey <tromey@redhat.com>
4756
4757 * target.c (set_targetdebug): New function.
4758 (initialize_targets): Pass set_targetdebug when creating "set
4759 debug target".
4760
6908c509
JB
47612014-08-01 Joel Brobecker <brobecker@adacore.com>
4762
4763 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4764 if detecting a variable-sized field that is not the last field.
4765 Fix struct type length computation.
4766
53e8f97d
JB
47672014-08-01 Joel Brobecker <brobecker@adacore.com>
4768
4769 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4770 Add debug trace.
4771
e068c55d
JB
47722014-08-01 Joel Brobecker <brobecker@adacore.com>
4773
4774 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4775 Remove "+ 8" offset in computation of CHAIN_VMA.
4776
4d4ca2a1
DE
47772014-07-31 Doug Evans <dje@google.com>
4778
4779 * inflow.c (child_terminal_inferior): Add comment.
4780 (child_terminal_ours_for_output): Add comment.
4781 (child_terminal_ours): Add comment.
4782 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4783 (linux_nat_terminal_ours): Add comment.
4784
462f517e
GB
47852014-07-31 Gary Benson <gbenson@redhat.com>
4786
4787 * common/btrace-common.h: Do not include defs.h or server.h.
4788 * nat/mips-linux-watch.h: Likewise.
4789 * gdb-dlfcn.h: Do not include defs.h.
4790 * tracefile.h: Likewise.
4791
74228e77
RM
47922014-07-30 Roland McGrath <mcgrathr@google.com>
4793
4794 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4795
014f9477
TT
47962014-07-30 Tom Tromey <tromey@redhat.com>
4797
4798 * bsd-kvm.c (bsd_kvm_open): Constify.
4799 * corelow.c (core_open): Constify.
4800 * ctf.c (ctf_open): Constify.
4801 * dbug-rom.c (dbug_open): Constify.
4802 * exec.c (exec_open): Constify.
4803 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4804 * microblaze-rom.c (picobug_open): Constify.
4805 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4806 Constify.
4807 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4808 * record-btrace.c (record_btrace_open): Constify.
4809 * record-full.c (record_full_core_open_1, record_full_open_1)
4810 (record_full_open): Constify.
4811 * remote-m32r-sdi.c (m32r_open): Constify.
4812 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4813 (rockhopper_open, lsi_open): Constify.
4814 * remote-sim.c (gdbsim_open): Constify.
4815 * remote.c (remote_open, extended_remote_open, remote_open_1):
4816 Constify.
4817 * target.h (struct target_ops) <to_open>: Make "arg" const.
4818 * tracefile-tfile.c (tfile_open): Constify.
4819
e799154c
TT
48202014-07-30 Tom Tromey <tromey@redhat.com>
4821
4822 * breakpoint.c (map_breakpoint_numbers): Update.
4823 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4824 (get_number_const): New function.
4825 (get_number): Rewrite using get_number_const.
4826 (init_number_or_range): Make "string" const.
4827 (number_is_in_list): Make "list" const.
4828 * cli/cli-utils.h (get_number_const): Declare.
4829 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4830 (init_number_or_range, number_is_in_list): Update.
4831 * printcmd.c (map_display_numbers): Update.
4832 * value.c (value_from_history_ref): Constify.
4833 * value.h (value_from_history_ref): Update.
4834
5f08566b
TT
48352014-07-30 Tom Tromey <tromey@redhat.com>
4836
4837 * corefile.c (hook_type, call_extra_exec_file_hooks)
4838 (specify_exec_file_hook): Constify.
4839 * exec.c (exec_file_attach): Make "filename" const.
4840 * gdbcore.h (deprecated_exec_file_display_hook)
4841 (specify_exec_file_hook, exec_file_attach): Constify.
4842 * main.c (captured_main): Use catch_command_errors_const.
4843
8981c758
TT
48442014-07-30 Tom Tromey <tromey@redhat.com>
4845
4846 * target.c (open_target): New function.
4847 (add_target_with_completer, add_deprecated_target_alias): Use
4848 set_cmd_sfunc, set_cmd_context.
4849 (debug_to_open): Remove.
4850 (setup_target_debug): Update.
4851
a1c7835a
YQ
48522014-07-30 Yao Qi <yao@codesourcery.com>
4853
4854 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4855 comments.
4856 * parse.c (exp_iterate): Update comments.
4857
976411d6
GB
48582014-07-30 Gary Benson <gbenson@redhat.com>
4859
4860 * common/common-defs.h: New file.
4861 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4862 * defs.h: Include common-defs.h.
4863 Do not include config.h or build-gnulib/config.h.
4864
5d4848a4
GB
48652014-07-30 Gary Benson <gbenson@redhat.com>
4866
4867 * common/common-utils.h: Do not include config.h.
4868 * nat/linux-btrace.h: Likewise.
4869
d41f6d8e
GB
48702014-07-30 Gary Benson <gbenson@redhat.com>
4871
4872 * btrace.c: Include defs.h.
4873 * common/ptid.c: Include defs.h or server.h as appropriate.
4874 * nat/mips-linux-watch.c: Likewise.
4875
84202f9c
TT
48762014-07-29 Tom Tromey <tromey@redhat.com>
4877
4878 * target.c (target_is_pushed): Simplify.
4879
2530441c
JB
48802014-07-29 Joel Brobecker <brobecker@adacore.com>
4881
4882 GDB 7.8 released.
4883
7e09a223
YQ
48842014-07-29 Yao Qi <yao@codesourcery.com>
4885
4886 PR gdb/17206
4887 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4888
7ebdbe92
DE
48892014-07-28 Doug Evans <xdje42@gmail.com>
4890
4891 PR guile/17203
4892 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4893 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4894 parameters.
4895
f347ffc9
WN
48962014-07-28 Will Newton <will.newton@linaro.org>
4897
4898 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4899 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4900 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4901 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4902 (THUMB2_EABI_SYSCALL): Likewise.
4903 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4904 struct tramp_frame.
4905 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4906 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4907
37c5f1f7
DE
49082014-07-27 Doug Evans <xdje42@gmail.com>
4909
4910 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4911
0c3abbc7
DE
49122014-07-27 Doug Evans <xdje42@gmail.com>
4913
4914 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4915
e76c5d17
DE
49162014-07-26 Ludovic Courtès <ludo@gnu.org>
4917 Doug Evans <xdje42@gmail.com>
4918
4919 PR guile/17146
4920 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4921 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4922 * configure.ac: Try to use guild to compile an scm file, if it fails
4923 then disable guile support.
4924 * configure: Regenerate.
4925 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4926 GUILE_FILE_LIST.
4927 (GUILE_COMPILED_FILES): New variable.
4928 (GUILE_FILES) Update.
4929 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4930 (stamp-guile): Compile scm files.
4931 * guile/guile.c (boot_guile_support): New function.
4932 (standard_throw_args_p): New function.
4933 (print_standard_throw_error, print_throw_error): New functions.
4934 (handle_boot_error): New function.
4935 (initialize_scheme_side): Rewrite to call boot_guile_support.
4936 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4937 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4938
186fcde0
DE
49392014-07-26 Ludovic Courtès <ludo@gnu.org>
4940 Doug Evans <xdje42@gmail.com>
4941
4942 PR guile/17146
4943 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4944 * guile/lib/gdb/support.scm: New file.
4945 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4946 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4947 All uses updated.
4948 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4949 All uses updated.
4950 (%assert-type): Ditto, and renamed to assert-type.
4951 (%exception-print-style): Delete.
4952
4df42755
DE
49532014-07-26 Doug Evans <xdje42@gmail.com>
4954
4955 PR build/17105
4956 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4957 * configure: Regenerate.
4958 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4959 PYTHON_FILES.
4960 (PYTHON_FILES): New variable.
4961 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4962 (GUILE_FILES): New variable.
4963 (stamp-python, install-python, uninstall-python): Handle empty
4964 file list.
4965 (stamp-guile, install-guile, uninstall-guile): Ditto.
4966
ee7333ae
DE
49672014-07-26 Doug Evans <xdje42@gmail.com>
4968
4969 PR guile/17177
4970 * guile/lib/gdb.scm (pretty-printers): Export.
4971 (set-pretty-printers!): Export.
4972 * guile/lib/gdb/printing.scm (gdb module): Update.
4973 (prepend-pretty-printer!, append-pretty-printer!): Update.
4974 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4975 (pretty_printer_list_var): Delete.
4976 (pretty_printer_list): New static global.
4977 (gdbscm_pretty_printers): New function.
4978 (gdbscm_set_pretty_printers_x): New function.
4979 (ppscm_find_pretty_printer_from_gdb): Update.
4980 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4981 (gdbscm_initialize_pretty_printers): Update.
4982
74edf516
DE
49832014-07-26 Doug Evans <xdje42@gmail.com>
4984
4985 PR 17185
4986 * configure.ac: Add check for header gc/gc.h.
4987 Add check for function setenv.
4988 * configure: Regenerate.
4989 * config.in: Regenerate.
4990 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4991
d54398a7
MR
49922014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4993
4994 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4995 variation in gdbarch matching.
4996
ab16fce8
TT
49972014-07-25 Tom Tromey <tromey@redhat.com>
4998
4999 * exec.c (using_exec_ops): Remove.
5000 (exec_close_1): Update. Remove extraneous block, reindent.
5001 (add_target_sections): Use target_is_pushed.
5002
88056fbb
PA
50032014-07-25 Pedro Alves <palves@redhat.com>
5004
5005 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5006 * monitor.c (monitor_create_inferior): Likewise.
5007 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5008 * remote-sim.c (gdbsim_create_inferior): Likewise.
5009 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5010 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5011 * windows-nat.c (do_initial_windows_stuff): Likewise.
5012
70509625
PA
50132014-07-25 Pedro Alves <palves@redhat.com>
5014
5015 * NEWS: Mention signal passing and "signal" command changes.
5016 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5017 comment.
5018 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5019 call.
5020 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5021 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5022 (jump_command): Adjust clear_proceed_status call.
5023 (signal_command): Warn if other thread that are resumed have
5024 signals that will be delivered. Adjust clear_proceed_status call.
5025 (until_next_command, finish_command)
5026 (proceed_after_attach_callback, attach_command_post_wait)
5027 (attach_command): Adjust clear_proceed_status call.
5028 * infrun.c (proceed_after_vfork_done): Likewise.
5029 (proceed_after_attach_callback): Adjust comment.
5030 (clear_proceed_status_thread): Clear stop_signal if not in pass
5031 state.
5032 (clear_proceed_status_callback): Delete.
5033 (clear_proceed_status): New 'step' parameter. Only clear the
5034 proceed status of threads the command being prepared is about to
5035 resume.
5036 (proceed): If passed in an explicit signal, override stop_signal
5037 with it. Don't pass the last stop signal to the thread we're
5038 resuming.
5039 (init_wait_for_inferior): Adjust clear_proceed_status call.
5040 (switch_back_to_stepped_thread): Clear the signal if it should not
5041 be passed.
5042 * infrun.h (clear_proceed_status): New 'step' parameter.
5043 (user_visible_resume_ptid): Add comment.
5044 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5045 signal is in pass state.
5046 * remote.c (append_pending_thread_resumptions): Likewise.
5047 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5048
d8be2939
TT
50492014-07-25 Tom Tromey <tromey@redhat.com>
5050
5051 * target.h (target_stopped_data_address)
5052 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5053 parentheses.
5054
7d0d9d2b
PL
50552014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5056
5057 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5058 comments.
5059 (avr_pointer_to_address): Likewise.
5060
e9e7f724
TT
50612014-07-24 Tom Tromey <tromey@redhat.com>
5062
5063 * monitor.c (compile_pattern): Update.
5064 * target.h (struct target_ops) <to_shortname, to_longname,
5065 to_doc>: Now const.
5066
1947513d
TT
50672014-07-24 Tom Tromey <tromey@redhat.com>
5068
5069 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5070 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5071 (add_info_alias, add_com): Make "doc" const.
5072 (print_doc_line): Make "str" const.
5073 (delete_cmd): Update.
5074 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5075 (print_doc_line): Update.
5076 * cli/cli-script.c (document_command): Update.
5077 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5078 (add_com, add_info, add_info_alias): Update.
5079 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5080 * python/py-cmd.c (cmdpy_destroyer): Update.
5081
64e61d29
TT
50822014-07-24 Tom Tromey <tromey@redhat.com>
5083
5084 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5085 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5086 (help_cmd_list): Constify.
5087 (lookup_cmd): Update.
5088 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5089 const.
5090 (help_cmd_list, apropos_cmd): Update.
5091 * cli/cli-script.c (show_user): Update.
5092 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5093 * cli/cli-setshow.h (cmd_show_list): Update.
5094 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5095 (cmd_show_list): Update.
5096 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5097 * python/py-cmd.c (cmdpy_destroyer): Update.
5098
429e55ea
TT
50992014-07-24 Tom Tromey <tromey@redhat.com>
5100
5101 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5102 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5103 const.
5104 * command.h (deprecate_cmd): Update.
5105 * maint.c (maintenance_do_deprecate): Add casts.
5106
64669f3b
TT
51072014-07-24 Tom Tromey <tromey@redhat.com>
5108
5109 * cli/cli-decode.c (help_cmd): Make parameter "const".
5110 * cli/cli-decode.h (help_cmd): Update.
5111
d3d3328b
TT
51122014-07-24 Tom Tromey <tromey@redhat.com>
5113
5114 * stack.c (up_silently_base, down_silently_base): Make argument
5115 const.
5116
414842dc
TT
51172014-07-24 Tom Tromey <tromey@redhat.com>
5118
5119 * solib.c (solib_add): Make "pattern" const.
5120 * solib.h (solib_add): Update.
5121
baa336ce
TT
51222014-07-24 Tom Tromey <tromey@redhat.com>
5123
5124 * remote.c (remote_serial_open, print_packet, putpkt)
5125 (putpkt_binary): Constify.
5126 * remote.h (putpkt): Update.
5127
5a19e2d0
TT
51282014-07-24 Tom Tromey <tromey@redhat.com>
5129
5130 * monitor.c (monitor_open): Make "args" const.
5131 * monitor.h (monitor_open): Update.
5132
fc4baa5e
TT
51332014-07-24 Tom Tromey <tromey@redhat.com>
5134
5135 * maint.c (match_bfd_flags): Make "string" const.
5136 (print_bfd_section_info): Remove casts.
5137 (print_objfile_section_info): Make "string" const.
5138
0d5f0dbe
TT
51392014-07-24 Tom Tromey <tromey@redhat.com>
5140
5141 * inf-child.c (inf_child_open_target): Make "arg" const.
5142 * inf-child.h (inf_child_open_target): Update.
5143
41c77899
TT
51442014-07-24 Tom Tromey <tromey@redhat.com>
5145
5146 * environ.c (unset_in_environ): Make "var" const.
5147 * environ.h (unset_in_environ): Update.
5148
93db0d79
TT
51492014-07-24 Tom Tromey <tromey@redhat.com>
5150
5151 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5152 Make "cmd" const.
5153 (scan_filename_with_cleanup): Likewise.
5154 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5155 Make arguments const.
5156 (restore_command): Update.
5157
36d6eb95
PA
51582014-07-24 Pedro Alves <palves@redhat.com>
5159
5160 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5161
8009206a
TT
51622014-07-24 Tom Tromey <tromey@redhat.com>
5163 Gary Benson <gbenson@redhat.com>
5164
5165 * nat/linux-ptrace.c (additional_flags): New global.
5166 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5167 additional_flags; don't check GDBSERVER.
5168 (linux_ptrace_set_additional_flags): New function.
5169 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5170 Declare.
5171 * linux-nat.c (_initialize_linux_nat): Call
5172 linux_ptrace_set_additional_flags.
5173
a7068b60
TT
51742014-07-24 Tom Tromey <tromey@redhat.com>
5175
5176 * make-target-delegates (munge_type, write_debugmethod): New
5177 functions.
5178 (debug_names): New global.
5179 ($TARGET_DEBUG_PRINTER): New global.
5180 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5181 name.
5182 Write debug methods. Generate init_debug_target.
5183 * target-debug.h: New file.
5184 * target-delegates.c: Rebuild.
5185 * target.c: Include target-debug.h.
5186 (debug_target): Hoist definition.
5187 (target_kill, target_get_section_table, target_memory_map)
5188 (target_flash_erase, target_flash_done, target_detach)
5189 (target_disconnect, target_wait, target_resume)
5190 (target_pass_signals, target_program_signals, target_follow_fork)
5191 (target_mourn_inferior, target_search_memory)
5192 (target_thread_address_space, target_close)
5193 (target_find_new_threads, target_core_of_thread)
5194 (target_verify_memory, target_insert_mask_watchpoint)
5195 (target_remove_mask_watchpoint): Remove targetdebug code.
5196 (debug_to_post_attach, debug_to_prepare_to_store)
5197 (debug_to_files_info, debug_to_insert_breakpoint)
5198 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5199 (debug_to_region_ok_for_hw_watchpoint)
5200 (debug_to_can_accel_watchpoint_condition)
5201 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5202 (debug_to_watchpoint_addr_within_range)
5203 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5204 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5205 (debug_to_terminal_init, debug_to_terminal_inferior)
5206 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5207 (debug_to_terminal_save_ours, debug_to_terminal_info)
5208 (debug_to_load, debug_to_post_startup_inferior)
5209 (debug_to_insert_fork_catchpoint)
5210 (debug_to_remove_fork_catchpoint)
5211 (debug_to_insert_vfork_catchpoint)
5212 (debug_to_remove_vfork_catchpoint)
5213 (debug_to_insert_exec_catchpoint)
5214 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5215 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5216 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5217 (setup_target_debug): Call init_debug_target.
5218 * target.h (TARGET_DEBUG_PRINTER): New macro.
5219 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5220 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5221
2c51604d
GB
52222014-07-24 Gary Benson <gbenson@redhat.com>
5223
5224 * exceptions.h (throw_vfatal): Renamed to...
5225 (throw_vquit): New declaration.
5226 (throw_quit): Likewise.
5227 * exceptions.c (throw_vfatal): Renamed to...
5228 (throw_vquit): New function.
5229 (throw_quit): Likewise.
5230 (throw_error): Call throw_verror rather than throw_it.
5231 * utils.h (vfatal): Removed.
5232 (fatal): Likewise.
5233 * utils.c (vfatal): Removed.
5234 (fatal): Likewise.
5235 (internal_verror): Replaced call to fatal with call to throw_quit.
5236 (quit): Replaced calls to fatal with calls to throw_quit.
5237
34211963
ME
52382014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5239
5240 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5241 target_read_code.
5242
a52b4d3e
ME
52432014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5244
5245 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5246 less than zero in conditional expression.
5247
a8bdc56b
TT
52482014-07-23 Tom Tromey <tromey@redhat.com>
5249
5250 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5251 ($INTRO_PART): Don't match whitespace.
5252 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5253 argument matching.
5254 ($METHOD): Add $METHOD_TRAILER.
5255 (trim): Rewrite.
5256 (scan_target_h): New sub.
5257 Change main loop not to collect state.
5258 * target-delegates.c: Rebuild.
5259
91b52240
GB
52602014-07-23 Gary Benson <gbenson@redhat.com>
5261
5262 * cp-support.c (gdb_demangle): Fix build on systems without
5263 sigaltstack.
5264
45326f6f
JK
52652014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5266
5267 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5268 for reference entry value target data value.
5269
e214cf6c
JK
52702014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5271
5272 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5273 value_available_contents_eq.
5274
bddbbedd
PA
52752014-07-22 Pedro Alves <palves@redhat.com>
5276
5277 * value.c (allocate_optimized_out_value): Don't mark value as
5278 non-lazy.
5279
45c71484
JW
52802014-07-22 Jiong Wang <jiong.wang@arm.com>
5281
5282 * MAINTAINERS (Write After Approval): Update my email address.
5283
9597b22a
DE
52842014-07-20 Doug Evans <dje@google.com>
5285
5286 PR server/17147
5287 * remote.c (putpkt_binary): Add text to error message.
5288
91101fe5
YQ
52892014-07-20 Yao Qi <yao@codesourcery.com>
5290
5291 * eval.c: Remove "Chill" from comments.
5292 * gdbtypes.h: Likewise.
5293 * symtab.h: Likewise.
5294
c9402c95
YQ
52952014-07-20 Yao Qi <yao@codesourcery.com>
5296
5297 * std-operator.def: Update comments to TERNOP_SLICE.
5298
ae8fddda
YQ
52992014-07-20 Yao Qi <yao@codesourcery.com>
5300
5301 * std-operator.def: Remove BINOP_RANGE.
5302 * breakpoint.c (watchpoint_exp_is_const): Update.
5303 * expprint.c (dump_subexp_body_standard): Likewise.
5304 * eval.c (init_array_element): Remove dead code.
5305 (evaluate_subexp_standard): Likewise.
5306
9c816640
YQ
53072014-07-20 Yao Qi <yao@codesourcery.com>
5308
5309 * std-operator.def: Remove BINOP_IN.
5310 * breakpoint.c (watchpoint_exp_is_const): Update.
5311 * eval.c (evaluate_subexp_standard): Likewise.
5312 * expprint.c (dump_subexp_body_standard): Likewise.
5313
164224e9
ME
53142014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5315
5316 * microblaze-tdep.c (microblaze_register_names): Add
5317 the rshr and rslr register names.
5318 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5319 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5320 Use of tdesc_numbered_register. Use of
5321 microblaze_register_g_packet_guesses. Use of
5322 tdesc_use_registers. Use of set_gdbarch_register_type.
5323 (microblaze_register_g_packet_guesses): New.
5324 * microblaze-tdep.h (microblaze_reg_num): Add
5325 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5326 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5327 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5328 * features/microblaze-core.xml: New file.
5329 * features/microblaze-stack-protect.xml: New file.
5330 * features/microblaze-with-stack-protect.c: New file.
5331 * features/microblaze-with-stack-protect.xml: New file.
5332 * features/microblaze.xml: New file.
5333 * features/microblaze.c: New file.
5334 * features/Makefile (microblaze-with-stack-protect): Add
5335 microblaze-with-stack-protect microblaze and microblaze-expedite.
5336 * regformats/microblaze-with-stack-protect.dat: New file.
5337 * regformats/microblaze.dat: New file.
5338 * doc/gdb.texinfo (MicroBlaze Features): Added.
5339
e8b2341c
TT
53402014-07-18 Tom Tromey <tromey@redhat.com>
5341
5342 * exec.c (exec_ops): Now static.
5343 * exec.h (exec_ops): Don't declare.
5344
44e89118
TT
53452014-07-18 Tom Tromey <tromey@redhat.com>
5346
5347 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5348 to find_target_beneath.
5349 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5350 find_target_beneath.
5351 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5352
b0ed115f
TT
53532014-07-18 Tom Tromey <tromey@redhat.com>
5354
5355 PR gdb/17130:
5356 * utils.c (quit): Use target_supports_terminal_ours.
5357 * target.h (target_supports_terminal_ours): Declare.
5358 * target.c (target_supports_delete_record): Don't check
5359 to_delete_record against NULL.
5360 (target_supports_terminal_ours): New function.
5361
e75fdfca
TT
53622014-07-18 Tom Tromey <tromey@redhat.com>
5363
5364 PR gdb/17130:
5365 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5366 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5367 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5368 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5369 * windows-nat.c (windows_xfer_partial): Always delegate.
5370 * record-btrace.c (record_btrace_xfer_partial): Simplify
5371 delegation.
5372 (record_btrace_fetch_registers, record_btrace_store_registers)
5373 (record_btrace_prepare_to_store, record_btrace_resume)
5374 (record_btrace_wait, record_btrace_find_new_threads)
5375 (record_btrace_thread_alive): Likewise.
5376 * procfs.c (procfs_xfer_partial): Always delegate.
5377 * corelow.c (core_xfer_partial): Always delegate.
5378 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5379
83814951
TT
53802014-07-18 Tom Tromey <tromey@redhat.com>
5381
5382 * exec.c (exec_make_note_section): Move earlier.
5383
b8b8facf
DE
53842014-07-17 Doug Evans <dje@google.com>
5385
74b49205 5386 PR gdb/17170
b8b8facf
DE
5387 * maint.c (count_symtabs_and_blocks): Handle NULL
5388 current_program_space.
5389 (report_command_stats): Check global enabled flag in addition to
5390 recorded enabled flag.
5391 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5392
69ff6be5
PA
53932014-07-16 Pedro Alves <palves@redhat.com>
5394
5395 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5396
252db1b5
TT
53972014-07-16 Tom Tromey <tromey@redhat.com>
5398
5399 * target.h (struct target_ops) <to_delete_record>: Reformat
5400 comment.
5401
a432721e
TT
54022014-07-16 Tom Tromey <tromey@redhat.com>
5403
5404 * target-delegates.c: Rebuild.
5405
487d9753
PL
54062014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5407
5408 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5409 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5410 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5411 (avr_pointer_to_address): Likewise.
5412 (avr_address_class_type_flags): New function.
5413 (avr_address_class_type_flags_to_name): Likewise.
5414 (avr_address_class_name_to_type_flags): Likewise.
5415 (avr_gdbarch_init): Set address_class_type_flags,
5416 address_class_type_flags_to_name and
5417 address_class_name_to_type_flags.
5418
57745c90
PA
54192014-07-15 Pedro Alves <palves@redhat.com>
5420
5421 * linux-nat.c (kill_callback): Save errno and work with saved
5422 copy.
5423
2d40be18
SM
54242014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5425
5426 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5427
572f6555
EBM
54282014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5429
5430 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5431 breakpoint support correctly.
5432
cc1c52ad
PA
54332014-07-14 Pedro Alves <palves@redhat.com>
5434
5435 * utils.c (prompt_for_continue): Call target_terminal_ours.
5436
1e973570
PA
54372014-07-14 Pedro Alves <palves@redhat.com>
5438
5439 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5440 catch_errors. Don't re-enable stdin or notify observers where,
5441 and rethrow error.
5442 (fetch_inferior_event_wrapper): Delete.
5443
93d6eb10
PA
54442014-07-14 Pedro Alves <palves@redhat.com>
5445
5446 PR gdb/17072
5447 * top.c: Include "inf-loop.h".
5448 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5449 field.
5450 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5451 was async before.
5452 (gdb_readline_wrapper): Store whether the target is async, and
5453 make it sync.
5454
0017922d
PA
54552014-07-14 Pedro Alves <palves@redhat.com>
5456
5457 PR gdb/17072
5458 * top.c (gdb_readline_wrapper_line): Tweak comment.
5459 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5460 the input handler callback.
5461
94696ad3
PA
54622014-07-14 Pedro Alves <palves@redhat.com>
5463
5464 PR gdb/17072
5465 * main.c: Include event-top.h.
5466 (handle_command_errors): New function.
5467 (catch_command_errors, catch_command_errors_const): Use it.
5468
9d1e69a2
PA
54692014-07-14 Pedro Alves <palves@redhat.com>
5470
5471 * exceptions.c (catch_command_errors, catch_command_errors_const):
5472 Moved to main.c.
5473 * exceptions.h (catch_command_errors_ftype)
5474 (catch_command_errors_const_ftype): Moved to main.c.
5475 (catch_command_errors, catch_command_errors_const): Delete
5476 declarations.
5477 * main.c (catch_command_errors_ftype)
5478 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5479 (catch_command_errors, catch_command_errors_const)): Moved here
5480 from exceptions.c and make static.
5481
feefc97b
PA
54822014-07-14 Pedro Alves <palves@redhat.com>
5483
5484 * exceptions.c (print_any_exception): Delete.
5485 (catch_exceptions_with_msg): Use exception_print instead of
5486 print_any_exception.
5487 (catch_errors): Use exception_fprintf instead of
5488 print_any_exception.
5489 (catch_command_errors, catch_command_errors_const): Use
5490 exception_print instead of print_any_exception.
5491
c933f875
PA
54922014-07-14 Pedro Alves <palves@redhat.com>
5493
5494 * infcall.c (run_inferior_call): Set 'sync_execution' while
5495 running the inferior call.
5496
feb6f816
PA
54972014-07-14 Pedro Alves <palves@redhat.com>
5498
5499 * value.c (value_contents_equal): Delete function.
5500 * value.h (value_contents_equal): Delete declaration.
5501
d98b7a16
TT
55022014-07-14 Tom Tromey <tromey@redhat.com>
5503
5504 PR exp/17106:
5505 * gdbtypes.c (is_dynamic_type_internal): New function, from
5506 is_dynamic_type.
5507 (is_dynamic_type): Rewrite.
5508 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5509 (resolve_dynamic_struct): Likewise.
5510 (resolve_dynamic_type_internal): New function, from
5511 resolve_dynamic_type.
5512 (resolve_dynamic_type): Rewrite.
5513
548740d6
TT
55142014-07-14 Tom Tromey <tromey@redhat.com>
5515
5516 * target.c (target_require_runnable): Also check record_stratum.
5517 Update comment.
5518
808f7ab1
YQ
55192014-07-11 Yao Qi <yao@codesourcery.com>
5520
5521 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5522 thumb_instruction_restores_sp return true.
5523
540314bd
YQ
55242014-07-11 Yao Qi <yao@codesourcery.com>
5525
5526 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5527 (thumb_in_function_epilogue_p): Call
5528 thumb_instruction_restores_sp.
5529
1db01f22
YQ
55302014-07-11 Yao Qi <yao@codesourcery.com>
5531
5532 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5533 'add sp, #imm'.
5534 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5535
3116063b
GB
55362014-07-11 Gary Benson <gbenson@redhat.com>
5537
5538 * amd64-linux-nat.c (gdbcore.h): Remove include.
5539 (regset.h): Likewise.
5540 (nat/linux-btrace.h): Likewise.
5541 (btrace.h): Likewise.
5542 (gdb_assert.h): Likewise.
5543 (string.h): Likewise.
5544 (sys/uio.h): Likewise.
5545 (sys/debugreg.h): Likewise.
5546 (sys/syscall.h): Likewise.
5547 (sys/procfs.h): Likewise.
5548 (sys/user.h): Likewise.
5549 (asm/ptrace.h): Likewise.
5550 (i386-nat.h): Likewise.
5551 * i386-linux-nat.c (i386-nat.h): Likewise.
5552 (regset.h): Likewise.
5553 (target.h): Likewise.
5554 (linux-nat.h): Likewise.
5555 (nat/linux-btrace.h): Likewise.
5556 (btrace.h): Likewise.
5557 (gdb_assert.h): Likewise.
5558 (string.h): Likewise.
5559 (sys/uio.h): Likewise.
5560 (sys/user.h): Likewise.
5561 (sys/procfs.h): Likewise.
5562 (sys/reg.h): Likewise.
5563 (sys/debugreg.h): Likewise.
5564 (ORIG_EAX): Remove definition.
5565
040baaf6
GB
55662014-07-11 Gary Benson <gbenson@redhat.com>
5567
5568 * i386-linux-nat.h: New file.
5569 * x86-linux-nat.h: Likewise.
5570 * x86-linux-nat.c: Likewise.
5571 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5572 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5573 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5574 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5575 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5576 (PTRACE_SETREGSET): Likewise.
5577 (arch_lwp_info): Now in x86-linux-nat.c.
5578 (have_ptrace_getregset): Now in x86-linux-nat.h.
5579 (x86_linux_dr_get): Now in x86-linux-nat.c.
5580 (x86_linux_dr_set): Likewise.
5581 (x86_linux_dr_get_addr): Likewise.
5582 (x86_linux_dr_get_control): Likewise.
5583 (x86_linux_dr_get_status): Likewise.
5584 (update_debug_registers_callback): Likewise.
5585 (x86_linux_dr_set_control): Likewise.
5586 (x86_linux_dr_set_addr): Likewise.
5587 (x86_linux_prepare_to_resume): Likewise.
5588 (x86_linux_new_thread): Likewise.
5589 (x86_linux_new_fork): Likewise.
5590 (x86_linux_get_thread_area): Likewise.
5591 (super_post_startup_inferior): Likewise.
5592 (x86_linux_child_post_startup_inferior): Likewise.
5593 (AMD64_LINUX_USER64_CS): Likewise.
5594 (AMD64_LINUX_X32_DS): Likewise.
5595 (x86_linux_read_description): Likewise.
5596 (x86_linux_enable_btrace): Likewise.
5597 (x86_linux_disable_btrace): Likewise.
5598 (x86_linux_teardown_btrace): Likewise.
5599 (x86_linux_read_btrace): Likewise.
5600 (x86_linux_create_target): Likewise.
5601 (x86_linux_add_target): Likewise.
5602 * i386-linux-nat.c (x86-linux-nat.h): New include.
5603 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5604 (PTRACE_SETREGSET): Likewise.
5605 (arch_lwp_info): Now in x86-linux-nat.c.
5606 (have_ptrace_getregset): Now in x86-linux-nat.h.
5607 (x86_linux_dr_get): Now in x86-linux-nat.c.
5608 (x86_linux_dr_set): Likewise.
5609 (x86_linux_dr_get_addr): Likewise.
5610 (x86_linux_dr_get_control): Likewise.
5611 (x86_linux_dr_get_status): Likewise.
5612 (update_debug_registers_callback): Likewise.
5613 (x86_linux_dr_set_control): Likewise.
5614 (x86_linux_dr_set_addr): Likewise.
5615 (x86_linux_prepare_to_resume): Likewise.
5616 (x86_linux_new_thread): Likewise.
5617 (x86_linux_new_fork): Likewise.
5618 (x86_linux_get_thread_area): Likewise.
5619 (super_post_startup_inferior): Likewise.
5620 (x86_linux_child_post_startup_inferior): Likewise.
5621 (AMD64_LINUX_USER64_CS): Likewise.
5622 (AMD64_LINUX_X32_DS): Likewise.
5623 (x86_linux_read_description): Likewise.
5624 (x86_linux_enable_btrace): Likewise.
5625 (x86_linux_disable_btrace): Likewise.
5626 (x86_linux_teardown_btrace): Likewise.
5627 (x86_linux_read_btrace): Likewise.
5628 (x86_linux_create_target): Likewise.
5629 (x86_linux_add_target): Likewise.
5630
1aa7e42c
GB
56312014-07-11 Gary Benson <gbenson@redhat.com>
5632
5633 * amd64-linux-nat.c: Comment and whitespace changes.
5634 * i386-linux-nat.c: Comment and whitespace changes.
5635
c1e246a0
GB
56362014-07-11 Gary Benson <gbenson@redhat.com>
5637
5638 * amd64-linux-nat.c (x86_linux_create_target): New function.
5639 (x86_linux_add_target): Likewise.
5640 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5641 * i386-linux-nat.c (x86_linux_create_target): New function.
5642 (x86_linux_add_target): Likewise.
5643 (_initialize_i386_linux_nat): Delegate to the above new functions.
5644
8c420b8d
GB
56452014-07-11 Gary Benson <gbenson@redhat.com>
5646
5647 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5648 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5649 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5650 (ps_get_thread_area): Delegate to the above.
5651
cb1da100
GB
56522014-07-11 Gary Benson <gbenson@redhat.com>
5653
5654 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5655 x86_linux_read_description. All uses updated. amd64-specific
5656 code conditionalized. Conditionalized i386-specific code added.
5657 Redundant cast removed.
5658 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5659 x86_linux_read_description. All uses updated. i386-specific
5660 code conditionalized. Conditionalized amd64-specific code added.
5661 One sizeof replaced with the actual type it is describing.
5662
2acf3cd0
GB
56632014-07-11 Gary Benson <gbenson@redhat.com>
5664
5665 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5666 x86_linux_dr_get. All uses updated.
5667 (amd64_linux_dr_set): Renamed to
5668 x86_linux_dr_set. All uses updated.
5669 (amd64_linux_dr_get_addr): Renamed to
5670 x86_linux_dr_get_addr. All uses updated.
5671 (amd64_linux_dr_get_control): Renamed to
5672 x86_linux_dr_get_control. All uses updated.
5673 (amd64_linux_dr_get_status): Renamed to
5674 x86_linux_dr_get_status. All uses updated.
5675 (amd64_linux_dr_set_control): Renamed to
5676 x86_linux_dr_set_control. All uses updated.
5677 (amd64_linux_dr_set_addr): Renamed to
5678 x86_linux_dr_set_addr. All uses updated.
5679 (amd64_linux_prepare_to_resume): Renamed to
5680 x86_linux_prepare_to_resume. All uses updated.
5681 (amd64_linux_new_thread): Renamed to
5682 x86_linux_new_thread. All uses updated.
5683 (amd64_linux_new_fork): Renamed to
5684 x86_linux_new_fork. All uses updated.
5685 (amd64_linux_child_post_startup_inferior): Renamed to
5686 x86_linux_child_post_startup_inferior. All uses updated.
5687 (amd64_linux_enable_btrace): Renamed to
5688 x86_linux_enable_btrace. All uses updated.
5689 (amd64_linux_disable_btrace): Renamed to
5690 x86_linux_disable_btrace. All uses updated.
5691 (amd64_linux_teardown_btrace): Renamed to
5692 x86_linux_teardown_btrace. All uses updated.
5693 (amd64_linux_read_btrace): Renamed to
5694 x86_linux_read_btrace. All uses updated.
5695 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5696 x86_linux_dr_get. All uses updated.
5697 (i386_linux_dr_set): Renamed to
5698 x86_linux_dr_set. All uses updated.
5699 (i386_linux_dr_get_addr): Renamed to
5700 x86_linux_dr_get_addr. All uses updated.
5701 (i386_linux_dr_get_control): Renamed to
5702 x86_linux_dr_get_control. All uses updated.
5703 (i386_linux_dr_get_status): Renamed to
5704 x86_linux_dr_get_status. All uses updated.
5705 (i386_linux_dr_set_control): Renamed to
5706 x86_linux_dr_set_control. All uses updated.
5707 (i386_linux_dr_set_addr): Renamed to
5708 x86_linux_dr_set_addr. All uses updated.
5709 (i386_linux_prepare_to_resume): Renamed to
5710 x86_linux_prepare_to_resume. All uses updated.
5711 (i386_linux_new_thread): Renamed to
5712 x86_linux_new_thread. All uses updated.
5713 (i386_linux_new_fork): Renamed to
5714 x86_linux_new_fork. All uses updated.
5715 (i386_linux_child_post_startup_inferior): Renamed to
5716 x86_linux_child_post_startup_inferior. All uses updated.
5717 (i386_linux_enable_btrace): Renamed to
5718 x86_linux_enable_btrace. All uses updated.
5719 (i386_linux_disable_btrace): Renamed to
5720 x86_linux_disable_btrace. All uses updated.
5721 (i386_linux_teardown_btrace): Renamed to
5722 x86_linux_teardown_btrace. All uses updated.
5723 (i386_linux_read_btrace): Renamed to
5724 x86_linux_read_btrace. All uses updated.
5725
b9c1d481
AS
57262014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5727
5728 * remote.c (extended_remote_post_attach): New function.
5729 (init_extended_remote_ops): Install it as to_post_attach method.
5730
7180e04a
PA
57312014-07-09 Pedro Alves <palves@redhat.com>
5732
5733 * infcmd.c (attach_command_post_wait): Don't call
5734 target_terminal_inferior here.
5735 (attach_command): Call it here instead.
5736
9a9a7608
AB
57372014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5738
5739 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5740 field.
5741 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5742 from varobj.c, with additional checks.
5743 (c_varobj_ops): Fill in is_path_expr_parent field.
5744 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5745 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5746 field.
5747 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5748 ops method.
5749 (varobj_default_is_path_expr_parent): New function.
5750 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5751 (varobj_default_is_path_expr_parent): Declare new function.
5752
1f267ae3
MM
57532014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5754
5755 * infcmd.c (finish_backward): Turn internal error into normal error.
5756
b2ee242b
PA
57572014-07-07 Pedro Alves <palves@redhat.com>
5758
8a869bca 5759 PR gdb/17096
b2ee242b
PA
5760 * remote.c (async_handle_remote_sigint)
5761 (async_handle_remote_sigint_twice): Call
5762 gdb_call_async_signal_handler instead of
5763 mark_async_signal_handler.
5764
38e229b2
TT
57652014-07-07 Tom Tromey <tromey@redhat.com>
5766
5767 * target-delegates.c: Rebuild.
5768 * target.c (target_info_record): Remove.
5769 * record.c (info_record_command): Unconditionally call
5770 to_info_record.
5771 * target.h (struct target_ops) <to_info_record>: Use
5772 TARGET_DEFAULT_IGNORE.
5773 (target_info_record): Remove.
5774
f0f9ff95
TT
57752014-07-07 Tom Tromey <tromey@redhat.com>
5776
5777 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5778 TARGET_DEFAULT_NORETURN.
5779 * target.c (generic_tls_error): New function.
5780 (target_translate_tls_address): Don't search target stack.
5781 * target-delegates.c: Rebuild.
5782 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5783 stack.
5784 * linux-thread-db.c (thread_db_get_thread_local_address):
5785 Unconditionally call beneath target.
5786
4a5be5ee
MK
57872014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5788
5789 * cli/cli-logging.c (pop_output_files): Assign targerr to
5790 gdb_stdtargerr.
5791
92c3b204
AB
57922014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * MAINTAINERS (Write After Approval): Update my email address.
5795
9b11e3a7
GB
57962014-07-02 Gary Benson <gbenson@redhat.com>
5797
5798 * proc-service.c (ps_xfer_memory): Update comment.
5799 (ps_pstop): Remove unused function.
5800 (ps_pcontinue): Likewise.
5801 (ps_lstop): Likewise.
5802 (ps_lcontinue): Likewise.
5803 (ps_lgetxregsize): Likewise.
5804 (ps_lgetxregs): Likewise.
5805 (ps_lsetxregs): Likewise.
5806 (ps_plog): Likewise.
5807 (ps_ptread): Likewise.
5808 (ps_ptwrite): Likewise.
5809
cf363f18
MW
58102014-07-01 Mark Wielaard <mjw@redhat.com>
5811
5812 * dwarf2read.c (add_array_cv_type): New function.
5813 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5814 (read_tag_volatile_type): Likewise.
5815
82ae6c8d
TT
58162014-07-01 Tom Tromey <tromey@redhat.com>
5817
5818 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5819 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5820 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5821 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5822 * command.h (cmd_cfunc_ftype): Move earlier.
5823 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5824 (add_com, add_info): Use cmd_cfunc_ftype.
5825
96142726
TT
58262014-06-30 Tom Tromey <tromey@redhat.com>
5827
5828 * symtab.c (operator_chars): Make parameters and return type
5829 const.
5830 (file_matches): Make "files" const.
5831 (struct search_symbols_data) <files>: Now const.
5832 (search_symbols): Make "regexp" and "files" parameters const.
5833 Update.
5834 (symtab_symbol_info): Remove cast.
5835 (rbreak_command): Update.
5836 * symtab.h (search_symbols): Update.
5837
b67a2c6f
YQ
58382014-06-27 Yao Qi <yao@codesourcery.com>
5839
5840 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5841 Change parameter type to 'struct thread_info *'. Caller
5842 updated.
5843 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5844 Update declaration.
5845 * dummy-frame.c (struct dummy_frame_id): New.
5846 (dummy_frame_id_eq): New function.
5847 (struct dummy_frame) <id>: Change its type to 'struct
5848 dummy_frame_id'.
5849 (dummy_frame_push): Add parameter ptid and save it in
5850 dummy_frame_id.
5851 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5852 inferior_ptid.
5853 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5854 to inferior_ptid.
5855 (lookup_dummy_frame): Change parameter type to 'struct
5856 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5857 instead of frame_id_eq.
5858 (dummy_frame_pop): Add parameter ptid. Callers updated.
5859 Update comments. Compose dummy_frame_id and pass it to
5860 lookup_dummy_frame.
5861 (dummy_frame_discard): Add parameter ptid.
5862 (dummy_frame_sniffer): Compose dummy_frame_id and call
5863 dummy_frame_id_eq instead of frame_id_eq.
5864 (fprint_dummy_frames): Print ptid.
5865 * dummy-frame.h: Remove comments.
5866 (dummy_frame_push): Add ptid in declaration.
5867 (dummy_frame_pop, dummy_frame_discard): Likewise.
5868
5b10184c
TT
58692014-06-26 Tom Tromey <tromey@redhat.com>
5870
5871 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5872 * command.h (error_no_arg): Update.
5873
06900326
TT
58742014-06-26 Tom Tromey <tromey@redhat.com>
5875
5876 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5877 (do_show_command): Make "arg" const.
5878 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5879
c2bcbb1d
TT
58802014-06-26 Tom Tromey <tromey@redhat.com>
5881
5882 * record-full.c (record_full_get_bookmark): Make "args" const.
5883 (record_full_goto_bookmark): Make "raw_bookmark" const.
5884 * record.c (record_goto): New function.
5885 (cmd_record_goto): Use it. Now static.
5886 * record.h (record_goto): Declare.
5887 (cmd_record_goto): Remove declaration.
5888 * target-delegates.c: Rebuild.
5889 * target.h (struct target_ops) <to_get_bookmark,
5890 to_goto_bookmark>: Make parameter const.
5891
9cbe5fff
TT
58922014-06-26 Tom Tromey <tromey@redhat.com>
5893
5894 * defs.h (generic_load): Update.
5895 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5896 * monitor.c (monitor_load): Make "args" const.
5897 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5898 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5899 const.
5900 (mips_load): Make "file" const.
5901 * remote-sim.c (gdbsim_load): Make "args" const.
5902 * remote.c (remote_load): Make "name" const.
5903 * symfile.c (generic_load): Make "args" const.
5904 * target-delegates.c: Rebuild.
5905 * target.c (target_load): Make "arg" const.
5906 (debug_to_load): Make "args" const.
5907 * target.h (struct target_ops) <to_load>: Make parameter const.
5908 (target_load): Update.
5909
34a68019
TT
59102014-06-26 Tom Tromey <tromey@redhat.com>
5911
5912 PR symtab/16902:
5913 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5914 (dwarf2_physname, read_partial_die)
5915 (guess_partial_die_structure_name, fixup_partial_die)
5916 (guess_full_die_structure_name, anonymous_struct_prefix)
5917 (dwarf2_name): Use per-BFD obstack.
5918
efc889c1
YQ
59192014-06-26 Yao Qi <yao@codesourcery.com>
5920
5921 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5922 dummyframe and this_id into inner block below.
5923
4395285e
YQ
59242014-06-26 Yao Qi <yao@codesourcery.com>
5925
5926 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5927 with "signal_pass[0]" in the initialization of signal_pass.
5928
aef92902
MM
59292014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5930
5931 * record-btrace.c (record_btrace_generating_corefile)
5932 (record_btrace_prepare_to_generate_core)
5933 (record_btrace_done_generating_core): New.
5934 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5935 (record_btrace_store_registers, record_btrace_prepare_to_store):
5936 Forward request when generating a core file.
5937 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5938 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5939 to_done_generating_core.
5940
5fff78c4
MM
59412014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5942
5943 * target.h (target_ops) <to_prepare_to_generate_core>
5944 <to_done_generating_core>: New.
5945 (target_prepare_to_generate_core, target_done_generating_core): New.
5946 * target.c (target_prepare_to_generate_core)
5947 (target_done_generating_core): New.
5948 * target-delegates.c: Regenerate.
5949 * gcore.c: (write_gcore_file): Rename to ...
5950 (write_gcore_file_1): ...this.
5951 (write_gcore_file): Call target_prepare_to_generate_core
5952 and target_done_generating_core.
5953
1d1f1ccb
MM
59542014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5955
5956 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5957 * gcore.c (write_gcore_file): Free memory returned from
5958 make_corefile_notes.
5959 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5960 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5961
3343ef86
YQ
59622014-06-24 Yao Qi <yao@codesourcery.com>
5963
5964 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5965 (arm_linux_init_abi): Set skip_trampoline_code with
5966 gdbarch_skip_trampoline_code instead of
5967 find_solib_trampoline_target.
5968
18d18ac8
YQ
59692014-06-24 Yao Qi <yao@codesourcery.com>
5970
5971 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5972 arm_skip_bx_reg returns non-zero.
5973
80d8d390
YQ
59742014-06-24 Yao Qi <yao@codesourcery.com>
5975
5976 * arm-tdep.c (arm_skip_bx_reg): New function.
5977 (arm_skip_stub): Call arm_skip_bx_reg.
5978
6a18a01c
DB
59792014-06-23 Don Breazeal <donb@codesourcery.com>
5980
5981 * MAINTAINERS: Add myself as write-after-approval maintainer.
5982
8e9db26e
PA
59832014-06-23 Pedro Alves <palves@redhat.com>
5984
5985 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5986 DR_CONTROL before setting DR0..DR3.
5987 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5988 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5989 bits of DR_CONTROL related to the debug register slot being
5990 disabled. If all slots are vacant, clear local slowdown as well,
5991 and assert DR_CONTROL is 0.
5992
70afc5b7
SC
59932014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5994
5995 * python/lib/gdb/command/xmethods.py
5996 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5997 current progspace only if the string "progspace" matches LOCUS_RE.
5998
840ed64d
JK
59992014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 Fix --with-system-readline with readline-6.3 patch 5.
6002 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6003 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6004 types.
6005
26f2dc30
TT
60062014-06-20 Tom Tromey <tromey@redhat.com>
6007
6008 * dwarf2read.c (dw2_get_real_path): Use correct type in
6009 OBSTACK_CALLOC.
6010 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6011
125f8a3d
GB
60122014-06-20 Gary Benson <gbenson@redhat.com>
6013
6014 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6015 * common/glibc_thread_db.h: Likewise.
6016 * common/i386-cpuid.h: Likewise.
6017 * common/i386-gcc-cpuid.h: Likewise.
6018 * common/linux-btrace.h: Likewise.
6019 * common/linux-osdata.h: Likewise.
6020 * common/linux-procfs.h: Likewise.
6021 * common/linux-ptrace.h: Likewise.
6022 * common/mips-linux-watch.h: Likewise.
6023 * common/linux-btrace.c: Moved to nat.
6024 * common/linux-osdata.c: Likewise.
6025 * common/linux-procfs.c: Likewise.
6026 * common/linux-ptrace.c: Likewise.
6027 * common/mips-linux-watch.c: Likewise.
6028 * nat/gdb_thread_db.h: Moved from common.
6029 * nat/glibc_thread_db.h: Likewise.
6030 * nat/i386-cpuid.h: Likewise.
6031 * nat/i386-gcc-cpuid.h: Likewise.
6032 * nat/linux-btrace.c: Likewise.
6033 * nat/linux-btrace.h: Likewise.
6034 * nat/linux-osdata.c: Likewise.
6035 * nat/linux-osdata.h: Likewise.
6036 * nat/linux-procfs.c: Likewise.
6037 * nat/linux-procfs.h: Likewise.
6038 * nat/linux-ptrace.c: Likewise.
6039 * nat/linux-ptrace.h: Likewise.
6040 * nat/mips-linux-watch.c: Likewise.
6041 * nat/mips-linux-watch.h: Likewise.
6042 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6043 (object file files): Reordered.
6044 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6045 of glibc_thread_db.h.
6046
42995dbd
GB
60472014-06-20 Gary Benson <gbenson@redhat.com>
6048
6049 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6050 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6051 (i386_dr_low): Likewise.
6052 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6053 (i386_dr_low_set_addr): Likewise.
6054 (i386_dr_low_get_addr): Likewise.
6055 (i386_dr_low_can_set_control): Likewise.
6056 (i386_dr_low_set_control): Likewise.
6057 (i386_dr_low_get_control): Likewise.
6058 (i386_dr_low_get_status): Likewise.
6059 (i386_get_debug_register_length): Likewise.
6060 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6061 (i386_dr_low): Likewise.
6062 * nat/i386-dregs.c (i386-low.h): Remove include.
6063 (i386-nat.h): Likewise.
6064 (nat/i386-dregs.h): New include.
6065 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6066 (i386_dr_low_set_addr): Likewise.
6067 (i386_dr_low_get_addr): Likewise.
6068 (i386_dr_low_can_set_control): Likewise.
6069 (i386_dr_low_set_control): Likewise.
6070 (i386_dr_low_get_control): Likewise.
6071 (i386_dr_low_get_status): Likewise.
6072 (i386_get_debug_register_length): Likewise.
6073 (debug_hw_points): Likewise.
6074
3ed9baed
IB
60752014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6076
6077 * Makefile.in (SFILES): Add d-exp.y.
6078 (YYFILES): Add d-exp.c.
6079 (YYOBJ): Add d-exp.o.
6080 (local-maintainer-clean): Delete d-exp.c.
6081 * d-exp.y: New file.
6082 * d-lang.h (d_parse): New declaration.
6083 (d_error): New declaration.
6084 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6085 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6086 PREC_ORDER operators.
6087 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6088
78c164b0
YQ
60892014-06-19 Yao Qi <yao@codesourcery.com>
6090
6091 * gdbthread.h (any_running): Remove the declaration.
6092 * thread.c (any_running): Remove.
6093
f6e29b6e
YQ
60942014-06-19 Yao Qi <yao@codesourcery.com>
6095
6096 * gdbthread.h (struct thread_info) <state>: Change its type to
6097 'enum thread_state'. Update comments.
6098
034f788c
PA
60992014-06-19 Pedro Alves <palves@redhat.com>
6100
6101 * gdbthread.h (ALL_THREADS): Delete.
6102 (ALL_NON_EXITED_THREADS): New macro.
6103 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6104 instead of ALL_THREADS.
6105 * infrun.c (find_thread_needs_step_over)
6106 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6107 instead of ALL_THREADS.
6108 * record-btrace.c (record_btrace_open)
6109 (record_btrace_stop_recording, record_btrace_close)
6110 (record_btrace_is_replaying, record_btrace_resume)
6111 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6112 * remote.c (append_pending_thread_resumptions): Likewise.
6113 * thread.c (thread_apply_all_command): Likewise.
6114
46e33252
GB
61152014-06-19 Gary Benson <gbenson@redhat.com>
6116
6117 * i386-nat.c (i386_stopped_by_watchpoint):
6118 Use i386_dr_stopped_by_watchpoint.
6119 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6120 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6121
3a8ee006
GB
61222014-06-19 Gary Benson <gbenson@redhat.com>
6123
6124 * nat/i386-dregs.c: New file.
6125 * Makefile.in (i386-dregs.o): New rule.
6126 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6127 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6128 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6129 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6130 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6131 * config/i386/go32.mh (NATDEPFILES): Likewise.
6132 * config/i386/linux.mh (NATDEPFILES): Likewise.
6133 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6134 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6135 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6136 * i386-nat.h (debug_hw_points): New declaration.
6137 * i386-nat.c (breakpoint.h): Remove include.
6138 (command.h): Likewise.
6139 (target.h): Likewise.
6140 (gdb_assert.h): Likewise.
6141 (debug_hw_points): Made nonstatic.
6142 (debug_printf): Now in i386-dregs.c.
6143 (TARGET_HAS_DR_LEN_8): Likewise.
6144 (DR_CONTROL_SHIFT): Likewise.
6145 (DR_CONTROL_SIZE): Likewise.
6146 (DR_RW_EXECUTE): Likewise.
6147 (DR_RW_WRITE): Likewise.
6148 (DR_RW_READ): Likewise.
6149 (DR_RW_IORW): Likewise.
6150 (DR_LEN_1): Likewise.
6151 (DR_LEN_2): Likewise.
6152 (DR_LEN_4): Likewise.
6153 (DR_LEN_8): Likewise.
6154 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6155 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6156 (DR_ENABLE_SIZE): Likewise.
6157 (DR_LOCAL_SLOWDOWN): Likewise.
6158 (DR_GLOBAL_SLOWDOWN): Likewise.
6159 (DR_CONTROL_RESERVED): Likewise.
6160 (I386_DR_CONTROL_MASK): Likewise.
6161 (I386_DR_VACANT): Likewise.
6162 (I386_DR_LOCAL_ENABLE): Likewise.
6163 (I386_DR_GLOBAL_ENABLE): Likewise.
6164 (I386_DR_DISABLE): Likewise.
6165 (I386_DR_SET_RW_LEN): Likewise.
6166 (I386_DR_GET_RW_LEN): Likewise.
6167 (I386_DR_WATCH_HIT): Likewise.
6168 (i386_wp_op_t): Likewise.
6169 (i386_show_dr): Likewise.
6170 (i386_length_and_rw_bits): Likewise.
6171 (i386_insert_aligned_watchpoint): Likewise.
6172 (i386_remove_aligned_watchpoint): Likewise.
6173 (i386_handle_nonaligned_watchpoint): Likewise.
6174 (i386_update_inferior_debug_regs): Likewise.
6175 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6176 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6177 (i386_region_ok_for_watchpoint):
6178 Use i386_dr_region_ok_for_watchpoint.
6179 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6180
322a8e06
GB
61812014-06-19 Gary Benson <gbenson@redhat.com>
6182
6183 * i386-nat.c (i386_insert_hw_breakpoint): Use
6184 i386_insert_watchpoint.
6185 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6186
8f26655c
GB
61872014-06-19 Gary Benson <gbenson@redhat.com>
6188
6189 * i386-nat.c (i386_dr_show): Renamed to
6190 i386_show_dr and made static. All uses updated.
6191 (i386_dr_length_and_rw_bits): Renamed to
6192 i386_length_and_rw_bits and made static.
6193 All uses updated.
6194 (i386_dr_insert_aligned_watchpoint): Renamed to
6195 i386_insert_aligned_watchpoint and made static.
6196 All uses updated.
6197 (i386_dr_remove_aligned_watchpoint): Renamed to
6198 i386_remove_aligned_watchpoint and made static.
6199 All uses updated.
6200 (i386_dr_update_inferior_debug_regs): Renamed to
6201 i386_update_inferior_debug_regs and made static.
6202 All uses updated.
6203 * nat/i386-dregs.h (i386_dr_show): Removed.
6204 (i386_dr_length_and_rw_bits): Likewise.
6205 (i386_dr_insert_aligned_watchpoint): Likewise.
6206 (i386_dr_remove_aligned_watchpoint): Likewise.
6207 (i386_dr_update_inferior_debug_regs): Likewise.
6208
992c7d70
GB
62092014-06-19 Gary Benson <gbenson@redhat.com>
6210
6211 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6212 * configure: Regenerate.
6213 * config.in: Likewise.
6214 * main.c (signal.h): New include.
6215 (setup_alternate_signal_stack): New function.
6216 (captured_main): Call the above.
6217 * cp-support.c (signal.h): New include.
6218 (catch_demangler_crashes): New flag.
6219 (SIGJMP_BUF): New define.
6220 (SIGSETJMP): Likewise.
6221 (SIGLONGJMP): Likewise.
6222 (gdb_demangle_jmp_buf): New static global.
6223 (gdb_demangle_attempt_core_dump): Likewise.
6224 (gdb_demangle_signal_handler): New function.
6225 (gdb_demangle): If catch_demangler_crashes is set, install the
6226 above signal handler before calling bfd_demangle, and restore
6227 the original signal handler afterwards. Display the offending
6228 symbol and call demangler_warning the first time a segmentation
6229 fault is caught.
6230 (_initialize_cp_support): New maint set/show command.
6231
eae7090b
GB
62322014-06-19 Gary Benson <gbenson@redhat.com>
6233
6234 * utils.h (resource_limit_kind): New enum.
6235 (can_dump_core): New declaration.
6236 (warn_cant_dump_core): Likewise.
6237 (dump_core): Likewise.
6238 * utils.c (dump_core): Made nonstatic. Added new
6239 parameter "limit_kind".
6240 (can_dump_core): Made nonstatic. Moved printing code to...
6241 (warn_cant_dump_core): New function.
6242 (can_dump_core_warn): Likewise.
6243 (internal_vproblem): Replace calls to can_dump_core with
6244 calls to can_dump_core_warn. Supply new argument to each.
6245
57fcfb1b
GB
62462014-06-19 Gary Benson <gbenson@redhat.com>
6247
6248 * utils.h (demangler_vwarning): New declaration.
6249 (demangler_warning): Likewise.
6250 * utils.c (struct internal_problem)
6251 <user_settable_should_quit>: New field.
6252 <user_settable_should_dump_core>: Likewise
6253 (internal_error_problem): Add values for above new fields.
6254 (internal_warning_problem): Likewise.
6255 (demangler_warning_problem): New static global.
6256 (demangler_vwarning): New function.
6257 (demangler_warning): Likewise.
6258 (add_internal_problem_command): Selectively add commands.
6259 (_initialize_utils): New internal problem command.
6260 * maint.c (maintenance_demangler_warning): New function.
6261 (_initialize_maint_cmds): New command.
6262
17a40b44
TT
62632014-06-18 Tom Tromey <tromey@redhat.com>
6264
6265 * f-valprint.c (info_common_command_for_block): Update.
6266 * symtab.h (struct general_symbol_info) <common_block>: Now
6267 const.
6268
346d1dfe
TT
62692014-06-18 Tom Tromey <tromey@redhat.com>
6270
6271 * symtab.h (struct symtab) <blockvector>: Now const.
6272 * ada-lang.c (ada_add_global_exceptions): Update.
6273 * buildsym.c (augment_type_symtab): Update.
6274 * dwarf2read.c (dw2_lookup_symbol): Update.
6275 * jit.c (finalize_symtab): Update.
6276 * jv-lang.c (add_class_symtab_symbol): Update.
6277 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6278 Update.
6279 * objfiles.c (objfile_relocate1): Update.
6280 * psymtab.c (lookup_symbol_aux_psymtabs)
6281 (maintenance_check_psymtabs): Update.
6282 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6283 Update.
6284 * spu-tdep.c (spu_catch_start): Update.
6285 * symmisc.c (dump_symtab_1): Update.
6286 * symtab.c (lookup_global_symbol_from_objfile)
6287 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6288 (basic_lookup_transparent_type_quick)
6289 (basic_lookup_transparent_type, find_pc_sect_symtab)
6290 (find_pc_sect_line, search_symbols): Update.
6291 * block.c (find_block_in_blockvector): Make "bl" const.
6292 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6293 const.
6294 (blockvector_contains_pc): Make "bv" const.
6295 (block_for_pc_sect): Update.
6296 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6297 (blockvector_contains_pc): Update.
6298 * breakpoint.c (resolve_sal_pc): Update.
6299 * inline-frame.c (block_starting_point_at): Update.
6300
1834676b
TT
63012014-06-18 Tom Tromey <tromey@redhat.com>
6302
6303 * completer.c (complete_line): Make "line_buffer" const.
6304 * completer.h (complete_line): Update.
6305
ac1a991b
TT
63062014-06-18 Tom Tromey <tromey@redhat.com>
6307
6308 * symtab.c (add_macro_name): Remove unneeded cast.
6309
5bc98e52
TT
63102014-06-18 Tom Tromey <tromey@redhat.com>
6311
6312 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6313 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6314
8236def8
TT
63152014-06-18 Tom Tromey <tromey@redhat.com>
6316
6317 * probe.c (info_probes_for_ops): Make "arg" const.
6318 * probe.h (info_probes_for_ops): Update.
6319
3977b71f
TT
63202014-06-18 Tom Tromey <tromey@redhat.com>
6321
6322 * varobj.c (varobj_create): Update.
6323 * valops.c (value_of_this): Update.
6324 * tracepoint.c (add_local_symbols, scope_info): Update.
6325 * symtab.h (struct general_symbol_info) <block>: Now const.
6326 * symtab.c (skip_prologue_sal)
6327 (default_make_symbol_completion_list_break_on)
6328 (skip_prologue_using_sal): Update.
6329 * stack.h (iterate_over_block_locals)
6330 (iterate_over_block_local_vars): Update.
6331 * stack.c (print_frame_args): Update.
6332 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6333 parameter const.
6334 (get_selected_block): Make return type const.
6335 * python/py-frame.c (frapy_block): Update.
6336 * python/py-block.c (gdbpy_block_for_pc): Update.
6337 * p-exp.y (%union) <bval>: Now const.
6338 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6339 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6340 * m2-exp.y (%union) <bval>: Now const.
6341 * linespec.c (get_current_search_block): Make return type const.
6342 (create_sals_line_offset, find_label_symbols): Update.
6343 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6344 Update.
6345 (block_starting_point_at): Make "block" const.
6346 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6347 (check_exception_resume): Update.
6348 * guile/scm-frame.c (gdbscm_frame_block): Update.
6349 * guile/scm-block.c (gdbscm_lookup_block): Update.
6350 * frame.h (get_frame_block): Update.
6351 (get_selected_block): Make return type const.
6352 * frame.c (frame_id_inner): Update.
6353 * f-valprint.c (info_common_command_for_block)
6354 (info_common_command): Update.
6355 * dwarf2loc.c (dwarf2_find_location_expression)
6356 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6357 (locexpr_describe_location_piece): Update.
6358 * c-exp.y (%union) <bval>: Now const.
6359 * breakpoint.c (resolve_sal_pc): Update.
6360 * blockframe.c (get_frame_block):Make return type const.
6361 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6362 (block_innermost_frame): Update.
6363 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6364 (block_for_pc, block_for_pc_sect): Update.
6365 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6366 'pblock' const.
6367 (block_for_pc_sect, block_for_pc): Make return type const.
6368 * ax-gdb.c (gen_expr): Update.
6369 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6370 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6371 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6372 (ada_read_var_value): Update.
6373 * ada-exp.y (struct name_info) <block>: Now const.
6374 (%union): Likewise.
6375 (block_lookup): Constify.
6376
b9228891
GB
63772014-06-18 Gary Benson <gbenson@redhat.com>
6378
6379 * nat/i386-dregs.h: New file.
6380 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6381 * i386-nat.h (i386-dregs.h): New include.
6382 (DR_FIRSTADDR): Now in i386-dregs.h.
6383 (DR_LASTADDR): Likewise.
6384 (DR_NADDR): Likewise.
6385 (DR_STATUS): Likewise.
6386 (DR_CONTROL): Likewise.
6387 (i386_debug_reg_state): Likewise.
6388 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6389
a1aa2221
LM
63902014-06-18 Don Breazeal <donb@codesourcery.com>
6391
6392 * breakpoint.c (set_longjmp_breakpoint): Call
6393 momentary_breakpoint_from_master with additional argument.
6394 (set_longjmp_breakpoint_for_call_dummy): Call
6395 momentary_breakpoint_from_master with additional argument.
6396 (set_std_terminate_breakpoint): Call
6397 momentary_breakpoint_from_master with additional argument.
6398 (momentary_breakpoint_from_master): Add argument to function
6399 definition and use it to initialize structure member flag.
74228e77 6400 (clone_momentary_breakpoint): Call
a1aa2221
LM
6401 momentary_breakpoint_from_master with additional argument.
6402 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6403 member flags set in momentary_breakpoint_from_master.
6404
4be83cc2
GB
64052014-06-18 Gary Benson <gbenson@redhat.com>
6406
6407 * i386-nat.c (i386_show_dr): Renamed to
6408 i386_dr_show and made nonstatic. All uses updated.
6409 (i386_length_and_rw_bits): Renamed to
6410 i386_dr_length_and_rw_bits and made nonstatic.
6411 All uses updated.
6412 (i386_insert_aligned_watchpoint): Renamed to
6413 i386_dr_insert_aligned_watchpoint and made nonstatic.
6414 All uses updated.
6415 (i386_remove_aligned_watchpoint): Renamed to
6416 i386_dr_remove_aligned_watchpoint and made nonstatic.
6417 All uses updated.
6418 (i386_update_inferior_debug_regs): Renamed to
6419 i386_dr_update_inferior_debug_regs and made nonstatic.
6420 All uses updated.
6421
131aa0d4
GB
64222014-06-18 Gary Benson <gbenson@redhat.com>
6423
6424 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6425 (i386_dr_low_can_set_control): Likewise.
6426 (i386_dr_low_set_addr): Likewise.
6427 (i386_dr_low_set_control): Likewise.
6428 (i386_dr_low_get_addr): Likewise.
6429 (i386_dr_low_get_status): Likewise.
6430 (i386_dr_low_get_control): Likewise.
6431 (i386_insert_aligned_watchpoint): Use new macros.
6432 (i386_update_inferior_debug_regs): Likewise.
6433 (i386_stopped_data_address): Likewise.
6434
d9305f7f
GB
64352014-06-18 Gary Benson <gbenson@redhat.com>
6436
6437 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6438 New parameter. All uses updated.
6439
ea008da4
GB
64402014-06-18 Gary Benson <gbenson@redhat.com>
6441
6442 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6443 All uses updated.
6444
1b6d4134
GB
64452014-06-18 Gary Benson <gbenson@redhat.com>
6446
6447 * i386-nat.c (debug_printf): New macro.
6448 (i386_get_debug_register_length): Likewise.
6449 (TARGET_HAS_DR_LEN_8): Use above macro.
6450 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6451 and printf_unfiltered. Use phex to format values.
6452
9b4550ef
GB
64532014-06-18 Gary Benson <gbenson@redhat.com>
6454
6455 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6456 Make const.
6457
6e62758f
GB
64582014-06-18 Gary Benson <gbenson@redhat.com>
6459
6460 * i386-nat.c: Comment changes.
6461
51c79e94
GB
64622014-06-18 Gary Benson <gbenson@redhat.com>
6463
6464 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6465
3e11889a
GB
64662014-06-18 Gary Benson <gbenson@redhat.com>
6467
6468 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6469 (i386_insert_aligned_watchpoint): Likewise.
6470 (i386_remove_aligned_watchpoint): Likewise.
6471 (i386_handle_nonaligned_watchpoint): Likewise.
6472
fc6e2f03
GB
64732014-06-18 Gary Benson <gbenson@redhat.com>
6474
6475 * i386-nat.c: Whitespace changes.
6476
2afe7d50
SB
64772014-06-17 Samuel Bronson <naesten@gmail.com>
6478
6479 * MAINTAINERS: Update Roland McGrath's email address.
6480 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6481 Red Hat a while ago, and giving me a current address.
2afe7d50 6482
3bca49ee
TT
64832014-06-17 Tom Tromey <tromey@redhat.com>
6484
6485 * utils.h (savestring): Remove declaration.
6486
6e366df1
TT
64872014-06-17 Tom Tromey <tromey@redhat.com>
6488
6489 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6490
6be47f0c
KS
64912014-06-16 Keith Seitz <keiths@redhat.com>
6492
6493 PR mi/15863
6494 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6495 to update the varobj if inferior_ptid is null_ptid.
6496
7bc112c1
TT
64972014-06-16 Tom Tromey <tromey@redhat.com>
6498
6499 * target.h (struct target_ops) <to_info_proc>: Make parameter
6500 const.
6501 (target_info_proc): Update.
6502 * target.c (target_info_proc): Make "args" const.
6503 * procfs.c (procfs_info_proc): Update.
6504 * linux-tdep.c (linux_info_proc): Update.
6505 (linux_core_info_proc_mappings): Make "args" const.
6506 (linux_core_info_proc): Update.
6507 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6508 * gdbarch.c: Rebuild.
6509 * gdbarch.h: Rebuild.
6510 * corelow.c (core_info_proc): Update.
6511
fee354ee
TT
65122014-06-16 Tom Tromey <tromey@redhat.com>
6513
6514 * target.h (struct target_ops) <to_disconnect>: Make parameter
6515 const.
6516 (target_disconnect): Update.
6517 * target.c (target_disconnect): Make "args" const.
6518 * target-delegates.c: Rebuild.
6519 * remote.c (remote_disconnect): Update.
6520 * record.h (record_disconnect): Update.
6521 * record.c (record_disconnect): Update.
6522 * inf-child.c (inf_child_disconnect): Update.
6523
a30bf1f1
TT
65242014-06-16 Tom Tromey <tromey@redhat.com>
6525
6526 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6527 * target.c (debug_to_rcmd, default_rcmd): Update.
6528 * target-delegates.c: Rebuild.
6529 * remote.c (remote_rcmd): Update.
6530 * monitor.c (monitor_rcmd): Update.
6531
d03de421
PA
65322014-06-16 Pedro Alves <palves@redhat.com>
6533
6534 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6535 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6536 have OBJF_SHARED set.
6537 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6538 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6539 instead of OBJF_USERLOADED.
6540 * objfiles.h (OBJF_SHARED): Update comment.
6541 (userloaded_objfile_contains_address_p): Rename to ...
6542 (shared_objfile_contains_address_p): ... this, and update
6543 comments.
6544 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6545 new objfile.
6546 (remove_symbol_file_command): Skip objfiles that don't have
6547 OBJF_SHARED set.
6548
99f4262f
TT
65492014-06-16 Tom Tromey <tromey@redhat.com>
6550
6551 * minsyms.h (prim_record_minimal_symbol)
6552 (prim_record_minimal_symbol_and_info): Update comments.
6553
97d66cc6
EZ
65542014-06-14 Eli Zaretskii <eliz@gnu.org>
6555
6556 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6557 or --without-guile, according to how GDB was built.
6558
635c7e8a
TT
65592014-06-13 Tom Tromey <tromey@redhat.com>
6560
6561 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6562 to help_list.
6563 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6564 to help_list.
6565 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6566 help_list.
6567 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6568 help_list.Pass all_commands, not -1, to help_list.
6569 * cli/cli-dump.c (dump_command, append_command)
6570 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6571 (binary_dump_command, binary_append_command): Pass all_commands,
6572 not -1, to help_list.
6573 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6574 -1, to help_list.
6575 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6576 -1, to help_list.
6577 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6578 help_list.
6579 * top.c (set_history): Pass all_commands, not -1, to help_list.
6580 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6581 all_commands, not -1, to help_list.
6582 * symfile.c (overlay_command): Pass all_commands, not -1, to
6583 help_list.
6584 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6585 help_list.
6586 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6587 help_list.
6588 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6589 -1, to help_list.
6590 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6591 not -1, to help_list.
6592 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6593 not -1, to help_list.
6594 * maint.c (maintenance_command, maintenance_info_command)
6595 (maintenance_print_command, maintenance_set_cmd): Pass
6596 all_commands, not -1, to help_list.
6597 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6598 help_list.
6599 * language.c (set_check): Pass all_commands, not -1, to help_list.
6600 * infcmd.c (unset_command): Pass all_commands, not -1, to
6601 help_list.
6602 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6603 help_list.
6604 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6605 help_list.
6606 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6607 help_list.
6608 * breakpoint.c (save_command): Pass all_commands, not -1, to
6609 help_list.
6610 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6611 all_commands, not -1, to help_list.
6612
b94ade42
PL
66132014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6614
6615 * regcache.c (struct register_to_invalidate): New structure.
6616 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6617 functions.
6618 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6619
31f628ae
YQ
66202014-06-12 Yao Qi <yao@codesourcery.com>
6621
6622 * varobj.c (varobj_get_num_children): Call
6623 varobj_is_dynamic_p.
6624 (varobj_list_children): Likewise.
6625 (varobj_update): Likewise. Update comments.
6626
cde5ef40
YQ
66272014-06-12 Yao Qi <yao@codesourcery.com>
6628
6629 * varobj.c (varobj_pretty_printed_p): Rename to ...
6630 (varobj_is_dynamic_p): ... this. New function.
6631 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6632 (varobj_is_dynamic_p): Declare.
6633 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6634 (mi_print_value_p, varobj_update_one): Likewise.
6635
576ea091
YQ
66362014-06-12 Pedro Alves <pedro@codesourcery.com>
6637 Yao Qi <yao@codesourcery.com>
6638
6639 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6640 (varobj_get_iterator): Wrap up code for pretty-printer by
6641 "#if HAVE_PYTHON" and "#endif".
6642 (update_dynamic_varobj_children): Likewise.
6643
827f100c
YQ
66442014-06-12 Pedro Alves <pedro@codesourcery.com>
6645 Yao Qi <yao@codesourcery.com>
6646
6647 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6648 gdb_python_initialized is false. Move some code from varobj.c.
6649 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6650 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6651 (struct varobj_item): Moved to varobj-iter.h".
6652 (varobj_clear_saved_item): New function.
6653 (update_dynamic_varobj_children): Move python-related code to
6654 py-varobj.c.
6655 (free_variable): Call varobj_clear_saved_item and
6656 varobj_iter_delete.
6657
e5250216
YQ
66582014-06-12 Pedro Alves <pedro@codesourcery.com>
6659 Yao Qi <yao@codesourcery.com>
6660
6661 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6662 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6663 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6664 (py-varobj.o): New rule.
6665 * python/py-varobj.c: New file.
6666 * python/python-internal.h (py_varobj_get_iterator): Declare.
6667 * varobj-iter.h: New file.
6668 * varobj.c: Include "varobj-iter.h"
6669 (struct varobj) <child_iter>: Change its type from "PyObject *"
6670 to "struct varobj_iter *".
6671 <saved_item>: Likewise.
6672 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6673 [HAVE_PYTHON] (varobj_get_iterator): New function.
6674 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6675 python-specific code to python/py-varobj.c.
6676 (install_visualizer): Call varobj_iter_delete instead of
6677 Py_XDECREF.
6678 * varobj.h (varobj_ensure_python_env): Declare.
6679
5a2e0d6e
YQ
66802014-06-12 Yao Qi <yao@codesourcery.com>
6681
6682 * varobj.c (struct varobj_item): New structure.
6683 (create_child_with_value): Update declaration.
6684 (varobj_add_child): Replace arguments 'name' and 'value' with
6685 'item'. All callers updated.
6686 (install_dynamic_child): Likewise.
6687 (update_dynamic_varobj_children): Likewise.
6688 (varobj_add_child): Likewise.
6689 (create_child_with_value): Likewise.
6690
919b9a93
JB
66912014-06-11 Joel Brobecker <brobecker@adacore.com>
6692
6693 * NEWS: Create a new section for the next release branch.
6694 Rename the section of the current branch, now that it has
6695 been cut.
6696
71a55bdf
JB
66972014-06-11 Joel Brobecker <brobecker@adacore.com>
6698
6699 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6700 * version.in: Bump version to 7.8.50.DATE-cvs.
6701
364fe1f7
PA
67022014-06-11 Pedro Alves <palves@redhat.com>
6703
6704 PR remote/17028
6705 * ser-mingw.c (net_windows_socket_check_pending): New function.
6706 (net_windows_select_thread): Ignore spurious wakeups. Use
6707 net_windows_socket_check_pending.
6708 (net_windows_wait_handle): Check for pending events with
6709 ioctlsocket, through net_windows_socket_check_pending, instead of
6710 checking the socket's event.
6711
5a6c7709
SC
67122014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6713
6714 * python/python-internal.h (gdb_PyObject_GetAttrString)
6715 (gdb_PyObject_HasAttrString): New inline function definitions.
6716 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6717 char * of the second argument to PyObject_GetAttrString.
74228e77 6718
0e58ee40
JB
67192014-06-10 Joel Brobecker <brobecker@adacore.com>
6720
6721 * serial.c (serial_write): Fix index of character to be printed
6722 in call to serial_logchar when serial debug traces are enabled.
6723
d190df30
JB
67242014-06-10 Joel Brobecker <brobecker@adacore.com>
6725
6726 * gdbtypes (resolve_dynamic_range): Add function description.
6727
b4b01d36
PA
67282014-06-09 Pedro Alves <palves@redhat.com>
6729
6730 * linux-nat.c (linux_child_follow_fork): Initialize status with
6731 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6732 inner block. Only pass the signal to PTRACE_DETACH if in pass
6733 state.
6734
3657956b
GB
67352014-06-09 Gary Benson <gbenson@redhat.com>
6736
6737 * common/signals.c (gdb_signal_from_host): Reorder to separate
6738 the always-available ANSI-standard signals from the signals that
6739 require checking.
6740 (do_gdb_signal_to_host): Likewise.
6741 * proc-events.c (signal_table): Likewise.
6742
c077881a
HZ
67432014-06-08 Hui Zhu <hui@codesourcery.com>
6744
6745 * common/linux-ptrace.c (linux_disable_event_reporting): New
6746 function.
6747 * common/linux-ptrace.h (linux_disable_event_reporting): New
6748 declaration.
6749 * linux-nat.c (linux_child_follow_fork): Do a single step before
6750 detach.
6751
4186eb54
KS
67522014-06-07 Keith Seitz <keiths@redhat.com>
6753
6754 Revert:
6755 PR c++/16253
6756 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6757 from symbol_matches_domain in symtab.c. All local callers
6758 of symbol_matches_domain updated.
6759 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6760 search STRUCT_DOMAIN.
6761 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6762 independently. standard_lookup will do that automatically.
6763 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6764 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6765 (cp_lookup_symbol_in_namespace): Likewise.
6766 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6767 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6768 may return a STRUCT_DOMAIN match.
6769 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6770 * cp-support.c: Include language.h.
6771 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6772 VAR_DOMAIN.
6773 * psymtab.c (match_partial_symbol): Compare the requested
6774 domain with the symbol's domain directly.
6775 (lookup_partial_symbol): Likewise.
6776 * symtab.c (lookup_symbol_in_language): Explain when/why
6777 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6778 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6779 appropriate languages.
6780 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6781 and moved to ada-lang.c
6782 (lookup_block_symbol): Explain that this function only returns
6783 symbol matching the requested DOMAIN.
6784 Compare the requested domain with the symbol's domain directly.
6785 (iterate_over_symbols): Compare the requested domain with the
6786 symbol's domain directly.
6787 * symtab.h (symbol_matches_domain): Remove.
6788
25326a28 67892014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6790
6791 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6792 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6793 (gdbscm_guile_version_is_at_least): Declare.
6794 (gdbscm_scm_string_to_int): Declare.
6795 * guile/guile.c (gdbscm_guile_major_version): New global.
6796 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6797 (guile_datadir): New static global.
6798 (gdbscm_guile_data_directory): New function.
6799 (initialize_scheme_side): Update.
6800 (misc_guile_functions): Add guile-data-directory.
6801 (initialize_gdb_module): Fetch guile version number.
6802 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6803 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6804 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6805 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6806 comments.
6807 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6808 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6809 * guile/scm-value.c (gdbscm_value_to_string): Only call
6810 scm_port_conversion_strategy if Guile version >= 2.0.6.
6811
0a770bb2 68122014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6813
6814 * main.c (print_gdb_help): Add -q and --silent.
6815
73ba372c
GB
68162014-06-06 Gary Benson <gbenson@redhat.com>
6817
6818 * common/signals.c: Remove preprocessor conditionals for
6819 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6820 SIGSEGV and SIGTERM.
6821 * proc-events.c: Likewise.
6822
c33b2f12
MM
68232014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6824
6825 * symfile.c (symfile_free_objfile): Remove restriction to
6826 OBJF_USERLOADED.
6827 * symfile-mem.c (symbol_file_add_from_memory): Call
6828 add_target_sections_of_objfile.
6829
fb934770
LC
68302014-06-05 Ludovic Courtès <ludo@gnu.org>
6831
6832 * guile/scm-value.c (gdbscm_history_append_x): Use
6833 'vlscm_get_value_smob_arg_unsafe' instead of
6834 'vlscm_scm_to_value'.
6835
6ef284bd
SM
68362014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 PR mi/15806
6839 * utils.c (printchar): Don't escape at all if quoter is NUL.
6840 Update function documentation to clarify effect of parameter
6841 QUOTER.
6842 * remote.c (escape_buffer): Pass '\\' as the quoter to
6843 fputstrn_unfiltered.
6844 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6845 generate the output.
6846 (mi_solib_unloaded): Same.
6847
270c9937
JB
68482014-06-05 Joel Brobecker <brobecker@adacore.com>
6849
6850 * development.sh: Delete.
6851 * Makefile.in (config.status): Adjust dependency on development.sh.
6852 * configure.ac: Adjust development.sh source call.
6853 * configure: Regenerate.
6854
16f691fb
DE
68552014-06-04 Doug Evans <xdje42@gmail.com>
6856
6857 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6858 is_scheme_bkpt, spec.
6859 (bpscm_make_breakpoint_smob): Initialize new members.
6860 (gdbscm_create_breakpoint_x): Split into two ...
6861 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6862 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6863 (scheme_function breakpoint_functions): Update.
6864 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6865 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6866 register-breakpoint!.
6867
ef7cab6b
JB
68682014-06-04 Joel Brobecker <brobecker@adacorer.com>
6869
6870 PR server/17023
6871 * mem-break.c (z_type_supported): Return zero if
6872 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6873
012370f6
TT
68742014-06-04 Tom Tromey <tromey@redhat.com>
6875
6876 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6877 value_from_contents_and_address_unresolved.
6878 (ada_template_to_fixed_record_type_1): Likewise.
6879 (ada_which_variant_applies): Likewise.
6880 * value.h (value_from_contents_and_address_unresolved): Declare.
6881 * value.c (value_from_contents_and_address_unresolved): New
6882 function.
6883 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6884 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6885 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6886
92e2a17f
TT
68872014-06-04 Tom Tromey <tromey@redhat.com>
6888
6889 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6890
c0939df1
TT
68912014-06-04 Tom Tromey <tromey@redhat.com>
6892
6893 * procfs.c (procfs_attach): Make "args" const.
6894 * windows-nat.c (windows_attach): Make "args" const.
6895 * nto-procfs.c (procfs_attach): Make "args" const.
6896 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6897 * go32-nat.c (go32_attach): Make "args" const.
6898 * gnu-nat.c (gnu_attach): Make "args" const.
6899 * darwin-nat.c (darwin_attach): Make "args" const.
6900 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6901 * linux-nat.c (linux_nat_attach): Make "args" const.
6902 * remote.c (extended_remote_attach_1, extended_remote_attach):
6903 Make "args" const.
6904 * target.h (struct target_ops) <to_attach>: Make "args" const.
6905 (find_default_attach): Likewise.
6906 * utils.c (parse_pid_to_attach): Make "args" const.
6907 * utils.h (parse_pid_to_attach): Update.
6908
8eaff7cd
TT
69092014-06-04 Tom Tromey <tromey@redhat.com>
6910
6911 * target-delegates.c: Rebuild.
6912 * target.c (default_thread_address_space): New function.
6913 (target_thread_address_space): Simplify.
6914 * target.h (struct target_ops) <to_thread_address_space>: Add
6915 TARGET_DEFAULT_FUNC.
6916
1913f160
DE
69172014-06-04 Doug Evans <xdje42@gmail.com>
6918
6919 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6920
70ad5bff
MM
69212014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6922
6923 * record-btrace.c: Include event-loop.h and inf-loop.h.
6924 (record_btrace_resume_exec_dir)
6925 (record_btrace_async_inferior_event_handler)
6926 (record_btrace_handle_async_inferior_event): New.
6927 (record_btrace_open): Create async event handler.
6928 (record_btrace_close): Delete async event handler.
6929 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6930 Mark async event handler.
6931 (record_btrace_execution_direction): New.
6932 (init_record_btrace_ops): Initialize to_execution_direction.
6933
b6210538
DE
69342014-06-03 Doug Evans <xdje42@gmail.com>
6935
6936 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6937 (gdbscm_make_parameter): Ditto.
6938
a5b1fd27
DE
69392014-06-03 Doug Evans <dje@google.com>
6940
6941 * exec.c (exec_close_1): Call clear_section_table instead of
6942 resize_section_table.
6943 (clear_section_table): New function.
6944 (resize_section_table): Make static. Rename arg num_added to
6945 adjustment.
6946 * exec.h (clear_section_table): Declare.
6947 (resize_section_table): Delete.
6948 * progspace.c (release_program_space): Call clear_section_table
6949 instead of resize_section_table.
6950
0c6e92a5
SC
69512014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6952
6953 * NEWS (Python Scripting): Add entry about the new xmethods
6954 feature.
6955
883964a7
SC
69562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6957
6958 * python/py-xmethods.c: New file.
6959 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6960 (objfpy_dealloc): XDECREF on the new xmethods field.
6961 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6962 field.
6963 (objfpy_get_xmethods): New function.
6964 (objfile_getset): New entry 'xmethods'.
6965 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6966 (pspy_dealloc): XDECREF on the new xmethods field.
6967 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6968 field.
6969 (pspy_get_xmethods): New function.
6970 (pspace_getset): New entry 'xmethods'.
6971 * python/python-internal.h: Add declarations for new functions.
6972 * python/python.c (_initialize_python): Invoke
6973 gdbpy_initialize_xmethods.
6974 * python/lib/gdb/__init__.py (xmethods): New
6975 attribute.
6976 * python/lib/gdb/xmethod.py: New file.
6977 * python/lib/gdb/command/xmethods.py: New file.
6978
58992dc5
SC
69792014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6980
6981 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6982 best match method returned by find_overload_match is an xmethod.
6983 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6984 the best matching operator returned by find_overload_match is an
6985 xmethod.
6986 * valops.c: #include "extension.h".
6987 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6988 Return void. The list of matching source methods is returned in
6989 "fn_list" and a vector of matching debug method workers is
6990 returned in "xm_worker_vec". Update all callers.
6991 (value_find_oload_method_list): Likewise.
6992 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6993 non-NULL, then the index of the best matching method in this
6994 vector is returned. Update all callers.
6995 (find_overload_match): Include xmethods while performing overload
6996 resolution.
6997
e81e7f5e
SC
69982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6999
7000 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7001 * extension-priv.h (struct extension_language_ops): Add the
7002 xmethod interface.
7003 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7004 get_matching_xmethod_workers, get_xmethod_argtypes,
7005 invoke_xmethod, free_xmethod_worker,
7006 free_xmethod_worker_vec): New functions.
7007 * extension.h: #include "common/vec.h".
7008 New function declarations.
7009 (struct xmethod_worker): New struct.
7010 (VEC (xmethod_worker_ptr)): New vector type.
7011 (xmethod_worker_ptr): New typedef.
7012 (xmethod_worker_vec): Likewise.
7013 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7014 builtin_type.
7015 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7016 (struct builtin_type): New field "xmethod".
7017 * valarith.c (value_ptradd): Assert that the value argument is not
7018 lval_xcallable.
7019 * valops.c (value_must_coerce_to_target): Return 0 for
7020 lval_xcallable values.
7021 * value.c (struct value): New field XM_WORKER in the field
7022 LOCATION.
7023 (value_address, value_raw_address): Return 0 for lval_xcallable
7024 values.
7025 (set_value_address): Assert that the value is not an
7026 lval_xcallable.
7027 (value_free): Free the associated xmethod worker when freeing
7028 lval_xcallable values.
7029 (set_value_component_location): Assert that the WHOLE value is not
7030 lval_xcallable.
7031 (value_of_xmethod, call_xmethod): New functions.
7032 * value.h: Declare "struct xmethod_worker".
7033 Declare new functions value_of_xmethod, call_xmethod.
7034
ef370185
JB
70352014-06-03 Joel Brobecker <brobecker@adacore.com>
7036 Pedro Alves <palves@redhat.com>
7037
7038 PR breakpoints/17000
7039 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7040 New function, extracted from software_breakpoint_inserted_here_p.
7041 (software_breakpoint_inserted_here_p): Replace factored out code
7042 by call to find_non_raw_software_breakpoint_inserted_here.
7043 (bp_target_info_copy_insertion_state): New function.
7044 (bkpt_insert_location): Handle the case of a single-step
7045 breakpoint already inserted at the same address.
7046 (bkpt_remove_location): Handle the case of a single-step
7047 breakpoint still inserted at the same address.
7048 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7049 breakpoint already inserted at the same address.
7050 (deprecated_remove_raw_breakpoint): Handle the case of a
7051 non-raw breakpoint still inserted at the same address.
7052 (find_single_step_breakpoint): New function, extracted from
7053 single_step_breakpoint_inserted_here_p.
7054 (find_single_step_breakpoint): New function,
7055 factored out from single_step_breakpoint_inserted_here_p.
7056 (single_step_breakpoint_inserted_here_p): Reimplement.
7057
1e2ccb61
BM
70582014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7059
7060 Pushed by Joel Brobecker <brobecker@adacore.com>
7061 * source.c (show_substitute_path_command): Fix display of matching
7062 substitution rules.
7063
d3448d85
GB
70642014-06-03 Gary Benson <gbenson@redhat.com>
7065
7066 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7067
06eb1586
DE
70682014-06-02 Doug Evans <xdje42@gmail.com>
7069
7070 Add parameter support for Guile.
7071 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7072 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7073 (scm-param.o): New rule.
7074 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7075 (gdbscm_misc_error): Declare.
7076 (gdbscm_canonicalize_command_name): Declare.
7077 (gdbscm_scm_to_host_string): Declare.
7078 (gdbscm_scm_from_host_string): Declare.
7079 (gdbscm_initialize_parameters): Declare.
7080 * guile/guile.c (initialize_gdb_module): Call
7081 gdbscm_initialize_parameters.
7082 * guile/lib/gdb.scm: Export parameter symbols.
7083 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7084 cmdscm_canonicalize_name and made public. All callers updated.
7085 * guile/scm-exception.c (gdbscm_misc_error): New function.
7086 * guile/scm-param.c: New file.
7087 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7088 (gdbscm_scm_to_host_string): New function.
7089 (gdbscm_scm_from_host_string): New function.
7090 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7091
e698b8c4
DE
70922014-06-02 Doug Evans <xdje42@gmail.com>
7093
7094 Add command support for Guile.
7095 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7096 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7097 (scm-cmd.o): New rule.
7098 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7099 (gdbscm_user_error_p): Declare.
7100 (gdbscm_parse_command_name): Declare.
7101 (gdbscm_valid_command_class_p): Declare.
7102 (gdbscm_initialize_commands): Declare.
7103 * guile/guile.c (initialize_gdb_module): Call
7104 gdbscm_initialize_commands.
7105 * guile/lib/gdb.scm: Export command symbols.
7106 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7107 (throw-user-error): New function.
7108 * guile/scm-cmd.c: New file.
7109 * guile/scm-exception.c (user_error_symbol): New static global.
7110 (gdbscm_user_error_p): New function.
7111 (gdbscm_initialize_exceptions): Set user_error_symbol.
7112 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7113
fb1f94b0
PM
71142014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7115
7116 * top.c (command_loop): Handle comments here...
7117 (command_line_input): ... not here.
7118
ded03782
DE
71192014-06-02 Doug Evans <xdje42@gmail.com>
7120
7121 Add progspace support for Guile.
7122 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7123 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7124 (scm-progspace.o): New rule.
7125 * guile/guile-internal.h (pspace_smob): New typedef.
7126 (psscm_pspace_smob_pretty_printers): Declare.
7127 (psscm_pspace_smob_from_pspace): Declare.
7128 (psscm_scm_from_pspace): Declare.
7129 * guile/guile.c (initialize_gdb_module): Call
7130 gdbscm_initialize_pspaces.
7131 * guile/lib/gdb.scm: Export progspace symbols.
7132 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7133 support.
7134 (append-pretty-printer!): Ditto.
7135 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7136 Implement.
7137 * guile/scm-progspace.c: New file.
7138
397998fc
AM
71392014-06-03 Alan Modra <amodra@gmail.com>
7140
7141 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7142 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7143
6aa5f3a6
DE
71442014-06-02 Doug Evans <dje@google.com>
7145
7146 Add support for skeletonless type units.
7147 * dwarf2read.c (struct dwarf2_per_objfile): New member
7148 n_allocated_type_units.
7149 (struct dwarf2_per_objfile) <tu_stats>: New member
7150 nr_all_type_units_reallocs.
7151 (create_signatured_type_table_from_index): Initialize
7152 n_allocated_type_units
7153 (create_all_type_units): Ditto.
7154 (add_type_unit): Move up in file. New arg slot.
7155 All callers updated. Increase space for all_type_units more
7156 efficiently.
7157 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7158 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7159 (lookup_dwp_signatured_type): Ditto.
7160 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7161 All callers updated.
7162 (build_type_psymtabs_1): Leave type_unit_groups as
7163 NULL if no TUs present.
7164 (print_tu_stats): New function.
7165 (process_skeletonless_type_unit): New function.
7166 (process_dwo_file_for_skeletonless_type_units): New
7167 function.
7168 (process_skeletonless_type_units): New function.
7169 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7170 Call print tu_stats if debugging enabled.
7171
41fac0cf
PA
71722014-06-02 Pedro Alves <palves@redhat.com>
7173
7174 * breakpoint.c (build_target_command_list): Don't build a command
7175 list if we have any duplicate location that isn't a dprintf.
7176
cd1608cc
PA
71772014-06-02 Pedro Alves <palves@redhat.com>
7178
7179 * breakpoint.c (dprintf_breakpoint_hit): New function.
7180 (initialize_breakpoint_ops): Install it as dprintf's
7181 breakpoint_hit method.
7182
486ef3b9
JB
71832014-06-02 Joel Brobecker <brobecker@adacore.com>
7184
7185 * source.c (substitute_path_rule_matches): Simplify using
7186 filename_ncmp instead of FILENAME_CMP.
7187
230cd560
JB
71882014-06-02 Joel Brobecker <brobecker@adacore.com>
7189
7190 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7191
16954d5d
LC
71922014-06-01 Ludovic Courtès <ludo@gnu.org>
7193
7194 * configure.ac: When Guile is available, check for the
7195 availability of 'scm_new_smob'.
7196 * configure, config.h.in: Regenerate.
7197 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7198 function.
7199
53e8a631
AB
72002014-05-30 Andrew Burgess <aburgess@broadcom.com>
7201
7202 * frame.c (struct frame_info): Add stop_string field.
7203 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7204 (get_prev_frame_always): Old content moved into
7205 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7206 TRY_CATCH, handle MEMORY_ERROR exceptions.
7207 (frame_stop_reason_string): New function definition.
7208 * frame.h (unwind_stop_reason_to_string): Extend comment to
7209 mention frame_stop_reason_string.
7210 (frame_stop_reason_string): New function declaration.
7211 * stack.c (frame_info): Switch to frame_stop_reason_string.
7212 (backtrace_command_1): Switch to frame_stop_reason_string.
7213 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7214 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7215 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7216
70e38b8e
AB
72172014-05-30 Andrew Burgess <aburgess@broadcom.com>
7218
7219 * frame.c (frame_stop_reason_string): Rename to ...
7220 (unwind_stop_reason_to_string): this.
7221 * frame.h (frame_stop_reason_string): Rename to ...
7222 (unwind_stop_reason_to_string): this.
7223 * stack.c (frame_info): Update call to frame_stop_reason_string.
7224 (backtrace_command_1): Likewise.
7225 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7226 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7227
938f0e2f
AB
72282014-05-30 Andrew Burgess <aburgess@broadcom.com>
7229
7230 * frame.c (remove_prev_frame): New function.
7231 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7232 remove_prev_frame.
7233
a09dd441
PA
72342014-05-29 Pedro Alves <palves@redhat.com>
7235
7236 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7237 and make it const. When a single-step decays to a continue,
7238 clear 'step', not 'hw_step'. Pass whether the caller wanted
7239 to step to user_visible_resume_ptid, not what we ask the
7240 target to do.
7241
bdc36728
PA
72422014-05-29 Pedro Alves <palves@redhat.com>
7243
7244 * infrun.c (process_event_stop_test, handle_step_into_function)
7245 (handle_step_into_function_backward): Adjust.
7246 Don't set the even thread's stop_step and call stop_waiting before
7247 calling end_stepping_range. Instead do that ...
7248 (end_stepping_range): ... here. Take an ecs pointer parameter.
7249
22bcd14b
PA
72502014-05-29 Pedro Alves <palves@redhat.com>
7251
7252 * infrun.c (stop_stepping): Rename to ...
7253 (stop_waiting): ... this.
7254 (proceed): Update comment.
7255 (process_event_stop_test, handle_inferior_event)
7256 (handle_signal_stop, handle_step_into_function)
7257 (handle_step_into_function_backward): Update.
7258
4ae57c05
PA
72592014-05-29 Pedro Alves <palves@redhat.com>
7260
7261 * infcall.c (run_inferior_call): Don't check whether the current
7262 thread is running after the proceed call.
7263
329ea579
PA
72642014-05-29 Pedro Alves <palves@redhat.com>
7265 Tom Tromey <tromey@redhat.com>
7266
7267 * NEWS: Mention "maint set target-async", "set mi-async", and that
7268 background execution commands are now always available.
7269 * target.h (target_async_permitted): Update comment.
7270 * target.c (target_async_permitted, target_async_permitted_1):
7271 Default to 1.
7272 (set_target_async_command): Rename to ...
7273 (maint_set_target_async_command): ... this.
7274 (show_target_async_command): Rename to ...
7275 (maint_show_target_async_command): ... this.
7276 (_initialize_target): Adjust.
7277 * infcmd.c (prepare_execution_command): Make extern.
7278 * inferior.h (prepare_execution_command): Declare.
7279 * infrun.c (set_observer_mode): Leave target async alone.
7280 * mi/mi-interp.c (mi_interpreter_init): Install
7281 mi_on_sync_execution_done as sync_execution_done observer.
7282 (mi_on_sync_execution_done): New function.
7283 (mi_execute_command_input_handler): Don't print the prompt if we
7284 just started a synchronous command with an async target.
7285 (mi_on_resume): Check sync_execution before printing prompt.
7286 * mi/mi-main.h (mi_async_p): Declare.
7287 * mi/mi-main.c: Include gdbcmd.h.
7288 (mi_async_p): New function.
7289 (mi_async, mi_async_1): New globals.
7290 (set_mi_async_command, show_mi_async_command, mi_async): New
7291 functions.
7292 (exec_continue): Call prepare_execution_command.
7293 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7294 (mi_execute_async_cli_command): Use mi_async_p.
7295 (_initialize_mi_main): Install "set mi-async". Make
7296 "target-async" a deprecated alias.
7297
92bcb5f9
PA
72982014-05-29 Pedro Alves <palves@redhat.com>
7299
7300 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7301 (_initialize_cli_interp): Adjust.
7302 * event-loop.c: Include "observer.h".
7303 (start_event_loop): Notify 'command_error' observers instead of
7304 calling display_gdb_prompt. Remove FIXME comment.
7305 * event-top.c (display_gdb_prompt): Remove call into the
7306 interpreters.
7307 * inf-loop.c: Include "observer.h".
7308 (inferior_event_handler): Notify 'command_error' observers instead
7309 of calling display_gdb_prompt.
7310 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7311 observers instead of calling display_gdb_prompt.
7312 * interps.c (interp_set): Don't call display_gdb_prompt.
7313 (current_interp_display_prompt_p): Delete.
7314 * interps.h (interp_prompt_p): Delete declaration.
7315 (interp_prompt_p_ftype): Delete.
7316 (struct interp_procs) <prompt_proc_p>: Delete field.
7317 (current_interp_display_prompt_p): Delete declaration.
7318 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7319 (_initialize_mi_interp): Adjust.
7320 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7321 'command_error' observers.
7322 (tui_on_sync_execution_done, tui_on_command_error): New
7323 functions.
7324 (tui_display_prompt_p): Delete.
7325 (_initialize_tui_interp): Adjust.
7326
fd664c91
PA
73272014-05-29 Pedro Alves <palves@redhat.com>
7328
7329 PR gdb/13860
7330 * cli/cli-interp.c: Include infrun.h and observer.h.
7331 (cli_uiout, cli_interp): New globals.
7332 (cli_on_signal_received, cli_on_end_stepping_range)
7333 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7334 functions.
7335 (cli_interpreter_init): Install them as 'end_stepping_range',
7336 'signal_received' 'signal_exited', 'exited' and 'no_history'
7337 observers.
7338 (_initialize_cli_interp): Remove cli_interp local.
7339 * infrun.c (handle_inferior_event): Call the several stop reason
7340 observers instead of printing the stop reason directly.
7341 (end_stepping_range): New function.
7342 (print_end_stepping_range_reason, print_signal_exited_reason)
7343 (print_exited_reason, print_signal_received_reason)
7344 (print_no_history_reason): Make static, and add an uiout
7345 parameter. Print to that instead of to CURRENT_UIOUT.
7346 * infrun.h (print_end_stepping_range_reason)
7347 (print_signal_exited_reason, print_exited_reason)
7348 (print_signal_received_reason print_no_history_reason): New
7349 declarations.
7350 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7351 'mi_uiout'.
7352 <cli_uiout>: New field.
7353 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7354 uiout for CLI output. Install 'signal_received',
7355 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7356 observers.
7357 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7358 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7359 (mi_on_no_history): New functions.
7360 (ui_out_free_cleanup): Delete function.
7361 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7362 instead use the one already stored in the MI interpreter data.
7363 (mi_ui_out): Adjust.
7364 * tui/tui-interp.c: Include infrun.h and observer.h.
7365 (tui_interp): New global.
7366 (tui_on_signal_received, tui_on_end_stepping_range)
7367 (tui_on_signal_exited, tui_on_exited)
7368 (tui_on_no_history): New functions.
7369 (tui_init): Install them as 'end_stepping_range',
7370 'signal_received' 'signal_exited', 'exited' and 'no_history'
7371 observers.
7372 (_initialize_tui_interp): Delete tui_interp local.
7373
8817a6f2
PA
73742014-05-29 Pedro Alves <palves@redhat.com>
7375
7376 PR gdb/15713
7377 * linux-nat.c (linux_nat_resume_callback): Rename the second
7378 parameter to 'except'. Skip LP if it points to EXCEPT.
7379 (linux_nat_resume): Don't mark the event lwp as not stopped
7380 before resuming sibling lwps. Instead ask
7381 linux_nat_resume_callback to skip the event lwp. Mark it as not
7382 stopped after actually resuming it.
7383 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7384 resuming it.
7385 (wait_lwp): Mark the lwp as stopped here.
7386 (stop_wait_callback): Mark the lwp as not stopped right after
7387 resuming it. Don't mark lwps as stopped here.
7388 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7389 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7390
251bde03
PA
73912014-05-29 Pedro Alves <palves@redhat.com>
7392
7393 PR PR15693
7394 * infrun.c (resume): Determine how much to resume depending on
7395 whether the caller wanted a step, not whether we can hardware step
7396 the target. Mark all threads that we intend to run as running,
7397 unless we're calling an inferior function.
7398 (normal_stop): If the thread is running an infcall, don't finish
7399 thread state.
7400 * target.c (target_resume): Don't mark threads as running here.
7401
7f3c0343
JB
74022014-05-28 Joel Brobecker <brobecker@adacore.com>
7403
7404 * serial.c (_initialize_serial): Remove support for
7405 the "set remotebaud" and "show remotebaud" commands.
7406 * NEWS: Add entry documenting the removal of that command.
7407
ee34b3f9
YQ
74082014-05-28 Yao Qi <yao@codesourcery.com>
7409
7410 * charset.c: Fix typo in comments.
7411
add6c04d
GB
74122014-05-27 Gary Benson <gbenson@redhat.com>
7413
7414 * utils.c (internal_vproblem): Prompt for a bug report.
7415
92c48fc5
AW
74162014-05-26 Andy Wingo <wingo@igalia.com>
7417
7418 * guile/scm-arch.c (arscm_mark_arch_smob):
7419 * guile/scm-block.c (bkscm_mark_block_smob)
7420 (bkscm_mark_block_syms_progress_smob):
7421 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7422 * guile/scm-exception.c (exscm_mark_exception_smob):
7423 * guile/scm-frame.c (frscm_mark_frame_smob):
7424 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7425 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7426 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7427 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7428 (ppscm_mark_pretty_printer_worker_smob):
7429 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7430 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7431 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7432 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7433 mark functions.
7434 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7435 function.
7436
b2715b27
AW
74372014-05-26 Andy Wingo <wingo@igalia.com>
7438 Doug Evans <xdje42@gmail.com>
7439
7440 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7441 empty_base_class. All uses updated.
7442 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7443 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7444 Adapt all callers.
7445 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7446 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7447 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7448 (gdbscm_gsmob_has_property_p, add_property_name)
7449 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7450 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7451 (gdb-object-has-property?, gdb-object-properties): Remove.
7452 (gdb-object-kind): Renamed from gsmob-kind.
7453
214ab2da
AW
74542014-05-26 Andy Wingo <wingo@igalia.com>
7455
7456 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7457 * configure: Regenerate.
7458
589fdceb
MM
74592014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7460
7461 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7462
67b5c0c1
MM
74632014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7464
7465 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7466 (replay_memory_access_read_only, replay_memory_access_read_write)
7467 (replay_memory_access_types, replay_memory_access)
7468 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7469 (cmd_set_record_btrace, cmd_show_record_btrace)
7470 (cmd_show_replay_memory_access): New.
7471 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7472 (record_btrace_remove_breakpoint): Replace
7473 record_btrace_allow_memory_access with replay_memory_access.
7474 (_initialize_record_btrace): Add commands.
7475 * NEWS: Announce it.
7476
036cd381
RR
74772014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7478
7479 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7480
c77c1e42
RR
74812014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7482
7483 * MAINTAINERS (Write After Approval): Move self back from
7484 paper trail.
7485
45741a9c
PA
74862014-05-22 Pedro Alves <palves@redhat.com>
7487
7488 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7489 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7490 (disable_randomization, enum exec_direction_kind)
7491 (execution_direction, stop_registers, start_remote)
7492 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7493 (wait_for_inferior, normal_stop, get_last_target_status)
7494 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7495 (insert_step_resume_breakpoint_at_sal)
7496 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7497 (set_step_info, print_stop_event, signal_stop_state)
7498 (signal_print_state, signal_pass_state, signal_stop_update)
7499 (signal_print_update, signal_pass_update)
7500 (update_signals_program_target, clear_exit_convenience_vars)
7501 (displaced_step_dump_bytes, update_observer_mode)
7502 (signal_catch_update, gdb_signal_from_command): Move
7503 declarations ...
7504 * infrun.h: ... to this new file.
7505 * amd64-tdep.c: Include infrun.h.
7506 * annotate.c: Include infrun.h.
7507 * arch-utils.c: Include infrun.h.
7508 * arm-linux-tdep.c: Include infrun.h.
7509 * arm-tdep.c: Include infrun.h.
7510 * break-catch-sig.c: Include infrun.h.
7511 * breakpoint.c: Include infrun.h.
7512 * common/agent.c: Include infrun.h instead of inferior.h.
7513 * corelow.c: Include infrun.h.
7514 * event-top.c: Include infrun.h.
7515 * go32-nat.c: Include infrun.h.
7516 * i386-tdep.c: Include infrun.h.
7517 * inf-loop.c: Include infrun.h.
7518 * infcall.c: Include infrun.h.
7519 * infcmd.c: Include infrun.h.
7520 * infrun.c: Include infrun.h.
7521 * linux-fork.c: Include infrun.h.
7522 * linux-nat.c: Include infrun.h.
7523 * linux-thread-db.c: Include infrun.h.
7524 * monitor.c: Include infrun.h.
7525 * nto-tdep.c: Include infrun.h.
7526 * procfs.c: Include infrun.h.
7527 * record-btrace.c: Include infrun.h.
7528 * record-full.c: Include infrun.h.
7529 * remote-m32r-sdi.c: Include infrun.h.
7530 * remote-mips.c: Include infrun.h.
7531 * remote-notif.c: Include infrun.h.
7532 * remote-sim.c: Include infrun.h.
7533 * remote.c: Include infrun.h.
7534 * reverse.c: Include infrun.h.
7535 * rs6000-tdep.c: Include infrun.h.
7536 * s390-linux-tdep.c: Include infrun.h.
7537 * solib-irix.c: Include infrun.h.
7538 * solib-osf.c: Include infrun.h.
7539 * solib-svr4.c: Include infrun.h.
7540 * target.c: Include infrun.h.
7541 * top.c: Include infrun.h.
7542 * windows-nat.c: Include infrun.h.
7543 * mi/mi-interp.c: Include infrun.h.
7544 * mi/mi-main.c: Include infrun.h.
7545 * python/py-threadevent.c: Include infrun.h.
7546
98eb56a4
PA
75472014-05-22 Pedro Alves <palves@redhat.com>
7548
7549 * infrun.c (handle_inferior_event): Store the exit code for
7550 --return-child-result here, instead of ...
7551 (print_exited_reason): ... here.
7552
17b2616c
PA
75532014-05-21 Pedro Alves <palves@redhat.com>
7554
7555 PR gdb/13860
7556 * gdbthread.h (struct thread_control_state): New field
7557 `command_interp'.
7558 * infrun.c (follow_fork): Copy the new thread control field to the
7559 child fork thread.
7560 (clear_proceed_status_thread): Clear the new thread control field.
7561 (proceed): Set the new thread control field.
7562 * interps.h (command_interp): Declare.
7563 * interps.c (command_interpreter): New global.
7564 (command_interp): New function.
7565 (interp_exec): Set `command_interpreter' while here.
7566 * cli-out.c (cli_uiout_dtor): New function.
7567 (cli_ui_out_impl): Install it.
7568 * mi/mi-interp.c: Include cli-out.h.
7569 (mi_cmd_interpreter_exec): Add comment.
7570 (restore_current_uiout_cleanup): New function.
7571 (ui_out_free_cleanup): New function.
7572 (mi_on_normal_stop): If finishing an execution command started by
7573 a CLI command, or any kind of breakpoint-like event triggered,
7574 print the stop event to the output (CLI) stream.
7575 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7576
5166082f
PA
75772014-05-21 Pedro Alves <palves@redhat.com>
7578
7579 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7580 current source line having changed.
7581 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7582 * infrun.c (normal_stop): Adjust call to
7583 set_current_sal_from_frame.
7584 * source.c (clear_lines_listed_range): New function.
7585 (set_current_source_symtab_and_line, identify_source_line): Clear
7586 the lines listed range.
7587 (line_info): Handle the first "info line" after the current source
7588 line having changed.
7589 * stack.c (print_stack_frame): Remove center handling.
7590 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7591 center sal.line.
7592
c1ee2fb3
PA
75932014-05-21 Pedro Alves <palves@redhat.com>
7594
7595 * inf-child.c (inf_child_mourn_inferior): New function.
7596 * inf-child.h (inf_child_mourn_inferior): New declaration.
7597 * darwin-nat.c (darwin_mourn_inferior): Use
7598 inf_child_mourn_inferior.
7599 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7600 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7601 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7602 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7603 * windows-nat.c (windows_mourn_inferior): Likewise.
7604
5c6d4fb2
DE
76052014-05-21 Doug Evans <xdje42@gmail.com>
7606
250748cb 7607 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7608
4a2722c5
DE
76092014-05-21 Doug Evans <xdje42@gmail.com>
7610
17292b30 7611 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7612 (gdbscm_out_of_range_error): Ditto.
7613 (gdbscm_memory_error): Ditto.
250748cb
DE
7614 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7615 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7616 (gdbscm_out_of_range_error): Update.
7617 (gdbscm_memory_error): Update.
7618 (gdbscm_scm_to_target_string_unsafe): Delete.
7619
6a3cb8e8
PA
76202014-05-21 Pedro Alves <palves@redhat.com>
7621
7622 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7623 globals.
7624 (inf_child_open_target): New function.
7625 (inf_child_open): Use inf_child_open_target to push the target
7626 instead of erroring out.
7627 (inf_child_disconnect, inf_child_close)
7628 (inf_child_maybe_unpush_target): New functions.
7629 (inf_child_target): Install inf_child_disconnect and
7630 inf_child_close. Store a pointer to the returned object.
7631 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7632 declarations.
7633 * target.c (auto_connect_native_target): New global.
7634 (show_default_run_target): New function.
7635 (find_default_run_target): Return NULL if automatically connecting
7636 to the native target is disabled.
7637 (_initialize_target): Install set/show auto-connect-native-target.
7638 * NEWS: Mention "set auto-connect-native-target", and "target
7639 native".
7640 * linux-nat.c (super_close): New global.
7641 (linux_nat_close): Call super_close.
7642 (linux_nat_add_target): Store a pointer to the base class's
7643 to_close method.
7644 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7645 inf_child_maybe_unpush.
7646 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7647 already pushed.
7648 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7649 the inferior. Use inf_child_maybe_unpush_target.
7650 (inf_ttrace_attach): Don't push the target if it is already
7651 pushed.
7652 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7653 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7654 after mourning the inferior. Use inf_child_maybe_unpush_target.
7655 (darwin_attach_pid): Don't push the target if it is already
7656 pushed.
7657 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7658 mourning the inferior. Use inf_child_maybe_unpush_target.
7659 (gnu_detach): Use inf_child_maybe_unpush_target.
7660 * go32-nat.c (go32_create_inferior): Don't push the target if it
7661 is already pushed.
7662 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7663 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7664 (procfs_open): Rename to ...
7665 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7666 comments. Can target_preopen before changing node. Call
7667 inf_child_open_target to push the target explicitly.
7668 (procfs_attach): Don't push the target if it is already pushed.
7669 (procfs_detach): Use inf_child_maybe_unpush_target.
7670 (procfs_create_inferior): Don't push the target if it is already
7671 pushed.
7672 (nto_native_ops): New global.
7673 (procfs_open): Reimplement.
7674 (procfs_native_open): New function.
7675 (init_procfs_targets): Install procfs_native_open as to_open of
7676 "target native". Store a pointer to the "native" target in
7677 nto_native_ops.
7678 * procfs.c (procfs_attach): Don't push the target if it is already
7679 pushed.
7680 (procfs_detach): Use inf_child_maybe_unpush_target.
7681 (procfs_mourn_inferior): Only unpush the target after mourning the
7682 inferior. Use inf_child_maybe_unpush_target.
7683 (procfs_init_inferior): Don't push the target if it is already
7684 pushed.
7685 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7686 if it is already pushed.
7687
930ee1b1
PA
76882014-05-21 Pedro Alves <palves@redhat.com>
7689
7690 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7691 and "procfs" targets are now called "native" instead.
7692
1f5d1b13
PA
76932014-05-21 Pedro Alves <palves@redhat.com>
7694
7695 * go32-nat.c (go32_open): Delete.
7696 (go32_target): Don't override the to_open method.
7697
132f8e03
PA
76982014-05-21 Pedro Alves <palves@redhat.com>
7699
7700 * nto-procfs.c (procfs_can_run): New function.
7701 (nto_procfs_ops): New global.
7702 (init_procfs_targets): New, based on procfs_target. Install
7703 "target native" in addition to "target procfs".
7704 (_initialize_procfs): Call init_procfs_targets instead of adding
7705 the target here.
7706
03c136c3
PA
77072014-05-21 Pedro Alves <palves@redhat.com>
7708
7709 * windows-nat.c (windows_target): Don't override to_shortname,
7710 to_longname or to_doc.
7711
a635d0f3
PA
77122014-05-21 Pedro Alves <palves@redhat.com>
7713
7714 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7715 to_doc.
7716
4f9b5133
PA
77172014-05-21 Pedro Alves <palves@redhat.com>
7718
7719 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7720 to_shortname, to_longname or to_doc.
7721
bc85afde
PA
77222014-05-21 Pedro Alves <palves@redhat.com>
7723
7724 * go32-nat.c (go32_target): Don't override to_shortname,
7725 to_longname or to_doc.
7726
4ebfc96e
PA
77272014-05-21 Pedro Alves <palves@redhat.com>
7728
7729 * inf-child.c (inf_child_open): Remove mention of "child".
7730 (inf_child_target): Rename target to "native" instead of "child".
7731
2648dfed
AA
77322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7733
7734 * Makefile.in (SFILES): Delete "regset.c".
7735 (COMMON_OBS): Delete "regset.o".
7736 * regset.c: Remove.
7737 * regset.h (regset_alloc): Delete prototype.
7738
b13feb94
AA
77392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7740
7741 * sparc-linux-tdep.c (sparc32_linux_gregset)
7742 (sparc32_linux_fpregset): New static regset structures.
7743 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7744 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7745 'fpregset' fields.
7746 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7747 (sparc64_linux_fpregset): New static regset structures.
7748 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7749 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7750 New static regset structures.
7751 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7752 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7753 New static regset structures.
7754 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7755 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7756 New static regset structures.
7757 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7758 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7759 New static regset structures.
7760 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7761
b4fd25c9
AA
77622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7763
7764 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7765 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7766 register maps ("regmaps") from "*regset" to "*regmap". Do this
7767 for all regmap types and variables.
7768 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7769 (sparc32_linux_supply_core_gregset)
7770 (sparc32_linux_collect_core_gregset)
7771 (sparc32_linux_supply_core_fpregset)
7772 (sparc32_linux_collect_core_fpregset): Likewise.
7773 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7774 (sparc_gregmap, sparc_fpregmap): ... these.
7775 (sparc_supply_gregset, sparc_collect_gregset)
7776 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7777 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7778 (_initialize_sparc_nat): Rename regmaps.
7779 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7780 (sparc_gregmap, sparc_fpregmap): ... these.
7781 (sparc_supply_gregset, sparc_collect_gregset)
7782 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7783 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7784 Rename macros to...
7785 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7786 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7787 Likewise.
7788 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7789 Rename to...
7790 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7791 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7792 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7793 regmaps.
7794 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7795 (sparc32_bsd_fpregset): Rename to...
7796 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7797 (sparc32_bsd_fpregmap): ... these.
7798 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7799 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7800 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7801 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7802 (struct sparc_gregmap, struct sparc_fpregmap)
7803 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7804 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7805 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7806 (sparc32_supply_regset, sparc32_collect_gregset)
7807 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7808 prototypes.
7809 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7810 (sparc64_linux_ptrace_gregmap): ... this.
7811 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7812 (_initialize_sparc64_linux_nat): Rename regmaps.
7813 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7814 (sparc64_linux_core_gregmap): ... this.
7815 (sparc64_linux_supply_core_gregset)
7816 (sparc64_linux_collect_core_gregset)
7817 (sparc64_linux_supply_core_fpregset)
7818 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7819 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7820 (sparc64_sol2_fpregset): Rename to...
7821 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7822 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7823 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7824 regmaps.
7825 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7826 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7827 (sparc64_bsd_fpregset): Rename to...
7828 (struct sparc_gregmap, sparc64_sol2_gregmap)
7829 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7830 (sparc64_bsd_fpregmap): ... these.
7831 (sparc64_supply_gregset, sparc64_collect_gregset)
7832 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7833 prototypes.
7834 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7835 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7836 (sparc64fbsd_gregmap): ... this.
7837 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7838 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7839 Rename regmaps.
7840 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7841 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7842 (sparc64nbsd_collect_fpregset): Likewise.
7843 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7844 (sparc64nbsd_gregmap): ... this.
7845 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7846 regmaps.
7847 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7848 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7849 (sparc64obsd_gregmap): ... this.
7850 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7851 regmaps.
7852 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7853 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7854 (sparc32nbsd_gregmap): ... this.
7855 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7856 regmaps.
7857
8fea3224
AA
78582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7859
7860 * score-tdep.c (score7_linux_gregset): New static regset
7861 structure.
7862 (score7_linux_regset_from_core_section): Remove dynamic regset
7863 allocation.
7864 (score_gdbarch_init): Drop allocation of tdep structure.
7865 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7866
24534243
AA
78672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7868
7869 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7870 regset structures.
7871 (am33_regset_from_core_section): Remove dynamic regset
7872 allocations.
7873
b7195f27
AA
78742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7875
7876 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7877 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7878 structures.
7879 (mips_linux_regset_from_core_section): Remove dynamic regset
7880 allocations.
7881 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7882 'gregset64', 'fpregset', and 'fpregset64'.
7883 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7884 deleted tdep fields.
7885
ecc37a5a
AA
78862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7887
7888 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7889 regset structures.
7890 (amd64_regset_from_core_section): Remove dynamic regset
7891 allocations.
7892 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7893 structure.
7894 (amd64obsd_regset_from_core_section): Remove dynamic regset
7895 allocation.
7896 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7897 Likewise.
7898 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7899 x86-common regset supply function.
7900 * i386-tdep.c (i386_collect_gregset): Make static.
7901 (i386_gregset): New global regset structure.
7902 (i386_fpregset, i386_xstateregset): New static regset structures.
7903 (i386_regset_from_core_section): Remove dynamic regset
7904 allocations.
7905 (i386_gdbarch_init): Remove initialization of tdep fields
7906 'gregset', 'fpregset', and 'xstateregset'.
7907 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7908 'fpregset', and 'xstateregset'.
7909 (i386_collect_gregset): Remove prototype.
7910 (i386_gregset): New declaration.
7911 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7912 structure.
7913 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7914 allocation.
7915
b7611c43
AA
79162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7917
7918 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7919 (arm_linux_vfpregset): New static regset structures.
7920 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7921 regset structures.
7922 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7923 and 'vfpregset' fields.
7924
a069a2bd
AA
79252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7926
7927 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7928 (aarch64_linux_fpregset): New static regset structures.
7929 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7930 of regset structures.
7931 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7932 'fpregset' fields.
7933
09424cff
AA
79342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7935
7936 * regset.h (struct regset): Remove gdbarch field.
7937 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7938 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7939 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7940 Likewise.
7941 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7942 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7943 (ppc32_linux_vsxregset): Likewise.
7944 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7945 via the regcache instead of the regset.
7946 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7947 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7948 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7949 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7950 Likewise.
7951
3ca7dae4
AA
79522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7953
7954 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7955 Constify structures.
7956 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7957 (alphanbsd_aout_gregset): Likewise.
7958 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7959 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7960 Likewise.
7961 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7962 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7963 Likewise.
7964 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7965 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7966 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7967 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7968 * m88k-tdep.c (m88k_gregset): Likewise.
7969 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7970 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7971 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7972 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7973 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7974 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7975 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7976 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7977 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7978 Likewise.
7979 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7980 * sh-tdep.h (sh_corefile_gregset): Likewise.
7981 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7982 * vax-tdep.c (vax_gregset): Likewise.
7983
5876f503
JK
79842014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7985
7986 Fix TLS access for -static -pthread.
7987 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7988 (try_thread_db_load_1): Initialize it.
7989 (thread_db_get_thread_local_address): Call it if LM is zero.
7990 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7991 * target.h (struct target_ops) (to_get_thread_local_address): Add
7992 load_module_addr comment.
7993
0256a6ac
PA
79942014-05-21 Pedro Alves <palves@redhat.com>
7995
7996 * dcache.c (dcache_read_memory_partial): If reading the cache line
7997 fails, fallback to reading just the memory the caller wanted.
7998
227533ac
DE
79992014-05-20 Doug Evans <dje@google.com>
8000
8001 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8002 instead of get_current_arch.
8003
936d2992
PA
80042014-05-20 Pedro Alves <palves@redhat.com>
8005
8006 * NEWS: Mention that compare-sections now works with all targets.
8007
8008 * remote.c (PACKET_qCRC): New enum value.
8009 (remote_verify_memory): Don't send qCRC if the target has no
8010 execution. Use packet_support/packet_ok. If the target doesn't
8011 support the qCRC packet, fallback to a deep memory copy.
8012 (compare_sections_command): Say "target image" instead of "remote
8013 executable".
8014 (_initialize_remote): Add PACKET_qCRC to the list of config
8015 packets that have no associated command. Extend comment.
8016 * target.c (simple_verify_memory, default_verify_memory): New
8017 function.
8018 * target.h (struct target_ops) <to_verify_memory>: Default to
8019 default_verify_memory.
8020 (simple_verify_memory): New declaration.
8021 * target-delegates.c: Regenerate.
8022
e59fa00f
MM
80232014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8024
8025 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8026
f2205de0
HZ
80272014-05-20 Hui Zhu <hui@codesourcery.com>
8028 Yao Qi <yao@codesourcery.com>
8029
8030 PR backtrace/16558
8031 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8032 and change address of sp and pc.
8033
c4e54771
TT
80342014-05-19 Tom Tromey <tromey@redhat.com>
8035
8036 * gdbtypes.c (rank_function): Use XNEWVEC.
8037 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8038
73051182
DE
80392014-05-19 Doug Evans <dje@google.com>
8040
8041 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8042 build_type_unit_groups and moved closer to only caller. Remove
8043 arguments. All references updated. Remove outdated .gdb_index
8044 comment.
8045 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8046 build_type_psymtabs_1.
8047
8832e7e3
DE
80482014-05-19 Doug Evans <dje@google.com>
8049
8050 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8051 n_type_unit_groups, all_type_unit_groups. All uses removed.
8052 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8053 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8054 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8055 (add_type_unit_group_to_table): Delete.
8056
cd8ae15e
DE
80572014-05-19 Doug Evans <dje@google.com>
8058
8059 * eval.c (evaluate_subexp_standard): Add some comments.
8060
08f4850b
DE
80612014-05-17 Doug Evans <xdje42@gmail.com>
8062
8063 * progspace.c (remove_program_space): Delete, unused.
8064 * progspace.h (remove_program_space): Ditto.
8065
bed8455c
DE
80662014-05-17 Doug Evans <xdje42@gmail.com>
8067
8068 * inferior.c (prune_inferiors): Fix comment.
8069 (remove_inferior_command): Call prune_program_spaces.
8070
8d551b02
DE
80712014-05-16 Doug Evans <dje@google.com>
8072
8073 New command line option -D.
8074 * NEWS: Mention it.
8075 * main.c (set_gdb_data_directory): New function.
8076 (captured_main): Recognize -D. Flag error for --data-directory "".
8077 Call set_gdb_data_directory.
8078 (print_gdb_help): Print --data-directory, -D.
8079 * main.h (set_gdb_data_directory): Declare.
8080 * top.c (staged_gdb_datadir): New static global.
8081 (set_gdb_datadir): Call set_gdb_data_directory
8082 (show_gdb_datadir): New function.
8083 (init_main): Update init of data-directory parameter.
8084
18848e28
GF
80852014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8086
8087 Import the "dirfd" gnulib module.
8088 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8089 * gnulib/aclocal.m4: Update.
8090 * gnulib/config.in: Update.
8091 * gnulib/configure: Update.
8092 * gnulib/import/Makefile.am: Update.
8093 * gnulib/import/Makefile.in: Update.
8094 * gnulib/import/dirfd.c: New.
8095 * gnulib/import/m4/dirfd.m4: New.
8096 * gnulib/import/m4/gnulib-cache.m4: Update.
8097 * gnulib/import/m4/gnulib-comp.m4: Update.
8098
95c64f92
YQ
80992014-05-16 Pierre Muller <muller@sourceware.org>
8100 Yao Qi <yao@codesourcery.com>
8101
8102 * valprint.c (print_wchar): Move the code on checking whether
8103 W is a printable wide char to the default branch of switch
8104 statement below. Call wchar_printable instead of gdb_iswprint.
8105
cac395ea
TM
81062014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8107
19679eca 8108 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8109 ldr.w and ldrd instructions.
8110
83655187
DE
81112014-05-15 Doug Evans <dje@google.com>
8112
8113 * dwarf2read.c (read_structure_type): Delete outdated comments.
8114
dd756689
TT
81152014-05-14 Tom Tromey <tromey@redhat.com>
8116
8117 * macrocmd.c (print_macro_definition): Reindent.
8118
75ddda77
DE
81192014-05-13 Doug Evans <xdje42@gmail.com>
8120
8121 * python/py-cmd.c (cmdpy_completer): Add comment.
8122 (completers): Make const.
8123
b0f16a3e
SM
81242014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8125
8126 * infrun.c (resume): Remove should_resume (unused). Move up
8127 declaration of resume_ptid.
8128
033c3379
TT
81292014-05-13 Tom Tromey <tromey@redhat.com>
8130
8131 * language.h (unop_type_check): Remove.
8132 (binop_type_check): Don't declare.
8133
9b44a3a5
AA
81342014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8135
8136 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8137 call to regcache_raw_collect.
8138
303a33fa
SM
81392014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8140
8141 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8142 mi_console->quote as the quoting character.
8143
196100a0
SM
81442014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8145
8146 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8147
f989a1c8
TT
81482014-04-29 Tom Tromey <tromey@redhat.com>
8149
8150 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8151 "show debug varobj".
8152
9404b58f
KM
81532014-05-07 Kyle McMartin <kyle@redhat.com>
8154
8155 Pushed by Joel Brobecker <brobecker@adacore.com>.
8156 * aarch64-tdep.c (aarch64_software_single_step): New function.
8157 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8158 with aarch64_software_single_step.
8159
5e49ba57
JB
81602014-05-05 Joel Brobecker <brobecker@adacore.com>
8161
8162 GDB 7.7.1 released.
8163
c888a17d
KS
81642014-05-05 Keith Seitz <keiths@redhat.com>
8165
8166 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8167 variable or history value is successfully parsed.
8168
290a839c
YQ
81692014-05-05 Yao Qi <yao@codesourcery.com>
8170 Pedro Alves <palves@redhat.com>
8171
8172 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8173 address of blocks that intersects the requested range. Trim
8174 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8175 sections.
8176 * ctf.c (ctf_xfer_partial): Likewise.
8177
91256dc2
YQ
81782014-05-05 Yao Qi <yao@codesourcery.com>
8179
8180 * printcmd.c (display_command): Remove the check to
8181 target_has_execution.
8182
07284463
MK
81832014-05-03 Mark Kettenis <kettenis@gnu.org>
8184
8185 * ppcobsd-nat.c: Include "obsd-nat.h".
8186 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8187 add_target.
8188 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8189
30a1e6cc
SDJ
81902014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8191
8192 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8193 and 16-bit signed and unsigned arguments. Update comment.
8194 (stap_parse_probe_arguments): Extend code to handle such
8195 arguments. Use warning instead of complaint to notify about
8196 unrecognized bitness.
8197
f33da99a
SDJ
81982014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8199
8200 PR breakpoints/16889
8201 * stap-probe.c (stap_parse_probe_arguments): Simplify
8202 check for non-prefixed probes (i.e., probes whose
8203 arguments do not start with "N@"). Always set the
8204 argument type to a sane value.
8205
95cf3b38
DT
82062014-05-01 David Taylor <dtaylor@emc.com>
8207
8208 * remote.c (compare_sections_command): Add -r option to compare
8209 all loadable read-only sections.
8210
1cfdf534
SC
82112014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8212
8213 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8214 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8215 Update all callers.
8216 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8217 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8218 Remove unused CORE_ADDR argument. Update all callers.
8219
ca4f7f8b
PA
82202014-04-29 Pedro Alves <palves@redhat.com>
8221
8222 * remote.c (struct packet_config) <detect>: Extend comment.
8223 (add_packet_config_cmd): Don't set the config's detect or support
8224 fields here.
8225 (init_all_packet_configs): Also initialize the config's 'detect'
8226 field.
8227 (reset_all_packet_configs_support): New function.
8228 (remote_open_1): Call reset_all_packet_configs_support instead of
8229 init_all_packet_configs.
8230 (_initialize_remote): Initialize all packet configs. Assert that
8231 all packets have an associated command, except a few known
8232 outliers.
8233
11c1ba78
JB
82342014-04-28 Joel Brobecker <brobecker@adacore.com>
8235
8236 * dwarf2read.c (read_subrange_type): Handle dynamic
8237 DW_AT_lower_bound attributes.
8238
8739bc53
JB
82392014-04-28 Joel Brobecker <brobecker@adacore.com>
8240
8241 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8242 dynamic bounds before computing its upper bound.
8243 (ada_discrete_type_low_bound): Same as above with the lower bound.
8244
6f8a3220
JB
82452014-04-28 Joel Brobecker <brobecker@adacore.com>
8246
8247 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8248 range types. Adjust the array handling implementation to
8249 take advantage of this change.
8250 (resolve_dynamic_range): New function, mostly extracted from
8251 resolve_dynamic_bounds.
8252 (resolve_dynamic_array): New function, mostly extracted from
8253 resolve_dynamic_bounds.
8254 (resolve_dynamic_bounds): Delete.
8255 (resolve_dynamic_type): Reimplement. Add handling of
8256 TYPE_CODE_RANGE types.
8257
4d072ce4
JB
82582014-04-28 Joel Brobecker <brobecker@adacore.com>
8259
8260 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8261 handling of parallel ___XA types.
8262
52865325
JB
82632014-04-28 Joel Brobecker <brobecker@adacore.com>
8264
8265 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8266 unnecessary second call to static_unwrap_type.
8267
433e77fa
HZ
82682014-04-27 Hui Zhu <hui@codesourcery.com>
8269
8270 * stack.c (print_frame_info): Call do_gdb_disassembly with
8271 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8272
b51a69ee
DE
82732014-04-26 Doug Evans <xdje42@gmail.com>
8274
8275 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8276
7ae1a6a6
PA
82772014-04-25 Pedro Alves <palves@redhat.com>
8278
8279 PR server/16255
8280 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8281 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8282 and newline from built string.
8283 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8284 (linux_ptrace_attach_fail_reason): ... this.
8285 * linux-nat.c (linux_nat_attach): Adjust to use
8286 linux_ptrace_attach_fail_reason.
8287
4082afcc
PA
82882014-04-25 Pedro Alves <palves@redhat.com>
8289
8290 * remote.c (struct remote_state): Remove multi_process_aware,
8291 non_stop_aware, cond_tracepoints, cond_breakpoints,
8292 breakpoint_commands, fast_tracepoints, static_tracepoints,
8293 install_in_trace, disconnected_tracing,
8294 enable_disable_tracepoints, string_tracing, and
8295 augmented_libraries_svr4_read fields.
8296 (remote_multi_process_p): Move further below in the file.
8297 (struct packet_config): Add comments.
8298 (update_packet_config): Delete function.
8299 (show_packet_config_cmd): Use packet_config_support.
8300 (add_packet_config_cmd): Use NULL as set callback.
8301 (packet_ok): "set remote foo-packet"-style commands no longer
8302 change config->supported -- adjust.
8303 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8304 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8305 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8306 (PACKET_QNonStop, PACKET_multiprocess_feature)
8307 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8308 (PACKET_DisconnectedTracing_feature)
8309 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8310 (set_remote_protocol_packet_cmd): Delete function.
8311 (packet_config_support, packet_support): New functions.
8312 (set_remote_protocol_Z_packet_cmd): Don't call
8313 update_packet_config.
8314 (remote_query_attached, remote_pass_signals)
8315 (remote_program_signals, remote_threads_info)
8316 (remote_threads_extra_info, remote_start_remote): Use
8317 packet_support.
8318 (remote_start_remote): Use packet_config_support and
8319 packet_support.
8320 (init_all_packet_configs): Set all packets to unknown support,
8321 instead of calling update_packet_config.
8322 (remote_check_symbols): Use packet_support.
8323 (remote_supported_packet): Unconditionally set the packet config's
8324 support status.
8325 (remote_multi_process_feature, remote_non_stop_feature)
8326 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8327 (remote_breakpoint_commands_feature)
8328 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8329 (remote_install_in_trace_feature)
8330 (remote_disconnected_tracing_feature)
8331 (remote_enable_disable_tracepoint_feature)
8332 (remote_string_tracing_feature)
8333 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8334 (remote_protocol_features): Adjust to use remote_supported_packet
8335 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8336 "ConditionalTracepoints", "ConditionalBreakpoints",
8337 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8338 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8339 "EnableDisableTracepoints", and "tracenz".
8340 (remote_query_supported): Use packet_support.
8341 (remote_open_1): Adjust.
8342 (extended_remote_attach_1): Use packet_support. Switch on the
8343 result of packet_ok instead of checking whether the packet ended
8344 up disabled.
8345 (remote_vcont_resume): Use packet_support.
8346 (remote_resume, remote_stop_ns, fetch_register_using_p)
8347 (remote_prepare_to_store, store_register_using_P)
8348 (check_binary_download, remote_write_bytes): Use packet_support.
8349 (remote_vkill): Use packet_support. Switch on the result of
8350 packet_ok instead of checking whether the packet ended up
8351 disabled.
8352 (extended_remote_supports_disable_randomization): Use
8353 packet_support.
8354 (extended_remote_run): Switch on the result of packet_ok instead
8355 of checking whether the packet ended up disabled.
8356 (remote_insert_breakpoint, remote_remove_breakpoint)
8357 (remote_insert_watchpoint, remote_remove_watchpoint)
8358 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8359 packet_support.
8360 (remote_search_memory): Use packet_config_support.
8361 (remote_get_thread_local_address, remote_get_tib_address)
8362 (remote_hostio_send_command, remote_can_execute_reverse): Use
8363 packet_support.
8364 (remote_supports_cond_tracepoints)
8365 (remote_supports_cond_breakpoints)
8366 (remote_supports_fast_tracepoints)
8367 (remote_supports_static_tracepoints)
8368 (remote_supports_install_in_trace)
8369 (remote_supports_enable_disable_tracepoint)
8370 (remote_supports_string_tracing)
8371 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8372 the packet config says the feature is enabled or disabled.
8373 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8374 (remote_get_trace_status): Use packet_support.
8375 (remote_set_disconnected_tracing): Adjust to check whether the
8376 feature is enabled with packet_support.
8377 (remote_set_trace_buffer_size, remote_use_agent)
8378 (remote_can_use_agent, remote_supports_btrace): Use
8379 packet_support.
8380 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8381 Use packet_config_support.
8382 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8383 the packet config says the feature is enabled or disabled.
8384 (set_range_stepping): Use packet_support.
8385
bdb52a22
TT
83862014-04-25 Tom Tromey <tromey@redhat.com>
8387
8388 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8389 argument.
8390
e9475ead
SA
83912014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8392
8393 * NEWS: Mention support for C99 variable length arrays.
8394
82eacd52
JB
83952014-04-24 Joel Brobecker <brobecker@adacore.com>
8396
8397 * ada-lang.c (standard_exc): Expand introductory comment.
8398
01f9f808
MS
83992014-04-24 Michael Sturm <michael.sturm@mintel.com>
8400 Walfred Tedeschi <walfred.tedeschi@intel.com>
8401
8402 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8403 AVX512 registers.
8404 (amd64_linux_read_description): Add code to handle AVX512 xstate
8405 mask and return respective tdesc.
8406 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8407 and features/i386/x32-avx512-linux.c.
8408 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8409 (amd64_linux_core_read_description): Add code to handle AVX512
8410 xstate mask and return respective tdesc.
8411 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8412 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8413 calculation.
8414 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8415 (tdesc_amd64_avx512_linux): New prototype.
8416 (tdesc_x32_avx512_linux): Likewise.
8417 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8418 features/i386/x32-avx512.c.
8419 (amd64_ymm_avx512_names): New register names for pseudo
8420 registers YMM16-31.
8421 (amd64_ymmh_avx512_names): New register names for raw registers
8422 YMMH16-31.
8423 (amd64_k_names): New register names for K registers.
8424 (amd64_zmmh_names): New register names for ZMM raw registers.
8425 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8426 (amd64_xmm_avx512_names): New register names for XMM16-31
8427 registers.
8428 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8429 registers.
8430 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8431 if feature is present.
8432 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8433 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8434 (AMD64_NUM_REGS): Adjust to new number of registers.
8435 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8436 registers supplied via XSTATE by AVX512 registers.
8437 (i386_linux_read_description): Add case for AVX512.
8438 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8439 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8440 (i386_linux_core_read_description): Add case for AVX512.
8441 (i386_linux_init_abi): Install supported register note section
8442 for AVX512.
8443 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8444 AVX512.
8445 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8446 registers to be number of zmm7h + 1.
8447 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8448 * i386-tdep.c: Include features/i386/i386-avx512.c.
8449 (i386_zmm_names): Add ZMM pseudo register names array.
8450 (i386_zmmh_names): Add ZMM raw register names array.
8451 (i386_k_names): Add K raw register names array.
8452 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8453 registers. AVX512 has 16 more ZMM registers than there are YMM
8454 registers.
8455 (i386_zmmh_regnum_p): Add function to look up register number of
8456 ZMM raw registers.
8457 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8458 (i386_k_regnum_p): Likewise for K raw registers.
8459 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8460 registers added by AVX512.
8461 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8462 registers added by AVX512.
8463 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8464 added by AVX512.
8465 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8466 (i386_pseudo_register_name): Add ZMM pseudo registers.
8467 (i386_zmm_type): Construct and return vector registers type for ZMM
8468 registers.
8469 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8470 ZMM0-31 pseudo registers and K registers.
8471 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8472 and YMM16-31 registers from register cache.
8473 (i386_pseudo_register_write): Add code to write K, ZMM and
8474 YMM16-31 registers.
8475 (i386_register_reggroup_p): Add code to include/exclude AVX512
8476 registers in/from respective register groups.
8477 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8478 registers if feature is present in xcr0.
8479 (i386_gdbarch_init): Add code to initialize AVX512 feature
8480 variables in tdep structure, wire in pseudo registers and call
8481 initialize_tdesc_i386_avx512.
8482 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8483 variables.
8484 (i386_regnum): Add AVX512 registers.
8485 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8486 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8487 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8488 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8489 512 bits wide.
8490 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8491 (i386_ymm_avx512_regnum_p): Likewise.
8492 (i386_k_regnum_p): Likewise.
8493 (i386_zmm_regnum_p): Likewise.
8494 (i386_zmmh_regnum_p): Likewise.
8495 * i387-tdep.c : Update year in copyright notice.
8496 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8497 XSAVE buffer.
8498 (XSAVE_YMM_AVX512_ADDR): New macro.
8499 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8500 XSAVE buffer.
8501 (XSAVE_XMM_AVX512_ADDR): New macro.
8502 (xsave_avx512_k_offset): New table for K register offsets in
8503 XSAVE buffer.
8504 (XSAVE_AVX512_K_ADDR): New macro.
8505 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8506 in XSAVE buffer.
8507 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8508 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8509 buffer.
8510 (i387_collect_xsave): Add code to collect AVX512 registers from
8511 XSAVE buffer.
8512 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8513 of XMM16-31 registers.
8514 (I387_NUM_K_REGS): New define for number of K registers.
8515 (I387_K0_REGNUM): New define for K0 register number.
8516 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8517 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8518 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8519 registers.
8520 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8521 (I387_XMM16_REGNUM): New define for XMM16 register number.
8522 (I387_YMM0_REGNUM): New define for YMM0 register number.
8523 (I387_KEND_REGNUM): New define for last K register number.
8524 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8525 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8526 number.
8527 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8528 number.
8529 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8530 size.
8531 * features/Makefile: Add AVX512 related files.
8532 * features/i386/32bit-avx512.xml: New file.
8533 * features/i386/64bit-avx512.xml: Likewise.
8534 * features/i386/amd64-avx512-linux.c: Likewise.
8535 * features/i386/amd64-avx512-linux.xml: Likewise.
8536 * features/i386/amd64-avx512.c: Likewise.
8537 * features/i386/amd64-avx512.xml: Likewise.
8538 * features/i386/i386-avx512-linux.c: Likewise.
8539 * features/i386/i386-avx512-linux.xml: Likewise.
8540 * features/i386/i386-avx512.c: Likewise.
8541 * features/i386/i386-avx512.xml: Likewise.
8542 * features/i386/x32-avx512-linux.c: Likewise.
8543 * features/i386/x32-avx512-linux.xml: Likewise.
8544 * features/i386/x32-avx512.c: Likewise.
8545 * features/i386/x32-avx512.xml: Likewise.
8546 * regformats/i386/amd64-avx512-linux.dat: New file.
8547 * regformats/i386/amd64-avx512.dat: Likewise.
8548 * regformats/i386/i386-avx512-linux.dat: Likewise.
8549 * regformats/i386/i386-avx512.dat: Likewise.
8550 * regformats/i386/x32-avx512-linux.dat: Likewise.
8551 * regformats/i386/x32-avx512.dat: Likewise.
8552 * NEWS: Add note about new support for AVX512.
8553
8554
08351840
PA
85552014-04-23 Pedro Alves <palves@redhat.com>
8556
8557 * breakpoint.c (insert_bp_location): Tolerate errors if the
8558 breakpoint is set in a user-loaded objfile.
8559 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8560 location is marked shlib_disabled. If the breakpoint is set in a
8561 user-loaded objfile is a GDB-side memory breakpoint, validate it
8562 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8563 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8564 flag.
8565 * mem-break.c (memory_validate_breakpoint): New function.
8566 * objfiles.c (userloaded_objfile_contains_address_p): New
8567 function.
8568 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8569 * target.h (memory_validate_breakpoint): New declaration.
8570
076855f9
PA
85712014-04-23 Pedro Alves <palves@redhat.com>
8572
8573 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8574 the breakpoint is set in a shared library, only suppress
8575 errors for software breakpoints, not hardware breakpoints.
8576
483805cf
PA
85772014-04-22 Pedro Alves <palves@redhat.com>
8578
8579 * infrun.c (schedlock_applies): New function, factored out from
8580 find_thread_needs_step_over.
8581 (find_thread_needs_step_over): Use it.
8582 (switch_back_to_stepped_thread): Always clear trap_expected if the
8583 step over is finished. Return early if scheduler locking applies.
8584 Look for the stepping thread and a potential step-over thread with
8585 a single loop.
8586 (currently_stepping_or_nexting_callback): Delete.
8587
a75fef0e
NC
85882014-04-22 Nick Clifton <nickc@redhat.com>
8589
8590 * NEWS: Mention that ARM sim now supports tracing.
8591
48b6e87e
YQ
85922014-04-22 Yao Qi <yao@codesourcery.com>
8593
8594 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8595 to ...
8596 * tracefile.c (tracefile_fetch_registers): ... it. New
8597 function.
8598 * tracefile.h (tracefile_fetch_registers): Declare.
8599 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8600 tracefile_fetch_registers.
8601
17617f2d
EZ
86022014-04-19 Eli Zaretskii <eliz@gnu.org>
8603
8604 PR gdb/14018
8605 * windows-nat.c (thread_rec): Don't display a warning when
8606 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8607 fails for any reason, set th->suspended to -1, so that we don't
8608 try to resume such a thread. Also, don't return NULL in these
8609 cases, to avoid completely ruin the session due to "PC register is
8610 not available" error.
8611 (do_windows_fetch_inferior_registers): Check errors in
8612 GetThreadContext call.
8613 (windows_continue): Accept an additional argument KILLED; if not
8614 zero, ignore errors in the SetThreadContext call, since the
8615 inferior was killed and is shutting down.
8616 (windows_resume, get_windows_debug_event)
8617 (windows_create_inferior, windows_mourn_inferior)
8618 (windows_kill_inferior): All callers of windows_continue changed
8619 to adjust to its new calling sequence.
8620
5723a6fd
YQ
86212014-04-19 Yao Qi <yao@codesourcery.com>
8622
8623 * ctf.c (ctf_open): Call post_create_inferior.
8624
614d5099
YQ
86252014-04-19 Yao Qi <yao@codesourcery.com>
8626
8627 * ctf.c (handle_id): New static variable.
8628 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8629 value. Get the declaration of event "register" and get length
8630 of field "contents".
8631
dac3e710
YQ
86322014-04-19 Yao Qi <yao@codesourcery.com>
8633
8634 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8635
2bca57ba
SC
86362014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8637
8638 * valops.c (oload_method_static): Remove unnecessary argument
8639 METHOD. Update all callers.
8640
51d48146
PA
86412014-04-18 Pedro alves <palves@redhat.com>
8642 Tom Tromey <tromey@redhat.com>
8643
8644 PR backtrace/15558
8645 * frame.c (get_prev_frame_1): Rename to ...
8646 (get_prev_frame_always): ... this, and make extern. Adjust.
8647 (skip_artificial_frames): Use get_prev_frame_always.
8648 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8649 (get_frame_unwind_stop_reason): Adjust to rename.
8650 * frame.h (get_prev_frame_always): Declare.
8651 * inline-frame.c: Include frame.h.
8652 (inline_frame_this_id): Use get_prev_frame_always.
8653
1bdad2e0
TG
86542014-04-18 Tristan Gingold <gingold@adacore.com>
8655
8656 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8657 code by using bfd_mach_o_get_base_address.
8658
7ce16bd4
UW
86592014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8660
8661 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8662 (spu_ax_pseudo_register_collect): New function.
8663 (spu_ax_pseudo_register_push_stack): Likewise.
8664 (spu_dwarf_reg_to_regnum): Likewise.
8665 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8666
2ed3c037
UW
86672014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8668
8669 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8670 Replace FRAME argument with FRAME_ID.
8671 * gdbarch.c, gdbarch.h: Regenerate.
8672 * findvar.c (default_value_from_register): Add GDBARCH argument;
8673 replace FRAME by FRAME_ID. No longer call get_frame_id.
8674 (value_from_register): Update call to gdbarch_value_from_register.
8675 * value.h (default_value_from_register): Update prototype.
8676 * s390-linux-tdep.c (s390_value_from_register): Update interface
8677 and call to default_value_from_register.
8678 * spu-tdep.c (spu_value_from_register): Likewise.
8679
8680 * findvar.c (address_from_register): Remove TYPE argument.
8681 Do not call value_from_register; use gdbarch_value_from_register
8682 with null_frame_id instead.
8683 * value.h (address_from_register): Update prototype.
8684 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8685 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8686 address_from_register interface change.
8687
71e50e83
YQ
86882014-04-17 Yao Qi <yao@codesourcery.com>
8689
8690 * gdbtypes.h: Update comments to link to types and macros'
8691 definitions.
8692
7a23c549
SC
86932014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8694
8695 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8696
22869d73
KS
86972014-04-16 Keith Seitz <keiths@redhat.com>
8698
8699 PR gdb/15827
8700 * dwarf2read.c (skip_one_die): Check that all relative-offset
8701 sibling DIEs fall within range of the current reader's buffer.
8702 (read_partial_die): Likewise.
8703
c4f87ca6
KS
87042014-04-16 Keith Seitz <keiths@redhat.com>
8705
8706 PR c++/16597
8707 * cp-namespace.c (lookup_symbol_file): If the type name of
8708 `this' is NULL, return immediately.
8709
b50c8614
KS
87102014-04-14 Keith Seitz <keiths@redhat.com>
8711
8712 PR c++/16253
8713 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8714 from symbol_matches_domain in symtab.c. All local callers
8715 of symbol_matches_domain updated.
8716 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8717 search STRUCT_DOMAIN.
8718 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8719 independently. standard_lookup will do that automatically.
8720 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8721 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8722 (cp_lookup_symbol_in_namespace): Likewise.
8723 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8724 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8725 may return a STRUCT_DOMAIN match.
8726 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8727 * cp-support.c: Include language.h.
8728 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8729 VAR_DOMAIN.
8730 * psymtab.c (match_partial_symbol): Compare the requested
8731 domain with the symbol's domain directly.
8732 (lookup_partial_symbol): Likewise.
8733 * symtab.c (lookup_symbol_in_language): Explain when/why
8734 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8735 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8736 appropriate languages.
8737 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8738 and moved to ada-lang.c
8739 (lookup_block_symbol): Explain that this function only returns
8740 symbol matching the requested DOMAIN.
8741 Compare the requested domain with the symbol's domain directly.
8742 (iterate_over_symbols): Compare the requested domain with the
8743 symbol's domain directly.
8744 * symtab.h (symbol_matches_domain): Remove.
8745
3d567982
TT
87462014-04-14 Tom Tromey <tromey@redhat.com>
8747
8748 PR c++/15246:
8749 * c-exp.y (type_aggregate_p): New function.
8750 (qualified_name, classify_inner_name): Use it.
8751 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8752 and TYPE_TARGET_TYPE of an enum type.
8753 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8754 an enum type.
8755 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8756 handle TYPE_DECLARED_CLASS.
8757 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8758 types.
8759 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8760 * valops.c (enum_constant_from_type): New function.
8761 (value_aggregate_elt): Use it.
8762 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8763 TYPE_CODE_ENUM.
8764
c848d642
TT
87652014-04-14 Tom Tromey <tromey@redhat.com>
8766
8767 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8768 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8769 const.
8770 * value.h (value_aggregate_elt): Update.
8771
0626fc76
TT
87722014-04-14 Tom Tromey <tromey@redhat.com>
8773
8774 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8775
5ecaaa66
SA
87762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8777
8778 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8779 (evaluate_subexp_standard): Pass noside argument.
8780 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8781 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8782 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8783 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8784 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8785
1612e0c0
SA
87862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8787
8788 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8789 points to a constant blob.
8790
c451ebe5
SA
87912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8792
8793 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8794 property and store it as the high bound and flag the range accordingly.
8795 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8796 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8797 * gdbtypes.h (enum range_flags): New enum.
8798 (struct range_bounds): Add flags member.
8799
1d42e4c4
SA
88002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8801
8802 * c-typeprint.c (c_type_print_varspec_suffix): Added
8803 check for not yet resolved high bound. If unresolved, print
8804 "variable length" string to the console instead of random
8805 length.
8806
9f1f738a
SA
88072014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8808
8809 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8810 value.
8811 (ada_template_to_fixed_record_type_1): Likewise.
8812 (ada_to_fixed_type_1): Likewise.
8813 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8814 (cp_print_value): Likewise.
8815 * d-valprint.c (dynamic_array_type): Likewise.
8816 * findvar.c (address_of_variable): Likewise.
8817 * jv-valprint.c (java_value_print): Likewise.
8818 * valops.c (value_ind): Likewise.
8819 * value.c (coerce_ref): Likewise.
8820
3c8452d4
SA
88212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8822
8823 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8824 value and retrieve the dynamic type size.
8825
4ad88275
SA
88262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8827
8828 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8829 passed to sizeof is dynamic evaluate the argument to compute the length.
8830
80180f79
SA
88312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8832 Joel Brobecker <brobecker@adacore.com>
8833
8834 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8835 (dwarf2_evaluate_property): New function.
8836 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8837 * dwarf2read.c (attr_to_dynamic_prop): New function.
8838 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8839 attribute.
8840 * gdbtypes.c: Include dwarf2loc.h.
8841 (is_dynamic_type): New function.
8842 (resolve_dynamic_type): New function.
8843 (resolve_dynamic_bounds): New function.
8844 (get_type_length): New function.
8845 (check_typedef): Use get_type_length to compute type length.
8846 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8847 (TYPE_LOW_BOUND_KIND): New macro.
8848 (is_dynamic_type): New function prototype.
8849 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8850 to resolve dynamic properties of the type. Update comment.
8851 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8852
a1556843
RH
88532014-04-14 Richard Henderson <rth@redhat.com>
8854
8855 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8856
0be03e84
DE
88572014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8858 Doug Evans <xdje42@gmail.com>
8859
8860 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8861 dereference TYPE_CODE_REF values.
8862
6b662e19
JB
88632014-04-11 Joel Brobecker <brobecker@adacore.com>
8864
8865 Revert the following changes due to regressions:
8866
8867 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8868 (dwarf2_evaluate_property): New function.
8869 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8870 * dwarf2read.c (attr_to_dynamic_prop): New function.
8871 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8872 attribute.
8873 * gdbtypes.c: Include dwarf2loc.h.
8874 (is_dynamic_type): New function.
8875 (resolve_dynamic_type): New function.
8876 (resolve_dynamic_bounds): New function.
8877 (get_type_length): New function.
8878 (check_typedef): Use get_type_length to compute type length.
8879 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8880 (TYPE_LOW_BOUND_KIND): New macro.
8881 (is_dynamic_type): New function prototype.
8882 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8883 to resolve dynamic properties of the type. Update comment.
8884 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8885
8886 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8887 passed to sizeof is dynamic evaluate the argument to compute the length.
8888
8889 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8890 value and retrieve the dynamic type size.
8891
8892 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8893 (ada_template_to_fixed_record_type_1): Likewise.
8894 (ada_to_fixed_type_1): Likewise.
8895 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8896 (cp_print_value): Likewise.
8897 * d-valprint.c (dynamic_array_type): Likewise.
8898 * eval.c (evaluate_subexp_with_coercion): Likewise.
8899 * findvar.c (address_of_variable): Likewise.
8900 * jv-valprint.c (java_value_print): Likewise.
8901 * valops.c (value_ind): Likewise.
8902 * value.c (coerce_ref): Likewise.
8903
8904 * c-typeprint.c (c_type_print_varspec_suffix): Added
8905 check for not yet resolved high bound. If unresolved, print
8906 "variable length" string to the console instead of random
8907 length.
8908
8909 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8910 property and store it as the high bound and flag the range accordingly.
8911 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8912 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8913 * gdbtypes.h (enum range_flags): New enum.
8914 (struct range_bounds): Add flags member.
8915
8916 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8917 points to a constant blob.
8918
8919 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8920 (evaluate_subexp_standard): Pass noside argument.
8921 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8922 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8923 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8924 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8925 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8926
245a5f0b
KS
89272014-04-11 Keith Seitz <keiths@redhat.com>
8928
8929 PR c++/16675
8930 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8931 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8932 reference types.
8933
3bce8237
SA
89342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8935
8936 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8937 (evaluate_subexp_standard): Pass noside argument.
8938 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8939 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8940 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8941 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8942 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8943
92b09522
SA
89442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8945
8946 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8947 points to a constant blob.
8948
e1969afb
SA
89492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8950
8951 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8952 property and store it as the high bound and flag the range accordingly.
8953 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8954 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8955 * gdbtypes.h (enum range_flags): New enum.
8956 (struct range_bounds): Add flags member.
8957
b86138fb
SA
89582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8959
8960 * c-typeprint.c (c_type_print_varspec_suffix): Added
8961 check for not yet resolved high bound. If unresolved, print
8962 "variable length" string to the console instead of random
8963 length.
8964
bcd629a4
SA
89652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8966
8967 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8968 (ada_template_to_fixed_record_type_1): Likewise.
8969 (ada_to_fixed_type_1): Likewise.
8970 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8971 (cp_print_value): Likewise.
8972 * d-valprint.c (dynamic_array_type): Likewise.
8973 * eval.c (evaluate_subexp_with_coercion): Likewise.
8974 * findvar.c (address_of_variable): Likewise.
8975 * jv-valprint.c (java_value_print): Likewise.
8976 * valops.c (value_ind): Likewise.
8977 * value.c (coerce_ref): Likewise.
8978
04b19544
SA
89792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8980
8981 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8982 value and retrieve the dynamic type size.
8983
26cb189f
SA
89842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8985
8986 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8987 passed to sizeof is dynamic evaluate the argument to compute the length.
8988
37c1ab67
SA
89892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8990
8991 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8992 (dwarf2_evaluate_property): New function.
8993 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8994 * dwarf2read.c (attr_to_dynamic_prop): New function.
8995 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8996 attribute.
8997 * gdbtypes.c: Include dwarf2loc.h.
8998 (is_dynamic_type): New function.
8999 (resolve_dynamic_type): New function.
9000 (resolve_dynamic_bounds): New function.
9001 (get_type_length): New function.
9002 (check_typedef): Use get_type_length to compute type length.
9003 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9004 (TYPE_LOW_BOUND_KIND): New macro.
9005 (is_dynamic_type): New function prototype.
9006 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9007 to resolve dynamic properties of the type. Update comment.
9008 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9009
729efb13
SA
90102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9011
9012 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9013 declaring high/low bounds and change uses accordingly. Call
9014 create_range_type instead of create_static_range_type.
9015 * gdbtypes.c (create_range_type): New function.
9016 (create_range_type): Convert bounds into struct bound_prop and pass
9017 them to create_range_type.
9018 * gdbtypes.h (struct bound_prop): New struct.
9019 (create_range_type): New function prototype.
9020 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9021 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9022 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9023 part of the bound.
9024 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9025
0c9c3474
SA
90262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9027
9028 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9029 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9030 * ada-lang.c: All uses of create_range_type updated.
9031 * coffread.c: All uses of create_range_type updated.
9032 * dwarf2read.c: All uses of create_range_type updated.
9033 * f-exp.y: All uses of create_range_type updated.
9034 * m2-valprint.c: All uses of create_range_type updated.
9035 * mdebugread.c: All uses of create_range_type updated.
9036 * stabsread.c: All uses of create_range_type updated.
9037 * valops.c: All uses of create_range_type updated.
9038 * valprint.c: All uses of create_range_type updated.
9039
9d497a19
PA
90402014-04-10 Pedro Alves <palves@redhat.com>
9041
9042 * breakpoint.c (single_step_breakpoints)
9043 (single_step_gdbarch): Move up in the file.
9044 (one_breakpoint_xfer_memory): New function, factored out from ...
9045 (breakpoint_xfer_memory): ... here. Also process single-step
9046 breakpoints.
9047
15a9128a
TG
90482014-04-09 Tristan Gingold <gingold@adacore.com>
9049
9050 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9051 comments.
9052 (darwin_decode_exception_message): Free port only after use.
9053
9c97a070
PL
90542014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9055
9056 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9057 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9058 when setting the size of call_length.
9059
7af389b8
SC
90602014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9061
9062 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9063 dereference TYPE_CODE_REF values.
9064
86ad98c3
JB
90652014-04-07 Joel Brobecker <brobecker@adacore.com>
9066
9067 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9068 end of warning message.
9069
b0aeadb3
DE
90702014-04-03 Doug Evans <dje@google.com>
9071
9072 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9073 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9074
5979d6b6
AM
90752014-04-02 Alan Modra <amodra@gmail.com>
9076
9077 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9078 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9079 (struct symbol_file_add_from_memory_args): Add size field.
9080 (find_vdso_size): New function.
9081 (add_vsyscall_page): Attempt to find vdso size.
9082
0d60c288
DE
90832014-04-01 Doug Evans <dje@google.com>
9084
9085 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9086
a41f2563
TG
90872014-04-01 Tristan Gingold <gingold@adacore.com>
9088
9089 * darwin-nat.c (darwin_encode_reply): Add prototype.
9090 (darwin_decode_exception_message): Reply to unknown inferiors.
9091 (darwin_decode_message): Handle message by id. Ignore message
9092 to unknown inferior.
9093 (darwin_wait): Discard unknown messages, add debug trace.
9094
11a865c8
DE
90952014-03-31 Doug Evans <dje@google.com>
9096
9097 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9098 comp_dir_string.
9099
770e7fc7
DE
91002014-03-31 Doug Evans <dje@google.com>
9101
9102 New option "set print symbol-loading".
9103 * NEWS: Mention it.
9104 * solib.c (solib_read_symbols): Only print symbol loading messages
9105 if requested.
9106 (solib_add): If symbol loading is in "brief" mode, notify user
9107 symbols are being loaded.
9108 (reload_shared_libraries_1): Ditto.
9109 * symfile.c (print_symbol_loading_off): New static global.
9110 (print_symbol_loading_brief): New static global.
9111 (print_symbol_loading_full): New static global.
9112 (print_symbol_loading_enums): New static global.
9113 (print_symbol_loading): New static global.
9114 (print_symbol_loading_p): New function.
9115 (symbol_file_add_with_addrs): Only print symbol loading messages
9116 if requested.
9117 (_initialize_symfile): Register "print symbol-loading" set/show
9118 command.
9119 * symfile.h (print_symbol_loading_p): Declare.
9120
c32c64b7
DE
91212014-03-30 Doug Evans <xdje42@gmail.com>
9122
9123 * infrun.c (set_last_target_status): New function.
9124 (handle_inferior_event): Call it.
9125
7c0bc051
DE
91262014-03-30 Doug Evans <xdje42@gmail.com>
9127
9128 * inferior.h (enum stop_kind): Improve comment.
9129
8776cfe9
JB
91302014-03-28 Joel Brobecker <brobecker@adacore.com>
9131
9132 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9133 a reference, strip the reference layer before calling
9134 the lang_ops value_has_mutated callback.
9135
410a0ff2
SDJ
91362014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9137
9138 Remove some globals from our parser.
9139 * language.c (unk_lang_parser): Add "struct parser_state"
9140 argument.
9141 * language.h (struct language_defn) <la_parser>: Likewise.
9142 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9143 (initialize_expout): Add "struct parser_state" argument.
9144 Rewrite function to use the parser state.
9145 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9146 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9147 write_exp_elt_longcst, write_exp_elt_dblcst,
9148 write_exp_elt_decfloatcst, write_exp_elt_type,
9149 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9150 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9151 write_dollar_variable): Likewise.
9152 (parse_exp_in_context_1): Use parser state.
9153 (insert_type_address_space): Add "struct parser_state" argument.
9154 Use parser state.
9155 (increase_expout_size): New function.
9156 * parser-defs.h: Forward declare "struct language_defn" and
9157 "struct parser_state".
9158 (expout, expout_size, expout_ptr): Remove extern declarations.
9159 (parse_gdbarch, parse_language): Rewrite macro declarations to
9160 accept the parser state.
9161 (struct parser_state): New struct.
9162 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9163 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9164 write_exp_elt_decfloatcst, write_exp_elt_type,
9165 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9166 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9167 write_exp_msymbol, write_dollar_variable,
9168 mark_struct_expression, insert_type_address_space): Add "struct
9169 parser_state" argument.
9170 (increase_expout_size): New function.
9171 * utils.c (do_clear_parser_state): New function.
9172 (make_cleanup_clear_parser_state): Likewise.
9173 * utils.h (make_cleanup_clear_parser_state): New function
9174 prototype.
9175 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9176 Update calls to write_exp* in order to pass the parser state.
9177 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9178 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9179 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9180 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9181 * stap-probe.c (stap_parse_register_operand): Likewise.
9182 (stap_parse_single_operand): Likewise.
9183 (stap_parse_argument_1): Likewise.
9184 (stap_parse_argument): Use parser state.
9185 * stap-probe.h: Include "parser-defs.h".
9186 (struct stap_parse_info) <pstate>: New field.
9187 * c-exp.y (parse_type): Rewrite to use parser state.
9188 (yyparse): Redefine to c_parse_internal.
9189 (pstate): New global variable.
9190 (parse_number): Add "struct parser_state" argument.
9191 (write_destructor_name): Likewise.
9192 (type_exp): Update calls to write_exp* and similars in order to
9193 use parser state.
9194 (exp1, exp, variable, qualified_name, space_identifier,
9195 typename, typebase): Likewise.
9196 (write_destructor_name, parse_number, lex_one_token,
9197 classify_name, classify_inner_name, c_parse): Add "struct
9198 parser_state" argument. Update function to use parser state.
9199 * c-lang.h: Forward declare "struct parser_state".
9200 (c_parse): Add "struct parser_state" argument.
9201 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9202 (yyparse): Redefine macro to ada_parse_internal.
9203 (pstate): New variable.
9204 (write_int, write_object_renaming, write_var_or_type,
9205 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9206 type_int, type_long, type_long_long, type_float, type_double,
9207 type_long_double, type_char, type_boolean, type_system_address):
9208 Add "struct parser_state" argument.
9209 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9210 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9211 var_or_type, aggregate, aggregate_component_list,
9212 positional_list, others, component_group,
9213 component_associations): Update calls to write_exp* and similar
9214 functions in order to use parser state.
9215 (ada_parse, write_var_from_sym, write_int,
9216 write_exp_op_with_string, write_object_renaming,
9217 find_primitive_type, write_selectors, write_ambiguous_var,
9218 write_var_or_type, write_name_assoc, type_int, type_long,
9219 type_long_long, type_float, type_double, type_long_double,
9220 type_char, type_boolean, type_system_address): Add "struct
9221 parser_state" argument. Adjust function to use parser state.
9222 * ada-lang.c (parse): Likewise.
9223 * ada-lang.h: Forward declare "struct parser_state".
9224 (ada_parse): Add "struct parser_state" argument.
9225 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9226 calls to both functions.
9227 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9228 parser state.
9229 (yyparse): Redefine macro to f_parse_internal.
9230 (pstate): New variable.
9231 (parse_number): Add "struct parser_state" argument.
9232 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9233 and similars in order to use parser state.
9234 (parse_number): Adjust code to use parser state.
9235 (yylex): Likewise.
9236 (f_parse): New function.
9237 * f-lang.h: Forward declare "struct parser_state".
9238 (f_parse): Add "struct parser_state" argument.
9239 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9240 parser state.
9241 (yyparse): Redefine macro for java_parse_internal.
9242 (pstate): New variable.
9243 (push_expression_name, push_expression_name, insert_exp): Add
9244 "struct parser_state" argument.
9245 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9246 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9247 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9248 PostIncrementExpression, PostDecrementExpression,
9249 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9250 UnaryExpressionNotPlusMinus, CastExpression,
9251 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9252 RelationalExpression, EqualityExpression, AndExpression,
9253 ExclusiveOrExpression, InclusiveOrExpression,
9254 ConditionalAndExpression, ConditionalOrExpression,
9255 ConditionalExpression, Assignment, LeftHandSide): Update
9256 calls to write_exp* and similars in order to use parser state.
9257 (parse_number): Ajust code to use parser state.
9258 (yylex): Likewise.
9259 (java_parse): New function.
9260 (push_variable): Add "struct parser_state" argument. Adjust
9261 code to user parser state.
9262 (push_fieldnames, push_qualified_expression_name,
9263 push_expression_name, insert_exp): Likewise.
9264 * jv-lang.h: Forward declare "struct parser_state".
9265 (java_parse): Add "struct parser_state" argument.
9266 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9267 parser state.
9268 (yyparse): Redefine macro to m2_parse_internal.
9269 (pstate): New variable.
9270 (type_exp, exp, fblock, variable, type): Update calls to
9271 write_exp* and similars to use parser state.
9272 (yylex): Likewise.
9273 (m2_parse): New function.
9274 * m2-lang.h: Forward declare "struct parser_state".
9275 (m2_parse): Add "struct parser_state" argument.
9276 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9277 * objc-lang.h: Forward declare "struct parser_state".
9278 (end_msglist): Add "struct parser_state" argument.
9279 * p-exp.y (parse_type): Rewrite macro to use parser state.
9280 (yyparse): Redefine macro to pascal_parse_internal.
9281 (pstate): New variable.
9282 (parse_number): Add "struct parser_state" argument.
9283 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9284 write_exp* and similars in order to use parser state.
9285 (parse_number, yylex): Adjust code to use parser state.
9286 (pascal_parse): New function.
9287 * p-lang.h: Forward declare "struct parser_state".
9288 (pascal_parse): Add "struct parser_state" argument.
9289 * go-exp.y (parse_type): Rewrite macro to use parser state.
9290 (yyparse): Redefine macro to go_parse_internal.
9291 (pstate): New variable.
9292 (parse_number): Add "struct parser_state" argument.
9293 (type_exp, exp1, exp, variable, type): Update calls to
9294 write_exp* and similars in order to use parser state.
9295 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9296 to use parser state.
9297 (go_parse): Likewise.
9298 * go-lang.h: Forward declare "struct parser_state".
9299 (go_parse): Add "struct parser_state" argument.
9300
342587c4
DE
93012014-03-27 Doug Evans <dje@google.com>
9302
9303 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9304
33e80786
DE
93052014-03-27 Doug Evans <dje@google.com>
9306
9307 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9308 Remove argument abbrev_section. All callers updated.
9309
1dbab08b
DE
93102014-03-27 Doug Evans <dje@google.com>
9311
9312 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9313 addr_base, ranges_base.
9314
318d3177
KS
93152014-03-26 Keith Seitz <keiths@redhat.com>
9316
9317 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9318 types, not VAR_DOMAIN.
9319
1e54db15
SL
93202014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9321
9322 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9323 "ra" registers.
9324 * features/nios2-linux.c: Regenerated.
9325 * features/nios2.c: Regenerated.
9326
d3839ede
PA
93272014-03-25 Pedro Alves <palves@redhat.com>
9328
9329 * cli/cli-script.c (script_from_file): Force the interpreter to
9330 sync mode.
9331
7588d2ec
PL
93322014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9333
9334 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9335 small stack allocation.
9336
a6290449
TG
93372014-03-24 Tristan Gingold <gingold@adacore.com>
9338
9339 * darwin-nat.c (exc_server): Remove unused prototype.
9340 (darwin_dump_message): Correctly display data on x86_64.
9341 (darwin_encode_reply): Fix style.
9342 Add comments and fix indentation.
9343
31ae9d24 93442014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9345
9346 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9347
6339bfc4
DE
93482014-03-22 Doug Evans <xdje42@gmail.com>
9349
9350 * infcmd.c: Whitespace fixes.
9351 (interrupt_command): Merge two function comments into one.
9352
0a07590b
DE
93532014-03-22 Doug Evans <xdje42@gmail.com>
9354
9355 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9356 All uses updated.
9357
b55fbac4
YQ
93582014-03-22 Yao Qi <yao@codesourcery.com>
9359
9360 * remote.c (target_read_live_memory): Remove.
9361 (memory_xfer_live_readonly_partial): Rename it to
9362 remote_xfer_live_readonly_partial. Remove argument 'object'.
9363 All callers updated. Call remote_read_bytes_1
9364 instead of target_read_live_memory.
9365 * tracepoint.c (set_traceframe_number): Remove.
9366 (make_cleanup_restore_traceframe_number): Likewise .
9367 * tracepoint.h (set_traceframe_number): Remove declaration.
9368 (make_cleanup_restore_traceframe_number): Likewise.
9369
9217e74e
YQ
93702014-03-22 Yao Qi <yao@codesourcery.com>
9371
9372 * remote.c (remote_read_bytes): Move code on reading from the
9373 remote stub to ...
9374 (remote_read_bytes_1): ... here. New function.
9375
8acf9577
YQ
93762014-03-22 Yao Qi <yao@codesourcery.com>
9377
9378 * ctf.c (ctf_xfer_partial): Check the return value of
9379 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9380 return TARGET_XFER_UNAVAILABLE.
9381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9382 * target.c (target_read_live_memory): Move it to remote.c.
9383 (memory_xfer_live_readonly_partial): Likewise.
9384 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9385 * remote.c (target_read_live_memory): Moved from target.c.
9386 (memory_xfer_live_readonly_partial): Likewise.
9387 (remote_read_bytes): Factored out from
9388 memory_xfer_partial_1.
9389
feef67ab
DE
93902014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9391
9392 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9393 NULL pointer.
9394
b65dc60b
PA
93952014-03-21 Pedro Alves <palves@redhat.com>
9396
9397 * infrun.c (normal_stop): Extend comment.
9398
b4ab256d
HZ
93992014-03-21 Hui Zhu <hui@codesourcery.com>
9400 Pedro Alves <palves@redhat.com>
9401
9402 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9403 static buffer.
9404 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9405 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9406 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9407
deba7593
MR
94082014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9409
9410 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9411 `z' formatted output modifier.
9412
1bff71c3
SDJ
94132014-03-20 Tom Tromey <tromey@redhat.com>
9414 Sergio Durigan Junior <sergiodj@redhat.com>
9415
9416 * probe.c (parse_probes): Turn assert into an ordinary error.
9417 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9418 exceptions when parsing probes. Rearrange the code for clarity.
9419
90e28950
TT
94202014-03-20 Tom Tromey <tromey@redhat.com>
9421
9422 PR gdb/14135
9423 * top.c (execute_command): Only dispatch events if the command
9424 started the target.
9425
beb460e8
PA
94262014-03-20 Tom Tromey <tromey@redhat.com>
9427
9428 PR cli/15718
9429 * infcall.c: Include event-top.h.
9430 (run_inferior_call): Call async_disable_stdin if needed.
9431
99619bea
PA
94322014-03-20 Pedro Alves <palves@redhat.com>
9433
9434 * infrun.c (prepare_to_proceed): Delete.
9435 (thread_still_needs_step_over): New function.
9436 (find_thread_needs_step_over): New function.
9437 (proceed): If the current thread needs a step-over, set its
9438 steping_over_breakpoint flag. Adjust to use
9439 find_thread_needs_step_over instead of prepare_to_proceed.
9440 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9441 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9442 breakpoint.
9443 (switch_back_to_stepped_thread): Step over breakpoints of all
9444 threads not the stepping thread, before switching back to the
9445 stepping thread.
9446
2adfaa28
PA
94472014-03-20 Pedro Alves <palves@redhat.com>
9448
9449 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9450 extern.
9451 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9452 * infrun.c (saved_singlestep_ptid)
9453 (stepping_past_singlestep_breakpoint): Delete.
9454 (resume): Remove stepping_past_singlestep_breakpoint handling.
9455 (proceed): Store the prev_pc of the stepping thread too.
9456 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9457 singlestep_pc.
9458 (enum infwait_states): Delete infwait_thread_hop_state.
9459 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9460 field.
9461 (handle_inferior_event): Adjust.
9462 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9463 handling and the thread-hop code. Before removing single-step
9464 breakpoints, check whether the thread hit a single-step breakpoint
9465 of another thread. If it did, the trap is not a random signal.
9466 (switch_back_to_stepped_thread): If the event thread hit a
9467 single-step breakpoint, unblock it before switching to the
9468 stepping thread. Handle the case of the stepped thread having
9469 advanced already.
9470 (keep_going): Handle the case of the current thread moving past a
9471 single-step breakpoint.
9472
31e77af2
PA
94732014-03-20 Pedro Alves <palves@redhat.com>
9474
9475 PR breakpoints/7143
9476 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9477 are being stepped over.
9478 (breakpoint_address_match): Make extern.
9479 * breakpoint.h (breakpoint_address_match): New declaration.
9480 * inferior.h (stepping_past_instruction_at): New declaration.
9481 * infrun.c (struct step_over_info): New type.
9482 (step_over_info): New global.
9483 (set_step_over_info, clear_step_over_info)
9484 (stepping_past_instruction_at): New functions.
9485 (handle_inferior_event): Clear the step-over info when
9486 trap_expected is cleared.
9487 (resume): Remove now stale comment.
9488 (clear_proceed_status): Clear step-over info.
9489 (proceed): Adjust step-over handling to set or clear the step-over
9490 info instead of removing all breakpoints.
9491 (handle_signal_stop): When setting up a thread-hop, don't remove
9492 breakpoints here.
9493 (stop_stepping): Clear step-over info.
9494 (keep_going): Adjust step-over handling to set or clear step-over
9495 info and then always inserting breakpoints, instead of removing
9496 all breakpoints when stepping over one.
9497
b9f437de
PA
94982014-03-20 Pedro Alves <palves@redhat.com>
9499
9500 * infrun.c (previous_inferior_ptid): Adjust comment.
9501 (deferred_step_ptid): Delete.
9502 (infrun_thread_ptid_changed, prepare_to_proceed)
9503 (init_wait_for_inferior): Adjust.
9504 (handle_signal_stop): Delete deferred_step_ptid handling.
9505
06c868a8
JK
95062014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 PR gdb/15358
9509 * defs.h (sync_quit_force_run): New declaration.
9510 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9511 * event-top.c (async_sigterm_handler): New declaration.
9512 (async_sigterm_token): New variable.
9513 (async_init_signals): Create also async_sigterm_token.
9514 (async_sigterm_handler): New function.
9515 (sync_quit_force_run): New variable.
9516 (handle_sigterm): Replace quit_force call by other calls.
9517 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9518
dea80df0
MR
95192014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9520
9521 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9522 offset into SPE pseudo registers.
9523
0c7e1a46
PA
95242014-03-18 Pedro Alves <palves@redhat.com>
9525
9526 PR gdb/13860
9527 * inferior.h (print_stop_event): Declare.
9528 * infrun.c (print_stop_event): New, factored out from ...
9529 (normal_stop): ... this.
9530 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9531 of bpstat_print/print_stack_frame.
9532
9c1fcd01
TT
95332014-03-17 Tom Tromey <tromey@redhat.com>
9534
9535 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9536
11aa919a
PMR
95372014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9538
9539 * ada-lang.c (decode_constrained_packed_array): Perform a
9540 minimal coercion for reference with coerce_ref instead of
9541 ada_coerce_ref.
9542
d4ccb5e0
TG
95432014-03-17 Tristan Gingold <gingold@adacore.com>
9544
9545 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9546 (darwin_solib_create_inferior_hook): Emit a warning if version
9547 is unhandled.
9548
49840f2a
UW
95492014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9550
9551 * python/py-value.c (get_field_flag): Cast flag_name argument to
9552 PyObject_GetAttrString to support Python 2.4.
9553
ed4123e5
JK
95542014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9557 (Global Maintainers): Remove Jan Kratochvil.
9558
d6b64346
PA
95592014-03-14 Pedro Alves <palves@redhat.com>
9560
9561 * inferior.h (terminal_ours_for_output): Rename to ...
9562 (child_terminal_ours_for_output): ... this.
9563 (terminal_save_ours): Rename to ...
9564 (child_terminal_save_ours): ... this.
9565 (terminal_ours): Rename to ...
9566 (child_terminal_ours): ... this.
9567 (terminal_inferior): Rename to ...
9568 (child_terminal_inferior): ... this.
9569 (terminal_init_inferior): Rename to ...
9570 (child_terminal_init_inferior): ... this.
9571 (terminal_init_inferior_with_pgrp): Rename to ...
9572 (child_terminal_init_inferior_with_pgrp): ... this.
9573 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9574 (child_terminal_init_with_pgrp): ... this.
9575 (terminal_save_ours): Rename to ...
9576 (child_terminal_save_ours): ... this.
9577 (terminal_init_inferior): Rename to ...
9578 (child_terminal_init): ... this. Adjust.
9579 (terminal_inferior): Rename to ...
9580 (child_terminal_inferior): ... this.
9581 (terminal_ours_for_output): Rename to ...
9582 (child_terminal_ours_for_output): ... this. Adjust.
9583 (terminal_ours): Rename to ...
9584 (child_terminal_ours): ... this.
9585 (terminal_ours_1): Rename to ...
9586 (child_terminal_ours_1): ... this. Adjust.
9587 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9588 * windows-nat.c (do_initial_windows_stuff): Adjust.
9589 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9590 (gnu_terminal_init): ... this. Adjust.
9591 (gnu_target): Adjust.
9592 * inf-child.c (inf_child_target): Adjust.
9593
5a1e8c7a
DE
95942014-03-13 Doug Evans <xdje42@gmail.com>
9595
9596 PR guile/16612
9597 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9598 new eq?-hashtab.
9599
350e1a76
DE
96002014-03-13 Doug Evans <xdje42@gmail.com>
9601
9602 * value.c (record_latest_value): Call release_value_or_incref
9603 instead of release_value.
9604
a69900ae
PA
96052014-03-13 Pedro Alves <palves@redhat.com>
9606
9607 * procfs.c (procfs_target): Don't override to_shortname,
9608 to_longname or to_doc.
9609
5db9f0bd
PA
96102014-03-13 Pedro Alves <palves@redhat.com>
9611
9612 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9613 Unix in user visible strings.
9614
5e3a2c38
SS
96152014-03-12 Stan Shebs <stan@codesourcery.com>
9616
9617 * gdbtypes.h: Annotate comments for Doxygen, add a page
9618 block comment with some general info.
9619
8bc2fe48
PA
96202014-03-12 Pedro Alves <palves@redhat.com>
9621
9622 * infcmd.c (prepare_execution_command): New function, factored out
9623 from several execution commands.
9624 (run_command_1, continue_command, step_1, jump_command)
9625 (signal_command, until_command, advance_command, finish_command)
9626 (attach_command): Use prepare_execution_command.
9627
638c5f49
OJ
96282014-03-12 Omair Javaid <omair.javaid@linaro.org>
9629
9630 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9631 (MAX_BPTS): Define.
9632 (MAX_WPTS): Define.
9633 (struct arm_linux_thread_points): Removed.
9634 (struct arm_linux_process_info): New.
9635 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9636 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9637 (arm_linux_find_breakpoints_by_tid): Removed.
9638 (struct arch_lwp_info): New.
9639 (arm_linux_find_process_pid): New functions.
9640 (arm_linux_add_process): New functions.
9641 (arm_linux_process_info_get): New functions.
9642 (arm_linux_forget_process): New function.
9643 (arm_linux_get_debug_reg_state): New function.
9644 (struct update_registers_data): New.
9645 (update_registers_callback): New function.
9646 (arm_linux_insert_hw_breakpoint1): Updated.
9647 (arm_linux_remove_hw_breakpoint1): Updated.
9648 (arm_linux_insert_hw_breakpoint): Updated.
9649 (arm_linux_remove_hw_breakpoint): Updated.
9650 (arm_linux_insert_watchpoint): Updated.
9651 (arm_linux_remove_watchpoint): Updated.
9652 (arm_linux_new_thread): Updated.
9653 (arm_linux_prepare_to_resume): New function.
9654 (arm_linux_new_fork): New function.
9655 (_initialize_arm_linux_nat): Updated.
9656
6d03af93
PA
96572014-03-12 Pedro Alves <palves@redhat.com>
9658
9659 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9660
b3ccfe11
TT
96612014-03-12 Tom Tromey <tromey@redhat.com>
9662
9663 * inf-child.c (return_zero): New function.
9664 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9665 * aix-thread.c (aix_thread_inferior_created): New function.
9666 (aix_thread_attach): Remove.
9667 (init_aix_thread_ops): Don't set to_attach.
9668 (_initialize_aix_thread): Register inferior_created observer.
9669 * corelow.c (init_core_ops): Don't set to_attach or
9670 to_create_inferior.
9671 * exec.c (init_exec_ops): Don't set to_attach or
9672 to_create_inferior.
9673 * infcmd.c (run_command_1): Use find_run_target. Make direct
9674 target calls.
9675 (attach_command): Use find_attach_target. Make direct target
9676 calls.
9677 * record-btrace.c (init_record_btrace_ops): Don't set
9678 to_create_inferior.
9679 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9680 Remove.
9681 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9682 set to_create_inferior.
9683 * target.c (complete_target_initialization): Add assertion.
9684 (target_create_inferior): Remove.
9685 (find_default_attach, find_default_create_inferior): Remove.
9686 (find_attach_target, find_run_target): New functions.
9687 (find_default_is_async_p, find_default_can_async_p)
9688 (target_supports_non_stop, target_attach): Remove.
9689 (init_dummy_target): Don't set to_create_inferior or
9690 to_supports_non_stop.
9691 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9692 TARGET_DEFAULT_FUNC.
9693 <to_create_inferior>: Add comment.
9694 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9695 TARGET_DEFAULT_RETURN.
9696 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9697 (find_attach_target, find_run_target): Declare.
9698 (target_create_inferior): Remove.
9699 (target_has_execution_1): Update comment.
9700 (target_supports_non_stop): Remove.
9701 * target-delegates.c: Rebuild.
9702
91f83b02
PA
97032014-03-12 Pedro Alves <palves@redhat.com>
9704
9705 * inf-child.h: Update comment to not mention Unix.
9706
f1aea813
PA
97072014-03-12 Pedro Alves <palves@redhat.com>
9708
9709 * inf-child.c: Update top comment to not mention Unix. Add
9710 generic comment describing how this target is meant to be used.
9711 (inf_child_post_attach, inf_child_post_startup_inferior)
9712 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9713 Unix in comment.
9714
ee8e9165
PA
97152014-03-12 Pedro Alves <palves@redhat.com>
9716
9717 * nto-procfs.c: Include inf-child.h.
9718 (procfs_ops): Delete global.
9719 (procfs_can_run): Delete method.
9720 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9721 target pointer instead of referencing procfs_ops.
9722 (procfs_prepare_to_store): Delete.
9723 (init_procfs_ops): Delete function.
9724 (procfs_target): New function, based on init_procfs_ops, but
9725 inherit inf_child_target.
9726 (_initialize_procfs): Use procfs_target.
9727
51a9c8c5
PA
97282014-03-12 Pedro Alves <palves@redhat.com>
9729
9730 * windows-nat.c: Include inf-child.h.
9731 (windows_ops): Delete global.
9732 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9733 methods.
9734 (init_windows_ops): Delete function.
9735 (windows_target): New function, based on init_windows_ops, but
9736 inherit inf_child_target.
9737 (_initialize_windows_nat): Use windows_target. Install x86
9738 specific target methods here.
9739
c1966e26
DE
97402014-03-10 Doug Evans <xdje42@gmail.com>
9741
9742 * guile/guile.c (call_initialize_gdb_module): New function.
9743 (initialize_guile): Replace call to scm_init_guile with call to
9744 scm_with_guile.
9745
023db19c
JB
97462014-03-10 Joel Brobecker <brobecker@adacore.com>
9747
9748 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9749 in call to TYPE_CODE macro.
9750
5ec18f2b
JG
97512014-03-10 Jerome Guitton <guitton@adacore.com>
9752
8668be63
JB
9753 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9754 Resolve tagged types to full view.
5ec18f2b 9755
7d03f2eb
HZ
97562014-03-10 Hui Zhu <hui@codesourcery.com>
9757
9758 * target.h (target_insert_breakpoint): Remove "hardware" from its
9759 comments.
9760
c5164cbc
DE
97612014-03-07 Doug Evans <dje@google.com>
9762
9763 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9764
c4a3fee2
DE
97652014-03-07 Doug Evans <dje@google.com>
9766
9767 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9768 Remove unused local comp_dir_attr. Assert exactly one of
9769 stub_comp_unit_die, stub_comp_dir is non-NULL.
9770
3156469c
JB
97712014-03-07 Joel Brobecker <brobecker@adacore.com>
9772
9773 * target.h (complete_target_initialization, add_target):
9774 Add comment.
9775
c1a7b7c6
PA
97762014-03-07 Pedro Alves <palves@redhat.com>
9777
9778 * go32-nat.c: Include inf-child.h.
9779 (go32_ops): Delete global.
9780 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9781 Delete methods.
9782 (go32_create_inferior): Push the passed in target pointer instead
9783 of referencing go32_ops.
9784 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9785 (go32_target): New function, based on init_go32_ops, but inherit
9786 inf_child_target.
9787 (_initialize_go32_nat): Use go32_target. Move parts of
9788 init_go32_ops here.
9789
d3c1a85f
JB
97902014-03-06 Joel Brobecker <brobecker@adacore.com>
9791
9792 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9793 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9794 SYMBOL_VALUE_ADDRESS.
9795 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9796
5fa1d40e
YQ
97972014-03-06 Yao Qi <yao@codesourcery.com>
9798
9799 * breakpoint.c (get_tracepoint_by_number): Remove argument
9800 optional_p. All callers updated. Adjust comments. Update
9801 output message.
9802 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9803
0c13193f
YQ
98042014-03-06 Yao Qi <yao@codesourcery.com>
9805
9806 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9807 early if get_number returns zero. Use 'p' instead of 'args'.
9808
2217da06
YQ
98092014-03-06 Yao Qi <yao@codesourcery.com>
9810
9811 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9812 message.
9813
cc3da688
YQ
98142014-03-06 Yao Qi <yao@codesourcery.com>
9815
9816 PR breakpoints/16508
9817 * tracepoint.c (check_trace_running): New function.
9818 (trace_find_command): Move code to check_trace_running and
9819 call check_trace_running.
9820 (trace_find_pc_command): Likewise.
9821 (trace_find_tracepoint_command): Likewise.
9822 (trace_find_line_command): Likewise.
9823 (trace_find_range_command): Likewise.
9824 * tracepoint.h (check_trace_running): Likewise.
9825 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9826
6a5f844b
YQ
98272014-03-06 Yao Qi <yao@codesourcery.com>
9828
9829 * target.h (struct target_ops) <to_traceframe_info>: Use
9830 TARGET_DEFAULT_NORETURN (tcomplain ()).
9831 * target-delegates.c: Regenerated.
9832
0f26cec1
PA
98332014-03-05 Pedro Alves <palves@redhat.com>
9834
9835 PR gdb/16575
9836 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9837 void. Update comment.
9838 (dcache_xfer_memory): Delete.
9839 (dcache_read_memory_partial): New, based on the read bits of
9840 dcache_xfer_memory.
9841 (dcache_update): Add status parameter. Use ULONGEST for len, and
9842 adjust. Discard cache lines if the reason for the update was
9843 error.
9844 * dcache.h (dcache_xfer_memory): Delete declaration.
9845 (dcache_read_memory_partial): New declaration.
9846 (dcache_update): Update prototype.
9847 * target.c (raw_memory_xfer_partial): Update the dcache here.
9848 (memory_xfer_partial_1): Don't handle dcache writes here.
9849
b2b255bd
MF
98502014-03-05 Mike Frysinger <vapier@gentoo.org>
9851
9852 * remote-sim.c (gdbsim_load): Add const to prog.
9853
5d9cf8a4
TT
98542014-03-03 Tom Tromey <tromey@redhat.com>
9855
9856 * elfread.c (probe_key): Change to bfd_data.
9857 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9858 now per-BFD, not per-objfile.
9859 * stap-probe.c (stap_probe_destroy): Update comment.
9860 (handle_stap_probe): Allocate on the per-BFD obstack.
9861
729662a5
TT
98622014-03-03 Tom Tromey <tromey@redhat.com>
9863
9864 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9865 * breakpoint.c (create_longjmp_master_breakpoint): Use
9866 get_probe_address.
9867 (add_location_to_breakpoint, bkpt_probe_insert_location)
9868 (bkpt_probe_remove_location): Update.
9869 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9870 * elfread.c (elf_symfile_relocate_probe): Remove.
9871 (elf_probe_fns): Update.
9872 (insert_exception_resume_breakpoint): Change type of "probe"
9873 parameter to bound_probe.
9874 (check_exception_resume): Update.
9875 * objfiles.c (objfile_relocate1): Don't relocate probes.
9876 * probe.c (bound_probe_s): New typedef.
9877 (parse_probes): Use get_probe_address. Set sal's objfile.
9878 (find_probe_by_pc): Return a bound_probe.
9879 (collect_probes): Return a VEC(bound_probe_s).
9880 (compare_probes): Update.
9881 (gen_ui_out_table_header_info): Change type of "probes"
9882 parameter. Update.
9883 (info_probes_for_ops): Update.
9884 (get_probe_address): New function.
9885 (probe_safe_evaluate_at_pc): Update.
9886 * probe.h (struct probe_ops) <get_probe_address>: New field.
9887 <set_semaphore, clear_semaphore>: Add objfile parameter.
9888 (struct probe) <objfile>: Remove field.
9889 <arch>: New field.
9890 <address>: Update comment.
9891 (struct bound_probe): New.
9892 (find_probe_by_pc): Return a bound_probe.
9893 (get_probe_address): Declare.
9894 * solib-svr4.c (struct probe_and_action) <address>: New field.
9895 (hash_probe_and_action, equal_probe_and_action): Update.
9896 (register_solib_event_probe): Add address parameter.
9897 (solib_event_probe_at): Update.
9898 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9899 get_probe_address.
9900 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9901 (stap_get_probe_address): New function.
9902 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9903 (compile_probe_arg): Update.
9904 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9905 address.
9906 (handle_stap_probe): Don't relocate the probe.
9907 (stap_relocate): Remove.
9908 (stap_gen_info_probes_table_values): Update.
9909 (stap_probe_ops): Remove stap_relocate.
9910 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9911 (debug_sym_probe_fns): Update.
9912 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9913 * symtab.c (init_sal): Use memset.
9914 * symtab.h (struct symtab_and_line) <objfile>: New field.
9915 * tracepoint.c (start_tracing, stop_tracing): Update.
9916
ff887920
TT
99172014-03-03 Tom Tromey <tromey@redhat.com>
9918
9919 * probe.h (parse_probes, find_probe_by_pc)
9920 (find_probes_in_objfile): Fix comments.
9921
f0407826
DE
99222014-03-02 Doug Evans <xdje42@gmail.com>
9923
9924 * infrun.c (handle_signal_stop): Replace test for
9925 TARGET_WAITKIND_STOPPED with an assert.
9926
35e6a711
DE
99272014-03-02 Doug Evans <xdje42@gmail.com>
9928
9929 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9930
667f9d0b
DE
99312014-03-02 Doug Evans <xdje42@gmail.com>
9932
9933 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9934
dc92ace0
MK
99352014-03-01 Mark Kettenis <kettenis@gnu.org>
9936
9937 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9938
a900370f
MK
99392014-03-01 Mark Kettenis <kettenis@gnu.org>
9940
9941 * i386obsd-nat.c: Include "obsd-nat.h".
9942 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9943 add_target.
9944 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9945
b72a7981
MK
99462014-03-01 Mark Kettenis <kettenis@gnu.org>
9947
9948 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9949
96c70aba
MK
99502014-03-01 Mark Kettenis <kettenis@gnu.org>
9951
9952 * mips64obsd-nat.c: Include "obsd-nath".
9953 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9954 add_target
9955 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9956
874a80af
MK
99572014-03-01 Mark Kettenis <kettenis@gnu.org>
9958
8fd408f1
MK
9959 * amd64obsd-nat.c: Include "obsd-nat,h.
9960 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9961 add_target.
874a80af
MK
9962 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9963
9cf95373
SC
99642014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9965
9966 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9967 (find_overload_match): Update call to find_oload_champ.
9968 (find_oload_champ_namespace_loop): Likewise
9969
863e4da4
MK
99702014-02-28 Mark Kettenis <kettenis@gnu.org>
9971
025cac40
MK
9972 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9973
1ed586ce
MK
9974 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9975 * config/sparc/obsd64.mh: New file.
9976 * sparc64obsd-nat.c: New file.
9977
863e4da4
MK
9978 * obsd-nat.h: New file.
9979 * obsd-nat.c: New file.
9980 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9981 (ALLDEPFILES): Add obsd-nat.c.
9982
89de4da4
TT
99832014-02-28 Tom Tromey <tromey@redhat.com>
9984
9985 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9986 * cli-out.h (cli_ui_out_impl): Now const.
9987 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9988 * ui-out.c (struct ui_out) <impl>: Now const.
9989 (default_ui_out_impl): Now const.
9990 (ui_out_new): Make 'impl' parameter const.
9991 * ui-out.h (ui_out_new): Update.
9992
c725e7b6
MK
99932014-02-27 Mark Kettenis <kettenis@gnu.org>
9994
9995 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9996
670b46b3
MK
99972014-02-27 Mark Kettenis <kettenis@gnu.org>
9998
9999 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10000
c91550fc
JK
100012014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10002
10003 Additional PR 8882 fix.
10004 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10005
2fa0369e
PA
100062014-02-27 Pedro Alves <palves@redhat.com>
10007
10008 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10009 isn't set.
10010
d632a097
PA
100112014-02-27 Pedro Alves <palves@redhat.com>
10012
10013 PR 12702
10014 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10015 * nat/linux-waitpid.c: Include string.h.
10016 (status_to_str): Moved here and made extern.
10017 * nat/linux-waitpid.h (status_to_str): New declaration.
10018
2ebd5a35
HZ
100192014-02-27 Hui Zhu <hui@codesourcery.com>
10020
10021 PR 12702
10022 * infrun.c (ptid_match): Move ...
10023 * common/ptid.c (ptid_match): ... here.
10024 * inferior.h (ptid_match): Move ...
10025 * common/ptid.h (ptid_match): ... here.
10026
3cdd631f
MK
100272014-02-27 Mark Kettenis <kettenis@gnu.org>
10028
10029 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10030 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10031 gdb_target_obs.
10032
bee30a64
MK
100332014-02-27 Mark Kettenis <kettenis@gnu.org>
10034
10035 * obsd-tdep.c (obsd_auxv_parse): New function.
10036 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10037
10038 * gdbarch.sh (auxv_parse): New.
10039 * gdbarch.h: Regenerated.
10040 * gdbarch.c: Regenerated.
10041 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10042
7a5a839f
LC
100432014-02-26 Ludovic Courtès <ludo@gnu.org>
10044
10045 * guile/scm-value.c (gdbscm_history_append_x): New function.
10046 (value_functions): Add it.
10047
31aa7e4e
JB
100482014-02-27 Joel Brobecker <brobecker@adacore.com>
10049
10050 * dwarf2read.c (attr_value_as_address): New function.
10051 (dwarf2_find_base_address, read_call_site_scope): Use
10052 attr_value_as_address in place of DW_ADDR.
10053 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10054 the low and high addresses. Slight rework of the handling
10055 of the high pc being a constant form, and limit it to
10056 DWARF verson 4 or higher.
10057 (dwarf2_record_block_ranges): Likewise.
10058 (read_partial_die): Likewise.
10059 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10060
9b333ba3
TT
100612014-02-26 Tom Tromey <tromey@redhat.com>
10062
10063 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10064
5f6cac40
TT
100652014-02-26 Tom Tromey <tromey@redhat.com>
10066
10067 * elfread.c (elf_read_minimal_symbols): Return early if
10068 minimal symbols have already been read. Add "ei" parameter.
10069 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10070 * minsyms.c (prim_record_minimal_symbol_full): Update.
10071 * objfiles.h (struct objstats) <n_minsyms>: Move...
10072 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10073 * symmisc.c (print_objfile_statistics): Update.
10074
2750ef27
TT
100752014-02-26 Tom Tromey <tromey@redhat.com>
10076
10077 * elfread.c (elf_read_minimal_symbols): New function, from
10078 elf_symfile_read.
10079 (elf_symfile_read): Call it.
10080
34643a32
TT
100812014-02-26 Tom Tromey <tromey@redhat.com>
10082
10083 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10084 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10085 (lookup_minimal_symbol_solib_trampoline)
10086 (lookup_minimal_symbol_by_pc_section_1)
10087 (lookup_minimal_symbol_and_objfile): Update.
10088 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10089 Don't allocate a minimal symbol if minsyms have already been read.
10090 (build_minimal_symbol_hash_tables): Update.
10091 (install_minimal_symbols): Do nothing if minsyms already read.
10092 Use the per-BFD obstack.
10093 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10094 * objfiles.c (allocate_objfile): Call
10095 terminate_minimal_symbol_table later.
10096 (have_minimal_symbols): Update.
10097 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10098 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10099 Move from struct objfile.
10100 <minsyms_read>: New field.
10101 (struct objfile) <msymbols, minimal_symbol_count,
10102 msymbol_hash, msymbol_demangled_hash>: Move.
10103 (ALL_OBJFILE_MSYMBOLS): Update.
10104 * symfile.c (read_symbols): Set minsyms_read.
10105 (reread_symbols): Update.
10106 * symmisc.c (dump_objfile, dump_msymbols): Update.
10107
2273f0ac
TT
101082014-02-26 Tom Tromey <tromey@redhat.com>
10109
10110 * minsyms.c (msymbols_sort): Remove.
10111 * minsyms.h (msymbols_sort): Remove.
10112 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10113 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10114 * elfread.c (elf_symtab_read): Don't add section offsets.
10115 * xcoffread.c (record_minimal_symbol): Don't add section offset
10116 to minimal symbol address.
10117 * somread.c (text_offset, data_offset): Remove.
10118 (som_symtab_read): Don't add section offsets to minimal symbol
10119 addresses.
10120 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10121 Don't add section offsets to minimal symbols.
10122 * coffread.c (coff_symtab_read): Don't add section offsets
10123 to minimal symbol addresses.
10124 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10125 to minimal symbol addresses.
10126 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10127 section offset to minimal symbol addresses.
10128 * mdebugread.c (parse_partial_symbols): Don't add section
10129 offset to minimal symbol addresses.
10130 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10131 offset to minimal symbol addresses.
10132
77e371c0
TT
101332014-02-26 Tom Tromey <tromey@redhat.com>
10134
10135 * ada-lang.c (ada_main_name): Update.
10136 (ada_add_standard_exceptions): Update.
10137 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10138 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10139 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10140 * auxv.c (ld_so_xfer_auxv): Update.
10141 * avr-tdep.c (avr_scan_prologue): Update.
10142 * ax-gdb.c (gen_var_ref): Update.
10143 * blockframe.c (get_pc_function_start)
10144 (find_pc_partial_function_gnu_ifunc): Update.
10145 * breakpoint.c (create_overlay_event_breakpoint)
10146 (create_longjmp_master_breakpoint)
10147 (create_std_terminate_master_breakpoint)
10148 (create_exception_master_breakpoint): Update.
10149 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10150 * c-valprint.c (c_val_print): Update.
10151 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10152 * common/agent.c (agent_look_up_symbols): Update.
10153 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10154 * dwarf2loc.c (call_site_to_target_addr): Update.
10155 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10156 * elfread.c (elf_gnu_ifunc_record_cache)
10157 (elf_gnu_ifunc_resolve_by_got): Update.
10158 * findvar.c (default_read_var_value): Update.
10159 * frame.c (inside_main_func): Update.
10160 * frv-tdep.c (frv_frame_this_id): Update.
10161 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10162 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10163 Update.
10164 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10165 (hppa_hpux_find_dummy_bpaddr): Update.
10166 * hppa-tdep.c (hppa_symbol_address): Update.
10167 * infcmd.c (until_next_command): Update.
10168 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10169 Update.
10170 * linespec.c (minsym_found, add_minsym): Update.
10171 * linux-nat.c (get_signo): Update.
10172 * linux-thread-db.c (inferior_has_bug): Update.
10173 * m32c-tdep.c (m32c_return_value)
10174 (m32c_m16c_address_to_pointer): Update.
10175 * m32r-tdep.c (m32r_frame_this_id): Update.
10176 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10177 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10178 * maint.c (maintenance_translate_address): Update.
10179 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10180 (frob_address): New function.
10181 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10182 frob_address. Rename parameter to "pc_in".
10183 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10184 addresses.
10185 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10186 Update.
10187 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10188 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10189 * objc-lang.c (find_objc_msgsend): Update.
10190 * objfiles.c (objfile_relocate1): Update.
10191 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10192 * p-valprint.c (pascal_val_print): Update.
10193 * parse.c (write_exp_msymbol): Update.
10194 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10195 (ppc_elfv2_skip_entrypoint): Update.
10196 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10197 * printcmd.c (build_address_symbolic, msym_info)
10198 (address_info): Update.
10199 * proc-service.c (ps_pglobal_lookup): Update.
10200 * psymtab.c (find_pc_sect_psymtab_closer)
10201 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10202 Change msymbol parameter to bound_minimal_symbol.
10203 * ravenscar-thread.c (get_running_thread_id): Update.
10204 * remote.c (remote_check_symbols): Update.
10205 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10206 address.
10207 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10208 * solib-dsbt.c (lm_base): Update.
10209 * solib-frv.c (lm_base, main_got): Update.
10210 * solib-irix.c (locate_base): Update.
10211 * solib-som.c (som_solib_create_inferior_hook)
10212 (link_map_start): Update.
10213 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10214 * solib-svr4.c (elf_locate_base, enable_break): Update.
10215 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10216 (flush_ea_cache): Update.
10217 * stabsread.c (define_symbol, scan_file_globals): Update.
10218 * stack.c (find_frame_funname): Update.
10219 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10220 (debug_qf_find_pc_sect_symtab): Update.
10221 * symfile.c (simple_read_overlay_table)
10222 (simple_overlay_update): Update.
10223 * symfile.h (struct quick_symbol_functions)
10224 <find_pc_sect_symtab>: Change type of msymbol to
10225 bound_minimal_symbol.
10226 * symmisc.c (dump_msymbols): Update.
10227 * symtab.c (find_pc_sect_symtab_via_partial)
10228 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10229 (search_symbols, print_msymbol_info): Update.
10230 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10231 (MSYMBOL_VALUE_ADDRESS): Redefine.
10232 (BMSYMBOL_VALUE_ADDRESS): New macro.
10233 * tracepoint.c (scope_info): Update.
10234 * tui/tui-disasm.c (tui_find_disassembly_address)
10235 (tui_get_begin_asm_address): Update.
10236 * valops.c (find_function_in_inferior): Update.
10237 * value.c (value_static_field, value_fn_field): Update.
10238
3b7344d5
TT
102392014-02-26 Tom Tromey <tromey@redhat.com>
10240
10241 * ada-lang.c (ada_update_initial_language): Update.
10242 (ada_main_name, ada_has_this_exception_support): Update.
10243 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10244 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10245 * arm-tdep.c (arm_skip_stub): Update.
10246 * auxv.c (ld_so_xfer_auxv): Update.
10247 * avr-tdep.c (avr_scan_prologue): Update.
10248 * ax-gdb.c (gen_var_ref): Update.
10249 * breakpoint.c (struct breakpoint_objfile_data)
10250 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10251 type to bound_minimal_symbol.
10252 (create_overlay_event_breakpoint)
10253 (create_longjmp_master_breakpoint)
10254 (create_std_terminate_master_breakpoint)
10255 (create_exception_master_breakpoint): Update.
10256 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10257 * c-exp.y (classify_name): Update.
10258 * coffread.c (coff_symfile_read): Update.
10259 * common/agent.c (agent_look_up_symbols): Update.
10260 * d-lang.c (d_main_name): Update.
10261 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10262 * dec-thread.c (enable_dec_thread): Update.
10263 * dwarf2loc.c (call_site_to_target_addr): Update.
10264 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10265 * eval.c (evaluate_subexp_standard): Update.
10266 * findvar.c (struct minsym_lookup_data) <result>: Change type
10267 to bound_minimal_symbol.
10268 <objfile>: Remove.
10269 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10270 * frame.c (inside_main_func): Update.
10271 * frv-tdep.c (frv_frame_this_id): Update.
10272 * gcore.c (call_target_sbrk): Update.
10273 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10274 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10275 Update.
10276 * go-lang.c (go_main_name): Update.
10277 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10278 (hppa_hpux_find_import_stub_for_addr): Update.
10279 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10280 Update. Change return type.
10281 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10282 type.
10283 * jit.c (jit_breakpoint_re_set_internal): Update.
10284 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10285 Update.
10286 * linux-nat.c (get_signo): Update.
10287 * linux-thread-db.c (inferior_has_bug): Update
10288 * m32c-tdep.c (m32c_return_value)
10289 (m32c_m16c_address_to_pointer): Update.
10290 * m32r-tdep.c (m32r_frame_this_id): Update.
10291 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10292 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10293 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10294 lookup_minimal_symbol. Change return type.
10295 (lookup_minimal_symbol): Remove.
10296 (lookup_bound_minimal_symbol): Update.
10297 (lookup_minimal_symbol_text): Change return type.
10298 (lookup_minimal_symbol_solib_trampoline): Change return type.
10299 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10300 (lookup_minimal_symbol_solib_trampoline): Change return type.
10301 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10302 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10303 (value_nsstring, find_imps): Update.
10304 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10305 * p-lang.c (pascal_main_name): Update.
10306 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10307 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10308 * proc-service.c (ps_pglobal_lookup): Update.
10309 * ravenscar-thread.c (get_running_thread_msymbol): Change
10310 return type.
10311 (has_ravenscar_runtime, get_running_thread_id): Update.
10312 * remote.c (remote_check_symbols): Update.
10313 * sol-thread.c (ps_pglobal_lookup): Update.
10314 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10315 * solib-dsbt.c (lm_base): Update.
10316 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10317 Update.
10318 * solib-irix.c (locate_base): Update.
10319 * solib-som.c (som_solib_create_inferior_hook)
10320 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10321 Update.
10322 * solib-spu.c (spu_enable_break): Update.
10323 * solib-svr4.c (elf_locate_base, enable_break): Update.
10324 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10325 (flush_ea_cache): Update.
10326 * stabsread.c (define_symbol): Update.
10327 * symfile.c (simple_read_overlay_table): Update.
10328 * symtab.c (find_pc_sect_line): Update.
10329 * tracepoint.c (scope_info): Update.
10330 * tui-disasm.c (tui_get_begin_asm_address): Update.
10331 * value.c (value_static_field): Update.
10332
40c1a007
TT
103332014-02-26 Tom Tromey <tromey@redhat.com>
10334
10335 * minsyms.c (prim_record_minimal_symbol_full): Use
10336 SET_MSYMBOL_VALUE_ADDRESS.
10337 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10338 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10339 SET_MSYMBOL_VALUE_ADDRESS.
10340 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10341 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10342
efd66ac6
TT
103432014-02-26 Tom Tromey <tromey@redhat.com>
10344
10345 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10346 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10347 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10348 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10349 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10350 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10351 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10352 * ada-lang.c (ada_main_name): Update.
10353 (ada_lookup_simple_minsym): Update.
10354 (ada_make_symbol_completion_list): Update.
10355 (ada_add_standard_exceptions): Update.
10356 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10357 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10358 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10359 * arm-tdep.c (skip_prologue_function): Update.
10360 (arm_skip_stack_protector, arm_skip_stub): Update.
10361 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10362 (arm_wince_skip_main_prologue): Update.
10363 * auxv.c (ld_so_xfer_auxv): Update.
10364 * avr-tdep.c (avr_scan_prologue): Update.
10365 * ax-gdb.c (gen_var_ref): Update.
10366 * block.c (call_site_for_pc): Update.
10367 * blockframe.c (get_pc_function_start): Update.
10368 (find_pc_partial_function_gnu_ifunc): Update.
10369 * breakpoint.c (create_overlay_event_breakpoint): Update.
10370 (create_longjmp_master_breakpoint): Update.
10371 (create_std_terminate_master_breakpoint): Update.
10372 (create_exception_master_breakpoint): Update.
10373 (resolve_sal_pc): Update.
10374 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10375 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10376 Update.
10377 * c-valprint.c (c_val_print): Update.
10378 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10379 * coffread.c (coff_symfile_read): Update.
10380 * common/agent.c (agent_look_up_symbols): Update.
10381 * dbxread.c (find_stab_function_addr): Update.
10382 (end_psymtab): Update.
10383 * dwarf2loc.c (call_site_to_target_addr): Update.
10384 (func_verify_no_selftailcall): Update.
10385 (tailcall_dump): Update.
10386 (call_site_find_chain_1): Update.
10387 (dwarf_expr_reg_to_entry_parameter): Update.
10388 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10389 (elf_gnu_ifunc_resolve_by_got): Update.
10390 * f-valprint.c (info_common_command): Update.
10391 * findvar.c (read_var_value): Update.
10392 * frame.c (get_prev_frame_1): Update.
10393 (inside_main_func): Update.
10394 * frv-tdep.c (frv_skip_main_prologue): Update.
10395 (frv_frame_this_id): Update.
10396 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10397 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10398 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10399 (gnuv3_skip_trampoline): Update.
10400 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10401 (hppa64_hpux_in_solib_call_trampoline): Update.
10402 (hppa_hpux_skip_trampoline_code): Update.
10403 (hppa64_hpux_search_dummy_call_sequence): Update.
10404 (hppa_hpux_find_import_stub_for_addr): Update.
10405 (hppa_hpux_find_dummy_bpaddr): Update.
10406 * hppa-tdep.c (hppa_symbol_address)
10407 (hppa_lookup_stub_minimal_symbol): Update.
10408 * i386-tdep.c (i386_skip_main_prologue): Update.
10409 (i386_pe_skip_trampoline_code): Update.
10410 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10411 * infcall.c (get_function_name): Update.
10412 * infcmd.c (until_next_command): Update.
10413 * jit.c (jit_breakpoint_re_set_internal): Update.
10414 (jit_inferior_init): Update.
10415 * linespec.c (minsym_found): Update.
10416 (add_minsym): Update.
10417 * linux-fork.c (info_checkpoints_command): Update.
10418 * linux-nat.c (get_signo): Update.
10419 * linux-thread-db.c (inferior_has_bug): Update.
10420 * m32c-tdep.c (m32c_return_value): Update.
10421 (m32c_m16c_address_to_pointer): Update.
10422 (m32c_m16c_pointer_to_address): Update.
10423 * m32r-tdep.c (m32r_frame_this_id): Update.
10424 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10425 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10426 * maint.c (maintenance_translate_address): Update.
10427 * minsyms.c (add_minsym_to_hash_table): Update.
10428 (add_minsym_to_demangled_hash_table): Update.
10429 (msymbol_objfile): Update.
10430 (lookup_minimal_symbol): Update.
10431 (iterate_over_minimal_symbols): Update.
10432 (lookup_minimal_symbol_text): Update.
10433 (lookup_minimal_symbol_by_pc_name): Update.
10434 (lookup_minimal_symbol_solib_trampoline): Update.
10435 (lookup_minimal_symbol_by_pc_section_1): Update.
10436 (lookup_minimal_symbol_and_objfile): Update.
10437 (prim_record_minimal_symbol_full): Update.
10438 (compare_minimal_symbols): Update.
10439 (compact_minimal_symbols): Update.
10440 (build_minimal_symbol_hash_tables): Update.
10441 (install_minimal_symbols): Update.
10442 (terminate_minimal_symbol_table): Update.
10443 (find_solib_trampoline_target): Update.
10444 (minimal_symbol_upper_bound): Update.
10445 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10446 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10447 (mips_skip_pic_trampoline_code): Update.
10448 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10449 * objc-lang.c (selectors_info): Update.
10450 (classes_info): Update.
10451 (find_methods): Update.
10452 (find_imps): Update.
10453 (find_objc_msgsend): Update.
10454 * objfiles.c (objfile_relocate1): Update.
10455 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10456 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10457 * p-valprint.c (pascal_val_print): Update.
10458 * parse.c (write_exp_msymbol): Update.
10459 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10460 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10461 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10462 * printcmd.c (build_address_symbolic): Update.
10463 (sym_info): Update.
10464 (address_info): Update.
10465 * proc-service.c (ps_pglobal_lookup): Update.
10466 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10467 (find_pc_sect_psymtab): Update.
10468 * python/py-framefilter.c (py_print_frame): Update.
10469 * ravenscar-thread.c (get_running_thread_id): Update.
10470 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10471 Update.
10472 * remote.c (remote_check_symbols): Update.
10473 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10474 (rs6000_skip_trampoline_code): Update.
10475 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10476 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10477 * solib-dsbt.c (lm_base): Update.
10478 * solib-frv.c (lm_base): Update.
10479 (main_got): Update.
10480 * solib-irix.c (locate_base): Update.
10481 * solib-som.c (som_solib_create_inferior_hook): Update.
10482 (som_solib_desire_dynamic_linker_symbols): Update.
10483 (link_map_start): Update.
10484 * solib-spu.c (spu_enable_break): Update.
10485 (ocl_enable_break): Update.
10486 * solib-svr4.c (elf_locate_base): Update.
10487 (enable_break): Update.
10488 * spu-tdep.c (spu_get_overlay_table): Update.
10489 (spu_catch_start): Update.
10490 (flush_ea_cache): Update.
10491 * stabsread.c (define_symbol): Update.
10492 (scan_file_globals): Update.
10493 * stack.c (find_frame_funname): Update.
10494 (frame_info): Update.
10495 * symfile.c (simple_read_overlay_table): Update.
10496 (simple_overlay_update): Update.
10497 * symmisc.c (dump_msymbols): Update.
10498 * symtab.c (fixup_section): Update.
10499 (find_pc_sect_line): Update.
10500 (skip_prologue_sal): Update.
10501 (search_symbols): Update.
10502 (print_msymbol_info): Update.
10503 (rbreak_command): Update.
10504 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10505 (completion_list_objc_symbol): Update.
10506 (default_make_symbol_completion_list_break_on): Update.
10507 * tracepoint.c (scope_info): Update.
10508 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10509 (tui_get_begin_asm_address): Update.
10510 * valops.c (find_function_in_inferior): Update.
10511 * value.c (value_static_field): Update.
10512 (value_fn_field): Update.
10513
50e65b17
TT
105142014-02-26 Tom Tromey <tromey@redhat.com>
10515
10516 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10517 bound minimal symbols. Move code that knows about minsym
10518 table layout...
10519 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10520 function.
10521 * minsyms.h (minimal_symbol_upper_bound): Declare.
10522 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10523 minimal_symbol_upper_bound.
10524
1b588015
JB
105252014-02-27 Joel Brobecker <brobecker@adacore.com>
10526
10527 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10528 Use the type's name if its basic type does not have a tag.
10529
dbb9c2b1
JB
105302014-02-27 Joel Brobecker <brobecker@adacore.com>
10531
10532 * dwarf2read.c (read_subrange_type): Add comment.
10533
55426c9d
JB
105342014-02-27 Joel Brobecker <brobecker@adacore.com>
10535
10536 * dwarf2read.c (update_enumeration_type_from_children): New
10537 function, mostly extracted from process_structure_scope.
10538 (read_enumeration_type): Call update_enumeration_type_from_children.
10539 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10540 and flag_flag_enum fields.
10541
f2fce0ca
PA
105422014-02-26 Pedro Alves <palves@redhat.com>
10543
10544 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10545 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10546 to_xfer_partial method.
10547
7a44e40e
PA
105482014-02-26 Pedro Alves <palves@redhat.com>
10549
10550 * target.c (complete_target_initialization): Don't install
10551 default_xfer_partial as to_xfer_partial hook.
10552 (nomemory): Delete.
10553 (update_current_target): Don't INHERIT nor de_fault
10554 deprecated_xfer_memory. Delete de_fault macro.
10555 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10556 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10557 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10558 field.
10559
bd265cd0
PA
105602014-02-26 Pedro Alves <palves@redhat.com>
10561
10562 * go32-nat.c (my_write_child): New function.
10563 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10564 (go32_xfer_partial): New function.
10565 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10566 Instead install a to_xfer_partial hook.
10567
9d46c4e5
PA
105682014-02-26 Pedro Alves <palves@redhat.com>
10569
10570 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10571 to_xfer_partial helper. Rewrite.
10572 (procfs_xfer_partial): New function.
10573 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10574 Install a to_xfer_partial hook.
10575
a1583b1f
PA
105762014-02-26 Pedro Alves <palves@redhat.com>
10577
10578 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10579 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10580 (m32r_xfer_partial): New function.
10581 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10582 Install a to_xfer_partial hook.
10583
6df1b29f
PA
105842014-02-26 Pedro Alves <palves@redhat.com>
10585
10586 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10587 helper.
10588 (mips_xfer_partial): New function.
10589 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10590 hook. Install a to_xfer_partial hook.
10591
dc53a7ad
JB
105922014-02-26 Joel Brobecker <brobecker@adacore.com>
10593
10594 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10595 * gdbtypes.c (create_array_type_with_stride): New function,
10596 renaming create_array_type, but with an added parameter
10597 called "bit_stride".
10598 (create_array_type): Re-implement using
10599 create_array_type_with_stride.
10600 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10601 and DW_AT_bit_stride attributes.
10602
12ab52e9
PA
106032014-02-26 Pedro Alves <palves@redhat.com>
10604
10605 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10606 task-specific breakpoints.
10607
d16461ae
PA
106082014-02-25 Pedro Alves <palves@redhat.com>
10609
10610 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10611 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10612
a8b16220
SS
106132014-02-25 Stan Shebs <stan@codesourcery.com>
10614
10615 * defs.h: Annotate comments for Doxygen.
10616
b9e795ee
TT
106172014-02-25 Tom Tromey <tromey@redhat.com>
10618
10619 * target.h (target_ignore): Don't declare.
10620 * target.c (target_ignore): Remove.
10621
849c862e
JK
106222014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10623
10624 PR gdb/16626
10625 * auto-load.c (auto_load_objfile_script_1): Change filename to
10626 debugfile.
10627
475109d8
JB
106282014-02-25 Joel Brobecker <brobecker@adacore.com>
10629
10630 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10631 documentation. Adjust prototype to match the target_ops
10632 to_xfer_partial method. Adjust implementation accordingly.
10633
e186c3bd
HZ
106342014-02-25 Hui Zhu <hui@codesourcery.com>
10635
10636 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10637 to_traceframe_info.
10638
6d451942
KB
106392014-02-25 Kevin Buettner <kevinb@redhat.com>
10640
041ab8b4 10641 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10642 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10643 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10644 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10645 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10646 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10647 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10648 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10649 New constants.
10650 (rl78_register_type): Use a data pointer type for SP and
10651 new pseudo registers mentioned above. Use a 16 bit integer
10652 type for all other register pairs.
10653 (rl78_register_name, rl78_g10_register_name): Update for
10654 new pseudo registers.
10655 (rl78_pseudo_register_read): Likewise.
10656 (rl78_pseudo_register_write): Likewise.
10657 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10658 to the newly added pseudo registers.
10659
eddf0bae
DE
106602014-02-24 Doug Evans <dje@google.com>
10661
10662 * value.c (record_latest_value): Fix comment.
10663 * printcmd.c (print_command_1): Remove code to handle -1 return from
10664 record_latest_value.
10665
e96027e0
PA
106662014-02-24 Pedro Alves <palves@redhat.com>
10667
10668 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10669 deprecated_xfer_memory hook.
10670 (procfs_xfer_partial): Call procfs_xfer_memory instead
10671 of the deprecated_xfer_memory target hook.
10672 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10673 helper.
10674
0837c976
YZ
106752014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10676
10677 * windows-nat.c (windows_xfer_shared_libraries): Return
10678 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10679 requested object is TARGET_OBJECT_LIBRARIES.
10680
bc113b4e
YQ
106812014-02-24 Yao Qi <yao@codesourcery.com>
10682
10683 * target.h (enum target_xfer_status)
10684 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10685 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10686 explicitly. New.
10687 * corefile.c (memory_error_message): User updated.
10688 * exec.c (section_table_read_available_memory): Likewise.
10689 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10690 * target.c (target_xfer_status_to_string): Likewise.
10691 (raw_memory_xfer_partial): Likewise.
10692 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10693 * valops.c (read_value_memory): Likewise.
10694 * exec.h: Update comments.
10695
01cb8804
YQ
106962014-02-24 Yao Qi <yao@codesourcery.com>
10697
10698 * target.c (target_xfer_status_to_string): Rename argument err
10699 to status.
10700 * target.h (target_xfer_status_to_string): Update declaration.
10701 Replace target_xfer_error_to_string with
10702 target_xfer_status_to_string in comment.
10703
93063aa6
YQ
107042014-02-24 Yao Qi <yao@codesourcery.com>
10705
10706 * mips-linux-nat.c (super_close): Update its type.
10707 (mips_linux_close): Pass 'self' to super_close.
10708
5c328c05
YQ
107092014-02-24 Yao Qi <yao@codesourcery.com>
10710
10711 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10712 * corefile.c (read_memory): Adjusted.
10713 * target.c (target_write_with_progress): Adjusted.
10714
f73023dd
YQ
107152014-02-23 Yao Qi <yao@codesourcery.com>
10716
10717 Revert two patches:
10718
10719 2013-10-25 Yao Qi <yao@codesourcery.com>
10720
10721 * remote.c (remote_traceframe_info): Return early if
10722 traceframe is not selected.
10723
10724 2013-07-19 Yao Qi <yao@codesourcery.com>
10725
10726 * target.c (update_current_target): Change the default action
10727 of 'to_traceframe_info' from tcomplain to return_zero.
10728 * target.h (struct target_ops) <to_traceframe_info>: Add more
10729 comments.
10730
5a2eb0ef
YQ
107312014-02-23 Yao Qi <yao@codesourcery.com>
10732
10733 * valops.c (read_value_memory): Rewrite it. Call
10734 target_xfer_partial in a loop.
10735 * exec.h (section_table_available_memory): Remove declaration.
10736 Move comments to ...
10737 * exec.c (section_table_available_memory): ... here. Make it
10738 static.
10739
1ee79381
YQ
107402014-02-23 Yao Qi <yao@codesourcery.com>
10741
10742 * exec.c (section_table_read_available_memory): New function.
10743 * exec.h (section_table_read_available_memory): Declare.
10744 * ctf.c (ctf_xfer_partial): Call
10745 section_table_read_available_memory.
10746 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10747
1ca49d37
YQ
107482014-02-23 Yao Qi <yao@codesourcery.com>
10749
10750 * ctf.c (ctf_xfer_partial): Move code to ...
10751 * exec.c (exec_read_partial_read_only): ... it. New function.
10752 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10753 * tracefile.c: Include "exec.h".
10754 * exec.h (exec_read_partial_read_only): Declare.
10755
a283690e
YQ
107562014-02-23 Yao Qi <yao@codesourcery.com>
10757
10758 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10759 (tfile_has_memory): Remove.
10760 (init_tfile_ops): Don't set fields to_has_all_memory and
10761 to_has_memory of tfile_ops.
10762 * tracefile.c (tracefile_has_all_memory): New function.
10763 (tracefile_has_memory): New function.
10764 (init_tracefile_ops): Initialize fields to_has_all_memory and
10765 to_has_memory of 'ops'.
10766
12e03cd0
YQ
107672014-02-23 Yao Qi <yao@codesourcery.com>
10768
10769 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10770 (ctf_thread_alive, ctf_get_trace_status): Remove.
10771 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10772 init_tracefile_ops.
10773 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10774 (tfile_has_stack, tfile_has_registers): Remove.
10775 (tfile_thread_alive): Remove.
10776 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10777 init_tracefile_ops.
10778 * tracefile.c (tracefile_has_stack): New function.
10779 (tracefile_has_registers): New function.
10780 (tracefile_thread_alive): New function.
10781 (tracefile_get_trace_status): New function.
10782 (init_tracefile_ops): New function.
10783 * tracefile.h (init_tracefile_ops): Declare.
10784
11395323
YQ
107852014-02-23 Yao Qi <yao@codesourcery.com>
10786
10787 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10788 (O_LARGEFILE): Likewise.
10789 (tfile_ops): Likewise.
10790 (TRACE_HEADER_SIZE): Likewise.
10791 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10792 (cur_data_size): Likewise.
10793 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10794 (tfile_close, tfile_files_info): Likewise.
10795 (tfile_get_trace_status): Likewise.
10796 (tfile_get_tracepoint_status): Likewise.
10797 (tfile_get_traceframe_address): Likewise.
10798 (tfile_trace_find, match_blocktype): Likewise.
10799 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10800 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10801 (tfile_get_trace_state_variable_value): Likewise.
10802 (tfile_has_all_memory, tfile_has_memory): Likewise.
10803 (tfile_has_stack, tfile_has_registers): Likewise.
10804 (tfile_thread_alive, build_traceframe_info): Likewise.
10805 (tfile_traceframe_info, init_tfile_ops): Likewise.
10806 (_initialize_tracepoint): Don't call init_tfile_ops
10807 and add_target_with_completer.
10808 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10809 exec.h, completer.h and filenames.h.
10810 (_initialize_tracefile_tfile): New function.
10811
7951c4eb
YQ
108122014-02-23 Yao Qi <yao@codesourcery.com>
10813
10814 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10815 tracefile-tfile.o.
10816 (HFILES_NO_SRCDIR): Add tracefile.h.
10817 * ctf.c: Include "tracefile.h".
10818 * tracefile.h: New file.
10819 * tracefile.c: New file
10820 * tracefile-tfile.c: New file.
10821 * tracepoint.c: Include "tracefile.h".
10822 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10823 (stop_reason_names): Add const.
10824 (trace_file_writer_xfree): Move it to tracefile.c.
10825 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10826 (trace_save_ctf): Likewise.
10827 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10828 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10829 (tfile_write_header, tfile_write_regblock_type): Likewise.
10830 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10831 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10832 (tfile_write_raw_data, tfile_end): Likewise.
10833 (tfile_trace_file_writer_new): Likewise.
10834 (free_uploaded_tp): Make it extern.
10835 (free_uploaded_tsv): Make it extern.
10836 (_initialize_tracepoint): Move code to register command 'tsave'
10837 to tracefile.c.
10838 * tracepoint.h (stop_reason_names): Declare.
10839 (struct trace_frame_write_ops): Move it to tracefile.h.
10840 (struct trace_file_write_ops): Likewise.
10841 (struct trace_file_writer): Likewise.
10842 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10843
184cd072
JK
108442014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10845
10846 PR gdb/16594
10847 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10848 process name.
10849 (get_cores_used_by_process): New parameter num_cores, use it.
10850 (linux_xfer_osdata_processes): Pass num_cores to it.
10851 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10852 process name.
10853
c63528fc
AK
108542014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10855
10856 * target.c (memory_xfer_partial): Fix length arg in call to
10857 breakpoint_xfer_memory.
10858
d7b30f67
SDJ
108592014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10860
10861 PR tdep/16397
10862 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10863 number comes after the + or - signs. Adjust length of register
10864 name to be extracted.
10865
8838afaf
TT
108662014-02-20 Tom Tromey <tromey@redhat.com>
10867
10868 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10869 (ada_varobj_ops): Mark "extern".
10870
05227d14
TT
108712014-02-20 Tom Tromey <tromey@redhat.com>
10872
10873 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10874
1254eefc
DE
108752014-02-20 Doug Evans <xdje42@gmail.com>
10876
10877 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10878 All callers updated.
10879 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10880 All callers updated.
10881 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10882 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10883
adde2bff
DE
108842014-02-20 lin zuojian <manjian2006@gmail.com>
10885 Joel Brobecker <brobecker@adacore.com>
10886 Doug Evans <xdje42@gmail.com>
10887
10888 PR symtab/16581
10889 * dwarf2read.c (struct die_info): New member in_process.
10890 (reset_die_in_process): New function.
10891 (process_die): Set it at the start, reset when returning.
10892 (inherit_abstract_dies): Only call process_die if origin_child_die
10893 not already being processed.
10894
3be75f87
JB
108952014-02-20 Joel Brobecker <brobecker@adacore.com>
10896
10897 * windows-nat.c (handle_unload_dll): Add function documentation.
10898 (do_initial_windows_stuff): Add comment explaining why we wait
10899 until after inferior initialization has finished before
10900 processing all DLLs.
10901
47f7ffdb
JB
109022014-02-20 Joel Brobecker <brobecker@adacore.com>
10903
10904 * windows-nat.c (get_module_name): Delete.
10905 (windows_get_exec_module_filename): New function, mostly
10906 inspired from get_module_name.
10907 (windows_pid_to_exec_file): Replace call to get_module_name
10908 by call to windows_get_exec_module_filename.
10909
1cd9feab
JB
109102014-02-20 Joel Brobecker <brobecker@adacore.com>
10911
10912 * windows-nat.c (handle_load_dll): Rewrite this function's
10913 introductory comment. Remove code using get_module_name
10914 to get the DLL's name.
10915
ea39ad35
JB
109162014-02-20 Joel Brobecker <brobecker@adacore.com>
10917
10918 * windows-nat.c (get_windows_debug_event): Ignore
10919 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10920 if windows_initialization_done == 0.
10921 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10922 Adjust implementation to always load all DLLs.
10923 (do_initial_windows_stuff): Replace call to
10924 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10925
95060284
JB
109262014-02-20 Joel Brobecker <brobecker@adacore.com>
10927
10928 * windows-nat.c (_initialize_windows_nat): Deprecate the
10929 "dll-symbols" command. Turn the "add-shared-symbol-files"
10930 and "assf" aliases into commands, and deprecate them as well.
10931 * NEWS: Add entry explaining that "dll-symbols" and its two
10932 aliases are now deprecated.
10933
8d4fdb12
JB
109342014-02-20 Joel Brobecker <brobecker@adacore.com>
10935
10936 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10937 new-line in debug string. Remove trailing spaces.
10938
1b281443
SS
109392014-02-19 Stan Shebs <stan@codesourcery.com>
10940
10941 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10942
f7bd0f78
SC
109432014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10944
10945 * NEWS: Add entry for the new feature
10946 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10947 and class values.
10948
399ebc3d
SS
109492014-02-19 Stan Shebs <stan@codesourcery.com>
10950
10951 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10952
c658158d
PA
109532014-02-19 Pedro Alves <palves@redhat.com>
10954
10955 * common/ptid.h (struct ptid): Mention that process_stratum
10956 targets should prefer ptid.lwp.
10957
ba348170
PA
109582014-02-19 Pedro Alves <palves@redhat.com>
10959
10960 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10961 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10962 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10963 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10964 store remote thread ids rather than ptid.tid.
10965 (_initialize_remote): Adjust.
10966
ac01945b
TT
109672014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target.c (target_get_unwinder): Rewrite.
10970 (target_get_tailcall_unwinder): Rewrite.
10971 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10972 (record_btrace_to_get_tailcall_unwinder): New function.
10973 (init_record_btrace_ops): Update.
10974 * target.h (struct target_ops) <to_get_unwinder,
10975 to_get_tailcall_unwinder>: Now function pointers. Use
10976 TARGET_DEFAULT_RETURN.
10977
8476dc92
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10981 argument.
10982 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10983
c0eca49f
TT
109842014-02-19 Tom Tromey <tromey@redhat.com>
10985
10986 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10987 directly.
10988 * target-delegates.c: Rebuild.
10989 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10990 TARGET_DEFAULT_FUNC.
10991 * target.c (default_target_decr_pc_after_break): Rename from
10992 forward_target_decr_pc_after_break. Simplify.
10993 (target_decr_pc_after_break): Rely on delegation.
10994
596b6b39
TT
109952014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target.c (update_current_target): Do not INHERIT to_doc or
10998 to_magic. Do not de_fault to_open or to_close.
10999
b427c1bc
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * gcore.h (objfile_find_memory_regions): Declare.
11003 * gcore.c (objfile_find_memory_regions): No longer static. Add
11004 "self" argument.
11005 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11006 * exec.c: Include gcore.h.
11007 (exec_set_find_memory_regions): Remove.
11008 (exec_find_memory_regions): Remove.
11009 (exec_do_find_memory_regions): Remove.
11010 (init_exec_ops): Update.
11011 * defs.h (exec_set_find_memory_regions): Remove.
11012
9b144037
TT
110132014-02-19 Tom Tromey <tromey@redhat.com>
11014
11015 * target-delegates.c: Rebuild.
11016 * target.h (struct target_ops) <to_extra_thread_info,
11017 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11018 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11019 not 0, in TARGET_DEFAULT_RETURN.
11020
555bbdeb
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target.c (complete_target_initialization): Remove casts. Use
11024 return_zero_has_execution.
11025 (return_zero): Add "ignore" argument.
11026 (return_zero_has_execution): New function.
11027 (init_dummy_target): Remove casts. Use
11028 return_zero_has_execution.
11029
be4ddd36
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.c (update_current_target): Update comments. Do not
11033 INHERIT to_stratum.
11034
2117c711
TT
110352014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11038 needed.
11039 * corelow.c (core_read_description): Delegate when needed.
11040 * remote.c (remote_read_description): Delegate when needed.
11041 * target-delegates.c: Rebuild.
11042 * target.c (target_read_description): Rewrite.
11043 * target.h (struct target_ops) <to_read_description>: Update
11044 comment. Use TARGET_DEFAULT_RETURN.
11045
e88ef65c
TT
110462014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target-delegates.c: Rebuild.
11049 * target.c (update_current_target): Don't inherit or default
11050 to_can_run.
11051 (find_default_run_target): Check against delegate_can_run.
11052 * target.h (struct target_ops) <to_can_run>: Use
11053 TARGET_DEFAULT_RETURN.
11054
86a0854a
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (target_disconnect): Unconditionally delegate.
11059 * target.h (struct target_ops) <to_disconnect>: Use
11060 TARGET_DEFAULT_NORETURN.
11061
ee97f592
TT
110622014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * record.c (record_stop): Unconditionally delegate.
11065 * target-delegates.c: Rebuild.
11066 * target.c (target_stop_recording): Unconditionally delegate.
11067 * target.h (struct target_ops) <to_stop_recording>: Use
11068 TARGET_DEFAULT_IGNORE.
11069
6dc7fcf4
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (target_enable_btrace): Unconditionally delegate.
11074 * target.h (struct target_ops) <to_enable_btrace>: Use
11075 TARGET_DEFAULT_NORETURN.
11076
eb5b20d4
TT
110772014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (target_read_btrace): Unconditionally delegate.
11081 * target.h (struct target_ops) <to_read_btrace>: Use
11082 TARGET_DEFAULT_NORETURN.
11083
9ace480d
TT
110842014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target-delegates.c: Rebuild.
11087 * target.c (target_teardown_btrace): Unconditionally delegate.
11088 * target.h (struct target_ops) <to_teardown_btrace>: Use
11089 TARGET_DEFAULT_NORETURN.
11090
8dc292d3
TT
110912014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target-delegates.c: Rebuild.
11094 * target.c (target_disable_btrace): Unconditionally delegate.
11095 * target.h (struct target_ops) <to_disable_btrace>: Use
11096 TARGET_DEFAULT_NORETURN.
11097
58a5184e
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target-delegates.c: Rebuild.
11101 * target.c (default_search_memory): New function.
11102 (simple_search_memory): Update comment.
11103 (target_search_memory): Unconditionally delegate.
11104 * target.h (struct target_ops) <to_search_memory>: Use
11105 TARGET_DEFAULT_FUNC.
11106
8de71aab
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * auxv.c (default_auxv_parse): No longer static.
11110 (target_auxv_parse): Unconditionally delegate.
11111 * auxv.h (default_auxv_parse): Declare.
11112 * target-delegates.c: Rebuild.
11113 * target.c: Include auxv.h.
11114 * target.h (struct target_ops) <to_auxv_parse>: Use
11115 TARGET_DEFAULT_FUNC.
11116
6b2c5a57
TT
111172014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * target-delegates.c: Rebuild.
11120 * target.c (target_memory_map): Unconditionally delegate.
11121 * target.h (struct target_ops) <to_memory_map>: Use
11122 TARGET_DEFAULT_RETURN.
11123
cbffc065
TT
111242014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target-delegates.c: Rebuild.
11127 * target.c (target_thread_alive): Unconditionally delegate.
11128 * target.h (struct target_ops) <to_thread_alive>: Use
11129 TARGET_DEFAULT_RETURN.
11130
f09e2107
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target-delegates.c: Rebuild.
11134 * target.c (target_save_record): Unconditionally delegate.
11135 * target.h (struct target_ops) <to_save_record>: Use
11136 TARGET_DEFAULT_NORETURN.
11137
07366925
TT
111382014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * target-delegates.c: Rebuild.
11141 * target.c (target_delete_record): Unconditionally delegate.
11142 * target.h (struct target_ops) <to_delete_record>: Use
11143 TARGET_DEFAULT_NORETURN.
11144
dd2e9d25
TT
111452014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target-delegates.c: Rebuild.
11148 * target.c (target_record_is_replaying): Unconditionally
11149 delegate.
11150 * target.h (struct target_ops) <to_record_is_replaying>: Use
11151 TARGET_DEFAULT_RETURN.
11152
671e76cc
TT
111532014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target-delegates.c: Rebuild.
11156 * target.c (target_goto_record_begin): Unconditionally delegate.
11157 * target.h (struct target_ops) <to_goto_record_begin>: Use
11158 TARGET_DEFAULT_NORETURN.
11159
e9179bb3
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target-delegates.c: Rebuild.
11163 * target.c (target_goto_record_end): Unconditionally delegate.
11164 * target.h (struct target_ops) <to_goto_record_end>: Use
11165 TARGET_DEFAULT_NORETURN.
11166
05969c84
TT
111672014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target-delegates.c: Rebuild.
11170 * target.c (target_goto_record): Unconditionally delegate.
11171 * target.h (struct target_ops) <to_goto_record>: Use
11172 TARGET_DEFAULT_NORETURN.
11173
3679abfa
TT
111742014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target-delegates.c: Rebuild.
11177 * target.c (target_insn_history): Unconditionally delegate.
11178 * target.h (struct target_ops) <to_insn_history>: Use
11179 TARGET_DEFAULT_NORETURN.
11180
8444ab58
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target-delegates.c: Rebuild.
11184 * target.c (target_insn_history_from): Unconditionally delegate.
11185 * target.h (struct target_ops) <to_insn_history_from>: Use
11186 TARGET_DEFAULT_NORETURN.
11187
c29302cc
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (target_insn_history_range): Unconditionally delegate.
11192 * target.h (struct target_ops) <to_insn_history_range>: Use
11193 TARGET_DEFAULT_NORETURN.
11194
170049d4
TT
111952014-02-19 Tom Tromey <tromey@redhat.com>
11196
11197 * target-delegates.c: Rebuild.
11198 * target.c (target_call_history): Unconditionally delegate.
11199 * target.h (struct target_ops) <to_call_history>: Use
11200 TARGET_DEFAULT_NORETURN.
11201
16fc27d6
TT
112022014-02-19 Tom Tromey <tromey@redhat.com>
11203
11204 * target-delegates.c: Rebuild.
11205 * target.c (target_call_history_from): Unconditionally delegate.
11206 * target.h (struct target_ops) <to_call_history_from>: Use
11207 TARGET_DEFAULT_NORETURN.
11208
115d9817
TT
112092014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target-delegates.c: Rebuild.
11212 * target.c (target_call_history_range): Unconditionally delegate.
11213 * target.h (struct target_ops) <to_call_history_range>: Use
11214 TARGET_DEFAULT_NORETURN.
11215
eb276a6b
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (target_verify_memory): Unconditionally delegate.
11220 * target.h (struct target_ops) <to_verify_memory>: Use
11221 TARGET_DEFAULT_NORETURN.
11222
9e538d0d
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target-delegates.c: Rebuild.
11226 * target.c (target_core_of_thread): Unconditionally delegate.
11227 * target.h (struct target_ops) <to_core_of_thread>: Use
11228 TARGET_DEFAULT_RETURN.
11229
f6fb2925
TT
112302014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (target_flash_done): Unconditionally delegate.
11234 * target.h (struct target_ops) <to_flash_done>: Use
11235 TARGET_DEFAULT_NORETURN.
11236
e8a6c6ac
TT
112372014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target-delegates.c: Rebuild.
11240 * target.c (target_flash_erase): Unconditionally delegate.
11241 * target.h (struct target_ops) <to_flash_erase>: Use
11242 TARGET_DEFAULT_NORETURN.
11243
7e35c012
TT
112442014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target-delegates.c: Rebuild.
11247 * target.c (target_get_section_table): Unconditionally delegate.
11248 * target.h (struct target_ops) <to_get_section_table>: Use
11249 TARGET_DEFAULT_RETURN.
11250
770234d3
TT
112512014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * target-delegates.c: Rebuild.
11254 * target.c (target_pid_to_str): Unconditionally delegate.
11255 (init_dummy_target): Don't initialize to_pid_to_str.
11256 (default_pid_to_str): Rename from dummy_pid_to_str.
11257 * target.h (struct target_ops) <to_pid_to_str>: Use
11258 TARGET_DEFAULT_FUNC.
11259
09b0dc2b
TT
112602014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target-delegates.c: Rebuild.
11263 * target.c (target_find_new_threads): Unconditionally delegate.
11264 * target.h (struct target_ops) <to_find_new_threads>: Use
11265 TARGET_DEFAULT_RETURN.
11266
7d4f8efa
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target-delegates.c: Rebuild.
11270 * target.c (target_program_signals): Unconditionally delegate.
11271 * target.h (struct target_ops) <to_program_signals>: Use
11272 TARGET_DEFAULT_IGNORE.
11273
035cad7f
TT
112742014-02-19 Tom Tromey <tromey@redhat.com>
11275
11276 * target-delegates.c: Rebuild.
11277 * target.c (target_pass_signals): Unconditionally delegate.
11278 * target.h (struct target_ops) <to_pass_signals>: Use
11279 TARGET_DEFAULT_IGNORE.
11280
8d657035
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target-delegates.c: Rebuild.
11284 * target.c (default_mourn_inferior): New function.
11285 (target_mourn_inferior): Unconditionally delegate.
11286 * target.h (struct target_ops) <to_mourn_inferior>: Use
11287 TARGET_DEFAULT_FUNC.
11288
098dba18
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target-delegates.c: Rebuild.
11292 * target.c (default_follow_fork): New function.
11293 (target_follow_fork): Unconditionally delegate.
11294 * target.h (struct target_ops) <to_follow_fork>: Use
11295 TARGET_DEFAULT_FUNC.
11296
423a4807
TT
112972014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target-delegates.c: Rebuild.
11300 * target.c (target_kill): Unconditionally delegate.
11301 * target.h (struct target_ops) <to_kill>: Use
11302 TARGET_DEFAULT_NORETURN.
11303
6c7e5e5c
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (target_masked_watch_num_registers): Unconditionally
11308 delegate.
11309 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11310 Use TARGET_DEFAULT_RETURN.
11311
8b1c364c
TT
113122014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * target-delegates.c: Rebuild.
11315 * target.c (target_remove_mask_watchpoint): Unconditionally
11316 delegate.
11317 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11318 TARGET_DEFAULT_RETURN.
11319
cd4ae029
TT
113202014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target-delegates.c: Rebuild.
11323 * target.c (target_insert_mask_watchpoint): Unconditionally
11324 delegate.
11325 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11326 TARGET_DEFAULT_RETURN.
11327
a134316b
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (target_ranged_break_num_registers): Unconditionally
11332 delegate.
11333 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11334 Use TARGET_DEFAULT_RETURN.
11335
ad5989bd
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (target_fetch_registers): Unconditionally delegate.
11340 * target.h (struct target_ops) <to_fetch_registers>: Use
11341 TARGET_DEFAULT_NORETURN.
11342
46ee7e8d
TT
113432014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (update_current_target): Don't inherit or default
11347 to_stop.
11348 * target.h (struct target_ops) <to_stop>: Use
11349 TARGET_DEFAULT_IGNORE.
11350
843f59ed
TT
113512014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_can_run_breakpoint_commands.
11356 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11357 Use TARGET_DEFAULT_RETURN.
11358
ccfde2a0
TT
113592014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_supports_evaluation_of_breakpoint_conditions.
11364 * target.h (struct target_ops)
11365 <to_supports_evaluation_of_breakpoint_conditions>: Use
11366 TARGET_DEFAULT_RETURN.
11367
0de91722
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_augmented_libraries_svr4_read.
11373 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11374 Use TARGET_DEFAULT_RETURN.
11375
9a7d8b48
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (update_current_target): Don't inherit or default
11380 to_can_use_agent.
11381 * target.h (struct target_ops) <to_can_use_agent>: Use
11382 TARGET_DEFAULT_RETURN.
11383
d9db5b21
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target-delegates.c: Rebuild.
11387 * target.c (update_current_target): Don't inherit or default
11388 to_use_agent.
11389 * target.h (struct target_ops) <to_use_agent>: Use
11390 TARGET_DEFAULT_NORETURN.
11391
92155eeb
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target-delegates.c: Rebuild.
11395 * target.c (update_current_target): Don't inherit or default
11396 to_traceframe_info.
11397 (return_null): Remove.
11398 * target.h (struct target_ops) <to_traceframe_info>: Use
11399 TARGET_DEFAULT_RETURN.
11400
d6522a22
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target-delegates.c: Rebuild.
11404 * target.c (update_current_target): Don't inherit or default
11405 to_static_tracepoint_markers_by_strid.
11406 * target.h (struct target_ops)
11407 <to_static_tracepoint_markers_by_strid>: Use
11408 TARGET_DEFAULT_NORETURN.
11409
4c3e4425
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_static_tracepoint_marker_at.
11415 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11416 Use TARGET_DEFAULT_RETURN.
11417
dcd6917f
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_set_permissions.
11423 * target.h (struct target_ops) <to_set_permissions>: Use
11424 TARGET_DEFAULT_IGNORE.
11425
22bcceee
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_get_tib_address.
11431 * target.h (struct target_ops) <to_get_tib_address>: Use
11432 TARGET_DEFAULT_NORETURN.
11433
8586ccaa
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_set_trace_notes.
11439 * target.h (struct target_ops) <to_set_trace_notes>: Use
11440 TARGET_DEFAULT_RETURN.
11441
91df8d1d
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't initialize
11446 to_set_trace_buffer_size.
11447 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11448 TARGET_DEFAULT_IGNORE.
11449
8d526939
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target-delegates.c: Rebuild.
11453 * target.c (update_current_target): Don't inherit or default
11454 to_set_circular_trace_buffer.
11455 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11456 TARGET_DEFAULT_IGNORE.
11457
0bcfeddf
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_set_disconnected_tracing.
11463 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11464 TARGET_DEFAULT_IGNORE.
11465
9249843f
TT
114662014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11470 to_get_min_fast_tracepoint_insn_len.
11471 (return_minus_one): Remove.
11472 * target.h (struct target_ops)
11473 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11474
ace92e7d
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_get_raw_trace_data.
11480 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11481 TARGET_DEFAULT_NORETURN.
11482
08120467
TT
114832014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_upload_trace_state_variables.
11488 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11489 Use TARGET_DEFAULT_RETURN.
11490
1e949b00
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_upload_tracepoints.
11496 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11497 TARGET_DEFAULT_RETURN.
11498
a2e6c147
TT
114992014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11503 to_save_trace_data.
11504 * target.h (struct target_ops) <to_save_trace_data>: Use
11505 TARGET_DEFAULT_NORETURN.
11506
959bcd0b
TT
115072014-02-19 Tom Tromey <tromey@redhat.com>
11508
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_get_trace_state_variable_value.
11512 * target.h (struct target_ops)
11513 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11514
afc94e66
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_trace_find.
11520 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11521
e51c07ea
TT
115222014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11526 to_trace_stop.
11527 * target.h (struct target_ops) <to_trace_stop>: Use
11528 TARGET_DEFAULT_NORETURN.
11529
6fea14cd
TT
115302014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_get_tracepoint_status.
11535 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11536 TARGET_DEFAULT_NORETURN.
11537
4072d4ff
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_get_trace_status.
11543 * target.h (struct target_ops) <to_get_trace_status>: Use
11544 TARGET_DEFAULT_RETURN.
11545
25da2e80
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_trace_start.
11551 * target.h (struct target_ops) <to_trace_start>: Use
11552 TARGET_DEFAULT_NORETURN.
11553
86dd181d
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_trace_set_readonly_regions.
11559 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11560 Use TARGET_DEFAULT_NORETURN.
11561
05c41993
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_disable_tracepoint.
11567 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11568 TARGET_DEFAULT_NORETURN.
11569
151f70f1
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_enable_tracepoint.
11575 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11576 TARGET_DEFAULT_NORETURN.
11577
94eb98b9
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_download_trace_state_variable.
11583 * target.h (struct target_ops) <to_download_trace_state_variable>:
11584 Use TARGET_DEFAULT_NORETURN.
11585
719acc4a
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_download_tracepoint.
11591 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11592 TARGET_DEFAULT_RETURN.
11593
9a980a22
TT
115942014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target-delegates.c: Rebuild.
11597 * target.c (update_current_target): Don't inherit or default
11598 to_download_tracepoint.
11599 * target.h (struct target_ops) <to_download_tracepoint>: Use
11600 TARGET_DEFAULT_NORETURN.
11601
5536135b
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_trace_init.
11607 * target.h (struct target_ops) <to_trace_init>: Use
11608 TARGET_DEFAULT_RETURN.
11609
9409d39e
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target-delegates.c: Rebuild.
11613 * target.c (update_current_target): Don't inherit or default
11614 to_supports_string_tracing.
11615 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11616 TARGET_DEFAULT_RETURN.
11617
aab1b22d
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_supports_enable_disable_tracepoint.
11623 * target.h (struct target_ops)
11624 <to_supports_enable_disable_tracepoint>: Use
11625 TARGET_DEFAULT_RETURN.
11626
a7304748
TT
116272014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_supports_multi_process.
11632 * target.h (struct target_ops) <to_supports_multi_process>: Use
11633 TARGET_DEFAULT_RETURN.
11634
4229b31d
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_get_ada_task_ptid.
11640 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11641 TARGET_DEFAULT_FUNC.
11642
43eba180
TT
116432014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target-delegates.c: Rebuild.
11646 * target.c (update_current_target): Don't inherit or default
11647 to_thread_architecture.
11648 * target.h (struct target_ops) <to_thread_architecture>: Use
11649 TARGET_DEFAULT_FUNC.
11650
fe31bf5b
TT
116512014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11655 to_execution_direction.
11656 * target.h (struct target_ops) <to_execution_direction>: Use
11657 TARGET_DEFAULT_FUNC.
11658
53e1cfc7
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_can_execute_reverse.
11664 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11665 TARGET_DEFAULT_RETURN.
11666 (target_can_execute_reverse): Unconditionally delegate.
11667
9bb9d61d
TT
116682014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target-delegates.c: Rebuild.
11671 * target.c (update_current_target): Don't inherit or default
11672 to_goto_bookmark.
11673 (dummy_goto_bookmark): Remove.
11674 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11675 * target.h (struct target_ops) <to_goto_bookmark>: Use
11676 TARGET_DEFAULT_NORETURN.
11677
3dbafbbb
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target-delegates.c: Rebuild.
11681 * target.c (update_current_target): Don't inherit or default
11682 to_get_bookmark.
11683 (dummy_get_bookmark): Remove.
11684 (init_dummy_target): Don't inherit or default to_get_bookmark.
11685 * target.h (struct target_ops) <to_get_bookmark>: Use
11686 TARGET_DEFAULT_NORETURN
11687
16f796b1
TT
116882014-02-19 Tom Tromey <tromey@redhat.com>
11689
11690 * target-delegates.c: Rebuild.
11691 * target.c (update_current_target): Don't inherit or default
11692 to_make_corefile_notes.
11693 (init_dummy_target): Don't initialize to_make_corefile_notes.
11694 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11695 TARGET_DEFAULT_FUNC.
11696
0b5a2719
TT
116972014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_find_memory_regions.
11702 (init_dummy_target): Don't initialize to_find_memory_regions.
11703 * target.h (struct target_ops) <to_find_memory_regions>: Use
11704 TARGET_DEFAULT_FUNC.
11705
d9cb0195
TT
117062014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target-delegates.c: Rebuild.
11709 * target.c (update_current_target): Don't inherit or default
11710 to_log_command.
11711 * target.h (struct target_ops) <to_log_command>: Use
11712 TARGET_DEFAULT_IGNORE.
11713 (target_log_command): Unconditionally delegate.
11714
830ca330
TT
117152014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (update_current_target): Don't inherit or default
11719 to_pid_to_exec_file.
11720 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11721 TARGET_DEFAULT_RETURN.
11722
825828fc
TT
117232014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_thread_name.
11728 (target_thread_name): Unconditionally delegate.
11729 * target.h (struct target_ops) <to_thread_name>: Use
11730 TARGET_DEFAULT_RETURN.
11731
4a7e6dda
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_extra_thread_info.
11737 * target.h (struct target_ops) <to_extra_thread_info>: Use
11738 TARGET_DEFAULT_RETURN.
11739
0db88c1d
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_has_exited.
11745 * target.h (struct target_ops) <to_has_exited>: Use
11746 TARGET_DEFAULT_RETURN..
11747
6a9fa051
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_set_syscall_catchpoint.
11753 (return_one): Remove.
11754 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11755 TARGET_DEFAULT_RETURN.
11756
62f64d7a
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (update_current_target): Don't inherit or default
11761 to_insert_exec_catchpoint.
11762 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11763 TARGET_DEFAULT_RETURN.
11764
cda0f38c
TT
117652014-01-08 Tom Tromey <tromey@redhat.com>
11766
11767 * target-delegates.c: Rebuild.
11768 * target.c (update_current_target): Don't inherit or default
11769 to_insert_exec_catchpoint.
11770 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11771 TARGET_DEFAULT_RETURN.
11772
95c3375e
TT
117732014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target-delegates.c: Rebuild.
11776 * target.c (update_current_target): Don't inherit or default
11777 to_remove_vfork_catchpoint.
11778 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11779 TARGET_DEFAULT_RETURN.
11780
7e18a8dc
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target-delegates.c: Rebuild.
11784 * target.c (update_current_target): Don't inherit or default
11785 to_insert_vfork_catchpoint.
11786 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11787 TARGET_DEFAULT_RETURN.
11788
e1a21fb7
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target-delegates.c: Rebuild.
11792 * target.c (update_current_target): Don't inherit or default
11793 to_remove_fork_catchpoint.
11794 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11795 TARGET_DEFAULT_RETURN.
11796
5958ebeb
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11801 to_insert_fork_catchpoint.
11802 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11803 TARGET_DEFAULT_RETURN.
11804
340ba4bf
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target-delegates.c: Rebuild.
11808 * target.c (update_current_target): Don't inherit or default
11809 to_post_startup_inferior.
11810 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11811 TARGET_DEFAULT_IGNORE.
11812
7634da87
TT
118132014-02-19 Tom Tromey <tromey@redhat.com>
11814
11815 * target-delegates.c: Rebuild.
11816 * target.c (update_current_target): Don't inherit or default
11817 to_load.
11818 * target.h (struct target_ops) <to_load>: Use
11819 TARGET_DEFAULT_NORETURN.
11820
e19e919f
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_terminal_info.
11826 * target.h (struct target_ops) <to_terminal_info>: Use
11827 TARGET_DEFAULT_FUNC.
11828
c6ea8f79
TT
118292014-02-19 Tom Tromey <tromey@redhat.com>
11830
11831 * target-delegates.c: Rebuild.
11832 * target.c (update_current_target): Don't inherit or default
11833 to_terminal_save_ours.
11834 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11835 TARGET_DEFAULT_IGNORE.
11836
e4a733f1
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target-delegates.c: Rebuild.
11840 * target.c (update_current_target): Don't inherit or default
11841 to_terminal_ours.
11842 * target.h (struct target_ops) <to_terminal_ours>: Use
11843 TARGET_DEFAULT_IGNORE.
11844
74fcbef9
TT
118452014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * target-delegates.c: Rebuild.
11848 * target.c (update_current_target): Don't inherit or default
11849 to_terminal_ours_for_output.
11850 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11851 TARGET_DEFAULT_IGNORE.
11852
ddeaacc9
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target-delegates.c: Rebuild.
11856 * target.c (update_current_target): Don't inherit or default
11857 to_terminal_inferior.
11858 * target.h (struct target_ops) <to_terminal_inferior>: Use
11859 TARGET_DEFAULT_IGNORE.
11860
0343661d
TT
118612014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target-delegates.c: Rebuild.
11864 * target.c (update_current_target): Don't inherit or default
11865 to_terminal_init.
11866 * target.h (struct target_ops) <to_terminal_init>: Use
11867 TARGET_DEFAULT_IGNORE.
11868
77cdffe9
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target-delegates.c: Rebuild.
11872 * target.c (update_current_target): Don't inherit or default
11873 to_can_accel_watchpoint_condition.
11874 * target.h (struct target_ops)
11875 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11876
d03655e4
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target-delegates.c: Rebuild.
11880 * target.c (update_current_target): Don't inherit or default
11881 to_region_ok_for_hw_watchpoint.
11882 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11883 Use TARGET_DEFAULT_FUNC.
11884
65f160a9
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target-delegates.c: Rebuild.
11888 * target.c (update_current_target): Don't inherit or default
11889 to_watchpoint_addr_within_range.
11890 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11891 Use TARGET_DEFAULT_FUNC.
11892
61dd109f
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target-delegates.c: Rebuild.
11896 * target.c (update_current_target): Don't inherit or default
11897 to_remove_watchpoint.
11898 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11899 TARGET_DEFAULT_NORETURN.
11900
016facd4
TT
119012014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target-delegates.c: Rebuild.
11904 * target.c (update_current_target): Don't inherit or default
11905 to_insert_watchpoint.
11906 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11907 TARGET_DEFAULT_RETURN.
11908
418dabac
TT
119092014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target-delegates.c: Rebuild.
11912 * target.c (update_current_target): Don't inherit or default
11913 to_remove_hw_breakpoint.
11914 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11915 TARGET_DEFAULT_RETURN.
11916
61b371f9
TT
119172014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target-delegates.c: Rebuild.
11920 * target.c (update_current_target): Don't inherit or default
11921 to_insert_hw_breakpoint.
11922 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11923 TARGET_DEFAULT_RETURN.
11924
52b51d06
TT
119252014-02-19 Tom Tromey <tromey@redhat.com>
11926
11927 * target-delegates.c: Rebuild.
11928 * target.c (update_current_target): Don't inherit or default
11929 to_can_use_hw_breakpoint.
11930 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11931 TARGET_DEFAULT_RETURN.
11932
f86e59b2
TT
119332014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11937 to_files_info.
11938 * target.h (struct target_ops) <to_files_info>: Use
11939 TARGET_DEFAULT_IGNORE.
11940
6c628163
TT
119412014-02-19 Tom Tromey <tromey@redhat.com>
11942
11943 * target-delegates.c: Rebuild.
11944 * target.c (update_current_target): Don't inherit or default
11945 to_store.
11946 * target.h (struct target_ops) <to_store>: Use
11947 TARGET_DEFAULT_NORETURN.
11948
bebd3233
TT
119492014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * target-delegates.c: Rebuild.
11952 * target.c (update_current_target): Don't inherit or default
11953 to_post_attach.
11954 * target.h (struct target_ops) <to_post_attach>: Use
11955 TARGET_DEFAULT_IGNORE.
11956
a53f3625
TT
119572014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target-delegates.c: Rebuild.
11960 * target.c (update_current_target): Don't inherit or default
11961 to_rcmd.
11962 (default_rcmd): New function.
11963 (do_monitor_command): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_rmcd>: Use
11965 TARGET_DEFAULT_FUNC.
11966
e9a29200
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (init_dummy_target): Don't initialize to_attach.
11971 (target_attach): Unconditionally delegate.
11972 * target.h (struct target_ops) <to_attach>: Use
11973 TARGET_DEFAULT_FUNC.
11974
09da0d0a
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (target_detach): Unconditionally delegate.
11979 (init_dummy_target): Don't initialize to_detach.
11980 * target.h (struct target_ops) <to_detach>: Use
11981 TARGET_DEFAULT_IGNORE.
11982
5436ff03
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11986 Add argument.
11987 (target_augmented_libraries_svr4_read): Add argument.
11988 * target.c (update_current_target): Update.
11989 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11990 argument.
11991
f0d960ea
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_call_history_range>: Add
11995 argument.
11996 * target.c (target_call_history_range): Add argument.
11997 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11998 argument.
11999 (record_btrace_call_history_from): Update.
12000
ec0aea04
TT
120012014-02-19 Tom Tromey <tromey@redhat.com>
12002
12003 * target.h (struct target_ops) <to_call_history_from>: Add
12004 argument.
12005 * target.c (target_call_history_from): Add argument.
12006 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12007 argument.
12008
5df2fcba
TT
120092014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target.h (struct target_ops) <to_call_history>: Add argument.
12012 * target.c (target_call_history): Add argument.
12013 * record-btrace.c (record_btrace_call_history): Add 'self'
12014 argument.
12015
4e99c6b7
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target.h (struct target_ops) <to_insn_history_range>: Add
12019 argument.
12020 * target.c (target_insn_history_range): Add argument.
12021 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12022 argument.
12023 (record_btrace_insn_history_from): Update.
12024
9abc3ff3
TT
120252014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target.h (struct target_ops) <to_insn_history_from>: Add
12028 argument.
12029 * target.c (target_insn_history_from): Add argument.
12030 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12031 argument.
12032
7a6c5609
TT
120332014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * target.h (struct target_ops) <to_insn_history>: Add argument.
12036 * target.c (target_insn_history): Add argument.
12037 * record-btrace.c (record_btrace_insn_history): Add 'self'
12038 argument.
12039
606183ac
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops) <to_goto_record>: Add argument.
12043 * target.c (target_goto_record): Add argument.
12044 * record-full.c (record_full_goto): Add 'self' argument.
12045 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12046
307a1b91
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12050 * target.c (target_goto_record_end): Add argument.
12051 * record-full.c (record_full_goto_end): Add 'self' argument.
12052 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12053
08475817
TT
120542014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target.h (struct target_ops) <to_goto_record_begin>: Add
12057 argument.
12058 * target.c (target_goto_record_begin): Add argument.
12059 * record-full.c (record_full_goto_begin): Add 'self' argument.
12060 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12061 argument.
12062
1c63c994
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_record_is_replaying>: Add
12066 argument.
12067 * target.c (target_record_is_replaying): Add argument.
12068 * record-full.c (record_full_is_replaying): Add 'self' argument.
12069 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12070 argument.
12071 (record_btrace_xfer_partial, record_btrace_store_registers)
12072 (record_btrace_prepare_to_store, record_btrace_resume)
12073 (record_btrace_wait, record_btrace_decr_pc_after_break)
12074 (record_btrace_find_new_threads, record_btrace_thread_alive):
12075 Update.
12076
d1b55219
TT
120772014-02-19 Tom Tromey <tromey@redhat.com>
12078
12079 * target.h (struct target_ops) <to_delete_record>: Add argument.
12080 * target.c (target_delete_record): Add argument.
12081 * record-full.c (record_full_delete): Add 'self' argument.
12082
1390f529
TT
120832014-02-19 Tom Tromey <tromey@redhat.com>
12084
12085 * target.h (struct target_ops) <to_save_record>: Add argument.
12086 * target.c (target_save_record): Add argument.
12087 * record-full.c (record_full_save): Add 'self' argument.
12088 (record_full_save): Add 'self' argument.
12089
630d6a4a
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops) <to_info_record>: Add argument.
12093 * target.c (target_info_record): Add argument.
12094 * record.c (info_record_command): Add argument.
12095 * record-full.c (record_full_info): Add 'self' argument.
12096 * record-btrace.c (record_btrace_info): Add 'self' argument.
12097
c6cd7c02
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12101 * target.c (target_stop_recording): Add argument.
12102 * record.c (record_stop): Add argument.
12103 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12104 argument.
12105
39c49f83
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12109 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12110 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12111 argument.
12112 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12113 (_initialize_amd64_linux_nat): Use it.
12114 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12115 (_initialize_i386_linux_nat): Use it.
12116
1777056d
TT
121172014-02-19 Tom Tromey <tromey@redhat.com>
12118
12119 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12120 * target.c (target_teardown_btrace): Add argument.
12121 * remote.c (remote_teardown_btrace): Add 'self' argument.
12122 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12123 argument.
12124 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12125 argument.
12126
25e95349
TT
121272014-02-19 Tom Tromey <tromey@redhat.com>
12128
12129 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12130 * target.c (target_disable_btrace): Add argument.
12131 * remote.c (remote_disable_btrace): Add 'self' argument.
12132 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12133 argument.
12134 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12135 argument.
12136
e3c49f88
TT
121372014-02-19 Tom Tromey <tromey@redhat.com>
12138
12139 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12140 * target.c (target_enable_btrace): Add argument.
12141 * remote.c (remote_enable_btrace): Add 'self' argument.
12142 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12143 argument.
12144 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12145 argument.
12146
fe38f897
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12150 (target_can_use_agent): Add argument.
12151 * target.c (update_current_target): Update.
12152 * remote.c (remote_can_use_agent): Add 'self' argument.
12153 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12154
2c152180
TT
121552014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target.h (struct target_ops) <to_use_agent>: Add argument.
12158 (target_use_agent): Add argument.
12159 * target.c (update_current_target): Update.
12160 * remote.c (remote_use_agent): Add 'self' argument.
12161 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12162
a893e81f
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12166 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12167 (target_traceframe_info): Add argument.
12168 * target.c (update_current_target): Update.
12169 * remote.c (remote_traceframe_info): Add 'self' argument.
12170 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12171
c686c57f
TT
121722014-02-19 Tom Tromey <tromey@redhat.com>
12173
12174 * target.h (target_static_tracepoint_markers_by_strid): Add
12175 argument.
12176 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12177 'self' argument.
12178 * target.c (update_current_target): Update.
12179 * remote.c (struct target_ops)
12180 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12181 * linux-nat.c (struct target_ops)
12182 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12183
61fc905d
TT
121842014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12187 Add argument.
12188 (target_static_tracepoint_marker_at): Add argument.
12189 * target.c (update_current_target): Update.
12190 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12191 argument.
12192
c378d69d
TT
121932014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12196 (target_set_permissions): Add argument.
12197 * target.c (update_current_target): Update.
12198 * remote.c (remote_set_permissions): Add 'self' argument.
12199 (remote_start_remote): Update.
12200
bd7ae0f5
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12204 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12205 (target_get_tib_address): Add argument.
12206 * target.c (update_current_target): Update.
12207 * remote.c (remote_get_tib_address): Add 'self' argument.
12208
d9e68a2c
TT
122092014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12212 (target_set_trace_notes): Add argument.
12213 * target.c (update_current_target): Update.
12214 * remote.c (remote_set_trace_notes): Add 'self' argument.
12215
4da384be
TT
122162014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12219 argument.
12220 (target_set_trace_buffer_size): Add argument.
12221 * target.c (update_current_target): Update.
12222 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12223
736d5b1f
TT
122242014-02-19 Tom Tromey <tromey@redhat.com>
12225
12226 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12227 argument.
12228 (target_set_circular_trace_buffer): Add argument.
12229 * target.c (update_current_target): Update.
12230 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12231 argument.
12232
37b25738
TT
122332014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12236 argument.
12237 (target_set_disconnected_tracing): Add argument.
12238 * target.c (update_current_target): Update.
12239 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12240
0e67620a
TT
122412014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops)
12244 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12245 (target_get_min_fast_tracepoint_insn_len): Add argument.
12246 * target.c (update_current_target): Update.
12247 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12248 argument.
12249
88ee6f45
TT
122502014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12253 argument.
12254 (target_get_raw_trace_data): Add argument.
12255 * target.c (update_current_target): Update.
12256 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12257
181e3713
TT
122582014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12261 Add argument.
12262 (target_upload_trace_state_variables): Add argument.
12263 * target.c (update_current_target): Update.
12264 * remote.c (remote_upload_trace_state_variables): Add 'self'
12265 argument.
12266 (remote_start_remote): Update.
12267
ab6617cc
TT
122682014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12271 argument.
12272 (target_upload_tracepoints): Add argument.
12273 * target.c (update_current_target): Update.
12274 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12275 (remote_start_remote): Update.
12276
dc3decaf
TT
122772014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12280 (target_save_trace_data): Add argument.
12281 * target.c (update_current_target): Update.
12282 * remote.c (remote_save_trace_data): Add 'self' argument.
12283
4011015b
TT
122842014-02-19 Tom Tromey <tromey@redhat.com>
12285
12286 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12287 argument.
12288 * target.h (struct target_ops)
12289 <to_get_trace_state_variable_value>: Add argument.
12290 (target_get_trace_state_variable_value): Add argument.
12291 * target.c (update_current_target): Update.
12292 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12293 argument.
12294 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12295
bd4c6793
TT
122962014-02-19 Tom Tromey <tromey@redhat.com>
12297
12298 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12299 * target.h (struct target_ops) <to_trace_find>: Add argument.
12300 (target_trace_find): Add argument.
12301 * target.c (update_current_target): Update.
12302 * remote.c (remote_trace_find): Add 'self' argument.
12303 * ctf.c (ctf_trace_find): Add 'self' argument.
12304
74499f1b
TT
123052014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12308 (target_trace_stop): Add argument.
12309 * target.c (update_current_target): Update.
12310 * remote.c (remote_trace_stop): Add 'self' argument.
12311
db90e85c
TT
123122014-02-19 Tom Tromey <tromey@redhat.com>
12313
12314 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12315 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12316 argument.
12317 (target_get_tracepoint_status): Add argument.
12318 * target.c (update_current_target): Update.
12319 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12320
8bd200f1
TT
123212014-02-19 Tom Tromey <tromey@redhat.com>
12322
12323 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12324 * target.h (struct target_ops) <to_get_trace_status>: Add
12325 argument.
12326 (target_get_trace_status): Add argument.
12327 * target.c (update_current_target): Update.
12328 * remote.c (remote_get_trace_status): Add 'self' argument.
12329 (remote_start_remote, remote_can_download_tracepoint): Update.
12330 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12331
e2d1aae3
TT
123322014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_trace_start>: Add argument.
12335 (target_trace_start): Add argument.
12336 * target.c (update_current_target): Update.
12337 * remote.c (remote_trace_start): Add 'self' argument.
12338
583f9a86
TT
123392014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12342 Add argument.
12343 (target_trace_set_readonly_regions): Add argument.
12344 * target.c (update_current_target): Update.
12345 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12346 argument.
12347
780b049c
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12351 argument.
12352 (target_disable_tracepoint): Add argument.
12353 * target.c (update_current_target): Update.
12354 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12355
46670d57
TT
123562014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12359 argument.
12360 (target_enable_tracepoint): Add argument.
12361 * target.c (update_current_target): Update.
12362 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12363
559d2b81
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_download_trace_state_variable>:
12367 Add argument.
12368 (target_download_trace_state_variable): Add argument.
12369 * target.c (update_current_target): Update.
12370 * remote.c (remote_download_trace_state_variable): Add 'self'
12371 argument.
12372
a52a8357
TT
123732014-02-19 Tom Tromey <tromey@redhat.com>
12374
12375 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12376 argument.
12377 (target_can_download_tracepoint): Add argument.
12378 * target.c (update_current_target): Update.
12379 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12380
548f7808
TT
123812014-02-19 Tom Tromey <tromey@redhat.com>
12382
12383 * target.h (struct target_ops) <to_download_tracepoint>: Add
12384 argument.
12385 (target_download_tracepoint): Add argument.
12386 * target.c (update_current_target): Update.
12387 * remote.c (remote_download_tracepoint): Add 'self' argument.
12388
ecae04e1
TT
123892014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * target.h (struct target_ops) <to_trace_init>: Add argument.
12392 (target_trace_init): Add argument.
12393 * target.c (update_current_target): Update.
12394 * remote.c (remote_trace_init): Add 'self' argument.
12395
fab5aa7c
TT
123962014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12399 * target.c (target_fileio_readlink): Add argument.
12400 * remote.c (remote_hostio_readlink): Add 'self' argument.
12401 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12402
dbbca37d
TT
124032014-02-19 Tom Tromey <tromey@redhat.com>
12404
12405 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12406 * target.c (target_fileio_unlink): Add argument.
12407 * remote.c (remote_hostio_unlink): Add 'self' argument.
12408 (remote_file_delete): Update.
12409 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12410
df39ea25
TT
124112014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12414 * target.c (target_fileio_close): Add argument.
12415 * remote.c (remote_hostio_close): Add 'self' argument.
12416 (remote_hostio_close_cleanup): Update.
12417 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12418 Update.
12419 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12420
a3be983c
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12424 * target.c (target_fileio_pread): Add argument.
12425 * remote.c (remote_hostio_pread): Add 'self' argument.
12426 (remote_bfd_iovec_pread, remote_file_get): Update.
12427 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12428
0d866f62
TT
124292014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12432 * target.c (target_fileio_pwrite): Add argument.
12433 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12434 (remote_file_put): Update.
12435 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12436
cd897586
TT
124372014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12440 * target.c (target_fileio_open): Add argument.
12441 * remote.c (remote_hostio_open): Add 'self' argument.
12442 (remote_bfd_iovec_open): Add 'self' argument.
12443 (remote_file_put): Add 'self' argument.
12444 (remote_file_get): Add 'self' argument.
12445 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12446
78eff0ec
TT
124472014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12450 Add argument.
12451 (target_can_run_breakpoint_commands): Add argument.
12452 * target.c (update_current_target): Update.
12453 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12454 argument.
12455 (remote_insert_breakpoint): Add 'self' argument.
12456 (remote_insert_hw_breakpoint): Add 'self' argument.
12457 (remote_can_run_breakpoint_commands): Add 'self' argument.
12458
efcc2da7
TT
124592014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target.h (struct target_ops)
12462 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12463 (target_supports_evaluation_of_breakpoint_conditions): Add
12464 argument.
12465 * target.c (update_current_target): Update.
12466 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12467 argument.
12468 (remote_insert_breakpoint): Add 'self' argument.
12469 (remote_insert_hw_breakpoint): Add 'self' argument.
12470 (remote_supports_cond_breakpoints): Add 'self' argument.
12471
6de37a3a
TT
124722014-02-19 Tom Tromey <tromey@redhat.com>
12473
12474 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12475 argument.
12476 (target_supports_string_tracing): Add argument.
12477 * target.c (update_current_target): Update.
12478 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12479
2bfc0540
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (struct target_ops)
12483 <to_supports_disable_randomization>: Add argument.
12484 * target.c (find_default_supports_disable_randomization): Add
12485 argument.
12486 (target_supports_disable_randomization): Add argument.
12487 (find_default_supports_disable_randomization): Add 'self'
12488 argument.
12489 * remote.c (extended_remote_supports_disable_randomization): Add
12490 'self' argument.
12491 (remote_supports_disable_randomization): Add 'self' argument.
12492 (extended_remote_create_inferior): Update.
12493 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12494 'self' argument.
12495
7d178d6a
TT
124962014-02-19 Tom Tromey <tromey@redhat.com>
12497
12498 * target.h (struct target_ops)
12499 <to_supports_enable_disable_tracepoint>: Add argument.
12500 (target_supports_enable_disable_tracepoint): Add argument.
12501 * target.c (update_current_target): Update.
12502 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12503 argument.
12504
86ce2668
TT
125052014-02-19 Tom Tromey <tromey@redhat.com>
12506
12507 * target.h (struct target_ops) <to_supports_multi_process>: Add
12508 argument.
12509 (target_supports_multi_process): Add argument.
12510 * target.c (update_current_target): Update.
12511 * remote.c (remote_supports_multi_process): Add 'self' argument.
12512 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12513 argument.
12514 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12515 argument.
12516
4c612759
TT
125172014-02-19 Tom Tromey <tromey@redhat.com>
12518
12519 * target.h (struct target_ops) <to_execution_direction>: Add
12520 argument.
12521 (target_execution_direction): Add argument.
12522 * target.c (default_execution_direction): Add 'self' argument.
12523 * record-full.c (record_full_execution_direction): Add 'self'
12524 argument.
12525
19db3e69
TT
125262014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12529 argument.
12530 (target_can_execute_reverse): Add argument.
12531 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12532 * record-full.c (record_full_can_execute_reverse): Add 'self'
12533 argument.
12534 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12535 argument.
12536
1e6b91a4
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12540 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12541 argument.
12542 (target_get_ada_task_ptid): Add argument.
12543 * target.c (update_current_target): Update.
12544 (default_get_ada_task_ptid): Add 'self' argument.
12545 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12546 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12547 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12548 argument.
12549 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12550 argument.
12551 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12552 argument.
12553 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12554 argument.
12555 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12556 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12557 argument.
12558
3c80fb48
TT
125592014-02-19 Tom Tromey <tromey@redhat.com>
12560
12561 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12562 (target_goto_bookmark): Add argument.
12563 * target.c (dummy_goto_bookmark): Add 'self' argument.
12564 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12565
dd0e2830
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12569 (target_get_bookmark): Add argument.
12570 * target.c (dummy_get_bookmark): Add 'self' argument.
12571 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12572
fc6691b2
TT
125732014-02-19 Tom Tromey <tromey@redhat.com>
12574
12575 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12576 argument.
12577 (target_make_corefile_notes): Add argument.
12578 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12579 * procfs.c (procfs_make_note_section): Add 'self' argument.
12580 (procfs_make_note_section): Add 'self' argument.
12581 (procfs_make_note_section): Add 'self' argument.
12582 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12583 argument.
12584 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12585 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12586 * exec.c (exec_make_note_section): Add 'self' argument.
12587 (exec_make_note_section): Add 'self' argument.
12588
2e73927c
TT
125892014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target.h (struct target_ops) <to_find_memory_regions>: Add
12592 argument.
12593 (target_find_memory_regions): Add argument.
12594 * target.c (dummy_find_memory_regions): Add 'self' argument.
12595 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12596 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12597 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12598 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12599 * exec. (exec_do_find_memory_regions): New global.
12600 (exec_set_find_memory_regions): Rewrite.
12601 (exec_find_memory_regions): New function.
12602 (init_exec_ops): Use exec_find_memory_regions.
12603
2a9a2795
TT
126042014-02-19 Tom Tromey <tromey@redhat.com>
12605
12606 * target.h (struct target_ops) <to_supports_non_stop>: Add
12607 argument.
12608 * target.c (find_default_supports_non_stop): Add argument.
12609 (target_supports_non_stop): Add argument.
12610 (find_default_supports_non_stop): Add 'self' argument.
12611 * remote.c (remote_supports_non_stop): Add 'self' argument.
12612 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12613
4ab76ea3
TT
126142014-02-19 Tom Tromey <tromey@redhat.com>
12615
12616 * target.h (struct target_ops) <to_log_command>: Add argument.
12617 (target_log_command): Add argument.
12618 * serial.h (serial_log_command): Add 'self' argument.
12619 * serial.c (serial_log_command): Add 'self' argument.
12620
8dd27370
TT
126212014-02-19 Tom Tromey <tromey@redhat.com>
12622
12623 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12624 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12625 argument.
12626 (target_pid_to_exec_file): Add argument.
12627 * target.c (debug_to_pid_to_exec_file): Add argument.
12628 (update_current_target): Update.
12629 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12630 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12631 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12632 (linux_handle_extended_wait): Update.
12633 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12634 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12635 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12636 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12637
1aac633b
TT
126382014-02-19 Tom Tromey <tromey@redhat.com>
12639
12640 * target.h (struct target_ops) <to_rcmd>: Add argument.
12641 (target_rcmd): Add argument.
12642 * target.c (debug_to_rcmd): Add argument.
12643 (update_current_target, do_monitor_command): Update.
12644 * remote.c (remote_rcmd): Add 'self' argument.
12645 * monitor.c (monitor_rcmd): Add 'self' argument.
12646
1eab8a48
TT
126472014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * windows-nat.c (windows_stop): Add 'self' argument.
12650 * target.h (struct target_ops) <to_stop>: Add argument.
12651 * target.c (target_stop): Add argument.
12652 (debug_to_stop): Add argument.
12653 (update_current_target): Update.
12654 * remote.c (remote_stop): Add 'self' argument.
12655 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12656 (gdbsim_cntrl_c): Update.
12657 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12658 * procfs.c (procfs_stop): Add 'self' argument.
12659 * nto-procfs.c (procfs_stop): Add 'self' argument.
12660 * monitor.c (monitor_stop): Add 'self' argument.
12661 (monitor_open): Update.
12662 * linux-nat.c (linux_nat_stop): Add argument.
12663 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12664 * gnu-nat.c (gnu_stop): Add 'self' argument.
12665 * darwin-nat.c (darwin_stop): Add 'self' argument.
12666
503a628d
TT
126672014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops) <to_thread_name>: Add argument.
12670 * target.c (target_thread_name): Add argument.
12671 (update_current_target): Update.
12672 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12673
c15906d8
TT
126742014-02-19 Tom Tromey <tromey@redhat.com>
12675
12676 * target.h (struct target_ops) <to_extra_thread_info>: Add
12677 argument.
12678 (target_extra_thread_info): Add argument.
12679 * target.c (update_current_target): Update.
12680 * remote.c (remote_threads_extra_info): Add 'self' argument.
12681 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12682 argument.
12683 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12684 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12685 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12686 argument.
12687 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12688 argument.
12689 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12690 argument.
12691 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12692 argument.
12693
daf5e9b6
TT
126942014-02-19 Tom Tromey <tromey@redhat.com>
12695
12696 * target.h (struct target_ops) <to_program_signals>: Add argument.
12697 * target.c (target_program_signals): Add argument.
12698 * remote.c (remote_program_signals): Add 'self' argument.
12699
94bedb42
TT
127002014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12703 * target.c (target_pass_signals): Add argument.
12704 * remote.c (remote_pass_signals): Add 'self' argument.
12705 (remote_start_remote): Update.
12706 * procfs.c (procfs_pass_signals): Add 'self' argument.
12707 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12708 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12709 (linux_nat_create_inferior, linux_nat_attach): Update.
12710
da82bd6b
TT
127112014-02-19 Tom Tromey <tromey@redhat.com>
12712
12713 * windows-nat.c (windows_can_run): Add 'self' argument.
12714 * target.h (struct target_ops) <to_can_run>: Add argument.
12715 (target_can_run): Add argument.
12716 * target.c (debug_to_can_run): Add argument.
12717 (update_current_target): Update.
12718 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12719 * inf-child.c (inf_child_can_run): Add 'self' argument.
12720 * go32-nat.c (go32_can_run): Add 'self' argument.
12721
d796e1d6
TT
127222014-02-19 Tom Tromey <tromey@redhat.com>
12723
12724 * target.h (struct target_ops) <to_has_exited>: Add argument.
12725 (target_has_exited): Add argument.
12726 * target.c (debug_to_has_exited): Add argument.
12727 (update_current_target): Update.
12728
ff214e67
TT
127292014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12732 argument.
12733 (target_set_syscall_catchpoint): Add argument.
12734 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12735 argument.
12736 * target.c (update_current_target): Update.
12737
758e29d2
TT
127382014-02-19 Tom Tromey <tromey@redhat.com>
12739
12740 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12741 argument.
12742 (target_remove_exec_catchpoint): Add argument.
12743 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12744 (update_current_target): Update.
12745 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12746 argument.
12747
ba025e51
TT
127482014-02-19 Tom Tromey <tromey@redhat.com>
12749
12750 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12751 argument.
12752 (target_insert_exec_catchpoint): Add argument.
12753 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12754 (update_current_target): Update.
12755 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12756 argument.
12757
e98cf0cd
TT
127582014-02-19 Tom Tromey <tromey@redhat.com>
12759
12760 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12761 argument.
12762 (target_remove_vfork_catchpoint): Add argument.
12763 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12764 (update_current_target): Update.
12765 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12766 argument.
12767
3ecc7da0
TT
127682014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12771 argument.
12772 (target_insert_vfork_catchpoint): Add argument.
12773 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12774 (update_current_target): Update.
12775 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12776 argument.
12777
973fc227
TT
127782014-02-19 Tom Tromey <tromey@redhat.com>
12779
12780 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12781 argument.
12782 (target_remove_fork_catchpoint): Add argument.
12783 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12784 (update_current_target): Update.
12785 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12786 argument.
12787
a863b201
TT
127882014-02-19 Tom Tromey <tromey@redhat.com>
12789
12790 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12791 argument.
12792 (target_insert_fork_catchpoint): Add argument.
12793 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12794 (update_current_target): Update.
12795 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12796 argument.
12797
2e97a79e
TT
127982014-02-19 Tom Tromey <tromey@redhat.com>
12799
12800 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12801 argument.
12802 (target_post_startup_inferior): Add argument.
12803 * target.c (debug_to_post_startup_inferior): Add argument.
12804 (update_current_target): Update.
12805 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12806 argument.
12807 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12808 argument.
12809 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12810 argument.
12811 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12812 argument.
12813 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12814 'self' argument.
12815 (super_post_startup_inferior): Likewise.
12816 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12817 'self' argument.
12818 (super_post_startup_inferior): Likewise.
12819 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12820 Add 'self' argument.
12821 (super_post_startup_inferior): Likewise.
12822
71a9f134
TT
128232014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_load>: Add argument.
12826 * target.c (target_load): Add argument.
12827 (debug_to_load): Add argument.
12828 (update_current_target): Update.
12829 * remote.c (remote_load): Add 'self' argument.
12830 * remote-sim.c (gdbsim_load): Add 'self' argument.
12831 * remote-mips.c (mips_load): Add 'self' argument.
12832 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12833 * monitor.c (monitor_load): Add 'self' argument.
12834 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12835
0a4f40a2
TT
128362014-02-19 Tom Tromey <tromey@redhat.com>
12837
12838 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12839 (target_terminal_info): Add argument.
12840 * target.c (debug_to_terminal_info): Add argument.
12841 (default_terminal_info): Likewise.
12842 * inflow.c (child_terminal_info): Add 'self' argument.
12843 * inferior.h (child_terminal_info): Add 'self' argument.
12844 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12845
ae3bd431
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12849 argument.
12850 (target_terminal_save_ours): Add argument.
12851 * target.c (debug_to_terminal_save_ours): Add argument.
12852 (update_current_target): Update.
12853 * inflow.c (terminal_save_ours): Add 'self' argument.
12854 * inferior.h (terminal_save_ours): Add 'self' argument.
12855
e3594fd1
TT
128562014-02-19 Tom Tromey <tromey@redhat.com>
12857
12858 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12859 (target_terminal_ours): Add argument.
12860 * target.c (debug_to_terminal_ours): Add argument.
12861 (update_current_target): Update.
12862 * remote.c (remote_terminal_ours): Add 'self' argument.
12863 (remote_close): Update.
12864 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12865 * inflow.c (terminal_ours): Add 'self' argument.
12866 * inferior.h (terminal_ours): Add 'self' argument.
12867 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12868
2e1e1a19
TT
128692014-02-19 Pedro Alves <palves@redhat.com>
12870 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12873 argument.
12874 (target_terminal_ours_for_output): Add argument.
12875 * target.c (debug_to_terminal_ours_for_output): Add argument.
12876 (update_current_target): Update.
12877 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12878 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12879 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12880
d2f640d4
TT
128812014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * target.h (struct target_ops) <to_terminal_inferior>: Add
12884 argument.
12885 * target.c (target_terminal_inferior): Add argument.
12886 (update_current_target): Update.
12887 * remote.c (remote_terminal_inferior): Add 'self' argument.
12888 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12889 * inflow.c (terminal_inferior): Add 'self' argument.
12890 * inferior.h (terminal_inferior): Add 'self' argument.
12891 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12892 (go32_terminal_inferior): Add 'self' argument.
12893
c42bf286
TT
128942014-02-19 Tom Tromey <tromey@redhat.com>
12895
12896 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12897 (target_terminal_init): Add argument.
12898 * target.c (debug_to_terminal_init): Add argument.
12899 (update_current_target): Update.
12900 * inflow.c (terminal_init_inferior): Add 'self' argument.
12901 * inferior.h (terminal_init_inferior): Add 'self' argument.
12902 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12903 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12904
c3a5ff89
TT
129052014-02-19 Tom Tromey <tromey@redhat.com>
12906
12907 * target.h (struct target_ops)
12908 <to_can_accel_watchpoint_condition>: Add argument.
12909 (target_can_accel_watchpoint_condition): Add argument.
12910 * target.c (debug_to_can_accel_watchpoint_condition): Add
12911 argument.
12912 (update_current_target): Update.
12913 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12914 'self' argument.
12915
31568a15
TT
129162014-02-19 Tom Tromey <tromey@redhat.com>
12917
12918 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12919 Add argument.
12920 (target_region_ok_for_hw_watchpoint): Add argument.
12921 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12922 (default_region_ok_for_hw_watchpoint): Add argument.
12923 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12924 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12925 argument.
12926 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12927 argument.
12928 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12929 argument.
12930 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12931 'self' argument.
12932 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12933 'self' argument.
12934 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12935 'self' argument.
12936 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12937 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12938 'self' argument.
12939 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12940 Add 'self' argument.
12941
7bb99c53
TT
129422014-02-19 Tom Tromey <tromey@redhat.com>
12943
12944 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12945 argument.
12946 (target_insert_watchpoint): Add argument.
12947 * target.c (debug_to_insert_watchpoint): Add argument.
12948 (update_current_target): Update.
12949 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12950 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12951 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12952 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12953 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12954 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12955 argument.
12956 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12957 (procfs_insert_hw_watchpoint): Add 'self' argument.
12958 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12959 argument.
12960 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12961 argument.
12962 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12963 argument.
12964 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12965 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12966 argument.
12967 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12968 'self' argument.
12969
11b5219a
TT
129702014-02-19 Tom Tromey <tromey@redhat.com>
12971
12972 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12973 argument.
12974 (target_remove_watchpoint): Add argument.
12975 * target.c (debug_to_remove_watchpoint): Add argument.
12976 (update_current_target): Update.
12977 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12978 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12979 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12980 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12981 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12982 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12983 argument.
12984 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12985 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12986 argument.
12987 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12988 argument.
12989 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12990 argument.
12991 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12992 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12993 argument.
12994 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12995 'self' argument.
12996
a64dc96c
TT
129972014-02-19 Tom Tromey <tromey@redhat.com>
12998
12999 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13000 argument.
13001 (target_remove_hw_breakpoint): Add argument.
13002 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13003 (update_current_target): Update.
13004 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13005 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13006 argument.
13007 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13008 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13009 argument.
13010 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13011 'self' argument.
13012
23a26771
TT
130132014-02-19 Tom Tromey <tromey@redhat.com>
13014
13015 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13016 argument.
13017 (target_insert_hw_breakpoint): Add argument.
13018 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13019 (update_current_target): Update.
13020 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13021 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13022 argument.
13023 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13024 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13025 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13026 argument.
13027 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13028 'self' argument.
13029
5461485a
TT
130302014-02-19 Tom Tromey <tromey@redhat.com>
13031
13032 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13033 argument.
13034 (target_can_use_hardware_watchpoint): Add argument.
13035 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13036 (update_current_target): Update.
13037 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13038 argument.
13039 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13040 argument.
13041 * remote.c (remote_check_watch_resources): Add 'self' argument.
13042 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13043 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13044 argument.
13045 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13046 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13047 argument.
13048 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13049 argument.
13050 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13051 argument.
13052 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13053 argument.
13054 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13055 argument.
13056 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13057 argument.
13058 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13059 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13060 argument.
13061 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13062 'self' argument.
13063
f045800c
TT
130642014-02-19 Tom Tromey <tromey@redhat.com>
13065
13066 * target.h (struct target_ops) <to_post_attach>: Add argument.
13067 (target_post_attach): Add argument.
13068 * target.c (debug_to_post_attach): Add argument.
13069 (update_current_target): Update.
13070 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13071 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13072 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13073 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13074 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13075
de90e03d
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * windows-nat.c (windows_close): Add 'self' argument.
13079 * tracepoint.c (tfile_close): Add 'self' argument.
13080 * target.h (struct target_ops) <to_close>: Add argument.
13081 * target.c (target_close): Add argument.
13082 (update_current_target): Update.
13083 * remote.c (remote_close): Add 'self' argument.
13084 * remote-sim.c (gdbsim_close): Add 'self' argument.
13085 * remote-mips.c (mips_close): Add 'self' argument.
13086 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13087 * record-full.c (record_full_close): Add 'self' argument.
13088 * record-btrace.c (record_btrace_close): Add 'self' argument.
13089 * monitor.h (monitor_close): Add 'self' argument.
13090 * monitor.c (monitor_close): Add 'self' argument.
13091 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13092 * linux-nat.c (linux_nat_close): Add argument.
13093 * go32-nat.c (go32_close): Add 'self' argument.
13094 * exec.c (exec_close_1): Add 'self' argument.
13095 * ctf.c (ctf_close): Add 'self' argument.
13096 * corelow.c (core_close): Add 'self' argument.
13097 (core_close_cleanup): Update.
13098 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13099 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13100
9dd130a0
TT
131012014-02-19 Tom Tromey <tromey@redhat.com>
13102
13103 * remote.c (remote_load): New function.
13104 (init_remote_ops): Use it.
13105
46917d26
TT
131062014-02-19 Tom Tromey <tromey@redhat.com>
13107
13108 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13109 argument.
13110 * common/linux-btrace.h (linux_supports_btrace): Update.
13111 * remote.c (remote_supports_btrace): Add "self" argument.
13112 * target-delegates.c: Rebuild.
13113 * target.c (target_supports_btrace): Remove.
13114 * target.h (struct target_ops) <to_supports_btrace>: Add
13115 target_ops argument.
13116 (target_supports_btrace): New define.
13117
6b84065d
TT
131182014-02-19 Tom Tromey <tromey@redhat.com>
13119
13120 * record-full.c (record_full_beneath_to_resume_ops)
13121 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13122 (record_full_beneath_to_wait)
13123 (record_full_beneath_to_store_registers_ops)
13124 (record_full_beneath_to_store_registers)
13125 (record_full_beneath_to_xfer_partial_ops)
13126 (record_full_beneath_to_xfer_partial)
13127 (record_full_beneath_to_insert_breakpoint_ops)
13128 (record_full_beneath_to_insert_breakpoint)
13129 (record_full_beneath_to_remove_breakpoint_ops)
13130 (record_full_beneath_to_remove_breakpoint)
13131 (record_full_beneath_to_stopped_by_watchpoint)
13132 (record_full_beneath_to_stopped_data_address)
13133 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13134 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13135 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13136 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13137 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13138 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13139 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13140 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13141 (record_full_resume, record_full_wait_1)
13142 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13143 (record_full_store_registers, record_full_xfer_partial)
13144 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13145 (record_full_async, record_full_core_xfer_partial): Use target
13146 delegation.
13147 * target-delegates.c: Rebuild.
13148 * target.c (current_xfer_partial): Remove.
13149 (update_current_target): Do not INHERIT or de_fault
13150 to_insert_breakpoint, to_remove_breakpoint,
13151 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13152 to_is_async_p, to_async. Do not set to_xfer_partial field.
13153 (default_xfer_partial): Simplify.
13154 (current_xfer_partial): Remove.
13155 (target_wait, target_resume): Simplify.
13156 (find_default_can_async_p, find_default_is_async_p): Update.
13157 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13158 to_xfer_partial, to_stopped_by_watchpoint,
13159 to_stopped_data_address.
13160 (target_store_registers): Simplify.
13161 (forward_target_remove_breakpoint)
13162 (forward_target_insert_breakpoint): Remove.
13163 (target_remove_breakpoint, target_insert_breakpoint)
13164 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13165 * target.h (struct target_ops) <to_resume, to_wait,
13166 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13167 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13168 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13169 markup.
13170 (forward_target_remove_breakpoint)
13171 (forward_target_insert_breakpoint): Remove.
13172 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13173 directly.
13174 (record_btrace_insert_breakpoint): Delegate directly.
13175
1101cb7b
TT
131762014-02-19 Tom Tromey <tromey@redhat.com>
13177
13178 PR build/7701:
13179 * target-delegates.c: New file.
13180 * target.c: Include target-delegates.c.
13181 (init_dummy_target): Call install_dummy_methods.
13182 (complete_target_initialization): Call install_delegators.
13183 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13184 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13185 * make-target-delegates: New file.
13186
8b06beed
TT
131872014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * record.c (find_record_target): Use find_target_at.
13190 * target.c (find_target_at): New function.
13191 * target.h (find_target_at): Declare.
13192
6a109b6b
TT
131932014-02-19 Tom Tromey <tromey@redhat.com>
13194
13195 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13196 Add 'ops' argument.
13197 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13198 'ops' argument.
13199 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13200 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13201 'ops' argument.
13202 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13203 argument.
13204 * linux-nat.c (save_sigtrap): Update.
13205 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13206 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13207 (linux_nat_close): Update.
13208 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13209 argument.
13210 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13211 argument.
13212 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13213 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13214 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13215 (tmp_to_async): Add 'ops' argument.
13216 (record_full_stopped_by_watchpoint, record_full_async)
13217 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13218 argument.
13219 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13220 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13221 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13222 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13223 (remote_is_async_p, remote_async): Add 'ops' argument.
13224 (remote_stopped_data_address): Update.
13225 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13226 * target.c (update_current_target)
13227 (find_default_can_async_p, find_default_is_async_p): Update.
13228 (init_dummy_target): Update.
13229 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13230 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13231 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13232 (target_can_async_p, target_is_async_p, target_async)
13233 (target_stopped_by_watchpoint): Update.
13234
e095146b
YQ
132352014-02-19 Yao Qi <yao@codesourcery.com>
13236
13237 PR gdb/16220
13238 * gdbarch.sh: Remove startup_gdbarch.
13239 * gdbarch.c: Regenerated.
13240 * gdbarch.h: Likewise.
13241
bc3c6b36
KB
132422014-02-17 Kevin Buettner <kevinb@redhat.com>
13243
13244 * rl78-tdep.c (rl78_g10_register_name): New function.
13245 (rl78_return_value): Add g10 support.
13246 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13247 g10.
13248
98dc0167 132492014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13250
13251 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13252 (SUBDIR_GUILE_SRCS): Ditto.
13253 (scm-gsmob.o): Ditto.
13254
842c05cd
YQ
132552014-02-17 Yao Qi <yao@codesourcery.com>
13256
13257 * gnu-nat.c (ILL_RPC): Declare defined function.
13258
25c0bd04
YQ
132592014-02-17 Yao Qi <yao@codesourcery.com>
13260
13261 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13262 mach_msg_type_number_t.
13263 (gnu_write_inferior): Likewise.
13264
a9a758e3
YQ
132652014-02-17 Yao Qi <yao@codesourcery.com>
13266
13267 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13268 in format string.
13269 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13270 (inf_validate_procs, inf_signal): Likewise.
13271 (S_exception_raise_request): Likewise.
13272 (do_mach_notify_dead_name): Likewise.
13273 (steal_exc_port): Likewise.
13274 (gnu_read_inferior): Change 'copy_count''s type to
13275 mach_msg_type_number_t.
13276 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13277 format string.
13278
bae8023e
TS
132792014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13280
c82f56d9
TS
13281 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13282 flag. Adjust all users; in particular...
13283 (gnu_wait): ..., don't decrement its value in here...
13284 (gnu_create_inferior): ..., and instead set the flag in here,
13285 around the startup_inferior call, and call that one with
13286 START_INFERIOR_TRAPS_EXPECTED.
13287
3398af6a
TS
13288 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13289 (ILL_RPC): ... new macro.
13290 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13291 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13292 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13293 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13294 functions with ILL_RPC macro.
13295 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13296 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13297 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13298 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13299 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13300 (S_proc_getlogin_reply, S_proc_getsid_reply)
13301 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13302 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13303 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13304 (S_proc_getnports_reply, S_proc_is_important_reply)
13305 (S_proc_get_code_reply): New stub functions, generated with
13306 ILL_RPC macro.
13307
d47642c9
TS
13308 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13309 collected the type check structures.
13310
bae8023e
TS
13311 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13312
8a55ffb0
DE
133132014-02-14 Doug Evans <dje@google.com>
13314
13315 * target.c (target_write_partial): Fix result type.
13316
c2853f3d
JM
133172014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13318
13319 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13320 the proper offsets to access fpregset_t.
13321
ac61d2db
SA
133222014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13323
13324 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13325 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13326 * h8300-tdep.c (setmachinelist): Remove global.
13327 * hppa-tdep.c (hppa_sigtramp): Remove global.
13328 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13329 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13330 * ravenscar-thread.c (update_target_observer): Remove global.
13331 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13332
9d2d0b8b
TT
133332014-02-12 Tom Tromey <tromey@redhat.com>
13334
13335 * common/rsp-low.c: Update comments.
13336 * common/rsp-low.h: Update comments.
13337
a7191e8b
TT
133382014-02-12 Tom Tromey <tromey@redhat.com>
13339
13340 * common/rsp-low.c (convert_ascii_to_int): Remove.
13341 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13342
ff0e980e
TT
133432014-02-12 Tom Tromey <tromey@redhat.com>
13344
13345 * common/rsp-low.h (unhexify): Don't declare.
13346 * common/rsp-low.c (unhexify): Remove.
13347
e9371aff
TT
133482014-02-12 Tom Tromey <tromey@redhat.com>
13349
13350 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13351 * common/rsp-low.c (convert_int_to_ascii): Remove.
13352
971dc0b8
TT
133532014-02-12 Tom Tromey <tromey@redhat.com>
13354
13355 * common/rsp-low.h (hexify): Don't declare.
13356 * common/rsp-low.c (hexify): Remove.
13357
0a822afb
TT
133582014-02-12 Tom Tromey <tromey@redhat.com>
13359
13360 * common/rsp-low.c (hexify): Never take strlen of argument.
13361
9f1b45b0
TT
133622014-02-12 Tom Tromey <tromey@redhat.com>
13363
13364 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13365 * remote.c (extended_remote_run, remote_rcmd)
13366 (remote_download_trace_state_variable, remote_save_trace_data)
13367 (remote_set_trace_notes): Update.
13368 * tracepoint.c (encode_source_string, tfile_write_status)
13369 (tfile_write_uploaded_tsv): Update.
13370
9c3d6531
TT
133712014-02-12 Tom Tromey <tromey@redhat.com>
13372
13373 * tracepoint.c: Include rsp-low.h.
13374 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13375 * remote.c: Include rsp-low.h.
13376 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13377 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13378 (remote_unescape_input): Move to common/rsp-low.c.
13379 * common/rsp-low.h: New file.
13380 * common/rsp-low.c: New file.
13381 * Makefile.in (SFILES): Add common/rsp-low.c.
13382 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13383 (COMMON_OBS): Add rsp-low.o.
13384 (rsp-low.o): New target.
13385
01fd3ea5
TT
133862014-02-12 Tom Tromey <tromey@redhat.com>
13387
13388 * utils.h: Include print-utils.h.
13389 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13390 (int_string, core_addr_to_string, core_addr_to_string_nz)
13391 (hex_string, hex_string_custom): Don't declare.
13392 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13393 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13394 (hex_string_custom, int_string, core_addr_to_string)
13395 (core_addr_to_string_nz, host_address_to_string): Move to
13396 common/print-utils.c.
13397 * common/print-utils.h: New file.
13398 * common/print-utils.c: New file
13399 * Makefile.in (SFILES): Add common/print-utils.c.
13400 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13401 (COMMON_OBS): Add print-utils.o.
13402 (print-utils.o): New target.
13403
9fb50108
TT
134042014-02-12 Tom Tromey <tromey@redhat.com>
13405
13406 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13407
0548b5db
MK
134082014-02-12 Mark Kettenis <kettenis@gnu.org>
13409
13410 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13411
493443a4
MK
134122014-02-12 Mark Kettenis <kettenis@gnu.org>
13413
13414 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13415 if a PT_IO ptrace request returns sucessfully but indicates that 0
13416 bytes were transferred.
13417
706d0883
PA
134182014-02-12 Pedro Alves <palves@redhat.com>
13419 Kevin Buettner <kevinb@redhat.com>
13420
13421 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13422 TYPE_INSTANCE_FLAG_CODE_SPACE.
13423
5caa2f0b
PA
134242014-02-12 Pedro Alves <palves@redhat.com>
13425
13426 * h8300-tdep.c (pseudo_from_raw_register)
13427 (raw_from_pseudo_register): New functions.
13428 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13429 them.
13430
76fd5f74
PA
134312014-02-12 Pedro Alves <palves@redhat.com>
13432
13433 * h8300-tdep.c (h8300_register_sim_regno): New function.
13434 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13435 gdbarch_register_sim_regno hook.
13436
8f008406
SA
134372014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13438
13439 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13440
195abc10
SA
134412014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13442
13443 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13444
93ffa5b9
MK
134452014-02-12 Mark Kettenis <kettenis@gnu.org>
13446
13447 * obsd-tdep.h (obsd_init_abi): New prototype.
13448 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13449 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13450 (obsd_init_abi): New functions.
13451 * i386obsd-tdep.c: Include "obsd-tdep.h".
13452 (i386obsd_init_abi): Call obsd_init_abi.
13453 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13454 (amd64obsd_init_abi): Call obsd_init_abi.
13455 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13456 obsd-tdep.c to gdb_target_obs.
13457
49caec94
JM
134582014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13459
13460 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13461 double float arguments to 16-byte in the argument slots.
13462
e1402065
DE
134632014-02-11 Doug Evans <xdje42@gmail.com>
13464
13465 * configure.ac: Don't crash if pkg-config is not found and guile
13466 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13467 in guile checks.
13468 * configure: Regenerate.
13469
edcc890f
YQ
134702014-02-11 Yao Qi <yao@codesourcery.com>
13471
13472 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13473 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13474 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13475 * gnu-nat.c (gnu_xfer_memory): Likewise.
13476 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13477 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13478 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13479 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13480
9b409511
YQ
134812014-02-11 Yao Qi <yao@codesourcery.com>
13482
13483 * target.h (enum target_xfer_error): Rename to ...
13484 (enum target_xfer_status): ... it. New. All users updated.
13485 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13486 New.
13487 (TARGET_XFER_STATUS_ERROR_P): New macro.
13488 (target_xfer_error_to_string): Remove declaration.
13489 (target_xfer_status_to_string): Declare.
13490 (target_xfer_partial_ftype): Adjust it.
13491 (struct target_ops) <to_xfer_partial>: Return
13492 target_xfer_status. Add argument xfered_len. Update
13493 comments.
13494 * target.c (target_xfer_error_to_string): Rename to ...
13495 (target_xfer_status_to_string): ... it. New. All callers
13496 updated.
13497 (target_read_live_memory): Likewise. Call target_xfer_partial
13498 instead of target_read.
13499 (memory_xfer_live_readonly_partial): Return
13500 target_xfer_status. Add argument xfered_len.
13501 (raw_memory_xfer_partial): Likewise.
13502 (memory_xfer_partial_1): Likewise.
13503 (memory_xfer_partial): Likewise.
13504 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13505 properly. Update debug message.
13506 (default_xfer_partial, current_xfer_partial): Likewise.
13507 (target_write_partial): Likewise.
13508 (target_read_partial): Likewise. All callers updated.
13509 (read_whatever_is_readable): Likewise.
13510 (target_write_with_progress): Likewise.
13511 (target_read_alloc_1): Likewise.
13512
13513 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13514 * auxv.c (procfs_xfer_auxv): Likewise.
13515 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13516 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13517 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13518 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13519 * corefile.c (read_memory): Adjust.
13520 * corelow.c (core_xfer_partial): Likewise.
13521 * ctf.c (ctf_xfer_partial): Likewise.
13522 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13523 updated.
13524 (darwin_xfer_partial): Likewise.
13525 * exec.c (section_table_xfer_memory_partial): Likewise. All
13526 callers updated.
13527 (exec_xfer_partial): Likewise.
13528 * exec.h (section_table_xfer_memory_partial): Update
13529 declaration.
13530 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13531 negative.
13532 (gnu_xfer_partial): Likewise.
13533 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13534 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13535 (ia64_hpux_xfer_solib_got): Likewise.
13536 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13537 type of 'partial_len' to ULONGEST.
13538 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13539 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13540 (linux_nat_xfer_partial): Likewise.
13541 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13542 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13543 * monitor.c (monitor_xfer_memory): Likewise.
13544 (monitor_xfer_partial): Likewise.
13545 * procfs.c (procfs_xfer_partial): Likewise.
13546 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13547 * record-full.c (record_full_xfer_partial): Likewise.
13548 (record_full_core_xfer_partial): Likewise.
13549 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13550 (gdbsim_xfer_partial): Likewise.
13551 * remote.c (remote_write_bytes_aux): Likewise. All callers
13552 updated.
13553 (remote_write_bytes, remote_read_bytes): Likewise. All
13554 callers updated.
13555 (remote_flash_erase): Likewise. All callers updated.
13556 (remote_write_qxfer): Likewise. All callers updated.
13557 (remote_read_qxfer): Likewise. All callers updated.
13558 (remote_xfer_partial): Likewise.
13559 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13560 (rs6000_xfer_shared_libraries): Likewise.
13561 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13562 (sol_thread_xfer_partial): Likewise.
13563 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13564 (sparc_xfer_partial): Likewise.
13565 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13566 updated.
13567 (spu_xfer_partial): Likewise.
13568 * spu-multiarch.c (spu_xfer_partial): Likewise.
13569 * tracepoint.c (tfile_xfer_partial): Likewise.
13570 * windows-nat.c (windows_xfer_memory): Likewise.
13571 (windows_xfer_shared_libraries): Likewise.
13572 (windows_xfer_partial): Likewise.
13573 * valprint.c: Replace 'target_xfer_error' with
13574 'target_xfer_status' in comments.
13575
a8e63083
JB
135762014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13577
13578 Checked in by Joel Brobecker <brobecker@adacore.com>.
13579 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13580
e86b67d3
JB
135812014-02-11 Joel Brobecker <brobecker@adacore.com>
13582
13583 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13584 function parameters.
13585
4b7d1f7f
WN
135862014-02-10 Will Newton <will.newton@linaro.org>
13587
13588 * elfread.c (elf_rel_plt_read): Look for a .got section if
13589 looking up .got.plt fails.
13590 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13591 on address passed to elf_gnu_ifunc_record_cache.
13592 (elf_gnu_ifunc_resolve_addr): Likewise.
13593 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13594
961842b2
JM
135952014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13596
13597 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13598 (X_RETTURN): New macro.
13599 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13600
13601 * sparc64-tdep.c (sparc64_init_abi): Hook
13602 sparc_in_function_epilogue_p.
13603
3f03e7b1
GB
136042014-02-10 Gary Benson <gbenson@redhat.com>
13605
13606 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13607 Rename name_matcher to symbol_matcher.
13608
96f861ef
GB
136092014-02-10 Gary Benson <gbenson@redhat.com>
13610
13611 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13612 Use expand_symtabs_file_matcher_ftype and
13613 expand_symtabs_symbol_matcher_ftype.
13614
ee01b665
JB
136152014-02-10 Joel Brobecker <brobecker@adacore.com>
13616
13617 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13618 (struct ada_symbol_cache): New.
13619 (ada_free_symbol_cache): Forward declare.
13620 (struct ada_pspace_data): New.
13621 (ada_pspace_data_handle): New static global.
13622 (get_ada_pspace_data, ada_pspace_data_cleanup)
13623 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13624 (cache_space, cache): Delete, now folded inside struct
13625 ada_pspace_data.
13626 (ada_get_symbol_cache): New function.
13627 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13628 implementation.
13629 (_initialize_ada_language): Remove initialization of cache_space.
13630 Move call to observer_attach_inferior_exit up, grouping it
13631 with the other observer registrations inside this function.
13632 Rename command to be more general. Add call to
13633 register_program_space_data_with_cleanup.
13634
143adbbf
JB
136352014-02-10 Joel Brobecker <brobecker@adacore.com>
13636
13637 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13638 ada_new_objfile_observer.
13639 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13640 (_initialize_tasks): Update uses of ada_new_objfile_observer
13641 and ada_tasks_normal_stop_observer.
13642
aa4fb036
JB
136432014-02-10 Joel Brobecker <brobecker@adacore.com>
13644
13645 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13646 returned by the 'Length attribute to integer.
13647
9dee8cc6
JB
136482014-02-10 Joel Brobecker <brobecker@adacore.com>
13649
13650 * ada-lang.c (_initialize_ada_language): Initialize
13651 cache_space obstack.
13652
3d9434b5
JB
136532014-02-10 Joel Brobecker <brobecker@adacore.com>
13654
13655 * ada-lang.c (HASH_SIZE): New macro.
13656 (struct cache_entry): New type.
13657 (cache_space, cache): New static globals.
13658 (ada_clear_symbol_cache, find_entry): New functions.
13659 (lookup_cached_symbol, cache_symbol): Implement.
13660 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13661 (_initialize_ada_language): Attach ada_new_objfile_observer
13662 and ada_free_objfile_observer.
13663
f0c5f9b2
JB
136642014-02-10 Joel Brobecker <brobecker@adacore.com>
13665
13666 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13667 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13668 struct block * parameter.
13669 (ada_lookup_symbol_list_worker): Constify local variable "block".
13670 Remove cast which is no longer necessary.
13671
ed3ef339
DE
136722014-02-10 Doug Evans <xdje42@gmail.com>
13673
13674 Add Guile as an extension language.
13675 * NEWS: Mention Guile scripting.
13676 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13677 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13678 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13679 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13680 (CLIBS): Add GUILE_LIBS.
13681 (install-guile): New rule.
13682 (guile.o): New rule.
13683 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13684 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13685 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13686 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13687 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13688 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13689 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13690 * configure.ac: New option --with-guile.
13691 * configure: Regenerate.
13692 * config.in: Regenerate.
13693 * auto-load.c: Remove #include "python/python.h". Add #include
13694 "gdb/section-scripts.h".
13695 (source_section_scripts): Handle Guile scripts.
13696 (_initialize_auto_load): Add name of Guile objfile script to
13697 scripts-directory help text.
13698 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13699 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13700 (struct breakpoint): New member scm_bp_object.
13701 * defs.h (enum command_control_type): New value guile_control.
13702 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13703 "extension.h".
13704 (show_user): Update comment.
13705 (_initialize_cli_cmds): Update help text for "show user". Update help
13706 text for max-user-call-depth.
13707 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13708 "extension.h".
13709 (multi_line_command_p): Add guile_control.
13710 (print_command_lines): Handle guile_control.
13711 (execute_control_command, recurse_read_control_structure): Ditto.
13712 (process_next_line): Recognize "guile" commands.
13713 * disasm.c (gdb_disassemble_info): Make non-static.
13714 * disasm.h: #include "dis-asm.h".
13715 (struct gdbarch): Add forward decl.
13716 (gdb_disassemble_info): Declare.
13717 * extension.c: #include "guile/guile.h".
13718 (extension_languages): Add guile.
13719 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13720 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13721 * gdbtypes.c (get_unsigned_type_max): New function.
13722 (get_signed_type_minmax): New function.
13723 * gdbtypes.h (get_unsigned_type_max): Declare.
13724 (get_signed_type_minmax): Declare.
13725 * guile/README: New file.
13726 * guile/guile-internal.h: New file.
13727 * guile/guile.c: New file.
13728 * guile/guile.h: New file.
13729 * guile/scm-arch.c: New file.
13730 * guile/scm-auto-load.c: New file.
13731 * guile/scm-block.c: New file.
13732 * guile/scm-breakpoint.c: New file.
13733 * guile/scm-disasm.c: New file.
13734 * guile/scm-exception.c: New file.
13735 * guile/scm-frame.c: New file.
13736 * guile/scm-gsmob.c: New file.
13737 * guile/scm-iterator.c: New file.
13738 * guile/scm-lazy-string.c: New file.
13739 * guile/scm-math.c: New file.
13740 * guile/scm-objfile.c: New file.
13741 * guile/scm-ports.c: New file.
13742 * guile/scm-pretty-print.c: New file.
13743 * guile/scm-safe-call.c: New file.
13744 * guile/scm-string.c: New file.
13745 * guile/scm-symbol.c: New file.
13746 * guile/scm-symtab.c: New file.
13747 * guile/scm-type.c: New file.
13748 * guile/scm-utils.c: New file.
13749 * guile/scm-value.c: New file.
13750 * guile/lib/gdb.scm: New file.
13751 * guile/lib/gdb/boot.scm: New file.
13752 * guile/lib/gdb/experimental.scm: New file.
13753 * guile/lib/gdb/init.scm: New file.
13754 * guile/lib/gdb/iterator.scm: New file.
13755 * guile/lib/gdb/printing.scm: New file.
13756 * guile/lib/gdb/types.scm: New file.
13757 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13758 (VPATH): Add $(GUILE_SRCDIR).
13759 (GUILE_DIR): New variable.
13760 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13761 (all): Add stamp-guile dependency.
13762 (stamp-guile): New rule.
13763 (clean-guile, install-guile, uninstall-guile): New rules.
13764 (install-only): Add install-guile dependency.
13765 (uninstall): Add uninstall-guile dependency.
13766 (clean): Add clean-guile dependency.
13767
ac020ec5
DE
137682014-02-09 Doug Evans <xdje42@gmail.com>
13769
13770 Revert this patch (which I approved, mea culpa).
13771
13772 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13773
13774 * Makefile.in (all-lib): Remove.
13775 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13776
2a081c59
JK
137772014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13778
13779 Fix Python stack corruption.
13780 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13781 gdb_py_longest.
13782
0a6bd22d
MK
137832014-02-08 Mark Kettenis <kettenis@gnu.org>
13784
13785 * Makefile.in (all-lib): Remove.
13786 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13787
1a860409
DE
137882014-02-07 Doug Evans <dje@google.com>
13789
13790 * extension-priv.h (extension_language_script_ops): Add comment.
13791 (extension_language_ops): Add comment.
caf5a491 13792 (active_ext_lang_state): Fix typo in comment.
1a860409 13793
d137e6dc
PA
137942014-02-07 Pedro Alves <palves@redhat.com>
13795
0dcb32c3 13796 PR breakpoints/16292
d137e6dc
PA
13797 * infrun.c (handle_signal_stop) <signal arrives while stepping
13798 over a breakpoint>: Switch back to the stepping thread.
13799
ce6d0892
YQ
138002014-02-07 Yao Qi <yao@codesourcery.com>
13801
13802 * target.c (target_xfer_partial): Return zero if LEN is zero.
13803
2ed4b548
YQ
138042014-02-07 Yao Qi <yao@codesourcery.com>
13805
13806 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13807 (ld_so_xfer_auxv): Likewise.
13808 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13809 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13810 * corelow.c (core_xfer_partial): Likewise.
13811 * ctf.c (ctf_xfer_partial): Likewise.
13812 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13813 (darwin_xfer_partial): Likewise.
13814 * exec.c (exec_xfer_partial): Likewise.
13815 * gnu-nat.c (gnu_xfer_partial): Likewise.
13816 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13817 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13818 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13819 * linux-nat.c (linux_xfer_siginfo): Likewise.
13820 (linux_proc_xfer_spu): Likewise.
13821 * procfs.c (procfs_xfer_partial): Likewise.
13822 * record-full.c (record_full_xfer_partial): Likewise.
13823 (record_full_core_xfer_partial): Likewise.
13824 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13825 * remote.c (remote_write_qxfer): Likewise.
13826 (remote_write_qxfer, remote_read_qxfer): Likewise.
13827 (remote_xfer_partial): Likewise.
13828 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13829 (rs6000_xfer_shared_libraries): Likewise.
13830 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13831 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13832 (spu_xfer_partial): Likewise.
13833 * target.c (memory_xfer_partial_1): Likewise.
13834 * tracepoint.c (tfile_xfer_partial): Likewise.
13835 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13836 (windows_xfer_partial): Likewise.
13837
c09f20e4
YQ
138382014-02-07 Yao Qi <yao@codesourcery.com>
13839
13840 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13841 comments.
13842 (core_xfer_shared_libraries_aix): Likewise.
13843 * gdbarch.c, gdbarch.h: Regenerated.
13844 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13845 ULONGEST. Change 'len_avail' type to ULONGEST.
13846 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13847 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13848 declaration.
13849 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13850
8635b3bf
YQ
138512014-02-07 Yao Qi <yao@codesourcery.com>
13852
13853 * corefile.c (memory_error): Get 'exception' from ERR and pass
13854 'exception' to throw_error.
13855
6dddc817
DE
138562014-02-06 Doug Evans <xdje42@gmail.com>
13857
13858 * configure.ac (libpython checking): Remove all but python.o from
13859 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13860 * configure: Regenerate.
13861
13862 * Makefile.in (SFILES): Add extension.c.
13863 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13864 (COMMON_OBS): Add extension.o.
13865 * extension.h: New file.
13866 * extension-priv.h: New file.
13867 * extension.c: New file.
13868
13869 * python/python-internal.h: #include "extension.h".
13870 (gdbpy_auto_load_enabled): Declare.
13871 (gdbpy_apply_val_pretty_printer): Declare.
13872 (gdbpy_apply_frame_filter): Declare.
13873 (gdbpy_preserve_values): Declare.
13874 (gdbpy_breakpoint_cond_says_stop): Declare.
13875 (gdbpy_breakpoint_has_cond): Declare.
13876 (void source_python_script_for_objfile): Delete.
13877 * python/python.c: #include "extension-priv.h".
13878 Delete inclusion of "observer.h".
13879 (extension_language_python): Moved here and renamed from
13880 script_language_python in py-auto-load.c.
13881 Redefined to be of type extension_language_defn.
13882 (python_extension_script_ops): New global.
13883 (python_extension_ops): New global.
13884 (struct python_env): New member previous_active.
13885 (restore_python_env): Call restore_active_ext_lang.
13886 (ensure_python_env): Call set_active_ext_lang.
13887 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13888 New arg extlang.
13889 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13890 New arg extlang.
13891 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13892 New arg extlang.
13893 (gdbpy_eval_from_control_command): Renamed from
13894 eval_python_from_control_command, made static. New arg extlang.
13895 (gdbpy_source_script) Renamed from source_python_script, made static.
13896 New arg extlang.
13897 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13898 result to int. New arg extlang.
13899 (gdbpy_source_objfile_script): Renamed from
13900 source_python_script_for_objfile, made static. New arg extlang.
13901 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13902 static. New args extlang, extlang_printers. Change result type to
13903 "void".
13904 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13905 static. New arg extlang. Rename arg printers to extlang_printers
13906 and change type to ext_lang_type_printers *.
13907 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13908 static. Replace argument arg with extlang, extlang_printers.
13909 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13910 (!HAVE_PYTHON, source_python_script): Delete.
13911 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13912 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13913 (!HAVE_PYTHON, start_type_printers): Delete.
13914 (!HAVE_PYTHON, apply_type_printers): Delete.
13915 (!HAVE_PYTHON, free_type_printers): Delete.
13916 (_initialize_python): Delete call to observer_attach_before_prompt.
13917 (finalize_python): Set/restore active extension language.
13918 (gdbpy_finish_initialization) Renamed from
13919 finish_python_initialization, made static. New arg extlang.
13920 (gdbpy_initialized): New function.
13921 * python/python.h: #include "extension.h". Delete #include
13922 "value.h", "mi/mi-cmds.h".
13923 (extension_language_python): Declare.
13924 (GDBPY_AUTO_FILE_NAME): Delete.
13925 (enum py_bt_status): Moved to extension.h and renamed to
13926 ext_lang_bt_status.
13927 (enum frame_filter_flags): Moved to extension.h.
13928 (enum py_frame_args): Moved to extension.h and renamed to
13929 ext_lang_frame_args.
13930 (finish_python_initialization): Delete.
13931 (eval_python_from_control_command): Delete.
13932 (source_python_script): Delete.
13933 (apply_val_pretty_printer): Delete.
13934 (apply_frame_filter): Delete.
13935 (preserve_python_values): Delete.
13936 (gdbpy_script_language_defn): Delete.
13937 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13938 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13939
13940 * auto-load.c: #include "extension.h".
13941 (GDB_AUTO_FILE_NAME): Delete.
13942 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13943 (script_language_gdb): Delete, moved to extension.c and renamed to
13944 extension_language_gdb.
13945 (source_gdb_script_for_objfile): Delete.
13946 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13947 (loaded_script): Change type of language member to
13948 struct extension_language_defn *.
13949 (init_loaded_scripts_info): Initialize
13950 unsupported_script_warning_printed.
13951 (maybe_add_script): Make static. Change type of language arg to
13952 struct extension_language_defn *.
13953 (clear_section_scripts): Reset unsupported_script_warning_printed.
13954 (auto_load_objfile_script_1): Rewrite to use extension language API.
13955 (auto_load_objfile_script): Make public. Remove support-compiled-in
13956 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13957 (source_section_scripts): Rewrite to use extension language API.
13958 (load_auto_scripts_for_objfile): Rewrite to use
13959 auto_load_scripts_for_objfile.
13960 (collect_matching_scripts_data): Change type of language member to
13961 struct extension_language_defn *.
13962 (auto_load_info_scripts): Change type of language arg to
13963 struct extension_language_defn *.
13964 (unsupported_script_warning_print): New function.
13965 (script_not_found_warning_print): Make static.
13966 (_initialize_auto_load): Rewrite construction of scripts-directory
13967 help.
13968 * auto-load.h (struct objfile): Add forward decl.
13969 (struct script_language): Delete.
13970 (struct auto_load_pspace_info): Add forward decl.
13971 (struct extension_language_defn): Add forward decl.
13972 (maybe_add_script): Delete.
13973 (auto_load_objfile_script): Declare.
13974 (script_not_found_warning_print): Delete.
13975 (auto_load_info_scripts): Update prototype.
13976 (auto_load_gdb_scripts_enabled): Declare.
13977 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13978 auto_load_python_scripts_enabled and made public.
13979 (script_language_python): Delete, moved to python.c.
13980 (gdbpy_script_language_defn): Delete.
13981 (info_auto_load_python_scripts): Update to use
13982 extension_language_python.
13983
13984 * breakpoint.c (condition_command): Replace call to
13985 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13986 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13987 with call to breakpoint_ext_lang_cond_says_stop.
13988 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13989 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13990 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13991 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13992 New arg slang.
13993 (local_setattro): Print name of extension language with existing
13994 stop condition.
13995
13996 * valprint.c (val_print, value_print): Update to call
13997 apply_ext_lang_val_pretty_printer.
13998 * cp-valprint.c (cp_print_value): Update call to
13999 apply_ext_lang_val_pretty_printer.
14000 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14001 (gdbpy_apply_val_pretty_printer): Renamed from
14002 apply_val_pretty_printer. New arg extlang.
14003 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14004
14005 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14006 extension language API.
14007 * cli/cli-script.c (execute_control_command): Update to call
14008 eval_ext_lang_from_control_command.
14009
14010 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14011 enum ext_lang_bt_status values. Update call to
14012 apply_ext_lang_frame_filter.
14013 (mi_cmd_stack_list_locals): Ditto.
14014 (mi_cmd_stack_list_args): Ditto.
14015 (mi_cmd_stack_list_variables): Ditto.
14016 * mi/mi-main.c: Delete #include "python/python-internal.h".
14017 Add #include "extension.h".
14018 (mi_cmd_list_features): Replace reference to python internal variable
14019 gdb_python_initialized with call to ext_lang_initialized_p.
14020
14021 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14022 Update to use enum ext_lang_frame_args. Update to call
14023 apply_ext_lang_frame_filter.
14024 * python/py-framefilter.c (extract_sym): Update to use enum
14025 ext_lang_bt_status.
14026 (extract_value, py_print_type, py_print_value): Ditto.
14027 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14028 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14029 (py_print_frame): Ditto.
14030 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14031 New arg extlang. Update to use enum ext_lang_bt_status.
14032
14033 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14034 finish_python_initialization. Replace with call to
14035 finish_ext_lang_initialization.
14036
14037 * typeprint.c (do_free_global_table): Update to call
14038 free_ext_lang_type_printers.
14039 (create_global_typedef_table): Update to call
14040 start_ext_lang_type_printers.
14041 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14042 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14043 (type_print_options): Change type of global_printers from "void *"
14044 to "struct ext_lang_type_printers *".
14045
14046 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14047 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14048 (gdbpy_preserve_values): Renamed from preserve_python_values.
14049 New arg extlang.
14050 (!HAVE_PYTHON, preserve_python_values): Delete.
14051
14052 * utils.c (quit_flag): Delete, moved to extension.c.
14053 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14054 extension.c.
14055
14056 * eval.c: Delete #include "python/python.h".
14057 * main.c: Delete #include "python/python.h".
14058
14059 * defs.h: Update comment.
14060
6af79985
JB
140612014-02-06 Joel Brobecker <brobecker@adacore.com>
14062
14063 GDB 7.7 released.
14064
12c5175d
MK
140652014-02-05 Mark Kettenis <kettenis@gnu.org>
14066
14067 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14068 defined.
14069
8dc5b319
YQ
140702014-02-05 Yao Qi <yao@codesourcery.com>
14071
14072 * remote.c (remote_pass_signals): Remove local 'buf' and use
14073 rs->buf.
14074 (remote_program_signals): Likewise.
14075
de7b2893
YQ
140762014-02-05 Yao Qi <yao@codesourcery.com>
14077
14078 * ctf.c: Include "inferior.h" and "gdbthread.h".
14079 (CTF_PID): A new macro.
14080 (ctf_open): Call inferior_appeared and add_thread_silent.
14081 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14082 (ctf_thread_alive): New function.
14083 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14084
66d032ac
YQ
140852014-02-05 Yao Qi <yao@codesourcery.com>
14086
14087 Revert this patch:
14088
14089 2013-05-24 Yao Qi <yao@codesourcery.com>
14090
14091 * tracepoint.c (TFILE_PID): Remove.
14092 (tfile_open): Don't add thread and inferior.
14093 (tfile_close): Don't set 'inferior_ptid'. Don't call
14094 exit_inferior_silent.
14095 (tfile_thread_alive): Remove.
14096 (init_tfile_ops): Don't set field 'to_thread_alive' of
14097 tfile_ops.
14098
f4ccffad
CE
140992014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14100
14101 * remote.c (remote_start_remote): Call remote_check_symbols even
14102 if only symbol-file (not file) has been given.
14103
591a12a1
UW
141042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14105
14106 * gdbarch.sh (skip_entrypoint): New callback.
14107 * gdbarch.c, gdbarch.h: Regenerate.
14108 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14109 * infrun.c (fill_in_stop_func): Likewise.
14110 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14111 (ppc_elfv2_elf_make_msymbol_special): New function.
14112 (ppc_elfv2_skip_entrypoint): Likewise.
14113 (ppc_linux_init_abi): Install them for ELFv2.
14114
cc0e89c5
UW
141152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14116
14117 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14118 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14119 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14120 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14121 structures returned in GPRs.
14122
52f548e4
UW
141232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14124
14125 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14126 offset to the stack parameter list for the ELFv2 ABI.
14127
d4094b6a
UW
141282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14129
14130 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14131 set_gdbarch_convert_from_func_ptr_addr and
14132 set_gdbarch_elf_make_msymbol_special for ELFv1.
14133 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14134 function descriptors on ELFv1.
14135 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14136 set up r12 at function entry.
14137
cd453cd0
UW
141382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14139
14140 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14141 (struct gdbarch_tdep): New member elf_abi.
14142
14143 * rs6000-tdep.c: Include "elf/ppc64.h".
14144 (rs6000_gdbarch_init): Detect ELF ABI version.
14145
0ff3e01f
UW
141462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14147
14148 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14149 within a register pair holding a DFP 128-bit value on little-endian.
14150 (ppc64_sysv_abi_return_value_base): Likewise.
14151 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14152 (dfp_pseudo_register_write): Likewise.
14153
5b757e5d
UW
141542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14155
14156 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14157 offset on little-endian when passing _Decimal32.
14158 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14159
084ee545
UW
141602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14161
14162 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14163 of the overlapped FP register within the VSX register on little-
14164 endian platforms.
14165 (efpr_pseudo_register_write): Likewise.
14166
d63167af
UW
141672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14168
14169 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14170 offset on little-endian when passing small structures.
14171
e765b44c
UW
141722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14173
14174 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14175 (struct ppc64_sysv_argpos): New data structure.
14176 (ppc64_sysv_abi_push_float): Remove.
14177 (ppc64_sysv_abi_push_val): New function.
14178 (ppc64_sysv_abi_push_integer): Likewise.
14179 (ppc64_sysv_abi_push_freg): Likewise.
14180 (ppc64_sysv_abi_push_vreg): Likewise.
14181 (ppc64_sysv_abi_push_param): Likewise.
14182 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14183 (ppc64_sysv_abi_return_value_base): New function.
14184 (ppc64_sysv_abi_return_value): Refactor to use it.
14185
36c24d95
UW
141862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14187
14188 * NEWS: Document new target powerpc64le-*-linux*.
14189
26fd9228
MK
141902014-02-04 Mark Kettenis <kettenis@gnu.org>
14191
14192 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14193 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14194 core dumps.
14195 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14196 register set used in ELF core dumps. Add floating-point register set.
14197
c5bb7362
KB
141982014-02-03 Kevin Buettner <kevinb@redhat.com>
14199
74228e77 14200 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14201 dwarf2_to_gdb[] table using symbolic constants. Adjust
14202 penultimate entry from number representing the PC register
14203 to symbolic constant representing the MDR register. Add
14204 constant for the PC register to the end of the table.
14205
af09351e
MK
142062014-02-03 Mark Kettenis <kettenis@gnu.org>
14207
14208 * bsd-kvm.c: Include <sys/param.h>
14209
8507e05d
MK
142102014-02-03 Mark Kettenis <kettenis@gnu.org>
14211
14212 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14213
ae56bfb8
JB
142142014-01-31 Joel Brobecker <brobecker@adacore.com>
14215
14216 * ada-lang.h (clear_ada_sym_cache): Delete.
14217
718ee4dc
UW
142182014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14219
14220 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14221
401e27fd
JM
142222014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14223
14224 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14225 the sigreturn register save area only if the syscall is
14226 sigreturn.
14227
a7c88acd
JB
142282014-01-29 Joel Brobecker <brobecker@adacore.com>
14229
14230 * valops.c (value_slice): Minor reformatting.
14231
fa0079ea
UW
142322014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14233
14234 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14235
c6044dd1
JB
142362014-01-28 Joel Brobecker <brobecker@adacore.com>
14237
14238 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14239 New static globals.
14240 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14241 (ada_ignore_descriptive_types_p): New static global.
14242 (find_parallel_type_by_descriptive_type): Return immediately
14243 if ada_ignore_descriptive_types_p is set.
14244 (_initialize_ada_language): Register new commands "maintenance
14245 set ada", "maintenance show ada", "maintenance set ada
14246 ignore-descriptive-types" and "maintenance show ada
14247 ignore-descriptive-types".
14248 * NEWS: Add entry for new "maint ada set/show
14249 ignore-descriptive-types" commands.
14250
568e808b
MM
142512014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14252
14253 * record-btrace.c (record_btrace_close): Call btrace_teardown
14254 for all threads.
14255
467d141b
JB
142562014-01-27 Joel Brobecker <brobecker@adacore.com>
14257
14258 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14259 "ui-out.h".
14260
fb151210
JB
142612014-01-27 Joel Brobecker <brobecker@adacore.com>
14262
14263 * ada-typeprint (type_is_full_subrange_of_target_type):
14264 New function.
14265 (print_range): Add parameter bounds_prefered_p. If not set,
14266 try printing range types using the name of their base type.
14267 (print_range_type): Add parameter bounds_prefered_p.
14268 Use it in call to print_range.
14269 (print_array_type, ada_print_type): Update calls to print_range
14270 and print_range_type.
14271
aba02109
JB
142722014-01-27 Joel Brobecker <brobecker@adacore.com>
14273
14274 * ada-typeprint.c (print_array_type, print_choices, print_range)
14275 (print_range_bound, print_dynamic_range_bound, print_range_type):
14276 Remove declaration.
14277
e62e21fd
JB
142782014-01-27 Joel Brobecker <brobecker@adacore.com>
14279
14280 * ada-typeprint.c (print_range): Add missing empty line
14281 after local declaration.
14282
859cf5d1
JB
142832014-01-27 Joel Brobecker <brobecker@adacore.com>
14284
14285 * ada-valprint.c (print_optional_low_bound): Get index_type's
14286 target type for as long as it is a TYPE_CODE_RANGE.
14287
25790f6f
JB
142882014-01-27 Joel Brobecker <brobecker@adacore.com>
14289
14290 * procfs.c (procfs_make_note_section): Remove assertion and
14291 associated comment.
14292
6b6aa828
YQ
142932014-01-24 Yao Qi <yao@codesourcery.com>
14294
14295 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14296 * corelow.c (get_core_siginfo): Likewise.
14297
5d6df423
YQ
142982014-01-24 Yao Qi <yao@codesourcery.com>
14299
14300 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14301 ULONGEST. Don't check 'len' is negative.
14302 (remote_write_bytes): Change type of 'len' to ULONGEST.
14303
83b645b8
TT
143042014-01-23 Tom Tromey <tromey@redhat.com>
14305
14306 PR python/16485:
14307 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14308 Handle exception from frame.block.
14309 (FrameVars.fetch_frame_locals): Likewise.
14310
0740f8d8
TT
143112014-01-23 Tom Tromey <tromey@redhat.com>
14312
14313 PR python/16487:
14314 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14315 on a NULL pointer. Move "goto error" to correct place.
14316
21909fa1
TT
143172014-01-23 Tom Tromey <tromey@redhat.com>
14318
14319 PR python/16491:
14320 * python/py-framefilter.c (apply_frame_filter): Call
14321 ensure_python_env after computing gdbarch.
14322
17fde6d0
YQ
143232014-01-23 Yao Qi <yao@codesourcery.com>
14324
14325 * target.c (raw_memory_xfer_partial): Change argument type
14326 from void * to gdb_byte *.
14327 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14328
87ce2a04
DE
143292014-01-22 Doug Evans <dje@google.com>
14330
14331 New gdbserver option --debug-format=timestamp.
14332 * NEWS: Mention it.
14333
237b092b
AA
143342014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14335
14336 * syscalls/s390x-linux.xml: New file.
14337 * syscalls/s390-linux.xml: New file.
14338 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14339 (XML_SYSCALL_FILENAME_S390X): Likewise.
14340 (op_svc): New enum value for SVC opcode.
14341 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14342 (s390_linux_get_syscall_number): New function.
14343 (s390_gdbarch_init): Register '*get_syscall_number' and the
14344 syscall xml file name.
14345 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14346 "s390-linux.xml" and "s390x-linux.xml".
14347 * NEWS: Announce new feature.
14348
54bff650
BS
143492014-01-22 Baruch Siach <baruch@tkos.co.il>
14350
14351 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14352
14e361d7
PA
143532014-01-22 Pedro Alves <palves@redhat.com>
14354
14355 * xtensa-config.c: Include defs.h.
14356
46bbb3ed
JB
143572014-01-22 Joel Brobecker <brobecker@adacore.com>
14358
14359 * common/common-utils.h: Add "ARI:" comment beside __func__
14360 reference.
14361
3a80edfc
JB
143622014-01-22 Joel Brobecker <brobecker@adacore.com>
14363
14364 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14365 documentation a bit.
14366
4869db5e
RM
143672014-01-21 Roland McGrath <mcgrathr@google.com>
14368
14369 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14370 * configure: Regenerate.
14371 * aclocal.m4: Regenerate.
14372 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14373 New substituted variables.
14374 (install-strip): New target.
14375 (INSTALL_SCRIPT): New substituted variable.
14376 (FLAGS_TO_PASS): Add it.
14377 (install-only): Use $(INSTALL_SCRIPT) rather than
14378 $(INSTALL_PROGRAM) for gcore.
14379
9ea4267d
TT
143802014-01-20 Tom Tromey <tromey@redhat.com>
14381
14382 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14383 together.
14384
1f2bdf09
TT
143852014-01-20 Tom Tromey <tromey@redhat.com>
14386
14387 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14388 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14389 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14390 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14391 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14392 (struct cmd_list_element) <flags>: Remove.
14393 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14394 doc_allocated>: New fields.
14395 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14396 bitfields.
14397 * maint.c (maintenance_do_deprecate): Update.
14398 * top.c (execute_command): Update.
14399
e671835b
BS
144002014-01-20 Baruch Siach <baruch@tkos.co.il>
14401
14402 * xtensa-linux-nat.c: Include asm/ptrace.h.
14403
50367cd2
IB
144042014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14405
14406 * Makefile.in (SFILES): Add d-support.c.
14407 (COMMON_OBS): Add d-support.o.
14408 * d-lang.h (d_parse_symbol): Add comment, now defined in
14409 d-support.c.
14410 * d-lang.c (parse_call_convention)
14411 (parse_attributes, parse_function_types)
14412 (parse_function_args, parse_type, parse_identifier)
14413 (call_convention_p, d_parse_symbol): Move functions to ...
14414 * d-support.c: ... New file.
14415
ec9f644a
IB
144162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14417
14418 * d-lang.h (d_parse_symbol): Add declaration.
14419 * d-lang.c (extract_identifiers)
14420 (extract_type_info): Remove functions.
14421 (parse_call_convention, parse_attributes)
14422 (parse_function_types, parse_function_args)
14423 (parse_type, parse_identifier, call_convention_p)
14424 (d_parse_symbol): New functions.
14425 (d_demangle): Use d_parse_symbol to demangle D symbols.
14426
94b1b47e
IB
144272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14428
14429 * d-lang.h (struct builtin_d_type): New data type.
14430 (builtin_d_type): Add declaration.
14431 * d-lang.c (d_language_arch_info, build_d_types)
14432 (builtin_d_type): New functions.
14433 (enum d_primitive_types): New data type.
14434 (d_language_defn): Change c_language_arch_info to
14435 d_language_arch_info.
14436 (d_type_data): New static variable.
14437 (_initialize_d_language): Initialize d_type_data.
14438
63778547
IB
144392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14440
14441 * d-lang.h (d_main_name): Add declaration.
14442 * d-lang.c (d_main_name): New function.
14443 * symtab.c (find_main_name): Add call to d_main_name.
14444
3271ba66
IB
144452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14446
14447 * d-lang.c (d_language_defn): Change macro_expansion_c to
14448 macro_expansion_no.
14449
d36b3012
IB
144502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14451
14452 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14453
c90a6fb7
SDJ
144542014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14455
14456 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14457 gdb_exception" declaration.
14458 * remote.c (getpkt_or_notif_sane): Likewise.
14459
749234e5
DE
144602014-01-17 Doug Evans <dje@google.com>
14461
14462 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14463 function, contents of dirnames_to_char_ptr_vec_append moved here.
14464 (delim_string_to_char_ptr_vec): New function.
14465 (dirnames_to_char_ptr_vec_append): Rewrite.
14466 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14467
df049a58
DE
144682014-01-17 Doug Evans <dje@google.com>
14469
14470 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14471 and moved here ...
14472 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14473 #include "common-utils.h".
14474 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14475 * common/vec.h (VEC_ASSERT_PASS): Update.
14476 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14477 (MACH_CHECK_ERROR): Update.
14478
69f97648
SM
144792014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14480
14481 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14482 comments.
14483 * gdbarch.h: Regenerate.
14484
98b1cfdc
TT
144852014-01-16 Tom Tromey <tromey@redhat.com>
14486
14487 * value.c (struct value) <regnum>: Move earlier.
14488
77a19445
TT
144892014-01-16 Tom Tromey <tromey@redhat.com>
14490
14491 * remote.c (extended_remote_create_inferior): Rename from
14492 extended_remote_create_inferior_1. Add "ops" argument. Remove
14493 old implementation.
14494
62261490
PA
144952014-01-16 Pedro Alves <palves@redhat.com>
14496
14497 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14498 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14499 the backchain.
14500
4d65956b
DE
145012014-01-16 Doug Evans <dje@google.com>
14502
14503 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14504
52834460
MM
145052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14506
14507 * btrace.h (btrace_thread_flag): New.
14508 (struct btrace_thread_info) <flags>: New.
14509 * record-btrace.c (record_btrace_resume_thread)
14510 (record_btrace_find_thread_to_move, btrace_step_no_history)
14511 (btrace_step_stopped, record_btrace_start_replaying)
14512 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14513 (record_btrace_find_resume_thread): New.
14514 (record_btrace_resume, record_btrace_wait): Extend.
14515 (record_btrace_can_execute_reverse): New.
14516 (record_btrace_open): Fail in non-stop mode.
14517 (record_btrace_set_replay): Split into this, ...
14518 (record_btrace_stop_replaying): ... this, ...
14519 (record_btrace_clear_histories): ... and this.
14520 (init_record_btrace_ops): Init to_can_execute_reverse.
14521 * NEWS: Announce it.
14522
118e6252
MM
145232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14524
14525 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14526 (forward_target_decr_pc_after_break)
14527 (target_decr_pc_after_break): New.
14528 * target.c (forward_target_decr_pc_after_break)
14529 (target_decr_pc_after_break): New.
14530 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14531 instead of gdbarch_decr_pc_after_break.
14532 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14533 instead of gdbarch_decr_pc_after_break.
14534 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14535 instead of gdbarch_decr_pc_after_break.
14536 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14537 instead of gdbarch_decr_pc_after_break.
14538 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14539 instead of gdbarch_decr_pc_after_break.
14540 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14541 instead of gdbarch_decr_pc_after_break.
14542
6e07b1d2
MM
145432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14544
14545 * btrace.c: Include regcache.h.
14546 (btrace_add_pc): New.
14547 (btrace_enable): Call btrace_add_pc.
14548 (btrace_is_empty): New.
14549 * btrace.h (btrace_is_empty): New.
14550 * record-btrace.c (require_btrace, record_btrace_info): Call
14551 btrace_is_empty.
14552
969c39fb
MM
145532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14554
14555 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14556 Support delta reads.
14557 (linux_disable_btrace): Change return type.
14558 * common/linux-btrace.h (linux_read_btrace): Change parameters
14559 and return type to allow error reporting. Update users.
14560 (linux_disable_btrace): Change return type. Update users.
14561 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14562 New.
14563 (btrace_error): New.
14564 (btrace_block) <begin>: Comment on BEGIN == 0.
14565 * btrace.c (btrace_compute_ftrace): Start from the end of
14566 the current trace.
14567 (btrace_stitch_trace, btrace_clear_history): New.
14568 (btrace_fetch): Read delta trace, return if replaying.
14569 (btrace_clear): Move clear history code to btrace_clear_history.
14570 (parse_xml_btrace): Throw an error if parsing failed.
14571 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14572 and return type to allow error reporting.
14573 (target_read_btrace): Change parameters and return type to allow
14574 error reporting.
14575 * target.c (target_read_btrace): Update.
14576 * remote.c (remote_read_btrace): Support delta reads. Pass
14577 errors on.
14578 * NEWS: Announce it.
14579
0b722aec
MM
145802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14581
14582 * record.h (record_btrace_frame_unwind)
14583 (record_btrace_tailcall_frame_unwind): New declarations.
14584 * dwarf2-frame: Include record.h
14585 (dwarf2_frame_cfa): Throw an error for btrace frames.
14586 * record-btrace.c: Include hashtab.h.
14587 (btrace_get_bfun_name): New.
14588 (btrace_call_history): Call btrace_get_bfun_name.
14589 (struct btrace_frame_cache): New.
14590 (bfcache): New.
14591 (bfcache_hash, bfcache_eq, bfcache_new): New.
14592 (btrace_get_frame_function): New.
14593 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14594 (record_btrace_frame_this_id): Compute own id.
14595 (record_btrace_frame_prev_register): Provide PC, throw_error
14596 for all other registers.
14597 (record_btrace_frame_sniffer): Detect btrace frames.
14598 (record_btrace_tailcall_frame_sniffer): New.
14599 (record_btrace_frame_dealloc_cache): New.
14600 (record_btrace_frame_unwind): Add new functions.
14601 (record_btrace_tailcall_frame_unwind): New.
14602 (_initialize_record_btrace): Allocate cache.
14603 * btrace.c (btrace_clear): Call reinit_frame_cache.
14604 * NEWS: Announce it.
14605
066ce621
MM
146062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14607
14608 * record-btrace.c (record_btrace_set_replay)
14609 (record_btrace_goto_begin, record_btrace_goto_end)
14610 (record_btrace_goto): New.
14611 (init_record_btrace_ops): Initialize them.
14612 * NEWS: Announce it.
14613
e2887aa3
MM
146142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14615
14616 * record-btrace.c (record_btrace_find_new_threads)
14617 (record_btrace_thread_alive): New.
14618 (init_record_btrace_ops): Initialize to_find_new_threads and
14619 to_thread_alive.
14620
b2f4cfde
MM
146212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14622
14623 * record-btrace.c (record_btrace_resume): New.
14624 (record_btrace_wait): New.
14625 (init_record_btrace_ops): Initialize to_wait and to_resume.
14626
633785ff
MM
146272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14628
14629 * record-btrace.c (record_btrace_xfer_partial)
14630 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14631 (record_btrace_allow_memory_access): New.
14632 (init_record_btrace_ops): Initialize new methods.
14633 * target.c (raw_memory_xfer_partial): Bail out if target reports
14634 that this memory is not available.
14635
3db08215
MM
146362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14637
14638 * target.h (target_ops) <to_insert_breakpoint>
14639 <to_remove_breakpoint>: Add target_ops parameter.
14640 (forward_target_insert_breakpoint): New.
14641 (forward_target_remove_breakpoint): New.
14642 (memory_remove_breakpoint, memory_insert_breakpoint):
14643 Add target_ops parameter.
14644 * target.c (target_insert_breakpoint): Split into this and ...
14645 (forward_target_insert_breakpoint): ... this.
14646 (target_remove_breakpoint): Split into this and ...
14647 (forward_target_remove_breakpoint): ... this.
14648 (debug_to_insert_breakpoint): Add target_ops parameter.
14649 Call forward_target_insert_breakpoint.
14650 (debug_to_remove_breakpoint): Add target_ops parameter.
14651 Call forward_target_remove_breakpoint.
14652 (update_current_target): Do not inherit or default to_insert_breakpoint
14653 and to_remove_breakpoint.
14654 * corelow.c (ignore): Add target_ops parameter.
14655 * exec.c (ignore): Add target_ops parameter.
14656 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14657 Add target_ops parameter.
14658 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14659 Add target_ops parameter.
14660 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14661 Add target_ops parameter.
14662 * record-full.c (record_full_beneath_to_insert_breakpoint)
14663 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14664 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14665 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14666 (record_full_core_remove_breakpoint): Add target_ops parameter.
14667 Update users.
14668 (record_full_beneath_to_insert_breakpoint_ops)
14669 (record_full_beneath_to_remove_breakpoint_ops)
14670 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14671 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14672 tmp_to_remove_breakpoint_ops,
14673 record_full_beneath_to_insert_breakpoint_ops, and
14674 record_full_beneath_to_remove_breakpoint_ops.
14675 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14676 (m32r_remove_breakpoint): Add target_ops parameter.
14677 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14678 Add target_ops parameter.
14679 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14680 Add target_ops parameter.
14681
cecac1ab
MM
146822014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14683 Markus Metzger <markus.t.metzger@intel.com>
14684
14685 * record-btrace.c: Include frame-unwind.h.
14686 (record_btrace_frame_unwind_stop_reason)
14687 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14688 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14689 New.
14690 (init_record_btrace_ops): Install it.
14691
824344ca
MM
146922014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14693
14694 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14695 get_prev_frame_1.
14696
32261e52
MM
146972014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14698
14699 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14700 earlier.
14701
ea001bdc
MM
147022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14703
14704 * frame-unwind.c: Include target.h.
14705 (frame_unwind_try_unwinder): New function with code from ...
14706 (frame_unwind_find_by_frame): ... here. New variable
14707 unwinder_from_target, call also target_get_unwinder)
14708 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14709 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14710 * target.h (struct target_ops): New fields to_get_unwinder and
14711 to_get_tailcall_unwinder.
14712 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14713
1f3ef581
MM
147142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14715
14716 * record-btrace.c (record_btrace_fetch_registers)
14717 (record_btrace_store_registers)
14718 (record_btrace_to_prepare_to_store): New.
14719 (init_record_btrace_ops): Add the above.
14720
f32dbf8c
MM
147212014-01-16 Tom Tromey <tromey@redhat.com>
14722
14723 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14724 * target.h (struct target_ops) <to_prepare_to_store>: Add
14725 argument.
14726 (target_prepare_to_store): Add argument.
14727 * target.c (debug_to_prepare_to_store): Add argument.
14728 (update_current_target): Update.
14729 * remote.c (remote_prepare_to_store): Add 'self' argument.
14730 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14731 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14732 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14733 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14734 argument.
14735 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14736 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14737 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14738 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14739 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14740
07bbe694
MM
147412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14742
14743 * btrace.h (replay) <replay>: New.
14744 (btrace_is_replaying): New.
14745 * btrace.c (btrace_clear): Free replay iterator.
14746 (btrace_is_replaying): New.
14747 * record-btrace.c (record_btrace_is_replaying): New.
14748 (record_btrace_info): Print insn number if replaying.
14749 (record_btrace_insn_history): Start at replay position.
14750 (record_btrace_call_history): Start at replay position.
14751 (init_record_btrace_ops): Init to_record_is_replaying.
14752
0688d04e
MM
147532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14754
14755 * record-btrace.c (record_btrace_insn_history_range): Include
14756 end.
14757 (record_btrace_insn_history_from): Adjust range.
14758 (record_btrace_call_history_range): Include
14759 end.
14760 (record_btrace_call_history_from): Adjust range.
14761 * NEWS: Announce changes.
14762
8710b709
MM
147632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14764
14765 * record.h (enum record_print_flag)
14766 <record_print_indent_calls>: New.
14767 * record.c (get_call_history_modifiers): Recognize /c modifier.
14768 (_initialize_record): Document /c modifier.
14769 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14770 Reorder fields. Optionally indent the function name. Update
14771 all users.
14772 * NEWS: Announce changes.
14773
d0fa7535
MM
147742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14775
14776 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14777
5de9129b
MM
147782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14779
14780 * btrace.c (ftrace_new_function): Start counting at one.
14781 * record-btrace.c (record_btrace_info): Adjust number of calls
14782 and insns.
14783 * NEWS: Announce it.
14784
7acbe133
MM
147852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14786
14787 * record-btrace.c (btrace_call_history_insn_range): Print
14788 insn range as [begin, end].
14789
23a7fe75
MM
147902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14791
14792 * btrace.h (struct btrace_func_link): New.
14793 (enum btrace_function_flag): New.
14794 (struct btrace_inst): Rename to ...
14795 (struct btrace_insn): ...this. Update all users.
14796 (struct btrace_func) <ibegin, iend>: Remove.
14797 (struct btrace_func_link): New.
14798 (struct btrace_func): Rename to ...
14799 (struct btrace_function): ...this. Update all users.
14800 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14801 (number, level, flags>: New.
14802 (struct btrace_insn_iterator): Rename to ...
14803 (struct btrace_insn_history): ...this.
14804 Update all users.
14805 (struct btrace_insn_iterator, btrace_call_iterator): New.
14806 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14807 (struct btrace_target_info) <begin, end, level>
14808 <insn_history, call_history>: New.
14809 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14810 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14811 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14812 (btrace_call_number, btrace_call_begin, btrace_call_end)
14813 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14814 (btrace_find_function_by_number, btrace_set_insn_history)
14815 (btrace_set_call_history): New.
14816 * btrace.c (btrace_init_insn_iterator)
14817 (btrace_init_func_iterator, compute_itrace): Remove.
14818 (ftrace_print_function_name, ftrace_print_filename)
14819 (ftrace_skip_file): Change
14820 parameter to const.
14821 (ftrace_init_func): Remove.
14822 (ftrace_debug): Use new btrace_function fields.
14823 (ftrace_function_switched): Also consider gaining and
14824 losing symbol information).
14825 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14826 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14827 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14828 New.
14829 (ftrace_new_function): Move. Remove debug print.
14830 (ftrace_update_lines, ftrace_update_insns): New.
14831 (ftrace_update_function): Check for call, ret, and jump.
14832 (compute_ftrace): Renamed to ...
14833 (btrace_compute_ftrace): ...this. Rewritten to compute call
14834 stack.
14835 (btrace_fetch, btrace_clear): Updated.
14836 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14837 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14838 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14839 (btrace_call_number, btrace_call_begin, btrace_call_end)
14840 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14841 (btrace_find_function_by_number, btrace_set_insn_history)
14842 (btrace_set_call_history): New.
14843 * record-btrace.c (require_btrace): Use new btrace thread
14844 info fields.
14845 (record_btrace_info, btrace_insn_history)
14846 (record_btrace_insn_history, record_btrace_insn_history_range):
14847 Use new btrace thread info fields and new iterator.
14848 (btrace_func_history_src_line): Rename to ...
14849 (btrace_call_history_src_line): ...this. Use new btrace
14850 thread info fields.
14851 (btrace_func_history): Rename to ...
14852 (btrace_call_history): ...this. Use new btrace thread info
14853 fields and new iterator.
14854 (record_btrace_call_history, record_btrace_call_history_range):
14855 Use new btrace thread info fields and new iterator.
14856
8372a7cb
MM
148572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14858
14859 * frame.h (frame_id_build_unavailable_stack_special): New.
14860 * frame.c (frame_id_build_unavailable_stack_special): New.
14861
c2170eef
MM
148622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14863
14864 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14865 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14866 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14867 to gdbarch.
14868 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14869 (i386_insn_is_jump, i386_jmp_p): New.
14870 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14871 insn_is_jump to gdbarch.
14872 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14873 * gdbarch.h: Regenerated.
14874 * gdbarch.c: Regenerated.
14875 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14876 (default_insn_is_jump): New.
14877 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14878 (default_insn_is_jump): New.
14879
864089d2
MM
148802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14881
14882 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14883 Change to ...
14884 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14885 (btrace_read_type) <btrace_read_new>: Change to ...
14886 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14887
ed9edfb5
MM
148882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14889
14890 * common/linux-btrace.c (linux_read_btrace): Free trace from
14891 previous iteration.
14892
fbcbc3fd
DE
148932014-01-15 Doug Evans <dje@google.com>
14894
14895 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14896 uint32_t.
14897
3d548a53
TT
148982014-01-15 Tom Tromey <tromey@redhat.com>
14899
14900 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14901 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14902 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14903 (set_objfile_main_name): New function.
14904 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14905 language_of_main>: New fields.
14906 (set_objfile_main_name): Declare.
14907 * symtab.c (find_main_name): Loop over objfiles to find the main
14908 name and language.
14909 (set_main_name): Now static.
14910 (get_main_info): Add comment.
14911 * symtab.h (set_main_name): Don't declare.
14912
32ac0d11
TT
149132014-01-15 Tom Tromey <tromey@redhat.com>
14914
14915 * symtab.c (main_progspace_key): New global.
14916 (struct main_info): New.
14917 (name_of_main, language_of_main): Remove.
14918 (get_main_info, main_info_cleanup): New function.
14919 (set_main_name, main_name, main_language): Use get_main_info.
14920 (_initialize_symtab): Initialize main_progspace_key.
14921
9e6c82ad
TT
149222014-01-15 Tom Tromey <tromey@redhat.com>
14923
14924 * dbxread.c (process_one_symbol): Update.
14925 * dwarf2read.c (read_partial_die): Update.
14926 * symfile.c (set_initial_language): Call main_language.
14927 * symtab.c (language_of_main): Now static.
14928 (set_main_name): Add 'lang' parameter.
14929 (find_main_name): Update.
14930 (main_language): New function.
14931 (symtab_observer_executable_changed): Update.
14932 * symtab.h (set_main_name): Update.
14933 (language_of_main): Remove.
14934 (main_language): Declare.
14935
6ef55de7
TT
149362014-01-15 Tom Tromey <tromey@redhat.com>
14937
14938 * symfile.c (init_entry_point_info): Use new "initialized" field.
14939 Update.
14940 * objfiles.h (struct entry_point) <initialized>: New field.
14941 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14942 (struct objfile) <ei>: ...here. Remove.
14943 * objfiles.c (entry_point_address_query): Update.
14944
53eddfa6
TT
149452014-01-15 Tom Tromey <tromey@redhat.com>
14946
14947 * objfiles.c (entry_point_address_query): Relocate entry point
14948 address.
14949 (objfile_relocate1): Do not relocate entry point address.
14950 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14951 <the_bfd_section_index>: New field.
14952 * symfile.c (init_entry_point_info): Find the entry point's
14953 section.
14954
d56e56aa
TT
149552014-01-15 Tom Tromey <tromey@redhat.com>
14956
14957 * solib-frv.c (enable_break): Use entry_point_address_query.
14958
33a97bbe
OJ
149592014-01-15 Omair Javaid <omair.javaid@linaro.org>
14960
14961 * NEWS: Add note on improved process record-replay on
14962 arm*-linux* targets.
14963
c6ec2b30
OJ
149642014-01-15 Omair Javaid <omair.javaid@linaro.org>
14965
14966 * arm-tdep.c (enum arm_record_result): New enum.
14967 (arm_record_unsupported_insn): New function.
14968 (arm_record_coproc_data_proc): Removed.
14969 (thumb2_record_ld_st_multiple): New function.
14970 (thumb2_record_ld_st_dual_ex_tbb): New function.
14971 (thumb2_record_data_proc_sreg_mimm): New function.
14972 (thumb2_record_ps_dest_generic): New function.
14973 (thumb2_record_branch_misc_cntrl): New function.
14974 (thumb2_record_str_single_data): New function.
14975 (thumb2_record_ld_mem_hints): New function.
14976 (thumb2_record_ld_word): New function.
14977 (thumb2_record_lmul_lmla_div): New function.
14978 (thumb2_record_decode_insn_handler): New function.
14979 (decode_insn): Add thumb32 instruction handlers.
14980
97dfe206
OJ
149812014-01-15 Omair Javaid <omair.javaid@linaro.org>
14982
14983 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14984 (struct arm_linux_record_tdep): Declare.
14985 (arm_canonicalize_syscall): New function.
14986 (arm_all_but_pc_registers_record): New function.
14987 (arm_linux_syscall_record): New function.
14988 (arm_linux_init_abi): Add syscall recording constructs.
14989 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14990 decoding. (arm_record_coproc_data_proc): Update arm syscall
14991 decoding.
14992 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14993 <arm_syscall_record>: New field.
14994 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14995 gdb_target_obs.
14996
9904a494
OJ
149972014-01-15 Omair Javaid <omair.javaid@linaro.org>
14998
14999 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15000 register for push instruction recording.
15001
f969241e
OJ
150022014-01-15 Omair Javaid <omair.javaid@linaro.org>
15003
15004 * arm-tdep.c (thumb_record_misc): Update to correct logical
15005 error while recording ldm, ldmia and pop instructions.
15006
bfbbec00
OJ
150072014-01-15 Omair Javaid <omair.javaid@linaro.org>
15008
15009 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15010
e40adcc9
PA
150112014-01-15 Pedro Alves <palves@redhat.com>
15012
15013 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15014 (go32_resume, go32_fetch_registers, store_register)
15015 (go32_store_registers, go32_prepare_to_store)
15016 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15017 (go32_create_inferior, go32_can_run, go32_terminal_init)
15018 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15019 declarations.
15020
b0a16e66
TT
150212014-01-15 Tom Tromey <tromey@redhat.com>
15022
15023 * target.h (async_callback_ftype): New typedef.
15024 (struct target_ops) <to_async>: Use it.
15025
bf7105a4
JB
150262014-01-15 Joel Brobecker <brobecker@adacore.com>
15027
15028 * python/py-value.c (get_field_type): Remove unnecessary curly
15029 braces for single-statement if block.
15030
a8f35c2e
JB
150312014-01-15 Joel Brobecker <brobecker@adacore.com>
15032
15033 * python/py-type.c (convert_field): Add missing empty line
15034 after declarations.
15035
bb4142cf
DE
150362014-01-14 Doug Evans <dje@google.com>
15037
15038 * symfile.h (expand_symtabs_matching): Renamed from
15039 expand_partial_symbol_names. Update prototype.
15040 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15041 * symfile.c (expand_symtabs_matching): Renamed from
15042 expand_partial_symbol_names. New args file_matcher, kind.
15043 Rename arg fun to symbol_matcher.
15044 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15045 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15046 ada_expand_partial_symbol_name.
15047 (ada_make_symbol_completion_list): Update to call
15048 expand_symtabs_matching.
15049 (ada_add_global_exceptions): Call expand_symtabs_matching.
15050 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15051 call map_symbol_filenames.
15052 * symtab.c (sources_info): Update to call map_symbol_filenames.
15053 (search_symbols): Call expand_symtabs_matching.
15054 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15055 (default_make_symbol_completion_list_break_on): Update to call
15056 expand_symtabs_matching.
15057 (make_source_files_completion_list): Update to call
15058 map_symbol_filenames.
15059
206f2a57
DE
150602014-01-14 Doug Evans <dje@google.com>
15061
15062 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15063 (expand_symtabs_symbol_matcher_ftype): New typedef.
15064 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15065 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15066 * symfile.c (expand_partial_symbol_names): Update to use
15067 expand_symtabs_symbol_matcher_ftype.
15068 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15069 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15070 Arg name_matcher renamed to symbol_matcher.
15071 * psymtab.c (recursively_search_psymtabs): Update to use
15072 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15073 sym_matcher.
15074 (expand_symtabs_matching_via_partial): Update to use
15075 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15076 Arg name_matcher renamed to symbol_matcher.
15077
540c2971
DE
150782014-01-14 Doug Evans <dje@google.com>
15079
15080 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15081 (map_partial_symbol_filenames): Ditto.
15082 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15083 (map_partial_symbol_filenames): Ditto.
15084 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15085 (map_partial_symbol_filenames): Ditto.
15086 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15087 (map_partial_symbol_filenames): Ditto.
15088 * symtab.c: Delete #include "psymtab.h".
15089
8213266a
PA
150902014-01-14 Pedro Alves <palves@redhat.com>
15091 Tom Tromey <tromey@redhat.com>
15092
15093 * infrun.c (use_displaced_stepping): Use find_record_target
15094 instead of RECORD_IS_USED.
15095 (adjust_pc_after_break): Use record_full_is_used instead of
15096 RECORD_IS_USED.
15097 * record-btrace.c (record_btrace_open): Call record_preopen
15098 instead of checking RECORD_IS_USED.
15099 * record-full.c (record_full_shortname)
15100 (record_full_core_shortname): New globals.
15101 (record_full_is_used): New function.
15102 (find_full_open): Call record_preopen instead of checking
15103 RECORD_IS_USED.
15104 (init_record_full_ops): Set the target's shortname to
15105 record_full_shortname.
15106 (init_record_full_core_ops): Set the target's shortname to
15107 record_full_core_shortname.
15108 * record-full.h (record_full_is_used): Declare.
15109 * record.c (find_record_target): Make extern.
15110 (record_preopen): New function.
15111 * record.h (RECORD_IS_USED): Delete macro.
15112 (find_record_target, record_preopen): Declare functions.
15113
7ec1862d
YQ
151142014-01-14 Yao Qi <yao@codesourcery.com>
15115
15116 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15117 'len''s type to ULONGEST.
15118 (core_xfer_shared_libraries_aix): Likewise.
15119 * gdbarch.c, gdbarch.h: Regenerated.
15120 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15121 Change type of 'len' to ULONGEST.
15122 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15123 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15124
dea80a27
YQ
151252014-01-14 Yao Qi <yao@codesourcery.com>
15126
15127 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15128 type of 'len' to ULONGEST.
15129 (linux_xfer_osdata_processgroups): Likewise.
15130 (linux_xfer_osdata_threads): Likewise.
15131 (linux_xfer_osdata_fds): Likewise.
15132 (linux_xfer_osdata_isockets): Likewise.
15133 (linux_xfer_osdata_shm): Likewise.
15134 (linux_xfer_osdata_sem): Likewise.
15135 (linux_xfer_osdata_msg): Likewise.
15136 (linux_common_xfer_osdata): Likewise.
15137 (struct osdata_type) <getter>: Likewise.
15138 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15139 the declaration.
15140
b55e14c7
YQ
151412014-01-14 Yao Qi <yao@codesourcery.com>
15142
15143 * target.h (target_xfer_partial_ftype): Update.
15144 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15145 ULONGEST.
15146 * aix-thread.c (aix_thread_xfer_partial): Change type of
15147 argument 'len' to ULONGEST.
15148 * auxv.c (procfs_xfer_auxv): Likewise.
15149 (ld_so_xfer_auxv): Likewise.
15150 (memory_xfer_auxv): Likewise.
15151 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15152 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15153 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15154 * corelow.c (core_xfer_partial): Likewise.
15155 * ctf.c (ctf_xfer_partial): Likewise.
15156 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15157 '%u'.
15158 (darwin_read_dyld_info): Likewise.
15159 (darwin_xfer_partial): Likewise.
15160 * exec.c (section_table_xfer_memory_partial): Likewise.
15161 (exec_xfer_partial): Likewise.
15162 * exec.h (section_table_xfer_memory_partial): Update
15163 declaration.
15164 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15165 instead of plongest.
15166 (gnu_xfer_partial): Likewise.
15167 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15168 (ia64_hpux_xfer_solib_got): Likewise.
15169 (ia64_hpux_xfer_partial): Likewise.
15170 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15171 * inf-ptrace.c (inf_ptrace_xfer_partial):
15172 * inf-ttrace.c (inf_ttrace_xfer_partial):
15173 * linux-nat.c (linux_xfer_siginfo): Likewise.
15174 (linux_nat_xfer_partial): Likewise.
15175 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15176 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15177 * monitor.c (monitor_xfer_memory): Likewise.
15178 (monitor_xfer_partial): Likewise.
15179 * procfs.c (procfs_xfer_partial): Likewise.
15180 * record-full.c (record_full_xfer_partial): Likewise.
15181 (record_full_core_xfer_partial): Likewise.
15182 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15183 instead of plongest.
15184 (gdbsim_xfer_partial): Likewise.
15185 * remote.c (remote_xfer_partial): Likewise.
15186 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15187 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15188 declaration.
15189 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15190 (rs6000_xfer_shared_libraries): Likewise.
15191 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15192 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15193 (sparc_xfer_partial): Likewise.
15194 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15195 (spu_xfer_partial): Likewise.
15196 * spu-multiarch.c (spu_xfer_partial): Likewise.
15197 * target.c (target_read_live_memory): Likewise.
15198 (memory_xfer_live_readonly_partial): Likewise.
15199 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15200 (target_xfer_partial, default_xfer_partial): Likewise.
15201 (current_xfer_partial): Likewise.
15202 * tracepoint.c (tfile_xfer_partial): Likewise.
15203 * windows-nat.c (windows_xfer_memory): Likewise. Call
15204 pulongest instead of plongest.
15205 (windows_xfer_partial): Likewise.
15206 (windows_xfer_shared_libraries): Likewise.
15207
05804640
YQ
152082014-01-14 Yao Qi <yao@codesourcery.com>
15209
15210 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15211 target_xfer_partial_ftype.
15212
b5b08fb4
SC
152132014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15214
15215 PR python/15464
15216 PR python/16113
15217 * valops.c (value_struct_elt_bitpos): New function
15218 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15219 object to 'None' if the field name is an empty string ("").
15220 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15221 attribute to look for a field when 'name' is 'None'.
15222 (get_field_type): New function
15223
13aaf454
DE
152242014-01-13 Doug Evans <dje@google.com>
15225
15226 PR symtab/16426
15227 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15228 (try_open_dwop_file): Ditto.
15229 * gdb_bfd.c: #include "vec.h".
15230 (bfdp): New typedef.
15231 (struct gdb_bfd_data): New member included_bfds.
15232 (gdb_bfd_unref): Unref all included bfds.
15233 (gdb_bfd_record_inclusion): New function.
15234 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15235
c2cec97c
TT
152362014-01-13 Tom Tromey <tromey@redhat.com>
15237
15238 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15239
78e5999d
TT
152402014-01-13 Tom Tromey <tromey@redhat.com>
15241
15242 * defs.h (use_windows): Remove.
15243 * gdb.c (main): Update.
15244 * main.c (captured_main, gdb_main): Update.
15245 * main.h (struct captured_main_args) <use_windows>: Remove.
15246 * top.c (use_windows): Remove.
15247
f2052bbe
TT
152482014-01-13 Tom Tromey <tromey@redhat.com>
15249
15250 * defs.h (deprecated_flush_hook): Remove.
15251
fde4f8ed
JK
152522014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15253
15254 PR threads/16216
15255 * linux-thread-db.c (try_thread_db_load): Add parameter
15256 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15257 (try_thread_db_load_from_pdir_1): Move it there from here.
15258 (try_thread_db_load_from_sdir): Update caller.
15259 (try_thread_db_load_from_dir): Move it there from here.
15260
bdf61915
PP
152612014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15262
15263 * regformats/regdat.sh: Always rewrite the register file.
15264
f71e1a8d
PA
152652014-01-13 Pedro Alves <palves@redhat.com>
15266
15267 * Makefile.in (CHECK_HEADERS): New variable.
15268 (check-headers:): New rule.
15269
42c85435
TT
152702014-01-13 Tom Tromey <tromey@redhat.com>
15271
15272 * cli/cli-setshow.c (do_set_command): Update.
15273 * defs.h (deprecated_set_hook): Remove.
15274 * top.c (deprecated_set_hook): Remove.
15275
f8de5129
PA
152762014-01-13 Pedro Alves <palves@redhat.com>
15277
15278 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15279 the tracepoint if the PC is a pseudo-register.
15280
fc270c35
TT
152812014-01-13 Tom Tromey <tromey@redhat.com>
15282
15283 * defs.h (XCALLOC): Remove.
15284 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15285 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15286 * dwarf2loc.c (allocate_piece_closure): Likewise.
15287 * elfread.c (elf_symfile_segments): Likewise.
15288 (elf_symfile_segments): Likewise.
15289 * gdbtypes.c (copy_type_recursive): Likewise.
15290 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15291 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15292 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15293 XCALLOC.
15294 * mt-tdep.c (mt_gdbarch_init): Likewise.
15295 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15296 XCALLOC.
15297 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15298 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15299 * registry.c (registry_alloc_data): Likewise.
15300 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15301 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15302 * serial.c (serial_fdopen_ops): Likewise.
15303 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15304 XCALLOC.
15305 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15306 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15307 not XCALLOC.
15308
70ba0933
TT
153092014-01-13 Tom Tromey <tromey@redhat.com>
15310
15311 * defs.h (XMALLOC): Remove.
15312 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15313 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15314 * cli-out.c (struct ui_out *): Likewise.
15315 * cli/cli-dump.c (add_dump_command): Likewise.
15316 (add_dump_command): Likewise.
15317 * complaints.c (get_complaints): Likewise.
15318 (find_complaint): Likewise.
15319 * dwarf2-frame.c (execute_cfa_program): Likewise.
15320 * dwarf2read.c (abbrev_table_read_table): Likewise.
15321 * gdbarch.sh: Likewise.
15322 * gdbarch.c: Rebuild.
15323 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15324 * interps.c (interp_new): Likewise.
15325 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15326 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15327 * mi/mi-console.c (mi_console_file_new): Likewise.
15328 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15329 * mi/mi-out.c (mi_out_new): Likewise.
15330 * mi/mi-parse.c (mi_parse): Likewise.
15331 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15332 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15333 * observer.c (xalloc_observer_list_node): Likewise.
15334 * regcache.c (regcache_xmalloc_1): Likewise.
15335 * reggroups.c (reggroup_new): Likewise.
15336 (_initialize_reggroup): Likewise.
15337 * registry.c (register_data_with_cleanup): Likewise.
15338 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15339 * ser-base.c (serial_ttystate): Likewise.
15340 * ser-mingw.c (make_pipe_state): Likewise.
15341 * ser-pipe.c (pipe_open): Likewise.
15342 * serial.c (serial_open): Likewise.
15343 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15344 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15345 (tui_alloc_win_info): Likewise.
15346 (tui_add_content_elements): Likewise.
15347 * tui/tui-file.c (tui_file_new): Likewise.
15348 * tui/tui-out.c (tui_out_new): Likewise.
15349 * ui-file.c (mem_file_new): Likewise.
15350 * ui-out.c (push_level): Likewise.
15351 (make_cleanup_ui_out_end): Likewise.
15352 (append_header_to_list): Likewise.
15353 (ui_out_new): Likewise.
15354 * user-regs.c (user_reg_add_builtin): Likewise.
15355
41bf6aca
TT
153562014-01-13 Tom Tromey <tromey@redhat.com>
15357
15358 * defs.h (XZALLOC): Remove.
15359 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15360 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15361 (get_ada_tasks_inferior_data): Likewise.
15362 * auto-load.c (get_auto_load_pspace_data): Likewise.
15363 * auxv.c (get_auxv_inferior_data): Likewise.
15364 * bfd-target.c (target_bfd_reopen): Likewise.
15365 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15366 (deprecated_insert_raw_breakpoint): Likewise.
15367 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15368 * corelow.c (core_open): Likewise.
15369 * darwin-nat.c (darwin_check_new_threads): Likewise.
15370 (darwin_attach_pid): Likewise.
15371 * dummy-frame.c (dummy_frame_push): Likewise.
15372 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15373 * dwarf2loc.c (allocate_piece_closure): Likewise.
15374 * elfread.c (elf_symfile_segments): Likewise.
15375 * eval.c (ptrmath_type_p): Likewise.
15376 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15377 * gdbtypes.c (alloc_type_arch): Likewise.
15378 (alloc_type_instance): Likewise.
15379 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15380 * inf-child.c (inf_child_can_use_agent): Likewise.
15381 * inflow.c (get_inflow_inferior_data): Likewise.
15382 * infrun.c (save_infcall_suspend_state): Likewise.
15383 * jit.c (jit_reader_load): Likewise.
15384 (get_jit_objfile_data): Likewise.
15385 (get_jit_program_space_data): Likewise.
15386 (jit_object_open_impl): Likewise.
15387 (jit_symtab_open_impl): Likewise.
15388 (jit_block_open_impl): Likewise.
15389 (jit_frame_sniffer): Likewise.
15390 * linux-fork.c (add_fork): Likewise.
15391 * maint.c (make_command_stats_cleanup): Likewise.
15392 * objfiles.c (get_objfile_pspace_data): Likewise.
15393 * opencl-lang.c (struct lval_closure): Likewise.
15394 * osdata.c (osdata_start_osdata): Likewise.
15395 * progspace.c (new_address_space): Likewise.
15396 (add_program_space): Likewise.
15397 * remote-sim.c (get_sim_inferior_data): Likewise.
15398 * sh-tdep.c (sh_gdbarch_init): Likewise.
15399 * skip.c (Ignore): Likewise.
15400 (skip_delete_command): Likewise.
15401 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15402 (library_list_start_library): Likewise.
15403 (solib_aix_current_sos): Likewise.
15404 * solib-darwin.c (get_darwin_info): Likewise.
15405 (darwin_current_sos): Likewise.
15406 * solib-dsbt.c (get_dsbt_info): Likewise.
15407 * solib-ia64-hpux.c (new_so_list): Likewise.
15408 (ia64_hpux_get_solib_linkage_addr): Likewise.
15409 * solib-spu.c (append_ocl_sos): Likewise.
15410 (spu_current_sos): Likewise.
15411 * solib-svr4.c (get_svr4_info): Likewise.
15412 (svr4_keep_data_in_core): Likewise.
15413 (library_list_start_library): Likewise.
15414 (svr4_default_sos): Likewise.
15415 (svr4_read_so_list): Likewise.
15416 * solib-target.c (library_list_start_library): Likewise.
15417 (solib_target_current_sos): Likewise.
15418 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15419 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15420 * symfile.c (default_symfile_segments): Likewise.
15421 * target-descriptions.c (tdesc_data_init): Likewise.
15422 (tdesc_create_reg): Likewise.
15423 (struct tdesc_type *): Likewise.
15424 (tdesc_create_vector): Likewise.
15425 (tdesc_set_struct_size): Likewise.
15426 (struct tdesc_type *): Likewise.
15427 (tdesc_free_feature): Likewise.
15428 (tdesc_create_feature): Likewise.
15429 * windows-nat.c (windows_add_thread): Likewise.
15430 (windows_make_so): Likewise.
15431 * xml-support.c (gdb_xml_body_text): Likewise.
15432 (gdb_xml_create_parser_and_cleanup): Likewise.
15433 (xml_process_xincludes): Likewise.
15434 * xml-syscall.c (allocate_syscalls_info): Likewise.
15435 (syscall_create_syscall_desc): Likewise.
15436
5acfdbae
SDJ
154372014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15438
15439 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15440 function, with code from i386_stap_parse_special_token.
15441 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15442 (i386_stap_parse_special_token): Move code to the two functions
15443 above; simplify it.
15444
0000e5cc
PA
154452014-01-09 Pedro Alves <palves@redhat.com>
15446 Hui Zhu <hui@codesourcery.com>
15447
15448 PR gdb/16101
15449 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15450 bp_err_string. Don't mark the location shlib_disabled if the
15451 error thrown wasn't a generic or memory error. Catch errors
15452 thrown while inserting breakpoints in overlayed code. Output
15453 error message of software breakpoints.
15454 * remote.c (remote_insert_breakpoint): If this breakpoint has
15455 target-side commands but this stub doesn't support Z0 packets,
15456 throw NOT_SUPPORTED_ERROR error.
15457 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15458 * target.h (target_insert_breakpoint): Extend comment.
15459 (target_insert_hw_breakpoint): Add comment.
15460
b7ea362b
PA
154612014-01-08 Pedro Alves <palves@redhat.com>
15462
15463 * remote.c (remote_add_thread): Add threads silently if starting
15464 up.
15465 (remote_notice_new_inferior): If in all-stop, and starting up,
15466 don't call notice_new_inferior.
15467 (get_current_thread): New function, factored out from ...
15468 (add_current_inferior_and_thread): ... this. Adjust.
15469 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15470 found any thread, then select the remote's current thread as GDB's
15471 current thread too.
15472
b7bba001
JB
154732014-01-08 Joel Brobecker <brobecker@adacore.com>
15474
15475 * NEWS: Create a new section for the next release branch.
15476 Rename the section of the current branch, now that it has
15477 been cut.
15478
16dfbded
JB
154792014-01-08 Joel Brobecker <brobecker@adacore.com>
15480
15481 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15482 * version.in: Bump version to 7.7.50.DATE-cvs.
15483
22c90ac1
YQ
154842014-01-08 Yao Qi <yao@codesourcery.com>
15485
15486 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15487 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15488 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15489
d64ad97c
YQ
154902014-01-08 Yao Qi <yao@codesourcery.com>
15491
15492 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15493 return value of bfd_get_filename to symbol_file_add_from_bfd.
15494
f93ba80c
PM
154952014-01-08 Pierre Muller <muller@sourceware.org>
15496
15497 Fix PR16201.
15498 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15499 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15500 to prim_record_mininal_symbol_and_info.
15501 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15502 in call to prim_record_minimal_symbol_and_info.
15503 (read_pe_exported_syms): Set index field of section_data.
15504
a4d9ba85
AP
155052014-01-07 Andrew Pinski <apinski@cavium.com>
15506
15507 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15508 * features/aarch64.c: Regenerate.
15509
1b67eb02
AS
155102014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15511
15512 * target.c (return_null): Define.
15513 (update_current_target): Use it instead of return_zero for
15514 functions that return a pointer.
15515
5e3f4fab
EBM
155162014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15517
15518 * source.c (add_path): Fix check for duplicated paths in the previously
15519 included paths.
15520
e2616788
HK
155212014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15522
15523 * ada-lang.c: Remove duplicated include statements.
15524 * alphabsd-nat.c: Ditto.
15525 * amd64-darwin-tdep.c: Ditto.
15526 * amd64fbsd-nat.c: Ditto.
15527 * auto-load.c: Ditto.
15528 * ax-gdb.c: Ditto.
15529 * breakpoint.c: Ditto.
15530 * dbxread.c: Ditto.
15531 * fork-child.c: Ditto.
15532 * gdb_usleep.c: Ditto.
15533 * i386-darwin-tdep.c: Ditto.
15534 * i386fbsd-nat.c: Ditto.
15535 * infcmd.c: Ditto.
15536 * inferior.c: Ditto.
15537 * jv-lang.c: Ditto.
15538 * linux-nat.c: Ditto.
15539 * linux-tdep.c: Ditto.
15540 * m68kbsd-nat.c: Ditto.
15541 * m68klinux-nat.c: Ditto.
15542 * microblaze-tdep.c: Ditto.
15543 * mips-linux-tdep.c: Ditto.
15544 * mn10300-tdep.c: Ditto.
15545 * nto-tdep.c: Ditto.
15546 * opencl-lang.c: Ditto.
15547 * osdata.c: Ditto.
15548 * printcmd.c: Ditto.
15549 * regcache.c: Ditto.
15550 * remote-m32r-sdi.c: Ditto.
15551 * remote.c: Ditto.
15552 * symfile.c: Ditto.
15553 * symtab.c: Ditto.
15554 * tilegx-linux-nat.c: Ditto.
15555 * tilegx-tdep.c: Ditto.
15556 * tracepoint.c: Ditto.
15557 * valops.c: Ditto.
15558 * vaxbsd-nat.c: Ditto.
15559 * windows-nat.c: Ditto.
15560 * xtensa-tdep.c: Ditto.
15561
bd1f7788
YQ
155622014-01-07 Yao Qi <yao@codesourcery.com>
15563
15564 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15565
79301218
JB
155662014-01-07 Yao Qi <yao@codesourcery.com>
15567 Joel Brobecker <brobecker@adacore.com>
15568
15569 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15570 (pdc_write_regs): Likewise.
15571 (fetch_regs_kernel_thread): Likewise.
15572 (store_regs_kernel_thread): Likewise.
15573
155742014-01-07 Joel Brobecker <brobecker@adacore.com>
15575
15576 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15577 tagged type objects to their actual type.
15578
8e355c5d
JB
155792014-01-07 Joel Brobecker <brobecker@adacore.com>
15580
15581 * ada-valprint.c (print_field_values): Add "language" parameter.
15582 Update calls to print_field_values and print_variant_part.
15583 Pass new parameter "language" in call to val_print instead
15584 of "current_language". Replace call to ada_val_print by call
15585 to val_print.
15586 (print_variant_part): Add "language" parameter.
15587 (ada_val_print_struct_union): Update call to print_field_values.
15588
4fbf5aa5
JB
155892014-01-07 Joel Brobecker <brobecker@adacore.com>
15590
15591 * ada-valprint.c (ui_memcpy): Delete.
15592 (ada_print_floating): Update documentation. Add empty line
15593 between between function documentation and implementation.
15594 Delete variable "buffer". Use ui_file_xstrdup in place of
15595 ui_file_put. Minor adjustments following this change.
15596
71855601
JB
155972014-01-07 Joel Brobecker <brobecker@adacore.com>
15598
15599 * ada-valprint.c (ada_val_print_string): New function,
15600 extracted from ada_val_print_array.
15601 (ada_val_print_array): Replace extracted code by call
15602 to ada_val_print_string followed by a return. Move
15603 "else" branch to the function's top block.
15604
4eb27a30
JB
156052014-01-07 Joel Brobecker <brobecker@adacore.com>
15606
15607 * ada-valprint.c (ada_val_print_array): Move implementation
15608 down. Rename parameter "offset" and "val" into "offset_aligned"
15609 and "original_value" respectively. Add parameter "offset".
15610
34b27950
JB
156112014-01-07 Joel Brobecker <brobecker@adacore.com>
15612
15613 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15614 re-organizing the code. Change the "???" message printed
15615 when target type is a TYPE_CODE_UNDEF into
15616 "<ref to undefined type>".
15617
079e4591
JB
156182014-01-07 Joel Brobecker <brobecker@adacore.com>
15619
15620 * ada-valprint.c (print_record): Delete, implementation inlined...
15621 (ada_val_print_struct_union): ... here. Remove call to
15622 ada_check_typedef in inlined implementation.
15623
8004dfd1
JB
156242014-01-07 Joel Brobecker <brobecker@adacore.com>
15625
15626 * ada-valprint.c (ada_val_print_gnat_array): New function,
15627 extracted from ada_val_print_1;
15628 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15629 (ada_val_print_flt, ada_val_print_struct_union)
15630 (ada_val_print_ref): Likewise.
15631 (ada_val_print_1): Delete variables i and elttype.
15632 Replace extracted-out code by call to corresponding
15633 new functions.
15634
760a2db0
JB
156352014-01-07 Joel Brobecker <brobecker@adacore.com>
15636
15637 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15638
3a92c861
JB
156392014-01-07 Joel Brobecker <brobecker@adacore.com>
15640
15641 * ada-valprint.c (ada_val_print_1): Replace calls to
15642 ada_val_print_1 by calls to val_print.
15643
cd1630f9
JB
156442014-01-07 Joel Brobecker <brobecker@adacore.com>
15645
15646 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15647 Update calls to self accordingly. Replace calls to c_val_print
15648 by calls to val_print.
15649
bdf779a0
JB
156502014-01-07 Joel Brobecker <brobecker@adacore.com>
15651
15652 * ada-valprint.c (print_record): Delete declaration.
15653 (adjust_type_signedness, ada_val_print_1): Likewise.
15654 (ada_val_print): Move function implementation down.
15655 (print_variant_part, print_field_values, print_record):
15656 Move function implementation up.
15657
c0d48811
JB
156582014-01-07 Joel Brobecker <brobecker@adacore.com>
15659
15660 * python/py-type.c (typy_get_name): New function.
15661 (type_object_getset): Add entry for attribute "name".
15662 * NEWS: Add entry mentioning this new attribute.
15663
c26e9cbb
YQ
156642014-01-07 Yao Qi <yao@codesourcery.com>
15665
15666 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15667 statement.
15668
0cc6f43d
YQ
156692014-01-07 Yao Qi <yao@codesourcery.com>
15670
15671 * gnu-nat.c (info_port_rights): Add qualifier const to
15672 argument args.
15673
eec03155
YQ
156742014-01-07 Yao Qi <yao@codesourcery.com>
15675
15676 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15677
f04a82ef
YQ
156782014-01-07 Yao Qi <yao@codesourcery.com>
15679
15680 * gnu-nat.c (make_inf) Update declaration.
15681 (make_inf): Make it static.
15682 (inf_set_traced): Likewise.
15683 (inf_port_to_thread, inf_task_died_status): Likewise.
15684
d57dda0a
YQ
156852014-01-07 Yao Qi <yao@codesourcery.com>
15686
15687 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15688
3aa8c969
YQ
156892014-01-07 Yao Qi <yao@codesourcery.com>
15690
15691 * gnu-nat.c (_initialize_gnu_nat): Declare.
15692
94123b4f
YQ
156932014-01-07 Yao Qi <yao@codesourcery.com>
15694
15695 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15696 'enum bfd_endian'.
15697 (struct gdbarch_info) <byte_order>: Change type to
15698 'enum bfd_endian'.
15699 <byte_order_for_code>: Likewise.
15700 * gdbarch.c, gdbarch.h: Regenerated.
15701
dc81d70a
TT
157022014-01-06 Sasha Smundak <asmundak@google.com>
15703
15704 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15705
cc2f3c35
TT
157062014-01-06 Tom Tromey <tromey@redhat.com>
15707
15708 * doublest.c (convert_doublest_to_floatformat): Use const, not
15709 CONST.
15710 * somread.c (som_symtab_read): Likewise.
15711
adcf2eed
HZ
157122014-01-07 Hui Zhu <hui@codesourcery.com>
15713
15714 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15715 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15716 (gdb_bfd_fopen): Ditto.
15717 (gdb_bfd_openr): Ditto.
15718 (gdb_bfd_openw): Ditto.
15719 (gdb_bfd_openr_iovec): Ditto.
15720 (gdb_bfd_fdopenr): Ditto.
15721 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15722 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15723 with xstrdup.
15724 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15725 with xstrdup.
15726 * symfile-mem.c (symbol_file_add_from_memory): Removed
15727 gdb_bfd_stash_filename.
15728
50722198
DE
157292014-01-03 Doug Evans <dje@google.com>
15730
15731 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15732 output.
15733
2fa4b862
JB
157342014-01-01 Joel Brobecker <brobecker@adacore.com>
15735
15736 Update year range in copyright notice of all files.
15737
28498c42
JB
157382014-01-01 Joel Brobecker <brobecker@adacore.com>
15739
15740 * top.c (print_gdb_version): Set copyright year to 2014.
15741
7b6e1046
JB
157422014-01-01 Joel Brobecker <brobecker@adacore.com>
15743
15744 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15745
df96af55 15746For older changes see ChangeLog-2013.
c906108c
SS
15747\f
15748Local Variables:
15749mode: change-log
15750left-margin: 8
15751fill-column: 74
15752version-control: never
57da7796 15753coding: utf-8
c906108c 15754End:
This page took 2.314614 seconds and 4 git commands to generate.